2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57 for GNU coreutils 4.5.5.
5 # Report bugs to <bug-coreutils@gnu.org>.
7 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
8 # Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
15 # Be Bourne compatible
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
22 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
26 # Support unset when possible.
27 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
46 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
47 eval $as_var=C; export $as_var
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67 # Name of the executable.
68 as_me=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits='0123456789'
86 as_cr_alnum=$as_cr_Letters$as_cr_digits
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90 echo "#! /bin/sh" >conf$$.sh
91 echo "exit 0" >>conf$$.sh
93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105 test "x$as_lineno_1" != "x$as_lineno_2" &&
106 test "x$as_lineno_3" = "x$as_lineno_2" || {
107 # Find who we are. Look in the path if we contain no path at all
110 *[\\/]* ) as_myself=$0 ;;
111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
115 test -z "$as_dir" && as_dir=.
116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
121 # We did not find ourselves, most probably we were run as `sh COMMAND'
122 # in which case we are not to be found in the path.
123 if test "x$as_myself" = x; then
126 if test ! -f "$as_myself"; then
127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128 { (exit 1); exit 1; }; }
130 case $CONFIG_SHELL in
132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
136 test -z "$as_dir" && as_dir=.
137 for as_base in sh bash ksh sh5; do
140 if ("$as_dir/$as_base" -c '
143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144 test "x$as_lineno_1" != "x$as_lineno_2" &&
145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
146 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148 CONFIG_SHELL=$as_dir/$as_base
150 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159 # uniformly replaced by the line number. The first 'sed' inserts a
160 # line-number line before each line; the second 'sed' does the real
161 # work. The second script uses 'N' to pair each line-number line
162 # with the numbered line, and appends trailing '-' during
163 # substitution so that $LINENO is not a special case at line end.
164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166 sed '=' <$as_myself |
171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
174 s,^['$as_cr_digits']*\n,,
176 chmod +x $as_me.lineno ||
177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178 { (exit 1); exit 1; }; }
180 # Don't try to exec as it changes $[0], causing all sort of problems
181 # (the dirname of $[0] is not the place where we might find the
182 # original and so on. Autoconf is especially sensible to this).
184 # Exit status is that of the last command.
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190 *c*,-n*) ECHO_N= ECHO_C='
192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
196 if expr a : '\(a\)' >/dev/null 2>&1; then
202 rm -f conf$$ conf$$.exe conf$$.file
204 if ln -s conf$$.file conf$$ 2>/dev/null; then
205 # We could just check for DJGPP; but this test a) works b) is more generic
206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207 if test -f conf$$.exe; then
208 # Don't use ln at all; we don't have any links
213 elif ln conf$$.file conf$$ 2>/dev/null; then
218 rm -f conf$$ conf$$.exe conf$$.file
220 if mkdir -p . 2>/dev/null; then
226 as_executable_p="test -f"
228 # Sed expression to map a string onto a valid CPP name.
229 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
231 # Sed expression to map a string onto a valid variable name.
232 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
236 # We need space, tab and new line, in precisely that order.
246 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
247 # so uname gets run too.
248 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
255 ac_default_prefix=/usr/local
256 ac_config_libobj_dir=.
261 SHELL=${CONFIG_SHELL-/bin/sh}
263 # Maximum number of lines to put in a shell here document.
264 # This variable seems obsolete. It should probably be removed, and
265 # only ac_max_sed_lines should be used.
266 : ${ac_max_here_lines=38}
268 # Identity of this package.
269 PACKAGE_NAME='GNU coreutils'
270 PACKAGE_TARNAME='coreutils'
271 PACKAGE_VERSION='4.5.5'
272 PACKAGE_STRING='GNU coreutils 4.5.5'
273 PACKAGE_BUGREPORT='bug-coreutils@gnu.org'
275 ac_unique_file="src/ls.c"
276 # Factoring default headers for most tests.
277 ac_includes_default="\
280 # include <sys/types.h>
283 # include <sys/stat.h>
294 # if !STDC_HEADERS && HAVE_MEMORY_H
300 # include <strings.h>
303 # include <inttypes.h>
313 ac_config_libobj_dir=lib
314 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE PERL CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP EGREP RANLIB ac_ct_RANLIB GNU_PACKAGE HELP2MAN OPTIONAL_BIN_PROGS OPTIONAL_BIN_ZCRIPTS MAN DF_PROG U ANSI2KNR LIBOBJS ALLOCA YACC LIB_NANOSLEEP NEED_SETGID KMEM_GROUP GETLOADAVG_LIBS LIB_CLOCK_GETTIME POW_LIB SEQ_LIBM GLIBC21 LIBICONV LTLIBICONV SQRT_LIBM FESETROUND_LIBM LIB_CRYPT MKINSTALLDIRS MSGFMT GMSGFMT XGETTEXT MSGMERGE USE_NLS INTLLIBS LIBINTL LTLIBINTL POSUB LTLIBOBJS'
317 # Initialize some variables set by options.
319 ac_init_version=false
320 # The variables have the same names as the options, with
321 # dashes changed to underlines.
329 program_transform_name=s,x,x,
337 # Installation directory options.
338 # These are left unexpanded so users can "make install exec_prefix=/foo"
339 # and all the variables that are supposed to be based on exec_prefix
340 # by default will actually change.
341 # Use braces instead of parens because sh, perl, etc. also accept them.
342 bindir='${exec_prefix}/bin'
343 sbindir='${exec_prefix}/sbin'
344 libexecdir='${exec_prefix}/libexec'
345 datadir='${prefix}/share'
346 sysconfdir='${prefix}/etc'
347 sharedstatedir='${prefix}/com'
348 localstatedir='${prefix}/var'
349 libdir='${exec_prefix}/lib'
350 includedir='${prefix}/include'
351 oldincludedir='/usr/include'
352 infodir='${prefix}/info'
353 mandir='${prefix}/man'
358 # If the previous option needs an argument, assign it.
359 if test -n "$ac_prev"; then
360 eval "$ac_prev=\$ac_option"
365 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
367 # Accept the important Cygnus configure options, so we can diagnose typos.
371 -bindir | --bindir | --bindi | --bind | --bin | --bi)
373 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
376 -build | --build | --buil | --bui | --bu)
377 ac_prev=build_alias ;;
378 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
379 build_alias=$ac_optarg ;;
381 -cache-file | --cache-file | --cache-fil | --cache-fi \
382 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
383 ac_prev=cache_file ;;
384 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
385 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
386 cache_file=$ac_optarg ;;
389 cache_file=config.cache ;;
391 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
393 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
395 datadir=$ac_optarg ;;
397 -disable-* | --disable-*)
398 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
399 # Reject names that are not valid shell variable names.
400 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
401 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
402 { (exit 1); exit 1; }; }
403 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
404 eval "enable_$ac_feature=no" ;;
406 -enable-* | --enable-*)
407 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
408 # Reject names that are not valid shell variable names.
409 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
410 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
411 { (exit 1); exit 1; }; }
412 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
414 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
417 eval "enable_$ac_feature='$ac_optarg'" ;;
419 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
420 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
421 | --exec | --exe | --ex)
422 ac_prev=exec_prefix ;;
423 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
424 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
425 | --exec=* | --exe=* | --ex=*)
426 exec_prefix=$ac_optarg ;;
428 -gas | --gas | --ga | --g)
429 # Obsolete; use --with-gas.
432 -help | --help | --hel | --he | -h)
434 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
435 ac_init_help=recursive ;;
436 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
437 ac_init_help=short ;;
439 -host | --host | --hos | --ho)
440 ac_prev=host_alias ;;
441 -host=* | --host=* | --hos=* | --ho=*)
442 host_alias=$ac_optarg ;;
444 -includedir | --includedir | --includedi | --included | --include \
445 | --includ | --inclu | --incl | --inc)
446 ac_prev=includedir ;;
447 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
448 | --includ=* | --inclu=* | --incl=* | --inc=*)
449 includedir=$ac_optarg ;;
451 -infodir | --infodir | --infodi | --infod | --info | --inf)
453 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
454 infodir=$ac_optarg ;;
456 -libdir | --libdir | --libdi | --libd)
458 -libdir=* | --libdir=* | --libdi=* | --libd=*)
461 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
462 | --libexe | --libex | --libe)
463 ac_prev=libexecdir ;;
464 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
465 | --libexe=* | --libex=* | --libe=*)
466 libexecdir=$ac_optarg ;;
468 -localstatedir | --localstatedir | --localstatedi | --localstated \
469 | --localstate | --localstat | --localsta | --localst \
470 | --locals | --local | --loca | --loc | --lo)
471 ac_prev=localstatedir ;;
472 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
473 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
474 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
475 localstatedir=$ac_optarg ;;
477 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
479 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
483 # Obsolete; use --without-fp.
486 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
487 | --no-cr | --no-c | -n)
490 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
491 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
494 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
495 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
496 | --oldin | --oldi | --old | --ol | --o)
497 ac_prev=oldincludedir ;;
498 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
499 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
500 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
501 oldincludedir=$ac_optarg ;;
503 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
505 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
508 -program-prefix | --program-prefix | --program-prefi | --program-pref \
509 | --program-pre | --program-pr | --program-p)
510 ac_prev=program_prefix ;;
511 -program-prefix=* | --program-prefix=* | --program-prefi=* \
512 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
513 program_prefix=$ac_optarg ;;
515 -program-suffix | --program-suffix | --program-suffi | --program-suff \
516 | --program-suf | --program-su | --program-s)
517 ac_prev=program_suffix ;;
518 -program-suffix=* | --program-suffix=* | --program-suffi=* \
519 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
520 program_suffix=$ac_optarg ;;
522 -program-transform-name | --program-transform-name \
523 | --program-transform-nam | --program-transform-na \
524 | --program-transform-n | --program-transform- \
525 | --program-transform | --program-transfor \
526 | --program-transfo | --program-transf \
527 | --program-trans | --program-tran \
528 | --progr-tra | --program-tr | --program-t)
529 ac_prev=program_transform_name ;;
530 -program-transform-name=* | --program-transform-name=* \
531 | --program-transform-nam=* | --program-transform-na=* \
532 | --program-transform-n=* | --program-transform-=* \
533 | --program-transform=* | --program-transfor=* \
534 | --program-transfo=* | --program-transf=* \
535 | --program-trans=* | --program-tran=* \
536 | --progr-tra=* | --program-tr=* | --program-t=*)
537 program_transform_name=$ac_optarg ;;
539 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
540 | -silent | --silent | --silen | --sile | --sil)
543 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
545 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
547 sbindir=$ac_optarg ;;
549 -sharedstatedir | --sharedstatedir | --sharedstatedi \
550 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
551 | --sharedst | --shareds | --shared | --share | --shar \
553 ac_prev=sharedstatedir ;;
554 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
555 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
556 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
558 sharedstatedir=$ac_optarg ;;
560 -site | --site | --sit)
562 -site=* | --site=* | --sit=*)
565 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
567 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
570 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
571 | --syscon | --sysco | --sysc | --sys | --sy)
572 ac_prev=sysconfdir ;;
573 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
574 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
575 sysconfdir=$ac_optarg ;;
577 -target | --target | --targe | --targ | --tar | --ta | --t)
578 ac_prev=target_alias ;;
579 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
580 target_alias=$ac_optarg ;;
582 -v | -verbose | --verbose | --verbos | --verbo | --verb)
585 -version | --version | --versio | --versi | --vers | -V)
589 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
590 # Reject names that are not valid shell variable names.
591 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
592 { echo "$as_me: error: invalid package name: $ac_package" >&2
593 { (exit 1); exit 1; }; }
594 ac_package=`echo $ac_package| sed 's/-/_/g'`
596 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
599 eval "with_$ac_package='$ac_optarg'" ;;
601 -without-* | --without-*)
602 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
603 # Reject names that are not valid shell variable names.
604 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
605 { echo "$as_me: error: invalid package name: $ac_package" >&2
606 { (exit 1); exit 1; }; }
607 ac_package=`echo $ac_package | sed 's/-/_/g'`
608 eval "with_$ac_package=no" ;;
611 # Obsolete; use --with-x.
614 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
615 | --x-incl | --x-inc | --x-in | --x-i)
616 ac_prev=x_includes ;;
617 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
618 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
619 x_includes=$ac_optarg ;;
621 -x-libraries | --x-libraries | --x-librarie | --x-librari \
622 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
623 ac_prev=x_libraries ;;
624 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
625 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
626 x_libraries=$ac_optarg ;;
628 -*) { echo "$as_me: error: unrecognized option: $ac_option
629 Try \`$0 --help' for more information." >&2
630 { (exit 1); exit 1; }; }
634 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
635 # Reject names that are not valid shell variable names.
636 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
637 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
638 { (exit 1); exit 1; }; }
639 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
640 eval "$ac_envvar='$ac_optarg'"
644 # FIXME: should be removed in autoconf 3.0.
645 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
646 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
647 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
648 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
654 if test -n "$ac_prev"; then
655 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
656 { echo "$as_me: error: missing argument to $ac_option" >&2
657 { (exit 1); exit 1; }; }
660 # Be sure to have absolute paths.
661 for ac_var in exec_prefix prefix
663 eval ac_val=$`echo $ac_var`
665 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
666 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
667 { (exit 1); exit 1; }; };;
671 # Be sure to have absolute paths.
672 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
673 localstatedir libdir includedir oldincludedir infodir mandir
675 eval ac_val=$`echo $ac_var`
677 [\\/$]* | ?:[\\/]* ) ;;
678 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
679 { (exit 1); exit 1; }; };;
683 # There might be people who depend on the old broken behavior: `$host'
684 # used to hold the argument of --host etc.
685 # FIXME: To remove some day.
690 # FIXME: To remove some day.
691 if test "x$host_alias" != x; then
692 if test "x$build_alias" = x; then
693 cross_compiling=maybe
694 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
695 If a cross compiler is detected then cross compile mode will be used." >&2
696 elif test "x$build_alias" != "x$host_alias"; then
702 test -n "$host_alias" && ac_tool_prefix=$host_alias-
704 test "$silent" = yes && exec 6>/dev/null
707 # Find the source files, if location was not specified.
708 if test -z "$srcdir"; then
709 ac_srcdir_defaulted=yes
710 # Try the directory containing this script, then its parent.
711 ac_confdir=`(dirname "$0") 2>/dev/null ||
712 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
713 X"$0" : 'X\(//\)[^/]' \| \
714 X"$0" : 'X\(//\)$' \| \
715 X"$0" : 'X\(/\)' \| \
716 . : '\(.\)' 2>/dev/null ||
718 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
719 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
720 /^X\(\/\/\)$/{ s//\1/; q; }
721 /^X\(\/\).*/{ s//\1/; q; }
724 if test ! -r $srcdir/$ac_unique_file; then
728 ac_srcdir_defaulted=no
730 if test ! -r $srcdir/$ac_unique_file; then
731 if test "$ac_srcdir_defaulted" = yes; then
732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
733 { (exit 1); exit 1; }; }
735 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
736 { (exit 1); exit 1; }; }
739 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
740 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
741 { (exit 1); exit 1; }; }
742 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
743 ac_env_build_alias_set=${build_alias+set}
744 ac_env_build_alias_value=$build_alias
745 ac_cv_env_build_alias_set=${build_alias+set}
746 ac_cv_env_build_alias_value=$build_alias
747 ac_env_host_alias_set=${host_alias+set}
748 ac_env_host_alias_value=$host_alias
749 ac_cv_env_host_alias_set=${host_alias+set}
750 ac_cv_env_host_alias_value=$host_alias
751 ac_env_target_alias_set=${target_alias+set}
752 ac_env_target_alias_value=$target_alias
753 ac_cv_env_target_alias_set=${target_alias+set}
754 ac_cv_env_target_alias_value=$target_alias
755 ac_env_CC_set=${CC+set}
757 ac_cv_env_CC_set=${CC+set}
758 ac_cv_env_CC_value=$CC
759 ac_env_CFLAGS_set=${CFLAGS+set}
760 ac_env_CFLAGS_value=$CFLAGS
761 ac_cv_env_CFLAGS_set=${CFLAGS+set}
762 ac_cv_env_CFLAGS_value=$CFLAGS
763 ac_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_env_LDFLAGS_value=$LDFLAGS
765 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
766 ac_cv_env_LDFLAGS_value=$LDFLAGS
767 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_env_CPPFLAGS_value=$CPPFLAGS
769 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
770 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
771 ac_env_CPP_set=${CPP+set}
772 ac_env_CPP_value=$CPP
773 ac_cv_env_CPP_set=${CPP+set}
774 ac_cv_env_CPP_value=$CPP
777 # Report the --help message.
779 if test "$ac_init_help" = "long"; then
780 # Omit some internal or obsolete options to make the list less imposing.
781 # This message is too long to be a string in the A/UX 3.1 sh.
783 \`configure' configures GNU coreutils 4.5.5 to adapt to many kinds of systems.
785 Usage: $0 [OPTION]... [VAR=VALUE]...
787 To assign environment variables (e.g., CC, CFLAGS...), specify them as
788 VAR=VALUE. See below for descriptions of some of the useful variables.
790 Defaults for the options are specified in brackets.
793 -h, --help display this help and exit
794 --help=short display options specific to this package
795 --help=recursive display the short help of all the included packages
796 -V, --version display version information and exit
797 -q, --quiet, --silent do not print \`checking...' messages
798 --cache-file=FILE cache test results in FILE [disabled]
799 -C, --config-cache alias for \`--cache-file=config.cache'
800 -n, --no-create do not create output files
801 --srcdir=DIR find the sources in DIR [configure dir or \`..']
806 Installation directories:
807 --prefix=PREFIX install architecture-independent files in PREFIX
809 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
812 By default, \`make install' will install all the files in
813 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
814 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
815 for instance \`--prefix=\$HOME'.
817 For better control, use the options below.
819 Fine tuning of the installation directories:
820 --bindir=DIR user executables [EPREFIX/bin]
821 --sbindir=DIR system admin executables [EPREFIX/sbin]
822 --libexecdir=DIR program executables [EPREFIX/libexec]
823 --datadir=DIR read-only architecture-independent data [PREFIX/share]
824 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
825 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
826 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
827 --libdir=DIR object code libraries [EPREFIX/lib]
828 --includedir=DIR C header files [PREFIX/include]
829 --oldincludedir=DIR C header files for non-gcc [/usr/include]
830 --infodir=DIR info documentation [PREFIX/info]
831 --mandir=DIR man documentation [PREFIX/man]
837 --program-prefix=PREFIX prepend PREFIX to installed program names
838 --program-suffix=SUFFIX append SUFFIX to installed program names
839 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
842 --build=BUILD configure for building on BUILD [guessed]
843 --host=HOST cross-compile to build programs to run on HOST [BUILD]
847 if test -n "$ac_init_help"; then
848 case $ac_init_help in
849 short | recursive ) echo "Configuration of GNU coreutils 4.5.5:";;
854 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
855 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
856 --disable-dependency-tracking Speeds up one-time builds
857 --enable-dependency-tracking Do not reject slow dependency extractors
858 --disable-largefile omit support for large files
859 --disable-assert turn off assertions
860 --disable-rpath do not hardcode runtime library paths
861 --disable-nls do not use Native Language Support
864 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
865 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
866 --without-included-regex don't compile regex; this is the default on
867 systems with version 2 of the GNU C library
868 (use with caution on other system)
869 --with-gnu-ld assume the C compiler uses GNU ld default=no
870 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
871 --without-libiconv-prefix don't search for libiconv in includedir and libdir
872 --with-libintl-prefix=DIR search for libintl in DIR/include and DIR/lib
873 --without-libintl-prefix don't search for libintl in includedir and libdir
875 Some influential environment variables:
876 CC C compiler command
877 CFLAGS C compiler flags
878 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
879 nonstandard directory <lib dir>
880 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
881 headers in a nonstandard directory <include dir>
884 Use these variables to override the choices made by `configure' or to help
885 it to find libraries and programs with nonstandard names/locations.
887 Report bugs to <bug-coreutils@gnu.org>.
891 if test "$ac_init_help" = "recursive"; then
892 # If there are subdirs, report their specific --help.
894 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
895 test -d $ac_dir || continue
898 if test "$ac_dir" != .; then
899 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
900 # A "../" for each directory in $ac_dir_suffix.
901 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
903 ac_dir_suffix= ac_top_builddir=
907 .) # No --srcdir option. We are building in place.
909 if test -z "$ac_top_builddir"; then
912 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
914 [\\/]* | ?:[\\/]* ) # Absolute path.
915 ac_srcdir=$srcdir$ac_dir_suffix;
916 ac_top_srcdir=$srcdir ;;
918 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
919 ac_top_srcdir=$ac_top_builddir$srcdir ;;
921 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
923 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
924 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
925 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
926 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
929 # Check for guested configure; otherwise get Cygnus style configure.
930 if test -f $ac_srcdir/configure.gnu; then
932 $SHELL $ac_srcdir/configure.gnu --help=recursive
933 elif test -f $ac_srcdir/configure; then
935 $SHELL $ac_srcdir/configure --help=recursive
936 elif test -f $ac_srcdir/configure.ac ||
937 test -f $ac_srcdir/configure.in; then
941 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
947 test -n "$ac_init_help" && exit 0
948 if $ac_init_version; then
950 GNU coreutils configure 4.5.5
951 generated by GNU Autoconf 2.57
953 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
954 Free Software Foundation, Inc.
955 This configure script is free software; the Free Software Foundation
956 gives unlimited permission to copy, distribute and modify it.
962 This file contains any messages produced by compilers while
963 running configure, to aid debugging if configure makes a mistake.
965 It was created by GNU coreutils $as_me 4.5.5, which was
966 generated by GNU Autoconf 2.57. Invocation command line was
977 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
978 uname -m = `(uname -m) 2>/dev/null || echo unknown`
979 uname -r = `(uname -r) 2>/dev/null || echo unknown`
980 uname -s = `(uname -s) 2>/dev/null || echo unknown`
981 uname -v = `(uname -v) 2>/dev/null || echo unknown`
983 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
984 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
986 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
987 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
988 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
989 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
990 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
991 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
992 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1000 test -z "$as_dir" && as_dir=.
1001 echo "PATH: $as_dir"
1016 # Keep a trace of the command line.
1017 # Strip out --no-create and --no-recursion so they do not pile up.
1018 # Strip out --silent because we don't want to record it for future runs.
1019 # Also quote any args containing shell meta-characters.
1020 # Make two passes to allow for proper duplicate-argument suppression.
1025 ac_must_keep_next=false
1031 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1032 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1033 | -silent | --silent | --silen | --sile | --sil)
1035 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1036 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1039 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1041 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1042 if test $ac_must_keep_next = true; then
1043 ac_must_keep_next=false # Got value, back to normal.
1046 *=* | --config-cache | -C | -disable-* | --disable-* \
1047 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1048 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1049 | -with-* | --with-* | -without-* | --without-* | --x)
1050 case "$ac_configure_args0 " in
1051 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1054 -* ) ac_must_keep_next=true ;;
1057 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1058 # Get rid of the leading space.
1064 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1065 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1067 # When interrupted or exit'd, cleanup temporary files, and complete
1068 # config.log. We remove comments because anyway the quotes in there
1069 # would cause problems or look ugly.
1070 # WARNING: Be sure not to use single quotes in there, as some shells,
1071 # such as our DU 5.0 friend, will then `close' the trap.
1072 trap 'exit_status=$?
1073 # Save into config.log some information that might help in debugging.
1078 ## ---------------- ##
1079 ## Cache variables. ##
1080 ## ---------------- ##
1083 # The following way of writing the cache mishandles newlines in values,
1086 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1089 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1090 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1094 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1101 ## ----------------- ##
1102 ## Output variables. ##
1103 ## ----------------- ##
1106 for ac_var in $ac_subst_vars
1108 eval ac_val=$`echo $ac_var`
1109 echo "$ac_var='"'"'$ac_val'"'"'"
1113 if test -n "$ac_subst_files"; then
1120 for ac_var in $ac_subst_files
1122 eval ac_val=$`echo $ac_var`
1123 echo "$ac_var='"'"'$ac_val'"'"'"
1128 if test -s confdefs.h; then
1135 sed "/^$/d" confdefs.h | sort
1138 test "$ac_signal" != 0 &&
1139 echo "$as_me: caught signal $ac_signal"
1140 echo "$as_me: exit $exit_status"
1142 rm -f core core.* *.core &&
1143 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1146 for ac_signal in 1 2 13 15; do
1147 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1151 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1152 rm -rf conftest* confdefs.h
1153 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1156 # Predefined preprocessor variables.
1158 cat >>confdefs.h <<_ACEOF
1159 #define PACKAGE_NAME "$PACKAGE_NAME"
1163 cat >>confdefs.h <<_ACEOF
1164 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1168 cat >>confdefs.h <<_ACEOF
1169 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1173 cat >>confdefs.h <<_ACEOF
1174 #define PACKAGE_STRING "$PACKAGE_STRING"
1178 cat >>confdefs.h <<_ACEOF
1179 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1183 # Let the site file select an alternate cache file if it wants to.
1184 # Prefer explicitly selected file to automatically selected ones.
1185 if test -z "$CONFIG_SITE"; then
1186 if test "x$prefix" != xNONE; then
1187 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1189 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1192 for ac_site_file in $CONFIG_SITE; do
1193 if test -r "$ac_site_file"; then
1194 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1195 echo "$as_me: loading site script $ac_site_file" >&6;}
1196 sed 's/^/| /' "$ac_site_file" >&5
1201 if test -r "$cache_file"; then
1202 # Some versions of bash will fail to source /dev/null (special
1203 # files actually), so we avoid doing that.
1204 if test -f "$cache_file"; then
1205 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1206 echo "$as_me: loading cache $cache_file" >&6;}
1208 [\\/]* | ?:[\\/]* ) . $cache_file;;
1209 *) . ./$cache_file;;
1213 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1214 echo "$as_me: creating cache $cache_file" >&6;}
1218 # Check that the precious variables saved in the cache have kept the same
1220 ac_cache_corrupted=false
1221 for ac_var in `(set) 2>&1 |
1222 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1223 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1224 eval ac_new_set=\$ac_env_${ac_var}_set
1225 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1226 eval ac_new_val="\$ac_env_${ac_var}_value"
1227 case $ac_old_set,$ac_new_set in
1229 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1230 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1231 ac_cache_corrupted=: ;;
1233 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1234 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1235 ac_cache_corrupted=: ;;
1238 if test "x$ac_old_val" != "x$ac_new_val"; then
1239 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1240 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1241 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1242 echo "$as_me: former value: $ac_old_val" >&2;}
1243 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1244 echo "$as_me: current value: $ac_new_val" >&2;}
1245 ac_cache_corrupted=:
1248 # Pass precious variables to config.status.
1249 if test "$ac_new_set" = set; then
1251 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1252 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1253 *) ac_arg=$ac_var=$ac_new_val ;;
1255 case " $ac_configure_args " in
1256 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1257 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1261 if $ac_cache_corrupted; then
1262 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1263 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1264 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1265 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1266 { (exit 1); exit 1; }; }
1270 ac_cpp='$CPP $CPPFLAGS'
1271 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1272 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1273 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1304 for ac_dir in config $srcdir/config; do
1305 if test -f $ac_dir/install-sh; then
1307 ac_install_sh="$ac_aux_dir/install-sh -c"
1309 elif test -f $ac_dir/install.sh; then
1311 ac_install_sh="$ac_aux_dir/install.sh -c"
1313 elif test -f $ac_dir/shtool; then
1315 ac_install_sh="$ac_aux_dir/shtool install -c"
1319 if test -z "$ac_aux_dir"; then
1320 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1321 echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1322 { (exit 1); exit 1; }; }
1324 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1325 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1326 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1328 ac_config_headers="$ac_config_headers config.h:config.hin"
1330 # Make sure we can run config.sub.
1331 $ac_config_sub sun4 >/dev/null 2>&1 ||
1332 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1333 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1334 { (exit 1); exit 1; }; }
1336 echo "$as_me:$LINENO: checking build system type" >&5
1337 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1338 if test "${ac_cv_build+set}" = set; then
1339 echo $ECHO_N "(cached) $ECHO_C" >&6
1341 ac_cv_build_alias=$build_alias
1342 test -z "$ac_cv_build_alias" &&
1343 ac_cv_build_alias=`$ac_config_guess`
1344 test -z "$ac_cv_build_alias" &&
1345 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1346 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1347 { (exit 1); exit 1; }; }
1348 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1349 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1350 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1351 { (exit 1); exit 1; }; }
1354 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1355 echo "${ECHO_T}$ac_cv_build" >&6
1357 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1358 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1359 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1362 echo "$as_me:$LINENO: checking host system type" >&5
1363 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1364 if test "${ac_cv_host+set}" = set; then
1365 echo $ECHO_N "(cached) $ECHO_C" >&6
1367 ac_cv_host_alias=$host_alias
1368 test -z "$ac_cv_host_alias" &&
1369 ac_cv_host_alias=$ac_cv_build_alias
1370 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1371 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1372 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1373 { (exit 1); exit 1; }; }
1376 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1377 echo "${ECHO_T}$ac_cv_host" >&6
1379 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1380 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1381 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1385 am__api_version="1.7"
1386 # Find a good install program. We prefer a C program (faster),
1387 # so one script is as good as another. But avoid the broken or
1388 # incompatible versions:
1389 # SysV /etc/install, /usr/sbin/install
1390 # SunOS /usr/etc/install
1391 # IRIX /sbin/install
1393 # AmigaOS /C/install, which installs bootblocks on floppy discs
1394 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1395 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1396 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1397 # ./install, which can be erroneously created by make from ./install.sh.
1398 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1399 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1400 if test -z "$INSTALL"; then
1401 if test "${ac_cv_path_install+set}" = set; then
1402 echo $ECHO_N "(cached) $ECHO_C" >&6
1404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1408 test -z "$as_dir" && as_dir=.
1409 # Account for people who put trailing slashes in PATH elements.
1411 ./ | .// | /cC/* | \
1412 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1415 # OSF1 and SCO ODT 3.0 have their own names for install.
1416 # Don't use installbsd from OSF since it installs stuff as root
1418 for ac_prog in ginstall scoinst install; do
1419 for ac_exec_ext in '' $ac_executable_extensions; do
1420 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1421 if test $ac_prog = install &&
1422 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1423 # AIX install. It has an incompatible calling convention.
1425 elif test $ac_prog = install &&
1426 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1427 # program-specific install script used by HP pwplus--don't use.
1430 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1442 if test "${ac_cv_path_install+set}" = set; then
1443 INSTALL=$ac_cv_path_install
1445 # As a last resort, use the slow shell script. We don't cache a
1446 # path for INSTALL within a source directory, because that will
1447 # break other packages using the cache if that directory is
1448 # removed, or if the path is relative.
1449 INSTALL=$ac_install_sh
1452 echo "$as_me:$LINENO: result: $INSTALL" >&5
1453 echo "${ECHO_T}$INSTALL" >&6
1455 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1456 # It thinks the first close brace ends the variable substitution.
1457 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1459 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1461 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1463 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1464 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1467 echo timestamp > conftest.file
1468 # Do `set' in a subshell so we don't clobber the current shell's
1469 # arguments. Must try -L first in case configure is actually a
1470 # symlink; some systems play weird games with the mod time of symlinks
1471 # (eg FreeBSD returns the mod time of the symlink's containing
1474 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1475 if test "$*" = "X"; then
1477 set X `ls -t $srcdir/configure conftest.file`
1480 if test "$*" != "X $srcdir/configure conftest.file" \
1481 && test "$*" != "X conftest.file $srcdir/configure"; then
1483 # If neither matched, then we have a broken ls. This can happen
1484 # if, for instance, CONFIG_SHELL is bash and it inherits a
1485 # broken ls alias from the environment. This has actually
1486 # happened. Such a system could not be considered "sane".
1487 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1488 alias in your environment" >&5
1489 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1490 alias in your environment" >&2;}
1491 { (exit 1); exit 1; }; }
1494 test "$2" = conftest.file
1500 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1501 Check your system clock" >&5
1502 echo "$as_me: error: newly created file is older than distributed files!
1503 Check your system clock" >&2;}
1504 { (exit 1); exit 1; }; }
1506 echo "$as_me:$LINENO: result: yes" >&5
1507 echo "${ECHO_T}yes" >&6
1508 test "$program_prefix" != NONE &&
1509 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1510 # Use a double $ so make ignores it.
1511 test "$program_suffix" != NONE &&
1512 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1513 # Double any \ or $. echo might interpret backslashes.
1514 # By default was `s,x,x', remove it if useless.
1515 cat <<\_ACEOF >conftest.sed
1516 s/[\\$]/&&/g;s/;s,x,x,$//
1518 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1522 # expand $ac_aux_dir to an absolute path
1523 am_aux_dir=`cd $ac_aux_dir && pwd`
1525 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1526 # Use eval to expand $SHELL
1527 if eval "$MISSING --run true"; then
1528 am_missing_run="$MISSING --run "
1531 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1532 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1535 for ac_prog in gawk mawk nawk awk
1537 # Extract the first word of "$ac_prog", so it can be a program name with args.
1538 set dummy $ac_prog; ac_word=$2
1539 echo "$as_me:$LINENO: checking for $ac_word" >&5
1540 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1541 if test "${ac_cv_prog_AWK+set}" = set; then
1542 echo $ECHO_N "(cached) $ECHO_C" >&6
1544 if test -n "$AWK"; then
1545 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1551 test -z "$as_dir" && as_dir=.
1552 for ac_exec_ext in '' $ac_executable_extensions; do
1553 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1554 ac_cv_prog_AWK="$ac_prog"
1555 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1564 if test -n "$AWK"; then
1565 echo "$as_me:$LINENO: result: $AWK" >&5
1566 echo "${ECHO_T}$AWK" >&6
1568 echo "$as_me:$LINENO: result: no" >&5
1569 echo "${ECHO_T}no" >&6
1572 test -n "$AWK" && break
1575 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1576 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1577 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1578 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1579 echo $ECHO_N "(cached) $ECHO_C" >&6
1581 cat >conftest.make <<\_ACEOF
1583 @echo 'ac_maketemp="$(MAKE)"'
1585 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1586 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1587 if test -n "$ac_maketemp"; then
1588 eval ac_cv_prog_make_${ac_make}_set=yes
1590 eval ac_cv_prog_make_${ac_make}_set=no
1594 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1595 echo "$as_me:$LINENO: result: yes" >&5
1596 echo "${ECHO_T}yes" >&6
1599 echo "$as_me:$LINENO: result: no" >&5
1600 echo "${ECHO_T}no" >&6
1601 SET_MAKE="MAKE=${MAKE-make}"
1604 # test to see if srcdir already configured
1605 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1606 test -f $srcdir/config.status; then
1607 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1608 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1609 { (exit 1); exit 1; }; }
1612 # test whether we have cygpath
1613 if test -z "$CYGPATH_W"; then
1614 if (cygpath --version) >/dev/null 2>/dev/null; then
1615 CYGPATH_W='cygpath -w'
1622 # Define the identity of the package.
1627 cat >>confdefs.h <<_ACEOF
1628 #define PACKAGE "$PACKAGE"
1632 cat >>confdefs.h <<_ACEOF
1633 #define VERSION "$VERSION"
1636 # Some tools Automake needs.
1638 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1641 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1644 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1647 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1650 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1653 AMTAR=${AMTAR-"${am_missing_run}tar"}
1655 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1657 # Installed binaries are usually stripped using `strip' when the user
1658 # run `make install-strip'. However `strip' might not be the right
1659 # tool to use in cross-compilation environments, therefore Automake
1660 # will honor the `STRIP' environment variable to overrule this program.
1661 if test "$cross_compiling" != no; then
1662 if test -n "$ac_tool_prefix"; then
1663 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1664 set dummy ${ac_tool_prefix}strip; ac_word=$2
1665 echo "$as_me:$LINENO: checking for $ac_word" >&5
1666 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1667 if test "${ac_cv_prog_STRIP+set}" = set; then
1668 echo $ECHO_N "(cached) $ECHO_C" >&6
1670 if test -n "$STRIP"; then
1671 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1677 test -z "$as_dir" && as_dir=.
1678 for ac_exec_ext in '' $ac_executable_extensions; do
1679 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1680 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1681 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1689 STRIP=$ac_cv_prog_STRIP
1690 if test -n "$STRIP"; then
1691 echo "$as_me:$LINENO: result: $STRIP" >&5
1692 echo "${ECHO_T}$STRIP" >&6
1694 echo "$as_me:$LINENO: result: no" >&5
1695 echo "${ECHO_T}no" >&6
1699 if test -z "$ac_cv_prog_STRIP"; then
1701 # Extract the first word of "strip", so it can be a program name with args.
1702 set dummy strip; ac_word=$2
1703 echo "$as_me:$LINENO: checking for $ac_word" >&5
1704 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1705 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1706 echo $ECHO_N "(cached) $ECHO_C" >&6
1708 if test -n "$ac_ct_STRIP"; then
1709 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1715 test -z "$as_dir" && as_dir=.
1716 for ac_exec_ext in '' $ac_executable_extensions; do
1717 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1718 ac_cv_prog_ac_ct_STRIP="strip"
1719 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1725 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1728 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1729 if test -n "$ac_ct_STRIP"; then
1730 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1731 echo "${ECHO_T}$ac_ct_STRIP" >&6
1733 echo "$as_me:$LINENO: result: no" >&5
1734 echo "${ECHO_T}no" >&6
1739 STRIP="$ac_cv_prog_STRIP"
1743 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1745 # We need awk for the "check" target. The system "awk" is bad on
1752 cat >>confdefs.h <<\_ACEOF
1753 #define _GNU_SOURCE 1
1758 echo "$as_me:$LINENO: checking for perl5.003 or newer" >&5
1759 echo $ECHO_N "checking for perl5.003 or newer... $ECHO_C" >&6
1760 if test "${PERL+set}" = set; then
1761 # `PERL' is set in the user's environment.
1762 candidate_perl_names="$PERL"
1765 candidate_perl_names='perl perl5'
1771 PERL="$missing_dir/missing perl"
1772 for perl in $candidate_perl_names; do
1773 # Run test in a subshell; some versions of sh will print an error if
1774 # an executable is not found, even if stderr is redirected.
1775 if ( $perl -e 'require 5.003; use File::Compare' ) > /dev/null 2>&1; then
1782 echo "$as_me:$LINENO: result: $found" >&5
1783 echo "${ECHO_T}$found" >&6
1784 test $found = no && { echo "$as_me:$LINENO: WARNING:
1785 WARNING: You don't seem to have perl5.003 or newer installed, or you lack
1786 a usable version of the Perl File::Compare module. As a result,
1787 you may be unable to run a few tests or to regenerate certain
1788 files if you modify the sources from which they are derived.
1790 echo "$as_me: WARNING:
1791 WARNING: You don't seem to have perl5.003 or newer installed, or you lack
1792 a usable version of the Perl File::Compare module. As a result,
1793 you may be unable to run a few tests or to regenerate certain
1794 files if you modify the sources from which they are derived.
1798 ac_cpp='$CPP $CPPFLAGS'
1799 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1800 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1801 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1802 if test -n "$ac_tool_prefix"; then
1803 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1804 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1805 echo "$as_me:$LINENO: checking for $ac_word" >&5
1806 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1807 if test "${ac_cv_prog_CC+set}" = set; then
1808 echo $ECHO_N "(cached) $ECHO_C" >&6
1810 if test -n "$CC"; then
1811 ac_cv_prog_CC="$CC" # Let the user override the test.
1813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1817 test -z "$as_dir" && as_dir=.
1818 for ac_exec_ext in '' $ac_executable_extensions; do
1819 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1820 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1821 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1830 if test -n "$CC"; then
1831 echo "$as_me:$LINENO: result: $CC" >&5
1832 echo "${ECHO_T}$CC" >&6
1834 echo "$as_me:$LINENO: result: no" >&5
1835 echo "${ECHO_T}no" >&6
1839 if test -z "$ac_cv_prog_CC"; then
1841 # Extract the first word of "gcc", so it can be a program name with args.
1842 set dummy gcc; ac_word=$2
1843 echo "$as_me:$LINENO: checking for $ac_word" >&5
1844 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1845 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1846 echo $ECHO_N "(cached) $ECHO_C" >&6
1848 if test -n "$ac_ct_CC"; then
1849 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1855 test -z "$as_dir" && as_dir=.
1856 for ac_exec_ext in '' $ac_executable_extensions; do
1857 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1858 ac_cv_prog_ac_ct_CC="gcc"
1859 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1867 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1868 if test -n "$ac_ct_CC"; then
1869 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1870 echo "${ECHO_T}$ac_ct_CC" >&6
1872 echo "$as_me:$LINENO: result: no" >&5
1873 echo "${ECHO_T}no" >&6
1881 if test -z "$CC"; then
1882 if test -n "$ac_tool_prefix"; then
1883 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1884 set dummy ${ac_tool_prefix}cc; ac_word=$2
1885 echo "$as_me:$LINENO: checking for $ac_word" >&5
1886 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1887 if test "${ac_cv_prog_CC+set}" = set; then
1888 echo $ECHO_N "(cached) $ECHO_C" >&6
1890 if test -n "$CC"; then
1891 ac_cv_prog_CC="$CC" # Let the user override the test.
1893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1897 test -z "$as_dir" && as_dir=.
1898 for ac_exec_ext in '' $ac_executable_extensions; do
1899 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1900 ac_cv_prog_CC="${ac_tool_prefix}cc"
1901 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1910 if test -n "$CC"; then
1911 echo "$as_me:$LINENO: result: $CC" >&5
1912 echo "${ECHO_T}$CC" >&6
1914 echo "$as_me:$LINENO: result: no" >&5
1915 echo "${ECHO_T}no" >&6
1919 if test -z "$ac_cv_prog_CC"; then
1921 # Extract the first word of "cc", so it can be a program name with args.
1922 set dummy cc; ac_word=$2
1923 echo "$as_me:$LINENO: checking for $ac_word" >&5
1924 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1925 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1926 echo $ECHO_N "(cached) $ECHO_C" >&6
1928 if test -n "$ac_ct_CC"; then
1929 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1935 test -z "$as_dir" && as_dir=.
1936 for ac_exec_ext in '' $ac_executable_extensions; do
1937 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1938 ac_cv_prog_ac_ct_CC="cc"
1939 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1947 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1948 if test -n "$ac_ct_CC"; then
1949 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1950 echo "${ECHO_T}$ac_ct_CC" >&6
1952 echo "$as_me:$LINENO: result: no" >&5
1953 echo "${ECHO_T}no" >&6
1962 if test -z "$CC"; then
1963 # Extract the first word of "cc", so it can be a program name with args.
1964 set dummy cc; ac_word=$2
1965 echo "$as_me:$LINENO: checking for $ac_word" >&5
1966 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1967 if test "${ac_cv_prog_CC+set}" = set; then
1968 echo $ECHO_N "(cached) $ECHO_C" >&6
1970 if test -n "$CC"; then
1971 ac_cv_prog_CC="$CC" # Let the user override the test.
1974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1978 test -z "$as_dir" && as_dir=.
1979 for ac_exec_ext in '' $ac_executable_extensions; do
1980 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1981 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1982 ac_prog_rejected=yes
1986 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1992 if test $ac_prog_rejected = yes; then
1993 # We found a bogon in the path, so make sure we never use it.
1994 set dummy $ac_cv_prog_CC
1996 if test $# != 0; then
1997 # We chose a different compiler from the bogus one.
1998 # However, it has the same basename, so the bogon will be chosen
1999 # first if we set CC to just the basename; use the full file name.
2001 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2007 if test -n "$CC"; then
2008 echo "$as_me:$LINENO: result: $CC" >&5
2009 echo "${ECHO_T}$CC" >&6
2011 echo "$as_me:$LINENO: result: no" >&5
2012 echo "${ECHO_T}no" >&6
2016 if test -z "$CC"; then
2017 if test -n "$ac_tool_prefix"; then
2020 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2021 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2022 echo "$as_me:$LINENO: checking for $ac_word" >&5
2023 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2024 if test "${ac_cv_prog_CC+set}" = set; then
2025 echo $ECHO_N "(cached) $ECHO_C" >&6
2027 if test -n "$CC"; then
2028 ac_cv_prog_CC="$CC" # Let the user override the test.
2030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2034 test -z "$as_dir" && as_dir=.
2035 for ac_exec_ext in '' $ac_executable_extensions; do
2036 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2037 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2038 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2047 if test -n "$CC"; then
2048 echo "$as_me:$LINENO: result: $CC" >&5
2049 echo "${ECHO_T}$CC" >&6
2051 echo "$as_me:$LINENO: result: no" >&5
2052 echo "${ECHO_T}no" >&6
2055 test -n "$CC" && break
2058 if test -z "$CC"; then
2062 # Extract the first word of "$ac_prog", so it can be a program name with args.
2063 set dummy $ac_prog; ac_word=$2
2064 echo "$as_me:$LINENO: checking for $ac_word" >&5
2065 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2066 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2067 echo $ECHO_N "(cached) $ECHO_C" >&6
2069 if test -n "$ac_ct_CC"; then
2070 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2076 test -z "$as_dir" && as_dir=.
2077 for ac_exec_ext in '' $ac_executable_extensions; do
2078 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2079 ac_cv_prog_ac_ct_CC="$ac_prog"
2080 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2088 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2089 if test -n "$ac_ct_CC"; then
2090 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2091 echo "${ECHO_T}$ac_ct_CC" >&6
2093 echo "$as_me:$LINENO: result: no" >&5
2094 echo "${ECHO_T}no" >&6
2097 test -n "$ac_ct_CC" && break
2106 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2107 See \`config.log' for more details." >&5
2108 echo "$as_me: error: no acceptable C compiler found in \$PATH
2109 See \`config.log' for more details." >&2;}
2110 { (exit 1); exit 1; }; }
2112 # Provide some information about the compiler.
2113 echo "$as_me:$LINENO:" \
2114 "checking for C compiler version" >&5
2115 ac_compiler=`set X $ac_compile; echo $2`
2116 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2117 (eval $ac_compiler --version </dev/null >&5) 2>&5
2119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2120 (exit $ac_status); }
2121 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2122 (eval $ac_compiler -v </dev/null >&5) 2>&5
2124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2125 (exit $ac_status); }
2126 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2127 (eval $ac_compiler -V </dev/null >&5) 2>&5
2129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2130 (exit $ac_status); }
2132 cat >conftest.$ac_ext <<_ACEOF
2133 #line $LINENO "configure"
2136 cat confdefs.h >>conftest.$ac_ext
2137 cat >>conftest.$ac_ext <<_ACEOF
2138 /* end confdefs.h. */
2148 ac_clean_files_save=$ac_clean_files
2149 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2150 # Try to create an executable without -o first, disregard a.out.
2151 # It will help us diagnose broken compilers, and finding out an intuition
2153 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2154 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2155 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2156 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2157 (eval $ac_link_default) 2>&5
2159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2160 (exit $ac_status); }; then
2161 # Find the output, starting from the most likely. This scheme is
2162 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2165 # Be careful to initialize this variable, since it used to be cached.
2166 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2168 # b.out is created by i960 compilers.
2169 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2171 test -f "$ac_file" || continue
2173 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2176 # This is the source file.
2179 # We found the default executable, but exeext='' is most
2183 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2184 # FIXME: I believe we export ac_cv_exeext for Libtool,
2185 # but it would be cool to find out if it's true. Does anybody
2186 # maintain Libtool? --akim.
2194 echo "$as_me: failed program was:" >&5
2195 sed 's/^/| /' conftest.$ac_ext >&5
2197 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2198 See \`config.log' for more details." >&5
2199 echo "$as_me: error: C compiler cannot create executables
2200 See \`config.log' for more details." >&2;}
2201 { (exit 77); exit 77; }; }
2204 ac_exeext=$ac_cv_exeext
2205 echo "$as_me:$LINENO: result: $ac_file" >&5
2206 echo "${ECHO_T}$ac_file" >&6
2208 # Check the compiler produces executables we can run. If not, either
2209 # the compiler is broken, or we cross compile.
2210 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2211 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2212 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2213 # If not cross compiling, check that we can run a simple program.
2214 if test "$cross_compiling" != yes; then
2215 if { ac_try='./$ac_file'
2216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2220 (exit $ac_status); }; }; then
2223 if test "$cross_compiling" = maybe; then
2226 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2227 If you meant to cross compile, use \`--host'.
2228 See \`config.log' for more details." >&5
2229 echo "$as_me: error: cannot run C compiled programs.
2230 If you meant to cross compile, use \`--host'.
2231 See \`config.log' for more details." >&2;}
2232 { (exit 1); exit 1; }; }
2236 echo "$as_me:$LINENO: result: yes" >&5
2237 echo "${ECHO_T}yes" >&6
2239 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2240 ac_clean_files=$ac_clean_files_save
2241 # Check the compiler produces executables we can run. If not, either
2242 # the compiler is broken, or we cross compile.
2243 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2244 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2245 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2246 echo "${ECHO_T}$cross_compiling" >&6
2248 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2249 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2250 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2251 (eval $ac_link) 2>&5
2253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2254 (exit $ac_status); }; then
2255 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2256 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2257 # work properly (i.e., refer to `conftest.exe'), while it won't with
2259 for ac_file in conftest.exe conftest conftest.*; do
2260 test -f "$ac_file" || continue
2262 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2263 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2270 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2271 See \`config.log' for more details." >&5
2272 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2273 See \`config.log' for more details." >&2;}
2274 { (exit 1); exit 1; }; }
2277 rm -f conftest$ac_cv_exeext
2278 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2279 echo "${ECHO_T}$ac_cv_exeext" >&6
2281 rm -f conftest.$ac_ext
2282 EXEEXT=$ac_cv_exeext
2284 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2285 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2286 if test "${ac_cv_objext+set}" = set; then
2287 echo $ECHO_N "(cached) $ECHO_C" >&6
2289 cat >conftest.$ac_ext <<_ACEOF
2290 #line $LINENO "configure"
2293 cat confdefs.h >>conftest.$ac_ext
2294 cat >>conftest.$ac_ext <<_ACEOF
2295 /* end confdefs.h. */
2305 rm -f conftest.o conftest.obj
2306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2307 (eval $ac_compile) 2>&5
2309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2310 (exit $ac_status); }; then
2311 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2313 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2314 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2319 echo "$as_me: failed program was:" >&5
2320 sed 's/^/| /' conftest.$ac_ext >&5
2322 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2323 See \`config.log' for more details." >&5
2324 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2325 See \`config.log' for more details." >&2;}
2326 { (exit 1); exit 1; }; }
2329 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2331 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2332 echo "${ECHO_T}$ac_cv_objext" >&6
2333 OBJEXT=$ac_cv_objext
2335 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2336 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2337 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2338 echo $ECHO_N "(cached) $ECHO_C" >&6
2340 cat >conftest.$ac_ext <<_ACEOF
2341 #line $LINENO "configure"
2344 cat confdefs.h >>conftest.$ac_ext
2345 cat >>conftest.$ac_ext <<_ACEOF
2346 /* end confdefs.h. */
2359 rm -f conftest.$ac_objext
2360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2361 (eval $ac_compile) 2>&5
2363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2364 (exit $ac_status); } &&
2365 { ac_try='test -s conftest.$ac_objext'
2366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2370 (exit $ac_status); }; }; then
2373 echo "$as_me: failed program was:" >&5
2374 sed 's/^/| /' conftest.$ac_ext >&5
2378 rm -f conftest.$ac_objext conftest.$ac_ext
2379 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2382 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2383 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2384 GCC=`test $ac_compiler_gnu = yes && echo yes`
2385 ac_test_CFLAGS=${CFLAGS+set}
2386 ac_save_CFLAGS=$CFLAGS
2388 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2389 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2390 if test "${ac_cv_prog_cc_g+set}" = set; then
2391 echo $ECHO_N "(cached) $ECHO_C" >&6
2393 cat >conftest.$ac_ext <<_ACEOF
2394 #line $LINENO "configure"
2397 cat confdefs.h >>conftest.$ac_ext
2398 cat >>conftest.$ac_ext <<_ACEOF
2399 /* end confdefs.h. */
2409 rm -f conftest.$ac_objext
2410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2411 (eval $ac_compile) 2>&5
2413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2414 (exit $ac_status); } &&
2415 { ac_try='test -s conftest.$ac_objext'
2416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2420 (exit $ac_status); }; }; then
2423 echo "$as_me: failed program was:" >&5
2424 sed 's/^/| /' conftest.$ac_ext >&5
2428 rm -f conftest.$ac_objext conftest.$ac_ext
2430 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2431 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2432 if test "$ac_test_CFLAGS" = set; then
2433 CFLAGS=$ac_save_CFLAGS
2434 elif test $ac_cv_prog_cc_g = yes; then
2435 if test "$GCC" = yes; then
2441 if test "$GCC" = yes; then
2447 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2448 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2449 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2450 echo $ECHO_N "(cached) $ECHO_C" >&6
2452 ac_cv_prog_cc_stdc=no
2454 cat >conftest.$ac_ext <<_ACEOF
2455 #line $LINENO "configure"
2458 cat confdefs.h >>conftest.$ac_ext
2459 cat >>conftest.$ac_ext <<_ACEOF
2460 /* end confdefs.h. */
2463 #include <sys/types.h>
2464 #include <sys/stat.h>
2465 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2466 struct buf { int x; };
2467 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2468 static char *e (p, i)
2474 static char *f (char * (*g) (char **, int), char **p, ...)
2479 s = g (p, va_arg (v,int));
2483 int test (int i, double x);
2484 struct s1 {int (*f) (int a);};
2485 struct s2 {int (*f) (double a);};
2486 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2492 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2497 # Don't try gcc -ansi; that turns off useful extensions and
2498 # breaks some systems' header files.
2499 # AIX -qlanglvl=ansi
2500 # Ultrix and OSF/1 -std1
2501 # HP-UX 10.20 and later -Ae
2502 # HP-UX older versions -Aa -D_HPUX_SOURCE
2503 # SVR4 -Xc -D__EXTENSIONS__
2504 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2506 CC="$ac_save_CC $ac_arg"
2507 rm -f conftest.$ac_objext
2508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2509 (eval $ac_compile) 2>&5
2511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2512 (exit $ac_status); } &&
2513 { ac_try='test -s conftest.$ac_objext'
2514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2518 (exit $ac_status); }; }; then
2519 ac_cv_prog_cc_stdc=$ac_arg
2522 echo "$as_me: failed program was:" >&5
2523 sed 's/^/| /' conftest.$ac_ext >&5
2526 rm -f conftest.$ac_objext
2528 rm -f conftest.$ac_ext conftest.$ac_objext
2533 case "x$ac_cv_prog_cc_stdc" in
2535 echo "$as_me:$LINENO: result: none needed" >&5
2536 echo "${ECHO_T}none needed" >&6 ;;
2538 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2539 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2540 CC="$CC $ac_cv_prog_cc_stdc" ;;
2543 # Some people use a C++ compiler to compile C. Since we use `exit',
2544 # in C++ we need to declare it. In case someone uses the same compiler
2545 # for both compiling C and C++ we need to have the C++ compiler decide
2546 # the declaration of exit, since it's the most demanding environment.
2547 cat >conftest.$ac_ext <<_ACEOF
2552 rm -f conftest.$ac_objext
2553 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2554 (eval $ac_compile) 2>&5
2556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2557 (exit $ac_status); } &&
2558 { ac_try='test -s conftest.$ac_objext'
2559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2563 (exit $ac_status); }; }; then
2564 for ac_declaration in \
2566 '#include <stdlib.h>' \
2567 'extern "C" void std::exit (int) throw (); using std::exit;' \
2568 'extern "C" void std::exit (int); using std::exit;' \
2569 'extern "C" void exit (int) throw ();' \
2570 'extern "C" void exit (int);' \
2573 cat >conftest.$ac_ext <<_ACEOF
2574 #line $LINENO "configure"
2577 cat confdefs.h >>conftest.$ac_ext
2578 cat >>conftest.$ac_ext <<_ACEOF
2579 /* end confdefs.h. */
2590 rm -f conftest.$ac_objext
2591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2592 (eval $ac_compile) 2>&5
2594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2595 (exit $ac_status); } &&
2596 { ac_try='test -s conftest.$ac_objext'
2597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2601 (exit $ac_status); }; }; then
2604 echo "$as_me: failed program was:" >&5
2605 sed 's/^/| /' conftest.$ac_ext >&5
2609 rm -f conftest.$ac_objext conftest.$ac_ext
2610 cat >conftest.$ac_ext <<_ACEOF
2611 #line $LINENO "configure"
2614 cat confdefs.h >>conftest.$ac_ext
2615 cat >>conftest.$ac_ext <<_ACEOF
2616 /* end confdefs.h. */
2626 rm -f conftest.$ac_objext
2627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2628 (eval $ac_compile) 2>&5
2630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2631 (exit $ac_status); } &&
2632 { ac_try='test -s conftest.$ac_objext'
2633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2637 (exit $ac_status); }; }; then
2640 echo "$as_me: failed program was:" >&5
2641 sed 's/^/| /' conftest.$ac_ext >&5
2644 rm -f conftest.$ac_objext conftest.$ac_ext
2647 if test -n "$ac_declaration"; then
2648 echo '#ifdef __cplusplus' >>confdefs.h
2649 echo $ac_declaration >>confdefs.h
2650 echo '#endif' >>confdefs.h
2654 echo "$as_me: failed program was:" >&5
2655 sed 's/^/| /' conftest.$ac_ext >&5
2658 rm -f conftest.$ac_objext conftest.$ac_ext
2660 ac_cpp='$CPP $CPPFLAGS'
2661 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2662 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2663 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2664 rm -f .deps 2>/dev/null
2665 mkdir .deps 2>/dev/null
2666 if test -d .deps; then
2669 # MS-DOS does not allow filenames that begin with a dot.
2672 rmdir .deps 2>/dev/null
2675 ac_config_commands="$ac_config_commands depfiles"
2678 am_make=${MAKE-make}
2679 cat > confinc << 'END'
2683 # If we don't find an include directive, just comment out the code.
2684 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2685 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2689 # First try GNU make style include.
2690 echo "include confinc" > confmf
2691 # We grep out `Entering directory' and `Leaving directory'
2692 # messages which can occur if `w' ends up in MAKEFLAGS.
2693 # In particular we don't look at `^make:' because GNU make might
2694 # be invoked under some other name (usually "gmake"), in which
2695 # case it prints its new name instead of `make'.
2696 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2701 # Now try BSD make style include.
2702 if test "$am__include" = "#"; then
2703 echo '.include "confinc"' > confmf
2704 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2705 am__include=.include
2712 echo "$as_me:$LINENO: result: $_am_result" >&5
2713 echo "${ECHO_T}$_am_result" >&6
2714 rm -f confinc confmf
2716 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2717 if test "${enable_dependency_tracking+set}" = set; then
2718 enableval="$enable_dependency_tracking"
2721 if test "x$enable_dependency_tracking" != xno; then
2722 am_depcomp="$ac_aux_dir/depcomp"
2727 if test "x$enable_dependency_tracking" != xno; then
2738 depcc="$CC" am_compiler_list=
2740 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2741 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2742 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2743 echo $ECHO_N "(cached) $ECHO_C" >&6
2745 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2746 # We make a subdir and do the tests there. Otherwise we can end up
2747 # making bogus files that we don't know about and never remove. For
2748 # instance it was reported that on HP-UX the gcc test will end up
2749 # making a dummy file named `D' -- because `-MD' means `put the output
2752 # Copy depcomp to subdir because otherwise we won't find it if we're
2753 # using a relative directory.
2754 cp "$am_depcomp" conftest.dir
2757 am_cv_CC_dependencies_compiler_type=none
2758 if test "$am_compiler_list" = ""; then
2759 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2761 for depmode in $am_compiler_list; do
2762 # We need to recreate these files for each test, as the compiler may
2763 # overwrite some of them when testing with obscure command lines.
2764 # This happens at least with the AIX C compiler.
2765 echo '#include "conftest.h"' > conftest.c
2766 echo 'int i;' > conftest.h
2767 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2771 # after this tag, mechanisms are not by side-effect, so they'll
2772 # only be used when explicitly requested
2773 if test "x$enable_dependency_tracking" = xyes; then
2781 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2782 # mode. It turns out that the SunPro C++ compiler does not properly
2783 # handle `-M -o', and we need to detect this.
2784 if depmode=$depmode \
2785 source=conftest.c object=conftest.o \
2786 depfile=conftest.Po tmpdepfile=conftest.TPo \
2787 $SHELL ./depcomp $depcc -c -o conftest.o conftest.c >/dev/null 2>&1 &&
2788 grep conftest.h conftest.Po > /dev/null 2>&1 &&
2789 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2790 am_cv_CC_dependencies_compiler_type=$depmode
2798 am_cv_CC_dependencies_compiler_type=none
2802 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2803 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2804 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2809 test "x$enable_dependency_tracking" != xno \
2810 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2812 am__fastdepCC_FALSE='#'
2814 am__fastdepCC_TRUE='#'
2815 am__fastdepCC_FALSE=
2820 ac_cpp='$CPP $CPPFLAGS'
2821 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2822 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2823 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2824 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2825 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2826 # On Suns, sometimes $CPP names a directory.
2827 if test -n "$CPP" && test -d "$CPP"; then
2830 if test -z "$CPP"; then
2831 if test "${ac_cv_prog_CPP+set}" = set; then
2832 echo $ECHO_N "(cached) $ECHO_C" >&6
2834 # Double quotes because CPP needs to be expanded
2835 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2838 for ac_c_preproc_warn_flag in '' yes
2840 # Use a header file that comes with gcc, so configuring glibc
2841 # with a fresh cross-compiler works.
2842 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2843 # <limits.h> exists even on freestanding compilers.
2844 # On the NeXT, cc -E runs the code through the compiler's parser,
2845 # not just through cpp. "Syntax error" is here to catch this case.
2846 cat >conftest.$ac_ext <<_ACEOF
2847 #line $LINENO "configure"
2850 cat confdefs.h >>conftest.$ac_ext
2851 cat >>conftest.$ac_ext <<_ACEOF
2852 /* end confdefs.h. */
2854 # include <limits.h>
2856 # include <assert.h>
2860 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2861 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2863 grep -v '^ *+' conftest.er1 >conftest.err
2865 cat conftest.err >&5
2866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2867 (exit $ac_status); } >/dev/null; then
2868 if test -s conftest.err; then
2869 ac_cpp_err=$ac_c_preproc_warn_flag
2876 if test -z "$ac_cpp_err"; then
2879 echo "$as_me: failed program was:" >&5
2880 sed 's/^/| /' conftest.$ac_ext >&5
2882 # Broken: fails on valid input.
2885 rm -f conftest.err conftest.$ac_ext
2887 # OK, works on sane cases. Now check whether non-existent headers
2888 # can be detected and how.
2889 cat >conftest.$ac_ext <<_ACEOF
2890 #line $LINENO "configure"
2893 cat confdefs.h >>conftest.$ac_ext
2894 cat >>conftest.$ac_ext <<_ACEOF
2895 /* end confdefs.h. */
2896 #include <ac_nonexistent.h>
2898 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2899 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2901 grep -v '^ *+' conftest.er1 >conftest.err
2903 cat conftest.err >&5
2904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2905 (exit $ac_status); } >/dev/null; then
2906 if test -s conftest.err; then
2907 ac_cpp_err=$ac_c_preproc_warn_flag
2914 if test -z "$ac_cpp_err"; then
2915 # Broken: success on invalid input.
2918 echo "$as_me: failed program was:" >&5
2919 sed 's/^/| /' conftest.$ac_ext >&5
2921 # Passes both tests.
2925 rm -f conftest.err conftest.$ac_ext
2928 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2929 rm -f conftest.err conftest.$ac_ext
2930 if $ac_preproc_ok; then
2942 echo "$as_me:$LINENO: result: $CPP" >&5
2943 echo "${ECHO_T}$CPP" >&6
2945 for ac_c_preproc_warn_flag in '' yes
2947 # Use a header file that comes with gcc, so configuring glibc
2948 # with a fresh cross-compiler works.
2949 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2950 # <limits.h> exists even on freestanding compilers.
2951 # On the NeXT, cc -E runs the code through the compiler's parser,
2952 # not just through cpp. "Syntax error" is here to catch this case.
2953 cat >conftest.$ac_ext <<_ACEOF
2954 #line $LINENO "configure"
2957 cat confdefs.h >>conftest.$ac_ext
2958 cat >>conftest.$ac_ext <<_ACEOF
2959 /* end confdefs.h. */
2961 # include <limits.h>
2963 # include <assert.h>
2967 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2968 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2970 grep -v '^ *+' conftest.er1 >conftest.err
2972 cat conftest.err >&5
2973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2974 (exit $ac_status); } >/dev/null; then
2975 if test -s conftest.err; then
2976 ac_cpp_err=$ac_c_preproc_warn_flag
2983 if test -z "$ac_cpp_err"; then
2986 echo "$as_me: failed program was:" >&5
2987 sed 's/^/| /' conftest.$ac_ext >&5
2989 # Broken: fails on valid input.
2992 rm -f conftest.err conftest.$ac_ext
2994 # OK, works on sane cases. Now check whether non-existent headers
2995 # can be detected and how.
2996 cat >conftest.$ac_ext <<_ACEOF
2997 #line $LINENO "configure"
3000 cat confdefs.h >>conftest.$ac_ext
3001 cat >>conftest.$ac_ext <<_ACEOF
3002 /* end confdefs.h. */
3003 #include <ac_nonexistent.h>
3005 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3006 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3008 grep -v '^ *+' conftest.er1 >conftest.err
3010 cat conftest.err >&5
3011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3012 (exit $ac_status); } >/dev/null; then
3013 if test -s conftest.err; then
3014 ac_cpp_err=$ac_c_preproc_warn_flag
3021 if test -z "$ac_cpp_err"; then
3022 # Broken: success on invalid input.
3025 echo "$as_me: failed program was:" >&5
3026 sed 's/^/| /' conftest.$ac_ext >&5
3028 # Passes both tests.
3032 rm -f conftest.err conftest.$ac_ext
3035 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3036 rm -f conftest.err conftest.$ac_ext
3037 if $ac_preproc_ok; then
3040 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3041 See \`config.log' for more details." >&5
3042 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3043 See \`config.log' for more details." >&2;}
3044 { (exit 1); exit 1; }; }
3048 ac_cpp='$CPP $CPPFLAGS'
3049 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3050 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3051 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3055 echo "$as_me:$LINENO: checking for egrep" >&5
3056 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3057 if test "${ac_cv_prog_egrep+set}" = set; then
3058 echo $ECHO_N "(cached) $ECHO_C" >&6
3060 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3061 then ac_cv_prog_egrep='grep -E'
3062 else ac_cv_prog_egrep='egrep'
3065 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3066 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3067 EGREP=$ac_cv_prog_egrep
3070 if test $ac_cv_c_compiler_gnu = yes; then
3071 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3072 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3073 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3074 echo $ECHO_N "(cached) $ECHO_C" >&6
3076 ac_pattern="Autoconf.*'x'"
3077 cat >conftest.$ac_ext <<_ACEOF
3078 #line $LINENO "configure"
3081 cat confdefs.h >>conftest.$ac_ext
3082 cat >>conftest.$ac_ext <<_ACEOF
3083 /* end confdefs.h. */
3087 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3088 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3089 ac_cv_prog_gcc_traditional=yes
3091 ac_cv_prog_gcc_traditional=no
3096 if test $ac_cv_prog_gcc_traditional = no; then
3097 cat >conftest.$ac_ext <<_ACEOF
3098 #line $LINENO "configure"
3101 cat confdefs.h >>conftest.$ac_ext
3102 cat >>conftest.$ac_ext <<_ACEOF
3103 /* end confdefs.h. */
3107 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3108 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3109 ac_cv_prog_gcc_traditional=yes
3115 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3116 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3117 if test $ac_cv_prog_gcc_traditional = yes; then
3118 CC="$CC -traditional"
3122 if test -n "$ac_tool_prefix"; then
3123 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3124 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3125 echo "$as_me:$LINENO: checking for $ac_word" >&5
3126 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3127 if test "${ac_cv_prog_RANLIB+set}" = set; then
3128 echo $ECHO_N "(cached) $ECHO_C" >&6
3130 if test -n "$RANLIB"; then
3131 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3137 test -z "$as_dir" && as_dir=.
3138 for ac_exec_ext in '' $ac_executable_extensions; do
3139 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3140 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3141 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3149 RANLIB=$ac_cv_prog_RANLIB
3150 if test -n "$RANLIB"; then
3151 echo "$as_me:$LINENO: result: $RANLIB" >&5
3152 echo "${ECHO_T}$RANLIB" >&6
3154 echo "$as_me:$LINENO: result: no" >&5
3155 echo "${ECHO_T}no" >&6
3159 if test -z "$ac_cv_prog_RANLIB"; then
3160 ac_ct_RANLIB=$RANLIB
3161 # Extract the first word of "ranlib", so it can be a program name with args.
3162 set dummy ranlib; ac_word=$2
3163 echo "$as_me:$LINENO: checking for $ac_word" >&5
3164 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3165 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3166 echo $ECHO_N "(cached) $ECHO_C" >&6
3168 if test -n "$ac_ct_RANLIB"; then
3169 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3175 test -z "$as_dir" && as_dir=.
3176 for ac_exec_ext in '' $ac_executable_extensions; do
3177 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3178 ac_cv_prog_ac_ct_RANLIB="ranlib"
3179 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3185 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3188 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3189 if test -n "$ac_ct_RANLIB"; then
3190 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3191 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3193 echo "$as_me:$LINENO: result: no" >&5
3194 echo "${ECHO_T}no" >&6
3197 RANLIB=$ac_ct_RANLIB
3199 RANLIB="$ac_cv_prog_RANLIB"
3203 echo "$as_me:$LINENO: checking for AIX" >&5
3204 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3205 cat >conftest.$ac_ext <<_ACEOF
3206 #line $LINENO "configure"
3209 cat confdefs.h >>conftest.$ac_ext
3210 cat >>conftest.$ac_ext <<_ACEOF
3211 /* end confdefs.h. */
3217 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3218 $EGREP "yes" >/dev/null 2>&1; then
3219 echo "$as_me:$LINENO: result: yes" >&5
3220 echo "${ECHO_T}yes" >&6
3221 cat >>confdefs.h <<\_ACEOF
3222 #define _ALL_SOURCE 1
3226 echo "$as_me:$LINENO: result: no" >&5
3227 echo "${ECHO_T}no" >&6
3232 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3233 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3234 if test "${ac_cv_header_stdc+set}" = set; then
3235 echo $ECHO_N "(cached) $ECHO_C" >&6
3237 cat >conftest.$ac_ext <<_ACEOF
3238 #line $LINENO "configure"
3241 cat confdefs.h >>conftest.$ac_ext
3242 cat >>conftest.$ac_ext <<_ACEOF
3243 /* end confdefs.h. */
3257 rm -f conftest.$ac_objext
3258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3259 (eval $ac_compile) 2>&5
3261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3262 (exit $ac_status); } &&
3263 { ac_try='test -s conftest.$ac_objext'
3264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3268 (exit $ac_status); }; }; then
3269 ac_cv_header_stdc=yes
3271 echo "$as_me: failed program was:" >&5
3272 sed 's/^/| /' conftest.$ac_ext >&5
3274 ac_cv_header_stdc=no
3276 rm -f conftest.$ac_objext conftest.$ac_ext
3278 if test $ac_cv_header_stdc = yes; then
3279 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3280 cat >conftest.$ac_ext <<_ACEOF
3281 #line $LINENO "configure"
3284 cat confdefs.h >>conftest.$ac_ext
3285 cat >>conftest.$ac_ext <<_ACEOF
3286 /* end confdefs.h. */
3290 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3291 $EGREP "memchr" >/dev/null 2>&1; then
3294 ac_cv_header_stdc=no
3300 if test $ac_cv_header_stdc = yes; then
3301 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3302 cat >conftest.$ac_ext <<_ACEOF
3303 #line $LINENO "configure"
3306 cat confdefs.h >>conftest.$ac_ext
3307 cat >>conftest.$ac_ext <<_ACEOF
3308 /* end confdefs.h. */
3312 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3313 $EGREP "free" >/dev/null 2>&1; then
3316 ac_cv_header_stdc=no
3322 if test $ac_cv_header_stdc = yes; then
3323 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3324 if test "$cross_compiling" = yes; then
3327 cat >conftest.$ac_ext <<_ACEOF
3328 #line $LINENO "configure"
3331 cat confdefs.h >>conftest.$ac_ext
3332 cat >>conftest.$ac_ext <<_ACEOF
3333 /* end confdefs.h. */
3335 #if ((' ' & 0x0FF) == 0x020)
3336 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3337 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3339 # define ISLOWER(c) \
3340 (('a' <= (c) && (c) <= 'i') \
3341 || ('j' <= (c) && (c) <= 'r') \
3342 || ('s' <= (c) && (c) <= 'z'))
3343 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3346 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3351 for (i = 0; i < 256; i++)
3352 if (XOR (islower (i), ISLOWER (i))
3353 || toupper (i) != TOUPPER (i))
3358 rm -f conftest$ac_exeext
3359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3360 (eval $ac_link) 2>&5
3362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3363 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3368 (exit $ac_status); }; }; then
3371 echo "$as_me: program exited with status $ac_status" >&5
3372 echo "$as_me: failed program was:" >&5
3373 sed 's/^/| /' conftest.$ac_ext >&5
3376 ac_cv_header_stdc=no
3378 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3382 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3383 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3384 if test $ac_cv_header_stdc = yes; then
3386 cat >>confdefs.h <<\_ACEOF
3387 #define STDC_HEADERS 1
3392 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3402 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3403 inttypes.h stdint.h unistd.h
3405 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3406 echo "$as_me:$LINENO: checking for $ac_header" >&5
3407 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3408 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3409 echo $ECHO_N "(cached) $ECHO_C" >&6
3411 cat >conftest.$ac_ext <<_ACEOF
3412 #line $LINENO "configure"
3415 cat confdefs.h >>conftest.$ac_ext
3416 cat >>conftest.$ac_ext <<_ACEOF
3417 /* end confdefs.h. */
3418 $ac_includes_default
3420 #include <$ac_header>
3422 rm -f conftest.$ac_objext
3423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3424 (eval $ac_compile) 2>&5
3426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3427 (exit $ac_status); } &&
3428 { ac_try='test -s conftest.$ac_objext'
3429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3433 (exit $ac_status); }; }; then
3434 eval "$as_ac_Header=yes"
3436 echo "$as_me: failed program was:" >&5
3437 sed 's/^/| /' conftest.$ac_ext >&5
3439 eval "$as_ac_Header=no"
3441 rm -f conftest.$ac_objext conftest.$ac_ext
3443 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3444 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3445 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3446 cat >>confdefs.h <<_ACEOF
3447 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3455 if test "${ac_cv_header_minix_config_h+set}" = set; then
3456 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3457 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3458 if test "${ac_cv_header_minix_config_h+set}" = set; then
3459 echo $ECHO_N "(cached) $ECHO_C" >&6
3461 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3462 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3464 # Is the header compilable?
3465 echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3466 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
3467 cat >conftest.$ac_ext <<_ACEOF
3468 #line $LINENO "configure"
3471 cat confdefs.h >>conftest.$ac_ext
3472 cat >>conftest.$ac_ext <<_ACEOF
3473 /* end confdefs.h. */
3474 $ac_includes_default
3475 #include <minix/config.h>
3477 rm -f conftest.$ac_objext
3478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3479 (eval $ac_compile) 2>&5
3481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3482 (exit $ac_status); } &&
3483 { ac_try='test -s conftest.$ac_objext'
3484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3488 (exit $ac_status); }; }; then
3489 ac_header_compiler=yes
3491 echo "$as_me: failed program was:" >&5
3492 sed 's/^/| /' conftest.$ac_ext >&5
3494 ac_header_compiler=no
3496 rm -f conftest.$ac_objext conftest.$ac_ext
3497 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3498 echo "${ECHO_T}$ac_header_compiler" >&6
3500 # Is the header present?
3501 echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3502 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
3503 cat >conftest.$ac_ext <<_ACEOF
3504 #line $LINENO "configure"
3507 cat confdefs.h >>conftest.$ac_ext
3508 cat >>conftest.$ac_ext <<_ACEOF
3509 /* end confdefs.h. */
3510 #include <minix/config.h>
3512 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3513 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3515 grep -v '^ *+' conftest.er1 >conftest.err
3517 cat conftest.err >&5
3518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3519 (exit $ac_status); } >/dev/null; then
3520 if test -s conftest.err; then
3521 ac_cpp_err=$ac_c_preproc_warn_flag
3528 if test -z "$ac_cpp_err"; then
3529 ac_header_preproc=yes
3531 echo "$as_me: failed program was:" >&5
3532 sed 's/^/| /' conftest.$ac_ext >&5
3534 ac_header_preproc=no
3536 rm -f conftest.err conftest.$ac_ext
3537 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3538 echo "${ECHO_T}$ac_header_preproc" >&6
3540 # So? What about this header?
3541 case $ac_header_compiler:$ac_header_preproc in
3543 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3544 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3545 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3546 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3549 ## ------------------------------------ ##
3550 ## Report this to bug-autoconf@gnu.org. ##
3551 ## ------------------------------------ ##
3554 sed "s/^/$as_me: WARNING: /" >&2
3557 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3558 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3559 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
3560 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
3561 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3562 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3565 ## ------------------------------------ ##
3566 ## Report this to bug-autoconf@gnu.org. ##
3567 ## ------------------------------------ ##
3570 sed "s/^/$as_me: WARNING: /" >&2
3573 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3574 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3575 if test "${ac_cv_header_minix_config_h+set}" = set; then
3576 echo $ECHO_N "(cached) $ECHO_C" >&6
3578 ac_cv_header_minix_config_h=$ac_header_preproc
3580 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3581 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3584 if test $ac_cv_header_minix_config_h = yes; then
3591 if test "$MINIX" = yes; then
3593 cat >>confdefs.h <<\_ACEOF
3594 #define _POSIX_SOURCE 1
3598 cat >>confdefs.h <<\_ACEOF
3599 #define _POSIX_1_SOURCE 2
3603 cat >>confdefs.h <<\_ACEOF
3611 for ac_func in uname
3613 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3614 echo "$as_me:$LINENO: checking for $ac_func" >&5
3615 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3616 if eval "test \"\${$as_ac_var+set}\" = set"; then
3617 echo $ECHO_N "(cached) $ECHO_C" >&6
3619 cat >conftest.$ac_ext <<_ACEOF
3620 #line $LINENO "configure"
3623 cat confdefs.h >>conftest.$ac_ext
3624 cat >>conftest.$ac_ext <<_ACEOF
3625 /* end confdefs.h. */
3626 /* System header to define __stub macros and hopefully few prototypes,
3627 which can conflict with char $ac_func (); below.
3628 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3629 <limits.h> exists even on freestanding compilers. */
3631 # include <limits.h>
3633 # include <assert.h>
3635 /* Override any gcc2 internal prototype to avoid an error. */
3640 /* We use char because int might match the return type of a gcc2
3641 builtin and then its argument prototype would still apply. */
3643 /* The GNU C library defines this for functions which it implements
3644 to always fail with ENOSYS. Some functions are actually named
3645 something starting with __ and the normal name is an alias. */
3646 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3649 char (*f) () = $ac_func;
3658 return f != $ac_func;
3663 rm -f conftest.$ac_objext conftest$ac_exeext
3664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3665 (eval $ac_link) 2>&5
3667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3668 (exit $ac_status); } &&
3669 { ac_try='test -s conftest$ac_exeext'
3670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3674 (exit $ac_status); }; }; then
3675 eval "$as_ac_var=yes"
3677 echo "$as_me: failed program was:" >&5
3678 sed 's/^/| /' conftest.$ac_ext >&5
3680 eval "$as_ac_var=no"
3682 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3684 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3685 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3686 if test `eval echo '${'$as_ac_var'}'` = yes; then
3687 cat >>confdefs.h <<_ACEOF
3688 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3690 OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS uname" MAN="$MAN uname.1"
3695 for ac_func in chroot
3697 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3698 echo "$as_me:$LINENO: checking for $ac_func" >&5
3699 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3700 if eval "test \"\${$as_ac_var+set}\" = set"; then
3701 echo $ECHO_N "(cached) $ECHO_C" >&6
3703 cat >conftest.$ac_ext <<_ACEOF
3704 #line $LINENO "configure"
3707 cat confdefs.h >>conftest.$ac_ext
3708 cat >>conftest.$ac_ext <<_ACEOF
3709 /* end confdefs.h. */
3710 /* System header to define __stub macros and hopefully few prototypes,
3711 which can conflict with char $ac_func (); below.
3712 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3713 <limits.h> exists even on freestanding compilers. */
3715 # include <limits.h>
3717 # include <assert.h>
3719 /* Override any gcc2 internal prototype to avoid an error. */
3724 /* We use char because int might match the return type of a gcc2
3725 builtin and then its argument prototype would still apply. */
3727 /* The GNU C library defines this for functions which it implements
3728 to always fail with ENOSYS. Some functions are actually named
3729 something starting with __ and the normal name is an alias. */
3730 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3733 char (*f) () = $ac_func;
3742 return f != $ac_func;
3747 rm -f conftest.$ac_objext conftest$ac_exeext
3748 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3749 (eval $ac_link) 2>&5
3751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3752 (exit $ac_status); } &&
3753 { ac_try='test -s conftest$ac_exeext'
3754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3758 (exit $ac_status); }; }; then
3759 eval "$as_ac_var=yes"
3761 echo "$as_me: failed program was:" >&5
3762 sed 's/^/| /' conftest.$ac_ext >&5
3764 eval "$as_ac_var=no"
3766 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3768 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3769 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3770 if test `eval echo '${'$as_ac_var'}'` = yes; then
3771 cat >>confdefs.h <<_ACEOF
3772 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3774 OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS chroot" MAN="$MAN chroot.1"
3779 for ac_func in gethostid
3781 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3782 echo "$as_me:$LINENO: checking for $ac_func" >&5
3783 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3784 if eval "test \"\${$as_ac_var+set}\" = set"; then
3785 echo $ECHO_N "(cached) $ECHO_C" >&6
3787 cat >conftest.$ac_ext <<_ACEOF
3788 #line $LINENO "configure"
3791 cat confdefs.h >>conftest.$ac_ext
3792 cat >>conftest.$ac_ext <<_ACEOF
3793 /* end confdefs.h. */
3794 /* System header to define __stub macros and hopefully few prototypes,
3795 which can conflict with char $ac_func (); below.
3796 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3797 <limits.h> exists even on freestanding compilers. */
3799 # include <limits.h>
3801 # include <assert.h>
3803 /* Override any gcc2 internal prototype to avoid an error. */
3808 /* We use char because int might match the return type of a gcc2
3809 builtin and then its argument prototype would still apply. */
3811 /* The GNU C library defines this for functions which it implements
3812 to always fail with ENOSYS. Some functions are actually named
3813 something starting with __ and the normal name is an alias. */
3814 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3817 char (*f) () = $ac_func;
3826 return f != $ac_func;
3831 rm -f conftest.$ac_objext conftest$ac_exeext
3832 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3833 (eval $ac_link) 2>&5
3835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3836 (exit $ac_status); } &&
3837 { ac_try='test -s conftest$ac_exeext'
3838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3842 (exit $ac_status); }; }; then
3843 eval "$as_ac_var=yes"
3845 echo "$as_me: failed program was:" >&5
3846 sed 's/^/| /' conftest.$ac_ext >&5
3848 eval "$as_ac_var=no"
3850 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3852 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3853 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3854 if test `eval echo '${'$as_ac_var'}'` = yes; then
3855 cat >>confdefs.h <<_ACEOF
3856 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3858 OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS hostid" MAN="$MAN hostid.1"
3864 echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
3865 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
3866 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
3867 echo $ECHO_N "(cached) $ECHO_C" >&6
3869 ac_check_lib_save_LIBS=$LIBS
3870 LIBS="-lcposix $LIBS"
3871 cat >conftest.$ac_ext <<_ACEOF
3872 #line $LINENO "configure"
3875 cat confdefs.h >>conftest.$ac_ext
3876 cat >>conftest.$ac_ext <<_ACEOF
3877 /* end confdefs.h. */
3879 /* Override any gcc2 internal prototype to avoid an error. */
3883 /* We use char because int might match the return type of a gcc2
3884 builtin and then its argument prototype would still apply. */
3894 rm -f conftest.$ac_objext conftest$ac_exeext
3895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3896 (eval $ac_link) 2>&5
3898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3899 (exit $ac_status); } &&
3900 { ac_try='test -s conftest$ac_exeext'
3901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3905 (exit $ac_status); }; }; then
3906 ac_cv_lib_cposix_strerror=yes
3908 echo "$as_me: failed program was:" >&5
3909 sed 's/^/| /' conftest.$ac_ext >&5
3911 ac_cv_lib_cposix_strerror=no
3913 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3914 LIBS=$ac_check_lib_save_LIBS
3916 echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
3917 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
3918 if test $ac_cv_lib_cposix_strerror = yes; then
3919 LIBS="$LIBS -lcposix"
3924 # Check whether --enable-largefile or --disable-largefile was given.
3925 if test "${enable_largefile+set}" = set; then
3926 enableval="$enable_largefile"
3929 if test "$enable_largefile" != no; then
3931 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
3932 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
3933 if test "${ac_cv_sys_largefile_CC+set}" = set; then
3934 echo $ECHO_N "(cached) $ECHO_C" >&6
3936 ac_cv_sys_largefile_CC=no
3937 if test "$GCC" != yes; then
3940 # IRIX 6.2 and later do not support large files by default,
3941 # so use the C compiler's -n32 option if that helps.
3942 cat >conftest.$ac_ext <<_ACEOF
3943 #line $LINENO "configure"
3946 cat confdefs.h >>conftest.$ac_ext
3947 cat >>conftest.$ac_ext <<_ACEOF
3948 /* end confdefs.h. */
3949 #include <sys/types.h>
3950 /* Check that off_t can represent 2**63 - 1 correctly.
3951 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3952 since some C++ compilers masquerading as C compilers
3953 incorrectly reject 9223372036854775807. */
3954 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3955 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3956 && LARGE_OFF_T % 2147483647 == 1)
3966 rm -f conftest.$ac_objext
3967 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3968 (eval $ac_compile) 2>&5
3970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3971 (exit $ac_status); } &&
3972 { ac_try='test -s conftest.$ac_objext'
3973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3977 (exit $ac_status); }; }; then
3980 echo "$as_me: failed program was:" >&5
3981 sed 's/^/| /' conftest.$ac_ext >&5
3984 rm -f conftest.$ac_objext
3986 rm -f conftest.$ac_objext
3987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3988 (eval $ac_compile) 2>&5
3990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3991 (exit $ac_status); } &&
3992 { ac_try='test -s conftest.$ac_objext'
3993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3997 (exit $ac_status); }; }; then
3998 ac_cv_sys_largefile_CC=' -n32'; break
4000 echo "$as_me: failed program was:" >&5
4001 sed 's/^/| /' conftest.$ac_ext >&5
4004 rm -f conftest.$ac_objext
4008 rm -f conftest.$ac_ext
4011 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4012 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4013 if test "$ac_cv_sys_largefile_CC" != no; then
4014 CC=$CC$ac_cv_sys_largefile_CC
4017 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4018 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4019 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4020 echo $ECHO_N "(cached) $ECHO_C" >&6
4023 ac_cv_sys_file_offset_bits=no
4024 cat >conftest.$ac_ext <<_ACEOF
4025 #line $LINENO "configure"
4028 cat confdefs.h >>conftest.$ac_ext
4029 cat >>conftest.$ac_ext <<_ACEOF
4030 /* end confdefs.h. */
4031 #include <sys/types.h>
4032 /* Check that off_t can represent 2**63 - 1 correctly.
4033 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4034 since some C++ compilers masquerading as C compilers
4035 incorrectly reject 9223372036854775807. */
4036 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4037 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4038 && LARGE_OFF_T % 2147483647 == 1)
4048 rm -f conftest.$ac_objext
4049 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4050 (eval $ac_compile) 2>&5
4052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4053 (exit $ac_status); } &&
4054 { ac_try='test -s conftest.$ac_objext'
4055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4059 (exit $ac_status); }; }; then
4062 echo "$as_me: failed program was:" >&5
4063 sed 's/^/| /' conftest.$ac_ext >&5
4066 rm -f conftest.$ac_objext conftest.$ac_ext
4067 cat >conftest.$ac_ext <<_ACEOF
4068 #line $LINENO "configure"
4071 cat confdefs.h >>conftest.$ac_ext
4072 cat >>conftest.$ac_ext <<_ACEOF
4073 /* end confdefs.h. */
4074 #define _FILE_OFFSET_BITS 64
4075 #include <sys/types.h>
4076 /* Check that off_t can represent 2**63 - 1 correctly.
4077 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4078 since some C++ compilers masquerading as C compilers
4079 incorrectly reject 9223372036854775807. */
4080 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4081 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4082 && LARGE_OFF_T % 2147483647 == 1)
4092 rm -f conftest.$ac_objext
4093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4094 (eval $ac_compile) 2>&5
4096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4097 (exit $ac_status); } &&
4098 { ac_try='test -s conftest.$ac_objext'
4099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4103 (exit $ac_status); }; }; then
4104 ac_cv_sys_file_offset_bits=64; break
4106 echo "$as_me: failed program was:" >&5
4107 sed 's/^/| /' conftest.$ac_ext >&5
4110 rm -f conftest.$ac_objext conftest.$ac_ext
4114 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4115 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
4116 if test "$ac_cv_sys_file_offset_bits" != no; then
4118 cat >>confdefs.h <<_ACEOF
4119 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4124 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4125 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
4126 if test "${ac_cv_sys_large_files+set}" = set; then
4127 echo $ECHO_N "(cached) $ECHO_C" >&6
4130 ac_cv_sys_large_files=no
4131 cat >conftest.$ac_ext <<_ACEOF
4132 #line $LINENO "configure"
4135 cat confdefs.h >>conftest.$ac_ext
4136 cat >>conftest.$ac_ext <<_ACEOF
4137 /* end confdefs.h. */
4138 #include <sys/types.h>
4139 /* Check that off_t can represent 2**63 - 1 correctly.
4140 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4141 since some C++ compilers masquerading as C compilers
4142 incorrectly reject 9223372036854775807. */
4143 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4144 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4145 && LARGE_OFF_T % 2147483647 == 1)
4155 rm -f conftest.$ac_objext
4156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4157 (eval $ac_compile) 2>&5
4159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4160 (exit $ac_status); } &&
4161 { ac_try='test -s conftest.$ac_objext'
4162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4166 (exit $ac_status); }; }; then
4169 echo "$as_me: failed program was:" >&5
4170 sed 's/^/| /' conftest.$ac_ext >&5
4173 rm -f conftest.$ac_objext conftest.$ac_ext
4174 cat >conftest.$ac_ext <<_ACEOF
4175 #line $LINENO "configure"
4178 cat confdefs.h >>conftest.$ac_ext
4179 cat >>conftest.$ac_ext <<_ACEOF
4180 /* end confdefs.h. */
4181 #define _LARGE_FILES 1
4182 #include <sys/types.h>
4183 /* Check that off_t can represent 2**63 - 1 correctly.
4184 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4185 since some C++ compilers masquerading as C compilers
4186 incorrectly reject 9223372036854775807. */
4187 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4188 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4189 && LARGE_OFF_T % 2147483647 == 1)
4199 rm -f conftest.$ac_objext
4200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4201 (eval $ac_compile) 2>&5
4203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4204 (exit $ac_status); } &&
4205 { ac_try='test -s conftest.$ac_objext'
4206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4210 (exit $ac_status); }; }; then
4211 ac_cv_sys_large_files=1; break
4213 echo "$as_me: failed program was:" >&5
4214 sed 's/^/| /' conftest.$ac_ext >&5
4217 rm -f conftest.$ac_objext conftest.$ac_ext
4221 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4222 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
4223 if test "$ac_cv_sys_large_files" != no; then
4225 cat >>confdefs.h <<_ACEOF
4226 #define _LARGE_FILES $ac_cv_sys_large_files
4236 echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
4237 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
4238 if test "${am_cv_prog_cc_stdc+set}" = set; then
4239 echo $ECHO_N "(cached) $ECHO_C" >&6
4241 am_cv_prog_cc_stdc=no
4243 # Don't try gcc -ansi; that turns off useful extensions and
4244 # breaks some systems' header files.
4245 # AIX -qlanglvl=ansi
4246 # Ultrix and OSF/1 -std1
4247 # HP-UX 10.20 and later -Ae
4248 # HP-UX older versions -Aa -D_HPUX_SOURCE
4249 # SVR4 -Xc -D__EXTENSIONS__
4250 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4252 CC="$ac_save_CC $ac_arg"
4253 cat >conftest.$ac_ext <<_ACEOF
4254 #line $LINENO "configure"
4257 cat confdefs.h >>conftest.$ac_ext
4258 cat >>conftest.$ac_ext <<_ACEOF
4259 /* end confdefs.h. */
4262 #include <sys/types.h>
4263 #include <sys/stat.h>
4264 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4265 struct buf { int x; };
4266 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4267 static char *e (p, i)
4273 static char *f (char * (*g) (char **, int), char **p, ...)
4278 s = g (p, va_arg (v,int));
4282 int test (int i, double x);
4283 struct s1 {int (*f) (int a);};
4284 struct s2 {int (*f) (double a);};
4285 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4293 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4299 rm -f conftest.$ac_objext
4300 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4301 (eval $ac_compile) 2>&5
4303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4304 (exit $ac_status); } &&
4305 { ac_try='test -s conftest.$ac_objext'
4306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4310 (exit $ac_status); }; }; then
4311 am_cv_prog_cc_stdc="$ac_arg"; break
4313 echo "$as_me: failed program was:" >&5
4314 sed 's/^/| /' conftest.$ac_ext >&5
4317 rm -f conftest.$ac_objext conftest.$ac_ext
4323 if test -z "$am_cv_prog_cc_stdc"; then
4324 echo "$as_me:$LINENO: result: none needed" >&5
4325 echo "${ECHO_T}none needed" >&6
4327 echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
4328 echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
4330 case "x$am_cv_prog_cc_stdc" in
4332 *) CC="$CC $am_cv_prog_cc_stdc" ;;
4337 echo "$as_me:$LINENO: checking for function prototypes" >&5
4338 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
4339 if test "$am_cv_prog_cc_stdc" != no; then
4340 echo "$as_me:$LINENO: result: yes" >&5
4341 echo "${ECHO_T}yes" >&6
4343 cat >>confdefs.h <<\_ACEOF
4344 #define PROTOTYPES 1
4349 echo "$as_me:$LINENO: result: no" >&5
4350 echo "${ECHO_T}no" >&6
4351 U=_ ANSI2KNR=./ansi2knr
4353 # Ensure some checks needed by ansi2knr itself.
4354 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4355 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4356 if test "${ac_cv_header_stdc+set}" = set; then
4357 echo $ECHO_N "(cached) $ECHO_C" >&6
4359 cat >conftest.$ac_ext <<_ACEOF
4360 #line $LINENO "configure"
4363 cat confdefs.h >>conftest.$ac_ext
4364 cat >>conftest.$ac_ext <<_ACEOF
4365 /* end confdefs.h. */
4379 rm -f conftest.$ac_objext
4380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4381 (eval $ac_compile) 2>&5
4383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4384 (exit $ac_status); } &&
4385 { ac_try='test -s conftest.$ac_objext'
4386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4390 (exit $ac_status); }; }; then
4391 ac_cv_header_stdc=yes
4393 echo "$as_me: failed program was:" >&5
4394 sed 's/^/| /' conftest.$ac_ext >&5
4396 ac_cv_header_stdc=no
4398 rm -f conftest.$ac_objext conftest.$ac_ext
4400 if test $ac_cv_header_stdc = yes; then
4401 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4402 cat >conftest.$ac_ext <<_ACEOF
4403 #line $LINENO "configure"
4406 cat confdefs.h >>conftest.$ac_ext
4407 cat >>conftest.$ac_ext <<_ACEOF
4408 /* end confdefs.h. */
4412 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4413 $EGREP "memchr" >/dev/null 2>&1; then
4416 ac_cv_header_stdc=no
4422 if test $ac_cv_header_stdc = yes; then
4423 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4424 cat >conftest.$ac_ext <<_ACEOF
4425 #line $LINENO "configure"
4428 cat confdefs.h >>conftest.$ac_ext
4429 cat >>conftest.$ac_ext <<_ACEOF
4430 /* end confdefs.h. */
4434 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4435 $EGREP "free" >/dev/null 2>&1; then
4438 ac_cv_header_stdc=no
4444 if test $ac_cv_header_stdc = yes; then
4445 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4446 if test "$cross_compiling" = yes; then
4449 cat >conftest.$ac_ext <<_ACEOF
4450 #line $LINENO "configure"
4453 cat confdefs.h >>conftest.$ac_ext
4454 cat >>conftest.$ac_ext <<_ACEOF
4455 /* end confdefs.h. */
4457 #if ((' ' & 0x0FF) == 0x020)
4458 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4459 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4461 # define ISLOWER(c) \
4462 (('a' <= (c) && (c) <= 'i') \
4463 || ('j' <= (c) && (c) <= 'r') \
4464 || ('s' <= (c) && (c) <= 'z'))
4465 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4468 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4473 for (i = 0; i < 256; i++)
4474 if (XOR (islower (i), ISLOWER (i))
4475 || toupper (i) != TOUPPER (i))
4480 rm -f conftest$ac_exeext
4481 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4482 (eval $ac_link) 2>&5
4484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4485 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4490 (exit $ac_status); }; }; then
4493 echo "$as_me: program exited with status $ac_status" >&5
4494 echo "$as_me: failed program was:" >&5
4495 sed 's/^/| /' conftest.$ac_ext >&5
4498 ac_cv_header_stdc=no
4500 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4504 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4505 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4506 if test $ac_cv_header_stdc = yes; then
4508 cat >>confdefs.h <<\_ACEOF
4509 #define STDC_HEADERS 1
4515 for ac_header in string.h
4517 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4518 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4519 echo "$as_me:$LINENO: checking for $ac_header" >&5
4520 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4521 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4522 echo $ECHO_N "(cached) $ECHO_C" >&6
4524 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4525 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4527 # Is the header compilable?
4528 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4529 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4530 cat >conftest.$ac_ext <<_ACEOF
4531 #line $LINENO "configure"
4534 cat confdefs.h >>conftest.$ac_ext
4535 cat >>conftest.$ac_ext <<_ACEOF
4536 /* end confdefs.h. */
4537 $ac_includes_default
4538 #include <$ac_header>
4540 rm -f conftest.$ac_objext
4541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4542 (eval $ac_compile) 2>&5
4544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4545 (exit $ac_status); } &&
4546 { ac_try='test -s conftest.$ac_objext'
4547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4551 (exit $ac_status); }; }; then
4552 ac_header_compiler=yes
4554 echo "$as_me: failed program was:" >&5
4555 sed 's/^/| /' conftest.$ac_ext >&5
4557 ac_header_compiler=no
4559 rm -f conftest.$ac_objext conftest.$ac_ext
4560 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4561 echo "${ECHO_T}$ac_header_compiler" >&6
4563 # Is the header present?
4564 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4565 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4566 cat >conftest.$ac_ext <<_ACEOF
4567 #line $LINENO "configure"
4570 cat confdefs.h >>conftest.$ac_ext
4571 cat >>conftest.$ac_ext <<_ACEOF
4572 /* end confdefs.h. */
4573 #include <$ac_header>
4575 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4576 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4578 grep -v '^ *+' conftest.er1 >conftest.err
4580 cat conftest.err >&5
4581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4582 (exit $ac_status); } >/dev/null; then
4583 if test -s conftest.err; then
4584 ac_cpp_err=$ac_c_preproc_warn_flag
4591 if test -z "$ac_cpp_err"; then
4592 ac_header_preproc=yes
4594 echo "$as_me: failed program was:" >&5
4595 sed 's/^/| /' conftest.$ac_ext >&5
4597 ac_header_preproc=no
4599 rm -f conftest.err conftest.$ac_ext
4600 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4601 echo "${ECHO_T}$ac_header_preproc" >&6
4603 # So? What about this header?
4604 case $ac_header_compiler:$ac_header_preproc in
4606 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4607 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4608 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4609 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4612 ## ------------------------------------ ##
4613 ## Report this to bug-autoconf@gnu.org. ##
4614 ## ------------------------------------ ##
4617 sed "s/^/$as_me: WARNING: /" >&2
4620 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4621 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4622 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4623 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4624 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4625 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4628 ## ------------------------------------ ##
4629 ## Report this to bug-autoconf@gnu.org. ##
4630 ## ------------------------------------ ##
4633 sed "s/^/$as_me: WARNING: /" >&2
4636 echo "$as_me:$LINENO: checking for $ac_header" >&5
4637 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4638 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4639 echo $ECHO_N "(cached) $ECHO_C" >&6
4641 eval "$as_ac_Header=$ac_header_preproc"
4643 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4644 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4647 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4648 cat >>confdefs.h <<_ACEOF
4649 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4657 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4658 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
4659 if test "${ac_cv_c_bigendian+set}" = set; then
4660 echo $ECHO_N "(cached) $ECHO_C" >&6
4662 # See if sys/param.h defines the BYTE_ORDER macro.
4663 cat >conftest.$ac_ext <<_ACEOF
4664 #line $LINENO "configure"
4667 cat confdefs.h >>conftest.$ac_ext
4668 cat >>conftest.$ac_ext <<_ACEOF
4669 /* end confdefs.h. */
4670 #include <sys/types.h>
4671 #include <sys/param.h>
4676 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4684 rm -f conftest.$ac_objext
4685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4686 (eval $ac_compile) 2>&5
4688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4689 (exit $ac_status); } &&
4690 { ac_try='test -s conftest.$ac_objext'
4691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4695 (exit $ac_status); }; }; then
4696 # It does; now see whether it defined to BIG_ENDIAN or not.
4697 cat >conftest.$ac_ext <<_ACEOF
4698 #line $LINENO "configure"
4701 cat confdefs.h >>conftest.$ac_ext
4702 cat >>conftest.$ac_ext <<_ACEOF
4703 /* end confdefs.h. */
4704 #include <sys/types.h>
4705 #include <sys/param.h>
4710 #if BYTE_ORDER != BIG_ENDIAN
4718 rm -f conftest.$ac_objext
4719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4720 (eval $ac_compile) 2>&5
4722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4723 (exit $ac_status); } &&
4724 { ac_try='test -s conftest.$ac_objext'
4725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4729 (exit $ac_status); }; }; then
4730 ac_cv_c_bigendian=yes
4732 echo "$as_me: failed program was:" >&5
4733 sed 's/^/| /' conftest.$ac_ext >&5
4735 ac_cv_c_bigendian=no
4737 rm -f conftest.$ac_objext conftest.$ac_ext
4739 echo "$as_me: failed program was:" >&5
4740 sed 's/^/| /' conftest.$ac_ext >&5
4742 # It does not; compile a test program.
4743 if test "$cross_compiling" = yes; then
4744 # try to guess the endianness by grepping values into an object file
4745 ac_cv_c_bigendian=unknown
4746 cat >conftest.$ac_ext <<_ACEOF
4747 #line $LINENO "configure"
4750 cat confdefs.h >>conftest.$ac_ext
4751 cat >>conftest.$ac_ext <<_ACEOF
4752 /* end confdefs.h. */
4753 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4754 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4755 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4756 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4757 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4758 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4762 _ascii (); _ebcdic ();
4767 rm -f conftest.$ac_objext
4768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4769 (eval $ac_compile) 2>&5
4771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4772 (exit $ac_status); } &&
4773 { ac_try='test -s conftest.$ac_objext'
4774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4778 (exit $ac_status); }; }; then
4779 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4780 ac_cv_c_bigendian=yes
4782 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4783 if test "$ac_cv_c_bigendian" = unknown; then
4784 ac_cv_c_bigendian=no
4786 # finding both strings is unlikely to happen, but who knows?
4787 ac_cv_c_bigendian=unknown
4791 echo "$as_me: failed program was:" >&5
4792 sed 's/^/| /' conftest.$ac_ext >&5
4795 rm -f conftest.$ac_objext conftest.$ac_ext
4797 cat >conftest.$ac_ext <<_ACEOF
4798 #line $LINENO "configure"
4801 cat confdefs.h >>conftest.$ac_ext
4802 cat >>conftest.$ac_ext <<_ACEOF
4803 /* end confdefs.h. */
4807 /* Are we little or big endian? From Harbison&Steele. */
4811 char c[sizeof (long)];
4814 exit (u.c[sizeof (long) - 1] == 1);
4817 rm -f conftest$ac_exeext
4818 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4819 (eval $ac_link) 2>&5
4821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4822 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4827 (exit $ac_status); }; }; then
4828 ac_cv_c_bigendian=no
4830 echo "$as_me: program exited with status $ac_status" >&5
4831 echo "$as_me: failed program was:" >&5
4832 sed 's/^/| /' conftest.$ac_ext >&5
4835 ac_cv_c_bigendian=yes
4837 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4840 rm -f conftest.$ac_objext conftest.$ac_ext
4842 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4843 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
4844 case $ac_cv_c_bigendian in
4847 cat >>confdefs.h <<\_ACEOF
4848 #define WORDS_BIGENDIAN 1
4854 { { echo "$as_me:$LINENO: error: unknown endianness
4855 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4856 echo "$as_me: error: unknown endianness
4857 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4858 { (exit 1); exit 1; }; } ;;
4861 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4862 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4863 if test "${ac_cv_c_const+set}" = set; then
4864 echo $ECHO_N "(cached) $ECHO_C" >&6
4866 cat >conftest.$ac_ext <<_ACEOF
4867 #line $LINENO "configure"
4870 cat confdefs.h >>conftest.$ac_ext
4871 cat >>conftest.$ac_ext <<_ACEOF
4872 /* end confdefs.h. */
4877 /* FIXME: Include the comments suggested by Paul. */
4879 /* Ultrix mips cc rejects this. */
4880 typedef int charset[2];
4882 /* SunOS 4.1.1 cc rejects this. */
4883 char const *const *ccp;
4885 /* NEC SVR4.0.2 mips cc rejects this. */
4886 struct point {int x, y;};
4887 static struct point const zero = {0,0};
4888 /* AIX XL C 1.02.0.0 rejects this.
4889 It does not let you subtract one const X* pointer from another in
4890 an arm of an if-expression whose if-part is not a constant
4892 const char *g = "string";
4893 ccp = &g + (g ? g-g : 0);
4894 /* HPUX 7.0 cc rejects these. */
4897 ccp = (char const *const *) p;
4898 { /* SCO 3.2v4 cc rejects this. */
4900 char const *s = 0 ? (char *) 0 : (char const *) 0;
4904 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4906 const int *foo = &x[0];
4909 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4910 typedef const int *iptr;
4914 { /* AIX XL C 1.02.0.0 rejects this saying
4915 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4916 struct s { int j; const int *ap[3]; };
4917 struct s *b; b->j = 5;
4919 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4928 rm -f conftest.$ac_objext
4929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4930 (eval $ac_compile) 2>&5
4932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4933 (exit $ac_status); } &&
4934 { ac_try='test -s conftest.$ac_objext'
4935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4939 (exit $ac_status); }; }; then
4942 echo "$as_me: failed program was:" >&5
4943 sed 's/^/| /' conftest.$ac_ext >&5
4947 rm -f conftest.$ac_objext conftest.$ac_ext
4949 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4950 echo "${ECHO_T}$ac_cv_c_const" >&6
4951 if test $ac_cv_c_const = no; then
4953 cat >>confdefs.h <<\_ACEOF
4959 echo "$as_me:$LINENO: checking for working volatile" >&5
4960 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
4961 if test "${ac_cv_c_volatile+set}" = set; then
4962 echo $ECHO_N "(cached) $ECHO_C" >&6
4964 cat >conftest.$ac_ext <<_ACEOF
4965 #line $LINENO "configure"
4968 cat confdefs.h >>conftest.$ac_ext
4969 cat >>conftest.$ac_ext <<_ACEOF
4970 /* end confdefs.h. */
4982 rm -f conftest.$ac_objext
4983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4984 (eval $ac_compile) 2>&5
4986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4987 (exit $ac_status); } &&
4988 { ac_try='test -s conftest.$ac_objext'
4989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4993 (exit $ac_status); }; }; then
4994 ac_cv_c_volatile=yes
4996 echo "$as_me: failed program was:" >&5
4997 sed 's/^/| /' conftest.$ac_ext >&5
5001 rm -f conftest.$ac_objext conftest.$ac_ext
5003 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
5004 echo "${ECHO_T}$ac_cv_c_volatile" >&6
5005 if test $ac_cv_c_volatile = no; then
5007 cat >>confdefs.h <<\_ACEOF
5013 echo "$as_me:$LINENO: checking for inline" >&5
5014 echo $ECHO_N "checking for inline... $ECHO_C" >&6
5015 if test "${ac_cv_c_inline+set}" = set; then
5016 echo $ECHO_N "(cached) $ECHO_C" >&6
5019 for ac_kw in inline __inline__ __inline; do
5020 cat >conftest.$ac_ext <<_ACEOF
5021 #line $LINENO "configure"
5024 cat confdefs.h >>conftest.$ac_ext
5025 cat >>conftest.$ac_ext <<_ACEOF
5026 /* end confdefs.h. */
5029 static $ac_kw foo_t static_foo () {return 0; }
5030 $ac_kw foo_t foo () {return 0; }
5034 rm -f conftest.$ac_objext
5035 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5036 (eval $ac_compile) 2>&5
5038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5039 (exit $ac_status); } &&
5040 { ac_try='test -s conftest.$ac_objext'
5041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5045 (exit $ac_status); }; }; then
5046 ac_cv_c_inline=$ac_kw; break
5048 echo "$as_me: failed program was:" >&5
5049 sed 's/^/| /' conftest.$ac_ext >&5
5052 rm -f conftest.$ac_objext conftest.$ac_ext
5056 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5057 echo "${ECHO_T}$ac_cv_c_inline" >&6
5058 case $ac_cv_c_inline in
5061 cat >>confdefs.h <<\_ACEOF
5065 *) cat >>confdefs.h <<_ACEOF
5066 #define inline $ac_cv_c_inline
5071 echo "$as_me:$LINENO: checking for working long double with more range or precision than double" >&5
5072 echo $ECHO_N "checking for working long double with more range or precision than double... $ECHO_C" >&6
5073 if test "${ac_cv_c_long_double+set}" = set; then
5074 echo $ECHO_N "(cached) $ECHO_C" >&6
5076 cat >conftest.$ac_ext <<_ACEOF
5077 #line $LINENO "configure"
5080 cat confdefs.h >>conftest.$ac_ext
5081 cat >>conftest.$ac_ext <<_ACEOF
5082 /* end confdefs.h. */
5084 long double foo = 0.0;
5088 static int test_array [1 - 2 * !(/* Using '|' rather than '||' catches a GCC 2.95.2 x86 bug. */
5089 (DBL_MAX < LDBL_MAX) | (LDBL_EPSILON < DBL_EPSILON)
5090 | (DBL_MAX_EXP < LDBL_MAX_EXP) | (DBL_MANT_DIG < LDBL_MANT_DIG))];
5097 rm -f conftest.$ac_objext
5098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5099 (eval $ac_compile) 2>&5
5101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5102 (exit $ac_status); } &&
5103 { ac_try='test -s conftest.$ac_objext'
5104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5108 (exit $ac_status); }; }; then
5109 ac_cv_c_long_double=yes
5111 echo "$as_me: failed program was:" >&5
5112 sed 's/^/| /' conftest.$ac_ext >&5
5114 ac_cv_c_long_double=no
5116 rm -f conftest.$ac_objext conftest.$ac_ext
5118 echo "$as_me:$LINENO: result: $ac_cv_c_long_double" >&5
5119 echo "${ECHO_T}$ac_cv_c_long_double" >&6
5120 if test $ac_cv_c_long_double = yes; then
5122 cat >>confdefs.h <<\_ACEOF
5123 #define HAVE_LONG_DOUBLE 1
5206 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5207 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5208 echo "$as_me:$LINENO: checking for $ac_header" >&5
5209 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5210 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5211 echo $ECHO_N "(cached) $ECHO_C" >&6
5213 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5214 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5216 # Is the header compilable?
5217 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5218 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5219 cat >conftest.$ac_ext <<_ACEOF
5220 #line $LINENO "configure"
5223 cat confdefs.h >>conftest.$ac_ext
5224 cat >>conftest.$ac_ext <<_ACEOF
5225 /* end confdefs.h. */
5226 $ac_includes_default
5227 #include <$ac_header>
5229 rm -f conftest.$ac_objext
5230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5231 (eval $ac_compile) 2>&5
5233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5234 (exit $ac_status); } &&
5235 { ac_try='test -s conftest.$ac_objext'
5236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5240 (exit $ac_status); }; }; then
5241 ac_header_compiler=yes
5243 echo "$as_me: failed program was:" >&5
5244 sed 's/^/| /' conftest.$ac_ext >&5
5246 ac_header_compiler=no
5248 rm -f conftest.$ac_objext conftest.$ac_ext
5249 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5250 echo "${ECHO_T}$ac_header_compiler" >&6
5252 # Is the header present?
5253 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5254 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5255 cat >conftest.$ac_ext <<_ACEOF
5256 #line $LINENO "configure"
5259 cat confdefs.h >>conftest.$ac_ext
5260 cat >>conftest.$ac_ext <<_ACEOF
5261 /* end confdefs.h. */
5262 #include <$ac_header>
5264 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5265 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5267 grep -v '^ *+' conftest.er1 >conftest.err
5269 cat conftest.err >&5
5270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5271 (exit $ac_status); } >/dev/null; then
5272 if test -s conftest.err; then
5273 ac_cpp_err=$ac_c_preproc_warn_flag
5280 if test -z "$ac_cpp_err"; then
5281 ac_header_preproc=yes
5283 echo "$as_me: failed program was:" >&5
5284 sed 's/^/| /' conftest.$ac_ext >&5
5286 ac_header_preproc=no
5288 rm -f conftest.err conftest.$ac_ext
5289 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5290 echo "${ECHO_T}$ac_header_preproc" >&6
5292 # So? What about this header?
5293 case $ac_header_compiler:$ac_header_preproc in
5295 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5296 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5297 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5298 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5301 ## ------------------------------------ ##
5302 ## Report this to bug-autoconf@gnu.org. ##
5303 ## ------------------------------------ ##
5306 sed "s/^/$as_me: WARNING: /" >&2
5309 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5310 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5311 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5312 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5313 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5314 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5317 ## ------------------------------------ ##
5318 ## Report this to bug-autoconf@gnu.org. ##
5319 ## ------------------------------------ ##
5322 sed "s/^/$as_me: WARNING: /" >&2
5325 echo "$as_me:$LINENO: checking for $ac_header" >&5
5326 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5327 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5328 echo $ECHO_N "(cached) $ECHO_C" >&6
5330 eval "$as_ac_Header=$ac_header_preproc"
5332 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5333 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5336 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5337 cat >>confdefs.h <<_ACEOF
5338 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5352 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5353 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5354 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5355 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
5356 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5357 echo $ECHO_N "(cached) $ECHO_C" >&6
5359 cat >conftest.$ac_ext <<_ACEOF
5360 #line $LINENO "configure"
5363 cat confdefs.h >>conftest.$ac_ext
5364 cat >>conftest.$ac_ext <<_ACEOF
5365 /* end confdefs.h. */
5366 #include <sys/types.h>
5378 rm -f conftest.$ac_objext
5379 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5380 (eval $ac_compile) 2>&5
5382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5383 (exit $ac_status); } &&
5384 { ac_try='test -s conftest.$ac_objext'
5385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5389 (exit $ac_status); }; }; then
5390 eval "$as_ac_Header=yes"
5392 echo "$as_me: failed program was:" >&5
5393 sed 's/^/| /' conftest.$ac_ext >&5
5395 eval "$as_ac_Header=no"
5397 rm -f conftest.$ac_objext conftest.$ac_ext
5399 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5400 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5401 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5402 cat >>confdefs.h <<_ACEOF
5403 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5406 ac_header_dirent=$ac_hdr; break
5410 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5411 if test $ac_header_dirent = dirent.h; then
5413 echo "$as_me:$LINENO: checking for library containing opendir" >&5
5414 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
5415 if test "${ac_cv_search_opendir+set}" = set; then
5416 echo $ECHO_N "(cached) $ECHO_C" >&6
5419 ac_func_search_save_LIBS=$LIBS
5420 ac_cv_search_opendir=no
5421 cat >conftest.$ac_ext <<_ACEOF
5422 #line $LINENO "configure"
5425 cat confdefs.h >>conftest.$ac_ext
5426 cat >>conftest.$ac_ext <<_ACEOF
5427 /* end confdefs.h. */
5429 /* Override any gcc2 internal prototype to avoid an error. */
5433 /* We use char because int might match the return type of a gcc2
5434 builtin and then its argument prototype would still apply. */
5444 rm -f conftest.$ac_objext conftest$ac_exeext
5445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5446 (eval $ac_link) 2>&5
5448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5449 (exit $ac_status); } &&
5450 { ac_try='test -s conftest$ac_exeext'
5451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5455 (exit $ac_status); }; }; then
5456 ac_cv_search_opendir='none required'
5458 echo "$as_me: failed program was:" >&5
5459 sed 's/^/| /' conftest.$ac_ext >&5
5462 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5463 if test "$ac_cv_search_opendir" = no; then
5464 for ac_lib in dir; do
5465 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5466 cat >conftest.$ac_ext <<_ACEOF
5467 #line $LINENO "configure"
5470 cat confdefs.h >>conftest.$ac_ext
5471 cat >>conftest.$ac_ext <<_ACEOF
5472 /* end confdefs.h. */
5474 /* Override any gcc2 internal prototype to avoid an error. */
5478 /* We use char because int might match the return type of a gcc2
5479 builtin and then its argument prototype would still apply. */
5489 rm -f conftest.$ac_objext conftest$ac_exeext
5490 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5491 (eval $ac_link) 2>&5
5493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5494 (exit $ac_status); } &&
5495 { ac_try='test -s conftest$ac_exeext'
5496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5500 (exit $ac_status); }; }; then
5501 ac_cv_search_opendir="-l$ac_lib"; break
5503 echo "$as_me: failed program was:" >&5
5504 sed 's/^/| /' conftest.$ac_ext >&5
5507 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5510 LIBS=$ac_func_search_save_LIBS
5513 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5514 echo "${ECHO_T}$ac_cv_search_opendir" >&6
5516 if test "$ac_cv_search_opendir" = no; then :
5519 if test "$ac_cv_search_opendir" = 'none required'; then :
5522 LIBS="$ac_cv_search_opendir $LIBS"
5529 echo "$as_me:$LINENO: checking for library containing opendir" >&5
5530 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
5531 if test "${ac_cv_search_opendir+set}" = set; then
5532 echo $ECHO_N "(cached) $ECHO_C" >&6
5535 ac_func_search_save_LIBS=$LIBS
5536 ac_cv_search_opendir=no
5537 cat >conftest.$ac_ext <<_ACEOF
5538 #line $LINENO "configure"
5541 cat confdefs.h >>conftest.$ac_ext
5542 cat >>conftest.$ac_ext <<_ACEOF
5543 /* end confdefs.h. */
5545 /* Override any gcc2 internal prototype to avoid an error. */
5549 /* We use char because int might match the return type of a gcc2
5550 builtin and then its argument prototype would still apply. */
5560 rm -f conftest.$ac_objext conftest$ac_exeext
5561 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5562 (eval $ac_link) 2>&5
5564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5565 (exit $ac_status); } &&
5566 { ac_try='test -s conftest$ac_exeext'
5567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5571 (exit $ac_status); }; }; then
5572 ac_cv_search_opendir='none required'
5574 echo "$as_me: failed program was:" >&5
5575 sed 's/^/| /' conftest.$ac_ext >&5
5578 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5579 if test "$ac_cv_search_opendir" = no; then
5581 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5582 cat >conftest.$ac_ext <<_ACEOF
5583 #line $LINENO "configure"
5586 cat confdefs.h >>conftest.$ac_ext
5587 cat >>conftest.$ac_ext <<_ACEOF
5588 /* end confdefs.h. */
5590 /* Override any gcc2 internal prototype to avoid an error. */
5594 /* We use char because int might match the return type of a gcc2
5595 builtin and then its argument prototype would still apply. */
5605 rm -f conftest.$ac_objext conftest$ac_exeext
5606 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5607 (eval $ac_link) 2>&5
5609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5610 (exit $ac_status); } &&
5611 { ac_try='test -s conftest$ac_exeext'
5612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5616 (exit $ac_status); }; }; then
5617 ac_cv_search_opendir="-l$ac_lib"; break
5619 echo "$as_me: failed program was:" >&5
5620 sed 's/^/| /' conftest.$ac_ext >&5
5623 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5626 LIBS=$ac_func_search_save_LIBS
5629 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5630 echo "${ECHO_T}$ac_cv_search_opendir" >&6
5632 if test "$ac_cv_search_opendir" = no; then :
5635 if test "$ac_cv_search_opendir" = 'none required'; then :
5638 LIBS="$ac_cv_search_opendir $LIBS"
5645 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
5646 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
5647 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
5648 echo $ECHO_N "(cached) $ECHO_C" >&6
5650 cat >conftest.$ac_ext <<_ACEOF
5651 #line $LINENO "configure"
5654 cat confdefs.h >>conftest.$ac_ext
5655 cat >>conftest.$ac_ext <<_ACEOF
5656 /* end confdefs.h. */
5657 $ac_includes_default
5661 static struct stat ac_aggr;
5662 if (ac_aggr.st_blocks)
5668 rm -f conftest.$ac_objext
5669 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5670 (eval $ac_compile) 2>&5
5672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5673 (exit $ac_status); } &&
5674 { ac_try='test -s conftest.$ac_objext'
5675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5679 (exit $ac_status); }; }; then
5680 ac_cv_member_struct_stat_st_blocks=yes
5682 echo "$as_me: failed program was:" >&5
5683 sed 's/^/| /' conftest.$ac_ext >&5
5685 cat >conftest.$ac_ext <<_ACEOF
5686 #line $LINENO "configure"
5689 cat confdefs.h >>conftest.$ac_ext
5690 cat >>conftest.$ac_ext <<_ACEOF
5691 /* end confdefs.h. */
5692 $ac_includes_default
5696 static struct stat ac_aggr;
5697 if (sizeof ac_aggr.st_blocks)
5703 rm -f conftest.$ac_objext
5704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5705 (eval $ac_compile) 2>&5
5707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5708 (exit $ac_status); } &&
5709 { ac_try='test -s conftest.$ac_objext'
5710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5714 (exit $ac_status); }; }; then
5715 ac_cv_member_struct_stat_st_blocks=yes
5717 echo "$as_me: failed program was:" >&5
5718 sed 's/^/| /' conftest.$ac_ext >&5
5720 ac_cv_member_struct_stat_st_blocks=no
5722 rm -f conftest.$ac_objext conftest.$ac_ext
5724 rm -f conftest.$ac_objext conftest.$ac_ext
5726 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
5727 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
5728 if test $ac_cv_member_struct_stat_st_blocks = yes; then
5730 cat >>confdefs.h <<_ACEOF
5731 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
5735 cat >>confdefs.h <<\_ACEOF
5736 #define HAVE_ST_BLOCKS 1
5740 LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
5744 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
5745 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
5746 if test "${ac_cv_struct_tm+set}" = set; then
5747 echo $ECHO_N "(cached) $ECHO_C" >&6
5749 cat >conftest.$ac_ext <<_ACEOF
5750 #line $LINENO "configure"
5753 cat confdefs.h >>conftest.$ac_ext
5754 cat >>conftest.$ac_ext <<_ACEOF
5755 /* end confdefs.h. */
5756 #include <sys/types.h>
5762 struct tm *tp; tp->tm_sec;
5767 rm -f conftest.$ac_objext
5768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5769 (eval $ac_compile) 2>&5
5771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5772 (exit $ac_status); } &&
5773 { ac_try='test -s conftest.$ac_objext'
5774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5778 (exit $ac_status); }; }; then
5779 ac_cv_struct_tm=time.h
5781 echo "$as_me: failed program was:" >&5
5782 sed 's/^/| /' conftest.$ac_ext >&5
5784 ac_cv_struct_tm=sys/time.h
5786 rm -f conftest.$ac_objext conftest.$ac_ext
5788 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
5789 echo "${ECHO_T}$ac_cv_struct_tm" >&6
5790 if test $ac_cv_struct_tm = sys/time.h; then
5792 cat >>confdefs.h <<\_ACEOF
5793 #define TM_IN_SYS_TIME 1
5798 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
5799 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
5800 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
5801 echo $ECHO_N "(cached) $ECHO_C" >&6
5803 cat >conftest.$ac_ext <<_ACEOF
5804 #line $LINENO "configure"
5807 cat confdefs.h >>conftest.$ac_ext
5808 cat >>conftest.$ac_ext <<_ACEOF
5809 /* end confdefs.h. */
5810 #include <sys/types.h>
5811 #include <$ac_cv_struct_tm>
5817 static struct tm ac_aggr;
5818 if (ac_aggr.tm_zone)
5824 rm -f conftest.$ac_objext
5825 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5826 (eval $ac_compile) 2>&5
5828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5829 (exit $ac_status); } &&
5830 { ac_try='test -s conftest.$ac_objext'
5831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5835 (exit $ac_status); }; }; then
5836 ac_cv_member_struct_tm_tm_zone=yes
5838 echo "$as_me: failed program was:" >&5
5839 sed 's/^/| /' conftest.$ac_ext >&5
5841 cat >conftest.$ac_ext <<_ACEOF
5842 #line $LINENO "configure"
5845 cat confdefs.h >>conftest.$ac_ext
5846 cat >>conftest.$ac_ext <<_ACEOF
5847 /* end confdefs.h. */
5848 #include <sys/types.h>
5849 #include <$ac_cv_struct_tm>
5855 static struct tm ac_aggr;
5856 if (sizeof ac_aggr.tm_zone)
5862 rm -f conftest.$ac_objext
5863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5864 (eval $ac_compile) 2>&5
5866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5867 (exit $ac_status); } &&
5868 { ac_try='test -s conftest.$ac_objext'
5869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5873 (exit $ac_status); }; }; then
5874 ac_cv_member_struct_tm_tm_zone=yes
5876 echo "$as_me: failed program was:" >&5
5877 sed 's/^/| /' conftest.$ac_ext >&5
5879 ac_cv_member_struct_tm_tm_zone=no
5881 rm -f conftest.$ac_objext conftest.$ac_ext
5883 rm -f conftest.$ac_objext conftest.$ac_ext
5885 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
5886 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
5887 if test $ac_cv_member_struct_tm_tm_zone = yes; then
5889 cat >>confdefs.h <<_ACEOF
5890 #define HAVE_STRUCT_TM_TM_ZONE 1
5896 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
5898 cat >>confdefs.h <<\_ACEOF
5899 #define HAVE_TM_ZONE 1
5903 echo "$as_me:$LINENO: checking for tzname" >&5
5904 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
5905 if test "${ac_cv_var_tzname+set}" = set; then
5906 echo $ECHO_N "(cached) $ECHO_C" >&6
5908 cat >conftest.$ac_ext <<_ACEOF
5909 #line $LINENO "configure"
5912 cat confdefs.h >>conftest.$ac_ext
5913 cat >>conftest.$ac_ext <<_ACEOF
5914 /* end confdefs.h. */
5916 #ifndef tzname /* For SGI. */
5917 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
5928 rm -f conftest.$ac_objext conftest$ac_exeext
5929 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5930 (eval $ac_link) 2>&5
5932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5933 (exit $ac_status); } &&
5934 { ac_try='test -s conftest$ac_exeext'
5935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5939 (exit $ac_status); }; }; then
5940 ac_cv_var_tzname=yes
5942 echo "$as_me: failed program was:" >&5
5943 sed 's/^/| /' conftest.$ac_ext >&5
5947 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5949 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
5950 echo "${ECHO_T}$ac_cv_var_tzname" >&6
5951 if test $ac_cv_var_tzname = yes; then
5953 cat >>confdefs.h <<\_ACEOF
5954 #define HAVE_TZNAME 1
5960 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
5961 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
5962 if test "${ac_cv_header_stat_broken+set}" = set; then
5963 echo $ECHO_N "(cached) $ECHO_C" >&6
5965 cat >conftest.$ac_ext <<_ACEOF
5966 #line $LINENO "configure"
5969 cat confdefs.h >>conftest.$ac_ext
5970 cat >>conftest.$ac_ext <<_ACEOF
5971 /* end confdefs.h. */
5972 #include <sys/types.h>
5973 #include <sys/stat.h>
5975 #if defined(S_ISBLK) && defined(S_IFDIR)
5976 # if S_ISBLK (S_IFDIR)
5981 #if defined(S_ISBLK) && defined(S_IFCHR)
5982 # if S_ISBLK (S_IFCHR)
5987 #if defined(S_ISLNK) && defined(S_IFREG)
5988 # if S_ISLNK (S_IFREG)
5993 #if defined(S_ISSOCK) && defined(S_IFREG)
5994 # if S_ISSOCK (S_IFREG)
6000 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6001 $EGREP "You lose" >/dev/null 2>&1; then
6002 ac_cv_header_stat_broken=yes
6004 ac_cv_header_stat_broken=no
6009 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
6010 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
6011 if test $ac_cv_header_stat_broken = yes; then
6013 cat >>confdefs.h <<\_ACEOF
6014 #define STAT_MACROS_BROKEN 1
6019 echo "$as_me:$LINENO: checking for nanoseconds member of struct stat.st_mtim" >&5
6020 echo $ECHO_N "checking for nanoseconds member of struct stat.st_mtim... $ECHO_C" >&6
6021 if test "${ac_cv_struct_st_mtim_nsec+set}" = set; then
6022 echo $ECHO_N "(cached) $ECHO_C" >&6
6024 ac_save_CPPFLAGS="$CPPFLAGS"
6025 ac_cv_struct_st_mtim_nsec=no
6026 # tv_nsec -- the usual case
6027 # _tv_nsec -- Solaris 2.6, if
6028 # (defined _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED == 1
6029 # && !defined __EXTENSIONS__)
6030 # st__tim.tv_nsec -- UnixWare 2.1.2
6031 for ac_val in tv_nsec _tv_nsec st__tim.tv_nsec; do
6032 CPPFLAGS="$ac_save_CPPFLAGS -DST_MTIM_NSEC=$ac_val"
6033 cat >conftest.$ac_ext <<_ACEOF
6034 #line $LINENO "configure"
6037 cat confdefs.h >>conftest.$ac_ext
6038 cat >>conftest.$ac_ext <<_ACEOF
6039 /* end confdefs.h. */
6040 #include <sys/types.h>
6041 #include <sys/stat.h>
6045 struct stat s; s.st_mtim.ST_MTIM_NSEC;
6050 rm -f conftest.$ac_objext
6051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6052 (eval $ac_compile) 2>&5
6054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6055 (exit $ac_status); } &&
6056 { ac_try='test -s conftest.$ac_objext'
6057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6061 (exit $ac_status); }; }; then
6062 ac_cv_struct_st_mtim_nsec=$ac_val; break
6064 echo "$as_me: failed program was:" >&5
6065 sed 's/^/| /' conftest.$ac_ext >&5
6068 rm -f conftest.$ac_objext conftest.$ac_ext
6070 CPPFLAGS="$ac_save_CPPFLAGS"
6072 echo "$as_me:$LINENO: result: $ac_cv_struct_st_mtim_nsec" >&5
6073 echo "${ECHO_T}$ac_cv_struct_st_mtim_nsec" >&6
6075 if test $ac_cv_struct_st_mtim_nsec != no; then
6077 cat >>confdefs.h <<_ACEOF
6078 #define ST_MTIM_NSEC $ac_cv_struct_st_mtim_nsec
6084 echo "$as_me:$LINENO: checking for st_dm_mode in struct stat" >&5
6085 echo $ECHO_N "checking for st_dm_mode in struct stat... $ECHO_C" >&6
6086 if test "${ac_cv_struct_st_dm_mode+set}" = set; then
6087 echo $ECHO_N "(cached) $ECHO_C" >&6
6089 cat >conftest.$ac_ext <<_ACEOF
6090 #line $LINENO "configure"
6093 cat confdefs.h >>conftest.$ac_ext
6094 cat >>conftest.$ac_ext <<_ACEOF
6095 /* end confdefs.h. */
6096 #include <sys/types.h>
6097 #include <sys/stat.h>
6101 struct stat s; s.st_dm_mode;
6106 rm -f conftest.$ac_objext
6107 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6108 (eval $ac_compile) 2>&5
6110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6111 (exit $ac_status); } &&
6112 { ac_try='test -s conftest.$ac_objext'
6113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6117 (exit $ac_status); }; }; then
6118 ac_cv_struct_st_dm_mode=yes
6120 echo "$as_me: failed program was:" >&5
6121 sed 's/^/| /' conftest.$ac_ext >&5
6123 ac_cv_struct_st_dm_mode=no
6125 rm -f conftest.$ac_objext conftest.$ac_ext
6127 echo "$as_me:$LINENO: result: $ac_cv_struct_st_dm_mode" >&5
6128 echo "${ECHO_T}$ac_cv_struct_st_dm_mode" >&6
6130 if test $ac_cv_struct_st_dm_mode = yes; then
6132 cat >>confdefs.h <<\_ACEOF
6133 #define HAVE_ST_DM_MODE 1
6139 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6140 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
6141 if test "${ac_cv_header_time+set}" = set; then
6142 echo $ECHO_N "(cached) $ECHO_C" >&6
6144 cat >conftest.$ac_ext <<_ACEOF
6145 #line $LINENO "configure"
6148 cat confdefs.h >>conftest.$ac_ext
6149 cat >>conftest.$ac_ext <<_ACEOF
6150 /* end confdefs.h. */
6151 #include <sys/types.h>
6152 #include <sys/time.h>
6158 if ((struct tm *) 0)
6164 rm -f conftest.$ac_objext
6165 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6166 (eval $ac_compile) 2>&5
6168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6169 (exit $ac_status); } &&
6170 { ac_try='test -s conftest.$ac_objext'
6171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6175 (exit $ac_status); }; }; then
6176 ac_cv_header_time=yes
6178 echo "$as_me: failed program was:" >&5
6179 sed 's/^/| /' conftest.$ac_ext >&5
6181 ac_cv_header_time=no
6183 rm -f conftest.$ac_objext conftest.$ac_ext
6185 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6186 echo "${ECHO_T}$ac_cv_header_time" >&6
6187 if test $ac_cv_header_time = yes; then
6189 cat >>confdefs.h <<\_ACEOF
6190 #define TIME_WITH_SYS_TIME 1
6197 echo "$as_me:$LINENO: checking for struct timespec" >&5
6198 echo $ECHO_N "checking for struct timespec... $ECHO_C" >&6
6199 if test "${fu_cv_sys_struct_timespec+set}" = set; then
6200 echo $ECHO_N "(cached) $ECHO_C" >&6
6202 cat >conftest.$ac_ext <<_ACEOF
6203 #line $LINENO "configure"
6206 cat confdefs.h >>conftest.$ac_ext
6207 cat >>conftest.$ac_ext <<_ACEOF
6208 /* end confdefs.h. */
6210 # if TIME_WITH_SYS_TIME
6211 # include <sys/time.h>
6214 # if HAVE_SYS_TIME_H
6215 # include <sys/time.h>
6224 static struct timespec x; x.tv_sec = x.tv_nsec;
6229 rm -f conftest.$ac_objext
6230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6231 (eval $ac_compile) 2>&5
6233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6234 (exit $ac_status); } &&
6235 { ac_try='test -s conftest.$ac_objext'
6236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6240 (exit $ac_status); }; }; then
6241 fu_cv_sys_struct_timespec=yes
6243 echo "$as_me: failed program was:" >&5
6244 sed 's/^/| /' conftest.$ac_ext >&5
6246 fu_cv_sys_struct_timespec=no
6248 rm -f conftest.$ac_objext conftest.$ac_ext
6251 echo "$as_me:$LINENO: result: $fu_cv_sys_struct_timespec" >&5
6252 echo "${ECHO_T}$fu_cv_sys_struct_timespec" >&6
6254 if test $fu_cv_sys_struct_timespec = yes; then
6256 cat >>confdefs.h <<\_ACEOF
6257 #define HAVE_STRUCT_TIMESPEC 1
6262 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
6263 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
6264 if test "${ac_cv_type_uid_t+set}" = set; then
6265 echo $ECHO_N "(cached) $ECHO_C" >&6
6267 cat >conftest.$ac_ext <<_ACEOF
6268 #line $LINENO "configure"
6271 cat confdefs.h >>conftest.$ac_ext
6272 cat >>conftest.$ac_ext <<_ACEOF
6273 /* end confdefs.h. */
6274 #include <sys/types.h>
6277 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6278 $EGREP "uid_t" >/dev/null 2>&1; then
6279 ac_cv_type_uid_t=yes
6286 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
6287 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
6288 if test $ac_cv_type_uid_t = no; then
6290 cat >>confdefs.h <<\_ACEOF
6295 cat >>confdefs.h <<\_ACEOF
6301 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
6302 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
6303 if test "${ac_cv_type_getgroups+set}" = set; then
6304 echo $ECHO_N "(cached) $ECHO_C" >&6
6306 if test "$cross_compiling" = yes; then
6307 ac_cv_type_getgroups=cross
6309 cat >conftest.$ac_ext <<_ACEOF
6310 #line $LINENO "configure"
6313 cat confdefs.h >>conftest.$ac_ext
6314 cat >>conftest.$ac_ext <<_ACEOF
6315 /* end confdefs.h. */
6316 /* Thanks to Mike Rendell for this test. */
6317 #include <sys/types.h>
6320 #define MAX(x, y) ((x) > (y) ? (x) : (y))
6327 union { gid_t gval; long lval; } val;
6330 for (i = 0; i < NGID; i++)
6331 gidset[i] = val.gval;
6332 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
6334 /* Exit non-zero if getgroups seems to require an array of ints. This
6335 happens when gid_t is short but getgroups modifies an array of ints. */
6336 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
6339 rm -f conftest$ac_exeext
6340 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6341 (eval $ac_link) 2>&5
6343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6344 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6349 (exit $ac_status); }; }; then
6350 ac_cv_type_getgroups=gid_t
6352 echo "$as_me: program exited with status $ac_status" >&5
6353 echo "$as_me: failed program was:" >&5
6354 sed 's/^/| /' conftest.$ac_ext >&5
6357 ac_cv_type_getgroups=int
6359 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6361 if test $ac_cv_type_getgroups = cross; then
6362 cat >conftest.$ac_ext <<_ACEOF
6363 #line $LINENO "configure"
6366 cat confdefs.h >>conftest.$ac_ext
6367 cat >>conftest.$ac_ext <<_ACEOF
6368 /* end confdefs.h. */
6372 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6373 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
6374 ac_cv_type_getgroups=gid_t
6376 ac_cv_type_getgroups=int
6382 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
6383 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
6385 cat >>confdefs.h <<_ACEOF
6386 #define GETGROUPS_T $ac_cv_type_getgroups
6390 echo "$as_me:$LINENO: checking for mode_t" >&5
6391 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
6392 if test "${ac_cv_type_mode_t+set}" = set; then
6393 echo $ECHO_N "(cached) $ECHO_C" >&6
6395 cat >conftest.$ac_ext <<_ACEOF
6396 #line $LINENO "configure"
6399 cat confdefs.h >>conftest.$ac_ext
6400 cat >>conftest.$ac_ext <<_ACEOF
6401 /* end confdefs.h. */
6402 $ac_includes_default
6408 if (sizeof (mode_t))
6414 rm -f conftest.$ac_objext
6415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6416 (eval $ac_compile) 2>&5
6418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6419 (exit $ac_status); } &&
6420 { ac_try='test -s conftest.$ac_objext'
6421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6425 (exit $ac_status); }; }; then
6426 ac_cv_type_mode_t=yes
6428 echo "$as_me: failed program was:" >&5
6429 sed 's/^/| /' conftest.$ac_ext >&5
6431 ac_cv_type_mode_t=no
6433 rm -f conftest.$ac_objext conftest.$ac_ext
6435 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
6436 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
6437 if test $ac_cv_type_mode_t = yes; then
6441 cat >>confdefs.h <<_ACEOF
6447 echo "$as_me:$LINENO: checking for off_t" >&5
6448 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
6449 if test "${ac_cv_type_off_t+set}" = set; then
6450 echo $ECHO_N "(cached) $ECHO_C" >&6
6452 cat >conftest.$ac_ext <<_ACEOF
6453 #line $LINENO "configure"
6456 cat confdefs.h >>conftest.$ac_ext
6457 cat >>conftest.$ac_ext <<_ACEOF
6458 /* end confdefs.h. */
6459 $ac_includes_default
6471 rm -f conftest.$ac_objext
6472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6473 (eval $ac_compile) 2>&5
6475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6476 (exit $ac_status); } &&
6477 { ac_try='test -s conftest.$ac_objext'
6478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6482 (exit $ac_status); }; }; then
6483 ac_cv_type_off_t=yes
6485 echo "$as_me: failed program was:" >&5
6486 sed 's/^/| /' conftest.$ac_ext >&5
6490 rm -f conftest.$ac_objext conftest.$ac_ext
6492 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6493 echo "${ECHO_T}$ac_cv_type_off_t" >&6
6494 if test $ac_cv_type_off_t = yes; then
6498 cat >>confdefs.h <<_ACEOF
6504 echo "$as_me:$LINENO: checking for pid_t" >&5
6505 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
6506 if test "${ac_cv_type_pid_t+set}" = set; then
6507 echo $ECHO_N "(cached) $ECHO_C" >&6
6509 cat >conftest.$ac_ext <<_ACEOF
6510 #line $LINENO "configure"
6513 cat confdefs.h >>conftest.$ac_ext
6514 cat >>conftest.$ac_ext <<_ACEOF
6515 /* end confdefs.h. */
6516 $ac_includes_default
6528 rm -f conftest.$ac_objext
6529 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6530 (eval $ac_compile) 2>&5
6532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6533 (exit $ac_status); } &&
6534 { ac_try='test -s conftest.$ac_objext'
6535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6539 (exit $ac_status); }; }; then
6540 ac_cv_type_pid_t=yes
6542 echo "$as_me: failed program was:" >&5
6543 sed 's/^/| /' conftest.$ac_ext >&5
6547 rm -f conftest.$ac_objext conftest.$ac_ext
6549 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
6550 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
6551 if test $ac_cv_type_pid_t = yes; then
6555 cat >>confdefs.h <<_ACEOF
6561 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6562 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6563 if test "${ac_cv_type_signal+set}" = set; then
6564 echo $ECHO_N "(cached) $ECHO_C" >&6
6566 cat >conftest.$ac_ext <<_ACEOF
6567 #line $LINENO "configure"
6570 cat confdefs.h >>conftest.$ac_ext
6571 cat >>conftest.$ac_ext <<_ACEOF
6572 /* end confdefs.h. */
6573 #include <sys/types.h>
6579 extern "C" void (*signal (int, void (*)(int)))(int);
6581 void (*signal ()) ();
6592 rm -f conftest.$ac_objext
6593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6594 (eval $ac_compile) 2>&5
6596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6597 (exit $ac_status); } &&
6598 { ac_try='test -s conftest.$ac_objext'
6599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6603 (exit $ac_status); }; }; then
6604 ac_cv_type_signal=void
6606 echo "$as_me: failed program was:" >&5
6607 sed 's/^/| /' conftest.$ac_ext >&5
6609 ac_cv_type_signal=int
6611 rm -f conftest.$ac_objext conftest.$ac_ext
6613 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6614 echo "${ECHO_T}$ac_cv_type_signal" >&6
6616 cat >>confdefs.h <<_ACEOF
6617 #define RETSIGTYPE $ac_cv_type_signal
6621 echo "$as_me:$LINENO: checking for size_t" >&5
6622 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
6623 if test "${ac_cv_type_size_t+set}" = set; then
6624 echo $ECHO_N "(cached) $ECHO_C" >&6
6626 cat >conftest.$ac_ext <<_ACEOF
6627 #line $LINENO "configure"
6630 cat confdefs.h >>conftest.$ac_ext
6631 cat >>conftest.$ac_ext <<_ACEOF
6632 /* end confdefs.h. */
6633 $ac_includes_default
6639 if (sizeof (size_t))
6645 rm -f conftest.$ac_objext
6646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6647 (eval $ac_compile) 2>&5
6649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6650 (exit $ac_status); } &&
6651 { ac_try='test -s conftest.$ac_objext'
6652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6656 (exit $ac_status); }; }; then
6657 ac_cv_type_size_t=yes
6659 echo "$as_me: failed program was:" >&5
6660 sed 's/^/| /' conftest.$ac_ext >&5
6662 ac_cv_type_size_t=no
6664 rm -f conftest.$ac_objext conftest.$ac_ext
6666 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6667 echo "${ECHO_T}$ac_cv_type_size_t" >&6
6668 if test $ac_cv_type_size_t = yes; then
6672 cat >>confdefs.h <<_ACEOF
6673 #define size_t unsigned
6679 echo "$as_me:$LINENO: checking for unsigned long long" >&5
6680 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
6681 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
6682 echo $ECHO_N "(cached) $ECHO_C" >&6
6684 cat >conftest.$ac_ext <<_ACEOF
6685 #line $LINENO "configure"
6688 cat confdefs.h >>conftest.$ac_ext
6689 cat >>conftest.$ac_ext <<_ACEOF
6690 /* end confdefs.h. */
6691 unsigned long long ull = 1; int i = 63;
6695 unsigned long long ullmax = (unsigned long long) -1;
6696 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
6701 rm -f conftest.$ac_objext conftest$ac_exeext
6702 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6703 (eval $ac_link) 2>&5
6705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6706 (exit $ac_status); } &&
6707 { ac_try='test -s conftest$ac_exeext'
6708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6712 (exit $ac_status); }; }; then
6713 ac_cv_type_unsigned_long_long=yes
6715 echo "$as_me: failed program was:" >&5
6716 sed 's/^/| /' conftest.$ac_ext >&5
6718 ac_cv_type_unsigned_long_long=no
6720 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6722 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
6723 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
6724 if test $ac_cv_type_unsigned_long_long = yes; then
6726 cat >>confdefs.h <<\_ACEOF
6727 #define HAVE_UNSIGNED_LONG_LONG 1
6734 echo "$as_me:$LINENO: checking for uintmax_t" >&5
6735 echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6
6736 if test "${ac_cv_type_uintmax_t+set}" = set; then
6737 echo $ECHO_N "(cached) $ECHO_C" >&6
6739 cat >conftest.$ac_ext <<_ACEOF
6740 #line $LINENO "configure"
6743 cat confdefs.h >>conftest.$ac_ext
6744 cat >>conftest.$ac_ext <<_ACEOF
6745 /* end confdefs.h. */
6746 $ac_includes_default
6750 if ((uintmax_t *) 0)
6752 if (sizeof (uintmax_t))
6758 rm -f conftest.$ac_objext
6759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6760 (eval $ac_compile) 2>&5
6762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6763 (exit $ac_status); } &&
6764 { ac_try='test -s conftest.$ac_objext'
6765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6769 (exit $ac_status); }; }; then
6770 ac_cv_type_uintmax_t=yes
6772 echo "$as_me: failed program was:" >&5
6773 sed 's/^/| /' conftest.$ac_ext >&5
6775 ac_cv_type_uintmax_t=no
6777 rm -f conftest.$ac_objext conftest.$ac_ext
6779 echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5
6780 echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6
6781 if test $ac_cv_type_uintmax_t = yes; then
6784 test $ac_cv_type_unsigned_long_long = yes \
6785 && ac_type='unsigned long long' \
6786 || ac_type='unsigned long'
6788 cat >>confdefs.h <<_ACEOF
6789 #define uintmax_t $ac_type
6795 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
6796 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
6797 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
6798 echo $ECHO_N "(cached) $ECHO_C" >&6
6800 cat >conftest.$ac_ext <<_ACEOF
6801 #line $LINENO "configure"
6804 cat confdefs.h >>conftest.$ac_ext
6805 cat >>conftest.$ac_ext <<_ACEOF
6806 /* end confdefs.h. */
6807 #include <sys/types.h>
6811 return makedev(0, 0);
6816 rm -f conftest.$ac_objext conftest$ac_exeext
6817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6818 (eval $ac_link) 2>&5
6820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6821 (exit $ac_status); } &&
6822 { ac_try='test -s conftest$ac_exeext'
6823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6827 (exit $ac_status); }; }; then
6828 ac_cv_header_sys_types_h_makedev=yes
6830 echo "$as_me: failed program was:" >&5
6831 sed 's/^/| /' conftest.$ac_ext >&5
6833 ac_cv_header_sys_types_h_makedev=no
6835 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6838 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
6839 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
6841 if test $ac_cv_header_sys_types_h_makedev = no; then
6842 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6843 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
6844 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
6845 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6846 echo $ECHO_N "(cached) $ECHO_C" >&6
6848 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
6849 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
6851 # Is the header compilable?
6852 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
6853 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
6854 cat >conftest.$ac_ext <<_ACEOF
6855 #line $LINENO "configure"
6858 cat confdefs.h >>conftest.$ac_ext
6859 cat >>conftest.$ac_ext <<_ACEOF
6860 /* end confdefs.h. */
6861 $ac_includes_default
6862 #include <sys/mkdev.h>
6864 rm -f conftest.$ac_objext
6865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6866 (eval $ac_compile) 2>&5
6868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6869 (exit $ac_status); } &&
6870 { ac_try='test -s conftest.$ac_objext'
6871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6875 (exit $ac_status); }; }; then
6876 ac_header_compiler=yes
6878 echo "$as_me: failed program was:" >&5
6879 sed 's/^/| /' conftest.$ac_ext >&5
6881 ac_header_compiler=no
6883 rm -f conftest.$ac_objext conftest.$ac_ext
6884 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6885 echo "${ECHO_T}$ac_header_compiler" >&6
6887 # Is the header present?
6888 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
6889 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
6890 cat >conftest.$ac_ext <<_ACEOF
6891 #line $LINENO "configure"
6894 cat confdefs.h >>conftest.$ac_ext
6895 cat >>conftest.$ac_ext <<_ACEOF
6896 /* end confdefs.h. */
6897 #include <sys/mkdev.h>
6899 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6900 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6902 grep -v '^ *+' conftest.er1 >conftest.err
6904 cat conftest.err >&5
6905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6906 (exit $ac_status); } >/dev/null; then
6907 if test -s conftest.err; then
6908 ac_cpp_err=$ac_c_preproc_warn_flag
6915 if test -z "$ac_cpp_err"; then
6916 ac_header_preproc=yes
6918 echo "$as_me: failed program was:" >&5
6919 sed 's/^/| /' conftest.$ac_ext >&5
6921 ac_header_preproc=no
6923 rm -f conftest.err conftest.$ac_ext
6924 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6925 echo "${ECHO_T}$ac_header_preproc" >&6
6927 # So? What about this header?
6928 case $ac_header_compiler:$ac_header_preproc in
6930 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
6931 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6932 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
6933 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
6936 ## ------------------------------------ ##
6937 ## Report this to bug-autoconf@gnu.org. ##
6938 ## ------------------------------------ ##
6941 sed "s/^/$as_me: WARNING: /" >&2
6944 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
6945 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
6946 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
6947 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
6948 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
6949 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
6952 ## ------------------------------------ ##
6953 ## Report this to bug-autoconf@gnu.org. ##
6954 ## ------------------------------------ ##
6957 sed "s/^/$as_me: WARNING: /" >&2
6960 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
6961 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
6962 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6963 echo $ECHO_N "(cached) $ECHO_C" >&6
6965 ac_cv_header_sys_mkdev_h=$ac_header_preproc
6967 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
6968 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
6971 if test $ac_cv_header_sys_mkdev_h = yes; then
6973 cat >>confdefs.h <<\_ACEOF
6974 #define MAJOR_IN_MKDEV 1
6981 if test $ac_cv_header_sys_mkdev_h = no; then
6982 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6983 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
6984 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
6985 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6986 echo $ECHO_N "(cached) $ECHO_C" >&6
6988 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
6989 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
6991 # Is the header compilable?
6992 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
6993 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
6994 cat >conftest.$ac_ext <<_ACEOF
6995 #line $LINENO "configure"
6998 cat confdefs.h >>conftest.$ac_ext
6999 cat >>conftest.$ac_ext <<_ACEOF
7000 /* end confdefs.h. */
7001 $ac_includes_default
7002 #include <sys/sysmacros.h>
7004 rm -f conftest.$ac_objext
7005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7006 (eval $ac_compile) 2>&5
7008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7009 (exit $ac_status); } &&
7010 { ac_try='test -s conftest.$ac_objext'
7011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7015 (exit $ac_status); }; }; then
7016 ac_header_compiler=yes
7018 echo "$as_me: failed program was:" >&5
7019 sed 's/^/| /' conftest.$ac_ext >&5
7021 ac_header_compiler=no
7023 rm -f conftest.$ac_objext conftest.$ac_ext
7024 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7025 echo "${ECHO_T}$ac_header_compiler" >&6
7027 # Is the header present?
7028 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
7029 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
7030 cat >conftest.$ac_ext <<_ACEOF
7031 #line $LINENO "configure"
7034 cat confdefs.h >>conftest.$ac_ext
7035 cat >>conftest.$ac_ext <<_ACEOF
7036 /* end confdefs.h. */
7037 #include <sys/sysmacros.h>
7039 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7040 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7042 grep -v '^ *+' conftest.er1 >conftest.err
7044 cat conftest.err >&5
7045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7046 (exit $ac_status); } >/dev/null; then
7047 if test -s conftest.err; then
7048 ac_cpp_err=$ac_c_preproc_warn_flag
7055 if test -z "$ac_cpp_err"; then
7056 ac_header_preproc=yes
7058 echo "$as_me: failed program was:" >&5
7059 sed 's/^/| /' conftest.$ac_ext >&5
7061 ac_header_preproc=no
7063 rm -f conftest.err conftest.$ac_ext
7064 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7065 echo "${ECHO_T}$ac_header_preproc" >&6
7067 # So? What about this header?
7068 case $ac_header_compiler:$ac_header_preproc in
7070 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
7071 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7072 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
7073 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
7076 ## ------------------------------------ ##
7077 ## Report this to bug-autoconf@gnu.org. ##
7078 ## ------------------------------------ ##
7081 sed "s/^/$as_me: WARNING: /" >&2
7084 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
7085 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
7086 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
7087 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
7088 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
7089 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
7092 ## ------------------------------------ ##
7093 ## Report this to bug-autoconf@gnu.org. ##
7094 ## ------------------------------------ ##
7097 sed "s/^/$as_me: WARNING: /" >&2
7100 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
7101 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
7102 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
7103 echo $ECHO_N "(cached) $ECHO_C" >&6
7105 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
7107 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
7108 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
7111 if test $ac_cv_header_sys_sysmacros_h = yes; then
7113 cat >>confdefs.h <<\_ACEOF
7114 #define MAJOR_IN_SYSMACROS 1
7123 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
7124 # for constant arguments. Useless!
7125 echo "$as_me:$LINENO: checking for working alloca.h" >&5
7126 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
7127 if test "${ac_cv_working_alloca_h+set}" = set; then
7128 echo $ECHO_N "(cached) $ECHO_C" >&6
7130 cat >conftest.$ac_ext <<_ACEOF
7131 #line $LINENO "configure"
7134 cat confdefs.h >>conftest.$ac_ext
7135 cat >>conftest.$ac_ext <<_ACEOF
7136 /* end confdefs.h. */
7141 char *p = (char *) alloca (2 * sizeof (int));
7146 rm -f conftest.$ac_objext conftest$ac_exeext
7147 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7148 (eval $ac_link) 2>&5
7150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7151 (exit $ac_status); } &&
7152 { ac_try='test -s conftest$ac_exeext'
7153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7157 (exit $ac_status); }; }; then
7158 ac_cv_working_alloca_h=yes
7160 echo "$as_me: failed program was:" >&5
7161 sed 's/^/| /' conftest.$ac_ext >&5
7163 ac_cv_working_alloca_h=no
7165 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7167 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
7168 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
7169 if test $ac_cv_working_alloca_h = yes; then
7171 cat >>confdefs.h <<\_ACEOF
7172 #define HAVE_ALLOCA_H 1
7177 echo "$as_me:$LINENO: checking for alloca" >&5
7178 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
7179 if test "${ac_cv_func_alloca_works+set}" = set; then
7180 echo $ECHO_N "(cached) $ECHO_C" >&6
7182 cat >conftest.$ac_ext <<_ACEOF
7183 #line $LINENO "configure"
7186 cat confdefs.h >>conftest.$ac_ext
7187 cat >>conftest.$ac_ext <<_ACEOF
7188 /* end confdefs.h. */
7190 # define alloca __builtin_alloca
7193 # include <malloc.h>
7194 # define alloca _alloca
7197 # include <alloca.h>
7202 # ifndef alloca /* predefined by HP cc +Olibcalls */
7213 char *p = (char *) alloca (1);
7218 rm -f conftest.$ac_objext conftest$ac_exeext
7219 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7220 (eval $ac_link) 2>&5
7222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7223 (exit $ac_status); } &&
7224 { ac_try='test -s conftest$ac_exeext'
7225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7229 (exit $ac_status); }; }; then
7230 ac_cv_func_alloca_works=yes
7232 echo "$as_me: failed program was:" >&5
7233 sed 's/^/| /' conftest.$ac_ext >&5
7235 ac_cv_func_alloca_works=no
7237 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7239 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
7240 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
7242 if test $ac_cv_func_alloca_works = yes; then
7244 cat >>confdefs.h <<\_ACEOF
7245 #define HAVE_ALLOCA 1
7249 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7250 # that cause trouble. Some versions do not even contain alloca or
7251 # contain a buggy version. If you still want to use their alloca,
7252 # use ar to extract alloca.o from them instead of compiling alloca.c.
7254 ALLOCA=alloca.$ac_objext
7256 cat >>confdefs.h <<\_ACEOF
7261 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
7262 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
7263 if test "${ac_cv_os_cray+set}" = set; then
7264 echo $ECHO_N "(cached) $ECHO_C" >&6
7266 cat >conftest.$ac_ext <<_ACEOF
7267 #line $LINENO "configure"
7270 cat confdefs.h >>conftest.$ac_ext
7271 cat >>conftest.$ac_ext <<_ACEOF
7272 /* end confdefs.h. */
7273 #if defined(CRAY) && ! defined(CRAY2)
7280 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7281 $EGREP "webecray" >/dev/null 2>&1; then
7289 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
7290 echo "${ECHO_T}$ac_cv_os_cray" >&6
7291 if test $ac_cv_os_cray = yes; then
7292 for ac_func in _getb67 GETB67 getb67; do
7293 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7294 echo "$as_me:$LINENO: checking for $ac_func" >&5
7295 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7296 if eval "test \"\${$as_ac_var+set}\" = set"; then
7297 echo $ECHO_N "(cached) $ECHO_C" >&6
7299 cat >conftest.$ac_ext <<_ACEOF
7300 #line $LINENO "configure"
7303 cat confdefs.h >>conftest.$ac_ext
7304 cat >>conftest.$ac_ext <<_ACEOF
7305 /* end confdefs.h. */
7306 /* System header to define __stub macros and hopefully few prototypes,
7307 which can conflict with char $ac_func (); below.
7308 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7309 <limits.h> exists even on freestanding compilers. */
7311 # include <limits.h>
7313 # include <assert.h>
7315 /* Override any gcc2 internal prototype to avoid an error. */
7320 /* We use char because int might match the return type of a gcc2
7321 builtin and then its argument prototype would still apply. */
7323 /* The GNU C library defines this for functions which it implements
7324 to always fail with ENOSYS. Some functions are actually named
7325 something starting with __ and the normal name is an alias. */
7326 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7329 char (*f) () = $ac_func;
7338 return f != $ac_func;
7343 rm -f conftest.$ac_objext conftest$ac_exeext
7344 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7345 (eval $ac_link) 2>&5
7347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7348 (exit $ac_status); } &&
7349 { ac_try='test -s conftest$ac_exeext'
7350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7354 (exit $ac_status); }; }; then
7355 eval "$as_ac_var=yes"
7357 echo "$as_me: failed program was:" >&5
7358 sed 's/^/| /' conftest.$ac_ext >&5
7360 eval "$as_ac_var=no"
7362 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7364 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7365 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7366 if test `eval echo '${'$as_ac_var'}'` = yes; then
7368 cat >>confdefs.h <<_ACEOF
7369 #define CRAY_STACKSEG_END $ac_func
7378 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
7379 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
7380 if test "${ac_cv_c_stack_direction+set}" = set; then
7381 echo $ECHO_N "(cached) $ECHO_C" >&6
7383 if test "$cross_compiling" = yes; then
7384 ac_cv_c_stack_direction=0
7386 cat >conftest.$ac_ext <<_ACEOF
7387 #line $LINENO "configure"
7390 cat confdefs.h >>conftest.$ac_ext
7391 cat >>conftest.$ac_ext <<_ACEOF
7392 /* end confdefs.h. */
7394 find_stack_direction ()
7396 static char *addr = 0;
7401 return find_stack_direction ();
7404 return (&dummy > addr) ? 1 : -1;
7410 exit (find_stack_direction () < 0);
7413 rm -f conftest$ac_exeext
7414 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7415 (eval $ac_link) 2>&5
7417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7418 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7423 (exit $ac_status); }; }; then
7424 ac_cv_c_stack_direction=1
7426 echo "$as_me: program exited with status $ac_status" >&5
7427 echo "$as_me: failed program was:" >&5
7428 sed 's/^/| /' conftest.$ac_ext >&5
7431 ac_cv_c_stack_direction=-1
7433 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7436 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
7437 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
7439 cat >>confdefs.h <<_ACEOF
7440 #define STACK_DIRECTION $ac_cv_c_stack_direction
7448 for ac_header in limits.h
7450 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7451 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7452 echo "$as_me:$LINENO: checking for $ac_header" >&5
7453 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7454 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7455 echo $ECHO_N "(cached) $ECHO_C" >&6
7457 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7458 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7460 # Is the header compilable?
7461 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7462 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7463 cat >conftest.$ac_ext <<_ACEOF
7464 #line $LINENO "configure"
7467 cat confdefs.h >>conftest.$ac_ext
7468 cat >>conftest.$ac_ext <<_ACEOF
7469 /* end confdefs.h. */
7470 $ac_includes_default
7471 #include <$ac_header>
7473 rm -f conftest.$ac_objext
7474 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7475 (eval $ac_compile) 2>&5
7477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7478 (exit $ac_status); } &&
7479 { ac_try='test -s conftest.$ac_objext'
7480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7484 (exit $ac_status); }; }; then
7485 ac_header_compiler=yes
7487 echo "$as_me: failed program was:" >&5
7488 sed 's/^/| /' conftest.$ac_ext >&5
7490 ac_header_compiler=no
7492 rm -f conftest.$ac_objext conftest.$ac_ext
7493 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7494 echo "${ECHO_T}$ac_header_compiler" >&6
7496 # Is the header present?
7497 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7498 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7499 cat >conftest.$ac_ext <<_ACEOF
7500 #line $LINENO "configure"
7503 cat confdefs.h >>conftest.$ac_ext
7504 cat >>conftest.$ac_ext <<_ACEOF
7505 /* end confdefs.h. */
7506 #include <$ac_header>
7508 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7509 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7511 grep -v '^ *+' conftest.er1 >conftest.err
7513 cat conftest.err >&5
7514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7515 (exit $ac_status); } >/dev/null; then
7516 if test -s conftest.err; then
7517 ac_cpp_err=$ac_c_preproc_warn_flag
7524 if test -z "$ac_cpp_err"; then
7525 ac_header_preproc=yes
7527 echo "$as_me: failed program was:" >&5
7528 sed 's/^/| /' conftest.$ac_ext >&5
7530 ac_header_preproc=no
7532 rm -f conftest.err conftest.$ac_ext
7533 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7534 echo "${ECHO_T}$ac_header_preproc" >&6
7536 # So? What about this header?
7537 case $ac_header_compiler:$ac_header_preproc in
7539 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7540 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7541 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7542 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7545 ## ------------------------------------ ##
7546 ## Report this to bug-autoconf@gnu.org. ##
7547 ## ------------------------------------ ##
7550 sed "s/^/$as_me: WARNING: /" >&2
7553 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7554 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7555 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7556 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7557 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7558 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7561 ## ------------------------------------ ##
7562 ## Report this to bug-autoconf@gnu.org. ##
7563 ## ------------------------------------ ##
7566 sed "s/^/$as_me: WARNING: /" >&2
7569 echo "$as_me:$LINENO: checking for $ac_header" >&5
7570 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7571 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7572 echo $ECHO_N "(cached) $ECHO_C" >&6
7574 eval "$as_ac_Header=$ac_header_preproc"
7576 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7577 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7580 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7581 cat >>confdefs.h <<_ACEOF
7582 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7592 for ac_header in string.h
7594 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7595 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7596 echo "$as_me:$LINENO: checking for $ac_header" >&5
7597 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7598 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7599 echo $ECHO_N "(cached) $ECHO_C" >&6
7601 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7602 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7604 # Is the header compilable?
7605 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7606 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7607 cat >conftest.$ac_ext <<_ACEOF
7608 #line $LINENO "configure"
7611 cat confdefs.h >>conftest.$ac_ext
7612 cat >>conftest.$ac_ext <<_ACEOF
7613 /* end confdefs.h. */
7614 $ac_includes_default
7615 #include <$ac_header>
7617 rm -f conftest.$ac_objext
7618 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7619 (eval $ac_compile) 2>&5
7621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7622 (exit $ac_status); } &&
7623 { ac_try='test -s conftest.$ac_objext'
7624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7628 (exit $ac_status); }; }; then
7629 ac_header_compiler=yes
7631 echo "$as_me: failed program was:" >&5
7632 sed 's/^/| /' conftest.$ac_ext >&5
7634 ac_header_compiler=no
7636 rm -f conftest.$ac_objext conftest.$ac_ext
7637 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7638 echo "${ECHO_T}$ac_header_compiler" >&6
7640 # Is the header present?
7641 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7642 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7643 cat >conftest.$ac_ext <<_ACEOF
7644 #line $LINENO "configure"
7647 cat confdefs.h >>conftest.$ac_ext
7648 cat >>conftest.$ac_ext <<_ACEOF
7649 /* end confdefs.h. */
7650 #include <$ac_header>
7652 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7653 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7655 grep -v '^ *+' conftest.er1 >conftest.err
7657 cat conftest.err >&5
7658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7659 (exit $ac_status); } >/dev/null; then
7660 if test -s conftest.err; then
7661 ac_cpp_err=$ac_c_preproc_warn_flag
7668 if test -z "$ac_cpp_err"; then
7669 ac_header_preproc=yes
7671 echo "$as_me: failed program was:" >&5
7672 sed 's/^/| /' conftest.$ac_ext >&5
7674 ac_header_preproc=no
7676 rm -f conftest.err conftest.$ac_ext
7677 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7678 echo "${ECHO_T}$ac_header_preproc" >&6
7680 # So? What about this header?
7681 case $ac_header_compiler:$ac_header_preproc in
7683 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7684 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7685 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7686 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7689 ## ------------------------------------ ##
7690 ## Report this to bug-autoconf@gnu.org. ##
7691 ## ------------------------------------ ##
7694 sed "s/^/$as_me: WARNING: /" >&2
7697 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7698 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7699 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7700 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7701 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7702 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7705 ## ------------------------------------ ##
7706 ## Report this to bug-autoconf@gnu.org. ##
7707 ## ------------------------------------ ##
7710 sed "s/^/$as_me: WARNING: /" >&2
7713 echo "$as_me:$LINENO: checking for $ac_header" >&5
7714 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7715 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7716 echo $ECHO_N "(cached) $ECHO_C" >&6
7718 eval "$as_ac_Header=$ac_header_preproc"
7720 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7721 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7724 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7725 cat >>confdefs.h <<_ACEOF
7726 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7736 for ac_header in wchar.h
7738 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7739 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7740 echo "$as_me:$LINENO: checking for $ac_header" >&5
7741 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7742 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7743 echo $ECHO_N "(cached) $ECHO_C" >&6
7745 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7746 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7748 # Is the header compilable?
7749 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7750 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7751 cat >conftest.$ac_ext <<_ACEOF
7752 #line $LINENO "configure"
7755 cat confdefs.h >>conftest.$ac_ext
7756 cat >>conftest.$ac_ext <<_ACEOF
7757 /* end confdefs.h. */
7758 $ac_includes_default
7759 #include <$ac_header>
7761 rm -f conftest.$ac_objext
7762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7763 (eval $ac_compile) 2>&5
7765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7766 (exit $ac_status); } &&
7767 { ac_try='test -s conftest.$ac_objext'
7768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7772 (exit $ac_status); }; }; then
7773 ac_header_compiler=yes
7775 echo "$as_me: failed program was:" >&5
7776 sed 's/^/| /' conftest.$ac_ext >&5
7778 ac_header_compiler=no
7780 rm -f conftest.$ac_objext conftest.$ac_ext
7781 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7782 echo "${ECHO_T}$ac_header_compiler" >&6
7784 # Is the header present?
7785 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7786 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7787 cat >conftest.$ac_ext <<_ACEOF
7788 #line $LINENO "configure"
7791 cat confdefs.h >>conftest.$ac_ext
7792 cat >>conftest.$ac_ext <<_ACEOF
7793 /* end confdefs.h. */
7794 #include <$ac_header>
7796 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7797 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7799 grep -v '^ *+' conftest.er1 >conftest.err
7801 cat conftest.err >&5
7802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7803 (exit $ac_status); } >/dev/null; then
7804 if test -s conftest.err; then
7805 ac_cpp_err=$ac_c_preproc_warn_flag
7812 if test -z "$ac_cpp_err"; then
7813 ac_header_preproc=yes
7815 echo "$as_me: failed program was:" >&5
7816 sed 's/^/| /' conftest.$ac_ext >&5
7818 ac_header_preproc=no
7820 rm -f conftest.err conftest.$ac_ext
7821 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7822 echo "${ECHO_T}$ac_header_preproc" >&6
7824 # So? What about this header?
7825 case $ac_header_compiler:$ac_header_preproc in
7827 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7828 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7829 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7830 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7833 ## ------------------------------------ ##
7834 ## Report this to bug-autoconf@gnu.org. ##
7835 ## ------------------------------------ ##
7838 sed "s/^/$as_me: WARNING: /" >&2
7841 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7842 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7843 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7844 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7845 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7846 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7849 ## ------------------------------------ ##
7850 ## Report this to bug-autoconf@gnu.org. ##
7851 ## ------------------------------------ ##
7854 sed "s/^/$as_me: WARNING: /" >&2
7857 echo "$as_me:$LINENO: checking for $ac_header" >&5
7858 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7859 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7860 echo $ECHO_N "(cached) $ECHO_C" >&6
7862 eval "$as_ac_Header=$ac_header_preproc"
7864 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7865 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7868 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7869 cat >>confdefs.h <<_ACEOF
7870 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7880 for ac_header in wctype.h
7882 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7883 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7884 echo "$as_me:$LINENO: checking for $ac_header" >&5
7885 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7886 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7887 echo $ECHO_N "(cached) $ECHO_C" >&6
7889 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7890 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7892 # Is the header compilable?
7893 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7894 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7895 cat >conftest.$ac_ext <<_ACEOF
7896 #line $LINENO "configure"
7899 cat confdefs.h >>conftest.$ac_ext
7900 cat >>conftest.$ac_ext <<_ACEOF
7901 /* end confdefs.h. */
7902 $ac_includes_default
7903 #include <$ac_header>
7905 rm -f conftest.$ac_objext
7906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7907 (eval $ac_compile) 2>&5
7909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7910 (exit $ac_status); } &&
7911 { ac_try='test -s conftest.$ac_objext'
7912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7916 (exit $ac_status); }; }; then
7917 ac_header_compiler=yes
7919 echo "$as_me: failed program was:" >&5
7920 sed 's/^/| /' conftest.$ac_ext >&5
7922 ac_header_compiler=no
7924 rm -f conftest.$ac_objext conftest.$ac_ext
7925 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7926 echo "${ECHO_T}$ac_header_compiler" >&6
7928 # Is the header present?
7929 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7930 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7931 cat >conftest.$ac_ext <<_ACEOF
7932 #line $LINENO "configure"
7935 cat confdefs.h >>conftest.$ac_ext
7936 cat >>conftest.$ac_ext <<_ACEOF
7937 /* end confdefs.h. */
7938 #include <$ac_header>
7940 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7941 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7943 grep -v '^ *+' conftest.er1 >conftest.err
7945 cat conftest.err >&5
7946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7947 (exit $ac_status); } >/dev/null; then
7948 if test -s conftest.err; then
7949 ac_cpp_err=$ac_c_preproc_warn_flag
7956 if test -z "$ac_cpp_err"; then
7957 ac_header_preproc=yes
7959 echo "$as_me: failed program was:" >&5
7960 sed 's/^/| /' conftest.$ac_ext >&5
7962 ac_header_preproc=no
7964 rm -f conftest.err conftest.$ac_ext
7965 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7966 echo "${ECHO_T}$ac_header_preproc" >&6
7968 # So? What about this header?
7969 case $ac_header_compiler:$ac_header_preproc in
7971 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7972 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7973 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7974 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7977 ## ------------------------------------ ##
7978 ## Report this to bug-autoconf@gnu.org. ##
7979 ## ------------------------------------ ##
7982 sed "s/^/$as_me: WARNING: /" >&2
7985 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7986 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7987 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7988 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7989 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7990 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7993 ## ------------------------------------ ##
7994 ## Report this to bug-autoconf@gnu.org. ##
7995 ## ------------------------------------ ##
7998 sed "s/^/$as_me: WARNING: /" >&2
8001 echo "$as_me:$LINENO: checking for $ac_header" >&5
8002 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8003 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8004 echo $ECHO_N "(cached) $ECHO_C" >&6
8006 eval "$as_ac_Header=$ac_header_preproc"
8008 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8009 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8012 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8013 cat >>confdefs.h <<_ACEOF
8014 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8024 for ac_func in isascii
8026 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8027 echo "$as_me:$LINENO: checking for $ac_func" >&5
8028 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8029 if eval "test \"\${$as_ac_var+set}\" = set"; then
8030 echo $ECHO_N "(cached) $ECHO_C" >&6
8032 cat >conftest.$ac_ext <<_ACEOF
8033 #line $LINENO "configure"
8036 cat confdefs.h >>conftest.$ac_ext
8037 cat >>conftest.$ac_ext <<_ACEOF
8038 /* end confdefs.h. */
8039 /* System header to define __stub macros and hopefully few prototypes,
8040 which can conflict with char $ac_func (); below.
8041 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8042 <limits.h> exists even on freestanding compilers. */
8044 # include <limits.h>
8046 # include <assert.h>
8048 /* Override any gcc2 internal prototype to avoid an error. */
8053 /* We use char because int might match the return type of a gcc2
8054 builtin and then its argument prototype would still apply. */
8056 /* The GNU C library defines this for functions which it implements
8057 to always fail with ENOSYS. Some functions are actually named
8058 something starting with __ and the normal name is an alias. */
8059 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8062 char (*f) () = $ac_func;
8071 return f != $ac_func;
8076 rm -f conftest.$ac_objext conftest$ac_exeext
8077 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8078 (eval $ac_link) 2>&5
8080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8081 (exit $ac_status); } &&
8082 { ac_try='test -s conftest$ac_exeext'
8083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8087 (exit $ac_status); }; }; then
8088 eval "$as_ac_var=yes"
8090 echo "$as_me: failed program was:" >&5
8091 sed 's/^/| /' conftest.$ac_ext >&5
8093 eval "$as_ac_var=no"
8095 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8097 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8098 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8099 if test `eval echo '${'$as_ac_var'}'` = yes; then
8100 cat >>confdefs.h <<_ACEOF
8101 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8110 for ac_func in mempcpy
8112 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8113 echo "$as_me:$LINENO: checking for $ac_func" >&5
8114 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8115 if eval "test \"\${$as_ac_var+set}\" = set"; then
8116 echo $ECHO_N "(cached) $ECHO_C" >&6
8118 cat >conftest.$ac_ext <<_ACEOF
8119 #line $LINENO "configure"
8122 cat confdefs.h >>conftest.$ac_ext
8123 cat >>conftest.$ac_ext <<_ACEOF
8124 /* end confdefs.h. */
8125 /* System header to define __stub macros and hopefully few prototypes,
8126 which can conflict with char $ac_func (); below.
8127 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8128 <limits.h> exists even on freestanding compilers. */
8130 # include <limits.h>
8132 # include <assert.h>
8134 /* Override any gcc2 internal prototype to avoid an error. */
8139 /* We use char because int might match the return type of a gcc2
8140 builtin and then its argument prototype would still apply. */
8142 /* The GNU C library defines this for functions which it implements
8143 to always fail with ENOSYS. Some functions are actually named
8144 something starting with __ and the normal name is an alias. */
8145 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8148 char (*f) () = $ac_func;
8157 return f != $ac_func;
8162 rm -f conftest.$ac_objext conftest$ac_exeext
8163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8164 (eval $ac_link) 2>&5
8166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8167 (exit $ac_status); } &&
8168 { ac_try='test -s conftest$ac_exeext'
8169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8173 (exit $ac_status); }; }; then
8174 eval "$as_ac_var=yes"
8176 echo "$as_me: failed program was:" >&5
8177 sed 's/^/| /' conftest.$ac_ext >&5
8179 eval "$as_ac_var=no"
8181 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8183 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8184 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8185 if test `eval echo '${'$as_ac_var'}'` = yes; then
8186 cat >>confdefs.h <<_ACEOF
8187 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8195 echo "$as_me:$LINENO: checking host operating system" >&5
8196 echo $ECHO_N "checking host operating system... $ECHO_C" >&6
8197 if test "${utils_cv_host_operating_system+set}" = set; then
8198 echo $ECHO_N "(cached) $ECHO_C" >&6
8202 # These operating system names do not use the default heuristic below.
8203 # They are in reverse order, so that more-specific prefixes come first.
8204 winnt*) os='Windows NT';;
8206 sysv*) os='Unix System V';;
8207 superux*) os='SUPER-UX';;
8208 sunos*) os='SunOS';;
8210 sco*) os='SCO Unix';;
8211 riscos*) os='RISC OS';;
8212 riscix*) os='RISCiX';;
8216 plan9*) os='Plan 9';;
8219 openbsd*) os='OpenBSD';;
8220 nsk*) os='NonStop Kernel';;
8221 nonstopux*) os='NonStop-UX';;
8222 netbsd*) os='NetBSD';;
8223 msdosdjgpp*) os='DJGPP';;
8224 mpeix*) os='MPE/iX';;
8226 mingw*) os='MinGW';;
8227 lynxos*) os='LynxOS';;
8228 linux*) os='GNU/Linux';;
8232 freebsd*-gnu*) os='GNU/FreeBSD';;
8233 freebsd*) os='FreeBSD';;
8235 bsdi*) os='BSD/OS';;
8239 atheos*) os='AtheOS';;
8240 amigaos*) os='Amiga OS';;
8243 # The default heuristic takes the initial alphabetic string
8244 # from $host_os, but capitalizes its first letter.
8247 expr "X$host_os" : 'X\([A-Za-z]\)' | tr '[a-z]' '[A-Z]'
8249 expr "X$host_os" : 'X.\([A-Za-z]*\)'
8253 # If $host_os does not start with an alphabetic string, use it unchanged.
8257 utils_cv_host_operating_system=$os
8259 echo "$as_me:$LINENO: result: $utils_cv_host_operating_system" >&5
8260 echo "${ECHO_T}$utils_cv_host_operating_system" >&6
8262 cat >>confdefs.h <<_ACEOF
8263 #define HOST_OPERATING_SYSTEM "$utils_cv_host_operating_system"
8267 echo "$as_me:$LINENO: checking whether mkdir fails due to a trailing slash" >&5
8268 echo $ECHO_N "checking whether mkdir fails due to a trailing slash... $ECHO_C" >&6
8269 if test "${utils_cv_func_mkdir_trailing_slash_bug+set}" = set; then
8270 echo $ECHO_N "(cached) $ECHO_C" >&6
8273 # Arrange for deletion of the temporary directory this test might create.
8274 ac_clean_files="$ac_clean_files confdir-slash"
8275 if test "$cross_compiling" = yes; then
8276 utils_cv_func_mkdir_trailing_slash_bug=yes
8279 cat >conftest.$ac_ext <<_ACEOF
8280 #line $LINENO "configure"
8283 cat confdefs.h >>conftest.$ac_ext
8284 cat >>conftest.$ac_ext <<_ACEOF
8285 /* end confdefs.h. */
8287 # include <sys/types.h>
8288 # include <sys/stat.h>
8289 # include <stdlib.h>
8292 rmdir ("confdir-slash");
8293 exit (mkdir ("confdir-slash/", 0700));
8297 rm -f conftest$ac_exeext
8298 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8299 (eval $ac_link) 2>&5
8301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8302 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8307 (exit $ac_status); }; }; then
8308 utils_cv_func_mkdir_trailing_slash_bug=no
8310 echo "$as_me: program exited with status $ac_status" >&5
8311 echo "$as_me: failed program was:" >&5
8312 sed 's/^/| /' conftest.$ac_ext >&5
8315 utils_cv_func_mkdir_trailing_slash_bug=yes
8317 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8322 echo "$as_me:$LINENO: result: $utils_cv_func_mkdir_trailing_slash_bug" >&5
8323 echo "${ECHO_T}$utils_cv_func_mkdir_trailing_slash_bug" >&6
8325 if test $utils_cv_func_mkdir_trailing_slash_bug = yes; then
8326 LIBOBJS="$LIBOBJS mkdir.$ac_objext"
8328 cat >>confdefs.h <<\_ACEOF
8329 #define mkdir rpl_mkdir
8335 # getdate.y works with bison only.
8336 : ${YACC='bison -y'}
8340 echo "$as_me:$LINENO: checking whether to enable assertions" >&5
8341 echo $ECHO_N "checking whether to enable assertions... $ECHO_C" >&6
8342 # Check whether --enable-assert or --disable-assert was given.
8343 if test "${enable_assert+set}" = set; then
8344 enableval="$enable_assert"
8345 echo "$as_me:$LINENO: result: no" >&5
8346 echo "${ECHO_T}no" >&6
8348 cat >>confdefs.h <<\_ACEOF
8353 echo "$as_me:$LINENO: result: yes" >&5
8354 echo "${ECHO_T}yes" >&6
8360 for ac_header in utime.h
8362 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8363 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8364 echo "$as_me:$LINENO: checking for $ac_header" >&5
8365 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8366 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8367 echo $ECHO_N "(cached) $ECHO_C" >&6
8369 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8370 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8372 # Is the header compilable?
8373 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8374 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8375 cat >conftest.$ac_ext <<_ACEOF
8376 #line $LINENO "configure"
8379 cat confdefs.h >>conftest.$ac_ext
8380 cat >>conftest.$ac_ext <<_ACEOF
8381 /* end confdefs.h. */
8382 $ac_includes_default
8383 #include <$ac_header>
8385 rm -f conftest.$ac_objext
8386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8387 (eval $ac_compile) 2>&5
8389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8390 (exit $ac_status); } &&
8391 { ac_try='test -s conftest.$ac_objext'
8392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8396 (exit $ac_status); }; }; then
8397 ac_header_compiler=yes
8399 echo "$as_me: failed program was:" >&5
8400 sed 's/^/| /' conftest.$ac_ext >&5
8402 ac_header_compiler=no
8404 rm -f conftest.$ac_objext conftest.$ac_ext
8405 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8406 echo "${ECHO_T}$ac_header_compiler" >&6
8408 # Is the header present?
8409 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8410 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8411 cat >conftest.$ac_ext <<_ACEOF
8412 #line $LINENO "configure"
8415 cat confdefs.h >>conftest.$ac_ext
8416 cat >>conftest.$ac_ext <<_ACEOF
8417 /* end confdefs.h. */
8418 #include <$ac_header>
8420 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8421 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8423 grep -v '^ *+' conftest.er1 >conftest.err
8425 cat conftest.err >&5
8426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8427 (exit $ac_status); } >/dev/null; then
8428 if test -s conftest.err; then
8429 ac_cpp_err=$ac_c_preproc_warn_flag
8436 if test -z "$ac_cpp_err"; then
8437 ac_header_preproc=yes
8439 echo "$as_me: failed program was:" >&5
8440 sed 's/^/| /' conftest.$ac_ext >&5
8442 ac_header_preproc=no
8444 rm -f conftest.err conftest.$ac_ext
8445 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8446 echo "${ECHO_T}$ac_header_preproc" >&6
8448 # So? What about this header?
8449 case $ac_header_compiler:$ac_header_preproc in
8451 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8452 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8453 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8454 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8457 ## ------------------------------------ ##
8458 ## Report this to bug-autoconf@gnu.org. ##
8459 ## ------------------------------------ ##
8462 sed "s/^/$as_me: WARNING: /" >&2
8465 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8466 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8467 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8468 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8469 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8470 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8473 ## ------------------------------------ ##
8474 ## Report this to bug-autoconf@gnu.org. ##
8475 ## ------------------------------------ ##
8478 sed "s/^/$as_me: WARNING: /" >&2
8481 echo "$as_me:$LINENO: checking for $ac_header" >&5
8482 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8483 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8484 echo $ECHO_N "(cached) $ECHO_C" >&6
8486 eval "$as_ac_Header=$ac_header_preproc"
8488 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8489 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8492 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8493 cat >>confdefs.h <<_ACEOF
8494 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8502 echo "$as_me:$LINENO: checking for struct utimbuf" >&5
8503 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
8504 if test "${fu_cv_sys_struct_utimbuf+set}" = set; then
8505 echo $ECHO_N "(cached) $ECHO_C" >&6
8507 cat >conftest.$ac_ext <<_ACEOF
8508 #line $LINENO "configure"
8511 cat confdefs.h >>conftest.$ac_ext
8512 cat >>conftest.$ac_ext <<_ACEOF
8513 /* end confdefs.h. */
8515 #ifdef TIME_WITH_SYS_TIME
8516 # include <sys/time.h>
8519 # ifdef HAVE_SYS_TIME_H
8520 # include <sys/time.h>
8532 static struct utimbuf x; x.actime = x.modtime;
8537 rm -f conftest.$ac_objext
8538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8539 (eval $ac_compile) 2>&5
8541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8542 (exit $ac_status); } &&
8543 { ac_try='test -s conftest.$ac_objext'
8544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8548 (exit $ac_status); }; }; then
8549 fu_cv_sys_struct_utimbuf=yes
8551 echo "$as_me: failed program was:" >&5
8552 sed 's/^/| /' conftest.$ac_ext >&5
8554 fu_cv_sys_struct_utimbuf=no
8556 rm -f conftest.$ac_objext conftest.$ac_ext
8559 echo "$as_me:$LINENO: result: $fu_cv_sys_struct_utimbuf" >&5
8560 echo "${ECHO_T}$fu_cv_sys_struct_utimbuf" >&6
8562 if test $fu_cv_sys_struct_utimbuf = yes; then
8564 cat >>confdefs.h <<\_ACEOF
8565 #define HAVE_STRUCT_UTIMBUF 1
8570 echo "$as_me:$LINENO: checking for d_type member in directory struct" >&5
8571 echo $ECHO_N "checking for d_type member in directory struct... $ECHO_C" >&6
8572 if test "${jm_cv_struct_dirent_d_type+set}" = set; then
8573 echo $ECHO_N "(cached) $ECHO_C" >&6
8575 cat >conftest.$ac_ext <<_ACEOF
8576 #line $LINENO "configure"
8579 cat confdefs.h >>conftest.$ac_ext
8580 cat >>conftest.$ac_ext <<_ACEOF
8581 /* end confdefs.h. */
8583 #include <sys/types.h>
8584 #ifdef HAVE_DIRENT_H
8585 # include <dirent.h>
8586 #else /* not HAVE_DIRENT_H */
8587 # define dirent direct
8588 # ifdef HAVE_SYS_NDIR_H
8589 # include <sys/ndir.h>
8590 # endif /* HAVE_SYS_NDIR_H */
8591 # ifdef HAVE_SYS_DIR_H
8592 # include <sys/dir.h>
8593 # endif /* HAVE_SYS_DIR_H */
8596 # endif /* HAVE_NDIR_H */
8597 #endif /* HAVE_DIRENT_H */
8602 struct dirent dp; dp.d_type = 0;
8607 rm -f conftest.$ac_objext conftest$ac_exeext
8608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8609 (eval $ac_link) 2>&5
8611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8612 (exit $ac_status); } &&
8613 { ac_try='test -s conftest$ac_exeext'
8614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8618 (exit $ac_status); }; }; then
8619 jm_cv_struct_dirent_d_type=yes
8621 echo "$as_me: failed program was:" >&5
8622 sed 's/^/| /' conftest.$ac_ext >&5
8624 jm_cv_struct_dirent_d_type=no
8626 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8630 echo "$as_me:$LINENO: result: $jm_cv_struct_dirent_d_type" >&5
8631 echo "${ECHO_T}$jm_cv_struct_dirent_d_type" >&6
8632 if test $jm_cv_struct_dirent_d_type = yes; then
8634 cat >>confdefs.h <<\_ACEOF
8635 #define HAVE_STRUCT_DIRENT_D_TYPE 1
8641 echo "$as_me:$LINENO: checking for d_ino member in directory struct" >&5
8642 echo $ECHO_N "checking for d_ino member in directory struct... $ECHO_C" >&6
8643 if test "${jm_cv_struct_dirent_d_ino+set}" = set; then
8644 echo $ECHO_N "(cached) $ECHO_C" >&6
8646 cat >conftest.$ac_ext <<_ACEOF
8647 #line $LINENO "configure"
8650 cat confdefs.h >>conftest.$ac_ext
8651 cat >>conftest.$ac_ext <<_ACEOF
8652 /* end confdefs.h. */
8654 #include <sys/types.h>
8655 #ifdef HAVE_DIRENT_H
8656 # include <dirent.h>
8657 #else /* not HAVE_DIRENT_H */
8658 # define dirent direct
8659 # ifdef HAVE_SYS_NDIR_H
8660 # include <sys/ndir.h>
8661 # endif /* HAVE_SYS_NDIR_H */
8662 # ifdef HAVE_SYS_DIR_H
8663 # include <sys/dir.h>
8664 # endif /* HAVE_SYS_DIR_H */
8667 # endif /* HAVE_NDIR_H */
8668 #endif /* HAVE_DIRENT_H */
8673 struct dirent dp; dp.d_ino = 0;
8678 rm -f conftest.$ac_objext conftest$ac_exeext
8679 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8680 (eval $ac_link) 2>&5
8682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8683 (exit $ac_status); } &&
8684 { ac_try='test -s conftest$ac_exeext'
8685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8689 (exit $ac_status); }; }; then
8690 jm_cv_struct_dirent_d_ino=yes
8692 echo "$as_me: failed program was:" >&5
8693 sed 's/^/| /' conftest.$ac_ext >&5
8695 jm_cv_struct_dirent_d_ino=no
8697 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8701 echo "$as_me:$LINENO: result: $jm_cv_struct_dirent_d_ino" >&5
8702 echo "${ECHO_T}$jm_cv_struct_dirent_d_ino" >&6
8703 if test $jm_cv_struct_dirent_d_ino = yes; then
8705 cat >>confdefs.h <<\_ACEOF
8706 #define D_INO_IN_DIRENT 1
8724 for ac_header in grp.h memory.h pwd.h string.h strings.h stdlib.h \
8725 unistd.h sys/time.h utmp.h utmpx.h
8727 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8728 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8729 echo "$as_me:$LINENO: checking for $ac_header" >&5
8730 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8731 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8732 echo $ECHO_N "(cached) $ECHO_C" >&6
8734 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8735 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8737 # Is the header compilable?
8738 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8739 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8740 cat >conftest.$ac_ext <<_ACEOF
8741 #line $LINENO "configure"
8744 cat confdefs.h >>conftest.$ac_ext
8745 cat >>conftest.$ac_ext <<_ACEOF
8746 /* end confdefs.h. */
8747 $ac_includes_default
8748 #include <$ac_header>
8750 rm -f conftest.$ac_objext
8751 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8752 (eval $ac_compile) 2>&5
8754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8755 (exit $ac_status); } &&
8756 { ac_try='test -s conftest.$ac_objext'
8757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8761 (exit $ac_status); }; }; then
8762 ac_header_compiler=yes
8764 echo "$as_me: failed program was:" >&5
8765 sed 's/^/| /' conftest.$ac_ext >&5
8767 ac_header_compiler=no
8769 rm -f conftest.$ac_objext conftest.$ac_ext
8770 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8771 echo "${ECHO_T}$ac_header_compiler" >&6
8773 # Is the header present?
8774 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8775 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8776 cat >conftest.$ac_ext <<_ACEOF
8777 #line $LINENO "configure"
8780 cat confdefs.h >>conftest.$ac_ext
8781 cat >>conftest.$ac_ext <<_ACEOF
8782 /* end confdefs.h. */
8783 #include <$ac_header>
8785 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8786 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8788 grep -v '^ *+' conftest.er1 >conftest.err
8790 cat conftest.err >&5
8791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8792 (exit $ac_status); } >/dev/null; then
8793 if test -s conftest.err; then
8794 ac_cpp_err=$ac_c_preproc_warn_flag
8801 if test -z "$ac_cpp_err"; then
8802 ac_header_preproc=yes
8804 echo "$as_me: failed program was:" >&5
8805 sed 's/^/| /' conftest.$ac_ext >&5
8807 ac_header_preproc=no
8809 rm -f conftest.err conftest.$ac_ext
8810 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8811 echo "${ECHO_T}$ac_header_preproc" >&6
8813 # So? What about this header?
8814 case $ac_header_compiler:$ac_header_preproc in
8816 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8817 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8818 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8819 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8822 ## ------------------------------------ ##
8823 ## Report this to bug-autoconf@gnu.org. ##
8824 ## ------------------------------------ ##
8827 sed "s/^/$as_me: WARNING: /" >&2
8830 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8831 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8832 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8833 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8834 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8835 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8838 ## ------------------------------------ ##
8839 ## Report this to bug-autoconf@gnu.org. ##
8840 ## ------------------------------------ ##
8843 sed "s/^/$as_me: WARNING: /" >&2
8846 echo "$as_me:$LINENO: checking for $ac_header" >&5
8847 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8848 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8849 echo $ECHO_N "(cached) $ECHO_C" >&6
8851 eval "$as_ac_Header=$ac_header_preproc"
8853 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8854 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8857 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8858 cat >>confdefs.h <<_ACEOF
8859 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8873 # if !STDC_HEADERS && HAVE_MEMORY_H
8874 # include <memory.h>
8876 # include <string.h>
8879 # include <strings.h>
8883 # include <stdlib.h>
8886 # include <unistd.h>
8889 #include <sys/types.h>
8890 #if TIME_WITH_SYS_TIME
8891 # include <sys/time.h>
8894 # if HAVE_SYS_TIME_H
8895 # include <sys/time.h>
8914 echo "$as_me:$LINENO: checking whether free is declared" >&5
8915 echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
8916 if test "${ac_cv_have_decl_free+set}" = set; then
8917 echo $ECHO_N "(cached) $ECHO_C" >&6
8919 cat >conftest.$ac_ext <<_ACEOF
8920 #line $LINENO "configure"
8923 cat confdefs.h >>conftest.$ac_ext
8924 cat >>conftest.$ac_ext <<_ACEOF
8925 /* end confdefs.h. */
8932 char *p = (char *) free;
8939 rm -f conftest.$ac_objext
8940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8941 (eval $ac_compile) 2>&5
8943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8944 (exit $ac_status); } &&
8945 { ac_try='test -s conftest.$ac_objext'
8946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8950 (exit $ac_status); }; }; then
8951 ac_cv_have_decl_free=yes
8953 echo "$as_me: failed program was:" >&5
8954 sed 's/^/| /' conftest.$ac_ext >&5
8956 ac_cv_have_decl_free=no
8958 rm -f conftest.$ac_objext conftest.$ac_ext
8960 echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
8961 echo "${ECHO_T}$ac_cv_have_decl_free" >&6
8962 if test $ac_cv_have_decl_free = yes; then
8964 cat >>confdefs.h <<_ACEOF
8965 #define HAVE_DECL_FREE 1
8970 cat >>confdefs.h <<_ACEOF
8971 #define HAVE_DECL_FREE 0
8976 echo "$as_me:$LINENO: checking whether getenv is declared" >&5
8977 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
8978 if test "${ac_cv_have_decl_getenv+set}" = set; then
8979 echo $ECHO_N "(cached) $ECHO_C" >&6
8981 cat >conftest.$ac_ext <<_ACEOF
8982 #line $LINENO "configure"
8985 cat confdefs.h >>conftest.$ac_ext
8986 cat >>conftest.$ac_ext <<_ACEOF
8987 /* end confdefs.h. */
8994 char *p = (char *) getenv;
9001 rm -f conftest.$ac_objext
9002 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9003 (eval $ac_compile) 2>&5
9005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9006 (exit $ac_status); } &&
9007 { ac_try='test -s conftest.$ac_objext'
9008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9012 (exit $ac_status); }; }; then
9013 ac_cv_have_decl_getenv=yes
9015 echo "$as_me: failed program was:" >&5
9016 sed 's/^/| /' conftest.$ac_ext >&5
9018 ac_cv_have_decl_getenv=no
9020 rm -f conftest.$ac_objext conftest.$ac_ext
9022 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
9023 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
9024 if test $ac_cv_have_decl_getenv = yes; then
9026 cat >>confdefs.h <<_ACEOF
9027 #define HAVE_DECL_GETENV 1
9032 cat >>confdefs.h <<_ACEOF
9033 #define HAVE_DECL_GETENV 0
9038 echo "$as_me:$LINENO: checking whether geteuid is declared" >&5
9039 echo $ECHO_N "checking whether geteuid is declared... $ECHO_C" >&6
9040 if test "${ac_cv_have_decl_geteuid+set}" = set; then
9041 echo $ECHO_N "(cached) $ECHO_C" >&6
9043 cat >conftest.$ac_ext <<_ACEOF
9044 #line $LINENO "configure"
9047 cat confdefs.h >>conftest.$ac_ext
9048 cat >>conftest.$ac_ext <<_ACEOF
9049 /* end confdefs.h. */
9056 char *p = (char *) geteuid;
9063 rm -f conftest.$ac_objext
9064 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9065 (eval $ac_compile) 2>&5
9067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9068 (exit $ac_status); } &&
9069 { ac_try='test -s conftest.$ac_objext'
9070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9074 (exit $ac_status); }; }; then
9075 ac_cv_have_decl_geteuid=yes
9077 echo "$as_me: failed program was:" >&5
9078 sed 's/^/| /' conftest.$ac_ext >&5
9080 ac_cv_have_decl_geteuid=no
9082 rm -f conftest.$ac_objext conftest.$ac_ext
9084 echo "$as_me:$LINENO: result: $ac_cv_have_decl_geteuid" >&5
9085 echo "${ECHO_T}$ac_cv_have_decl_geteuid" >&6
9086 if test $ac_cv_have_decl_geteuid = yes; then
9088 cat >>confdefs.h <<_ACEOF
9089 #define HAVE_DECL_GETEUID 1
9094 cat >>confdefs.h <<_ACEOF
9095 #define HAVE_DECL_GETEUID 0
9100 echo "$as_me:$LINENO: checking whether getgrgid is declared" >&5
9101 echo $ECHO_N "checking whether getgrgid is declared... $ECHO_C" >&6
9102 if test "${ac_cv_have_decl_getgrgid+set}" = set; then
9103 echo $ECHO_N "(cached) $ECHO_C" >&6
9105 cat >conftest.$ac_ext <<_ACEOF
9106 #line $LINENO "configure"
9109 cat confdefs.h >>conftest.$ac_ext
9110 cat >>conftest.$ac_ext <<_ACEOF
9111 /* end confdefs.h. */
9118 char *p = (char *) getgrgid;
9125 rm -f conftest.$ac_objext
9126 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9127 (eval $ac_compile) 2>&5
9129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9130 (exit $ac_status); } &&
9131 { ac_try='test -s conftest.$ac_objext'
9132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9136 (exit $ac_status); }; }; then
9137 ac_cv_have_decl_getgrgid=yes
9139 echo "$as_me: failed program was:" >&5
9140 sed 's/^/| /' conftest.$ac_ext >&5
9142 ac_cv_have_decl_getgrgid=no
9144 rm -f conftest.$ac_objext conftest.$ac_ext
9146 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getgrgid" >&5
9147 echo "${ECHO_T}$ac_cv_have_decl_getgrgid" >&6
9148 if test $ac_cv_have_decl_getgrgid = yes; then
9150 cat >>confdefs.h <<_ACEOF
9151 #define HAVE_DECL_GETGRGID 1
9156 cat >>confdefs.h <<_ACEOF
9157 #define HAVE_DECL_GETGRGID 0
9162 echo "$as_me:$LINENO: checking whether getlogin is declared" >&5
9163 echo $ECHO_N "checking whether getlogin is declared... $ECHO_C" >&6
9164 if test "${ac_cv_have_decl_getlogin+set}" = set; then
9165 echo $ECHO_N "(cached) $ECHO_C" >&6
9167 cat >conftest.$ac_ext <<_ACEOF
9168 #line $LINENO "configure"
9171 cat confdefs.h >>conftest.$ac_ext
9172 cat >>conftest.$ac_ext <<_ACEOF
9173 /* end confdefs.h. */
9180 char *p = (char *) getlogin;
9187 rm -f conftest.$ac_objext
9188 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9189 (eval $ac_compile) 2>&5
9191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9192 (exit $ac_status); } &&
9193 { ac_try='test -s conftest.$ac_objext'
9194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9198 (exit $ac_status); }; }; then
9199 ac_cv_have_decl_getlogin=yes
9201 echo "$as_me: failed program was:" >&5
9202 sed 's/^/| /' conftest.$ac_ext >&5
9204 ac_cv_have_decl_getlogin=no
9206 rm -f conftest.$ac_objext conftest.$ac_ext
9208 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getlogin" >&5
9209 echo "${ECHO_T}$ac_cv_have_decl_getlogin" >&6
9210 if test $ac_cv_have_decl_getlogin = yes; then
9212 cat >>confdefs.h <<_ACEOF
9213 #define HAVE_DECL_GETLOGIN 1
9218 cat >>confdefs.h <<_ACEOF
9219 #define HAVE_DECL_GETLOGIN 0
9224 echo "$as_me:$LINENO: checking whether getpwuid is declared" >&5
9225 echo $ECHO_N "checking whether getpwuid is declared... $ECHO_C" >&6
9226 if test "${ac_cv_have_decl_getpwuid+set}" = set; then
9227 echo $ECHO_N "(cached) $ECHO_C" >&6
9229 cat >conftest.$ac_ext <<_ACEOF
9230 #line $LINENO "configure"
9233 cat confdefs.h >>conftest.$ac_ext
9234 cat >>conftest.$ac_ext <<_ACEOF
9235 /* end confdefs.h. */
9242 char *p = (char *) getpwuid;
9249 rm -f conftest.$ac_objext
9250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9251 (eval $ac_compile) 2>&5
9253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9254 (exit $ac_status); } &&
9255 { ac_try='test -s conftest.$ac_objext'
9256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9260 (exit $ac_status); }; }; then
9261 ac_cv_have_decl_getpwuid=yes
9263 echo "$as_me: failed program was:" >&5
9264 sed 's/^/| /' conftest.$ac_ext >&5
9266 ac_cv_have_decl_getpwuid=no
9268 rm -f conftest.$ac_objext conftest.$ac_ext
9270 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getpwuid" >&5
9271 echo "${ECHO_T}$ac_cv_have_decl_getpwuid" >&6
9272 if test $ac_cv_have_decl_getpwuid = yes; then
9274 cat >>confdefs.h <<_ACEOF
9275 #define HAVE_DECL_GETPWUID 1
9280 cat >>confdefs.h <<_ACEOF
9281 #define HAVE_DECL_GETPWUID 0
9286 echo "$as_me:$LINENO: checking whether getuid is declared" >&5
9287 echo $ECHO_N "checking whether getuid is declared... $ECHO_C" >&6
9288 if test "${ac_cv_have_decl_getuid+set}" = set; then
9289 echo $ECHO_N "(cached) $ECHO_C" >&6
9291 cat >conftest.$ac_ext <<_ACEOF
9292 #line $LINENO "configure"
9295 cat confdefs.h >>conftest.$ac_ext
9296 cat >>conftest.$ac_ext <<_ACEOF
9297 /* end confdefs.h. */
9304 char *p = (char *) getuid;
9311 rm -f conftest.$ac_objext
9312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9313 (eval $ac_compile) 2>&5
9315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9316 (exit $ac_status); } &&
9317 { ac_try='test -s conftest.$ac_objext'
9318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9322 (exit $ac_status); }; }; then
9323 ac_cv_have_decl_getuid=yes
9325 echo "$as_me: failed program was:" >&5
9326 sed 's/^/| /' conftest.$ac_ext >&5
9328 ac_cv_have_decl_getuid=no
9330 rm -f conftest.$ac_objext conftest.$ac_ext
9332 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getuid" >&5
9333 echo "${ECHO_T}$ac_cv_have_decl_getuid" >&6
9334 if test $ac_cv_have_decl_getuid = yes; then
9336 cat >>confdefs.h <<_ACEOF
9337 #define HAVE_DECL_GETUID 1
9342 cat >>confdefs.h <<_ACEOF
9343 #define HAVE_DECL_GETUID 0
9348 echo "$as_me:$LINENO: checking whether getutent is declared" >&5
9349 echo $ECHO_N "checking whether getutent is declared... $ECHO_C" >&6
9350 if test "${ac_cv_have_decl_getutent+set}" = set; then
9351 echo $ECHO_N "(cached) $ECHO_C" >&6
9353 cat >conftest.$ac_ext <<_ACEOF
9354 #line $LINENO "configure"
9357 cat confdefs.h >>conftest.$ac_ext
9358 cat >>conftest.$ac_ext <<_ACEOF
9359 /* end confdefs.h. */
9366 char *p = (char *) getutent;
9373 rm -f conftest.$ac_objext
9374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9375 (eval $ac_compile) 2>&5
9377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9378 (exit $ac_status); } &&
9379 { ac_try='test -s conftest.$ac_objext'
9380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9384 (exit $ac_status); }; }; then
9385 ac_cv_have_decl_getutent=yes
9387 echo "$as_me: failed program was:" >&5
9388 sed 's/^/| /' conftest.$ac_ext >&5
9390 ac_cv_have_decl_getutent=no
9392 rm -f conftest.$ac_objext conftest.$ac_ext
9394 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getutent" >&5
9395 echo "${ECHO_T}$ac_cv_have_decl_getutent" >&6
9396 if test $ac_cv_have_decl_getutent = yes; then
9398 cat >>confdefs.h <<_ACEOF
9399 #define HAVE_DECL_GETUTENT 1
9404 cat >>confdefs.h <<_ACEOF
9405 #define HAVE_DECL_GETUTENT 0
9410 echo "$as_me:$LINENO: checking whether lseek is declared" >&5
9411 echo $ECHO_N "checking whether lseek is declared... $ECHO_C" >&6
9412 if test "${ac_cv_have_decl_lseek+set}" = set; then
9413 echo $ECHO_N "(cached) $ECHO_C" >&6
9415 cat >conftest.$ac_ext <<_ACEOF
9416 #line $LINENO "configure"
9419 cat confdefs.h >>conftest.$ac_ext
9420 cat >>conftest.$ac_ext <<_ACEOF
9421 /* end confdefs.h. */
9428 char *p = (char *) lseek;
9435 rm -f conftest.$ac_objext
9436 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9437 (eval $ac_compile) 2>&5
9439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9440 (exit $ac_status); } &&
9441 { ac_try='test -s conftest.$ac_objext'
9442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9446 (exit $ac_status); }; }; then
9447 ac_cv_have_decl_lseek=yes
9449 echo "$as_me: failed program was:" >&5
9450 sed 's/^/| /' conftest.$ac_ext >&5
9452 ac_cv_have_decl_lseek=no
9454 rm -f conftest.$ac_objext conftest.$ac_ext
9456 echo "$as_me:$LINENO: result: $ac_cv_have_decl_lseek" >&5
9457 echo "${ECHO_T}$ac_cv_have_decl_lseek" >&6
9458 if test $ac_cv_have_decl_lseek = yes; then
9460 cat >>confdefs.h <<_ACEOF
9461 #define HAVE_DECL_LSEEK 1
9466 cat >>confdefs.h <<_ACEOF
9467 #define HAVE_DECL_LSEEK 0
9472 echo "$as_me:$LINENO: checking whether malloc is declared" >&5
9473 echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
9474 if test "${ac_cv_have_decl_malloc+set}" = set; then
9475 echo $ECHO_N "(cached) $ECHO_C" >&6
9477 cat >conftest.$ac_ext <<_ACEOF
9478 #line $LINENO "configure"
9481 cat confdefs.h >>conftest.$ac_ext
9482 cat >>conftest.$ac_ext <<_ACEOF
9483 /* end confdefs.h. */
9490 char *p = (char *) malloc;
9497 rm -f conftest.$ac_objext
9498 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9499 (eval $ac_compile) 2>&5
9501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9502 (exit $ac_status); } &&
9503 { ac_try='test -s conftest.$ac_objext'
9504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9508 (exit $ac_status); }; }; then
9509 ac_cv_have_decl_malloc=yes
9511 echo "$as_me: failed program was:" >&5
9512 sed 's/^/| /' conftest.$ac_ext >&5
9514 ac_cv_have_decl_malloc=no
9516 rm -f conftest.$ac_objext conftest.$ac_ext
9518 echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
9519 echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
9520 if test $ac_cv_have_decl_malloc = yes; then
9522 cat >>confdefs.h <<_ACEOF
9523 #define HAVE_DECL_MALLOC 1
9528 cat >>confdefs.h <<_ACEOF
9529 #define HAVE_DECL_MALLOC 0
9534 echo "$as_me:$LINENO: checking whether memchr is declared" >&5
9535 echo $ECHO_N "checking whether memchr is declared... $ECHO_C" >&6
9536 if test "${ac_cv_have_decl_memchr+set}" = set; then
9537 echo $ECHO_N "(cached) $ECHO_C" >&6
9539 cat >conftest.$ac_ext <<_ACEOF
9540 #line $LINENO "configure"
9543 cat confdefs.h >>conftest.$ac_ext
9544 cat >>conftest.$ac_ext <<_ACEOF
9545 /* end confdefs.h. */
9552 char *p = (char *) memchr;
9559 rm -f conftest.$ac_objext
9560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9561 (eval $ac_compile) 2>&5
9563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9564 (exit $ac_status); } &&
9565 { ac_try='test -s conftest.$ac_objext'
9566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9570 (exit $ac_status); }; }; then
9571 ac_cv_have_decl_memchr=yes
9573 echo "$as_me: failed program was:" >&5
9574 sed 's/^/| /' conftest.$ac_ext >&5
9576 ac_cv_have_decl_memchr=no
9578 rm -f conftest.$ac_objext conftest.$ac_ext
9580 echo "$as_me:$LINENO: result: $ac_cv_have_decl_memchr" >&5
9581 echo "${ECHO_T}$ac_cv_have_decl_memchr" >&6
9582 if test $ac_cv_have_decl_memchr = yes; then
9584 cat >>confdefs.h <<_ACEOF
9585 #define HAVE_DECL_MEMCHR 1
9590 cat >>confdefs.h <<_ACEOF
9591 #define HAVE_DECL_MEMCHR 0
9596 echo "$as_me:$LINENO: checking whether memrchr is declared" >&5
9597 echo $ECHO_N "checking whether memrchr is declared... $ECHO_C" >&6
9598 if test "${ac_cv_have_decl_memrchr+set}" = set; then
9599 echo $ECHO_N "(cached) $ECHO_C" >&6
9601 cat >conftest.$ac_ext <<_ACEOF
9602 #line $LINENO "configure"
9605 cat confdefs.h >>conftest.$ac_ext
9606 cat >>conftest.$ac_ext <<_ACEOF
9607 /* end confdefs.h. */
9614 char *p = (char *) memrchr;
9621 rm -f conftest.$ac_objext
9622 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9623 (eval $ac_compile) 2>&5
9625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9626 (exit $ac_status); } &&
9627 { ac_try='test -s conftest.$ac_objext'
9628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9632 (exit $ac_status); }; }; then
9633 ac_cv_have_decl_memrchr=yes
9635 echo "$as_me: failed program was:" >&5
9636 sed 's/^/| /' conftest.$ac_ext >&5
9638 ac_cv_have_decl_memrchr=no
9640 rm -f conftest.$ac_objext conftest.$ac_ext
9642 echo "$as_me:$LINENO: result: $ac_cv_have_decl_memrchr" >&5
9643 echo "${ECHO_T}$ac_cv_have_decl_memrchr" >&6
9644 if test $ac_cv_have_decl_memrchr = yes; then
9646 cat >>confdefs.h <<_ACEOF
9647 #define HAVE_DECL_MEMRCHR 1
9652 cat >>confdefs.h <<_ACEOF
9653 #define HAVE_DECL_MEMRCHR 0
9658 echo "$as_me:$LINENO: checking whether nanosleep is declared" >&5
9659 echo $ECHO_N "checking whether nanosleep is declared... $ECHO_C" >&6
9660 if test "${ac_cv_have_decl_nanosleep+set}" = set; then
9661 echo $ECHO_N "(cached) $ECHO_C" >&6
9663 cat >conftest.$ac_ext <<_ACEOF
9664 #line $LINENO "configure"
9667 cat confdefs.h >>conftest.$ac_ext
9668 cat >>conftest.$ac_ext <<_ACEOF
9669 /* end confdefs.h. */
9676 char *p = (char *) nanosleep;
9683 rm -f conftest.$ac_objext
9684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9685 (eval $ac_compile) 2>&5
9687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9688 (exit $ac_status); } &&
9689 { ac_try='test -s conftest.$ac_objext'
9690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9694 (exit $ac_status); }; }; then
9695 ac_cv_have_decl_nanosleep=yes
9697 echo "$as_me: failed program was:" >&5
9698 sed 's/^/| /' conftest.$ac_ext >&5
9700 ac_cv_have_decl_nanosleep=no
9702 rm -f conftest.$ac_objext conftest.$ac_ext
9704 echo "$as_me:$LINENO: result: $ac_cv_have_decl_nanosleep" >&5
9705 echo "${ECHO_T}$ac_cv_have_decl_nanosleep" >&6
9706 if test $ac_cv_have_decl_nanosleep = yes; then
9708 cat >>confdefs.h <<_ACEOF
9709 #define HAVE_DECL_NANOSLEEP 1
9714 cat >>confdefs.h <<_ACEOF
9715 #define HAVE_DECL_NANOSLEEP 0
9720 echo "$as_me:$LINENO: checking whether realloc is declared" >&5
9721 echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6
9722 if test "${ac_cv_have_decl_realloc+set}" = set; then
9723 echo $ECHO_N "(cached) $ECHO_C" >&6
9725 cat >conftest.$ac_ext <<_ACEOF
9726 #line $LINENO "configure"
9729 cat confdefs.h >>conftest.$ac_ext
9730 cat >>conftest.$ac_ext <<_ACEOF
9731 /* end confdefs.h. */
9738 char *p = (char *) realloc;
9745 rm -f conftest.$ac_objext
9746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9747 (eval $ac_compile) 2>&5
9749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9750 (exit $ac_status); } &&
9751 { ac_try='test -s conftest.$ac_objext'
9752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9756 (exit $ac_status); }; }; then
9757 ac_cv_have_decl_realloc=yes
9759 echo "$as_me: failed program was:" >&5
9760 sed 's/^/| /' conftest.$ac_ext >&5
9762 ac_cv_have_decl_realloc=no
9764 rm -f conftest.$ac_objext conftest.$ac_ext
9766 echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
9767 echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6
9768 if test $ac_cv_have_decl_realloc = yes; then
9770 cat >>confdefs.h <<_ACEOF
9771 #define HAVE_DECL_REALLOC 1
9776 cat >>confdefs.h <<_ACEOF
9777 #define HAVE_DECL_REALLOC 0
9782 echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5
9783 echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6
9784 if test "${ac_cv_have_decl_stpcpy+set}" = set; then
9785 echo $ECHO_N "(cached) $ECHO_C" >&6
9787 cat >conftest.$ac_ext <<_ACEOF
9788 #line $LINENO "configure"
9791 cat confdefs.h >>conftest.$ac_ext
9792 cat >>conftest.$ac_ext <<_ACEOF
9793 /* end confdefs.h. */
9800 char *p = (char *) stpcpy;
9807 rm -f conftest.$ac_objext
9808 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9809 (eval $ac_compile) 2>&5
9811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9812 (exit $ac_status); } &&
9813 { ac_try='test -s conftest.$ac_objext'
9814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9818 (exit $ac_status); }; }; then
9819 ac_cv_have_decl_stpcpy=yes
9821 echo "$as_me: failed program was:" >&5
9822 sed 's/^/| /' conftest.$ac_ext >&5
9824 ac_cv_have_decl_stpcpy=no
9826 rm -f conftest.$ac_objext conftest.$ac_ext
9828 echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5
9829 echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6
9830 if test $ac_cv_have_decl_stpcpy = yes; then
9832 cat >>confdefs.h <<_ACEOF
9833 #define HAVE_DECL_STPCPY 1
9838 cat >>confdefs.h <<_ACEOF
9839 #define HAVE_DECL_STPCPY 0
9844 echo "$as_me:$LINENO: checking whether strndup is declared" >&5
9845 echo $ECHO_N "checking whether strndup is declared... $ECHO_C" >&6
9846 if test "${ac_cv_have_decl_strndup+set}" = set; then
9847 echo $ECHO_N "(cached) $ECHO_C" >&6
9849 cat >conftest.$ac_ext <<_ACEOF
9850 #line $LINENO "configure"
9853 cat confdefs.h >>conftest.$ac_ext
9854 cat >>conftest.$ac_ext <<_ACEOF
9855 /* end confdefs.h. */
9862 char *p = (char *) strndup;
9869 rm -f conftest.$ac_objext
9870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9871 (eval $ac_compile) 2>&5
9873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9874 (exit $ac_status); } &&
9875 { ac_try='test -s conftest.$ac_objext'
9876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9880 (exit $ac_status); }; }; then
9881 ac_cv_have_decl_strndup=yes
9883 echo "$as_me: failed program was:" >&5
9884 sed 's/^/| /' conftest.$ac_ext >&5
9886 ac_cv_have_decl_strndup=no
9888 rm -f conftest.$ac_objext conftest.$ac_ext
9890 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strndup" >&5
9891 echo "${ECHO_T}$ac_cv_have_decl_strndup" >&6
9892 if test $ac_cv_have_decl_strndup = yes; then
9894 cat >>confdefs.h <<_ACEOF
9895 #define HAVE_DECL_STRNDUP 1
9900 cat >>confdefs.h <<_ACEOF
9901 #define HAVE_DECL_STRNDUP 0
9906 echo "$as_me:$LINENO: checking whether strnlen is declared" >&5
9907 echo $ECHO_N "checking whether strnlen is declared... $ECHO_C" >&6
9908 if test "${ac_cv_have_decl_strnlen+set}" = set; then
9909 echo $ECHO_N "(cached) $ECHO_C" >&6
9911 cat >conftest.$ac_ext <<_ACEOF
9912 #line $LINENO "configure"
9915 cat confdefs.h >>conftest.$ac_ext
9916 cat >>conftest.$ac_ext <<_ACEOF
9917 /* end confdefs.h. */
9924 char *p = (char *) strnlen;
9931 rm -f conftest.$ac_objext
9932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9933 (eval $ac_compile) 2>&5
9935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9936 (exit $ac_status); } &&
9937 { ac_try='test -s conftest.$ac_objext'
9938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9942 (exit $ac_status); }; }; then
9943 ac_cv_have_decl_strnlen=yes
9945 echo "$as_me: failed program was:" >&5
9946 sed 's/^/| /' conftest.$ac_ext >&5
9948 ac_cv_have_decl_strnlen=no
9950 rm -f conftest.$ac_objext conftest.$ac_ext
9952 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strnlen" >&5
9953 echo "${ECHO_T}$ac_cv_have_decl_strnlen" >&6
9954 if test $ac_cv_have_decl_strnlen = yes; then
9956 cat >>confdefs.h <<_ACEOF
9957 #define HAVE_DECL_STRNLEN 1
9962 cat >>confdefs.h <<_ACEOF
9963 #define HAVE_DECL_STRNLEN 0
9968 echo "$as_me:$LINENO: checking whether strstr is declared" >&5
9969 echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
9970 if test "${ac_cv_have_decl_strstr+set}" = set; then
9971 echo $ECHO_N "(cached) $ECHO_C" >&6
9973 cat >conftest.$ac_ext <<_ACEOF
9974 #line $LINENO "configure"
9977 cat confdefs.h >>conftest.$ac_ext
9978 cat >>conftest.$ac_ext <<_ACEOF
9979 /* end confdefs.h. */
9986 char *p = (char *) strstr;
9993 rm -f conftest.$ac_objext
9994 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9995 (eval $ac_compile) 2>&5
9997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9998 (exit $ac_status); } &&
9999 { ac_try='test -s conftest.$ac_objext'
10000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10001 (eval $ac_try) 2>&5
10003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10004 (exit $ac_status); }; }; then
10005 ac_cv_have_decl_strstr=yes
10007 echo "$as_me: failed program was:" >&5
10008 sed 's/^/| /' conftest.$ac_ext >&5
10010 ac_cv_have_decl_strstr=no
10012 rm -f conftest.$ac_objext conftest.$ac_ext
10014 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
10015 echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
10016 if test $ac_cv_have_decl_strstr = yes; then
10018 cat >>confdefs.h <<_ACEOF
10019 #define HAVE_DECL_STRSTR 1
10024 cat >>confdefs.h <<_ACEOF
10025 #define HAVE_DECL_STRSTR 0
10030 echo "$as_me:$LINENO: checking whether strtoul is declared" >&5
10031 echo $ECHO_N "checking whether strtoul is declared... $ECHO_C" >&6
10032 if test "${ac_cv_have_decl_strtoul+set}" = set; then
10033 echo $ECHO_N "(cached) $ECHO_C" >&6
10035 cat >conftest.$ac_ext <<_ACEOF
10036 #line $LINENO "configure"
10039 cat confdefs.h >>conftest.$ac_ext
10040 cat >>conftest.$ac_ext <<_ACEOF
10041 /* end confdefs.h. */
10048 char *p = (char *) strtoul;
10055 rm -f conftest.$ac_objext
10056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10057 (eval $ac_compile) 2>&5
10059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10060 (exit $ac_status); } &&
10061 { ac_try='test -s conftest.$ac_objext'
10062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10063 (eval $ac_try) 2>&5
10065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10066 (exit $ac_status); }; }; then
10067 ac_cv_have_decl_strtoul=yes
10069 echo "$as_me: failed program was:" >&5
10070 sed 's/^/| /' conftest.$ac_ext >&5
10072 ac_cv_have_decl_strtoul=no
10074 rm -f conftest.$ac_objext conftest.$ac_ext
10076 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoul" >&5
10077 echo "${ECHO_T}$ac_cv_have_decl_strtoul" >&6
10078 if test $ac_cv_have_decl_strtoul = yes; then
10080 cat >>confdefs.h <<_ACEOF
10081 #define HAVE_DECL_STRTOUL 1
10086 cat >>confdefs.h <<_ACEOF
10087 #define HAVE_DECL_STRTOUL 0
10092 echo "$as_me:$LINENO: checking whether strtoull is declared" >&5
10093 echo $ECHO_N "checking whether strtoull is declared... $ECHO_C" >&6
10094 if test "${ac_cv_have_decl_strtoull+set}" = set; then
10095 echo $ECHO_N "(cached) $ECHO_C" >&6
10097 cat >conftest.$ac_ext <<_ACEOF
10098 #line $LINENO "configure"
10101 cat confdefs.h >>conftest.$ac_ext
10102 cat >>conftest.$ac_ext <<_ACEOF
10103 /* end confdefs.h. */
10110 char *p = (char *) strtoull;
10117 rm -f conftest.$ac_objext
10118 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10119 (eval $ac_compile) 2>&5
10121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10122 (exit $ac_status); } &&
10123 { ac_try='test -s conftest.$ac_objext'
10124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10125 (eval $ac_try) 2>&5
10127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10128 (exit $ac_status); }; }; then
10129 ac_cv_have_decl_strtoull=yes
10131 echo "$as_me: failed program was:" >&5
10132 sed 's/^/| /' conftest.$ac_ext >&5
10134 ac_cv_have_decl_strtoull=no
10136 rm -f conftest.$ac_objext conftest.$ac_ext
10138 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoull" >&5
10139 echo "${ECHO_T}$ac_cv_have_decl_strtoull" >&6
10140 if test $ac_cv_have_decl_strtoull = yes; then
10142 cat >>confdefs.h <<_ACEOF
10143 #define HAVE_DECL_STRTOULL 1
10148 cat >>confdefs.h <<_ACEOF
10149 #define HAVE_DECL_STRTOULL 0
10154 echo "$as_me:$LINENO: checking whether ttyname is declared" >&5
10155 echo $ECHO_N "checking whether ttyname is declared... $ECHO_C" >&6
10156 if test "${ac_cv_have_decl_ttyname+set}" = set; then
10157 echo $ECHO_N "(cached) $ECHO_C" >&6
10159 cat >conftest.$ac_ext <<_ACEOF
10160 #line $LINENO "configure"
10163 cat confdefs.h >>conftest.$ac_ext
10164 cat >>conftest.$ac_ext <<_ACEOF
10165 /* end confdefs.h. */
10172 char *p = (char *) ttyname;
10179 rm -f conftest.$ac_objext
10180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10181 (eval $ac_compile) 2>&5
10183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10184 (exit $ac_status); } &&
10185 { ac_try='test -s conftest.$ac_objext'
10186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10187 (eval $ac_try) 2>&5
10189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10190 (exit $ac_status); }; }; then
10191 ac_cv_have_decl_ttyname=yes
10193 echo "$as_me: failed program was:" >&5
10194 sed 's/^/| /' conftest.$ac_ext >&5
10196 ac_cv_have_decl_ttyname=no
10198 rm -f conftest.$ac_objext conftest.$ac_ext
10200 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ttyname" >&5
10201 echo "${ECHO_T}$ac_cv_have_decl_ttyname" >&6
10202 if test $ac_cv_have_decl_ttyname = yes; then
10204 cat >>confdefs.h <<_ACEOF
10205 #define HAVE_DECL_TTYNAME 1
10210 cat >>confdefs.h <<_ACEOF
10211 #define HAVE_DECL_TTYNAME 0
10219 echo "$as_me:$LINENO: checking for long file names" >&5
10220 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
10221 if test "${ac_cv_sys_long_file_names+set}" = set; then
10222 echo $ECHO_N "(cached) $ECHO_C" >&6
10224 ac_cv_sys_long_file_names=yes
10225 # Test for long file names in all the places we know might matter:
10226 # . the current directory, where building will happen
10227 # $prefix/lib where we will be installing things
10228 # $exec_prefix/lib likewise
10229 # eval it to expand exec_prefix.
10230 # $TMPDIR if set, where it might want to write temporary files
10231 # if $TMPDIR is not set:
10232 # /tmp where it might want to write temporary files
10233 # /var/tmp likewise
10234 # /usr/tmp likewise
10235 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
10238 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
10240 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
10241 test -d $ac_dir || continue
10242 test -w $ac_dir || continue # It is less confusing to not echo anything here.
10243 ac_xdir=$ac_dir/cf$$
10244 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
10245 ac_tf1=$ac_xdir/conftest9012345
10246 ac_tf2=$ac_xdir/conftest9012346
10247 (echo 1 >$ac_tf1) 2>/dev/null
10248 (echo 2 >$ac_tf2) 2>/dev/null
10249 ac_val=`cat $ac_tf1 2>/dev/null`
10250 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
10251 ac_cv_sys_long_file_names=no
10252 rm -rf $ac_xdir 2>/dev/null
10255 rm -rf $ac_xdir 2>/dev/null
10258 echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
10259 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
10260 if test $ac_cv_sys_long_file_names = yes; then
10262 cat >>confdefs.h <<\_ACEOF
10263 #define HAVE_LONG_FILE_NAMES 1
10271 for ac_func in pathconf
10273 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10274 echo "$as_me:$LINENO: checking for $ac_func" >&5
10275 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10276 if eval "test \"\${$as_ac_var+set}\" = set"; then
10277 echo $ECHO_N "(cached) $ECHO_C" >&6
10279 cat >conftest.$ac_ext <<_ACEOF
10280 #line $LINENO "configure"
10283 cat confdefs.h >>conftest.$ac_ext
10284 cat >>conftest.$ac_ext <<_ACEOF
10285 /* end confdefs.h. */
10286 /* System header to define __stub macros and hopefully few prototypes,
10287 which can conflict with char $ac_func (); below.
10288 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10289 <limits.h> exists even on freestanding compilers. */
10291 # include <limits.h>
10293 # include <assert.h>
10295 /* Override any gcc2 internal prototype to avoid an error. */
10300 /* We use char because int might match the return type of a gcc2
10301 builtin and then its argument prototype would still apply. */
10303 /* The GNU C library defines this for functions which it implements
10304 to always fail with ENOSYS. Some functions are actually named
10305 something starting with __ and the normal name is an alias. */
10306 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10309 char (*f) () = $ac_func;
10318 return f != $ac_func;
10323 rm -f conftest.$ac_objext conftest$ac_exeext
10324 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10325 (eval $ac_link) 2>&5
10327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10328 (exit $ac_status); } &&
10329 { ac_try='test -s conftest$ac_exeext'
10330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10331 (eval $ac_try) 2>&5
10333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10334 (exit $ac_status); }; }; then
10335 eval "$as_ac_var=yes"
10337 echo "$as_me: failed program was:" >&5
10338 sed 's/^/| /' conftest.$ac_ext >&5
10340 eval "$as_ac_var=no"
10342 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10344 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10345 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10346 if test `eval echo '${'$as_ac_var'}'` = yes; then
10347 cat >>confdefs.h <<_ACEOF
10348 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10357 for ac_header in limits.h string.h unistd.h
10359 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10360 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10361 echo "$as_me:$LINENO: checking for $ac_header" >&5
10362 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10363 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10364 echo $ECHO_N "(cached) $ECHO_C" >&6
10366 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10367 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10369 # Is the header compilable?
10370 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10371 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10372 cat >conftest.$ac_ext <<_ACEOF
10373 #line $LINENO "configure"
10376 cat confdefs.h >>conftest.$ac_ext
10377 cat >>conftest.$ac_ext <<_ACEOF
10378 /* end confdefs.h. */
10379 $ac_includes_default
10380 #include <$ac_header>
10382 rm -f conftest.$ac_objext
10383 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10384 (eval $ac_compile) 2>&5
10386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10387 (exit $ac_status); } &&
10388 { ac_try='test -s conftest.$ac_objext'
10389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10390 (eval $ac_try) 2>&5
10392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10393 (exit $ac_status); }; }; then
10394 ac_header_compiler=yes
10396 echo "$as_me: failed program was:" >&5
10397 sed 's/^/| /' conftest.$ac_ext >&5
10399 ac_header_compiler=no
10401 rm -f conftest.$ac_objext conftest.$ac_ext
10402 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10403 echo "${ECHO_T}$ac_header_compiler" >&6
10405 # Is the header present?
10406 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10407 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10408 cat >conftest.$ac_ext <<_ACEOF
10409 #line $LINENO "configure"
10412 cat confdefs.h >>conftest.$ac_ext
10413 cat >>conftest.$ac_ext <<_ACEOF
10414 /* end confdefs.h. */
10415 #include <$ac_header>
10417 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10418 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10420 grep -v '^ *+' conftest.er1 >conftest.err
10422 cat conftest.err >&5
10423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10424 (exit $ac_status); } >/dev/null; then
10425 if test -s conftest.err; then
10426 ac_cpp_err=$ac_c_preproc_warn_flag
10433 if test -z "$ac_cpp_err"; then
10434 ac_header_preproc=yes
10436 echo "$as_me: failed program was:" >&5
10437 sed 's/^/| /' conftest.$ac_ext >&5
10439 ac_header_preproc=no
10441 rm -f conftest.err conftest.$ac_ext
10442 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10443 echo "${ECHO_T}$ac_header_preproc" >&6
10445 # So? What about this header?
10446 case $ac_header_compiler:$ac_header_preproc in
10448 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10449 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10450 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10451 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10454 ## ------------------------------------ ##
10455 ## Report this to bug-autoconf@gnu.org. ##
10456 ## ------------------------------------ ##
10459 sed "s/^/$as_me: WARNING: /" >&2
10462 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10463 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10464 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10465 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10466 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10467 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10470 ## ------------------------------------ ##
10471 ## Report this to bug-autoconf@gnu.org. ##
10472 ## ------------------------------------ ##
10475 sed "s/^/$as_me: WARNING: /" >&2
10478 echo "$as_me:$LINENO: checking for $ac_header" >&5
10479 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10480 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10481 echo $ECHO_N "(cached) $ECHO_C" >&6
10483 eval "$as_ac_Header=$ac_header_preproc"
10485 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10486 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10489 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10490 cat >>confdefs.h <<_ACEOF
10491 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10499 # for STACK_DIRECTION
10502 echo "$as_me:$LINENO: checking for working C stack overflow detection" >&5
10503 echo $ECHO_N "checking for working C stack overflow detection... $ECHO_C" >&6
10504 if test "${ac_cv_sys_xsi_stack_overflow_heuristic+set}" = set; then
10505 echo $ECHO_N "(cached) $ECHO_C" >&6
10507 if test "$cross_compiling" = yes; then
10508 ac_cv_sys_xsi_stack_overflow_heuristic=cross-compiling
10510 cat >conftest.$ac_ext <<_ACEOF
10511 #line $LINENO "configure"
10514 cat confdefs.h >>conftest.$ac_ext
10515 cat >>conftest.$ac_ext <<_ACEOF
10516 /* end confdefs.h. */
10518 #include <signal.h>
10519 #include <ucontext.h>
10523 char buffer[SIGSTKSZ];
10527 } alternate_signal_stack;
10529 #if STACK_DIRECTION
10530 # define find_stack_direction(ptr) STACK_DIRECTION
10533 find_stack_direction (char const *addr)
10536 return (! addr ? find_stack_direction (&dummy)
10537 : addr < &dummy ? 1 : -1);
10542 segv_handler (int signo, siginfo_t *info, void *context)
10544 if (0 < info->si_code)
10546 ucontext_t const *user_context = context;
10547 char const *stack_min = user_context->uc_stack.ss_sp;
10548 size_t stack_size = user_context->uc_stack.ss_size;
10549 char const *faulting_address = info->si_addr;
10550 size_t s = faulting_address - stack_min;
10551 size_t page_size = sysconf (_SC_PAGESIZE);
10552 if (find_stack_direction (0) < 0)
10554 if (s < stack_size + page_size)
10562 c_stack_action (void)
10565 struct sigaction act;
10569 st.ss_sp = alternate_signal_stack.buffer;
10570 st.ss_size = sizeof alternate_signal_stack.buffer;
10571 r = sigaltstack (&st, 0);
10575 sigemptyset (&act.sa_mask);
10576 act.sa_flags = SA_NODEFER | SA_ONSTACK | SA_RESETHAND | SA_SIGINFO;
10577 act.sa_sigaction = segv_handler;
10578 return sigaction (SIGSEGV, &act, 0);
10586 return *p + recurse (array);
10593 return recurse ("\1");
10597 rm -f conftest$ac_exeext
10598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10599 (eval $ac_link) 2>&5
10601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10602 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10604 (eval $ac_try) 2>&5
10606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10607 (exit $ac_status); }; }; then
10608 ac_cv_sys_xsi_stack_overflow_heuristic=yes
10610 echo "$as_me: program exited with status $ac_status" >&5
10611 echo "$as_me: failed program was:" >&5
10612 sed 's/^/| /' conftest.$ac_ext >&5
10614 ( exit $ac_status )
10615 ac_cv_sys_xsi_stack_overflow_heuristic=no
10617 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10620 echo "$as_me:$LINENO: result: $ac_cv_sys_xsi_stack_overflow_heuristic" >&5
10621 echo "${ECHO_T}$ac_cv_sys_xsi_stack_overflow_heuristic" >&6
10623 if test $ac_cv_sys_xsi_stack_overflow_heuristic = yes; then
10625 cat >>confdefs.h <<\_ACEOF
10626 #define HAVE_XSI_STACK_OVERFLOW_HEURISTIC 1
10632 # for STACK_DIRECTION
10637 for ac_func in getcontext sigaltstack
10639 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10640 echo "$as_me:$LINENO: checking for $ac_func" >&5
10641 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10642 if eval "test \"\${$as_ac_var+set}\" = set"; then
10643 echo $ECHO_N "(cached) $ECHO_C" >&6
10645 cat >conftest.$ac_ext <<_ACEOF
10646 #line $LINENO "configure"
10649 cat confdefs.h >>conftest.$ac_ext
10650 cat >>conftest.$ac_ext <<_ACEOF
10651 /* end confdefs.h. */
10652 /* System header to define __stub macros and hopefully few prototypes,
10653 which can conflict with char $ac_func (); below.
10654 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10655 <limits.h> exists even on freestanding compilers. */
10657 # include <limits.h>
10659 # include <assert.h>
10661 /* Override any gcc2 internal prototype to avoid an error. */
10666 /* We use char because int might match the return type of a gcc2
10667 builtin and then its argument prototype would still apply. */
10669 /* The GNU C library defines this for functions which it implements
10670 to always fail with ENOSYS. Some functions are actually named
10671 something starting with __ and the normal name is an alias. */
10672 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10675 char (*f) () = $ac_func;
10684 return f != $ac_func;
10689 rm -f conftest.$ac_objext conftest$ac_exeext
10690 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10691 (eval $ac_link) 2>&5
10693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10694 (exit $ac_status); } &&
10695 { ac_try='test -s conftest$ac_exeext'
10696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10697 (eval $ac_try) 2>&5
10699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10700 (exit $ac_status); }; }; then
10701 eval "$as_ac_var=yes"
10703 echo "$as_me: failed program was:" >&5
10704 sed 's/^/| /' conftest.$ac_ext >&5
10706 eval "$as_ac_var=no"
10708 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10710 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10711 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10712 if test `eval echo '${'$as_ac_var'}'` = yes; then
10713 cat >>confdefs.h <<_ACEOF
10714 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10720 echo "$as_me:$LINENO: checking whether getcontext is declared" >&5
10721 echo $ECHO_N "checking whether getcontext is declared... $ECHO_C" >&6
10722 if test "${ac_cv_have_decl_getcontext+set}" = set; then
10723 echo $ECHO_N "(cached) $ECHO_C" >&6
10725 cat >conftest.$ac_ext <<_ACEOF
10726 #line $LINENO "configure"
10729 cat confdefs.h >>conftest.$ac_ext
10730 cat >>conftest.$ac_ext <<_ACEOF
10731 /* end confdefs.h. */
10732 #include <ucontext.h>
10738 char *p = (char *) getcontext;
10745 rm -f conftest.$ac_objext
10746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10747 (eval $ac_compile) 2>&5
10749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10750 (exit $ac_status); } &&
10751 { ac_try='test -s conftest.$ac_objext'
10752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10753 (eval $ac_try) 2>&5
10755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10756 (exit $ac_status); }; }; then
10757 ac_cv_have_decl_getcontext=yes
10759 echo "$as_me: failed program was:" >&5
10760 sed 's/^/| /' conftest.$ac_ext >&5
10762 ac_cv_have_decl_getcontext=no
10764 rm -f conftest.$ac_objext conftest.$ac_ext
10766 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getcontext" >&5
10767 echo "${ECHO_T}$ac_cv_have_decl_getcontext" >&6
10768 if test $ac_cv_have_decl_getcontext = yes; then
10770 cat >>confdefs.h <<_ACEOF
10771 #define HAVE_DECL_GETCONTEXT 1
10776 cat >>confdefs.h <<_ACEOF
10777 #define HAVE_DECL_GETCONTEXT 0
10784 echo "$as_me:$LINENO: checking whether sigaltstack is declared" >&5
10785 echo $ECHO_N "checking whether sigaltstack is declared... $ECHO_C" >&6
10786 if test "${ac_cv_have_decl_sigaltstack+set}" = set; then
10787 echo $ECHO_N "(cached) $ECHO_C" >&6
10789 cat >conftest.$ac_ext <<_ACEOF
10790 #line $LINENO "configure"
10793 cat confdefs.h >>conftest.$ac_ext
10794 cat >>conftest.$ac_ext <<_ACEOF
10795 /* end confdefs.h. */
10796 #include <signal.h>
10801 #ifndef sigaltstack
10802 char *p = (char *) sigaltstack;
10809 rm -f conftest.$ac_objext
10810 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10811 (eval $ac_compile) 2>&5
10813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10814 (exit $ac_status); } &&
10815 { ac_try='test -s conftest.$ac_objext'
10816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10817 (eval $ac_try) 2>&5
10819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10820 (exit $ac_status); }; }; then
10821 ac_cv_have_decl_sigaltstack=yes
10823 echo "$as_me: failed program was:" >&5
10824 sed 's/^/| /' conftest.$ac_ext >&5
10826 ac_cv_have_decl_sigaltstack=no
10828 rm -f conftest.$ac_objext conftest.$ac_ext
10830 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sigaltstack" >&5
10831 echo "${ECHO_T}$ac_cv_have_decl_sigaltstack" >&6
10832 if test $ac_cv_have_decl_sigaltstack = yes; then
10834 cat >>confdefs.h <<_ACEOF
10835 #define HAVE_DECL_SIGALTSTACK 1
10840 cat >>confdefs.h <<_ACEOF
10841 #define HAVE_DECL_SIGALTSTACK 0
10852 for ac_header in sys/resource.h ucontext.h unistd.h
10854 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10855 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10856 echo "$as_me:$LINENO: checking for $ac_header" >&5
10857 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10858 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10859 echo $ECHO_N "(cached) $ECHO_C" >&6
10861 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10862 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10864 # Is the header compilable?
10865 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10866 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10867 cat >conftest.$ac_ext <<_ACEOF
10868 #line $LINENO "configure"
10871 cat confdefs.h >>conftest.$ac_ext
10872 cat >>conftest.$ac_ext <<_ACEOF
10873 /* end confdefs.h. */
10874 $ac_includes_default
10875 #include <$ac_header>
10877 rm -f conftest.$ac_objext
10878 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10879 (eval $ac_compile) 2>&5
10881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10882 (exit $ac_status); } &&
10883 { ac_try='test -s conftest.$ac_objext'
10884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10885 (eval $ac_try) 2>&5
10887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10888 (exit $ac_status); }; }; then
10889 ac_header_compiler=yes
10891 echo "$as_me: failed program was:" >&5
10892 sed 's/^/| /' conftest.$ac_ext >&5
10894 ac_header_compiler=no
10896 rm -f conftest.$ac_objext conftest.$ac_ext
10897 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10898 echo "${ECHO_T}$ac_header_compiler" >&6
10900 # Is the header present?
10901 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10902 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10903 cat >conftest.$ac_ext <<_ACEOF
10904 #line $LINENO "configure"
10907 cat confdefs.h >>conftest.$ac_ext
10908 cat >>conftest.$ac_ext <<_ACEOF
10909 /* end confdefs.h. */
10910 #include <$ac_header>
10912 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10913 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10915 grep -v '^ *+' conftest.er1 >conftest.err
10917 cat conftest.err >&5
10918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10919 (exit $ac_status); } >/dev/null; then
10920 if test -s conftest.err; then
10921 ac_cpp_err=$ac_c_preproc_warn_flag
10928 if test -z "$ac_cpp_err"; then
10929 ac_header_preproc=yes
10931 echo "$as_me: failed program was:" >&5
10932 sed 's/^/| /' conftest.$ac_ext >&5
10934 ac_header_preproc=no
10936 rm -f conftest.err conftest.$ac_ext
10937 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10938 echo "${ECHO_T}$ac_header_preproc" >&6
10940 # So? What about this header?
10941 case $ac_header_compiler:$ac_header_preproc in
10943 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10944 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10945 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10946 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10949 ## ------------------------------------ ##
10950 ## Report this to bug-autoconf@gnu.org. ##
10951 ## ------------------------------------ ##
10954 sed "s/^/$as_me: WARNING: /" >&2
10957 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10958 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10959 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10960 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10961 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10962 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10965 ## ------------------------------------ ##
10966 ## Report this to bug-autoconf@gnu.org. ##
10967 ## ------------------------------------ ##
10970 sed "s/^/$as_me: WARNING: /" >&2
10973 echo "$as_me:$LINENO: checking for $ac_header" >&5
10974 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10975 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10976 echo $ECHO_N "(cached) $ECHO_C" >&6
10978 eval "$as_ac_Header=$ac_header_preproc"
10980 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10981 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10984 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10985 cat >>confdefs.h <<_ACEOF
10986 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10994 echo "$as_me:$LINENO: checking for stack_t" >&5
10995 echo $ECHO_N "checking for stack_t... $ECHO_C" >&6
10996 if test "${ac_cv_type_stack_t+set}" = set; then
10997 echo $ECHO_N "(cached) $ECHO_C" >&6
10999 cat >conftest.$ac_ext <<_ACEOF
11000 #line $LINENO "configure"
11003 cat confdefs.h >>conftest.$ac_ext
11004 cat >>conftest.$ac_ext <<_ACEOF
11005 /* end confdefs.h. */
11006 #include <signal.h>
11013 if (sizeof (stack_t))
11019 rm -f conftest.$ac_objext
11020 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11021 (eval $ac_compile) 2>&5
11023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11024 (exit $ac_status); } &&
11025 { ac_try='test -s conftest.$ac_objext'
11026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11027 (eval $ac_try) 2>&5
11029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11030 (exit $ac_status); }; }; then
11031 ac_cv_type_stack_t=yes
11033 echo "$as_me: failed program was:" >&5
11034 sed 's/^/| /' conftest.$ac_ext >&5
11036 ac_cv_type_stack_t=no
11038 rm -f conftest.$ac_objext conftest.$ac_ext
11040 echo "$as_me:$LINENO: result: $ac_cv_type_stack_t" >&5
11041 echo "${ECHO_T}$ac_cv_type_stack_t" >&6
11042 if test $ac_cv_type_stack_t = yes; then
11044 cat >>confdefs.h <<_ACEOF
11045 #define HAVE_STACK_T 1
11053 echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
11054 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
11055 if test "${ac_cv_search_gethostbyname+set}" = set; then
11056 echo $ECHO_N "(cached) $ECHO_C" >&6
11059 ac_func_search_save_LIBS=$LIBS
11060 ac_cv_search_gethostbyname=no
11061 cat >conftest.$ac_ext <<_ACEOF
11062 #line $LINENO "configure"
11065 cat confdefs.h >>conftest.$ac_ext
11066 cat >>conftest.$ac_ext <<_ACEOF
11067 /* end confdefs.h. */
11069 /* Override any gcc2 internal prototype to avoid an error. */
11073 /* We use char because int might match the return type of a gcc2
11074 builtin and then its argument prototype would still apply. */
11075 char gethostbyname ();
11084 rm -f conftest.$ac_objext conftest$ac_exeext
11085 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11086 (eval $ac_link) 2>&5
11088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11089 (exit $ac_status); } &&
11090 { ac_try='test -s conftest$ac_exeext'
11091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11092 (eval $ac_try) 2>&5
11094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11095 (exit $ac_status); }; }; then
11096 ac_cv_search_gethostbyname='none required'
11098 echo "$as_me: failed program was:" >&5
11099 sed 's/^/| /' conftest.$ac_ext >&5
11102 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11103 if test "$ac_cv_search_gethostbyname" = no; then
11104 for ac_lib in inet nsl; do
11105 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11106 cat >conftest.$ac_ext <<_ACEOF
11107 #line $LINENO "configure"
11110 cat confdefs.h >>conftest.$ac_ext
11111 cat >>conftest.$ac_ext <<_ACEOF
11112 /* end confdefs.h. */
11114 /* Override any gcc2 internal prototype to avoid an error. */
11118 /* We use char because int might match the return type of a gcc2
11119 builtin and then its argument prototype would still apply. */
11120 char gethostbyname ();
11129 rm -f conftest.$ac_objext conftest$ac_exeext
11130 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11131 (eval $ac_link) 2>&5
11133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11134 (exit $ac_status); } &&
11135 { ac_try='test -s conftest$ac_exeext'
11136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11137 (eval $ac_try) 2>&5
11139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11140 (exit $ac_status); }; }; then
11141 ac_cv_search_gethostbyname="-l$ac_lib"; break
11143 echo "$as_me: failed program was:" >&5
11144 sed 's/^/| /' conftest.$ac_ext >&5
11147 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11150 LIBS=$ac_func_search_save_LIBS
11153 echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
11154 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
11156 if test "$ac_cv_search_gethostbyname" = no; then :
11159 if test "$ac_cv_search_gethostbyname" = 'none required'; then :
11162 LIBS="$ac_cv_search_gethostbyname $LIBS"
11171 for ac_func in gethostbyname gethostbyaddr inet_ntoa
11173 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11174 echo "$as_me:$LINENO: checking for $ac_func" >&5
11175 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11176 if eval "test \"\${$as_ac_var+set}\" = set"; then
11177 echo $ECHO_N "(cached) $ECHO_C" >&6
11179 cat >conftest.$ac_ext <<_ACEOF
11180 #line $LINENO "configure"
11183 cat confdefs.h >>conftest.$ac_ext
11184 cat >>conftest.$ac_ext <<_ACEOF
11185 /* end confdefs.h. */
11186 /* System header to define __stub macros and hopefully few prototypes,
11187 which can conflict with char $ac_func (); below.
11188 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11189 <limits.h> exists even on freestanding compilers. */
11191 # include <limits.h>
11193 # include <assert.h>
11195 /* Override any gcc2 internal prototype to avoid an error. */
11200 /* We use char because int might match the return type of a gcc2
11201 builtin and then its argument prototype would still apply. */
11203 /* The GNU C library defines this for functions which it implements
11204 to always fail with ENOSYS. Some functions are actually named
11205 something starting with __ and the normal name is an alias. */
11206 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11209 char (*f) () = $ac_func;
11218 return f != $ac_func;
11223 rm -f conftest.$ac_objext conftest$ac_exeext
11224 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11225 (eval $ac_link) 2>&5
11227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11228 (exit $ac_status); } &&
11229 { ac_try='test -s conftest$ac_exeext'
11230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11231 (eval $ac_try) 2>&5
11233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11234 (exit $ac_status); }; }; then
11235 eval "$as_ac_var=yes"
11237 echo "$as_me: failed program was:" >&5
11238 sed 's/^/| /' conftest.$ac_ext >&5
11240 eval "$as_ac_var=no"
11242 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11244 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11245 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11246 if test `eval echo '${'$as_ac_var'}'` = yes; then
11247 cat >>confdefs.h <<_ACEOF
11248 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11261 for ac_header in unistd.h string.h netdb.h sys/socket.h \
11262 netinet/in.h arpa/inet.h
11264 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11265 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11266 echo "$as_me:$LINENO: checking for $ac_header" >&5
11267 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11268 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11269 echo $ECHO_N "(cached) $ECHO_C" >&6
11271 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11272 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11274 # Is the header compilable?
11275 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11276 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11277 cat >conftest.$ac_ext <<_ACEOF
11278 #line $LINENO "configure"
11281 cat confdefs.h >>conftest.$ac_ext
11282 cat >>conftest.$ac_ext <<_ACEOF
11283 /* end confdefs.h. */
11284 $ac_includes_default
11285 #include <$ac_header>
11287 rm -f conftest.$ac_objext
11288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11289 (eval $ac_compile) 2>&5
11291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11292 (exit $ac_status); } &&
11293 { ac_try='test -s conftest.$ac_objext'
11294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11295 (eval $ac_try) 2>&5
11297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11298 (exit $ac_status); }; }; then
11299 ac_header_compiler=yes
11301 echo "$as_me: failed program was:" >&5
11302 sed 's/^/| /' conftest.$ac_ext >&5
11304 ac_header_compiler=no
11306 rm -f conftest.$ac_objext conftest.$ac_ext
11307 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11308 echo "${ECHO_T}$ac_header_compiler" >&6
11310 # Is the header present?
11311 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11312 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11313 cat >conftest.$ac_ext <<_ACEOF
11314 #line $LINENO "configure"
11317 cat confdefs.h >>conftest.$ac_ext
11318 cat >>conftest.$ac_ext <<_ACEOF
11319 /* end confdefs.h. */
11320 #include <$ac_header>
11322 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11323 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11325 grep -v '^ *+' conftest.er1 >conftest.err
11327 cat conftest.err >&5
11328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11329 (exit $ac_status); } >/dev/null; then
11330 if test -s conftest.err; then
11331 ac_cpp_err=$ac_c_preproc_warn_flag
11338 if test -z "$ac_cpp_err"; then
11339 ac_header_preproc=yes
11341 echo "$as_me: failed program was:" >&5
11342 sed 's/^/| /' conftest.$ac_ext >&5
11344 ac_header_preproc=no
11346 rm -f conftest.err conftest.$ac_ext
11347 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11348 echo "${ECHO_T}$ac_header_preproc" >&6
11350 # So? What about this header?
11351 case $ac_header_compiler:$ac_header_preproc in
11353 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11354 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11355 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11356 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11359 ## ------------------------------------ ##
11360 ## Report this to bug-autoconf@gnu.org. ##
11361 ## ------------------------------------ ##
11364 sed "s/^/$as_me: WARNING: /" >&2
11367 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11368 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11369 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11370 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11371 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11372 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11375 ## ------------------------------------ ##
11376 ## Report this to bug-autoconf@gnu.org. ##
11377 ## ------------------------------------ ##
11380 sed "s/^/$as_me: WARNING: /" >&2
11383 echo "$as_me:$LINENO: checking for $ac_header" >&5
11384 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11385 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11386 echo $ECHO_N "(cached) $ECHO_C" >&6
11388 eval "$as_ac_Header=$ac_header_preproc"
11390 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11391 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11394 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11395 cat >>confdefs.h <<_ACEOF
11396 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11407 for ac_header in string.h
11409 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11410 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11411 echo "$as_me:$LINENO: checking for $ac_header" >&5
11412 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11413 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11414 echo $ECHO_N "(cached) $ECHO_C" >&6
11416 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11417 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11419 # Is the header compilable?
11420 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11421 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11422 cat >conftest.$ac_ext <<_ACEOF
11423 #line $LINENO "configure"
11426 cat confdefs.h >>conftest.$ac_ext
11427 cat >>conftest.$ac_ext <<_ACEOF
11428 /* end confdefs.h. */
11429 $ac_includes_default
11430 #include <$ac_header>
11432 rm -f conftest.$ac_objext
11433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11434 (eval $ac_compile) 2>&5
11436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11437 (exit $ac_status); } &&
11438 { ac_try='test -s conftest.$ac_objext'
11439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11440 (eval $ac_try) 2>&5
11442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11443 (exit $ac_status); }; }; then
11444 ac_header_compiler=yes
11446 echo "$as_me: failed program was:" >&5
11447 sed 's/^/| /' conftest.$ac_ext >&5
11449 ac_header_compiler=no
11451 rm -f conftest.$ac_objext conftest.$ac_ext
11452 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11453 echo "${ECHO_T}$ac_header_compiler" >&6
11455 # Is the header present?
11456 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11457 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11458 cat >conftest.$ac_ext <<_ACEOF
11459 #line $LINENO "configure"
11462 cat confdefs.h >>conftest.$ac_ext
11463 cat >>conftest.$ac_ext <<_ACEOF
11464 /* end confdefs.h. */
11465 #include <$ac_header>
11467 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11468 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11470 grep -v '^ *+' conftest.er1 >conftest.err
11472 cat conftest.err >&5
11473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11474 (exit $ac_status); } >/dev/null; then
11475 if test -s conftest.err; then
11476 ac_cpp_err=$ac_c_preproc_warn_flag
11483 if test -z "$ac_cpp_err"; then
11484 ac_header_preproc=yes
11486 echo "$as_me: failed program was:" >&5
11487 sed 's/^/| /' conftest.$ac_ext >&5
11489 ac_header_preproc=no
11491 rm -f conftest.err conftest.$ac_ext
11492 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11493 echo "${ECHO_T}$ac_header_preproc" >&6
11495 # So? What about this header?
11496 case $ac_header_compiler:$ac_header_preproc in
11498 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11499 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11500 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11501 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11504 ## ------------------------------------ ##
11505 ## Report this to bug-autoconf@gnu.org. ##
11506 ## ------------------------------------ ##
11509 sed "s/^/$as_me: WARNING: /" >&2
11512 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11513 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11514 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11515 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11516 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11517 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11520 ## ------------------------------------ ##
11521 ## Report this to bug-autoconf@gnu.org. ##
11522 ## ------------------------------------ ##
11525 sed "s/^/$as_me: WARNING: /" >&2
11528 echo "$as_me:$LINENO: checking for $ac_header" >&5
11529 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11530 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11531 echo $ECHO_N "(cached) $ECHO_C" >&6
11533 eval "$as_ac_Header=$ac_header_preproc"
11535 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11536 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11539 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11540 cat >>confdefs.h <<_ACEOF
11541 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11553 for ac_func in strerror vprintf doprnt
11555 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11556 echo "$as_me:$LINENO: checking for $ac_func" >&5
11557 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11558 if eval "test \"\${$as_ac_var+set}\" = set"; then
11559 echo $ECHO_N "(cached) $ECHO_C" >&6
11561 cat >conftest.$ac_ext <<_ACEOF
11562 #line $LINENO "configure"
11565 cat confdefs.h >>conftest.$ac_ext
11566 cat >>conftest.$ac_ext <<_ACEOF
11567 /* end confdefs.h. */
11568 /* System header to define __stub macros and hopefully few prototypes,
11569 which can conflict with char $ac_func (); below.
11570 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11571 <limits.h> exists even on freestanding compilers. */
11573 # include <limits.h>
11575 # include <assert.h>
11577 /* Override any gcc2 internal prototype to avoid an error. */
11582 /* We use char because int might match the return type of a gcc2
11583 builtin and then its argument prototype would still apply. */
11585 /* The GNU C library defines this for functions which it implements
11586 to always fail with ENOSYS. Some functions are actually named
11587 something starting with __ and the normal name is an alias. */
11588 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11591 char (*f) () = $ac_func;
11600 return f != $ac_func;
11605 rm -f conftest.$ac_objext conftest$ac_exeext
11606 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11607 (eval $ac_link) 2>&5
11609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11610 (exit $ac_status); } &&
11611 { ac_try='test -s conftest$ac_exeext'
11612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11613 (eval $ac_try) 2>&5
11615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11616 (exit $ac_status); }; }; then
11617 eval "$as_ac_var=yes"
11619 echo "$as_me: failed program was:" >&5
11620 sed 's/^/| /' conftest.$ac_ext >&5
11622 eval "$as_ac_var=no"
11624 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11626 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11627 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11628 if test `eval echo '${'$as_ac_var'}'` = yes; then
11629 cat >>confdefs.h <<_ACEOF
11630 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11636 echo "$as_me:$LINENO: checking whether strerror is declared" >&5
11637 echo $ECHO_N "checking whether strerror is declared... $ECHO_C" >&6
11638 if test "${ac_cv_have_decl_strerror+set}" = set; then
11639 echo $ECHO_N "(cached) $ECHO_C" >&6
11641 cat >conftest.$ac_ext <<_ACEOF
11642 #line $LINENO "configure"
11645 cat confdefs.h >>conftest.$ac_ext
11646 cat >>conftest.$ac_ext <<_ACEOF
11647 /* end confdefs.h. */
11648 $ac_includes_default
11653 char *p = (char *) strerror;
11660 rm -f conftest.$ac_objext
11661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11662 (eval $ac_compile) 2>&5
11664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11665 (exit $ac_status); } &&
11666 { ac_try='test -s conftest.$ac_objext'
11667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11668 (eval $ac_try) 2>&5
11670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11671 (exit $ac_status); }; }; then
11672 ac_cv_have_decl_strerror=yes
11674 echo "$as_me: failed program was:" >&5
11675 sed 's/^/| /' conftest.$ac_ext >&5
11677 ac_cv_have_decl_strerror=no
11679 rm -f conftest.$ac_objext conftest.$ac_ext
11681 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror" >&5
11682 echo "${ECHO_T}$ac_cv_have_decl_strerror" >&6
11683 if test $ac_cv_have_decl_strerror = yes; then
11685 cat >>confdefs.h <<_ACEOF
11686 #define HAVE_DECL_STRERROR 1
11691 cat >>confdefs.h <<_ACEOF
11692 #define HAVE_DECL_STRERROR 0
11700 for ac_header in libintl.h
11702 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11703 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11704 echo "$as_me:$LINENO: checking for $ac_header" >&5
11705 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11706 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11707 echo $ECHO_N "(cached) $ECHO_C" >&6
11709 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11710 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11712 # Is the header compilable?
11713 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11714 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11715 cat >conftest.$ac_ext <<_ACEOF
11716 #line $LINENO "configure"
11719 cat confdefs.h >>conftest.$ac_ext
11720 cat >>conftest.$ac_ext <<_ACEOF
11721 /* end confdefs.h. */
11722 $ac_includes_default
11723 #include <$ac_header>
11725 rm -f conftest.$ac_objext
11726 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11727 (eval $ac_compile) 2>&5
11729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11730 (exit $ac_status); } &&
11731 { ac_try='test -s conftest.$ac_objext'
11732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11733 (eval $ac_try) 2>&5
11735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11736 (exit $ac_status); }; }; then
11737 ac_header_compiler=yes
11739 echo "$as_me: failed program was:" >&5
11740 sed 's/^/| /' conftest.$ac_ext >&5
11742 ac_header_compiler=no
11744 rm -f conftest.$ac_objext conftest.$ac_ext
11745 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11746 echo "${ECHO_T}$ac_header_compiler" >&6
11748 # Is the header present?
11749 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11750 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11751 cat >conftest.$ac_ext <<_ACEOF
11752 #line $LINENO "configure"
11755 cat confdefs.h >>conftest.$ac_ext
11756 cat >>conftest.$ac_ext <<_ACEOF
11757 /* end confdefs.h. */
11758 #include <$ac_header>
11760 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11761 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11763 grep -v '^ *+' conftest.er1 >conftest.err
11765 cat conftest.err >&5
11766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11767 (exit $ac_status); } >/dev/null; then
11768 if test -s conftest.err; then
11769 ac_cpp_err=$ac_c_preproc_warn_flag
11776 if test -z "$ac_cpp_err"; then
11777 ac_header_preproc=yes
11779 echo "$as_me: failed program was:" >&5
11780 sed 's/^/| /' conftest.$ac_ext >&5
11782 ac_header_preproc=no
11784 rm -f conftest.err conftest.$ac_ext
11785 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11786 echo "${ECHO_T}$ac_header_preproc" >&6
11788 # So? What about this header?
11789 case $ac_header_compiler:$ac_header_preproc in
11791 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11792 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11793 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11794 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11797 ## ------------------------------------ ##
11798 ## Report this to bug-autoconf@gnu.org. ##
11799 ## ------------------------------------ ##
11802 sed "s/^/$as_me: WARNING: /" >&2
11805 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11806 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11807 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11808 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11809 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11810 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11813 ## ------------------------------------ ##
11814 ## Report this to bug-autoconf@gnu.org. ##
11815 ## ------------------------------------ ##
11818 sed "s/^/$as_me: WARNING: /" >&2
11821 echo "$as_me:$LINENO: checking for $ac_header" >&5
11822 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11823 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11824 echo $ECHO_N "(cached) $ECHO_C" >&6
11826 eval "$as_ac_Header=$ac_header_preproc"
11828 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11829 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11832 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11833 cat >>confdefs.h <<_ACEOF
11834 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11841 echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
11842 echo $ECHO_N "checking whether strerror_r is declared... $ECHO_C" >&6
11843 if test "${ac_cv_have_decl_strerror_r+set}" = set; then
11844 echo $ECHO_N "(cached) $ECHO_C" >&6
11846 cat >conftest.$ac_ext <<_ACEOF
11847 #line $LINENO "configure"
11850 cat confdefs.h >>conftest.$ac_ext
11851 cat >>conftest.$ac_ext <<_ACEOF
11852 /* end confdefs.h. */
11853 $ac_includes_default
11858 char *p = (char *) strerror_r;
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_cv_have_decl_strerror_r=yes
11879 echo "$as_me: failed program was:" >&5
11880 sed 's/^/| /' conftest.$ac_ext >&5
11882 ac_cv_have_decl_strerror_r=no
11884 rm -f conftest.$ac_objext conftest.$ac_ext
11886 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5
11887 echo "${ECHO_T}$ac_cv_have_decl_strerror_r" >&6
11888 if test $ac_cv_have_decl_strerror_r = yes; then
11890 cat >>confdefs.h <<_ACEOF
11891 #define HAVE_DECL_STRERROR_R 1
11896 cat >>confdefs.h <<_ACEOF
11897 #define HAVE_DECL_STRERROR_R 0
11905 for ac_func in strerror_r
11907 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11908 echo "$as_me:$LINENO: checking for $ac_func" >&5
11909 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11910 if eval "test \"\${$as_ac_var+set}\" = set"; then
11911 echo $ECHO_N "(cached) $ECHO_C" >&6
11913 cat >conftest.$ac_ext <<_ACEOF
11914 #line $LINENO "configure"
11917 cat confdefs.h >>conftest.$ac_ext
11918 cat >>conftest.$ac_ext <<_ACEOF
11919 /* end confdefs.h. */
11920 /* System header to define __stub macros and hopefully few prototypes,
11921 which can conflict with char $ac_func (); below.
11922 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11923 <limits.h> exists even on freestanding compilers. */
11925 # include <limits.h>
11927 # include <assert.h>
11929 /* Override any gcc2 internal prototype to avoid an error. */
11934 /* We use char because int might match the return type of a gcc2
11935 builtin and then its argument prototype would still apply. */
11937 /* The GNU C library defines this for functions which it implements
11938 to always fail with ENOSYS. Some functions are actually named
11939 something starting with __ and the normal name is an alias. */
11940 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11943 char (*f) () = $ac_func;
11952 return f != $ac_func;
11957 rm -f conftest.$ac_objext conftest$ac_exeext
11958 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11959 (eval $ac_link) 2>&5
11961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11962 (exit $ac_status); } &&
11963 { ac_try='test -s conftest$ac_exeext'
11964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11965 (eval $ac_try) 2>&5
11967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11968 (exit $ac_status); }; }; then
11969 eval "$as_ac_var=yes"
11971 echo "$as_me: failed program was:" >&5
11972 sed 's/^/| /' conftest.$ac_ext >&5
11974 eval "$as_ac_var=no"
11976 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11978 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11979 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11980 if test `eval echo '${'$as_ac_var'}'` = yes; then
11981 cat >>confdefs.h <<_ACEOF
11982 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11988 echo "$as_me:$LINENO: checking whether strerror_r returns char *" >&5
11989 echo $ECHO_N "checking whether strerror_r returns char *... $ECHO_C" >&6
11990 if test "${ac_cv_func_strerror_r_char_p+set}" = set; then
11991 echo $ECHO_N "(cached) $ECHO_C" >&6
11994 ac_cv_func_strerror_r_char_p=no
11995 if test $ac_cv_have_decl_strerror_r = yes; then
11996 cat >conftest.$ac_ext <<_ACEOF
11997 #line $LINENO "configure"
12000 cat confdefs.h >>conftest.$ac_ext
12001 cat >>conftest.$ac_ext <<_ACEOF
12002 /* end confdefs.h. */
12003 $ac_includes_default
12009 char x = *strerror_r (0, buf, sizeof buf);
12010 char *p = strerror_r (0, buf, sizeof buf);
12016 rm -f conftest.$ac_objext
12017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12018 (eval $ac_compile) 2>&5
12020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12021 (exit $ac_status); } &&
12022 { ac_try='test -s conftest.$ac_objext'
12023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12024 (eval $ac_try) 2>&5
12026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12027 (exit $ac_status); }; }; then
12028 ac_cv_func_strerror_r_char_p=yes
12030 echo "$as_me: failed program was:" >&5
12031 sed 's/^/| /' conftest.$ac_ext >&5
12034 rm -f conftest.$ac_objext conftest.$ac_ext
12036 # strerror_r is not declared. Choose between
12037 # systems that have relatively inaccessible declarations for the
12038 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
12039 # former has a strerror_r that returns char*, while the latter
12040 # has a strerror_r that returns `int'.
12041 # This test should segfault on the DEC system.
12042 if test "$cross_compiling" = yes; then
12045 cat >conftest.$ac_ext <<_ACEOF
12046 #line $LINENO "configure"
12049 cat confdefs.h >>conftest.$ac_ext
12050 cat >>conftest.$ac_ext <<_ACEOF
12051 /* end confdefs.h. */
12052 $ac_includes_default
12053 extern char *strerror_r ();
12058 char x = *strerror_r (0, buf, sizeof buf);
12059 exit (!isalpha (x));
12064 rm -f conftest$ac_exeext
12065 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12066 (eval $ac_link) 2>&5
12068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12069 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12071 (eval $ac_try) 2>&5
12073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12074 (exit $ac_status); }; }; then
12075 ac_cv_func_strerror_r_char_p=yes
12077 echo "$as_me: program exited with status $ac_status" >&5
12078 echo "$as_me: failed program was:" >&5
12079 sed 's/^/| /' conftest.$ac_ext >&5
12082 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12087 echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_char_p" >&5
12088 echo "${ECHO_T}$ac_cv_func_strerror_r_char_p" >&6
12089 if test $ac_cv_func_strerror_r_char_p = yes; then
12091 cat >>confdefs.h <<\_ACEOF
12092 #define STRERROR_R_CHAR_P 1
12097 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
12098 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
12099 if test "${ac_cv_header_stdc+set}" = set; then
12100 echo $ECHO_N "(cached) $ECHO_C" >&6
12102 cat >conftest.$ac_ext <<_ACEOF
12103 #line $LINENO "configure"
12106 cat confdefs.h >>conftest.$ac_ext
12107 cat >>conftest.$ac_ext <<_ACEOF
12108 /* end confdefs.h. */
12109 #include <stdlib.h>
12110 #include <stdarg.h>
12111 #include <string.h>
12122 rm -f conftest.$ac_objext
12123 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12124 (eval $ac_compile) 2>&5
12126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12127 (exit $ac_status); } &&
12128 { ac_try='test -s conftest.$ac_objext'
12129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12130 (eval $ac_try) 2>&5
12132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12133 (exit $ac_status); }; }; then
12134 ac_cv_header_stdc=yes
12136 echo "$as_me: failed program was:" >&5
12137 sed 's/^/| /' conftest.$ac_ext >&5
12139 ac_cv_header_stdc=no
12141 rm -f conftest.$ac_objext conftest.$ac_ext
12143 if test $ac_cv_header_stdc = yes; then
12144 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12145 cat >conftest.$ac_ext <<_ACEOF
12146 #line $LINENO "configure"
12149 cat confdefs.h >>conftest.$ac_ext
12150 cat >>conftest.$ac_ext <<_ACEOF
12151 /* end confdefs.h. */
12152 #include <string.h>
12155 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12156 $EGREP "memchr" >/dev/null 2>&1; then
12159 ac_cv_header_stdc=no
12165 if test $ac_cv_header_stdc = yes; then
12166 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12167 cat >conftest.$ac_ext <<_ACEOF
12168 #line $LINENO "configure"
12171 cat confdefs.h >>conftest.$ac_ext
12172 cat >>conftest.$ac_ext <<_ACEOF
12173 /* end confdefs.h. */
12174 #include <stdlib.h>
12177 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12178 $EGREP "free" >/dev/null 2>&1; then
12181 ac_cv_header_stdc=no
12187 if test $ac_cv_header_stdc = yes; then
12188 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12189 if test "$cross_compiling" = yes; then
12192 cat >conftest.$ac_ext <<_ACEOF
12193 #line $LINENO "configure"
12196 cat confdefs.h >>conftest.$ac_ext
12197 cat >>conftest.$ac_ext <<_ACEOF
12198 /* end confdefs.h. */
12200 #if ((' ' & 0x0FF) == 0x020)
12201 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12202 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12204 # define ISLOWER(c) \
12205 (('a' <= (c) && (c) <= 'i') \
12206 || ('j' <= (c) && (c) <= 'r') \
12207 || ('s' <= (c) && (c) <= 'z'))
12208 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12211 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12216 for (i = 0; i < 256; i++)
12217 if (XOR (islower (i), ISLOWER (i))
12218 || toupper (i) != TOUPPER (i))
12223 rm -f conftest$ac_exeext
12224 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12225 (eval $ac_link) 2>&5
12227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12228 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12230 (eval $ac_try) 2>&5
12232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12233 (exit $ac_status); }; }; then
12236 echo "$as_me: program exited with status $ac_status" >&5
12237 echo "$as_me: failed program was:" >&5
12238 sed 's/^/| /' conftest.$ac_ext >&5
12240 ( exit $ac_status )
12241 ac_cv_header_stdc=no
12243 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12247 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
12248 echo "${ECHO_T}$ac_cv_header_stdc" >&6
12249 if test $ac_cv_header_stdc = yes; then
12251 cat >>confdefs.h <<\_ACEOF
12252 #define STDC_HEADERS 1
12258 echo "$as_me:$LINENO: checking for mbstate_t" >&5
12259 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
12260 if test "${ac_cv_type_mbstate_t+set}" = set; then
12261 echo $ECHO_N "(cached) $ECHO_C" >&6
12263 cat >conftest.$ac_ext <<_ACEOF
12264 #line $LINENO "configure"
12267 cat confdefs.h >>conftest.$ac_ext
12268 cat >>conftest.$ac_ext <<_ACEOF
12269 /* end confdefs.h. */
12270 $ac_includes_default
12271 # include <wchar.h>
12275 mbstate_t x; return sizeof x;
12280 rm -f conftest.$ac_objext
12281 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12282 (eval $ac_compile) 2>&5
12284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12285 (exit $ac_status); } &&
12286 { ac_try='test -s conftest.$ac_objext'
12287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12288 (eval $ac_try) 2>&5
12290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12291 (exit $ac_status); }; }; then
12292 ac_cv_type_mbstate_t=yes
12294 echo "$as_me: failed program was:" >&5
12295 sed 's/^/| /' conftest.$ac_ext >&5
12297 ac_cv_type_mbstate_t=no
12299 rm -f conftest.$ac_objext conftest.$ac_ext
12301 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
12302 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
12303 if test $ac_cv_type_mbstate_t = yes; then
12305 cat >>confdefs.h <<\_ACEOF
12306 #define HAVE_MBSTATE_T 1
12311 cat >>confdefs.h <<\_ACEOF
12312 #define mbstate_t int
12317 echo "$as_me:$LINENO: checking for working GNU fnmatch" >&5
12318 echo $ECHO_N "checking for working GNU fnmatch... $ECHO_C" >&6
12319 if test "${ac_cv_func_fnmatch_gnu+set}" = set; then
12320 echo $ECHO_N "(cached) $ECHO_C" >&6
12322 # Some versions of Solaris, SCO, and the GNU C Library
12323 # have a broken or incompatible fnmatch.
12324 # So we run a test program. If we are cross-compiling, take no chance.
12325 # Thanks to John Oleynick, Franc,ois Pinard, and Paul Eggert for this test.
12326 if test "$cross_compiling" = yes; then
12327 ac_cv_func_fnmatch_gnu=cross
12329 cat >conftest.$ac_ext <<_ACEOF
12330 #line $LINENO "configure"
12333 cat confdefs.h >>conftest.$ac_ext
12334 cat >>conftest.$ac_ext <<_ACEOF
12335 /* end confdefs.h. */
12336 #include <fnmatch.h>
12337 # define y(a, b, c) (fnmatch (a, b, c) == 0)
12338 # define n(a, b, c) (fnmatch (a, b, c) == FNM_NOMATCH)
12344 (!(y ("a*", "abc", 0)
12345 && n ("d*/*1", "d/s/1", FNM_PATHNAME)
12346 && y ("a\\\\bc", "abc", 0)
12347 && n ("a\\\\bc", "abc", FNM_NOESCAPE)
12348 && y ("*x", ".x", 0)
12349 && n ("*x", ".x", FNM_PERIOD)
12350 && y ("xxXX", "xXxX", FNM_CASEFOLD)
12351 && y ("a++(x|yy)b", "a+xyyyyxb", FNM_EXTMATCH)
12352 && n ("d*/*1", "d/s/1", FNM_FILE_NAME)
12353 && y ("*", "x", FNM_FILE_NAME | FNM_LEADING_DIR)
12354 && y ("x*", "x/y/z", FNM_FILE_NAME | FNM_LEADING_DIR)
12355 && y ("*c*", "c/x", FNM_FILE_NAME | FNM_LEADING_DIR)));
12360 rm -f conftest$ac_exeext
12361 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12362 (eval $ac_link) 2>&5
12364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12365 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12367 (eval $ac_try) 2>&5
12369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12370 (exit $ac_status); }; }; then
12371 ac_cv_func_fnmatch_gnu=yes
12373 echo "$as_me: program exited with status $ac_status" >&5
12374 echo "$as_me: failed program was:" >&5
12375 sed 's/^/| /' conftest.$ac_ext >&5
12377 ( exit $ac_status )
12378 ac_cv_func_fnmatch_gnu=no
12380 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12383 echo "$as_me:$LINENO: result: $ac_cv_func_fnmatch_gnu" >&5
12384 echo "${ECHO_T}$ac_cv_func_fnmatch_gnu" >&6
12385 if test $ac_cv_func_fnmatch_gnu = yes; then
12386 rm -f $ac_config_libobj_dir/fnmatch.h
12388 echo "$as_me:$LINENO: checking whether getenv is declared" >&5
12389 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
12390 if test "${ac_cv_have_decl_getenv+set}" = set; then
12391 echo $ECHO_N "(cached) $ECHO_C" >&6
12393 cat >conftest.$ac_ext <<_ACEOF
12394 #line $LINENO "configure"
12397 cat confdefs.h >>conftest.$ac_ext
12398 cat >>conftest.$ac_ext <<_ACEOF
12399 /* end confdefs.h. */
12400 $ac_includes_default
12405 char *p = (char *) getenv;
12412 rm -f conftest.$ac_objext
12413 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12414 (eval $ac_compile) 2>&5
12416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12417 (exit $ac_status); } &&
12418 { ac_try='test -s conftest.$ac_objext'
12419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12420 (eval $ac_try) 2>&5
12422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12423 (exit $ac_status); }; }; then
12424 ac_cv_have_decl_getenv=yes
12426 echo "$as_me: failed program was:" >&5
12427 sed 's/^/| /' conftest.$ac_ext >&5
12429 ac_cv_have_decl_getenv=no
12431 rm -f conftest.$ac_objext conftest.$ac_ext
12433 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
12434 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
12435 if test $ac_cv_have_decl_getenv = yes; then
12437 cat >>confdefs.h <<_ACEOF
12438 #define HAVE_DECL_GETENV 1
12443 cat >>confdefs.h <<_ACEOF
12444 #define HAVE_DECL_GETENV 0
12455 for ac_func in btowc mbsrtowcs mempcpy wmempcpy
12457 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12458 echo "$as_me:$LINENO: checking for $ac_func" >&5
12459 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12460 if eval "test \"\${$as_ac_var+set}\" = set"; then
12461 echo $ECHO_N "(cached) $ECHO_C" >&6
12463 cat >conftest.$ac_ext <<_ACEOF
12464 #line $LINENO "configure"
12467 cat confdefs.h >>conftest.$ac_ext
12468 cat >>conftest.$ac_ext <<_ACEOF
12469 /* end confdefs.h. */
12470 /* System header to define __stub macros and hopefully few prototypes,
12471 which can conflict with char $ac_func (); below.
12472 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12473 <limits.h> exists even on freestanding compilers. */
12475 # include <limits.h>
12477 # include <assert.h>
12479 /* Override any gcc2 internal prototype to avoid an error. */
12484 /* We use char because int might match the return type of a gcc2
12485 builtin and then its argument prototype would still apply. */
12487 /* The GNU C library defines this for functions which it implements
12488 to always fail with ENOSYS. Some functions are actually named
12489 something starting with __ and the normal name is an alias. */
12490 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12493 char (*f) () = $ac_func;
12502 return f != $ac_func;
12507 rm -f conftest.$ac_objext conftest$ac_exeext
12508 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12509 (eval $ac_link) 2>&5
12511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12512 (exit $ac_status); } &&
12513 { ac_try='test -s conftest$ac_exeext'
12514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12515 (eval $ac_try) 2>&5
12517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12518 (exit $ac_status); }; }; then
12519 eval "$as_ac_var=yes"
12521 echo "$as_me: failed program was:" >&5
12522 sed 's/^/| /' conftest.$ac_ext >&5
12524 eval "$as_ac_var=no"
12526 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12528 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12529 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12530 if test `eval echo '${'$as_ac_var'}'` = yes; then
12531 cat >>confdefs.h <<_ACEOF
12532 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12540 for ac_header in wchar.h wctype.h
12542 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12543 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12544 echo "$as_me:$LINENO: checking for $ac_header" >&5
12545 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12546 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12547 echo $ECHO_N "(cached) $ECHO_C" >&6
12549 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12550 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12552 # Is the header compilable?
12553 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12554 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12555 cat >conftest.$ac_ext <<_ACEOF
12556 #line $LINENO "configure"
12559 cat confdefs.h >>conftest.$ac_ext
12560 cat >>conftest.$ac_ext <<_ACEOF
12561 /* end confdefs.h. */
12562 $ac_includes_default
12563 #include <$ac_header>
12565 rm -f conftest.$ac_objext
12566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12567 (eval $ac_compile) 2>&5
12569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12570 (exit $ac_status); } &&
12571 { ac_try='test -s conftest.$ac_objext'
12572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12573 (eval $ac_try) 2>&5
12575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12576 (exit $ac_status); }; }; then
12577 ac_header_compiler=yes
12579 echo "$as_me: failed program was:" >&5
12580 sed 's/^/| /' conftest.$ac_ext >&5
12582 ac_header_compiler=no
12584 rm -f conftest.$ac_objext conftest.$ac_ext
12585 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12586 echo "${ECHO_T}$ac_header_compiler" >&6
12588 # Is the header present?
12589 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12590 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12591 cat >conftest.$ac_ext <<_ACEOF
12592 #line $LINENO "configure"
12595 cat confdefs.h >>conftest.$ac_ext
12596 cat >>conftest.$ac_ext <<_ACEOF
12597 /* end confdefs.h. */
12598 #include <$ac_header>
12600 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12601 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12603 grep -v '^ *+' conftest.er1 >conftest.err
12605 cat conftest.err >&5
12606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12607 (exit $ac_status); } >/dev/null; then
12608 if test -s conftest.err; then
12609 ac_cpp_err=$ac_c_preproc_warn_flag
12616 if test -z "$ac_cpp_err"; then
12617 ac_header_preproc=yes
12619 echo "$as_me: failed program was:" >&5
12620 sed 's/^/| /' conftest.$ac_ext >&5
12622 ac_header_preproc=no
12624 rm -f conftest.err conftest.$ac_ext
12625 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12626 echo "${ECHO_T}$ac_header_preproc" >&6
12628 # So? What about this header?
12629 case $ac_header_compiler:$ac_header_preproc in
12631 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12632 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12633 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12634 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12637 ## ------------------------------------ ##
12638 ## Report this to bug-autoconf@gnu.org. ##
12639 ## ------------------------------------ ##
12642 sed "s/^/$as_me: WARNING: /" >&2
12645 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12646 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12647 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12648 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12649 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12650 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12653 ## ------------------------------------ ##
12654 ## Report this to bug-autoconf@gnu.org. ##
12655 ## ------------------------------------ ##
12658 sed "s/^/$as_me: WARNING: /" >&2
12661 echo "$as_me:$LINENO: checking for $ac_header" >&5
12662 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12663 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12664 echo $ECHO_N "(cached) $ECHO_C" >&6
12666 eval "$as_ac_Header=$ac_header_preproc"
12668 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12669 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12672 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12673 cat >>confdefs.h <<_ACEOF
12674 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12681 LIBOBJS="$LIBOBJS fnmatch.$ac_objext"
12682 ac_config_links="$ac_config_links $ac_config_libobj_dir/fnmatch.h:$ac_config_libobj_dir/fnmatch_.h"
12685 cat >>confdefs.h <<\_ACEOF
12686 #define fnmatch rpl_fnmatch
12694 echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
12695 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
12696 if test "${ac_cv_header_stdbool_h+set}" = set; then
12697 echo $ECHO_N "(cached) $ECHO_C" >&6
12699 cat >conftest.$ac_ext <<_ACEOF
12700 #line $LINENO "configure"
12703 cat confdefs.h >>conftest.$ac_ext
12704 cat >>conftest.$ac_ext <<_ACEOF
12705 /* end confdefs.h. */
12707 #include <stdbool.h>
12709 "error: bool is not defined"
12712 "error: false is not defined"
12715 "error: false is not 0"
12718 "error: false is not defined"
12721 "error: true is not 1"
12723 #ifndef __bool_true_false_are_defined
12724 "error: __bool_true_false_are_defined is not defined"
12727 struct s { _Bool s: 1; _Bool t; } s;
12729 char a[true == 1 ? 1 : -1];
12730 char b[false == 0 ? 1 : -1];
12731 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
12732 char d[(bool) -0.5 == true ? 1 : -1];
12734 char f[(_Bool) -0.0 == false ? 1 : -1];
12736 char h[sizeof (_Bool)];
12737 char i[sizeof s.t];
12742 return !a + !b + !c + !d + !e + !f + !g + !h + !i;
12747 rm -f conftest.$ac_objext
12748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12749 (eval $ac_compile) 2>&5
12751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12752 (exit $ac_status); } &&
12753 { ac_try='test -s conftest.$ac_objext'
12754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12755 (eval $ac_try) 2>&5
12757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12758 (exit $ac_status); }; }; then
12759 ac_cv_header_stdbool_h=yes
12761 echo "$as_me: failed program was:" >&5
12762 sed 's/^/| /' conftest.$ac_ext >&5
12764 ac_cv_header_stdbool_h=no
12766 rm -f conftest.$ac_objext conftest.$ac_ext
12768 echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
12769 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
12770 if test $ac_cv_header_stdbool_h = yes; then
12772 cat >>confdefs.h <<\_ACEOF
12773 #define HAVE_STDBOOL_H 1
12783 for ac_func in getpagesize
12785 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12786 echo "$as_me:$LINENO: checking for $ac_func" >&5
12787 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12788 if eval "test \"\${$as_ac_var+set}\" = set"; then
12789 echo $ECHO_N "(cached) $ECHO_C" >&6
12791 cat >conftest.$ac_ext <<_ACEOF
12792 #line $LINENO "configure"
12795 cat confdefs.h >>conftest.$ac_ext
12796 cat >>conftest.$ac_ext <<_ACEOF
12797 /* end confdefs.h. */
12798 /* System header to define __stub macros and hopefully few prototypes,
12799 which can conflict with char $ac_func (); below.
12800 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12801 <limits.h> exists even on freestanding compilers. */
12803 # include <limits.h>
12805 # include <assert.h>
12807 /* Override any gcc2 internal prototype to avoid an error. */
12812 /* We use char because int might match the return type of a gcc2
12813 builtin and then its argument prototype would still apply. */
12815 /* The GNU C library defines this for functions which it implements
12816 to always fail with ENOSYS. Some functions are actually named
12817 something starting with __ and the normal name is an alias. */
12818 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12821 char (*f) () = $ac_func;
12830 return f != $ac_func;
12835 rm -f conftest.$ac_objext conftest$ac_exeext
12836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12837 (eval $ac_link) 2>&5
12839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12840 (exit $ac_status); } &&
12841 { ac_try='test -s conftest$ac_exeext'
12842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12843 (eval $ac_try) 2>&5
12845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12846 (exit $ac_status); }; }; then
12847 eval "$as_ac_var=yes"
12849 echo "$as_me: failed program was:" >&5
12850 sed 's/^/| /' conftest.$ac_ext >&5
12852 eval "$as_ac_var=no"
12854 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12856 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12857 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12858 if test `eval echo '${'$as_ac_var'}'` = yes; then
12859 cat >>confdefs.h <<_ACEOF
12860 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12868 for ac_header in OS.h unistd.h
12870 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12871 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12872 echo "$as_me:$LINENO: checking for $ac_header" >&5
12873 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12874 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12875 echo $ECHO_N "(cached) $ECHO_C" >&6
12877 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12878 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12880 # Is the header compilable?
12881 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12882 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12883 cat >conftest.$ac_ext <<_ACEOF
12884 #line $LINENO "configure"
12887 cat confdefs.h >>conftest.$ac_ext
12888 cat >>conftest.$ac_ext <<_ACEOF
12889 /* end confdefs.h. */
12890 $ac_includes_default
12891 #include <$ac_header>
12893 rm -f conftest.$ac_objext
12894 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12895 (eval $ac_compile) 2>&5
12897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12898 (exit $ac_status); } &&
12899 { ac_try='test -s conftest.$ac_objext'
12900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12901 (eval $ac_try) 2>&5
12903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12904 (exit $ac_status); }; }; then
12905 ac_header_compiler=yes
12907 echo "$as_me: failed program was:" >&5
12908 sed 's/^/| /' conftest.$ac_ext >&5
12910 ac_header_compiler=no
12912 rm -f conftest.$ac_objext conftest.$ac_ext
12913 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12914 echo "${ECHO_T}$ac_header_compiler" >&6
12916 # Is the header present?
12917 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12918 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12919 cat >conftest.$ac_ext <<_ACEOF
12920 #line $LINENO "configure"
12923 cat confdefs.h >>conftest.$ac_ext
12924 cat >>conftest.$ac_ext <<_ACEOF
12925 /* end confdefs.h. */
12926 #include <$ac_header>
12928 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12929 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12931 grep -v '^ *+' conftest.er1 >conftest.err
12933 cat conftest.err >&5
12934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12935 (exit $ac_status); } >/dev/null; then
12936 if test -s conftest.err; then
12937 ac_cpp_err=$ac_c_preproc_warn_flag
12944 if test -z "$ac_cpp_err"; then
12945 ac_header_preproc=yes
12947 echo "$as_me: failed program was:" >&5
12948 sed 's/^/| /' conftest.$ac_ext >&5
12950 ac_header_preproc=no
12952 rm -f conftest.err conftest.$ac_ext
12953 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12954 echo "${ECHO_T}$ac_header_preproc" >&6
12956 # So? What about this header?
12957 case $ac_header_compiler:$ac_header_preproc in
12959 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12960 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12961 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12962 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12965 ## ------------------------------------ ##
12966 ## Report this to bug-autoconf@gnu.org. ##
12967 ## ------------------------------------ ##
12970 sed "s/^/$as_me: WARNING: /" >&2
12973 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12974 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12975 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12976 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12977 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12978 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12981 ## ------------------------------------ ##
12982 ## Report this to bug-autoconf@gnu.org. ##
12983 ## ------------------------------------ ##
12986 sed "s/^/$as_me: WARNING: /" >&2
12989 echo "$as_me:$LINENO: checking for $ac_header" >&5
12990 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12991 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12992 echo $ECHO_N "(cached) $ECHO_C" >&6
12994 eval "$as_ac_Header=$ac_header_preproc"
12996 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12997 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13000 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13001 cat >>confdefs.h <<_ACEOF
13002 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13014 for ac_header in locale.h stdlib.h string.h
13016 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13017 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13018 echo "$as_me:$LINENO: checking for $ac_header" >&5
13019 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13020 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13021 echo $ECHO_N "(cached) $ECHO_C" >&6
13023 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13024 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13026 # Is the header compilable?
13027 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13028 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13029 cat >conftest.$ac_ext <<_ACEOF
13030 #line $LINENO "configure"
13033 cat confdefs.h >>conftest.$ac_ext
13034 cat >>conftest.$ac_ext <<_ACEOF
13035 /* end confdefs.h. */
13036 $ac_includes_default
13037 #include <$ac_header>
13039 rm -f conftest.$ac_objext
13040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13041 (eval $ac_compile) 2>&5
13043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13044 (exit $ac_status); } &&
13045 { ac_try='test -s conftest.$ac_objext'
13046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13047 (eval $ac_try) 2>&5
13049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13050 (exit $ac_status); }; }; then
13051 ac_header_compiler=yes
13053 echo "$as_me: failed program was:" >&5
13054 sed 's/^/| /' conftest.$ac_ext >&5
13056 ac_header_compiler=no
13058 rm -f conftest.$ac_objext conftest.$ac_ext
13059 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13060 echo "${ECHO_T}$ac_header_compiler" >&6
13062 # Is the header present?
13063 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13064 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13065 cat >conftest.$ac_ext <<_ACEOF
13066 #line $LINENO "configure"
13069 cat confdefs.h >>conftest.$ac_ext
13070 cat >>conftest.$ac_ext <<_ACEOF
13071 /* end confdefs.h. */
13072 #include <$ac_header>
13074 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13075 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13077 grep -v '^ *+' conftest.er1 >conftest.err
13079 cat conftest.err >&5
13080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13081 (exit $ac_status); } >/dev/null; then
13082 if test -s conftest.err; then
13083 ac_cpp_err=$ac_c_preproc_warn_flag
13090 if test -z "$ac_cpp_err"; then
13091 ac_header_preproc=yes
13093 echo "$as_me: failed program was:" >&5
13094 sed 's/^/| /' conftest.$ac_ext >&5
13096 ac_header_preproc=no
13098 rm -f conftest.err conftest.$ac_ext
13099 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13100 echo "${ECHO_T}$ac_header_preproc" >&6
13102 # So? What about this header?
13103 case $ac_header_compiler:$ac_header_preproc in
13105 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13106 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13107 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13108 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13111 ## ------------------------------------ ##
13112 ## Report this to bug-autoconf@gnu.org. ##
13113 ## ------------------------------------ ##
13116 sed "s/^/$as_me: WARNING: /" >&2
13119 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13120 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13121 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13122 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13123 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13124 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13127 ## ------------------------------------ ##
13128 ## Report this to bug-autoconf@gnu.org. ##
13129 ## ------------------------------------ ##
13132 sed "s/^/$as_me: WARNING: /" >&2
13135 echo "$as_me:$LINENO: checking for $ac_header" >&5
13136 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13137 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13138 echo $ECHO_N "(cached) $ECHO_C" >&6
13140 eval "$as_ac_Header=$ac_header_preproc"
13142 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13143 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13146 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13147 cat >>confdefs.h <<_ACEOF
13148 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13156 for ac_func in setlocale
13158 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13159 echo "$as_me:$LINENO: checking for $ac_func" >&5
13160 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13161 if eval "test \"\${$as_ac_var+set}\" = set"; then
13162 echo $ECHO_N "(cached) $ECHO_C" >&6
13164 cat >conftest.$ac_ext <<_ACEOF
13165 #line $LINENO "configure"
13168 cat confdefs.h >>conftest.$ac_ext
13169 cat >>conftest.$ac_ext <<_ACEOF
13170 /* end confdefs.h. */
13171 /* System header to define __stub macros and hopefully few prototypes,
13172 which can conflict with char $ac_func (); below.
13173 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13174 <limits.h> exists even on freestanding compilers. */
13176 # include <limits.h>
13178 # include <assert.h>
13180 /* Override any gcc2 internal prototype to avoid an error. */
13185 /* We use char because int might match the return type of a gcc2
13186 builtin and then its argument prototype would still apply. */
13188 /* The GNU C library defines this for functions which it implements
13189 to always fail with ENOSYS. Some functions are actually named
13190 something starting with __ and the normal name is an alias. */
13191 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13194 char (*f) () = $ac_func;
13203 return f != $ac_func;
13208 rm -f conftest.$ac_objext conftest$ac_exeext
13209 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13210 (eval $ac_link) 2>&5
13212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13213 (exit $ac_status); } &&
13214 { ac_try='test -s conftest$ac_exeext'
13215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13216 (eval $ac_try) 2>&5
13218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13219 (exit $ac_status); }; }; then
13220 eval "$as_ac_var=yes"
13222 echo "$as_me: failed program was:" >&5
13223 sed 's/^/| /' conftest.$ac_ext >&5
13225 eval "$as_ac_var=no"
13227 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13229 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13230 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13231 if test `eval echo '${'$as_ac_var'}'` = yes; then
13232 cat >>confdefs.h <<_ACEOF
13233 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13243 for ac_header in stdlib.h
13245 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13246 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13247 echo "$as_me:$LINENO: checking for $ac_header" >&5
13248 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13249 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13250 echo $ECHO_N "(cached) $ECHO_C" >&6
13252 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13253 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13255 # Is the header compilable?
13256 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13257 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13258 cat >conftest.$ac_ext <<_ACEOF
13259 #line $LINENO "configure"
13262 cat confdefs.h >>conftest.$ac_ext
13263 cat >>conftest.$ac_ext <<_ACEOF
13264 /* end confdefs.h. */
13265 $ac_includes_default
13266 #include <$ac_header>
13268 rm -f conftest.$ac_objext
13269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13270 (eval $ac_compile) 2>&5
13272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13273 (exit $ac_status); } &&
13274 { ac_try='test -s conftest.$ac_objext'
13275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13276 (eval $ac_try) 2>&5
13278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13279 (exit $ac_status); }; }; then
13280 ac_header_compiler=yes
13282 echo "$as_me: failed program was:" >&5
13283 sed 's/^/| /' conftest.$ac_ext >&5
13285 ac_header_compiler=no
13287 rm -f conftest.$ac_objext conftest.$ac_ext
13288 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13289 echo "${ECHO_T}$ac_header_compiler" >&6
13291 # Is the header present?
13292 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13293 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13294 cat >conftest.$ac_ext <<_ACEOF
13295 #line $LINENO "configure"
13298 cat confdefs.h >>conftest.$ac_ext
13299 cat >>conftest.$ac_ext <<_ACEOF
13300 /* end confdefs.h. */
13301 #include <$ac_header>
13303 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13304 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13306 grep -v '^ *+' conftest.er1 >conftest.err
13308 cat conftest.err >&5
13309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13310 (exit $ac_status); } >/dev/null; then
13311 if test -s conftest.err; then
13312 ac_cpp_err=$ac_c_preproc_warn_flag
13319 if test -z "$ac_cpp_err"; then
13320 ac_header_preproc=yes
13322 echo "$as_me: failed program was:" >&5
13323 sed 's/^/| /' conftest.$ac_ext >&5
13325 ac_header_preproc=no
13327 rm -f conftest.err conftest.$ac_ext
13328 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13329 echo "${ECHO_T}$ac_header_preproc" >&6
13331 # So? What about this header?
13332 case $ac_header_compiler:$ac_header_preproc in
13334 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13335 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13336 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13337 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13340 ## ------------------------------------ ##
13341 ## Report this to bug-autoconf@gnu.org. ##
13342 ## ------------------------------------ ##
13345 sed "s/^/$as_me: WARNING: /" >&2
13348 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13349 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13350 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13351 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13352 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13353 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13356 ## ------------------------------------ ##
13357 ## Report this to bug-autoconf@gnu.org. ##
13358 ## ------------------------------------ ##
13361 sed "s/^/$as_me: WARNING: /" >&2
13364 echo "$as_me:$LINENO: checking for $ac_header" >&5
13365 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13366 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13367 echo $ECHO_N "(cached) $ECHO_C" >&6
13369 eval "$as_ac_Header=$ac_header_preproc"
13371 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13372 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13375 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13376 cat >>confdefs.h <<_ACEOF
13377 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13389 for ac_header in locale.h
13391 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13392 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13393 echo "$as_me:$LINENO: checking for $ac_header" >&5
13394 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13395 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13396 echo $ECHO_N "(cached) $ECHO_C" >&6
13398 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13399 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13401 # Is the header compilable?
13402 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13403 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13404 cat >conftest.$ac_ext <<_ACEOF
13405 #line $LINENO "configure"
13408 cat confdefs.h >>conftest.$ac_ext
13409 cat >>conftest.$ac_ext <<_ACEOF
13410 /* end confdefs.h. */
13411 $ac_includes_default
13412 #include <$ac_header>
13414 rm -f conftest.$ac_objext
13415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13416 (eval $ac_compile) 2>&5
13418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13419 (exit $ac_status); } &&
13420 { ac_try='test -s conftest.$ac_objext'
13421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13422 (eval $ac_try) 2>&5
13424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13425 (exit $ac_status); }; }; then
13426 ac_header_compiler=yes
13428 echo "$as_me: failed program was:" >&5
13429 sed 's/^/| /' conftest.$ac_ext >&5
13431 ac_header_compiler=no
13433 rm -f conftest.$ac_objext conftest.$ac_ext
13434 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13435 echo "${ECHO_T}$ac_header_compiler" >&6
13437 # Is the header present?
13438 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13439 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13440 cat >conftest.$ac_ext <<_ACEOF
13441 #line $LINENO "configure"
13444 cat confdefs.h >>conftest.$ac_ext
13445 cat >>conftest.$ac_ext <<_ACEOF
13446 /* end confdefs.h. */
13447 #include <$ac_header>
13449 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13450 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13452 grep -v '^ *+' conftest.er1 >conftest.err
13454 cat conftest.err >&5
13455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13456 (exit $ac_status); } >/dev/null; then
13457 if test -s conftest.err; then
13458 ac_cpp_err=$ac_c_preproc_warn_flag
13465 if test -z "$ac_cpp_err"; then
13466 ac_header_preproc=yes
13468 echo "$as_me: failed program was:" >&5
13469 sed 's/^/| /' conftest.$ac_ext >&5
13471 ac_header_preproc=no
13473 rm -f conftest.err conftest.$ac_ext
13474 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13475 echo "${ECHO_T}$ac_header_preproc" >&6
13477 # So? What about this header?
13478 case $ac_header_compiler:$ac_header_preproc in
13480 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13481 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13482 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13483 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13486 ## ------------------------------------ ##
13487 ## Report this to bug-autoconf@gnu.org. ##
13488 ## ------------------------------------ ##
13491 sed "s/^/$as_me: WARNING: /" >&2
13494 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13495 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13496 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13497 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13498 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13499 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13502 ## ------------------------------------ ##
13503 ## Report this to bug-autoconf@gnu.org. ##
13504 ## ------------------------------------ ##
13507 sed "s/^/$as_me: WARNING: /" >&2
13510 echo "$as_me:$LINENO: checking for $ac_header" >&5
13511 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13512 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13513 echo $ECHO_N "(cached) $ECHO_C" >&6
13515 eval "$as_ac_Header=$ac_header_preproc"
13517 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13518 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13521 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13522 cat >>confdefs.h <<_ACEOF
13523 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13530 echo "$as_me:$LINENO: checking whether getenv is declared" >&5
13531 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
13532 if test "${ac_cv_have_decl_getenv+set}" = set; then
13533 echo $ECHO_N "(cached) $ECHO_C" >&6
13535 cat >conftest.$ac_ext <<_ACEOF
13536 #line $LINENO "configure"
13539 cat confdefs.h >>conftest.$ac_ext
13540 cat >>conftest.$ac_ext <<_ACEOF
13541 /* end confdefs.h. */
13542 $ac_includes_default
13547 char *p = (char *) getenv;
13554 rm -f conftest.$ac_objext
13555 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13556 (eval $ac_compile) 2>&5
13558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13559 (exit $ac_status); } &&
13560 { ac_try='test -s conftest.$ac_objext'
13561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13562 (eval $ac_try) 2>&5
13564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13565 (exit $ac_status); }; }; then
13566 ac_cv_have_decl_getenv=yes
13568 echo "$as_me: failed program was:" >&5
13569 sed 's/^/| /' conftest.$ac_ext >&5
13571 ac_cv_have_decl_getenv=no
13573 rm -f conftest.$ac_objext conftest.$ac_ext
13575 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
13576 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
13577 if test $ac_cv_have_decl_getenv = yes; then
13579 cat >>confdefs.h <<_ACEOF
13580 #define HAVE_DECL_GETENV 1
13585 cat >>confdefs.h <<_ACEOF
13586 #define HAVE_DECL_GETENV 0
13594 for ac_func in localeconv
13596 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13597 echo "$as_me:$LINENO: checking for $ac_func" >&5
13598 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13599 if eval "test \"\${$as_ac_var+set}\" = set"; then
13600 echo $ECHO_N "(cached) $ECHO_C" >&6
13602 cat >conftest.$ac_ext <<_ACEOF
13603 #line $LINENO "configure"
13606 cat confdefs.h >>conftest.$ac_ext
13607 cat >>conftest.$ac_ext <<_ACEOF
13608 /* end confdefs.h. */
13609 /* System header to define __stub macros and hopefully few prototypes,
13610 which can conflict with char $ac_func (); below.
13611 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13612 <limits.h> exists even on freestanding compilers. */
13614 # include <limits.h>
13616 # include <assert.h>
13618 /* Override any gcc2 internal prototype to avoid an error. */
13623 /* We use char because int might match the return type of a gcc2
13624 builtin and then its argument prototype would still apply. */
13626 /* The GNU C library defines this for functions which it implements
13627 to always fail with ENOSYS. Some functions are actually named
13628 something starting with __ and the normal name is an alias. */
13629 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13632 char (*f) () = $ac_func;
13641 return f != $ac_func;
13646 rm -f conftest.$ac_objext conftest$ac_exeext
13647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13648 (eval $ac_link) 2>&5
13650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13651 (exit $ac_status); } &&
13652 { ac_try='test -s conftest$ac_exeext'
13653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13654 (eval $ac_try) 2>&5
13656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13657 (exit $ac_status); }; }; then
13658 eval "$as_ac_var=yes"
13660 echo "$as_me: failed program was:" >&5
13661 sed 's/^/| /' conftest.$ac_ext >&5
13663 eval "$as_ac_var=no"
13665 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13667 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13668 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13669 if test `eval echo '${'$as_ac_var'}'` = yes; then
13670 cat >>confdefs.h <<_ACEOF
13671 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13687 for ac_header in limits.h stdlib.h string.h wchar.h wctype.h
13689 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13690 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13691 echo "$as_me:$LINENO: checking for $ac_header" >&5
13692 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13693 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13694 echo $ECHO_N "(cached) $ECHO_C" >&6
13696 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13697 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13699 # Is the header compilable?
13700 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13701 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13702 cat >conftest.$ac_ext <<_ACEOF
13703 #line $LINENO "configure"
13706 cat confdefs.h >>conftest.$ac_ext
13707 cat >>conftest.$ac_ext <<_ACEOF
13708 /* end confdefs.h. */
13709 $ac_includes_default
13710 #include <$ac_header>
13712 rm -f conftest.$ac_objext
13713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13714 (eval $ac_compile) 2>&5
13716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13717 (exit $ac_status); } &&
13718 { ac_try='test -s conftest.$ac_objext'
13719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13720 (eval $ac_try) 2>&5
13722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13723 (exit $ac_status); }; }; then
13724 ac_header_compiler=yes
13726 echo "$as_me: failed program was:" >&5
13727 sed 's/^/| /' conftest.$ac_ext >&5
13729 ac_header_compiler=no
13731 rm -f conftest.$ac_objext conftest.$ac_ext
13732 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13733 echo "${ECHO_T}$ac_header_compiler" >&6
13735 # Is the header present?
13736 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13737 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13738 cat >conftest.$ac_ext <<_ACEOF
13739 #line $LINENO "configure"
13742 cat confdefs.h >>conftest.$ac_ext
13743 cat >>conftest.$ac_ext <<_ACEOF
13744 /* end confdefs.h. */
13745 #include <$ac_header>
13747 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13748 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13750 grep -v '^ *+' conftest.er1 >conftest.err
13752 cat conftest.err >&5
13753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13754 (exit $ac_status); } >/dev/null; then
13755 if test -s conftest.err; then
13756 ac_cpp_err=$ac_c_preproc_warn_flag
13763 if test -z "$ac_cpp_err"; then
13764 ac_header_preproc=yes
13766 echo "$as_me: failed program was:" >&5
13767 sed 's/^/| /' conftest.$ac_ext >&5
13769 ac_header_preproc=no
13771 rm -f conftest.err conftest.$ac_ext
13772 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13773 echo "${ECHO_T}$ac_header_preproc" >&6
13775 # So? What about this header?
13776 case $ac_header_compiler:$ac_header_preproc in
13778 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13779 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13780 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13781 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13784 ## ------------------------------------ ##
13785 ## Report this to bug-autoconf@gnu.org. ##
13786 ## ------------------------------------ ##
13789 sed "s/^/$as_me: WARNING: /" >&2
13792 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13793 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13794 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13795 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13796 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13797 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13800 ## ------------------------------------ ##
13801 ## Report this to bug-autoconf@gnu.org. ##
13802 ## ------------------------------------ ##
13805 sed "s/^/$as_me: WARNING: /" >&2
13808 echo "$as_me:$LINENO: checking for $ac_header" >&5
13809 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13810 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13811 echo $ECHO_N "(cached) $ECHO_C" >&6
13813 eval "$as_ac_Header=$ac_header_preproc"
13815 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13816 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13819 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13820 cat >>confdefs.h <<_ACEOF
13821 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13833 for ac_func in isascii iswcntrl iswprint mbsinit wcwidth
13835 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13836 echo "$as_me:$LINENO: checking for $ac_func" >&5
13837 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13838 if eval "test \"\${$as_ac_var+set}\" = set"; then
13839 echo $ECHO_N "(cached) $ECHO_C" >&6
13841 cat >conftest.$ac_ext <<_ACEOF
13842 #line $LINENO "configure"
13845 cat confdefs.h >>conftest.$ac_ext
13846 cat >>conftest.$ac_ext <<_ACEOF
13847 /* end confdefs.h. */
13848 /* System header to define __stub macros and hopefully few prototypes,
13849 which can conflict with char $ac_func (); below.
13850 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13851 <limits.h> exists even on freestanding compilers. */
13853 # include <limits.h>
13855 # include <assert.h>
13857 /* Override any gcc2 internal prototype to avoid an error. */
13862 /* We use char because int might match the return type of a gcc2
13863 builtin and then its argument prototype would still apply. */
13865 /* The GNU C library defines this for functions which it implements
13866 to always fail with ENOSYS. Some functions are actually named
13867 something starting with __ and the normal name is an alias. */
13868 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13871 char (*f) () = $ac_func;
13880 return f != $ac_func;
13885 rm -f conftest.$ac_objext conftest$ac_exeext
13886 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13887 (eval $ac_link) 2>&5
13889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13890 (exit $ac_status); } &&
13891 { ac_try='test -s conftest$ac_exeext'
13892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13893 (eval $ac_try) 2>&5
13895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13896 (exit $ac_status); }; }; then
13897 eval "$as_ac_var=yes"
13899 echo "$as_me: failed program was:" >&5
13900 sed 's/^/| /' conftest.$ac_ext >&5
13902 eval "$as_ac_var=no"
13904 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13906 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13907 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13908 if test `eval echo '${'$as_ac_var'}'` = yes; then
13909 cat >>confdefs.h <<_ACEOF
13910 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13917 echo "$as_me:$LINENO: checking whether mbrtowc and mbstate_t are properly declared" >&5
13918 echo $ECHO_N "checking whether mbrtowc and mbstate_t are properly declared... $ECHO_C" >&6
13919 if test "${jm_cv_func_mbrtowc+set}" = set; then
13920 echo $ECHO_N "(cached) $ECHO_C" >&6
13922 cat >conftest.$ac_ext <<_ACEOF
13923 #line $LINENO "configure"
13926 cat confdefs.h >>conftest.$ac_ext
13927 cat >>conftest.$ac_ext <<_ACEOF
13928 /* end confdefs.h. */
13933 mbstate_t state; return ! (sizeof state && mbrtowc);
13938 rm -f conftest.$ac_objext conftest$ac_exeext
13939 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13940 (eval $ac_link) 2>&5
13942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13943 (exit $ac_status); } &&
13944 { ac_try='test -s conftest$ac_exeext'
13945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13946 (eval $ac_try) 2>&5
13948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13949 (exit $ac_status); }; }; then
13950 jm_cv_func_mbrtowc=yes
13952 echo "$as_me: failed program was:" >&5
13953 sed 's/^/| /' conftest.$ac_ext >&5
13955 jm_cv_func_mbrtowc=no
13957 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13959 echo "$as_me:$LINENO: result: $jm_cv_func_mbrtowc" >&5
13960 echo "${ECHO_T}$jm_cv_func_mbrtowc" >&6
13961 if test $jm_cv_func_mbrtowc = yes; then
13963 cat >>confdefs.h <<\_ACEOF
13964 #define HAVE_MBRTOWC 1
13970 echo "$as_me:$LINENO: checking whether wcwidth is declared" >&5
13971 echo $ECHO_N "checking whether wcwidth is declared... $ECHO_C" >&6
13972 if test "${ac_cv_have_decl_wcwidth+set}" = set; then
13973 echo $ECHO_N "(cached) $ECHO_C" >&6
13975 cat >conftest.$ac_ext <<_ACEOF
13976 #line $LINENO "configure"
13979 cat confdefs.h >>conftest.$ac_ext
13980 cat >>conftest.$ac_ext <<_ACEOF
13981 /* end confdefs.h. */
13983 /* AIX 3.2.5 declares wcwidth in <string.h>. */
13985 # include <string.h>
13988 # include <wchar.h>
13996 char *p = (char *) wcwidth;
14003 rm -f conftest.$ac_objext
14004 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14005 (eval $ac_compile) 2>&5
14007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14008 (exit $ac_status); } &&
14009 { ac_try='test -s conftest.$ac_objext'
14010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14011 (eval $ac_try) 2>&5
14013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14014 (exit $ac_status); }; }; then
14015 ac_cv_have_decl_wcwidth=yes
14017 echo "$as_me: failed program was:" >&5
14018 sed 's/^/| /' conftest.$ac_ext >&5
14020 ac_cv_have_decl_wcwidth=no
14022 rm -f conftest.$ac_objext conftest.$ac_ext
14024 echo "$as_me:$LINENO: result: $ac_cv_have_decl_wcwidth" >&5
14025 echo "${ECHO_T}$ac_cv_have_decl_wcwidth" >&6
14026 if test $ac_cv_have_decl_wcwidth = yes; then
14032 cat >>confdefs.h <<_ACEOF
14033 #define HAVE_DECL_WCWIDTH $ac_val
14037 echo "$as_me:$LINENO: checking for mbstate_t" >&5
14038 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
14039 if test "${ac_cv_type_mbstate_t+set}" = set; then
14040 echo $ECHO_N "(cached) $ECHO_C" >&6
14042 cat >conftest.$ac_ext <<_ACEOF
14043 #line $LINENO "configure"
14046 cat confdefs.h >>conftest.$ac_ext
14047 cat >>conftest.$ac_ext <<_ACEOF
14048 /* end confdefs.h. */
14049 $ac_includes_default
14050 # include <wchar.h>
14054 mbstate_t x; return sizeof x;
14059 rm -f conftest.$ac_objext
14060 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14061 (eval $ac_compile) 2>&5
14063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14064 (exit $ac_status); } &&
14065 { ac_try='test -s conftest.$ac_objext'
14066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14067 (eval $ac_try) 2>&5
14069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14070 (exit $ac_status); }; }; then
14071 ac_cv_type_mbstate_t=yes
14073 echo "$as_me: failed program was:" >&5
14074 sed 's/^/| /' conftest.$ac_ext >&5
14076 ac_cv_type_mbstate_t=no
14078 rm -f conftest.$ac_objext conftest.$ac_ext
14080 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
14081 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
14082 if test $ac_cv_type_mbstate_t = yes; then
14084 cat >>confdefs.h <<\_ACEOF
14085 #define HAVE_MBSTATE_T 1
14090 cat >>confdefs.h <<\_ACEOF
14091 #define mbstate_t int
14100 for ac_header in limits.h stdlib.h bp-sym.h
14102 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14103 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14104 echo "$as_me:$LINENO: checking for $ac_header" >&5
14105 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14106 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14107 echo $ECHO_N "(cached) $ECHO_C" >&6
14109 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14110 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14112 # Is the header compilable?
14113 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14114 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14115 cat >conftest.$ac_ext <<_ACEOF
14116 #line $LINENO "configure"
14119 cat confdefs.h >>conftest.$ac_ext
14120 cat >>conftest.$ac_ext <<_ACEOF
14121 /* end confdefs.h. */
14122 $ac_includes_default
14123 #include <$ac_header>
14125 rm -f conftest.$ac_objext
14126 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14127 (eval $ac_compile) 2>&5
14129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14130 (exit $ac_status); } &&
14131 { ac_try='test -s conftest.$ac_objext'
14132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14133 (eval $ac_try) 2>&5
14135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14136 (exit $ac_status); }; }; then
14137 ac_header_compiler=yes
14139 echo "$as_me: failed program was:" >&5
14140 sed 's/^/| /' conftest.$ac_ext >&5
14142 ac_header_compiler=no
14144 rm -f conftest.$ac_objext conftest.$ac_ext
14145 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14146 echo "${ECHO_T}$ac_header_compiler" >&6
14148 # Is the header present?
14149 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14150 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14151 cat >conftest.$ac_ext <<_ACEOF
14152 #line $LINENO "configure"
14155 cat confdefs.h >>conftest.$ac_ext
14156 cat >>conftest.$ac_ext <<_ACEOF
14157 /* end confdefs.h. */
14158 #include <$ac_header>
14160 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14161 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14163 grep -v '^ *+' conftest.er1 >conftest.err
14165 cat conftest.err >&5
14166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14167 (exit $ac_status); } >/dev/null; then
14168 if test -s conftest.err; then
14169 ac_cpp_err=$ac_c_preproc_warn_flag
14176 if test -z "$ac_cpp_err"; then
14177 ac_header_preproc=yes
14179 echo "$as_me: failed program was:" >&5
14180 sed 's/^/| /' conftest.$ac_ext >&5
14182 ac_header_preproc=no
14184 rm -f conftest.err conftest.$ac_ext
14185 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14186 echo "${ECHO_T}$ac_header_preproc" >&6
14188 # So? What about this header?
14189 case $ac_header_compiler:$ac_header_preproc in
14191 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14192 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14193 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14194 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14197 ## ------------------------------------ ##
14198 ## Report this to bug-autoconf@gnu.org. ##
14199 ## ------------------------------------ ##
14202 sed "s/^/$as_me: WARNING: /" >&2
14205 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14206 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14207 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14208 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14209 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14210 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14213 ## ------------------------------------ ##
14214 ## Report this to bug-autoconf@gnu.org. ##
14215 ## ------------------------------------ ##
14218 sed "s/^/$as_me: WARNING: /" >&2
14221 echo "$as_me:$LINENO: checking for $ac_header" >&5
14222 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14223 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14224 echo $ECHO_N "(cached) $ECHO_C" >&6
14226 eval "$as_ac_Header=$ac_header_preproc"
14228 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14229 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14232 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14233 cat >>confdefs.h <<_ACEOF
14234 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14245 for ac_header in sys/pstat.h unistd.h
14247 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14248 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14249 echo "$as_me:$LINENO: checking for $ac_header" >&5
14250 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14251 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14252 echo $ECHO_N "(cached) $ECHO_C" >&6
14254 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14255 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14257 # Is the header compilable?
14258 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14259 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14260 cat >conftest.$ac_ext <<_ACEOF
14261 #line $LINENO "configure"
14264 cat confdefs.h >>conftest.$ac_ext
14265 cat >>conftest.$ac_ext <<_ACEOF
14266 /* end confdefs.h. */
14267 $ac_includes_default
14268 #include <$ac_header>
14270 rm -f conftest.$ac_objext
14271 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14272 (eval $ac_compile) 2>&5
14274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14275 (exit $ac_status); } &&
14276 { ac_try='test -s conftest.$ac_objext'
14277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14278 (eval $ac_try) 2>&5
14280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14281 (exit $ac_status); }; }; then
14282 ac_header_compiler=yes
14284 echo "$as_me: failed program was:" >&5
14285 sed 's/^/| /' conftest.$ac_ext >&5
14287 ac_header_compiler=no
14289 rm -f conftest.$ac_objext conftest.$ac_ext
14290 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14291 echo "${ECHO_T}$ac_header_compiler" >&6
14293 # Is the header present?
14294 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14295 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14296 cat >conftest.$ac_ext <<_ACEOF
14297 #line $LINENO "configure"
14300 cat confdefs.h >>conftest.$ac_ext
14301 cat >>conftest.$ac_ext <<_ACEOF
14302 /* end confdefs.h. */
14303 #include <$ac_header>
14305 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14306 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14308 grep -v '^ *+' conftest.er1 >conftest.err
14310 cat conftest.err >&5
14311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14312 (exit $ac_status); } >/dev/null; then
14313 if test -s conftest.err; then
14314 ac_cpp_err=$ac_c_preproc_warn_flag
14321 if test -z "$ac_cpp_err"; then
14322 ac_header_preproc=yes
14324 echo "$as_me: failed program was:" >&5
14325 sed 's/^/| /' conftest.$ac_ext >&5
14327 ac_header_preproc=no
14329 rm -f conftest.err conftest.$ac_ext
14330 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14331 echo "${ECHO_T}$ac_header_preproc" >&6
14333 # So? What about this header?
14334 case $ac_header_compiler:$ac_header_preproc in
14336 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14337 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14338 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14339 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14342 ## ------------------------------------ ##
14343 ## Report this to bug-autoconf@gnu.org. ##
14344 ## ------------------------------------ ##
14347 sed "s/^/$as_me: WARNING: /" >&2
14350 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14351 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14352 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14353 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14354 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14355 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14358 ## ------------------------------------ ##
14359 ## Report this to bug-autoconf@gnu.org. ##
14360 ## ------------------------------------ ##
14363 sed "s/^/$as_me: WARNING: /" >&2
14366 echo "$as_me:$LINENO: checking for $ac_header" >&5
14367 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14368 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14369 echo $ECHO_N "(cached) $ECHO_C" >&6
14371 eval "$as_ac_Header=$ac_header_preproc"
14373 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14374 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14377 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14378 cat >>confdefs.h <<_ACEOF
14379 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14388 for ac_func in pstat_getstatic pstat_getdynamic
14390 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14391 echo "$as_me:$LINENO: checking for $ac_func" >&5
14392 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14393 if eval "test \"\${$as_ac_var+set}\" = set"; then
14394 echo $ECHO_N "(cached) $ECHO_C" >&6
14396 cat >conftest.$ac_ext <<_ACEOF
14397 #line $LINENO "configure"
14400 cat confdefs.h >>conftest.$ac_ext
14401 cat >>conftest.$ac_ext <<_ACEOF
14402 /* end confdefs.h. */
14403 /* System header to define __stub macros and hopefully few prototypes,
14404 which can conflict with char $ac_func (); below.
14405 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14406 <limits.h> exists even on freestanding compilers. */
14408 # include <limits.h>
14410 # include <assert.h>
14412 /* Override any gcc2 internal prototype to avoid an error. */
14417 /* We use char because int might match the return type of a gcc2
14418 builtin and then its argument prototype would still apply. */
14420 /* The GNU C library defines this for functions which it implements
14421 to always fail with ENOSYS. Some functions are actually named
14422 something starting with __ and the normal name is an alias. */
14423 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14426 char (*f) () = $ac_func;
14435 return f != $ac_func;
14440 rm -f conftest.$ac_objext conftest$ac_exeext
14441 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14442 (eval $ac_link) 2>&5
14444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14445 (exit $ac_status); } &&
14446 { ac_try='test -s conftest$ac_exeext'
14447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14448 (eval $ac_try) 2>&5
14450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14451 (exit $ac_status); }; }; then
14452 eval "$as_ac_var=yes"
14454 echo "$as_me: failed program was:" >&5
14455 sed 's/^/| /' conftest.$ac_ext >&5
14457 eval "$as_ac_var=no"
14459 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14461 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14462 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14463 if test `eval echo '${'$as_ac_var'}'` = yes; then
14464 cat >>confdefs.h <<_ACEOF
14465 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14474 for ac_header in unistd.h
14476 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14477 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14478 echo "$as_me:$LINENO: checking for $ac_header" >&5
14479 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14480 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14481 echo $ECHO_N "(cached) $ECHO_C" >&6
14483 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14484 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14486 # Is the header compilable?
14487 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14488 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14489 cat >conftest.$ac_ext <<_ACEOF
14490 #line $LINENO "configure"
14493 cat confdefs.h >>conftest.$ac_ext
14494 cat >>conftest.$ac_ext <<_ACEOF
14495 /* end confdefs.h. */
14496 $ac_includes_default
14497 #include <$ac_header>
14499 rm -f conftest.$ac_objext
14500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14501 (eval $ac_compile) 2>&5
14503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14504 (exit $ac_status); } &&
14505 { ac_try='test -s conftest.$ac_objext'
14506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14507 (eval $ac_try) 2>&5
14509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14510 (exit $ac_status); }; }; then
14511 ac_header_compiler=yes
14513 echo "$as_me: failed program was:" >&5
14514 sed 's/^/| /' conftest.$ac_ext >&5
14516 ac_header_compiler=no
14518 rm -f conftest.$ac_objext conftest.$ac_ext
14519 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14520 echo "${ECHO_T}$ac_header_compiler" >&6
14522 # Is the header present?
14523 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14524 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14525 cat >conftest.$ac_ext <<_ACEOF
14526 #line $LINENO "configure"
14529 cat confdefs.h >>conftest.$ac_ext
14530 cat >>conftest.$ac_ext <<_ACEOF
14531 /* end confdefs.h. */
14532 #include <$ac_header>
14534 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14535 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14537 grep -v '^ *+' conftest.er1 >conftest.err
14539 cat conftest.err >&5
14540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14541 (exit $ac_status); } >/dev/null; then
14542 if test -s conftest.err; then
14543 ac_cpp_err=$ac_c_preproc_warn_flag
14550 if test -z "$ac_cpp_err"; then
14551 ac_header_preproc=yes
14553 echo "$as_me: failed program was:" >&5
14554 sed 's/^/| /' conftest.$ac_ext >&5
14556 ac_header_preproc=no
14558 rm -f conftest.err conftest.$ac_ext
14559 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14560 echo "${ECHO_T}$ac_header_preproc" >&6
14562 # So? What about this header?
14563 case $ac_header_compiler:$ac_header_preproc in
14565 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14566 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14567 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14568 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14571 ## ------------------------------------ ##
14572 ## Report this to bug-autoconf@gnu.org. ##
14573 ## ------------------------------------ ##
14576 sed "s/^/$as_me: WARNING: /" >&2
14579 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14580 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14581 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14582 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14583 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14584 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14587 ## ------------------------------------ ##
14588 ## Report this to bug-autoconf@gnu.org. ##
14589 ## ------------------------------------ ##
14592 sed "s/^/$as_me: WARNING: /" >&2
14595 echo "$as_me:$LINENO: checking for $ac_header" >&5
14596 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14597 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14598 echo $ECHO_N "(cached) $ECHO_C" >&6
14600 eval "$as_ac_Header=$ac_header_preproc"
14602 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14603 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14606 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14607 cat >>confdefs.h <<_ACEOF
14608 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14615 echo "$as_me:$LINENO: checking whether getenv is declared" >&5
14616 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
14617 if test "${ac_cv_have_decl_getenv+set}" = set; then
14618 echo $ECHO_N "(cached) $ECHO_C" >&6
14620 cat >conftest.$ac_ext <<_ACEOF
14621 #line $LINENO "configure"
14624 cat confdefs.h >>conftest.$ac_ext
14625 cat >>conftest.$ac_ext <<_ACEOF
14626 /* end confdefs.h. */
14627 $ac_includes_default
14632 char *p = (char *) getenv;
14639 rm -f conftest.$ac_objext
14640 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14641 (eval $ac_compile) 2>&5
14643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14644 (exit $ac_status); } &&
14645 { ac_try='test -s conftest.$ac_objext'
14646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14647 (eval $ac_try) 2>&5
14649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14650 (exit $ac_status); }; }; then
14651 ac_cv_have_decl_getenv=yes
14653 echo "$as_me: failed program was:" >&5
14654 sed 's/^/| /' conftest.$ac_ext >&5
14656 ac_cv_have_decl_getenv=no
14658 rm -f conftest.$ac_objext conftest.$ac_ext
14660 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
14661 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
14662 if test $ac_cv_have_decl_getenv = yes; then
14664 cat >>confdefs.h <<_ACEOF
14665 #define HAVE_DECL_GETENV 1
14670 cat >>confdefs.h <<_ACEOF
14671 #define HAVE_DECL_GETENV 0
14679 echo "$as_me:$LINENO: checking for working memcmp" >&5
14680 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
14681 if test "${ac_cv_func_memcmp_working+set}" = set; then
14682 echo $ECHO_N "(cached) $ECHO_C" >&6
14684 if test "$cross_compiling" = yes; then
14685 ac_cv_func_memcmp_working=no
14687 cat >conftest.$ac_ext <<_ACEOF
14688 #line $LINENO "configure"
14691 cat confdefs.h >>conftest.$ac_ext
14692 cat >>conftest.$ac_ext <<_ACEOF
14693 /* end confdefs.h. */
14699 /* Some versions of memcmp are not 8-bit clean. */
14700 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
14701 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
14704 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
14705 or more and with at least one buffer not starting on a 4-byte boundary.
14706 William Lewis provided this test program. */
14711 for (i = 0; i < 4; i++)
14715 strcpy (a, "--------01111111");
14716 strcpy (b, "--------10000000");
14717 if (memcmp (a, b, 16) >= 0)
14727 rm -f conftest$ac_exeext
14728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14729 (eval $ac_link) 2>&5
14731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14732 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14734 (eval $ac_try) 2>&5
14736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14737 (exit $ac_status); }; }; then
14738 ac_cv_func_memcmp_working=yes
14740 echo "$as_me: program exited with status $ac_status" >&5
14741 echo "$as_me: failed program was:" >&5
14742 sed 's/^/| /' conftest.$ac_ext >&5
14744 ( exit $ac_status )
14745 ac_cv_func_memcmp_working=no
14747 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14750 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
14751 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
14752 test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
14754 if test $ac_cv_func_memcmp_working = no; then
14756 cat >>confdefs.h <<\_ACEOF
14757 #define memcmp rpl_memcmp
14763 echo "$as_me:$LINENO: checking whether backslash-a works in strings" >&5
14764 echo $ECHO_N "checking whether backslash-a works in strings... $ECHO_C" >&6
14765 if test "${ac_cv_c_backslash_a+set}" = set; then
14766 echo $ECHO_N "(cached) $ECHO_C" >&6
14768 cat >conftest.$ac_ext <<_ACEOF
14769 #line $LINENO "configure"
14772 cat confdefs.h >>conftest.$ac_ext
14773 cat >>conftest.$ac_ext <<_ACEOF
14774 /* end confdefs.h. */
14783 char buf['\a' == 'a' ? -1 : 1];
14785 return buf[0] != "\a"[0];
14791 rm -f conftest.$ac_objext
14792 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14793 (eval $ac_compile) 2>&5
14795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14796 (exit $ac_status); } &&
14797 { ac_try='test -s conftest.$ac_objext'
14798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14799 (eval $ac_try) 2>&5
14801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14802 (exit $ac_status); }; }; then
14803 ac_cv_c_backslash_a=yes
14805 echo "$as_me: failed program was:" >&5
14806 sed 's/^/| /' conftest.$ac_ext >&5
14808 ac_cv_c_backslash_a=no
14810 rm -f conftest.$ac_objext conftest.$ac_ext
14812 echo "$as_me:$LINENO: result: $ac_cv_c_backslash_a" >&5
14813 echo "${ECHO_T}$ac_cv_c_backslash_a" >&6
14814 if test $ac_cv_c_backslash_a = yes; then
14816 cat >>confdefs.h <<\_ACEOF
14817 #define HAVE_C_BACKSLASH_A 1
14825 for ac_func in isascii iswprint
14827 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14828 echo "$as_me:$LINENO: checking for $ac_func" >&5
14829 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14830 if eval "test \"\${$as_ac_var+set}\" = set"; then
14831 echo $ECHO_N "(cached) $ECHO_C" >&6
14833 cat >conftest.$ac_ext <<_ACEOF
14834 #line $LINENO "configure"
14837 cat confdefs.h >>conftest.$ac_ext
14838 cat >>conftest.$ac_ext <<_ACEOF
14839 /* end confdefs.h. */
14840 /* System header to define __stub macros and hopefully few prototypes,
14841 which can conflict with char $ac_func (); below.
14842 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14843 <limits.h> exists even on freestanding compilers. */
14845 # include <limits.h>
14847 # include <assert.h>
14849 /* Override any gcc2 internal prototype to avoid an error. */
14854 /* We use char because int might match the return type of a gcc2
14855 builtin and then its argument prototype would still apply. */
14857 /* The GNU C library defines this for functions which it implements
14858 to always fail with ENOSYS. Some functions are actually named
14859 something starting with __ and the normal name is an alias. */
14860 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14863 char (*f) () = $ac_func;
14872 return f != $ac_func;
14877 rm -f conftest.$ac_objext conftest$ac_exeext
14878 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14879 (eval $ac_link) 2>&5
14881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14882 (exit $ac_status); } &&
14883 { ac_try='test -s conftest$ac_exeext'
14884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14885 (eval $ac_try) 2>&5
14887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14888 (exit $ac_status); }; }; then
14889 eval "$as_ac_var=yes"
14891 echo "$as_me: failed program was:" >&5
14892 sed 's/^/| /' conftest.$ac_ext >&5
14894 eval "$as_ac_var=no"
14896 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14898 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14899 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14900 if test `eval echo '${'$as_ac_var'}'` = yes; then
14901 cat >>confdefs.h <<_ACEOF
14902 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14916 for ac_header in limits.h stddef.h stdlib.h string.h wchar.h wctype.h
14918 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14919 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14920 echo "$as_me:$LINENO: checking for $ac_header" >&5
14921 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14922 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14923 echo $ECHO_N "(cached) $ECHO_C" >&6
14925 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14926 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14928 # Is the header compilable?
14929 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14930 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14931 cat >conftest.$ac_ext <<_ACEOF
14932 #line $LINENO "configure"
14935 cat confdefs.h >>conftest.$ac_ext
14936 cat >>conftest.$ac_ext <<_ACEOF
14937 /* end confdefs.h. */
14938 $ac_includes_default
14939 #include <$ac_header>
14941 rm -f conftest.$ac_objext
14942 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14943 (eval $ac_compile) 2>&5
14945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14946 (exit $ac_status); } &&
14947 { ac_try='test -s conftest.$ac_objext'
14948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14949 (eval $ac_try) 2>&5
14951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14952 (exit $ac_status); }; }; then
14953 ac_header_compiler=yes
14955 echo "$as_me: failed program was:" >&5
14956 sed 's/^/| /' conftest.$ac_ext >&5
14958 ac_header_compiler=no
14960 rm -f conftest.$ac_objext conftest.$ac_ext
14961 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14962 echo "${ECHO_T}$ac_header_compiler" >&6
14964 # Is the header present?
14965 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14966 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14967 cat >conftest.$ac_ext <<_ACEOF
14968 #line $LINENO "configure"
14971 cat confdefs.h >>conftest.$ac_ext
14972 cat >>conftest.$ac_ext <<_ACEOF
14973 /* end confdefs.h. */
14974 #include <$ac_header>
14976 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14977 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14979 grep -v '^ *+' conftest.er1 >conftest.err
14981 cat conftest.err >&5
14982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14983 (exit $ac_status); } >/dev/null; then
14984 if test -s conftest.err; then
14985 ac_cpp_err=$ac_c_preproc_warn_flag
14992 if test -z "$ac_cpp_err"; then
14993 ac_header_preproc=yes
14995 echo "$as_me: failed program was:" >&5
14996 sed 's/^/| /' conftest.$ac_ext >&5
14998 ac_header_preproc=no
15000 rm -f conftest.err conftest.$ac_ext
15001 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15002 echo "${ECHO_T}$ac_header_preproc" >&6
15004 # So? What about this header?
15005 case $ac_header_compiler:$ac_header_preproc in
15007 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15008 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15009 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15010 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15013 ## ------------------------------------ ##
15014 ## Report this to bug-autoconf@gnu.org. ##
15015 ## ------------------------------------ ##
15018 sed "s/^/$as_me: WARNING: /" >&2
15021 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15022 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15023 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15024 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15025 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15026 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15029 ## ------------------------------------ ##
15030 ## Report this to bug-autoconf@gnu.org. ##
15031 ## ------------------------------------ ##
15034 sed "s/^/$as_me: WARNING: /" >&2
15037 echo "$as_me:$LINENO: checking for $ac_header" >&5
15038 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15039 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15040 echo $ECHO_N "(cached) $ECHO_C" >&6
15042 eval "$as_ac_Header=$ac_header_preproc"
15044 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15045 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15048 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15049 cat >>confdefs.h <<_ACEOF
15050 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15068 for ac_header in string.h utmp.h utmpx.h sys/param.h
15070 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15071 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15072 echo "$as_me:$LINENO: checking for $ac_header" >&5
15073 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15074 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15075 echo $ECHO_N "(cached) $ECHO_C" >&6
15077 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15078 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15080 # Is the header compilable?
15081 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15082 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15083 cat >conftest.$ac_ext <<_ACEOF
15084 #line $LINENO "configure"
15087 cat confdefs.h >>conftest.$ac_ext
15088 cat >>conftest.$ac_ext <<_ACEOF
15089 /* end confdefs.h. */
15090 $ac_includes_default
15091 #include <$ac_header>
15093 rm -f conftest.$ac_objext
15094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15095 (eval $ac_compile) 2>&5
15097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15098 (exit $ac_status); } &&
15099 { ac_try='test -s conftest.$ac_objext'
15100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15101 (eval $ac_try) 2>&5
15103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15104 (exit $ac_status); }; }; then
15105 ac_header_compiler=yes
15107 echo "$as_me: failed program was:" >&5
15108 sed 's/^/| /' conftest.$ac_ext >&5
15110 ac_header_compiler=no
15112 rm -f conftest.$ac_objext conftest.$ac_ext
15113 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15114 echo "${ECHO_T}$ac_header_compiler" >&6
15116 # Is the header present?
15117 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15118 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15119 cat >conftest.$ac_ext <<_ACEOF
15120 #line $LINENO "configure"
15123 cat confdefs.h >>conftest.$ac_ext
15124 cat >>conftest.$ac_ext <<_ACEOF
15125 /* end confdefs.h. */
15126 #include <$ac_header>
15128 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15129 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15131 grep -v '^ *+' conftest.er1 >conftest.err
15133 cat conftest.err >&5
15134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15135 (exit $ac_status); } >/dev/null; then
15136 if test -s conftest.err; then
15137 ac_cpp_err=$ac_c_preproc_warn_flag
15144 if test -z "$ac_cpp_err"; then
15145 ac_header_preproc=yes
15147 echo "$as_me: failed program was:" >&5
15148 sed 's/^/| /' conftest.$ac_ext >&5
15150 ac_header_preproc=no
15152 rm -f conftest.err conftest.$ac_ext
15153 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15154 echo "${ECHO_T}$ac_header_preproc" >&6
15156 # So? What about this header?
15157 case $ac_header_compiler:$ac_header_preproc in
15159 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15160 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15161 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15162 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15165 ## ------------------------------------ ##
15166 ## Report this to bug-autoconf@gnu.org. ##
15167 ## ------------------------------------ ##
15170 sed "s/^/$as_me: WARNING: /" >&2
15173 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15174 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15175 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15176 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15177 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15178 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15181 ## ------------------------------------ ##
15182 ## Report this to bug-autoconf@gnu.org. ##
15183 ## ------------------------------------ ##
15186 sed "s/^/$as_me: WARNING: /" >&2
15189 echo "$as_me:$LINENO: checking for $ac_header" >&5
15190 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15191 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15192 echo $ECHO_N "(cached) $ECHO_C" >&6
15194 eval "$as_ac_Header=$ac_header_preproc"
15196 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15197 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15200 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15201 cat >>confdefs.h <<_ACEOF
15202 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15210 for ac_func in utmpname
15212 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15213 echo "$as_me:$LINENO: checking for $ac_func" >&5
15214 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15215 if eval "test \"\${$as_ac_var+set}\" = set"; then
15216 echo $ECHO_N "(cached) $ECHO_C" >&6
15218 cat >conftest.$ac_ext <<_ACEOF
15219 #line $LINENO "configure"
15222 cat confdefs.h >>conftest.$ac_ext
15223 cat >>conftest.$ac_ext <<_ACEOF
15224 /* end confdefs.h. */
15225 /* System header to define __stub macros and hopefully few prototypes,
15226 which can conflict with char $ac_func (); below.
15227 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15228 <limits.h> exists even on freestanding compilers. */
15230 # include <limits.h>
15232 # include <assert.h>
15234 /* Override any gcc2 internal prototype to avoid an error. */
15239 /* We use char because int might match the return type of a gcc2
15240 builtin and then its argument prototype would still apply. */
15242 /* The GNU C library defines this for functions which it implements
15243 to always fail with ENOSYS. Some functions are actually named
15244 something starting with __ and the normal name is an alias. */
15245 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15248 char (*f) () = $ac_func;
15257 return f != $ac_func;
15262 rm -f conftest.$ac_objext conftest$ac_exeext
15263 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15264 (eval $ac_link) 2>&5
15266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15267 (exit $ac_status); } &&
15268 { ac_try='test -s conftest$ac_exeext'
15269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15270 (eval $ac_try) 2>&5
15272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15273 (exit $ac_status); }; }; then
15274 eval "$as_ac_var=yes"
15276 echo "$as_me: failed program was:" >&5
15277 sed 's/^/| /' conftest.$ac_ext >&5
15279 eval "$as_ac_var=no"
15281 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15283 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15284 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15285 if test `eval echo '${'$as_ac_var'}'` = yes; then
15286 cat >>confdefs.h <<_ACEOF
15287 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15294 for ac_func in utmpxname
15296 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15297 echo "$as_me:$LINENO: checking for $ac_func" >&5
15298 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15299 if eval "test \"\${$as_ac_var+set}\" = set"; then
15300 echo $ECHO_N "(cached) $ECHO_C" >&6
15302 cat >conftest.$ac_ext <<_ACEOF
15303 #line $LINENO "configure"
15306 cat confdefs.h >>conftest.$ac_ext
15307 cat >>conftest.$ac_ext <<_ACEOF
15308 /* end confdefs.h. */
15309 /* System header to define __stub macros and hopefully few prototypes,
15310 which can conflict with char $ac_func (); below.
15311 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15312 <limits.h> exists even on freestanding compilers. */
15314 # include <limits.h>
15316 # include <assert.h>
15318 /* Override any gcc2 internal prototype to avoid an error. */
15323 /* We use char because int might match the return type of a gcc2
15324 builtin and then its argument prototype would still apply. */
15326 /* The GNU C library defines this for functions which it implements
15327 to always fail with ENOSYS. Some functions are actually named
15328 something starting with __ and the normal name is an alias. */
15329 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15332 char (*f) () = $ac_func;
15341 return f != $ac_func;
15346 rm -f conftest.$ac_objext conftest$ac_exeext
15347 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15348 (eval $ac_link) 2>&5
15350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15351 (exit $ac_status); } &&
15352 { ac_try='test -s conftest$ac_exeext'
15353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15354 (eval $ac_try) 2>&5
15356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15357 (exit $ac_status); }; }; then
15358 eval "$as_ac_var=yes"
15360 echo "$as_me: failed program was:" >&5
15361 sed 's/^/| /' conftest.$ac_ext >&5
15363 eval "$as_ac_var=no"
15365 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15367 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15368 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15369 if test `eval echo '${'$as_ac_var'}'` = yes; then
15370 cat >>confdefs.h <<_ACEOF
15371 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15379 if test $ac_cv_header_utmp_h = yes || test $ac_cv_header_utmpx_h = yes; then
15381 $ac_includes_default
15382 #ifdef HAVE_UTMPX_H
15383 # include <utmpx.h>
15389 echo "$as_me:$LINENO: checking for struct utmpx.ut_user" >&5
15390 echo $ECHO_N "checking for struct utmpx.ut_user... $ECHO_C" >&6
15391 if test "${ac_cv_member_struct_utmpx_ut_user+set}" = set; then
15392 echo $ECHO_N "(cached) $ECHO_C" >&6
15394 cat >conftest.$ac_ext <<_ACEOF
15395 #line $LINENO "configure"
15398 cat confdefs.h >>conftest.$ac_ext
15399 cat >>conftest.$ac_ext <<_ACEOF
15400 /* end confdefs.h. */
15406 static struct utmpx ac_aggr;
15407 if (ac_aggr.ut_user)
15413 rm -f conftest.$ac_objext
15414 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15415 (eval $ac_compile) 2>&5
15417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15418 (exit $ac_status); } &&
15419 { ac_try='test -s conftest.$ac_objext'
15420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15421 (eval $ac_try) 2>&5
15423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15424 (exit $ac_status); }; }; then
15425 ac_cv_member_struct_utmpx_ut_user=yes
15427 echo "$as_me: failed program was:" >&5
15428 sed 's/^/| /' conftest.$ac_ext >&5
15430 cat >conftest.$ac_ext <<_ACEOF
15431 #line $LINENO "configure"
15434 cat confdefs.h >>conftest.$ac_ext
15435 cat >>conftest.$ac_ext <<_ACEOF
15436 /* end confdefs.h. */
15442 static struct utmpx ac_aggr;
15443 if (sizeof ac_aggr.ut_user)
15449 rm -f conftest.$ac_objext
15450 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15451 (eval $ac_compile) 2>&5
15453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15454 (exit $ac_status); } &&
15455 { ac_try='test -s conftest.$ac_objext'
15456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15457 (eval $ac_try) 2>&5
15459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15460 (exit $ac_status); }; }; then
15461 ac_cv_member_struct_utmpx_ut_user=yes
15463 echo "$as_me: failed program was:" >&5
15464 sed 's/^/| /' conftest.$ac_ext >&5
15466 ac_cv_member_struct_utmpx_ut_user=no
15468 rm -f conftest.$ac_objext conftest.$ac_ext
15470 rm -f conftest.$ac_objext conftest.$ac_ext
15472 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_user" >&5
15473 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_user" >&6
15474 if test $ac_cv_member_struct_utmpx_ut_user = yes; then
15476 cat >>confdefs.h <<_ACEOF
15477 #define HAVE_STRUCT_UTMPX_UT_USER 1
15483 echo "$as_me:$LINENO: checking for struct utmp.ut_user" >&5
15484 echo $ECHO_N "checking for struct utmp.ut_user... $ECHO_C" >&6
15485 if test "${ac_cv_member_struct_utmp_ut_user+set}" = set; then
15486 echo $ECHO_N "(cached) $ECHO_C" >&6
15488 cat >conftest.$ac_ext <<_ACEOF
15489 #line $LINENO "configure"
15492 cat confdefs.h >>conftest.$ac_ext
15493 cat >>conftest.$ac_ext <<_ACEOF
15494 /* end confdefs.h. */
15500 static struct utmp ac_aggr;
15501 if (ac_aggr.ut_user)
15507 rm -f conftest.$ac_objext
15508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15509 (eval $ac_compile) 2>&5
15511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15512 (exit $ac_status); } &&
15513 { ac_try='test -s conftest.$ac_objext'
15514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15515 (eval $ac_try) 2>&5
15517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15518 (exit $ac_status); }; }; then
15519 ac_cv_member_struct_utmp_ut_user=yes
15521 echo "$as_me: failed program was:" >&5
15522 sed 's/^/| /' conftest.$ac_ext >&5
15524 cat >conftest.$ac_ext <<_ACEOF
15525 #line $LINENO "configure"
15528 cat confdefs.h >>conftest.$ac_ext
15529 cat >>conftest.$ac_ext <<_ACEOF
15530 /* end confdefs.h. */
15536 static struct utmp ac_aggr;
15537 if (sizeof ac_aggr.ut_user)
15543 rm -f conftest.$ac_objext
15544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15545 (eval $ac_compile) 2>&5
15547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15548 (exit $ac_status); } &&
15549 { ac_try='test -s conftest.$ac_objext'
15550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15551 (eval $ac_try) 2>&5
15553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15554 (exit $ac_status); }; }; then
15555 ac_cv_member_struct_utmp_ut_user=yes
15557 echo "$as_me: failed program was:" >&5
15558 sed 's/^/| /' conftest.$ac_ext >&5
15560 ac_cv_member_struct_utmp_ut_user=no
15562 rm -f conftest.$ac_objext conftest.$ac_ext
15564 rm -f conftest.$ac_objext conftest.$ac_ext
15566 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_user" >&5
15567 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_user" >&6
15568 if test $ac_cv_member_struct_utmp_ut_user = yes; then
15570 cat >>confdefs.h <<_ACEOF
15571 #define HAVE_STRUCT_UTMP_UT_USER 1
15577 echo "$as_me:$LINENO: checking for struct utmpx.ut_name" >&5
15578 echo $ECHO_N "checking for struct utmpx.ut_name... $ECHO_C" >&6
15579 if test "${ac_cv_member_struct_utmpx_ut_name+set}" = set; then
15580 echo $ECHO_N "(cached) $ECHO_C" >&6
15582 cat >conftest.$ac_ext <<_ACEOF
15583 #line $LINENO "configure"
15586 cat confdefs.h >>conftest.$ac_ext
15587 cat >>conftest.$ac_ext <<_ACEOF
15588 /* end confdefs.h. */
15594 static struct utmpx ac_aggr;
15595 if (ac_aggr.ut_name)
15601 rm -f conftest.$ac_objext
15602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15603 (eval $ac_compile) 2>&5
15605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15606 (exit $ac_status); } &&
15607 { ac_try='test -s conftest.$ac_objext'
15608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15609 (eval $ac_try) 2>&5
15611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15612 (exit $ac_status); }; }; then
15613 ac_cv_member_struct_utmpx_ut_name=yes
15615 echo "$as_me: failed program was:" >&5
15616 sed 's/^/| /' conftest.$ac_ext >&5
15618 cat >conftest.$ac_ext <<_ACEOF
15619 #line $LINENO "configure"
15622 cat confdefs.h >>conftest.$ac_ext
15623 cat >>conftest.$ac_ext <<_ACEOF
15624 /* end confdefs.h. */
15630 static struct utmpx ac_aggr;
15631 if (sizeof ac_aggr.ut_name)
15637 rm -f conftest.$ac_objext
15638 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15639 (eval $ac_compile) 2>&5
15641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15642 (exit $ac_status); } &&
15643 { ac_try='test -s conftest.$ac_objext'
15644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15645 (eval $ac_try) 2>&5
15647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15648 (exit $ac_status); }; }; then
15649 ac_cv_member_struct_utmpx_ut_name=yes
15651 echo "$as_me: failed program was:" >&5
15652 sed 's/^/| /' conftest.$ac_ext >&5
15654 ac_cv_member_struct_utmpx_ut_name=no
15656 rm -f conftest.$ac_objext conftest.$ac_ext
15658 rm -f conftest.$ac_objext conftest.$ac_ext
15660 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_name" >&5
15661 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_name" >&6
15662 if test $ac_cv_member_struct_utmpx_ut_name = yes; then
15664 cat >>confdefs.h <<_ACEOF
15665 #define HAVE_STRUCT_UTMPX_UT_NAME 1
15671 echo "$as_me:$LINENO: checking for struct utmp.ut_name" >&5
15672 echo $ECHO_N "checking for struct utmp.ut_name... $ECHO_C" >&6
15673 if test "${ac_cv_member_struct_utmp_ut_name+set}" = set; then
15674 echo $ECHO_N "(cached) $ECHO_C" >&6
15676 cat >conftest.$ac_ext <<_ACEOF
15677 #line $LINENO "configure"
15680 cat confdefs.h >>conftest.$ac_ext
15681 cat >>conftest.$ac_ext <<_ACEOF
15682 /* end confdefs.h. */
15688 static struct utmp ac_aggr;
15689 if (ac_aggr.ut_name)
15695 rm -f conftest.$ac_objext
15696 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15697 (eval $ac_compile) 2>&5
15699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15700 (exit $ac_status); } &&
15701 { ac_try='test -s conftest.$ac_objext'
15702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15703 (eval $ac_try) 2>&5
15705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15706 (exit $ac_status); }; }; then
15707 ac_cv_member_struct_utmp_ut_name=yes
15709 echo "$as_me: failed program was:" >&5
15710 sed 's/^/| /' conftest.$ac_ext >&5
15712 cat >conftest.$ac_ext <<_ACEOF
15713 #line $LINENO "configure"
15716 cat confdefs.h >>conftest.$ac_ext
15717 cat >>conftest.$ac_ext <<_ACEOF
15718 /* end confdefs.h. */
15724 static struct utmp ac_aggr;
15725 if (sizeof ac_aggr.ut_name)
15731 rm -f conftest.$ac_objext
15732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15733 (eval $ac_compile) 2>&5
15735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15736 (exit $ac_status); } &&
15737 { ac_try='test -s conftest.$ac_objext'
15738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15739 (eval $ac_try) 2>&5
15741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15742 (exit $ac_status); }; }; then
15743 ac_cv_member_struct_utmp_ut_name=yes
15745 echo "$as_me: failed program was:" >&5
15746 sed 's/^/| /' conftest.$ac_ext >&5
15748 ac_cv_member_struct_utmp_ut_name=no
15750 rm -f conftest.$ac_objext conftest.$ac_ext
15752 rm -f conftest.$ac_objext conftest.$ac_ext
15754 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_name" >&5
15755 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_name" >&6
15756 if test $ac_cv_member_struct_utmp_ut_name = yes; then
15758 cat >>confdefs.h <<_ACEOF
15759 #define HAVE_STRUCT_UTMP_UT_NAME 1
15765 echo "$as_me:$LINENO: checking for struct utmpx.ut_type" >&5
15766 echo $ECHO_N "checking for struct utmpx.ut_type... $ECHO_C" >&6
15767 if test "${ac_cv_member_struct_utmpx_ut_type+set}" = set; then
15768 echo $ECHO_N "(cached) $ECHO_C" >&6
15770 cat >conftest.$ac_ext <<_ACEOF
15771 #line $LINENO "configure"
15774 cat confdefs.h >>conftest.$ac_ext
15775 cat >>conftest.$ac_ext <<_ACEOF
15776 /* end confdefs.h. */
15782 static struct utmpx ac_aggr;
15783 if (ac_aggr.ut_type)
15789 rm -f conftest.$ac_objext
15790 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15791 (eval $ac_compile) 2>&5
15793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15794 (exit $ac_status); } &&
15795 { ac_try='test -s conftest.$ac_objext'
15796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15797 (eval $ac_try) 2>&5
15799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15800 (exit $ac_status); }; }; then
15801 ac_cv_member_struct_utmpx_ut_type=yes
15803 echo "$as_me: failed program was:" >&5
15804 sed 's/^/| /' conftest.$ac_ext >&5
15806 cat >conftest.$ac_ext <<_ACEOF
15807 #line $LINENO "configure"
15810 cat confdefs.h >>conftest.$ac_ext
15811 cat >>conftest.$ac_ext <<_ACEOF
15812 /* end confdefs.h. */
15818 static struct utmpx ac_aggr;
15819 if (sizeof ac_aggr.ut_type)
15825 rm -f conftest.$ac_objext
15826 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15827 (eval $ac_compile) 2>&5
15829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15830 (exit $ac_status); } &&
15831 { ac_try='test -s conftest.$ac_objext'
15832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15833 (eval $ac_try) 2>&5
15835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15836 (exit $ac_status); }; }; then
15837 ac_cv_member_struct_utmpx_ut_type=yes
15839 echo "$as_me: failed program was:" >&5
15840 sed 's/^/| /' conftest.$ac_ext >&5
15842 ac_cv_member_struct_utmpx_ut_type=no
15844 rm -f conftest.$ac_objext conftest.$ac_ext
15846 rm -f conftest.$ac_objext conftest.$ac_ext
15848 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_type" >&5
15849 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_type" >&6
15850 if test $ac_cv_member_struct_utmpx_ut_type = yes; then
15852 cat >>confdefs.h <<_ACEOF
15853 #define HAVE_STRUCT_UTMPX_UT_TYPE 1
15859 echo "$as_me:$LINENO: checking for struct utmp.ut_type" >&5
15860 echo $ECHO_N "checking for struct utmp.ut_type... $ECHO_C" >&6
15861 if test "${ac_cv_member_struct_utmp_ut_type+set}" = set; then
15862 echo $ECHO_N "(cached) $ECHO_C" >&6
15864 cat >conftest.$ac_ext <<_ACEOF
15865 #line $LINENO "configure"
15868 cat confdefs.h >>conftest.$ac_ext
15869 cat >>conftest.$ac_ext <<_ACEOF
15870 /* end confdefs.h. */
15876 static struct utmp ac_aggr;
15877 if (ac_aggr.ut_type)
15883 rm -f conftest.$ac_objext
15884 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15885 (eval $ac_compile) 2>&5
15887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15888 (exit $ac_status); } &&
15889 { ac_try='test -s conftest.$ac_objext'
15890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15891 (eval $ac_try) 2>&5
15893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15894 (exit $ac_status); }; }; then
15895 ac_cv_member_struct_utmp_ut_type=yes
15897 echo "$as_me: failed program was:" >&5
15898 sed 's/^/| /' conftest.$ac_ext >&5
15900 cat >conftest.$ac_ext <<_ACEOF
15901 #line $LINENO "configure"
15904 cat confdefs.h >>conftest.$ac_ext
15905 cat >>conftest.$ac_ext <<_ACEOF
15906 /* end confdefs.h. */
15912 static struct utmp ac_aggr;
15913 if (sizeof ac_aggr.ut_type)
15919 rm -f conftest.$ac_objext
15920 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15921 (eval $ac_compile) 2>&5
15923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15924 (exit $ac_status); } &&
15925 { ac_try='test -s conftest.$ac_objext'
15926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15927 (eval $ac_try) 2>&5
15929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15930 (exit $ac_status); }; }; then
15931 ac_cv_member_struct_utmp_ut_type=yes
15933 echo "$as_me: failed program was:" >&5
15934 sed 's/^/| /' conftest.$ac_ext >&5
15936 ac_cv_member_struct_utmp_ut_type=no
15938 rm -f conftest.$ac_objext conftest.$ac_ext
15940 rm -f conftest.$ac_objext conftest.$ac_ext
15942 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_type" >&5
15943 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_type" >&6
15944 if test $ac_cv_member_struct_utmp_ut_type = yes; then
15946 cat >>confdefs.h <<_ACEOF
15947 #define HAVE_STRUCT_UTMP_UT_TYPE 1
15953 echo "$as_me:$LINENO: checking for struct utmpx.ut_pid" >&5
15954 echo $ECHO_N "checking for struct utmpx.ut_pid... $ECHO_C" >&6
15955 if test "${ac_cv_member_struct_utmpx_ut_pid+set}" = set; then
15956 echo $ECHO_N "(cached) $ECHO_C" >&6
15958 cat >conftest.$ac_ext <<_ACEOF
15959 #line $LINENO "configure"
15962 cat confdefs.h >>conftest.$ac_ext
15963 cat >>conftest.$ac_ext <<_ACEOF
15964 /* end confdefs.h. */
15970 static struct utmpx ac_aggr;
15971 if (ac_aggr.ut_pid)
15977 rm -f conftest.$ac_objext
15978 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15979 (eval $ac_compile) 2>&5
15981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15982 (exit $ac_status); } &&
15983 { ac_try='test -s conftest.$ac_objext'
15984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15985 (eval $ac_try) 2>&5
15987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15988 (exit $ac_status); }; }; then
15989 ac_cv_member_struct_utmpx_ut_pid=yes
15991 echo "$as_me: failed program was:" >&5
15992 sed 's/^/| /' conftest.$ac_ext >&5
15994 cat >conftest.$ac_ext <<_ACEOF
15995 #line $LINENO "configure"
15998 cat confdefs.h >>conftest.$ac_ext
15999 cat >>conftest.$ac_ext <<_ACEOF
16000 /* end confdefs.h. */
16006 static struct utmpx ac_aggr;
16007 if (sizeof ac_aggr.ut_pid)
16013 rm -f conftest.$ac_objext
16014 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16015 (eval $ac_compile) 2>&5
16017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16018 (exit $ac_status); } &&
16019 { ac_try='test -s conftest.$ac_objext'
16020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16021 (eval $ac_try) 2>&5
16023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16024 (exit $ac_status); }; }; then
16025 ac_cv_member_struct_utmpx_ut_pid=yes
16027 echo "$as_me: failed program was:" >&5
16028 sed 's/^/| /' conftest.$ac_ext >&5
16030 ac_cv_member_struct_utmpx_ut_pid=no
16032 rm -f conftest.$ac_objext conftest.$ac_ext
16034 rm -f conftest.$ac_objext conftest.$ac_ext
16036 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_pid" >&5
16037 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_pid" >&6
16038 if test $ac_cv_member_struct_utmpx_ut_pid = yes; then
16040 cat >>confdefs.h <<_ACEOF
16041 #define HAVE_STRUCT_UTMPX_UT_PID 1
16047 echo "$as_me:$LINENO: checking for struct utmp.ut_pid" >&5
16048 echo $ECHO_N "checking for struct utmp.ut_pid... $ECHO_C" >&6
16049 if test "${ac_cv_member_struct_utmp_ut_pid+set}" = set; then
16050 echo $ECHO_N "(cached) $ECHO_C" >&6
16052 cat >conftest.$ac_ext <<_ACEOF
16053 #line $LINENO "configure"
16056 cat confdefs.h >>conftest.$ac_ext
16057 cat >>conftest.$ac_ext <<_ACEOF
16058 /* end confdefs.h. */
16064 static struct utmp ac_aggr;
16065 if (ac_aggr.ut_pid)
16071 rm -f conftest.$ac_objext
16072 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16073 (eval $ac_compile) 2>&5
16075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16076 (exit $ac_status); } &&
16077 { ac_try='test -s conftest.$ac_objext'
16078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16079 (eval $ac_try) 2>&5
16081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16082 (exit $ac_status); }; }; then
16083 ac_cv_member_struct_utmp_ut_pid=yes
16085 echo "$as_me: failed program was:" >&5
16086 sed 's/^/| /' conftest.$ac_ext >&5
16088 cat >conftest.$ac_ext <<_ACEOF
16089 #line $LINENO "configure"
16092 cat confdefs.h >>conftest.$ac_ext
16093 cat >>conftest.$ac_ext <<_ACEOF
16094 /* end confdefs.h. */
16100 static struct utmp ac_aggr;
16101 if (sizeof ac_aggr.ut_pid)
16107 rm -f conftest.$ac_objext
16108 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16109 (eval $ac_compile) 2>&5
16111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16112 (exit $ac_status); } &&
16113 { ac_try='test -s conftest.$ac_objext'
16114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16115 (eval $ac_try) 2>&5
16117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16118 (exit $ac_status); }; }; then
16119 ac_cv_member_struct_utmp_ut_pid=yes
16121 echo "$as_me: failed program was:" >&5
16122 sed 's/^/| /' conftest.$ac_ext >&5
16124 ac_cv_member_struct_utmp_ut_pid=no
16126 rm -f conftest.$ac_objext conftest.$ac_ext
16128 rm -f conftest.$ac_objext conftest.$ac_ext
16130 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_pid" >&5
16131 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_pid" >&6
16132 if test $ac_cv_member_struct_utmp_ut_pid = yes; then
16134 cat >>confdefs.h <<_ACEOF
16135 #define HAVE_STRUCT_UTMP_UT_PID 1
16141 echo "$as_me:$LINENO: checking for struct utmpx.ut_id" >&5
16142 echo $ECHO_N "checking for struct utmpx.ut_id... $ECHO_C" >&6
16143 if test "${ac_cv_member_struct_utmpx_ut_id+set}" = set; then
16144 echo $ECHO_N "(cached) $ECHO_C" >&6
16146 cat >conftest.$ac_ext <<_ACEOF
16147 #line $LINENO "configure"
16150 cat confdefs.h >>conftest.$ac_ext
16151 cat >>conftest.$ac_ext <<_ACEOF
16152 /* end confdefs.h. */
16158 static struct utmpx ac_aggr;
16165 rm -f conftest.$ac_objext
16166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16167 (eval $ac_compile) 2>&5
16169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16170 (exit $ac_status); } &&
16171 { ac_try='test -s conftest.$ac_objext'
16172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16173 (eval $ac_try) 2>&5
16175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16176 (exit $ac_status); }; }; then
16177 ac_cv_member_struct_utmpx_ut_id=yes
16179 echo "$as_me: failed program was:" >&5
16180 sed 's/^/| /' conftest.$ac_ext >&5
16182 cat >conftest.$ac_ext <<_ACEOF
16183 #line $LINENO "configure"
16186 cat confdefs.h >>conftest.$ac_ext
16187 cat >>conftest.$ac_ext <<_ACEOF
16188 /* end confdefs.h. */
16194 static struct utmpx ac_aggr;
16195 if (sizeof ac_aggr.ut_id)
16201 rm -f conftest.$ac_objext
16202 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16203 (eval $ac_compile) 2>&5
16205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16206 (exit $ac_status); } &&
16207 { ac_try='test -s conftest.$ac_objext'
16208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16209 (eval $ac_try) 2>&5
16211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16212 (exit $ac_status); }; }; then
16213 ac_cv_member_struct_utmpx_ut_id=yes
16215 echo "$as_me: failed program was:" >&5
16216 sed 's/^/| /' conftest.$ac_ext >&5
16218 ac_cv_member_struct_utmpx_ut_id=no
16220 rm -f conftest.$ac_objext conftest.$ac_ext
16222 rm -f conftest.$ac_objext conftest.$ac_ext
16224 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_id" >&5
16225 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_id" >&6
16226 if test $ac_cv_member_struct_utmpx_ut_id = yes; then
16228 cat >>confdefs.h <<_ACEOF
16229 #define HAVE_STRUCT_UTMPX_UT_ID 1
16235 echo "$as_me:$LINENO: checking for struct utmp.ut_id" >&5
16236 echo $ECHO_N "checking for struct utmp.ut_id... $ECHO_C" >&6
16237 if test "${ac_cv_member_struct_utmp_ut_id+set}" = set; then
16238 echo $ECHO_N "(cached) $ECHO_C" >&6
16240 cat >conftest.$ac_ext <<_ACEOF
16241 #line $LINENO "configure"
16244 cat confdefs.h >>conftest.$ac_ext
16245 cat >>conftest.$ac_ext <<_ACEOF
16246 /* end confdefs.h. */
16252 static struct utmp ac_aggr;
16259 rm -f conftest.$ac_objext
16260 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16261 (eval $ac_compile) 2>&5
16263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16264 (exit $ac_status); } &&
16265 { ac_try='test -s conftest.$ac_objext'
16266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16267 (eval $ac_try) 2>&5
16269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16270 (exit $ac_status); }; }; then
16271 ac_cv_member_struct_utmp_ut_id=yes
16273 echo "$as_me: failed program was:" >&5
16274 sed 's/^/| /' conftest.$ac_ext >&5
16276 cat >conftest.$ac_ext <<_ACEOF
16277 #line $LINENO "configure"
16280 cat confdefs.h >>conftest.$ac_ext
16281 cat >>conftest.$ac_ext <<_ACEOF
16282 /* end confdefs.h. */
16288 static struct utmp ac_aggr;
16289 if (sizeof ac_aggr.ut_id)
16295 rm -f conftest.$ac_objext
16296 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16297 (eval $ac_compile) 2>&5
16299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16300 (exit $ac_status); } &&
16301 { ac_try='test -s conftest.$ac_objext'
16302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16303 (eval $ac_try) 2>&5
16305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16306 (exit $ac_status); }; }; then
16307 ac_cv_member_struct_utmp_ut_id=yes
16309 echo "$as_me: failed program was:" >&5
16310 sed 's/^/| /' conftest.$ac_ext >&5
16312 ac_cv_member_struct_utmp_ut_id=no
16314 rm -f conftest.$ac_objext conftest.$ac_ext
16316 rm -f conftest.$ac_objext conftest.$ac_ext
16318 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_id" >&5
16319 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_id" >&6
16320 if test $ac_cv_member_struct_utmp_ut_id = yes; then
16322 cat >>confdefs.h <<_ACEOF
16323 #define HAVE_STRUCT_UTMP_UT_ID 1
16330 echo "$as_me:$LINENO: checking for struct utmpx.ut_exit.ut_exit" >&5
16331 echo $ECHO_N "checking for struct utmpx.ut_exit.ut_exit... $ECHO_C" >&6
16332 if test "${ac_cv_member_struct_utmpx_ut_exit_ut_exit+set}" = set; then
16333 echo $ECHO_N "(cached) $ECHO_C" >&6
16335 cat >conftest.$ac_ext <<_ACEOF
16336 #line $LINENO "configure"
16339 cat confdefs.h >>conftest.$ac_ext
16340 cat >>conftest.$ac_ext <<_ACEOF
16341 /* end confdefs.h. */
16347 static struct utmpx ac_aggr;
16348 if (ac_aggr.ut_exit.ut_exit)
16354 rm -f conftest.$ac_objext
16355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16356 (eval $ac_compile) 2>&5
16358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16359 (exit $ac_status); } &&
16360 { ac_try='test -s conftest.$ac_objext'
16361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16362 (eval $ac_try) 2>&5
16364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16365 (exit $ac_status); }; }; then
16366 ac_cv_member_struct_utmpx_ut_exit_ut_exit=yes
16368 echo "$as_me: failed program was:" >&5
16369 sed 's/^/| /' conftest.$ac_ext >&5
16371 cat >conftest.$ac_ext <<_ACEOF
16372 #line $LINENO "configure"
16375 cat confdefs.h >>conftest.$ac_ext
16376 cat >>conftest.$ac_ext <<_ACEOF
16377 /* end confdefs.h. */
16383 static struct utmpx ac_aggr;
16384 if (sizeof ac_aggr.ut_exit.ut_exit)
16390 rm -f conftest.$ac_objext
16391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16392 (eval $ac_compile) 2>&5
16394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16395 (exit $ac_status); } &&
16396 { ac_try='test -s conftest.$ac_objext'
16397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16398 (eval $ac_try) 2>&5
16400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16401 (exit $ac_status); }; }; then
16402 ac_cv_member_struct_utmpx_ut_exit_ut_exit=yes
16404 echo "$as_me: failed program was:" >&5
16405 sed 's/^/| /' conftest.$ac_ext >&5
16407 ac_cv_member_struct_utmpx_ut_exit_ut_exit=no
16409 rm -f conftest.$ac_objext conftest.$ac_ext
16411 rm -f conftest.$ac_objext conftest.$ac_ext
16413 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_exit_ut_exit" >&5
16414 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_exit_ut_exit" >&6
16415 if test $ac_cv_member_struct_utmpx_ut_exit_ut_exit = yes; then
16417 cat >>confdefs.h <<_ACEOF
16418 #define HAVE_STRUCT_UTMPX_UT_EXIT_UT_EXIT 1
16424 echo "$as_me:$LINENO: checking for struct utmp.ut_exit.ut_exit" >&5
16425 echo $ECHO_N "checking for struct utmp.ut_exit.ut_exit... $ECHO_C" >&6
16426 if test "${ac_cv_member_struct_utmp_ut_exit_ut_exit+set}" = set; then
16427 echo $ECHO_N "(cached) $ECHO_C" >&6
16429 cat >conftest.$ac_ext <<_ACEOF
16430 #line $LINENO "configure"
16433 cat confdefs.h >>conftest.$ac_ext
16434 cat >>conftest.$ac_ext <<_ACEOF
16435 /* end confdefs.h. */
16441 static struct utmp ac_aggr;
16442 if (ac_aggr.ut_exit.ut_exit)
16448 rm -f conftest.$ac_objext
16449 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16450 (eval $ac_compile) 2>&5
16452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16453 (exit $ac_status); } &&
16454 { ac_try='test -s conftest.$ac_objext'
16455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16456 (eval $ac_try) 2>&5
16458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16459 (exit $ac_status); }; }; then
16460 ac_cv_member_struct_utmp_ut_exit_ut_exit=yes
16462 echo "$as_me: failed program was:" >&5
16463 sed 's/^/| /' conftest.$ac_ext >&5
16465 cat >conftest.$ac_ext <<_ACEOF
16466 #line $LINENO "configure"
16469 cat confdefs.h >>conftest.$ac_ext
16470 cat >>conftest.$ac_ext <<_ACEOF
16471 /* end confdefs.h. */
16477 static struct utmp ac_aggr;
16478 if (sizeof ac_aggr.ut_exit.ut_exit)
16484 rm -f conftest.$ac_objext
16485 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16486 (eval $ac_compile) 2>&5
16488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16489 (exit $ac_status); } &&
16490 { ac_try='test -s conftest.$ac_objext'
16491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16492 (eval $ac_try) 2>&5
16494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16495 (exit $ac_status); }; }; then
16496 ac_cv_member_struct_utmp_ut_exit_ut_exit=yes
16498 echo "$as_me: failed program was:" >&5
16499 sed 's/^/| /' conftest.$ac_ext >&5
16501 ac_cv_member_struct_utmp_ut_exit_ut_exit=no
16503 rm -f conftest.$ac_objext conftest.$ac_ext
16505 rm -f conftest.$ac_objext conftest.$ac_ext
16507 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_exit_ut_exit" >&5
16508 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_exit_ut_exit" >&6
16509 if test $ac_cv_member_struct_utmp_ut_exit_ut_exit = yes; then
16511 cat >>confdefs.h <<_ACEOF
16512 #define HAVE_STRUCT_UTMP_UT_EXIT_UT_EXIT 1
16518 echo "$as_me:$LINENO: checking for struct utmpx.ut_exit.e_exit" >&5
16519 echo $ECHO_N "checking for struct utmpx.ut_exit.e_exit... $ECHO_C" >&6
16520 if test "${ac_cv_member_struct_utmpx_ut_exit_e_exit+set}" = set; then
16521 echo $ECHO_N "(cached) $ECHO_C" >&6
16523 cat >conftest.$ac_ext <<_ACEOF
16524 #line $LINENO "configure"
16527 cat confdefs.h >>conftest.$ac_ext
16528 cat >>conftest.$ac_ext <<_ACEOF
16529 /* end confdefs.h. */
16535 static struct utmpx ac_aggr;
16536 if (ac_aggr.ut_exit.e_exit)
16542 rm -f conftest.$ac_objext
16543 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16544 (eval $ac_compile) 2>&5
16546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16547 (exit $ac_status); } &&
16548 { ac_try='test -s conftest.$ac_objext'
16549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16550 (eval $ac_try) 2>&5
16552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16553 (exit $ac_status); }; }; then
16554 ac_cv_member_struct_utmpx_ut_exit_e_exit=yes
16556 echo "$as_me: failed program was:" >&5
16557 sed 's/^/| /' conftest.$ac_ext >&5
16559 cat >conftest.$ac_ext <<_ACEOF
16560 #line $LINENO "configure"
16563 cat confdefs.h >>conftest.$ac_ext
16564 cat >>conftest.$ac_ext <<_ACEOF
16565 /* end confdefs.h. */
16571 static struct utmpx ac_aggr;
16572 if (sizeof ac_aggr.ut_exit.e_exit)
16578 rm -f conftest.$ac_objext
16579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16580 (eval $ac_compile) 2>&5
16582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16583 (exit $ac_status); } &&
16584 { ac_try='test -s conftest.$ac_objext'
16585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16586 (eval $ac_try) 2>&5
16588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16589 (exit $ac_status); }; }; then
16590 ac_cv_member_struct_utmpx_ut_exit_e_exit=yes
16592 echo "$as_me: failed program was:" >&5
16593 sed 's/^/| /' conftest.$ac_ext >&5
16595 ac_cv_member_struct_utmpx_ut_exit_e_exit=no
16597 rm -f conftest.$ac_objext conftest.$ac_ext
16599 rm -f conftest.$ac_objext conftest.$ac_ext
16601 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_exit_e_exit" >&5
16602 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_exit_e_exit" >&6
16603 if test $ac_cv_member_struct_utmpx_ut_exit_e_exit = yes; then
16605 cat >>confdefs.h <<_ACEOF
16606 #define HAVE_STRUCT_UTMPX_UT_EXIT_E_EXIT 1
16612 echo "$as_me:$LINENO: checking for struct utmp.ut_exit.e_exit" >&5
16613 echo $ECHO_N "checking for struct utmp.ut_exit.e_exit... $ECHO_C" >&6
16614 if test "${ac_cv_member_struct_utmp_ut_exit_e_exit+set}" = set; then
16615 echo $ECHO_N "(cached) $ECHO_C" >&6
16617 cat >conftest.$ac_ext <<_ACEOF
16618 #line $LINENO "configure"
16621 cat confdefs.h >>conftest.$ac_ext
16622 cat >>conftest.$ac_ext <<_ACEOF
16623 /* end confdefs.h. */
16629 static struct utmp ac_aggr;
16630 if (ac_aggr.ut_exit.e_exit)
16636 rm -f conftest.$ac_objext
16637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16638 (eval $ac_compile) 2>&5
16640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16641 (exit $ac_status); } &&
16642 { ac_try='test -s conftest.$ac_objext'
16643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16644 (eval $ac_try) 2>&5
16646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16647 (exit $ac_status); }; }; then
16648 ac_cv_member_struct_utmp_ut_exit_e_exit=yes
16650 echo "$as_me: failed program was:" >&5
16651 sed 's/^/| /' conftest.$ac_ext >&5
16653 cat >conftest.$ac_ext <<_ACEOF
16654 #line $LINENO "configure"
16657 cat confdefs.h >>conftest.$ac_ext
16658 cat >>conftest.$ac_ext <<_ACEOF
16659 /* end confdefs.h. */
16665 static struct utmp ac_aggr;
16666 if (sizeof ac_aggr.ut_exit.e_exit)
16672 rm -f conftest.$ac_objext
16673 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16674 (eval $ac_compile) 2>&5
16676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16677 (exit $ac_status); } &&
16678 { ac_try='test -s conftest.$ac_objext'
16679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16680 (eval $ac_try) 2>&5
16682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16683 (exit $ac_status); }; }; then
16684 ac_cv_member_struct_utmp_ut_exit_e_exit=yes
16686 echo "$as_me: failed program was:" >&5
16687 sed 's/^/| /' conftest.$ac_ext >&5
16689 ac_cv_member_struct_utmp_ut_exit_e_exit=no
16691 rm -f conftest.$ac_objext conftest.$ac_ext
16693 rm -f conftest.$ac_objext conftest.$ac_ext
16695 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_exit_e_exit" >&5
16696 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_exit_e_exit" >&6
16697 if test $ac_cv_member_struct_utmp_ut_exit_e_exit = yes; then
16699 cat >>confdefs.h <<_ACEOF
16700 #define HAVE_STRUCT_UTMP_UT_EXIT_E_EXIT 1
16707 echo "$as_me:$LINENO: checking for struct utmpx.ut_exit.ut_termination" >&5
16708 echo $ECHO_N "checking for struct utmpx.ut_exit.ut_termination... $ECHO_C" >&6
16709 if test "${ac_cv_member_struct_utmpx_ut_exit_ut_termination+set}" = set; then
16710 echo $ECHO_N "(cached) $ECHO_C" >&6
16712 cat >conftest.$ac_ext <<_ACEOF
16713 #line $LINENO "configure"
16716 cat confdefs.h >>conftest.$ac_ext
16717 cat >>conftest.$ac_ext <<_ACEOF
16718 /* end confdefs.h. */
16724 static struct utmpx ac_aggr;
16725 if (ac_aggr.ut_exit.ut_termination)
16731 rm -f conftest.$ac_objext
16732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16733 (eval $ac_compile) 2>&5
16735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16736 (exit $ac_status); } &&
16737 { ac_try='test -s conftest.$ac_objext'
16738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16739 (eval $ac_try) 2>&5
16741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16742 (exit $ac_status); }; }; then
16743 ac_cv_member_struct_utmpx_ut_exit_ut_termination=yes
16745 echo "$as_me: failed program was:" >&5
16746 sed 's/^/| /' conftest.$ac_ext >&5
16748 cat >conftest.$ac_ext <<_ACEOF
16749 #line $LINENO "configure"
16752 cat confdefs.h >>conftest.$ac_ext
16753 cat >>conftest.$ac_ext <<_ACEOF
16754 /* end confdefs.h. */
16760 static struct utmpx ac_aggr;
16761 if (sizeof ac_aggr.ut_exit.ut_termination)
16767 rm -f conftest.$ac_objext
16768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16769 (eval $ac_compile) 2>&5
16771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16772 (exit $ac_status); } &&
16773 { ac_try='test -s conftest.$ac_objext'
16774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16775 (eval $ac_try) 2>&5
16777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16778 (exit $ac_status); }; }; then
16779 ac_cv_member_struct_utmpx_ut_exit_ut_termination=yes
16781 echo "$as_me: failed program was:" >&5
16782 sed 's/^/| /' conftest.$ac_ext >&5
16784 ac_cv_member_struct_utmpx_ut_exit_ut_termination=no
16786 rm -f conftest.$ac_objext conftest.$ac_ext
16788 rm -f conftest.$ac_objext conftest.$ac_ext
16790 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_exit_ut_termination" >&5
16791 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_exit_ut_termination" >&6
16792 if test $ac_cv_member_struct_utmpx_ut_exit_ut_termination = yes; then
16794 cat >>confdefs.h <<_ACEOF
16795 #define HAVE_STRUCT_UTMPX_UT_EXIT_UT_TERMINATION 1
16801 echo "$as_me:$LINENO: checking for struct utmp.ut_exit.ut_termination" >&5
16802 echo $ECHO_N "checking for struct utmp.ut_exit.ut_termination... $ECHO_C" >&6
16803 if test "${ac_cv_member_struct_utmp_ut_exit_ut_termination+set}" = set; then
16804 echo $ECHO_N "(cached) $ECHO_C" >&6
16806 cat >conftest.$ac_ext <<_ACEOF
16807 #line $LINENO "configure"
16810 cat confdefs.h >>conftest.$ac_ext
16811 cat >>conftest.$ac_ext <<_ACEOF
16812 /* end confdefs.h. */
16818 static struct utmp ac_aggr;
16819 if (ac_aggr.ut_exit.ut_termination)
16825 rm -f conftest.$ac_objext
16826 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16827 (eval $ac_compile) 2>&5
16829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16830 (exit $ac_status); } &&
16831 { ac_try='test -s conftest.$ac_objext'
16832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16833 (eval $ac_try) 2>&5
16835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16836 (exit $ac_status); }; }; then
16837 ac_cv_member_struct_utmp_ut_exit_ut_termination=yes
16839 echo "$as_me: failed program was:" >&5
16840 sed 's/^/| /' conftest.$ac_ext >&5
16842 cat >conftest.$ac_ext <<_ACEOF
16843 #line $LINENO "configure"
16846 cat confdefs.h >>conftest.$ac_ext
16847 cat >>conftest.$ac_ext <<_ACEOF
16848 /* end confdefs.h. */
16854 static struct utmp ac_aggr;
16855 if (sizeof ac_aggr.ut_exit.ut_termination)
16861 rm -f conftest.$ac_objext
16862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16863 (eval $ac_compile) 2>&5
16865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16866 (exit $ac_status); } &&
16867 { ac_try='test -s conftest.$ac_objext'
16868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16869 (eval $ac_try) 2>&5
16871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16872 (exit $ac_status); }; }; then
16873 ac_cv_member_struct_utmp_ut_exit_ut_termination=yes
16875 echo "$as_me: failed program was:" >&5
16876 sed 's/^/| /' conftest.$ac_ext >&5
16878 ac_cv_member_struct_utmp_ut_exit_ut_termination=no
16880 rm -f conftest.$ac_objext conftest.$ac_ext
16882 rm -f conftest.$ac_objext conftest.$ac_ext
16884 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_exit_ut_termination" >&5
16885 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_exit_ut_termination" >&6
16886 if test $ac_cv_member_struct_utmp_ut_exit_ut_termination = yes; then
16888 cat >>confdefs.h <<_ACEOF
16889 #define HAVE_STRUCT_UTMP_UT_EXIT_UT_TERMINATION 1
16895 echo "$as_me:$LINENO: checking for struct utmpx.ut_exit.e_termination" >&5
16896 echo $ECHO_N "checking for struct utmpx.ut_exit.e_termination... $ECHO_C" >&6
16897 if test "${ac_cv_member_struct_utmpx_ut_exit_e_termination+set}" = set; then
16898 echo $ECHO_N "(cached) $ECHO_C" >&6
16900 cat >conftest.$ac_ext <<_ACEOF
16901 #line $LINENO "configure"
16904 cat confdefs.h >>conftest.$ac_ext
16905 cat >>conftest.$ac_ext <<_ACEOF
16906 /* end confdefs.h. */
16912 static struct utmpx ac_aggr;
16913 if (ac_aggr.ut_exit.e_termination)
16919 rm -f conftest.$ac_objext
16920 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16921 (eval $ac_compile) 2>&5
16923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16924 (exit $ac_status); } &&
16925 { ac_try='test -s conftest.$ac_objext'
16926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16927 (eval $ac_try) 2>&5
16929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16930 (exit $ac_status); }; }; then
16931 ac_cv_member_struct_utmpx_ut_exit_e_termination=yes
16933 echo "$as_me: failed program was:" >&5
16934 sed 's/^/| /' conftest.$ac_ext >&5
16936 cat >conftest.$ac_ext <<_ACEOF
16937 #line $LINENO "configure"
16940 cat confdefs.h >>conftest.$ac_ext
16941 cat >>conftest.$ac_ext <<_ACEOF
16942 /* end confdefs.h. */
16948 static struct utmpx ac_aggr;
16949 if (sizeof ac_aggr.ut_exit.e_termination)
16955 rm -f conftest.$ac_objext
16956 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16957 (eval $ac_compile) 2>&5
16959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16960 (exit $ac_status); } &&
16961 { ac_try='test -s conftest.$ac_objext'
16962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16963 (eval $ac_try) 2>&5
16965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16966 (exit $ac_status); }; }; then
16967 ac_cv_member_struct_utmpx_ut_exit_e_termination=yes
16969 echo "$as_me: failed program was:" >&5
16970 sed 's/^/| /' conftest.$ac_ext >&5
16972 ac_cv_member_struct_utmpx_ut_exit_e_termination=no
16974 rm -f conftest.$ac_objext conftest.$ac_ext
16976 rm -f conftest.$ac_objext conftest.$ac_ext
16978 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_exit_e_termination" >&5
16979 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_exit_e_termination" >&6
16980 if test $ac_cv_member_struct_utmpx_ut_exit_e_termination = yes; then
16982 cat >>confdefs.h <<_ACEOF
16983 #define HAVE_STRUCT_UTMPX_UT_EXIT_E_TERMINATION 1
16989 echo "$as_me:$LINENO: checking for struct utmp.ut_exit.e_termination" >&5
16990 echo $ECHO_N "checking for struct utmp.ut_exit.e_termination... $ECHO_C" >&6
16991 if test "${ac_cv_member_struct_utmp_ut_exit_e_termination+set}" = set; then
16992 echo $ECHO_N "(cached) $ECHO_C" >&6
16994 cat >conftest.$ac_ext <<_ACEOF
16995 #line $LINENO "configure"
16998 cat confdefs.h >>conftest.$ac_ext
16999 cat >>conftest.$ac_ext <<_ACEOF
17000 /* end confdefs.h. */
17006 static struct utmp ac_aggr;
17007 if (ac_aggr.ut_exit.e_termination)
17013 rm -f conftest.$ac_objext
17014 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17015 (eval $ac_compile) 2>&5
17017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17018 (exit $ac_status); } &&
17019 { ac_try='test -s conftest.$ac_objext'
17020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17021 (eval $ac_try) 2>&5
17023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17024 (exit $ac_status); }; }; then
17025 ac_cv_member_struct_utmp_ut_exit_e_termination=yes
17027 echo "$as_me: failed program was:" >&5
17028 sed 's/^/| /' conftest.$ac_ext >&5
17030 cat >conftest.$ac_ext <<_ACEOF
17031 #line $LINENO "configure"
17034 cat confdefs.h >>conftest.$ac_ext
17035 cat >>conftest.$ac_ext <<_ACEOF
17036 /* end confdefs.h. */
17042 static struct utmp ac_aggr;
17043 if (sizeof ac_aggr.ut_exit.e_termination)
17049 rm -f conftest.$ac_objext
17050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17051 (eval $ac_compile) 2>&5
17053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17054 (exit $ac_status); } &&
17055 { ac_try='test -s conftest.$ac_objext'
17056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17057 (eval $ac_try) 2>&5
17059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17060 (exit $ac_status); }; }; then
17061 ac_cv_member_struct_utmp_ut_exit_e_termination=yes
17063 echo "$as_me: failed program was:" >&5
17064 sed 's/^/| /' conftest.$ac_ext >&5
17066 ac_cv_member_struct_utmp_ut_exit_e_termination=no
17068 rm -f conftest.$ac_objext conftest.$ac_ext
17070 rm -f conftest.$ac_objext conftest.$ac_ext
17072 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_exit_e_termination" >&5
17073 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_exit_e_termination" >&6
17074 if test $ac_cv_member_struct_utmp_ut_exit_e_termination = yes; then
17076 cat >>confdefs.h <<_ACEOF
17077 #define HAVE_STRUCT_UTMP_UT_EXIT_E_TERMINATION 1
17083 LIBOBJS="$LIBOBJS readutmp.$ac_objext"
17087 echo "$as_me:$LINENO: checking for long long" >&5
17088 echo $ECHO_N "checking for long long... $ECHO_C" >&6
17089 if test "${ac_cv_type_long_long+set}" = set; then
17090 echo $ECHO_N "(cached) $ECHO_C" >&6
17092 cat >conftest.$ac_ext <<_ACEOF
17093 #line $LINENO "configure"
17096 cat confdefs.h >>conftest.$ac_ext
17097 cat >>conftest.$ac_ext <<_ACEOF
17098 /* end confdefs.h. */
17099 long long ll = 1; int i = 63;
17103 long long llmax = (long long) -1;
17104 return ll << i | ll >> i | llmax / ll | llmax % ll;
17109 rm -f conftest.$ac_objext conftest$ac_exeext
17110 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17111 (eval $ac_link) 2>&5
17113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17114 (exit $ac_status); } &&
17115 { ac_try='test -s conftest$ac_exeext'
17116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17117 (eval $ac_try) 2>&5
17119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17120 (exit $ac_status); }; }; then
17121 ac_cv_type_long_long=yes
17123 echo "$as_me: failed program was:" >&5
17124 sed 's/^/| /' conftest.$ac_ext >&5
17126 ac_cv_type_long_long=no
17128 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17130 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
17131 echo "${ECHO_T}$ac_cv_type_long_long" >&6
17132 if test $ac_cv_type_long_long = yes; then
17134 cat >>confdefs.h <<\_ACEOF
17135 #define HAVE_LONG_LONG 1
17145 for ac_header in sys/sysmacros.h sys/statvfs.h sys/vfs.h inttypes.h
17147 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17148 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17149 echo "$as_me:$LINENO: checking for $ac_header" >&5
17150 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17151 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17152 echo $ECHO_N "(cached) $ECHO_C" >&6
17154 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17155 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17157 # Is the header compilable?
17158 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17159 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17160 cat >conftest.$ac_ext <<_ACEOF
17161 #line $LINENO "configure"
17164 cat confdefs.h >>conftest.$ac_ext
17165 cat >>conftest.$ac_ext <<_ACEOF
17166 /* end confdefs.h. */
17167 $ac_includes_default
17168 #include <$ac_header>
17170 rm -f conftest.$ac_objext
17171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17172 (eval $ac_compile) 2>&5
17174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17175 (exit $ac_status); } &&
17176 { ac_try='test -s conftest.$ac_objext'
17177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17178 (eval $ac_try) 2>&5
17180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17181 (exit $ac_status); }; }; then
17182 ac_header_compiler=yes
17184 echo "$as_me: failed program was:" >&5
17185 sed 's/^/| /' conftest.$ac_ext >&5
17187 ac_header_compiler=no
17189 rm -f conftest.$ac_objext conftest.$ac_ext
17190 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17191 echo "${ECHO_T}$ac_header_compiler" >&6
17193 # Is the header present?
17194 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17195 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17196 cat >conftest.$ac_ext <<_ACEOF
17197 #line $LINENO "configure"
17200 cat confdefs.h >>conftest.$ac_ext
17201 cat >>conftest.$ac_ext <<_ACEOF
17202 /* end confdefs.h. */
17203 #include <$ac_header>
17205 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17206 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17208 grep -v '^ *+' conftest.er1 >conftest.err
17210 cat conftest.err >&5
17211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17212 (exit $ac_status); } >/dev/null; then
17213 if test -s conftest.err; then
17214 ac_cpp_err=$ac_c_preproc_warn_flag
17221 if test -z "$ac_cpp_err"; then
17222 ac_header_preproc=yes
17224 echo "$as_me: failed program was:" >&5
17225 sed 's/^/| /' conftest.$ac_ext >&5
17227 ac_header_preproc=no
17229 rm -f conftest.err conftest.$ac_ext
17230 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17231 echo "${ECHO_T}$ac_header_preproc" >&6
17233 # So? What about this header?
17234 case $ac_header_compiler:$ac_header_preproc in
17236 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17237 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17238 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17239 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17242 ## ------------------------------------ ##
17243 ## Report this to bug-autoconf@gnu.org. ##
17244 ## ------------------------------------ ##
17247 sed "s/^/$as_me: WARNING: /" >&2
17250 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17251 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17252 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17253 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17254 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17255 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17258 ## ------------------------------------ ##
17259 ## Report this to bug-autoconf@gnu.org. ##
17260 ## ------------------------------------ ##
17263 sed "s/^/$as_me: WARNING: /" >&2
17266 echo "$as_me:$LINENO: checking for $ac_header" >&5
17267 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17268 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17269 echo $ECHO_N "(cached) $ECHO_C" >&6
17271 eval "$as_ac_Header=$ac_header_preproc"
17273 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17274 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17277 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17278 cat >>confdefs.h <<_ACEOF
17279 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17288 for ac_header in sys/param.h sys/mount.h
17290 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17291 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17292 echo "$as_me:$LINENO: checking for $ac_header" >&5
17293 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17294 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17295 echo $ECHO_N "(cached) $ECHO_C" >&6
17297 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17298 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17300 # Is the header compilable?
17301 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17302 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17303 cat >conftest.$ac_ext <<_ACEOF
17304 #line $LINENO "configure"
17307 cat confdefs.h >>conftest.$ac_ext
17308 cat >>conftest.$ac_ext <<_ACEOF
17309 /* end confdefs.h. */
17310 $ac_includes_default
17311 #include <$ac_header>
17313 rm -f conftest.$ac_objext
17314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17315 (eval $ac_compile) 2>&5
17317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17318 (exit $ac_status); } &&
17319 { ac_try='test -s conftest.$ac_objext'
17320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17321 (eval $ac_try) 2>&5
17323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17324 (exit $ac_status); }; }; then
17325 ac_header_compiler=yes
17327 echo "$as_me: failed program was:" >&5
17328 sed 's/^/| /' conftest.$ac_ext >&5
17330 ac_header_compiler=no
17332 rm -f conftest.$ac_objext conftest.$ac_ext
17333 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17334 echo "${ECHO_T}$ac_header_compiler" >&6
17336 # Is the header present?
17337 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17338 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17339 cat >conftest.$ac_ext <<_ACEOF
17340 #line $LINENO "configure"
17343 cat confdefs.h >>conftest.$ac_ext
17344 cat >>conftest.$ac_ext <<_ACEOF
17345 /* end confdefs.h. */
17346 #include <$ac_header>
17348 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17349 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17351 grep -v '^ *+' conftest.er1 >conftest.err
17353 cat conftest.err >&5
17354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17355 (exit $ac_status); } >/dev/null; then
17356 if test -s conftest.err; then
17357 ac_cpp_err=$ac_c_preproc_warn_flag
17364 if test -z "$ac_cpp_err"; then
17365 ac_header_preproc=yes
17367 echo "$as_me: failed program was:" >&5
17368 sed 's/^/| /' conftest.$ac_ext >&5
17370 ac_header_preproc=no
17372 rm -f conftest.err conftest.$ac_ext
17373 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17374 echo "${ECHO_T}$ac_header_preproc" >&6
17376 # So? What about this header?
17377 case $ac_header_compiler:$ac_header_preproc in
17379 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17380 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17381 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17382 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17385 ## ------------------------------------ ##
17386 ## Report this to bug-autoconf@gnu.org. ##
17387 ## ------------------------------------ ##
17390 sed "s/^/$as_me: WARNING: /" >&2
17393 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17394 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17395 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17396 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17397 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17398 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17401 ## ------------------------------------ ##
17402 ## Report this to bug-autoconf@gnu.org. ##
17403 ## ------------------------------------ ##
17406 sed "s/^/$as_me: WARNING: /" >&2
17409 echo "$as_me:$LINENO: checking for $ac_header" >&5
17410 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17411 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17412 echo $ECHO_N "(cached) $ECHO_C" >&6
17414 eval "$as_ac_Header=$ac_header_preproc"
17416 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17417 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17420 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17421 cat >>confdefs.h <<_ACEOF
17422 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17430 for ac_func in statvfs
17432 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17433 echo "$as_me:$LINENO: checking for $ac_func" >&5
17434 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17435 if eval "test \"\${$as_ac_var+set}\" = set"; then
17436 echo $ECHO_N "(cached) $ECHO_C" >&6
17438 cat >conftest.$ac_ext <<_ACEOF
17439 #line $LINENO "configure"
17442 cat confdefs.h >>conftest.$ac_ext
17443 cat >>conftest.$ac_ext <<_ACEOF
17444 /* end confdefs.h. */
17445 /* System header to define __stub macros and hopefully few prototypes,
17446 which can conflict with char $ac_func (); below.
17447 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17448 <limits.h> exists even on freestanding compilers. */
17450 # include <limits.h>
17452 # include <assert.h>
17454 /* Override any gcc2 internal prototype to avoid an error. */
17459 /* We use char because int might match the return type of a gcc2
17460 builtin and then its argument prototype would still apply. */
17462 /* The GNU C library defines this for functions which it implements
17463 to always fail with ENOSYS. Some functions are actually named
17464 something starting with __ and the normal name is an alias. */
17465 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17468 char (*f) () = $ac_func;
17477 return f != $ac_func;
17482 rm -f conftest.$ac_objext conftest$ac_exeext
17483 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17484 (eval $ac_link) 2>&5
17486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17487 (exit $ac_status); } &&
17488 { ac_try='test -s conftest$ac_exeext'
17489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17490 (eval $ac_try) 2>&5
17492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17493 (exit $ac_status); }; }; then
17494 eval "$as_ac_var=yes"
17496 echo "$as_me: failed program was:" >&5
17497 sed 's/^/| /' conftest.$ac_ext >&5
17499 eval "$as_ac_var=no"
17501 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17503 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17504 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17505 if test `eval echo '${'$as_ac_var'}'` = yes; then
17506 cat >>confdefs.h <<_ACEOF
17507 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17515 statxfs_includes="\
17516 $ac_includes_default
17517 #if HAVE_SYS_STATVFS_H
17518 # include <sys/statvfs.h>
17521 # include <sys/vfs.h>
17523 #if ( ! HAVE_SYS_STATVFS_H && ! HAVE_SYS_VFS_H && HAVE_SYS_MOUNT_H && HAVE_SYS_PARAM_H )
17524 /* NetBSD 1.5.2 needs these, for the declaration of struct statfs. */
17525 # include <sys/param.h>
17526 # include <sys/mount.h>
17529 echo "$as_me:$LINENO: checking for struct statfs.f_basetype" >&5
17530 echo $ECHO_N "checking for struct statfs.f_basetype... $ECHO_C" >&6
17531 if test "${ac_cv_member_struct_statfs_f_basetype+set}" = set; then
17532 echo $ECHO_N "(cached) $ECHO_C" >&6
17534 cat >conftest.$ac_ext <<_ACEOF
17535 #line $LINENO "configure"
17538 cat confdefs.h >>conftest.$ac_ext
17539 cat >>conftest.$ac_ext <<_ACEOF
17540 /* end confdefs.h. */
17546 static struct statfs ac_aggr;
17547 if (ac_aggr.f_basetype)
17553 rm -f conftest.$ac_objext
17554 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17555 (eval $ac_compile) 2>&5
17557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17558 (exit $ac_status); } &&
17559 { ac_try='test -s conftest.$ac_objext'
17560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17561 (eval $ac_try) 2>&5
17563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17564 (exit $ac_status); }; }; then
17565 ac_cv_member_struct_statfs_f_basetype=yes
17567 echo "$as_me: failed program was:" >&5
17568 sed 's/^/| /' conftest.$ac_ext >&5
17570 cat >conftest.$ac_ext <<_ACEOF
17571 #line $LINENO "configure"
17574 cat confdefs.h >>conftest.$ac_ext
17575 cat >>conftest.$ac_ext <<_ACEOF
17576 /* end confdefs.h. */
17582 static struct statfs ac_aggr;
17583 if (sizeof ac_aggr.f_basetype)
17589 rm -f conftest.$ac_objext
17590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17591 (eval $ac_compile) 2>&5
17593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17594 (exit $ac_status); } &&
17595 { ac_try='test -s conftest.$ac_objext'
17596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17597 (eval $ac_try) 2>&5
17599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17600 (exit $ac_status); }; }; then
17601 ac_cv_member_struct_statfs_f_basetype=yes
17603 echo "$as_me: failed program was:" >&5
17604 sed 's/^/| /' conftest.$ac_ext >&5
17606 ac_cv_member_struct_statfs_f_basetype=no
17608 rm -f conftest.$ac_objext conftest.$ac_ext
17610 rm -f conftest.$ac_objext conftest.$ac_ext
17612 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_basetype" >&5
17613 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_basetype" >&6
17614 if test $ac_cv_member_struct_statfs_f_basetype = yes; then
17616 cat >>confdefs.h <<_ACEOF
17617 #define HAVE_STRUCT_STATFS_F_BASETYPE 1
17623 echo "$as_me:$LINENO: checking for struct statvfs.f_basetype" >&5
17624 echo $ECHO_N "checking for struct statvfs.f_basetype... $ECHO_C" >&6
17625 if test "${ac_cv_member_struct_statvfs_f_basetype+set}" = set; then
17626 echo $ECHO_N "(cached) $ECHO_C" >&6
17628 cat >conftest.$ac_ext <<_ACEOF
17629 #line $LINENO "configure"
17632 cat confdefs.h >>conftest.$ac_ext
17633 cat >>conftest.$ac_ext <<_ACEOF
17634 /* end confdefs.h. */
17640 static struct statvfs ac_aggr;
17641 if (ac_aggr.f_basetype)
17647 rm -f conftest.$ac_objext
17648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17649 (eval $ac_compile) 2>&5
17651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17652 (exit $ac_status); } &&
17653 { ac_try='test -s conftest.$ac_objext'
17654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17655 (eval $ac_try) 2>&5
17657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17658 (exit $ac_status); }; }; then
17659 ac_cv_member_struct_statvfs_f_basetype=yes
17661 echo "$as_me: failed program was:" >&5
17662 sed 's/^/| /' conftest.$ac_ext >&5
17664 cat >conftest.$ac_ext <<_ACEOF
17665 #line $LINENO "configure"
17668 cat confdefs.h >>conftest.$ac_ext
17669 cat >>conftest.$ac_ext <<_ACEOF
17670 /* end confdefs.h. */
17676 static struct statvfs ac_aggr;
17677 if (sizeof ac_aggr.f_basetype)
17683 rm -f conftest.$ac_objext
17684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17685 (eval $ac_compile) 2>&5
17687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17688 (exit $ac_status); } &&
17689 { ac_try='test -s conftest.$ac_objext'
17690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17691 (eval $ac_try) 2>&5
17693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17694 (exit $ac_status); }; }; then
17695 ac_cv_member_struct_statvfs_f_basetype=yes
17697 echo "$as_me: failed program was:" >&5
17698 sed 's/^/| /' conftest.$ac_ext >&5
17700 ac_cv_member_struct_statvfs_f_basetype=no
17702 rm -f conftest.$ac_objext conftest.$ac_ext
17704 rm -f conftest.$ac_objext conftest.$ac_ext
17706 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_basetype" >&5
17707 echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_basetype" >&6
17708 if test $ac_cv_member_struct_statvfs_f_basetype = yes; then
17710 cat >>confdefs.h <<_ACEOF
17711 #define HAVE_STRUCT_STATVFS_F_BASETYPE 1
17717 echo "$as_me:$LINENO: checking for struct statfs.f_fstypename" >&5
17718 echo $ECHO_N "checking for struct statfs.f_fstypename... $ECHO_C" >&6
17719 if test "${ac_cv_member_struct_statfs_f_fstypename+set}" = set; then
17720 echo $ECHO_N "(cached) $ECHO_C" >&6
17722 cat >conftest.$ac_ext <<_ACEOF
17723 #line $LINENO "configure"
17726 cat confdefs.h >>conftest.$ac_ext
17727 cat >>conftest.$ac_ext <<_ACEOF
17728 /* end confdefs.h. */
17734 static struct statfs ac_aggr;
17735 if (ac_aggr.f_fstypename)
17741 rm -f conftest.$ac_objext
17742 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17743 (eval $ac_compile) 2>&5
17745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17746 (exit $ac_status); } &&
17747 { ac_try='test -s conftest.$ac_objext'
17748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17749 (eval $ac_try) 2>&5
17751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17752 (exit $ac_status); }; }; then
17753 ac_cv_member_struct_statfs_f_fstypename=yes
17755 echo "$as_me: failed program was:" >&5
17756 sed 's/^/| /' conftest.$ac_ext >&5
17758 cat >conftest.$ac_ext <<_ACEOF
17759 #line $LINENO "configure"
17762 cat confdefs.h >>conftest.$ac_ext
17763 cat >>conftest.$ac_ext <<_ACEOF
17764 /* end confdefs.h. */
17770 static struct statfs ac_aggr;
17771 if (sizeof ac_aggr.f_fstypename)
17777 rm -f conftest.$ac_objext
17778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17779 (eval $ac_compile) 2>&5
17781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17782 (exit $ac_status); } &&
17783 { ac_try='test -s conftest.$ac_objext'
17784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17785 (eval $ac_try) 2>&5
17787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17788 (exit $ac_status); }; }; then
17789 ac_cv_member_struct_statfs_f_fstypename=yes
17791 echo "$as_me: failed program was:" >&5
17792 sed 's/^/| /' conftest.$ac_ext >&5
17794 ac_cv_member_struct_statfs_f_fstypename=no
17796 rm -f conftest.$ac_objext conftest.$ac_ext
17798 rm -f conftest.$ac_objext conftest.$ac_ext
17800 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_fstypename" >&5
17801 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_fstypename" >&6
17802 if test $ac_cv_member_struct_statfs_f_fstypename = yes; then
17804 cat >>confdefs.h <<_ACEOF
17805 #define HAVE_STRUCT_STATFS_F_FSTYPENAME 1
17811 echo "$as_me:$LINENO: checking for struct statfs.f_type" >&5
17812 echo $ECHO_N "checking for struct statfs.f_type... $ECHO_C" >&6
17813 if test "${ac_cv_member_struct_statfs_f_type+set}" = set; then
17814 echo $ECHO_N "(cached) $ECHO_C" >&6
17816 cat >conftest.$ac_ext <<_ACEOF
17817 #line $LINENO "configure"
17820 cat confdefs.h >>conftest.$ac_ext
17821 cat >>conftest.$ac_ext <<_ACEOF
17822 /* end confdefs.h. */
17828 static struct statfs ac_aggr;
17829 if (ac_aggr.f_type)
17835 rm -f conftest.$ac_objext
17836 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17837 (eval $ac_compile) 2>&5
17839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17840 (exit $ac_status); } &&
17841 { ac_try='test -s conftest.$ac_objext'
17842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17843 (eval $ac_try) 2>&5
17845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17846 (exit $ac_status); }; }; then
17847 ac_cv_member_struct_statfs_f_type=yes
17849 echo "$as_me: failed program was:" >&5
17850 sed 's/^/| /' conftest.$ac_ext >&5
17852 cat >conftest.$ac_ext <<_ACEOF
17853 #line $LINENO "configure"
17856 cat confdefs.h >>conftest.$ac_ext
17857 cat >>conftest.$ac_ext <<_ACEOF
17858 /* end confdefs.h. */
17864 static struct statfs ac_aggr;
17865 if (sizeof ac_aggr.f_type)
17871 rm -f conftest.$ac_objext
17872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17873 (eval $ac_compile) 2>&5
17875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17876 (exit $ac_status); } &&
17877 { ac_try='test -s conftest.$ac_objext'
17878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17879 (eval $ac_try) 2>&5
17881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17882 (exit $ac_status); }; }; then
17883 ac_cv_member_struct_statfs_f_type=yes
17885 echo "$as_me: failed program was:" >&5
17886 sed 's/^/| /' conftest.$ac_ext >&5
17888 ac_cv_member_struct_statfs_f_type=no
17890 rm -f conftest.$ac_objext conftest.$ac_ext
17892 rm -f conftest.$ac_objext conftest.$ac_ext
17894 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_type" >&5
17895 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_type" >&6
17896 if test $ac_cv_member_struct_statfs_f_type = yes; then
17898 cat >>confdefs.h <<_ACEOF
17899 #define HAVE_STRUCT_STATFS_F_TYPE 1
17905 echo "$as_me:$LINENO: checking for struct statvfs.f_type" >&5
17906 echo $ECHO_N "checking for struct statvfs.f_type... $ECHO_C" >&6
17907 if test "${ac_cv_member_struct_statvfs_f_type+set}" = set; then
17908 echo $ECHO_N "(cached) $ECHO_C" >&6
17910 cat >conftest.$ac_ext <<_ACEOF
17911 #line $LINENO "configure"
17914 cat confdefs.h >>conftest.$ac_ext
17915 cat >>conftest.$ac_ext <<_ACEOF
17916 /* end confdefs.h. */
17922 static struct statvfs ac_aggr;
17923 if (ac_aggr.f_type)
17929 rm -f conftest.$ac_objext
17930 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17931 (eval $ac_compile) 2>&5
17933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17934 (exit $ac_status); } &&
17935 { ac_try='test -s conftest.$ac_objext'
17936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17937 (eval $ac_try) 2>&5
17939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17940 (exit $ac_status); }; }; then
17941 ac_cv_member_struct_statvfs_f_type=yes
17943 echo "$as_me: failed program was:" >&5
17944 sed 's/^/| /' conftest.$ac_ext >&5
17946 cat >conftest.$ac_ext <<_ACEOF
17947 #line $LINENO "configure"
17950 cat confdefs.h >>conftest.$ac_ext
17951 cat >>conftest.$ac_ext <<_ACEOF
17952 /* end confdefs.h. */
17958 static struct statvfs ac_aggr;
17959 if (sizeof ac_aggr.f_type)
17965 rm -f conftest.$ac_objext
17966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17967 (eval $ac_compile) 2>&5
17969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17970 (exit $ac_status); } &&
17971 { ac_try='test -s conftest.$ac_objext'
17972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17973 (eval $ac_try) 2>&5
17975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17976 (exit $ac_status); }; }; then
17977 ac_cv_member_struct_statvfs_f_type=yes
17979 echo "$as_me: failed program was:" >&5
17980 sed 's/^/| /' conftest.$ac_ext >&5
17982 ac_cv_member_struct_statvfs_f_type=no
17984 rm -f conftest.$ac_objext conftest.$ac_ext
17986 rm -f conftest.$ac_objext conftest.$ac_ext
17988 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_type" >&5
17989 echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_type" >&6
17990 if test $ac_cv_member_struct_statvfs_f_type = yes; then
17992 cat >>confdefs.h <<_ACEOF
17993 #define HAVE_STRUCT_STATVFS_F_TYPE 1
17999 echo "$as_me:$LINENO: checking for struct statfs.f_fsid.__val" >&5
18000 echo $ECHO_N "checking for struct statfs.f_fsid.__val... $ECHO_C" >&6
18001 if test "${ac_cv_member_struct_statfs_f_fsid___val+set}" = set; then
18002 echo $ECHO_N "(cached) $ECHO_C" >&6
18004 cat >conftest.$ac_ext <<_ACEOF
18005 #line $LINENO "configure"
18008 cat confdefs.h >>conftest.$ac_ext
18009 cat >>conftest.$ac_ext <<_ACEOF
18010 /* end confdefs.h. */
18016 static struct statfs ac_aggr;
18017 if (ac_aggr.f_fsid.__val)
18023 rm -f conftest.$ac_objext
18024 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18025 (eval $ac_compile) 2>&5
18027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18028 (exit $ac_status); } &&
18029 { ac_try='test -s conftest.$ac_objext'
18030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18031 (eval $ac_try) 2>&5
18033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18034 (exit $ac_status); }; }; then
18035 ac_cv_member_struct_statfs_f_fsid___val=yes
18037 echo "$as_me: failed program was:" >&5
18038 sed 's/^/| /' conftest.$ac_ext >&5
18040 cat >conftest.$ac_ext <<_ACEOF
18041 #line $LINENO "configure"
18044 cat confdefs.h >>conftest.$ac_ext
18045 cat >>conftest.$ac_ext <<_ACEOF
18046 /* end confdefs.h. */
18052 static struct statfs ac_aggr;
18053 if (sizeof ac_aggr.f_fsid.__val)
18059 rm -f conftest.$ac_objext
18060 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18061 (eval $ac_compile) 2>&5
18063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18064 (exit $ac_status); } &&
18065 { ac_try='test -s conftest.$ac_objext'
18066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18067 (eval $ac_try) 2>&5
18069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18070 (exit $ac_status); }; }; then
18071 ac_cv_member_struct_statfs_f_fsid___val=yes
18073 echo "$as_me: failed program was:" >&5
18074 sed 's/^/| /' conftest.$ac_ext >&5
18076 ac_cv_member_struct_statfs_f_fsid___val=no
18078 rm -f conftest.$ac_objext conftest.$ac_ext
18080 rm -f conftest.$ac_objext conftest.$ac_ext
18082 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_fsid___val" >&5
18083 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_fsid___val" >&6
18084 if test $ac_cv_member_struct_statfs_f_fsid___val = yes; then
18086 cat >>confdefs.h <<_ACEOF
18087 #define HAVE_STRUCT_STATFS_F_FSID___VAL 1
18093 echo "$as_me:$LINENO: checking for struct statvfs.f_fsid.__val" >&5
18094 echo $ECHO_N "checking for struct statvfs.f_fsid.__val... $ECHO_C" >&6
18095 if test "${ac_cv_member_struct_statvfs_f_fsid___val+set}" = set; then
18096 echo $ECHO_N "(cached) $ECHO_C" >&6
18098 cat >conftest.$ac_ext <<_ACEOF
18099 #line $LINENO "configure"
18102 cat confdefs.h >>conftest.$ac_ext
18103 cat >>conftest.$ac_ext <<_ACEOF
18104 /* end confdefs.h. */
18110 static struct statvfs ac_aggr;
18111 if (ac_aggr.f_fsid.__val)
18117 rm -f conftest.$ac_objext
18118 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18119 (eval $ac_compile) 2>&5
18121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18122 (exit $ac_status); } &&
18123 { ac_try='test -s conftest.$ac_objext'
18124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18125 (eval $ac_try) 2>&5
18127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18128 (exit $ac_status); }; }; then
18129 ac_cv_member_struct_statvfs_f_fsid___val=yes
18131 echo "$as_me: failed program was:" >&5
18132 sed 's/^/| /' conftest.$ac_ext >&5
18134 cat >conftest.$ac_ext <<_ACEOF
18135 #line $LINENO "configure"
18138 cat confdefs.h >>conftest.$ac_ext
18139 cat >>conftest.$ac_ext <<_ACEOF
18140 /* end confdefs.h. */
18146 static struct statvfs ac_aggr;
18147 if (sizeof ac_aggr.f_fsid.__val)
18153 rm -f conftest.$ac_objext
18154 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18155 (eval $ac_compile) 2>&5
18157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18158 (exit $ac_status); } &&
18159 { ac_try='test -s conftest.$ac_objext'
18160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18161 (eval $ac_try) 2>&5
18163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18164 (exit $ac_status); }; }; then
18165 ac_cv_member_struct_statvfs_f_fsid___val=yes
18167 echo "$as_me: failed program was:" >&5
18168 sed 's/^/| /' conftest.$ac_ext >&5
18170 ac_cv_member_struct_statvfs_f_fsid___val=no
18172 rm -f conftest.$ac_objext conftest.$ac_ext
18174 rm -f conftest.$ac_objext conftest.$ac_ext
18176 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_fsid___val" >&5
18177 echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_fsid___val" >&6
18178 if test $ac_cv_member_struct_statvfs_f_fsid___val = yes; then
18180 cat >>confdefs.h <<_ACEOF
18181 #define HAVE_STRUCT_STATVFS_F_FSID___VAL 1
18187 echo "$as_me:$LINENO: checking for struct statfs.f_namemax" >&5
18188 echo $ECHO_N "checking for struct statfs.f_namemax... $ECHO_C" >&6
18189 if test "${ac_cv_member_struct_statfs_f_namemax+set}" = set; then
18190 echo $ECHO_N "(cached) $ECHO_C" >&6
18192 cat >conftest.$ac_ext <<_ACEOF
18193 #line $LINENO "configure"
18196 cat confdefs.h >>conftest.$ac_ext
18197 cat >>conftest.$ac_ext <<_ACEOF
18198 /* end confdefs.h. */
18204 static struct statfs ac_aggr;
18205 if (ac_aggr.f_namemax)
18211 rm -f conftest.$ac_objext
18212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18213 (eval $ac_compile) 2>&5
18215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18216 (exit $ac_status); } &&
18217 { ac_try='test -s conftest.$ac_objext'
18218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18219 (eval $ac_try) 2>&5
18221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18222 (exit $ac_status); }; }; then
18223 ac_cv_member_struct_statfs_f_namemax=yes
18225 echo "$as_me: failed program was:" >&5
18226 sed 's/^/| /' conftest.$ac_ext >&5
18228 cat >conftest.$ac_ext <<_ACEOF
18229 #line $LINENO "configure"
18232 cat confdefs.h >>conftest.$ac_ext
18233 cat >>conftest.$ac_ext <<_ACEOF
18234 /* end confdefs.h. */
18240 static struct statfs ac_aggr;
18241 if (sizeof ac_aggr.f_namemax)
18247 rm -f conftest.$ac_objext
18248 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18249 (eval $ac_compile) 2>&5
18251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18252 (exit $ac_status); } &&
18253 { ac_try='test -s conftest.$ac_objext'
18254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18255 (eval $ac_try) 2>&5
18257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18258 (exit $ac_status); }; }; then
18259 ac_cv_member_struct_statfs_f_namemax=yes
18261 echo "$as_me: failed program was:" >&5
18262 sed 's/^/| /' conftest.$ac_ext >&5
18264 ac_cv_member_struct_statfs_f_namemax=no
18266 rm -f conftest.$ac_objext conftest.$ac_ext
18268 rm -f conftest.$ac_objext conftest.$ac_ext
18270 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_namemax" >&5
18271 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_namemax" >&6
18272 if test $ac_cv_member_struct_statfs_f_namemax = yes; then
18274 cat >>confdefs.h <<_ACEOF
18275 #define HAVE_STRUCT_STATFS_F_NAMEMAX 1
18281 echo "$as_me:$LINENO: checking for struct statvfs.f_namemax" >&5
18282 echo $ECHO_N "checking for struct statvfs.f_namemax... $ECHO_C" >&6
18283 if test "${ac_cv_member_struct_statvfs_f_namemax+set}" = set; then
18284 echo $ECHO_N "(cached) $ECHO_C" >&6
18286 cat >conftest.$ac_ext <<_ACEOF
18287 #line $LINENO "configure"
18290 cat confdefs.h >>conftest.$ac_ext
18291 cat >>conftest.$ac_ext <<_ACEOF
18292 /* end confdefs.h. */
18298 static struct statvfs ac_aggr;
18299 if (ac_aggr.f_namemax)
18305 rm -f conftest.$ac_objext
18306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18307 (eval $ac_compile) 2>&5
18309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18310 (exit $ac_status); } &&
18311 { ac_try='test -s conftest.$ac_objext'
18312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18313 (eval $ac_try) 2>&5
18315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18316 (exit $ac_status); }; }; then
18317 ac_cv_member_struct_statvfs_f_namemax=yes
18319 echo "$as_me: failed program was:" >&5
18320 sed 's/^/| /' conftest.$ac_ext >&5
18322 cat >conftest.$ac_ext <<_ACEOF
18323 #line $LINENO "configure"
18326 cat confdefs.h >>conftest.$ac_ext
18327 cat >>conftest.$ac_ext <<_ACEOF
18328 /* end confdefs.h. */
18334 static struct statvfs ac_aggr;
18335 if (sizeof ac_aggr.f_namemax)
18341 rm -f conftest.$ac_objext
18342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18343 (eval $ac_compile) 2>&5
18345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18346 (exit $ac_status); } &&
18347 { ac_try='test -s conftest.$ac_objext'
18348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18349 (eval $ac_try) 2>&5
18351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18352 (exit $ac_status); }; }; then
18353 ac_cv_member_struct_statvfs_f_namemax=yes
18355 echo "$as_me: failed program was:" >&5
18356 sed 's/^/| /' conftest.$ac_ext >&5
18358 ac_cv_member_struct_statvfs_f_namemax=no
18360 rm -f conftest.$ac_objext conftest.$ac_ext
18362 rm -f conftest.$ac_objext conftest.$ac_ext
18364 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_namemax" >&5
18365 echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_namemax" >&6
18366 if test $ac_cv_member_struct_statvfs_f_namemax = yes; then
18368 cat >>confdefs.h <<_ACEOF
18369 #define HAVE_STRUCT_STATVFS_F_NAMEMAX 1
18375 echo "$as_me:$LINENO: checking for struct statfs.f_namelen" >&5
18376 echo $ECHO_N "checking for struct statfs.f_namelen... $ECHO_C" >&6
18377 if test "${ac_cv_member_struct_statfs_f_namelen+set}" = set; then
18378 echo $ECHO_N "(cached) $ECHO_C" >&6
18380 cat >conftest.$ac_ext <<_ACEOF
18381 #line $LINENO "configure"
18384 cat confdefs.h >>conftest.$ac_ext
18385 cat >>conftest.$ac_ext <<_ACEOF
18386 /* end confdefs.h. */
18392 static struct statfs ac_aggr;
18393 if (ac_aggr.f_namelen)
18399 rm -f conftest.$ac_objext
18400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18401 (eval $ac_compile) 2>&5
18403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18404 (exit $ac_status); } &&
18405 { ac_try='test -s conftest.$ac_objext'
18406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18407 (eval $ac_try) 2>&5
18409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18410 (exit $ac_status); }; }; then
18411 ac_cv_member_struct_statfs_f_namelen=yes
18413 echo "$as_me: failed program was:" >&5
18414 sed 's/^/| /' conftest.$ac_ext >&5
18416 cat >conftest.$ac_ext <<_ACEOF
18417 #line $LINENO "configure"
18420 cat confdefs.h >>conftest.$ac_ext
18421 cat >>conftest.$ac_ext <<_ACEOF
18422 /* end confdefs.h. */
18428 static struct statfs ac_aggr;
18429 if (sizeof ac_aggr.f_namelen)
18435 rm -f conftest.$ac_objext
18436 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18437 (eval $ac_compile) 2>&5
18439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18440 (exit $ac_status); } &&
18441 { ac_try='test -s conftest.$ac_objext'
18442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18443 (eval $ac_try) 2>&5
18445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18446 (exit $ac_status); }; }; then
18447 ac_cv_member_struct_statfs_f_namelen=yes
18449 echo "$as_me: failed program was:" >&5
18450 sed 's/^/| /' conftest.$ac_ext >&5
18452 ac_cv_member_struct_statfs_f_namelen=no
18454 rm -f conftest.$ac_objext conftest.$ac_ext
18456 rm -f conftest.$ac_objext conftest.$ac_ext
18458 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_namelen" >&5
18459 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_namelen" >&6
18460 if test $ac_cv_member_struct_statfs_f_namelen = yes; then
18462 cat >>confdefs.h <<_ACEOF
18463 #define HAVE_STRUCT_STATFS_F_NAMELEN 1
18469 echo "$as_me:$LINENO: checking for struct statvfs.f_namelen" >&5
18470 echo $ECHO_N "checking for struct statvfs.f_namelen... $ECHO_C" >&6
18471 if test "${ac_cv_member_struct_statvfs_f_namelen+set}" = set; then
18472 echo $ECHO_N "(cached) $ECHO_C" >&6
18474 cat >conftest.$ac_ext <<_ACEOF
18475 #line $LINENO "configure"
18478 cat confdefs.h >>conftest.$ac_ext
18479 cat >>conftest.$ac_ext <<_ACEOF
18480 /* end confdefs.h. */
18486 static struct statvfs ac_aggr;
18487 if (ac_aggr.f_namelen)
18493 rm -f conftest.$ac_objext
18494 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18495 (eval $ac_compile) 2>&5
18497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18498 (exit $ac_status); } &&
18499 { ac_try='test -s conftest.$ac_objext'
18500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18501 (eval $ac_try) 2>&5
18503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18504 (exit $ac_status); }; }; then
18505 ac_cv_member_struct_statvfs_f_namelen=yes
18507 echo "$as_me: failed program was:" >&5
18508 sed 's/^/| /' conftest.$ac_ext >&5
18510 cat >conftest.$ac_ext <<_ACEOF
18511 #line $LINENO "configure"
18514 cat confdefs.h >>conftest.$ac_ext
18515 cat >>conftest.$ac_ext <<_ACEOF
18516 /* end confdefs.h. */
18522 static struct statvfs ac_aggr;
18523 if (sizeof ac_aggr.f_namelen)
18529 rm -f conftest.$ac_objext
18530 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18531 (eval $ac_compile) 2>&5
18533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18534 (exit $ac_status); } &&
18535 { ac_try='test -s conftest.$ac_objext'
18536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18537 (eval $ac_try) 2>&5
18539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18540 (exit $ac_status); }; }; then
18541 ac_cv_member_struct_statvfs_f_namelen=yes
18543 echo "$as_me: failed program was:" >&5
18544 sed 's/^/| /' conftest.$ac_ext >&5
18546 ac_cv_member_struct_statvfs_f_namelen=no
18548 rm -f conftest.$ac_objext conftest.$ac_ext
18550 rm -f conftest.$ac_objext conftest.$ac_ext
18552 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_namelen" >&5
18553 echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_namelen" >&6
18554 if test $ac_cv_member_struct_statvfs_f_namelen = yes; then
18556 cat >>confdefs.h <<_ACEOF
18557 #define HAVE_STRUCT_STATVFS_F_NAMELEN 1
18564 echo "$as_me:$LINENO: checking for working strnlen" >&5
18565 echo $ECHO_N "checking for working strnlen... $ECHO_C" >&6
18566 if test "${ac_cv_func_strnlen_working+set}" = set; then
18567 echo $ECHO_N "(cached) $ECHO_C" >&6
18569 if test "$cross_compiling" = yes; then
18570 ac_cv_func_strnlen_working=no
18572 cat >conftest.$ac_ext <<_ACEOF
18573 #line $LINENO "configure"
18576 cat confdefs.h >>conftest.$ac_ext
18577 cat >>conftest.$ac_ext <<_ACEOF
18578 /* end confdefs.h. */
18585 #define S_LEN (sizeof S - 1)
18587 /* At least one implementation is buggy: that of AIX 4.3 would
18588 give strnlen (S, 1) == 3. */
18591 for (i = 0; i < S_LEN + 1; ++i)
18593 int expected = i <= S_LEN ? i : S_LEN;
18594 if (strnlen (S, i) != expected)
18603 rm -f conftest$ac_exeext
18604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18605 (eval $ac_link) 2>&5
18607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18608 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18610 (eval $ac_try) 2>&5
18612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18613 (exit $ac_status); }; }; then
18614 ac_cv_func_strnlen_working=yes
18616 echo "$as_me: program exited with status $ac_status" >&5
18617 echo "$as_me: failed program was:" >&5
18618 sed 's/^/| /' conftest.$ac_ext >&5
18620 ( exit $ac_status )
18621 ac_cv_func_strnlen_working=no
18623 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18626 echo "$as_me:$LINENO: result: $ac_cv_func_strnlen_working" >&5
18627 echo "${ECHO_T}$ac_cv_func_strnlen_working" >&6
18628 test $ac_cv_func_strnlen_working = no && LIBOBJS="$LIBOBJS strnlen.$ac_objext"
18634 for ac_header in memory.h
18636 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18637 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18638 echo "$as_me:$LINENO: checking for $ac_header" >&5
18639 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18640 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18641 echo $ECHO_N "(cached) $ECHO_C" >&6
18643 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18644 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18646 # Is the header compilable?
18647 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18648 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18649 cat >conftest.$ac_ext <<_ACEOF
18650 #line $LINENO "configure"
18653 cat confdefs.h >>conftest.$ac_ext
18654 cat >>conftest.$ac_ext <<_ACEOF
18655 /* end confdefs.h. */
18656 $ac_includes_default
18657 #include <$ac_header>
18659 rm -f conftest.$ac_objext
18660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18661 (eval $ac_compile) 2>&5
18663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18664 (exit $ac_status); } &&
18665 { ac_try='test -s conftest.$ac_objext'
18666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18667 (eval $ac_try) 2>&5
18669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18670 (exit $ac_status); }; }; then
18671 ac_header_compiler=yes
18673 echo "$as_me: failed program was:" >&5
18674 sed 's/^/| /' conftest.$ac_ext >&5
18676 ac_header_compiler=no
18678 rm -f conftest.$ac_objext conftest.$ac_ext
18679 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18680 echo "${ECHO_T}$ac_header_compiler" >&6
18682 # Is the header present?
18683 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18684 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18685 cat >conftest.$ac_ext <<_ACEOF
18686 #line $LINENO "configure"
18689 cat confdefs.h >>conftest.$ac_ext
18690 cat >>conftest.$ac_ext <<_ACEOF
18691 /* end confdefs.h. */
18692 #include <$ac_header>
18694 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18695 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18697 grep -v '^ *+' conftest.er1 >conftest.err
18699 cat conftest.err >&5
18700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18701 (exit $ac_status); } >/dev/null; then
18702 if test -s conftest.err; then
18703 ac_cpp_err=$ac_c_preproc_warn_flag
18710 if test -z "$ac_cpp_err"; then
18711 ac_header_preproc=yes
18713 echo "$as_me: failed program was:" >&5
18714 sed 's/^/| /' conftest.$ac_ext >&5
18716 ac_header_preproc=no
18718 rm -f conftest.err conftest.$ac_ext
18719 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18720 echo "${ECHO_T}$ac_header_preproc" >&6
18722 # So? What about this header?
18723 case $ac_header_compiler:$ac_header_preproc in
18725 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18726 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18727 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18728 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18731 ## ------------------------------------ ##
18732 ## Report this to bug-autoconf@gnu.org. ##
18733 ## ------------------------------------ ##
18736 sed "s/^/$as_me: WARNING: /" >&2
18739 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18740 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18741 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18742 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18743 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18744 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18747 ## ------------------------------------ ##
18748 ## Report this to bug-autoconf@gnu.org. ##
18749 ## ------------------------------------ ##
18752 sed "s/^/$as_me: WARNING: /" >&2
18755 echo "$as_me:$LINENO: checking for $ac_header" >&5
18756 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18757 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18758 echo $ECHO_N "(cached) $ECHO_C" >&6
18760 eval "$as_ac_Header=$ac_header_preproc"
18762 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18763 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18766 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18767 cat >>confdefs.h <<_ACEOF
18768 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18775 echo "$as_me:$LINENO: checking whether memchr is declared" >&5
18776 echo $ECHO_N "checking whether memchr is declared... $ECHO_C" >&6
18777 if test "${ac_cv_have_decl_memchr+set}" = set; then
18778 echo $ECHO_N "(cached) $ECHO_C" >&6
18780 cat >conftest.$ac_ext <<_ACEOF
18781 #line $LINENO "configure"
18784 cat confdefs.h >>conftest.$ac_ext
18785 cat >>conftest.$ac_ext <<_ACEOF
18786 /* end confdefs.h. */
18787 $ac_includes_default
18792 char *p = (char *) memchr;
18799 rm -f conftest.$ac_objext
18800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18801 (eval $ac_compile) 2>&5
18803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18804 (exit $ac_status); } &&
18805 { ac_try='test -s conftest.$ac_objext'
18806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18807 (eval $ac_try) 2>&5
18809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18810 (exit $ac_status); }; }; then
18811 ac_cv_have_decl_memchr=yes
18813 echo "$as_me: failed program was:" >&5
18814 sed 's/^/| /' conftest.$ac_ext >&5
18816 ac_cv_have_decl_memchr=no
18818 rm -f conftest.$ac_objext conftest.$ac_ext
18820 echo "$as_me:$LINENO: result: $ac_cv_have_decl_memchr" >&5
18821 echo "${ECHO_T}$ac_cv_have_decl_memchr" >&6
18822 if test $ac_cv_have_decl_memchr = yes; then
18824 cat >>confdefs.h <<_ACEOF
18825 #define HAVE_DECL_MEMCHR 1
18830 cat >>confdefs.h <<_ACEOF
18831 #define HAVE_DECL_MEMCHR 0
18839 # This is necessary because automake-1.6.1 doesn't understand
18840 # that the above use of AC_FUNC_STRNLEN means we may have to use
18842 test $ac_cv_func_strnlen_working = yes \
18843 && LIBOBJS="$LIBOBJS strnlen.$ac_objext"
18852 for ac_header in fcntl.h sys/time.h stdint.h unistd.h
18854 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18855 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18856 echo "$as_me:$LINENO: checking for $ac_header" >&5
18857 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18858 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18859 echo $ECHO_N "(cached) $ECHO_C" >&6
18861 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18862 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18864 # Is the header compilable?
18865 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18866 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18867 cat >conftest.$ac_ext <<_ACEOF
18868 #line $LINENO "configure"
18871 cat confdefs.h >>conftest.$ac_ext
18872 cat >>conftest.$ac_ext <<_ACEOF
18873 /* end confdefs.h. */
18874 $ac_includes_default
18875 #include <$ac_header>
18877 rm -f conftest.$ac_objext
18878 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18879 (eval $ac_compile) 2>&5
18881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18882 (exit $ac_status); } &&
18883 { ac_try='test -s conftest.$ac_objext'
18884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18885 (eval $ac_try) 2>&5
18887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18888 (exit $ac_status); }; }; then
18889 ac_header_compiler=yes
18891 echo "$as_me: failed program was:" >&5
18892 sed 's/^/| /' conftest.$ac_ext >&5
18894 ac_header_compiler=no
18896 rm -f conftest.$ac_objext conftest.$ac_ext
18897 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18898 echo "${ECHO_T}$ac_header_compiler" >&6
18900 # Is the header present?
18901 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18902 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18903 cat >conftest.$ac_ext <<_ACEOF
18904 #line $LINENO "configure"
18907 cat confdefs.h >>conftest.$ac_ext
18908 cat >>conftest.$ac_ext <<_ACEOF
18909 /* end confdefs.h. */
18910 #include <$ac_header>
18912 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18913 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18915 grep -v '^ *+' conftest.er1 >conftest.err
18917 cat conftest.err >&5
18918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18919 (exit $ac_status); } >/dev/null; then
18920 if test -s conftest.err; then
18921 ac_cpp_err=$ac_c_preproc_warn_flag
18928 if test -z "$ac_cpp_err"; then
18929 ac_header_preproc=yes
18931 echo "$as_me: failed program was:" >&5
18932 sed 's/^/| /' conftest.$ac_ext >&5
18934 ac_header_preproc=no
18936 rm -f conftest.err conftest.$ac_ext
18937 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18938 echo "${ECHO_T}$ac_header_preproc" >&6
18940 # So? What about this header?
18941 case $ac_header_compiler:$ac_header_preproc in
18943 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18944 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18945 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18946 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18949 ## ------------------------------------ ##
18950 ## Report this to bug-autoconf@gnu.org. ##
18951 ## ------------------------------------ ##
18954 sed "s/^/$as_me: WARNING: /" >&2
18957 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18958 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18959 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18960 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18961 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18962 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18965 ## ------------------------------------ ##
18966 ## Report this to bug-autoconf@gnu.org. ##
18967 ## ------------------------------------ ##
18970 sed "s/^/$as_me: WARNING: /" >&2
18973 echo "$as_me:$LINENO: checking for $ac_header" >&5
18974 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18975 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18976 echo $ECHO_N "(cached) $ECHO_C" >&6
18978 eval "$as_ac_Header=$ac_header_preproc"
18980 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18981 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18984 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18985 cat >>confdefs.h <<_ACEOF
18986 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18995 for ac_func in __secure_getenv gettimeofday
18997 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18998 echo "$as_me:$LINENO: checking for $ac_func" >&5
18999 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19000 if eval "test \"\${$as_ac_var+set}\" = set"; then
19001 echo $ECHO_N "(cached) $ECHO_C" >&6
19003 cat >conftest.$ac_ext <<_ACEOF
19004 #line $LINENO "configure"
19007 cat confdefs.h >>conftest.$ac_ext
19008 cat >>conftest.$ac_ext <<_ACEOF
19009 /* end confdefs.h. */
19010 /* System header to define __stub macros and hopefully few prototypes,
19011 which can conflict with char $ac_func (); below.
19012 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19013 <limits.h> exists even on freestanding compilers. */
19015 # include <limits.h>
19017 # include <assert.h>
19019 /* Override any gcc2 internal prototype to avoid an error. */
19024 /* We use char because int might match the return type of a gcc2
19025 builtin and then its argument prototype would still apply. */
19027 /* The GNU C library defines this for functions which it implements
19028 to always fail with ENOSYS. Some functions are actually named
19029 something starting with __ and the normal name is an alias. */
19030 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19033 char (*f) () = $ac_func;
19042 return f != $ac_func;
19047 rm -f conftest.$ac_objext conftest$ac_exeext
19048 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19049 (eval $ac_link) 2>&5
19051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19052 (exit $ac_status); } &&
19053 { ac_try='test -s conftest$ac_exeext'
19054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19055 (eval $ac_try) 2>&5
19057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19058 (exit $ac_status); }; }; then
19059 eval "$as_ac_var=yes"
19061 echo "$as_me: failed program was:" >&5
19062 sed 's/^/| /' conftest.$ac_ext >&5
19064 eval "$as_ac_var=no"
19066 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19068 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19069 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19070 if test `eval echo '${'$as_ac_var'}'` = yes; then
19071 cat >>confdefs.h <<_ACEOF
19072 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19078 echo "$as_me:$LINENO: checking whether getenv is declared" >&5
19079 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
19080 if test "${ac_cv_have_decl_getenv+set}" = set; then
19081 echo $ECHO_N "(cached) $ECHO_C" >&6
19083 cat >conftest.$ac_ext <<_ACEOF
19084 #line $LINENO "configure"
19087 cat confdefs.h >>conftest.$ac_ext
19088 cat >>conftest.$ac_ext <<_ACEOF
19089 /* end confdefs.h. */
19090 $ac_includes_default
19095 char *p = (char *) getenv;
19102 rm -f conftest.$ac_objext
19103 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19104 (eval $ac_compile) 2>&5
19106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19107 (exit $ac_status); } &&
19108 { ac_try='test -s conftest.$ac_objext'
19109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19110 (eval $ac_try) 2>&5
19112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19113 (exit $ac_status); }; }; then
19114 ac_cv_have_decl_getenv=yes
19116 echo "$as_me: failed program was:" >&5
19117 sed 's/^/| /' conftest.$ac_ext >&5
19119 ac_cv_have_decl_getenv=no
19121 rm -f conftest.$ac_objext conftest.$ac_ext
19123 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
19124 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
19125 if test $ac_cv_have_decl_getenv = yes; then
19127 cat >>confdefs.h <<_ACEOF
19128 #define HAVE_DECL_GETENV 1
19133 cat >>confdefs.h <<_ACEOF
19134 #define HAVE_DECL_GETENV 0
19143 echo "$as_me:$LINENO: checking for function prototypes" >&5
19144 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
19145 if test "$ac_cv_prog_cc_stdc" != no; then
19146 echo "$as_me:$LINENO: result: yes" >&5
19147 echo "${ECHO_T}yes" >&6
19149 cat >>confdefs.h <<\_ACEOF
19150 #define PROTOTYPES 1
19154 cat >>confdefs.h <<\_ACEOF
19155 #define __PROTOTYPES 1
19159 echo "$as_me:$LINENO: result: no" >&5
19160 echo "${ECHO_T}no" >&6
19165 for ac_header in stdlib.h unistd.h
19167 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19168 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19169 echo "$as_me:$LINENO: checking for $ac_header" >&5
19170 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19171 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19172 echo $ECHO_N "(cached) $ECHO_C" >&6
19174 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19175 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19177 # Is the header compilable?
19178 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19179 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19180 cat >conftest.$ac_ext <<_ACEOF
19181 #line $LINENO "configure"
19184 cat confdefs.h >>conftest.$ac_ext
19185 cat >>conftest.$ac_ext <<_ACEOF
19186 /* end confdefs.h. */
19187 $ac_includes_default
19188 #include <$ac_header>
19190 rm -f conftest.$ac_objext
19191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19192 (eval $ac_compile) 2>&5
19194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19195 (exit $ac_status); } &&
19196 { ac_try='test -s conftest.$ac_objext'
19197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19198 (eval $ac_try) 2>&5
19200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19201 (exit $ac_status); }; }; then
19202 ac_header_compiler=yes
19204 echo "$as_me: failed program was:" >&5
19205 sed 's/^/| /' conftest.$ac_ext >&5
19207 ac_header_compiler=no
19209 rm -f conftest.$ac_objext conftest.$ac_ext
19210 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19211 echo "${ECHO_T}$ac_header_compiler" >&6
19213 # Is the header present?
19214 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19215 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19216 cat >conftest.$ac_ext <<_ACEOF
19217 #line $LINENO "configure"
19220 cat confdefs.h >>conftest.$ac_ext
19221 cat >>conftest.$ac_ext <<_ACEOF
19222 /* end confdefs.h. */
19223 #include <$ac_header>
19225 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19226 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19228 grep -v '^ *+' conftest.er1 >conftest.err
19230 cat conftest.err >&5
19231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19232 (exit $ac_status); } >/dev/null; then
19233 if test -s conftest.err; then
19234 ac_cpp_err=$ac_c_preproc_warn_flag
19241 if test -z "$ac_cpp_err"; then
19242 ac_header_preproc=yes
19244 echo "$as_me: failed program was:" >&5
19245 sed 's/^/| /' conftest.$ac_ext >&5
19247 ac_header_preproc=no
19249 rm -f conftest.err conftest.$ac_ext
19250 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19251 echo "${ECHO_T}$ac_header_preproc" >&6
19253 # So? What about this header?
19254 case $ac_header_compiler:$ac_header_preproc in
19256 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19257 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19258 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19259 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19262 ## ------------------------------------ ##
19263 ## Report this to bug-autoconf@gnu.org. ##
19264 ## ------------------------------------ ##
19267 sed "s/^/$as_me: WARNING: /" >&2
19270 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19271 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19272 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19273 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19274 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19275 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19278 ## ------------------------------------ ##
19279 ## Report this to bug-autoconf@gnu.org. ##
19280 ## ------------------------------------ ##
19283 sed "s/^/$as_me: WARNING: /" >&2
19286 echo "$as_me:$LINENO: checking for $ac_header" >&5
19287 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19288 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19289 echo $ECHO_N "(cached) $ECHO_C" >&6
19291 eval "$as_ac_Header=$ac_header_preproc"
19293 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19294 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19297 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19298 cat >>confdefs.h <<_ACEOF
19299 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19306 echo "$as_me:$LINENO: checking whether getcwd (NULL, 0) allocates memory for result" >&5
19307 echo $ECHO_N "checking whether getcwd (NULL, 0) allocates memory for result... $ECHO_C" >&6
19308 if test "${ac_cv_func_getcwd_null+set}" = set; then
19309 echo $ECHO_N "(cached) $ECHO_C" >&6
19311 if test "$cross_compiling" = yes; then
19312 ac_cv_func_getcwd_null=no
19314 cat >conftest.$ac_ext <<_ACEOF
19315 #line $LINENO "configure"
19318 cat confdefs.h >>conftest.$ac_ext
19319 cat >>conftest.$ac_ext <<_ACEOF
19320 /* end confdefs.h. */
19322 # ifdef HAVE_STDLIB_H
19323 # include <stdlib.h>
19325 # ifdef HAVE_UNISTD_H
19326 # include <unistd.h>
19334 if (chdir ("/") != 0)
19338 char *f = getcwd (NULL, 0);
19339 exit (! (f && f[0] == '/' && !f[1]));
19343 rm -f conftest$ac_exeext
19344 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19345 (eval $ac_link) 2>&5
19347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19348 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19350 (eval $ac_try) 2>&5
19352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19353 (exit $ac_status); }; }; then
19354 ac_cv_func_getcwd_null=yes
19356 echo "$as_me: program exited with status $ac_status" >&5
19357 echo "$as_me: failed program was:" >&5
19358 sed 's/^/| /' conftest.$ac_ext >&5
19360 ( exit $ac_status )
19361 ac_cv_func_getcwd_null=no
19363 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19366 echo "$as_me:$LINENO: result: $ac_cv_func_getcwd_null" >&5
19367 echo "${ECHO_T}$ac_cv_func_getcwd_null" >&6
19368 if test $ac_cv_func_getcwd_null = yes; then
19370 cat >>confdefs.h <<\_ACEOF
19371 #define HAVE_GETCWD_NULL 1
19381 for ac_header in limits.h stdlib.h sys/param.h unistd.h
19383 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19384 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19385 echo "$as_me:$LINENO: checking for $ac_header" >&5
19386 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19387 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19388 echo $ECHO_N "(cached) $ECHO_C" >&6
19390 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19391 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19393 # Is the header compilable?
19394 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19395 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19396 cat >conftest.$ac_ext <<_ACEOF
19397 #line $LINENO "configure"
19400 cat confdefs.h >>conftest.$ac_ext
19401 cat >>conftest.$ac_ext <<_ACEOF
19402 /* end confdefs.h. */
19403 $ac_includes_default
19404 #include <$ac_header>
19406 rm -f conftest.$ac_objext
19407 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19408 (eval $ac_compile) 2>&5
19410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19411 (exit $ac_status); } &&
19412 { ac_try='test -s conftest.$ac_objext'
19413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19414 (eval $ac_try) 2>&5
19416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19417 (exit $ac_status); }; }; then
19418 ac_header_compiler=yes
19420 echo "$as_me: failed program was:" >&5
19421 sed 's/^/| /' conftest.$ac_ext >&5
19423 ac_header_compiler=no
19425 rm -f conftest.$ac_objext conftest.$ac_ext
19426 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19427 echo "${ECHO_T}$ac_header_compiler" >&6
19429 # Is the header present?
19430 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19431 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19432 cat >conftest.$ac_ext <<_ACEOF
19433 #line $LINENO "configure"
19436 cat confdefs.h >>conftest.$ac_ext
19437 cat >>conftest.$ac_ext <<_ACEOF
19438 /* end confdefs.h. */
19439 #include <$ac_header>
19441 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19442 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19444 grep -v '^ *+' conftest.er1 >conftest.err
19446 cat conftest.err >&5
19447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19448 (exit $ac_status); } >/dev/null; then
19449 if test -s conftest.err; then
19450 ac_cpp_err=$ac_c_preproc_warn_flag
19457 if test -z "$ac_cpp_err"; then
19458 ac_header_preproc=yes
19460 echo "$as_me: failed program was:" >&5
19461 sed 's/^/| /' conftest.$ac_ext >&5
19463 ac_header_preproc=no
19465 rm -f conftest.err conftest.$ac_ext
19466 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19467 echo "${ECHO_T}$ac_header_preproc" >&6
19469 # So? What about this header?
19470 case $ac_header_compiler:$ac_header_preproc in
19472 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19473 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19474 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19475 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19478 ## ------------------------------------ ##
19479 ## Report this to bug-autoconf@gnu.org. ##
19480 ## ------------------------------------ ##
19483 sed "s/^/$as_me: WARNING: /" >&2
19486 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19487 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19488 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19489 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19490 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19491 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19494 ## ------------------------------------ ##
19495 ## Report this to bug-autoconf@gnu.org. ##
19496 ## ------------------------------------ ##
19499 sed "s/^/$as_me: WARNING: /" >&2
19502 echo "$as_me:$LINENO: checking for $ac_header" >&5
19503 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19504 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19505 echo $ECHO_N "(cached) $ECHO_C" >&6
19507 eval "$as_ac_Header=$ac_header_preproc"
19509 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19510 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19513 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19514 cat >>confdefs.h <<_ACEOF
19515 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19523 for ac_func in getcwd
19525 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19526 echo "$as_me:$LINENO: checking for $ac_func" >&5
19527 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19528 if eval "test \"\${$as_ac_var+set}\" = set"; then
19529 echo $ECHO_N "(cached) $ECHO_C" >&6
19531 cat >conftest.$ac_ext <<_ACEOF
19532 #line $LINENO "configure"
19535 cat confdefs.h >>conftest.$ac_ext
19536 cat >>conftest.$ac_ext <<_ACEOF
19537 /* end confdefs.h. */
19538 /* System header to define __stub macros and hopefully few prototypes,
19539 which can conflict with char $ac_func (); below.
19540 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19541 <limits.h> exists even on freestanding compilers. */
19543 # include <limits.h>
19545 # include <assert.h>
19547 /* Override any gcc2 internal prototype to avoid an error. */
19552 /* We use char because int might match the return type of a gcc2
19553 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)
19561 char (*f) () = $ac_func;
19570 return f != $ac_func;
19575 rm -f conftest.$ac_objext conftest$ac_exeext
19576 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19577 (eval $ac_link) 2>&5
19579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19580 (exit $ac_status); } &&
19581 { ac_try='test -s conftest$ac_exeext'
19582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19583 (eval $ac_try) 2>&5
19585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19586 (exit $ac_status); }; }; then
19587 eval "$as_ac_var=yes"
19589 echo "$as_me: failed program was:" >&5
19590 sed 's/^/| /' conftest.$ac_ext >&5
19592 eval "$as_ac_var=no"
19594 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19596 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19597 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19598 if test `eval echo '${'$as_ac_var'}'` = yes; then
19599 cat >>confdefs.h <<_ACEOF
19600 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19614 for ac_header in limits.h stdlib.h sys/types.h unistd.h
19616 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19617 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19618 echo "$as_me:$LINENO: checking for $ac_header" >&5
19619 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19620 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19621 echo $ECHO_N "(cached) $ECHO_C" >&6
19623 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19624 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19626 # Is the header compilable?
19627 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19628 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19629 cat >conftest.$ac_ext <<_ACEOF
19630 #line $LINENO "configure"
19633 cat confdefs.h >>conftest.$ac_ext
19634 cat >>conftest.$ac_ext <<_ACEOF
19635 /* end confdefs.h. */
19636 $ac_includes_default
19637 #include <$ac_header>
19639 rm -f conftest.$ac_objext
19640 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19641 (eval $ac_compile) 2>&5
19643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19644 (exit $ac_status); } &&
19645 { ac_try='test -s conftest.$ac_objext'
19646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19647 (eval $ac_try) 2>&5
19649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19650 (exit $ac_status); }; }; then
19651 ac_header_compiler=yes
19653 echo "$as_me: failed program was:" >&5
19654 sed 's/^/| /' conftest.$ac_ext >&5
19656 ac_header_compiler=no
19658 rm -f conftest.$ac_objext conftest.$ac_ext
19659 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19660 echo "${ECHO_T}$ac_header_compiler" >&6
19662 # Is the header present?
19663 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19664 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19665 cat >conftest.$ac_ext <<_ACEOF
19666 #line $LINENO "configure"
19669 cat confdefs.h >>conftest.$ac_ext
19670 cat >>conftest.$ac_ext <<_ACEOF
19671 /* end confdefs.h. */
19672 #include <$ac_header>
19674 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19675 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19677 grep -v '^ *+' conftest.er1 >conftest.err
19679 cat conftest.err >&5
19680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19681 (exit $ac_status); } >/dev/null; then
19682 if test -s conftest.err; then
19683 ac_cpp_err=$ac_c_preproc_warn_flag
19690 if test -z "$ac_cpp_err"; then
19691 ac_header_preproc=yes
19693 echo "$as_me: failed program was:" >&5
19694 sed 's/^/| /' conftest.$ac_ext >&5
19696 ac_header_preproc=no
19698 rm -f conftest.err conftest.$ac_ext
19699 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19700 echo "${ECHO_T}$ac_header_preproc" >&6
19702 # So? What about this header?
19703 case $ac_header_compiler:$ac_header_preproc in
19705 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19706 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19707 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19708 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19711 ## ------------------------------------ ##
19712 ## Report this to bug-autoconf@gnu.org. ##
19713 ## ------------------------------------ ##
19716 sed "s/^/$as_me: WARNING: /" >&2
19719 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19720 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19721 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19722 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19723 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19724 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19727 ## ------------------------------------ ##
19728 ## Report this to bug-autoconf@gnu.org. ##
19729 ## ------------------------------------ ##
19732 sed "s/^/$as_me: WARNING: /" >&2
19735 echo "$as_me:$LINENO: checking for $ac_header" >&5
19736 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19737 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19738 echo $ECHO_N "(cached) $ECHO_C" >&6
19740 eval "$as_ac_Header=$ac_header_preproc"
19742 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19743 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19746 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19747 cat >>confdefs.h <<_ACEOF
19748 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19775 # called by mkstemp
19788 ac_header_dirent=no
19789 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
19790 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
19791 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
19792 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
19793 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19794 echo $ECHO_N "(cached) $ECHO_C" >&6
19796 cat >conftest.$ac_ext <<_ACEOF
19797 #line $LINENO "configure"
19800 cat confdefs.h >>conftest.$ac_ext
19801 cat >>conftest.$ac_ext <<_ACEOF
19802 /* end confdefs.h. */
19803 #include <sys/types.h>
19815 rm -f conftest.$ac_objext
19816 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19817 (eval $ac_compile) 2>&5
19819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19820 (exit $ac_status); } &&
19821 { ac_try='test -s conftest.$ac_objext'
19822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19823 (eval $ac_try) 2>&5
19825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19826 (exit $ac_status); }; }; then
19827 eval "$as_ac_Header=yes"
19829 echo "$as_me: failed program was:" >&5
19830 sed 's/^/| /' conftest.$ac_ext >&5
19832 eval "$as_ac_Header=no"
19834 rm -f conftest.$ac_objext conftest.$ac_ext
19836 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19837 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19838 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19839 cat >>confdefs.h <<_ACEOF
19840 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
19843 ac_header_dirent=$ac_hdr; break
19847 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
19848 if test $ac_header_dirent = dirent.h; then
19850 echo "$as_me:$LINENO: checking for library containing opendir" >&5
19851 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
19852 if test "${ac_cv_search_opendir+set}" = set; then
19853 echo $ECHO_N "(cached) $ECHO_C" >&6
19856 ac_func_search_save_LIBS=$LIBS
19857 ac_cv_search_opendir=no
19858 cat >conftest.$ac_ext <<_ACEOF
19859 #line $LINENO "configure"
19862 cat confdefs.h >>conftest.$ac_ext
19863 cat >>conftest.$ac_ext <<_ACEOF
19864 /* end confdefs.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. */
19881 rm -f conftest.$ac_objext conftest$ac_exeext
19882 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19883 (eval $ac_link) 2>&5
19885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19886 (exit $ac_status); } &&
19887 { ac_try='test -s conftest$ac_exeext'
19888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19889 (eval $ac_try) 2>&5
19891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19892 (exit $ac_status); }; }; then
19893 ac_cv_search_opendir='none required'
19895 echo "$as_me: failed program was:" >&5
19896 sed 's/^/| /' conftest.$ac_ext >&5
19899 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19900 if test "$ac_cv_search_opendir" = no; then
19901 for ac_lib in dir; do
19902 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19903 cat >conftest.$ac_ext <<_ACEOF
19904 #line $LINENO "configure"
19907 cat confdefs.h >>conftest.$ac_ext
19908 cat >>conftest.$ac_ext <<_ACEOF
19909 /* end confdefs.h. */
19911 /* Override any gcc2 internal prototype to avoid an error. */
19915 /* We use char because int might match the return type of a gcc2
19916 builtin and then its argument prototype would still apply. */
19926 rm -f conftest.$ac_objext conftest$ac_exeext
19927 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19928 (eval $ac_link) 2>&5
19930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19931 (exit $ac_status); } &&
19932 { ac_try='test -s conftest$ac_exeext'
19933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19934 (eval $ac_try) 2>&5
19936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19937 (exit $ac_status); }; }; then
19938 ac_cv_search_opendir="-l$ac_lib"; break
19940 echo "$as_me: failed program was:" >&5
19941 sed 's/^/| /' conftest.$ac_ext >&5
19944 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19947 LIBS=$ac_func_search_save_LIBS
19950 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
19951 echo "${ECHO_T}$ac_cv_search_opendir" >&6
19953 if test "$ac_cv_search_opendir" = no; then :
19956 if test "$ac_cv_search_opendir" = 'none required'; then :
19959 LIBS="$ac_cv_search_opendir $LIBS"
19966 echo "$as_me:$LINENO: checking for library containing opendir" >&5
19967 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
19968 if test "${ac_cv_search_opendir+set}" = set; then
19969 echo $ECHO_N "(cached) $ECHO_C" >&6
19972 ac_func_search_save_LIBS=$LIBS
19973 ac_cv_search_opendir=no
19974 cat >conftest.$ac_ext <<_ACEOF
19975 #line $LINENO "configure"
19978 cat confdefs.h >>conftest.$ac_ext
19979 cat >>conftest.$ac_ext <<_ACEOF
19980 /* end confdefs.h. */
19982 /* Override any gcc2 internal prototype to avoid an error. */
19986 /* We use char because int might match the return type of a gcc2
19987 builtin and then its argument prototype would still apply. */
19997 rm -f conftest.$ac_objext conftest$ac_exeext
19998 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19999 (eval $ac_link) 2>&5
20001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20002 (exit $ac_status); } &&
20003 { ac_try='test -s conftest$ac_exeext'
20004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20005 (eval $ac_try) 2>&5
20007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20008 (exit $ac_status); }; }; then
20009 ac_cv_search_opendir='none required'
20011 echo "$as_me: failed program was:" >&5
20012 sed 's/^/| /' conftest.$ac_ext >&5
20015 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20016 if test "$ac_cv_search_opendir" = no; then
20017 for ac_lib in x; do
20018 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20019 cat >conftest.$ac_ext <<_ACEOF
20020 #line $LINENO "configure"
20023 cat confdefs.h >>conftest.$ac_ext
20024 cat >>conftest.$ac_ext <<_ACEOF
20025 /* end confdefs.h. */
20027 /* Override any gcc2 internal prototype to avoid an error. */
20031 /* We use char because int might match the return type of a gcc2
20032 builtin and then its argument prototype would still apply. */
20042 rm -f conftest.$ac_objext conftest$ac_exeext
20043 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20044 (eval $ac_link) 2>&5
20046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20047 (exit $ac_status); } &&
20048 { ac_try='test -s conftest$ac_exeext'
20049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20050 (eval $ac_try) 2>&5
20052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20053 (exit $ac_status); }; }; then
20054 ac_cv_search_opendir="-l$ac_lib"; break
20056 echo "$as_me: failed program was:" >&5
20057 sed 's/^/| /' conftest.$ac_ext >&5
20060 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20063 LIBS=$ac_func_search_save_LIBS
20066 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20067 echo "${ECHO_T}$ac_cv_search_opendir" >&6
20069 if test "$ac_cv_search_opendir" = no; then :
20072 if test "$ac_cv_search_opendir" = 'none required'; then :
20075 LIBS="$ac_cv_search_opendir $LIBS"
20084 # include <dirent.h>
20085 #else /* not HAVE_DIRENT_H */
20086 # define dirent direct
20087 # if HAVE_SYS_NDIR_H
20088 # include <sys/ndir.h>
20089 # endif /* HAVE_SYS_NDIR_H */
20090 # if HAVE_SYS_DIR_H
20091 # include <sys/dir.h>
20092 # endif /* HAVE_SYS_DIR_H */
20095 # endif /* HAVE_NDIR_H */
20096 #endif /* HAVE_DIRENT_H */
20099 for ac_func in dirfd
20101 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20102 echo "$as_me:$LINENO: checking for $ac_func" >&5
20103 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20104 if eval "test \"\${$as_ac_var+set}\" = set"; then
20105 echo $ECHO_N "(cached) $ECHO_C" >&6
20107 cat >conftest.$ac_ext <<_ACEOF
20108 #line $LINENO "configure"
20111 cat confdefs.h >>conftest.$ac_ext
20112 cat >>conftest.$ac_ext <<_ACEOF
20113 /* end confdefs.h. */
20114 /* System header to define __stub macros and hopefully few prototypes,
20115 which can conflict with char $ac_func (); below.
20116 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20117 <limits.h> exists even on freestanding compilers. */
20119 # include <limits.h>
20121 # include <assert.h>
20123 /* Override any gcc2 internal prototype to avoid an error. */
20128 /* We use char because int might match the return type of a gcc2
20129 builtin and then its argument prototype would still apply. */
20131 /* The GNU C library defines this for functions which it implements
20132 to always fail with ENOSYS. Some functions are actually named
20133 something starting with __ and the normal name is an alias. */
20134 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20137 char (*f) () = $ac_func;
20146 return f != $ac_func;
20151 rm -f conftest.$ac_objext conftest$ac_exeext
20152 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20153 (eval $ac_link) 2>&5
20155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20156 (exit $ac_status); } &&
20157 { ac_try='test -s conftest$ac_exeext'
20158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20159 (eval $ac_try) 2>&5
20161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20162 (exit $ac_status); }; }; then
20163 eval "$as_ac_var=yes"
20165 echo "$as_me: failed program was:" >&5
20166 sed 's/^/| /' conftest.$ac_ext >&5
20168 eval "$as_ac_var=no"
20170 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20172 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20173 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20174 if test `eval echo '${'$as_ac_var'}'` = yes; then
20175 cat >>confdefs.h <<_ACEOF
20176 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20182 echo "$as_me:$LINENO: checking whether dirfd is declared" >&5
20183 echo $ECHO_N "checking whether dirfd is declared... $ECHO_C" >&6
20184 if test "${ac_cv_have_decl_dirfd+set}" = set; then
20185 echo $ECHO_N "(cached) $ECHO_C" >&6
20187 cat >conftest.$ac_ext <<_ACEOF
20188 #line $LINENO "configure"
20191 cat confdefs.h >>conftest.$ac_ext
20192 cat >>conftest.$ac_ext <<_ACEOF
20193 /* end confdefs.h. */
20200 char *p = (char *) dirfd;
20207 rm -f conftest.$ac_objext
20208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20209 (eval $ac_compile) 2>&5
20211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20212 (exit $ac_status); } &&
20213 { ac_try='test -s conftest.$ac_objext'
20214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20215 (eval $ac_try) 2>&5
20217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20218 (exit $ac_status); }; }; then
20219 ac_cv_have_decl_dirfd=yes
20221 echo "$as_me: failed program was:" >&5
20222 sed 's/^/| /' conftest.$ac_ext >&5
20224 ac_cv_have_decl_dirfd=no
20226 rm -f conftest.$ac_objext conftest.$ac_ext
20228 echo "$as_me:$LINENO: result: $ac_cv_have_decl_dirfd" >&5
20229 echo "${ECHO_T}$ac_cv_have_decl_dirfd" >&6
20230 if test $ac_cv_have_decl_dirfd = yes; then
20232 cat >>confdefs.h <<_ACEOF
20233 #define HAVE_DECL_DIRFD 1
20238 cat >>confdefs.h <<_ACEOF
20239 #define HAVE_DECL_DIRFD 0
20247 echo "$as_me:$LINENO: checking whether dirfd is a macro" >&5
20248 echo $ECHO_N "checking whether dirfd is a macro... $ECHO_C" >&6
20249 if test "${jm_cv_func_dirfd_macro+set}" = set; then
20250 echo $ECHO_N "(cached) $ECHO_C" >&6
20252 cat >conftest.$ac_ext <<_ACEOF
20253 #line $LINENO "configure"
20256 cat confdefs.h >>conftest.$ac_ext
20257 cat >>conftest.$ac_ext <<_ACEOF
20258 /* end confdefs.h. */
20261 dirent_header_defines_dirfd
20264 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20265 $EGREP "dirent_header_defines_dirfd" >/dev/null 2>&1; then
20266 jm_cv_func_dirfd_macro=yes
20268 jm_cv_func_dirfd_macro=no
20273 echo "$as_me:$LINENO: result: $jm_cv_func_dirfd_macro" >&5
20274 echo "${ECHO_T}$jm_cv_func_dirfd_macro" >&6
20276 # Use the replacement only if we have no function, macro,
20277 # or declaration with that name.
20278 if test $ac_cv_func_dirfd,$ac_cv_have_decl_dirfd,$jm_cv_func_dirfd_macro \
20281 for ac_func in dirfd
20283 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20284 echo "$as_me:$LINENO: checking for $ac_func" >&5
20285 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20286 if eval "test \"\${$as_ac_var+set}\" = set"; then
20287 echo $ECHO_N "(cached) $ECHO_C" >&6
20289 cat >conftest.$ac_ext <<_ACEOF
20290 #line $LINENO "configure"
20293 cat confdefs.h >>conftest.$ac_ext
20294 cat >>conftest.$ac_ext <<_ACEOF
20295 /* end confdefs.h. */
20296 /* System header to define __stub macros and hopefully few prototypes,
20297 which can conflict with char $ac_func (); below.
20298 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20299 <limits.h> exists even on freestanding compilers. */
20301 # include <limits.h>
20303 # include <assert.h>
20305 /* Override any gcc2 internal prototype to avoid an error. */
20310 /* We use char because int might match the return type of a gcc2
20311 builtin and then its argument prototype would still apply. */
20313 /* The GNU C library defines this for functions which it implements
20314 to always fail with ENOSYS. Some functions are actually named
20315 something starting with __ and the normal name is an alias. */
20316 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20319 char (*f) () = $ac_func;
20328 return f != $ac_func;
20333 rm -f conftest.$ac_objext conftest$ac_exeext
20334 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20335 (eval $ac_link) 2>&5
20337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20338 (exit $ac_status); } &&
20339 { ac_try='test -s conftest$ac_exeext'
20340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20341 (eval $ac_try) 2>&5
20343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20344 (exit $ac_status); }; }; then
20345 eval "$as_ac_var=yes"
20347 echo "$as_me: failed program was:" >&5
20348 sed 's/^/| /' 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
20362 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
20367 echo "$as_me:$LINENO: checking how to get the file descriptor associated with an open DIR*" >&5
20368 echo $ECHO_N "checking how to get the file descriptor associated with an open DIR*... $ECHO_C" >&6
20369 if test "${ac_cv_sys_dir_fd_member_name+set}" = set; then
20370 echo $ECHO_N "(cached) $ECHO_C" >&6
20373 dirfd_save_CFLAGS=$CFLAGS
20374 for ac_expr in d_fd dd_fd; do
20376 CFLAGS="$CFLAGS -DDIR_FD_MEMBER_NAME=$ac_expr"
20377 cat >conftest.$ac_ext <<_ACEOF
20378 #line $LINENO "configure"
20381 cat confdefs.h >>conftest.$ac_ext
20382 cat >>conftest.$ac_ext <<_ACEOF
20383 /* end confdefs.h. */
20389 DIR *dir_p = opendir("."); (void) dir_p->DIR_FD_MEMBER_NAME;
20394 rm -f conftest.$ac_objext
20395 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20396 (eval $ac_compile) 2>&5
20398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20399 (exit $ac_status); } &&
20400 { ac_try='test -s conftest.$ac_objext'
20401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20402 (eval $ac_try) 2>&5
20404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20405 (exit $ac_status); }; }; then
20409 echo "$as_me: failed program was:" >&5
20410 sed 's/^/| /' conftest.$ac_ext >&5
20413 rm -f conftest.$ac_objext conftest.$ac_ext
20414 CFLAGS=$dirfd_save_CFLAGS
20415 test "$dir_fd_found" = yes && break
20417 test "$dir_fd_found" = yes || ac_expr=-1
20419 ac_cv_sys_dir_fd_member_name=$ac_expr
20423 echo "$as_me:$LINENO: result: $ac_cv_sys_dir_fd_member_name" >&5
20424 echo "${ECHO_T}$ac_cv_sys_dir_fd_member_name" >&6
20425 if test $ac_cv_have_decl_dirfd = no; then
20427 cat >>confdefs.h <<_ACEOF
20428 #define DIR_FD_MEMBER_NAME $ac_cv_sys_dir_fd_member_name
20437 for ac_header in sys/acl.h
20439 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20440 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20441 echo "$as_me:$LINENO: checking for $ac_header" >&5
20442 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20443 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20444 echo $ECHO_N "(cached) $ECHO_C" >&6
20446 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20447 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20449 # Is the header compilable?
20450 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20451 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20452 cat >conftest.$ac_ext <<_ACEOF
20453 #line $LINENO "configure"
20456 cat confdefs.h >>conftest.$ac_ext
20457 cat >>conftest.$ac_ext <<_ACEOF
20458 /* end confdefs.h. */
20459 $ac_includes_default
20460 #include <$ac_header>
20462 rm -f conftest.$ac_objext
20463 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20464 (eval $ac_compile) 2>&5
20466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20467 (exit $ac_status); } &&
20468 { ac_try='test -s conftest.$ac_objext'
20469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20470 (eval $ac_try) 2>&5
20472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20473 (exit $ac_status); }; }; then
20474 ac_header_compiler=yes
20476 echo "$as_me: failed program was:" >&5
20477 sed 's/^/| /' conftest.$ac_ext >&5
20479 ac_header_compiler=no
20481 rm -f conftest.$ac_objext conftest.$ac_ext
20482 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20483 echo "${ECHO_T}$ac_header_compiler" >&6
20485 # Is the header present?
20486 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20487 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20488 cat >conftest.$ac_ext <<_ACEOF
20489 #line $LINENO "configure"
20492 cat confdefs.h >>conftest.$ac_ext
20493 cat >>conftest.$ac_ext <<_ACEOF
20494 /* end confdefs.h. */
20495 #include <$ac_header>
20497 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20498 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20500 grep -v '^ *+' conftest.er1 >conftest.err
20502 cat conftest.err >&5
20503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20504 (exit $ac_status); } >/dev/null; then
20505 if test -s conftest.err; then
20506 ac_cpp_err=$ac_c_preproc_warn_flag
20513 if test -z "$ac_cpp_err"; then
20514 ac_header_preproc=yes
20516 echo "$as_me: failed program was:" >&5
20517 sed 's/^/| /' conftest.$ac_ext >&5
20519 ac_header_preproc=no
20521 rm -f conftest.err conftest.$ac_ext
20522 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20523 echo "${ECHO_T}$ac_header_preproc" >&6
20525 # So? What about this header?
20526 case $ac_header_compiler:$ac_header_preproc in
20528 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20529 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20530 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20531 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20534 ## ------------------------------------ ##
20535 ## Report this to bug-autoconf@gnu.org. ##
20536 ## ------------------------------------ ##
20539 sed "s/^/$as_me: WARNING: /" >&2
20542 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20543 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20544 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20545 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20546 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20547 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20550 ## ------------------------------------ ##
20551 ## Report this to bug-autoconf@gnu.org. ##
20552 ## ------------------------------------ ##
20555 sed "s/^/$as_me: WARNING: /" >&2
20558 echo "$as_me:$LINENO: checking for $ac_header" >&5
20559 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20560 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20561 echo $ECHO_N "(cached) $ECHO_C" >&6
20563 eval "$as_ac_Header=$ac_header_preproc"
20565 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20566 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20569 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20570 cat >>confdefs.h <<_ACEOF
20571 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20581 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20582 echo "$as_me:$LINENO: checking for $ac_func" >&5
20583 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20584 if eval "test \"\${$as_ac_var+set}\" = set"; then
20585 echo $ECHO_N "(cached) $ECHO_C" >&6
20587 cat >conftest.$ac_ext <<_ACEOF
20588 #line $LINENO "configure"
20591 cat confdefs.h >>conftest.$ac_ext
20592 cat >>conftest.$ac_ext <<_ACEOF
20593 /* end confdefs.h. */
20594 /* System header to define __stub macros and hopefully few prototypes,
20595 which can conflict with char $ac_func (); below.
20596 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20597 <limits.h> exists even on freestanding compilers. */
20599 # include <limits.h>
20601 # include <assert.h>
20603 /* Override any gcc2 internal prototype to avoid an error. */
20608 /* We use char because int might match the return type of a gcc2
20609 builtin and then its argument prototype would still apply. */
20611 /* The GNU C library defines this for functions which it implements
20612 to always fail with ENOSYS. Some functions are actually named
20613 something starting with __ and the normal name is an alias. */
20614 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20617 char (*f) () = $ac_func;
20626 return f != $ac_func;
20631 rm -f conftest.$ac_objext conftest$ac_exeext
20632 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20633 (eval $ac_link) 2>&5
20635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20636 (exit $ac_status); } &&
20637 { ac_try='test -s conftest$ac_exeext'
20638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20639 (eval $ac_try) 2>&5
20641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20642 (exit $ac_status); }; }; then
20643 eval "$as_ac_var=yes"
20645 echo "$as_me: failed program was:" >&5
20646 sed 's/^/| /' conftest.$ac_ext >&5
20648 eval "$as_ac_var=no"
20650 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20652 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20653 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20654 if test `eval echo '${'$as_ac_var'}'` = yes; then
20655 cat >>confdefs.h <<_ACEOF
20656 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20662 echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
20663 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
20664 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
20665 echo $ECHO_N "(cached) $ECHO_C" >&6
20667 rm -f conftest.sym conftest.file
20668 echo >conftest.file
20669 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
20670 if test "$cross_compiling" = yes; then
20671 ac_cv_func_lstat_dereferences_slashed_symlink=no
20673 cat >conftest.$ac_ext <<_ACEOF
20674 #line $LINENO "configure"
20677 cat confdefs.h >>conftest.$ac_ext
20678 cat >>conftest.$ac_ext <<_ACEOF
20679 /* end confdefs.h. */
20680 $ac_includes_default
20685 /* Linux will dereference the symlink and fail.
20686 That is better in the sense that it means we will not
20687 have to compile and use the lstat wrapper. */
20688 exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
20693 rm -f conftest$ac_exeext
20694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20695 (eval $ac_link) 2>&5
20697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20698 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20700 (eval $ac_try) 2>&5
20702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20703 (exit $ac_status); }; }; then
20704 ac_cv_func_lstat_dereferences_slashed_symlink=yes
20706 echo "$as_me: program exited with status $ac_status" >&5
20707 echo "$as_me: failed program was:" >&5
20708 sed 's/^/| /' conftest.$ac_ext >&5
20710 ( exit $ac_status )
20711 ac_cv_func_lstat_dereferences_slashed_symlink=no
20713 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20716 # If the `ln -s' command failed, then we probably don't even
20717 # have an lstat function.
20718 ac_cv_func_lstat_dereferences_slashed_symlink=no
20720 rm -f conftest.sym conftest.file
20723 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
20724 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
20726 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
20728 cat >>confdefs.h <<_ACEOF
20729 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
20733 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
20734 LIBOBJS="$LIBOBJS lstat.$ac_objext"
20739 echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
20740 echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6
20741 if test "${jm_cv_func_lstat_empty_string_bug+set}" = set; then
20742 echo $ECHO_N "(cached) $ECHO_C" >&6
20744 if test "$cross_compiling" = yes; then
20745 jm_cv_func_lstat_empty_string_bug=yes
20747 cat >conftest.$ac_ext <<_ACEOF
20748 #line $LINENO "configure"
20751 cat confdefs.h >>conftest.$ac_ext
20752 cat >>conftest.$ac_ext <<_ACEOF
20753 /* end confdefs.h. */
20755 # include <sys/types.h>
20756 # include <sys/stat.h>
20762 exit (lstat ("", &sbuf) ? 1 : 0);
20766 rm -f conftest$ac_exeext
20767 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20768 (eval $ac_link) 2>&5
20770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20771 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20773 (eval $ac_try) 2>&5
20775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20776 (exit $ac_status); }; }; then
20777 jm_cv_func_lstat_empty_string_bug=yes
20779 echo "$as_me: program exited with status $ac_status" >&5
20780 echo "$as_me: failed program was:" >&5
20781 sed 's/^/| /' conftest.$ac_ext >&5
20783 ( exit $ac_status )
20784 jm_cv_func_lstat_empty_string_bug=no
20786 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20790 echo "$as_me:$LINENO: result: $jm_cv_func_lstat_empty_string_bug" >&5
20791 echo "${ECHO_T}$jm_cv_func_lstat_empty_string_bug" >&6
20792 if test $jm_cv_func_lstat_empty_string_bug = yes; then
20793 LIBOBJS="$LIBOBJS lstat.$ac_objext"
20795 cat >>confdefs.h <<\_ACEOF
20796 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
20806 for ac_header in sys/param.h
20808 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20809 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20810 echo "$as_me:$LINENO: checking for $ac_header" >&5
20811 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20812 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20813 echo $ECHO_N "(cached) $ECHO_C" >&6
20815 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20816 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20818 # Is the header compilable?
20819 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20820 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20821 cat >conftest.$ac_ext <<_ACEOF
20822 #line $LINENO "configure"
20825 cat confdefs.h >>conftest.$ac_ext
20826 cat >>conftest.$ac_ext <<_ACEOF
20827 /* end confdefs.h. */
20828 $ac_includes_default
20829 #include <$ac_header>
20831 rm -f conftest.$ac_objext
20832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20833 (eval $ac_compile) 2>&5
20835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20836 (exit $ac_status); } &&
20837 { ac_try='test -s conftest.$ac_objext'
20838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20839 (eval $ac_try) 2>&5
20841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20842 (exit $ac_status); }; }; then
20843 ac_header_compiler=yes
20845 echo "$as_me: failed program was:" >&5
20846 sed 's/^/| /' conftest.$ac_ext >&5
20848 ac_header_compiler=no
20850 rm -f conftest.$ac_objext conftest.$ac_ext
20851 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20852 echo "${ECHO_T}$ac_header_compiler" >&6
20854 # Is the header present?
20855 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20856 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20857 cat >conftest.$ac_ext <<_ACEOF
20858 #line $LINENO "configure"
20861 cat confdefs.h >>conftest.$ac_ext
20862 cat >>conftest.$ac_ext <<_ACEOF
20863 /* end confdefs.h. */
20864 #include <$ac_header>
20866 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20867 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20869 grep -v '^ *+' conftest.er1 >conftest.err
20871 cat conftest.err >&5
20872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20873 (exit $ac_status); } >/dev/null; then
20874 if test -s conftest.err; then
20875 ac_cpp_err=$ac_c_preproc_warn_flag
20882 if test -z "$ac_cpp_err"; then
20883 ac_header_preproc=yes
20885 echo "$as_me: failed program was:" >&5
20886 sed 's/^/| /' conftest.$ac_ext >&5
20888 ac_header_preproc=no
20890 rm -f conftest.err conftest.$ac_ext
20891 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20892 echo "${ECHO_T}$ac_header_preproc" >&6
20894 # So? What about this header?
20895 case $ac_header_compiler:$ac_header_preproc in
20897 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20898 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20899 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20900 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20903 ## ------------------------------------ ##
20904 ## Report this to bug-autoconf@gnu.org. ##
20905 ## ------------------------------------ ##
20908 sed "s/^/$as_me: WARNING: /" >&2
20911 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20912 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20913 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20914 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20915 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20916 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20919 ## ------------------------------------ ##
20920 ## Report this to bug-autoconf@gnu.org. ##
20921 ## ------------------------------------ ##
20924 sed "s/^/$as_me: WARNING: /" >&2
20927 echo "$as_me:$LINENO: checking for $ac_header" >&5
20928 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20929 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20930 echo $ECHO_N "(cached) $ECHO_C" >&6
20932 eval "$as_ac_Header=$ac_header_preproc"
20934 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20935 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20938 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20939 cat >>confdefs.h <<_ACEOF
20940 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20947 echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5
20948 echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6
20949 if test "${ac_cv_have_decl_stpcpy+set}" = set; then
20950 echo $ECHO_N "(cached) $ECHO_C" >&6
20952 cat >conftest.$ac_ext <<_ACEOF
20953 #line $LINENO "configure"
20956 cat confdefs.h >>conftest.$ac_ext
20957 cat >>conftest.$ac_ext <<_ACEOF
20958 /* end confdefs.h. */
20959 $ac_includes_default
20964 char *p = (char *) stpcpy;
20971 rm -f conftest.$ac_objext
20972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20973 (eval $ac_compile) 2>&5
20975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20976 (exit $ac_status); } &&
20977 { ac_try='test -s conftest.$ac_objext'
20978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20979 (eval $ac_try) 2>&5
20981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20982 (exit $ac_status); }; }; then
20983 ac_cv_have_decl_stpcpy=yes
20985 echo "$as_me: failed program was:" >&5
20986 sed 's/^/| /' conftest.$ac_ext >&5
20988 ac_cv_have_decl_stpcpy=no
20990 rm -f conftest.$ac_objext conftest.$ac_ext
20992 echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5
20993 echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6
20994 if test $ac_cv_have_decl_stpcpy = yes; then
20996 cat >>confdefs.h <<_ACEOF
20997 #define HAVE_DECL_STPCPY 1
21002 cat >>confdefs.h <<_ACEOF
21003 #define HAVE_DECL_STPCPY 0
21011 # In the event that we have to use the replacement ftw.c,
21012 # see if we'll also need the replacement tsearch.c.
21013 echo "$as_me:$LINENO: checking for tdestroy" >&5
21014 echo $ECHO_N "checking for tdestroy... $ECHO_C" >&6
21015 if test "${ac_cv_func_tdestroy+set}" = set; then
21016 echo $ECHO_N "(cached) $ECHO_C" >&6
21018 cat >conftest.$ac_ext <<_ACEOF
21019 #line $LINENO "configure"
21022 cat confdefs.h >>conftest.$ac_ext
21023 cat >>conftest.$ac_ext <<_ACEOF
21024 /* end confdefs.h. */
21025 /* System header to define __stub macros and hopefully few prototypes,
21026 which can conflict with char tdestroy (); below.
21027 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21028 <limits.h> exists even on freestanding compilers. */
21030 # include <limits.h>
21032 # include <assert.h>
21034 /* Override any gcc2 internal prototype to avoid an error. */
21039 /* We use char because int might match the return type of a gcc2
21040 builtin and then its argument prototype would still apply. */
21042 /* The GNU C library defines this for functions which it implements
21043 to always fail with ENOSYS. Some functions are actually named
21044 something starting with __ and the normal name is an alias. */
21045 #if defined (__stub_tdestroy) || defined (__stub___tdestroy)
21048 char (*f) () = tdestroy;
21057 return f != tdestroy;
21062 rm -f conftest.$ac_objext conftest$ac_exeext
21063 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21064 (eval $ac_link) 2>&5
21066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21067 (exit $ac_status); } &&
21068 { ac_try='test -s conftest$ac_exeext'
21069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21070 (eval $ac_try) 2>&5
21072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21073 (exit $ac_status); }; }; then
21074 ac_cv_func_tdestroy=yes
21076 echo "$as_me: failed program was:" >&5
21077 sed 's/^/| /' conftest.$ac_ext >&5
21079 ac_cv_func_tdestroy=no
21081 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21083 echo "$as_me:$LINENO: result: $ac_cv_func_tdestroy" >&5
21084 echo "${ECHO_T}$ac_cv_func_tdestroy" >&6
21085 if test $ac_cv_func_tdestroy = yes; then
21092 echo "$as_me:$LINENO: checking for ftw/FTW_CHDIR that informs callback of failed chdir" >&5
21093 echo $ECHO_N "checking for ftw/FTW_CHDIR that informs callback of failed chdir... $ECHO_C" >&6
21094 if test "${ac_cv_func_ftw_working+set}" = set; then
21095 echo $ECHO_N "(cached) $ECHO_C" >&6
21098 # The following test would fail prior to glibc-2.3.2, because `depth'
21099 # would be 2 rather than 4. Of course, now that we require FTW_DCH
21100 # and FTW_DCHP, this test fails even with GNU libc's fixed ftw.
21101 mkdir -p conftest.dir/a/b/c
21102 if test "$cross_compiling" = yes; then
21103 ac_cv_func_ftw_working=no
21105 cat >conftest.$ac_ext <<_ACEOF
21106 #line $LINENO "configure"
21109 cat confdefs.h >>conftest.$ac_ext
21110 cat >>conftest.$ac_ext <<_ACEOF
21111 /* end confdefs.h. */
21113 #include <string.h>
21114 #include <stdlib.h>
21117 static char *_f[] = { "conftest.dir", "conftest.dir/a",
21118 "conftest.dir/a/b", "conftest.dir/a/b/c" };
21119 static char **p = _f;
21123 cb (const char *file, const struct stat *sb, int file_type, struct FTW *info)
21125 if (strcmp (file, *p++) != 0)
21134 /* Require these symbols, too. */
21138 int err = nftw ("conftest.dir", cb, 30, FTW_PHYS | FTW_MOUNT | FTW_CHDIR);
21139 exit ((err == 0 && depth == 4) ? 0 : 1);
21143 rm -f conftest$ac_exeext
21144 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21145 (eval $ac_link) 2>&5
21147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21148 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21150 (eval $ac_try) 2>&5
21152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21153 (exit $ac_status); }; }; then
21154 ac_cv_func_ftw_working=yes
21156 echo "$as_me: program exited with status $ac_status" >&5
21157 echo "$as_me: failed program was:" >&5
21158 sed 's/^/| /' conftest.$ac_ext >&5
21160 ( exit $ac_status )
21161 ac_cv_func_ftw_working=no
21163 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21166 echo "$as_me:$LINENO: result: $ac_cv_func_ftw_working" >&5
21167 echo "${ECHO_T}$ac_cv_func_ftw_working" >&6
21168 rm -rf conftest.dir
21169 if test $ac_cv_func_ftw_working = no; then
21170 LIBOBJS="$LIBOBJS ftw.$ac_objext"
21171 ac_config_links="$ac_config_links $ac_config_libobj_dir/ftw.h:$ac_config_libobj_dir/ftw_.h"
21173 # Add tsearch.o IFF we have to use the replacement ftw.c.
21174 if test -n "$need_tdestroy"; then
21175 LIBOBJS="$LIBOBJS tsearch.$ac_objext"
21176 # Link search.h to search_.h if we use the replacement tsearch.c.
21177 ac_config_links="$ac_config_links $ac_config_libobj_dir/search.h:$ac_config_libobj_dir/search_.h"
21185 for ac_func in lchown
21187 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21188 echo "$as_me:$LINENO: checking for $ac_func" >&5
21189 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21190 if eval "test \"\${$as_ac_var+set}\" = set"; then
21191 echo $ECHO_N "(cached) $ECHO_C" >&6
21193 cat >conftest.$ac_ext <<_ACEOF
21194 #line $LINENO "configure"
21197 cat confdefs.h >>conftest.$ac_ext
21198 cat >>conftest.$ac_ext <<_ACEOF
21199 /* end confdefs.h. */
21200 /* System header to define __stub macros and hopefully few prototypes,
21201 which can conflict with char $ac_func (); below.
21202 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21203 <limits.h> exists even on freestanding compilers. */
21205 # include <limits.h>
21207 # include <assert.h>
21209 /* Override any gcc2 internal prototype to avoid an error. */
21214 /* We use char because int might match the return type of a gcc2
21215 builtin and then its argument prototype would still apply. */
21217 /* The GNU C library defines this for functions which it implements
21218 to always fail with ENOSYS. Some functions are actually named
21219 something starting with __ and the normal name is an alias. */
21220 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21223 char (*f) () = $ac_func;
21232 return f != $ac_func;
21237 rm -f conftest.$ac_objext conftest$ac_exeext
21238 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21239 (eval $ac_link) 2>&5
21241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21242 (exit $ac_status); } &&
21243 { ac_try='test -s conftest$ac_exeext'
21244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21245 (eval $ac_try) 2>&5
21247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21248 (exit $ac_status); }; }; then
21249 eval "$as_ac_var=yes"
21251 echo "$as_me: failed program was:" >&5
21252 sed 's/^/| /' conftest.$ac_ext >&5
21254 eval "$as_ac_var=no"
21256 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21258 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21259 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21260 if test `eval echo '${'$as_ac_var'}'` = yes; then
21261 cat >>confdefs.h <<_ACEOF
21262 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21266 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
21272 echo "$as_me:$LINENO: checking for rmdir-not-empty errno value" >&5
21273 echo $ECHO_N "checking for rmdir-not-empty errno value... $ECHO_C" >&6
21274 if test "${fetish_cv_func_rmdir_errno_not_empty+set}" = set; then
21275 echo $ECHO_N "(cached) $ECHO_C" >&6
21278 # Arrange for deletion of the temporary directory this test creates.
21279 ac_clean_files="$ac_clean_files confdir2"
21280 mkdir confdir2; : > confdir2/file
21281 if test "$cross_compiling" = yes; then
21282 fetish_cv_func_rmdir_errno_not_empty=ENOTEMPTY
21285 cat >conftest.$ac_ext <<_ACEOF
21286 #line $LINENO "configure"
21289 cat confdefs.h >>conftest.$ac_ext
21290 cat >>conftest.$ac_ext <<_ACEOF
21291 /* end confdefs.h. */
21302 rmdir ("confdir2");
21304 s = fopen ("confdir2/errno", "w");
21305 fprintf (s, "%d\n", val);
21310 rm -f conftest$ac_exeext
21311 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21312 (eval $ac_link) 2>&5
21314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21315 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21317 (eval $ac_try) 2>&5
21319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21320 (exit $ac_status); }; }; then
21321 fetish_cv_func_rmdir_errno_not_empty=`cat confdir2/errno`
21323 echo "$as_me: program exited with status $ac_status" >&5
21324 echo "$as_me: failed program was:" >&5
21325 sed 's/^/| /' conftest.$ac_ext >&5
21327 ( exit $ac_status )
21328 fetish_cv_func_rmdir_errno_not_empty='configure error in rmdir-errno.m4'
21330 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21335 echo "$as_me:$LINENO: result: $fetish_cv_func_rmdir_errno_not_empty" >&5
21336 echo "${ECHO_T}$fetish_cv_func_rmdir_errno_not_empty" >&6
21339 cat >>confdefs.h <<_ACEOF
21340 #define RMDIR_ERRNO_NOT_EMPTY $fetish_cv_func_rmdir_errno_not_empty
21344 test -z "$ac_cv_header_unistd_h" \
21346 for ac_header in unistd.h
21348 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21349 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21350 echo "$as_me:$LINENO: checking for $ac_header" >&5
21351 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21352 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21353 echo $ECHO_N "(cached) $ECHO_C" >&6
21355 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21356 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21358 # Is the header compilable?
21359 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21360 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21361 cat >conftest.$ac_ext <<_ACEOF
21362 #line $LINENO "configure"
21365 cat confdefs.h >>conftest.$ac_ext
21366 cat >>conftest.$ac_ext <<_ACEOF
21367 /* end confdefs.h. */
21368 $ac_includes_default
21369 #include <$ac_header>
21371 rm -f conftest.$ac_objext
21372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21373 (eval $ac_compile) 2>&5
21375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21376 (exit $ac_status); } &&
21377 { ac_try='test -s conftest.$ac_objext'
21378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21379 (eval $ac_try) 2>&5
21381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21382 (exit $ac_status); }; }; then
21383 ac_header_compiler=yes
21385 echo "$as_me: failed program was:" >&5
21386 sed 's/^/| /' conftest.$ac_ext >&5
21388 ac_header_compiler=no
21390 rm -f conftest.$ac_objext conftest.$ac_ext
21391 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21392 echo "${ECHO_T}$ac_header_compiler" >&6
21394 # Is the header present?
21395 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21396 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21397 cat >conftest.$ac_ext <<_ACEOF
21398 #line $LINENO "configure"
21401 cat confdefs.h >>conftest.$ac_ext
21402 cat >>conftest.$ac_ext <<_ACEOF
21403 /* end confdefs.h. */
21404 #include <$ac_header>
21406 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21407 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21409 grep -v '^ *+' conftest.er1 >conftest.err
21411 cat conftest.err >&5
21412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21413 (exit $ac_status); } >/dev/null; then
21414 if test -s conftest.err; then
21415 ac_cpp_err=$ac_c_preproc_warn_flag
21422 if test -z "$ac_cpp_err"; then
21423 ac_header_preproc=yes
21425 echo "$as_me: failed program was:" >&5
21426 sed 's/^/| /' conftest.$ac_ext >&5
21428 ac_header_preproc=no
21430 rm -f conftest.err conftest.$ac_ext
21431 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21432 echo "${ECHO_T}$ac_header_preproc" >&6
21434 # So? What about this header?
21435 case $ac_header_compiler:$ac_header_preproc in
21437 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21438 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21439 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21440 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21443 ## ------------------------------------ ##
21444 ## Report this to bug-autoconf@gnu.org. ##
21445 ## ------------------------------------ ##
21448 sed "s/^/$as_me: WARNING: /" >&2
21451 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21452 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21453 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21454 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21455 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21456 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21459 ## ------------------------------------ ##
21460 ## Report this to bug-autoconf@gnu.org. ##
21461 ## ------------------------------------ ##
21464 sed "s/^/$as_me: WARNING: /" >&2
21467 echo "$as_me:$LINENO: checking for $ac_header" >&5
21468 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21469 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21470 echo $ECHO_N "(cached) $ECHO_C" >&6
21472 eval "$as_ac_Header=$ac_header_preproc"
21474 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21475 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21478 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21479 cat >>confdefs.h <<_ACEOF
21480 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21487 echo "$as_me:$LINENO: checking for working chown" >&5
21488 echo $ECHO_N "checking for working chown... $ECHO_C" >&6
21489 if test "${jm_cv_func_working_chown+set}" = set; then
21490 echo $ECHO_N "(cached) $ECHO_C" >&6
21492 if test "$cross_compiling" = yes; then
21493 jm_cv_func_working_chown=no
21495 cat >conftest.$ac_ext <<_ACEOF
21496 #line $LINENO "configure"
21499 cat confdefs.h >>conftest.$ac_ext
21500 cat >>conftest.$ac_ext <<_ACEOF
21501 /* end confdefs.h. */
21503 # include <sys/types.h>
21504 # include <sys/stat.h>
21505 # include <fcntl.h>
21506 # ifdef HAVE_UNISTD_H
21507 # include <unistd.h>
21513 char *f = "conftest.chown";
21514 struct stat before, after;
21516 if (creat (f, 0600) < 0)
21518 if (stat (f, &before) < 0)
21520 if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
21522 if (stat (f, &after) < 0)
21524 exit ((before.st_uid == after.st_uid
21525 && before.st_gid == after.st_gid) ? 0 : 1);
21529 rm -f conftest$ac_exeext
21530 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21531 (eval $ac_link) 2>&5
21533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21534 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21536 (eval $ac_try) 2>&5
21538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21539 (exit $ac_status); }; }; then
21540 jm_cv_func_working_chown=yes
21542 echo "$as_me: program exited with status $ac_status" >&5
21543 echo "$as_me: failed program was:" >&5
21544 sed 's/^/| /' conftest.$ac_ext >&5
21546 ( exit $ac_status )
21547 jm_cv_func_working_chown=no
21549 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21553 echo "$as_me:$LINENO: result: $jm_cv_func_working_chown" >&5
21554 echo "${ECHO_T}$jm_cv_func_working_chown" >&6
21555 if test $jm_cv_func_working_chown = no; then
21556 LIBOBJS="$LIBOBJS chown.$ac_objext"
21558 cat >>confdefs.h <<\_ACEOF
21559 #define chown rpl_chown
21566 for ac_header in sys/time.h unistd.h
21568 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21569 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21570 echo "$as_me:$LINENO: checking for $ac_header" >&5
21571 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21572 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21573 echo $ECHO_N "(cached) $ECHO_C" >&6
21575 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21576 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21578 # Is the header compilable?
21579 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21580 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21581 cat >conftest.$ac_ext <<_ACEOF
21582 #line $LINENO "configure"
21585 cat confdefs.h >>conftest.$ac_ext
21586 cat >>conftest.$ac_ext <<_ACEOF
21587 /* end confdefs.h. */
21588 $ac_includes_default
21589 #include <$ac_header>
21591 rm -f conftest.$ac_objext
21592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21593 (eval $ac_compile) 2>&5
21595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21596 (exit $ac_status); } &&
21597 { ac_try='test -s conftest.$ac_objext'
21598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21599 (eval $ac_try) 2>&5
21601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21602 (exit $ac_status); }; }; then
21603 ac_header_compiler=yes
21605 echo "$as_me: failed program was:" >&5
21606 sed 's/^/| /' conftest.$ac_ext >&5
21608 ac_header_compiler=no
21610 rm -f conftest.$ac_objext conftest.$ac_ext
21611 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21612 echo "${ECHO_T}$ac_header_compiler" >&6
21614 # Is the header present?
21615 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21616 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21617 cat >conftest.$ac_ext <<_ACEOF
21618 #line $LINENO "configure"
21621 cat confdefs.h >>conftest.$ac_ext
21622 cat >>conftest.$ac_ext <<_ACEOF
21623 /* end confdefs.h. */
21624 #include <$ac_header>
21626 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21627 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21629 grep -v '^ *+' conftest.er1 >conftest.err
21631 cat conftest.err >&5
21632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21633 (exit $ac_status); } >/dev/null; then
21634 if test -s conftest.err; then
21635 ac_cpp_err=$ac_c_preproc_warn_flag
21642 if test -z "$ac_cpp_err"; then
21643 ac_header_preproc=yes
21645 echo "$as_me: failed program was:" >&5
21646 sed 's/^/| /' conftest.$ac_ext >&5
21648 ac_header_preproc=no
21650 rm -f conftest.err conftest.$ac_ext
21651 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21652 echo "${ECHO_T}$ac_header_preproc" >&6
21654 # So? What about this header?
21655 case $ac_header_compiler:$ac_header_preproc in
21657 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21658 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21659 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21660 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21663 ## ------------------------------------ ##
21664 ## Report this to bug-autoconf@gnu.org. ##
21665 ## ------------------------------------ ##
21668 sed "s/^/$as_me: WARNING: /" >&2
21671 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21672 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21673 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21674 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21675 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21676 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21679 ## ------------------------------------ ##
21680 ## Report this to bug-autoconf@gnu.org. ##
21681 ## ------------------------------------ ##
21684 sed "s/^/$as_me: WARNING: /" >&2
21687 echo "$as_me:$LINENO: checking for $ac_header" >&5
21688 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21689 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21690 echo $ECHO_N "(cached) $ECHO_C" >&6
21692 eval "$as_ac_Header=$ac_header_preproc"
21694 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21695 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21698 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21699 cat >>confdefs.h <<_ACEOF
21700 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21708 for ac_func in alarm
21710 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21711 echo "$as_me:$LINENO: checking for $ac_func" >&5
21712 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21713 if eval "test \"\${$as_ac_var+set}\" = set"; then
21714 echo $ECHO_N "(cached) $ECHO_C" >&6
21716 cat >conftest.$ac_ext <<_ACEOF
21717 #line $LINENO "configure"
21720 cat confdefs.h >>conftest.$ac_ext
21721 cat >>conftest.$ac_ext <<_ACEOF
21722 /* end confdefs.h. */
21723 /* System header to define __stub macros and hopefully few prototypes,
21724 which can conflict with char $ac_func (); below.
21725 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21726 <limits.h> exists even on freestanding compilers. */
21728 # include <limits.h>
21730 # include <assert.h>
21732 /* Override any gcc2 internal prototype to avoid an error. */
21737 /* We use char because int might match the return type of a gcc2
21738 builtin and then its argument prototype would still apply. */
21740 /* The GNU C library defines this for functions which it implements
21741 to always fail with ENOSYS. Some functions are actually named
21742 something starting with __ and the normal name is an alias. */
21743 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21746 char (*f) () = $ac_func;
21755 return f != $ac_func;
21760 rm -f conftest.$ac_objext conftest$ac_exeext
21761 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21762 (eval $ac_link) 2>&5
21764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21765 (exit $ac_status); } &&
21766 { ac_try='test -s conftest$ac_exeext'
21767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21768 (eval $ac_try) 2>&5
21770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21771 (exit $ac_status); }; }; then
21772 eval "$as_ac_var=yes"
21774 echo "$as_me: failed program was:" >&5
21775 sed 's/^/| /' conftest.$ac_ext >&5
21777 eval "$as_ac_var=no"
21779 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21781 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21782 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21783 if test `eval echo '${'$as_ac_var'}'` = yes; then
21784 cat >>confdefs.h <<_ACEOF
21785 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21791 echo "$as_me:$LINENO: checking for working mktime" >&5
21792 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
21793 if test "${ac_cv_func_working_mktime+set}" = set; then
21794 echo $ECHO_N "(cached) $ECHO_C" >&6
21796 if test "$cross_compiling" = yes; then
21797 ac_cv_func_working_mktime=no
21799 cat >conftest.$ac_ext <<_ACEOF
21800 #line $LINENO "configure"
21803 cat confdefs.h >>conftest.$ac_ext
21804 cat >>conftest.$ac_ext <<_ACEOF
21805 /* end confdefs.h. */
21806 /* Test program from Paul Eggert and Tony Leneis. */
21807 #if TIME_WITH_SYS_TIME
21808 # include <sys/time.h>
21811 # if HAVE_SYS_TIME_H
21812 # include <sys/time.h>
21819 # include <unistd.h>
21823 # define alarm(X) /* empty */
21826 /* Work around redefinition to rpl_putenv by other config tests. */
21829 static time_t time_t_max;
21831 /* Values we'll use to set the TZ environment variable. */
21832 static const char *const tz_strings[] = {
21833 (const char *) 0, "TZ=GMT0", "TZ=JST-9",
21834 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
21836 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
21838 /* Fail if mktime fails to convert a date in the spring-forward gap.
21839 Based on a problem report from Andreas Jaeger. */
21841 spring_forward_gap ()
21843 /* glibc (up to about 1998-10-07) failed this test. */
21846 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
21847 instead of "TZ=America/Vancouver" in order to detect the bug even
21848 on systems that don't support the Olson extension, or don't have the
21849 full zoneinfo tables installed. */
21850 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
21859 if (mktime (&tm) == (time_t)-1)
21868 if ((lt = localtime (&now)) && mktime (lt) != now)
21870 now = time_t_max - now;
21871 if ((lt = localtime (&now)) && mktime (lt) != now)
21878 /* Based on code from Ariel Faigon. */
21888 if (tm.tm_mon != 2 || tm.tm_mday != 31)
21898 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
21899 now = mktime (&tm);
21900 if (now != (time_t) -1)
21902 struct tm *lt = localtime (&now);
21904 && lt->tm_year == tm.tm_year
21905 && lt->tm_mon == tm.tm_mon
21906 && lt->tm_mday == tm.tm_mday
21907 && lt->tm_hour == tm.tm_hour
21908 && lt->tm_min == tm.tm_min
21909 && lt->tm_sec == tm.tm_sec
21910 && lt->tm_yday == tm.tm_yday
21911 && lt->tm_wday == tm.tm_wday
21912 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
21913 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
21924 /* This test makes some buggy mktime implementations loop.
21925 Give up after 60 seconds; a mktime slower than that
21926 isn't worth using anyway. */
21929 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
21932 delta = time_t_max / 997; /* a suitable prime number */
21933 for (i = 0; i < N_STRINGS; i++)
21936 putenv (tz_strings[i]);
21938 for (t = 0; t <= time_t_max - delta; t += delta)
21940 mktime_test ((time_t) 60 * 60);
21941 mktime_test ((time_t) 60 * 60 * 24);
21943 for (j = 1; 0 < j; j *= 2)
21945 bigtime_test (j - 1);
21948 spring_forward_gap ();
21952 rm -f conftest$ac_exeext
21953 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21954 (eval $ac_link) 2>&5
21956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21957 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21959 (eval $ac_try) 2>&5
21961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21962 (exit $ac_status); }; }; then
21963 ac_cv_func_working_mktime=yes
21965 echo "$as_me: program exited with status $ac_status" >&5
21966 echo "$as_me: failed program was:" >&5
21967 sed 's/^/| /' conftest.$ac_ext >&5
21969 ( exit $ac_status )
21970 ac_cv_func_working_mktime=no
21972 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21975 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
21976 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
21977 if test $ac_cv_func_working_mktime = no; then
21978 LIBOBJS="$LIBOBJS mktime.$ac_objext"
21983 for ac_func in localtime_r
21985 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21986 echo "$as_me:$LINENO: checking for $ac_func" >&5
21987 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21988 if eval "test \"\${$as_ac_var+set}\" = set"; then
21989 echo $ECHO_N "(cached) $ECHO_C" >&6
21991 cat >conftest.$ac_ext <<_ACEOF
21992 #line $LINENO "configure"
21995 cat confdefs.h >>conftest.$ac_ext
21996 cat >>conftest.$ac_ext <<_ACEOF
21997 /* end confdefs.h. */
21998 /* System header to define __stub macros and hopefully few prototypes,
21999 which can conflict with char $ac_func (); below.
22000 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22001 <limits.h> exists even on freestanding compilers. */
22003 # include <limits.h>
22005 # include <assert.h>
22007 /* Override any gcc2 internal prototype to avoid an error. */
22012 /* We use char because int might match the return type of a gcc2
22013 builtin and then its argument prototype would still apply. */
22015 /* The GNU C library defines this for functions which it implements
22016 to always fail with ENOSYS. Some functions are actually named
22017 something starting with __ and the normal name is an alias. */
22018 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22021 char (*f) () = $ac_func;
22030 return f != $ac_func;
22035 rm -f conftest.$ac_objext conftest$ac_exeext
22036 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22037 (eval $ac_link) 2>&5
22039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22040 (exit $ac_status); } &&
22041 { ac_try='test -s conftest$ac_exeext'
22042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22043 (eval $ac_try) 2>&5
22045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22046 (exit $ac_status); }; }; then
22047 eval "$as_ac_var=yes"
22049 echo "$as_me: failed program was:" >&5
22050 sed 's/^/| /' conftest.$ac_ext >&5
22052 eval "$as_ac_var=no"
22054 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22056 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22057 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22058 if test `eval echo '${'$as_ac_var'}'` = yes; then
22059 cat >>confdefs.h <<_ACEOF
22060 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22067 if test $ac_cv_func_working_mktime = no; then
22069 cat >>confdefs.h <<\_ACEOF
22070 #define mktime rpl_mktime
22077 echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
22078 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6
22079 if test "${jm_cv_func_stat_empty_string_bug+set}" = set; then
22080 echo $ECHO_N "(cached) $ECHO_C" >&6
22082 if test "$cross_compiling" = yes; then
22083 jm_cv_func_stat_empty_string_bug=yes
22085 cat >conftest.$ac_ext <<_ACEOF
22086 #line $LINENO "configure"
22089 cat confdefs.h >>conftest.$ac_ext
22090 cat >>conftest.$ac_ext <<_ACEOF
22091 /* end confdefs.h. */
22093 # include <sys/types.h>
22094 # include <sys/stat.h>
22100 exit (stat ("", &sbuf) ? 1 : 0);
22104 rm -f conftest$ac_exeext
22105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22106 (eval $ac_link) 2>&5
22108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22109 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22111 (eval $ac_try) 2>&5
22113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22114 (exit $ac_status); }; }; then
22115 jm_cv_func_stat_empty_string_bug=yes
22117 echo "$as_me: program exited with status $ac_status" >&5
22118 echo "$as_me: failed program was:" >&5
22119 sed 's/^/| /' conftest.$ac_ext >&5
22121 ( exit $ac_status )
22122 jm_cv_func_stat_empty_string_bug=no
22124 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22128 echo "$as_me:$LINENO: result: $jm_cv_func_stat_empty_string_bug" >&5
22129 echo "${ECHO_T}$jm_cv_func_stat_empty_string_bug" >&6
22130 if test $jm_cv_func_stat_empty_string_bug = yes; then
22131 LIBOBJS="$LIBOBJS stat.$ac_objext"
22133 cat >>confdefs.h <<\_ACEOF
22134 #define HAVE_STAT_EMPTY_STRING_BUG 1
22140 for ac_header in stdlib.h
22142 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22143 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22144 echo "$as_me:$LINENO: checking for $ac_header" >&5
22145 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22146 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22147 echo $ECHO_N "(cached) $ECHO_C" >&6
22149 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22150 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22152 # Is the header compilable?
22153 echo "$as_me:$LINENO: checking $ac_header usability" >&5
22154 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22155 cat >conftest.$ac_ext <<_ACEOF
22156 #line $LINENO "configure"
22159 cat confdefs.h >>conftest.$ac_ext
22160 cat >>conftest.$ac_ext <<_ACEOF
22161 /* end confdefs.h. */
22162 $ac_includes_default
22163 #include <$ac_header>
22165 rm -f conftest.$ac_objext
22166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22167 (eval $ac_compile) 2>&5
22169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22170 (exit $ac_status); } &&
22171 { ac_try='test -s conftest.$ac_objext'
22172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22173 (eval $ac_try) 2>&5
22175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22176 (exit $ac_status); }; }; then
22177 ac_header_compiler=yes
22179 echo "$as_me: failed program was:" >&5
22180 sed 's/^/| /' conftest.$ac_ext >&5
22182 ac_header_compiler=no
22184 rm -f conftest.$ac_objext conftest.$ac_ext
22185 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22186 echo "${ECHO_T}$ac_header_compiler" >&6
22188 # Is the header present?
22189 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22190 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22191 cat >conftest.$ac_ext <<_ACEOF
22192 #line $LINENO "configure"
22195 cat confdefs.h >>conftest.$ac_ext
22196 cat >>conftest.$ac_ext <<_ACEOF
22197 /* end confdefs.h. */
22198 #include <$ac_header>
22200 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22201 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22203 grep -v '^ *+' conftest.er1 >conftest.err
22205 cat conftest.err >&5
22206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22207 (exit $ac_status); } >/dev/null; then
22208 if test -s conftest.err; then
22209 ac_cpp_err=$ac_c_preproc_warn_flag
22216 if test -z "$ac_cpp_err"; then
22217 ac_header_preproc=yes
22219 echo "$as_me: failed program was:" >&5
22220 sed 's/^/| /' conftest.$ac_ext >&5
22222 ac_header_preproc=no
22224 rm -f conftest.err conftest.$ac_ext
22225 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22226 echo "${ECHO_T}$ac_header_preproc" >&6
22228 # So? What about this header?
22229 case $ac_header_compiler:$ac_header_preproc in
22231 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22232 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22233 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22234 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22237 ## ------------------------------------ ##
22238 ## Report this to bug-autoconf@gnu.org. ##
22239 ## ------------------------------------ ##
22242 sed "s/^/$as_me: WARNING: /" >&2
22245 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22246 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22247 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22248 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22249 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22250 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22253 ## ------------------------------------ ##
22254 ## Report this to bug-autoconf@gnu.org. ##
22255 ## ------------------------------------ ##
22258 sed "s/^/$as_me: WARNING: /" >&2
22261 echo "$as_me:$LINENO: checking for $ac_header" >&5
22262 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22263 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22264 echo $ECHO_N "(cached) $ECHO_C" >&6
22266 eval "$as_ac_Header=$ac_header_preproc"
22268 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22269 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22272 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22273 cat >>confdefs.h <<_ACEOF
22274 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22281 echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
22282 echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6
22283 if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
22284 echo $ECHO_N "(cached) $ECHO_C" >&6
22286 if test "$cross_compiling" = yes; then
22287 ac_cv_func_realloc_0_nonnull=no
22289 cat >conftest.$ac_ext <<_ACEOF
22290 #line $LINENO "configure"
22293 cat confdefs.h >>conftest.$ac_ext
22294 cat >>conftest.$ac_ext <<_ACEOF
22295 /* end confdefs.h. */
22296 #if STDC_HEADERS || HAVE_STDLIB_H
22297 # include <stdlib.h>
22305 exit (realloc (0, 0) ? 0 : 1);
22310 rm -f conftest$ac_exeext
22311 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22312 (eval $ac_link) 2>&5
22314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22315 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22317 (eval $ac_try) 2>&5
22319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22320 (exit $ac_status); }; }; then
22321 ac_cv_func_realloc_0_nonnull=yes
22323 echo "$as_me: program exited with status $ac_status" >&5
22324 echo "$as_me: failed program was:" >&5
22325 sed 's/^/| /' conftest.$ac_ext >&5
22327 ( exit $ac_status )
22328 ac_cv_func_realloc_0_nonnull=no
22330 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22333 echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
22334 echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6
22335 if test $ac_cv_func_realloc_0_nonnull = yes; then
22337 cat >>confdefs.h <<\_ACEOF
22338 #define HAVE_REALLOC 1
22342 cat >>confdefs.h <<\_ACEOF
22343 #define HAVE_REALLOC 0
22346 LIBOBJS="$LIBOBJS realloc.$ac_objext"
22348 cat >>confdefs.h <<\_ACEOF
22349 #define realloc rpl_realloc
22357 for ac_header in stdlib.h
22359 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22360 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22361 echo "$as_me:$LINENO: checking for $ac_header" >&5
22362 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22363 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22364 echo $ECHO_N "(cached) $ECHO_C" >&6
22366 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22367 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22369 # Is the header compilable?
22370 echo "$as_me:$LINENO: checking $ac_header usability" >&5
22371 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22372 cat >conftest.$ac_ext <<_ACEOF
22373 #line $LINENO "configure"
22376 cat confdefs.h >>conftest.$ac_ext
22377 cat >>conftest.$ac_ext <<_ACEOF
22378 /* end confdefs.h. */
22379 $ac_includes_default
22380 #include <$ac_header>
22382 rm -f conftest.$ac_objext
22383 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22384 (eval $ac_compile) 2>&5
22386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22387 (exit $ac_status); } &&
22388 { ac_try='test -s conftest.$ac_objext'
22389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22390 (eval $ac_try) 2>&5
22392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22393 (exit $ac_status); }; }; then
22394 ac_header_compiler=yes
22396 echo "$as_me: failed program was:" >&5
22397 sed 's/^/| /' conftest.$ac_ext >&5
22399 ac_header_compiler=no
22401 rm -f conftest.$ac_objext conftest.$ac_ext
22402 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22403 echo "${ECHO_T}$ac_header_compiler" >&6
22405 # Is the header present?
22406 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22407 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22408 cat >conftest.$ac_ext <<_ACEOF
22409 #line $LINENO "configure"
22412 cat confdefs.h >>conftest.$ac_ext
22413 cat >>conftest.$ac_ext <<_ACEOF
22414 /* end confdefs.h. */
22415 #include <$ac_header>
22417 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22418 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22420 grep -v '^ *+' conftest.er1 >conftest.err
22422 cat conftest.err >&5
22423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22424 (exit $ac_status); } >/dev/null; then
22425 if test -s conftest.err; then
22426 ac_cpp_err=$ac_c_preproc_warn_flag
22433 if test -z "$ac_cpp_err"; then
22434 ac_header_preproc=yes
22436 echo "$as_me: failed program was:" >&5
22437 sed 's/^/| /' conftest.$ac_ext >&5
22439 ac_header_preproc=no
22441 rm -f conftest.err conftest.$ac_ext
22442 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22443 echo "${ECHO_T}$ac_header_preproc" >&6
22445 # So? What about this header?
22446 case $ac_header_compiler:$ac_header_preproc in
22448 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22449 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22450 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22451 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22454 ## ------------------------------------ ##
22455 ## Report this to bug-autoconf@gnu.org. ##
22456 ## ------------------------------------ ##
22459 sed "s/^/$as_me: WARNING: /" >&2
22462 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22463 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22464 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22465 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22466 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22467 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22470 ## ------------------------------------ ##
22471 ## Report this to bug-autoconf@gnu.org. ##
22472 ## ------------------------------------ ##
22475 sed "s/^/$as_me: WARNING: /" >&2
22478 echo "$as_me:$LINENO: checking for $ac_header" >&5
22479 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22480 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22481 echo $ECHO_N "(cached) $ECHO_C" >&6
22483 eval "$as_ac_Header=$ac_header_preproc"
22485 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22486 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22489 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22490 cat >>confdefs.h <<_ACEOF
22491 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22498 echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
22499 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
22500 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
22501 echo $ECHO_N "(cached) $ECHO_C" >&6
22503 if test "$cross_compiling" = yes; then
22504 ac_cv_func_malloc_0_nonnull=no
22506 cat >conftest.$ac_ext <<_ACEOF
22507 #line $LINENO "configure"
22510 cat confdefs.h >>conftest.$ac_ext
22511 cat >>conftest.$ac_ext <<_ACEOF
22512 /* end confdefs.h. */
22513 #if STDC_HEADERS || HAVE_STDLIB_H
22514 # include <stdlib.h>
22522 exit (malloc (0) ? 0 : 1);
22527 rm -f conftest$ac_exeext
22528 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22529 (eval $ac_link) 2>&5
22531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22532 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22534 (eval $ac_try) 2>&5
22536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22537 (exit $ac_status); }; }; then
22538 ac_cv_func_malloc_0_nonnull=yes
22540 echo "$as_me: program exited with status $ac_status" >&5
22541 echo "$as_me: failed program was:" >&5
22542 sed 's/^/| /' conftest.$ac_ext >&5
22544 ( exit $ac_status )
22545 ac_cv_func_malloc_0_nonnull=no
22547 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22550 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
22551 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
22552 if test $ac_cv_func_malloc_0_nonnull = yes; then
22554 cat >>confdefs.h <<\_ACEOF
22555 #define HAVE_MALLOC 1
22559 cat >>confdefs.h <<\_ACEOF
22560 #define HAVE_MALLOC 0
22563 LIBOBJS="$LIBOBJS malloc.$ac_objext"
22565 cat >>confdefs.h <<\_ACEOF
22566 #define malloc rpl_malloc
22574 nanosleep_save_libs=$LIBS
22576 # Solaris 2.5.1 needs -lposix4 to get the nanosleep function.
22577 # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
22579 echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
22580 echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6
22581 if test "${ac_cv_search_nanosleep+set}" = set; then
22582 echo $ECHO_N "(cached) $ECHO_C" >&6
22585 ac_func_search_save_LIBS=$LIBS
22586 ac_cv_search_nanosleep=no
22587 cat >conftest.$ac_ext <<_ACEOF
22588 #line $LINENO "configure"
22591 cat confdefs.h >>conftest.$ac_ext
22592 cat >>conftest.$ac_ext <<_ACEOF
22593 /* end confdefs.h. */
22595 /* Override any gcc2 internal prototype to avoid an error. */
22599 /* We use char because int might match the return type of a gcc2
22600 builtin and then its argument prototype would still apply. */
22610 rm -f conftest.$ac_objext conftest$ac_exeext
22611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22612 (eval $ac_link) 2>&5
22614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22615 (exit $ac_status); } &&
22616 { ac_try='test -s conftest$ac_exeext'
22617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22618 (eval $ac_try) 2>&5
22620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22621 (exit $ac_status); }; }; then
22622 ac_cv_search_nanosleep='none required'
22624 echo "$as_me: failed program was:" >&5
22625 sed 's/^/| /' conftest.$ac_ext >&5
22628 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22629 if test "$ac_cv_search_nanosleep" = no; then
22630 for ac_lib in rt posix4; do
22631 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22632 cat >conftest.$ac_ext <<_ACEOF
22633 #line $LINENO "configure"
22636 cat confdefs.h >>conftest.$ac_ext
22637 cat >>conftest.$ac_ext <<_ACEOF
22638 /* end confdefs.h. */
22640 /* Override any gcc2 internal prototype to avoid an error. */
22644 /* We use char because int might match the return type of a gcc2
22645 builtin and then its argument prototype would still apply. */
22655 rm -f conftest.$ac_objext conftest$ac_exeext
22656 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22657 (eval $ac_link) 2>&5
22659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22660 (exit $ac_status); } &&
22661 { ac_try='test -s conftest$ac_exeext'
22662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22663 (eval $ac_try) 2>&5
22665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22666 (exit $ac_status); }; }; then
22667 ac_cv_search_nanosleep="-l$ac_lib"; break
22669 echo "$as_me: failed program was:" >&5
22670 sed 's/^/| /' conftest.$ac_ext >&5
22673 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22676 LIBS=$ac_func_search_save_LIBS
22679 echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
22680 echo "${ECHO_T}$ac_cv_search_nanosleep" >&6
22682 if test "$ac_cv_search_nanosleep" = no; then :
22685 if test "$ac_cv_search_nanosleep" = 'none required'; then :
22688 LIBS="$ac_cv_search_nanosleep $LIBS"
22689 LIB_NANOSLEEP=$ac_cv_search_nanosleep
22695 echo "$as_me:$LINENO: checking whether nanosleep works" >&5
22696 echo $ECHO_N "checking whether nanosleep works... $ECHO_C" >&6
22697 if test "${jm_cv_func_nanosleep_works+set}" = set; then
22698 echo $ECHO_N "(cached) $ECHO_C" >&6
22702 if test "$cross_compiling" = yes; then
22703 jm_cv_func_nanosleep_works=no
22705 cat >conftest.$ac_ext <<_ACEOF
22706 #line $LINENO "configure"
22709 cat confdefs.h >>conftest.$ac_ext
22710 cat >>conftest.$ac_ext <<_ACEOF
22711 /* end confdefs.h. */
22713 # if TIME_WITH_SYS_TIME
22714 # include <sys/time.h>
22717 # if HAVE_SYS_TIME_H
22718 # include <sys/time.h>
22727 struct timespec ts_sleep, ts_remaining;
22728 ts_sleep.tv_sec = 0;
22729 ts_sleep.tv_nsec = 1;
22730 exit (nanosleep (&ts_sleep, &ts_remaining) == 0 ? 0 : 1);
22734 rm -f conftest$ac_exeext
22735 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22736 (eval $ac_link) 2>&5
22738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22739 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22741 (eval $ac_try) 2>&5
22743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22744 (exit $ac_status); }; }; then
22745 jm_cv_func_nanosleep_works=yes
22747 echo "$as_me: program exited with status $ac_status" >&5
22748 echo "$as_me: failed program was:" >&5
22749 sed 's/^/| /' conftest.$ac_ext >&5
22751 ( exit $ac_status )
22752 jm_cv_func_nanosleep_works=no
22754 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22758 echo "$as_me:$LINENO: result: $jm_cv_func_nanosleep_works" >&5
22759 echo "${ECHO_T}$jm_cv_func_nanosleep_works" >&6
22760 if test $jm_cv_func_nanosleep_works = no; then
22761 LIBOBJS="$LIBOBJS nanosleep.$ac_objext"
22763 cat >>confdefs.h <<\_ACEOF
22764 #define nanosleep rpl_nanosleep
22769 LIBS=$nanosleep_save_libs
22771 echo "$as_me:$LINENO: checking whether clearerr_unlocked is declared" >&5
22772 echo $ECHO_N "checking whether clearerr_unlocked is declared... $ECHO_C" >&6
22773 if test "${ac_cv_have_decl_clearerr_unlocked+set}" = set; then
22774 echo $ECHO_N "(cached) $ECHO_C" >&6
22776 cat >conftest.$ac_ext <<_ACEOF
22777 #line $LINENO "configure"
22780 cat confdefs.h >>conftest.$ac_ext
22781 cat >>conftest.$ac_ext <<_ACEOF
22782 /* end confdefs.h. */
22783 $ac_includes_default
22787 #ifndef clearerr_unlocked
22788 char *p = (char *) clearerr_unlocked;
22795 rm -f conftest.$ac_objext
22796 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22797 (eval $ac_compile) 2>&5
22799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22800 (exit $ac_status); } &&
22801 { ac_try='test -s conftest.$ac_objext'
22802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22803 (eval $ac_try) 2>&5
22805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22806 (exit $ac_status); }; }; then
22807 ac_cv_have_decl_clearerr_unlocked=yes
22809 echo "$as_me: failed program was:" >&5
22810 sed 's/^/| /' conftest.$ac_ext >&5
22812 ac_cv_have_decl_clearerr_unlocked=no
22814 rm -f conftest.$ac_objext conftest.$ac_ext
22816 echo "$as_me:$LINENO: result: $ac_cv_have_decl_clearerr_unlocked" >&5
22817 echo "${ECHO_T}$ac_cv_have_decl_clearerr_unlocked" >&6
22818 if test $ac_cv_have_decl_clearerr_unlocked = yes; then
22820 cat >>confdefs.h <<_ACEOF
22821 #define HAVE_DECL_CLEARERR_UNLOCKED 1
22826 cat >>confdefs.h <<_ACEOF
22827 #define HAVE_DECL_CLEARERR_UNLOCKED 0
22832 echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
22833 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6
22834 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
22835 echo $ECHO_N "(cached) $ECHO_C" >&6
22837 cat >conftest.$ac_ext <<_ACEOF
22838 #line $LINENO "configure"
22841 cat confdefs.h >>conftest.$ac_ext
22842 cat >>conftest.$ac_ext <<_ACEOF
22843 /* end confdefs.h. */
22844 $ac_includes_default
22848 #ifndef feof_unlocked
22849 char *p = (char *) feof_unlocked;
22856 rm -f conftest.$ac_objext
22857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22858 (eval $ac_compile) 2>&5
22860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22861 (exit $ac_status); } &&
22862 { ac_try='test -s conftest.$ac_objext'
22863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22864 (eval $ac_try) 2>&5
22866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22867 (exit $ac_status); }; }; then
22868 ac_cv_have_decl_feof_unlocked=yes
22870 echo "$as_me: failed program was:" >&5
22871 sed 's/^/| /' conftest.$ac_ext >&5
22873 ac_cv_have_decl_feof_unlocked=no
22875 rm -f conftest.$ac_objext conftest.$ac_ext
22877 echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
22878 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6
22879 if test $ac_cv_have_decl_feof_unlocked = yes; then
22881 cat >>confdefs.h <<_ACEOF
22882 #define HAVE_DECL_FEOF_UNLOCKED 1
22887 cat >>confdefs.h <<_ACEOF
22888 #define HAVE_DECL_FEOF_UNLOCKED 0
22893 echo "$as_me:$LINENO: checking whether ferror_unlocked is declared" >&5
22894 echo $ECHO_N "checking whether ferror_unlocked is declared... $ECHO_C" >&6
22895 if test "${ac_cv_have_decl_ferror_unlocked+set}" = set; then
22896 echo $ECHO_N "(cached) $ECHO_C" >&6
22898 cat >conftest.$ac_ext <<_ACEOF
22899 #line $LINENO "configure"
22902 cat confdefs.h >>conftest.$ac_ext
22903 cat >>conftest.$ac_ext <<_ACEOF
22904 /* end confdefs.h. */
22905 $ac_includes_default
22909 #ifndef ferror_unlocked
22910 char *p = (char *) ferror_unlocked;
22917 rm -f conftest.$ac_objext
22918 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22919 (eval $ac_compile) 2>&5
22921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22922 (exit $ac_status); } &&
22923 { ac_try='test -s conftest.$ac_objext'
22924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22925 (eval $ac_try) 2>&5
22927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22928 (exit $ac_status); }; }; then
22929 ac_cv_have_decl_ferror_unlocked=yes
22931 echo "$as_me: failed program was:" >&5
22932 sed 's/^/| /' conftest.$ac_ext >&5
22934 ac_cv_have_decl_ferror_unlocked=no
22936 rm -f conftest.$ac_objext conftest.$ac_ext
22938 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ferror_unlocked" >&5
22939 echo "${ECHO_T}$ac_cv_have_decl_ferror_unlocked" >&6
22940 if test $ac_cv_have_decl_ferror_unlocked = yes; then
22942 cat >>confdefs.h <<_ACEOF
22943 #define HAVE_DECL_FERROR_UNLOCKED 1
22948 cat >>confdefs.h <<_ACEOF
22949 #define HAVE_DECL_FERROR_UNLOCKED 0
22954 echo "$as_me:$LINENO: checking whether fflush_unlocked is declared" >&5
22955 echo $ECHO_N "checking whether fflush_unlocked is declared... $ECHO_C" >&6
22956 if test "${ac_cv_have_decl_fflush_unlocked+set}" = set; then
22957 echo $ECHO_N "(cached) $ECHO_C" >&6
22959 cat >conftest.$ac_ext <<_ACEOF
22960 #line $LINENO "configure"
22963 cat confdefs.h >>conftest.$ac_ext
22964 cat >>conftest.$ac_ext <<_ACEOF
22965 /* end confdefs.h. */
22966 $ac_includes_default
22970 #ifndef fflush_unlocked
22971 char *p = (char *) fflush_unlocked;
22978 rm -f conftest.$ac_objext
22979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22980 (eval $ac_compile) 2>&5
22982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22983 (exit $ac_status); } &&
22984 { ac_try='test -s conftest.$ac_objext'
22985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22986 (eval $ac_try) 2>&5
22988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22989 (exit $ac_status); }; }; then
22990 ac_cv_have_decl_fflush_unlocked=yes
22992 echo "$as_me: failed program was:" >&5
22993 sed 's/^/| /' conftest.$ac_ext >&5
22995 ac_cv_have_decl_fflush_unlocked=no
22997 rm -f conftest.$ac_objext conftest.$ac_ext
22999 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fflush_unlocked" >&5
23000 echo "${ECHO_T}$ac_cv_have_decl_fflush_unlocked" >&6
23001 if test $ac_cv_have_decl_fflush_unlocked = yes; then
23003 cat >>confdefs.h <<_ACEOF
23004 #define HAVE_DECL_FFLUSH_UNLOCKED 1
23009 cat >>confdefs.h <<_ACEOF
23010 #define HAVE_DECL_FFLUSH_UNLOCKED 0
23015 echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
23016 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6
23017 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
23018 echo $ECHO_N "(cached) $ECHO_C" >&6
23020 cat >conftest.$ac_ext <<_ACEOF
23021 #line $LINENO "configure"
23024 cat confdefs.h >>conftest.$ac_ext
23025 cat >>conftest.$ac_ext <<_ACEOF
23026 /* end confdefs.h. */
23027 $ac_includes_default
23031 #ifndef fgets_unlocked
23032 char *p = (char *) fgets_unlocked;
23039 rm -f conftest.$ac_objext
23040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23041 (eval $ac_compile) 2>&5
23043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23044 (exit $ac_status); } &&
23045 { ac_try='test -s conftest.$ac_objext'
23046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23047 (eval $ac_try) 2>&5
23049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23050 (exit $ac_status); }; }; then
23051 ac_cv_have_decl_fgets_unlocked=yes
23053 echo "$as_me: failed program was:" >&5
23054 sed 's/^/| /' conftest.$ac_ext >&5
23056 ac_cv_have_decl_fgets_unlocked=no
23058 rm -f conftest.$ac_objext conftest.$ac_ext
23060 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
23061 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6
23062 if test $ac_cv_have_decl_fgets_unlocked = yes; then
23064 cat >>confdefs.h <<_ACEOF
23065 #define HAVE_DECL_FGETS_UNLOCKED 1
23070 cat >>confdefs.h <<_ACEOF
23071 #define HAVE_DECL_FGETS_UNLOCKED 0
23076 echo "$as_me:$LINENO: checking whether fputc_unlocked is declared" >&5
23077 echo $ECHO_N "checking whether fputc_unlocked is declared... $ECHO_C" >&6
23078 if test "${ac_cv_have_decl_fputc_unlocked+set}" = set; then
23079 echo $ECHO_N "(cached) $ECHO_C" >&6
23081 cat >conftest.$ac_ext <<_ACEOF
23082 #line $LINENO "configure"
23085 cat confdefs.h >>conftest.$ac_ext
23086 cat >>conftest.$ac_ext <<_ACEOF
23087 /* end confdefs.h. */
23088 $ac_includes_default
23092 #ifndef fputc_unlocked
23093 char *p = (char *) fputc_unlocked;
23100 rm -f conftest.$ac_objext
23101 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23102 (eval $ac_compile) 2>&5
23104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23105 (exit $ac_status); } &&
23106 { ac_try='test -s conftest.$ac_objext'
23107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23108 (eval $ac_try) 2>&5
23110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23111 (exit $ac_status); }; }; then
23112 ac_cv_have_decl_fputc_unlocked=yes
23114 echo "$as_me: failed program was:" >&5
23115 sed 's/^/| /' conftest.$ac_ext >&5
23117 ac_cv_have_decl_fputc_unlocked=no
23119 rm -f conftest.$ac_objext conftest.$ac_ext
23121 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputc_unlocked" >&5
23122 echo "${ECHO_T}$ac_cv_have_decl_fputc_unlocked" >&6
23123 if test $ac_cv_have_decl_fputc_unlocked = yes; then
23125 cat >>confdefs.h <<_ACEOF
23126 #define HAVE_DECL_FPUTC_UNLOCKED 1
23131 cat >>confdefs.h <<_ACEOF
23132 #define HAVE_DECL_FPUTC_UNLOCKED 0
23137 echo "$as_me:$LINENO: checking whether fputs_unlocked is declared" >&5
23138 echo $ECHO_N "checking whether fputs_unlocked is declared... $ECHO_C" >&6
23139 if test "${ac_cv_have_decl_fputs_unlocked+set}" = set; then
23140 echo $ECHO_N "(cached) $ECHO_C" >&6
23142 cat >conftest.$ac_ext <<_ACEOF
23143 #line $LINENO "configure"
23146 cat confdefs.h >>conftest.$ac_ext
23147 cat >>conftest.$ac_ext <<_ACEOF
23148 /* end confdefs.h. */
23149 $ac_includes_default
23153 #ifndef fputs_unlocked
23154 char *p = (char *) fputs_unlocked;
23161 rm -f conftest.$ac_objext
23162 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23163 (eval $ac_compile) 2>&5
23165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23166 (exit $ac_status); } &&
23167 { ac_try='test -s conftest.$ac_objext'
23168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23169 (eval $ac_try) 2>&5
23171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23172 (exit $ac_status); }; }; then
23173 ac_cv_have_decl_fputs_unlocked=yes
23175 echo "$as_me: failed program was:" >&5
23176 sed 's/^/| /' conftest.$ac_ext >&5
23178 ac_cv_have_decl_fputs_unlocked=no
23180 rm -f conftest.$ac_objext conftest.$ac_ext
23182 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputs_unlocked" >&5
23183 echo "${ECHO_T}$ac_cv_have_decl_fputs_unlocked" >&6
23184 if test $ac_cv_have_decl_fputs_unlocked = yes; then
23186 cat >>confdefs.h <<_ACEOF
23187 #define HAVE_DECL_FPUTS_UNLOCKED 1
23192 cat >>confdefs.h <<_ACEOF
23193 #define HAVE_DECL_FPUTS_UNLOCKED 0
23198 echo "$as_me:$LINENO: checking whether fread_unlocked is declared" >&5
23199 echo $ECHO_N "checking whether fread_unlocked is declared... $ECHO_C" >&6
23200 if test "${ac_cv_have_decl_fread_unlocked+set}" = set; then
23201 echo $ECHO_N "(cached) $ECHO_C" >&6
23203 cat >conftest.$ac_ext <<_ACEOF
23204 #line $LINENO "configure"
23207 cat confdefs.h >>conftest.$ac_ext
23208 cat >>conftest.$ac_ext <<_ACEOF
23209 /* end confdefs.h. */
23210 $ac_includes_default
23214 #ifndef fread_unlocked
23215 char *p = (char *) fread_unlocked;
23222 rm -f conftest.$ac_objext
23223 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23224 (eval $ac_compile) 2>&5
23226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23227 (exit $ac_status); } &&
23228 { ac_try='test -s conftest.$ac_objext'
23229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23230 (eval $ac_try) 2>&5
23232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23233 (exit $ac_status); }; }; then
23234 ac_cv_have_decl_fread_unlocked=yes
23236 echo "$as_me: failed program was:" >&5
23237 sed 's/^/| /' conftest.$ac_ext >&5
23239 ac_cv_have_decl_fread_unlocked=no
23241 rm -f conftest.$ac_objext conftest.$ac_ext
23243 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fread_unlocked" >&5
23244 echo "${ECHO_T}$ac_cv_have_decl_fread_unlocked" >&6
23245 if test $ac_cv_have_decl_fread_unlocked = yes; then
23247 cat >>confdefs.h <<_ACEOF
23248 #define HAVE_DECL_FREAD_UNLOCKED 1
23253 cat >>confdefs.h <<_ACEOF
23254 #define HAVE_DECL_FREAD_UNLOCKED 0
23259 echo "$as_me:$LINENO: checking whether fwrite_unlocked is declared" >&5
23260 echo $ECHO_N "checking whether fwrite_unlocked is declared... $ECHO_C" >&6
23261 if test "${ac_cv_have_decl_fwrite_unlocked+set}" = set; then
23262 echo $ECHO_N "(cached) $ECHO_C" >&6
23264 cat >conftest.$ac_ext <<_ACEOF
23265 #line $LINENO "configure"
23268 cat confdefs.h >>conftest.$ac_ext
23269 cat >>conftest.$ac_ext <<_ACEOF
23270 /* end confdefs.h. */
23271 $ac_includes_default
23275 #ifndef fwrite_unlocked
23276 char *p = (char *) fwrite_unlocked;
23283 rm -f conftest.$ac_objext
23284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23285 (eval $ac_compile) 2>&5
23287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23288 (exit $ac_status); } &&
23289 { ac_try='test -s conftest.$ac_objext'
23290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23291 (eval $ac_try) 2>&5
23293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23294 (exit $ac_status); }; }; then
23295 ac_cv_have_decl_fwrite_unlocked=yes
23297 echo "$as_me: failed program was:" >&5
23298 sed 's/^/| /' conftest.$ac_ext >&5
23300 ac_cv_have_decl_fwrite_unlocked=no
23302 rm -f conftest.$ac_objext conftest.$ac_ext
23304 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fwrite_unlocked" >&5
23305 echo "${ECHO_T}$ac_cv_have_decl_fwrite_unlocked" >&6
23306 if test $ac_cv_have_decl_fwrite_unlocked = yes; then
23308 cat >>confdefs.h <<_ACEOF
23309 #define HAVE_DECL_FWRITE_UNLOCKED 1
23314 cat >>confdefs.h <<_ACEOF
23315 #define HAVE_DECL_FWRITE_UNLOCKED 0
23320 echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
23321 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6
23322 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
23323 echo $ECHO_N "(cached) $ECHO_C" >&6
23325 cat >conftest.$ac_ext <<_ACEOF
23326 #line $LINENO "configure"
23329 cat confdefs.h >>conftest.$ac_ext
23330 cat >>conftest.$ac_ext <<_ACEOF
23331 /* end confdefs.h. */
23332 $ac_includes_default
23336 #ifndef getc_unlocked
23337 char *p = (char *) getc_unlocked;
23344 rm -f conftest.$ac_objext
23345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23346 (eval $ac_compile) 2>&5
23348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23349 (exit $ac_status); } &&
23350 { ac_try='test -s conftest.$ac_objext'
23351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23352 (eval $ac_try) 2>&5
23354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23355 (exit $ac_status); }; }; then
23356 ac_cv_have_decl_getc_unlocked=yes
23358 echo "$as_me: failed program was:" >&5
23359 sed 's/^/| /' conftest.$ac_ext >&5
23361 ac_cv_have_decl_getc_unlocked=no
23363 rm -f conftest.$ac_objext conftest.$ac_ext
23365 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
23366 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6
23367 if test $ac_cv_have_decl_getc_unlocked = yes; then
23369 cat >>confdefs.h <<_ACEOF
23370 #define HAVE_DECL_GETC_UNLOCKED 1
23375 cat >>confdefs.h <<_ACEOF
23376 #define HAVE_DECL_GETC_UNLOCKED 0
23381 echo "$as_me:$LINENO: checking whether getchar_unlocked is declared" >&5
23382 echo $ECHO_N "checking whether getchar_unlocked is declared... $ECHO_C" >&6
23383 if test "${ac_cv_have_decl_getchar_unlocked+set}" = set; then
23384 echo $ECHO_N "(cached) $ECHO_C" >&6
23386 cat >conftest.$ac_ext <<_ACEOF
23387 #line $LINENO "configure"
23390 cat confdefs.h >>conftest.$ac_ext
23391 cat >>conftest.$ac_ext <<_ACEOF
23392 /* end confdefs.h. */
23393 $ac_includes_default
23397 #ifndef getchar_unlocked
23398 char *p = (char *) getchar_unlocked;
23405 rm -f conftest.$ac_objext
23406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23407 (eval $ac_compile) 2>&5
23409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23410 (exit $ac_status); } &&
23411 { ac_try='test -s conftest.$ac_objext'
23412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23413 (eval $ac_try) 2>&5
23415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23416 (exit $ac_status); }; }; then
23417 ac_cv_have_decl_getchar_unlocked=yes
23419 echo "$as_me: failed program was:" >&5
23420 sed 's/^/| /' conftest.$ac_ext >&5
23422 ac_cv_have_decl_getchar_unlocked=no
23424 rm -f conftest.$ac_objext conftest.$ac_ext
23426 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getchar_unlocked" >&5
23427 echo "${ECHO_T}$ac_cv_have_decl_getchar_unlocked" >&6
23428 if test $ac_cv_have_decl_getchar_unlocked = yes; then
23430 cat >>confdefs.h <<_ACEOF
23431 #define HAVE_DECL_GETCHAR_UNLOCKED 1
23436 cat >>confdefs.h <<_ACEOF
23437 #define HAVE_DECL_GETCHAR_UNLOCKED 0
23442 echo "$as_me:$LINENO: checking whether putc_unlocked is declared" >&5
23443 echo $ECHO_N "checking whether putc_unlocked is declared... $ECHO_C" >&6
23444 if test "${ac_cv_have_decl_putc_unlocked+set}" = set; then
23445 echo $ECHO_N "(cached) $ECHO_C" >&6
23447 cat >conftest.$ac_ext <<_ACEOF
23448 #line $LINENO "configure"
23451 cat confdefs.h >>conftest.$ac_ext
23452 cat >>conftest.$ac_ext <<_ACEOF
23453 /* end confdefs.h. */
23454 $ac_includes_default
23458 #ifndef putc_unlocked
23459 char *p = (char *) putc_unlocked;
23466 rm -f conftest.$ac_objext
23467 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23468 (eval $ac_compile) 2>&5
23470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23471 (exit $ac_status); } &&
23472 { ac_try='test -s conftest.$ac_objext'
23473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23474 (eval $ac_try) 2>&5
23476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23477 (exit $ac_status); }; }; then
23478 ac_cv_have_decl_putc_unlocked=yes
23480 echo "$as_me: failed program was:" >&5
23481 sed 's/^/| /' conftest.$ac_ext >&5
23483 ac_cv_have_decl_putc_unlocked=no
23485 rm -f conftest.$ac_objext conftest.$ac_ext
23487 echo "$as_me:$LINENO: result: $ac_cv_have_decl_putc_unlocked" >&5
23488 echo "${ECHO_T}$ac_cv_have_decl_putc_unlocked" >&6
23489 if test $ac_cv_have_decl_putc_unlocked = yes; then
23491 cat >>confdefs.h <<_ACEOF
23492 #define HAVE_DECL_PUTC_UNLOCKED 1
23497 cat >>confdefs.h <<_ACEOF
23498 #define HAVE_DECL_PUTC_UNLOCKED 0
23503 echo "$as_me:$LINENO: checking whether putchar_unlocked is declared" >&5
23504 echo $ECHO_N "checking whether putchar_unlocked is declared... $ECHO_C" >&6
23505 if test "${ac_cv_have_decl_putchar_unlocked+set}" = set; then
23506 echo $ECHO_N "(cached) $ECHO_C" >&6
23508 cat >conftest.$ac_ext <<_ACEOF
23509 #line $LINENO "configure"
23512 cat confdefs.h >>conftest.$ac_ext
23513 cat >>conftest.$ac_ext <<_ACEOF
23514 /* end confdefs.h. */
23515 $ac_includes_default
23519 #ifndef putchar_unlocked
23520 char *p = (char *) putchar_unlocked;
23527 rm -f conftest.$ac_objext
23528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23529 (eval $ac_compile) 2>&5
23531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23532 (exit $ac_status); } &&
23533 { ac_try='test -s conftest.$ac_objext'
23534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23535 (eval $ac_try) 2>&5
23537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23538 (exit $ac_status); }; }; then
23539 ac_cv_have_decl_putchar_unlocked=yes
23541 echo "$as_me: failed program was:" >&5
23542 sed 's/^/| /' conftest.$ac_ext >&5
23544 ac_cv_have_decl_putchar_unlocked=no
23546 rm -f conftest.$ac_objext conftest.$ac_ext
23548 echo "$as_me:$LINENO: result: $ac_cv_have_decl_putchar_unlocked" >&5
23549 echo "${ECHO_T}$ac_cv_have_decl_putchar_unlocked" >&6
23550 if test $ac_cv_have_decl_putchar_unlocked = yes; then
23552 cat >>confdefs.h <<_ACEOF
23553 #define HAVE_DECL_PUTCHAR_UNLOCKED 1
23558 cat >>confdefs.h <<_ACEOF
23559 #define HAVE_DECL_PUTCHAR_UNLOCKED 0
23567 echo "$as_me:$LINENO: checking for group_member" >&5
23568 echo $ECHO_N "checking for group_member... $ECHO_C" >&6
23569 if test "${ac_cv_func_group_member+set}" = set; then
23570 echo $ECHO_N "(cached) $ECHO_C" >&6
23572 cat >conftest.$ac_ext <<_ACEOF
23573 #line $LINENO "configure"
23576 cat confdefs.h >>conftest.$ac_ext
23577 cat >>conftest.$ac_ext <<_ACEOF
23578 /* end confdefs.h. */
23579 /* System header to define __stub macros and hopefully few prototypes,
23580 which can conflict with char group_member (); below.
23581 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23582 <limits.h> exists even on freestanding compilers. */
23584 # include <limits.h>
23586 # include <assert.h>
23588 /* Override any gcc2 internal prototype to avoid an error. */
23593 /* We use char because int might match the return type of a gcc2
23594 builtin and then its argument prototype would still apply. */
23595 char group_member ();
23596 /* The GNU C library defines this for functions which it implements
23597 to always fail with ENOSYS. Some functions are actually named
23598 something starting with __ and the normal name is an alias. */
23599 #if defined (__stub_group_member) || defined (__stub___group_member)
23602 char (*f) () = group_member;
23611 return f != group_member;
23616 rm -f conftest.$ac_objext conftest$ac_exeext
23617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23618 (eval $ac_link) 2>&5
23620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23621 (exit $ac_status); } &&
23622 { ac_try='test -s conftest$ac_exeext'
23623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23624 (eval $ac_try) 2>&5
23626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23627 (exit $ac_status); }; }; then
23628 ac_cv_func_group_member=yes
23630 echo "$as_me: failed program was:" >&5
23631 sed 's/^/| /' conftest.$ac_ext >&5
23633 ac_cv_func_group_member=no
23635 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23637 echo "$as_me:$LINENO: result: $ac_cv_func_group_member" >&5
23638 echo "${ECHO_T}$ac_cv_func_group_member" >&6
23639 if test $ac_cv_func_group_member = yes; then
23642 LIBOBJS="$LIBOBJS group-member.$ac_objext"
23647 echo "$as_me:$LINENO: checking for SVID conformant putenv" >&5
23648 echo $ECHO_N "checking for SVID conformant putenv... $ECHO_C" >&6
23649 if test "${jm_cv_func_svid_putenv+set}" = set; then
23650 echo $ECHO_N "(cached) $ECHO_C" >&6
23652 if test "$cross_compiling" = yes; then
23653 jm_cv_func_svid_putenv=no
23655 cat >conftest.$ac_ext <<_ACEOF
23656 #line $LINENO "configure"
23659 cat confdefs.h >>conftest.$ac_ext
23660 cat >>conftest.$ac_ext <<_ACEOF
23661 /* end confdefs.h. */
23666 /* Put it in env. */
23667 if (putenv ("CONFTEST_putenv=val"))
23670 /* Try to remove it. */
23671 if (putenv ("CONFTEST_putenv"))
23674 /* Make sure it was deleted. */
23675 if (getenv ("CONFTEST_putenv") != 0)
23682 rm -f conftest$ac_exeext
23683 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23684 (eval $ac_link) 2>&5
23686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23687 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23689 (eval $ac_try) 2>&5
23691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23692 (exit $ac_status); }; }; then
23693 jm_cv_func_svid_putenv=yes
23695 echo "$as_me: program exited with status $ac_status" >&5
23696 echo "$as_me: failed program was:" >&5
23697 sed 's/^/| /' conftest.$ac_ext >&5
23699 ( exit $ac_status )
23700 jm_cv_func_svid_putenv=no
23702 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23706 echo "$as_me:$LINENO: result: $jm_cv_func_svid_putenv" >&5
23707 echo "${ECHO_T}$jm_cv_func_svid_putenv" >&6
23708 if test $jm_cv_func_svid_putenv = no; then
23709 LIBOBJS="$LIBOBJS putenv.$ac_objext"
23711 cat >>confdefs.h <<\_ACEOF
23712 #define putenv rpl_putenv
23718 echo "$as_me:$LINENO: checking for AFS" >&5
23719 echo $ECHO_N "checking for AFS... $ECHO_C" >&6
23720 if test -d /afs; then
23722 cat >>confdefs.h <<\_ACEOF
23730 echo "$as_me:$LINENO: result: $ac_result" >&5
23731 echo "${ECHO_T}$ac_result" >&6
23735 echo "$as_me:$LINENO: checking for intmax_t" >&5
23736 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6
23737 if test "${ac_cv_type_intmax_t+set}" = set; then
23738 echo $ECHO_N "(cached) $ECHO_C" >&6
23740 cat >conftest.$ac_ext <<_ACEOF
23741 #line $LINENO "configure"
23744 cat confdefs.h >>conftest.$ac_ext
23745 cat >>conftest.$ac_ext <<_ACEOF
23746 /* end confdefs.h. */
23747 $ac_includes_default
23751 if ((intmax_t *) 0)
23753 if (sizeof (intmax_t))
23759 rm -f conftest.$ac_objext
23760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23761 (eval $ac_compile) 2>&5
23763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23764 (exit $ac_status); } &&
23765 { ac_try='test -s conftest.$ac_objext'
23766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23767 (eval $ac_try) 2>&5
23769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23770 (exit $ac_status); }; }; then
23771 ac_cv_type_intmax_t=yes
23773 echo "$as_me: failed program was:" >&5
23774 sed 's/^/| /' conftest.$ac_ext >&5
23776 ac_cv_type_intmax_t=no
23778 rm -f conftest.$ac_objext conftest.$ac_ext
23780 echo "$as_me:$LINENO: result: $ac_cv_type_intmax_t" >&5
23781 echo "${ECHO_T}$ac_cv_type_intmax_t" >&6
23782 if test $ac_cv_type_intmax_t = yes; then
23785 test $ac_cv_type_long_long = yes \
23786 && ac_type='long long' \
23789 cat >>confdefs.h <<_ACEOF
23790 #define intmax_t $ac_type
23801 echo "$as_me:$LINENO: checking whether strtol is declared" >&5
23802 echo $ECHO_N "checking whether strtol is declared... $ECHO_C" >&6
23803 if test "${ac_cv_have_decl_strtol+set}" = set; then
23804 echo $ECHO_N "(cached) $ECHO_C" >&6
23806 cat >conftest.$ac_ext <<_ACEOF
23807 #line $LINENO "configure"
23810 cat confdefs.h >>conftest.$ac_ext
23811 cat >>conftest.$ac_ext <<_ACEOF
23812 /* end confdefs.h. */
23813 $ac_includes_default
23818 char *p = (char *) strtol;
23825 rm -f conftest.$ac_objext
23826 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23827 (eval $ac_compile) 2>&5
23829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23830 (exit $ac_status); } &&
23831 { ac_try='test -s conftest.$ac_objext'
23832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23833 (eval $ac_try) 2>&5
23835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23836 (exit $ac_status); }; }; then
23837 ac_cv_have_decl_strtol=yes
23839 echo "$as_me: failed program was:" >&5
23840 sed 's/^/| /' conftest.$ac_ext >&5
23842 ac_cv_have_decl_strtol=no
23844 rm -f conftest.$ac_objext conftest.$ac_ext
23846 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtol" >&5
23847 echo "${ECHO_T}$ac_cv_have_decl_strtol" >&6
23848 if test $ac_cv_have_decl_strtol = yes; then
23850 cat >>confdefs.h <<_ACEOF
23851 #define HAVE_DECL_STRTOL 1
23856 cat >>confdefs.h <<_ACEOF
23857 #define HAVE_DECL_STRTOL 0
23862 echo "$as_me:$LINENO: checking whether strtoul is declared" >&5
23863 echo $ECHO_N "checking whether strtoul is declared... $ECHO_C" >&6
23864 if test "${ac_cv_have_decl_strtoul+set}" = set; then
23865 echo $ECHO_N "(cached) $ECHO_C" >&6
23867 cat >conftest.$ac_ext <<_ACEOF
23868 #line $LINENO "configure"
23871 cat confdefs.h >>conftest.$ac_ext
23872 cat >>conftest.$ac_ext <<_ACEOF
23873 /* end confdefs.h. */
23874 $ac_includes_default
23879 char *p = (char *) strtoul;
23886 rm -f conftest.$ac_objext
23887 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23888 (eval $ac_compile) 2>&5
23890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23891 (exit $ac_status); } &&
23892 { ac_try='test -s conftest.$ac_objext'
23893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23894 (eval $ac_try) 2>&5
23896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23897 (exit $ac_status); }; }; then
23898 ac_cv_have_decl_strtoul=yes
23900 echo "$as_me: failed program was:" >&5
23901 sed 's/^/| /' conftest.$ac_ext >&5
23903 ac_cv_have_decl_strtoul=no
23905 rm -f conftest.$ac_objext conftest.$ac_ext
23907 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoul" >&5
23908 echo "${ECHO_T}$ac_cv_have_decl_strtoul" >&6
23909 if test $ac_cv_have_decl_strtoul = yes; then
23911 cat >>confdefs.h <<_ACEOF
23912 #define HAVE_DECL_STRTOUL 1
23917 cat >>confdefs.h <<_ACEOF
23918 #define HAVE_DECL_STRTOUL 0
23923 echo "$as_me:$LINENO: checking whether strtoull is declared" >&5
23924 echo $ECHO_N "checking whether strtoull is declared... $ECHO_C" >&6
23925 if test "${ac_cv_have_decl_strtoull+set}" = set; then
23926 echo $ECHO_N "(cached) $ECHO_C" >&6
23928 cat >conftest.$ac_ext <<_ACEOF
23929 #line $LINENO "configure"
23932 cat confdefs.h >>conftest.$ac_ext
23933 cat >>conftest.$ac_ext <<_ACEOF
23934 /* end confdefs.h. */
23935 $ac_includes_default
23940 char *p = (char *) strtoull;
23947 rm -f conftest.$ac_objext
23948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23949 (eval $ac_compile) 2>&5
23951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23952 (exit $ac_status); } &&
23953 { ac_try='test -s conftest.$ac_objext'
23954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23955 (eval $ac_try) 2>&5
23957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23958 (exit $ac_status); }; }; then
23959 ac_cv_have_decl_strtoull=yes
23961 echo "$as_me: failed program was:" >&5
23962 sed 's/^/| /' conftest.$ac_ext >&5
23964 ac_cv_have_decl_strtoull=no
23966 rm -f conftest.$ac_objext conftest.$ac_ext
23968 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoull" >&5
23969 echo "${ECHO_T}$ac_cv_have_decl_strtoull" >&6
23970 if test $ac_cv_have_decl_strtoull = yes; then
23972 cat >>confdefs.h <<_ACEOF
23973 #define HAVE_DECL_STRTOULL 1
23978 cat >>confdefs.h <<_ACEOF
23979 #define HAVE_DECL_STRTOULL 0
23984 echo "$as_me:$LINENO: checking whether strtoimax is declared" >&5
23985 echo $ECHO_N "checking whether strtoimax is declared... $ECHO_C" >&6
23986 if test "${ac_cv_have_decl_strtoimax+set}" = set; then
23987 echo $ECHO_N "(cached) $ECHO_C" >&6
23989 cat >conftest.$ac_ext <<_ACEOF
23990 #line $LINENO "configure"
23993 cat confdefs.h >>conftest.$ac_ext
23994 cat >>conftest.$ac_ext <<_ACEOF
23995 /* end confdefs.h. */
23996 $ac_includes_default
24001 char *p = (char *) strtoimax;
24008 rm -f conftest.$ac_objext
24009 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24010 (eval $ac_compile) 2>&5
24012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24013 (exit $ac_status); } &&
24014 { ac_try='test -s conftest.$ac_objext'
24015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24016 (eval $ac_try) 2>&5
24018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24019 (exit $ac_status); }; }; then
24020 ac_cv_have_decl_strtoimax=yes
24022 echo "$as_me: failed program was:" >&5
24023 sed 's/^/| /' conftest.$ac_ext >&5
24025 ac_cv_have_decl_strtoimax=no
24027 rm -f conftest.$ac_objext conftest.$ac_ext
24029 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoimax" >&5
24030 echo "${ECHO_T}$ac_cv_have_decl_strtoimax" >&6
24031 if test $ac_cv_have_decl_strtoimax = yes; then
24033 cat >>confdefs.h <<_ACEOF
24034 #define HAVE_DECL_STRTOIMAX 1
24039 cat >>confdefs.h <<_ACEOF
24040 #define HAVE_DECL_STRTOIMAX 0
24045 echo "$as_me:$LINENO: checking whether strtoumax is declared" >&5
24046 echo $ECHO_N "checking whether strtoumax is declared... $ECHO_C" >&6
24047 if test "${ac_cv_have_decl_strtoumax+set}" = set; then
24048 echo $ECHO_N "(cached) $ECHO_C" >&6
24050 cat >conftest.$ac_ext <<_ACEOF
24051 #line $LINENO "configure"
24054 cat confdefs.h >>conftest.$ac_ext
24055 cat >>conftest.$ac_ext <<_ACEOF
24056 /* end confdefs.h. */
24057 $ac_includes_default
24062 char *p = (char *) strtoumax;
24069 rm -f conftest.$ac_objext
24070 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24071 (eval $ac_compile) 2>&5
24073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24074 (exit $ac_status); } &&
24075 { ac_try='test -s conftest.$ac_objext'
24076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24077 (eval $ac_try) 2>&5
24079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24080 (exit $ac_status); }; }; then
24081 ac_cv_have_decl_strtoumax=yes
24083 echo "$as_me: failed program was:" >&5
24084 sed 's/^/| /' conftest.$ac_ext >&5
24086 ac_cv_have_decl_strtoumax=no
24088 rm -f conftest.$ac_objext conftest.$ac_ext
24090 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoumax" >&5
24091 echo "${ECHO_T}$ac_cv_have_decl_strtoumax" >&6
24092 if test $ac_cv_have_decl_strtoumax = yes; then
24094 cat >>confdefs.h <<_ACEOF
24095 #define HAVE_DECL_STRTOUMAX 1
24100 cat >>confdefs.h <<_ACEOF
24101 #define HAVE_DECL_STRTOUMAX 0
24111 for ac_header in limits.h stdlib.h inttypes.h
24113 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24114 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24115 echo "$as_me:$LINENO: checking for $ac_header" >&5
24116 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24117 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24118 echo $ECHO_N "(cached) $ECHO_C" >&6
24120 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24121 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24123 # Is the header compilable?
24124 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24125 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24126 cat >conftest.$ac_ext <<_ACEOF
24127 #line $LINENO "configure"
24130 cat confdefs.h >>conftest.$ac_ext
24131 cat >>conftest.$ac_ext <<_ACEOF
24132 /* end confdefs.h. */
24133 $ac_includes_default
24134 #include <$ac_header>
24136 rm -f conftest.$ac_objext
24137 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24138 (eval $ac_compile) 2>&5
24140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24141 (exit $ac_status); } &&
24142 { ac_try='test -s conftest.$ac_objext'
24143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24144 (eval $ac_try) 2>&5
24146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24147 (exit $ac_status); }; }; then
24148 ac_header_compiler=yes
24150 echo "$as_me: failed program was:" >&5
24151 sed 's/^/| /' conftest.$ac_ext >&5
24153 ac_header_compiler=no
24155 rm -f conftest.$ac_objext conftest.$ac_ext
24156 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24157 echo "${ECHO_T}$ac_header_compiler" >&6
24159 # Is the header present?
24160 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24161 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24162 cat >conftest.$ac_ext <<_ACEOF
24163 #line $LINENO "configure"
24166 cat confdefs.h >>conftest.$ac_ext
24167 cat >>conftest.$ac_ext <<_ACEOF
24168 /* end confdefs.h. */
24169 #include <$ac_header>
24171 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24172 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24174 grep -v '^ *+' conftest.er1 >conftest.err
24176 cat conftest.err >&5
24177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24178 (exit $ac_status); } >/dev/null; then
24179 if test -s conftest.err; then
24180 ac_cpp_err=$ac_c_preproc_warn_flag
24187 if test -z "$ac_cpp_err"; then
24188 ac_header_preproc=yes
24190 echo "$as_me: failed program was:" >&5
24191 sed 's/^/| /' conftest.$ac_ext >&5
24193 ac_header_preproc=no
24195 rm -f conftest.err conftest.$ac_ext
24196 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24197 echo "${ECHO_T}$ac_header_preproc" >&6
24199 # So? What about this header?
24200 case $ac_header_compiler:$ac_header_preproc in
24202 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24203 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24204 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24205 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24208 ## ------------------------------------ ##
24209 ## Report this to bug-autoconf@gnu.org. ##
24210 ## ------------------------------------ ##
24213 sed "s/^/$as_me: WARNING: /" >&2
24216 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24217 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24218 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24219 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24220 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24221 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24224 ## ------------------------------------ ##
24225 ## Report this to bug-autoconf@gnu.org. ##
24226 ## ------------------------------------ ##
24229 sed "s/^/$as_me: WARNING: /" >&2
24232 echo "$as_me:$LINENO: checking for $ac_header" >&5
24233 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24234 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24235 echo $ECHO_N "(cached) $ECHO_C" >&6
24237 eval "$as_ac_Header=$ac_header_preproc"
24239 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24240 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24243 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24244 cat >>confdefs.h <<_ACEOF
24245 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24253 echo "$as_me:$LINENO: checking whether <inttypes.h> defines strtoumax as a macro" >&5
24254 echo $ECHO_N "checking whether <inttypes.h> defines strtoumax as a macro... $ECHO_C" >&6
24255 if test "${jm_cv_func_strtoumax_macro+set}" = set; then
24256 echo $ECHO_N "(cached) $ECHO_C" >&6
24258 cat >conftest.$ac_ext <<_ACEOF
24259 #line $LINENO "configure"
24262 cat confdefs.h >>conftest.$ac_ext
24263 cat >>conftest.$ac_ext <<_ACEOF
24264 /* end confdefs.h. */
24265 #include <inttypes.h>
24267 inttypes_h_defines_strtoumax
24270 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24271 $EGREP "inttypes_h_defines_strtoumax" >/dev/null 2>&1; then
24272 jm_cv_func_strtoumax_macro=yes
24274 jm_cv_func_strtoumax_macro=no
24279 echo "$as_me:$LINENO: result: $jm_cv_func_strtoumax_macro" >&5
24280 echo "${ECHO_T}$jm_cv_func_strtoumax_macro" >&6
24282 if test "$jm_cv_func_strtoumax_macro" != yes; then
24284 for ac_func in strtoumax
24286 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24287 echo "$as_me:$LINENO: checking for $ac_func" >&5
24288 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24289 if eval "test \"\${$as_ac_var+set}\" = set"; then
24290 echo $ECHO_N "(cached) $ECHO_C" >&6
24292 cat >conftest.$ac_ext <<_ACEOF
24293 #line $LINENO "configure"
24296 cat confdefs.h >>conftest.$ac_ext
24297 cat >>conftest.$ac_ext <<_ACEOF
24298 /* end confdefs.h. */
24299 /* System header to define __stub macros and hopefully few prototypes,
24300 which can conflict with char $ac_func (); below.
24301 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24302 <limits.h> exists even on freestanding compilers. */
24304 # include <limits.h>
24306 # include <assert.h>
24308 /* Override any gcc2 internal prototype to avoid an error. */
24313 /* We use char because int might match the return type of a gcc2
24314 builtin and then its argument prototype would still apply. */
24316 /* The GNU C library defines this for functions which it implements
24317 to always fail with ENOSYS. Some functions are actually named
24318 something starting with __ and the normal name is an alias. */
24319 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24322 char (*f) () = $ac_func;
24331 return f != $ac_func;
24336 rm -f conftest.$ac_objext conftest$ac_exeext
24337 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24338 (eval $ac_link) 2>&5
24340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24341 (exit $ac_status); } &&
24342 { ac_try='test -s conftest$ac_exeext'
24343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24344 (eval $ac_try) 2>&5
24346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24347 (exit $ac_status); }; }; then
24348 eval "$as_ac_var=yes"
24350 echo "$as_me: failed program was:" >&5
24351 sed 's/^/| /' conftest.$ac_ext >&5
24353 eval "$as_ac_var=no"
24355 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24357 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24358 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24359 if test `eval echo '${'$as_ac_var'}'` = yes; then
24360 cat >>confdefs.h <<_ACEOF
24361 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24365 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
24372 case "$jm_cv_func_strtoumax_macro,$ac_cv_func_strtoumax" in
24375 for ac_func in strtoul
24377 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24378 echo "$as_me:$LINENO: checking for $ac_func" >&5
24379 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24380 if eval "test \"\${$as_ac_var+set}\" = set"; then
24381 echo $ECHO_N "(cached) $ECHO_C" >&6
24383 cat >conftest.$ac_ext <<_ACEOF
24384 #line $LINENO "configure"
24387 cat confdefs.h >>conftest.$ac_ext
24388 cat >>conftest.$ac_ext <<_ACEOF
24389 /* end confdefs.h. */
24390 /* System header to define __stub macros and hopefully few prototypes,
24391 which can conflict with char $ac_func (); below.
24392 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24393 <limits.h> exists even on freestanding compilers. */
24395 # include <limits.h>
24397 # include <assert.h>
24399 /* Override any gcc2 internal prototype to avoid an error. */
24404 /* We use char because int might match the return type of a gcc2
24405 builtin and then its argument prototype would still apply. */
24407 /* The GNU C library defines this for functions which it implements
24408 to always fail with ENOSYS. Some functions are actually named
24409 something starting with __ and the normal name is an alias. */
24410 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24413 char (*f) () = $ac_func;
24422 return f != $ac_func;
24427 rm -f conftest.$ac_objext conftest$ac_exeext
24428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24429 (eval $ac_link) 2>&5
24431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24432 (exit $ac_status); } &&
24433 { ac_try='test -s conftest$ac_exeext'
24434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24435 (eval $ac_try) 2>&5
24437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24438 (exit $ac_status); }; }; then
24439 eval "$as_ac_var=yes"
24441 echo "$as_me: failed program was:" >&5
24442 sed 's/^/| /' conftest.$ac_ext >&5
24444 eval "$as_ac_var=no"
24446 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24448 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24449 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24450 if test `eval echo '${'$as_ac_var'}'` = yes; then
24451 cat >>confdefs.h <<_ACEOF
24452 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24456 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
24462 if test "$ac_cv_type_unsigned_long_long" = yes; then
24464 for ac_func in strtoull
24466 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24467 echo "$as_me:$LINENO: checking for $ac_func" >&5
24468 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24469 if eval "test \"\${$as_ac_var+set}\" = set"; then
24470 echo $ECHO_N "(cached) $ECHO_C" >&6
24472 cat >conftest.$ac_ext <<_ACEOF
24473 #line $LINENO "configure"
24476 cat confdefs.h >>conftest.$ac_ext
24477 cat >>conftest.$ac_ext <<_ACEOF
24478 /* end confdefs.h. */
24479 /* System header to define __stub macros and hopefully few prototypes,
24480 which can conflict with char $ac_func (); below.
24481 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24482 <limits.h> exists even on freestanding compilers. */
24484 # include <limits.h>
24486 # include <assert.h>
24488 /* Override any gcc2 internal prototype to avoid an error. */
24493 /* We use char because int might match the return type of a gcc2
24494 builtin and then its argument prototype would still apply. */
24496 /* The GNU C library defines this for functions which it implements
24497 to always fail with ENOSYS. Some functions are actually named
24498 something starting with __ and the normal name is an alias. */
24499 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24502 char (*f) () = $ac_func;
24511 return f != $ac_func;
24516 rm -f conftest.$ac_objext conftest$ac_exeext
24517 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24518 (eval $ac_link) 2>&5
24520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24521 (exit $ac_status); } &&
24522 { ac_try='test -s conftest$ac_exeext'
24523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24524 (eval $ac_try) 2>&5
24526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24527 (exit $ac_status); }; }; then
24528 eval "$as_ac_var=yes"
24530 echo "$as_me: failed program was:" >&5
24531 sed 's/^/| /' conftest.$ac_ext >&5
24533 eval "$as_ac_var=no"
24535 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24537 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24538 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24539 if test `eval echo '${'$as_ac_var'}'` = yes; then
24540 cat >>confdefs.h <<_ACEOF
24541 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24545 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
24559 echo "$as_me:$LINENO: checking whether strtol is declared" >&5
24560 echo $ECHO_N "checking whether strtol is declared... $ECHO_C" >&6
24561 if test "${ac_cv_have_decl_strtol+set}" = set; then
24562 echo $ECHO_N "(cached) $ECHO_C" >&6
24564 cat >conftest.$ac_ext <<_ACEOF
24565 #line $LINENO "configure"
24568 cat confdefs.h >>conftest.$ac_ext
24569 cat >>conftest.$ac_ext <<_ACEOF
24570 /* end confdefs.h. */
24571 $ac_includes_default
24576 char *p = (char *) strtol;
24583 rm -f conftest.$ac_objext
24584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24585 (eval $ac_compile) 2>&5
24587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24588 (exit $ac_status); } &&
24589 { ac_try='test -s conftest.$ac_objext'
24590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24591 (eval $ac_try) 2>&5
24593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24594 (exit $ac_status); }; }; then
24595 ac_cv_have_decl_strtol=yes
24597 echo "$as_me: failed program was:" >&5
24598 sed 's/^/| /' conftest.$ac_ext >&5
24600 ac_cv_have_decl_strtol=no
24602 rm -f conftest.$ac_objext conftest.$ac_ext
24604 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtol" >&5
24605 echo "${ECHO_T}$ac_cv_have_decl_strtol" >&6
24606 if test $ac_cv_have_decl_strtol = yes; then
24608 cat >>confdefs.h <<_ACEOF
24609 #define HAVE_DECL_STRTOL 1
24614 cat >>confdefs.h <<_ACEOF
24615 #define HAVE_DECL_STRTOL 0
24620 echo "$as_me:$LINENO: checking whether strtoul is declared" >&5
24621 echo $ECHO_N "checking whether strtoul is declared... $ECHO_C" >&6
24622 if test "${ac_cv_have_decl_strtoul+set}" = set; then
24623 echo $ECHO_N "(cached) $ECHO_C" >&6
24625 cat >conftest.$ac_ext <<_ACEOF
24626 #line $LINENO "configure"
24629 cat confdefs.h >>conftest.$ac_ext
24630 cat >>conftest.$ac_ext <<_ACEOF
24631 /* end confdefs.h. */
24632 $ac_includes_default
24637 char *p = (char *) strtoul;
24644 rm -f conftest.$ac_objext
24645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24646 (eval $ac_compile) 2>&5
24648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24649 (exit $ac_status); } &&
24650 { ac_try='test -s conftest.$ac_objext'
24651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24652 (eval $ac_try) 2>&5
24654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24655 (exit $ac_status); }; }; then
24656 ac_cv_have_decl_strtoul=yes
24658 echo "$as_me: failed program was:" >&5
24659 sed 's/^/| /' conftest.$ac_ext >&5
24661 ac_cv_have_decl_strtoul=no
24663 rm -f conftest.$ac_objext conftest.$ac_ext
24665 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoul" >&5
24666 echo "${ECHO_T}$ac_cv_have_decl_strtoul" >&6
24667 if test $ac_cv_have_decl_strtoul = yes; then
24669 cat >>confdefs.h <<_ACEOF
24670 #define HAVE_DECL_STRTOUL 1
24675 cat >>confdefs.h <<_ACEOF
24676 #define HAVE_DECL_STRTOUL 0
24681 echo "$as_me:$LINENO: checking whether strtoll is declared" >&5
24682 echo $ECHO_N "checking whether strtoll is declared... $ECHO_C" >&6
24683 if test "${ac_cv_have_decl_strtoll+set}" = set; then
24684 echo $ECHO_N "(cached) $ECHO_C" >&6
24686 cat >conftest.$ac_ext <<_ACEOF
24687 #line $LINENO "configure"
24690 cat confdefs.h >>conftest.$ac_ext
24691 cat >>conftest.$ac_ext <<_ACEOF
24692 /* end confdefs.h. */
24693 $ac_includes_default
24698 char *p = (char *) strtoll;
24705 rm -f conftest.$ac_objext
24706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24707 (eval $ac_compile) 2>&5
24709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24710 (exit $ac_status); } &&
24711 { ac_try='test -s conftest.$ac_objext'
24712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24713 (eval $ac_try) 2>&5
24715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24716 (exit $ac_status); }; }; then
24717 ac_cv_have_decl_strtoll=yes
24719 echo "$as_me: failed program was:" >&5
24720 sed 's/^/| /' conftest.$ac_ext >&5
24722 ac_cv_have_decl_strtoll=no
24724 rm -f conftest.$ac_objext conftest.$ac_ext
24726 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoll" >&5
24727 echo "${ECHO_T}$ac_cv_have_decl_strtoll" >&6
24728 if test $ac_cv_have_decl_strtoll = yes; then
24730 cat >>confdefs.h <<_ACEOF
24731 #define HAVE_DECL_STRTOLL 1
24736 cat >>confdefs.h <<_ACEOF
24737 #define HAVE_DECL_STRTOLL 0
24742 echo "$as_me:$LINENO: checking whether strtoimax is declared" >&5
24743 echo $ECHO_N "checking whether strtoimax is declared... $ECHO_C" >&6
24744 if test "${ac_cv_have_decl_strtoimax+set}" = set; then
24745 echo $ECHO_N "(cached) $ECHO_C" >&6
24747 cat >conftest.$ac_ext <<_ACEOF
24748 #line $LINENO "configure"
24751 cat confdefs.h >>conftest.$ac_ext
24752 cat >>conftest.$ac_ext <<_ACEOF
24753 /* end confdefs.h. */
24754 $ac_includes_default
24759 char *p = (char *) strtoimax;
24766 rm -f conftest.$ac_objext
24767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24768 (eval $ac_compile) 2>&5
24770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24771 (exit $ac_status); } &&
24772 { ac_try='test -s conftest.$ac_objext'
24773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24774 (eval $ac_try) 2>&5
24776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24777 (exit $ac_status); }; }; then
24778 ac_cv_have_decl_strtoimax=yes
24780 echo "$as_me: failed program was:" >&5
24781 sed 's/^/| /' conftest.$ac_ext >&5
24783 ac_cv_have_decl_strtoimax=no
24785 rm -f conftest.$ac_objext conftest.$ac_ext
24787 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoimax" >&5
24788 echo "${ECHO_T}$ac_cv_have_decl_strtoimax" >&6
24789 if test $ac_cv_have_decl_strtoimax = yes; then
24791 cat >>confdefs.h <<_ACEOF
24792 #define HAVE_DECL_STRTOIMAX 1
24797 cat >>confdefs.h <<_ACEOF
24798 #define HAVE_DECL_STRTOIMAX 0
24803 echo "$as_me:$LINENO: checking whether strtoumax is declared" >&5
24804 echo $ECHO_N "checking whether strtoumax is declared... $ECHO_C" >&6
24805 if test "${ac_cv_have_decl_strtoumax+set}" = set; then
24806 echo $ECHO_N "(cached) $ECHO_C" >&6
24808 cat >conftest.$ac_ext <<_ACEOF
24809 #line $LINENO "configure"
24812 cat confdefs.h >>conftest.$ac_ext
24813 cat >>conftest.$ac_ext <<_ACEOF
24814 /* end confdefs.h. */
24815 $ac_includes_default
24820 char *p = (char *) strtoumax;
24827 rm -f conftest.$ac_objext
24828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24829 (eval $ac_compile) 2>&5
24831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24832 (exit $ac_status); } &&
24833 { ac_try='test -s conftest.$ac_objext'
24834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24835 (eval $ac_try) 2>&5
24837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24838 (exit $ac_status); }; }; then
24839 ac_cv_have_decl_strtoumax=yes
24841 echo "$as_me: failed program was:" >&5
24842 sed 's/^/| /' conftest.$ac_ext >&5
24844 ac_cv_have_decl_strtoumax=no
24846 rm -f conftest.$ac_objext conftest.$ac_ext
24848 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoumax" >&5
24849 echo "${ECHO_T}$ac_cv_have_decl_strtoumax" >&6
24850 if test $ac_cv_have_decl_strtoumax = yes; then
24852 cat >>confdefs.h <<_ACEOF
24853 #define HAVE_DECL_STRTOUMAX 1
24858 cat >>confdefs.h <<_ACEOF
24859 #define HAVE_DECL_STRTOUMAX 0
24869 for ac_header in limits.h stdlib.h inttypes.h
24871 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24872 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24873 echo "$as_me:$LINENO: checking for $ac_header" >&5
24874 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24875 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24876 echo $ECHO_N "(cached) $ECHO_C" >&6
24878 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24879 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24881 # Is the header compilable?
24882 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24883 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24884 cat >conftest.$ac_ext <<_ACEOF
24885 #line $LINENO "configure"
24888 cat confdefs.h >>conftest.$ac_ext
24889 cat >>conftest.$ac_ext <<_ACEOF
24890 /* end confdefs.h. */
24891 $ac_includes_default
24892 #include <$ac_header>
24894 rm -f conftest.$ac_objext
24895 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24896 (eval $ac_compile) 2>&5
24898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24899 (exit $ac_status); } &&
24900 { ac_try='test -s conftest.$ac_objext'
24901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24902 (eval $ac_try) 2>&5
24904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24905 (exit $ac_status); }; }; then
24906 ac_header_compiler=yes
24908 echo "$as_me: failed program was:" >&5
24909 sed 's/^/| /' conftest.$ac_ext >&5
24911 ac_header_compiler=no
24913 rm -f conftest.$ac_objext conftest.$ac_ext
24914 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24915 echo "${ECHO_T}$ac_header_compiler" >&6
24917 # Is the header present?
24918 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24919 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24920 cat >conftest.$ac_ext <<_ACEOF
24921 #line $LINENO "configure"
24924 cat confdefs.h >>conftest.$ac_ext
24925 cat >>conftest.$ac_ext <<_ACEOF
24926 /* end confdefs.h. */
24927 #include <$ac_header>
24929 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24930 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24932 grep -v '^ *+' conftest.er1 >conftest.err
24934 cat conftest.err >&5
24935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24936 (exit $ac_status); } >/dev/null; then
24937 if test -s conftest.err; then
24938 ac_cpp_err=$ac_c_preproc_warn_flag
24945 if test -z "$ac_cpp_err"; then
24946 ac_header_preproc=yes
24948 echo "$as_me: failed program was:" >&5
24949 sed 's/^/| /' conftest.$ac_ext >&5
24951 ac_header_preproc=no
24953 rm -f conftest.err conftest.$ac_ext
24954 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24955 echo "${ECHO_T}$ac_header_preproc" >&6
24957 # So? What about this header?
24958 case $ac_header_compiler:$ac_header_preproc in
24960 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24961 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24962 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24963 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24966 ## ------------------------------------ ##
24967 ## Report this to bug-autoconf@gnu.org. ##
24968 ## ------------------------------------ ##
24971 sed "s/^/$as_me: WARNING: /" >&2
24974 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24975 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24976 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24977 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24978 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24979 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24982 ## ------------------------------------ ##
24983 ## Report this to bug-autoconf@gnu.org. ##
24984 ## ------------------------------------ ##
24987 sed "s/^/$as_me: WARNING: /" >&2
24990 echo "$as_me:$LINENO: checking for $ac_header" >&5
24991 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24992 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24993 echo $ECHO_N "(cached) $ECHO_C" >&6
24995 eval "$as_ac_Header=$ac_header_preproc"
24997 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24998 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25001 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25002 cat >>confdefs.h <<_ACEOF
25003 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25011 echo "$as_me:$LINENO: checking whether <inttypes.h> defines strtoimax as a macro" >&5
25012 echo $ECHO_N "checking whether <inttypes.h> defines strtoimax as a macro... $ECHO_C" >&6
25013 if test "${jm_cv_func_strtoimax_macro+set}" = set; then
25014 echo $ECHO_N "(cached) $ECHO_C" >&6
25016 cat >conftest.$ac_ext <<_ACEOF
25017 #line $LINENO "configure"
25020 cat confdefs.h >>conftest.$ac_ext
25021 cat >>conftest.$ac_ext <<_ACEOF
25022 /* end confdefs.h. */
25023 #include <inttypes.h>
25025 inttypes_h_defines_strtoimax
25028 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25029 $EGREP "inttypes_h_defines_strtoimax" >/dev/null 2>&1; then
25030 jm_cv_func_strtoimax_macro=yes
25032 jm_cv_func_strtoimax_macro=no
25037 echo "$as_me:$LINENO: result: $jm_cv_func_strtoimax_macro" >&5
25038 echo "${ECHO_T}$jm_cv_func_strtoimax_macro" >&6
25040 if test "$jm_cv_func_strtoimax_macro" != yes; then
25042 for ac_func in strtoimax
25044 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25045 echo "$as_me:$LINENO: checking for $ac_func" >&5
25046 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25047 if eval "test \"\${$as_ac_var+set}\" = set"; then
25048 echo $ECHO_N "(cached) $ECHO_C" >&6
25050 cat >conftest.$ac_ext <<_ACEOF
25051 #line $LINENO "configure"
25054 cat confdefs.h >>conftest.$ac_ext
25055 cat >>conftest.$ac_ext <<_ACEOF
25056 /* end confdefs.h. */
25057 /* System header to define __stub macros and hopefully few prototypes,
25058 which can conflict with char $ac_func (); below.
25059 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25060 <limits.h> exists even on freestanding compilers. */
25062 # include <limits.h>
25064 # include <assert.h>
25066 /* Override any gcc2 internal prototype to avoid an error. */
25071 /* We use char because int might match the return type of a gcc2
25072 builtin and then its argument prototype would still apply. */
25074 /* The GNU C library defines this for functions which it implements
25075 to always fail with ENOSYS. Some functions are actually named
25076 something starting with __ and the normal name is an alias. */
25077 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25080 char (*f) () = $ac_func;
25089 return f != $ac_func;
25094 rm -f conftest.$ac_objext conftest$ac_exeext
25095 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25096 (eval $ac_link) 2>&5
25098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25099 (exit $ac_status); } &&
25100 { ac_try='test -s conftest$ac_exeext'
25101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25102 (eval $ac_try) 2>&5
25104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25105 (exit $ac_status); }; }; then
25106 eval "$as_ac_var=yes"
25108 echo "$as_me: failed program was:" >&5
25109 sed 's/^/| /' conftest.$ac_ext >&5
25111 eval "$as_ac_var=no"
25113 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25115 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25116 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25117 if test `eval echo '${'$as_ac_var'}'` = yes; then
25118 cat >>confdefs.h <<_ACEOF
25119 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25123 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
25130 case "$jm_cv_func_strtoimax_macro,$ac_cv_func_strtoimax" in
25133 for ac_func in strtol
25135 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25136 echo "$as_me:$LINENO: checking for $ac_func" >&5
25137 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25138 if eval "test \"\${$as_ac_var+set}\" = set"; then
25139 echo $ECHO_N "(cached) $ECHO_C" >&6
25141 cat >conftest.$ac_ext <<_ACEOF
25142 #line $LINENO "configure"
25145 cat confdefs.h >>conftest.$ac_ext
25146 cat >>conftest.$ac_ext <<_ACEOF
25147 /* end confdefs.h. */
25148 /* System header to define __stub macros and hopefully few prototypes,
25149 which can conflict with char $ac_func (); below.
25150 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25151 <limits.h> exists even on freestanding compilers. */
25153 # include <limits.h>
25155 # include <assert.h>
25157 /* Override any gcc2 internal prototype to avoid an error. */
25162 /* We use char because int might match the return type of a gcc2
25163 builtin and then its argument prototype would still apply. */
25165 /* The GNU C library defines this for functions which it implements
25166 to always fail with ENOSYS. Some functions are actually named
25167 something starting with __ and the normal name is an alias. */
25168 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25171 char (*f) () = $ac_func;
25180 return f != $ac_func;
25185 rm -f conftest.$ac_objext conftest$ac_exeext
25186 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25187 (eval $ac_link) 2>&5
25189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25190 (exit $ac_status); } &&
25191 { ac_try='test -s conftest$ac_exeext'
25192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25193 (eval $ac_try) 2>&5
25195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25196 (exit $ac_status); }; }; then
25197 eval "$as_ac_var=yes"
25199 echo "$as_me: failed program was:" >&5
25200 sed 's/^/| /' conftest.$ac_ext >&5
25202 eval "$as_ac_var=no"
25204 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25206 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25207 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25208 if test `eval echo '${'$as_ac_var'}'` = yes; then
25209 cat >>confdefs.h <<_ACEOF
25210 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25214 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
25220 if test "$ac_cv_type_long_long" = yes; then
25222 for ac_func in strtoll
25224 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25225 echo "$as_me:$LINENO: checking for $ac_func" >&5
25226 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25227 if eval "test \"\${$as_ac_var+set}\" = set"; then
25228 echo $ECHO_N "(cached) $ECHO_C" >&6
25230 cat >conftest.$ac_ext <<_ACEOF
25231 #line $LINENO "configure"
25234 cat confdefs.h >>conftest.$ac_ext
25235 cat >>conftest.$ac_ext <<_ACEOF
25236 /* end confdefs.h. */
25237 /* System header to define __stub macros and hopefully few prototypes,
25238 which can conflict with char $ac_func (); below.
25239 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25240 <limits.h> exists even on freestanding compilers. */
25242 # include <limits.h>
25244 # include <assert.h>
25246 /* Override any gcc2 internal prototype to avoid an error. */
25251 /* We use char because int might match the return type of a gcc2
25252 builtin and then its argument prototype would still apply. */
25254 /* The GNU C library defines this for functions which it implements
25255 to always fail with ENOSYS. Some functions are actually named
25256 something starting with __ and the normal name is an alias. */
25257 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25260 char (*f) () = $ac_func;
25269 return f != $ac_func;
25274 rm -f conftest.$ac_objext conftest$ac_exeext
25275 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25276 (eval $ac_link) 2>&5
25278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25279 (exit $ac_status); } &&
25280 { ac_try='test -s conftest$ac_exeext'
25281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25282 (eval $ac_try) 2>&5
25284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25285 (exit $ac_status); }; }; then
25286 eval "$as_ac_var=yes"
25288 echo "$as_me: failed program was:" >&5
25289 sed 's/^/| /' conftest.$ac_ext >&5
25291 eval "$as_ac_var=no"
25293 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25295 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25296 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25297 if test `eval echo '${'$as_ac_var'}'` = yes; then
25298 cat >>confdefs.h <<_ACEOF
25299 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25303 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
25312 echo "$as_me:$LINENO: checking whether link(2) dereferences a symlink specified with a trailing slash" >&5
25313 echo $ECHO_N "checking whether link(2) dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
25314 if test "${jm_ac_cv_func_link_follows_symlink+set}" = set; then
25315 echo $ECHO_N "(cached) $ECHO_C" >&6
25318 test -z "$ac_cv_header_unistd_h" \
25320 for ac_header in unistd.h
25322 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25323 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25324 echo "$as_me:$LINENO: checking for $ac_header" >&5
25325 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25326 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25327 echo $ECHO_N "(cached) $ECHO_C" >&6
25329 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25330 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25332 # Is the header compilable?
25333 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25334 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25335 cat >conftest.$ac_ext <<_ACEOF
25336 #line $LINENO "configure"
25339 cat confdefs.h >>conftest.$ac_ext
25340 cat >>conftest.$ac_ext <<_ACEOF
25341 /* end confdefs.h. */
25342 $ac_includes_default
25343 #include <$ac_header>
25345 rm -f conftest.$ac_objext
25346 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25347 (eval $ac_compile) 2>&5
25349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25350 (exit $ac_status); } &&
25351 { ac_try='test -s conftest.$ac_objext'
25352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25353 (eval $ac_try) 2>&5
25355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25356 (exit $ac_status); }; }; then
25357 ac_header_compiler=yes
25359 echo "$as_me: failed program was:" >&5
25360 sed 's/^/| /' conftest.$ac_ext >&5
25362 ac_header_compiler=no
25364 rm -f conftest.$ac_objext conftest.$ac_ext
25365 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25366 echo "${ECHO_T}$ac_header_compiler" >&6
25368 # Is the header present?
25369 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25370 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25371 cat >conftest.$ac_ext <<_ACEOF
25372 #line $LINENO "configure"
25375 cat confdefs.h >>conftest.$ac_ext
25376 cat >>conftest.$ac_ext <<_ACEOF
25377 /* end confdefs.h. */
25378 #include <$ac_header>
25380 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25381 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25383 grep -v '^ *+' conftest.er1 >conftest.err
25385 cat conftest.err >&5
25386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25387 (exit $ac_status); } >/dev/null; then
25388 if test -s conftest.err; then
25389 ac_cpp_err=$ac_c_preproc_warn_flag
25396 if test -z "$ac_cpp_err"; then
25397 ac_header_preproc=yes
25399 echo "$as_me: failed program was:" >&5
25400 sed 's/^/| /' conftest.$ac_ext >&5
25402 ac_header_preproc=no
25404 rm -f conftest.err conftest.$ac_ext
25405 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25406 echo "${ECHO_T}$ac_header_preproc" >&6
25408 # So? What about this header?
25409 case $ac_header_compiler:$ac_header_preproc in
25411 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25412 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25413 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25414 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25417 ## ------------------------------------ ##
25418 ## Report this to bug-autoconf@gnu.org. ##
25419 ## ------------------------------------ ##
25422 sed "s/^/$as_me: WARNING: /" >&2
25425 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25426 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25427 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25428 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25429 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25430 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25433 ## ------------------------------------ ##
25434 ## Report this to bug-autoconf@gnu.org. ##
25435 ## ------------------------------------ ##
25438 sed "s/^/$as_me: WARNING: /" >&2
25441 echo "$as_me:$LINENO: checking for $ac_header" >&5
25442 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25443 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25444 echo $ECHO_N "(cached) $ECHO_C" >&6
25446 eval "$as_ac_Header=$ac_header_preproc"
25448 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25449 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25452 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25453 cat >>confdefs.h <<_ACEOF
25454 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25462 # Create a regular file.
25463 echo > conftest.file
25464 if test "$cross_compiling" = yes; then
25465 jm_ac_cv_func_link_follows_symlink=yes
25467 cat >conftest.$ac_ext <<_ACEOF
25468 #line $LINENO "configure"
25471 cat confdefs.h >>conftest.$ac_ext
25472 cat >>conftest.$ac_ext <<_ACEOF
25473 /* end confdefs.h. */
25475 # include <sys/types.h>
25476 # include <sys/stat.h>
25477 # ifdef HAVE_UNISTD_H
25478 # include <unistd.h>
25481 # define SAME_INODE(Stat_buf_1, Stat_buf_2) \
25482 ((Stat_buf_1).st_ino == (Stat_buf_2).st_ino \
25483 && (Stat_buf_1).st_dev == (Stat_buf_2).st_dev)
25488 const char *file = "conftest.file";
25489 const char *sym = "conftest.sym";
25490 const char *hard = "conftest.hard";
25491 struct stat sb_file, sb_hard;
25493 /* Create a symlink to the regular file. */
25494 if (symlink (file, sym))
25497 /* Create a hard link to that symlink. */
25498 if (link (sym, hard))
25501 if (lstat (hard, &sb_hard))
25503 if (lstat (file, &sb_file))
25506 /* If the dev/inode of hard and file are the same, then
25507 the link call followed the symlink. */
25508 return SAME_INODE (sb_hard, sb_file) ? 0 : 1;
25512 rm -f conftest$ac_exeext
25513 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25514 (eval $ac_link) 2>&5
25516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25517 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25519 (eval $ac_try) 2>&5
25521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25522 (exit $ac_status); }; }; then
25523 jm_ac_cv_func_link_follows_symlink=yes
25525 echo "$as_me: program exited with status $ac_status" >&5
25526 echo "$as_me: failed program was:" >&5
25527 sed 's/^/| /' conftest.$ac_ext >&5
25529 ( exit $ac_status )
25530 jm_ac_cv_func_link_follows_symlink=no
25532 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25536 echo "$as_me:$LINENO: result: $jm_ac_cv_func_link_follows_symlink" >&5
25537 echo "${ECHO_T}$jm_ac_cv_func_link_follows_symlink" >&6
25538 if test $jm_ac_cv_func_link_follows_symlink = yes; then
25540 cat >>confdefs.h <<\_ACEOF
25541 #define LINK_FOLLOWS_SYMLINKS 1
25546 echo "$as_me:$LINENO: checking for error_at_line" >&5
25547 echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6
25548 if test "${ac_cv_lib_error_at_line+set}" = set; then
25549 echo $ECHO_N "(cached) $ECHO_C" >&6
25551 cat >conftest.$ac_ext <<_ACEOF
25552 #line $LINENO "configure"
25555 cat confdefs.h >>conftest.$ac_ext
25556 cat >>conftest.$ac_ext <<_ACEOF
25557 /* end confdefs.h. */
25562 error_at_line (0, 0, "", 0, "");
25567 rm -f conftest.$ac_objext conftest$ac_exeext
25568 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25569 (eval $ac_link) 2>&5
25571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25572 (exit $ac_status); } &&
25573 { ac_try='test -s conftest$ac_exeext'
25574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25575 (eval $ac_try) 2>&5
25577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25578 (exit $ac_status); }; }; then
25579 ac_cv_lib_error_at_line=yes
25581 echo "$as_me: failed program was:" >&5
25582 sed 's/^/| /' conftest.$ac_ext >&5
25584 ac_cv_lib_error_at_line=no
25586 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25588 echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
25589 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6
25590 if test $ac_cv_lib_error_at_line = no; then
25591 LIBOBJS="$LIBOBJS error.$ac_objext"
25598 for ac_func in localtime_r strftime
25600 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25601 echo "$as_me:$LINENO: checking for $ac_func" >&5
25602 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25603 if eval "test \"\${$as_ac_var+set}\" = set"; then
25604 echo $ECHO_N "(cached) $ECHO_C" >&6
25606 cat >conftest.$ac_ext <<_ACEOF
25607 #line $LINENO "configure"
25610 cat confdefs.h >>conftest.$ac_ext
25611 cat >>conftest.$ac_ext <<_ACEOF
25612 /* end confdefs.h. */
25613 /* System header to define __stub macros and hopefully few prototypes,
25614 which can conflict with char $ac_func (); below.
25615 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25616 <limits.h> exists even on freestanding compilers. */
25618 # include <limits.h>
25620 # include <assert.h>
25622 /* Override any gcc2 internal prototype to avoid an error. */
25627 /* We use char because int might match the return type of a gcc2
25628 builtin and then its argument prototype would still apply. */
25630 /* The GNU C library defines this for functions which it implements
25631 to always fail with ENOSYS. Some functions are actually named
25632 something starting with __ and the normal name is an alias. */
25633 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25636 char (*f) () = $ac_func;
25645 return f != $ac_func;
25650 rm -f conftest.$ac_objext conftest$ac_exeext
25651 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25652 (eval $ac_link) 2>&5
25654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25655 (exit $ac_status); } &&
25656 { ac_try='test -s conftest$ac_exeext'
25657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25658 (eval $ac_try) 2>&5
25660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25661 (exit $ac_status); }; }; then
25662 eval "$as_ac_var=yes"
25664 echo "$as_me: failed program was:" >&5
25665 sed 's/^/| /' conftest.$ac_ext >&5
25667 eval "$as_ac_var=no"
25669 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25671 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25672 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25673 if test `eval echo '${'$as_ac_var'}'` = yes; then
25674 cat >>confdefs.h <<_ACEOF
25675 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25683 for ac_header in limits.h
25685 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25686 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25687 echo "$as_me:$LINENO: checking for $ac_header" >&5
25688 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25689 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25690 echo $ECHO_N "(cached) $ECHO_C" >&6
25692 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25693 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25695 # Is the header compilable?
25696 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25697 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25698 cat >conftest.$ac_ext <<_ACEOF
25699 #line $LINENO "configure"
25702 cat confdefs.h >>conftest.$ac_ext
25703 cat >>conftest.$ac_ext <<_ACEOF
25704 /* end confdefs.h. */
25705 $ac_includes_default
25706 #include <$ac_header>
25708 rm -f conftest.$ac_objext
25709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25710 (eval $ac_compile) 2>&5
25712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25713 (exit $ac_status); } &&
25714 { ac_try='test -s conftest.$ac_objext'
25715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25716 (eval $ac_try) 2>&5
25718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25719 (exit $ac_status); }; }; then
25720 ac_header_compiler=yes
25722 echo "$as_me: failed program was:" >&5
25723 sed 's/^/| /' conftest.$ac_ext >&5
25725 ac_header_compiler=no
25727 rm -f conftest.$ac_objext conftest.$ac_ext
25728 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25729 echo "${ECHO_T}$ac_header_compiler" >&6
25731 # Is the header present?
25732 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25733 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25734 cat >conftest.$ac_ext <<_ACEOF
25735 #line $LINENO "configure"
25738 cat confdefs.h >>conftest.$ac_ext
25739 cat >>conftest.$ac_ext <<_ACEOF
25740 /* end confdefs.h. */
25741 #include <$ac_header>
25743 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25744 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25746 grep -v '^ *+' conftest.er1 >conftest.err
25748 cat conftest.err >&5
25749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25750 (exit $ac_status); } >/dev/null; then
25751 if test -s conftest.err; then
25752 ac_cpp_err=$ac_c_preproc_warn_flag
25759 if test -z "$ac_cpp_err"; then
25760 ac_header_preproc=yes
25762 echo "$as_me: failed program was:" >&5
25763 sed 's/^/| /' conftest.$ac_ext >&5
25765 ac_header_preproc=no
25767 rm -f conftest.err conftest.$ac_ext
25768 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25769 echo "${ECHO_T}$ac_header_preproc" >&6
25771 # So? What about this header?
25772 case $ac_header_compiler:$ac_header_preproc in
25774 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25775 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25776 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25777 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25780 ## ------------------------------------ ##
25781 ## Report this to bug-autoconf@gnu.org. ##
25782 ## ------------------------------------ ##
25785 sed "s/^/$as_me: WARNING: /" >&2
25788 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25789 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25790 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25791 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25792 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25793 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25796 ## ------------------------------------ ##
25797 ## Report this to bug-autoconf@gnu.org. ##
25798 ## ------------------------------------ ##
25801 sed "s/^/$as_me: WARNING: /" >&2
25804 echo "$as_me:$LINENO: checking for $ac_header" >&5
25805 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25806 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25807 echo $ECHO_N "(cached) $ECHO_C" >&6
25809 eval "$as_ac_Header=$ac_header_preproc"
25811 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25812 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25815 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25816 cat >>confdefs.h <<_ACEOF
25817 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25829 for ac_func in bcopy tzset mempcpy memcpy memset
25831 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25832 echo "$as_me:$LINENO: checking for $ac_func" >&5
25833 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25834 if eval "test \"\${$as_ac_var+set}\" = set"; then
25835 echo $ECHO_N "(cached) $ECHO_C" >&6
25837 cat >conftest.$ac_ext <<_ACEOF
25838 #line $LINENO "configure"
25841 cat confdefs.h >>conftest.$ac_ext
25842 cat >>conftest.$ac_ext <<_ACEOF
25843 /* end confdefs.h. */
25844 /* System header to define __stub macros and hopefully few prototypes,
25845 which can conflict with char $ac_func (); below.
25846 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25847 <limits.h> exists even on freestanding compilers. */
25849 # include <limits.h>
25851 # include <assert.h>
25853 /* Override any gcc2 internal prototype to avoid an error. */
25858 /* We use char because int might match the return type of a gcc2
25859 builtin and then its argument prototype would still apply. */
25861 /* The GNU C library defines this for functions which it implements
25862 to always fail with ENOSYS. Some functions are actually named
25863 something starting with __ and the normal name is an alias. */
25864 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25867 char (*f) () = $ac_func;
25876 return f != $ac_func;
25881 rm -f conftest.$ac_objext conftest$ac_exeext
25882 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25883 (eval $ac_link) 2>&5
25885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25886 (exit $ac_status); } &&
25887 { ac_try='test -s conftest$ac_exeext'
25888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25889 (eval $ac_try) 2>&5
25891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25892 (exit $ac_status); }; }; then
25893 eval "$as_ac_var=yes"
25895 echo "$as_me: failed program was:" >&5
25896 sed 's/^/| /' conftest.$ac_ext >&5
25898 eval "$as_ac_var=no"
25900 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25902 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25903 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25904 if test `eval echo '${'$as_ac_var'}'` = yes; then
25905 cat >>confdefs.h <<_ACEOF
25906 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25913 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
25914 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
25915 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
25916 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
25917 echo $ECHO_N "(cached) $ECHO_C" >&6
25919 cat >conftest.$ac_ext <<_ACEOF
25920 #line $LINENO "configure"
25923 cat confdefs.h >>conftest.$ac_ext
25924 cat >>conftest.$ac_ext <<_ACEOF
25925 /* end confdefs.h. */
25926 #include <sys/types.h>
25927 #include <$ac_cv_struct_tm>
25933 static struct tm ac_aggr;
25934 if (ac_aggr.tm_zone)
25940 rm -f conftest.$ac_objext
25941 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25942 (eval $ac_compile) 2>&5
25944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25945 (exit $ac_status); } &&
25946 { ac_try='test -s conftest.$ac_objext'
25947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25948 (eval $ac_try) 2>&5
25950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25951 (exit $ac_status); }; }; then
25952 ac_cv_member_struct_tm_tm_zone=yes
25954 echo "$as_me: failed program was:" >&5
25955 sed 's/^/| /' conftest.$ac_ext >&5
25957 cat >conftest.$ac_ext <<_ACEOF
25958 #line $LINENO "configure"
25961 cat confdefs.h >>conftest.$ac_ext
25962 cat >>conftest.$ac_ext <<_ACEOF
25963 /* end confdefs.h. */
25964 #include <sys/types.h>
25965 #include <$ac_cv_struct_tm>
25971 static struct tm ac_aggr;
25972 if (sizeof ac_aggr.tm_zone)
25978 rm -f conftest.$ac_objext
25979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25980 (eval $ac_compile) 2>&5
25982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25983 (exit $ac_status); } &&
25984 { ac_try='test -s conftest.$ac_objext'
25985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25986 (eval $ac_try) 2>&5
25988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25989 (exit $ac_status); }; }; then
25990 ac_cv_member_struct_tm_tm_zone=yes
25992 echo "$as_me: failed program was:" >&5
25993 sed 's/^/| /' conftest.$ac_ext >&5
25995 ac_cv_member_struct_tm_tm_zone=no
25997 rm -f conftest.$ac_objext conftest.$ac_ext
25999 rm -f conftest.$ac_objext conftest.$ac_ext
26001 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
26002 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
26003 if test $ac_cv_member_struct_tm_tm_zone = yes; then
26005 cat >>confdefs.h <<_ACEOF
26006 #define HAVE_STRUCT_TM_TM_ZONE 1
26012 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
26014 cat >>confdefs.h <<\_ACEOF
26015 #define HAVE_TM_ZONE 1
26019 echo "$as_me:$LINENO: checking for tzname" >&5
26020 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
26021 if test "${ac_cv_var_tzname+set}" = set; then
26022 echo $ECHO_N "(cached) $ECHO_C" >&6
26024 cat >conftest.$ac_ext <<_ACEOF
26025 #line $LINENO "configure"
26028 cat confdefs.h >>conftest.$ac_ext
26029 cat >>conftest.$ac_ext <<_ACEOF
26030 /* end confdefs.h. */
26032 #ifndef tzname /* For SGI. */
26033 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
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 ac_cv_var_tzname=yes
26058 echo "$as_me: failed program was:" >&5
26059 sed 's/^/| /' conftest.$ac_ext >&5
26061 ac_cv_var_tzname=no
26063 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26065 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
26066 echo "${ECHO_T}$ac_cv_var_tzname" >&6
26067 if test $ac_cv_var_tzname = yes; then
26069 cat >>confdefs.h <<\_ACEOF
26070 #define HAVE_TZNAME 1
26079 for ac_func in mblen mbrlen
26081 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26082 echo "$as_me:$LINENO: checking for $ac_func" >&5
26083 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26084 if eval "test \"\${$as_ac_var+set}\" = set"; then
26085 echo $ECHO_N "(cached) $ECHO_C" >&6
26087 cat >conftest.$ac_ext <<_ACEOF
26088 #line $LINENO "configure"
26091 cat confdefs.h >>conftest.$ac_ext
26092 cat >>conftest.$ac_ext <<_ACEOF
26093 /* end confdefs.h. */
26094 /* System header to define __stub macros and hopefully few prototypes,
26095 which can conflict with char $ac_func (); below.
26096 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26097 <limits.h> exists even on freestanding compilers. */
26099 # include <limits.h>
26101 # include <assert.h>
26103 /* Override any gcc2 internal prototype to avoid an error. */
26108 /* We use char because int might match the return type of a gcc2
26109 builtin and then its argument prototype would still apply. */
26111 /* The GNU C library defines this for functions which it implements
26112 to always fail with ENOSYS. Some functions are actually named
26113 something starting with __ and the normal name is an alias. */
26114 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26117 char (*f) () = $ac_func;
26126 return f != $ac_func;
26131 rm -f conftest.$ac_objext conftest$ac_exeext
26132 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26133 (eval $ac_link) 2>&5
26135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26136 (exit $ac_status); } &&
26137 { ac_try='test -s conftest$ac_exeext'
26138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26139 (eval $ac_try) 2>&5
26141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26142 (exit $ac_status); }; }; then
26143 eval "$as_ac_var=yes"
26145 echo "$as_me: failed program was:" >&5
26146 sed 's/^/| /' conftest.$ac_ext >&5
26148 eval "$as_ac_var=no"
26150 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26152 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26153 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26154 if test `eval echo '${'$as_ac_var'}'` = yes; then
26155 cat >>confdefs.h <<_ACEOF
26156 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26163 echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
26164 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
26165 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
26166 echo $ECHO_N "(cached) $ECHO_C" >&6
26168 cat >conftest.$ac_ext <<_ACEOF
26169 #line $LINENO "configure"
26172 cat confdefs.h >>conftest.$ac_ext
26173 cat >>conftest.$ac_ext <<_ACEOF
26174 /* end confdefs.h. */
26180 static struct tm ac_aggr;
26181 if (ac_aggr.tm_gmtoff)
26187 rm -f conftest.$ac_objext
26188 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26189 (eval $ac_compile) 2>&5
26191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26192 (exit $ac_status); } &&
26193 { ac_try='test -s conftest.$ac_objext'
26194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26195 (eval $ac_try) 2>&5
26197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26198 (exit $ac_status); }; }; then
26199 ac_cv_member_struct_tm_tm_gmtoff=yes
26201 echo "$as_me: failed program was:" >&5
26202 sed 's/^/| /' conftest.$ac_ext >&5
26204 cat >conftest.$ac_ext <<_ACEOF
26205 #line $LINENO "configure"
26208 cat confdefs.h >>conftest.$ac_ext
26209 cat >>conftest.$ac_ext <<_ACEOF
26210 /* end confdefs.h. */
26216 static struct tm ac_aggr;
26217 if (sizeof ac_aggr.tm_gmtoff)
26223 rm -f conftest.$ac_objext
26224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26225 (eval $ac_compile) 2>&5
26227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26228 (exit $ac_status); } &&
26229 { ac_try='test -s conftest.$ac_objext'
26230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26231 (eval $ac_try) 2>&5
26233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26234 (exit $ac_status); }; }; then
26235 ac_cv_member_struct_tm_tm_gmtoff=yes
26237 echo "$as_me: failed program was:" >&5
26238 sed 's/^/| /' conftest.$ac_ext >&5
26240 ac_cv_member_struct_tm_tm_gmtoff=no
26242 rm -f conftest.$ac_objext conftest.$ac_ext
26244 rm -f conftest.$ac_objext conftest.$ac_ext
26246 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
26247 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
26248 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
26250 cat >>confdefs.h <<\_ACEOF
26251 #define HAVE_TM_GMTOFF 1
26259 for ac_header in sys/time.h
26261 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26262 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26263 echo "$as_me:$LINENO: checking for $ac_header" >&5
26264 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26265 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26266 echo $ECHO_N "(cached) $ECHO_C" >&6
26268 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26269 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26271 # Is the header compilable?
26272 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26273 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26274 cat >conftest.$ac_ext <<_ACEOF
26275 #line $LINENO "configure"
26278 cat confdefs.h >>conftest.$ac_ext
26279 cat >>conftest.$ac_ext <<_ACEOF
26280 /* end confdefs.h. */
26281 $ac_includes_default
26282 #include <$ac_header>
26284 rm -f conftest.$ac_objext
26285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26286 (eval $ac_compile) 2>&5
26288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26289 (exit $ac_status); } &&
26290 { ac_try='test -s conftest.$ac_objext'
26291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26292 (eval $ac_try) 2>&5
26294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26295 (exit $ac_status); }; }; then
26296 ac_header_compiler=yes
26298 echo "$as_me: failed program was:" >&5
26299 sed 's/^/| /' conftest.$ac_ext >&5
26301 ac_header_compiler=no
26303 rm -f conftest.$ac_objext conftest.$ac_ext
26304 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26305 echo "${ECHO_T}$ac_header_compiler" >&6
26307 # Is the header present?
26308 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26309 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26310 cat >conftest.$ac_ext <<_ACEOF
26311 #line $LINENO "configure"
26314 cat confdefs.h >>conftest.$ac_ext
26315 cat >>conftest.$ac_ext <<_ACEOF
26316 /* end 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 sed 's/^/| /' conftest.$ac_ext >&5
26341 ac_header_preproc=no
26343 rm -f conftest.err conftest.$ac_ext
26344 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26345 echo "${ECHO_T}$ac_header_preproc" >&6
26347 # So? What about this header?
26348 case $ac_header_compiler:$ac_header_preproc in
26350 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26351 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26352 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26353 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26356 ## ------------------------------------ ##
26357 ## Report this to bug-autoconf@gnu.org. ##
26358 ## ------------------------------------ ##
26361 sed "s/^/$as_me: WARNING: /" >&2
26364 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26365 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26366 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26367 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26368 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26369 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26372 ## ------------------------------------ ##
26373 ## Report this to bug-autoconf@gnu.org. ##
26374 ## ------------------------------------ ##
26377 sed "s/^/$as_me: WARNING: /" >&2
26380 echo "$as_me:$LINENO: checking for $ac_header" >&5
26381 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26382 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26383 echo $ECHO_N "(cached) $ECHO_C" >&6
26385 eval "$as_ac_Header=$ac_header_preproc"
26387 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26388 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26391 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26392 cat >>confdefs.h <<_ACEOF
26393 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26401 cat >>confdefs.h <<\_ACEOF
26402 #define my_strftime nstrftime
26408 for ac_header in stdio_ext.h
26410 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26411 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26412 echo "$as_me:$LINENO: checking for $ac_header" >&5
26413 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26414 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26415 echo $ECHO_N "(cached) $ECHO_C" >&6
26417 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26418 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26420 # Is the header compilable?
26421 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26422 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26423 cat >conftest.$ac_ext <<_ACEOF
26424 #line $LINENO "configure"
26427 cat confdefs.h >>conftest.$ac_ext
26428 cat >>conftest.$ac_ext <<_ACEOF
26429 /* end confdefs.h. */
26430 $ac_includes_default
26431 #include <$ac_header>
26433 rm -f conftest.$ac_objext
26434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26435 (eval $ac_compile) 2>&5
26437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26438 (exit $ac_status); } &&
26439 { ac_try='test -s conftest.$ac_objext'
26440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26441 (eval $ac_try) 2>&5
26443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26444 (exit $ac_status); }; }; then
26445 ac_header_compiler=yes
26447 echo "$as_me: failed program was:" >&5
26448 sed 's/^/| /' conftest.$ac_ext >&5
26450 ac_header_compiler=no
26452 rm -f conftest.$ac_objext conftest.$ac_ext
26453 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26454 echo "${ECHO_T}$ac_header_compiler" >&6
26456 # Is the header present?
26457 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26458 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26459 cat >conftest.$ac_ext <<_ACEOF
26460 #line $LINENO "configure"
26463 cat confdefs.h >>conftest.$ac_ext
26464 cat >>conftest.$ac_ext <<_ACEOF
26465 /* end confdefs.h. */
26466 #include <$ac_header>
26468 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26469 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26471 grep -v '^ *+' conftest.er1 >conftest.err
26473 cat conftest.err >&5
26474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26475 (exit $ac_status); } >/dev/null; then
26476 if test -s conftest.err; then
26477 ac_cpp_err=$ac_c_preproc_warn_flag
26484 if test -z "$ac_cpp_err"; then
26485 ac_header_preproc=yes
26487 echo "$as_me: failed program was:" >&5
26488 sed 's/^/| /' conftest.$ac_ext >&5
26490 ac_header_preproc=no
26492 rm -f conftest.err conftest.$ac_ext
26493 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26494 echo "${ECHO_T}$ac_header_preproc" >&6
26496 # So? What about this header?
26497 case $ac_header_compiler:$ac_header_preproc in
26499 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26500 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26501 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26502 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26505 ## ------------------------------------ ##
26506 ## Report this to bug-autoconf@gnu.org. ##
26507 ## ------------------------------------ ##
26510 sed "s/^/$as_me: WARNING: /" >&2
26513 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26514 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26515 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26516 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26517 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26518 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26521 ## ------------------------------------ ##
26522 ## Report this to bug-autoconf@gnu.org. ##
26523 ## ------------------------------------ ##
26526 sed "s/^/$as_me: WARNING: /" >&2
26529 echo "$as_me:$LINENO: checking for $ac_header" >&5
26530 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26531 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26532 echo $ECHO_N "(cached) $ECHO_C" >&6
26534 eval "$as_ac_Header=$ac_header_preproc"
26536 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26537 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26540 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26541 cat >>confdefs.h <<_ACEOF
26542 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26550 for ac_func in __fpending
26552 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26553 echo "$as_me:$LINENO: checking for $ac_func" >&5
26554 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26555 if eval "test \"\${$as_ac_var+set}\" = set"; then
26556 echo $ECHO_N "(cached) $ECHO_C" >&6
26558 cat >conftest.$ac_ext <<_ACEOF
26559 #line $LINENO "configure"
26562 cat confdefs.h >>conftest.$ac_ext
26563 cat >>conftest.$ac_ext <<_ACEOF
26564 /* end confdefs.h. */
26565 /* System header to define __stub macros and hopefully few prototypes,
26566 which can conflict with char $ac_func (); below.
26567 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26568 <limits.h> exists even on freestanding compilers. */
26570 # include <limits.h>
26572 # include <assert.h>
26574 /* Override any gcc2 internal prototype to avoid an error. */
26579 /* We use char because int might match the return type of a gcc2
26580 builtin and then its argument prototype would still apply. */
26582 /* The GNU C library defines this for functions which it implements
26583 to always fail with ENOSYS. Some functions are actually named
26584 something starting with __ and the normal name is an alias. */
26585 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26588 char (*f) () = $ac_func;
26597 return f != $ac_func;
26602 rm -f conftest.$ac_objext conftest$ac_exeext
26603 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26604 (eval $ac_link) 2>&5
26606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26607 (exit $ac_status); } &&
26608 { ac_try='test -s conftest$ac_exeext'
26609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26610 (eval $ac_try) 2>&5
26612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26613 (exit $ac_status); }; }; then
26614 eval "$as_ac_var=yes"
26616 echo "$as_me: failed program was:" >&5
26617 sed 's/^/| /' conftest.$ac_ext >&5
26619 eval "$as_ac_var=no"
26621 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26623 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26624 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26625 if test `eval echo '${'$as_ac_var'}'` = yes; then
26626 cat >>confdefs.h <<_ACEOF
26627 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26631 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
26637 # if HAVE_STDIO_EXT_H
26638 # include <stdio_ext.h>
26641 echo "$as_me:$LINENO: checking whether __fpending is declared" >&5
26642 echo $ECHO_N "checking whether __fpending is declared... $ECHO_C" >&6
26643 if test "${ac_cv_have_decl___fpending+set}" = set; then
26644 echo $ECHO_N "(cached) $ECHO_C" >&6
26646 cat >conftest.$ac_ext <<_ACEOF
26647 #line $LINENO "configure"
26650 cat confdefs.h >>conftest.$ac_ext
26651 cat >>conftest.$ac_ext <<_ACEOF
26652 /* end confdefs.h. */
26659 char *p = (char *) __fpending;
26666 rm -f conftest.$ac_objext
26667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26668 (eval $ac_compile) 2>&5
26670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26671 (exit $ac_status); } &&
26672 { ac_try='test -s conftest.$ac_objext'
26673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26674 (eval $ac_try) 2>&5
26676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26677 (exit $ac_status); }; }; then
26678 ac_cv_have_decl___fpending=yes
26680 echo "$as_me: failed program was:" >&5
26681 sed 's/^/| /' conftest.$ac_ext >&5
26683 ac_cv_have_decl___fpending=no
26685 rm -f conftest.$ac_objext conftest.$ac_ext
26687 echo "$as_me:$LINENO: result: $ac_cv_have_decl___fpending" >&5
26688 echo "${ECHO_T}$ac_cv_have_decl___fpending" >&6
26689 if test $ac_cv_have_decl___fpending = yes; then
26691 cat >>confdefs.h <<_ACEOF
26692 #define HAVE_DECL___FPENDING 1
26697 cat >>confdefs.h <<_ACEOF
26698 #define HAVE_DECL___FPENDING 0
26705 if test $ac_cv_func___fpending = no; then
26706 echo "$as_me:$LINENO: checking how to determine the number of pending output bytes on a stream" >&5
26707 echo $ECHO_N "checking how to determine the number of pending output bytes on a stream... $ECHO_C" >&6
26708 if test "${ac_cv_sys_pending_output_n_bytes+set}" = set; then
26709 echo $ECHO_N "(cached) $ECHO_C" >&6
26715 'fp->_IO_write_ptr - fp->_IO_write_base' \
26717 '# traditional Unix' \
26718 'fp->_ptr - fp->_base' \
26721 'fp->_p - fp->_bf._base' \
26723 '# SCO, Unixware' \
26724 'fp->__ptr - fp->__base' \
26727 'fp->__bufp - fp->__buffer' \
26729 '# old glibc iostream?' \
26730 'fp->_pptr - fp->_pbase' \
26733 '(*fp)->_ptr - (*fp)->_base' \
26735 '# e.g., DGUX R4.11; the info is not available' \
26739 # Skip each embedded comment.
26740 case "$ac_expr" in '#'*) continue;; esac
26742 cat >conftest.$ac_ext <<_ACEOF
26743 #line $LINENO "configure"
26746 cat confdefs.h >>conftest.$ac_ext
26747 cat >>conftest.$ac_ext <<_ACEOF
26748 /* end confdefs.h. */
26754 FILE *fp = stdin; (void) ($ac_expr);
26759 rm -f conftest.$ac_objext
26760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26761 (eval $ac_compile) 2>&5
26763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26764 (exit $ac_status); } &&
26765 { ac_try='test -s conftest.$ac_objext'
26766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26767 (eval $ac_try) 2>&5
26769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26770 (exit $ac_status); }; }; then
26774 echo "$as_me: failed program was:" >&5
26775 sed 's/^/| /' conftest.$ac_ext >&5
26778 rm -f conftest.$ac_objext conftest.$ac_ext
26779 test "$fp_done" = yes && break
26782 ac_cv_sys_pending_output_n_bytes=$ac_expr
26786 echo "$as_me:$LINENO: result: $ac_cv_sys_pending_output_n_bytes" >&5
26787 echo "${ECHO_T}$ac_cv_sys_pending_output_n_bytes" >&6
26789 cat >>confdefs.h <<_ACEOF
26790 #define PENDING_OUTPUT_N_BYTES $ac_cv_sys_pending_output_n_bytes
26796 # autoconf-2.52 has a proper check for inttypes.h.
26799 if test $ac_cv_header_inttypes_h = yes; then
26800 echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
26801 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6
26802 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
26803 echo $ECHO_N "(cached) $ECHO_C" >&6
26806 cat >conftest.$ac_ext <<_ACEOF
26807 #line $LINENO "configure"
26810 cat confdefs.h >>conftest.$ac_ext
26811 cat >>conftest.$ac_ext <<_ACEOF
26812 /* end confdefs.h. */
26813 #include <inttypes.h>
26826 rm -f conftest.$ac_objext
26827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26828 (eval $ac_compile) 2>&5
26830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26831 (exit $ac_status); } &&
26832 { ac_try='test -s conftest.$ac_objext'
26833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26834 (eval $ac_try) 2>&5
26836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26837 (exit $ac_status); }; }; then
26838 gt_cv_inttypes_pri_broken=no
26840 echo "$as_me: failed program was:" >&5
26841 sed 's/^/| /' conftest.$ac_ext >&5
26843 gt_cv_inttypes_pri_broken=yes
26845 rm -f conftest.$ac_objext conftest.$ac_ext
26848 echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
26849 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6
26851 if test "$gt_cv_inttypes_pri_broken" = yes; then
26853 cat >>confdefs.h <<_ACEOF
26854 #define PRI_MACROS_BROKEN 1
26859 echo "$as_me:$LINENO: checking for getgroups" >&5
26860 echo $ECHO_N "checking for getgroups... $ECHO_C" >&6
26861 if test "${ac_cv_func_getgroups+set}" = set; then
26862 echo $ECHO_N "(cached) $ECHO_C" >&6
26864 cat >conftest.$ac_ext <<_ACEOF
26865 #line $LINENO "configure"
26868 cat confdefs.h >>conftest.$ac_ext
26869 cat >>conftest.$ac_ext <<_ACEOF
26870 /* end confdefs.h. */
26871 /* System header to define __stub macros and hopefully few prototypes,
26872 which can conflict with char getgroups (); below.
26873 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26874 <limits.h> exists even on freestanding compilers. */
26876 # include <limits.h>
26878 # include <assert.h>
26880 /* Override any gcc2 internal prototype to avoid an error. */
26885 /* We use char because int might match the return type of a gcc2
26886 builtin and then its argument prototype would still apply. */
26888 /* The GNU C library defines this for functions which it implements
26889 to always fail with ENOSYS. Some functions are actually named
26890 something starting with __ and the normal name is an alias. */
26891 #if defined (__stub_getgroups) || defined (__stub___getgroups)
26894 char (*f) () = getgroups;
26903 return f != getgroups;
26908 rm -f conftest.$ac_objext conftest$ac_exeext
26909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26910 (eval $ac_link) 2>&5
26912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26913 (exit $ac_status); } &&
26914 { ac_try='test -s conftest$ac_exeext'
26915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26916 (eval $ac_try) 2>&5
26918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26919 (exit $ac_status); }; }; then
26920 ac_cv_func_getgroups=yes
26922 echo "$as_me: failed program was:" >&5
26923 sed 's/^/| /' conftest.$ac_ext >&5
26925 ac_cv_func_getgroups=no
26927 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26929 echo "$as_me:$LINENO: result: $ac_cv_func_getgroups" >&5
26930 echo "${ECHO_T}$ac_cv_func_getgroups" >&6
26933 # If we don't yet have getgroups, see if it's in -lbsd.
26934 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
26936 if test $ac_cv_func_getgroups = no; then
26937 echo "$as_me:$LINENO: checking for getgroups in -lbsd" >&5
26938 echo $ECHO_N "checking for getgroups in -lbsd... $ECHO_C" >&6
26939 if test "${ac_cv_lib_bsd_getgroups+set}" = set; then
26940 echo $ECHO_N "(cached) $ECHO_C" >&6
26942 ac_check_lib_save_LIBS=$LIBS
26944 cat >conftest.$ac_ext <<_ACEOF
26945 #line $LINENO "configure"
26948 cat confdefs.h >>conftest.$ac_ext
26949 cat >>conftest.$ac_ext <<_ACEOF
26950 /* end confdefs.h. */
26952 /* Override any gcc2 internal prototype to avoid an error. */
26956 /* We use char because int might match the return type of a gcc2
26957 builtin and then its argument prototype would still apply. */
26967 rm -f conftest.$ac_objext conftest$ac_exeext
26968 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26969 (eval $ac_link) 2>&5
26971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26972 (exit $ac_status); } &&
26973 { ac_try='test -s conftest$ac_exeext'
26974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26975 (eval $ac_try) 2>&5
26977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26978 (exit $ac_status); }; }; then
26979 ac_cv_lib_bsd_getgroups=yes
26981 echo "$as_me: failed program was:" >&5
26982 sed 's/^/| /' conftest.$ac_ext >&5
26984 ac_cv_lib_bsd_getgroups=no
26986 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26987 LIBS=$ac_check_lib_save_LIBS
26989 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_getgroups" >&5
26990 echo "${ECHO_T}$ac_cv_lib_bsd_getgroups" >&6
26991 if test $ac_cv_lib_bsd_getgroups = yes; then
26992 GETGROUPS_LIB=-lbsd
26997 # Run the program to test the functionality of the system-supplied
26998 # getgroups function only if there is such a function.
26999 if test $ac_cv_func_getgroups = yes; then
27000 echo "$as_me:$LINENO: checking for working getgroups" >&5
27001 echo $ECHO_N "checking for working getgroups... $ECHO_C" >&6
27002 if test "${ac_cv_func_getgroups_works+set}" = set; then
27003 echo $ECHO_N "(cached) $ECHO_C" >&6
27005 if test "$cross_compiling" = yes; then
27006 ac_cv_func_getgroups_works=no
27008 cat >conftest.$ac_ext <<_ACEOF
27009 #line $LINENO "configure"
27012 cat confdefs.h >>conftest.$ac_ext
27013 cat >>conftest.$ac_ext <<_ACEOF
27014 /* end confdefs.h. */
27019 /* On Ultrix 4.3, getgroups (0, 0) always fails. */
27020 exit (getgroups (0, 0) == -1 ? 1 : 0);
27025 rm -f conftest$ac_exeext
27026 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27027 (eval $ac_link) 2>&5
27029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27030 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27032 (eval $ac_try) 2>&5
27034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27035 (exit $ac_status); }; }; then
27036 ac_cv_func_getgroups_works=yes
27038 echo "$as_me: program exited with status $ac_status" >&5
27039 echo "$as_me: failed program was:" >&5
27040 sed 's/^/| /' conftest.$ac_ext >&5
27042 ( exit $ac_status )
27043 ac_cv_func_getgroups_works=no
27045 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27049 echo "$as_me:$LINENO: result: $ac_cv_func_getgroups_works" >&5
27050 echo "${ECHO_T}$ac_cv_func_getgroups_works" >&6
27051 if test $ac_cv_func_getgroups_works = yes; then
27053 cat >>confdefs.h <<\_ACEOF
27054 #define HAVE_GETGROUPS 1
27061 if test $ac_cv_func_getgroups_works = no; then
27062 LIBOBJS="$LIBOBJS getgroups.$ac_objext"
27064 cat >>confdefs.h <<\_ACEOF
27065 #define getgroups rpl_getgroups
27069 test -n "$GETGROUPS_LIB" && LIBS="$GETGROUPS_LIB $LIBS"
27071 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
27072 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
27073 if test "${ac_cv_sys_largefile_source+set}" = set; then
27074 echo $ECHO_N "(cached) $ECHO_C" >&6
27077 ac_cv_sys_largefile_source=no
27078 cat >conftest.$ac_ext <<_ACEOF
27079 #line $LINENO "configure"
27082 cat confdefs.h >>conftest.$ac_ext
27083 cat >>conftest.$ac_ext <<_ACEOF
27084 /* end confdefs.h. */
27094 rm -f conftest.$ac_objext
27095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27096 (eval $ac_compile) 2>&5
27098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27099 (exit $ac_status); } &&
27100 { ac_try='test -s conftest.$ac_objext'
27101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27102 (eval $ac_try) 2>&5
27104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27105 (exit $ac_status); }; }; then
27108 echo "$as_me: failed program was:" >&5
27109 sed 's/^/| /' conftest.$ac_ext >&5
27112 rm -f conftest.$ac_objext conftest.$ac_ext
27113 cat >conftest.$ac_ext <<_ACEOF
27114 #line $LINENO "configure"
27117 cat confdefs.h >>conftest.$ac_ext
27118 cat >>conftest.$ac_ext <<_ACEOF
27119 /* end confdefs.h. */
27120 #define _LARGEFILE_SOURCE 1
27130 rm -f conftest.$ac_objext
27131 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27132 (eval $ac_compile) 2>&5
27134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27135 (exit $ac_status); } &&
27136 { ac_try='test -s conftest.$ac_objext'
27137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27138 (eval $ac_try) 2>&5
27140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27141 (exit $ac_status); }; }; then
27142 ac_cv_sys_largefile_source=1; break
27144 echo "$as_me: failed program was:" >&5
27145 sed 's/^/| /' conftest.$ac_ext >&5
27148 rm -f conftest.$ac_objext conftest.$ac_ext
27152 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
27153 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
27154 if test "$ac_cv_sys_largefile_source" != no; then
27156 cat >>confdefs.h <<_ACEOF
27157 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
27163 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
27164 # in glibc 2.1.3, but that breaks too many other things.
27165 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
27166 echo "$as_me:$LINENO: checking for fseeko" >&5
27167 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
27168 if test "${ac_cv_func_fseeko+set}" = set; then
27169 echo $ECHO_N "(cached) $ECHO_C" >&6
27171 cat >conftest.$ac_ext <<_ACEOF
27172 #line $LINENO "configure"
27175 cat confdefs.h >>conftest.$ac_ext
27176 cat >>conftest.$ac_ext <<_ACEOF
27177 /* end confdefs.h. */
27182 return fseeko && fseeko (stdin, 0, 0);
27187 rm -f conftest.$ac_objext conftest$ac_exeext
27188 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27189 (eval $ac_link) 2>&5
27191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27192 (exit $ac_status); } &&
27193 { ac_try='test -s conftest$ac_exeext'
27194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27195 (eval $ac_try) 2>&5
27197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27198 (exit $ac_status); }; }; then
27199 ac_cv_func_fseeko=yes
27201 echo "$as_me: failed program was:" >&5
27202 sed 's/^/| /' conftest.$ac_ext >&5
27204 ac_cv_func_fseeko=no
27206 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27208 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
27209 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
27210 if test $ac_cv_func_fseeko = yes; then
27212 cat >>confdefs.h <<\_ACEOF
27213 #define HAVE_FSEEKO 1
27219 for ac_func in vprintf
27221 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27222 echo "$as_me:$LINENO: checking for $ac_func" >&5
27223 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27224 if eval "test \"\${$as_ac_var+set}\" = set"; then
27225 echo $ECHO_N "(cached) $ECHO_C" >&6
27227 cat >conftest.$ac_ext <<_ACEOF
27228 #line $LINENO "configure"
27231 cat confdefs.h >>conftest.$ac_ext
27232 cat >>conftest.$ac_ext <<_ACEOF
27233 /* end confdefs.h. */
27234 /* System header to define __stub macros and hopefully few prototypes,
27235 which can conflict with char $ac_func (); below.
27236 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27237 <limits.h> exists even on freestanding compilers. */
27239 # include <limits.h>
27241 # include <assert.h>
27243 /* Override any gcc2 internal prototype to avoid an error. */
27248 /* We use char because int might match the return type of a gcc2
27249 builtin and then its argument prototype would still apply. */
27251 /* The GNU C library defines this for functions which it implements
27252 to always fail with ENOSYS. Some functions are actually named
27253 something starting with __ and the normal name is an alias. */
27254 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27257 char (*f) () = $ac_func;
27266 return f != $ac_func;
27271 rm -f conftest.$ac_objext conftest$ac_exeext
27272 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27273 (eval $ac_link) 2>&5
27275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27276 (exit $ac_status); } &&
27277 { ac_try='test -s conftest$ac_exeext'
27278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27279 (eval $ac_try) 2>&5
27281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27282 (exit $ac_status); }; }; then
27283 eval "$as_ac_var=yes"
27285 echo "$as_me: failed program was:" >&5
27286 sed 's/^/| /' conftest.$ac_ext >&5
27288 eval "$as_ac_var=no"
27290 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27292 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27293 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27294 if test `eval echo '${'$as_ac_var'}'` = yes; then
27295 cat >>confdefs.h <<_ACEOF
27296 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27299 echo "$as_me:$LINENO: checking for _doprnt" >&5
27300 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
27301 if test "${ac_cv_func__doprnt+set}" = set; then
27302 echo $ECHO_N "(cached) $ECHO_C" >&6
27304 cat >conftest.$ac_ext <<_ACEOF
27305 #line $LINENO "configure"
27308 cat confdefs.h >>conftest.$ac_ext
27309 cat >>conftest.$ac_ext <<_ACEOF
27310 /* end confdefs.h. */
27311 /* System header to define __stub macros and hopefully few prototypes,
27312 which can conflict with char _doprnt (); below.
27313 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27314 <limits.h> exists even on freestanding compilers. */
27316 # include <limits.h>
27318 # include <assert.h>
27320 /* Override any gcc2 internal prototype to avoid an error. */
27325 /* We use char because int might match the return type of a gcc2
27326 builtin and then its argument prototype would still apply. */
27328 /* The GNU C library defines this for functions which it implements
27329 to always fail with ENOSYS. Some functions are actually named
27330 something starting with __ and the normal name is an alias. */
27331 #if defined (__stub__doprnt) || defined (__stub____doprnt)
27334 char (*f) () = _doprnt;
27343 return f != _doprnt;
27348 rm -f conftest.$ac_objext conftest$ac_exeext
27349 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27350 (eval $ac_link) 2>&5
27352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27353 (exit $ac_status); } &&
27354 { ac_try='test -s conftest$ac_exeext'
27355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27356 (eval $ac_try) 2>&5
27358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27359 (exit $ac_status); }; }; then
27360 ac_cv_func__doprnt=yes
27362 echo "$as_me: failed program was:" >&5
27363 sed 's/^/| /' conftest.$ac_ext >&5
27365 ac_cv_func__doprnt=no
27367 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27369 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
27370 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
27371 if test $ac_cv_func__doprnt = yes; then
27373 cat >>confdefs.h <<\_ACEOF
27374 #define HAVE_DOPRNT 1
27384 echo "$as_me:$LINENO: checking for /proc/uptime" >&5
27385 echo $ECHO_N "checking for /proc/uptime... $ECHO_C" >&6
27386 if test "${jm_cv_have_proc_uptime+set}" = set; then
27387 echo $ECHO_N "(cached) $ECHO_C" >&6
27389 jm_cv_have_proc_uptime=no
27390 test -f /proc/uptime \
27391 && test "$cross_compiling" = no \
27392 && cat < /proc/uptime >/dev/null 2>/dev/null \
27393 && jm_cv_have_proc_uptime=yes
27395 echo "$as_me:$LINENO: result: $jm_cv_have_proc_uptime" >&5
27396 echo "${ECHO_T}$jm_cv_have_proc_uptime" >&6
27397 if test $jm_cv_have_proc_uptime = yes; then
27399 cat >>confdefs.h <<\_ACEOF
27400 #define HAVE_PROC_UPTIME 1
27407 for ac_func in ftruncate
27409 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27410 echo "$as_me:$LINENO: checking for $ac_func" >&5
27411 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27412 if eval "test \"\${$as_ac_var+set}\" = set"; then
27413 echo $ECHO_N "(cached) $ECHO_C" >&6
27415 cat >conftest.$ac_ext <<_ACEOF
27416 #line $LINENO "configure"
27419 cat confdefs.h >>conftest.$ac_ext
27420 cat >>conftest.$ac_ext <<_ACEOF
27421 /* end confdefs.h. */
27422 /* System header to define __stub macros and hopefully few prototypes,
27423 which can conflict with char $ac_func (); below.
27424 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27425 <limits.h> exists even on freestanding compilers. */
27427 # include <limits.h>
27429 # include <assert.h>
27431 /* Override any gcc2 internal prototype to avoid an error. */
27436 /* We use char because int might match the return type of a gcc2
27437 builtin and then its argument prototype would still apply. */
27439 /* The GNU C library defines this for functions which it implements
27440 to always fail with ENOSYS. Some functions are actually named
27441 something starting with __ and the normal name is an alias. */
27442 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27445 char (*f) () = $ac_func;
27454 return f != $ac_func;
27459 rm -f conftest.$ac_objext conftest$ac_exeext
27460 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27461 (eval $ac_link) 2>&5
27463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27464 (exit $ac_status); } &&
27465 { ac_try='test -s conftest$ac_exeext'
27466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27467 (eval $ac_try) 2>&5
27469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27470 (exit $ac_status); }; }; then
27471 eval "$as_ac_var=yes"
27473 echo "$as_me: failed program was:" >&5
27474 sed 's/^/| /' conftest.$ac_ext >&5
27476 eval "$as_ac_var=no"
27478 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27480 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27481 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27482 if test `eval echo '${'$as_ac_var'}'` = yes; then
27483 cat >>confdefs.h <<_ACEOF
27484 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27488 ftruncate_missing=yes
27493 if test "$ftruncate_missing" = yes; then
27495 for ac_header in unistd.h
27497 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27498 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27499 echo "$as_me:$LINENO: checking for $ac_header" >&5
27500 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27501 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27502 echo $ECHO_N "(cached) $ECHO_C" >&6
27504 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27505 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27507 # Is the header compilable?
27508 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27509 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27510 cat >conftest.$ac_ext <<_ACEOF
27511 #line $LINENO "configure"
27514 cat confdefs.h >>conftest.$ac_ext
27515 cat >>conftest.$ac_ext <<_ACEOF
27516 /* end confdefs.h. */
27517 $ac_includes_default
27518 #include <$ac_header>
27520 rm -f conftest.$ac_objext
27521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27522 (eval $ac_compile) 2>&5
27524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27525 (exit $ac_status); } &&
27526 { ac_try='test -s conftest.$ac_objext'
27527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27528 (eval $ac_try) 2>&5
27530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27531 (exit $ac_status); }; }; then
27532 ac_header_compiler=yes
27534 echo "$as_me: failed program was:" >&5
27535 sed 's/^/| /' conftest.$ac_ext >&5
27537 ac_header_compiler=no
27539 rm -f conftest.$ac_objext conftest.$ac_ext
27540 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27541 echo "${ECHO_T}$ac_header_compiler" >&6
27543 # Is the header present?
27544 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27545 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27546 cat >conftest.$ac_ext <<_ACEOF
27547 #line $LINENO "configure"
27550 cat confdefs.h >>conftest.$ac_ext
27551 cat >>conftest.$ac_ext <<_ACEOF
27552 /* end confdefs.h. */
27553 #include <$ac_header>
27555 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27556 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27558 grep -v '^ *+' conftest.er1 >conftest.err
27560 cat conftest.err >&5
27561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27562 (exit $ac_status); } >/dev/null; then
27563 if test -s conftest.err; then
27564 ac_cpp_err=$ac_c_preproc_warn_flag
27571 if test -z "$ac_cpp_err"; then
27572 ac_header_preproc=yes
27574 echo "$as_me: failed program was:" >&5
27575 sed 's/^/| /' conftest.$ac_ext >&5
27577 ac_header_preproc=no
27579 rm -f conftest.err conftest.$ac_ext
27580 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27581 echo "${ECHO_T}$ac_header_preproc" >&6
27583 # So? What about this header?
27584 case $ac_header_compiler:$ac_header_preproc in
27586 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27587 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27588 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27589 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27592 ## ------------------------------------ ##
27593 ## Report this to bug-autoconf@gnu.org. ##
27594 ## ------------------------------------ ##
27597 sed "s/^/$as_me: WARNING: /" >&2
27600 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27601 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27602 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27603 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27604 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27605 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27608 ## ------------------------------------ ##
27609 ## Report this to bug-autoconf@gnu.org. ##
27610 ## ------------------------------------ ##
27613 sed "s/^/$as_me: WARNING: /" >&2
27616 echo "$as_me:$LINENO: checking for $ac_header" >&5
27617 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27618 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27619 echo $ECHO_N "(cached) $ECHO_C" >&6
27621 eval "$as_ac_Header=$ac_header_preproc"
27623 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27624 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27627 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27628 cat >>confdefs.h <<_ACEOF
27629 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27637 for ac_func in chsize
27639 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27640 echo "$as_me:$LINENO: checking for $ac_func" >&5
27641 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27642 if eval "test \"\${$as_ac_var+set}\" = set"; then
27643 echo $ECHO_N "(cached) $ECHO_C" >&6
27645 cat >conftest.$ac_ext <<_ACEOF
27646 #line $LINENO "configure"
27649 cat confdefs.h >>conftest.$ac_ext
27650 cat >>conftest.$ac_ext <<_ACEOF
27651 /* end confdefs.h. */
27652 /* System header to define __stub macros and hopefully few prototypes,
27653 which can conflict with char $ac_func (); below.
27654 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27655 <limits.h> exists even on freestanding compilers. */
27657 # include <limits.h>
27659 # include <assert.h>
27661 /* Override any gcc2 internal prototype to avoid an error. */
27666 /* We use char because int might match the return type of a gcc2
27667 builtin and then its argument prototype would still apply. */
27669 /* The GNU C library defines this for functions which it implements
27670 to always fail with ENOSYS. Some functions are actually named
27671 something starting with __ and the normal name is an alias. */
27672 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27675 char (*f) () = $ac_func;
27684 return f != $ac_func;
27689 rm -f conftest.$ac_objext conftest$ac_exeext
27690 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27691 (eval $ac_link) 2>&5
27693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27694 (exit $ac_status); } &&
27695 { ac_try='test -s conftest$ac_exeext'
27696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27697 (eval $ac_try) 2>&5
27699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27700 (exit $ac_status); }; }; then
27701 eval "$as_ac_var=yes"
27703 echo "$as_me: failed program was:" >&5
27704 sed 's/^/| /' conftest.$ac_ext >&5
27706 eval "$as_ac_var=no"
27708 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27710 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27711 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27712 if test `eval echo '${'$as_ac_var'}'` = yes; then
27713 cat >>confdefs.h <<_ACEOF
27714 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27720 LIBOBJS="$LIBOBJS ftruncate.$ac_objext"
27724 echo "$as_me:$LINENO: checking whether rename is broken" >&5
27725 echo $ECHO_N "checking whether rename is broken... $ECHO_C" >&6
27726 if test "${vb_cv_func_rename_trailing_slash_bug+set}" = set; then
27727 echo $ECHO_N "(cached) $ECHO_C" >&6
27730 rm -rf conftest.d1 conftest.d2
27731 mkdir conftest.d1 ||
27732 { { echo "$as_me:$LINENO: error: cannot create temporary directory" >&5
27733 echo "$as_me: error: cannot create temporary directory" >&2;}
27734 { (exit 1); exit 1; }; }
27735 if test "$cross_compiling" = yes; then
27736 vb_cv_func_rename_trailing_slash_bug=yes
27738 cat >conftest.$ac_ext <<_ACEOF
27739 #line $LINENO "configure"
27742 cat confdefs.h >>conftest.$ac_ext
27743 cat >>conftest.$ac_ext <<_ACEOF
27744 /* end confdefs.h. */
27746 # include <stdio.h>
27750 exit (rename ("conftest.d1/", "conftest.d2") ? 1 : 0);
27754 rm -f conftest$ac_exeext
27755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27756 (eval $ac_link) 2>&5
27758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27759 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27761 (eval $ac_try) 2>&5
27763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27764 (exit $ac_status); }; }; then
27765 vb_cv_func_rename_trailing_slash_bug=no
27767 echo "$as_me: program exited with status $ac_status" >&5
27768 echo "$as_me: failed program was:" >&5
27769 sed 's/^/| /' conftest.$ac_ext >&5
27771 ( exit $ac_status )
27772 vb_cv_func_rename_trailing_slash_bug=yes
27774 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27777 rm -rf conftest.d1 conftest.d2
27780 echo "$as_me:$LINENO: result: $vb_cv_func_rename_trailing_slash_bug" >&5
27781 echo "${ECHO_T}$vb_cv_func_rename_trailing_slash_bug" >&6
27782 if test $vb_cv_func_rename_trailing_slash_bug = yes; then
27783 LIBOBJS="$LIBOBJS rename.$ac_objext"
27785 cat >>confdefs.h <<\_ACEOF
27786 #define RENAME_TRAILING_SLASH_BUG 1
27792 for ac_func in mkstemp
27794 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27795 echo "$as_me:$LINENO: checking for $ac_func" >&5
27796 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27797 if eval "test \"\${$as_ac_var+set}\" = set"; then
27798 echo $ECHO_N "(cached) $ECHO_C" >&6
27800 cat >conftest.$ac_ext <<_ACEOF
27801 #line $LINENO "configure"
27804 cat confdefs.h >>conftest.$ac_ext
27805 cat >>conftest.$ac_ext <<_ACEOF
27806 /* end confdefs.h. */
27807 /* System header to define __stub macros and hopefully few prototypes,
27808 which can conflict with char $ac_func (); below.
27809 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27810 <limits.h> exists even on freestanding compilers. */
27812 # include <limits.h>
27814 # include <assert.h>
27816 /* Override any gcc2 internal prototype to avoid an error. */
27821 /* We use char because int might match the return type of a gcc2
27822 builtin and then its argument prototype would still apply. */
27824 /* The GNU C library defines this for functions which it implements
27825 to always fail with ENOSYS. Some functions are actually named
27826 something starting with __ and the normal name is an alias. */
27827 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27830 char (*f) () = $ac_func;
27839 return f != $ac_func;
27844 rm -f conftest.$ac_objext conftest$ac_exeext
27845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27846 (eval $ac_link) 2>&5
27848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27849 (exit $ac_status); } &&
27850 { ac_try='test -s conftest$ac_exeext'
27851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27852 (eval $ac_try) 2>&5
27854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27855 (exit $ac_status); }; }; then
27856 eval "$as_ac_var=yes"
27858 echo "$as_me: failed program was:" >&5
27859 sed 's/^/| /' conftest.$ac_ext >&5
27861 eval "$as_ac_var=no"
27863 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27865 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27866 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27867 if test `eval echo '${'$as_ac_var'}'` = yes; then
27868 cat >>confdefs.h <<_ACEOF
27869 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27873 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
27878 if test $ac_cv_func_mkstemp = no; then
27879 utils_cv_func_mkstemp_limitations=yes
27881 echo "$as_me:$LINENO: checking for mkstemp limitations" >&5
27882 echo $ECHO_N "checking for mkstemp limitations... $ECHO_C" >&6
27883 if test "${utils_cv_func_mkstemp_limitations+set}" = set; then
27884 echo $ECHO_N "(cached) $ECHO_C" >&6
27887 if test "$cross_compiling" = yes; then
27888 utils_cv_func_mkstemp_limitations=yes
27891 cat >conftest.$ac_ext <<_ACEOF
27892 #line $LINENO "configure"
27895 cat confdefs.h >>conftest.$ac_ext
27896 cat >>conftest.$ac_ext <<_ACEOF
27897 /* end confdefs.h. */
27899 # include <stdlib.h>
27903 for (i = 0; i < 30; i++)
27905 char template[] = "conftestXXXXXX";
27906 int fd = mkstemp (template);
27915 rm -f conftest$ac_exeext
27916 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27917 (eval $ac_link) 2>&5
27919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27920 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27922 (eval $ac_try) 2>&5
27924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27925 (exit $ac_status); }; }; then
27926 utils_cv_func_mkstemp_limitations=no
27928 echo "$as_me: program exited with status $ac_status" >&5
27929 echo "$as_me: failed program was:" >&5
27930 sed 's/^/| /' conftest.$ac_ext >&5
27932 ( exit $ac_status )
27933 utils_cv_func_mkstemp_limitations=yes
27935 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27940 echo "$as_me:$LINENO: result: $utils_cv_func_mkstemp_limitations" >&5
27941 echo "${ECHO_T}$utils_cv_func_mkstemp_limitations" >&6
27944 if test $utils_cv_func_mkstemp_limitations = yes; then
27945 LIBOBJS="$LIBOBJS mkstemp.$ac_objext"
27946 LIBOBJS="$LIBOBJS tempname.$ac_objext"
27948 cat >>confdefs.h <<\_ACEOF
27949 #define mkstemp rpl_mkstemp
27954 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
27955 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
27956 if test "${ac_cv_func_closedir_void+set}" = set; then
27957 echo $ECHO_N "(cached) $ECHO_C" >&6
27959 if test "$cross_compiling" = yes; then
27960 ac_cv_func_closedir_void=yes
27962 cat >conftest.$ac_ext <<_ACEOF
27963 #line $LINENO "configure"
27966 cat confdefs.h >>conftest.$ac_ext
27967 cat >>conftest.$ac_ext <<_ACEOF
27968 /* end confdefs.h. */
27969 $ac_includes_default
27970 #include <$ac_header_dirent>
27971 #ifndef __cplusplus
27978 exit (closedir (opendir (".")) != 0);
27983 rm -f conftest$ac_exeext
27984 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27985 (eval $ac_link) 2>&5
27987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27988 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27990 (eval $ac_try) 2>&5
27992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27993 (exit $ac_status); }; }; then
27994 ac_cv_func_closedir_void=no
27996 echo "$as_me: program exited with status $ac_status" >&5
27997 echo "$as_me: failed program was:" >&5
27998 sed 's/^/| /' conftest.$ac_ext >&5
28000 ( exit $ac_status )
28001 ac_cv_func_closedir_void=yes
28003 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28006 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
28007 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
28008 if test $ac_cv_func_closedir_void = yes; then
28010 cat >>confdefs.h <<\_ACEOF
28011 #define CLOSEDIR_VOID 1
28016 echo "$as_me:$LINENO: checking whether utime accepts a null argument" >&5
28017 echo $ECHO_N "checking whether utime accepts a null argument... $ECHO_C" >&6
28018 if test "${ac_cv_func_utime_null+set}" = set; then
28019 echo $ECHO_N "(cached) $ECHO_C" >&6
28021 rm -f conftest.data; >conftest.data
28022 # Sequent interprets utime(file, 0) to mean use start of epoch. Wrong.
28023 if test "$cross_compiling" = yes; then
28024 ac_cv_func_utime_null=no
28026 cat >conftest.$ac_ext <<_ACEOF
28027 #line $LINENO "configure"
28030 cat confdefs.h >>conftest.$ac_ext
28031 cat >>conftest.$ac_ext <<_ACEOF
28032 /* end confdefs.h. */
28033 $ac_includes_default
28038 exit (!(stat ("conftest.data", &s) == 0
28039 && utime ("conftest.data", (long *)0) == 0
28040 && stat ("conftest.data", &t) == 0
28041 && t.st_mtime >= s.st_mtime
28042 && t.st_mtime - s.st_mtime < 120));
28047 rm -f conftest$ac_exeext
28048 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28049 (eval $ac_link) 2>&5
28051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28052 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28054 (eval $ac_try) 2>&5
28056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28057 (exit $ac_status); }; }; then
28058 ac_cv_func_utime_null=yes
28060 echo "$as_me: program exited with status $ac_status" >&5
28061 echo "$as_me: failed program was:" >&5
28062 sed 's/^/| /' conftest.$ac_ext >&5
28064 ( exit $ac_status )
28065 ac_cv_func_utime_null=no
28067 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28069 rm -f core core.* *.core
28071 echo "$as_me:$LINENO: result: $ac_cv_func_utime_null" >&5
28072 echo "${ECHO_T}$ac_cv_func_utime_null" >&6
28073 if test $ac_cv_func_utime_null = yes; then
28075 cat >>confdefs.h <<\_ACEOF
28076 #define HAVE_UTIME_NULL 1
28080 rm -f conftest.data
28084 for ac_header in utime.h
28086 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28087 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28088 echo "$as_me:$LINENO: checking for $ac_header" >&5
28089 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28090 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28091 echo $ECHO_N "(cached) $ECHO_C" >&6
28093 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28094 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28096 # Is the header compilable?
28097 echo "$as_me:$LINENO: checking $ac_header usability" >&5
28098 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28099 cat >conftest.$ac_ext <<_ACEOF
28100 #line $LINENO "configure"
28103 cat confdefs.h >>conftest.$ac_ext
28104 cat >>conftest.$ac_ext <<_ACEOF
28105 /* end confdefs.h. */
28106 $ac_includes_default
28107 #include <$ac_header>
28109 rm -f conftest.$ac_objext
28110 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28111 (eval $ac_compile) 2>&5
28113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28114 (exit $ac_status); } &&
28115 { ac_try='test -s conftest.$ac_objext'
28116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28117 (eval $ac_try) 2>&5
28119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28120 (exit $ac_status); }; }; then
28121 ac_header_compiler=yes
28123 echo "$as_me: failed program was:" >&5
28124 sed 's/^/| /' conftest.$ac_ext >&5
28126 ac_header_compiler=no
28128 rm -f conftest.$ac_objext conftest.$ac_ext
28129 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28130 echo "${ECHO_T}$ac_header_compiler" >&6
28132 # Is the header present?
28133 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28134 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28135 cat >conftest.$ac_ext <<_ACEOF
28136 #line $LINENO "configure"
28139 cat confdefs.h >>conftest.$ac_ext
28140 cat >>conftest.$ac_ext <<_ACEOF
28141 /* end confdefs.h. */
28142 #include <$ac_header>
28144 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28145 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28147 grep -v '^ *+' conftest.er1 >conftest.err
28149 cat conftest.err >&5
28150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28151 (exit $ac_status); } >/dev/null; then
28152 if test -s conftest.err; then
28153 ac_cpp_err=$ac_c_preproc_warn_flag
28160 if test -z "$ac_cpp_err"; then
28161 ac_header_preproc=yes
28163 echo "$as_me: failed program was:" >&5
28164 sed 's/^/| /' conftest.$ac_ext >&5
28166 ac_header_preproc=no
28168 rm -f conftest.err conftest.$ac_ext
28169 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28170 echo "${ECHO_T}$ac_header_preproc" >&6
28172 # So? What about this header?
28173 case $ac_header_compiler:$ac_header_preproc in
28175 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28176 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28177 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28178 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28181 ## ------------------------------------ ##
28182 ## Report this to bug-autoconf@gnu.org. ##
28183 ## ------------------------------------ ##
28186 sed "s/^/$as_me: WARNING: /" >&2
28189 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28190 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28191 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28192 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28193 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28194 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28197 ## ------------------------------------ ##
28198 ## Report this to bug-autoconf@gnu.org. ##
28199 ## ------------------------------------ ##
28202 sed "s/^/$as_me: WARNING: /" >&2
28205 echo "$as_me:$LINENO: checking for $ac_header" >&5
28206 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28207 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28208 echo $ECHO_N "(cached) $ECHO_C" >&6
28210 eval "$as_ac_Header=$ac_header_preproc"
28212 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28213 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28216 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28217 cat >>confdefs.h <<_ACEOF
28218 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28228 if test $ac_cv_func_utime_null = no; then
28229 echo "$as_me:$LINENO: checking whether utimes accepts a null argument" >&5
28230 echo $ECHO_N "checking whether utimes accepts a null argument... $ECHO_C" >&6
28231 if test "${ac_cv_func_utimes_null+set}" = set; then
28232 echo $ECHO_N "(cached) $ECHO_C" >&6
28234 rm -f conftest.data; > conftest.data
28235 if test "$cross_compiling" = yes; then
28236 ac_cv_func_utimes_null=no
28238 cat >conftest.$ac_ext <<_ACEOF
28239 #line $LINENO "configure"
28242 cat confdefs.h >>conftest.$ac_ext
28243 cat >>conftest.$ac_ext <<_ACEOF
28244 /* end confdefs.h. */
28246 /* In case stat has been defined to rpl_stat, undef it here. */
28248 #include <sys/types.h>
28249 #include <sys/stat.h>
28252 exit(!(stat ("conftest.data", &s) == 0
28253 && utimes("conftest.data", (long *)0) == 0
28254 && stat("conftest.data", &t) == 0
28255 && t.st_mtime >= s.st_mtime
28256 && t.st_mtime - s.st_mtime < 120));
28259 rm -f conftest$ac_exeext
28260 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28261 (eval $ac_link) 2>&5
28263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28264 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28266 (eval $ac_try) 2>&5
28268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28269 (exit $ac_status); }; }; then
28270 ac_cv_func_utimes_null=yes
28272 echo "$as_me: program exited with status $ac_status" >&5
28273 echo "$as_me: failed program was:" >&5
28274 sed 's/^/| /' conftest.$ac_ext >&5
28276 ( exit $ac_status )
28277 ac_cv_func_utimes_null=no
28279 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28281 rm -f core core.* *.core
28283 echo "$as_me:$LINENO: result: $ac_cv_func_utimes_null" >&5
28284 echo "${ECHO_T}$ac_cv_func_utimes_null" >&6
28286 if test $ac_cv_func_utimes_null = yes; then
28288 cat >>confdefs.h <<\_ACEOF
28289 #define HAVE_UTIMES_NULL 1
28296 for ac_func in utime
28298 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28299 echo "$as_me:$LINENO: checking for $ac_func" >&5
28300 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28301 if eval "test \"\${$as_ac_var+set}\" = set"; then
28302 echo $ECHO_N "(cached) $ECHO_C" >&6
28304 cat >conftest.$ac_ext <<_ACEOF
28305 #line $LINENO "configure"
28308 cat confdefs.h >>conftest.$ac_ext
28309 cat >>conftest.$ac_ext <<_ACEOF
28310 /* end confdefs.h. */
28311 /* System header to define __stub macros and hopefully few prototypes,
28312 which can conflict with char $ac_func (); below.
28313 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28314 <limits.h> exists even on freestanding compilers. */
28316 # include <limits.h>
28318 # include <assert.h>
28320 /* Override any gcc2 internal prototype to avoid an error. */
28325 /* We use char because int might match the return type of a gcc2
28326 builtin and then its argument prototype would still apply. */
28328 /* The GNU C library defines this for functions which it implements
28329 to always fail with ENOSYS. Some functions are actually named
28330 something starting with __ and the normal name is an alias. */
28331 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28334 char (*f) () = $ac_func;
28343 return f != $ac_func;
28348 rm -f conftest.$ac_objext conftest$ac_exeext
28349 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28350 (eval $ac_link) 2>&5
28352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28353 (exit $ac_status); } &&
28354 { ac_try='test -s conftest$ac_exeext'
28355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28356 (eval $ac_try) 2>&5
28358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28359 (exit $ac_status); }; }; then
28360 eval "$as_ac_var=yes"
28362 echo "$as_me: failed program was:" >&5
28363 sed 's/^/| /' conftest.$ac_ext >&5
28365 eval "$as_ac_var=no"
28367 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28369 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28370 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28371 if test `eval echo '${'$as_ac_var'}'` = yes; then
28372 cat >>confdefs.h <<_ACEOF
28373 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28377 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
28385 echo "$as_me:$LINENO: checking determine how many files may be open simultaneously" >&5
28386 echo $ECHO_N "checking determine how many files may be open simultaneously... $ECHO_C" >&6
28387 if test "${utils_cv_sys_open_max+set}" = set; then
28388 echo $ECHO_N "(cached) $ECHO_C" >&6
28391 if test "$cross_compiling" = yes; then
28392 utils_cv_sys_open_max='cross compiling run-test in open-max.m4'
28394 cat >conftest.$ac_ext <<_ACEOF
28395 #line $LINENO "configure"
28398 cat confdefs.h >>conftest.$ac_ext
28399 cat >>conftest.$ac_ext <<_ACEOF
28400 /* end confdefs.h. */
28403 #include <stdlib.h>
28404 #include <unistd.h>
28408 FILE *result = fopen ("conftest.omax", "w");
28410 /* Impose an arbitrary limit, in case some system has no
28411 effective limit on the number of simultaneously open files. */
28414 FILE *s = fopen ("conftest.op", "w");
28419 fprintf (result, "%d\n", i);
28420 exit (fclose (result) == EOF);
28424 rm -f conftest$ac_exeext
28425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28426 (eval $ac_link) 2>&5
28428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28429 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28431 (eval $ac_try) 2>&5
28433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28434 (exit $ac_status); }; }; then
28435 utils_cv_sys_open_max=`cat conftest.omax`
28437 echo "$as_me: program exited with status $ac_status" >&5
28438 echo "$as_me: failed program was:" >&5
28439 sed 's/^/| /' conftest.$ac_ext >&5
28441 ( exit $ac_status )
28442 utils_cv_sys_open_max='internal error in open-max.m4'
28444 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28447 echo "$as_me:$LINENO: result: $utils_cv_sys_open_max" >&5
28448 echo "${ECHO_T}$utils_cv_sys_open_max" >&6
28451 cat >>confdefs.h <<_ACEOF
28452 #define UTILS_OPEN_MAX $utils_cv_sys_open_max
28457 if test "X$prefix" = "XNONE"; then
28458 acl_final_prefix="$ac_default_prefix"
28460 acl_final_prefix="$prefix"
28462 if test "X$exec_prefix" = "XNONE"; then
28463 acl_final_exec_prefix='${prefix}'
28465 acl_final_exec_prefix="$exec_prefix"
28467 acl_save_prefix="$prefix"
28468 prefix="$acl_final_prefix"
28469 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
28470 prefix="$acl_save_prefix"
28473 # Check whether --with-gnu-ld or --without-gnu-ld was given.
28474 if test "${with_gnu_ld+set}" = set; then
28475 withval="$with_gnu_ld"
28476 test "$withval" = no || with_gnu_ld=yes
28481 if test "$GCC" = yes; then
28482 # Check if gcc -print-prog-name=ld gives a path.
28483 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
28484 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
28487 # gcc leaves a trailing carriage return which upsets mingw
28488 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
28490 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
28493 # Accept absolute paths.
28494 [\\/]* | [A-Za-z]:[\\/]*)
28495 re_direlt='/[^/][^/]*/\.\./'
28496 # Canonicalize the path of ld
28497 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
28498 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
28499 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
28501 test -z "$LD" && LD="$ac_prog"
28504 # If it fails, then pretend we aren't using GCC.
28508 # If it is relative, then search for the first ld in PATH.
28509 with_gnu_ld=unknown
28512 elif test "$with_gnu_ld" = yes; then
28513 echo "$as_me:$LINENO: checking for GNU ld" >&5
28514 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
28516 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
28517 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
28519 if test "${acl_cv_path_LD+set}" = set; then
28520 echo $ECHO_N "(cached) $ECHO_C" >&6
28522 if test -z "$LD"; then
28523 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
28524 for ac_dir in $PATH; do
28525 test -z "$ac_dir" && ac_dir=.
28526 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
28527 acl_cv_path_LD="$ac_dir/$ac_prog"
28528 # Check to see if the program is GNU ld. I'd rather use --version,
28529 # but apparently some GNU ld's only accept -v.
28530 # Break only if it was the GNU/non-GNU ld that we prefer.
28531 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
28532 test "$with_gnu_ld" != no && break
28534 test "$with_gnu_ld" != yes && break
28540 acl_cv_path_LD="$LD" # Let the user override the test with a path.
28544 LD="$acl_cv_path_LD"
28545 if test -n "$LD"; then
28546 echo "$as_me:$LINENO: result: $LD" >&5
28547 echo "${ECHO_T}$LD" >&6
28549 echo "$as_me:$LINENO: result: no" >&5
28550 echo "${ECHO_T}no" >&6
28552 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
28553 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
28554 { (exit 1); exit 1; }; }
28555 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
28556 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
28557 if test "${acl_cv_prog_gnu_ld+set}" = set; then
28558 echo $ECHO_N "(cached) $ECHO_C" >&6
28560 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
28561 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
28562 acl_cv_prog_gnu_ld=yes
28564 acl_cv_prog_gnu_ld=no
28567 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
28568 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
28569 with_gnu_ld=$acl_cv_prog_gnu_ld
28573 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
28574 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
28575 if test "${acl_cv_rpath+set}" = set; then
28576 echo $ECHO_N "(cached) $ECHO_C" >&6
28579 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
28580 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
28582 rm -f ./conftest.sh
28586 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
28587 echo "${ECHO_T}$acl_cv_rpath" >&6
28589 libext="$acl_cv_libext"
28590 shlibext="$acl_cv_shlibext"
28591 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
28592 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
28593 hardcode_direct="$acl_cv_hardcode_direct"
28594 hardcode_minus_L="$acl_cv_hardcode_minus_L"
28595 sys_lib_search_path_spec="$acl_cv_sys_lib_search_path_spec"
28596 sys_lib_dlsearch_path_spec="$acl_cv_sys_lib_dlsearch_path_spec"
28597 # Check whether --enable-rpath or --disable-rpath was given.
28598 if test "${enable_rpath+set}" = set; then
28599 enableval="$enable_rpath"
28613 acl_save_prefix="$prefix"
28614 prefix="$acl_final_prefix"
28615 acl_save_exec_prefix="$exec_prefix"
28616 exec_prefix="$acl_final_exec_prefix"
28618 eval additional_includedir=\"$includedir\"
28619 eval additional_libdir=\"$libdir\"
28621 exec_prefix="$acl_save_exec_prefix"
28622 prefix="$acl_save_prefix"
28625 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
28626 if test "${with_libiconv_prefix+set}" = set; then
28627 withval="$with_libiconv_prefix"
28629 if test "X$withval" = "Xno"; then
28632 if test "X$withval" = "X"; then
28634 acl_save_prefix="$prefix"
28635 prefix="$acl_final_prefix"
28636 acl_save_exec_prefix="$exec_prefix"
28637 exec_prefix="$acl_final_exec_prefix"
28639 eval additional_includedir=\"$includedir\"
28640 eval additional_libdir=\"$libdir\"
28642 exec_prefix="$acl_save_exec_prefix"
28643 prefix="$acl_save_prefix"
28646 additional_includedir="$withval/include"
28647 additional_libdir="$withval/lib"
28657 names_already_handled=
28658 names_next_round='iconv '
28659 while test -n "$names_next_round"; do
28660 names_this_round="$names_next_round"
28662 for name in $names_this_round; do
28664 for n in $names_already_handled; do
28665 if test "$n" = "$name"; then
28666 already_handled=yes
28670 if test -z "$already_handled"; then
28671 names_already_handled="$names_already_handled $name"
28672 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
28673 eval value=\"\$HAVE_LIB$uppername\"
28674 if test -n "$value"; then
28675 if test "$value" = yes; then
28676 eval value=\"\$LIB$uppername\"
28677 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
28678 eval value=\"\$LTLIB$uppername\"
28679 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
28688 if test $use_additional = yes; then
28689 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
28690 found_dir="$additional_libdir"
28691 found_so="$additional_libdir/lib$name.$shlibext"
28692 if test -f "$additional_libdir/lib$name.la"; then
28693 found_la="$additional_libdir/lib$name.la"
28696 if test -f "$additional_libdir/lib$name.$libext"; then
28697 found_dir="$additional_libdir"
28698 found_a="$additional_libdir/lib$name.$libext"
28699 if test -f "$additional_libdir/lib$name.la"; then
28700 found_la="$additional_libdir/lib$name.la"
28705 if test "X$found_dir" = "X"; then
28706 for x in $LDFLAGS $LTLIBICONV; do
28708 acl_save_prefix="$prefix"
28709 prefix="$acl_final_prefix"
28710 acl_save_exec_prefix="$exec_prefix"
28711 exec_prefix="$acl_final_exec_prefix"
28713 exec_prefix="$acl_save_exec_prefix"
28714 prefix="$acl_save_prefix"
28718 dir=`echo "X$x" | sed -e 's/^X-L//'`
28719 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
28721 found_so="$dir/lib$name.$shlibext"
28722 if test -f "$dir/lib$name.la"; then
28723 found_la="$dir/lib$name.la"
28726 if test -f "$dir/lib$name.$libext"; then
28728 found_a="$dir/lib$name.$libext"
28729 if test -f "$dir/lib$name.la"; then
28730 found_la="$dir/lib$name.la"
28736 if test "X$found_dir" != "X"; then
28741 if test "X$found_dir" != "X"; then
28742 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
28743 if test "X$found_so" != "X"; then
28744 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
28745 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
28748 for x in $ltrpathdirs; do
28749 if test "X$x" = "X$found_dir"; then
28754 if test -z "$haveit"; then
28755 ltrpathdirs="$ltrpathdirs $found_dir"
28757 if test "$hardcode_direct" = yes; then
28758 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
28760 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
28761 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
28763 for x in $rpathdirs; do
28764 if test "X$x" = "X$found_dir"; then
28769 if test -z "$haveit"; then
28770 rpathdirs="$rpathdirs $found_dir"
28774 for x in $LDFLAGS $LIBICONV; do
28776 acl_save_prefix="$prefix"
28777 prefix="$acl_final_prefix"
28778 acl_save_exec_prefix="$exec_prefix"
28779 exec_prefix="$acl_final_exec_prefix"
28781 exec_prefix="$acl_save_exec_prefix"
28782 prefix="$acl_save_prefix"
28784 if test "X$x" = "X-L$found_dir"; then
28789 if test -z "$haveit"; then
28790 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
28792 if test "$hardcode_minus_L" != no; then
28793 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
28795 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
28801 if test "X$found_a" != "X"; then
28802 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
28804 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
28807 additional_includedir=
28808 case "$found_dir" in
28810 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
28811 additional_includedir="$basedir/include"
28814 if test "X$additional_includedir" != "X"; then
28815 if test "X$additional_includedir" != "X/usr/include"; then
28817 if test "X$additional_includedir" = "X/usr/local/include"; then
28818 if test -n "$GCC"; then
28820 linux*) haveit=yes;;
28824 if test -z "$haveit"; then
28825 for x in $CPPFLAGS $INCICONV; do
28827 acl_save_prefix="$prefix"
28828 prefix="$acl_final_prefix"
28829 acl_save_exec_prefix="$exec_prefix"
28830 exec_prefix="$acl_final_exec_prefix"
28832 exec_prefix="$acl_save_exec_prefix"
28833 prefix="$acl_save_prefix"
28835 if test "X$x" = "X-I$additional_includedir"; then
28840 if test -z "$haveit"; then
28841 if test -d "$additional_includedir"; then
28842 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
28848 if test -n "$found_la"; then
28849 save_libdir="$libdir"
28850 case "$found_la" in
28851 */* | *\\*) . "$found_la" ;;
28852 *) . "./$found_la" ;;
28854 libdir="$save_libdir"
28855 for dep in $dependency_libs; do
28858 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
28859 if test "X$additional_libdir" != "X/usr/lib"; then
28861 if test "X$additional_libdir" = "X/usr/local/lib"; then
28862 if test -n "$GCC"; then
28864 linux*) haveit=yes;;
28868 if test -z "$haveit"; then
28870 for x in $LDFLAGS $LIBICONV; do
28872 acl_save_prefix="$prefix"
28873 prefix="$acl_final_prefix"
28874 acl_save_exec_prefix="$exec_prefix"
28875 exec_prefix="$acl_final_exec_prefix"
28877 exec_prefix="$acl_save_exec_prefix"
28878 prefix="$acl_save_prefix"
28880 if test "X$x" = "X-L$additional_libdir"; then
28885 if test -z "$haveit"; then
28886 if test -d "$additional_libdir"; then
28887 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
28891 for x in $LDFLAGS $LTLIBICONV; do
28893 acl_save_prefix="$prefix"
28894 prefix="$acl_final_prefix"
28895 acl_save_exec_prefix="$exec_prefix"
28896 exec_prefix="$acl_final_exec_prefix"
28898 exec_prefix="$acl_save_exec_prefix"
28899 prefix="$acl_save_prefix"
28901 if test "X$x" = "X-L$additional_libdir"; then
28906 if test -z "$haveit"; then
28907 if test -d "$additional_libdir"; then
28908 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
28915 dir=`echo "X$dep" | sed -e 's/^X-R//'`
28916 if test "$enable_rpath" != no; then
28918 for x in $rpathdirs; do
28919 if test "X$x" = "X$dir"; then
28924 if test -z "$haveit"; then
28925 rpathdirs="$rpathdirs $dir"
28928 for x in $ltrpathdirs; do
28929 if test "X$x" = "X$dir"; then
28934 if test -z "$haveit"; then
28935 ltrpathdirs="$ltrpathdirs $dir"
28940 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
28943 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
28946 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
28947 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
28953 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
28954 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
28960 if test "X$rpathdirs" != "X"; then
28961 if test -n "$hardcode_libdir_separator"; then
28963 for found_dir in $rpathdirs; do
28964 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
28966 acl_save_libdir="$libdir"
28968 eval flag=\"$hardcode_libdir_flag_spec\"
28969 libdir="$acl_save_libdir"
28970 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
28972 for found_dir in $rpathdirs; do
28973 acl_save_libdir="$libdir"
28974 libdir="$found_dir"
28975 eval flag=\"$hardcode_libdir_flag_spec\"
28976 libdir="$acl_save_libdir"
28977 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
28981 if test "X$ltrpathdirs" != "X"; then
28982 for found_dir in $ltrpathdirs; do
28983 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
28989 echo "$as_me:$LINENO: checking whether system is Windows or MSDOS" >&5
28990 echo $ECHO_N "checking whether system is Windows or MSDOS... $ECHO_C" >&6
28991 if test "${ac_cv_win_or_dos+set}" = set; then
28992 echo $ECHO_N "(cached) $ECHO_C" >&6
28995 cat >conftest.$ac_ext <<_ACEOF
28996 #line $LINENO "configure"
28999 cat confdefs.h >>conftest.$ac_ext
29000 cat >>conftest.$ac_ext <<_ACEOF
29001 /* end confdefs.h. */
29006 #if !defined _WIN32 && !defined __WIN32__ && !defined __MSDOS__
29007 neither MSDOS nor Windows
29013 rm -f conftest.$ac_objext
29014 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29015 (eval $ac_compile) 2>&5
29017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29018 (exit $ac_status); } &&
29019 { ac_try='test -s conftest.$ac_objext'
29020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29021 (eval $ac_try) 2>&5
29023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29024 (exit $ac_status); }; }; then
29025 ac_cv_win_or_dos=yes
29027 echo "$as_me: failed program was:" >&5
29028 sed 's/^/| /' conftest.$ac_ext >&5
29030 ac_cv_win_or_dos=no
29032 rm -f conftest.$ac_objext conftest.$ac_ext
29035 echo "$as_me:$LINENO: result: $ac_cv_win_or_dos" >&5
29036 echo "${ECHO_T}$ac_cv_win_or_dos" >&6
29038 if test x"$ac_cv_win_or_dos" = xyes; then
29039 ac_fs_accepts_drive_letter_prefix=1
29040 ac_fs_backslash_is_file_name_separator=1
29042 ac_fs_accepts_drive_letter_prefix=0
29043 ac_fs_backslash_is_file_name_separator=0
29050 cat >>confdefs.h <<_ACEOF
29051 #define FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX $ac_fs_accepts_drive_letter_prefix
29059 cat >>confdefs.h <<_ACEOF
29060 #define FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR $ac_fs_backslash_is_file_name_separator
29069 for ac_header in string.h sys/param.h stddef.h
29071 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29072 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29073 echo "$as_me:$LINENO: checking for $ac_header" >&5
29074 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29075 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29076 echo $ECHO_N "(cached) $ECHO_C" >&6
29078 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29079 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29081 # Is the header compilable?
29082 echo "$as_me:$LINENO: checking $ac_header usability" >&5
29083 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29084 cat >conftest.$ac_ext <<_ACEOF
29085 #line $LINENO "configure"
29088 cat confdefs.h >>conftest.$ac_ext
29089 cat >>conftest.$ac_ext <<_ACEOF
29090 /* end confdefs.h. */
29091 $ac_includes_default
29092 #include <$ac_header>
29094 rm -f conftest.$ac_objext
29095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29096 (eval $ac_compile) 2>&5
29098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29099 (exit $ac_status); } &&
29100 { ac_try='test -s conftest.$ac_objext'
29101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29102 (eval $ac_try) 2>&5
29104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29105 (exit $ac_status); }; }; then
29106 ac_header_compiler=yes
29108 echo "$as_me: failed program was:" >&5
29109 sed 's/^/| /' conftest.$ac_ext >&5
29111 ac_header_compiler=no
29113 rm -f conftest.$ac_objext conftest.$ac_ext
29114 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29115 echo "${ECHO_T}$ac_header_compiler" >&6
29117 # Is the header present?
29118 echo "$as_me:$LINENO: checking $ac_header presence" >&5
29119 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29120 cat >conftest.$ac_ext <<_ACEOF
29121 #line $LINENO "configure"
29124 cat confdefs.h >>conftest.$ac_ext
29125 cat >>conftest.$ac_ext <<_ACEOF
29126 /* end confdefs.h. */
29127 #include <$ac_header>
29129 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29130 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29132 grep -v '^ *+' conftest.er1 >conftest.err
29134 cat conftest.err >&5
29135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29136 (exit $ac_status); } >/dev/null; then
29137 if test -s conftest.err; then
29138 ac_cpp_err=$ac_c_preproc_warn_flag
29145 if test -z "$ac_cpp_err"; then
29146 ac_header_preproc=yes
29148 echo "$as_me: failed program was:" >&5
29149 sed 's/^/| /' conftest.$ac_ext >&5
29151 ac_header_preproc=no
29153 rm -f conftest.err conftest.$ac_ext
29154 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29155 echo "${ECHO_T}$ac_header_preproc" >&6
29157 # So? What about this header?
29158 case $ac_header_compiler:$ac_header_preproc in
29160 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29161 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29162 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29163 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29166 ## ------------------------------------ ##
29167 ## Report this to bug-autoconf@gnu.org. ##
29168 ## ------------------------------------ ##
29171 sed "s/^/$as_me: WARNING: /" >&2
29174 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29175 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29176 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29177 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29178 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29179 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29182 ## ------------------------------------ ##
29183 ## Report this to bug-autoconf@gnu.org. ##
29184 ## ------------------------------------ ##
29187 sed "s/^/$as_me: WARNING: /" >&2
29190 echo "$as_me:$LINENO: checking for $ac_header" >&5
29191 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29192 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29193 echo $ECHO_N "(cached) $ECHO_C" >&6
29195 eval "$as_ac_Header=$ac_header_preproc"
29197 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29198 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29201 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29202 cat >>confdefs.h <<_ACEOF
29203 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29211 for ac_func in resolvepath
29213 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29214 echo "$as_me:$LINENO: checking for $ac_func" >&5
29215 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29216 if eval "test \"\${$as_ac_var+set}\" = set"; then
29217 echo $ECHO_N "(cached) $ECHO_C" >&6
29219 cat >conftest.$ac_ext <<_ACEOF
29220 #line $LINENO "configure"
29223 cat confdefs.h >>conftest.$ac_ext
29224 cat >>conftest.$ac_ext <<_ACEOF
29225 /* end confdefs.h. */
29226 /* System header to define __stub macros and hopefully few prototypes,
29227 which can conflict with char $ac_func (); below.
29228 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29229 <limits.h> exists even on freestanding compilers. */
29231 # include <limits.h>
29233 # include <assert.h>
29235 /* Override any gcc2 internal prototype to avoid an error. */
29240 /* We use char because int might match the return type of a gcc2
29241 builtin and then its argument prototype would still apply. */
29243 /* The GNU C library defines this for functions which it implements
29244 to always fail with ENOSYS. Some functions are actually named
29245 something starting with __ and the normal name is an alias. */
29246 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29249 char (*f) () = $ac_func;
29258 return f != $ac_func;
29263 rm -f conftest.$ac_objext conftest$ac_exeext
29264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29265 (eval $ac_link) 2>&5
29267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29268 (exit $ac_status); } &&
29269 { ac_try='test -s conftest$ac_exeext'
29270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29271 (eval $ac_try) 2>&5
29273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29274 (exit $ac_status); }; }; then
29275 eval "$as_ac_var=yes"
29277 echo "$as_me: failed program was:" >&5
29278 sed 's/^/| /' conftest.$ac_ext >&5
29280 eval "$as_ac_var=no"
29282 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29284 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29285 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29286 if test `eval echo '${'$as_ac_var'}'` = yes; then
29287 cat >>confdefs.h <<_ACEOF
29288 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29296 # This would simply be AC_REPLACE_FUNC([canonicalize_file_name])
29297 # if the function name weren't so long. Besides, I would rather
29298 # not have underscores in file names.
29299 echo "$as_me:$LINENO: checking for canonicalize_file_name" >&5
29300 echo $ECHO_N "checking for canonicalize_file_name... $ECHO_C" >&6
29301 if test "${ac_cv_func_canonicalize_file_name+set}" = set; then
29302 echo $ECHO_N "(cached) $ECHO_C" >&6
29304 cat >conftest.$ac_ext <<_ACEOF
29305 #line $LINENO "configure"
29308 cat confdefs.h >>conftest.$ac_ext
29309 cat >>conftest.$ac_ext <<_ACEOF
29310 /* end confdefs.h. */
29311 /* System header to define __stub macros and hopefully few prototypes,
29312 which can conflict with char canonicalize_file_name (); below.
29313 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29314 <limits.h> exists even on freestanding compilers. */
29316 # include <limits.h>
29318 # include <assert.h>
29320 /* Override any gcc2 internal prototype to avoid an error. */
29325 /* We use char because int might match the return type of a gcc2
29326 builtin and then its argument prototype would still apply. */
29327 char canonicalize_file_name ();
29328 /* The GNU C library defines this for functions which it implements
29329 to always fail with ENOSYS. Some functions are actually named
29330 something starting with __ and the normal name is an alias. */
29331 #if defined (__stub_canonicalize_file_name) || defined (__stub___canonicalize_file_name)
29334 char (*f) () = canonicalize_file_name;
29343 return f != canonicalize_file_name;
29348 rm -f conftest.$ac_objext conftest$ac_exeext
29349 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29350 (eval $ac_link) 2>&5
29352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29353 (exit $ac_status); } &&
29354 { ac_try='test -s conftest$ac_exeext'
29355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29356 (eval $ac_try) 2>&5
29358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29359 (exit $ac_status); }; }; then
29360 ac_cv_func_canonicalize_file_name=yes
29362 echo "$as_me: failed program was:" >&5
29363 sed 's/^/| /' conftest.$ac_ext >&5
29365 ac_cv_func_canonicalize_file_name=no
29367 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29369 echo "$as_me:$LINENO: result: $ac_cv_func_canonicalize_file_name" >&5
29370 echo "${ECHO_T}$ac_cv_func_canonicalize_file_name" >&6
29371 if test $ac_cv_func_canonicalize_file_name = yes; then
29374 LIBOBJS="$LIBOBJS canonicalize.$ac_objext"
29381 GNU_PACKAGE="GNU $PACKAGE"
29383 cat >>confdefs.h <<_ACEOF
29384 #define GNU_PACKAGE "$GNU_PACKAGE"
29390 HELP2MAN=${HELP2MAN-"${am_missing_run}help2man"}
29412 echo "$as_me:$LINENO: checking for struct stat.st_author" >&5
29413 echo $ECHO_N "checking for struct stat.st_author... $ECHO_C" >&6
29414 if test "${ac_cv_member_struct_stat_st_author+set}" = set; then
29415 echo $ECHO_N "(cached) $ECHO_C" >&6
29417 cat >conftest.$ac_ext <<_ACEOF
29418 #line $LINENO "configure"
29421 cat confdefs.h >>conftest.$ac_ext
29422 cat >>conftest.$ac_ext <<_ACEOF
29423 /* end confdefs.h. */
29424 $ac_includes_default
29425 #include <sys/stat.h>
29431 static struct stat ac_aggr;
29432 if (ac_aggr.st_author)
29438 rm -f conftest.$ac_objext
29439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29440 (eval $ac_compile) 2>&5
29442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29443 (exit $ac_status); } &&
29444 { ac_try='test -s conftest.$ac_objext'
29445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29446 (eval $ac_try) 2>&5
29448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29449 (exit $ac_status); }; }; then
29450 ac_cv_member_struct_stat_st_author=yes
29452 echo "$as_me: failed program was:" >&5
29453 sed 's/^/| /' conftest.$ac_ext >&5
29455 cat >conftest.$ac_ext <<_ACEOF
29456 #line $LINENO "configure"
29459 cat confdefs.h >>conftest.$ac_ext
29460 cat >>conftest.$ac_ext <<_ACEOF
29461 /* end confdefs.h. */
29462 $ac_includes_default
29463 #include <sys/stat.h>
29469 static struct stat ac_aggr;
29470 if (sizeof ac_aggr.st_author)
29476 rm -f conftest.$ac_objext
29477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29478 (eval $ac_compile) 2>&5
29480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29481 (exit $ac_status); } &&
29482 { ac_try='test -s conftest.$ac_objext'
29483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29484 (eval $ac_try) 2>&5
29486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29487 (exit $ac_status); }; }; then
29488 ac_cv_member_struct_stat_st_author=yes
29490 echo "$as_me: failed program was:" >&5
29491 sed 's/^/| /' conftest.$ac_ext >&5
29493 ac_cv_member_struct_stat_st_author=no
29495 rm -f conftest.$ac_objext conftest.$ac_ext
29497 rm -f conftest.$ac_objext conftest.$ac_ext
29499 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_author" >&5
29500 echo "${ECHO_T}$ac_cv_member_struct_stat_st_author" >&6
29501 if test $ac_cv_member_struct_stat_st_author = yes; then
29503 cat >>confdefs.h <<_ACEOF
29504 #define HAVE_STRUCT_STAT_ST_AUTHOR 1
29509 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
29510 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
29511 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
29512 echo $ECHO_N "(cached) $ECHO_C" >&6
29514 cat >conftest.$ac_ext <<_ACEOF
29515 #line $LINENO "configure"
29518 cat confdefs.h >>conftest.$ac_ext
29519 cat >>conftest.$ac_ext <<_ACEOF
29520 /* end confdefs.h. */
29521 $ac_includes_default
29522 #include <sys/stat.h>
29528 static struct stat ac_aggr;
29529 if (ac_aggr.st_blksize)
29535 rm -f conftest.$ac_objext
29536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29537 (eval $ac_compile) 2>&5
29539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29540 (exit $ac_status); } &&
29541 { ac_try='test -s conftest.$ac_objext'
29542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29543 (eval $ac_try) 2>&5
29545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29546 (exit $ac_status); }; }; then
29547 ac_cv_member_struct_stat_st_blksize=yes
29549 echo "$as_me: failed program was:" >&5
29550 sed 's/^/| /' conftest.$ac_ext >&5
29552 cat >conftest.$ac_ext <<_ACEOF
29553 #line $LINENO "configure"
29556 cat confdefs.h >>conftest.$ac_ext
29557 cat >>conftest.$ac_ext <<_ACEOF
29558 /* end confdefs.h. */
29559 $ac_includes_default
29560 #include <sys/stat.h>
29566 static struct stat ac_aggr;
29567 if (sizeof ac_aggr.st_blksize)
29573 rm -f conftest.$ac_objext
29574 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29575 (eval $ac_compile) 2>&5
29577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29578 (exit $ac_status); } &&
29579 { ac_try='test -s conftest.$ac_objext'
29580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29581 (eval $ac_try) 2>&5
29583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29584 (exit $ac_status); }; }; then
29585 ac_cv_member_struct_stat_st_blksize=yes
29587 echo "$as_me: failed program was:" >&5
29588 sed 's/^/| /' conftest.$ac_ext >&5
29590 ac_cv_member_struct_stat_st_blksize=no
29592 rm -f conftest.$ac_objext conftest.$ac_ext
29594 rm -f conftest.$ac_objext conftest.$ac_ext
29596 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
29597 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
29598 if test $ac_cv_member_struct_stat_st_blksize = yes; then
29600 cat >>confdefs.h <<_ACEOF
29601 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
29623 echo "$as_me:$LINENO: checking for ino_t" >&5
29624 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
29625 if test "${ac_cv_type_ino_t+set}" = set; then
29626 echo $ECHO_N "(cached) $ECHO_C" >&6
29628 cat >conftest.$ac_ext <<_ACEOF
29629 #line $LINENO "configure"
29632 cat confdefs.h >>conftest.$ac_ext
29633 cat >>conftest.$ac_ext <<_ACEOF
29634 /* end confdefs.h. */
29635 $ac_includes_default
29641 if (sizeof (ino_t))
29647 rm -f conftest.$ac_objext
29648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29649 (eval $ac_compile) 2>&5
29651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29652 (exit $ac_status); } &&
29653 { ac_try='test -s conftest.$ac_objext'
29654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29655 (eval $ac_try) 2>&5
29657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29658 (exit $ac_status); }; }; then
29659 ac_cv_type_ino_t=yes
29661 echo "$as_me: failed program was:" >&5
29662 sed 's/^/| /' conftest.$ac_ext >&5
29664 ac_cv_type_ino_t=no
29666 rm -f conftest.$ac_objext conftest.$ac_ext
29668 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
29669 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
29670 if test $ac_cv_type_ino_t = yes; then
29674 cat >>confdefs.h <<_ACEOF
29675 #define ino_t unsigned long
29681 echo "$as_me:$LINENO: checking for ssize_t" >&5
29682 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
29683 if test "${ac_cv_type_ssize_t+set}" = set; then
29684 echo $ECHO_N "(cached) $ECHO_C" >&6
29686 cat >conftest.$ac_ext <<_ACEOF
29687 #line $LINENO "configure"
29690 cat confdefs.h >>conftest.$ac_ext
29691 cat >>conftest.$ac_ext <<_ACEOF
29692 /* end confdefs.h. */
29693 $ac_includes_default
29699 if (sizeof (ssize_t))
29705 rm -f conftest.$ac_objext
29706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29707 (eval $ac_compile) 2>&5
29709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29710 (exit $ac_status); } &&
29711 { ac_try='test -s conftest.$ac_objext'
29712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29713 (eval $ac_try) 2>&5
29715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29716 (exit $ac_status); }; }; then
29717 ac_cv_type_ssize_t=yes
29719 echo "$as_me: failed program was:" >&5
29720 sed 's/^/| /' conftest.$ac_ext >&5
29722 ac_cv_type_ssize_t=no
29724 rm -f conftest.$ac_objext conftest.$ac_ext
29726 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
29727 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
29728 if test $ac_cv_type_ssize_t = yes; then
29732 cat >>confdefs.h <<_ACEOF
29733 #define ssize_t int
29738 echo "$as_me:$LINENO: checking for major_t" >&5
29739 echo $ECHO_N "checking for major_t... $ECHO_C" >&6
29740 if test "${ac_cv_type_major_t+set}" = set; then
29741 echo $ECHO_N "(cached) $ECHO_C" >&6
29743 cat >conftest.$ac_ext <<_ACEOF
29744 #line $LINENO "configure"
29747 cat confdefs.h >>conftest.$ac_ext
29748 cat >>conftest.$ac_ext <<_ACEOF
29749 /* end confdefs.h. */
29750 $ac_includes_default
29756 if (sizeof (major_t))
29762 rm -f conftest.$ac_objext
29763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29764 (eval $ac_compile) 2>&5
29766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29767 (exit $ac_status); } &&
29768 { ac_try='test -s conftest.$ac_objext'
29769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29770 (eval $ac_try) 2>&5
29772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29773 (exit $ac_status); }; }; then
29774 ac_cv_type_major_t=yes
29776 echo "$as_me: failed program was:" >&5
29777 sed 's/^/| /' conftest.$ac_ext >&5
29779 ac_cv_type_major_t=no
29781 rm -f conftest.$ac_objext conftest.$ac_ext
29783 echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
29784 echo "${ECHO_T}$ac_cv_type_major_t" >&6
29785 if test $ac_cv_type_major_t = yes; then
29789 cat >>confdefs.h <<_ACEOF
29790 #define major_t unsigned int
29795 echo "$as_me:$LINENO: checking for minor_t" >&5
29796 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6
29797 if test "${ac_cv_type_minor_t+set}" = set; then
29798 echo $ECHO_N "(cached) $ECHO_C" >&6
29800 cat >conftest.$ac_ext <<_ACEOF
29801 #line $LINENO "configure"
29804 cat confdefs.h >>conftest.$ac_ext
29805 cat >>conftest.$ac_ext <<_ACEOF
29806 /* end confdefs.h. */
29807 $ac_includes_default
29813 if (sizeof (minor_t))
29819 rm -f conftest.$ac_objext
29820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29821 (eval $ac_compile) 2>&5
29823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29824 (exit $ac_status); } &&
29825 { ac_try='test -s conftest.$ac_objext'
29826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29827 (eval $ac_try) 2>&5
29829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29830 (exit $ac_status); }; }; then
29831 ac_cv_type_minor_t=yes
29833 echo "$as_me: failed program was:" >&5
29834 sed 's/^/| /' conftest.$ac_ext >&5
29836 ac_cv_type_minor_t=no
29838 rm -f conftest.$ac_objext conftest.$ac_ext
29840 echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
29841 echo "${ECHO_T}$ac_cv_type_minor_t" >&6
29842 if test $ac_cv_type_minor_t = yes; then
29846 cat >>confdefs.h <<_ACEOF
29847 #define minor_t unsigned int
29862 # Assume we'll default to using the included regex.c.
29863 ac_use_included_regex=yes
29865 # However, if the system regex support is good enough that it passes the
29866 # the following run test, then default to *not* using the included regex.c.
29867 # If cross compiling, assume the test would fail and use the included
29868 # regex.c. The first failing regular expression is from `Spencer ere
29869 # test #75' in grep-2.3.
29870 echo "$as_me:$LINENO: checking for working re_compile_pattern" >&5
29871 echo $ECHO_N "checking for working re_compile_pattern... $ECHO_C" >&6
29872 if test "${jm_cv_func_working_re_compile_pattern+set}" = set; then
29873 echo $ECHO_N "(cached) $ECHO_C" >&6
29875 if test "$cross_compiling" = yes; then
29876 jm_cv_func_working_re_compile_pattern=no
29878 cat >conftest.$ac_ext <<_ACEOF
29879 #line $LINENO "configure"
29882 cat confdefs.h >>conftest.$ac_ext
29883 cat >>conftest.$ac_ext <<_ACEOF
29884 /* end confdefs.h. */
29886 #include <string.h>
29891 static struct re_pattern_buffer regex;
29893 struct re_registers regs;
29894 re_set_syntax (RE_SYNTAX_POSIX_EGREP);
29895 memset (®ex, 0, sizeof (regex));
29896 s = re_compile_pattern ("a[[:]:]]b\n", 9, ®ex);
29897 /* This should fail with _Invalid character class name_ error. */
29901 /* This should succeed, but doesn't for e.g. glibc-2.1.3. */
29902 memset (®ex, 0, sizeof (regex));
29903 s = re_compile_pattern ("{1", 2, ®ex);
29908 /* The following example is derived from a problem report
29909 against gawk from Jorge Stolfi <stolfi@ic.unicamp.br>. */
29910 memset (®ex, 0, sizeof (regex));
29911 s = re_compile_pattern ("[anù]*n", 7, ®ex);
29915 /* This should match, but doesn't for e.g. glibc-2.2.1. */
29916 if (re_match (®ex, "an", 2, 0, ®s) != 2)
29919 memset (®ex, 0, sizeof (regex));
29920 s = re_compile_pattern ("x", 1, ®ex);
29924 /* The version of regex.c in e.g. GNU libc-2.2.93 didn't
29925 work with a negative RANGE argument. */
29926 if (re_search (®ex, "wxy", 3, 2, -2, ®s) != 1)
29933 rm -f conftest$ac_exeext
29934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29935 (eval $ac_link) 2>&5
29937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29938 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29940 (eval $ac_try) 2>&5
29942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29943 (exit $ac_status); }; }; then
29944 jm_cv_func_working_re_compile_pattern=yes
29946 echo "$as_me: program exited with status $ac_status" >&5
29947 echo "$as_me: failed program was:" >&5
29948 sed 's/^/| /' conftest.$ac_ext >&5
29950 ( exit $ac_status )
29951 jm_cv_func_working_re_compile_pattern=no
29953 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29956 echo "$as_me:$LINENO: result: $jm_cv_func_working_re_compile_pattern" >&5
29957 echo "${ECHO_T}$jm_cv_func_working_re_compile_pattern" >&6
29958 if test $jm_cv_func_working_re_compile_pattern = yes; then
29959 ac_use_included_regex=no
29962 test -n "lib/regex.c" || { { echo "$as_me:$LINENO: error: missing argument" >&5
29963 echo "$as_me: error: missing argument" >&2;}
29964 { (exit 1); exit 1; }; }
29968 # Check whether --with-included-regex or --without-included-regex was given.
29969 if test "${with_included_regex+set}" = set; then
29970 withval="$with_included_regex"
29971 jm_with_regex=$withval
29973 jm_with_regex=$ac_use_included_regex
29975 if test "$jm_with_regex" = yes; then
29976 LIBOBJS="$LIBOBJS regex.$ac_objext"
30010 for ac_func in btowc
30012 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30013 echo "$as_me:$LINENO: checking for $ac_func" >&5
30014 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30015 if eval "test \"\${$as_ac_var+set}\" = set"; then
30016 echo $ECHO_N "(cached) $ECHO_C" >&6
30018 cat >conftest.$ac_ext <<_ACEOF
30019 #line $LINENO "configure"
30022 cat confdefs.h >>conftest.$ac_ext
30023 cat >>conftest.$ac_ext <<_ACEOF
30024 /* end confdefs.h. */
30025 /* System header to define __stub macros and hopefully few prototypes,
30026 which can conflict with char $ac_func (); below.
30027 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30028 <limits.h> exists even on freestanding compilers. */
30030 # include <limits.h>
30032 # include <assert.h>
30034 /* Override any gcc2 internal prototype to avoid an error. */
30039 /* We use char because int might match the return type of a gcc2
30040 builtin and then its argument prototype would still apply. */
30042 /* The GNU C library defines this for functions which it implements
30043 to always fail with ENOSYS. Some functions are actually named
30044 something starting with __ and the normal name is an alias. */
30045 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30048 char (*f) () = $ac_func;
30057 return f != $ac_func;
30062 rm -f conftest.$ac_objext conftest$ac_exeext
30063 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30064 (eval $ac_link) 2>&5
30066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30067 (exit $ac_status); } &&
30068 { ac_try='test -s conftest$ac_exeext'
30069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30070 (eval $ac_try) 2>&5
30072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30073 (exit $ac_status); }; }; then
30074 eval "$as_ac_var=yes"
30076 echo "$as_me: failed program was:" >&5
30077 sed 's/^/| /' conftest.$ac_ext >&5
30079 eval "$as_ac_var=no"
30081 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30083 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30084 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30085 if test `eval echo '${'$as_ac_var'}'` = yes; then
30086 cat >>confdefs.h <<_ACEOF
30087 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30138 # This is for od and stat, and any other program that
30139 # uses the PRI.MAX macros from inttypes.h.
30149 ac_have_func=no # yes means we've found a way to get the load average.
30151 # Make sure getloadavg.c is where it belongs, at configure-time.
30152 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
30153 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
30154 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
30155 { (exit 1); exit 1; }; }
30159 # Check for getloadavg, but be sure not to touch the cache variable.
30160 (echo "$as_me:$LINENO: checking for getloadavg" >&5
30161 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
30162 if test "${ac_cv_func_getloadavg+set}" = set; then
30163 echo $ECHO_N "(cached) $ECHO_C" >&6
30165 cat >conftest.$ac_ext <<_ACEOF
30166 #line $LINENO "configure"
30169 cat confdefs.h >>conftest.$ac_ext
30170 cat >>conftest.$ac_ext <<_ACEOF
30171 /* end confdefs.h. */
30172 /* System header to define __stub macros and hopefully few prototypes,
30173 which can conflict with char getloadavg (); below.
30174 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30175 <limits.h> exists even on freestanding compilers. */
30177 # include <limits.h>
30179 # include <assert.h>
30181 /* Override any gcc2 internal prototype to avoid an error. */
30186 /* We use char because int might match the return type of a gcc2
30187 builtin and then its argument prototype would still apply. */
30188 char getloadavg ();
30189 /* The GNU C library defines this for functions which it implements
30190 to always fail with ENOSYS. Some functions are actually named
30191 something starting with __ and the normal name is an alias. */
30192 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
30195 char (*f) () = getloadavg;
30204 return f != getloadavg;
30209 rm -f conftest.$ac_objext conftest$ac_exeext
30210 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30211 (eval $ac_link) 2>&5
30213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30214 (exit $ac_status); } &&
30215 { ac_try='test -s conftest$ac_exeext'
30216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30217 (eval $ac_try) 2>&5
30219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30220 (exit $ac_status); }; }; then
30221 ac_cv_func_getloadavg=yes
30223 echo "$as_me: failed program was:" >&5
30224 sed 's/^/| /' conftest.$ac_ext >&5
30226 ac_cv_func_getloadavg=no
30228 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30230 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
30231 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
30232 if test $ac_cv_func_getloadavg = yes; then
30237 ) && ac_have_func=yes
30239 # On HPUX9, an unprivileged user can get load averages through this function.
30241 for ac_func in pstat_getdynamic
30243 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30244 echo "$as_me:$LINENO: checking for $ac_func" >&5
30245 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30246 if eval "test \"\${$as_ac_var+set}\" = set"; then
30247 echo $ECHO_N "(cached) $ECHO_C" >&6
30249 cat >conftest.$ac_ext <<_ACEOF
30250 #line $LINENO "configure"
30253 cat confdefs.h >>conftest.$ac_ext
30254 cat >>conftest.$ac_ext <<_ACEOF
30255 /* end confdefs.h. */
30256 /* System header to define __stub macros and hopefully few prototypes,
30257 which can conflict with char $ac_func (); below.
30258 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30259 <limits.h> exists even on freestanding compilers. */
30261 # include <limits.h>
30263 # include <assert.h>
30265 /* Override any gcc2 internal prototype to avoid an error. */
30270 /* We use char because int might match the return type of a gcc2
30271 builtin and then its argument prototype would still apply. */
30273 /* The GNU C library defines this for functions which it implements
30274 to always fail with ENOSYS. Some functions are actually named
30275 something starting with __ and the normal name is an alias. */
30276 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30279 char (*f) () = $ac_func;
30288 return f != $ac_func;
30293 rm -f conftest.$ac_objext conftest$ac_exeext
30294 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30295 (eval $ac_link) 2>&5
30297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30298 (exit $ac_status); } &&
30299 { ac_try='test -s conftest$ac_exeext'
30300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30301 (eval $ac_try) 2>&5
30303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30304 (exit $ac_status); }; }; then
30305 eval "$as_ac_var=yes"
30307 echo "$as_me: failed program was:" >&5
30308 sed 's/^/| /' conftest.$ac_ext >&5
30310 eval "$as_ac_var=no"
30312 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30314 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30315 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30316 if test `eval echo '${'$as_ac_var'}'` = yes; then
30317 cat >>confdefs.h <<_ACEOF
30318 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30325 # Solaris has libkstat which does not require root.
30327 echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
30328 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
30329 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
30330 echo $ECHO_N "(cached) $ECHO_C" >&6
30332 ac_check_lib_save_LIBS=$LIBS
30333 LIBS="-lkstat $LIBS"
30334 cat >conftest.$ac_ext <<_ACEOF
30335 #line $LINENO "configure"
30338 cat confdefs.h >>conftest.$ac_ext
30339 cat >>conftest.$ac_ext <<_ACEOF
30340 /* end confdefs.h. */
30342 /* Override any gcc2 internal prototype to avoid an error. */
30346 /* We use char because int might match the return type of a gcc2
30347 builtin and then its argument prototype would still apply. */
30348 char kstat_open ();
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 ac_cv_lib_kstat_kstat_open=yes
30371 echo "$as_me: failed program was:" >&5
30372 sed 's/^/| /' conftest.$ac_ext >&5
30374 ac_cv_lib_kstat_kstat_open=no
30376 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30377 LIBS=$ac_check_lib_save_LIBS
30379 echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
30380 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
30381 if test $ac_cv_lib_kstat_kstat_open = yes; then
30382 cat >>confdefs.h <<_ACEOF
30383 #define HAVE_LIBKSTAT 1
30386 LIBS="-lkstat $LIBS"
30390 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
30392 # Some systems with -lutil have (and need) -lkvm as well, some do not.
30393 # On Solaris, -lkvm requires nlist from -lelf, so check that first
30394 # to get the right answer into the cache.
30395 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
30396 if test $ac_have_func = no; then
30397 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
30398 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
30399 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
30400 echo $ECHO_N "(cached) $ECHO_C" >&6
30402 ac_check_lib_save_LIBS=$LIBS
30404 cat >conftest.$ac_ext <<_ACEOF
30405 #line $LINENO "configure"
30408 cat confdefs.h >>conftest.$ac_ext
30409 cat >>conftest.$ac_ext <<_ACEOF
30410 /* end confdefs.h. */
30412 /* Override any gcc2 internal prototype to avoid an error. */
30416 /* We use char because int might match the return type of a gcc2
30417 builtin and then its argument prototype would still apply. */
30427 rm -f conftest.$ac_objext conftest$ac_exeext
30428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30429 (eval $ac_link) 2>&5
30431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30432 (exit $ac_status); } &&
30433 { ac_try='test -s conftest$ac_exeext'
30434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30435 (eval $ac_try) 2>&5
30437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30438 (exit $ac_status); }; }; then
30439 ac_cv_lib_elf_elf_begin=yes
30441 echo "$as_me: failed program was:" >&5
30442 sed 's/^/| /' conftest.$ac_ext >&5
30444 ac_cv_lib_elf_elf_begin=no
30446 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30447 LIBS=$ac_check_lib_save_LIBS
30449 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
30450 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
30451 if test $ac_cv_lib_elf_elf_begin = yes; then
30456 if test $ac_have_func = no; then
30457 echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
30458 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
30459 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
30460 echo $ECHO_N "(cached) $ECHO_C" >&6
30462 ac_check_lib_save_LIBS=$LIBS
30464 cat >conftest.$ac_ext <<_ACEOF
30465 #line $LINENO "configure"
30468 cat confdefs.h >>conftest.$ac_ext
30469 cat >>conftest.$ac_ext <<_ACEOF
30470 /* end confdefs.h. */
30472 /* Override any gcc2 internal prototype to avoid an error. */
30476 /* We use char because int might match the return type of a gcc2
30477 builtin and then its argument prototype would still apply. */
30487 rm -f conftest.$ac_objext conftest$ac_exeext
30488 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30489 (eval $ac_link) 2>&5
30491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30492 (exit $ac_status); } &&
30493 { ac_try='test -s conftest$ac_exeext'
30494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30495 (eval $ac_try) 2>&5
30497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30498 (exit $ac_status); }; }; then
30499 ac_cv_lib_kvm_kvm_open=yes
30501 echo "$as_me: failed program was:" >&5
30502 sed 's/^/| /' conftest.$ac_ext >&5
30504 ac_cv_lib_kvm_kvm_open=no
30506 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30507 LIBS=$ac_check_lib_save_LIBS
30509 echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
30510 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
30511 if test $ac_cv_lib_kvm_kvm_open = yes; then
30515 # Check for the 4.4BSD definition of getloadavg.
30516 echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
30517 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
30518 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
30519 echo $ECHO_N "(cached) $ECHO_C" >&6
30521 ac_check_lib_save_LIBS=$LIBS
30522 LIBS="-lutil $LIBS"
30523 cat >conftest.$ac_ext <<_ACEOF
30524 #line $LINENO "configure"
30527 cat confdefs.h >>conftest.$ac_ext
30528 cat >>conftest.$ac_ext <<_ACEOF
30529 /* end confdefs.h. */
30531 /* Override any gcc2 internal prototype to avoid an error. */
30535 /* We use char because int might match the return type of a gcc2
30536 builtin and then its argument prototype would still apply. */
30537 char getloadavg ();
30546 rm -f conftest.$ac_objext conftest$ac_exeext
30547 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30548 (eval $ac_link) 2>&5
30550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30551 (exit $ac_status); } &&
30552 { ac_try='test -s conftest$ac_exeext'
30553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30554 (eval $ac_try) 2>&5
30556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30557 (exit $ac_status); }; }; then
30558 ac_cv_lib_util_getloadavg=yes
30560 echo "$as_me: failed program was:" >&5
30561 sed 's/^/| /' conftest.$ac_ext >&5
30563 ac_cv_lib_util_getloadavg=no
30565 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30566 LIBS=$ac_check_lib_save_LIBS
30568 echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
30569 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
30570 if test $ac_cv_lib_util_getloadavg = yes; then
30571 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
30576 if test $ac_have_func = no; then
30577 # There is a commonly available library for RS/6000 AIX.
30578 # Since it is not a standard part of AIX, it might be installed locally.
30579 ac_getloadavg_LIBS=$LIBS
30580 LIBS="-L/usr/local/lib $LIBS"
30581 echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
30582 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
30583 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
30584 echo $ECHO_N "(cached) $ECHO_C" >&6
30586 ac_check_lib_save_LIBS=$LIBS
30587 LIBS="-lgetloadavg $LIBS"
30588 cat >conftest.$ac_ext <<_ACEOF
30589 #line $LINENO "configure"
30592 cat confdefs.h >>conftest.$ac_ext
30593 cat >>conftest.$ac_ext <<_ACEOF
30594 /* end confdefs.h. */
30596 /* Override any gcc2 internal prototype to avoid an error. */
30600 /* We use char because int might match the return type of a gcc2
30601 builtin and then its argument prototype would still apply. */
30602 char getloadavg ();
30611 rm -f conftest.$ac_objext conftest$ac_exeext
30612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30613 (eval $ac_link) 2>&5
30615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30616 (exit $ac_status); } &&
30617 { ac_try='test -s conftest$ac_exeext'
30618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30619 (eval $ac_try) 2>&5
30621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30622 (exit $ac_status); }; }; then
30623 ac_cv_lib_getloadavg_getloadavg=yes
30625 echo "$as_me: failed program was:" >&5
30626 sed 's/^/| /' conftest.$ac_ext >&5
30628 ac_cv_lib_getloadavg_getloadavg=no
30630 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30631 LIBS=$ac_check_lib_save_LIBS
30633 echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
30634 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
30635 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
30636 LIBS="-lgetloadavg $LIBS"
30638 LIBS=$ac_getloadavg_LIBS
30643 # Make sure it is really in the library, if we think we found it,
30644 # otherwise set up the replacement function.
30646 for ac_func in getloadavg
30648 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30649 echo "$as_me:$LINENO: checking for $ac_func" >&5
30650 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30651 if eval "test \"\${$as_ac_var+set}\" = set"; then
30652 echo $ECHO_N "(cached) $ECHO_C" >&6
30654 cat >conftest.$ac_ext <<_ACEOF
30655 #line $LINENO "configure"
30658 cat confdefs.h >>conftest.$ac_ext
30659 cat >>conftest.$ac_ext <<_ACEOF
30660 /* end confdefs.h. */
30661 /* System header to define __stub macros and hopefully few prototypes,
30662 which can conflict with char $ac_func (); below.
30663 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30664 <limits.h> exists even on freestanding compilers. */
30666 # include <limits.h>
30668 # include <assert.h>
30670 /* Override any gcc2 internal prototype to avoid an error. */
30675 /* We use char because int might match the return type of a gcc2
30676 builtin and then its argument prototype would still apply. */
30678 /* The GNU C library defines this for functions which it implements
30679 to always fail with ENOSYS. Some functions are actually named
30680 something starting with __ and the normal name is an alias. */
30681 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30684 char (*f) () = $ac_func;
30693 return f != $ac_func;
30698 rm -f conftest.$ac_objext conftest$ac_exeext
30699 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30700 (eval $ac_link) 2>&5
30702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30703 (exit $ac_status); } &&
30704 { ac_try='test -s conftest$ac_exeext'
30705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30706 (eval $ac_try) 2>&5
30708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30709 (exit $ac_status); }; }; then
30710 eval "$as_ac_var=yes"
30712 echo "$as_me: failed program was:" >&5
30713 sed 's/^/| /' conftest.$ac_ext >&5
30715 eval "$as_ac_var=no"
30717 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30719 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30720 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30721 if test `eval echo '${'$as_ac_var'}'` = yes; then
30722 cat >>confdefs.h <<_ACEOF
30723 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30727 LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
30729 cat >>confdefs.h <<\_ACEOF
30730 #define C_GETLOADAVG 1
30733 # Figure out what our getloadavg.c needs.
30735 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
30736 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
30737 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
30738 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
30739 echo $ECHO_N "(cached) $ECHO_C" >&6
30741 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
30742 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
30744 # Is the header compilable?
30745 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
30746 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
30747 cat >conftest.$ac_ext <<_ACEOF
30748 #line $LINENO "configure"
30751 cat confdefs.h >>conftest.$ac_ext
30752 cat >>conftest.$ac_ext <<_ACEOF
30753 /* end confdefs.h. */
30754 $ac_includes_default
30755 #include <sys/dg_sys_info.h>
30757 rm -f conftest.$ac_objext
30758 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30759 (eval $ac_compile) 2>&5
30761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30762 (exit $ac_status); } &&
30763 { ac_try='test -s conftest.$ac_objext'
30764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30765 (eval $ac_try) 2>&5
30767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30768 (exit $ac_status); }; }; then
30769 ac_header_compiler=yes
30771 echo "$as_me: failed program was:" >&5
30772 sed 's/^/| /' conftest.$ac_ext >&5
30774 ac_header_compiler=no
30776 rm -f conftest.$ac_objext conftest.$ac_ext
30777 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30778 echo "${ECHO_T}$ac_header_compiler" >&6
30780 # Is the header present?
30781 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
30782 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
30783 cat >conftest.$ac_ext <<_ACEOF
30784 #line $LINENO "configure"
30787 cat confdefs.h >>conftest.$ac_ext
30788 cat >>conftest.$ac_ext <<_ACEOF
30789 /* end confdefs.h. */
30790 #include <sys/dg_sys_info.h>
30792 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30793 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30795 grep -v '^ *+' conftest.er1 >conftest.err
30797 cat conftest.err >&5
30798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30799 (exit $ac_status); } >/dev/null; then
30800 if test -s conftest.err; then
30801 ac_cpp_err=$ac_c_preproc_warn_flag
30808 if test -z "$ac_cpp_err"; then
30809 ac_header_preproc=yes
30811 echo "$as_me: failed program was:" >&5
30812 sed 's/^/| /' conftest.$ac_ext >&5
30814 ac_header_preproc=no
30816 rm -f conftest.err conftest.$ac_ext
30817 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30818 echo "${ECHO_T}$ac_header_preproc" >&6
30820 # So? What about this header?
30821 case $ac_header_compiler:$ac_header_preproc in
30823 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
30824 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30825 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
30826 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
30829 ## ------------------------------------ ##
30830 ## Report this to bug-autoconf@gnu.org. ##
30831 ## ------------------------------------ ##
30834 sed "s/^/$as_me: WARNING: /" >&2
30837 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
30838 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
30839 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
30840 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
30841 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
30842 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
30845 ## ------------------------------------ ##
30846 ## Report this to bug-autoconf@gnu.org. ##
30847 ## ------------------------------------ ##
30850 sed "s/^/$as_me: WARNING: /" >&2
30853 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
30854 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
30855 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
30856 echo $ECHO_N "(cached) $ECHO_C" >&6
30858 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
30860 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
30861 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
30864 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
30867 cat >>confdefs.h <<\_ACEOF
30872 echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
30873 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
30874 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
30875 echo $ECHO_N "(cached) $ECHO_C" >&6
30877 ac_check_lib_save_LIBS=$LIBS
30879 cat >conftest.$ac_ext <<_ACEOF
30880 #line $LINENO "configure"
30883 cat confdefs.h >>conftest.$ac_ext
30884 cat >>conftest.$ac_ext <<_ACEOF
30885 /* end confdefs.h. */
30887 /* Override any gcc2 internal prototype to avoid an error. */
30891 /* We use char because int might match the return type of a gcc2
30892 builtin and then its argument prototype would still apply. */
30893 char dg_sys_info ();
30902 rm -f conftest.$ac_objext conftest$ac_exeext
30903 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30904 (eval $ac_link) 2>&5
30906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30907 (exit $ac_status); } &&
30908 { ac_try='test -s conftest$ac_exeext'
30909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30910 (eval $ac_try) 2>&5
30912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30913 (exit $ac_status); }; }; then
30914 ac_cv_lib_dgc_dg_sys_info=yes
30916 echo "$as_me: failed program was:" >&5
30917 sed 's/^/| /' conftest.$ac_ext >&5
30919 ac_cv_lib_dgc_dg_sys_info=no
30921 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30922 LIBS=$ac_check_lib_save_LIBS
30924 echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
30925 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
30926 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
30927 cat >>confdefs.h <<_ACEOF
30928 #define HAVE_LIBDGC 1
30939 if test "${ac_cv_header_locale_h+set}" = set; then
30940 echo "$as_me:$LINENO: checking for locale.h" >&5
30941 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
30942 if test "${ac_cv_header_locale_h+set}" = set; then
30943 echo $ECHO_N "(cached) $ECHO_C" >&6
30945 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
30946 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
30948 # Is the header compilable?
30949 echo "$as_me:$LINENO: checking locale.h usability" >&5
30950 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
30951 cat >conftest.$ac_ext <<_ACEOF
30952 #line $LINENO "configure"
30955 cat confdefs.h >>conftest.$ac_ext
30956 cat >>conftest.$ac_ext <<_ACEOF
30957 /* end confdefs.h. */
30958 $ac_includes_default
30959 #include <locale.h>
30961 rm -f conftest.$ac_objext
30962 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30963 (eval $ac_compile) 2>&5
30965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30966 (exit $ac_status); } &&
30967 { ac_try='test -s conftest.$ac_objext'
30968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30969 (eval $ac_try) 2>&5
30971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30972 (exit $ac_status); }; }; then
30973 ac_header_compiler=yes
30975 echo "$as_me: failed program was:" >&5
30976 sed 's/^/| /' conftest.$ac_ext >&5
30978 ac_header_compiler=no
30980 rm -f conftest.$ac_objext conftest.$ac_ext
30981 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30982 echo "${ECHO_T}$ac_header_compiler" >&6
30984 # Is the header present?
30985 echo "$as_me:$LINENO: checking locale.h presence" >&5
30986 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
30987 cat >conftest.$ac_ext <<_ACEOF
30988 #line $LINENO "configure"
30991 cat confdefs.h >>conftest.$ac_ext
30992 cat >>conftest.$ac_ext <<_ACEOF
30993 /* end confdefs.h. */
30994 #include <locale.h>
30996 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30997 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30999 grep -v '^ *+' conftest.er1 >conftest.err
31001 cat conftest.err >&5
31002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31003 (exit $ac_status); } >/dev/null; then
31004 if test -s conftest.err; then
31005 ac_cpp_err=$ac_c_preproc_warn_flag
31012 if test -z "$ac_cpp_err"; then
31013 ac_header_preproc=yes
31015 echo "$as_me: failed program was:" >&5
31016 sed 's/^/| /' conftest.$ac_ext >&5
31018 ac_header_preproc=no
31020 rm -f conftest.err conftest.$ac_ext
31021 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31022 echo "${ECHO_T}$ac_header_preproc" >&6
31024 # So? What about this header?
31025 case $ac_header_compiler:$ac_header_preproc in
31027 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
31028 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31029 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
31030 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
31033 ## ------------------------------------ ##
31034 ## Report this to bug-autoconf@gnu.org. ##
31035 ## ------------------------------------ ##
31038 sed "s/^/$as_me: WARNING: /" >&2
31041 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
31042 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
31043 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
31044 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
31045 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
31046 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
31049 ## ------------------------------------ ##
31050 ## Report this to bug-autoconf@gnu.org. ##
31051 ## ------------------------------------ ##
31054 sed "s/^/$as_me: WARNING: /" >&2
31057 echo "$as_me:$LINENO: checking for locale.h" >&5
31058 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
31059 if test "${ac_cv_header_locale_h+set}" = set; then
31060 echo $ECHO_N "(cached) $ECHO_C" >&6
31062 ac_cv_header_locale_h=$ac_header_preproc
31064 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
31065 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
31071 for ac_func in setlocale
31073 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31074 echo "$as_me:$LINENO: checking for $ac_func" >&5
31075 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31076 if eval "test \"\${$as_ac_var+set}\" = set"; then
31077 echo $ECHO_N "(cached) $ECHO_C" >&6
31079 cat >conftest.$ac_ext <<_ACEOF
31080 #line $LINENO "configure"
31083 cat confdefs.h >>conftest.$ac_ext
31084 cat >>conftest.$ac_ext <<_ACEOF
31085 /* end confdefs.h. */
31086 /* System header to define __stub macros and hopefully few prototypes,
31087 which can conflict with char $ac_func (); below.
31088 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31089 <limits.h> exists even on freestanding compilers. */
31091 # include <limits.h>
31093 # include <assert.h>
31095 /* Override any gcc2 internal prototype to avoid an error. */
31100 /* We use char because int might match the return type of a gcc2
31101 builtin and then its argument prototype would still apply. */
31103 /* The GNU C library defines this for functions which it implements
31104 to always fail with ENOSYS. Some functions are actually named
31105 something starting with __ and the normal name is an alias. */
31106 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31109 char (*f) () = $ac_func;
31118 return f != $ac_func;
31123 rm -f conftest.$ac_objext conftest$ac_exeext
31124 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31125 (eval $ac_link) 2>&5
31127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31128 (exit $ac_status); } &&
31129 { ac_try='test -s conftest$ac_exeext'
31130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31131 (eval $ac_try) 2>&5
31133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31134 (exit $ac_status); }; }; then
31135 eval "$as_ac_var=yes"
31137 echo "$as_me: failed program was:" >&5
31138 sed 's/^/| /' conftest.$ac_ext >&5
31140 eval "$as_ac_var=no"
31142 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31144 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31145 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31146 if test `eval echo '${'$as_ac_var'}'` = yes; then
31147 cat >>confdefs.h <<_ACEOF
31148 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31155 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
31156 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
31157 # Irix 4.0.5F has the header but not the library.
31158 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
31161 cat >>confdefs.h <<\_ACEOF
31167 if test $ac_have_func = no; then
31168 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
31169 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
31170 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
31171 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
31172 echo $ECHO_N "(cached) $ECHO_C" >&6
31174 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
31175 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
31177 # Is the header compilable?
31178 echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
31179 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6
31180 cat >conftest.$ac_ext <<_ACEOF
31181 #line $LINENO "configure"
31184 cat confdefs.h >>conftest.$ac_ext
31185 cat >>conftest.$ac_ext <<_ACEOF
31186 /* end confdefs.h. */
31187 $ac_includes_default
31188 #include <inq_stats/cpustats.h>
31190 rm -f conftest.$ac_objext
31191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31192 (eval $ac_compile) 2>&5
31194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31195 (exit $ac_status); } &&
31196 { ac_try='test -s conftest.$ac_objext'
31197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31198 (eval $ac_try) 2>&5
31200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31201 (exit $ac_status); }; }; then
31202 ac_header_compiler=yes
31204 echo "$as_me: failed program was:" >&5
31205 sed 's/^/| /' conftest.$ac_ext >&5
31207 ac_header_compiler=no
31209 rm -f conftest.$ac_objext conftest.$ac_ext
31210 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31211 echo "${ECHO_T}$ac_header_compiler" >&6
31213 # Is the header present?
31214 echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
31215 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
31216 cat >conftest.$ac_ext <<_ACEOF
31217 #line $LINENO "configure"
31220 cat confdefs.h >>conftest.$ac_ext
31221 cat >>conftest.$ac_ext <<_ACEOF
31222 /* end confdefs.h. */
31223 #include <inq_stats/cpustats.h>
31225 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31226 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31228 grep -v '^ *+' conftest.er1 >conftest.err
31230 cat conftest.err >&5
31231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31232 (exit $ac_status); } >/dev/null; then
31233 if test -s conftest.err; then
31234 ac_cpp_err=$ac_c_preproc_warn_flag
31241 if test -z "$ac_cpp_err"; then
31242 ac_header_preproc=yes
31244 echo "$as_me: failed program was:" >&5
31245 sed 's/^/| /' conftest.$ac_ext >&5
31247 ac_header_preproc=no
31249 rm -f conftest.err conftest.$ac_ext
31250 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31251 echo "${ECHO_T}$ac_header_preproc" >&6
31253 # So? What about this header?
31254 case $ac_header_compiler:$ac_header_preproc in
31256 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
31257 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31258 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
31259 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
31262 ## ------------------------------------ ##
31263 ## Report this to bug-autoconf@gnu.org. ##
31264 ## ------------------------------------ ##
31267 sed "s/^/$as_me: WARNING: /" >&2
31270 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
31271 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
31272 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
31273 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
31274 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
31275 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
31278 ## ------------------------------------ ##
31279 ## Report this to bug-autoconf@gnu.org. ##
31280 ## ------------------------------------ ##
31283 sed "s/^/$as_me: WARNING: /" >&2
31286 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
31287 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
31288 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
31289 echo $ECHO_N "(cached) $ECHO_C" >&6
31291 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
31293 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
31294 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
31297 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
31300 cat >>confdefs.h <<\_ACEOF
31305 cat >>confdefs.h <<\_ACEOF
31314 if test $ac_have_func = no; then
31315 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
31316 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
31317 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
31318 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
31319 echo $ECHO_N "(cached) $ECHO_C" >&6
31321 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
31322 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
31324 # Is the header compilable?
31325 echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
31326 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
31327 cat >conftest.$ac_ext <<_ACEOF
31328 #line $LINENO "configure"
31331 cat confdefs.h >>conftest.$ac_ext
31332 cat >>conftest.$ac_ext <<_ACEOF
31333 /* end confdefs.h. */
31334 $ac_includes_default
31335 #include <sys/cpustats.h>
31337 rm -f conftest.$ac_objext
31338 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31339 (eval $ac_compile) 2>&5
31341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31342 (exit $ac_status); } &&
31343 { ac_try='test -s conftest.$ac_objext'
31344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31345 (eval $ac_try) 2>&5
31347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31348 (exit $ac_status); }; }; then
31349 ac_header_compiler=yes
31351 echo "$as_me: failed program was:" >&5
31352 sed 's/^/| /' conftest.$ac_ext >&5
31354 ac_header_compiler=no
31356 rm -f conftest.$ac_objext conftest.$ac_ext
31357 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31358 echo "${ECHO_T}$ac_header_compiler" >&6
31360 # Is the header present?
31361 echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
31362 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6
31363 cat >conftest.$ac_ext <<_ACEOF
31364 #line $LINENO "configure"
31367 cat confdefs.h >>conftest.$ac_ext
31368 cat >>conftest.$ac_ext <<_ACEOF
31369 /* end confdefs.h. */
31370 #include <sys/cpustats.h>
31372 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31373 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31375 grep -v '^ *+' conftest.er1 >conftest.err
31377 cat conftest.err >&5
31378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31379 (exit $ac_status); } >/dev/null; then
31380 if test -s conftest.err; then
31381 ac_cpp_err=$ac_c_preproc_warn_flag
31388 if test -z "$ac_cpp_err"; then
31389 ac_header_preproc=yes
31391 echo "$as_me: failed program was:" >&5
31392 sed 's/^/| /' conftest.$ac_ext >&5
31394 ac_header_preproc=no
31396 rm -f conftest.err conftest.$ac_ext
31397 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31398 echo "${ECHO_T}$ac_header_preproc" >&6
31400 # So? What about this header?
31401 case $ac_header_compiler:$ac_header_preproc in
31403 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
31404 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31405 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
31406 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
31409 ## ------------------------------------ ##
31410 ## Report this to bug-autoconf@gnu.org. ##
31411 ## ------------------------------------ ##
31414 sed "s/^/$as_me: WARNING: /" >&2
31417 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
31418 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
31419 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
31420 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
31421 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
31422 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
31425 ## ------------------------------------ ##
31426 ## Report this to bug-autoconf@gnu.org. ##
31427 ## ------------------------------------ ##
31430 sed "s/^/$as_me: WARNING: /" >&2
31433 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
31434 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
31435 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
31436 echo $ECHO_N "(cached) $ECHO_C" >&6
31438 ac_cv_header_sys_cpustats_h=$ac_header_preproc
31440 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
31441 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
31444 if test $ac_cv_header_sys_cpustats_h = yes; then
31445 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
31454 if test $ac_have_func = no; then
31456 for ac_header in mach/mach.h
31458 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31459 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31460 echo "$as_me:$LINENO: checking for $ac_header" >&5
31461 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31462 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31463 echo $ECHO_N "(cached) $ECHO_C" >&6
31465 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31466 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31468 # Is the header compilable?
31469 echo "$as_me:$LINENO: checking $ac_header usability" >&5
31470 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31471 cat >conftest.$ac_ext <<_ACEOF
31472 #line $LINENO "configure"
31475 cat confdefs.h >>conftest.$ac_ext
31476 cat >>conftest.$ac_ext <<_ACEOF
31477 /* end confdefs.h. */
31478 $ac_includes_default
31479 #include <$ac_header>
31481 rm -f conftest.$ac_objext
31482 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31483 (eval $ac_compile) 2>&5
31485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31486 (exit $ac_status); } &&
31487 { ac_try='test -s conftest.$ac_objext'
31488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31489 (eval $ac_try) 2>&5
31491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31492 (exit $ac_status); }; }; then
31493 ac_header_compiler=yes
31495 echo "$as_me: failed program was:" >&5
31496 sed 's/^/| /' conftest.$ac_ext >&5
31498 ac_header_compiler=no
31500 rm -f conftest.$ac_objext conftest.$ac_ext
31501 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31502 echo "${ECHO_T}$ac_header_compiler" >&6
31504 # Is the header present?
31505 echo "$as_me:$LINENO: checking $ac_header presence" >&5
31506 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31507 cat >conftest.$ac_ext <<_ACEOF
31508 #line $LINENO "configure"
31511 cat confdefs.h >>conftest.$ac_ext
31512 cat >>conftest.$ac_ext <<_ACEOF
31513 /* end confdefs.h. */
31514 #include <$ac_header>
31516 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31517 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31519 grep -v '^ *+' conftest.er1 >conftest.err
31521 cat conftest.err >&5
31522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31523 (exit $ac_status); } >/dev/null; then
31524 if test -s conftest.err; then
31525 ac_cpp_err=$ac_c_preproc_warn_flag
31532 if test -z "$ac_cpp_err"; then
31533 ac_header_preproc=yes
31535 echo "$as_me: failed program was:" >&5
31536 sed 's/^/| /' conftest.$ac_ext >&5
31538 ac_header_preproc=no
31540 rm -f conftest.err conftest.$ac_ext
31541 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31542 echo "${ECHO_T}$ac_header_preproc" >&6
31544 # So? What about this header?
31545 case $ac_header_compiler:$ac_header_preproc in
31547 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31548 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31549 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31550 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31553 ## ------------------------------------ ##
31554 ## Report this to bug-autoconf@gnu.org. ##
31555 ## ------------------------------------ ##
31558 sed "s/^/$as_me: WARNING: /" >&2
31561 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31562 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31563 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31564 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31565 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31566 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31569 ## ------------------------------------ ##
31570 ## Report this to bug-autoconf@gnu.org. ##
31571 ## ------------------------------------ ##
31574 sed "s/^/$as_me: WARNING: /" >&2
31577 echo "$as_me:$LINENO: checking for $ac_header" >&5
31578 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31579 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31580 echo $ECHO_N "(cached) $ECHO_C" >&6
31582 eval "$as_ac_Header=$ac_header_preproc"
31584 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31585 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31588 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31589 cat >>confdefs.h <<_ACEOF
31590 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31600 for ac_header in nlist.h
31602 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31603 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31604 echo "$as_me:$LINENO: checking for $ac_header" >&5
31605 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31606 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31607 echo $ECHO_N "(cached) $ECHO_C" >&6
31609 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31610 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31612 # Is the header compilable?
31613 echo "$as_me:$LINENO: checking $ac_header usability" >&5
31614 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31615 cat >conftest.$ac_ext <<_ACEOF
31616 #line $LINENO "configure"
31619 cat confdefs.h >>conftest.$ac_ext
31620 cat >>conftest.$ac_ext <<_ACEOF
31621 /* end confdefs.h. */
31622 $ac_includes_default
31623 #include <$ac_header>
31625 rm -f conftest.$ac_objext
31626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31627 (eval $ac_compile) 2>&5
31629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31630 (exit $ac_status); } &&
31631 { ac_try='test -s conftest.$ac_objext'
31632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31633 (eval $ac_try) 2>&5
31635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31636 (exit $ac_status); }; }; then
31637 ac_header_compiler=yes
31639 echo "$as_me: failed program was:" >&5
31640 sed 's/^/| /' conftest.$ac_ext >&5
31642 ac_header_compiler=no
31644 rm -f conftest.$ac_objext conftest.$ac_ext
31645 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31646 echo "${ECHO_T}$ac_header_compiler" >&6
31648 # Is the header present?
31649 echo "$as_me:$LINENO: checking $ac_header presence" >&5
31650 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31651 cat >conftest.$ac_ext <<_ACEOF
31652 #line $LINENO "configure"
31655 cat confdefs.h >>conftest.$ac_ext
31656 cat >>conftest.$ac_ext <<_ACEOF
31657 /* end confdefs.h. */
31658 #include <$ac_header>
31660 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31661 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31663 grep -v '^ *+' conftest.er1 >conftest.err
31665 cat conftest.err >&5
31666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31667 (exit $ac_status); } >/dev/null; then
31668 if test -s conftest.err; then
31669 ac_cpp_err=$ac_c_preproc_warn_flag
31676 if test -z "$ac_cpp_err"; then
31677 ac_header_preproc=yes
31679 echo "$as_me: failed program was:" >&5
31680 sed 's/^/| /' conftest.$ac_ext >&5
31682 ac_header_preproc=no
31684 rm -f conftest.err conftest.$ac_ext
31685 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31686 echo "${ECHO_T}$ac_header_preproc" >&6
31688 # So? What about this header?
31689 case $ac_header_compiler:$ac_header_preproc in
31691 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31692 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31693 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31694 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31697 ## ------------------------------------ ##
31698 ## Report this to bug-autoconf@gnu.org. ##
31699 ## ------------------------------------ ##
31702 sed "s/^/$as_me: WARNING: /" >&2
31705 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31706 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31707 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31708 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31709 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31710 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31713 ## ------------------------------------ ##
31714 ## Report this to bug-autoconf@gnu.org. ##
31715 ## ------------------------------------ ##
31718 sed "s/^/$as_me: WARNING: /" >&2
31721 echo "$as_me:$LINENO: checking for $ac_header" >&5
31722 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31723 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31724 echo $ECHO_N "(cached) $ECHO_C" >&6
31726 eval "$as_ac_Header=$ac_header_preproc"
31728 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31729 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31732 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31733 cat >>confdefs.h <<_ACEOF
31734 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31736 echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
31737 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
31738 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
31739 echo $ECHO_N "(cached) $ECHO_C" >&6
31741 cat >conftest.$ac_ext <<_ACEOF
31742 #line $LINENO "configure"
31745 cat confdefs.h >>conftest.$ac_ext
31746 cat >>conftest.$ac_ext <<_ACEOF
31747 /* end confdefs.h. */
31753 static struct nlist ac_aggr;
31754 if (ac_aggr.n_un.n_name)
31760 rm -f conftest.$ac_objext
31761 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31762 (eval $ac_compile) 2>&5
31764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31765 (exit $ac_status); } &&
31766 { ac_try='test -s conftest.$ac_objext'
31767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31768 (eval $ac_try) 2>&5
31770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31771 (exit $ac_status); }; }; then
31772 ac_cv_member_struct_nlist_n_un_n_name=yes
31774 echo "$as_me: failed program was:" >&5
31775 sed 's/^/| /' conftest.$ac_ext >&5
31777 cat >conftest.$ac_ext <<_ACEOF
31778 #line $LINENO "configure"
31781 cat confdefs.h >>conftest.$ac_ext
31782 cat >>conftest.$ac_ext <<_ACEOF
31783 /* end confdefs.h. */
31789 static struct nlist ac_aggr;
31790 if (sizeof ac_aggr.n_un.n_name)
31796 rm -f conftest.$ac_objext
31797 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31798 (eval $ac_compile) 2>&5
31800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31801 (exit $ac_status); } &&
31802 { ac_try='test -s conftest.$ac_objext'
31803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31804 (eval $ac_try) 2>&5
31806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31807 (exit $ac_status); }; }; then
31808 ac_cv_member_struct_nlist_n_un_n_name=yes
31810 echo "$as_me: failed program was:" >&5
31811 sed 's/^/| /' conftest.$ac_ext >&5
31813 ac_cv_member_struct_nlist_n_un_n_name=no
31815 rm -f conftest.$ac_objext conftest.$ac_ext
31817 rm -f conftest.$ac_objext conftest.$ac_ext
31819 echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
31820 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
31821 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
31823 cat >>confdefs.h <<_ACEOF
31824 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
31828 cat >>confdefs.h <<\_ACEOF
31829 #define NLIST_NAME_UNION 1
31843 # Some definitions of getloadavg require that the program be installed setgid.
31844 echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
31845 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
31846 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
31847 echo $ECHO_N "(cached) $ECHO_C" >&6
31849 cat >conftest.$ac_ext <<_ACEOF
31850 #line $LINENO "configure"
31853 cat confdefs.h >>conftest.$ac_ext
31854 cat >>conftest.$ac_ext <<_ACEOF
31855 /* end confdefs.h. */
31856 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
31857 #ifdef LDAV_PRIVILEGED
31858 Yowza Am I SETGID yet
31861 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31862 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
31863 ac_cv_func_getloadavg_setgid=yes
31865 ac_cv_func_getloadavg_setgid=no
31870 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
31871 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
31872 if test $ac_cv_func_getloadavg_setgid = yes; then
31875 cat >>confdefs.h <<\_ACEOF
31876 #define GETLOADAVG_PRIVILEGED 1
31883 if test $ac_cv_func_getloadavg_setgid = yes; then
31884 echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
31885 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
31886 if test "${ac_cv_group_kmem+set}" = set; then
31887 echo $ECHO_N "(cached) $ECHO_C" >&6
31889 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
31890 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
31891 # If we got an error (system does not support symlinks), try without -L.
31892 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
31893 ac_cv_group_kmem=`echo $ac_ls_output \
31894 | sed -ne 's/[ ][ ]*/ /g;
31895 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
31899 echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
31900 echo "${ECHO_T}$ac_cv_group_kmem" >&6
31901 KMEM_GROUP=$ac_cv_group_kmem
31903 if test "x$ac_save_LIBS" = x; then
31904 GETLOADAVG_LIBS=$LIBS
31906 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
31918 for ac_func in strcasecmp strncasecmp
31920 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31921 echo "$as_me:$LINENO: checking for $ac_func" >&5
31922 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31923 if eval "test \"\${$as_ac_var+set}\" = set"; then
31924 echo $ECHO_N "(cached) $ECHO_C" >&6
31926 cat >conftest.$ac_ext <<_ACEOF
31927 #line $LINENO "configure"
31930 cat confdefs.h >>conftest.$ac_ext
31931 cat >>conftest.$ac_ext <<_ACEOF
31932 /* end confdefs.h. */
31933 /* System header to define __stub macros and hopefully few prototypes,
31934 which can conflict with char $ac_func (); below.
31935 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31936 <limits.h> exists even on freestanding compilers. */
31938 # include <limits.h>
31940 # include <assert.h>
31942 /* Override any gcc2 internal prototype to avoid an error. */
31947 /* We use char because int might match the return type of a gcc2
31948 builtin and then its argument prototype would still apply. */
31950 /* The GNU C library defines this for functions which it implements
31951 to always fail with ENOSYS. Some functions are actually named
31952 something starting with __ and the normal name is an alias. */
31953 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31956 char (*f) () = $ac_func;
31965 return f != $ac_func;
31970 rm -f conftest.$ac_objext conftest$ac_exeext
31971 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31972 (eval $ac_link) 2>&5
31974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31975 (exit $ac_status); } &&
31976 { ac_try='test -s conftest$ac_exeext'
31977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31978 (eval $ac_try) 2>&5
31980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31981 (exit $ac_status); }; }; then
31982 eval "$as_ac_var=yes"
31984 echo "$as_me: failed program was:" >&5
31985 sed 's/^/| /' conftest.$ac_ext >&5
31987 eval "$as_ac_var=no"
31989 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31991 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31992 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31993 if test `eval echo '${'$as_ac_var'}'` = yes; then
31994 cat >>confdefs.h <<_ACEOF
31995 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31999 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
32005 for ac_func in dup2
32007 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32008 echo "$as_me:$LINENO: checking for $ac_func" >&5
32009 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32010 if eval "test \"\${$as_ac_var+set}\" = set"; then
32011 echo $ECHO_N "(cached) $ECHO_C" >&6
32013 cat >conftest.$ac_ext <<_ACEOF
32014 #line $LINENO "configure"
32017 cat confdefs.h >>conftest.$ac_ext
32018 cat >>conftest.$ac_ext <<_ACEOF
32019 /* end confdefs.h. */
32020 /* System header to define __stub macros and hopefully few prototypes,
32021 which can conflict with char $ac_func (); below.
32022 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32023 <limits.h> exists even on freestanding compilers. */
32025 # include <limits.h>
32027 # include <assert.h>
32029 /* Override any gcc2 internal prototype to avoid an error. */
32034 /* We use char because int might match the return type of a gcc2
32035 builtin and then its argument prototype would still apply. */
32037 /* The GNU C library defines this for functions which it implements
32038 to always fail with ENOSYS. Some functions are actually named
32039 something starting with __ and the normal name is an alias. */
32040 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32043 char (*f) () = $ac_func;
32052 return f != $ac_func;
32057 rm -f conftest.$ac_objext conftest$ac_exeext
32058 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32059 (eval $ac_link) 2>&5
32061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32062 (exit $ac_status); } &&
32063 { ac_try='test -s conftest$ac_exeext'
32064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32065 (eval $ac_try) 2>&5
32067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32068 (exit $ac_status); }; }; then
32069 eval "$as_ac_var=yes"
32071 echo "$as_me: failed program was:" >&5
32072 sed 's/^/| /' conftest.$ac_ext >&5
32074 eval "$as_ac_var=no"
32076 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32078 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32079 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32080 if test `eval echo '${'$as_ac_var'}'` = yes; then
32081 cat >>confdefs.h <<_ACEOF
32082 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32086 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
32093 for ac_func in gethostname getusershell
32095 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32096 echo "$as_me:$LINENO: checking for $ac_func" >&5
32097 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32098 if eval "test \"\${$as_ac_var+set}\" = set"; then
32099 echo $ECHO_N "(cached) $ECHO_C" >&6
32101 cat >conftest.$ac_ext <<_ACEOF
32102 #line $LINENO "configure"
32105 cat confdefs.h >>conftest.$ac_ext
32106 cat >>conftest.$ac_ext <<_ACEOF
32107 /* end confdefs.h. */
32108 /* System header to define __stub macros and hopefully few prototypes,
32109 which can conflict with char $ac_func (); below.
32110 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32111 <limits.h> exists even on freestanding compilers. */
32113 # include <limits.h>
32115 # include <assert.h>
32117 /* Override any gcc2 internal prototype to avoid an error. */
32122 /* We use char because int might match the return type of a gcc2
32123 builtin and then its argument prototype would still apply. */
32125 /* The GNU C library defines this for functions which it implements
32126 to always fail with ENOSYS. Some functions are actually named
32127 something starting with __ and the normal name is an alias. */
32128 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32131 char (*f) () = $ac_func;
32140 return f != $ac_func;
32145 rm -f conftest.$ac_objext conftest$ac_exeext
32146 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32147 (eval $ac_link) 2>&5
32149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32150 (exit $ac_status); } &&
32151 { ac_try='test -s conftest$ac_exeext'
32152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32153 (eval $ac_try) 2>&5
32155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32156 (exit $ac_status); }; }; then
32157 eval "$as_ac_var=yes"
32159 echo "$as_me: failed program was:" >&5
32160 sed 's/^/| /' conftest.$ac_ext >&5
32162 eval "$as_ac_var=no"
32164 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32166 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32167 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32168 if test `eval echo '${'$as_ac_var'}'` = yes; then
32169 cat >>confdefs.h <<_ACEOF
32170 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32174 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
32180 for ac_func in sig2str
32182 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32183 echo "$as_me:$LINENO: checking for $ac_func" >&5
32184 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32185 if eval "test \"\${$as_ac_var+set}\" = set"; then
32186 echo $ECHO_N "(cached) $ECHO_C" >&6
32188 cat >conftest.$ac_ext <<_ACEOF
32189 #line $LINENO "configure"
32192 cat confdefs.h >>conftest.$ac_ext
32193 cat >>conftest.$ac_ext <<_ACEOF
32194 /* end confdefs.h. */
32195 /* System header to define __stub macros and hopefully few prototypes,
32196 which can conflict with char $ac_func (); below.
32197 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32198 <limits.h> exists even on freestanding compilers. */
32200 # include <limits.h>
32202 # include <assert.h>
32204 /* Override any gcc2 internal prototype to avoid an error. */
32209 /* We use char because int might match the return type of a gcc2
32210 builtin and then its argument prototype would still apply. */
32212 /* The GNU C library defines this for functions which it implements
32213 to always fail with ENOSYS. Some functions are actually named
32214 something starting with __ and the normal name is an alias. */
32215 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32218 char (*f) () = $ac_func;
32227 return f != $ac_func;
32232 rm -f conftest.$ac_objext conftest$ac_exeext
32233 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32234 (eval $ac_link) 2>&5
32236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32237 (exit $ac_status); } &&
32238 { ac_try='test -s conftest$ac_exeext'
32239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32240 (eval $ac_try) 2>&5
32242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32243 (exit $ac_status); }; }; then
32244 eval "$as_ac_var=yes"
32246 echo "$as_me: failed program was:" >&5
32247 sed 's/^/| /' conftest.$ac_ext >&5
32249 eval "$as_ac_var=no"
32251 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32253 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32254 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32255 if test `eval echo '${'$as_ac_var'}'` = yes; then
32256 cat >>confdefs.h <<_ACEOF
32257 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32261 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
32271 for ac_func in strcspn stpcpy strstr strtol strtoul
32273 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32274 echo "$as_me:$LINENO: checking for $ac_func" >&5
32275 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32276 if eval "test \"\${$as_ac_var+set}\" = set"; then
32277 echo $ECHO_N "(cached) $ECHO_C" >&6
32279 cat >conftest.$ac_ext <<_ACEOF
32280 #line $LINENO "configure"
32283 cat confdefs.h >>conftest.$ac_ext
32284 cat >>conftest.$ac_ext <<_ACEOF
32285 /* end confdefs.h. */
32286 /* System header to define __stub macros and hopefully few prototypes,
32287 which can conflict with char $ac_func (); below.
32288 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32289 <limits.h> exists even on freestanding compilers. */
32291 # include <limits.h>
32293 # include <assert.h>
32295 /* Override any gcc2 internal prototype to avoid an error. */
32300 /* We use char because int might match the return type of a gcc2
32301 builtin and then its argument prototype would still apply. */
32303 /* The GNU C library defines this for functions which it implements
32304 to always fail with ENOSYS. Some functions are actually named
32305 something starting with __ and the normal name is an alias. */
32306 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32309 char (*f) () = $ac_func;
32318 return f != $ac_func;
32323 rm -f conftest.$ac_objext conftest$ac_exeext
32324 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32325 (eval $ac_link) 2>&5
32327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32328 (exit $ac_status); } &&
32329 { ac_try='test -s conftest$ac_exeext'
32330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32331 (eval $ac_try) 2>&5
32333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32334 (exit $ac_status); }; }; then
32335 eval "$as_ac_var=yes"
32337 echo "$as_me: failed program was:" >&5
32338 sed 's/^/| /' conftest.$ac_ext >&5
32340 eval "$as_ac_var=no"
32342 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32344 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32345 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32346 if test `eval echo '${'$as_ac_var'}'` = yes; then
32347 cat >>confdefs.h <<_ACEOF
32348 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32352 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
32358 for ac_func in strpbrk
32360 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32361 echo "$as_me:$LINENO: checking for $ac_func" >&5
32362 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32363 if eval "test \"\${$as_ac_var+set}\" = set"; then
32364 echo $ECHO_N "(cached) $ECHO_C" >&6
32366 cat >conftest.$ac_ext <<_ACEOF
32367 #line $LINENO "configure"
32370 cat confdefs.h >>conftest.$ac_ext
32371 cat >>conftest.$ac_ext <<_ACEOF
32372 /* end confdefs.h. */
32373 /* System header to define __stub macros and hopefully few prototypes,
32374 which can conflict with char $ac_func (); below.
32375 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32376 <limits.h> exists even on freestanding compilers. */
32378 # include <limits.h>
32380 # include <assert.h>
32382 /* Override any gcc2 internal prototype to avoid an error. */
32387 /* We use char because int might match the return type of a gcc2
32388 builtin and then its argument prototype would still apply. */
32390 /* The GNU C library defines this for functions which it implements
32391 to always fail with ENOSYS. Some functions are actually named
32392 something starting with __ and the normal name is an alias. */
32393 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32396 char (*f) () = $ac_func;
32405 return f != $ac_func;
32410 rm -f conftest.$ac_objext conftest$ac_exeext
32411 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32412 (eval $ac_link) 2>&5
32414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32415 (exit $ac_status); } &&
32416 { ac_try='test -s conftest$ac_exeext'
32417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32418 (eval $ac_try) 2>&5
32420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32421 (exit $ac_status); }; }; then
32422 eval "$as_ac_var=yes"
32424 echo "$as_me: failed program was:" >&5
32425 sed 's/^/| /' conftest.$ac_ext >&5
32427 eval "$as_ac_var=no"
32429 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32431 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32432 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32433 if test `eval echo '${'$as_ac_var'}'` = yes; then
32434 cat >>confdefs.h <<_ACEOF
32435 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32439 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
32450 for ac_func in euidaccess memcmp rmdir rpmatch strndup strverscmp
32452 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32453 echo "$as_me:$LINENO: checking for $ac_func" >&5
32454 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32455 if eval "test \"\${$as_ac_var+set}\" = set"; then
32456 echo $ECHO_N "(cached) $ECHO_C" >&6
32458 cat >conftest.$ac_ext <<_ACEOF
32459 #line $LINENO "configure"
32462 cat confdefs.h >>conftest.$ac_ext
32463 cat >>conftest.$ac_ext <<_ACEOF
32464 /* end confdefs.h. */
32465 /* System header to define __stub macros and hopefully few prototypes,
32466 which can conflict with char $ac_func (); below.
32467 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32468 <limits.h> exists even on freestanding compilers. */
32470 # include <limits.h>
32472 # include <assert.h>
32474 /* Override any gcc2 internal prototype to avoid an error. */
32479 /* We use char because int might match the return type of a gcc2
32480 builtin and then its argument prototype would still apply. */
32482 /* The GNU C library defines this for functions which it implements
32483 to always fail with ENOSYS. Some functions are actually named
32484 something starting with __ and the normal name is an alias. */
32485 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32488 char (*f) () = $ac_func;
32497 return f != $ac_func;
32502 rm -f conftest.$ac_objext conftest$ac_exeext
32503 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32504 (eval $ac_link) 2>&5
32506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32507 (exit $ac_status); } &&
32508 { ac_try='test -s conftest$ac_exeext'
32509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32510 (eval $ac_try) 2>&5
32512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32513 (exit $ac_status); }; }; then
32514 eval "$as_ac_var=yes"
32516 echo "$as_me: failed program was:" >&5
32517 sed 's/^/| /' conftest.$ac_ext >&5
32519 eval "$as_ac_var=no"
32521 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32523 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32524 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32525 if test `eval echo '${'$as_ac_var'}'` = yes; then
32526 cat >>confdefs.h <<_ACEOF
32527 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32531 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
32537 for ac_func in atexit
32539 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32540 echo "$as_me:$LINENO: checking for $ac_func" >&5
32541 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32542 if eval "test \"\${$as_ac_var+set}\" = set"; then
32543 echo $ECHO_N "(cached) $ECHO_C" >&6
32545 cat >conftest.$ac_ext <<_ACEOF
32546 #line $LINENO "configure"
32549 cat confdefs.h >>conftest.$ac_ext
32550 cat >>conftest.$ac_ext <<_ACEOF
32551 /* end confdefs.h. */
32552 /* System header to define __stub macros and hopefully few prototypes,
32553 which can conflict with char $ac_func (); below.
32554 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32555 <limits.h> exists even on freestanding compilers. */
32557 # include <limits.h>
32559 # include <assert.h>
32561 /* Override any gcc2 internal prototype to avoid an error. */
32566 /* We use char because int might match the return type of a gcc2
32567 builtin and then its argument prototype would still apply. */
32569 /* The GNU C library defines this for functions which it implements
32570 to always fail with ENOSYS. Some functions are actually named
32571 something starting with __ and the normal name is an alias. */
32572 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32575 char (*f) () = $ac_func;
32584 return f != $ac_func;
32589 rm -f conftest.$ac_objext conftest$ac_exeext
32590 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32591 (eval $ac_link) 2>&5
32593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32594 (exit $ac_status); } &&
32595 { ac_try='test -s conftest$ac_exeext'
32596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32597 (eval $ac_try) 2>&5
32599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32600 (exit $ac_status); }; }; then
32601 eval "$as_ac_var=yes"
32603 echo "$as_me: failed program was:" >&5
32604 sed 's/^/| /' conftest.$ac_ext >&5
32606 eval "$as_ac_var=no"
32608 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32610 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32611 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32612 if test `eval echo '${'$as_ac_var'}'` = yes; then
32613 cat >>confdefs.h <<_ACEOF
32614 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32618 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
32624 for ac_func in getpass
32626 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32627 echo "$as_me:$LINENO: checking for $ac_func" >&5
32628 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32629 if eval "test \"\${$as_ac_var+set}\" = set"; then
32630 echo $ECHO_N "(cached) $ECHO_C" >&6
32632 cat >conftest.$ac_ext <<_ACEOF
32633 #line $LINENO "configure"
32636 cat confdefs.h >>conftest.$ac_ext
32637 cat >>conftest.$ac_ext <<_ACEOF
32638 /* end confdefs.h. */
32639 /* System header to define __stub macros and hopefully few prototypes,
32640 which can conflict with char $ac_func (); below.
32641 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32642 <limits.h> exists even on freestanding compilers. */
32644 # include <limits.h>
32646 # include <assert.h>
32648 /* Override any gcc2 internal prototype to avoid an error. */
32653 /* We use char because int might match the return type of a gcc2
32654 builtin and then its argument prototype would still apply. */
32656 /* The GNU C library defines this for functions which it implements
32657 to always fail with ENOSYS. Some functions are actually named
32658 something starting with __ and the normal name is an alias. */
32659 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32662 char (*f) () = $ac_func;
32671 return f != $ac_func;
32676 rm -f conftest.$ac_objext conftest$ac_exeext
32677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32678 (eval $ac_link) 2>&5
32680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32681 (exit $ac_status); } &&
32682 { ac_try='test -s conftest$ac_exeext'
32683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32684 (eval $ac_try) 2>&5
32686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32687 (exit $ac_status); }; }; then
32688 eval "$as_ac_var=yes"
32690 echo "$as_me: failed program was:" >&5
32691 sed 's/^/| /' conftest.$ac_ext >&5
32693 eval "$as_ac_var=no"
32695 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32697 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32698 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32699 if test `eval echo '${'$as_ac_var'}'` = yes; then
32700 cat >>confdefs.h <<_ACEOF
32701 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32705 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
32711 # raise is used by at least sort and ls.
32713 for ac_func in raise
32715 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32716 echo "$as_me:$LINENO: checking for $ac_func" >&5
32717 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32718 if eval "test \"\${$as_ac_var+set}\" = set"; then
32719 echo $ECHO_N "(cached) $ECHO_C" >&6
32721 cat >conftest.$ac_ext <<_ACEOF
32722 #line $LINENO "configure"
32725 cat confdefs.h >>conftest.$ac_ext
32726 cat >>conftest.$ac_ext <<_ACEOF
32727 /* end confdefs.h. */
32728 /* System header to define __stub macros and hopefully few prototypes,
32729 which can conflict with char $ac_func (); below.
32730 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32731 <limits.h> exists even on freestanding compilers. */
32733 # include <limits.h>
32735 # include <assert.h>
32737 /* Override any gcc2 internal prototype to avoid an error. */
32742 /* We use char because int might match the return type of a gcc2
32743 builtin and then its argument prototype would still apply. */
32745 /* The GNU C library defines this for functions which it implements
32746 to always fail with ENOSYS. Some functions are actually named
32747 something starting with __ and the normal name is an alias. */
32748 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32751 char (*f) () = $ac_func;
32760 return f != $ac_func;
32765 rm -f conftest.$ac_objext conftest$ac_exeext
32766 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32767 (eval $ac_link) 2>&5
32769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32770 (exit $ac_status); } &&
32771 { ac_try='test -s conftest$ac_exeext'
32772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32773 (eval $ac_try) 2>&5
32775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32776 (exit $ac_status); }; }; then
32777 eval "$as_ac_var=yes"
32779 echo "$as_me: failed program was:" >&5
32780 sed 's/^/| /' conftest.$ac_ext >&5
32782 eval "$as_ac_var=no"
32784 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32786 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32787 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32788 if test `eval echo '${'$as_ac_var'}'` = yes; then
32789 cat >>confdefs.h <<_ACEOF
32790 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32794 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
32801 for ac_func in strdup
32803 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32804 echo "$as_me:$LINENO: checking for $ac_func" >&5
32805 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32806 if eval "test \"\${$as_ac_var+set}\" = set"; then
32807 echo $ECHO_N "(cached) $ECHO_C" >&6
32809 cat >conftest.$ac_ext <<_ACEOF
32810 #line $LINENO "configure"
32813 cat confdefs.h >>conftest.$ac_ext
32814 cat >>conftest.$ac_ext <<_ACEOF
32815 /* end confdefs.h. */
32816 /* System header to define __stub macros and hopefully few prototypes,
32817 which can conflict with char $ac_func (); below.
32818 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32819 <limits.h> exists even on freestanding compilers. */
32821 # include <limits.h>
32823 # include <assert.h>
32825 /* Override any gcc2 internal prototype to avoid an error. */
32830 /* We use char because int might match the return type of a gcc2
32831 builtin and then its argument prototype would still apply. */
32833 /* The GNU C library defines this for functions which it implements
32834 to always fail with ENOSYS. Some functions are actually named
32835 something starting with __ and the normal name is an alias. */
32836 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32839 char (*f) () = $ac_func;
32848 return f != $ac_func;
32853 rm -f conftest.$ac_objext conftest$ac_exeext
32854 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32855 (eval $ac_link) 2>&5
32857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32858 (exit $ac_status); } &&
32859 { ac_try='test -s conftest$ac_exeext'
32860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32861 (eval $ac_try) 2>&5
32863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32864 (exit $ac_status); }; }; then
32865 eval "$as_ac_var=yes"
32867 echo "$as_me: failed program was:" >&5
32868 sed 's/^/| /' conftest.$ac_ext >&5
32870 eval "$as_ac_var=no"
32872 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32874 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32875 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32876 if test `eval echo '${'$as_ac_var'}'` = yes; then
32877 cat >>confdefs.h <<_ACEOF
32878 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32882 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
32893 for ac_func in memchr memcpy memmove memrchr memset
32895 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32896 echo "$as_me:$LINENO: checking for $ac_func" >&5
32897 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32898 if eval "test \"\${$as_ac_var+set}\" = set"; then
32899 echo $ECHO_N "(cached) $ECHO_C" >&6
32901 cat >conftest.$ac_ext <<_ACEOF
32902 #line $LINENO "configure"
32905 cat confdefs.h >>conftest.$ac_ext
32906 cat >>conftest.$ac_ext <<_ACEOF
32907 /* end confdefs.h. */
32908 /* System header to define __stub macros and hopefully few prototypes,
32909 which can conflict with char $ac_func (); below.
32910 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32911 <limits.h> exists even on freestanding compilers. */
32913 # include <limits.h>
32915 # include <assert.h>
32917 /* Override any gcc2 internal prototype to avoid an error. */
32922 /* We use char because int might match the return type of a gcc2
32923 builtin and then its argument prototype would still apply. */
32925 /* The GNU C library defines this for functions which it implements
32926 to always fail with ENOSYS. Some functions are actually named
32927 something starting with __ and the normal name is an alias. */
32928 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32931 char (*f) () = $ac_func;
32940 return f != $ac_func;
32945 rm -f conftest.$ac_objext conftest$ac_exeext
32946 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32947 (eval $ac_link) 2>&5
32949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32950 (exit $ac_status); } &&
32951 { ac_try='test -s conftest$ac_exeext'
32952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32953 (eval $ac_try) 2>&5
32955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32956 (exit $ac_status); }; }; then
32957 eval "$as_ac_var=yes"
32959 echo "$as_me: failed program was:" >&5
32960 sed 's/^/| /' conftest.$ac_ext >&5
32962 eval "$as_ac_var=no"
32964 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32966 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32967 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32968 if test `eval echo '${'$as_ac_var'}'` = yes; then
32969 cat >>confdefs.h <<_ACEOF
32970 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32974 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
32980 for ac_func in getpagesize
32982 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32983 echo "$as_me:$LINENO: checking for $ac_func" >&5
32984 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32985 if eval "test \"\${$as_ac_var+set}\" = set"; then
32986 echo $ECHO_N "(cached) $ECHO_C" >&6
32988 cat >conftest.$ac_ext <<_ACEOF
32989 #line $LINENO "configure"
32992 cat confdefs.h >>conftest.$ac_ext
32993 cat >>conftest.$ac_ext <<_ACEOF
32994 /* end confdefs.h. */
32995 /* System header to define __stub macros and hopefully few prototypes,
32996 which can conflict with char $ac_func (); below.
32997 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32998 <limits.h> exists even on freestanding compilers. */
33000 # include <limits.h>
33002 # include <assert.h>
33004 /* Override any gcc2 internal prototype to avoid an error. */
33009 /* We use char because int might match the return type of a gcc2
33010 builtin and then its argument prototype would still apply. */
33012 /* The GNU C library defines this for functions which it implements
33013 to always fail with ENOSYS. Some functions are actually named
33014 something starting with __ and the normal name is an alias. */
33015 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33018 char (*f) () = $ac_func;
33027 return f != $ac_func;
33032 rm -f conftest.$ac_objext conftest$ac_exeext
33033 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33034 (eval $ac_link) 2>&5
33036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33037 (exit $ac_status); } &&
33038 { ac_try='test -s conftest$ac_exeext'
33039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33040 (eval $ac_try) 2>&5
33042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33043 (exit $ac_status); }; }; then
33044 eval "$as_ac_var=yes"
33046 echo "$as_me: failed program was:" >&5
33047 sed 's/^/| /' conftest.$ac_ext >&5
33049 eval "$as_ac_var=no"
33051 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33053 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33054 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33055 if test `eval echo '${'$as_ac_var'}'` = yes; then
33056 cat >>confdefs.h <<_ACEOF
33057 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33066 # By default, argmatch should fail calling usage (1).
33068 cat >>confdefs.h <<\_ACEOF
33069 #define ARGMATCH_DIE usage (1)
33073 cat >>confdefs.h <<\_ACEOF
33074 #define ARGMATCH_DIE_DECL extern void usage ()
33078 echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed" >&5
33079 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6
33080 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
33081 echo $ECHO_N "(cached) $ECHO_C" >&6
33083 ac_cv_func_setvbuf_reversed=no
33084 cat >conftest.$ac_ext <<_ACEOF
33085 #line $LINENO "configure"
33088 cat confdefs.h >>conftest.$ac_ext
33089 cat >>conftest.$ac_ext <<_ACEOF
33090 /* end confdefs.h. */
33093 int (setvbuf) (FILE *, int, char *, size_t);
33098 char buf; return setvbuf (stdout, _IOLBF, &buf, 1);
33103 rm -f conftest.$ac_objext conftest$ac_exeext
33104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33105 (eval $ac_link) 2>&5
33107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33108 (exit $ac_status); } &&
33109 { ac_try='test -s conftest$ac_exeext'
33110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33111 (eval $ac_try) 2>&5
33113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33114 (exit $ac_status); }; }; then
33115 cat >conftest.$ac_ext <<_ACEOF
33116 #line $LINENO "configure"
33119 cat confdefs.h >>conftest.$ac_ext
33120 cat >>conftest.$ac_ext <<_ACEOF
33121 /* end confdefs.h. */
33124 int (setvbuf) (FILE *, int, char *, size_t);
33129 char buf; return setvbuf (stdout, &buf, _IOLBF, 1);
33134 rm -f conftest.$ac_objext conftest$ac_exeext
33135 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33136 (eval $ac_link) 2>&5
33138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33139 (exit $ac_status); } &&
33140 { ac_try='test -s conftest$ac_exeext'
33141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33142 (eval $ac_try) 2>&5
33144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33145 (exit $ac_status); }; }; then
33146 # It compiles and links either way, so it must not be declared
33147 # with a prototype and most likely this is a K&R C compiler.
33149 if test "$cross_compiling" = yes; then
33150 : # Assume setvbuf is not reversed when cross-compiling.
33152 cat >conftest.$ac_ext <<_ACEOF
33153 #line $LINENO "configure"
33156 cat confdefs.h >>conftest.$ac_ext
33157 cat >>conftest.$ac_ext <<_ACEOF
33158 /* end confdefs.h. */
33163 /* This call has the arguments reversed.
33164 A reversed system may check and see that the address of buf
33165 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
33167 if (setvbuf (stdout, _IOLBF, &buf, 1) != 0)
33170 exit (0); /* Non-reversed systems SEGV here. */
33175 rm -f conftest$ac_exeext
33176 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33177 (eval $ac_link) 2>&5
33179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33180 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33182 (eval $ac_try) 2>&5
33184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33185 (exit $ac_status); }; }; then
33186 ac_cv_func_setvbuf_reversed=yes
33188 echo "$as_me: program exited with status $ac_status" >&5
33189 echo "$as_me: failed program was:" >&5
33190 sed 's/^/| /' conftest.$ac_ext >&5
33192 ( exit $ac_status )
33193 rm -f core core.* *.core
33195 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33197 ac_cv_func_setvbuf_reversed=yes
33199 echo "$as_me: failed program was:" >&5
33200 sed 's/^/| /' conftest.$ac_ext >&5
33203 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33205 echo "$as_me: failed program was:" >&5
33206 sed 's/^/| /' conftest.$ac_ext >&5
33209 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33211 echo "$as_me:$LINENO: result: $ac_cv_func_setvbuf_reversed" >&5
33212 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6
33213 if test $ac_cv_func_setvbuf_reversed = yes; then
33215 cat >>confdefs.h <<\_ACEOF
33216 #define SETVBUF_REVERSED 1
33222 # used by sleep and shred
33223 # Solaris 2.5.1 needs -lposix4 to get the clock_gettime function.
33224 # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
33226 # Save and restore LIBS so e.g., -lrt, isn't added to it. Otherwise, *all*
33227 # programs in the package would end up linked with that potentially-shared
33228 # library, inducing unnecessary run-time overhead.
33229 fetish_saved_libs=$LIBS
33231 echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
33232 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6
33233 if test "${ac_cv_search_clock_gettime+set}" = set; then
33234 echo $ECHO_N "(cached) $ECHO_C" >&6
33237 ac_func_search_save_LIBS=$LIBS
33238 ac_cv_search_clock_gettime=no
33239 cat >conftest.$ac_ext <<_ACEOF
33240 #line $LINENO "configure"
33243 cat confdefs.h >>conftest.$ac_ext
33244 cat >>conftest.$ac_ext <<_ACEOF
33245 /* end confdefs.h. */
33247 /* Override any gcc2 internal prototype to avoid an error. */
33251 /* We use char because int might match the return type of a gcc2
33252 builtin and then its argument prototype would still apply. */
33253 char clock_gettime ();
33262 rm -f conftest.$ac_objext conftest$ac_exeext
33263 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33264 (eval $ac_link) 2>&5
33266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33267 (exit $ac_status); } &&
33268 { ac_try='test -s conftest$ac_exeext'
33269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33270 (eval $ac_try) 2>&5
33272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33273 (exit $ac_status); }; }; then
33274 ac_cv_search_clock_gettime='none required'
33276 echo "$as_me: failed program was:" >&5
33277 sed 's/^/| /' conftest.$ac_ext >&5
33280 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33281 if test "$ac_cv_search_clock_gettime" = no; then
33282 for ac_lib in rt posix4; do
33283 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
33284 cat >conftest.$ac_ext <<_ACEOF
33285 #line $LINENO "configure"
33288 cat confdefs.h >>conftest.$ac_ext
33289 cat >>conftest.$ac_ext <<_ACEOF
33290 /* end confdefs.h. */
33292 /* Override any gcc2 internal prototype to avoid an error. */
33296 /* We use char because int might match the return type of a gcc2
33297 builtin and then its argument prototype would still apply. */
33298 char clock_gettime ();
33307 rm -f conftest.$ac_objext conftest$ac_exeext
33308 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33309 (eval $ac_link) 2>&5
33311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33312 (exit $ac_status); } &&
33313 { ac_try='test -s conftest$ac_exeext'
33314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33315 (eval $ac_try) 2>&5
33317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33318 (exit $ac_status); }; }; then
33319 ac_cv_search_clock_gettime="-l$ac_lib"; break
33321 echo "$as_me: failed program was:" >&5
33322 sed 's/^/| /' conftest.$ac_ext >&5
33325 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33328 LIBS=$ac_func_search_save_LIBS
33331 echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
33332 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6
33334 if test "$ac_cv_search_clock_gettime" = no; then :
33337 if test "$ac_cv_search_clock_gettime" = 'none required'; then :
33340 LIBS="$ac_cv_search_clock_gettime $LIBS"
33341 LIB_CLOCK_GETTIME=$ac_cv_search_clock_gettime
33348 for ac_func in clock_gettime clock_settime
33350 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33351 echo "$as_me:$LINENO: checking for $ac_func" >&5
33352 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33353 if eval "test \"\${$as_ac_var+set}\" = set"; then
33354 echo $ECHO_N "(cached) $ECHO_C" >&6
33356 cat >conftest.$ac_ext <<_ACEOF
33357 #line $LINENO "configure"
33360 cat confdefs.h >>conftest.$ac_ext
33361 cat >>conftest.$ac_ext <<_ACEOF
33362 /* end confdefs.h. */
33363 /* System header to define __stub macros and hopefully few prototypes,
33364 which can conflict with char $ac_func (); below.
33365 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33366 <limits.h> exists even on freestanding compilers. */
33368 # include <limits.h>
33370 # include <assert.h>
33372 /* Override any gcc2 internal prototype to avoid an error. */
33377 /* We use char because int might match the return type of a gcc2
33378 builtin and then its argument prototype would still apply. */
33380 /* The GNU C library defines this for functions which it implements
33381 to always fail with ENOSYS. Some functions are actually named
33382 something starting with __ and the normal name is an alias. */
33383 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33386 char (*f) () = $ac_func;
33395 return f != $ac_func;
33400 rm -f conftest.$ac_objext conftest$ac_exeext
33401 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33402 (eval $ac_link) 2>&5
33404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33405 (exit $ac_status); } &&
33406 { ac_try='test -s conftest$ac_exeext'
33407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33408 (eval $ac_try) 2>&5
33410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33411 (exit $ac_status); }; }; then
33412 eval "$as_ac_var=yes"
33414 echo "$as_me: failed program was:" >&5
33415 sed 's/^/| /' conftest.$ac_ext >&5
33417 eval "$as_ac_var=no"
33419 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33421 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33422 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33423 if test `eval echo '${'$as_ac_var'}'` = yes; then
33424 cat >>confdefs.h <<_ACEOF
33425 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33431 LIBS=$fetish_saved_libs
33433 for ac_func in gettimeofday
33435 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33436 echo "$as_me:$LINENO: checking for $ac_func" >&5
33437 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33438 if eval "test \"\${$as_ac_var+set}\" = set"; then
33439 echo $ECHO_N "(cached) $ECHO_C" >&6
33441 cat >conftest.$ac_ext <<_ACEOF
33442 #line $LINENO "configure"
33445 cat confdefs.h >>conftest.$ac_ext
33446 cat >>conftest.$ac_ext <<_ACEOF
33447 /* end confdefs.h. */
33448 /* System header to define __stub macros and hopefully few prototypes,
33449 which can conflict with char $ac_func (); below.
33450 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33451 <limits.h> exists even on freestanding compilers. */
33453 # include <limits.h>
33455 # include <assert.h>
33457 /* Override any gcc2 internal prototype to avoid an error. */
33462 /* We use char because int might match the return type of a gcc2
33463 builtin and then its argument prototype would still apply. */
33465 /* The GNU C library defines this for functions which it implements
33466 to always fail with ENOSYS. Some functions are actually named
33467 something starting with __ and the normal name is an alias. */
33468 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33471 char (*f) () = $ac_func;
33480 return f != $ac_func;
33485 rm -f conftest.$ac_objext conftest$ac_exeext
33486 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33487 (eval $ac_link) 2>&5
33489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33490 (exit $ac_status); } &&
33491 { ac_try='test -s conftest$ac_exeext'
33492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33493 (eval $ac_try) 2>&5
33495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33496 (exit $ac_status); }; }; then
33497 eval "$as_ac_var=yes"
33499 echo "$as_me: failed program was:" >&5
33500 sed 's/^/| /' conftest.$ac_ext >&5
33502 eval "$as_ac_var=no"
33504 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33506 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33507 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33508 if test `eval echo '${'$as_ac_var'}'` = yes; then
33509 cat >>confdefs.h <<_ACEOF
33510 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33520 for ac_header in string.h stdlib.h
33522 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33523 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33524 echo "$as_me:$LINENO: checking for $ac_header" >&5
33525 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33526 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33527 echo $ECHO_N "(cached) $ECHO_C" >&6
33529 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33530 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33532 # Is the header compilable?
33533 echo "$as_me:$LINENO: checking $ac_header usability" >&5
33534 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
33535 cat >conftest.$ac_ext <<_ACEOF
33536 #line $LINENO "configure"
33539 cat confdefs.h >>conftest.$ac_ext
33540 cat >>conftest.$ac_ext <<_ACEOF
33541 /* end confdefs.h. */
33542 $ac_includes_default
33543 #include <$ac_header>
33545 rm -f conftest.$ac_objext
33546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33547 (eval $ac_compile) 2>&5
33549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33550 (exit $ac_status); } &&
33551 { ac_try='test -s conftest.$ac_objext'
33552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33553 (eval $ac_try) 2>&5
33555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33556 (exit $ac_status); }; }; then
33557 ac_header_compiler=yes
33559 echo "$as_me: failed program was:" >&5
33560 sed 's/^/| /' conftest.$ac_ext >&5
33562 ac_header_compiler=no
33564 rm -f conftest.$ac_objext conftest.$ac_ext
33565 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33566 echo "${ECHO_T}$ac_header_compiler" >&6
33568 # Is the header present?
33569 echo "$as_me:$LINENO: checking $ac_header presence" >&5
33570 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
33571 cat >conftest.$ac_ext <<_ACEOF
33572 #line $LINENO "configure"
33575 cat confdefs.h >>conftest.$ac_ext
33576 cat >>conftest.$ac_ext <<_ACEOF
33577 /* end confdefs.h. */
33578 #include <$ac_header>
33580 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
33581 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
33583 grep -v '^ *+' conftest.er1 >conftest.err
33585 cat conftest.err >&5
33586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33587 (exit $ac_status); } >/dev/null; then
33588 if test -s conftest.err; then
33589 ac_cpp_err=$ac_c_preproc_warn_flag
33596 if test -z "$ac_cpp_err"; then
33597 ac_header_preproc=yes
33599 echo "$as_me: failed program was:" >&5
33600 sed 's/^/| /' conftest.$ac_ext >&5
33602 ac_header_preproc=no
33604 rm -f conftest.err conftest.$ac_ext
33605 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33606 echo "${ECHO_T}$ac_header_preproc" >&6
33608 # So? What about this header?
33609 case $ac_header_compiler:$ac_header_preproc in
33611 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33612 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33613 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33614 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33617 ## ------------------------------------ ##
33618 ## Report this to bug-autoconf@gnu.org. ##
33619 ## ------------------------------------ ##
33622 sed "s/^/$as_me: WARNING: /" >&2
33625 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33626 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33627 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33628 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33629 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33630 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33633 ## ------------------------------------ ##
33634 ## Report this to bug-autoconf@gnu.org. ##
33635 ## ------------------------------------ ##
33638 sed "s/^/$as_me: WARNING: /" >&2
33641 echo "$as_me:$LINENO: checking for $ac_header" >&5
33642 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33643 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33644 echo $ECHO_N "(cached) $ECHO_C" >&6
33646 eval "$as_ac_Header=$ac_header_preproc"
33648 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33649 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33652 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33653 cat >>confdefs.h <<_ACEOF
33654 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33661 echo "$as_me:$LINENO: checking whether gettimeofday clobbers localtime buffer" >&5
33662 echo $ECHO_N "checking whether gettimeofday clobbers localtime buffer... $ECHO_C" >&6
33663 if test "${jm_cv_func_gettimeofday_clobber+set}" = set; then
33664 echo $ECHO_N "(cached) $ECHO_C" >&6
33666 if test "$cross_compiling" = yes; then
33667 jm_cv_func_gettimeofday_clobber=yes
33669 cat >conftest.$ac_ext <<_ACEOF
33670 #line $LINENO "configure"
33673 cat confdefs.h >>conftest.$ac_ext
33674 cat >>conftest.$ac_ext <<_ACEOF
33675 /* end confdefs.h. */
33679 # include <string.h>
33682 #if TIME_WITH_SYS_TIME
33683 # include <sys/time.h>
33686 # if HAVE_SYS_TIME_H
33687 # include <sys/time.h>
33694 # include <stdlib.h>
33702 struct tm saved_lt;
33704 lt = localtime (&t);
33706 gettimeofday (&tv, NULL);
33707 if (memcmp (lt, &saved_lt, sizeof (struct tm)) != 0)
33714 rm -f conftest$ac_exeext
33715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33716 (eval $ac_link) 2>&5
33718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33719 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33721 (eval $ac_try) 2>&5
33723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33724 (exit $ac_status); }; }; then
33725 jm_cv_func_gettimeofday_clobber=no
33727 echo "$as_me: program exited with status $ac_status" >&5
33728 echo "$as_me: failed program was:" >&5
33729 sed 's/^/| /' conftest.$ac_ext >&5
33731 ( exit $ac_status )
33732 jm_cv_func_gettimeofday_clobber=yes
33734 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33738 echo "$as_me:$LINENO: result: $jm_cv_func_gettimeofday_clobber" >&5
33739 echo "${ECHO_T}$jm_cv_func_gettimeofday_clobber" >&6
33740 if test $jm_cv_func_gettimeofday_clobber = yes; then
33741 LIBOBJS="$LIBOBJS gettimeofday.$ac_objext"
33743 cat >>confdefs.h <<\_ACEOF
33744 #define localtime rpl_localtime
33748 cat >>confdefs.h <<\_ACEOF
33749 #define gettimeofday rpl_gettimeofday
33753 cat >>confdefs.h <<\_ACEOF
33754 #define GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER 1
33822 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33823 echo "$as_me:$LINENO: checking for $ac_func" >&5
33824 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33825 if eval "test \"\${$as_ac_var+set}\" = set"; then
33826 echo $ECHO_N "(cached) $ECHO_C" >&6
33828 cat >conftest.$ac_ext <<_ACEOF
33829 #line $LINENO "configure"
33832 cat confdefs.h >>conftest.$ac_ext
33833 cat >>conftest.$ac_ext <<_ACEOF
33834 /* end confdefs.h. */
33835 /* System header to define __stub macros and hopefully few prototypes,
33836 which can conflict with char $ac_func (); below.
33837 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33838 <limits.h> exists even on freestanding compilers. */
33840 # include <limits.h>
33842 # include <assert.h>
33844 /* Override any gcc2 internal prototype to avoid an error. */
33849 /* We use char because int might match the return type of a gcc2
33850 builtin and then its argument prototype would still apply. */
33852 /* The GNU C library defines this for functions which it implements
33853 to always fail with ENOSYS. Some functions are actually named
33854 something starting with __ and the normal name is an alias. */
33855 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33858 char (*f) () = $ac_func;
33867 return f != $ac_func;
33872 rm -f conftest.$ac_objext conftest$ac_exeext
33873 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33874 (eval $ac_link) 2>&5
33876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33877 (exit $ac_status); } &&
33878 { ac_try='test -s conftest$ac_exeext'
33879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33880 (eval $ac_try) 2>&5
33882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33883 (exit $ac_status); }; }; then
33884 eval "$as_ac_var=yes"
33886 echo "$as_me: failed program was:" >&5
33887 sed 's/^/| /' conftest.$ac_ext >&5
33889 eval "$as_ac_var=no"
33891 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33893 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33894 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33895 if test `eval echo '${'$as_ac_var'}'` = yes; then
33896 cat >>confdefs.h <<_ACEOF
33897 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33904 am_getline_needs_run_time_check=no
33905 echo "$as_me:$LINENO: checking for getline" >&5
33906 echo $ECHO_N "checking for getline... $ECHO_C" >&6
33907 if test "${ac_cv_func_getline+set}" = set; then
33908 echo $ECHO_N "(cached) $ECHO_C" >&6
33910 cat >conftest.$ac_ext <<_ACEOF
33911 #line $LINENO "configure"
33914 cat confdefs.h >>conftest.$ac_ext
33915 cat >>conftest.$ac_ext <<_ACEOF
33916 /* end confdefs.h. */
33917 /* System header to define __stub macros and hopefully few prototypes,
33918 which can conflict with char getline (); below.
33919 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33920 <limits.h> exists even on freestanding compilers. */
33922 # include <limits.h>
33924 # include <assert.h>
33926 /* Override any gcc2 internal prototype to avoid an error. */
33931 /* We use char because int might match the return type of a gcc2
33932 builtin and then its argument prototype would still apply. */
33934 /* The GNU C library defines this for functions which it implements
33935 to always fail with ENOSYS. Some functions are actually named
33936 something starting with __ and the normal name is an alias. */
33937 #if defined (__stub_getline) || defined (__stub___getline)
33940 char (*f) () = getline;
33949 return f != getline;
33954 rm -f conftest.$ac_objext conftest$ac_exeext
33955 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33956 (eval $ac_link) 2>&5
33958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33959 (exit $ac_status); } &&
33960 { ac_try='test -s conftest$ac_exeext'
33961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33962 (eval $ac_try) 2>&5
33964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33965 (exit $ac_status); }; }; then
33966 ac_cv_func_getline=yes
33968 echo "$as_me: failed program was:" >&5
33969 sed 's/^/| /' conftest.$ac_ext >&5
33971 ac_cv_func_getline=no
33973 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33975 echo "$as_me:$LINENO: result: $ac_cv_func_getline" >&5
33976 echo "${ECHO_T}$ac_cv_func_getline" >&6
33977 if test $ac_cv_func_getline = yes; then
33978 am_getline_needs_run_time_check=yes
33980 am_cv_func_working_getline=no
33983 if test $am_getline_needs_run_time_check = yes; then
33984 echo "$as_me:$LINENO: checking for working getline function" >&5
33985 echo $ECHO_N "checking for working getline function... $ECHO_C" >&6
33986 if test "${am_cv_func_working_getline+set}" = set; then
33987 echo $ECHO_N "(cached) $ECHO_C" >&6
33989 echo fooN |tr -d '\012'|tr N '\012' > conftest.data
33990 if test "$cross_compiling" = yes; then
33991 am_cv_func_working_getline=no
33993 cat >conftest.$ac_ext <<_ACEOF
33994 #line $LINENO "configure"
33997 cat confdefs.h >>conftest.$ac_ext
33998 cat >>conftest.$ac_ext <<_ACEOF
33999 /* end confdefs.h. */
34001 # include <stdio.h>
34002 # include <sys/types.h>
34003 # include <string.h>
34005 { /* Based on a test program from Karl Heuer. */
34009 FILE *in = fopen ("./conftest.data", "r");
34012 len = getline (&line, &siz, in);
34013 exit ((len == 4 && line && strcmp (line, "foo\n") == 0) ? 0 : 1);
34017 rm -f conftest$ac_exeext
34018 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34019 (eval $ac_link) 2>&5
34021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34022 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34024 (eval $ac_try) 2>&5
34026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34027 (exit $ac_status); }; }; then
34028 am_cv_func_working_getline=yes
34030 echo "$as_me: program exited with status $ac_status" >&5
34031 echo "$as_me: failed program was:" >&5
34032 sed 's/^/| /' conftest.$ac_ext >&5
34034 ( exit $ac_status )
34035 am_cv_func_working_getline=no
34037 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34040 echo "$as_me:$LINENO: result: $am_cv_func_working_getline" >&5
34041 echo "${ECHO_T}$am_cv_func_working_getline" >&6
34044 if test $am_cv_func_working_getline = no; then
34045 LIBOBJS="$LIBOBJS getline.$ac_objext"
34048 if test $am_cv_func_working_getline != yes; then
34050 for ac_func in getdelim
34052 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34053 echo "$as_me:$LINENO: checking for $ac_func" >&5
34054 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34055 if eval "test \"\${$as_ac_var+set}\" = set"; then
34056 echo $ECHO_N "(cached) $ECHO_C" >&6
34058 cat >conftest.$ac_ext <<_ACEOF
34059 #line $LINENO "configure"
34062 cat confdefs.h >>conftest.$ac_ext
34063 cat >>conftest.$ac_ext <<_ACEOF
34064 /* end confdefs.h. */
34065 /* System header to define __stub macros and hopefully few prototypes,
34066 which can conflict with char $ac_func (); below.
34067 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34068 <limits.h> exists even on freestanding compilers. */
34070 # include <limits.h>
34072 # include <assert.h>
34074 /* Override any gcc2 internal prototype to avoid an error. */
34079 /* We use char because int might match the return type of a gcc2
34080 builtin and then its argument prototype would still apply. */
34082 /* The GNU C library defines this for functions which it implements
34083 to always fail with ENOSYS. Some functions are actually named
34084 something starting with __ and the normal name is an alias. */
34085 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34088 char (*f) () = $ac_func;
34097 return f != $ac_func;
34102 rm -f conftest.$ac_objext conftest$ac_exeext
34103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34104 (eval $ac_link) 2>&5
34106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34107 (exit $ac_status); } &&
34108 { ac_try='test -s conftest$ac_exeext'
34109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34110 (eval $ac_try) 2>&5
34112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34113 (exit $ac_status); }; }; then
34114 eval "$as_ac_var=yes"
34116 echo "$as_me: failed program was:" >&5
34117 sed 's/^/| /' conftest.$ac_ext >&5
34119 eval "$as_ac_var=no"
34121 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
34123 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34124 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34125 if test `eval echo '${'$as_ac_var'}'` = yes; then
34126 cat >>confdefs.h <<_ACEOF
34127 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34134 echo "$as_me:$LINENO: checking for obstacks" >&5
34135 echo $ECHO_N "checking for obstacks... $ECHO_C" >&6
34136 if test "${ac_cv_func_obstack+set}" = set; then
34137 echo $ECHO_N "(cached) $ECHO_C" >&6
34139 cat >conftest.$ac_ext <<_ACEOF
34140 #line $LINENO "configure"
34143 cat confdefs.h >>conftest.$ac_ext
34144 cat >>conftest.$ac_ext <<_ACEOF
34145 /* end confdefs.h. */
34146 #include "obstack.h"
34150 struct obstack *mem; obstack_free(mem,(char *) 0)
34155 rm -f conftest.$ac_objext conftest$ac_exeext
34156 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34157 (eval $ac_link) 2>&5
34159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34160 (exit $ac_status); } &&
34161 { ac_try='test -s conftest$ac_exeext'
34162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34163 (eval $ac_try) 2>&5
34165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34166 (exit $ac_status); }; }; then
34167 ac_cv_func_obstack=yes
34169 echo "$as_me: failed program was:" >&5
34170 sed 's/^/| /' conftest.$ac_ext >&5
34172 ac_cv_func_obstack=no
34174 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
34176 echo "$as_me:$LINENO: result: $ac_cv_func_obstack" >&5
34177 echo "${ECHO_T}$ac_cv_func_obstack" >&6
34178 if test $ac_cv_func_obstack = yes; then
34180 cat >>confdefs.h <<\_ACEOF
34181 #define HAVE_OBSTACK 1
34185 LIBOBJS="$LIBOBJS obstack.$ac_objext"
34189 echo "$as_me:$LINENO: checking for working strtod" >&5
34190 echo $ECHO_N "checking for working strtod... $ECHO_C" >&6
34191 if test "${ac_cv_func_strtod+set}" = set; then
34192 echo $ECHO_N "(cached) $ECHO_C" >&6
34194 if test "$cross_compiling" = yes; then
34195 ac_cv_func_strtod=no
34197 cat >conftest.$ac_ext <<_ACEOF
34198 #line $LINENO "configure"
34201 cat confdefs.h >>conftest.$ac_ext
34202 cat >>conftest.$ac_ext <<_ACEOF
34203 /* end confdefs.h. */
34210 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
34211 char *string = " +69";
34214 value = strtod (string, &term);
34215 if (value != 69 || term != (string + 4))
34220 /* Under Solaris 2.4, strtod returns the wrong value for the
34221 terminating character under some conditions. */
34222 char *string = "NaN";
34224 strtod (string, &term);
34225 if (term != string && *(term - 1) == 0)
34232 rm -f conftest$ac_exeext
34233 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34234 (eval $ac_link) 2>&5
34236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34237 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34239 (eval $ac_try) 2>&5
34241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34242 (exit $ac_status); }; }; then
34243 ac_cv_func_strtod=yes
34245 echo "$as_me: program exited with status $ac_status" >&5
34246 echo "$as_me: failed program was:" >&5
34247 sed 's/^/| /' conftest.$ac_ext >&5
34249 ( exit $ac_status )
34250 ac_cv_func_strtod=no
34252 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34255 echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
34256 echo "${ECHO_T}$ac_cv_func_strtod" >&6
34257 if test $ac_cv_func_strtod = no; then
34258 LIBOBJS="$LIBOBJS strtod.$ac_objext"
34259 echo "$as_me:$LINENO: checking for pow" >&5
34260 echo $ECHO_N "checking for pow... $ECHO_C" >&6
34261 if test "${ac_cv_func_pow+set}" = set; then
34262 echo $ECHO_N "(cached) $ECHO_C" >&6
34264 cat >conftest.$ac_ext <<_ACEOF
34265 #line $LINENO "configure"
34268 cat confdefs.h >>conftest.$ac_ext
34269 cat >>conftest.$ac_ext <<_ACEOF
34270 /* end confdefs.h. */
34271 /* System header to define __stub macros and hopefully few prototypes,
34272 which can conflict with char pow (); below.
34273 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34274 <limits.h> exists even on freestanding compilers. */
34276 # include <limits.h>
34278 # include <assert.h>
34280 /* Override any gcc2 internal prototype to avoid an error. */
34285 /* We use char because int might match the return type of a gcc2
34286 builtin and then its argument prototype would still apply. */
34288 /* The GNU C library defines this for functions which it implements
34289 to always fail with ENOSYS. Some functions are actually named
34290 something starting with __ and the normal name is an alias. */
34291 #if defined (__stub_pow) || defined (__stub___pow)
34294 char (*f) () = pow;
34308 rm -f conftest.$ac_objext conftest$ac_exeext
34309 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34310 (eval $ac_link) 2>&5
34312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34313 (exit $ac_status); } &&
34314 { ac_try='test -s conftest$ac_exeext'
34315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34316 (eval $ac_try) 2>&5
34318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34319 (exit $ac_status); }; }; then
34322 echo "$as_me: failed program was:" >&5
34323 sed 's/^/| /' conftest.$ac_ext >&5
34327 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
34329 echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
34330 echo "${ECHO_T}$ac_cv_func_pow" >&6
34332 if test $ac_cv_func_pow = no; then
34333 echo "$as_me:$LINENO: checking for pow in -lm" >&5
34334 echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6
34335 if test "${ac_cv_lib_m_pow+set}" = set; then
34336 echo $ECHO_N "(cached) $ECHO_C" >&6
34338 ac_check_lib_save_LIBS=$LIBS
34340 cat >conftest.$ac_ext <<_ACEOF
34341 #line $LINENO "configure"
34344 cat confdefs.h >>conftest.$ac_ext
34345 cat >>conftest.$ac_ext <<_ACEOF
34346 /* end confdefs.h. */
34348 /* Override any gcc2 internal prototype to avoid an error. */
34352 /* We use char because int might match the return type of a gcc2
34353 builtin and then its argument prototype would still apply. */
34363 rm -f conftest.$ac_objext conftest$ac_exeext
34364 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34365 (eval $ac_link) 2>&5
34367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34368 (exit $ac_status); } &&
34369 { ac_try='test -s conftest$ac_exeext'
34370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34371 (eval $ac_try) 2>&5
34373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34374 (exit $ac_status); }; }; then
34375 ac_cv_lib_m_pow=yes
34377 echo "$as_me: failed program was:" >&5
34378 sed 's/^/| /' conftest.$ac_ext >&5
34382 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
34383 LIBS=$ac_check_lib_save_LIBS
34385 echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
34386 echo "${ECHO_T}$ac_cv_lib_m_pow" >&6
34387 if test $ac_cv_lib_m_pow = yes; then
34390 { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
34391 echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
34400 # See if linking `seq' requires -lm.
34401 # It does on nearly every system. The single exception (so far) is
34402 # BeOS which has all the math functions in the normal runtime library
34403 # and doesn't have a separate math library.
34407 static double x, y;
34411 cat >conftest.$ac_ext <<_ACEOF
34412 #line $LINENO "configure"
34415 cat confdefs.h >>conftest.$ac_ext
34416 cat >>conftest.$ac_ext <<_ACEOF
34417 /* end confdefs.h. */
34427 rm -f conftest.$ac_objext conftest$ac_exeext
34428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34429 (eval $ac_link) 2>&5
34431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34432 (exit $ac_status); } &&
34433 { ac_try='test -s conftest$ac_exeext'
34434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34435 (eval $ac_try) 2>&5
34437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34438 (exit $ac_status); }; }; then
34441 echo "$as_me: failed program was:" >&5
34442 sed 's/^/| /' conftest.$ac_ext >&5
34444 ac_seq_save_LIBS="$LIBS"
34446 cat >conftest.$ac_ext <<_ACEOF
34447 #line $LINENO "configure"
34450 cat confdefs.h >>conftest.$ac_ext
34451 cat >>conftest.$ac_ext <<_ACEOF
34452 /* end confdefs.h. */
34462 rm -f conftest.$ac_objext conftest$ac_exeext
34463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34464 (eval $ac_link) 2>&5
34466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34467 (exit $ac_status); } &&
34468 { ac_try='test -s conftest$ac_exeext'
34469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34470 (eval $ac_try) 2>&5
34472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34473 (exit $ac_status); }; }; then
34476 echo "$as_me: failed program was:" >&5
34477 sed 's/^/| /' conftest.$ac_ext >&5
34480 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
34481 LIBS="$ac_seq_save_LIBS"
34484 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
34487 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
34488 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
34489 if test "${am_cv_langinfo_codeset+set}" = set; then
34490 echo $ECHO_N "(cached) $ECHO_C" >&6
34492 cat >conftest.$ac_ext <<_ACEOF
34493 #line $LINENO "configure"
34496 cat confdefs.h >>conftest.$ac_ext
34497 cat >>conftest.$ac_ext <<_ACEOF
34498 /* end confdefs.h. */
34499 #include <langinfo.h>
34503 char* cs = nl_langinfo(CODESET);
34508 rm -f conftest.$ac_objext conftest$ac_exeext
34509 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34510 (eval $ac_link) 2>&5
34512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34513 (exit $ac_status); } &&
34514 { ac_try='test -s conftest$ac_exeext'
34515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34516 (eval $ac_try) 2>&5
34518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34519 (exit $ac_status); }; }; then
34520 am_cv_langinfo_codeset=yes
34522 echo "$as_me: failed program was:" >&5
34523 sed 's/^/| /' conftest.$ac_ext >&5
34525 am_cv_langinfo_codeset=no
34527 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
34530 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
34531 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
34532 if test $am_cv_langinfo_codeset = yes; then
34534 cat >>confdefs.h <<\_ACEOF
34535 #define HAVE_LANGINFO_CODESET 1
34541 echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
34542 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
34543 if test "${ac_cv_gnu_library_2_1+set}" = set; then
34544 echo $ECHO_N "(cached) $ECHO_C" >&6
34546 cat >conftest.$ac_ext <<_ACEOF
34547 #line $LINENO "configure"
34550 cat confdefs.h >>conftest.$ac_ext
34551 cat >>conftest.$ac_ext <<_ACEOF
34552 /* end confdefs.h. */
34554 #include <features.h>
34555 #ifdef __GNU_LIBRARY__
34556 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
34562 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34563 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
34564 ac_cv_gnu_library_2_1=yes
34566 ac_cv_gnu_library_2_1=no
34573 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
34574 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
34576 GLIBC21="$ac_cv_gnu_library_2_1"
34584 am_save_CPPFLAGS="$CPPFLAGS"
34586 for element in $INCICONV; do
34588 for x in $CPPFLAGS; do
34590 acl_save_prefix="$prefix"
34591 prefix="$acl_final_prefix"
34592 acl_save_exec_prefix="$exec_prefix"
34593 exec_prefix="$acl_final_exec_prefix"
34595 exec_prefix="$acl_save_exec_prefix"
34596 prefix="$acl_save_prefix"
34598 if test "X$x" = "X$element"; then
34603 if test -z "$haveit"; then
34604 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
34609 echo "$as_me:$LINENO: checking for iconv" >&5
34610 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
34611 if test "${am_cv_func_iconv+set}" = set; then
34612 echo $ECHO_N "(cached) $ECHO_C" >&6
34615 am_cv_func_iconv="no, consider installing GNU libiconv"
34617 cat >conftest.$ac_ext <<_ACEOF
34618 #line $LINENO "configure"
34621 cat confdefs.h >>conftest.$ac_ext
34622 cat >>conftest.$ac_ext <<_ACEOF
34623 /* end confdefs.h. */
34624 #include <stdlib.h>
34629 iconv_t cd = iconv_open("","");
34630 iconv(cd,NULL,NULL,NULL,NULL);
34636 rm -f conftest.$ac_objext conftest$ac_exeext
34637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34638 (eval $ac_link) 2>&5
34640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34641 (exit $ac_status); } &&
34642 { ac_try='test -s conftest$ac_exeext'
34643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34644 (eval $ac_try) 2>&5
34646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34647 (exit $ac_status); }; }; then
34648 am_cv_func_iconv=yes
34650 echo "$as_me: failed program was:" >&5
34651 sed 's/^/| /' conftest.$ac_ext >&5
34654 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
34655 if test "$am_cv_func_iconv" != yes; then
34656 am_save_LIBS="$LIBS"
34657 LIBS="$LIBS $LIBICONV"
34658 cat >conftest.$ac_ext <<_ACEOF
34659 #line $LINENO "configure"
34662 cat confdefs.h >>conftest.$ac_ext
34663 cat >>conftest.$ac_ext <<_ACEOF
34664 /* end confdefs.h. */
34665 #include <stdlib.h>
34670 iconv_t cd = iconv_open("","");
34671 iconv(cd,NULL,NULL,NULL,NULL);
34677 rm -f conftest.$ac_objext conftest$ac_exeext
34678 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34679 (eval $ac_link) 2>&5
34681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34682 (exit $ac_status); } &&
34683 { ac_try='test -s conftest$ac_exeext'
34684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34685 (eval $ac_try) 2>&5
34687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34688 (exit $ac_status); }; }; then
34689 am_cv_lib_iconv=yes
34690 am_cv_func_iconv=yes
34692 echo "$as_me: failed program was:" >&5
34693 sed 's/^/| /' conftest.$ac_ext >&5
34696 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
34697 LIBS="$am_save_LIBS"
34701 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
34702 echo "${ECHO_T}$am_cv_func_iconv" >&6
34703 if test "$am_cv_func_iconv" = yes; then
34705 cat >>confdefs.h <<\_ACEOF
34706 #define HAVE_ICONV 1
34710 if test "$am_cv_lib_iconv" = yes; then
34711 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
34712 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
34713 echo "$as_me:$LINENO: result: $LIBICONV" >&5
34714 echo "${ECHO_T}$LIBICONV" >&6
34716 CPPFLAGS="$am_save_CPPFLAGS"
34723 if test "$am_cv_func_iconv" = yes; then
34724 echo "$as_me:$LINENO: checking for iconv declaration" >&5
34725 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
34726 if test "${am_cv_proto_iconv+set}" = set; then
34727 echo $ECHO_N "(cached) $ECHO_C" >&6
34730 cat >conftest.$ac_ext <<_ACEOF
34731 #line $LINENO "configure"
34734 cat confdefs.h >>conftest.$ac_ext
34735 cat >>conftest.$ac_ext <<_ACEOF
34736 /* end confdefs.h. */
34738 #include <stdlib.h>
34744 #if defined(__STDC__) || defined(__cplusplus)
34745 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
34758 rm -f conftest.$ac_objext
34759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34760 (eval $ac_compile) 2>&5
34762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34763 (exit $ac_status); } &&
34764 { ac_try='test -s conftest.$ac_objext'
34765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34766 (eval $ac_try) 2>&5
34768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34769 (exit $ac_status); }; }; then
34770 am_cv_proto_iconv_arg1=""
34772 echo "$as_me: failed program was:" >&5
34773 sed 's/^/| /' conftest.$ac_ext >&5
34775 am_cv_proto_iconv_arg1="const"
34777 rm -f conftest.$ac_objext conftest.$ac_ext
34778 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);"
34781 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
34782 echo "$as_me:$LINENO: result: ${ac_t:-
34783 }$am_cv_proto_iconv" >&5
34784 echo "${ECHO_T}${ac_t:-
34785 }$am_cv_proto_iconv" >&6
34787 cat >>confdefs.h <<_ACEOF
34788 #define ICONV_CONST $am_cv_proto_iconv_arg1
34793 echo "$as_me:$LINENO: checking whether a running program can be unlinked" >&5
34794 echo $ECHO_N "checking whether a running program can be unlinked... $ECHO_C" >&6
34795 if test "${jm_cv_func_unlink_busy_text+set}" = set; then
34796 echo $ECHO_N "(cached) $ECHO_C" >&6
34799 if test "$cross_compiling" = yes; then
34800 jm_cv_func_unlink_busy_text=no
34803 cat >conftest.$ac_ext <<_ACEOF
34804 #line $LINENO "configure"
34807 cat confdefs.h >>conftest.$ac_ext
34808 cat >>conftest.$ac_ext <<_ACEOF
34809 /* end confdefs.h. */
34817 exit (unlink (argv[0]));
34821 rm -f conftest$ac_exeext
34822 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34823 (eval $ac_link) 2>&5
34825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34826 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34828 (eval $ac_try) 2>&5
34830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34831 (exit $ac_status); }; }; then
34832 jm_cv_func_unlink_busy_text=yes
34834 echo "$as_me: program exited with status $ac_status" >&5
34835 echo "$as_me: failed program was:" >&5
34836 sed 's/^/| /' conftest.$ac_ext >&5
34838 ( exit $ac_status )
34839 jm_cv_func_unlink_busy_text=no
34841 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34846 echo "$as_me:$LINENO: result: $jm_cv_func_unlink_busy_text" >&5
34847 echo "${ECHO_T}$jm_cv_func_unlink_busy_text" >&6
34849 if test $jm_cv_func_unlink_busy_text = no; then
34850 INSTALL=$ac_install_sh
34854 # These tests are for df.
34858 for ac_func in listmntent getmntinfo
34860 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34861 echo "$as_me:$LINENO: checking for $ac_func" >&5
34862 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34863 if eval "test \"\${$as_ac_var+set}\" = set"; then
34864 echo $ECHO_N "(cached) $ECHO_C" >&6
34866 cat >conftest.$ac_ext <<_ACEOF
34867 #line $LINENO "configure"
34870 cat confdefs.h >>conftest.$ac_ext
34871 cat >>conftest.$ac_ext <<_ACEOF
34872 /* end confdefs.h. */
34873 /* System header to define __stub macros and hopefully few prototypes,
34874 which can conflict with char $ac_func (); below.
34875 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34876 <limits.h> exists even on freestanding compilers. */
34878 # include <limits.h>
34880 # include <assert.h>
34882 /* Override any gcc2 internal prototype to avoid an error. */
34887 /* We use char because int might match the return type of a gcc2
34888 builtin and then its argument prototype would still apply. */
34890 /* The GNU C library defines this for functions which it implements
34891 to always fail with ENOSYS. Some functions are actually named
34892 something starting with __ and the normal name is an alias. */
34893 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34896 char (*f) () = $ac_func;
34905 return f != $ac_func;
34910 rm -f conftest.$ac_objext conftest$ac_exeext
34911 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34912 (eval $ac_link) 2>&5
34914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34915 (exit $ac_status); } &&
34916 { ac_try='test -s conftest$ac_exeext'
34917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34918 (eval $ac_try) 2>&5
34920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34921 (exit $ac_status); }; }; then
34922 eval "$as_ac_var=yes"
34924 echo "$as_me: failed program was:" >&5
34925 sed 's/^/| /' conftest.$ac_ext >&5
34927 eval "$as_ac_var=no"
34929 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
34931 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34932 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34933 if test `eval echo '${'$as_ac_var'}'` = yes; then
34934 cat >>confdefs.h <<_ACEOF
34935 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34946 for ac_header in mntent.h sys/param.h sys/ucred.h sys/mount.h sys/fs_types.h
34948 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34949 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34950 echo "$as_me:$LINENO: checking for $ac_header" >&5
34951 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34952 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34953 echo $ECHO_N "(cached) $ECHO_C" >&6
34955 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34956 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34958 # Is the header compilable?
34959 echo "$as_me:$LINENO: checking $ac_header usability" >&5
34960 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
34961 cat >conftest.$ac_ext <<_ACEOF
34962 #line $LINENO "configure"
34965 cat confdefs.h >>conftest.$ac_ext
34966 cat >>conftest.$ac_ext <<_ACEOF
34967 /* end confdefs.h. */
34968 $ac_includes_default
34969 #include <$ac_header>
34971 rm -f conftest.$ac_objext
34972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34973 (eval $ac_compile) 2>&5
34975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34976 (exit $ac_status); } &&
34977 { ac_try='test -s conftest.$ac_objext'
34978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34979 (eval $ac_try) 2>&5
34981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34982 (exit $ac_status); }; }; then
34983 ac_header_compiler=yes
34985 echo "$as_me: failed program was:" >&5
34986 sed 's/^/| /' conftest.$ac_ext >&5
34988 ac_header_compiler=no
34990 rm -f conftest.$ac_objext conftest.$ac_ext
34991 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34992 echo "${ECHO_T}$ac_header_compiler" >&6
34994 # Is the header present?
34995 echo "$as_me:$LINENO: checking $ac_header presence" >&5
34996 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
34997 cat >conftest.$ac_ext <<_ACEOF
34998 #line $LINENO "configure"
35001 cat confdefs.h >>conftest.$ac_ext
35002 cat >>conftest.$ac_ext <<_ACEOF
35003 /* end confdefs.h. */
35004 #include <$ac_header>
35006 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35007 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35009 grep -v '^ *+' conftest.er1 >conftest.err
35011 cat conftest.err >&5
35012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35013 (exit $ac_status); } >/dev/null; then
35014 if test -s conftest.err; then
35015 ac_cpp_err=$ac_c_preproc_warn_flag
35022 if test -z "$ac_cpp_err"; then
35023 ac_header_preproc=yes
35025 echo "$as_me: failed program was:" >&5
35026 sed 's/^/| /' conftest.$ac_ext >&5
35028 ac_header_preproc=no
35030 rm -f conftest.err conftest.$ac_ext
35031 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35032 echo "${ECHO_T}$ac_header_preproc" >&6
35034 # So? What about this header?
35035 case $ac_header_compiler:$ac_header_preproc in
35037 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35038 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35039 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35040 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35043 ## ------------------------------------ ##
35044 ## Report this to bug-autoconf@gnu.org. ##
35045 ## ------------------------------------ ##
35048 sed "s/^/$as_me: WARNING: /" >&2
35051 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35052 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35053 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35054 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35055 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35056 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35059 ## ------------------------------------ ##
35060 ## Report this to bug-autoconf@gnu.org. ##
35061 ## ------------------------------------ ##
35064 sed "s/^/$as_me: WARNING: /" >&2
35067 echo "$as_me:$LINENO: checking for $ac_header" >&5
35068 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35069 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35070 echo $ECHO_N "(cached) $ECHO_C" >&6
35072 eval "$as_ac_Header=$ac_header_preproc"
35074 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35075 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35078 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35079 cat >>confdefs.h <<_ACEOF
35080 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35087 getfsstat_includes="\
35088 $ac_includes_default
35089 #if HAVE_SYS_PARAM_H
35090 # include <sys/param.h> /* needed by powerpc-apple-darwin1.3.7 */
35092 #if HAVE_SYS_UCRED_H
35093 # include <sys/ucred.h> /* needed by powerpc-apple-darwin1.3.7 */
35095 #if HAVE_SYS_MOUNT_H
35096 # include <sys/mount.h>
35098 #if HAVE_SYS_FS_TYPES_H
35099 # include <sys/fs_types.h> /* needed by powerpc-apple-darwin1.3.7 */
35102 echo "$as_me:$LINENO: checking for struct fsstat.f_fstypename" >&5
35103 echo $ECHO_N "checking for struct fsstat.f_fstypename... $ECHO_C" >&6
35104 if test "${ac_cv_member_struct_fsstat_f_fstypename+set}" = set; then
35105 echo $ECHO_N "(cached) $ECHO_C" >&6
35107 cat >conftest.$ac_ext <<_ACEOF
35108 #line $LINENO "configure"
35111 cat confdefs.h >>conftest.$ac_ext
35112 cat >>conftest.$ac_ext <<_ACEOF
35113 /* end confdefs.h. */
35114 $getfsstat_includes
35119 static struct fsstat ac_aggr;
35120 if (ac_aggr.f_fstypename)
35126 rm -f conftest.$ac_objext
35127 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35128 (eval $ac_compile) 2>&5
35130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35131 (exit $ac_status); } &&
35132 { ac_try='test -s conftest.$ac_objext'
35133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35134 (eval $ac_try) 2>&5
35136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35137 (exit $ac_status); }; }; then
35138 ac_cv_member_struct_fsstat_f_fstypename=yes
35140 echo "$as_me: failed program was:" >&5
35141 sed 's/^/| /' conftest.$ac_ext >&5
35143 cat >conftest.$ac_ext <<_ACEOF
35144 #line $LINENO "configure"
35147 cat confdefs.h >>conftest.$ac_ext
35148 cat >>conftest.$ac_ext <<_ACEOF
35149 /* end confdefs.h. */
35150 $getfsstat_includes
35155 static struct fsstat ac_aggr;
35156 if (sizeof ac_aggr.f_fstypename)
35162 rm -f conftest.$ac_objext
35163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35164 (eval $ac_compile) 2>&5
35166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35167 (exit $ac_status); } &&
35168 { ac_try='test -s conftest.$ac_objext'
35169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35170 (eval $ac_try) 2>&5
35172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35173 (exit $ac_status); }; }; then
35174 ac_cv_member_struct_fsstat_f_fstypename=yes
35176 echo "$as_me: failed program was:" >&5
35177 sed 's/^/| /' conftest.$ac_ext >&5
35179 ac_cv_member_struct_fsstat_f_fstypename=no
35181 rm -f conftest.$ac_objext conftest.$ac_ext
35183 rm -f conftest.$ac_objext conftest.$ac_ext
35185 echo "$as_me:$LINENO: result: $ac_cv_member_struct_fsstat_f_fstypename" >&5
35186 echo "${ECHO_T}$ac_cv_member_struct_fsstat_f_fstypename" >&6
35187 if test $ac_cv_member_struct_fsstat_f_fstypename = yes; then
35189 cat >>confdefs.h <<_ACEOF
35190 #define HAVE_STRUCT_FSSTAT_F_FSTYPENAME 1
35197 # Determine how to get the list of mounted filesystems.
35198 ac_list_mounted_fs=
35200 # If the getmntent function is available but not in the standard library,
35201 # make sure LIBS contains -lsun (on Irix4) or -lseq (on PTX).
35202 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
35203 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
35204 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
35205 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
35206 echo $ECHO_N "(cached) $ECHO_C" >&6
35208 ac_check_lib_save_LIBS=$LIBS
35210 cat >conftest.$ac_ext <<_ACEOF
35211 #line $LINENO "configure"
35214 cat confdefs.h >>conftest.$ac_ext
35215 cat >>conftest.$ac_ext <<_ACEOF
35216 /* end confdefs.h. */
35218 /* Override any gcc2 internal prototype to avoid an error. */
35222 /* We use char because int might match the return type of a gcc2
35223 builtin and then its argument prototype would still apply. */
35233 rm -f conftest.$ac_objext conftest$ac_exeext
35234 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35235 (eval $ac_link) 2>&5
35237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35238 (exit $ac_status); } &&
35239 { ac_try='test -s conftest$ac_exeext'
35240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35241 (eval $ac_try) 2>&5
35243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35244 (exit $ac_status); }; }; then
35245 ac_cv_lib_sun_getmntent=yes
35247 echo "$as_me: failed program was:" >&5
35248 sed 's/^/| /' conftest.$ac_ext >&5
35250 ac_cv_lib_sun_getmntent=no
35252 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
35253 LIBS=$ac_check_lib_save_LIBS
35255 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
35256 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
35257 if test $ac_cv_lib_sun_getmntent = yes; then
35260 echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
35261 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
35262 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
35263 echo $ECHO_N "(cached) $ECHO_C" >&6
35265 ac_check_lib_save_LIBS=$LIBS
35267 cat >conftest.$ac_ext <<_ACEOF
35268 #line $LINENO "configure"
35271 cat confdefs.h >>conftest.$ac_ext
35272 cat >>conftest.$ac_ext <<_ACEOF
35273 /* end confdefs.h. */
35275 /* Override any gcc2 internal prototype to avoid an error. */
35279 /* We use char because int might match the return type of a gcc2
35280 builtin and then its argument prototype would still apply. */
35290 rm -f conftest.$ac_objext conftest$ac_exeext
35291 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35292 (eval $ac_link) 2>&5
35294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35295 (exit $ac_status); } &&
35296 { ac_try='test -s conftest$ac_exeext'
35297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35298 (eval $ac_try) 2>&5
35300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35301 (exit $ac_status); }; }; then
35302 ac_cv_lib_seq_getmntent=yes
35304 echo "$as_me: failed program was:" >&5
35305 sed 's/^/| /' conftest.$ac_ext >&5
35307 ac_cv_lib_seq_getmntent=no
35309 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
35310 LIBS=$ac_check_lib_save_LIBS
35312 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
35313 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
35314 if test $ac_cv_lib_seq_getmntent = yes; then
35317 echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
35318 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
35319 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
35320 echo $ECHO_N "(cached) $ECHO_C" >&6
35322 ac_check_lib_save_LIBS=$LIBS
35324 cat >conftest.$ac_ext <<_ACEOF
35325 #line $LINENO "configure"
35328 cat confdefs.h >>conftest.$ac_ext
35329 cat >>conftest.$ac_ext <<_ACEOF
35330 /* end confdefs.h. */
35332 /* Override any gcc2 internal prototype to avoid an error. */
35336 /* We use char because int might match the return type of a gcc2
35337 builtin and then its argument prototype would still apply. */
35347 rm -f conftest.$ac_objext conftest$ac_exeext
35348 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35349 (eval $ac_link) 2>&5
35351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35352 (exit $ac_status); } &&
35353 { ac_try='test -s conftest$ac_exeext'
35354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35355 (eval $ac_try) 2>&5
35357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35358 (exit $ac_status); }; }; then
35359 ac_cv_lib_gen_getmntent=yes
35361 echo "$as_me: failed program was:" >&5
35362 sed 's/^/| /' conftest.$ac_ext >&5
35364 ac_cv_lib_gen_getmntent=no
35366 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
35367 LIBS=$ac_check_lib_save_LIBS
35369 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
35370 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
35371 if test $ac_cv_lib_gen_getmntent = yes; then
35380 for ac_func in getmntent
35382 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35383 echo "$as_me:$LINENO: checking for $ac_func" >&5
35384 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35385 if eval "test \"\${$as_ac_var+set}\" = set"; then
35386 echo $ECHO_N "(cached) $ECHO_C" >&6
35388 cat >conftest.$ac_ext <<_ACEOF
35389 #line $LINENO "configure"
35392 cat confdefs.h >>conftest.$ac_ext
35393 cat >>conftest.$ac_ext <<_ACEOF
35394 /* end confdefs.h. */
35395 /* System header to define __stub macros and hopefully few prototypes,
35396 which can conflict with char $ac_func (); below.
35397 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35398 <limits.h> exists even on freestanding compilers. */
35400 # include <limits.h>
35402 # include <assert.h>
35404 /* Override any gcc2 internal prototype to avoid an error. */
35409 /* We use char because int might match the return type of a gcc2
35410 builtin and then its argument prototype would still apply. */
35412 /* The GNU C library defines this for functions which it implements
35413 to always fail with ENOSYS. Some functions are actually named
35414 something starting with __ and the normal name is an alias. */
35415 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35418 char (*f) () = $ac_func;
35427 return f != $ac_func;
35432 rm -f conftest.$ac_objext conftest$ac_exeext
35433 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35434 (eval $ac_link) 2>&5
35436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35437 (exit $ac_status); } &&
35438 { ac_try='test -s conftest$ac_exeext'
35439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35440 (eval $ac_try) 2>&5
35442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35443 (exit $ac_status); }; }; then
35444 eval "$as_ac_var=yes"
35446 echo "$as_me: failed program was:" >&5
35447 sed 's/^/| /' conftest.$ac_ext >&5
35449 eval "$as_ac_var=no"
35451 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
35453 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35454 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35455 if test `eval echo '${'$as_ac_var'}'` = yes; then
35456 cat >>confdefs.h <<_ACEOF
35457 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35465 # This test must precede the ones for getmntent because Unicos-9 is
35466 # reported to have the getmntent function, but its support is incompatible
35467 # with other getmntent implementations.
35469 # NOTE: Normally, I wouldn't use a check for system type as I've done for
35470 # `CRAY' below since that goes against the whole autoconf philosophy. But
35471 # I think there is too great a chance that some non-Cray system has a
35472 # function named listmntent to risk the false positive.
35474 if test -z "$ac_list_mounted_fs"; then
35476 echo "$as_me:$LINENO: checking for listmntent of Cray/Unicos-9" >&5
35477 echo $ECHO_N "checking for listmntent of Cray/Unicos-9... $ECHO_C" >&6
35478 if test "${fu_cv_sys_mounted_cray_listmntent+set}" = set; then
35479 echo $ECHO_N "(cached) $ECHO_C" >&6
35481 fu_cv_sys_mounted_cray_listmntent=no
35482 cat >conftest.$ac_ext <<_ACEOF
35483 #line $LINENO "configure"
35486 cat confdefs.h >>conftest.$ac_ext
35487 cat >>conftest.$ac_ext <<_ACEOF
35488 /* end confdefs.h. */
35494 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35495 $EGREP "yes" >/dev/null 2>&1; then
35496 test $ac_cv_func_listmntent = yes \
35497 && fu_cv_sys_mounted_cray_listmntent=yes
35506 echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_cray_listmntent" >&5
35507 echo "${ECHO_T}$fu_cv_sys_mounted_cray_listmntent" >&6
35508 if test $fu_cv_sys_mounted_cray_listmntent = yes; then
35509 ac_list_mounted_fs=found
35511 cat >>confdefs.h <<\_ACEOF
35512 #define MOUNTED_LISTMNTENT 1
35518 if test $ac_cv_func_getmntent = yes; then
35520 # This system has the getmntent function.
35521 # Determine whether it's the one-argument variant or the two-argument one.
35523 if test -z "$ac_list_mounted_fs"; then
35524 # 4.3BSD, SunOS, HP-UX, Dynix, Irix
35525 echo "$as_me:$LINENO: checking for one-argument getmntent function" >&5
35526 echo $ECHO_N "checking for one-argument getmntent function... $ECHO_C" >&6
35527 if test "${fu_cv_sys_mounted_getmntent1+set}" = set; then
35528 echo $ECHO_N "(cached) $ECHO_C" >&6
35530 cat >conftest.$ac_ext <<_ACEOF
35531 #line $LINENO "configure"
35534 cat confdefs.h >>conftest.$ac_ext
35535 cat >>conftest.$ac_ext <<_ACEOF
35536 /* end confdefs.h. */
35538 /* SunOS 4.1.x /usr/include/mntent.h needs this for FILE */
35541 #include <mntent.h>
35542 #if !defined MOUNTED
35543 # if defined _PATH_MOUNTED /* GNU libc */
35544 # define MOUNTED _PATH_MOUNTED
35546 # if defined MNT_MNTTAB /* HP-UX. */
35547 # define MOUNTED MNT_MNTTAB
35549 # if defined MNTTABNAME /* Dynix. */
35550 # define MOUNTED MNTTABNAME
35557 struct mntent *mnt = 0; char *table = MOUNTED;
35562 rm -f conftest.$ac_objext
35563 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35564 (eval $ac_compile) 2>&5
35566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35567 (exit $ac_status); } &&
35568 { ac_try='test -s conftest.$ac_objext'
35569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35570 (eval $ac_try) 2>&5
35572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35573 (exit $ac_status); }; }; then
35574 fu_cv_sys_mounted_getmntent1=yes
35576 echo "$as_me: failed program was:" >&5
35577 sed 's/^/| /' conftest.$ac_ext >&5
35579 fu_cv_sys_mounted_getmntent1=no
35581 rm -f conftest.$ac_objext conftest.$ac_ext
35584 echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_getmntent1" >&5
35585 echo "${ECHO_T}$fu_cv_sys_mounted_getmntent1" >&6
35586 if test $fu_cv_sys_mounted_getmntent1 = yes; then
35587 ac_list_mounted_fs=found
35589 cat >>confdefs.h <<\_ACEOF
35590 #define MOUNTED_GETMNTENT1 1
35596 if test -z "$ac_list_mounted_fs"; then
35598 echo "$as_me:$LINENO: checking for two-argument getmntent function" >&5
35599 echo $ECHO_N "checking for two-argument getmntent function... $ECHO_C" >&6
35600 if test "${fu_cv_sys_mounted_getmntent2+set}" = set; then
35601 echo $ECHO_N "(cached) $ECHO_C" >&6
35603 cat >conftest.$ac_ext <<_ACEOF
35604 #line $LINENO "configure"
35607 cat confdefs.h >>conftest.$ac_ext
35608 cat >>conftest.$ac_ext <<_ACEOF
35609 /* end confdefs.h. */
35610 #include <sys/mnttab.h>
35613 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35614 $EGREP "getmntent" >/dev/null 2>&1; then
35615 fu_cv_sys_mounted_getmntent2=yes
35617 fu_cv_sys_mounted_getmntent2=no
35623 echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_getmntent2" >&5
35624 echo "${ECHO_T}$fu_cv_sys_mounted_getmntent2" >&6
35625 if test $fu_cv_sys_mounted_getmntent2 = yes; then
35626 ac_list_mounted_fs=found
35628 cat >>confdefs.h <<\_ACEOF
35629 #define MOUNTED_GETMNTENT2 1
35637 if test -z "$ac_list_mounted_fs"; then
35638 # DEC Alpha running OSF/1, and Apple Darwin 1.3.
35639 # powerpc-apple-darwin1.3.7 needs sys/param.h sys/ucred.h sys/fs_types.h
35641 echo "$as_me:$LINENO: checking for getfsstat function" >&5
35642 echo $ECHO_N "checking for getfsstat function... $ECHO_C" >&6
35643 if test "${fu_cv_sys_mounted_getfsstat+set}" = set; then
35644 echo $ECHO_N "(cached) $ECHO_C" >&6
35646 cat >conftest.$ac_ext <<_ACEOF
35647 #line $LINENO "configure"
35650 cat confdefs.h >>conftest.$ac_ext
35651 cat >>conftest.$ac_ext <<_ACEOF
35652 /* end confdefs.h. */
35654 #include <sys/types.h>
35655 #if HAVE_STRUCT_FSSTAT_F_FSTYPENAME
35656 # define FS_TYPE(Ent) ((Ent).f_fstypename)
35658 # define FS_TYPE(Ent) mnt_names[(Ent).f_type]
35660 $getfsstat_includes
35665 struct statfs *stats;
35666 int numsys = getfsstat ((struct statfs *)0, 0L, MNT_WAIT);
35667 char *t = FS_TYPE (*stats);
35672 rm -f conftest.$ac_objext conftest$ac_exeext
35673 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35674 (eval $ac_link) 2>&5
35676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35677 (exit $ac_status); } &&
35678 { ac_try='test -s conftest$ac_exeext'
35679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35680 (eval $ac_try) 2>&5
35682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35683 (exit $ac_status); }; }; then
35684 fu_cv_sys_mounted_getfsstat=yes
35686 echo "$as_me: failed program was:" >&5
35687 sed 's/^/| /' conftest.$ac_ext >&5
35689 fu_cv_sys_mounted_getfsstat=no
35691 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
35694 echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_getfsstat" >&5
35695 echo "${ECHO_T}$fu_cv_sys_mounted_getfsstat" >&6
35696 if test $fu_cv_sys_mounted_getfsstat = yes; then
35697 ac_list_mounted_fs=found
35699 cat >>confdefs.h <<\_ACEOF
35700 #define MOUNTED_GETFSSTAT 1
35706 if test -z "$ac_list_mounted_fs"; then
35708 echo "$as_me:$LINENO: checking for mntctl function and struct vmount" >&5
35709 echo $ECHO_N "checking for mntctl function and struct vmount... $ECHO_C" >&6
35710 if test "${fu_cv_sys_mounted_vmount+set}" = set; then
35711 echo $ECHO_N "(cached) $ECHO_C" >&6
35713 cat >conftest.$ac_ext <<_ACEOF
35714 #line $LINENO "configure"
35717 cat confdefs.h >>conftest.$ac_ext
35718 cat >>conftest.$ac_ext <<_ACEOF
35719 /* end confdefs.h. */
35720 #include <fshelp.h>
35722 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35723 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35725 grep -v '^ *+' conftest.er1 >conftest.err
35727 cat conftest.err >&5
35728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35729 (exit $ac_status); } >/dev/null; then
35730 if test -s conftest.err; then
35731 ac_cpp_err=$ac_c_preproc_warn_flag
35738 if test -z "$ac_cpp_err"; then
35739 fu_cv_sys_mounted_vmount=yes
35741 echo "$as_me: failed program was:" >&5
35742 sed 's/^/| /' conftest.$ac_ext >&5
35744 fu_cv_sys_mounted_vmount=no
35746 rm -f conftest.err conftest.$ac_ext
35749 echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_vmount" >&5
35750 echo "${ECHO_T}$fu_cv_sys_mounted_vmount" >&6
35751 if test $fu_cv_sys_mounted_vmount = yes; then
35752 ac_list_mounted_fs=found
35754 cat >>confdefs.h <<\_ACEOF
35755 #define MOUNTED_VMOUNT 1
35761 if test -z "$ac_list_mounted_fs"; then
35763 echo "$as_me:$LINENO: checking for FIXME existence of three headers" >&5
35764 echo $ECHO_N "checking for FIXME existence of three headers... $ECHO_C" >&6
35765 if test "${fu_cv_sys_mounted_fread_fstyp+set}" = set; then
35766 echo $ECHO_N "(cached) $ECHO_C" >&6
35768 cat >conftest.$ac_ext <<_ACEOF
35769 #line $LINENO "configure"
35772 cat confdefs.h >>conftest.$ac_ext
35773 cat >>conftest.$ac_ext <<_ACEOF
35774 /* end confdefs.h. */
35776 #include <sys/statfs.h>
35777 #include <sys/fstyp.h>
35778 #include <mnttab.h>
35780 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35781 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35783 grep -v '^ *+' conftest.er1 >conftest.err
35785 cat conftest.err >&5
35786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35787 (exit $ac_status); } >/dev/null; then
35788 if test -s conftest.err; then
35789 ac_cpp_err=$ac_c_preproc_warn_flag
35796 if test -z "$ac_cpp_err"; then
35797 fu_cv_sys_mounted_fread_fstyp=yes
35799 echo "$as_me: failed program was:" >&5
35800 sed 's/^/| /' conftest.$ac_ext >&5
35802 fu_cv_sys_mounted_fread_fstyp=no
35804 rm -f conftest.err conftest.$ac_ext
35807 echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_fread_fstyp" >&5
35808 echo "${ECHO_T}$fu_cv_sys_mounted_fread_fstyp" >&6
35809 if test $fu_cv_sys_mounted_fread_fstyp = yes; then
35810 ac_list_mounted_fs=found
35812 cat >>confdefs.h <<\_ACEOF
35813 #define MOUNTED_FREAD_FSTYP 1
35819 if test -z "$ac_list_mounted_fs"; then
35820 # 4.4BSD and DEC OSF/1.
35821 echo "$as_me:$LINENO: checking for getmntinfo function" >&5
35822 echo $ECHO_N "checking for getmntinfo function... $ECHO_C" >&6
35823 if test "${fu_cv_sys_mounted_getmntinfo+set}" = set; then
35824 echo $ECHO_N "(cached) $ECHO_C" >&6
35827 test "$ac_cv_func_getmntinfo" = yes \
35828 && fu_cv_sys_mounted_getmntinfo=yes \
35829 || fu_cv_sys_mounted_getmntinfo=no
35833 echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_getmntinfo" >&5
35834 echo "${ECHO_T}$fu_cv_sys_mounted_getmntinfo" >&6
35835 if test $fu_cv_sys_mounted_getmntinfo = yes; then
35836 ac_list_mounted_fs=found
35838 cat >>confdefs.h <<\_ACEOF
35839 #define MOUNTED_GETMNTINFO 1
35845 if test -z "$ac_list_mounted_fs"; then
35847 echo "$as_me:$LINENO: checking for getmnt function" >&5
35848 echo $ECHO_N "checking for getmnt function... $ECHO_C" >&6
35849 if test "${fu_cv_sys_mounted_getmnt+set}" = set; then
35850 echo $ECHO_N "(cached) $ECHO_C" >&6
35852 cat >conftest.$ac_ext <<_ACEOF
35853 #line $LINENO "configure"
35856 cat confdefs.h >>conftest.$ac_ext
35857 cat >>conftest.$ac_ext <<_ACEOF
35858 /* end confdefs.h. */
35860 #include <sys/fs_types.h>
35861 #include <sys/mount.h>
35863 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35864 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35866 grep -v '^ *+' conftest.er1 >conftest.err
35868 cat conftest.err >&5
35869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35870 (exit $ac_status); } >/dev/null; then
35871 if test -s conftest.err; then
35872 ac_cpp_err=$ac_c_preproc_warn_flag
35879 if test -z "$ac_cpp_err"; then
35880 fu_cv_sys_mounted_getmnt=yes
35882 echo "$as_me: failed program was:" >&5
35883 sed 's/^/| /' conftest.$ac_ext >&5
35885 fu_cv_sys_mounted_getmnt=no
35887 rm -f conftest.err conftest.$ac_ext
35890 echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_getmnt" >&5
35891 echo "${ECHO_T}$fu_cv_sys_mounted_getmnt" >&6
35892 if test $fu_cv_sys_mounted_getmnt = yes; then
35893 ac_list_mounted_fs=found
35895 cat >>confdefs.h <<\_ACEOF
35896 #define MOUNTED_GETMNT 1
35902 if test -z "$ac_list_mounted_fs"; then
35906 for ac_func in next_dev fs_stat_dev
35908 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35909 echo "$as_me:$LINENO: checking for $ac_func" >&5
35910 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35911 if eval "test \"\${$as_ac_var+set}\" = set"; then
35912 echo $ECHO_N "(cached) $ECHO_C" >&6
35914 cat >conftest.$ac_ext <<_ACEOF
35915 #line $LINENO "configure"
35918 cat confdefs.h >>conftest.$ac_ext
35919 cat >>conftest.$ac_ext <<_ACEOF
35920 /* end confdefs.h. */
35921 /* System header to define __stub macros and hopefully few prototypes,
35922 which can conflict with char $ac_func (); below.
35923 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35924 <limits.h> exists even on freestanding compilers. */
35926 # include <limits.h>
35928 # include <assert.h>
35930 /* Override any gcc2 internal prototype to avoid an error. */
35935 /* We use char because int might match the return type of a gcc2
35936 builtin and then its argument prototype would still apply. */
35938 /* The GNU C library defines this for functions which it implements
35939 to always fail with ENOSYS. Some functions are actually named
35940 something starting with __ and the normal name is an alias. */
35941 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35944 char (*f) () = $ac_func;
35953 return f != $ac_func;
35958 rm -f conftest.$ac_objext conftest$ac_exeext
35959 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35960 (eval $ac_link) 2>&5
35962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35963 (exit $ac_status); } &&
35964 { ac_try='test -s conftest$ac_exeext'
35965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35966 (eval $ac_try) 2>&5
35968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35969 (exit $ac_status); }; }; then
35970 eval "$as_ac_var=yes"
35972 echo "$as_me: failed program was:" >&5
35973 sed 's/^/| /' conftest.$ac_ext >&5
35975 eval "$as_ac_var=no"
35977 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
35979 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35980 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35981 if test `eval echo '${'$as_ac_var'}'` = yes; then
35982 cat >>confdefs.h <<_ACEOF
35983 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35990 for ac_header in fs_info.h
35992 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35993 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35994 echo "$as_me:$LINENO: checking for $ac_header" >&5
35995 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35996 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35997 echo $ECHO_N "(cached) $ECHO_C" >&6
35999 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36000 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36002 # Is the header compilable?
36003 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36004 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36005 cat >conftest.$ac_ext <<_ACEOF
36006 #line $LINENO "configure"
36009 cat confdefs.h >>conftest.$ac_ext
36010 cat >>conftest.$ac_ext <<_ACEOF
36011 /* end confdefs.h. */
36012 $ac_includes_default
36013 #include <$ac_header>
36015 rm -f conftest.$ac_objext
36016 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36017 (eval $ac_compile) 2>&5
36019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36020 (exit $ac_status); } &&
36021 { ac_try='test -s conftest.$ac_objext'
36022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36023 (eval $ac_try) 2>&5
36025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36026 (exit $ac_status); }; }; then
36027 ac_header_compiler=yes
36029 echo "$as_me: failed program was:" >&5
36030 sed 's/^/| /' conftest.$ac_ext >&5
36032 ac_header_compiler=no
36034 rm -f conftest.$ac_objext conftest.$ac_ext
36035 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36036 echo "${ECHO_T}$ac_header_compiler" >&6
36038 # Is the header present?
36039 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36040 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36041 cat >conftest.$ac_ext <<_ACEOF
36042 #line $LINENO "configure"
36045 cat confdefs.h >>conftest.$ac_ext
36046 cat >>conftest.$ac_ext <<_ACEOF
36047 /* end confdefs.h. */
36048 #include <$ac_header>
36050 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36051 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36053 grep -v '^ *+' conftest.er1 >conftest.err
36055 cat conftest.err >&5
36056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36057 (exit $ac_status); } >/dev/null; then
36058 if test -s conftest.err; then
36059 ac_cpp_err=$ac_c_preproc_warn_flag
36066 if test -z "$ac_cpp_err"; then
36067 ac_header_preproc=yes
36069 echo "$as_me: failed program was:" >&5
36070 sed 's/^/| /' conftest.$ac_ext >&5
36072 ac_header_preproc=no
36074 rm -f conftest.err conftest.$ac_ext
36075 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36076 echo "${ECHO_T}$ac_header_preproc" >&6
36078 # So? What about this header?
36079 case $ac_header_compiler:$ac_header_preproc in
36081 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36082 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36083 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36084 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36087 ## ------------------------------------ ##
36088 ## Report this to bug-autoconf@gnu.org. ##
36089 ## ------------------------------------ ##
36092 sed "s/^/$as_me: WARNING: /" >&2
36095 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36096 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36097 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36098 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36099 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36100 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36103 ## ------------------------------------ ##
36104 ## Report this to bug-autoconf@gnu.org. ##
36105 ## ------------------------------------ ##
36108 sed "s/^/$as_me: WARNING: /" >&2
36111 echo "$as_me:$LINENO: checking for $ac_header" >&5
36112 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36113 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36114 echo $ECHO_N "(cached) $ECHO_C" >&6
36116 eval "$as_ac_Header=$ac_header_preproc"
36118 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36119 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36122 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36123 cat >>confdefs.h <<_ACEOF
36124 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36131 echo "$as_me:$LINENO: checking for BEOS mounted file system support functions" >&5
36132 echo $ECHO_N "checking for BEOS mounted file system support functions... $ECHO_C" >&6
36133 if test $ac_cv_header_fs_info_h = yes \
36134 && test $ac_cv_func_next_dev = yes \
36135 && test $ac_cv_func_fs_stat_dev = yes; then
36140 echo "$as_me:$LINENO: result: $fu_result" >&5
36141 echo "${ECHO_T}$fu_result" >&6
36142 if test $fu_result = yes; then
36143 ac_list_mounted_fs=found
36145 cat >>confdefs.h <<\_ACEOF
36146 #define MOUNTED_FS_STAT_DEV 1
36152 if test -z "$ac_list_mounted_fs"; then
36154 echo "$as_me:$LINENO: checking whether it is possible to resort to fread on /etc/mnttab" >&5
36155 echo $ECHO_N "checking whether it is possible to resort to fread on /etc/mnttab... $ECHO_C" >&6
36156 if test "${fu_cv_sys_mounted_fread+set}" = set; then
36157 echo $ECHO_N "(cached) $ECHO_C" >&6
36159 cat >conftest.$ac_ext <<_ACEOF
36160 #line $LINENO "configure"
36163 cat confdefs.h >>conftest.$ac_ext
36164 cat >>conftest.$ac_ext <<_ACEOF
36165 /* end confdefs.h. */
36166 #include <mnttab.h>
36168 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36169 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36171 grep -v '^ *+' conftest.er1 >conftest.err
36173 cat conftest.err >&5
36174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36175 (exit $ac_status); } >/dev/null; then
36176 if test -s conftest.err; then
36177 ac_cpp_err=$ac_c_preproc_warn_flag
36184 if test -z "$ac_cpp_err"; then
36185 fu_cv_sys_mounted_fread=yes
36187 echo "$as_me: failed program was:" >&5
36188 sed 's/^/| /' conftest.$ac_ext >&5
36190 fu_cv_sys_mounted_fread=no
36192 rm -f conftest.err conftest.$ac_ext
36195 echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_fread" >&5
36196 echo "${ECHO_T}$fu_cv_sys_mounted_fread" >&6
36197 if test $fu_cv_sys_mounted_fread = yes; then
36198 ac_list_mounted_fs=found
36200 cat >>confdefs.h <<\_ACEOF
36201 #define MOUNTED_FREAD 1
36207 if test -z "$ac_list_mounted_fs"; then
36208 { { echo "$as_me:$LINENO: error: could not determine how to read list of mounted filesystems" >&5
36209 echo "$as_me: error: could not determine how to read list of mounted filesystems" >&2;}
36210 { (exit 1); exit 1; }; }
36211 # FIXME -- no need to abort building the whole package
36212 # Can't build mountlist.c or anything that needs its functions
36215 if test $ac_list_mounted_fs = found; then
36216 list_mounted_fs=yes
36224 echo "$as_me:$LINENO: checking for f_fstypename in struct statfs" >&5
36225 echo $ECHO_N "checking for f_fstypename in struct statfs... $ECHO_C" >&6
36226 if test "${fu_cv_sys_f_fstypename_in_statfs+set}" = set; then
36227 echo $ECHO_N "(cached) $ECHO_C" >&6
36230 cat >conftest.$ac_ext <<_ACEOF
36231 #line $LINENO "configure"
36234 cat confdefs.h >>conftest.$ac_ext
36235 cat >>conftest.$ac_ext <<_ACEOF
36236 /* end confdefs.h. */
36238 #include <sys/param.h>
36239 #include <sys/types.h>
36240 #include <sys/mount.h>
36245 struct statfs s; int i = sizeof s.f_fstypename;
36250 rm -f conftest.$ac_objext
36251 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36252 (eval $ac_compile) 2>&5
36254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36255 (exit $ac_status); } &&
36256 { ac_try='test -s conftest.$ac_objext'
36257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36258 (eval $ac_try) 2>&5
36260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36261 (exit $ac_status); }; }; then
36262 fu_cv_sys_f_fstypename_in_statfs=yes
36264 echo "$as_me: failed program was:" >&5
36265 sed 's/^/| /' conftest.$ac_ext >&5
36267 fu_cv_sys_f_fstypename_in_statfs=no
36270 rm -f conftest.$ac_objext conftest.$ac_ext
36274 echo "$as_me:$LINENO: result: $fu_cv_sys_f_fstypename_in_statfs" >&5
36275 echo "${ECHO_T}$fu_cv_sys_f_fstypename_in_statfs" >&6
36277 if test $fu_cv_sys_f_fstypename_in_statfs = yes; then
36279 cat >>confdefs.h <<\_ACEOF
36280 #define HAVE_F_FSTYPENAME_IN_STATFS 1
36288 echo "checking how to get filesystem space usage..."
36289 ac_fsusage_space=no
36291 # Perform only the link test since it seems there are no variants of the
36292 # statvfs function. This check is more than just AC_CHECK_FUNCS(statvfs)
36293 # because that got a false positive on SCO OSR5. Adding the declaration
36294 # of a `struct statvfs' causes this test to fail (as it should) on such
36295 # systems. That system is reported to work fine with STAT_STATFS4 which
36296 # is what it gets when this test fails.
36297 if test $ac_fsusage_space = no; then
36299 echo "$as_me:$LINENO: checking for statvfs function (SVR4)" >&5
36300 echo $ECHO_N "checking for statvfs function (SVR4)... $ECHO_C" >&6
36301 if test "${fu_cv_sys_stat_statvfs+set}" = set; then
36302 echo $ECHO_N "(cached) $ECHO_C" >&6
36304 cat >conftest.$ac_ext <<_ACEOF
36305 #line $LINENO "configure"
36308 cat confdefs.h >>conftest.$ac_ext
36309 cat >>conftest.$ac_ext <<_ACEOF
36310 /* end confdefs.h. */
36311 #include <sys/types.h>
36312 #include <sys/statvfs.h>
36316 struct statvfs fsd; statvfs (0, &fsd);
36321 rm -f conftest.$ac_objext conftest$ac_exeext
36322 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36323 (eval $ac_link) 2>&5
36325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36326 (exit $ac_status); } &&
36327 { ac_try='test -s conftest$ac_exeext'
36328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36329 (eval $ac_try) 2>&5
36331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36332 (exit $ac_status); }; }; then
36333 fu_cv_sys_stat_statvfs=yes
36335 echo "$as_me: failed program was:" >&5
36336 sed 's/^/| /' conftest.$ac_ext >&5
36338 fu_cv_sys_stat_statvfs=no
36340 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
36342 echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statvfs" >&5
36343 echo "${ECHO_T}$fu_cv_sys_stat_statvfs" >&6
36344 if test $fu_cv_sys_stat_statvfs = yes; then
36345 ac_fsusage_space=yes
36347 cat >>confdefs.h <<\_ACEOF
36348 #define STAT_STATVFS 1
36354 if test $ac_fsusage_space = no; then
36355 # DEC Alpha running OSF/1
36356 echo "$as_me:$LINENO: checking for 3-argument statfs function (DEC OSF/1)" >&5
36357 echo $ECHO_N "checking for 3-argument statfs function (DEC OSF/1)... $ECHO_C" >&6
36358 if test "${fu_cv_sys_stat_statfs3_osf1+set}" = set; then
36359 echo $ECHO_N "(cached) $ECHO_C" >&6
36361 if test "$cross_compiling" = yes; then
36362 fu_cv_sys_stat_statfs3_osf1=no
36364 cat >conftest.$ac_ext <<_ACEOF
36365 #line $LINENO "configure"
36368 cat confdefs.h >>conftest.$ac_ext
36369 cat >>conftest.$ac_ext <<_ACEOF
36370 /* end confdefs.h. */
36372 #include <sys/param.h>
36373 #include <sys/types.h>
36374 #include <sys/mount.h>
36379 exit (statfs (".", &fsd, sizeof (struct statfs)));
36382 rm -f conftest$ac_exeext
36383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36384 (eval $ac_link) 2>&5
36386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36387 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36389 (eval $ac_try) 2>&5
36391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36392 (exit $ac_status); }; }; then
36393 fu_cv_sys_stat_statfs3_osf1=yes
36395 echo "$as_me: program exited with status $ac_status" >&5
36396 echo "$as_me: failed program was:" >&5
36397 sed 's/^/| /' conftest.$ac_ext >&5
36399 ( exit $ac_status )
36400 fu_cv_sys_stat_statfs3_osf1=no
36402 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36406 echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs3_osf1" >&5
36407 echo "${ECHO_T}$fu_cv_sys_stat_statfs3_osf1" >&6
36408 if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
36409 ac_fsusage_space=yes
36411 cat >>confdefs.h <<\_ACEOF
36412 #define STAT_STATFS3_OSF1 1
36418 if test $ac_fsusage_space = no; then
36420 echo "$as_me:$LINENO: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
36421 echo $ECHO_N "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)... $ECHO_C" >&6
36422 if test "${fu_cv_sys_stat_statfs2_bsize+set}" = set; then
36423 echo $ECHO_N "(cached) $ECHO_C" >&6
36425 if test "$cross_compiling" = yes; then
36426 fu_cv_sys_stat_statfs2_bsize=no
36428 cat >conftest.$ac_ext <<_ACEOF
36429 #line $LINENO "configure"
36432 cat confdefs.h >>conftest.$ac_ext
36433 cat >>conftest.$ac_ext <<_ACEOF
36434 /* end confdefs.h. */
36436 #ifdef HAVE_SYS_PARAM_H
36437 #include <sys/param.h>
36439 #ifdef HAVE_SYS_MOUNT_H
36440 #include <sys/mount.h>
36442 #ifdef HAVE_SYS_VFS_H
36443 #include <sys/vfs.h>
36449 exit (statfs (".", &fsd));
36452 rm -f conftest$ac_exeext
36453 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36454 (eval $ac_link) 2>&5
36456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36457 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36459 (eval $ac_try) 2>&5
36461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36462 (exit $ac_status); }; }; then
36463 fu_cv_sys_stat_statfs2_bsize=yes
36465 echo "$as_me: program exited with status $ac_status" >&5
36466 echo "$as_me: failed program was:" >&5
36467 sed 's/^/| /' conftest.$ac_ext >&5
36469 ( exit $ac_status )
36470 fu_cv_sys_stat_statfs2_bsize=no
36472 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36476 echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs2_bsize" >&5
36477 echo "${ECHO_T}$fu_cv_sys_stat_statfs2_bsize" >&6
36478 if test $fu_cv_sys_stat_statfs2_bsize = yes; then
36479 ac_fsusage_space=yes
36481 cat >>confdefs.h <<\_ACEOF
36482 #define STAT_STATFS2_BSIZE 1
36488 if test $ac_fsusage_space = no; then
36490 echo "$as_me:$LINENO: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
36491 echo $ECHO_N "checking for four-argument statfs (AIX-3.2.5, SVR3)... $ECHO_C" >&6
36492 if test "${fu_cv_sys_stat_statfs4+set}" = set; then
36493 echo $ECHO_N "(cached) $ECHO_C" >&6
36495 if test "$cross_compiling" = yes; then
36496 fu_cv_sys_stat_statfs4=no
36498 cat >conftest.$ac_ext <<_ACEOF
36499 #line $LINENO "configure"
36502 cat confdefs.h >>conftest.$ac_ext
36503 cat >>conftest.$ac_ext <<_ACEOF
36504 /* end confdefs.h. */
36505 #include <sys/types.h>
36506 #include <sys/statfs.h>
36510 exit (statfs (".", &fsd, sizeof fsd, 0));
36513 rm -f conftest$ac_exeext
36514 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36515 (eval $ac_link) 2>&5
36517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36518 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36520 (eval $ac_try) 2>&5
36522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36523 (exit $ac_status); }; }; then
36524 fu_cv_sys_stat_statfs4=yes
36526 echo "$as_me: program exited with status $ac_status" >&5
36527 echo "$as_me: failed program was:" >&5
36528 sed 's/^/| /' conftest.$ac_ext >&5
36530 ( exit $ac_status )
36531 fu_cv_sys_stat_statfs4=no
36533 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36537 echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs4" >&5
36538 echo "${ECHO_T}$fu_cv_sys_stat_statfs4" >&6
36539 if test $fu_cv_sys_stat_statfs4 = yes; then
36540 ac_fsusage_space=yes
36542 cat >>confdefs.h <<\_ACEOF
36543 #define STAT_STATFS4 1
36549 if test $ac_fsusage_space = no; then
36550 # 4.4BSD and NetBSD
36551 echo "$as_me:$LINENO: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
36552 echo $ECHO_N "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)... $ECHO_C" >&6
36553 if test "${fu_cv_sys_stat_statfs2_fsize+set}" = set; then
36554 echo $ECHO_N "(cached) $ECHO_C" >&6
36556 if test "$cross_compiling" = yes; then
36557 fu_cv_sys_stat_statfs2_fsize=no
36559 cat >conftest.$ac_ext <<_ACEOF
36560 #line $LINENO "configure"
36563 cat confdefs.h >>conftest.$ac_ext
36564 cat >>conftest.$ac_ext <<_ACEOF
36565 /* end confdefs.h. */
36566 #include <sys/types.h>
36567 #ifdef HAVE_SYS_PARAM_H
36568 #include <sys/param.h>
36570 #ifdef HAVE_SYS_MOUNT_H
36571 #include <sys/mount.h>
36577 exit (statfs (".", &fsd));
36580 rm -f conftest$ac_exeext
36581 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36582 (eval $ac_link) 2>&5
36584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36585 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36587 (eval $ac_try) 2>&5
36589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36590 (exit $ac_status); }; }; then
36591 fu_cv_sys_stat_statfs2_fsize=yes
36593 echo "$as_me: program exited with status $ac_status" >&5
36594 echo "$as_me: failed program was:" >&5
36595 sed 's/^/| /' conftest.$ac_ext >&5
36597 ( exit $ac_status )
36598 fu_cv_sys_stat_statfs2_fsize=no
36600 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36604 echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs2_fsize" >&5
36605 echo "${ECHO_T}$fu_cv_sys_stat_statfs2_fsize" >&6
36606 if test $fu_cv_sys_stat_statfs2_fsize = yes; then
36607 ac_fsusage_space=yes
36609 cat >>confdefs.h <<\_ACEOF
36610 #define STAT_STATFS2_FSIZE 1
36616 if test $ac_fsusage_space = no; then
36618 echo "$as_me:$LINENO: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
36619 echo $ECHO_N "checking for two-argument statfs with struct fs_data (Ultrix)... $ECHO_C" >&6
36620 if test "${fu_cv_sys_stat_fs_data+set}" = set; then
36621 echo $ECHO_N "(cached) $ECHO_C" >&6
36623 if test "$cross_compiling" = yes; then
36624 fu_cv_sys_stat_fs_data=no
36626 cat >conftest.$ac_ext <<_ACEOF
36627 #line $LINENO "configure"
36630 cat confdefs.h >>conftest.$ac_ext
36631 cat >>conftest.$ac_ext <<_ACEOF
36632 /* end confdefs.h. */
36633 #include <sys/types.h>
36634 #ifdef HAVE_SYS_PARAM_H
36635 #include <sys/param.h>
36637 #ifdef HAVE_SYS_MOUNT_H
36638 #include <sys/mount.h>
36640 #ifdef HAVE_SYS_FS_TYPES_H
36641 #include <sys/fs_types.h>
36645 struct fs_data fsd;
36646 /* Ultrix's statfs returns 1 for success,
36647 0 for not mounted, -1 for failure. */
36648 exit (statfs (".", &fsd) != 1);
36651 rm -f conftest$ac_exeext
36652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36653 (eval $ac_link) 2>&5
36655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36656 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36658 (eval $ac_try) 2>&5
36660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36661 (exit $ac_status); }; }; then
36662 fu_cv_sys_stat_fs_data=yes
36664 echo "$as_me: program exited with status $ac_status" >&5
36665 echo "$as_me: failed program was:" >&5
36666 sed 's/^/| /' conftest.$ac_ext >&5
36668 ( exit $ac_status )
36669 fu_cv_sys_stat_fs_data=no
36671 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36675 echo "$as_me:$LINENO: result: $fu_cv_sys_stat_fs_data" >&5
36676 echo "${ECHO_T}$fu_cv_sys_stat_fs_data" >&6
36677 if test $fu_cv_sys_stat_fs_data = yes; then
36678 ac_fsusage_space=yes
36680 cat >>confdefs.h <<\_ACEOF
36681 #define STAT_STATFS2_FS_DATA 1
36687 if test $ac_fsusage_space = no; then
36689 cat >conftest.$ac_ext <<_ACEOF
36690 #line $LINENO "configure"
36693 cat confdefs.h >>conftest.$ac_ext
36694 cat >>conftest.$ac_ext <<_ACEOF
36695 /* end confdefs.h. */
36696 #include <sys/filsys.h>
36699 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36700 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36702 grep -v '^ *+' conftest.er1 >conftest.err
36704 cat conftest.err >&5
36705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36706 (exit $ac_status); } >/dev/null; then
36707 if test -s conftest.err; then
36708 ac_cpp_err=$ac_c_preproc_warn_flag
36715 if test -z "$ac_cpp_err"; then
36717 cat >>confdefs.h <<\_ACEOF
36718 #define STAT_READ_FILSYS 1
36721 ac_fsusage_space=yes
36723 echo "$as_me: failed program was:" >&5
36724 sed 's/^/| /' conftest.$ac_ext >&5
36728 rm -f conftest.err conftest.$ac_ext
36731 if test $ac_fsusage_space = yes; then
36739 if test $list_mounted_fs = yes && test $space = yes; then
36741 LIBOBJS="$LIBOBJS fsusage.$ac_objext"
36742 LIBOBJS="$LIBOBJS mountlist.$ac_objext"
36749 echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5
36750 echo $ECHO_N "checking whether termios.h defines TIOCGWINSZ... $ECHO_C" >&6
36751 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then
36752 echo $ECHO_N "(cached) $ECHO_C" >&6
36754 cat >conftest.$ac_ext <<_ACEOF
36755 #line $LINENO "configure"
36758 cat confdefs.h >>conftest.$ac_ext
36759 cat >>conftest.$ac_ext <<_ACEOF
36760 /* end confdefs.h. */
36761 #include <sys/types.h>
36762 #include <termios.h>
36768 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36769 $EGREP "yes" >/dev/null 2>&1; then
36770 ac_cv_sys_tiocgwinsz_in_termios_h=yes
36772 ac_cv_sys_tiocgwinsz_in_termios_h=no
36777 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
36778 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_termios_h" >&6
36780 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
36781 echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
36782 echo $ECHO_N "checking whether sys/ioctl.h defines TIOCGWINSZ... $ECHO_C" >&6
36783 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then
36784 echo $ECHO_N "(cached) $ECHO_C" >&6
36786 cat >conftest.$ac_ext <<_ACEOF
36787 #line $LINENO "configure"
36790 cat confdefs.h >>conftest.$ac_ext
36791 cat >>conftest.$ac_ext <<_ACEOF
36792 /* end confdefs.h. */
36793 #include <sys/types.h>
36794 #include <sys/ioctl.h>
36800 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36801 $EGREP "yes" >/dev/null 2>&1; then
36802 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
36804 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
36809 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
36810 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6
36812 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
36814 cat >>confdefs.h <<\_ACEOF
36815 #define GWINSZ_IN_SYS_IOCTL 1
36821 echo "$as_me:$LINENO: checking POSIX termios" >&5
36822 echo $ECHO_N "checking POSIX termios... $ECHO_C" >&6
36823 if test "${ac_cv_sys_posix_termios+set}" = set; then
36824 echo $ECHO_N "(cached) $ECHO_C" >&6
36826 cat >conftest.$ac_ext <<_ACEOF
36827 #line $LINENO "configure"
36830 cat confdefs.h >>conftest.$ac_ext
36831 cat >>conftest.$ac_ext <<_ACEOF
36832 /* end confdefs.h. */
36833 #include <sys/types.h>
36834 #include <unistd.h>
36835 #include <termios.h>
36840 /* SunOS 4.0.3 has termios.h but not the library calls. */
36846 rm -f conftest.$ac_objext conftest$ac_exeext
36847 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36848 (eval $ac_link) 2>&5
36850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36851 (exit $ac_status); } &&
36852 { ac_try='test -s conftest$ac_exeext'
36853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36854 (eval $ac_try) 2>&5
36856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36857 (exit $ac_status); }; }; then
36858 ac_cv_sys_posix_termios=yes
36860 echo "$as_me: failed program was:" >&5
36861 sed 's/^/| /' conftest.$ac_ext >&5
36863 ac_cv_sys_posix_termios=no
36865 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
36867 echo "$as_me:$LINENO: result: $ac_cv_sys_posix_termios" >&5
36868 echo "${ECHO_T}$ac_cv_sys_posix_termios" >&6
36871 echo "$as_me:$LINENO: checking whether use of struct winsize requires sys/ptem.h" >&5
36872 echo $ECHO_N "checking whether use of struct winsize requires sys/ptem.h... $ECHO_C" >&6
36873 if test "${jm_cv_sys_struct_winsize_needs_sys_ptem_h+set}" = set; then
36874 echo $ECHO_N "(cached) $ECHO_C" >&6
36876 jm_cv_sys_struct_winsize_needs_sys_ptem_h=yes
36877 if test $ac_cv_sys_posix_termios = yes; then
36878 cat >conftest.$ac_ext <<_ACEOF
36879 #line $LINENO "configure"
36882 cat confdefs.h >>conftest.$ac_ext
36883 cat >>conftest.$ac_ext <<_ACEOF
36884 /* end confdefs.h. */
36885 #include <termios.h>
36890 jm_cv_sys_struct_winsize_needs_sys_ptem_h=no
36895 rm -f conftest.$ac_objext
36896 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36897 (eval $ac_compile) 2>&5
36899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36900 (exit $ac_status); } &&
36901 { ac_try='test -s conftest.$ac_objext'
36902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36903 (eval $ac_try) 2>&5
36905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36906 (exit $ac_status); }; }; then
36909 echo "$as_me: failed program was:" >&5
36910 sed 's/^/| /' conftest.$ac_ext >&5
36913 rm -f conftest.$ac_objext conftest.$ac_ext
36915 if test $jm_cv_sys_struct_winsize_needs_sys_ptem_h = yes; then
36916 cat >conftest.$ac_ext <<_ACEOF
36917 #line $LINENO "configure"
36920 cat confdefs.h >>conftest.$ac_ext
36921 cat >>conftest.$ac_ext <<_ACEOF
36922 /* end confdefs.h. */
36923 #include <sys/ptem.h>
36932 rm -f conftest.$ac_objext
36933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36934 (eval $ac_compile) 2>&5
36936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36937 (exit $ac_status); } &&
36938 { ac_try='test -s conftest.$ac_objext'
36939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36940 (eval $ac_try) 2>&5
36942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36943 (exit $ac_status); }; }; then
36946 echo "$as_me: failed program was:" >&5
36947 sed 's/^/| /' conftest.$ac_ext >&5
36949 jm_cv_sys_struct_winsize_needs_sys_ptem_h=no
36951 rm -f conftest.$ac_objext conftest.$ac_ext
36954 echo "$as_me:$LINENO: result: $jm_cv_sys_struct_winsize_needs_sys_ptem_h" >&5
36955 echo "${ECHO_T}$jm_cv_sys_struct_winsize_needs_sys_ptem_h" >&6
36956 if test $jm_cv_sys_struct_winsize_needs_sys_ptem_h = yes; then
36958 cat >>confdefs.h <<\_ACEOF
36959 #define WINSIZE_IN_PTEM 1
36964 # Check for SunOS statfs brokenness wrt partitions 2GB and larger.
36965 # If <sys/vfs.h> exists and struct statfs has a member named f_spare,
36966 # enable the work-around code in fsusage.c.
36967 echo "$as_me:$LINENO: checking for statfs that truncates block counts" >&5
36968 echo $ECHO_N "checking for statfs that truncates block counts... $ECHO_C" >&6
36969 if test "${fu_cv_sys_truncating_statfs+set}" = set; then
36970 echo $ECHO_N "(cached) $ECHO_C" >&6
36972 cat >conftest.$ac_ext <<_ACEOF
36973 #line $LINENO "configure"
36976 cat confdefs.h >>conftest.$ac_ext
36977 cat >>conftest.$ac_ext <<_ACEOF
36978 /* end confdefs.h. */
36980 #if !defined(sun) && !defined(__sun)
36981 choke -- this is a workaround for a Sun-specific problem
36983 #include <sys/types.h>
36984 #include <sys/vfs.h>
36988 struct statfs t; long c = *(t.f_spare);
36993 rm -f conftest.$ac_objext
36994 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36995 (eval $ac_compile) 2>&5
36997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36998 (exit $ac_status); } &&
36999 { ac_try='test -s conftest.$ac_objext'
37000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37001 (eval $ac_try) 2>&5
37003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37004 (exit $ac_status); }; }; then
37005 fu_cv_sys_truncating_statfs=yes
37007 echo "$as_me: failed program was:" >&5
37008 sed 's/^/| /' conftest.$ac_ext >&5
37010 fu_cv_sys_truncating_statfs=no
37012 rm -f conftest.$ac_objext conftest.$ac_ext
37015 if test $fu_cv_sys_truncating_statfs = yes; then
37017 cat >>confdefs.h <<\_ACEOF
37018 #define STATFS_TRUNCATES_BLOCK_COUNTS 1
37022 echo "$as_me:$LINENO: result: $fu_cv_sys_truncating_statfs" >&5
37023 echo "${ECHO_T}$fu_cv_sys_truncating_statfs" >&6
37025 echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
37026 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
37027 if test "${utils_cv_localtime_cache+set}" = set; then
37028 echo $ECHO_N "(cached) $ECHO_C" >&6
37030 if test x$ac_cv_func_tzset = xyes; then
37031 if test "$cross_compiling" = yes; then
37032 # If we have tzset, assume the worst when cross-compiling.
37033 utils_cv_localtime_cache=yes
37035 cat >conftest.$ac_ext <<_ACEOF
37036 #line $LINENO "configure"
37039 cat confdefs.h >>conftest.$ac_ext
37040 cat >>conftest.$ac_ext <<_ACEOF
37041 /* end confdefs.h. */
37044 # include <stdlib.h>
37046 extern char **environ;
37050 for (to = from = environ; (*to = *from); from++)
37051 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
37056 time_t now = time ((time_t *) 0);
37057 int hour_GMT0, hour_unset;
37058 if (putenv ("TZ=GMT0") != 0)
37060 hour_GMT0 = localtime (&now)->tm_hour;
37062 hour_unset = localtime (&now)->tm_hour;
37063 if (putenv ("TZ=PST8") != 0)
37065 if (localtime (&now)->tm_hour == hour_GMT0)
37068 if (localtime (&now)->tm_hour != hour_unset)
37073 rm -f conftest$ac_exeext
37074 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37075 (eval $ac_link) 2>&5
37077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37078 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
37079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37080 (eval $ac_try) 2>&5
37082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37083 (exit $ac_status); }; }; then
37084 utils_cv_localtime_cache=no
37086 echo "$as_me: program exited with status $ac_status" >&5
37087 echo "$as_me: failed program was:" >&5
37088 sed 's/^/| /' conftest.$ac_ext >&5
37090 ( exit $ac_status )
37091 utils_cv_localtime_cache=yes
37093 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
37096 # If we lack tzset, report that localtime does not cache TZ,
37097 # since we can't invalidate the cache if we don't have tzset.
37098 utils_cv_localtime_cache=no
37101 echo "$as_me:$LINENO: result: $utils_cv_localtime_cache" >&5
37102 echo "${ECHO_T}$utils_cv_localtime_cache" >&6
37103 if test $utils_cv_localtime_cache = yes; then
37105 cat >>confdefs.h <<\_ACEOF
37106 #define LOCALTIME_CACHE 1
37111 # SCO-ODT-3.0 is reported to need -los to link programs using initgroups
37113 for ac_func in initgroups
37115 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37116 echo "$as_me:$LINENO: checking for $ac_func" >&5
37117 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37118 if eval "test \"\${$as_ac_var+set}\" = set"; then
37119 echo $ECHO_N "(cached) $ECHO_C" >&6
37121 cat >conftest.$ac_ext <<_ACEOF
37122 #line $LINENO "configure"
37125 cat confdefs.h >>conftest.$ac_ext
37126 cat >>conftest.$ac_ext <<_ACEOF
37127 /* end confdefs.h. */
37128 /* System header to define __stub macros and hopefully few prototypes,
37129 which can conflict with char $ac_func (); below.
37130 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37131 <limits.h> exists even on freestanding compilers. */
37133 # include <limits.h>
37135 # include <assert.h>
37137 /* Override any gcc2 internal prototype to avoid an error. */
37142 /* We use char because int might match the return type of a gcc2
37143 builtin and then its argument prototype would still apply. */
37145 /* The GNU C library defines this for functions which it implements
37146 to always fail with ENOSYS. Some functions are actually named
37147 something starting with __ and the normal name is an alias. */
37148 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37151 char (*f) () = $ac_func;
37160 return f != $ac_func;
37165 rm -f conftest.$ac_objext conftest$ac_exeext
37166 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37167 (eval $ac_link) 2>&5
37169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37170 (exit $ac_status); } &&
37171 { ac_try='test -s conftest$ac_exeext'
37172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37173 (eval $ac_try) 2>&5
37175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37176 (exit $ac_status); }; }; then
37177 eval "$as_ac_var=yes"
37179 echo "$as_me: failed program was:" >&5
37180 sed 's/^/| /' conftest.$ac_ext >&5
37182 eval "$as_ac_var=no"
37184 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
37186 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37187 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37188 if test `eval echo '${'$as_ac_var'}'` = yes; then
37189 cat >>confdefs.h <<_ACEOF
37190 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37196 if test $ac_cv_func_initgroups = no; then
37198 echo "$as_me:$LINENO: checking for initgroups in -los" >&5
37199 echo $ECHO_N "checking for initgroups in -los... $ECHO_C" >&6
37200 if test "${ac_cv_lib_os_initgroups+set}" = set; then
37201 echo $ECHO_N "(cached) $ECHO_C" >&6
37203 ac_check_lib_save_LIBS=$LIBS
37205 cat >conftest.$ac_ext <<_ACEOF
37206 #line $LINENO "configure"
37209 cat confdefs.h >>conftest.$ac_ext
37210 cat >>conftest.$ac_ext <<_ACEOF
37211 /* end confdefs.h. */
37213 /* Override any gcc2 internal prototype to avoid an error. */
37217 /* We use char because int might match the return type of a gcc2
37218 builtin and then its argument prototype would still apply. */
37219 char initgroups ();
37228 rm -f conftest.$ac_objext conftest$ac_exeext
37229 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37230 (eval $ac_link) 2>&5
37232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37233 (exit $ac_status); } &&
37234 { ac_try='test -s conftest$ac_exeext'
37235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37236 (eval $ac_try) 2>&5
37238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37239 (exit $ac_status); }; }; then
37240 ac_cv_lib_os_initgroups=yes
37242 echo "$as_me: failed program was:" >&5
37243 sed 's/^/| /' conftest.$ac_ext >&5
37245 ac_cv_lib_os_initgroups=no
37247 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
37248 LIBS=$ac_check_lib_save_LIBS
37250 echo "$as_me:$LINENO: result: $ac_cv_lib_os_initgroups" >&5
37251 echo "${ECHO_T}$ac_cv_lib_os_initgroups" >&6
37252 if test $ac_cv_lib_os_initgroups = yes; then
37253 cat >>confdefs.h <<_ACEOF
37254 #define HAVE_LIBOS 1
37264 for ac_func in syslog
37266 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37267 echo "$as_me:$LINENO: checking for $ac_func" >&5
37268 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37269 if eval "test \"\${$as_ac_var+set}\" = set"; then
37270 echo $ECHO_N "(cached) $ECHO_C" >&6
37272 cat >conftest.$ac_ext <<_ACEOF
37273 #line $LINENO "configure"
37276 cat confdefs.h >>conftest.$ac_ext
37277 cat >>conftest.$ac_ext <<_ACEOF
37278 /* end confdefs.h. */
37279 /* System header to define __stub macros and hopefully few prototypes,
37280 which can conflict with char $ac_func (); below.
37281 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37282 <limits.h> exists even on freestanding compilers. */
37284 # include <limits.h>
37286 # include <assert.h>
37288 /* Override any gcc2 internal prototype to avoid an error. */
37293 /* We use char because int might match the return type of a gcc2
37294 builtin and then its argument prototype would still apply. */
37296 /* The GNU C library defines this for functions which it implements
37297 to always fail with ENOSYS. Some functions are actually named
37298 something starting with __ and the normal name is an alias. */
37299 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37302 char (*f) () = $ac_func;
37311 return f != $ac_func;
37316 rm -f conftest.$ac_objext conftest$ac_exeext
37317 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37318 (eval $ac_link) 2>&5
37320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37321 (exit $ac_status); } &&
37322 { ac_try='test -s conftest$ac_exeext'
37323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37324 (eval $ac_try) 2>&5
37326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37327 (exit $ac_status); }; }; then
37328 eval "$as_ac_var=yes"
37330 echo "$as_me: failed program was:" >&5
37331 sed 's/^/| /' conftest.$ac_ext >&5
37333 eval "$as_ac_var=no"
37335 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
37337 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37338 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37339 if test `eval echo '${'$as_ac_var'}'` = yes; then
37340 cat >>confdefs.h <<_ACEOF
37341 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37347 if test $ac_cv_func_syslog = no; then
37348 # syslog is not in the default libraries. See if it's in some other.
37349 for lib in bsd socket inet; do
37350 as_ac_Lib=`echo "ac_cv_lib_$lib''_syslog" | $as_tr_sh`
37351 echo "$as_me:$LINENO: checking for syslog in -l$lib" >&5
37352 echo $ECHO_N "checking for syslog in -l$lib... $ECHO_C" >&6
37353 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
37354 echo $ECHO_N "(cached) $ECHO_C" >&6
37356 ac_check_lib_save_LIBS=$LIBS
37357 LIBS="-l$lib $LIBS"
37358 cat >conftest.$ac_ext <<_ACEOF
37359 #line $LINENO "configure"
37362 cat confdefs.h >>conftest.$ac_ext
37363 cat >>conftest.$ac_ext <<_ACEOF
37364 /* end confdefs.h. */
37366 /* Override any gcc2 internal prototype to avoid an error. */
37370 /* We use char because int might match the return type of a gcc2
37371 builtin and then its argument prototype would still apply. */
37381 rm -f conftest.$ac_objext conftest$ac_exeext
37382 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37383 (eval $ac_link) 2>&5
37385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37386 (exit $ac_status); } &&
37387 { ac_try='test -s conftest$ac_exeext'
37388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37389 (eval $ac_try) 2>&5
37391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37392 (exit $ac_status); }; }; then
37393 eval "$as_ac_Lib=yes"
37395 echo "$as_me: failed program was:" >&5
37396 sed 's/^/| /' conftest.$ac_ext >&5
37398 eval "$as_ac_Lib=no"
37400 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
37401 LIBS=$ac_check_lib_save_LIBS
37403 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
37404 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
37405 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
37407 cat >>confdefs.h <<\_ACEOF
37408 #define HAVE_SYSLOG 1
37411 LIBS="$LIBS -l$lib"; break
37417 echo "$as_me:$LINENO: checking for 3-argument setpriority function" >&5
37418 echo $ECHO_N "checking for 3-argument setpriority function... $ECHO_C" >&6
37419 if test "${utils_cv_func_setpriority+set}" = set; then
37420 echo $ECHO_N "(cached) $ECHO_C" >&6
37422 cat >conftest.$ac_ext <<_ACEOF
37423 #line $LINENO "configure"
37426 cat confdefs.h >>conftest.$ac_ext
37427 cat >>conftest.$ac_ext <<_ACEOF
37428 /* end confdefs.h. */
37429 #include <sys/time.h>
37430 #include <sys/resource.h>
37434 setpriority(0, 0, 0);
37439 rm -f conftest.$ac_objext conftest$ac_exeext
37440 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37441 (eval $ac_link) 2>&5
37443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37444 (exit $ac_status); } &&
37445 { ac_try='test -s conftest$ac_exeext'
37446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37447 (eval $ac_try) 2>&5
37449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37450 (exit $ac_status); }; }; then
37451 utils_cv_func_setpriority=yes
37453 echo "$as_me: failed program was:" >&5
37454 sed 's/^/| /' conftest.$ac_ext >&5
37456 utils_cv_func_setpriority=no
37458 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
37461 echo "$as_me:$LINENO: result: $utils_cv_func_setpriority" >&5
37462 echo "${ECHO_T}$utils_cv_func_setpriority" >&6
37463 if test $utils_cv_func_setpriority = yes; then
37464 OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS nice"
37465 OPTIONAL_BIN_ZCRIPTS="$OPTIONAL_BIN_ZCRIPTS nohup"
37466 MAN="$MAN nice.1 nohup.1"
37468 echo "$as_me:$LINENO: checking for nice function" >&5
37469 echo $ECHO_N "checking for nice function... $ECHO_C" >&6
37470 if test "${utils_cv_func_nice+set}" = set; then
37471 echo $ECHO_N "(cached) $ECHO_C" >&6
37473 cat >conftest.$ac_ext <<_ACEOF
37474 #line $LINENO "configure"
37477 cat confdefs.h >>conftest.$ac_ext
37478 cat >>conftest.$ac_ext <<_ACEOF
37479 /* end confdefs.h. */
37489 rm -f conftest.$ac_objext conftest$ac_exeext
37490 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37491 (eval $ac_link) 2>&5
37493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37494 (exit $ac_status); } &&
37495 { ac_try='test -s conftest$ac_exeext'
37496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37497 (eval $ac_try) 2>&5
37499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37500 (exit $ac_status); }; }; then
37501 utils_cv_func_nice=yes
37503 echo "$as_me: failed program was:" >&5
37504 sed 's/^/| /' conftest.$ac_ext >&5
37506 utils_cv_func_nice=no
37508 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
37511 echo "$as_me:$LINENO: result: $utils_cv_func_nice" >&5
37512 echo "${ECHO_T}$utils_cv_func_nice" >&6
37513 if test $utils_cv_func_nice = yes; then
37515 cat >>confdefs.h <<\_ACEOF
37516 #define NICE_PRIORITY 1
37519 OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS nice"
37520 OPTIONAL_BIN_ZCRIPTS="$OPTIONAL_BIN_ZCRIPTS nohup"
37521 MAN="$MAN nice.1 nohup.1"
37528 if test $ac_cv_header_utmp_h = yes || test $ac_cv_header_utmpx_h = yes; then
37529 OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS pinky users who"
37530 MAN="$MAN pinky.1 users.1 who.1"
37534 echo "$as_me:$LINENO: checking ut_host in struct utmp" >&5
37535 echo $ECHO_N "checking ut_host in struct utmp... $ECHO_C" >&6
37536 if test "${su_cv_func_ut_host_in_utmp+set}" = set; then
37537 echo $ECHO_N "(cached) $ECHO_C" >&6
37539 cat >conftest.$ac_ext <<_ACEOF
37540 #line $LINENO "configure"
37543 cat confdefs.h >>conftest.$ac_ext
37544 cat >>conftest.$ac_ext <<_ACEOF
37545 /* end confdefs.h. */
37546 #include <sys/types.h>
37551 struct utmp ut; ut.ut_host;
37556 rm -f conftest.$ac_objext conftest$ac_exeext
37557 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37558 (eval $ac_link) 2>&5
37560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37561 (exit $ac_status); } &&
37562 { ac_try='test -s conftest$ac_exeext'
37563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37564 (eval $ac_try) 2>&5
37566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37567 (exit $ac_status); }; }; then
37568 su_cv_func_ut_host_in_utmp=yes
37570 echo "$as_me: failed program was:" >&5
37571 sed 's/^/| /' conftest.$ac_ext >&5
37573 su_cv_func_ut_host_in_utmp=no
37575 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
37578 echo "$as_me:$LINENO: result: $su_cv_func_ut_host_in_utmp" >&5
37579 echo "${ECHO_T}$su_cv_func_ut_host_in_utmp" >&6
37580 if test $su_cv_func_ut_host_in_utmp = yes; then
37583 cat >>confdefs.h <<\_ACEOF
37584 #define HAVE_UT_HOST 1
37589 if test -z "$have_ut_host"; then
37590 echo "$as_me:$LINENO: checking ut_host in struct utmpx" >&5
37591 echo $ECHO_N "checking ut_host in struct utmpx... $ECHO_C" >&6
37592 if test "${su_cv_func_ut_host_in_utmpx+set}" = set; then
37593 echo $ECHO_N "(cached) $ECHO_C" >&6
37595 cat >conftest.$ac_ext <<_ACEOF
37596 #line $LINENO "configure"
37599 cat confdefs.h >>conftest.$ac_ext
37600 cat >>conftest.$ac_ext <<_ACEOF
37601 /* end confdefs.h. */
37602 #include <sys/types.h>
37607 struct utmpx ut; ut.ut_host;
37612 rm -f conftest.$ac_objext conftest$ac_exeext
37613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37614 (eval $ac_link) 2>&5
37616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37617 (exit $ac_status); } &&
37618 { ac_try='test -s conftest$ac_exeext'
37619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37620 (eval $ac_try) 2>&5
37622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37623 (exit $ac_status); }; }; then
37624 su_cv_func_ut_host_in_utmpx=yes
37626 echo "$as_me: failed program was:" >&5
37627 sed 's/^/| /' conftest.$ac_ext >&5
37629 su_cv_func_ut_host_in_utmpx=no
37631 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
37634 echo "$as_me:$LINENO: result: $su_cv_func_ut_host_in_utmpx" >&5
37635 echo "${ECHO_T}$su_cv_func_ut_host_in_utmpx" >&6
37636 if test $su_cv_func_ut_host_in_utmpx = yes; then
37638 cat >>confdefs.h <<\_ACEOF
37639 #define HAVE_UTMPX_H 1
37643 cat >>confdefs.h <<\_ACEOF
37644 #define HAVE_UT_HOST 1
37652 for ac_func in sysctl
37654 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37655 echo "$as_me:$LINENO: checking for $ac_func" >&5
37656 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37657 if eval "test \"\${$as_ac_var+set}\" = set"; then
37658 echo $ECHO_N "(cached) $ECHO_C" >&6
37660 cat >conftest.$ac_ext <<_ACEOF
37661 #line $LINENO "configure"
37664 cat confdefs.h >>conftest.$ac_ext
37665 cat >>conftest.$ac_ext <<_ACEOF
37666 /* end confdefs.h. */
37667 /* System header to define __stub macros and hopefully few prototypes,
37668 which can conflict with char $ac_func (); below.
37669 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37670 <limits.h> exists even on freestanding compilers. */
37672 # include <limits.h>
37674 # include <assert.h>
37676 /* Override any gcc2 internal prototype to avoid an error. */
37681 /* We use char because int might match the return type of a gcc2
37682 builtin and then its argument prototype would still apply. */
37684 /* The GNU C library defines this for functions which it implements
37685 to always fail with ENOSYS. Some functions are actually named
37686 something starting with __ and the normal name is an alias. */
37687 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37690 char (*f) () = $ac_func;
37699 return f != $ac_func;
37704 rm -f conftest.$ac_objext conftest$ac_exeext
37705 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37706 (eval $ac_link) 2>&5
37708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37709 (exit $ac_status); } &&
37710 { ac_try='test -s conftest$ac_exeext'
37711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37712 (eval $ac_try) 2>&5
37714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37715 (exit $ac_status); }; }; then
37716 eval "$as_ac_var=yes"
37718 echo "$as_me: failed program was:" >&5
37719 sed 's/^/| /' conftest.$ac_ext >&5
37721 eval "$as_ac_var=no"
37723 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
37725 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37726 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37727 if test `eval echo '${'$as_ac_var'}'` = yes; then
37728 cat >>confdefs.h <<_ACEOF
37729 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37736 for ac_header in sys/sysctl.h
37738 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37739 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37740 echo "$as_me:$LINENO: checking for $ac_header" >&5
37741 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37742 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37743 echo $ECHO_N "(cached) $ECHO_C" >&6
37745 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37746 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37748 # Is the header compilable?
37749 echo "$as_me:$LINENO: checking $ac_header usability" >&5
37750 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37751 cat >conftest.$ac_ext <<_ACEOF
37752 #line $LINENO "configure"
37755 cat confdefs.h >>conftest.$ac_ext
37756 cat >>conftest.$ac_ext <<_ACEOF
37757 /* end confdefs.h. */
37758 $ac_includes_default
37759 #include <$ac_header>
37761 rm -f conftest.$ac_objext
37762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37763 (eval $ac_compile) 2>&5
37765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37766 (exit $ac_status); } &&
37767 { ac_try='test -s conftest.$ac_objext'
37768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37769 (eval $ac_try) 2>&5
37771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37772 (exit $ac_status); }; }; then
37773 ac_header_compiler=yes
37775 echo "$as_me: failed program was:" >&5
37776 sed 's/^/| /' conftest.$ac_ext >&5
37778 ac_header_compiler=no
37780 rm -f conftest.$ac_objext conftest.$ac_ext
37781 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37782 echo "${ECHO_T}$ac_header_compiler" >&6
37784 # Is the header present?
37785 echo "$as_me:$LINENO: checking $ac_header presence" >&5
37786 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37787 cat >conftest.$ac_ext <<_ACEOF
37788 #line $LINENO "configure"
37791 cat confdefs.h >>conftest.$ac_ext
37792 cat >>conftest.$ac_ext <<_ACEOF
37793 /* end confdefs.h. */
37794 #include <$ac_header>
37796 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37797 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37799 grep -v '^ *+' conftest.er1 >conftest.err
37801 cat conftest.err >&5
37802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37803 (exit $ac_status); } >/dev/null; then
37804 if test -s conftest.err; then
37805 ac_cpp_err=$ac_c_preproc_warn_flag
37812 if test -z "$ac_cpp_err"; then
37813 ac_header_preproc=yes
37815 echo "$as_me: failed program was:" >&5
37816 sed 's/^/| /' conftest.$ac_ext >&5
37818 ac_header_preproc=no
37820 rm -f conftest.err conftest.$ac_ext
37821 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37822 echo "${ECHO_T}$ac_header_preproc" >&6
37824 # So? What about this header?
37825 case $ac_header_compiler:$ac_header_preproc in
37827 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37828 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
37829 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37830 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37833 ## ------------------------------------ ##
37834 ## Report this to bug-autoconf@gnu.org. ##
37835 ## ------------------------------------ ##
37838 sed "s/^/$as_me: WARNING: /" >&2
37841 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37842 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
37843 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
37844 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
37845 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37846 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37849 ## ------------------------------------ ##
37850 ## Report this to bug-autoconf@gnu.org. ##
37851 ## ------------------------------------ ##
37854 sed "s/^/$as_me: WARNING: /" >&2
37857 echo "$as_me:$LINENO: checking for $ac_header" >&5
37858 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37859 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37860 echo $ECHO_N "(cached) $ECHO_C" >&6
37862 eval "$as_ac_Header=$ac_header_preproc"
37864 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37865 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37868 if test `eval echo '${'$as_ac_Header'}'` = yes; then
37869 cat >>confdefs.h <<_ACEOF
37870 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37877 echo "$as_me:$LINENO: checking whether we can get the system boot time" >&5
37878 echo $ECHO_N "checking whether we can get the system boot time... $ECHO_C" >&6
37879 if test "${gnulib_cv_have_boot_time+set}" = set; then
37880 echo $ECHO_N "(cached) $ECHO_C" >&6
37883 cat >conftest.$ac_ext <<_ACEOF
37884 #line $LINENO "configure"
37887 cat confdefs.h >>conftest.$ac_ext
37888 cat >>conftest.$ac_ext <<_ACEOF
37889 /* end confdefs.h. */
37890 $ac_includes_default
37891 #if HAVE_SYSCTL && HAVE_SYS_SYSCTL_H
37892 # include <sys/param.h> /* needed for OpenBSD 3.0 */
37893 # include <sys/sysctl.h>
37895 #ifdef HAVE_UTMPX_H
37896 # include <utmpx.h>
37905 #if defined BOOT_TIME || (defined CTL_KERN && defined KERN_BOOTTIME)
37906 /* your system *does* have the infrastructure to determine boot time */
37908 please_tell_us_how_to_determine_boot_time_on_your_system
37915 rm -f conftest.$ac_objext
37916 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37917 (eval $ac_compile) 2>&5
37919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37920 (exit $ac_status); } &&
37921 { ac_try='test -s conftest.$ac_objext'
37922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37923 (eval $ac_try) 2>&5
37925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37926 (exit $ac_status); }; }; then
37927 gnulib_cv_have_boot_time=yes
37929 echo "$as_me: failed program was:" >&5
37930 sed 's/^/| /' conftest.$ac_ext >&5
37932 gnulib_cv_have_boot_time=no
37934 rm -f conftest.$ac_objext conftest.$ac_ext
37937 echo "$as_me:$LINENO: result: $gnulib_cv_have_boot_time" >&5
37938 echo "${ECHO_T}$gnulib_cv_have_boot_time" >&6
37939 if test $gnulib_cv_have_boot_time = yes; then
37940 OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS uptime" MAN="$MAN uptime.1"
37945 echo "$as_me:$LINENO: checking POSIX termios" >&5
37946 echo $ECHO_N "checking POSIX termios... $ECHO_C" >&6
37947 if test "${ac_cv_sys_posix_termios+set}" = set; then
37948 echo $ECHO_N "(cached) $ECHO_C" >&6
37950 cat >conftest.$ac_ext <<_ACEOF
37951 #line $LINENO "configure"
37954 cat confdefs.h >>conftest.$ac_ext
37955 cat >>conftest.$ac_ext <<_ACEOF
37956 /* end confdefs.h. */
37957 #include <sys/types.h>
37958 #include <unistd.h>
37959 #include <termios.h>
37964 /* SunOS 4.0.3 has termios.h but not the library calls. */
37970 rm -f conftest.$ac_objext conftest$ac_exeext
37971 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37972 (eval $ac_link) 2>&5
37974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37975 (exit $ac_status); } &&
37976 { ac_try='test -s conftest$ac_exeext'
37977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37978 (eval $ac_try) 2>&5
37980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37981 (exit $ac_status); }; }; then
37982 ac_cv_sys_posix_termios=yes
37984 echo "$as_me: failed program was:" >&5
37985 sed 's/^/| /' conftest.$ac_ext >&5
37987 ac_cv_sys_posix_termios=no
37989 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
37991 echo "$as_me:$LINENO: result: $ac_cv_sys_posix_termios" >&5
37992 echo "${ECHO_T}$ac_cv_sys_posix_termios" >&6
37995 echo "$as_me:$LINENO: checking whether use of TIOCGWINSZ requires termios.h" >&5
37996 echo $ECHO_N "checking whether use of TIOCGWINSZ requires termios.h... $ECHO_C" >&6
37997 if test "${jm_cv_sys_tiocgwinsz_needs_termios_h+set}" = set; then
37998 echo $ECHO_N "(cached) $ECHO_C" >&6
38000 jm_cv_sys_tiocgwinsz_needs_termios_h=no
38002 if test $ac_cv_sys_posix_termios = yes; then
38003 cat >conftest.$ac_ext <<_ACEOF
38004 #line $LINENO "configure"
38007 cat confdefs.h >>conftest.$ac_ext
38008 cat >>conftest.$ac_ext <<_ACEOF
38009 /* end confdefs.h. */
38010 #include <sys/types.h>
38011 # include <termios.h>
38017 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38018 $EGREP "yes" >/dev/null 2>&1; then
38019 jm_cv_sys_tiocgwinsz_needs_termios_h=yes
38026 echo "$as_me:$LINENO: result: $jm_cv_sys_tiocgwinsz_needs_termios_h" >&5
38027 echo "${ECHO_T}$jm_cv_sys_tiocgwinsz_needs_termios_h" >&6
38030 echo "$as_me:$LINENO: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
38031 echo $ECHO_N "checking whether use of TIOCGWINSZ requires sys/ioctl.h... $ECHO_C" >&6
38032 if test "${jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h+set}" = set; then
38033 echo $ECHO_N "(cached) $ECHO_C" >&6
38035 jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
38037 if test $jm_cv_sys_tiocgwinsz_needs_termios_h = no; then
38038 cat >conftest.$ac_ext <<_ACEOF
38039 #line $LINENO "configure"
38042 cat confdefs.h >>conftest.$ac_ext
38043 cat >>conftest.$ac_ext <<_ACEOF
38044 /* end confdefs.h. */
38045 #include <sys/types.h>
38046 # include <sys/ioctl.h>
38052 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38053 $EGREP "yes" >/dev/null 2>&1; then
38054 jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes
38061 echo "$as_me:$LINENO: result: $jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h" >&5
38062 echo "${ECHO_T}$jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h" >&6
38063 if test $jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
38065 cat >>confdefs.h <<\_ACEOF
38066 #define GWINSZ_IN_SYS_IOCTL 1
38072 if test $ac_cv_sys_posix_termios = yes; then
38073 OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS stty" MAN="$MAN stty.1"
38075 echo "$as_me:$LINENO: checking whether termios.h needs _XOPEN_SOURCE" >&5
38076 echo $ECHO_N "checking whether termios.h needs _XOPEN_SOURCE... $ECHO_C" >&6
38077 if test "${su_cv_sys_termios_needs_xopen_source+set}" = set; then
38078 echo $ECHO_N "(cached) $ECHO_C" >&6
38080 cat >conftest.$ac_ext <<_ACEOF
38081 #line $LINENO "configure"
38084 cat confdefs.h >>conftest.$ac_ext
38085 cat >>conftest.$ac_ext <<_ACEOF
38086 /* end confdefs.h. */
38087 #include <termios.h>
38092 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38093 $EGREP "yes" >/dev/null 2>&1; then
38094 su_cv_sys_termios_needs_xopen_source=no
38096 cat >conftest.$ac_ext <<_ACEOF
38097 #line $LINENO "configure"
38100 cat confdefs.h >>conftest.$ac_ext
38101 cat >>conftest.$ac_ext <<_ACEOF
38102 /* end confdefs.h. */
38103 #define _XOPEN_SOURCE
38104 #include <termios.h>
38109 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38110 $EGREP "yes" >/dev/null 2>&1; then
38111 su_cv_sys_termios_needs_xopen_source=yes
38113 su_cv_sys_termios_needs_xopen_source=no
38122 echo "$as_me:$LINENO: result: $su_cv_sys_termios_needs_xopen_source" >&5
38123 echo "${ECHO_T}$su_cv_sys_termios_needs_xopen_source" >&6
38124 test $su_cv_sys_termios_needs_xopen_source = yes &&
38126 cat >>confdefs.h <<\_ACEOF
38127 #define TERMIOS_NEEDS_XOPEN_SOURCE 1
38131 echo "$as_me:$LINENO: checking c_line in struct termios" >&5
38132 echo $ECHO_N "checking c_line in struct termios... $ECHO_C" >&6
38133 if test "${su_cv_sys_c_line_in_termios+set}" = set; then
38134 echo $ECHO_N "(cached) $ECHO_C" >&6
38136 cat >conftest.$ac_ext <<_ACEOF
38137 #line $LINENO "configure"
38140 cat confdefs.h >>conftest.$ac_ext
38141 cat >>conftest.$ac_ext <<_ACEOF
38142 /* end confdefs.h. */
38143 #if TERMIOS_NEEDS_XOPEN_SOURCE
38144 #define _XOPEN_SOURCE
38146 #include <sys/types.h>
38147 #include <termios.h>
38151 struct termios t; t.c_line;
38156 rm -f conftest.$ac_objext conftest$ac_exeext
38157 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38158 (eval $ac_link) 2>&5
38160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38161 (exit $ac_status); } &&
38162 { ac_try='test -s conftest$ac_exeext'
38163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38164 (eval $ac_try) 2>&5
38166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38167 (exit $ac_status); }; }; then
38168 su_cv_sys_c_line_in_termios=yes
38170 echo "$as_me: failed program was:" >&5
38171 sed 's/^/| /' conftest.$ac_ext >&5
38173 su_cv_sys_c_line_in_termios=no
38175 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
38178 echo "$as_me:$LINENO: result: $su_cv_sys_c_line_in_termios" >&5
38179 echo "${ECHO_T}$su_cv_sys_c_line_in_termios" >&6
38180 test $su_cv_sys_c_line_in_termios = yes \
38182 cat >>confdefs.h <<\_ACEOF
38183 #define HAVE_C_LINE 1
38188 # FIXME: note that this macro appears above, too.
38189 # I'm leaving it here for now. This whole thing needs to be modernized...
38191 echo "$as_me:$LINENO: checking whether use of struct winsize requires sys/ptem.h" >&5
38192 echo $ECHO_N "checking whether use of struct winsize requires sys/ptem.h... $ECHO_C" >&6
38193 if test "${jm_cv_sys_struct_winsize_needs_sys_ptem_h+set}" = set; then
38194 echo $ECHO_N "(cached) $ECHO_C" >&6
38196 jm_cv_sys_struct_winsize_needs_sys_ptem_h=yes
38197 if test $ac_cv_sys_posix_termios = yes; then
38198 cat >conftest.$ac_ext <<_ACEOF
38199 #line $LINENO "configure"
38202 cat confdefs.h >>conftest.$ac_ext
38203 cat >>conftest.$ac_ext <<_ACEOF
38204 /* end confdefs.h. */
38205 #include <termios.h>
38210 jm_cv_sys_struct_winsize_needs_sys_ptem_h=no
38215 rm -f conftest.$ac_objext
38216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38217 (eval $ac_compile) 2>&5
38219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38220 (exit $ac_status); } &&
38221 { ac_try='test -s conftest.$ac_objext'
38222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38223 (eval $ac_try) 2>&5
38225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38226 (exit $ac_status); }; }; then
38229 echo "$as_me: failed program was:" >&5
38230 sed 's/^/| /' conftest.$ac_ext >&5
38233 rm -f conftest.$ac_objext conftest.$ac_ext
38235 if test $jm_cv_sys_struct_winsize_needs_sys_ptem_h = yes; then
38236 cat >conftest.$ac_ext <<_ACEOF
38237 #line $LINENO "configure"
38240 cat confdefs.h >>conftest.$ac_ext
38241 cat >>conftest.$ac_ext <<_ACEOF
38242 /* end confdefs.h. */
38243 #include <sys/ptem.h>
38252 rm -f conftest.$ac_objext
38253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38254 (eval $ac_compile) 2>&5
38256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38257 (exit $ac_status); } &&
38258 { ac_try='test -s conftest.$ac_objext'
38259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38260 (eval $ac_try) 2>&5
38262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38263 (exit $ac_status); }; }; then
38266 echo "$as_me: failed program was:" >&5
38267 sed 's/^/| /' conftest.$ac_ext >&5
38269 jm_cv_sys_struct_winsize_needs_sys_ptem_h=no
38271 rm -f conftest.$ac_objext conftest.$ac_ext
38274 echo "$as_me:$LINENO: result: $jm_cv_sys_struct_winsize_needs_sys_ptem_h" >&5
38275 echo "${ECHO_T}$jm_cv_sys_struct_winsize_needs_sys_ptem_h" >&6
38276 if test $jm_cv_sys_struct_winsize_needs_sys_ptem_h = yes; then
38278 cat >>confdefs.h <<\_ACEOF
38279 #define WINSIZE_IN_PTEM 1
38285 echo "$as_me:$LINENO: checking whether use of TIOCGWINSZ requires termios.h" >&5
38286 echo $ECHO_N "checking whether use of TIOCGWINSZ requires termios.h... $ECHO_C" >&6
38287 if test "${jm_cv_sys_tiocgwinsz_needs_termios_h+set}" = set; then
38288 echo $ECHO_N "(cached) $ECHO_C" >&6
38290 jm_cv_sys_tiocgwinsz_needs_termios_h=no
38292 if test $ac_cv_sys_posix_termios = yes; then
38293 cat >conftest.$ac_ext <<_ACEOF
38294 #line $LINENO "configure"
38297 cat confdefs.h >>conftest.$ac_ext
38298 cat >>conftest.$ac_ext <<_ACEOF
38299 /* end confdefs.h. */
38300 #include <sys/types.h>
38301 # include <termios.h>
38307 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38308 $EGREP "yes" >/dev/null 2>&1; then
38309 jm_cv_sys_tiocgwinsz_needs_termios_h=yes
38316 echo "$as_me:$LINENO: result: $jm_cv_sys_tiocgwinsz_needs_termios_h" >&5
38317 echo "${ECHO_T}$jm_cv_sys_tiocgwinsz_needs_termios_h" >&6
38320 if test $jm_cv_sys_tiocgwinsz_needs_termios_h = no && \
38321 test $jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h = no; then
38322 echo "$as_me:$LINENO: checking TIOCGWINSZ in sys/pty.h" >&5
38323 echo $ECHO_N "checking TIOCGWINSZ in sys/pty.h... $ECHO_C" >&6
38324 if test "${su_cv_sys_tiocgwinsz_in_sys_pty_h+set}" = set; then
38325 echo $ECHO_N "(cached) $ECHO_C" >&6
38327 cat >conftest.$ac_ext <<_ACEOF
38328 #line $LINENO "configure"
38331 cat confdefs.h >>conftest.$ac_ext
38332 cat >>conftest.$ac_ext <<_ACEOF
38333 /* end confdefs.h. */
38334 #include <sys/types.h>
38335 #ifdef WINSIZE_IN_PTEM
38336 # include <sys/stream.h>
38337 # include <sys/ptem.h>
38339 #include <sys/ioctl.h>
38340 #include <sys/tty.h>
38341 #include <sys/pty.h>
38345 int x = TIOCGWINSZ;
38350 rm -f conftest.$ac_objext conftest$ac_exeext
38351 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38352 (eval $ac_link) 2>&5
38354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38355 (exit $ac_status); } &&
38356 { ac_try='test -s conftest$ac_exeext'
38357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38358 (eval $ac_try) 2>&5
38360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38361 (exit $ac_status); }; }; then
38362 su_cv_sys_tiocgwinsz_in_sys_pty_h=yes
38364 echo "$as_me: failed program was:" >&5
38365 sed 's/^/| /' conftest.$ac_ext >&5
38367 su_cv_sys_tiocgwinsz_in_sys_pty_h=no
38369 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
38372 echo "$as_me:$LINENO: result: $su_cv_sys_tiocgwinsz_in_sys_pty_h" >&5
38373 echo "${ECHO_T}$su_cv_sys_tiocgwinsz_in_sys_pty_h" >&6
38375 test $su_cv_sys_tiocgwinsz_in_sys_pty_h = yes \
38377 cat >>confdefs.h <<\_ACEOF
38378 #define GWINSZ_IN_SYS_PTY 1
38384 echo "$as_me:$LINENO: checking whether strsignal is declared" >&5
38385 echo $ECHO_N "checking whether strsignal is declared... $ECHO_C" >&6
38386 if test "${ac_cv_have_decl_strsignal+set}" = set; then
38387 echo $ECHO_N "(cached) $ECHO_C" >&6
38389 cat >conftest.$ac_ext <<_ACEOF
38390 #line $LINENO "configure"
38393 cat confdefs.h >>conftest.$ac_ext
38394 cat >>conftest.$ac_ext <<_ACEOF
38395 /* end confdefs.h. */
38396 $ac_includes_default
38401 char *p = (char *) strsignal;
38408 rm -f conftest.$ac_objext
38409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38410 (eval $ac_compile) 2>&5
38412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38413 (exit $ac_status); } &&
38414 { ac_try='test -s conftest.$ac_objext'
38415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38416 (eval $ac_try) 2>&5
38418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38419 (exit $ac_status); }; }; then
38420 ac_cv_have_decl_strsignal=yes
38422 echo "$as_me: failed program was:" >&5
38423 sed 's/^/| /' conftest.$ac_ext >&5
38425 ac_cv_have_decl_strsignal=no
38427 rm -f conftest.$ac_objext conftest.$ac_ext
38429 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strsignal" >&5
38430 echo "${ECHO_T}$ac_cv_have_decl_strsignal" >&6
38431 if test $ac_cv_have_decl_strsignal = yes; then
38433 cat >>confdefs.h <<_ACEOF
38434 #define HAVE_DECL_STRSIGNAL 1
38439 cat >>confdefs.h <<_ACEOF
38440 #define HAVE_DECL_STRSIGNAL 0
38445 echo "$as_me:$LINENO: checking whether strtoimax is declared" >&5
38446 echo $ECHO_N "checking whether strtoimax is declared... $ECHO_C" >&6
38447 if test "${ac_cv_have_decl_strtoimax+set}" = set; then
38448 echo $ECHO_N "(cached) $ECHO_C" >&6
38450 cat >conftest.$ac_ext <<_ACEOF
38451 #line $LINENO "configure"
38454 cat confdefs.h >>conftest.$ac_ext
38455 cat >>conftest.$ac_ext <<_ACEOF
38456 /* end confdefs.h. */
38457 $ac_includes_default
38462 char *p = (char *) strtoimax;
38469 rm -f conftest.$ac_objext
38470 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38471 (eval $ac_compile) 2>&5
38473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38474 (exit $ac_status); } &&
38475 { ac_try='test -s conftest.$ac_objext'
38476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38477 (eval $ac_try) 2>&5
38479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38480 (exit $ac_status); }; }; then
38481 ac_cv_have_decl_strtoimax=yes
38483 echo "$as_me: failed program was:" >&5
38484 sed 's/^/| /' conftest.$ac_ext >&5
38486 ac_cv_have_decl_strtoimax=no
38488 rm -f conftest.$ac_objext conftest.$ac_ext
38490 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoimax" >&5
38491 echo "${ECHO_T}$ac_cv_have_decl_strtoimax" >&6
38492 if test $ac_cv_have_decl_strtoimax = yes; then
38494 cat >>confdefs.h <<_ACEOF
38495 #define HAVE_DECL_STRTOIMAX 1
38500 cat >>confdefs.h <<_ACEOF
38501 #define HAVE_DECL_STRTOIMAX 0
38506 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
38507 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
38508 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
38509 echo $ECHO_N "(cached) $ECHO_C" >&6
38511 cat >conftest.$ac_ext <<_ACEOF
38512 #line $LINENO "configure"
38515 cat confdefs.h >>conftest.$ac_ext
38516 cat >>conftest.$ac_ext <<_ACEOF
38517 /* end confdefs.h. */
38518 $ac_includes_default
38522 #ifndef sys_siglist
38523 char *p = (char *) sys_siglist;
38530 rm -f conftest.$ac_objext
38531 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38532 (eval $ac_compile) 2>&5
38534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38535 (exit $ac_status); } &&
38536 { ac_try='test -s conftest.$ac_objext'
38537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38538 (eval $ac_try) 2>&5
38540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38541 (exit $ac_status); }; }; then
38542 ac_cv_have_decl_sys_siglist=yes
38544 echo "$as_me: failed program was:" >&5
38545 sed 's/^/| /' conftest.$ac_ext >&5
38547 ac_cv_have_decl_sys_siglist=no
38549 rm -f conftest.$ac_objext conftest.$ac_ext
38551 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
38552 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
38553 if test $ac_cv_have_decl_sys_siglist = yes; then
38555 cat >>confdefs.h <<_ACEOF
38556 #define HAVE_DECL_SYS_SIGLIST 1
38561 cat >>confdefs.h <<_ACEOF
38562 #define HAVE_DECL_SYS_SIGLIST 0
38567 echo "$as_me:$LINENO: checking whether _sys_siglist is declared" >&5
38568 echo $ECHO_N "checking whether _sys_siglist is declared... $ECHO_C" >&6
38569 if test "${ac_cv_have_decl__sys_siglist+set}" = set; then
38570 echo $ECHO_N "(cached) $ECHO_C" >&6
38572 cat >conftest.$ac_ext <<_ACEOF
38573 #line $LINENO "configure"
38576 cat confdefs.h >>conftest.$ac_ext
38577 cat >>conftest.$ac_ext <<_ACEOF
38578 /* end confdefs.h. */
38579 $ac_includes_default
38583 #ifndef _sys_siglist
38584 char *p = (char *) _sys_siglist;
38591 rm -f conftest.$ac_objext
38592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38593 (eval $ac_compile) 2>&5
38595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38596 (exit $ac_status); } &&
38597 { ac_try='test -s conftest.$ac_objext'
38598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38599 (eval $ac_try) 2>&5
38601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38602 (exit $ac_status); }; }; then
38603 ac_cv_have_decl__sys_siglist=yes
38605 echo "$as_me: failed program was:" >&5
38606 sed 's/^/| /' conftest.$ac_ext >&5
38608 ac_cv_have_decl__sys_siglist=no
38610 rm -f conftest.$ac_objext conftest.$ac_ext
38612 echo "$as_me:$LINENO: result: $ac_cv_have_decl__sys_siglist" >&5
38613 echo "${ECHO_T}$ac_cv_have_decl__sys_siglist" >&6
38614 if test $ac_cv_have_decl__sys_siglist = yes; then
38616 cat >>confdefs.h <<_ACEOF
38617 #define HAVE_DECL__SYS_SIGLIST 1
38622 cat >>confdefs.h <<_ACEOF
38623 #define HAVE_DECL__SYS_SIGLIST 0
38633 # Check for libypsec.a on Dolphin M88K machines.
38635 echo "$as_me:$LINENO: checking for main in -lypsec" >&5
38636 echo $ECHO_N "checking for main in -lypsec... $ECHO_C" >&6
38637 if test "${ac_cv_lib_ypsec_main+set}" = set; then
38638 echo $ECHO_N "(cached) $ECHO_C" >&6
38640 ac_check_lib_save_LIBS=$LIBS
38641 LIBS="-lypsec $LIBS"
38642 cat >conftest.$ac_ext <<_ACEOF
38643 #line $LINENO "configure"
38646 cat confdefs.h >>conftest.$ac_ext
38647 cat >>conftest.$ac_ext <<_ACEOF
38648 /* end confdefs.h. */
38659 rm -f conftest.$ac_objext conftest$ac_exeext
38660 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38661 (eval $ac_link) 2>&5
38663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38664 (exit $ac_status); } &&
38665 { ac_try='test -s conftest$ac_exeext'
38666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38667 (eval $ac_try) 2>&5
38669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38670 (exit $ac_status); }; }; then
38671 ac_cv_lib_ypsec_main=yes
38673 echo "$as_me: failed program was:" >&5
38674 sed 's/^/| /' conftest.$ac_ext >&5
38676 ac_cv_lib_ypsec_main=no
38678 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
38679 LIBS=$ac_check_lib_save_LIBS
38681 echo "$as_me:$LINENO: result: $ac_cv_lib_ypsec_main" >&5
38682 echo "${ECHO_T}$ac_cv_lib_ypsec_main" >&6
38683 if test $ac_cv_lib_ypsec_main = yes; then
38684 cat >>confdefs.h <<_ACEOF
38685 #define HAVE_LIBYPSEC 1
38688 LIBS="-lypsec $LIBS"
38693 # m88k running dgux 5.4 needs this
38695 echo "$as_me:$LINENO: checking for main in -lldgc" >&5
38696 echo $ECHO_N "checking for main in -lldgc... $ECHO_C" >&6
38697 if test "${ac_cv_lib_ldgc_main+set}" = set; then
38698 echo $ECHO_N "(cached) $ECHO_C" >&6
38700 ac_check_lib_save_LIBS=$LIBS
38701 LIBS="-lldgc $LIBS"
38702 cat >conftest.$ac_ext <<_ACEOF
38703 #line $LINENO "configure"
38706 cat confdefs.h >>conftest.$ac_ext
38707 cat >>conftest.$ac_ext <<_ACEOF
38708 /* end confdefs.h. */
38719 rm -f conftest.$ac_objext conftest$ac_exeext
38720 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38721 (eval $ac_link) 2>&5
38723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38724 (exit $ac_status); } &&
38725 { ac_try='test -s conftest$ac_exeext'
38726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38727 (eval $ac_try) 2>&5
38729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38730 (exit $ac_status); }; }; then
38731 ac_cv_lib_ldgc_main=yes
38733 echo "$as_me: failed program was:" >&5
38734 sed 's/^/| /' conftest.$ac_ext >&5
38736 ac_cv_lib_ldgc_main=no
38738 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
38739 LIBS=$ac_check_lib_save_LIBS
38741 echo "$as_me:$LINENO: result: $ac_cv_lib_ldgc_main" >&5
38742 echo "${ECHO_T}$ac_cv_lib_ldgc_main" >&6
38743 if test $ac_cv_lib_ldgc_main = yes; then
38744 cat >>confdefs.h <<_ACEOF
38745 #define HAVE_LIBLDGC 1
38748 LIBS="-lldgc $LIBS"
38753 # Some programs need to link with -lm. printf does if it uses
38754 # lib/strtod.c which uses pow. And seq uses the math functions,
38755 # floor, modf, rint. And factor uses sqrt. And sleep uses fesetround.
38757 # Save a copy of $LIBS and add $FLOOR_LIBM before these tests
38758 # Check for these math functions used by seq.
38759 ac_su_saved_lib="$LIBS"
38764 for ac_func in floor modf rint
38766 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38767 echo "$as_me:$LINENO: checking for $ac_func" >&5
38768 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38769 if eval "test \"\${$as_ac_var+set}\" = set"; then
38770 echo $ECHO_N "(cached) $ECHO_C" >&6
38772 cat >conftest.$ac_ext <<_ACEOF
38773 #line $LINENO "configure"
38776 cat confdefs.h >>conftest.$ac_ext
38777 cat >>conftest.$ac_ext <<_ACEOF
38778 /* end confdefs.h. */
38779 /* System header to define __stub macros and hopefully few prototypes,
38780 which can conflict with char $ac_func (); below.
38781 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38782 <limits.h> exists even on freestanding compilers. */
38784 # include <limits.h>
38786 # include <assert.h>
38788 /* Override any gcc2 internal prototype to avoid an error. */
38793 /* We use char because int might match the return type of a gcc2
38794 builtin and then its argument prototype would still apply. */
38796 /* The GNU C library defines this for functions which it implements
38797 to always fail with ENOSYS. Some functions are actually named
38798 something starting with __ and the normal name is an alias. */
38799 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38802 char (*f) () = $ac_func;
38811 return f != $ac_func;
38816 rm -f conftest.$ac_objext conftest$ac_exeext
38817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38818 (eval $ac_link) 2>&5
38820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38821 (exit $ac_status); } &&
38822 { ac_try='test -s conftest$ac_exeext'
38823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38824 (eval $ac_try) 2>&5
38826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38827 (exit $ac_status); }; }; then
38828 eval "$as_ac_var=yes"
38830 echo "$as_me: failed program was:" >&5
38831 sed 's/^/| /' conftest.$ac_ext >&5
38833 eval "$as_ac_var=no"
38835 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
38837 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38838 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38839 if test `eval echo '${'$as_ac_var'}'` = yes; then
38840 cat >>confdefs.h <<_ACEOF
38841 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38847 LIBS="$ac_su_saved_lib"
38851 for ac_func in sqrt
38853 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38854 echo "$as_me:$LINENO: checking for $ac_func" >&5
38855 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38856 if eval "test \"\${$as_ac_var+set}\" = set"; then
38857 echo $ECHO_N "(cached) $ECHO_C" >&6
38859 cat >conftest.$ac_ext <<_ACEOF
38860 #line $LINENO "configure"
38863 cat confdefs.h >>conftest.$ac_ext
38864 cat >>conftest.$ac_ext <<_ACEOF
38865 /* end confdefs.h. */
38866 /* System header to define __stub macros and hopefully few prototypes,
38867 which can conflict with char $ac_func (); below.
38868 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38869 <limits.h> exists even on freestanding compilers. */
38871 # include <limits.h>
38873 # include <assert.h>
38875 /* Override any gcc2 internal prototype to avoid an error. */
38880 /* We use char because int might match the return type of a gcc2
38881 builtin and then its argument prototype would still apply. */
38883 /* The GNU C library defines this for functions which it implements
38884 to always fail with ENOSYS. Some functions are actually named
38885 something starting with __ and the normal name is an alias. */
38886 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38889 char (*f) () = $ac_func;
38898 return f != $ac_func;
38903 rm -f conftest.$ac_objext conftest$ac_exeext
38904 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38905 (eval $ac_link) 2>&5
38907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38908 (exit $ac_status); } &&
38909 { ac_try='test -s conftest$ac_exeext'
38910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38911 (eval $ac_try) 2>&5
38913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38914 (exit $ac_status); }; }; then
38915 eval "$as_ac_var=yes"
38917 echo "$as_me: failed program was:" >&5
38918 sed 's/^/| /' conftest.$ac_ext >&5
38920 eval "$as_ac_var=no"
38922 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
38924 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38925 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38926 if test `eval echo '${'$as_ac_var'}'` = yes; then
38927 cat >>confdefs.h <<_ACEOF
38928 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38934 if test $ac_cv_func_sqrt = no; then
38935 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
38936 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
38937 if test "${ac_cv_lib_m_sqrt+set}" = set; then
38938 echo $ECHO_N "(cached) $ECHO_C" >&6
38940 ac_check_lib_save_LIBS=$LIBS
38942 cat >conftest.$ac_ext <<_ACEOF
38943 #line $LINENO "configure"
38946 cat confdefs.h >>conftest.$ac_ext
38947 cat >>conftest.$ac_ext <<_ACEOF
38948 /* end confdefs.h. */
38950 /* Override any gcc2 internal prototype to avoid an error. */
38954 /* We use char because int might match the return type of a gcc2
38955 builtin and then its argument prototype would still apply. */
38965 rm -f conftest.$ac_objext conftest$ac_exeext
38966 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38967 (eval $ac_link) 2>&5
38969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38970 (exit $ac_status); } &&
38971 { ac_try='test -s conftest$ac_exeext'
38972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38973 (eval $ac_try) 2>&5
38975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38976 (exit $ac_status); }; }; then
38977 ac_cv_lib_m_sqrt=yes
38979 echo "$as_me: failed program was:" >&5
38980 sed 's/^/| /' conftest.$ac_ext >&5
38982 ac_cv_lib_m_sqrt=no
38984 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
38985 LIBS=$ac_check_lib_save_LIBS
38987 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
38988 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
38989 if test $ac_cv_lib_m_sqrt = yes; then
38997 for ac_func in fesetround
38999 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39000 echo "$as_me:$LINENO: checking for $ac_func" >&5
39001 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39002 if eval "test \"\${$as_ac_var+set}\" = set"; then
39003 echo $ECHO_N "(cached) $ECHO_C" >&6
39005 cat >conftest.$ac_ext <<_ACEOF
39006 #line $LINENO "configure"
39009 cat confdefs.h >>conftest.$ac_ext
39010 cat >>conftest.$ac_ext <<_ACEOF
39011 /* end confdefs.h. */
39012 /* System header to define __stub macros and hopefully few prototypes,
39013 which can conflict with char $ac_func (); below.
39014 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39015 <limits.h> exists even on freestanding compilers. */
39017 # include <limits.h>
39019 # include <assert.h>
39021 /* Override any gcc2 internal prototype to avoid an error. */
39026 /* We use char because int might match the return type of a gcc2
39027 builtin and then its argument prototype would still apply. */
39029 /* The GNU C library defines this for functions which it implements
39030 to always fail with ENOSYS. Some functions are actually named
39031 something starting with __ and the normal name is an alias. */
39032 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39035 char (*f) () = $ac_func;
39044 return f != $ac_func;
39049 rm -f conftest.$ac_objext conftest$ac_exeext
39050 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39051 (eval $ac_link) 2>&5
39053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39054 (exit $ac_status); } &&
39055 { ac_try='test -s conftest$ac_exeext'
39056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39057 (eval $ac_try) 2>&5
39059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39060 (exit $ac_status); }; }; then
39061 eval "$as_ac_var=yes"
39063 echo "$as_me: failed program was:" >&5
39064 sed 's/^/| /' conftest.$ac_ext >&5
39066 eval "$as_ac_var=no"
39068 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
39070 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39071 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39072 if test `eval echo '${'$as_ac_var'}'` = yes; then
39073 cat >>confdefs.h <<_ACEOF
39074 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39080 if test $ac_cv_func_fesetround = no; then
39081 echo "$as_me:$LINENO: checking for fesetround in -lm" >&5
39082 echo $ECHO_N "checking for fesetround in -lm... $ECHO_C" >&6
39083 if test "${ac_cv_lib_m_fesetround+set}" = set; then
39084 echo $ECHO_N "(cached) $ECHO_C" >&6
39086 ac_check_lib_save_LIBS=$LIBS
39088 cat >conftest.$ac_ext <<_ACEOF
39089 #line $LINENO "configure"
39092 cat confdefs.h >>conftest.$ac_ext
39093 cat >>conftest.$ac_ext <<_ACEOF
39094 /* end confdefs.h. */
39096 /* Override any gcc2 internal prototype to avoid an error. */
39100 /* We use char because int might match the return type of a gcc2
39101 builtin and then its argument prototype would still apply. */
39102 char fesetround ();
39111 rm -f conftest.$ac_objext conftest$ac_exeext
39112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39113 (eval $ac_link) 2>&5
39115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39116 (exit $ac_status); } &&
39117 { ac_try='test -s conftest$ac_exeext'
39118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39119 (eval $ac_try) 2>&5
39121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39122 (exit $ac_status); }; }; then
39123 ac_cv_lib_m_fesetround=yes
39125 echo "$as_me: failed program was:" >&5
39126 sed 's/^/| /' conftest.$ac_ext >&5
39128 ac_cv_lib_m_fesetround=no
39130 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
39131 LIBS=$ac_check_lib_save_LIBS
39133 echo "$as_me:$LINENO: result: $ac_cv_lib_m_fesetround" >&5
39134 echo "${ECHO_T}$ac_cv_lib_m_fesetround" >&6
39135 if test $ac_cv_lib_m_fesetround = yes; then
39136 FESETROUND_LIBM=-lm
39141 # The -lsun library is required for YP support on Irix-4.0.5 systems.
39142 # m88k/svr3 DolphinOS systems using YP need -lypsec for id.
39144 echo "$as_me:$LINENO: checking for library containing yp_match" >&5
39145 echo $ECHO_N "checking for library containing yp_match... $ECHO_C" >&6
39146 if test "${ac_cv_search_yp_match+set}" = set; then
39147 echo $ECHO_N "(cached) $ECHO_C" >&6
39150 ac_func_search_save_LIBS=$LIBS
39151 ac_cv_search_yp_match=no
39152 cat >conftest.$ac_ext <<_ACEOF
39153 #line $LINENO "configure"
39156 cat confdefs.h >>conftest.$ac_ext
39157 cat >>conftest.$ac_ext <<_ACEOF
39158 /* end confdefs.h. */
39160 /* Override any gcc2 internal prototype to avoid an error. */
39164 /* We use char because int might match the return type of a gcc2
39165 builtin and then its argument prototype would still apply. */
39175 rm -f conftest.$ac_objext conftest$ac_exeext
39176 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39177 (eval $ac_link) 2>&5
39179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39180 (exit $ac_status); } &&
39181 { ac_try='test -s conftest$ac_exeext'
39182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39183 (eval $ac_try) 2>&5
39185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39186 (exit $ac_status); }; }; then
39187 ac_cv_search_yp_match='none required'
39189 echo "$as_me: failed program was:" >&5
39190 sed 's/^/| /' conftest.$ac_ext >&5
39193 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
39194 if test "$ac_cv_search_yp_match" = no; then
39195 for ac_lib in sun ypsec; do
39196 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
39197 cat >conftest.$ac_ext <<_ACEOF
39198 #line $LINENO "configure"
39201 cat confdefs.h >>conftest.$ac_ext
39202 cat >>conftest.$ac_ext <<_ACEOF
39203 /* end confdefs.h. */
39205 /* Override any gcc2 internal prototype to avoid an error. */
39209 /* We use char because int might match the return type of a gcc2
39210 builtin and then its argument prototype would still apply. */
39220 rm -f conftest.$ac_objext conftest$ac_exeext
39221 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39222 (eval $ac_link) 2>&5
39224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39225 (exit $ac_status); } &&
39226 { ac_try='test -s conftest$ac_exeext'
39227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39228 (eval $ac_try) 2>&5
39230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39231 (exit $ac_status); }; }; then
39232 ac_cv_search_yp_match="-l$ac_lib"; break
39234 echo "$as_me: failed program was:" >&5
39235 sed 's/^/| /' conftest.$ac_ext >&5
39238 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
39241 LIBS=$ac_func_search_save_LIBS
39244 echo "$as_me:$LINENO: result: $ac_cv_search_yp_match" >&5
39245 echo "${ECHO_T}$ac_cv_search_yp_match" >&6
39247 if test "$ac_cv_search_yp_match" = no; then :
39250 if test "$ac_cv_search_yp_match" = 'none required'; then :
39253 LIBS="$ac_cv_search_yp_match $LIBS"
39259 # SysV needs -lsec, older versions of Linux need -lshadow for
39260 # shadow passwords. UnixWare 7 needs -lgen.
39262 echo "$as_me:$LINENO: checking for library containing getspnam" >&5
39263 echo $ECHO_N "checking for library containing getspnam... $ECHO_C" >&6
39264 if test "${ac_cv_search_getspnam+set}" = set; then
39265 echo $ECHO_N "(cached) $ECHO_C" >&6
39268 ac_func_search_save_LIBS=$LIBS
39269 ac_cv_search_getspnam=no
39270 cat >conftest.$ac_ext <<_ACEOF
39271 #line $LINENO "configure"
39274 cat confdefs.h >>conftest.$ac_ext
39275 cat >>conftest.$ac_ext <<_ACEOF
39276 /* end confdefs.h. */
39278 /* Override any gcc2 internal prototype to avoid an error. */
39282 /* We use char because int might match the return type of a gcc2
39283 builtin and then its argument prototype would still apply. */
39293 rm -f conftest.$ac_objext conftest$ac_exeext
39294 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39295 (eval $ac_link) 2>&5
39297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39298 (exit $ac_status); } &&
39299 { ac_try='test -s conftest$ac_exeext'
39300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39301 (eval $ac_try) 2>&5
39303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39304 (exit $ac_status); }; }; then
39305 ac_cv_search_getspnam='none required'
39307 echo "$as_me: failed program was:" >&5
39308 sed 's/^/| /' conftest.$ac_ext >&5
39311 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
39312 if test "$ac_cv_search_getspnam" = no; then
39313 for ac_lib in shadow sec gen; do
39314 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
39315 cat >conftest.$ac_ext <<_ACEOF
39316 #line $LINENO "configure"
39319 cat confdefs.h >>conftest.$ac_ext
39320 cat >>conftest.$ac_ext <<_ACEOF
39321 /* end confdefs.h. */
39323 /* Override any gcc2 internal prototype to avoid an error. */
39327 /* We use char because int might match the return type of a gcc2
39328 builtin and then its argument prototype would still apply. */
39338 rm -f conftest.$ac_objext conftest$ac_exeext
39339 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39340 (eval $ac_link) 2>&5
39342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39343 (exit $ac_status); } &&
39344 { ac_try='test -s conftest$ac_exeext'
39345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39346 (eval $ac_try) 2>&5
39348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39349 (exit $ac_status); }; }; then
39350 ac_cv_search_getspnam="-l$ac_lib"; break
39352 echo "$as_me: failed program was:" >&5
39353 sed 's/^/| /' conftest.$ac_ext >&5
39356 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
39359 LIBS=$ac_func_search_save_LIBS
39362 echo "$as_me:$LINENO: result: $ac_cv_search_getspnam" >&5
39363 echo "${ECHO_T}$ac_cv_search_getspnam" >&6
39365 if test "$ac_cv_search_getspnam" = no; then :
39368 if test "$ac_cv_search_getspnam" = 'none required'; then :
39371 LIBS="$ac_cv_search_getspnam $LIBS"
39378 for ac_header in shadow.h
39380 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
39381 if eval "test \"\${$as_ac_Header+set}\" = set"; then
39382 echo "$as_me:$LINENO: checking for $ac_header" >&5
39383 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39384 if eval "test \"\${$as_ac_Header+set}\" = set"; then
39385 echo $ECHO_N "(cached) $ECHO_C" >&6
39387 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39388 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39390 # Is the header compilable?
39391 echo "$as_me:$LINENO: checking $ac_header usability" >&5
39392 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
39393 cat >conftest.$ac_ext <<_ACEOF
39394 #line $LINENO "configure"
39397 cat confdefs.h >>conftest.$ac_ext
39398 cat >>conftest.$ac_ext <<_ACEOF
39399 /* end confdefs.h. */
39400 $ac_includes_default
39401 #include <$ac_header>
39403 rm -f conftest.$ac_objext
39404 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39405 (eval $ac_compile) 2>&5
39407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39408 (exit $ac_status); } &&
39409 { ac_try='test -s conftest.$ac_objext'
39410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39411 (eval $ac_try) 2>&5
39413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39414 (exit $ac_status); }; }; then
39415 ac_header_compiler=yes
39417 echo "$as_me: failed program was:" >&5
39418 sed 's/^/| /' conftest.$ac_ext >&5
39420 ac_header_compiler=no
39422 rm -f conftest.$ac_objext conftest.$ac_ext
39423 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39424 echo "${ECHO_T}$ac_header_compiler" >&6
39426 # Is the header present?
39427 echo "$as_me:$LINENO: checking $ac_header presence" >&5
39428 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
39429 cat >conftest.$ac_ext <<_ACEOF
39430 #line $LINENO "configure"
39433 cat confdefs.h >>conftest.$ac_ext
39434 cat >>conftest.$ac_ext <<_ACEOF
39435 /* end confdefs.h. */
39436 #include <$ac_header>
39438 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
39439 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
39441 grep -v '^ *+' conftest.er1 >conftest.err
39443 cat conftest.err >&5
39444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39445 (exit $ac_status); } >/dev/null; then
39446 if test -s conftest.err; then
39447 ac_cpp_err=$ac_c_preproc_warn_flag
39454 if test -z "$ac_cpp_err"; then
39455 ac_header_preproc=yes
39457 echo "$as_me: failed program was:" >&5
39458 sed 's/^/| /' conftest.$ac_ext >&5
39460 ac_header_preproc=no
39462 rm -f conftest.err conftest.$ac_ext
39463 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
39464 echo "${ECHO_T}$ac_header_preproc" >&6
39466 # So? What about this header?
39467 case $ac_header_compiler:$ac_header_preproc in
39469 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
39470 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
39471 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
39472 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
39475 ## ------------------------------------ ##
39476 ## Report this to bug-autoconf@gnu.org. ##
39477 ## ------------------------------------ ##
39480 sed "s/^/$as_me: WARNING: /" >&2
39483 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
39484 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
39485 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
39486 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
39487 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
39488 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
39491 ## ------------------------------------ ##
39492 ## Report this to bug-autoconf@gnu.org. ##
39493 ## ------------------------------------ ##
39496 sed "s/^/$as_me: WARNING: /" >&2
39499 echo "$as_me:$LINENO: checking for $ac_header" >&5
39500 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39501 if eval "test \"\${$as_ac_Header+set}\" = set"; then
39502 echo $ECHO_N "(cached) $ECHO_C" >&6
39504 eval "$as_ac_Header=$ac_header_preproc"
39506 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39507 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39510 if test `eval echo '${'$as_ac_Header'}'` = yes; then
39511 cat >>confdefs.h <<_ACEOF
39512 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
39520 # Requirements for su.c.
39522 $ac_includes_default
39524 # include <shadow.h>
39527 echo "$as_me:$LINENO: checking for struct spwd.sp_pwdp" >&5
39528 echo $ECHO_N "checking for struct spwd.sp_pwdp... $ECHO_C" >&6
39529 if test "${ac_cv_member_struct_spwd_sp_pwdp+set}" = set; then
39530 echo $ECHO_N "(cached) $ECHO_C" >&6
39532 cat >conftest.$ac_ext <<_ACEOF
39533 #line $LINENO "configure"
39536 cat confdefs.h >>conftest.$ac_ext
39537 cat >>conftest.$ac_ext <<_ACEOF
39538 /* end confdefs.h. */
39544 static struct spwd ac_aggr;
39545 if (ac_aggr.sp_pwdp)
39551 rm -f conftest.$ac_objext
39552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39553 (eval $ac_compile) 2>&5
39555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39556 (exit $ac_status); } &&
39557 { ac_try='test -s conftest.$ac_objext'
39558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39559 (eval $ac_try) 2>&5
39561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39562 (exit $ac_status); }; }; then
39563 ac_cv_member_struct_spwd_sp_pwdp=yes
39565 echo "$as_me: failed program was:" >&5
39566 sed 's/^/| /' conftest.$ac_ext >&5
39568 cat >conftest.$ac_ext <<_ACEOF
39569 #line $LINENO "configure"
39572 cat confdefs.h >>conftest.$ac_ext
39573 cat >>conftest.$ac_ext <<_ACEOF
39574 /* end confdefs.h. */
39580 static struct spwd ac_aggr;
39581 if (sizeof ac_aggr.sp_pwdp)
39587 rm -f conftest.$ac_objext
39588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39589 (eval $ac_compile) 2>&5
39591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39592 (exit $ac_status); } &&
39593 { ac_try='test -s conftest.$ac_objext'
39594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39595 (eval $ac_try) 2>&5
39597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39598 (exit $ac_status); }; }; then
39599 ac_cv_member_struct_spwd_sp_pwdp=yes
39601 echo "$as_me: failed program was:" >&5
39602 sed 's/^/| /' conftest.$ac_ext >&5
39604 ac_cv_member_struct_spwd_sp_pwdp=no
39606 rm -f conftest.$ac_objext conftest.$ac_ext
39608 rm -f conftest.$ac_objext conftest.$ac_ext
39610 echo "$as_me:$LINENO: result: $ac_cv_member_struct_spwd_sp_pwdp" >&5
39611 echo "${ECHO_T}$ac_cv_member_struct_spwd_sp_pwdp" >&6
39612 if test $ac_cv_member_struct_spwd_sp_pwdp = yes; then
39614 cat >>confdefs.h <<_ACEOF
39615 #define HAVE_STRUCT_SPWD_SP_PWDP 1
39622 for ac_func in getspnam
39624 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39625 echo "$as_me:$LINENO: checking for $ac_func" >&5
39626 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39627 if eval "test \"\${$as_ac_var+set}\" = set"; then
39628 echo $ECHO_N "(cached) $ECHO_C" >&6
39630 cat >conftest.$ac_ext <<_ACEOF
39631 #line $LINENO "configure"
39634 cat confdefs.h >>conftest.$ac_ext
39635 cat >>conftest.$ac_ext <<_ACEOF
39636 /* end confdefs.h. */
39637 /* System header to define __stub macros and hopefully few prototypes,
39638 which can conflict with char $ac_func (); below.
39639 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39640 <limits.h> exists even on freestanding compilers. */
39642 # include <limits.h>
39644 # include <assert.h>
39646 /* Override any gcc2 internal prototype to avoid an error. */
39651 /* We use char because int might match the return type of a gcc2
39652 builtin and then its argument prototype would still apply. */
39654 /* The GNU C library defines this for functions which it implements
39655 to always fail with ENOSYS. Some functions are actually named
39656 something starting with __ and the normal name is an alias. */
39657 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39660 char (*f) () = $ac_func;
39669 return f != $ac_func;
39674 rm -f conftest.$ac_objext conftest$ac_exeext
39675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39676 (eval $ac_link) 2>&5
39678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39679 (exit $ac_status); } &&
39680 { ac_try='test -s conftest$ac_exeext'
39681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39682 (eval $ac_try) 2>&5
39684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39685 (exit $ac_status); }; }; then
39686 eval "$as_ac_var=yes"
39688 echo "$as_me: failed program was:" >&5
39689 sed 's/^/| /' conftest.$ac_ext >&5
39691 eval "$as_ac_var=no"
39693 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
39695 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39696 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39697 if test `eval echo '${'$as_ac_var'}'` = yes; then
39698 cat >>confdefs.h <<_ACEOF
39699 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39706 # SCO-ODT-3.0 is reported to need -lufc for crypt.
39707 # NetBSD needs -lcrypt for crypt.
39708 ac_su_saved_lib="$LIBS"
39710 echo "$as_me:$LINENO: checking for library containing crypt" >&5
39711 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6
39712 if test "${ac_cv_search_crypt+set}" = set; then
39713 echo $ECHO_N "(cached) $ECHO_C" >&6
39716 ac_func_search_save_LIBS=$LIBS
39717 ac_cv_search_crypt=no
39718 cat >conftest.$ac_ext <<_ACEOF
39719 #line $LINENO "configure"
39722 cat confdefs.h >>conftest.$ac_ext
39723 cat >>conftest.$ac_ext <<_ACEOF
39724 /* end confdefs.h. */
39726 /* Override any gcc2 internal prototype to avoid an error. */
39730 /* We use char because int might match the return type of a gcc2
39731 builtin and then its argument prototype would still apply. */
39741 rm -f conftest.$ac_objext conftest$ac_exeext
39742 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39743 (eval $ac_link) 2>&5
39745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39746 (exit $ac_status); } &&
39747 { ac_try='test -s conftest$ac_exeext'
39748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39749 (eval $ac_try) 2>&5
39751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39752 (exit $ac_status); }; }; then
39753 ac_cv_search_crypt='none required'
39755 echo "$as_me: failed program was:" >&5
39756 sed 's/^/| /' conftest.$ac_ext >&5
39759 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
39760 if test "$ac_cv_search_crypt" = no; then
39761 for ac_lib in ufc crypt; do
39762 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
39763 cat >conftest.$ac_ext <<_ACEOF
39764 #line $LINENO "configure"
39767 cat confdefs.h >>conftest.$ac_ext
39768 cat >>conftest.$ac_ext <<_ACEOF
39769 /* end confdefs.h. */
39771 /* Override any gcc2 internal prototype to avoid an error. */
39775 /* We use char because int might match the return type of a gcc2
39776 builtin and then its argument prototype would still apply. */
39786 rm -f conftest.$ac_objext conftest$ac_exeext
39787 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39788 (eval $ac_link) 2>&5
39790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39791 (exit $ac_status); } &&
39792 { ac_try='test -s conftest$ac_exeext'
39793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39794 (eval $ac_try) 2>&5
39796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39797 (exit $ac_status); }; }; then
39798 ac_cv_search_crypt="-l$ac_lib"; break
39800 echo "$as_me: failed program was:" >&5
39801 sed 's/^/| /' conftest.$ac_ext >&5
39804 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
39807 LIBS=$ac_func_search_save_LIBS
39810 echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
39811 echo "${ECHO_T}$ac_cv_search_crypt" >&6
39813 if test "$ac_cv_search_crypt" = no; then :
39816 if test "$ac_cv_search_crypt" = 'none required'; then :
39819 LIBS="$ac_cv_search_crypt $LIBS"
39820 LIB_CRYPT="$ac_cv_search_crypt"
39824 LIBS="$ac_su_saved_lib"
39830 if test -n "$ac_aux_dir"; then
39831 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
39833 if test -z "$MKINSTALLDIRS"; then
39834 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
39841 # Extract the first word of "msgfmt", so it can be a program name with args.
39842 set dummy msgfmt; ac_word=$2
39843 echo "$as_me:$LINENO: checking for $ac_word" >&5
39844 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39845 if test "${ac_cv_path_MSGFMT+set}" = set; then
39846 echo $ECHO_N "(cached) $ECHO_C" >&6
39850 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
39853 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
39854 for ac_dir in $PATH; do
39855 test -z "$ac_dir" && ac_dir=.
39856 if test -f $ac_dir/$ac_word; then
39857 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
39858 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
39859 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
39865 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
39869 MSGFMT="$ac_cv_path_MSGFMT"
39870 if test "$MSGFMT" != ":"; then
39871 echo "$as_me:$LINENO: result: $MSGFMT" >&5
39872 echo "${ECHO_T}$MSGFMT" >&6
39874 echo "$as_me:$LINENO: result: no" >&5
39875 echo "${ECHO_T}no" >&6
39878 # Extract the first word of "gmsgfmt", so it can be a program name with args.
39879 set dummy gmsgfmt; ac_word=$2
39880 echo "$as_me:$LINENO: checking for $ac_word" >&5
39881 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39882 if test "${ac_cv_path_GMSGFMT+set}" = set; then
39883 echo $ECHO_N "(cached) $ECHO_C" >&6
39887 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
39890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39891 for as_dir in $PATH
39894 test -z "$as_dir" && as_dir=.
39895 for ac_exec_ext in '' $ac_executable_extensions; do
39896 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39897 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
39898 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39904 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
39908 GMSGFMT=$ac_cv_path_GMSGFMT
39910 if test -n "$GMSGFMT"; then
39911 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
39912 echo "${ECHO_T}$GMSGFMT" >&6
39914 echo "$as_me:$LINENO: result: no" >&5
39915 echo "${ECHO_T}no" >&6
39919 # Extract the first word of "xgettext", so it can be a program name with args.
39920 set dummy xgettext; ac_word=$2
39921 echo "$as_me:$LINENO: checking for $ac_word" >&5
39922 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39923 if test "${ac_cv_path_XGETTEXT+set}" = set; then
39924 echo $ECHO_N "(cached) $ECHO_C" >&6
39926 case "$XGETTEXT" in
39928 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
39931 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
39932 for ac_dir in $PATH; do
39933 test -z "$ac_dir" && ac_dir=.
39934 if test -f $ac_dir/$ac_word; then
39935 if $ac_dir/$ac_word --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
39936 (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
39937 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
39943 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
39947 XGETTEXT="$ac_cv_path_XGETTEXT"
39948 if test "$XGETTEXT" != ":"; then
39949 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
39950 echo "${ECHO_T}$XGETTEXT" >&6
39952 echo "$as_me:$LINENO: result: no" >&5
39953 echo "${ECHO_T}no" >&6
39958 # Extract the first word of "msgmerge", so it can be a program name with args.
39959 set dummy msgmerge; ac_word=$2
39960 echo "$as_me:$LINENO: checking for $ac_word" >&5
39961 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39962 if test "${ac_cv_path_MSGMERGE+set}" = set; then
39963 echo $ECHO_N "(cached) $ECHO_C" >&6
39965 case "$MSGMERGE" in
39967 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
39970 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
39971 for ac_dir in $PATH; do
39972 test -z "$ac_dir" && ac_dir=.
39973 if test -f $ac_dir/$ac_word; then
39974 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
39975 ac_cv_path_MSGMERGE="$ac_dir/$ac_word"
39981 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
39985 MSGMERGE="$ac_cv_path_MSGMERGE"
39986 if test "$MSGMERGE" != ":"; then
39987 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
39988 echo "${ECHO_T}$MSGMERGE" >&6
39990 echo "$as_me:$LINENO: result: no" >&5
39991 echo "${ECHO_T}no" >&6
39995 if test "$GMSGFMT" != ":"; then
39996 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
39997 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
40000 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
40001 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
40002 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
40007 if test "$XGETTEXT" != ":"; then
40008 if $XGETTEXT --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
40009 (if $XGETTEXT --omit-header --copyright-holder= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
40012 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
40013 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
40019 ac_config_commands="$ac_config_commands default-1"
40037 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
40038 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
40039 # Check whether --enable-nls or --disable-nls was given.
40040 if test "${enable_nls+set}" = set; then
40041 enableval="$enable_nls"
40046 echo "$as_me:$LINENO: result: $USE_NLS" >&5
40047 echo "${ECHO_T}$USE_NLS" >&6
40055 if test "$USE_NLS" = "yes"; then
40056 gt_use_preinstalled_gnugettext=no
40063 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
40064 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
40065 if test "${gt_cv_func_gnugettext2_libc+set}" = set; then
40066 echo $ECHO_N "(cached) $ECHO_C" >&6
40068 cat >conftest.$ac_ext <<_ACEOF
40069 #line $LINENO "configure"
40072 cat confdefs.h >>conftest.$ac_ext
40073 cat >>conftest.$ac_ext <<_ACEOF
40074 /* end confdefs.h. */
40075 #include <libintl.h>
40076 extern int _nl_msg_cat_cntr;
40077 extern int *_nl_domain_bindings;
40081 bindtextdomain ("", "");
40082 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_domain_bindings
40087 rm -f conftest.$ac_objext conftest$ac_exeext
40088 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40089 (eval $ac_link) 2>&5
40091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40092 (exit $ac_status); } &&
40093 { ac_try='test -s conftest$ac_exeext'
40094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40095 (eval $ac_try) 2>&5
40097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40098 (exit $ac_status); }; }; then
40099 gt_cv_func_gnugettext2_libc=yes
40101 echo "$as_me: failed program was:" >&5
40102 sed 's/^/| /' conftest.$ac_ext >&5
40104 gt_cv_func_gnugettext2_libc=no
40106 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
40108 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libc" >&5
40109 echo "${ECHO_T}$gt_cv_func_gnugettext2_libc" >&6
40111 if test "$gt_cv_func_gnugettext2_libc" != "yes"; then
40117 am_save_CPPFLAGS="$CPPFLAGS"
40119 for element in $INCICONV; do
40121 for x in $CPPFLAGS; do
40123 acl_save_prefix="$prefix"
40124 prefix="$acl_final_prefix"
40125 acl_save_exec_prefix="$exec_prefix"
40126 exec_prefix="$acl_final_exec_prefix"
40128 exec_prefix="$acl_save_exec_prefix"
40129 prefix="$acl_save_prefix"
40131 if test "X$x" = "X$element"; then
40136 if test -z "$haveit"; then
40137 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
40142 echo "$as_me:$LINENO: checking for iconv" >&5
40143 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
40144 if test "${am_cv_func_iconv+set}" = set; then
40145 echo $ECHO_N "(cached) $ECHO_C" >&6
40148 am_cv_func_iconv="no, consider installing GNU libiconv"
40150 cat >conftest.$ac_ext <<_ACEOF
40151 #line $LINENO "configure"
40154 cat confdefs.h >>conftest.$ac_ext
40155 cat >>conftest.$ac_ext <<_ACEOF
40156 /* end confdefs.h. */
40157 #include <stdlib.h>
40162 iconv_t cd = iconv_open("","");
40163 iconv(cd,NULL,NULL,NULL,NULL);
40169 rm -f conftest.$ac_objext conftest$ac_exeext
40170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40171 (eval $ac_link) 2>&5
40173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40174 (exit $ac_status); } &&
40175 { ac_try='test -s conftest$ac_exeext'
40176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40177 (eval $ac_try) 2>&5
40179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40180 (exit $ac_status); }; }; then
40181 am_cv_func_iconv=yes
40183 echo "$as_me: failed program was:" >&5
40184 sed 's/^/| /' conftest.$ac_ext >&5
40187 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
40188 if test "$am_cv_func_iconv" != yes; then
40189 am_save_LIBS="$LIBS"
40190 LIBS="$LIBS $LIBICONV"
40191 cat >conftest.$ac_ext <<_ACEOF
40192 #line $LINENO "configure"
40195 cat confdefs.h >>conftest.$ac_ext
40196 cat >>conftest.$ac_ext <<_ACEOF
40197 /* end confdefs.h. */
40198 #include <stdlib.h>
40203 iconv_t cd = iconv_open("","");
40204 iconv(cd,NULL,NULL,NULL,NULL);
40210 rm -f conftest.$ac_objext conftest$ac_exeext
40211 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40212 (eval $ac_link) 2>&5
40214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40215 (exit $ac_status); } &&
40216 { ac_try='test -s conftest$ac_exeext'
40217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40218 (eval $ac_try) 2>&5
40220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40221 (exit $ac_status); }; }; then
40222 am_cv_lib_iconv=yes
40223 am_cv_func_iconv=yes
40225 echo "$as_me: failed program was:" >&5
40226 sed 's/^/| /' conftest.$ac_ext >&5
40229 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
40230 LIBS="$am_save_LIBS"
40234 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
40235 echo "${ECHO_T}$am_cv_func_iconv" >&6
40236 if test "$am_cv_func_iconv" = yes; then
40238 cat >>confdefs.h <<\_ACEOF
40239 #define HAVE_ICONV 1
40243 if test "$am_cv_lib_iconv" = yes; then
40244 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
40245 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
40246 echo "$as_me:$LINENO: result: $LIBICONV" >&5
40247 echo "${ECHO_T}$LIBICONV" >&6
40249 CPPFLAGS="$am_save_CPPFLAGS"
40261 acl_save_prefix="$prefix"
40262 prefix="$acl_final_prefix"
40263 acl_save_exec_prefix="$exec_prefix"
40264 exec_prefix="$acl_final_exec_prefix"
40266 eval additional_includedir=\"$includedir\"
40267 eval additional_libdir=\"$libdir\"
40269 exec_prefix="$acl_save_exec_prefix"
40270 prefix="$acl_save_prefix"
40273 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
40274 if test "${with_libintl_prefix+set}" = set; then
40275 withval="$with_libintl_prefix"
40277 if test "X$withval" = "Xno"; then
40280 if test "X$withval" = "X"; then
40282 acl_save_prefix="$prefix"
40283 prefix="$acl_final_prefix"
40284 acl_save_exec_prefix="$exec_prefix"
40285 exec_prefix="$acl_final_exec_prefix"
40287 eval additional_includedir=\"$includedir\"
40288 eval additional_libdir=\"$libdir\"
40290 exec_prefix="$acl_save_exec_prefix"
40291 prefix="$acl_save_prefix"
40294 additional_includedir="$withval/include"
40295 additional_libdir="$withval/lib"
40305 names_already_handled=
40306 names_next_round='intl '
40307 while test -n "$names_next_round"; do
40308 names_this_round="$names_next_round"
40310 for name in $names_this_round; do
40312 for n in $names_already_handled; do
40313 if test "$n" = "$name"; then
40314 already_handled=yes
40318 if test -z "$already_handled"; then
40319 names_already_handled="$names_already_handled $name"
40320 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
40321 eval value=\"\$HAVE_LIB$uppername\"
40322 if test -n "$value"; then
40323 if test "$value" = yes; then
40324 eval value=\"\$LIB$uppername\"
40325 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
40326 eval value=\"\$LTLIB$uppername\"
40327 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
40336 if test $use_additional = yes; then
40337 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
40338 found_dir="$additional_libdir"
40339 found_so="$additional_libdir/lib$name.$shlibext"
40340 if test -f "$additional_libdir/lib$name.la"; then
40341 found_la="$additional_libdir/lib$name.la"
40344 if test -f "$additional_libdir/lib$name.$libext"; then
40345 found_dir="$additional_libdir"
40346 found_a="$additional_libdir/lib$name.$libext"
40347 if test -f "$additional_libdir/lib$name.la"; then
40348 found_la="$additional_libdir/lib$name.la"
40353 if test "X$found_dir" = "X"; then
40354 for x in $LDFLAGS $LTLIBINTL; do
40356 acl_save_prefix="$prefix"
40357 prefix="$acl_final_prefix"
40358 acl_save_exec_prefix="$exec_prefix"
40359 exec_prefix="$acl_final_exec_prefix"
40361 exec_prefix="$acl_save_exec_prefix"
40362 prefix="$acl_save_prefix"
40366 dir=`echo "X$x" | sed -e 's/^X-L//'`
40367 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
40369 found_so="$dir/lib$name.$shlibext"
40370 if test -f "$dir/lib$name.la"; then
40371 found_la="$dir/lib$name.la"
40374 if test -f "$dir/lib$name.$libext"; then
40376 found_a="$dir/lib$name.$libext"
40377 if test -f "$dir/lib$name.la"; then
40378 found_la="$dir/lib$name.la"
40384 if test "X$found_dir" != "X"; then
40389 if test "X$found_dir" != "X"; then
40390 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
40391 if test "X$found_so" != "X"; then
40392 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
40393 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
40396 for x in $ltrpathdirs; do
40397 if test "X$x" = "X$found_dir"; then
40402 if test -z "$haveit"; then
40403 ltrpathdirs="$ltrpathdirs $found_dir"
40405 if test "$hardcode_direct" = yes; then
40406 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
40408 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
40409 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
40411 for x in $rpathdirs; do
40412 if test "X$x" = "X$found_dir"; then
40417 if test -z "$haveit"; then
40418 rpathdirs="$rpathdirs $found_dir"
40422 for x in $LDFLAGS $LIBINTL; do
40424 acl_save_prefix="$prefix"
40425 prefix="$acl_final_prefix"
40426 acl_save_exec_prefix="$exec_prefix"
40427 exec_prefix="$acl_final_exec_prefix"
40429 exec_prefix="$acl_save_exec_prefix"
40430 prefix="$acl_save_prefix"
40432 if test "X$x" = "X-L$found_dir"; then
40437 if test -z "$haveit"; then
40438 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
40440 if test "$hardcode_minus_L" != no; then
40441 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
40443 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
40449 if test "X$found_a" != "X"; then
40450 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
40452 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
40455 additional_includedir=
40456 case "$found_dir" in
40458 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
40459 additional_includedir="$basedir/include"
40462 if test "X$additional_includedir" != "X"; then
40463 if test "X$additional_includedir" != "X/usr/include"; then
40465 if test "X$additional_includedir" = "X/usr/local/include"; then
40466 if test -n "$GCC"; then
40468 linux*) haveit=yes;;
40472 if test -z "$haveit"; then
40473 for x in $CPPFLAGS $INCINTL; do
40475 acl_save_prefix="$prefix"
40476 prefix="$acl_final_prefix"
40477 acl_save_exec_prefix="$exec_prefix"
40478 exec_prefix="$acl_final_exec_prefix"
40480 exec_prefix="$acl_save_exec_prefix"
40481 prefix="$acl_save_prefix"
40483 if test "X$x" = "X-I$additional_includedir"; then
40488 if test -z "$haveit"; then
40489 if test -d "$additional_includedir"; then
40490 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
40496 if test -n "$found_la"; then
40497 save_libdir="$libdir"
40498 case "$found_la" in
40499 */* | *\\*) . "$found_la" ;;
40500 *) . "./$found_la" ;;
40502 libdir="$save_libdir"
40503 for dep in $dependency_libs; do
40506 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
40507 if test "X$additional_libdir" != "X/usr/lib"; then
40509 if test "X$additional_libdir" = "X/usr/local/lib"; then
40510 if test -n "$GCC"; then
40512 linux*) haveit=yes;;
40516 if test -z "$haveit"; then
40518 for x in $LDFLAGS $LIBINTL; do
40520 acl_save_prefix="$prefix"
40521 prefix="$acl_final_prefix"
40522 acl_save_exec_prefix="$exec_prefix"
40523 exec_prefix="$acl_final_exec_prefix"
40525 exec_prefix="$acl_save_exec_prefix"
40526 prefix="$acl_save_prefix"
40528 if test "X$x" = "X-L$additional_libdir"; then
40533 if test -z "$haveit"; then
40534 if test -d "$additional_libdir"; then
40535 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
40539 for x in $LDFLAGS $LTLIBINTL; do
40541 acl_save_prefix="$prefix"
40542 prefix="$acl_final_prefix"
40543 acl_save_exec_prefix="$exec_prefix"
40544 exec_prefix="$acl_final_exec_prefix"
40546 exec_prefix="$acl_save_exec_prefix"
40547 prefix="$acl_save_prefix"
40549 if test "X$x" = "X-L$additional_libdir"; then
40554 if test -z "$haveit"; then
40555 if test -d "$additional_libdir"; then
40556 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
40563 dir=`echo "X$dep" | sed -e 's/^X-R//'`
40564 if test "$enable_rpath" != no; then
40566 for x in $rpathdirs; do
40567 if test "X$x" = "X$dir"; then
40572 if test -z "$haveit"; then
40573 rpathdirs="$rpathdirs $dir"
40576 for x in $ltrpathdirs; do
40577 if test "X$x" = "X$dir"; then
40582 if test -z "$haveit"; then
40583 ltrpathdirs="$ltrpathdirs $dir"
40588 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
40591 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
40594 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
40595 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
40601 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
40602 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
40608 if test "X$rpathdirs" != "X"; then
40609 if test -n "$hardcode_libdir_separator"; then
40611 for found_dir in $rpathdirs; do
40612 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
40614 acl_save_libdir="$libdir"
40616 eval flag=\"$hardcode_libdir_flag_spec\"
40617 libdir="$acl_save_libdir"
40618 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
40620 for found_dir in $rpathdirs; do
40621 acl_save_libdir="$libdir"
40622 libdir="$found_dir"
40623 eval flag=\"$hardcode_libdir_flag_spec\"
40624 libdir="$acl_save_libdir"
40625 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
40629 if test "X$ltrpathdirs" != "X"; then
40630 for found_dir in $ltrpathdirs; do
40631 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
40635 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
40636 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
40637 if test "${gt_cv_func_gnugettext2_libintl+set}" = set; then
40638 echo $ECHO_N "(cached) $ECHO_C" >&6
40640 gt_save_CPPFLAGS="$CPPFLAGS"
40641 CPPFLAGS="$CPPFLAGS $INCINTL"
40642 gt_save_LIBS="$LIBS"
40643 LIBS="$LIBS $LIBINTL"
40644 cat >conftest.$ac_ext <<_ACEOF
40645 #line $LINENO "configure"
40648 cat confdefs.h >>conftest.$ac_ext
40649 cat >>conftest.$ac_ext <<_ACEOF
40650 /* end confdefs.h. */
40651 #include <libintl.h>
40652 extern int _nl_msg_cat_cntr;
40657 const char *_nl_expand_alias ();
40661 bindtextdomain ("", "");
40662 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
40667 rm -f conftest.$ac_objext conftest$ac_exeext
40668 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40669 (eval $ac_link) 2>&5
40671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40672 (exit $ac_status); } &&
40673 { ac_try='test -s conftest$ac_exeext'
40674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40675 (eval $ac_try) 2>&5
40677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40678 (exit $ac_status); }; }; then
40679 gt_cv_func_gnugettext2_libintl=yes
40681 echo "$as_me: failed program was:" >&5
40682 sed 's/^/| /' conftest.$ac_ext >&5
40684 gt_cv_func_gnugettext2_libintl=no
40686 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
40687 if test "$gt_cv_func_gnugettext2_libintl" != yes && test -n "$LIBICONV"; then
40688 LIBS="$LIBS $LIBICONV"
40689 cat >conftest.$ac_ext <<_ACEOF
40690 #line $LINENO "configure"
40693 cat confdefs.h >>conftest.$ac_ext
40694 cat >>conftest.$ac_ext <<_ACEOF
40695 /* end confdefs.h. */
40696 #include <libintl.h>
40697 extern int _nl_msg_cat_cntr;
40702 const char *_nl_expand_alias ();
40706 bindtextdomain ("", "");
40707 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
40712 rm -f conftest.$ac_objext conftest$ac_exeext
40713 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40714 (eval $ac_link) 2>&5
40716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40717 (exit $ac_status); } &&
40718 { ac_try='test -s conftest$ac_exeext'
40719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40720 (eval $ac_try) 2>&5
40722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40723 (exit $ac_status); }; }; then
40724 LIBINTL="$LIBINTL $LIBICONV"
40725 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
40726 gt_cv_func_gnugettext2_libintl=yes
40729 echo "$as_me: failed program was:" >&5
40730 sed 's/^/| /' conftest.$ac_ext >&5
40733 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
40735 CPPFLAGS="$gt_save_CPPFLAGS"
40736 LIBS="$gt_save_LIBS"
40738 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libintl" >&5
40739 echo "${ECHO_T}$gt_cv_func_gnugettext2_libintl" >&6
40742 if test "$gt_cv_func_gnugettext2_libc" = "yes" \
40743 || { test "$gt_cv_func_gnugettext2_libintl" = "yes" \
40744 && test "$PACKAGE" != gettext; }; then
40745 gt_use_preinstalled_gnugettext=yes
40754 if test "$gt_use_preinstalled_gnugettext" = "yes" \
40755 || test "$nls_cv_use_gnu_gettext" = "yes"; then
40757 cat >>confdefs.h <<\_ACEOF
40758 #define ENABLE_NLS 1
40766 if test "$USE_NLS" = "yes"; then
40768 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
40769 if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
40770 echo "$as_me:$LINENO: checking how to link with libintl" >&5
40771 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
40772 echo "$as_me:$LINENO: result: $LIBINTL" >&5
40773 echo "${ECHO_T}$LIBINTL" >&6
40775 for element in $INCINTL; do
40777 for x in $CPPFLAGS; do
40779 acl_save_prefix="$prefix"
40780 prefix="$acl_final_prefix"
40781 acl_save_exec_prefix="$exec_prefix"
40782 exec_prefix="$acl_final_exec_prefix"
40784 exec_prefix="$acl_save_exec_prefix"
40785 prefix="$acl_save_prefix"
40787 if test "X$x" = "X$element"; then
40792 if test -z "$haveit"; then
40793 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
40800 cat >>confdefs.h <<\_ACEOF
40801 #define HAVE_GETTEXT 1
40805 cat >>confdefs.h <<\_ACEOF
40806 #define HAVE_DCGETTEXT 1
40816 INTLLIBS="$LIBINTL"
40825 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"
40827 cat >confcache <<\_ACEOF
40828 # This file is a shell script that caches the results of configure
40829 # tests run on this system so they can be shared between configure
40830 # scripts and configure runs, see configure's option --config-cache.
40831 # It is not useful on other systems. If it contains results you don't
40832 # want to keep, you may remove or edit it.
40834 # config.status only pays attention to the cache file if you give it
40835 # the --recheck option to rerun configure.
40837 # `ac_cv_env_foo' variables (set or unset) will be overridden when
40838 # loading this file, other *unset* `ac_cv_foo' will be assigned the
40839 # following values.
40843 # The following way of writing the cache mishandles newlines in values,
40844 # but we know of no workaround that is simple, portable, and efficient.
40845 # So, don't put newlines in cache variables' values.
40846 # Ultrix sh set writes to stderr and can't be redirected directly,
40847 # and sets the high bit in the cache file unless we assign to the vars.
40850 case `(ac_space=' '; set | grep ac_space) 2>&1` in
40852 # `set' does not quote correctly, so add quotes (double-quote
40853 # substitution turns \\\\ into \\, and sed turns \\ into \).
40856 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
40859 # `set' quotes correctly as required by POSIX, so do not add quotes.
40861 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
40868 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
40870 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
40872 if diff $cache_file confcache >/dev/null 2>&1; then :; else
40873 if test -w $cache_file; then
40874 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
40875 cat confcache >$cache_file
40877 echo "not updating unwritable cache $cache_file"
40882 test "x$prefix" = xNONE && prefix=$ac_default_prefix
40883 # Let make expand exec_prefix.
40884 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
40886 # VPATH may cause trouble with some makes, so we remove $(srcdir),
40887 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
40888 # trailing colons and then remove the whole line if VPATH becomes empty
40889 # (actually we leave an empty line to preserve line numbers).
40890 if test "x$srcdir" = x.; then
40891 ac_vpsub='/^[ ]*VPATH[ ]*=/{
40892 s/:*\$(srcdir):*/:/;
40893 s/:*\${srcdir}:*/:/;
40895 s/^\([^=]*=[ ]*\):*/\1/;
40901 DEFS=-DHAVE_CONFIG_H
40905 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
40906 # 1. Remove the extension, and $U if already installed.
40907 ac_i=`echo "$ac_i" |
40908 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
40910 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
40911 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
40913 LIBOBJS=$ac_libobjs
40915 LTLIBOBJS=$ac_ltlibobjs
40918 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
40919 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
40920 Usually this means the macro was only invoked conditionally." >&5
40921 echo "$as_me: error: conditional \"AMDEP\" was never defined.
40922 Usually this means the macro was only invoked conditionally." >&2;}
40923 { (exit 1); exit 1; }; }
40925 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
40926 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
40927 Usually this means the macro was only invoked conditionally." >&5
40928 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
40929 Usually this means the macro was only invoked conditionally." >&2;}
40930 { (exit 1); exit 1; }; }
40933 : ${CONFIG_STATUS=./config.status}
40934 ac_clean_files_save=$ac_clean_files
40935 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
40936 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
40937 echo "$as_me: creating $CONFIG_STATUS" >&6;}
40938 cat >$CONFIG_STATUS <<_ACEOF
40940 # Generated by $as_me.
40941 # Run this file to recreate the current configuration.
40942 # Compiler output produced by configure, useful for debugging
40943 # configure, is in config.log if it exists.
40946 ac_cs_recheck=false
40948 SHELL=\${CONFIG_SHELL-$SHELL}
40951 cat >>$CONFIG_STATUS <<\_ACEOF
40952 ## --------------------- ##
40953 ## M4sh Initialization. ##
40954 ## --------------------- ##
40956 # Be Bourne compatible
40957 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
40960 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
40961 # is contrary to our usage. Disable this feature.
40962 alias -g '${1+"$@"}'='"$@"'
40963 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
40967 # Support unset when possible.
40968 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
40975 # Work around bugs in pre-3.0 UWIN ksh.
40976 $as_unset ENV MAIL MAILPATH
40983 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
40984 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
40985 LC_TELEPHONE LC_TIME
40987 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
40988 eval $as_var=C; export $as_var
40994 # Required to use basename.
40995 if expr a : '\(a\)' >/dev/null 2>&1; then
41001 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
41002 as_basename=basename
41008 # Name of the executable.
41009 as_me=`$as_basename "$0" ||
41010 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
41011 X"$0" : 'X\(//\)$' \| \
41012 X"$0" : 'X\(/\)$' \| \
41013 . : '\(.\)' 2>/dev/null ||
41015 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
41016 /^X\/\(\/\/\)$/{ s//\1/; q; }
41017 /^X\/\(\/\).*/{ s//\1/; q; }
41021 # PATH needs CR, and LINENO needs CR and PATH.
41022 # Avoid depending upon Character Ranges.
41023 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
41024 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
41025 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
41026 as_cr_digits='0123456789'
41027 as_cr_alnum=$as_cr_Letters$as_cr_digits
41029 # The user is always right.
41030 if test "${PATH_SEPARATOR+set}" != set; then
41031 echo "#! /bin/sh" >conf$$.sh
41032 echo "exit 0" >>conf$$.sh
41034 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
41043 as_lineno_1=$LINENO
41044 as_lineno_2=$LINENO
41045 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
41046 test "x$as_lineno_1" != "x$as_lineno_2" &&
41047 test "x$as_lineno_3" = "x$as_lineno_2" || {
41048 # Find who we are. Look in the path if we contain no path at all
41051 *[\\/]* ) as_myself=$0 ;;
41052 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41053 for as_dir in $PATH
41056 test -z "$as_dir" && as_dir=.
41057 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
41062 # We did not find ourselves, most probably we were run as `sh COMMAND'
41063 # in which case we are not to be found in the path.
41064 if test "x$as_myself" = x; then
41067 if test ! -f "$as_myself"; then
41068 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
41069 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
41070 { (exit 1); exit 1; }; }
41072 case $CONFIG_SHELL in
41074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41075 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
41078 test -z "$as_dir" && as_dir=.
41079 for as_base in sh bash ksh sh5; do
41082 if ("$as_dir/$as_base" -c '
41083 as_lineno_1=$LINENO
41084 as_lineno_2=$LINENO
41085 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
41086 test "x$as_lineno_1" != "x$as_lineno_2" &&
41087 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
41088 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
41089 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
41090 CONFIG_SHELL=$as_dir/$as_base
41091 export CONFIG_SHELL
41092 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
41100 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
41101 # uniformly replaced by the line number. The first 'sed' inserts a
41102 # line-number line before each line; the second 'sed' does the real
41103 # work. The second script uses 'N' to pair each line-number line
41104 # with the numbered line, and appends trailing '-' during
41105 # substitution so that $LINENO is not a special case at line end.
41106 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
41107 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
41108 sed '=' <$as_myself |
41113 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
41116 s,^['$as_cr_digits']*\n,,
41117 ' >$as_me.lineno &&
41118 chmod +x $as_me.lineno ||
41119 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
41120 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
41121 { (exit 1); exit 1; }; }
41123 # Don't try to exec as it changes $[0], causing all sort of problems
41124 # (the dirname of $[0] is not the place where we might find the
41125 # original and so on. Autoconf is especially sensible to this).
41127 # Exit status is that of the last command.
41132 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
41133 *c*,-n*) ECHO_N= ECHO_C='
41135 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
41136 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
41139 if expr a : '\(a\)' >/dev/null 2>&1; then
41145 rm -f conf$$ conf$$.exe conf$$.file
41147 if ln -s conf$$.file conf$$ 2>/dev/null; then
41148 # We could just check for DJGPP; but this test a) works b) is more generic
41149 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
41150 if test -f conf$$.exe; then
41151 # Don't use ln at all; we don't have any links
41156 elif ln conf$$.file conf$$ 2>/dev/null; then
41161 rm -f conf$$ conf$$.exe conf$$.file
41163 if mkdir -p . 2>/dev/null; then
41169 as_executable_p="test -f"
41171 # Sed expression to map a string onto a valid CPP name.
41172 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
41174 # Sed expression to map a string onto a valid variable name.
41175 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
41179 # We need space, tab and new line, in precisely that order.
41189 # Open the log real soon, to keep \$[0] and so on meaningful, and to
41190 # report actual input values of CONFIG_FILES etc. instead of their
41191 # values after options handling. Logging --version etc. is OK.
41195 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
41196 ## Running $as_me. ##
41201 This file was extended by GNU coreutils $as_me 4.5.5, which was
41202 generated by GNU Autoconf 2.57. Invocation command line was
41204 CONFIG_FILES = $CONFIG_FILES
41205 CONFIG_HEADERS = $CONFIG_HEADERS
41206 CONFIG_LINKS = $CONFIG_LINKS
41207 CONFIG_COMMANDS = $CONFIG_COMMANDS
41211 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
41215 # Files that config.status was made for.
41216 if test -n "$ac_config_files"; then
41217 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
41220 if test -n "$ac_config_headers"; then
41221 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
41224 if test -n "$ac_config_links"; then
41225 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
41228 if test -n "$ac_config_commands"; then
41229 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
41232 cat >>$CONFIG_STATUS <<\_ACEOF
41235 \`$as_me' instantiates files from templates according to the
41236 current configuration.
41238 Usage: $0 [OPTIONS] [FILE]...
41240 -h, --help print this help, then exit
41241 -V, --version print version number, then exit
41242 -q, --quiet do not print progress messages
41243 -d, --debug don't remove temporary files
41244 --recheck update $as_me by reconfiguring in the same conditions
41245 --file=FILE[:TEMPLATE]
41246 instantiate the configuration file FILE
41247 --header=FILE[:TEMPLATE]
41248 instantiate the configuration header FILE
41250 Configuration files:
41253 Configuration headers:
41256 Configuration links:
41259 Configuration commands:
41262 Report bugs to <bug-autoconf@gnu.org>."
41265 cat >>$CONFIG_STATUS <<_ACEOF
41267 GNU coreutils config.status 4.5.5
41268 configured by $0, generated by GNU Autoconf 2.57,
41269 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
41271 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
41272 Free Software Foundation, Inc.
41273 This config.status script is free software; the Free Software Foundation
41274 gives unlimited permission to copy, distribute and modify it."
41279 cat >>$CONFIG_STATUS <<\_ACEOF
41280 # If no file are specified by the user, then we need to provide default
41281 # value. By we need to know if files were specified by the user.
41287 ac_option=`expr "x$1" : 'x\([^=]*\)='`
41288 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
41296 *) # This is not an option, so the user has probably given explicit
41299 ac_need_defaults=false;;
41303 # Handling of the options.
41305 cat >>$CONFIG_STATUS <<\_ACEOF
41306 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
41308 --version | --vers* | -V )
41309 echo "$ac_cs_version"; exit 0 ;;
41311 # Conflict between --help and --header
41312 { { echo "$as_me:$LINENO: error: ambiguous option: $1
41313 Try \`$0 --help' for more information." >&5
41314 echo "$as_me: error: ambiguous option: $1
41315 Try \`$0 --help' for more information." >&2;}
41316 { (exit 1); exit 1; }; };;
41317 --help | --hel | -h )
41318 echo "$ac_cs_usage"; exit 0 ;;
41319 --debug | --d* | -d )
41321 --file | --fil | --fi | --f )
41323 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
41324 ac_need_defaults=false;;
41325 --header | --heade | --head | --hea )
41327 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
41328 ac_need_defaults=false;;
41329 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
41330 | -silent | --silent | --silen | --sile | --sil | --si | --s)
41333 # This is an error.
41334 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
41335 Try \`$0 --help' for more information." >&5
41336 echo "$as_me: error: unrecognized option: $1
41337 Try \`$0 --help' for more information." >&2;}
41338 { (exit 1); exit 1; }; } ;;
41340 *) ac_config_targets="$ac_config_targets $1" ;;
41346 ac_configure_extra_args=
41348 if $ac_cs_silent; then
41350 ac_configure_extra_args="$ac_configure_extra_args --silent"
41354 cat >>$CONFIG_STATUS <<_ACEOF
41355 if \$ac_cs_recheck; then
41356 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
41357 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
41362 cat >>$CONFIG_STATUS <<_ACEOF
41364 # INIT-COMMANDS section.
41367 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
41368 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
41369 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
41371 eval 'ALL_LINGUAS''="$ALL_LINGUAS"'
41372 # Capture the value of LINGUAS because we need it to compute CATALOGS.
41373 LINGUAS="${LINGUAS-%UNSET%}"
41380 cat >>$CONFIG_STATUS <<\_ACEOF
41381 for ac_config_target in $ac_config_targets
41383 case "$ac_config_target" in
41384 # Handling of arguments.
41385 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
41386 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
41387 "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
41388 "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
41389 "m4/Makefile" ) CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
41390 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
41391 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
41392 "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
41393 "tests/basename/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/basename/Makefile" ;;
41394 "tests/chgrp/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/chgrp/Makefile" ;;
41395 "tests/chmod/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/chmod/Makefile" ;;
41396 "tests/chown/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/chown/Makefile" ;;
41397 "tests/cp/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/cp/Makefile" ;;
41398 "tests/cut/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/cut/Makefile" ;;
41399 "tests/date/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/date/Makefile" ;;
41400 "tests/dd/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/dd/Makefile" ;;
41401 "tests/dircolors/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/dircolors/Makefile" ;;
41402 "tests/du/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/du/Makefile" ;;
41403 "tests/expr/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/expr/Makefile" ;;
41404 "tests/factor/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/factor/Makefile" ;;
41405 "tests/fmt/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/fmt/Makefile" ;;
41406 "tests/head/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/head/Makefile" ;;
41407 "tests/install/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/install/Makefile" ;;
41408 "tests/join/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/join/Makefile" ;;
41409 "tests/ln/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/ln/Makefile" ;;
41410 "tests/ls-2/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/ls-2/Makefile" ;;
41411 "tests/ls/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/ls/Makefile" ;;
41412 "tests/md5sum/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/md5sum/Makefile" ;;
41413 "tests/misc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/misc/Makefile" ;;
41414 "tests/mkdir/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/mkdir/Makefile" ;;
41415 "tests/mv/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/mv/Makefile" ;;
41416 "tests/od/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/od/Makefile" ;;
41417 "tests/pr/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/pr/Makefile" ;;
41418 "tests/rm/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/rm/Makefile" ;;
41419 "tests/rmdir/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/rmdir/Makefile" ;;
41420 "tests/seq/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/seq/Makefile" ;;
41421 "tests/sha1sum/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/sha1sum/Makefile" ;;
41422 "tests/shred/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/shred/Makefile" ;;
41423 "tests/sort/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/sort/Makefile" ;;
41424 "tests/stty/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/stty/Makefile" ;;
41425 "tests/sum/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/sum/Makefile" ;;
41426 "tests/tac/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/tac/Makefile" ;;
41427 "tests/tail-2/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/tail-2/Makefile" ;;
41428 "tests/tail/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/tail/Makefile" ;;
41429 "tests/test/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/test/Makefile" ;;
41430 "tests/touch/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/touch/Makefile" ;;
41431 "tests/tr/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/tr/Makefile" ;;
41432 "tests/tsort/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/tsort/Makefile" ;;
41433 "tests/unexpand/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/unexpand/Makefile" ;;
41434 "tests/uniq/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/uniq/Makefile" ;;
41435 "tests/wc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/wc/Makefile" ;;
41436 "$ac_config_libobj_dir/fnmatch.h" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_libobj_dir/fnmatch.h:$ac_config_libobj_dir/fnmatch_.h" ;;
41437 "$ac_config_libobj_dir/ftw.h" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_libobj_dir/ftw.h:$ac_config_libobj_dir/ftw_.h" ;;
41438 "$ac_config_libobj_dir/search.h" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_libobj_dir/search.h:$ac_config_libobj_dir/search_.h" ;;
41439 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
41440 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
41441 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.hin" ;;
41442 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
41443 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
41444 { (exit 1); exit 1; }; };;
41448 # If the user did not use the arguments to specify the items to instantiate,
41449 # then the envvar interface is used. Set only those that are not.
41450 # We use the long form for the default assignment because of an extremely
41451 # bizarre bug on SunOS 4.1.3.
41452 if $ac_need_defaults; then
41453 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
41454 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
41455 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
41456 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
41459 # Have a temporary directory for convenience. Make it in the build tree
41460 # simply because there is no reason to put it here, and in addition,
41461 # creating and moving files from /tmp can sometimes cause problems.
41462 # Create a temporary directory, and hook for its removal unless debugging.
41465 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
41466 trap '{ (exit 1); exit 1; }' 1 2 13 15
41469 # Create a (secure) tmp directory for tmp files.
41472 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
41473 test -n "$tmp" && test -d "$tmp"
41476 tmp=./confstat$$-$RANDOM
41477 (umask 077 && mkdir $tmp)
41480 echo "$me: cannot create a temporary directory in ." >&2
41481 { (exit 1); exit 1; }
41486 cat >>$CONFIG_STATUS <<_ACEOF
41489 # CONFIG_FILES section.
41492 # No need to generate the scripts if there are no CONFIG_FILES.
41493 # This happens for instance when ./config.status config.h
41494 if test -n "\$CONFIG_FILES"; then
41495 # Protect against being on the right side of a sed subst in config.status.
41496 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
41497 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
41498 s,@SHELL@,$SHELL,;t t
41499 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
41500 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
41501 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
41502 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
41503 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
41504 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
41505 s,@exec_prefix@,$exec_prefix,;t t
41506 s,@prefix@,$prefix,;t t
41507 s,@program_transform_name@,$program_transform_name,;t t
41508 s,@bindir@,$bindir,;t t
41509 s,@sbindir@,$sbindir,;t t
41510 s,@libexecdir@,$libexecdir,;t t
41511 s,@datadir@,$datadir,;t t
41512 s,@sysconfdir@,$sysconfdir,;t t
41513 s,@sharedstatedir@,$sharedstatedir,;t t
41514 s,@localstatedir@,$localstatedir,;t t
41515 s,@libdir@,$libdir,;t t
41516 s,@includedir@,$includedir,;t t
41517 s,@oldincludedir@,$oldincludedir,;t t
41518 s,@infodir@,$infodir,;t t
41519 s,@mandir@,$mandir,;t t
41520 s,@build_alias@,$build_alias,;t t
41521 s,@host_alias@,$host_alias,;t t
41522 s,@target_alias@,$target_alias,;t t
41523 s,@DEFS@,$DEFS,;t t
41524 s,@ECHO_C@,$ECHO_C,;t t
41525 s,@ECHO_N@,$ECHO_N,;t t
41526 s,@ECHO_T@,$ECHO_T,;t t
41527 s,@LIBS@,$LIBS,;t t
41528 s,@build@,$build,;t t
41529 s,@build_cpu@,$build_cpu,;t t
41530 s,@build_vendor@,$build_vendor,;t t
41531 s,@build_os@,$build_os,;t t
41532 s,@host@,$host,;t t
41533 s,@host_cpu@,$host_cpu,;t t
41534 s,@host_vendor@,$host_vendor,;t t
41535 s,@host_os@,$host_os,;t t
41536 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
41537 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
41538 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
41539 s,@CYGPATH_W@,$CYGPATH_W,;t t
41540 s,@PACKAGE@,$PACKAGE,;t t
41541 s,@VERSION@,$VERSION,;t t
41542 s,@ACLOCAL@,$ACLOCAL,;t t
41543 s,@AUTOCONF@,$AUTOCONF,;t t
41544 s,@AUTOMAKE@,$AUTOMAKE,;t t
41545 s,@AUTOHEADER@,$AUTOHEADER,;t t
41546 s,@MAKEINFO@,$MAKEINFO,;t t
41547 s,@AMTAR@,$AMTAR,;t t
41548 s,@install_sh@,$install_sh,;t t
41549 s,@STRIP@,$STRIP,;t t
41550 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
41551 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
41553 s,@SET_MAKE@,$SET_MAKE,;t t
41554 s,@PERL@,$PERL,;t t
41556 s,@CFLAGS@,$CFLAGS,;t t
41557 s,@LDFLAGS@,$LDFLAGS,;t t
41558 s,@CPPFLAGS@,$CPPFLAGS,;t t
41559 s,@ac_ct_CC@,$ac_ct_CC,;t t
41560 s,@EXEEXT@,$EXEEXT,;t t
41561 s,@OBJEXT@,$OBJEXT,;t t
41562 s,@DEPDIR@,$DEPDIR,;t t
41563 s,@am__include@,$am__include,;t t
41564 s,@am__quote@,$am__quote,;t t
41565 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
41566 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
41567 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
41568 s,@CCDEPMODE@,$CCDEPMODE,;t t
41569 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
41570 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
41572 s,@EGREP@,$EGREP,;t t
41573 s,@RANLIB@,$RANLIB,;t t
41574 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
41575 s,@GNU_PACKAGE@,$GNU_PACKAGE,;t t
41576 s,@HELP2MAN@,$HELP2MAN,;t t
41577 s,@OPTIONAL_BIN_PROGS@,$OPTIONAL_BIN_PROGS,;t t
41578 s,@OPTIONAL_BIN_ZCRIPTS@,$OPTIONAL_BIN_ZCRIPTS,;t t
41580 s,@DF_PROG@,$DF_PROG,;t t
41582 s,@ANSI2KNR@,$ANSI2KNR,;t t
41583 s,@LIBOBJS@,$LIBOBJS,;t t
41584 s,@ALLOCA@,$ALLOCA,;t t
41585 s,@YACC@,$YACC,;t t
41586 s,@LIB_NANOSLEEP@,$LIB_NANOSLEEP,;t t
41587 s,@NEED_SETGID@,$NEED_SETGID,;t t
41588 s,@KMEM_GROUP@,$KMEM_GROUP,;t t
41589 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
41590 s,@LIB_CLOCK_GETTIME@,$LIB_CLOCK_GETTIME,;t t
41591 s,@POW_LIB@,$POW_LIB,;t t
41592 s,@SEQ_LIBM@,$SEQ_LIBM,;t t
41593 s,@GLIBC21@,$GLIBC21,;t t
41594 s,@LIBICONV@,$LIBICONV,;t t
41595 s,@LTLIBICONV@,$LTLIBICONV,;t t
41596 s,@SQRT_LIBM@,$SQRT_LIBM,;t t
41597 s,@FESETROUND_LIBM@,$FESETROUND_LIBM,;t t
41598 s,@LIB_CRYPT@,$LIB_CRYPT,;t t
41599 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
41600 s,@MSGFMT@,$MSGFMT,;t t
41601 s,@GMSGFMT@,$GMSGFMT,;t t
41602 s,@XGETTEXT@,$XGETTEXT,;t t
41603 s,@MSGMERGE@,$MSGMERGE,;t t
41604 s,@USE_NLS@,$USE_NLS,;t t
41605 s,@INTLLIBS@,$INTLLIBS,;t t
41606 s,@LIBINTL@,$LIBINTL,;t t
41607 s,@LTLIBINTL@,$LTLIBINTL,;t t
41608 s,@POSUB@,$POSUB,;t t
41609 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
41614 cat >>$CONFIG_STATUS <<\_ACEOF
41615 # Split the substitutions into bite-sized pieces for seds with
41616 # small command number limits, like on Digital OSF/1 and HP-UX.
41617 ac_max_sed_lines=48
41618 ac_sed_frag=1 # Number of current file.
41619 ac_beg=1 # First line for current file.
41620 ac_end=$ac_max_sed_lines # Line after last line for current file.
41623 while $ac_more_lines; do
41624 if test $ac_beg -gt 1; then
41625 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
41627 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
41629 if test ! -s $tmp/subs.frag; then
41630 ac_more_lines=false
41632 # The purpose of the label and of the branching condition is to
41633 # speed up the sed processing (if there are no `@' at all, there
41634 # is no need to browse any of the substitutions).
41635 # These are the two extra sed commands mentioned above.
41637 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
41638 if test -z "$ac_sed_cmds"; then
41639 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
41641 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
41643 ac_sed_frag=`expr $ac_sed_frag + 1`
41645 ac_end=`expr $ac_end + $ac_max_sed_lines`
41648 if test -z "$ac_sed_cmds"; then
41651 fi # test -n "$CONFIG_FILES"
41654 cat >>$CONFIG_STATUS <<\_ACEOF
41655 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
41656 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
41658 - | *:- | *:-:* ) # input from stdin
41660 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
41661 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
41662 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
41663 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
41664 * ) ac_file_in=$ac_file.in ;;
41667 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
41668 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
41669 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41670 X"$ac_file" : 'X\(//\)[^/]' \| \
41671 X"$ac_file" : 'X\(//\)$' \| \
41672 X"$ac_file" : 'X\(/\)' \| \
41673 . : '\(.\)' 2>/dev/null ||
41675 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
41676 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
41677 /^X\(\/\/\)$/{ s//\1/; q; }
41678 /^X\(\/\).*/{ s//\1/; q; }
41680 { if $as_mkdir_p; then
41685 while test ! -d "$as_dir"; do
41686 as_dirs="$as_dir $as_dirs"
41687 as_dir=`(dirname "$as_dir") 2>/dev/null ||
41688 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41689 X"$as_dir" : 'X\(//\)[^/]' \| \
41690 X"$as_dir" : 'X\(//\)$' \| \
41691 X"$as_dir" : 'X\(/\)' \| \
41692 . : '\(.\)' 2>/dev/null ||
41694 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
41695 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
41696 /^X\(\/\/\)$/{ s//\1/; q; }
41697 /^X\(\/\).*/{ s//\1/; q; }
41700 test ! -n "$as_dirs" || mkdir $as_dirs
41701 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
41702 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
41703 { (exit 1); exit 1; }; }; }
41707 if test "$ac_dir" != .; then
41708 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
41709 # A "../" for each directory in $ac_dir_suffix.
41710 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
41712 ac_dir_suffix= ac_top_builddir=
41716 .) # No --srcdir option. We are building in place.
41718 if test -z "$ac_top_builddir"; then
41721 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
41723 [\\/]* | ?:[\\/]* ) # Absolute path.
41724 ac_srcdir=$srcdir$ac_dir_suffix;
41725 ac_top_srcdir=$srcdir ;;
41726 *) # Relative path.
41727 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
41728 ac_top_srcdir=$ac_top_builddir$srcdir ;;
41730 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
41732 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
41733 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
41734 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
41735 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
41739 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
41740 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
41743 if test x"$ac_file" != x-; then
41744 { echo "$as_me:$LINENO: creating $ac_file" >&5
41745 echo "$as_me: creating $ac_file" >&6;}
41748 # Let's still pretend it is `configure' which instantiates (i.e., don't
41749 # use $as_me), people would be surprised to read:
41750 # /* config.h. Generated by config.status. */
41751 if test x"$ac_file" = x-; then
41754 configure_input="$ac_file. "
41756 configure_input=$configure_input"Generated from `echo $ac_file_in |
41757 sed 's,.*/,,'` by configure."
41759 # First look for the input files in the build tree, otherwise in the
41761 ac_file_inputs=`IFS=:
41762 for f in $ac_file_in; do
41764 -) echo $tmp/stdin ;;
41766 # Absolute (can't be DOS-style, as IFS=:)
41767 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
41768 echo "$as_me: error: cannot find input file: $f" >&2;}
41769 { (exit 1); exit 1; }; }
41772 if test -f "$f"; then
41775 elif test -f "$srcdir/$f"; then
41780 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
41781 echo "$as_me: error: cannot find input file: $f" >&2;}
41782 { (exit 1); exit 1; }; }
41785 done` || { (exit 1); exit 1; }
41787 cat >>$CONFIG_STATUS <<_ACEOF
41791 cat >>$CONFIG_STATUS <<\_ACEOF
41793 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
41794 s,@configure_input@,$configure_input,;t t
41795 s,@srcdir@,$ac_srcdir,;t t
41796 s,@abs_srcdir@,$ac_abs_srcdir,;t t
41797 s,@top_srcdir@,$ac_top_srcdir,;t t
41798 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
41799 s,@builddir@,$ac_builddir,;t t
41800 s,@abs_builddir@,$ac_abs_builddir,;t t
41801 s,@top_builddir@,$ac_top_builddir,;t t
41802 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
41803 s,@INSTALL@,$ac_INSTALL,;t t
41804 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
41806 if test x"$ac_file" != x-; then
41807 mv $tmp/out $ac_file
41815 cat >>$CONFIG_STATUS <<\_ACEOF
41818 # CONFIG_HEADER section.
41821 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
41822 # NAME is the cpp macro being defined and VALUE is the value it is being given.
41824 # ac_d sets the value in "#define NAME VALUE" lines.
41825 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
41826 ac_dB='[ ].*$,\1#\2'
41829 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
41830 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
41831 ac_uB='$,\1#\2define\3'
41835 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
41836 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
41838 - | *:- | *:-:* ) # input from stdin
41840 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
41841 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
41842 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
41843 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
41844 * ) ac_file_in=$ac_file.in ;;
41847 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
41848 echo "$as_me: creating $ac_file" >&6;}
41850 # First look for the input files in the build tree, otherwise in the
41852 ac_file_inputs=`IFS=:
41853 for f in $ac_file_in; do
41855 -) echo $tmp/stdin ;;
41857 # Absolute (can't be DOS-style, as IFS=:)
41858 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
41859 echo "$as_me: error: cannot find input file: $f" >&2;}
41860 { (exit 1); exit 1; }; }
41863 if test -f "$f"; then
41866 elif test -f "$srcdir/$f"; then
41871 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
41872 echo "$as_me: error: cannot find input file: $f" >&2;}
41873 { (exit 1); exit 1; }; }
41876 done` || { (exit 1); exit 1; }
41877 # Remove the trailing spaces.
41878 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
41882 # Transform confdefs.h into two sed scripts, `conftest.defines' and
41883 # `conftest.undefs', that substitutes the proper values into
41884 # config.h.in to produce config.h. The first handles `#define'
41885 # templates, and the second `#undef' templates.
41886 # And first: Protect against being on the right side of a sed subst in
41887 # config.status. Protect against being in an unquoted here document
41888 # in config.status.
41889 rm -f conftest.defines conftest.undefs
41890 # Using a here document instead of a string reduces the quoting nightmare.
41891 # Putting comments in sed scripts is not portable.
41893 # `end' is used to avoid that the second main sed command (meant for
41894 # 0-ary CPP macros) applies to n-ary macro definitions.
41895 # See the Autoconf documentation for `clear'.
41896 cat >confdef2sed.sed <<\_ACEOF
41901 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
41903 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
41906 # If some macros were called several times there might be several times
41907 # the same #defines, which is useless. Nevertheless, we may not want to
41908 # sort them, since we want the *last* AC-DEFINE to be honored.
41909 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
41910 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
41911 rm -f confdef2sed.sed
41913 # This sed command replaces #undef with comments. This is necessary, for
41914 # example, in the case of _POSIX_SOURCE, which is predefined and required
41915 # on some systems where configure will not decide to define it.
41916 cat >>conftest.undefs <<\_ACEOF
41917 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
41920 # Break up conftest.defines because some shells have a limit on the size
41921 # of here documents, and old seds have small limits too (100 cmds).
41922 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
41923 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
41924 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
41925 echo ' :' >>$CONFIG_STATUS
41926 rm -f conftest.tail
41927 while grep . conftest.defines >/dev/null
41929 # Write a limited-size here document to $tmp/defines.sed.
41930 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
41931 # Speed up: don't consider the non `#define' lines.
41932 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
41933 # Work around the forget-to-reset-the-flag bug.
41934 echo 't clr' >>$CONFIG_STATUS
41935 echo ': clr' >>$CONFIG_STATUS
41936 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
41938 sed -f $tmp/defines.sed $tmp/in >$tmp/out
41940 mv $tmp/out $tmp/in
41942 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
41943 rm -f conftest.defines
41944 mv conftest.tail conftest.defines
41946 rm -f conftest.defines
41947 echo ' fi # grep' >>$CONFIG_STATUS
41948 echo >>$CONFIG_STATUS
41950 # Break up conftest.undefs because some shells have a limit on the size
41951 # of here documents, and old seds have small limits too (100 cmds).
41952 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
41953 rm -f conftest.tail
41954 while grep . conftest.undefs >/dev/null
41956 # Write a limited-size here document to $tmp/undefs.sed.
41957 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
41958 # Speed up: don't consider the non `#undef'
41959 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
41960 # Work around the forget-to-reset-the-flag bug.
41961 echo 't clr' >>$CONFIG_STATUS
41962 echo ': clr' >>$CONFIG_STATUS
41963 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
41965 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
41967 mv $tmp/out $tmp/in
41969 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
41970 rm -f conftest.undefs
41971 mv conftest.tail conftest.undefs
41973 rm -f conftest.undefs
41975 cat >>$CONFIG_STATUS <<\_ACEOF
41976 # Let's still pretend it is `configure' which instantiates (i.e., don't
41977 # use $as_me), people would be surprised to read:
41978 # /* config.h. Generated by config.status. */
41979 if test x"$ac_file" = x-; then
41980 echo "/* Generated by configure. */" >$tmp/config.h
41982 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
41984 cat $tmp/in >>$tmp/config.h
41986 if test x"$ac_file" != x-; then
41987 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
41988 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
41989 echo "$as_me: $ac_file is unchanged" >&6;}
41991 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
41992 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41993 X"$ac_file" : 'X\(//\)[^/]' \| \
41994 X"$ac_file" : 'X\(//\)$' \| \
41995 X"$ac_file" : 'X\(/\)' \| \
41996 . : '\(.\)' 2>/dev/null ||
41998 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
41999 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42000 /^X\(\/\/\)$/{ s//\1/; q; }
42001 /^X\(\/\).*/{ s//\1/; q; }
42003 { if $as_mkdir_p; then
42008 while test ! -d "$as_dir"; do
42009 as_dirs="$as_dir $as_dirs"
42010 as_dir=`(dirname "$as_dir") 2>/dev/null ||
42011 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42012 X"$as_dir" : 'X\(//\)[^/]' \| \
42013 X"$as_dir" : 'X\(//\)$' \| \
42014 X"$as_dir" : 'X\(/\)' \| \
42015 . : '\(.\)' 2>/dev/null ||
42017 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42018 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42019 /^X\(\/\/\)$/{ s//\1/; q; }
42020 /^X\(\/\).*/{ s//\1/; q; }
42023 test ! -n "$as_dirs" || mkdir $as_dirs
42024 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
42025 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
42026 { (exit 1); exit 1; }; }; }
42029 mv $tmp/config.h $ac_file
42033 rm -f $tmp/config.h
42035 _am_stamp_count=`expr ${_am_stamp_count-0} + 1`
42036 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
42037 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42038 X$ac_file : 'X\(//\)[^/]' \| \
42039 X$ac_file : 'X\(//\)$' \| \
42040 X$ac_file : 'X\(/\)' \| \
42041 . : '\(.\)' 2>/dev/null ||
42043 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42044 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42045 /^X\(\/\/\)$/{ s//\1/; q; }
42046 /^X\(\/\).*/{ s//\1/; q; }
42047 s/.*/./; q'`/stamp-h$_am_stamp_count
42050 cat >>$CONFIG_STATUS <<\_ACEOF
42053 # CONFIG_LINKS section.
42056 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
42057 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
42058 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
42060 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
42061 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
42063 if test ! -r $srcdir/$ac_source; then
42064 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
42065 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
42066 { (exit 1); exit 1; }; }
42070 # Make relative symlinks.
42071 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
42072 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42073 X"$ac_dest" : 'X\(//\)[^/]' \| \
42074 X"$ac_dest" : 'X\(//\)$' \| \
42075 X"$ac_dest" : 'X\(/\)' \| \
42076 . : '\(.\)' 2>/dev/null ||
42078 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42079 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42080 /^X\(\/\/\)$/{ s//\1/; q; }
42081 /^X\(\/\).*/{ s//\1/; q; }
42083 { if $as_mkdir_p; then
42084 mkdir -p "$ac_dest_dir"
42086 as_dir="$ac_dest_dir"
42088 while test ! -d "$as_dir"; do
42089 as_dirs="$as_dir $as_dirs"
42090 as_dir=`(dirname "$as_dir") 2>/dev/null ||
42091 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42092 X"$as_dir" : 'X\(//\)[^/]' \| \
42093 X"$as_dir" : 'X\(//\)$' \| \
42094 X"$as_dir" : 'X\(/\)' \| \
42095 . : '\(.\)' 2>/dev/null ||
42097 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42098 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42099 /^X\(\/\/\)$/{ s//\1/; q; }
42100 /^X\(\/\).*/{ s//\1/; q; }
42103 test ! -n "$as_dirs" || mkdir $as_dirs
42104 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
42105 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
42106 { (exit 1); exit 1; }; }; }
42110 if test "$ac_dest_dir" != .; then
42111 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
42112 # A "../" for each directory in $ac_dir_suffix.
42113 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
42115 ac_dir_suffix= ac_top_builddir=
42119 .) # No --srcdir option. We are building in place.
42121 if test -z "$ac_top_builddir"; then
42124 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
42126 [\\/]* | ?:[\\/]* ) # Absolute path.
42127 ac_srcdir=$srcdir$ac_dir_suffix;
42128 ac_top_srcdir=$srcdir ;;
42129 *) # Relative path.
42130 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
42131 ac_top_srcdir=$ac_top_builddir$srcdir ;;
42133 # Don't blindly perform a `cd "$ac_dest_dir"/$ac_foo && pwd` since $ac_foo can be
42135 ac_abs_builddir=`cd "$ac_dest_dir" && cd $ac_builddir && pwd`
42136 ac_abs_top_builddir=`cd "$ac_dest_dir" && cd ${ac_top_builddir}. && pwd`
42137 ac_abs_srcdir=`cd "$ac_dest_dir" && cd $ac_srcdir && pwd`
42138 ac_abs_top_srcdir=`cd "$ac_dest_dir" && cd $ac_top_srcdir && pwd`
42142 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
42143 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
42146 # Try a symlink, then a hard link, then a copy.
42147 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
42148 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
42149 cp -p $srcdir/$ac_source $ac_dest ||
42150 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
42151 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
42152 { (exit 1); exit 1; }; }
42155 cat >>$CONFIG_STATUS <<\_ACEOF
42158 # CONFIG_COMMANDS section.
42160 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
42161 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
42162 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
42163 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
42164 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42165 X"$ac_dest" : 'X\(//\)[^/]' \| \
42166 X"$ac_dest" : 'X\(//\)$' \| \
42167 X"$ac_dest" : 'X\(/\)' \| \
42168 . : '\(.\)' 2>/dev/null ||
42170 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42171 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42172 /^X\(\/\/\)$/{ s//\1/; q; }
42173 /^X\(\/\).*/{ s//\1/; q; }
42177 if test "$ac_dir" != .; then
42178 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
42179 # A "../" for each directory in $ac_dir_suffix.
42180 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
42182 ac_dir_suffix= ac_top_builddir=
42186 .) # No --srcdir option. We are building in place.
42188 if test -z "$ac_top_builddir"; then
42191 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
42193 [\\/]* | ?:[\\/]* ) # Absolute path.
42194 ac_srcdir=$srcdir$ac_dir_suffix;
42195 ac_top_srcdir=$srcdir ;;
42196 *) # Relative path.
42197 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
42198 ac_top_srcdir=$ac_top_builddir$srcdir ;;
42200 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
42202 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
42203 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
42204 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
42205 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
42208 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
42209 echo "$as_me: executing $ac_dest commands" >&6;}
42211 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
42212 # Strip MF so we end up with the name of the file.
42213 mf=`echo "$mf" | sed -e 's/:.*$//'`
42214 # Check whether this is an Automake generated Makefile or not.
42215 # We used to match only the files named `Makefile.in', but
42216 # some people rename them; so instead we look at the file content.
42217 # Grep'ing the first line is not enough: some people post-process
42218 # each Makefile.in and add a new line on top of each file to say so.
42219 # So let's grep whole file.
42220 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
42221 dirpart=`(dirname "$mf") 2>/dev/null ||
42222 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42223 X"$mf" : 'X\(//\)[^/]' \| \
42224 X"$mf" : 'X\(//\)$' \| \
42225 X"$mf" : 'X\(/\)' \| \
42226 . : '\(.\)' 2>/dev/null ||
42228 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42229 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42230 /^X\(\/\/\)$/{ s//\1/; q; }
42231 /^X\(\/\).*/{ s//\1/; q; }
42236 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
42237 # Extract the definition of DEP_FILES from the Makefile without
42239 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
42240 test -z "$DEPDIR" && continue
42241 # When using ansi2knr, U may be empty or an underscore; expand it
42242 U=`sed -n -e '/^U = / s///p' < "$mf"`
42243 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
42244 # We invoke sed twice because it is the simplest approach to
42245 # changing $(DEPDIR) to its actual value in the expansion.
42246 for file in `sed -n -e '
42247 /^DEP_FILES = .*\\\\$/ {
42256 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
42257 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
42258 # Make sure the directory exists.
42259 test -f "$dirpart/$file" && continue
42260 fdir=`(dirname "$file") 2>/dev/null ||
42261 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42262 X"$file" : 'X\(//\)[^/]' \| \
42263 X"$file" : 'X\(//\)$' \| \
42264 X"$file" : 'X\(/\)' \| \
42265 . : '\(.\)' 2>/dev/null ||
42267 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42268 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42269 /^X\(\/\/\)$/{ s//\1/; q; }
42270 /^X\(\/\).*/{ s//\1/; q; }
42272 { if $as_mkdir_p; then
42273 mkdir -p $dirpart/$fdir
42275 as_dir=$dirpart/$fdir
42277 while test ! -d "$as_dir"; do
42278 as_dirs="$as_dir $as_dirs"
42279 as_dir=`(dirname "$as_dir") 2>/dev/null ||
42280 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42281 X"$as_dir" : 'X\(//\)[^/]' \| \
42282 X"$as_dir" : 'X\(//\)$' \| \
42283 X"$as_dir" : 'X\(/\)' \| \
42284 . : '\(.\)' 2>/dev/null ||
42286 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42287 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42288 /^X\(\/\/\)$/{ s//\1/; q; }
42289 /^X\(\/\).*/{ s//\1/; q; }
42292 test ! -n "$as_dirs" || mkdir $as_dirs
42293 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
42294 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
42295 { (exit 1); exit 1; }; }; }
42297 # echo "creating $dirpart/$file"
42298 echo '# dummy' > "$dirpart/$file"
42303 for ac_file in $CONFIG_FILES; do
42304 # Support "outfile[:infile[:infile...]]"
42306 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
42308 # PO directories have a Makefile.in generated from Makefile.in.in.
42309 case "$ac_file" in */Makefile.in)
42310 # Adjust a relative srcdir.
42311 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
42312 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
42313 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
42314 # In autoconf-2.13 it is called $ac_given_srcdir.
42315 # In autoconf-2.50 it is called $srcdir.
42316 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
42317 case "$ac_given_srcdir" in
42318 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
42319 /*) top_srcdir="$ac_given_srcdir" ;;
42320 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
42322 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
42323 rm -f "$ac_dir/POTFILES"
42324 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
42325 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
42326 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
42327 # on $ac_dir but don't depend on user-specified configuration
42329 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
42330 # The LINGUAS file contains the set of available languages.
42331 if test -n "$ALL_LINGUAS"; then
42332 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
42334 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
42335 # Hide the ALL_LINGUAS assigment from automake.
42336 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
42338 case "$ac_given_srcdir" in
42340 *) srcdirpre='$(srcdir)/' ;;
42346 for lang in $ALL_LINGUAS; do
42347 POFILES="$POFILES $srcdirpre$lang.po"
42348 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
42349 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
42350 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
42352 # CATALOGS depends on both $ac_dir and the user's LINGUAS
42353 # environment variable.
42355 if test -n "$ALL_LINGUAS"; then
42356 for presentlang in $ALL_LINGUAS; do
42358 if test "%UNSET%" != "$LINGUAS"; then
42359 desiredlanguages="$LINGUAS"
42361 desiredlanguages="$ALL_LINGUAS"
42363 for desiredlang in $desiredlanguages; do
42364 # Use the presentlang catalog if desiredlang is
42365 # a. equal to presentlang, or
42366 # b. a variant of presentlang (because in this case,
42367 # presentlang can be used as a fallback for messages
42368 # which are not translated in the desiredlang catalog).
42369 case "$desiredlang" in
42370 "$presentlang"*) useit=yes;;
42373 if test $useit = yes; then
42374 INST_LINGUAS="$INST_LINGUAS $presentlang"
42379 if test -n "$INST_LINGUAS"; then
42380 for lang in $INST_LINGUAS; do
42381 CATALOGS="$CATALOGS $lang.gmo"
42384 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
42385 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"
42386 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
42387 if test -f "$f"; then
42389 *.orig | *.bak | *~) ;;
42390 *) cat "$f" >> "$ac_dir/Makefile" ;;
42402 cat >>$CONFIG_STATUS <<\_ACEOF
42404 { (exit 0); exit 0; }
42406 chmod +x $CONFIG_STATUS
42407 ac_clean_files=$ac_clean_files_save
42410 # configure is writing to config.log, and then calls config.status.
42411 # config.status does its own redirection, appending to config.log.
42412 # Unfortunately, on DOS this fails, as config.log is still kept open
42413 # by configure, so config.status won't be able to write to it; its
42414 # output is simply discarded. So we exec the FD to /dev/null,
42415 # effectively closing config.log, so it can be properly (re)opened and
42416 # appended to by config.status. When coming back to configure, we
42417 # need to make the FD available again.
42418 if test "$no_create" != yes; then
42420 ac_config_status_args=
42421 test "$silent" = yes &&
42422 ac_config_status_args="$ac_config_status_args --quiet"
42424 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
42426 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
42427 # would make configure fail if this is the last instruction.
42428 $ac_cs_success || { (exit 1); exit 1; }