the patch from 2006-08-18 broke on cygwin.
[coreutils/ericb.git] / configure
blob6ce5f9369f927a2527222121cbfddc3369a854d1
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for GNU coreutils 6.1.
5 # Report bugs to <bug-coreutils@gnu.org>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 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
17 emulate sh
18 NULLCMD=:
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 setopt NO_GLOB_SUBST
23 else
24 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
26 BIN_SH=xpg4; export BIN_SH # for Tru64
27 DUALCASE=1; export DUALCASE # for MKS sh
30 # PATH needs CR
31 # Avoid depending upon Character Ranges.
32 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35 as_cr_digits='0123456789'
36 as_cr_alnum=$as_cr_Letters$as_cr_digits
38 # The user is always right.
39 if test "${PATH_SEPARATOR+set}" != set; then
40 echo "#! /bin/sh" >conf$$.sh
41 echo "exit 0" >>conf$$.sh
42 chmod +x conf$$.sh
43 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
44 PATH_SEPARATOR=';'
45 else
46 PATH_SEPARATOR=:
48 rm -f conf$$.sh
51 # Support unset when possible.
52 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
53 as_unset=unset
54 else
55 as_unset=false
59 # IFS
60 # We need space, tab and new line, in precisely that order. Quoting is
61 # there to prevent editors from complaining about space-tab.
62 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
63 # splitting by setting IFS to empty value.)
64 as_nl='
66 IFS=" "" $as_nl"
68 # Find who we are. Look in the path if we contain no directory separator.
69 case $0 in
70 *[\\/]* ) as_myself=$0 ;;
71 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
72 for as_dir in $PATH
74 IFS=$as_save_IFS
75 test -z "$as_dir" && as_dir=.
76 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
77 done
78 IFS=$as_save_IFS
81 esac
82 # We did not find ourselves, most probably we were run as `sh COMMAND'
83 # in which case we are not to be found in the path.
84 if test "x$as_myself" = x; then
85 as_myself=$0
87 if test ! -f "$as_myself"; then
88 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
89 { (exit 1); exit 1; }
92 # Work around bugs in pre-3.0 UWIN ksh.
93 for as_var in ENV MAIL MAILPATH
94 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
95 done
96 PS1='$ '
97 PS2='> '
98 PS4='+ '
100 # NLS nuisances.
101 for as_var in \
102 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
103 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
104 LC_TELEPHONE LC_TIME
106 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
107 eval $as_var=C; export $as_var
108 else
109 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
111 done
113 # Required to use basename.
114 if expr a : '\(a\)' >/dev/null 2>&1 &&
115 test "X`expr 00001 : '.*\(...\)'`" = X001; then
116 as_expr=expr
117 else
118 as_expr=false
121 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
122 as_basename=basename
123 else
124 as_basename=false
128 # Name of the executable.
129 as_me=`$as_basename -- "$0" ||
130 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
131 X"$0" : 'X\(//\)$' \| \
132 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
133 echo X/"$0" |
134 sed '/^.*\/\([^/][^/]*\)\/*$/{
135 s//\1/
138 /^X\/\(\/\/\)$/{
139 s//\1/
142 /^X\/\(\/\).*/{
143 s//\1/
146 s/.*/./; q'`
148 # CDPATH.
149 $as_unset CDPATH
152 if test "x$CONFIG_SHELL" = x; then
153 if (eval ":") 2>/dev/null; then
154 as_have_required=yes
155 else
156 as_have_required=no
159 if test $as_have_required = yes && (eval ":
160 (as_func_return () {
161 (exit \$1)
163 as_func_success () {
164 as_func_return 0
166 as_func_failure () {
167 as_func_return 1
169 as_func_ret_success () {
170 return 0
172 as_func_ret_failure () {
173 return 1
176 exitcode=0
177 if as_func_success; then
179 else
180 exitcode=1
181 echo as_func_success failed.
184 if as_func_failure; then
185 exitcode=1
186 echo as_func_failure succeeded.
189 if as_func_ret_success; then
191 else
192 exitcode=1
193 echo as_func_ret_success failed.
196 if as_func_ret_failure; then
197 exitcode=1
198 echo as_func_ret_failure succeeded.
201 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
203 else
204 exitcode=1
205 echo positional parameters were not saved.
208 test \$exitcode = 0) || { (exit 1); exit 1; }
211 as_lineno_1=\$LINENO
212 as_lineno_2=\$LINENO
213 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
214 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
215 ") 2> /dev/null; then
217 else
218 as_candidate_shells=
219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 case $as_dir in
226 for as_base in sh bash ksh sh5; do
227 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
228 done;;
229 esac
230 done
231 IFS=$as_save_IFS
234 for as_shell in $as_candidate_shells $SHELL; do
235 # Try only shells that exist, to save several forks.
236 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
237 { ("$as_shell") 2> /dev/null <<\_ASEOF
238 # Be Bourne compatible
239 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
240 emulate sh
241 NULLCMD=:
242 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
243 # is contrary to our usage. Disable this feature.
244 alias -g '${1+"$@"}'='"$@"'
245 setopt NO_GLOB_SUBST
246 else
247 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
249 BIN_SH=xpg4; export BIN_SH # for Tru64
250 DUALCASE=1; export DUALCASE # for MKS sh
253 _ASEOF
254 }; then
255 CONFIG_SHELL=$as_shell
256 as_have_required=yes
257 if { "$as_shell" 2> /dev/null <<\_ASEOF
258 # Be Bourne compatible
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260 emulate sh
261 NULLCMD=:
262 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
265 setopt NO_GLOB_SUBST
266 else
267 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
269 BIN_SH=xpg4; export BIN_SH # for Tru64
270 DUALCASE=1; export DUALCASE # for MKS sh
273 (as_func_return () {
274 (exit $1)
276 as_func_success () {
277 as_func_return 0
279 as_func_failure () {
280 as_func_return 1
282 as_func_ret_success () {
283 return 0
285 as_func_ret_failure () {
286 return 1
289 exitcode=0
290 if as_func_success; then
292 else
293 exitcode=1
294 echo as_func_success failed.
297 if as_func_failure; then
298 exitcode=1
299 echo as_func_failure succeeded.
302 if as_func_ret_success; then
304 else
305 exitcode=1
306 echo as_func_ret_success failed.
309 if as_func_ret_failure; then
310 exitcode=1
311 echo as_func_ret_failure succeeded.
314 if ( set x; as_func_ret_success y && test x = "$1" ); then
316 else
317 exitcode=1
318 echo positional parameters were not saved.
321 test $exitcode = 0) || { (exit 1); exit 1; }
324 as_lineno_1=$LINENO
325 as_lineno_2=$LINENO
326 test "x$as_lineno_1" != "x$as_lineno_2" &&
327 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
329 _ASEOF
330 }; then
331 break
336 done
338 if test "x$CONFIG_SHELL" != x; then
339 for as_var in BASH_ENV ENV
340 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
341 done
342 export CONFIG_SHELL
343 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
347 if test $as_have_required = no; then
348 echo This script requires a shell more modern than all the
349 echo shells that I found on your system. Please install a
350 echo modern shell, or manually run the script under such a
351 echo shell if you do have one.
352 { (exit 1); exit 1; }
362 (eval "as_func_return () {
363 (exit \$1)
365 as_func_success () {
366 as_func_return 0
368 as_func_failure () {
369 as_func_return 1
371 as_func_ret_success () {
372 return 0
374 as_func_ret_failure () {
375 return 1
378 exitcode=0
379 if as_func_success; then
381 else
382 exitcode=1
383 echo as_func_success failed.
386 if as_func_failure; then
387 exitcode=1
388 echo as_func_failure succeeded.
391 if as_func_ret_success; then
393 else
394 exitcode=1
395 echo as_func_ret_success failed.
398 if as_func_ret_failure; then
399 exitcode=1
400 echo as_func_ret_failure succeeded.
403 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
405 else
406 exitcode=1
407 echo positional parameters were not saved.
410 test \$exitcode = 0") || {
411 echo No shell found that supports shell functions.
412 echo Please tell autoconf@gnu.org about your system,
413 echo including any error possibly output before this
414 echo message
419 as_lineno_1=$LINENO
420 as_lineno_2=$LINENO
421 test "x$as_lineno_1" != "x$as_lineno_2" &&
422 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
424 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
425 # uniformly replaced by the line number. The first 'sed' inserts a
426 # line-number line after each line using $LINENO; the second 'sed'
427 # does the real work. The second script uses 'N' to pair each
428 # line-number line with the line containing $LINENO, and appends
429 # trailing '-' during substitution so that $LINENO is not a special
430 # case at line end.
431 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
432 # scripts with optimization help from Paolo Bonzini. Blame Lee
433 # E. McMahon (1931-1989) for sed's syntax. :-)
434 sed -n '
436 /[$]LINENO/=
437 ' <$as_myself |
438 sed '
439 s/[$]LINENO.*/&-/
440 t lineno
442 :lineno
444 :loop
445 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
446 t loop
447 s/-\n.*//
448 ' >$as_me.lineno &&
449 chmod +x "$as_me.lineno" ||
450 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
451 { (exit 1); exit 1; }; }
453 # Don't try to exec as it changes $[0], causing all sort of problems
454 # (the dirname of $[0] is not the place where we might find the
455 # original and so on. Autoconf is especially sensitive to this).
456 . "./$as_me.lineno"
457 # Exit status is that of the last command.
458 exit
462 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
463 as_dirname=dirname
464 else
465 as_dirname=false
468 ECHO_C= ECHO_N= ECHO_T=
469 case `echo -n x` in
470 -n*)
471 case `echo 'x\c'` in
472 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
473 *) ECHO_C='\c';;
474 esac;;
476 ECHO_N='-n';;
477 esac
479 if expr a : '\(a\)' >/dev/null 2>&1 &&
480 test "X`expr 00001 : '.*\(...\)'`" = X001; then
481 as_expr=expr
482 else
483 as_expr=false
486 rm -f conf$$ conf$$.exe conf$$.file
487 if test -d conf$$.dir; then
488 rm -f conf$$.dir/conf$$.file
489 else
490 rm -f conf$$.dir
491 mkdir conf$$.dir
493 echo >conf$$.file
494 if ln -s conf$$.file conf$$ 2>/dev/null; then
495 as_ln_s='ln -s'
496 # ... but there are two gotchas:
497 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
498 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
499 # In both cases, we have to default to `cp -p'.
500 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
501 as_ln_s='cp -p'
502 elif ln conf$$.file conf$$ 2>/dev/null; then
503 as_ln_s=ln
504 else
505 as_ln_s='cp -p'
507 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
508 rmdir conf$$.dir 2>/dev/null
510 if mkdir -p . 2>/dev/null; then
511 as_mkdir_p=:
512 else
513 test -d ./-p && rmdir ./-p
514 as_mkdir_p=false
517 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
518 # systems may use methods other than mode bits to determine executability.
519 cat >conf$$.file <<_ASEOF
520 #! /bin/sh
521 exit 0
522 _ASEOF
523 chmod +x conf$$.file
524 if test -x conf$$.file >/dev/null 2>&1; then
525 as_executable_p="test -x"
526 else
527 as_executable_p=:
529 rm -f conf$$.file
531 # Sed expression to map a string onto a valid CPP name.
532 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
534 # Sed expression to map a string onto a valid variable name.
535 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
539 exec 7<&0 </dev/null 6>&1
541 # Name of the host.
542 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
543 # so uname gets run too.
544 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
547 # Initializations.
549 ac_default_prefix=/usr/local
550 ac_clean_files=
551 ac_config_libobj_dir=.
552 LIBOBJS=
553 cross_compiling=no
554 subdirs=
555 MFLAGS=
556 MAKEFLAGS=
557 SHELL=${CONFIG_SHELL-/bin/sh}
559 # Identity of this package.
560 PACKAGE_NAME='GNU coreutils'
561 PACKAGE_TARNAME='coreutils'
562 PACKAGE_VERSION='6.1'
563 PACKAGE_STRING='GNU coreutils 6.1'
564 PACKAGE_BUGREPORT='bug-coreutils@gnu.org'
566 ac_unique_file="src/ls.c"
567 # Factoring default headers for most tests.
568 ac_includes_default="\
569 #include <stdio.h>
570 #if HAVE_SYS_TYPES_H
571 # include <sys/types.h>
572 #endif
573 #if HAVE_SYS_STAT_H
574 # include <sys/stat.h>
575 #endif
576 #if STDC_HEADERS
577 # include <stdlib.h>
578 # include <stddef.h>
579 #else
580 # if HAVE_STDLIB_H
581 # include <stdlib.h>
582 # endif
583 #endif
584 #if HAVE_STRING_H
585 # if !STDC_HEADERS && HAVE_MEMORY_H
586 # include <memory.h>
587 # endif
588 # include <string.h>
589 #endif
590 #if HAVE_STRINGS_H
591 # include <strings.h>
592 #endif
593 #if HAVE_INTTYPES_H
594 # include <inttypes.h>
595 #endif
596 #if HAVE_STDINT_H
597 # include <stdint.h>
598 #endif
599 #if HAVE_UNISTD_H
600 # include <unistd.h>
601 #endif"
603 ac_header_list=
604 ac_func_list=
605 ac_config_libobj_dir=lib
606 ac_subst_vars='SHELL
607 PATH_SEPARATOR
608 PACKAGE_NAME
609 PACKAGE_TARNAME
610 PACKAGE_VERSION
611 PACKAGE_STRING
612 PACKAGE_BUGREPORT
613 exec_prefix
614 prefix
615 program_transform_name
616 bindir
617 sbindir
618 libexecdir
619 datarootdir
620 datadir
621 sysconfdir
622 sharedstatedir
623 localstatedir
624 includedir
625 oldincludedir
626 docdir
627 infodir
628 htmldir
629 dvidir
630 pdfdir
631 psdir
632 libdir
633 localedir
634 mandir
635 DEFS
636 ECHO_C
637 ECHO_N
638 ECHO_T
639 LIBS
640 build_alias
641 host_alias
642 target_alias
643 build
644 build_cpu
645 build_vendor
646 build_os
647 host
648 host_cpu
649 host_vendor
650 host_os
651 INSTALL_PROGRAM
652 INSTALL_SCRIPT
653 INSTALL_DATA
654 CYGPATH_W
655 PACKAGE
656 VERSION
657 ACLOCAL
658 AUTOCONF
659 AUTOMAKE
660 AUTOHEADER
661 MAKEINFO
662 install_sh
663 STRIP
664 INSTALL_STRIP_PROGRAM
665 mkdir_p
667 SET_MAKE
668 am__leading_dot
669 AMTAR
670 am__tar
671 am__untar
672 DEFAULT_POSIX2_VERSION
674 CFLAGS
675 LDFLAGS
676 CPPFLAGS
677 ac_ct_CC
678 EXEEXT
679 OBJEXT
680 DEPDIR
681 am__include
682 am__quote
683 AMDEP_TRUE
684 AMDEP_FALSE
685 AMDEPBACKSLASH
686 CCDEPMODE
687 am__fastdepCC_TRUE
688 am__fastdepCC_FALSE
690 GREP
691 EGREP
692 PERL
693 RANLIB
694 LN_S
695 GNU_PACKAGE
696 HELP2MAN
697 OPTIONAL_BIN_PROGS
699 DF_PROG
701 ANSI2KNR
702 LIBOBJS
703 STDBOOL_H
704 HAVE__BOOL
705 ALLOCA
706 ALLOCA_H
707 SYS_SOCKET_H
708 FNMATCH_H
709 NEED_SETGID
710 KMEM_GROUP
711 GETLOADAVG_LIBS
712 LIB_EACCESS
713 POW_LIB
714 EOVERFLOW
715 YACC
716 YFLAGS
717 LIB_CLOCK_GETTIME
718 LIB_GETHRXTIME
719 GETOPT_H
720 ARPA_INET_H
721 NETINET_IN_H
722 GLIBC21
723 HAVE_LONG_LONG_INT
724 HAVE_WCHAR_H
725 HAVE_INTTYPES_H
726 HAVE_SYS_TYPES_H
727 ABSOLUTE_STDINT_H
728 HAVE_STDINT_H
729 HAVE_SYS_INTTYPES_H
730 HAVE_SYS_BITYPES_H
731 BITSIZEOF_PTRDIFF_T
732 BITSIZEOF_SIG_ATOMIC_T
733 BITSIZEOF_SIZE_T
734 BITSIZEOF_WCHAR_T
735 BITSIZEOF_WINT_T
736 HAVE_SIGNED_SIG_ATOMIC_T
737 HAVE_SIGNED_WCHAR_T
738 HAVE_SIGNED_WINT_T
739 PTRDIFF_T_SUFFIX
740 SIG_ATOMIC_T_SUFFIX
741 SIZE_T_SUFFIX
742 WCHAR_T_SUFFIX
743 WINT_T_SUFFIX
744 STDINT_H
745 LIB_NANOSLEEP
746 LIB_ACL
747 LIB_FDATASYNC
748 SEQ_LIBM
749 LIBICONV
750 LTLIBICONV
751 LIB_CRYPT
752 USE_NLS
753 MSGFMT
754 GMSGFMT
755 MSGFMT_015
756 GMSGFMT_015
757 XGETTEXT
758 XGETTEXT_015
759 MSGMERGE
760 INTL_MACOSX_LIBS
761 INTLLIBS
762 LIBINTL
763 LTLIBINTL
764 POSUB
765 LTLIBOBJS'
766 ac_subst_files=''
767 ac_precious_vars='build_alias
768 host_alias
769 target_alias
770 DEFAULT_POSIX2_VERSION
772 CFLAGS
773 LDFLAGS
774 CPPFLAGS
776 YACC
777 YFLAGS'
780 # Initialize some variables set by options.
781 ac_init_help=
782 ac_init_version=false
783 # The variables have the same names as the options, with
784 # dashes changed to underlines.
785 cache_file=/dev/null
786 exec_prefix=NONE
787 no_create=
788 no_recursion=
789 prefix=NONE
790 program_prefix=NONE
791 program_suffix=NONE
792 program_transform_name=s,x,x,
793 silent=
794 site=
795 srcdir=
796 verbose=
797 x_includes=NONE
798 x_libraries=NONE
800 # Installation directory options.
801 # These are left unexpanded so users can "make install exec_prefix=/foo"
802 # and all the variables that are supposed to be based on exec_prefix
803 # by default will actually change.
804 # Use braces instead of parens because sh, perl, etc. also accept them.
805 # (The list follows the same order as the GNU Coding Standards.)
806 bindir='${exec_prefix}/bin'
807 sbindir='${exec_prefix}/sbin'
808 libexecdir='${exec_prefix}/libexec'
809 datarootdir='${prefix}/share'
810 datadir='${datarootdir}'
811 sysconfdir='${prefix}/etc'
812 sharedstatedir='${prefix}/com'
813 localstatedir='${prefix}/var'
814 includedir='${prefix}/include'
815 oldincludedir='/usr/include'
816 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
817 infodir='${datarootdir}/info'
818 htmldir='${docdir}'
819 dvidir='${docdir}'
820 pdfdir='${docdir}'
821 psdir='${docdir}'
822 libdir='${exec_prefix}/lib'
823 localedir='${datarootdir}/locale'
824 mandir='${datarootdir}/man'
826 ac_prev=
827 ac_dashdash=
828 for ac_option
830 # If the previous option needs an argument, assign it.
831 if test -n "$ac_prev"; then
832 eval $ac_prev=\$ac_option
833 ac_prev=
834 continue
837 case $ac_option in
838 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
839 *) ac_optarg=yes ;;
840 esac
842 # Accept the important Cygnus configure options, so we can diagnose typos.
844 case $ac_dashdash$ac_option in
846 ac_dashdash=yes ;;
848 -bindir | --bindir | --bindi | --bind | --bin | --bi)
849 ac_prev=bindir ;;
850 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
851 bindir=$ac_optarg ;;
853 -build | --build | --buil | --bui | --bu)
854 ac_prev=build_alias ;;
855 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
856 build_alias=$ac_optarg ;;
858 -cache-file | --cache-file | --cache-fil | --cache-fi \
859 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
860 ac_prev=cache_file ;;
861 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
862 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
863 cache_file=$ac_optarg ;;
865 --config-cache | -C)
866 cache_file=config.cache ;;
868 -datadir | --datadir | --datadi | --datad)
869 ac_prev=datadir ;;
870 -datadir=* | --datadir=* | --datadi=* | --datad=*)
871 datadir=$ac_optarg ;;
873 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
874 | --dataroo | --dataro | --datar)
875 ac_prev=datarootdir ;;
876 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
877 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
878 datarootdir=$ac_optarg ;;
880 -disable-* | --disable-*)
881 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
882 # Reject names that are not valid shell variable names.
883 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
884 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
885 { (exit 1); exit 1; }; }
886 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
887 eval enable_$ac_feature=no ;;
889 -docdir | --docdir | --docdi | --doc | --do)
890 ac_prev=docdir ;;
891 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
892 docdir=$ac_optarg ;;
894 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
895 ac_prev=dvidir ;;
896 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
897 dvidir=$ac_optarg ;;
899 -enable-* | --enable-*)
900 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
901 # Reject names that are not valid shell variable names.
902 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
903 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
904 { (exit 1); exit 1; }; }
905 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
906 eval enable_$ac_feature=\$ac_optarg ;;
908 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
909 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
910 | --exec | --exe | --ex)
911 ac_prev=exec_prefix ;;
912 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
913 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
914 | --exec=* | --exe=* | --ex=*)
915 exec_prefix=$ac_optarg ;;
917 -gas | --gas | --ga | --g)
918 # Obsolete; use --with-gas.
919 with_gas=yes ;;
921 -help | --help | --hel | --he | -h)
922 ac_init_help=long ;;
923 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
924 ac_init_help=recursive ;;
925 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
926 ac_init_help=short ;;
928 -host | --host | --hos | --ho)
929 ac_prev=host_alias ;;
930 -host=* | --host=* | --hos=* | --ho=*)
931 host_alias=$ac_optarg ;;
933 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
934 ac_prev=htmldir ;;
935 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
936 | --ht=*)
937 htmldir=$ac_optarg ;;
939 -includedir | --includedir | --includedi | --included | --include \
940 | --includ | --inclu | --incl | --inc)
941 ac_prev=includedir ;;
942 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
943 | --includ=* | --inclu=* | --incl=* | --inc=*)
944 includedir=$ac_optarg ;;
946 -infodir | --infodir | --infodi | --infod | --info | --inf)
947 ac_prev=infodir ;;
948 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
949 infodir=$ac_optarg ;;
951 -libdir | --libdir | --libdi | --libd)
952 ac_prev=libdir ;;
953 -libdir=* | --libdir=* | --libdi=* | --libd=*)
954 libdir=$ac_optarg ;;
956 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
957 | --libexe | --libex | --libe)
958 ac_prev=libexecdir ;;
959 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
960 | --libexe=* | --libex=* | --libe=*)
961 libexecdir=$ac_optarg ;;
963 -localedir | --localedir | --localedi | --localed | --locale)
964 ac_prev=localedir ;;
965 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
966 localedir=$ac_optarg ;;
968 -localstatedir | --localstatedir | --localstatedi | --localstated \
969 | --localstate | --localstat | --localsta | --localst | --locals)
970 ac_prev=localstatedir ;;
971 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
972 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
973 localstatedir=$ac_optarg ;;
975 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
976 ac_prev=mandir ;;
977 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
978 mandir=$ac_optarg ;;
980 -nfp | --nfp | --nf)
981 # Obsolete; use --without-fp.
982 with_fp=no ;;
984 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
985 | --no-cr | --no-c | -n)
986 no_create=yes ;;
988 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
989 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
990 no_recursion=yes ;;
992 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
993 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
994 | --oldin | --oldi | --old | --ol | --o)
995 ac_prev=oldincludedir ;;
996 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
997 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
998 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
999 oldincludedir=$ac_optarg ;;
1001 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1002 ac_prev=prefix ;;
1003 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1004 prefix=$ac_optarg ;;
1006 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1007 | --program-pre | --program-pr | --program-p)
1008 ac_prev=program_prefix ;;
1009 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1010 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1011 program_prefix=$ac_optarg ;;
1013 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1014 | --program-suf | --program-su | --program-s)
1015 ac_prev=program_suffix ;;
1016 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1017 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1018 program_suffix=$ac_optarg ;;
1020 -program-transform-name | --program-transform-name \
1021 | --program-transform-nam | --program-transform-na \
1022 | --program-transform-n | --program-transform- \
1023 | --program-transform | --program-transfor \
1024 | --program-transfo | --program-transf \
1025 | --program-trans | --program-tran \
1026 | --progr-tra | --program-tr | --program-t)
1027 ac_prev=program_transform_name ;;
1028 -program-transform-name=* | --program-transform-name=* \
1029 | --program-transform-nam=* | --program-transform-na=* \
1030 | --program-transform-n=* | --program-transform-=* \
1031 | --program-transform=* | --program-transfor=* \
1032 | --program-transfo=* | --program-transf=* \
1033 | --program-trans=* | --program-tran=* \
1034 | --progr-tra=* | --program-tr=* | --program-t=*)
1035 program_transform_name=$ac_optarg ;;
1037 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1038 ac_prev=pdfdir ;;
1039 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1040 pdfdir=$ac_optarg ;;
1042 -psdir | --psdir | --psdi | --psd | --ps)
1043 ac_prev=psdir ;;
1044 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1045 psdir=$ac_optarg ;;
1047 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1048 | -silent | --silent | --silen | --sile | --sil)
1049 silent=yes ;;
1051 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1052 ac_prev=sbindir ;;
1053 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1054 | --sbi=* | --sb=*)
1055 sbindir=$ac_optarg ;;
1057 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1058 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1059 | --sharedst | --shareds | --shared | --share | --shar \
1060 | --sha | --sh)
1061 ac_prev=sharedstatedir ;;
1062 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1063 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1064 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1065 | --sha=* | --sh=*)
1066 sharedstatedir=$ac_optarg ;;
1068 -site | --site | --sit)
1069 ac_prev=site ;;
1070 -site=* | --site=* | --sit=*)
1071 site=$ac_optarg ;;
1073 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1074 ac_prev=srcdir ;;
1075 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1076 srcdir=$ac_optarg ;;
1078 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1079 | --syscon | --sysco | --sysc | --sys | --sy)
1080 ac_prev=sysconfdir ;;
1081 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1082 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1083 sysconfdir=$ac_optarg ;;
1085 -target | --target | --targe | --targ | --tar | --ta | --t)
1086 ac_prev=target_alias ;;
1087 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1088 target_alias=$ac_optarg ;;
1090 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1091 verbose=yes ;;
1093 -version | --version | --versio | --versi | --vers | -V)
1094 ac_init_version=: ;;
1096 -with-* | --with-*)
1097 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1098 # Reject names that are not valid shell variable names.
1099 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1100 { echo "$as_me: error: invalid package name: $ac_package" >&2
1101 { (exit 1); exit 1; }; }
1102 ac_package=`echo $ac_package| sed 's/-/_/g'`
1103 eval with_$ac_package=\$ac_optarg ;;
1105 -without-* | --without-*)
1106 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1107 # Reject names that are not valid shell variable names.
1108 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1109 { echo "$as_me: error: invalid package name: $ac_package" >&2
1110 { (exit 1); exit 1; }; }
1111 ac_package=`echo $ac_package | sed 's/-/_/g'`
1112 eval with_$ac_package=no ;;
1114 --x)
1115 # Obsolete; use --with-x.
1116 with_x=yes ;;
1118 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1119 | --x-incl | --x-inc | --x-in | --x-i)
1120 ac_prev=x_includes ;;
1121 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1122 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1123 x_includes=$ac_optarg ;;
1125 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1126 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1127 ac_prev=x_libraries ;;
1128 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1129 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1130 x_libraries=$ac_optarg ;;
1132 -*) { echo "$as_me: error: unrecognized option: $ac_option
1133 Try \`$0 --help' for more information." >&2
1134 { (exit 1); exit 1; }; }
1137 *=*)
1138 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1139 # Reject names that are not valid shell variable names.
1140 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1141 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1142 { (exit 1); exit 1; }; }
1143 eval $ac_envvar=\$ac_optarg
1144 export $ac_envvar ;;
1147 # FIXME: should be removed in autoconf 3.0.
1148 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1149 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1150 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1151 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1154 esac
1155 done
1157 if test -n "$ac_prev"; then
1158 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1159 { echo "$as_me: error: missing argument to $ac_option" >&2
1160 { (exit 1); exit 1; }; }
1163 # Be sure to have absolute directory names.
1164 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1165 datadir sysconfdir sharedstatedir localstatedir includedir \
1166 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1167 libdir localedir mandir
1169 eval ac_val=\$$ac_var
1170 case $ac_val in
1171 [\\/$]* | ?:[\\/]* ) continue;;
1172 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1173 esac
1174 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1175 { (exit 1); exit 1; }; }
1176 done
1178 # There might be people who depend on the old broken behavior: `$host'
1179 # used to hold the argument of --host etc.
1180 # FIXME: To remove some day.
1181 build=$build_alias
1182 host=$host_alias
1183 target=$target_alias
1185 # FIXME: To remove some day.
1186 if test "x$host_alias" != x; then
1187 if test "x$build_alias" = x; then
1188 cross_compiling=maybe
1189 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1190 If a cross compiler is detected then cross compile mode will be used." >&2
1191 elif test "x$build_alias" != "x$host_alias"; then
1192 cross_compiling=yes
1196 ac_tool_prefix=
1197 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1199 test "$silent" = yes && exec 6>/dev/null
1202 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1203 ac_ls_di=`ls -di .` &&
1204 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1205 { echo "$as_me: error: Working directory cannot be determined" >&2
1206 { (exit 1); exit 1; }; }
1207 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1208 { echo "$as_me: error: pwd does not report name of working directory" >&2
1209 { (exit 1); exit 1; }; }
1212 # Find the source files, if location was not specified.
1213 if test -z "$srcdir"; then
1214 ac_srcdir_defaulted=yes
1215 # Try the directory containing this script, then the parent directory.
1216 ac_confdir=`$as_dirname -- "$0" ||
1217 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1218 X"$0" : 'X\(//\)[^/]' \| \
1219 X"$0" : 'X\(//\)$' \| \
1220 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1221 echo X"$0" |
1222 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1223 s//\1/
1226 /^X\(\/\/\)[^/].*/{
1227 s//\1/
1230 /^X\(\/\/\)$/{
1231 s//\1/
1234 /^X\(\/\).*/{
1235 s//\1/
1238 s/.*/./; q'`
1239 srcdir=$ac_confdir
1240 if test ! -r "$srcdir/$ac_unique_file"; then
1241 srcdir=..
1243 else
1244 ac_srcdir_defaulted=no
1246 if test ! -r "$srcdir/$ac_unique_file"; then
1247 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1248 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1249 { (exit 1); exit 1; }; }
1251 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1252 ac_abs_confdir=`(
1253 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1254 { (exit 1); exit 1; }; }
1255 pwd)`
1256 # When building in place, set srcdir=.
1257 if test "$ac_abs_confdir" = "$ac_pwd"; then
1258 srcdir=.
1260 # Remove unnecessary trailing slashes from srcdir.
1261 # Double slashes in file names in object file debugging info
1262 # mess up M-x gdb in Emacs.
1263 case $srcdir in
1264 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1265 esac
1266 for ac_var in $ac_precious_vars; do
1267 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1268 eval ac_env_${ac_var}_value=\$${ac_var}
1269 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1270 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1271 done
1274 # Report the --help message.
1276 if test "$ac_init_help" = "long"; then
1277 # Omit some internal or obsolete options to make the list less imposing.
1278 # This message is too long to be a string in the A/UX 3.1 sh.
1279 cat <<_ACEOF
1280 \`configure' configures GNU coreutils 6.1 to adapt to many kinds of systems.
1282 Usage: $0 [OPTION]... [VAR=VALUE]...
1284 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1285 VAR=VALUE. See below for descriptions of some of the useful variables.
1287 Defaults for the options are specified in brackets.
1289 Configuration:
1290 -h, --help display this help and exit
1291 --help=short display options specific to this package
1292 --help=recursive display the short help of all the included packages
1293 -V, --version display version information and exit
1294 -q, --quiet, --silent do not print \`checking...' messages
1295 --cache-file=FILE cache test results in FILE [disabled]
1296 -C, --config-cache alias for \`--cache-file=config.cache'
1297 -n, --no-create do not create output files
1298 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1300 Installation directories:
1301 --prefix=PREFIX install architecture-independent files in PREFIX
1302 [$ac_default_prefix]
1303 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1304 [PREFIX]
1306 By default, \`make install' will install all the files in
1307 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1308 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1309 for instance \`--prefix=\$HOME'.
1311 For better control, use the options below.
1313 Fine tuning of the installation directories:
1314 --bindir=DIR user executables [EPREFIX/bin]
1315 --sbindir=DIR system admin executables [EPREFIX/sbin]
1316 --libexecdir=DIR program executables [EPREFIX/libexec]
1317 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1318 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1319 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1320 --libdir=DIR object code libraries [EPREFIX/lib]
1321 --includedir=DIR C header files [PREFIX/include]
1322 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1323 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1324 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1325 --infodir=DIR info documentation [DATAROOTDIR/info]
1326 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1327 --mandir=DIR man documentation [DATAROOTDIR/man]
1328 --docdir=DIR documentation root [DATAROOTDIR/doc/coreutils]
1329 --htmldir=DIR html documentation [DOCDIR]
1330 --dvidir=DIR dvi documentation [DOCDIR]
1331 --pdfdir=DIR pdf documentation [DOCDIR]
1332 --psdir=DIR ps documentation [DOCDIR]
1333 _ACEOF
1335 cat <<\_ACEOF
1337 Program names:
1338 --program-prefix=PREFIX prepend PREFIX to installed program names
1339 --program-suffix=SUFFIX append SUFFIX to installed program names
1340 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1342 System types:
1343 --build=BUILD configure for building on BUILD [guessed]
1344 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1345 _ACEOF
1348 if test -n "$ac_init_help"; then
1349 case $ac_init_help in
1350 short | recursive ) echo "Configuration of GNU coreutils 6.1:";;
1351 esac
1352 cat <<\_ACEOF
1354 Optional Features:
1355 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1356 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1357 --disable-dependency-tracking speeds up one-time build
1358 --enable-dependency-tracking do not reject slow dependency extractors
1359 --disable-largefile omit support for large files
1360 --disable-assert turn off assertions
1361 --disable-rpath do not hardcode runtime library paths
1362 --disable-nls do not use Native Language Support
1364 Optional Packages:
1365 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1366 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1367 --without-included-regex
1368 don't compile regex; this is the default on systems
1369 with recent-enough versions of the GNU C Library
1370 (use with caution on other systems)
1371 --with-gnu-ld assume the C compiler uses GNU ld default=no
1372 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1373 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1374 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1375 --without-libintl-prefix don't search for libintl in includedir and libdir
1377 Some influential environment variables:
1378 DEFAULT_POSIX2_VERSION
1379 POSIX version to default to; see 'config.hin'.
1380 CC C compiler command
1381 CFLAGS C compiler flags
1382 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1383 nonstandard directory <lib dir>
1384 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1385 you have headers in a nonstandard directory <include dir>
1386 CPP C preprocessor
1387 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1388 `bison -y'. Values other than `bison -y' will most likely break
1389 on most systems.
1390 YFLAGS YFLAGS contains the list arguments that will be passed by
1391 default to Bison. This script will default YFLAGS to the empty
1392 string to avoid a default value of `-d' given by some make
1393 applications.
1395 Use these variables to override the choices made by `configure' or to help
1396 it to find libraries and programs with nonstandard names/locations.
1398 Report bugs to <bug-coreutils@gnu.org>.
1399 _ACEOF
1400 ac_status=$?
1403 if test "$ac_init_help" = "recursive"; then
1404 # If there are subdirs, report their specific --help.
1405 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1406 test -d "$ac_dir" || continue
1407 ac_builddir=.
1409 case "$ac_dir" in
1410 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1412 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1413 # A ".." for each directory in $ac_dir_suffix.
1414 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1415 case $ac_top_builddir_sub in
1416 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1417 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1418 esac ;;
1419 esac
1420 ac_abs_top_builddir=$ac_pwd
1421 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1422 # for backward compatibility:
1423 ac_top_builddir=$ac_top_build_prefix
1425 case $srcdir in
1426 .) # We are building in place.
1427 ac_srcdir=.
1428 ac_top_srcdir=$ac_top_builddir_sub
1429 ac_abs_top_srcdir=$ac_pwd ;;
1430 [\\/]* | ?:[\\/]* ) # Absolute name.
1431 ac_srcdir=$srcdir$ac_dir_suffix;
1432 ac_top_srcdir=$srcdir
1433 ac_abs_top_srcdir=$srcdir ;;
1434 *) # Relative name.
1435 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1436 ac_top_srcdir=$ac_top_build_prefix$srcdir
1437 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1438 esac
1439 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1441 cd "$ac_dir" || { ac_status=$?; continue; }
1442 # Check for guested configure.
1443 if test -f "$ac_srcdir/configure.gnu"; then
1444 echo &&
1445 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1446 elif test -f "$ac_srcdir/configure"; then
1447 echo &&
1448 $SHELL "$ac_srcdir/configure" --help=recursive
1449 else
1450 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1451 fi || ac_status=$?
1452 cd "$ac_pwd" || { ac_status=$?; break; }
1453 done
1456 test -n "$ac_init_help" && exit $ac_status
1457 if $ac_init_version; then
1458 cat <<\_ACEOF
1459 GNU coreutils configure 6.1
1460 generated by GNU Autoconf 2.60
1462 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1463 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1464 This configure script is free software; the Free Software Foundation
1465 gives unlimited permission to copy, distribute and modify it.
1466 _ACEOF
1467 exit
1469 cat >config.log <<_ACEOF
1470 This file contains any messages produced by compilers while
1471 running configure, to aid debugging if configure makes a mistake.
1473 It was created by GNU coreutils $as_me 6.1, which was
1474 generated by GNU Autoconf 2.60. Invocation command line was
1476 $ $0 $@
1478 _ACEOF
1479 exec 5>>config.log
1481 cat <<_ASUNAME
1482 ## --------- ##
1483 ## Platform. ##
1484 ## --------- ##
1486 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1487 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1488 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1489 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1490 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1492 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1493 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1495 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1496 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1497 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1498 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1499 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1500 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1501 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1503 _ASUNAME
1505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1506 for as_dir in $PATH
1508 IFS=$as_save_IFS
1509 test -z "$as_dir" && as_dir=.
1510 echo "PATH: $as_dir"
1511 done
1512 IFS=$as_save_IFS
1514 } >&5
1516 cat >&5 <<_ACEOF
1519 ## ----------- ##
1520 ## Core tests. ##
1521 ## ----------- ##
1523 _ACEOF
1526 # Keep a trace of the command line.
1527 # Strip out --no-create and --no-recursion so they do not pile up.
1528 # Strip out --silent because we don't want to record it for future runs.
1529 # Also quote any args containing shell meta-characters.
1530 # Make two passes to allow for proper duplicate-argument suppression.
1531 ac_configure_args=
1532 ac_configure_args0=
1533 ac_configure_args1=
1534 ac_must_keep_next=false
1535 for ac_pass in 1 2
1537 for ac_arg
1539 case $ac_arg in
1540 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1541 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1542 | -silent | --silent | --silen | --sile | --sil)
1543 continue ;;
1544 *\'*)
1545 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1546 esac
1547 case $ac_pass in
1548 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1550 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1551 if test $ac_must_keep_next = true; then
1552 ac_must_keep_next=false # Got value, back to normal.
1553 else
1554 case $ac_arg in
1555 *=* | --config-cache | -C | -disable-* | --disable-* \
1556 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1557 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1558 | -with-* | --with-* | -without-* | --without-* | --x)
1559 case "$ac_configure_args0 " in
1560 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1561 esac
1563 -* ) ac_must_keep_next=true ;;
1564 esac
1566 ac_configure_args="$ac_configure_args '$ac_arg'"
1568 esac
1569 done
1570 done
1571 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1572 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1574 # When interrupted or exit'd, cleanup temporary files, and complete
1575 # config.log. We remove comments because anyway the quotes in there
1576 # would cause problems or look ugly.
1577 # WARNING: Use '\'' to represent an apostrophe within the trap.
1578 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1579 trap 'exit_status=$?
1580 # Save into config.log some information that might help in debugging.
1582 echo
1584 cat <<\_ASBOX
1585 ## ---------------- ##
1586 ## Cache variables. ##
1587 ## ---------------- ##
1588 _ASBOX
1589 echo
1590 # The following way of writing the cache mishandles newlines in values,
1592 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1593 eval ac_val=\$$ac_var
1594 case $ac_val in #(
1595 *${as_nl}*)
1596 case $ac_var in #(
1597 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1598 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1599 esac
1600 case $ac_var in #(
1601 _ | IFS | as_nl) ;; #(
1602 *) $as_unset $ac_var ;;
1603 esac ;;
1604 esac
1605 done
1606 (set) 2>&1 |
1607 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1608 *${as_nl}ac_space=\ *)
1609 sed -n \
1610 "s/'\''/'\''\\\\'\'''\''/g;
1611 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1612 ;; #(
1614 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1616 esac |
1617 sort
1619 echo
1621 cat <<\_ASBOX
1622 ## ----------------- ##
1623 ## Output variables. ##
1624 ## ----------------- ##
1625 _ASBOX
1626 echo
1627 for ac_var in $ac_subst_vars
1629 eval ac_val=\$$ac_var
1630 case $ac_val in
1631 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1632 esac
1633 echo "$ac_var='\''$ac_val'\''"
1634 done | sort
1635 echo
1637 if test -n "$ac_subst_files"; then
1638 cat <<\_ASBOX
1639 ## ------------------- ##
1640 ## File substitutions. ##
1641 ## ------------------- ##
1642 _ASBOX
1643 echo
1644 for ac_var in $ac_subst_files
1646 eval ac_val=\$$ac_var
1647 case $ac_val in
1648 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1649 esac
1650 echo "$ac_var='\''$ac_val'\''"
1651 done | sort
1652 echo
1655 if test -s confdefs.h; then
1656 cat <<\_ASBOX
1657 ## ----------- ##
1658 ## confdefs.h. ##
1659 ## ----------- ##
1660 _ASBOX
1661 echo
1662 cat confdefs.h
1663 echo
1665 test "$ac_signal" != 0 &&
1666 echo "$as_me: caught signal $ac_signal"
1667 echo "$as_me: exit $exit_status"
1668 } >&5
1669 rm -f core *.core core.conftest.* &&
1670 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1671 exit $exit_status
1673 for ac_signal in 1 2 13 15; do
1674 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1675 done
1676 ac_signal=0
1678 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1679 rm -f -r conftest* confdefs.h
1681 # Predefined preprocessor variables.
1683 cat >>confdefs.h <<_ACEOF
1684 #define PACKAGE_NAME "$PACKAGE_NAME"
1685 _ACEOF
1688 cat >>confdefs.h <<_ACEOF
1689 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1690 _ACEOF
1693 cat >>confdefs.h <<_ACEOF
1694 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1695 _ACEOF
1698 cat >>confdefs.h <<_ACEOF
1699 #define PACKAGE_STRING "$PACKAGE_STRING"
1700 _ACEOF
1703 cat >>confdefs.h <<_ACEOF
1704 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1705 _ACEOF
1708 # Let the site file select an alternate cache file if it wants to.
1709 # Prefer explicitly selected file to automatically selected ones.
1710 if test -n "$CONFIG_SITE"; then
1711 set x "$CONFIG_SITE"
1712 elif test "x$prefix" != xNONE; then
1713 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1714 else
1715 set x "$ac_default_prefix/share/config.site" \
1716 "$ac_default_prefix/etc/config.site"
1718 shift
1719 for ac_site_file
1721 if test -r "$ac_site_file"; then
1722 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1723 echo "$as_me: loading site script $ac_site_file" >&6;}
1724 sed 's/^/| /' "$ac_site_file" >&5
1725 . "$ac_site_file"
1727 done
1729 if test -r "$cache_file"; then
1730 # Some versions of bash will fail to source /dev/null (special
1731 # files actually), so we avoid doing that.
1732 if test -f "$cache_file"; then
1733 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1734 echo "$as_me: loading cache $cache_file" >&6;}
1735 case $cache_file in
1736 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1737 *) . "./$cache_file";;
1738 esac
1740 else
1741 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1742 echo "$as_me: creating cache $cache_file" >&6;}
1743 >$cache_file
1746 ac_header_list="$ac_header_list hurd.h"
1747 ac_header_list="$ac_header_list paths.h"
1748 ac_header_list="$ac_header_list priv.h"
1749 ac_header_list="$ac_header_list stropts.h"
1750 ac_header_list="$ac_header_list sys/ioctl.h"
1751 ac_header_list="$ac_header_list sys/param.h"
1752 ac_header_list="$ac_header_list sys/resource.h"
1753 ac_header_list="$ac_header_list sys/statvfs.h"
1754 ac_header_list="$ac_header_list sys/systeminfo.h"
1755 ac_header_list="$ac_header_list sys/time.h"
1756 ac_header_list="$ac_header_list sys/vfs.h"
1757 ac_header_list="$ac_header_list sys/wait.h"
1758 ac_header_list="$ac_header_list syslog.h"
1759 ac_header_list="$ac_header_list termios.h"
1760 ac_header_list="$ac_header_list grp.h"
1761 ac_header_list="$ac_header_list pwd.h"
1762 ac_header_list="$ac_header_list utmp.h"
1763 ac_func_list="$ac_func_list pathconf"
1764 ac_header_list="$ac_header_list sys/socket.h"
1765 ac_header_list="$ac_header_list netinet/in.h"
1766 ac_header_list="$ac_header_list netdb.h"
1767 ac_func_list="$ac_func_list mempcpy"
1768 ac_header_list="$ac_header_list sys/fs_types.h"
1769 ac_header_list="$ac_header_list stdio_ext.h"
1770 ac_func_list="$ac_func_list __fsetlocking"
1771 ac_func_list="$ac_func_list tcgetattr"
1772 ac_func_list="$ac_func_list tcsetattr"
1773 ac_func_list="$ac_func_list alarm"
1774 ac_header_list="$ac_header_list libgen.h"
1775 ac_header_list="$ac_header_list unistd.h"
1776 ac_header_list="$ac_header_list wchar.h"
1777 ac_header_list="$ac_header_list wctype.h"
1778 ac_func_list="$ac_func_list iswprint"
1779 ac_func_list="$ac_func_list wcwidth"
1780 ac_func_list="$ac_func_list microuptime"
1781 ac_func_list="$ac_func_list nanouptime"
1782 ac_func_list="$ac_func_list gettimeofday"
1783 ac_func_list="$ac_func_list nanotime"
1784 ac_header_list="$ac_header_list arpa/inet.h"
1785 ac_func_list="$ac_func_list setlocale"
1786 ac_func_list="$ac_func_list isascii"
1787 ac_func_list="$ac_func_list mbsinit"
1788 ac_func_list="$ac_func_list strxfrm"
1789 ac_func_list="$ac_func_list lchmod"
1790 ac_header_list="$ac_header_list utmpx.h"
1791 ac_func_list="$ac_func_list utmpname"
1792 ac_func_list="$ac_func_list utmpxname"
1793 ac_header_list="$ac_header_list locale.h"
1794 ac_func_list="$ac_func_list mbrtowc"
1795 ac_func_list="$ac_func_list wcrtomb"
1796 ac_func_list="$ac_func_list wcscoll"
1797 ac_func_list="$ac_func_list fchdir"
1798 ac_func_list="$ac_func_list settimeofday"
1799 ac_func_list="$ac_func_list stime"
1800 ac_header_list="$ac_header_list stdint.h"
1801 ac_func_list="$ac_func_list pipe"
1802 ac_header_list="$ac_header_list utime.h"
1803 ac_func_list="$ac_func_list futimes"
1804 ac_func_list="$ac_func_list futimesat"
1805 ac_func_list="$ac_func_list mblen"
1806 ac_func_list="$ac_func_list mbrlen"
1807 ac_func_list="$ac_func_list tzset"
1808 ac_func_list="$ac_func_list siginterrupt"
1809 ac_header_list="$ac_header_list sys/select.h"
1810 ac_func_list="$ac_func_list fdopendir"
1811 ac_func_list="$ac_func_list directio"
1812 ac_func_list="$ac_func_list endgrent"
1813 ac_func_list="$ac_func_list endpwent"
1814 ac_func_list="$ac_func_list fchmod"
1815 ac_func_list="$ac_func_list fchown"
1816 ac_func_list="$ac_func_list ftruncate"
1817 ac_func_list="$ac_func_list hasmntopt"
1818 ac_func_list="$ac_func_list iswspace"
1819 ac_func_list="$ac_func_list lchown"
1820 ac_func_list="$ac_func_list listmntent"
1821 ac_func_list="$ac_func_list mkfifo"
1822 ac_func_list="$ac_func_list realpath"
1823 ac_func_list="$ac_func_list setgroups"
1824 ac_func_list="$ac_func_list sethostname"
1825 ac_func_list="$ac_func_list sync"
1826 ac_func_list="$ac_func_list sysctl"
1827 ac_func_list="$ac_func_list sysinfo"
1828 ac_func_list="$ac_func_list tcgetpgrp"
1829 ac_header_list="$ac_header_list sys/sysmacros.h"
1830 ac_func_list="$ac_func_list statvfs"
1831 # Check that the precious variables saved in the cache have kept the same
1832 # value.
1833 ac_cache_corrupted=false
1834 for ac_var in $ac_precious_vars; do
1835 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1836 eval ac_new_set=\$ac_env_${ac_var}_set
1837 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1838 eval ac_new_val=\$ac_env_${ac_var}_value
1839 case $ac_old_set,$ac_new_set in
1840 set,)
1841 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1842 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1843 ac_cache_corrupted=: ;;
1844 ,set)
1845 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1846 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1847 ac_cache_corrupted=: ;;
1848 ,);;
1850 if test "x$ac_old_val" != "x$ac_new_val"; then
1851 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1852 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1853 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1854 echo "$as_me: former value: $ac_old_val" >&2;}
1855 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1856 echo "$as_me: current value: $ac_new_val" >&2;}
1857 ac_cache_corrupted=:
1858 fi;;
1859 esac
1860 # Pass precious variables to config.status.
1861 if test "$ac_new_set" = set; then
1862 case $ac_new_val in
1863 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1864 *) ac_arg=$ac_var=$ac_new_val ;;
1865 esac
1866 case " $ac_configure_args " in
1867 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1868 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1869 esac
1871 done
1872 if $ac_cache_corrupted; then
1873 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1874 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1875 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1876 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1877 { (exit 1); exit 1; }; }
1904 ac_ext=c
1905 ac_cpp='$CPP $CPPFLAGS'
1906 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1907 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1908 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1913 ac_aux_dir=
1914 for ac_dir in build-aux "$srcdir"/build-aux; do
1915 if test -f "$ac_dir/install-sh"; then
1916 ac_aux_dir=$ac_dir
1917 ac_install_sh="$ac_aux_dir/install-sh -c"
1918 break
1919 elif test -f "$ac_dir/install.sh"; then
1920 ac_aux_dir=$ac_dir
1921 ac_install_sh="$ac_aux_dir/install.sh -c"
1922 break
1923 elif test -f "$ac_dir/shtool"; then
1924 ac_aux_dir=$ac_dir
1925 ac_install_sh="$ac_aux_dir/shtool install -c"
1926 break
1928 done
1929 if test -z "$ac_aux_dir"; then
1930 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build-aux \"$srcdir\"/build-aux" >&5
1931 echo "$as_me: error: cannot find install-sh or install.sh in build-aux \"$srcdir\"/build-aux" >&2;}
1932 { (exit 1); exit 1; }; }
1935 # These three variables are undocumented and unsupported,
1936 # and are intended to be withdrawn in a future Autoconf release.
1937 # They can cause serious problems if a builder's source tree is in a directory
1938 # whose full name contains unusual characters.
1939 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1940 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1941 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1944 ac_config_headers="$ac_config_headers config.h:config.hin"
1947 # Make sure we can run config.sub.
1948 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1949 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1950 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1951 { (exit 1); exit 1; }; }
1953 { echo "$as_me:$LINENO: checking build system type" >&5
1954 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1955 if test "${ac_cv_build+set}" = set; then
1956 echo $ECHO_N "(cached) $ECHO_C" >&6
1957 else
1958 ac_build_alias=$build_alias
1959 test "x$ac_build_alias" = x &&
1960 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1961 test "x$ac_build_alias" = x &&
1962 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1963 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1964 { (exit 1); exit 1; }; }
1965 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1966 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1967 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1968 { (exit 1); exit 1; }; }
1971 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1972 echo "${ECHO_T}$ac_cv_build" >&6; }
1973 case $ac_cv_build in
1974 *-*-*) ;;
1975 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1976 echo "$as_me: error: invalid value of canonical build" >&2;}
1977 { (exit 1); exit 1; }; };;
1978 esac
1979 build=$ac_cv_build
1980 ac_save_IFS=$IFS; IFS='-'
1981 set x $ac_cv_build
1982 shift
1983 build_cpu=$1
1984 build_vendor=$2
1985 shift; shift
1986 # Remember, the first character of IFS is used to create $*,
1987 # except with old shells:
1988 build_os=$*
1989 IFS=$ac_save_IFS
1990 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1993 { echo "$as_me:$LINENO: checking host system type" >&5
1994 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1995 if test "${ac_cv_host+set}" = set; then
1996 echo $ECHO_N "(cached) $ECHO_C" >&6
1997 else
1998 if test "x$host_alias" = x; then
1999 ac_cv_host=$ac_cv_build
2000 else
2001 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2002 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2003 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2004 { (exit 1); exit 1; }; }
2008 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2009 echo "${ECHO_T}$ac_cv_host" >&6; }
2010 case $ac_cv_host in
2011 *-*-*) ;;
2012 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2013 echo "$as_me: error: invalid value of canonical host" >&2;}
2014 { (exit 1); exit 1; }; };;
2015 esac
2016 host=$ac_cv_host
2017 ac_save_IFS=$IFS; IFS='-'
2018 set x $ac_cv_host
2019 shift
2020 host_cpu=$1
2021 host_vendor=$2
2022 shift; shift
2023 # Remember, the first character of IFS is used to create $*,
2024 # except with old shells:
2025 host_os=$*
2026 IFS=$ac_save_IFS
2027 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2034 { echo "$as_me:$LINENO: autobuild project... ${PACKAGE_NAME:-$PACKAGE}" >&5
2035 echo "$as_me: autobuild project... ${PACKAGE_NAME:-$PACKAGE}" >&6;}
2036 { echo "$as_me:$LINENO: autobuild revision... ${PACKAGE_VERSION:-$VERSION}" >&5
2037 echo "$as_me: autobuild revision... ${PACKAGE_VERSION:-$VERSION}" >&6;}
2038 hostname=`hostname`
2039 if test "$hostname"; then
2040 { echo "$as_me:$LINENO: autobuild hostname... $hostname" >&5
2041 echo "$as_me: autobuild hostname... $hostname" >&6;}
2044 date=`date +%Y%m%d-%H%M%S`
2045 if test "$?" != 0; then
2046 date=`date`
2048 if test "$date"; then
2049 { echo "$as_me:$LINENO: autobuild timestamp... $date" >&5
2050 echo "$as_me: autobuild timestamp... $date" >&6;}
2053 am__api_version="1.9"
2054 # Find a good install program. We prefer a C program (faster),
2055 # so one script is as good as another. But avoid the broken or
2056 # incompatible versions:
2057 # SysV /etc/install, /usr/sbin/install
2058 # SunOS /usr/etc/install
2059 # IRIX /sbin/install
2060 # AIX /bin/install
2061 # AmigaOS /C/install, which installs bootblocks on floppy discs
2062 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2063 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2064 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2065 # OS/2's system install, which has a completely different semantic
2066 # ./install, which can be erroneously created by make from ./install.sh.
2067 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2068 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2069 if test -z "$INSTALL"; then
2070 if test "${ac_cv_path_install+set}" = set; then
2071 echo $ECHO_N "(cached) $ECHO_C" >&6
2072 else
2073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2074 for as_dir in $PATH
2076 IFS=$as_save_IFS
2077 test -z "$as_dir" && as_dir=.
2078 # Account for people who put trailing slashes in PATH elements.
2079 case $as_dir/ in
2080 ./ | .// | /cC/* | \
2081 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2082 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2083 /usr/ucb/* ) ;;
2085 # OSF1 and SCO ODT 3.0 have their own names for install.
2086 # Don't use installbsd from OSF since it installs stuff as root
2087 # by default.
2088 for ac_prog in ginstall scoinst install; do
2089 for ac_exec_ext in '' $ac_executable_extensions; do
2090 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
2091 if test $ac_prog = install &&
2092 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2093 # AIX install. It has an incompatible calling convention.
2095 elif test $ac_prog = install &&
2096 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2097 # program-specific install script used by HP pwplus--don't use.
2099 else
2100 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2101 break 3
2104 done
2105 done
2107 esac
2108 done
2109 IFS=$as_save_IFS
2113 if test "${ac_cv_path_install+set}" = set; then
2114 INSTALL=$ac_cv_path_install
2115 else
2116 # As a last resort, use the slow shell script. Don't cache a
2117 # value for INSTALL within a source directory, because that will
2118 # break other packages using the cache if that directory is
2119 # removed, or if the value is a relative name.
2120 INSTALL=$ac_install_sh
2123 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2124 echo "${ECHO_T}$INSTALL" >&6; }
2126 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2127 # It thinks the first close brace ends the variable substitution.
2128 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2130 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2132 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2134 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2135 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2136 # Just in case
2137 sleep 1
2138 echo timestamp > conftest.file
2139 # Do `set' in a subshell so we don't clobber the current shell's
2140 # arguments. Must try -L first in case configure is actually a
2141 # symlink; some systems play weird games with the mod time of symlinks
2142 # (eg FreeBSD returns the mod time of the symlink's containing
2143 # directory).
2144 if (
2145 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2146 if test "$*" = "X"; then
2147 # -L didn't work.
2148 set X `ls -t $srcdir/configure conftest.file`
2150 rm -f conftest.file
2151 if test "$*" != "X $srcdir/configure conftest.file" \
2152 && test "$*" != "X conftest.file $srcdir/configure"; then
2154 # If neither matched, then we have a broken ls. This can happen
2155 # if, for instance, CONFIG_SHELL is bash and it inherits a
2156 # broken ls alias from the environment. This has actually
2157 # happened. Such a system could not be considered "sane".
2158 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2159 alias in your environment" >&5
2160 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2161 alias in your environment" >&2;}
2162 { (exit 1); exit 1; }; }
2165 test "$2" = conftest.file
2167 then
2168 # Ok.
2170 else
2171 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2172 Check your system clock" >&5
2173 echo "$as_me: error: newly created file is older than distributed files!
2174 Check your system clock" >&2;}
2175 { (exit 1); exit 1; }; }
2177 { echo "$as_me:$LINENO: result: yes" >&5
2178 echo "${ECHO_T}yes" >&6; }
2179 test "$program_prefix" != NONE &&
2180 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2181 # Use a double $ so make ignores it.
2182 test "$program_suffix" != NONE &&
2183 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2184 # Double any \ or $. echo might interpret backslashes.
2185 # By default was `s,x,x', remove it if useless.
2186 cat <<\_ACEOF >conftest.sed
2187 s/[\\$]/&&/g;s/;s,x,x,$//
2188 _ACEOF
2189 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2190 rm -f conftest.sed
2192 # expand $ac_aux_dir to an absolute path
2193 am_aux_dir=`cd $ac_aux_dir && pwd`
2195 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2196 # Use eval to expand $SHELL
2197 if eval "$MISSING --run true"; then
2198 am_missing_run="$MISSING --run "
2199 else
2200 am_missing_run=
2201 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2202 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2205 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2206 # We used to keeping the `.' as first argument, in order to
2207 # allow $(mkdir_p) to be used without argument. As in
2208 # $(mkdir_p) $(somedir)
2209 # where $(somedir) is conditionally defined. However this is wrong
2210 # for two reasons:
2211 # 1. if the package is installed by a user who cannot write `.'
2212 # make install will fail,
2213 # 2. the above comment should most certainly read
2214 # $(mkdir_p) $(DESTDIR)$(somedir)
2215 # so it does not work when $(somedir) is undefined and
2216 # $(DESTDIR) is not.
2217 # To support the latter case, we have to write
2218 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2219 # so the `.' trick is pointless.
2220 mkdir_p='mkdir -p --'
2221 else
2222 # On NextStep and OpenStep, the `mkdir' command does not
2223 # recognize any option. It will interpret all options as
2224 # directories to create, and then abort because `.' already
2225 # exists.
2226 for d in ./-p ./--version;
2228 test -d $d && rmdir $d
2229 done
2230 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2231 if test -f "$ac_aux_dir/mkinstalldirs"; then
2232 mkdir_p='$(mkinstalldirs)'
2233 else
2234 mkdir_p='$(install_sh) -d'
2238 for ac_prog in gawk mawk nawk awk
2240 # Extract the first word of "$ac_prog", so it can be a program name with args.
2241 set dummy $ac_prog; ac_word=$2
2242 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2243 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2244 if test "${ac_cv_prog_AWK+set}" = set; then
2245 echo $ECHO_N "(cached) $ECHO_C" >&6
2246 else
2247 if test -n "$AWK"; then
2248 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2249 else
2250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2251 for as_dir in $PATH
2253 IFS=$as_save_IFS
2254 test -z "$as_dir" && as_dir=.
2255 for ac_exec_ext in '' $ac_executable_extensions; do
2256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2257 ac_cv_prog_AWK="$ac_prog"
2258 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2259 break 2
2261 done
2262 done
2263 IFS=$as_save_IFS
2267 AWK=$ac_cv_prog_AWK
2268 if test -n "$AWK"; then
2269 { echo "$as_me:$LINENO: result: $AWK" >&5
2270 echo "${ECHO_T}$AWK" >&6; }
2271 else
2272 { echo "$as_me:$LINENO: result: no" >&5
2273 echo "${ECHO_T}no" >&6; }
2277 test -n "$AWK" && break
2278 done
2280 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2281 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2282 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2283 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2284 echo $ECHO_N "(cached) $ECHO_C" >&6
2285 else
2286 cat >conftest.make <<\_ACEOF
2287 SHELL = /bin/sh
2288 all:
2289 @echo '@@@%%%=$(MAKE)=@@@%%%'
2290 _ACEOF
2291 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2292 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2293 *@@@%%%=?*=@@@%%%*)
2294 eval ac_cv_prog_make_${ac_make}_set=yes;;
2296 eval ac_cv_prog_make_${ac_make}_set=no;;
2297 esac
2298 rm -f conftest.make
2300 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2301 { echo "$as_me:$LINENO: result: yes" >&5
2302 echo "${ECHO_T}yes" >&6; }
2303 SET_MAKE=
2304 else
2305 { echo "$as_me:$LINENO: result: no" >&5
2306 echo "${ECHO_T}no" >&6; }
2307 SET_MAKE="MAKE=${MAKE-make}"
2310 rm -rf .tst 2>/dev/null
2311 mkdir .tst 2>/dev/null
2312 if test -d .tst; then
2313 am__leading_dot=.
2314 else
2315 am__leading_dot=_
2317 rmdir .tst 2>/dev/null
2319 # test to see if srcdir already configured
2320 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2321 test -f $srcdir/config.status; then
2322 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2323 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2324 { (exit 1); exit 1; }; }
2327 # test whether we have cygpath
2328 if test -z "$CYGPATH_W"; then
2329 if (cygpath --version) >/dev/null 2>/dev/null; then
2330 CYGPATH_W='cygpath -w'
2331 else
2332 CYGPATH_W=echo
2337 # Define the identity of the package.
2338 PACKAGE='coreutils'
2339 VERSION='6.1'
2342 cat >>confdefs.h <<_ACEOF
2343 #define PACKAGE "$PACKAGE"
2344 _ACEOF
2347 cat >>confdefs.h <<_ACEOF
2348 #define VERSION "$VERSION"
2349 _ACEOF
2351 # Some tools Automake needs.
2353 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2356 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2359 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2362 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2365 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2367 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2369 # Installed binaries are usually stripped using `strip' when the user
2370 # run `make install-strip'. However `strip' might not be the right
2371 # tool to use in cross-compilation environments, therefore Automake
2372 # will honor the `STRIP' environment variable to overrule this program.
2373 if test "$cross_compiling" != no; then
2374 if test -n "$ac_tool_prefix"; then
2375 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2376 set dummy ${ac_tool_prefix}strip; ac_word=$2
2377 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2378 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2379 if test "${ac_cv_prog_STRIP+set}" = set; then
2380 echo $ECHO_N "(cached) $ECHO_C" >&6
2381 else
2382 if test -n "$STRIP"; then
2383 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2384 else
2385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2386 for as_dir in $PATH
2388 IFS=$as_save_IFS
2389 test -z "$as_dir" && as_dir=.
2390 for ac_exec_ext in '' $ac_executable_extensions; do
2391 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2392 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2393 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2394 break 2
2396 done
2397 done
2398 IFS=$as_save_IFS
2402 STRIP=$ac_cv_prog_STRIP
2403 if test -n "$STRIP"; then
2404 { echo "$as_me:$LINENO: result: $STRIP" >&5
2405 echo "${ECHO_T}$STRIP" >&6; }
2406 else
2407 { echo "$as_me:$LINENO: result: no" >&5
2408 echo "${ECHO_T}no" >&6; }
2413 if test -z "$ac_cv_prog_STRIP"; then
2414 ac_ct_STRIP=$STRIP
2415 # Extract the first word of "strip", so it can be a program name with args.
2416 set dummy strip; ac_word=$2
2417 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2418 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2419 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2420 echo $ECHO_N "(cached) $ECHO_C" >&6
2421 else
2422 if test -n "$ac_ct_STRIP"; then
2423 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2424 else
2425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2426 for as_dir in $PATH
2428 IFS=$as_save_IFS
2429 test -z "$as_dir" && as_dir=.
2430 for ac_exec_ext in '' $ac_executable_extensions; do
2431 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2432 ac_cv_prog_ac_ct_STRIP="strip"
2433 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2434 break 2
2436 done
2437 done
2438 IFS=$as_save_IFS
2442 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2443 if test -n "$ac_ct_STRIP"; then
2444 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2445 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2446 else
2447 { echo "$as_me:$LINENO: result: no" >&5
2448 echo "${ECHO_T}no" >&6; }
2451 if test "x$ac_ct_STRIP" = x; then
2452 STRIP=":"
2453 else
2454 case $cross_compiling:$ac_tool_warned in
2455 yes:)
2456 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2457 whose name does not start with the host triplet. If you think this
2458 configuration is useful to you, please write to autoconf@gnu.org." >&5
2459 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2460 whose name does not start with the host triplet. If you think this
2461 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2462 ac_tool_warned=yes ;;
2463 esac
2464 STRIP=$ac_ct_STRIP
2466 else
2467 STRIP="$ac_cv_prog_STRIP"
2471 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2473 # We need awk for the "check" target. The system "awk" is bad on
2474 # some platforms.
2475 # Always define AMTAR for backward compatibility.
2477 AMTAR=${AMTAR-"${am_missing_run}tar"}
2479 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2487 { echo "$as_me:$LINENO: checking for desired default level of POSIX conformance" >&5
2488 echo $ECHO_N "checking for desired default level of POSIX conformance... $ECHO_C" >&6; }
2489 gl_default_posix2_version=none-specified
2490 if test -n "$ac_cv_env_DEFAULT_POSIX2_VERSION_set"; then
2491 gl_default_posix2_version=$ac_cv_env_DEFAULT_POSIX2_VERSION_value
2493 cat >>confdefs.h <<_ACEOF
2494 #define DEFAULT_POSIX2_VERSION $gl_default_posix2_version
2495 _ACEOF
2498 { echo "$as_me:$LINENO: result: $gl_default_posix2_version" >&5
2499 echo "${ECHO_T}$gl_default_posix2_version" >&6; }
2503 cat >>confdefs.h <<\_ACEOF
2504 #define _GNU_SOURCE 1
2505 _ACEOF
2508 DEPDIR="${am__leading_dot}deps"
2510 ac_config_commands="$ac_config_commands depfiles"
2513 am_make=${MAKE-make}
2514 cat > confinc << 'END'
2515 am__doit:
2516 @echo done
2517 .PHONY: am__doit
2519 # If we don't find an include directive, just comment out the code.
2520 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2521 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2522 am__include="#"
2523 am__quote=
2524 _am_result=none
2525 # First try GNU make style include.
2526 echo "include confinc" > confmf
2527 # We grep out `Entering directory' and `Leaving directory'
2528 # messages which can occur if `w' ends up in MAKEFLAGS.
2529 # In particular we don't look at `^make:' because GNU make might
2530 # be invoked under some other name (usually "gmake"), in which
2531 # case it prints its new name instead of `make'.
2532 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2533 am__include=include
2534 am__quote=
2535 _am_result=GNU
2537 # Now try BSD make style include.
2538 if test "$am__include" = "#"; then
2539 echo '.include "confinc"' > confmf
2540 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2541 am__include=.include
2542 am__quote="\""
2543 _am_result=BSD
2548 { echo "$as_me:$LINENO: result: $_am_result" >&5
2549 echo "${ECHO_T}$_am_result" >&6; }
2550 rm -f confinc confmf
2552 # Check whether --enable-dependency-tracking was given.
2553 if test "${enable_dependency_tracking+set}" = set; then
2554 enableval=$enable_dependency_tracking;
2557 if test "x$enable_dependency_tracking" != xno; then
2558 am_depcomp="$ac_aux_dir/depcomp"
2559 AMDEPBACKSLASH='\'
2563 if test "x$enable_dependency_tracking" != xno; then
2564 AMDEP_TRUE=
2565 AMDEP_FALSE='#'
2566 else
2567 AMDEP_TRUE='#'
2568 AMDEP_FALSE=
2573 ac_ext=c
2574 ac_cpp='$CPP $CPPFLAGS'
2575 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2576 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2577 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2578 if test -n "$ac_tool_prefix"; then
2579 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2580 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2581 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2582 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2583 if test "${ac_cv_prog_CC+set}" = set; then
2584 echo $ECHO_N "(cached) $ECHO_C" >&6
2585 else
2586 if test -n "$CC"; then
2587 ac_cv_prog_CC="$CC" # Let the user override the test.
2588 else
2589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2590 for as_dir in $PATH
2592 IFS=$as_save_IFS
2593 test -z "$as_dir" && as_dir=.
2594 for ac_exec_ext in '' $ac_executable_extensions; do
2595 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2596 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2597 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2598 break 2
2600 done
2601 done
2602 IFS=$as_save_IFS
2606 CC=$ac_cv_prog_CC
2607 if test -n "$CC"; then
2608 { echo "$as_me:$LINENO: result: $CC" >&5
2609 echo "${ECHO_T}$CC" >&6; }
2610 else
2611 { echo "$as_me:$LINENO: result: no" >&5
2612 echo "${ECHO_T}no" >&6; }
2617 if test -z "$ac_cv_prog_CC"; then
2618 ac_ct_CC=$CC
2619 # Extract the first word of "gcc", so it can be a program name with args.
2620 set dummy gcc; ac_word=$2
2621 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2622 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2623 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2624 echo $ECHO_N "(cached) $ECHO_C" >&6
2625 else
2626 if test -n "$ac_ct_CC"; then
2627 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2628 else
2629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2630 for as_dir in $PATH
2632 IFS=$as_save_IFS
2633 test -z "$as_dir" && as_dir=.
2634 for ac_exec_ext in '' $ac_executable_extensions; do
2635 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2636 ac_cv_prog_ac_ct_CC="gcc"
2637 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2638 break 2
2640 done
2641 done
2642 IFS=$as_save_IFS
2646 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2647 if test -n "$ac_ct_CC"; then
2648 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2649 echo "${ECHO_T}$ac_ct_CC" >&6; }
2650 else
2651 { echo "$as_me:$LINENO: result: no" >&5
2652 echo "${ECHO_T}no" >&6; }
2655 if test "x$ac_ct_CC" = x; then
2656 CC=""
2657 else
2658 case $cross_compiling:$ac_tool_warned in
2659 yes:)
2660 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2661 whose name does not start with the host triplet. If you think this
2662 configuration is useful to you, please write to autoconf@gnu.org." >&5
2663 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2664 whose name does not start with the host triplet. If you think this
2665 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2666 ac_tool_warned=yes ;;
2667 esac
2668 CC=$ac_ct_CC
2670 else
2671 CC="$ac_cv_prog_CC"
2674 if test -z "$CC"; then
2675 if test -n "$ac_tool_prefix"; then
2676 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2677 set dummy ${ac_tool_prefix}cc; ac_word=$2
2678 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2679 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2680 if test "${ac_cv_prog_CC+set}" = set; then
2681 echo $ECHO_N "(cached) $ECHO_C" >&6
2682 else
2683 if test -n "$CC"; then
2684 ac_cv_prog_CC="$CC" # Let the user override the test.
2685 else
2686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2687 for as_dir in $PATH
2689 IFS=$as_save_IFS
2690 test -z "$as_dir" && as_dir=.
2691 for ac_exec_ext in '' $ac_executable_extensions; do
2692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2693 ac_cv_prog_CC="${ac_tool_prefix}cc"
2694 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2695 break 2
2697 done
2698 done
2699 IFS=$as_save_IFS
2703 CC=$ac_cv_prog_CC
2704 if test -n "$CC"; then
2705 { echo "$as_me:$LINENO: result: $CC" >&5
2706 echo "${ECHO_T}$CC" >&6; }
2707 else
2708 { echo "$as_me:$LINENO: result: no" >&5
2709 echo "${ECHO_T}no" >&6; }
2715 if test -z "$CC"; then
2716 # Extract the first word of "cc", so it can be a program name with args.
2717 set dummy cc; ac_word=$2
2718 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2719 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2720 if test "${ac_cv_prog_CC+set}" = set; then
2721 echo $ECHO_N "(cached) $ECHO_C" >&6
2722 else
2723 if test -n "$CC"; then
2724 ac_cv_prog_CC="$CC" # Let the user override the test.
2725 else
2726 ac_prog_rejected=no
2727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2728 for as_dir in $PATH
2730 IFS=$as_save_IFS
2731 test -z "$as_dir" && as_dir=.
2732 for ac_exec_ext in '' $ac_executable_extensions; do
2733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2734 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2735 ac_prog_rejected=yes
2736 continue
2738 ac_cv_prog_CC="cc"
2739 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2740 break 2
2742 done
2743 done
2744 IFS=$as_save_IFS
2746 if test $ac_prog_rejected = yes; then
2747 # We found a bogon in the path, so make sure we never use it.
2748 set dummy $ac_cv_prog_CC
2749 shift
2750 if test $# != 0; then
2751 # We chose a different compiler from the bogus one.
2752 # However, it has the same basename, so the bogon will be chosen
2753 # first if we set CC to just the basename; use the full file name.
2754 shift
2755 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2760 CC=$ac_cv_prog_CC
2761 if test -n "$CC"; then
2762 { echo "$as_me:$LINENO: result: $CC" >&5
2763 echo "${ECHO_T}$CC" >&6; }
2764 else
2765 { echo "$as_me:$LINENO: result: no" >&5
2766 echo "${ECHO_T}no" >&6; }
2771 if test -z "$CC"; then
2772 if test -n "$ac_tool_prefix"; then
2773 for ac_prog in cl.exe
2775 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2776 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2777 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2778 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2779 if test "${ac_cv_prog_CC+set}" = set; then
2780 echo $ECHO_N "(cached) $ECHO_C" >&6
2781 else
2782 if test -n "$CC"; then
2783 ac_cv_prog_CC="$CC" # Let the user override the test.
2784 else
2785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2786 for as_dir in $PATH
2788 IFS=$as_save_IFS
2789 test -z "$as_dir" && as_dir=.
2790 for ac_exec_ext in '' $ac_executable_extensions; do
2791 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2792 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2793 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2794 break 2
2796 done
2797 done
2798 IFS=$as_save_IFS
2802 CC=$ac_cv_prog_CC
2803 if test -n "$CC"; then
2804 { echo "$as_me:$LINENO: result: $CC" >&5
2805 echo "${ECHO_T}$CC" >&6; }
2806 else
2807 { echo "$as_me:$LINENO: result: no" >&5
2808 echo "${ECHO_T}no" >&6; }
2812 test -n "$CC" && break
2813 done
2815 if test -z "$CC"; then
2816 ac_ct_CC=$CC
2817 for ac_prog in cl.exe
2819 # Extract the first word of "$ac_prog", so it can be a program name with args.
2820 set dummy $ac_prog; ac_word=$2
2821 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2822 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2823 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2824 echo $ECHO_N "(cached) $ECHO_C" >&6
2825 else
2826 if test -n "$ac_ct_CC"; then
2827 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2828 else
2829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2830 for as_dir in $PATH
2832 IFS=$as_save_IFS
2833 test -z "$as_dir" && as_dir=.
2834 for ac_exec_ext in '' $ac_executable_extensions; do
2835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2836 ac_cv_prog_ac_ct_CC="$ac_prog"
2837 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2838 break 2
2840 done
2841 done
2842 IFS=$as_save_IFS
2846 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2847 if test -n "$ac_ct_CC"; then
2848 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2849 echo "${ECHO_T}$ac_ct_CC" >&6; }
2850 else
2851 { echo "$as_me:$LINENO: result: no" >&5
2852 echo "${ECHO_T}no" >&6; }
2856 test -n "$ac_ct_CC" && break
2857 done
2859 if test "x$ac_ct_CC" = x; then
2860 CC=""
2861 else
2862 case $cross_compiling:$ac_tool_warned in
2863 yes:)
2864 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2865 whose name does not start with the host triplet. If you think this
2866 configuration is useful to you, please write to autoconf@gnu.org." >&5
2867 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2868 whose name does not start with the host triplet. If you think this
2869 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2870 ac_tool_warned=yes ;;
2871 esac
2872 CC=$ac_ct_CC
2879 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2880 See \`config.log' for more details." >&5
2881 echo "$as_me: error: no acceptable C compiler found in \$PATH
2882 See \`config.log' for more details." >&2;}
2883 { (exit 1); exit 1; }; }
2885 # Provide some information about the compiler.
2886 echo "$as_me:$LINENO: checking for C compiler version" >&5
2887 ac_compiler=`set X $ac_compile; echo $2`
2888 { (ac_try="$ac_compiler --version >&5"
2889 case "(($ac_try" in
2890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2891 *) ac_try_echo=$ac_try;;
2892 esac
2893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2894 (eval "$ac_compiler --version >&5") 2>&5
2895 ac_status=$?
2896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2897 (exit $ac_status); }
2898 { (ac_try="$ac_compiler -v >&5"
2899 case "(($ac_try" in
2900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2901 *) ac_try_echo=$ac_try;;
2902 esac
2903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2904 (eval "$ac_compiler -v >&5") 2>&5
2905 ac_status=$?
2906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2907 (exit $ac_status); }
2908 { (ac_try="$ac_compiler -V >&5"
2909 case "(($ac_try" in
2910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2911 *) ac_try_echo=$ac_try;;
2912 esac
2913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2914 (eval "$ac_compiler -V >&5") 2>&5
2915 ac_status=$?
2916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2917 (exit $ac_status); }
2919 cat >conftest.$ac_ext <<_ACEOF
2920 /* confdefs.h. */
2921 _ACEOF
2922 cat confdefs.h >>conftest.$ac_ext
2923 cat >>conftest.$ac_ext <<_ACEOF
2924 /* end confdefs.h. */
2927 main ()
2931 return 0;
2933 _ACEOF
2934 ac_clean_files_save=$ac_clean_files
2935 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2936 # Try to create an executable without -o first, disregard a.out.
2937 # It will help us diagnose broken compilers, and finding out an intuition
2938 # of exeext.
2939 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2940 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2941 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2943 # List of possible output files, starting from the most likely.
2944 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2945 # only as a last resort. b.out is created by i960 compilers.
2946 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2948 # The IRIX 6 linker writes into existing files which may not be
2949 # executable, retaining their permissions. Remove them first so a
2950 # subsequent execution test works.
2951 ac_rmfiles=
2952 for ac_file in $ac_files
2954 case $ac_file in
2955 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2956 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2957 esac
2958 done
2959 rm -f $ac_rmfiles
2961 if { (ac_try="$ac_link_default"
2962 case "(($ac_try" in
2963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2964 *) ac_try_echo=$ac_try;;
2965 esac
2966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2967 (eval "$ac_link_default") 2>&5
2968 ac_status=$?
2969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2970 (exit $ac_status); }; then
2971 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2972 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2973 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2974 # so that the user can short-circuit this test for compilers unknown to
2975 # Autoconf.
2976 for ac_file in $ac_files
2978 test -f "$ac_file" || continue
2979 case $ac_file in
2980 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2982 [ab].out )
2983 # We found the default executable, but exeext='' is most
2984 # certainly right.
2985 break;;
2986 *.* )
2987 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2988 then :; else
2989 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2991 # We set ac_cv_exeext here because the later test for it is not
2992 # safe: cross compilers may not add the suffix if given an `-o'
2993 # argument, so we may need to know it at that point already.
2994 # Even if this section looks crufty: it has the advantage of
2995 # actually working.
2996 break;;
2998 break;;
2999 esac
3000 done
3001 test "$ac_cv_exeext" = no && ac_cv_exeext=
3003 else
3004 echo "$as_me: failed program was:" >&5
3005 sed 's/^/| /' conftest.$ac_ext >&5
3007 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3008 See \`config.log' for more details." >&5
3009 echo "$as_me: error: C compiler cannot create executables
3010 See \`config.log' for more details." >&2;}
3011 { (exit 77); exit 77; }; }
3014 ac_exeext=$ac_cv_exeext
3015 { echo "$as_me:$LINENO: result: $ac_file" >&5
3016 echo "${ECHO_T}$ac_file" >&6; }
3018 # Check that the compiler produces executables we can run. If not, either
3019 # the compiler is broken, or we cross compile.
3020 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3021 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3022 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3023 # If not cross compiling, check that we can run a simple program.
3024 if test "$cross_compiling" != yes; then
3025 if { ac_try='./$ac_file'
3026 { (case "(($ac_try" in
3027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3028 *) ac_try_echo=$ac_try;;
3029 esac
3030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3031 (eval "$ac_try") 2>&5
3032 ac_status=$?
3033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3034 (exit $ac_status); }; }; then
3035 cross_compiling=no
3036 else
3037 if test "$cross_compiling" = maybe; then
3038 cross_compiling=yes
3039 else
3040 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3041 If you meant to cross compile, use \`--host'.
3042 See \`config.log' for more details." >&5
3043 echo "$as_me: error: cannot run C compiled programs.
3044 If you meant to cross compile, use \`--host'.
3045 See \`config.log' for more details." >&2;}
3046 { (exit 1); exit 1; }; }
3050 { echo "$as_me:$LINENO: result: yes" >&5
3051 echo "${ECHO_T}yes" >&6; }
3053 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3054 ac_clean_files=$ac_clean_files_save
3055 # Check that the compiler produces executables we can run. If not, either
3056 # the compiler is broken, or we cross compile.
3057 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3058 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3059 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3060 echo "${ECHO_T}$cross_compiling" >&6; }
3062 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3063 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3064 if { (ac_try="$ac_link"
3065 case "(($ac_try" in
3066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3067 *) ac_try_echo=$ac_try;;
3068 esac
3069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3070 (eval "$ac_link") 2>&5
3071 ac_status=$?
3072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3073 (exit $ac_status); }; then
3074 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3075 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3076 # work properly (i.e., refer to `conftest.exe'), while it won't with
3077 # `rm'.
3078 for ac_file in conftest.exe conftest conftest.*; do
3079 test -f "$ac_file" || continue
3080 case $ac_file in
3081 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3082 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3083 break;;
3084 * ) break;;
3085 esac
3086 done
3087 else
3088 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3089 See \`config.log' for more details." >&5
3090 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3091 See \`config.log' for more details." >&2;}
3092 { (exit 1); exit 1; }; }
3095 rm -f conftest$ac_cv_exeext
3096 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3097 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3099 rm -f conftest.$ac_ext
3100 EXEEXT=$ac_cv_exeext
3101 ac_exeext=$EXEEXT
3102 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3103 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3104 if test "${ac_cv_objext+set}" = set; then
3105 echo $ECHO_N "(cached) $ECHO_C" >&6
3106 else
3107 cat >conftest.$ac_ext <<_ACEOF
3108 /* confdefs.h. */
3109 _ACEOF
3110 cat confdefs.h >>conftest.$ac_ext
3111 cat >>conftest.$ac_ext <<_ACEOF
3112 /* end confdefs.h. */
3115 main ()
3119 return 0;
3121 _ACEOF
3122 rm -f conftest.o conftest.obj
3123 if { (ac_try="$ac_compile"
3124 case "(($ac_try" in
3125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3126 *) ac_try_echo=$ac_try;;
3127 esac
3128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3129 (eval "$ac_compile") 2>&5
3130 ac_status=$?
3131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3132 (exit $ac_status); }; then
3133 for ac_file in conftest.o conftest.obj conftest.*; do
3134 test -f "$ac_file" || continue;
3135 case $ac_file in
3136 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3137 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3138 break;;
3139 esac
3140 done
3141 else
3142 echo "$as_me: failed program was:" >&5
3143 sed 's/^/| /' conftest.$ac_ext >&5
3145 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3146 See \`config.log' for more details." >&5
3147 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3148 See \`config.log' for more details." >&2;}
3149 { (exit 1); exit 1; }; }
3152 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3154 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3155 echo "${ECHO_T}$ac_cv_objext" >&6; }
3156 OBJEXT=$ac_cv_objext
3157 ac_objext=$OBJEXT
3158 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3159 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3160 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3161 echo $ECHO_N "(cached) $ECHO_C" >&6
3162 else
3163 cat >conftest.$ac_ext <<_ACEOF
3164 /* confdefs.h. */
3165 _ACEOF
3166 cat confdefs.h >>conftest.$ac_ext
3167 cat >>conftest.$ac_ext <<_ACEOF
3168 /* end confdefs.h. */
3171 main ()
3173 #ifndef __GNUC__
3174 choke me
3175 #endif
3178 return 0;
3180 _ACEOF
3181 rm -f conftest.$ac_objext
3182 if { (ac_try="$ac_compile"
3183 case "(($ac_try" in
3184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3185 *) ac_try_echo=$ac_try;;
3186 esac
3187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3188 (eval "$ac_compile") 2>conftest.er1
3189 ac_status=$?
3190 grep -v '^ *+' conftest.er1 >conftest.err
3191 rm -f conftest.er1
3192 cat conftest.err >&5
3193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3194 (exit $ac_status); } &&
3195 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3196 { (case "(($ac_try" in
3197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3198 *) ac_try_echo=$ac_try;;
3199 esac
3200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3201 (eval "$ac_try") 2>&5
3202 ac_status=$?
3203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3204 (exit $ac_status); }; } &&
3205 { ac_try='test -s conftest.$ac_objext'
3206 { (case "(($ac_try" in
3207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3208 *) ac_try_echo=$ac_try;;
3209 esac
3210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3211 (eval "$ac_try") 2>&5
3212 ac_status=$?
3213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3214 (exit $ac_status); }; }; then
3215 ac_compiler_gnu=yes
3216 else
3217 echo "$as_me: failed program was:" >&5
3218 sed 's/^/| /' conftest.$ac_ext >&5
3220 ac_compiler_gnu=no
3223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3224 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3227 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3228 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3229 GCC=`test $ac_compiler_gnu = yes && echo yes`
3230 ac_test_CFLAGS=${CFLAGS+set}
3231 ac_save_CFLAGS=$CFLAGS
3232 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3233 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3234 if test "${ac_cv_prog_cc_g+set}" = set; then
3235 echo $ECHO_N "(cached) $ECHO_C" >&6
3236 else
3237 ac_save_c_werror_flag=$ac_c_werror_flag
3238 ac_c_werror_flag=yes
3239 ac_cv_prog_cc_g=no
3240 CFLAGS="-g"
3241 cat >conftest.$ac_ext <<_ACEOF
3242 /* confdefs.h. */
3243 _ACEOF
3244 cat confdefs.h >>conftest.$ac_ext
3245 cat >>conftest.$ac_ext <<_ACEOF
3246 /* end confdefs.h. */
3249 main ()
3253 return 0;
3255 _ACEOF
3256 rm -f conftest.$ac_objext
3257 if { (ac_try="$ac_compile"
3258 case "(($ac_try" in
3259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3260 *) ac_try_echo=$ac_try;;
3261 esac
3262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3263 (eval "$ac_compile") 2>conftest.er1
3264 ac_status=$?
3265 grep -v '^ *+' conftest.er1 >conftest.err
3266 rm -f conftest.er1
3267 cat conftest.err >&5
3268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3269 (exit $ac_status); } &&
3270 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3271 { (case "(($ac_try" in
3272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3273 *) ac_try_echo=$ac_try;;
3274 esac
3275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3276 (eval "$ac_try") 2>&5
3277 ac_status=$?
3278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3279 (exit $ac_status); }; } &&
3280 { ac_try='test -s conftest.$ac_objext'
3281 { (case "(($ac_try" in
3282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3283 *) ac_try_echo=$ac_try;;
3284 esac
3285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3286 (eval "$ac_try") 2>&5
3287 ac_status=$?
3288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3289 (exit $ac_status); }; }; then
3290 ac_cv_prog_cc_g=yes
3291 else
3292 echo "$as_me: failed program was:" >&5
3293 sed 's/^/| /' conftest.$ac_ext >&5
3295 CFLAGS=""
3296 cat >conftest.$ac_ext <<_ACEOF
3297 /* confdefs.h. */
3298 _ACEOF
3299 cat confdefs.h >>conftest.$ac_ext
3300 cat >>conftest.$ac_ext <<_ACEOF
3301 /* end confdefs.h. */
3304 main ()
3308 return 0;
3310 _ACEOF
3311 rm -f conftest.$ac_objext
3312 if { (ac_try="$ac_compile"
3313 case "(($ac_try" in
3314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3315 *) ac_try_echo=$ac_try;;
3316 esac
3317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3318 (eval "$ac_compile") 2>conftest.er1
3319 ac_status=$?
3320 grep -v '^ *+' conftest.er1 >conftest.err
3321 rm -f conftest.er1
3322 cat conftest.err >&5
3323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3324 (exit $ac_status); } &&
3325 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3326 { (case "(($ac_try" in
3327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3328 *) ac_try_echo=$ac_try;;
3329 esac
3330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3331 (eval "$ac_try") 2>&5
3332 ac_status=$?
3333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3334 (exit $ac_status); }; } &&
3335 { ac_try='test -s conftest.$ac_objext'
3336 { (case "(($ac_try" in
3337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3338 *) ac_try_echo=$ac_try;;
3339 esac
3340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3341 (eval "$ac_try") 2>&5
3342 ac_status=$?
3343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3344 (exit $ac_status); }; }; then
3346 else
3347 echo "$as_me: failed program was:" >&5
3348 sed 's/^/| /' conftest.$ac_ext >&5
3350 ac_c_werror_flag=$ac_save_c_werror_flag
3351 CFLAGS="-g"
3352 cat >conftest.$ac_ext <<_ACEOF
3353 /* confdefs.h. */
3354 _ACEOF
3355 cat confdefs.h >>conftest.$ac_ext
3356 cat >>conftest.$ac_ext <<_ACEOF
3357 /* end confdefs.h. */
3360 main ()
3364 return 0;
3366 _ACEOF
3367 rm -f conftest.$ac_objext
3368 if { (ac_try="$ac_compile"
3369 case "(($ac_try" in
3370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3371 *) ac_try_echo=$ac_try;;
3372 esac
3373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3374 (eval "$ac_compile") 2>conftest.er1
3375 ac_status=$?
3376 grep -v '^ *+' conftest.er1 >conftest.err
3377 rm -f conftest.er1
3378 cat conftest.err >&5
3379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3380 (exit $ac_status); } &&
3381 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3382 { (case "(($ac_try" in
3383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3384 *) ac_try_echo=$ac_try;;
3385 esac
3386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3387 (eval "$ac_try") 2>&5
3388 ac_status=$?
3389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3390 (exit $ac_status); }; } &&
3391 { ac_try='test -s conftest.$ac_objext'
3392 { (case "(($ac_try" in
3393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3394 *) ac_try_echo=$ac_try;;
3395 esac
3396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3397 (eval "$ac_try") 2>&5
3398 ac_status=$?
3399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3400 (exit $ac_status); }; }; then
3401 ac_cv_prog_cc_g=yes
3402 else
3403 echo "$as_me: failed program was:" >&5
3404 sed 's/^/| /' conftest.$ac_ext >&5
3409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3416 ac_c_werror_flag=$ac_save_c_werror_flag
3418 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3419 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3420 if test "$ac_test_CFLAGS" = set; then
3421 CFLAGS=$ac_save_CFLAGS
3422 elif test $ac_cv_prog_cc_g = yes; then
3423 if test "$GCC" = yes; then
3424 CFLAGS="-g -O2"
3425 else
3426 CFLAGS="-g"
3428 else
3429 if test "$GCC" = yes; then
3430 CFLAGS="-O2"
3431 else
3432 CFLAGS=
3435 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3436 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3437 if test "${ac_cv_prog_cc_c89+set}" = set; then
3438 echo $ECHO_N "(cached) $ECHO_C" >&6
3439 else
3440 ac_cv_prog_cc_c89=no
3441 ac_save_CC=$CC
3442 cat >conftest.$ac_ext <<_ACEOF
3443 /* confdefs.h. */
3444 _ACEOF
3445 cat confdefs.h >>conftest.$ac_ext
3446 cat >>conftest.$ac_ext <<_ACEOF
3447 /* end confdefs.h. */
3448 #include <stdarg.h>
3449 #include <stdio.h>
3450 #include <sys/types.h>
3451 #include <sys/stat.h>
3452 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3453 struct buf { int x; };
3454 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3455 static char *e (p, i)
3456 char **p;
3457 int i;
3459 return p[i];
3461 static char *f (char * (*g) (char **, int), char **p, ...)
3463 char *s;
3464 va_list v;
3465 va_start (v,p);
3466 s = g (p, va_arg (v,int));
3467 va_end (v);
3468 return s;
3471 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3472 function prototypes and stuff, but not '\xHH' hex character constants.
3473 These don't provoke an error unfortunately, instead are silently treated
3474 as 'x'. The following induces an error, until -std is added to get
3475 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3476 array size at least. It's necessary to write '\x00'==0 to get something
3477 that's true only with -std. */
3478 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3480 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3481 inside strings and character constants. */
3482 #define FOO(x) 'x'
3483 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3485 int test (int i, double x);
3486 struct s1 {int (*f) (int a);};
3487 struct s2 {int (*f) (double a);};
3488 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3489 int argc;
3490 char **argv;
3492 main ()
3494 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3496 return 0;
3498 _ACEOF
3499 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3500 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3502 CC="$ac_save_CC $ac_arg"
3503 rm -f conftest.$ac_objext
3504 if { (ac_try="$ac_compile"
3505 case "(($ac_try" in
3506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3507 *) ac_try_echo=$ac_try;;
3508 esac
3509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3510 (eval "$ac_compile") 2>conftest.er1
3511 ac_status=$?
3512 grep -v '^ *+' conftest.er1 >conftest.err
3513 rm -f conftest.er1
3514 cat conftest.err >&5
3515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3516 (exit $ac_status); } &&
3517 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3518 { (case "(($ac_try" in
3519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3520 *) ac_try_echo=$ac_try;;
3521 esac
3522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3523 (eval "$ac_try") 2>&5
3524 ac_status=$?
3525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3526 (exit $ac_status); }; } &&
3527 { ac_try='test -s conftest.$ac_objext'
3528 { (case "(($ac_try" in
3529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3530 *) ac_try_echo=$ac_try;;
3531 esac
3532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3533 (eval "$ac_try") 2>&5
3534 ac_status=$?
3535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3536 (exit $ac_status); }; }; then
3537 ac_cv_prog_cc_c89=$ac_arg
3538 else
3539 echo "$as_me: failed program was:" >&5
3540 sed 's/^/| /' conftest.$ac_ext >&5
3545 rm -f core conftest.err conftest.$ac_objext
3546 test "x$ac_cv_prog_cc_c89" != "xno" && break
3547 done
3548 rm -f conftest.$ac_ext
3549 CC=$ac_save_CC
3552 # AC_CACHE_VAL
3553 case "x$ac_cv_prog_cc_c89" in
3555 { echo "$as_me:$LINENO: result: none needed" >&5
3556 echo "${ECHO_T}none needed" >&6; } ;;
3557 xno)
3558 { echo "$as_me:$LINENO: result: unsupported" >&5
3559 echo "${ECHO_T}unsupported" >&6; } ;;
3561 CC="$CC $ac_cv_prog_cc_c89"
3562 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3563 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3564 esac
3567 ac_ext=c
3568 ac_cpp='$CPP $CPPFLAGS'
3569 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3570 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3571 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3573 depcc="$CC" am_compiler_list=
3575 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3576 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3577 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3578 echo $ECHO_N "(cached) $ECHO_C" >&6
3579 else
3580 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3581 # We make a subdir and do the tests there. Otherwise we can end up
3582 # making bogus files that we don't know about and never remove. For
3583 # instance it was reported that on HP-UX the gcc test will end up
3584 # making a dummy file named `D' -- because `-MD' means `put the output
3585 # in D'.
3586 mkdir conftest.dir
3587 # Copy depcomp to subdir because otherwise we won't find it if we're
3588 # using a relative directory.
3589 cp "$am_depcomp" conftest.dir
3590 cd conftest.dir
3591 # We will build objects and dependencies in a subdirectory because
3592 # it helps to detect inapplicable dependency modes. For instance
3593 # both Tru64's cc and ICC support -MD to output dependencies as a
3594 # side effect of compilation, but ICC will put the dependencies in
3595 # the current directory while Tru64 will put them in the object
3596 # directory.
3597 mkdir sub
3599 am_cv_CC_dependencies_compiler_type=none
3600 if test "$am_compiler_list" = ""; then
3601 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3603 for depmode in $am_compiler_list; do
3604 # Setup a source with many dependencies, because some compilers
3605 # like to wrap large dependency lists on column 80 (with \), and
3606 # we should not choose a depcomp mode which is confused by this.
3608 # We need to recreate these files for each test, as the compiler may
3609 # overwrite some of them when testing with obscure command lines.
3610 # This happens at least with the AIX C compiler.
3611 : > sub/conftest.c
3612 for i in 1 2 3 4 5 6; do
3613 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3614 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3615 # Solaris 8's {/usr,}/bin/sh.
3616 touch sub/conftst$i.h
3617 done
3618 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3620 case $depmode in
3621 nosideeffect)
3622 # after this tag, mechanisms are not by side-effect, so they'll
3623 # only be used when explicitly requested
3624 if test "x$enable_dependency_tracking" = xyes; then
3625 continue
3626 else
3627 break
3630 none) break ;;
3631 esac
3632 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3633 # mode. It turns out that the SunPro C++ compiler does not properly
3634 # handle `-M -o', and we need to detect this.
3635 if depmode=$depmode \
3636 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3637 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3638 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3639 >/dev/null 2>conftest.err &&
3640 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3641 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3642 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3643 # icc doesn't choke on unknown options, it will just issue warnings
3644 # or remarks (even with -Werror). So we grep stderr for any message
3645 # that says an option was ignored or not supported.
3646 # When given -MP, icc 7.0 and 7.1 complain thusly:
3647 # icc: Command line warning: ignoring option '-M'; no argument required
3648 # The diagnosis changed in icc 8.0:
3649 # icc: Command line remark: option '-MP' not supported
3650 if (grep 'ignoring option' conftest.err ||
3651 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3652 am_cv_CC_dependencies_compiler_type=$depmode
3653 break
3656 done
3658 cd ..
3659 rm -rf conftest.dir
3660 else
3661 am_cv_CC_dependencies_compiler_type=none
3665 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3666 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3667 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3672 test "x$enable_dependency_tracking" != xno \
3673 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3674 am__fastdepCC_TRUE=
3675 am__fastdepCC_FALSE='#'
3676 else
3677 am__fastdepCC_TRUE='#'
3678 am__fastdepCC_FALSE=
3683 ac_ext=c
3684 ac_cpp='$CPP $CPPFLAGS'
3685 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3686 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3687 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3688 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3689 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3690 # On Suns, sometimes $CPP names a directory.
3691 if test -n "$CPP" && test -d "$CPP"; then
3692 CPP=
3694 if test -z "$CPP"; then
3695 if test "${ac_cv_prog_CPP+set}" = set; then
3696 echo $ECHO_N "(cached) $ECHO_C" >&6
3697 else
3698 # Double quotes because CPP needs to be expanded
3699 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3701 ac_preproc_ok=false
3702 for ac_c_preproc_warn_flag in '' yes
3704 # Use a header file that comes with gcc, so configuring glibc
3705 # with a fresh cross-compiler works.
3706 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3707 # <limits.h> exists even on freestanding compilers.
3708 # On the NeXT, cc -E runs the code through the compiler's parser,
3709 # not just through cpp. "Syntax error" is here to catch this case.
3710 cat >conftest.$ac_ext <<_ACEOF
3711 /* confdefs.h. */
3712 _ACEOF
3713 cat confdefs.h >>conftest.$ac_ext
3714 cat >>conftest.$ac_ext <<_ACEOF
3715 /* end confdefs.h. */
3716 #ifdef __STDC__
3717 # include <limits.h>
3718 #else
3719 # include <assert.h>
3720 #endif
3721 Syntax error
3722 _ACEOF
3723 if { (ac_try="$ac_cpp conftest.$ac_ext"
3724 case "(($ac_try" in
3725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3726 *) ac_try_echo=$ac_try;;
3727 esac
3728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3729 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3730 ac_status=$?
3731 grep -v '^ *+' conftest.er1 >conftest.err
3732 rm -f conftest.er1
3733 cat conftest.err >&5
3734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3735 (exit $ac_status); } >/dev/null; then
3736 if test -s conftest.err; then
3737 ac_cpp_err=$ac_c_preproc_warn_flag
3738 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3739 else
3740 ac_cpp_err=
3742 else
3743 ac_cpp_err=yes
3745 if test -z "$ac_cpp_err"; then
3747 else
3748 echo "$as_me: failed program was:" >&5
3749 sed 's/^/| /' conftest.$ac_ext >&5
3751 # Broken: fails on valid input.
3752 continue
3755 rm -f conftest.err conftest.$ac_ext
3757 # OK, works on sane cases. Now check whether nonexistent headers
3758 # can be detected and how.
3759 cat >conftest.$ac_ext <<_ACEOF
3760 /* confdefs.h. */
3761 _ACEOF
3762 cat confdefs.h >>conftest.$ac_ext
3763 cat >>conftest.$ac_ext <<_ACEOF
3764 /* end confdefs.h. */
3765 #include <ac_nonexistent.h>
3766 _ACEOF
3767 if { (ac_try="$ac_cpp conftest.$ac_ext"
3768 case "(($ac_try" in
3769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3770 *) ac_try_echo=$ac_try;;
3771 esac
3772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3773 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3774 ac_status=$?
3775 grep -v '^ *+' conftest.er1 >conftest.err
3776 rm -f conftest.er1
3777 cat conftest.err >&5
3778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3779 (exit $ac_status); } >/dev/null; then
3780 if test -s conftest.err; then
3781 ac_cpp_err=$ac_c_preproc_warn_flag
3782 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3783 else
3784 ac_cpp_err=
3786 else
3787 ac_cpp_err=yes
3789 if test -z "$ac_cpp_err"; then
3790 # Broken: success on invalid input.
3791 continue
3792 else
3793 echo "$as_me: failed program was:" >&5
3794 sed 's/^/| /' conftest.$ac_ext >&5
3796 # Passes both tests.
3797 ac_preproc_ok=:
3798 break
3801 rm -f conftest.err conftest.$ac_ext
3803 done
3804 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3805 rm -f conftest.err conftest.$ac_ext
3806 if $ac_preproc_ok; then
3807 break
3810 done
3811 ac_cv_prog_CPP=$CPP
3814 CPP=$ac_cv_prog_CPP
3815 else
3816 ac_cv_prog_CPP=$CPP
3818 { echo "$as_me:$LINENO: result: $CPP" >&5
3819 echo "${ECHO_T}$CPP" >&6; }
3820 ac_preproc_ok=false
3821 for ac_c_preproc_warn_flag in '' yes
3823 # Use a header file that comes with gcc, so configuring glibc
3824 # with a fresh cross-compiler works.
3825 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3826 # <limits.h> exists even on freestanding compilers.
3827 # On the NeXT, cc -E runs the code through the compiler's parser,
3828 # not just through cpp. "Syntax error" is here to catch this case.
3829 cat >conftest.$ac_ext <<_ACEOF
3830 /* confdefs.h. */
3831 _ACEOF
3832 cat confdefs.h >>conftest.$ac_ext
3833 cat >>conftest.$ac_ext <<_ACEOF
3834 /* end confdefs.h. */
3835 #ifdef __STDC__
3836 # include <limits.h>
3837 #else
3838 # include <assert.h>
3839 #endif
3840 Syntax error
3841 _ACEOF
3842 if { (ac_try="$ac_cpp conftest.$ac_ext"
3843 case "(($ac_try" in
3844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3845 *) ac_try_echo=$ac_try;;
3846 esac
3847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3848 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3849 ac_status=$?
3850 grep -v '^ *+' conftest.er1 >conftest.err
3851 rm -f conftest.er1
3852 cat conftest.err >&5
3853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3854 (exit $ac_status); } >/dev/null; then
3855 if test -s conftest.err; then
3856 ac_cpp_err=$ac_c_preproc_warn_flag
3857 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3858 else
3859 ac_cpp_err=
3861 else
3862 ac_cpp_err=yes
3864 if test -z "$ac_cpp_err"; then
3866 else
3867 echo "$as_me: failed program was:" >&5
3868 sed 's/^/| /' conftest.$ac_ext >&5
3870 # Broken: fails on valid input.
3871 continue
3874 rm -f conftest.err conftest.$ac_ext
3876 # OK, works on sane cases. Now check whether nonexistent headers
3877 # can be detected and how.
3878 cat >conftest.$ac_ext <<_ACEOF
3879 /* confdefs.h. */
3880 _ACEOF
3881 cat confdefs.h >>conftest.$ac_ext
3882 cat >>conftest.$ac_ext <<_ACEOF
3883 /* end confdefs.h. */
3884 #include <ac_nonexistent.h>
3885 _ACEOF
3886 if { (ac_try="$ac_cpp conftest.$ac_ext"
3887 case "(($ac_try" in
3888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3889 *) ac_try_echo=$ac_try;;
3890 esac
3891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3892 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3893 ac_status=$?
3894 grep -v '^ *+' conftest.er1 >conftest.err
3895 rm -f conftest.er1
3896 cat conftest.err >&5
3897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3898 (exit $ac_status); } >/dev/null; then
3899 if test -s conftest.err; then
3900 ac_cpp_err=$ac_c_preproc_warn_flag
3901 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3902 else
3903 ac_cpp_err=
3905 else
3906 ac_cpp_err=yes
3908 if test -z "$ac_cpp_err"; then
3909 # Broken: success on invalid input.
3910 continue
3911 else
3912 echo "$as_me: failed program was:" >&5
3913 sed 's/^/| /' conftest.$ac_ext >&5
3915 # Passes both tests.
3916 ac_preproc_ok=:
3917 break
3920 rm -f conftest.err conftest.$ac_ext
3922 done
3923 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3924 rm -f conftest.err conftest.$ac_ext
3925 if $ac_preproc_ok; then
3927 else
3928 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3929 See \`config.log' for more details." >&5
3930 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3931 See \`config.log' for more details." >&2;}
3932 { (exit 1); exit 1; }; }
3935 ac_ext=c
3936 ac_cpp='$CPP $CPPFLAGS'
3937 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3938 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3939 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3942 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3943 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3944 if test "${ac_cv_path_GREP+set}" = set; then
3945 echo $ECHO_N "(cached) $ECHO_C" >&6
3946 else
3947 # Extract the first word of "grep ggrep" to use in msg output
3948 if test -z "$GREP"; then
3949 set dummy grep ggrep; ac_prog_name=$2
3950 if test "${ac_cv_path_GREP+set}" = set; then
3951 echo $ECHO_N "(cached) $ECHO_C" >&6
3952 else
3953 ac_path_GREP_found=false
3954 # Loop through the user's path and test for each of PROGNAME-LIST
3955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3956 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3958 IFS=$as_save_IFS
3959 test -z "$as_dir" && as_dir=.
3960 for ac_prog in grep ggrep; do
3961 for ac_exec_ext in '' $ac_executable_extensions; do
3962 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3963 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3964 # Check for GNU ac_path_GREP and select it if it is found.
3965 # Check for GNU $ac_path_GREP
3966 case `"$ac_path_GREP" --version 2>&1` in
3967 *GNU*)
3968 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3970 ac_count=0
3971 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3972 while :
3974 cat "conftest.in" "conftest.in" >"conftest.tmp"
3975 mv "conftest.tmp" "conftest.in"
3976 cp "conftest.in" "conftest.nl"
3977 echo 'GREP' >> "conftest.nl"
3978 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3979 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3980 ac_count=`expr $ac_count + 1`
3981 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3982 # Best one so far, save it but keep looking for a better one
3983 ac_cv_path_GREP="$ac_path_GREP"
3984 ac_path_GREP_max=$ac_count
3986 # 10*(2^10) chars as input seems more than enough
3987 test $ac_count -gt 10 && break
3988 done
3989 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3990 esac
3993 $ac_path_GREP_found && break 3
3994 done
3995 done
3997 done
3998 IFS=$as_save_IFS
4003 GREP="$ac_cv_path_GREP"
4004 if test -z "$GREP"; then
4005 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4006 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4007 { (exit 1); exit 1; }; }
4010 else
4011 ac_cv_path_GREP=$GREP
4016 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4017 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4018 GREP="$ac_cv_path_GREP"
4021 { echo "$as_me:$LINENO: checking for egrep" >&5
4022 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4023 if test "${ac_cv_path_EGREP+set}" = set; then
4024 echo $ECHO_N "(cached) $ECHO_C" >&6
4025 else
4026 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4027 then ac_cv_path_EGREP="$GREP -E"
4028 else
4029 # Extract the first word of "egrep" to use in msg output
4030 if test -z "$EGREP"; then
4031 set dummy egrep; ac_prog_name=$2
4032 if test "${ac_cv_path_EGREP+set}" = set; then
4033 echo $ECHO_N "(cached) $ECHO_C" >&6
4034 else
4035 ac_path_EGREP_found=false
4036 # Loop through the user's path and test for each of PROGNAME-LIST
4037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4038 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4040 IFS=$as_save_IFS
4041 test -z "$as_dir" && as_dir=.
4042 for ac_prog in egrep; do
4043 for ac_exec_ext in '' $ac_executable_extensions; do
4044 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4045 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4046 # Check for GNU ac_path_EGREP and select it if it is found.
4047 # Check for GNU $ac_path_EGREP
4048 case `"$ac_path_EGREP" --version 2>&1` in
4049 *GNU*)
4050 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4052 ac_count=0
4053 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4054 while :
4056 cat "conftest.in" "conftest.in" >"conftest.tmp"
4057 mv "conftest.tmp" "conftest.in"
4058 cp "conftest.in" "conftest.nl"
4059 echo 'EGREP' >> "conftest.nl"
4060 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4061 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4062 ac_count=`expr $ac_count + 1`
4063 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4064 # Best one so far, save it but keep looking for a better one
4065 ac_cv_path_EGREP="$ac_path_EGREP"
4066 ac_path_EGREP_max=$ac_count
4068 # 10*(2^10) chars as input seems more than enough
4069 test $ac_count -gt 10 && break
4070 done
4071 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4072 esac
4075 $ac_path_EGREP_found && break 3
4076 done
4077 done
4079 done
4080 IFS=$as_save_IFS
4085 EGREP="$ac_cv_path_EGREP"
4086 if test -z "$EGREP"; then
4087 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4088 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4089 { (exit 1); exit 1; }; }
4092 else
4093 ac_cv_path_EGREP=$EGREP
4099 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4100 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4101 EGREP="$ac_cv_path_EGREP"
4105 { echo "$as_me:$LINENO: checking for AIX" >&5
4106 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4107 cat >conftest.$ac_ext <<_ACEOF
4108 /* confdefs.h. */
4109 _ACEOF
4110 cat confdefs.h >>conftest.$ac_ext
4111 cat >>conftest.$ac_ext <<_ACEOF
4112 /* end confdefs.h. */
4113 #ifdef _AIX
4115 #endif
4117 _ACEOF
4118 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4119 $EGREP "yes" >/dev/null 2>&1; then
4120 { echo "$as_me:$LINENO: result: yes" >&5
4121 echo "${ECHO_T}yes" >&6; }
4122 cat >>confdefs.h <<\_ACEOF
4123 #define _ALL_SOURCE 1
4124 _ACEOF
4126 else
4127 { echo "$as_me:$LINENO: result: no" >&5
4128 echo "${ECHO_T}no" >&6; }
4130 rm -f conftest*
4133 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4134 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4135 if test "${ac_cv_header_stdc+set}" = set; then
4136 echo $ECHO_N "(cached) $ECHO_C" >&6
4137 else
4138 cat >conftest.$ac_ext <<_ACEOF
4139 /* confdefs.h. */
4140 _ACEOF
4141 cat confdefs.h >>conftest.$ac_ext
4142 cat >>conftest.$ac_ext <<_ACEOF
4143 /* end confdefs.h. */
4144 #include <stdlib.h>
4145 #include <stdarg.h>
4146 #include <string.h>
4147 #include <float.h>
4150 main ()
4154 return 0;
4156 _ACEOF
4157 rm -f conftest.$ac_objext
4158 if { (ac_try="$ac_compile"
4159 case "(($ac_try" in
4160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4161 *) ac_try_echo=$ac_try;;
4162 esac
4163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4164 (eval "$ac_compile") 2>conftest.er1
4165 ac_status=$?
4166 grep -v '^ *+' conftest.er1 >conftest.err
4167 rm -f conftest.er1
4168 cat conftest.err >&5
4169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4170 (exit $ac_status); } &&
4171 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4172 { (case "(($ac_try" in
4173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4174 *) ac_try_echo=$ac_try;;
4175 esac
4176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4177 (eval "$ac_try") 2>&5
4178 ac_status=$?
4179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4180 (exit $ac_status); }; } &&
4181 { ac_try='test -s conftest.$ac_objext'
4182 { (case "(($ac_try" in
4183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4184 *) ac_try_echo=$ac_try;;
4185 esac
4186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4187 (eval "$ac_try") 2>&5
4188 ac_status=$?
4189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4190 (exit $ac_status); }; }; then
4191 ac_cv_header_stdc=yes
4192 else
4193 echo "$as_me: failed program was:" >&5
4194 sed 's/^/| /' conftest.$ac_ext >&5
4196 ac_cv_header_stdc=no
4199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4201 if test $ac_cv_header_stdc = yes; then
4202 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4203 cat >conftest.$ac_ext <<_ACEOF
4204 /* confdefs.h. */
4205 _ACEOF
4206 cat confdefs.h >>conftest.$ac_ext
4207 cat >>conftest.$ac_ext <<_ACEOF
4208 /* end confdefs.h. */
4209 #include <string.h>
4211 _ACEOF
4212 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4213 $EGREP "memchr" >/dev/null 2>&1; then
4215 else
4216 ac_cv_header_stdc=no
4218 rm -f conftest*
4222 if test $ac_cv_header_stdc = yes; then
4223 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4224 cat >conftest.$ac_ext <<_ACEOF
4225 /* confdefs.h. */
4226 _ACEOF
4227 cat confdefs.h >>conftest.$ac_ext
4228 cat >>conftest.$ac_ext <<_ACEOF
4229 /* end confdefs.h. */
4230 #include <stdlib.h>
4232 _ACEOF
4233 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4234 $EGREP "free" >/dev/null 2>&1; then
4236 else
4237 ac_cv_header_stdc=no
4239 rm -f conftest*
4243 if test $ac_cv_header_stdc = yes; then
4244 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4245 if test "$cross_compiling" = yes; then
4247 else
4248 cat >conftest.$ac_ext <<_ACEOF
4249 /* confdefs.h. */
4250 _ACEOF
4251 cat confdefs.h >>conftest.$ac_ext
4252 cat >>conftest.$ac_ext <<_ACEOF
4253 /* end confdefs.h. */
4254 #include <ctype.h>
4255 #include <stdlib.h>
4256 #if ((' ' & 0x0FF) == 0x020)
4257 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4258 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4259 #else
4260 # define ISLOWER(c) \
4261 (('a' <= (c) && (c) <= 'i') \
4262 || ('j' <= (c) && (c) <= 'r') \
4263 || ('s' <= (c) && (c) <= 'z'))
4264 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4265 #endif
4267 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4269 main ()
4271 int i;
4272 for (i = 0; i < 256; i++)
4273 if (XOR (islower (i), ISLOWER (i))
4274 || toupper (i) != TOUPPER (i))
4275 return 2;
4276 return 0;
4278 _ACEOF
4279 rm -f conftest$ac_exeext
4280 if { (ac_try="$ac_link"
4281 case "(($ac_try" in
4282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4283 *) ac_try_echo=$ac_try;;
4284 esac
4285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4286 (eval "$ac_link") 2>&5
4287 ac_status=$?
4288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4289 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4290 { (case "(($ac_try" in
4291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4292 *) ac_try_echo=$ac_try;;
4293 esac
4294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4295 (eval "$ac_try") 2>&5
4296 ac_status=$?
4297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4298 (exit $ac_status); }; }; then
4300 else
4301 echo "$as_me: program exited with status $ac_status" >&5
4302 echo "$as_me: failed program was:" >&5
4303 sed 's/^/| /' conftest.$ac_ext >&5
4305 ( exit $ac_status )
4306 ac_cv_header_stdc=no
4308 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4314 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4315 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4316 if test $ac_cv_header_stdc = yes; then
4318 cat >>confdefs.h <<\_ACEOF
4319 #define STDC_HEADERS 1
4320 _ACEOF
4324 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4334 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4335 inttypes.h stdint.h unistd.h
4337 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4338 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4339 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4340 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4341 echo $ECHO_N "(cached) $ECHO_C" >&6
4342 else
4343 cat >conftest.$ac_ext <<_ACEOF
4344 /* confdefs.h. */
4345 _ACEOF
4346 cat confdefs.h >>conftest.$ac_ext
4347 cat >>conftest.$ac_ext <<_ACEOF
4348 /* end confdefs.h. */
4349 $ac_includes_default
4351 #include <$ac_header>
4352 _ACEOF
4353 rm -f conftest.$ac_objext
4354 if { (ac_try="$ac_compile"
4355 case "(($ac_try" in
4356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4357 *) ac_try_echo=$ac_try;;
4358 esac
4359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4360 (eval "$ac_compile") 2>conftest.er1
4361 ac_status=$?
4362 grep -v '^ *+' conftest.er1 >conftest.err
4363 rm -f conftest.er1
4364 cat conftest.err >&5
4365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4366 (exit $ac_status); } &&
4367 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4368 { (case "(($ac_try" in
4369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4370 *) ac_try_echo=$ac_try;;
4371 esac
4372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4373 (eval "$ac_try") 2>&5
4374 ac_status=$?
4375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4376 (exit $ac_status); }; } &&
4377 { ac_try='test -s conftest.$ac_objext'
4378 { (case "(($ac_try" in
4379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4380 *) ac_try_echo=$ac_try;;
4381 esac
4382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4383 (eval "$ac_try") 2>&5
4384 ac_status=$?
4385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4386 (exit $ac_status); }; }; then
4387 eval "$as_ac_Header=yes"
4388 else
4389 echo "$as_me: failed program was:" >&5
4390 sed 's/^/| /' conftest.$ac_ext >&5
4392 eval "$as_ac_Header=no"
4395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4397 ac_res=`eval echo '${'$as_ac_Header'}'`
4398 { echo "$as_me:$LINENO: result: $ac_res" >&5
4399 echo "${ECHO_T}$ac_res" >&6; }
4400 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4401 cat >>confdefs.h <<_ACEOF
4402 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4403 _ACEOF
4407 done
4410 if test "${ac_cv_header_minix_config_h+set}" = set; then
4411 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
4412 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
4413 if test "${ac_cv_header_minix_config_h+set}" = set; then
4414 echo $ECHO_N "(cached) $ECHO_C" >&6
4416 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4417 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
4418 else
4419 # Is the header compilable?
4420 { echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4421 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
4422 cat >conftest.$ac_ext <<_ACEOF
4423 /* confdefs.h. */
4424 _ACEOF
4425 cat confdefs.h >>conftest.$ac_ext
4426 cat >>conftest.$ac_ext <<_ACEOF
4427 /* end confdefs.h. */
4428 $ac_includes_default
4429 #include <minix/config.h>
4430 _ACEOF
4431 rm -f conftest.$ac_objext
4432 if { (ac_try="$ac_compile"
4433 case "(($ac_try" in
4434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4435 *) ac_try_echo=$ac_try;;
4436 esac
4437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4438 (eval "$ac_compile") 2>conftest.er1
4439 ac_status=$?
4440 grep -v '^ *+' conftest.er1 >conftest.err
4441 rm -f conftest.er1
4442 cat conftest.err >&5
4443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4444 (exit $ac_status); } &&
4445 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4446 { (case "(($ac_try" in
4447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4448 *) ac_try_echo=$ac_try;;
4449 esac
4450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4451 (eval "$ac_try") 2>&5
4452 ac_status=$?
4453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4454 (exit $ac_status); }; } &&
4455 { ac_try='test -s conftest.$ac_objext'
4456 { (case "(($ac_try" in
4457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4458 *) ac_try_echo=$ac_try;;
4459 esac
4460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4461 (eval "$ac_try") 2>&5
4462 ac_status=$?
4463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4464 (exit $ac_status); }; }; then
4465 ac_header_compiler=yes
4466 else
4467 echo "$as_me: failed program was:" >&5
4468 sed 's/^/| /' conftest.$ac_ext >&5
4470 ac_header_compiler=no
4473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4474 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4475 echo "${ECHO_T}$ac_header_compiler" >&6; }
4477 # Is the header present?
4478 { echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4479 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
4480 cat >conftest.$ac_ext <<_ACEOF
4481 /* confdefs.h. */
4482 _ACEOF
4483 cat confdefs.h >>conftest.$ac_ext
4484 cat >>conftest.$ac_ext <<_ACEOF
4485 /* end confdefs.h. */
4486 #include <minix/config.h>
4487 _ACEOF
4488 if { (ac_try="$ac_cpp conftest.$ac_ext"
4489 case "(($ac_try" in
4490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4491 *) ac_try_echo=$ac_try;;
4492 esac
4493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4494 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4495 ac_status=$?
4496 grep -v '^ *+' conftest.er1 >conftest.err
4497 rm -f conftest.er1
4498 cat conftest.err >&5
4499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4500 (exit $ac_status); } >/dev/null; then
4501 if test -s conftest.err; then
4502 ac_cpp_err=$ac_c_preproc_warn_flag
4503 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4504 else
4505 ac_cpp_err=
4507 else
4508 ac_cpp_err=yes
4510 if test -z "$ac_cpp_err"; then
4511 ac_header_preproc=yes
4512 else
4513 echo "$as_me: failed program was:" >&5
4514 sed 's/^/| /' conftest.$ac_ext >&5
4516 ac_header_preproc=no
4519 rm -f conftest.err conftest.$ac_ext
4520 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4521 echo "${ECHO_T}$ac_header_preproc" >&6; }
4523 # So? What about this header?
4524 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4525 yes:no: )
4526 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4527 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4528 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4529 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4530 ac_header_preproc=yes
4532 no:yes:* )
4533 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4534 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4535 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4536 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4537 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4538 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4539 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4540 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4541 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4542 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4543 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4544 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4545 ( cat <<\_ASBOX
4546 ## ------------------------------------ ##
4547 ## Report this to bug-coreutils@gnu.org ##
4548 ## ------------------------------------ ##
4549 _ASBOX
4550 ) | sed "s/^/$as_me: WARNING: /" >&2
4552 esac
4553 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
4554 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
4555 if test "${ac_cv_header_minix_config_h+set}" = set; then
4556 echo $ECHO_N "(cached) $ECHO_C" >&6
4557 else
4558 ac_cv_header_minix_config_h=$ac_header_preproc
4560 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4561 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
4564 if test $ac_cv_header_minix_config_h = yes; then
4565 MINIX=yes
4566 else
4567 MINIX=
4571 if test "$MINIX" = yes; then
4573 cat >>confdefs.h <<\_ACEOF
4574 #define _POSIX_SOURCE 1
4575 _ACEOF
4578 cat >>confdefs.h <<\_ACEOF
4579 #define _POSIX_1_SOURCE 2
4580 _ACEOF
4583 cat >>confdefs.h <<\_ACEOF
4584 #define _MINIX 1
4585 _ACEOF
4599 { echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4600 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6; }
4601 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4602 echo $ECHO_N "(cached) $ECHO_C" >&6
4603 else
4604 cat >conftest.$ac_ext <<_ACEOF
4605 /* confdefs.h. */
4606 _ACEOF
4607 cat confdefs.h >>conftest.$ac_ext
4608 cat >>conftest.$ac_ext <<_ACEOF
4609 /* end confdefs.h. */
4611 #define __EXTENSIONS__ 1
4612 $ac_includes_default
4614 main ()
4618 return 0;
4620 _ACEOF
4621 rm -f conftest.$ac_objext
4622 if { (ac_try="$ac_compile"
4623 case "(($ac_try" in
4624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4625 *) ac_try_echo=$ac_try;;
4626 esac
4627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4628 (eval "$ac_compile") 2>conftest.er1
4629 ac_status=$?
4630 grep -v '^ *+' conftest.er1 >conftest.err
4631 rm -f conftest.er1
4632 cat conftest.err >&5
4633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4634 (exit $ac_status); } &&
4635 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4636 { (case "(($ac_try" in
4637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4638 *) ac_try_echo=$ac_try;;
4639 esac
4640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4641 (eval "$ac_try") 2>&5
4642 ac_status=$?
4643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4644 (exit $ac_status); }; } &&
4645 { ac_try='test -s conftest.$ac_objext'
4646 { (case "(($ac_try" in
4647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4648 *) ac_try_echo=$ac_try;;
4649 esac
4650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4651 (eval "$ac_try") 2>&5
4652 ac_status=$?
4653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4654 (exit $ac_status); }; }; then
4655 ac_cv_safe_to_define___extensions__=yes
4656 else
4657 echo "$as_me: failed program was:" >&5
4658 sed 's/^/| /' conftest.$ac_ext >&5
4660 ac_cv_safe_to_define___extensions__=no
4663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4665 { echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4666 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6; }
4667 test $ac_cv_safe_to_define___extensions__ = yes &&
4668 cat >>confdefs.h <<\_ACEOF
4669 #define __EXTENSIONS__ 1
4670 _ACEOF
4672 cat >>confdefs.h <<\_ACEOF
4673 #define _POSIX_PTHREAD_SEMANTICS 1
4674 _ACEOF
4678 { echo "$as_me:$LINENO: checking for perl5.003 or newer" >&5
4679 echo $ECHO_N "checking for perl5.003 or newer... $ECHO_C" >&6; }
4680 if test "${PERL+set}" = set; then
4681 # `PERL' is set in the user's environment.
4682 candidate_perl_names="$PERL"
4683 perl_specified=yes
4684 else
4685 candidate_perl_names='perl perl5'
4686 perl_specified=no
4689 found=no
4691 PERL="$am_missing_run perl"
4692 for perl in $candidate_perl_names; do
4693 # Run test in a subshell; some versions of sh will print an error if
4694 # an executable is not found, even if stderr is redirected.
4695 if ( $perl -e 'require 5.003; use File::Compare' ) > /dev/null 2>&1; then
4696 PERL=$perl
4697 found=yes
4698 break
4700 done
4702 { echo "$as_me:$LINENO: result: $found" >&5
4703 echo "${ECHO_T}$found" >&6; }
4704 test $found = no && { echo "$as_me:$LINENO: WARNING:
4705 WARNING: You don't seem to have perl5.003 or newer installed, or you lack
4706 a usable version of the Perl File::Compare module. As a result,
4707 you may be unable to run a few tests or to regenerate certain
4708 files if you modify the sources from which they are derived.
4709 " >&5
4710 echo "$as_me: WARNING:
4711 WARNING: You don't seem to have perl5.003 or newer installed, or you lack
4712 a usable version of the Perl File::Compare module. As a result,
4713 you may be unable to run a few tests or to regenerate certain
4714 files if you modify the sources from which they are derived.
4715 " >&2;}
4717 case $ac_cv_prog_cc_stdc in
4718 no) ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;;
4719 *) { echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5
4720 echo $ECHO_N "checking for $CC option to accept ISO C99... $ECHO_C" >&6; }
4721 if test "${ac_cv_prog_cc_c99+set}" = set; then
4722 echo $ECHO_N "(cached) $ECHO_C" >&6
4723 else
4724 ac_cv_prog_cc_c99=no
4725 ac_save_CC=$CC
4726 cat >conftest.$ac_ext <<_ACEOF
4727 /* confdefs.h. */
4728 _ACEOF
4729 cat confdefs.h >>conftest.$ac_ext
4730 cat >>conftest.$ac_ext <<_ACEOF
4731 /* end confdefs.h. */
4732 #include <stdarg.h>
4733 #include <stdbool.h>
4734 #include <stdlib.h>
4735 #include <wchar.h>
4736 #include <stdio.h>
4738 struct incomplete_array
4740 int datasize;
4741 double data[];
4744 struct named_init {
4745 int number;
4746 const wchar_t *name;
4747 double average;
4750 typedef const char *ccp;
4752 static inline int
4753 test_restrict(ccp restrict text)
4755 // See if C++-style comments work.
4756 // Iterate through items via the restricted pointer.
4757 // Also check for declarations in for loops.
4758 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4759 continue;
4760 return 0;
4763 // Check varargs and va_copy work.
4764 static void
4765 test_varargs(const char *format, ...)
4767 va_list args;
4768 va_start(args, format);
4769 va_list args_copy;
4770 va_copy(args_copy, args);
4772 const char *str;
4773 int number;
4774 float fnumber;
4776 while (*format)
4778 switch (*format++)
4780 case 's': // string
4781 str = va_arg(args_copy, const char *);
4782 break;
4783 case 'd': // int
4784 number = va_arg(args_copy, int);
4785 break;
4786 case 'f': // float
4787 fnumber = (float) va_arg(args_copy, double);
4788 break;
4789 default:
4790 break;
4793 va_end(args_copy);
4794 va_end(args);
4798 main ()
4801 // Check bool and long long datatypes.
4802 _Bool success = false;
4803 long long int bignum = -1234567890LL;
4804 unsigned long long int ubignum = 1234567890uLL;
4806 // Check restrict.
4807 if (test_restrict("String literal") != 0)
4808 success = true;
4809 char *restrict newvar = "Another string";
4811 // Check varargs.
4812 test_varargs("s, d' f .", "string", 65, 34.234);
4814 // Check incomplete arrays work.
4815 struct incomplete_array *ia =
4816 malloc(sizeof(struct incomplete_array) + (sizeof(double) * 10));
4817 ia->datasize = 10;
4818 for (int i = 0; i < ia->datasize; ++i)
4819 ia->data[i] = (double) i * 1.234;
4821 // Check named initialisers.
4822 struct named_init ni = {
4823 .number = 34,
4824 .name = L"Test wide string",
4825 .average = 543.34343,
4828 ni.number = 58;
4830 int dynamic_array[ni.number];
4831 dynamic_array[43] = 543;
4833 // work around unused variable warnings
4834 return bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x';
4837 return 0;
4839 _ACEOF
4840 for ac_arg in '' -std=gnu99 -c99 -qlanglvl=extc99
4842 CC="$ac_save_CC $ac_arg"
4843 rm -f conftest.$ac_objext
4844 if { (ac_try="$ac_compile"
4845 case "(($ac_try" in
4846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4847 *) ac_try_echo=$ac_try;;
4848 esac
4849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4850 (eval "$ac_compile") 2>conftest.er1
4851 ac_status=$?
4852 grep -v '^ *+' conftest.er1 >conftest.err
4853 rm -f conftest.er1
4854 cat conftest.err >&5
4855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4856 (exit $ac_status); } &&
4857 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4858 { (case "(($ac_try" in
4859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4860 *) ac_try_echo=$ac_try;;
4861 esac
4862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4863 (eval "$ac_try") 2>&5
4864 ac_status=$?
4865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4866 (exit $ac_status); }; } &&
4867 { ac_try='test -s conftest.$ac_objext'
4868 { (case "(($ac_try" in
4869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4870 *) ac_try_echo=$ac_try;;
4871 esac
4872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4873 (eval "$ac_try") 2>&5
4874 ac_status=$?
4875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4876 (exit $ac_status); }; }; then
4877 ac_cv_prog_cc_c99=$ac_arg
4878 else
4879 echo "$as_me: failed program was:" >&5
4880 sed 's/^/| /' conftest.$ac_ext >&5
4885 rm -f core conftest.err conftest.$ac_objext
4886 test "x$ac_cv_prog_cc_c99" != "xno" && break
4887 done
4888 rm -f conftest.$ac_ext
4889 CC=$ac_save_CC
4892 # AC_CACHE_VAL
4893 case "x$ac_cv_prog_cc_c99" in
4895 { echo "$as_me:$LINENO: result: none needed" >&5
4896 echo "${ECHO_T}none needed" >&6; } ;;
4897 xno)
4898 { echo "$as_me:$LINENO: result: unsupported" >&5
4899 echo "${ECHO_T}unsupported" >&6; } ;;
4901 CC="$CC $ac_cv_prog_cc_c99"
4902 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5
4903 echo "${ECHO_T}$ac_cv_prog_cc_c99" >&6; } ;;
4904 esac
4905 if test "x$ac_cv_prog_cc_c99" != xno; then
4906 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4907 else
4908 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4909 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4910 if test "${ac_cv_prog_cc_c89+set}" = set; then
4911 echo $ECHO_N "(cached) $ECHO_C" >&6
4912 else
4913 ac_cv_prog_cc_c89=no
4914 ac_save_CC=$CC
4915 cat >conftest.$ac_ext <<_ACEOF
4916 /* confdefs.h. */
4917 _ACEOF
4918 cat confdefs.h >>conftest.$ac_ext
4919 cat >>conftest.$ac_ext <<_ACEOF
4920 /* end confdefs.h. */
4921 #include <stdarg.h>
4922 #include <stdio.h>
4923 #include <sys/types.h>
4924 #include <sys/stat.h>
4925 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4926 struct buf { int x; };
4927 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4928 static char *e (p, i)
4929 char **p;
4930 int i;
4932 return p[i];
4934 static char *f (char * (*g) (char **, int), char **p, ...)
4936 char *s;
4937 va_list v;
4938 va_start (v,p);
4939 s = g (p, va_arg (v,int));
4940 va_end (v);
4941 return s;
4944 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4945 function prototypes and stuff, but not '\xHH' hex character constants.
4946 These don't provoke an error unfortunately, instead are silently treated
4947 as 'x'. The following induces an error, until -std is added to get
4948 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4949 array size at least. It's necessary to write '\x00'==0 to get something
4950 that's true only with -std. */
4951 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4953 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4954 inside strings and character constants. */
4955 #define FOO(x) 'x'
4956 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4958 int test (int i, double x);
4959 struct s1 {int (*f) (int a);};
4960 struct s2 {int (*f) (double a);};
4961 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4962 int argc;
4963 char **argv;
4965 main ()
4967 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4969 return 0;
4971 _ACEOF
4972 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4973 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4975 CC="$ac_save_CC $ac_arg"
4976 rm -f conftest.$ac_objext
4977 if { (ac_try="$ac_compile"
4978 case "(($ac_try" in
4979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4980 *) ac_try_echo=$ac_try;;
4981 esac
4982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4983 (eval "$ac_compile") 2>conftest.er1
4984 ac_status=$?
4985 grep -v '^ *+' conftest.er1 >conftest.err
4986 rm -f conftest.er1
4987 cat conftest.err >&5
4988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4989 (exit $ac_status); } &&
4990 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4991 { (case "(($ac_try" in
4992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4993 *) ac_try_echo=$ac_try;;
4994 esac
4995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4996 (eval "$ac_try") 2>&5
4997 ac_status=$?
4998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4999 (exit $ac_status); }; } &&
5000 { ac_try='test -s conftest.$ac_objext'
5001 { (case "(($ac_try" in
5002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5003 *) ac_try_echo=$ac_try;;
5004 esac
5005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5006 (eval "$ac_try") 2>&5
5007 ac_status=$?
5008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5009 (exit $ac_status); }; }; then
5010 ac_cv_prog_cc_c89=$ac_arg
5011 else
5012 echo "$as_me: failed program was:" >&5
5013 sed 's/^/| /' conftest.$ac_ext >&5
5018 rm -f core conftest.err conftest.$ac_objext
5019 test "x$ac_cv_prog_cc_c89" != "xno" && break
5020 done
5021 rm -f conftest.$ac_ext
5022 CC=$ac_save_CC
5025 # AC_CACHE_VAL
5026 case "x$ac_cv_prog_cc_c89" in
5028 { echo "$as_me:$LINENO: result: none needed" >&5
5029 echo "${ECHO_T}none needed" >&6; } ;;
5030 xno)
5031 { echo "$as_me:$LINENO: result: unsupported" >&5
5032 echo "${ECHO_T}unsupported" >&6; } ;;
5034 CC="$CC $ac_cv_prog_cc_c89"
5035 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5036 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5037 esac
5038 if test "x$ac_cv_prog_cc_c89" != xno; then
5039 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5040 else
5041 ac_cv_prog_cc_stdc=no
5048 esac
5049 { echo "$as_me:$LINENO: checking for $CC option to accept ISO Standard C" >&5
5050 echo $ECHO_N "checking for $CC option to accept ISO Standard C... $ECHO_C" >&6; }
5051 if test "${ac_cv_prog_cc_stdc+set}" = set; then
5052 echo $ECHO_N "(cached) $ECHO_C" >&6
5055 case $ac_cv_prog_cc_stdc in
5056 no) { echo "$as_me:$LINENO: result: unsupported" >&5
5057 echo "${ECHO_T}unsupported" >&6; } ;;
5058 '') { echo "$as_me:$LINENO: result: none needed" >&5
5059 echo "${ECHO_T}none needed" >&6; } ;;
5060 *) { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
5061 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6; } ;;
5062 esac
5065 if test "x$CC" != xcc; then
5066 { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
5067 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
5068 else
5069 { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
5070 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
5072 set dummy $CC; ac_cc=`echo $2 |
5073 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5074 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
5075 echo $ECHO_N "(cached) $ECHO_C" >&6
5076 else
5077 cat >conftest.$ac_ext <<_ACEOF
5078 /* confdefs.h. */
5079 _ACEOF
5080 cat confdefs.h >>conftest.$ac_ext
5081 cat >>conftest.$ac_ext <<_ACEOF
5082 /* end confdefs.h. */
5085 main ()
5089 return 0;
5091 _ACEOF
5092 # Make sure it works both with $CC and with simple cc.
5093 # We do the test twice because some compilers refuse to overwrite an
5094 # existing .o file with -o, though they will create one.
5095 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5096 rm -f conftest2.*
5097 if { (case "(($ac_try" in
5098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5099 *) ac_try_echo=$ac_try;;
5100 esac
5101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5102 (eval "$ac_try") 2>&5
5103 ac_status=$?
5104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5105 (exit $ac_status); } &&
5106 test -f conftest2.$ac_objext && { (case "(($ac_try" in
5107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5108 *) ac_try_echo=$ac_try;;
5109 esac
5110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5111 (eval "$ac_try") 2>&5
5112 ac_status=$?
5113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5114 (exit $ac_status); };
5115 then
5116 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5117 if test "x$CC" != xcc; then
5118 # Test first that cc exists at all.
5119 if { ac_try='cc -c conftest.$ac_ext >&5'
5120 { (case "(($ac_try" in
5121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5122 *) ac_try_echo=$ac_try;;
5123 esac
5124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5125 (eval "$ac_try") 2>&5
5126 ac_status=$?
5127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5128 (exit $ac_status); }; }; then
5129 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5130 rm -f conftest2.*
5131 if { (case "(($ac_try" in
5132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5133 *) ac_try_echo=$ac_try;;
5134 esac
5135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5136 (eval "$ac_try") 2>&5
5137 ac_status=$?
5138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5139 (exit $ac_status); } &&
5140 test -f conftest2.$ac_objext && { (case "(($ac_try" in
5141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5142 *) ac_try_echo=$ac_try;;
5143 esac
5144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5145 (eval "$ac_try") 2>&5
5146 ac_status=$?
5147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5148 (exit $ac_status); };
5149 then
5150 # cc works too.
5152 else
5153 # cc exists but doesn't like -o.
5154 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5158 else
5159 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5161 rm -f core conftest*
5164 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5165 { echo "$as_me:$LINENO: result: yes" >&5
5166 echo "${ECHO_T}yes" >&6; }
5167 else
5168 { echo "$as_me:$LINENO: result: no" >&5
5169 echo "${ECHO_T}no" >&6; }
5171 cat >>confdefs.h <<\_ACEOF
5172 #define NO_MINUS_C_MINUS_O 1
5173 _ACEOF
5177 # FIXME: we rely on the cache variable name because
5178 # there is no other way.
5179 set dummy $CC
5180 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5181 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
5182 # Losing compiler, so override with the script.
5183 # FIXME: It is wrong to rewrite CC.
5184 # But if we don't then we get into trouble of one sort or another.
5185 # A longer-term fix would be to have automake use am__CC in this case,
5186 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5187 CC="$am_aux_dir/compile $CC"
5190 ac_ext=c
5191 ac_cpp='$CPP $CPPFLAGS'
5192 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5193 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5194 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5195 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5196 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5197 # On Suns, sometimes $CPP names a directory.
5198 if test -n "$CPP" && test -d "$CPP"; then
5199 CPP=
5201 if test -z "$CPP"; then
5202 if test "${ac_cv_prog_CPP+set}" = set; then
5203 echo $ECHO_N "(cached) $ECHO_C" >&6
5204 else
5205 # Double quotes because CPP needs to be expanded
5206 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5208 ac_preproc_ok=false
5209 for ac_c_preproc_warn_flag in '' yes
5211 # Use a header file that comes with gcc, so configuring glibc
5212 # with a fresh cross-compiler works.
5213 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5214 # <limits.h> exists even on freestanding compilers.
5215 # On the NeXT, cc -E runs the code through the compiler's parser,
5216 # not just through cpp. "Syntax error" is here to catch this case.
5217 cat >conftest.$ac_ext <<_ACEOF
5218 /* confdefs.h. */
5219 _ACEOF
5220 cat confdefs.h >>conftest.$ac_ext
5221 cat >>conftest.$ac_ext <<_ACEOF
5222 /* end confdefs.h. */
5223 #ifdef __STDC__
5224 # include <limits.h>
5225 #else
5226 # include <assert.h>
5227 #endif
5228 Syntax error
5229 _ACEOF
5230 if { (ac_try="$ac_cpp conftest.$ac_ext"
5231 case "(($ac_try" in
5232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5233 *) ac_try_echo=$ac_try;;
5234 esac
5235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5236 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5237 ac_status=$?
5238 grep -v '^ *+' conftest.er1 >conftest.err
5239 rm -f conftest.er1
5240 cat conftest.err >&5
5241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5242 (exit $ac_status); } >/dev/null; then
5243 if test -s conftest.err; then
5244 ac_cpp_err=$ac_c_preproc_warn_flag
5245 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5246 else
5247 ac_cpp_err=
5249 else
5250 ac_cpp_err=yes
5252 if test -z "$ac_cpp_err"; then
5254 else
5255 echo "$as_me: failed program was:" >&5
5256 sed 's/^/| /' conftest.$ac_ext >&5
5258 # Broken: fails on valid input.
5259 continue
5262 rm -f conftest.err conftest.$ac_ext
5264 # OK, works on sane cases. Now check whether nonexistent headers
5265 # can be detected and how.
5266 cat >conftest.$ac_ext <<_ACEOF
5267 /* confdefs.h. */
5268 _ACEOF
5269 cat confdefs.h >>conftest.$ac_ext
5270 cat >>conftest.$ac_ext <<_ACEOF
5271 /* end confdefs.h. */
5272 #include <ac_nonexistent.h>
5273 _ACEOF
5274 if { (ac_try="$ac_cpp conftest.$ac_ext"
5275 case "(($ac_try" in
5276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5277 *) ac_try_echo=$ac_try;;
5278 esac
5279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5280 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5281 ac_status=$?
5282 grep -v '^ *+' conftest.er1 >conftest.err
5283 rm -f conftest.er1
5284 cat conftest.err >&5
5285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5286 (exit $ac_status); } >/dev/null; then
5287 if test -s conftest.err; then
5288 ac_cpp_err=$ac_c_preproc_warn_flag
5289 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5290 else
5291 ac_cpp_err=
5293 else
5294 ac_cpp_err=yes
5296 if test -z "$ac_cpp_err"; then
5297 # Broken: success on invalid input.
5298 continue
5299 else
5300 echo "$as_me: failed program was:" >&5
5301 sed 's/^/| /' conftest.$ac_ext >&5
5303 # Passes both tests.
5304 ac_preproc_ok=:
5305 break
5308 rm -f conftest.err conftest.$ac_ext
5310 done
5311 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5312 rm -f conftest.err conftest.$ac_ext
5313 if $ac_preproc_ok; then
5314 break
5317 done
5318 ac_cv_prog_CPP=$CPP
5321 CPP=$ac_cv_prog_CPP
5322 else
5323 ac_cv_prog_CPP=$CPP
5325 { echo "$as_me:$LINENO: result: $CPP" >&5
5326 echo "${ECHO_T}$CPP" >&6; }
5327 ac_preproc_ok=false
5328 for ac_c_preproc_warn_flag in '' yes
5330 # Use a header file that comes with gcc, so configuring glibc
5331 # with a fresh cross-compiler works.
5332 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5333 # <limits.h> exists even on freestanding compilers.
5334 # On the NeXT, cc -E runs the code through the compiler's parser,
5335 # not just through cpp. "Syntax error" is here to catch this case.
5336 cat >conftest.$ac_ext <<_ACEOF
5337 /* confdefs.h. */
5338 _ACEOF
5339 cat confdefs.h >>conftest.$ac_ext
5340 cat >>conftest.$ac_ext <<_ACEOF
5341 /* end confdefs.h. */
5342 #ifdef __STDC__
5343 # include <limits.h>
5344 #else
5345 # include <assert.h>
5346 #endif
5347 Syntax error
5348 _ACEOF
5349 if { (ac_try="$ac_cpp conftest.$ac_ext"
5350 case "(($ac_try" in
5351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5352 *) ac_try_echo=$ac_try;;
5353 esac
5354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5355 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5356 ac_status=$?
5357 grep -v '^ *+' conftest.er1 >conftest.err
5358 rm -f conftest.er1
5359 cat conftest.err >&5
5360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5361 (exit $ac_status); } >/dev/null; then
5362 if test -s conftest.err; then
5363 ac_cpp_err=$ac_c_preproc_warn_flag
5364 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5365 else
5366 ac_cpp_err=
5368 else
5369 ac_cpp_err=yes
5371 if test -z "$ac_cpp_err"; then
5373 else
5374 echo "$as_me: failed program was:" >&5
5375 sed 's/^/| /' conftest.$ac_ext >&5
5377 # Broken: fails on valid input.
5378 continue
5381 rm -f conftest.err conftest.$ac_ext
5383 # OK, works on sane cases. Now check whether nonexistent headers
5384 # can be detected and how.
5385 cat >conftest.$ac_ext <<_ACEOF
5386 /* confdefs.h. */
5387 _ACEOF
5388 cat confdefs.h >>conftest.$ac_ext
5389 cat >>conftest.$ac_ext <<_ACEOF
5390 /* end confdefs.h. */
5391 #include <ac_nonexistent.h>
5392 _ACEOF
5393 if { (ac_try="$ac_cpp conftest.$ac_ext"
5394 case "(($ac_try" in
5395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5396 *) ac_try_echo=$ac_try;;
5397 esac
5398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5399 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5400 ac_status=$?
5401 grep -v '^ *+' conftest.er1 >conftest.err
5402 rm -f conftest.er1
5403 cat conftest.err >&5
5404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5405 (exit $ac_status); } >/dev/null; then
5406 if test -s conftest.err; then
5407 ac_cpp_err=$ac_c_preproc_warn_flag
5408 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5409 else
5410 ac_cpp_err=
5412 else
5413 ac_cpp_err=yes
5415 if test -z "$ac_cpp_err"; then
5416 # Broken: success on invalid input.
5417 continue
5418 else
5419 echo "$as_me: failed program was:" >&5
5420 sed 's/^/| /' conftest.$ac_ext >&5
5422 # Passes both tests.
5423 ac_preproc_ok=:
5424 break
5427 rm -f conftest.err conftest.$ac_ext
5429 done
5430 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5431 rm -f conftest.err conftest.$ac_ext
5432 if $ac_preproc_ok; then
5434 else
5435 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5436 See \`config.log' for more details." >&5
5437 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5438 See \`config.log' for more details." >&2;}
5439 { (exit 1); exit 1; }; }
5442 ac_ext=c
5443 ac_cpp='$CPP $CPPFLAGS'
5444 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5445 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5446 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5448 if test $ac_cv_c_compiler_gnu = yes; then
5449 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
5450 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
5451 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
5452 echo $ECHO_N "(cached) $ECHO_C" >&6
5453 else
5454 ac_pattern="Autoconf.*'x'"
5455 cat >conftest.$ac_ext <<_ACEOF
5456 /* confdefs.h. */
5457 _ACEOF
5458 cat confdefs.h >>conftest.$ac_ext
5459 cat >>conftest.$ac_ext <<_ACEOF
5460 /* end confdefs.h. */
5461 #include <sgtty.h>
5462 Autoconf TIOCGETP
5463 _ACEOF
5464 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5465 $EGREP "$ac_pattern" >/dev/null 2>&1; then
5466 ac_cv_prog_gcc_traditional=yes
5467 else
5468 ac_cv_prog_gcc_traditional=no
5470 rm -f conftest*
5473 if test $ac_cv_prog_gcc_traditional = no; then
5474 cat >conftest.$ac_ext <<_ACEOF
5475 /* confdefs.h. */
5476 _ACEOF
5477 cat confdefs.h >>conftest.$ac_ext
5478 cat >>conftest.$ac_ext <<_ACEOF
5479 /* end confdefs.h. */
5480 #include <termio.h>
5481 Autoconf TCGETA
5482 _ACEOF
5483 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5484 $EGREP "$ac_pattern" >/dev/null 2>&1; then
5485 ac_cv_prog_gcc_traditional=yes
5487 rm -f conftest*
5491 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
5492 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
5493 if test $ac_cv_prog_gcc_traditional = yes; then
5494 CC="$CC -traditional"
5498 if test -n "$ac_tool_prefix"; then
5499 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5500 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5501 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5502 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5503 if test "${ac_cv_prog_RANLIB+set}" = set; then
5504 echo $ECHO_N "(cached) $ECHO_C" >&6
5505 else
5506 if test -n "$RANLIB"; then
5507 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5508 else
5509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5510 for as_dir in $PATH
5512 IFS=$as_save_IFS
5513 test -z "$as_dir" && as_dir=.
5514 for ac_exec_ext in '' $ac_executable_extensions; do
5515 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5516 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5517 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5518 break 2
5520 done
5521 done
5522 IFS=$as_save_IFS
5526 RANLIB=$ac_cv_prog_RANLIB
5527 if test -n "$RANLIB"; then
5528 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5529 echo "${ECHO_T}$RANLIB" >&6; }
5530 else
5531 { echo "$as_me:$LINENO: result: no" >&5
5532 echo "${ECHO_T}no" >&6; }
5537 if test -z "$ac_cv_prog_RANLIB"; then
5538 ac_ct_RANLIB=$RANLIB
5539 # Extract the first word of "ranlib", so it can be a program name with args.
5540 set dummy ranlib; ac_word=$2
5541 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5542 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5543 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5544 echo $ECHO_N "(cached) $ECHO_C" >&6
5545 else
5546 if test -n "$ac_ct_RANLIB"; then
5547 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5548 else
5549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5550 for as_dir in $PATH
5552 IFS=$as_save_IFS
5553 test -z "$as_dir" && as_dir=.
5554 for ac_exec_ext in '' $ac_executable_extensions; do
5555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5556 ac_cv_prog_ac_ct_RANLIB="ranlib"
5557 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5558 break 2
5560 done
5561 done
5562 IFS=$as_save_IFS
5566 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5567 if test -n "$ac_ct_RANLIB"; then
5568 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5569 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5570 else
5571 { echo "$as_me:$LINENO: result: no" >&5
5572 echo "${ECHO_T}no" >&6; }
5575 if test "x$ac_ct_RANLIB" = x; then
5576 RANLIB=":"
5577 else
5578 case $cross_compiling:$ac_tool_warned in
5579 yes:)
5580 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5581 whose name does not start with the host triplet. If you think this
5582 configuration is useful to you, please write to autoconf@gnu.org." >&5
5583 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5584 whose name does not start with the host triplet. If you think this
5585 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5586 ac_tool_warned=yes ;;
5587 esac
5588 RANLIB=$ac_ct_RANLIB
5590 else
5591 RANLIB="$ac_cv_prog_RANLIB"
5594 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5595 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5596 LN_S=$as_ln_s
5597 if test "$LN_S" = "ln -s"; then
5598 { echo "$as_me:$LINENO: result: yes" >&5
5599 echo "${ECHO_T}yes" >&6; }
5600 else
5601 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5602 echo "${ECHO_T}no, using $LN_S" >&6; }
5606 { echo "$as_me:$LINENO: checking for flag to ignore unused libraries" >&5
5607 echo $ECHO_N "checking for flag to ignore unused libraries... $ECHO_C" >&6; }
5608 if test "${gl_cv_ignore_unused_libraries+set}" = set; then
5609 echo $ECHO_N "(cached) $ECHO_C" >&6
5610 else
5611 gl_cv_ignore_unused_libraries=none
5612 gl_saved_ldflags=$LDFLAGS
5613 gl_saved_libs=$LIBS
5614 # Link with -lm to detect binutils 2.16 bug with --as-needed; see
5615 # <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00131.html>.
5616 LIBS="$LIBS -lm"
5617 # Use long option sequences like '-z ignore' to test for the feature,
5618 # to forestall problems with linkers that have -z, -i, -g, -n, etc. flags.
5619 # GCC + binutils likes '-Wl,--as-needed'.
5620 # GCC + Solaris ld likes '-Wl,-z,ignore'.
5621 # Sun C likes '-z ignore'.
5622 # Don't try bare '--as-needed'; nothing likes it and the HP-UX 11.11
5623 # native cc issues annoying warnings and then ignores it,
5624 # which would cause us to incorrectly conclude that it worked.
5625 for gl_flags in \
5626 '-Wl,--as-needed' \
5627 '-Wl,-z,ignore' \
5628 '-z ignore'
5630 LDFLAGS="$gl_flags $LDFLAGS"
5631 cat >conftest.$ac_ext <<_ACEOF
5632 /* confdefs.h. */
5633 _ACEOF
5634 cat confdefs.h >>conftest.$ac_ext
5635 cat >>conftest.$ac_ext <<_ACEOF
5636 /* end confdefs.h. */
5639 main ()
5643 return 0;
5645 _ACEOF
5646 rm -f conftest.$ac_objext conftest$ac_exeext
5647 if { (ac_try="$ac_link"
5648 case "(($ac_try" in
5649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5650 *) ac_try_echo=$ac_try;;
5651 esac
5652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5653 (eval "$ac_link") 2>conftest.er1
5654 ac_status=$?
5655 grep -v '^ *+' conftest.er1 >conftest.err
5656 rm -f conftest.er1
5657 cat conftest.err >&5
5658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5659 (exit $ac_status); } &&
5660 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5661 { (case "(($ac_try" in
5662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5663 *) ac_try_echo=$ac_try;;
5664 esac
5665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5666 (eval "$ac_try") 2>&5
5667 ac_status=$?
5668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5669 (exit $ac_status); }; } &&
5670 { ac_try='test -s conftest$ac_exeext'
5671 { (case "(($ac_try" in
5672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5673 *) ac_try_echo=$ac_try;;
5674 esac
5675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5676 (eval "$ac_try") 2>&5
5677 ac_status=$?
5678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5679 (exit $ac_status); }; }; then
5680 gl_cv_ignore_unused_libraries=$gl_flags
5681 else
5682 echo "$as_me: failed program was:" >&5
5683 sed 's/^/| /' conftest.$ac_ext >&5
5688 rm -f core conftest.err conftest.$ac_objext \
5689 conftest$ac_exeext conftest.$ac_ext
5690 LDFLAGS=$gl_saved_ldflags
5691 test "$gl_cv_ignore_unused_libraries" != none && break
5692 done
5693 LIBS=$gl_saved_libs
5695 { echo "$as_me:$LINENO: result: $gl_cv_ignore_unused_libraries" >&5
5696 echo "${ECHO_T}$gl_cv_ignore_unused_libraries" >&6; }
5698 test "$gl_cv_ignore_unused_libraries" != none &&
5699 LDFLAGS="$LDFLAGS $gl_cv_ignore_unused_libraries"
5704 for ac_func in uname
5706 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5707 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5708 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5709 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5710 echo $ECHO_N "(cached) $ECHO_C" >&6
5711 else
5712 cat >conftest.$ac_ext <<_ACEOF
5713 /* confdefs.h. */
5714 _ACEOF
5715 cat confdefs.h >>conftest.$ac_ext
5716 cat >>conftest.$ac_ext <<_ACEOF
5717 /* end confdefs.h. */
5718 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5719 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5720 #define $ac_func innocuous_$ac_func
5722 /* System header to define __stub macros and hopefully few prototypes,
5723 which can conflict with char $ac_func (); below.
5724 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5725 <limits.h> exists even on freestanding compilers. */
5727 #ifdef __STDC__
5728 # include <limits.h>
5729 #else
5730 # include <assert.h>
5731 #endif
5733 #undef $ac_func
5735 /* Override any GCC internal prototype to avoid an error.
5736 Use char because int might match the return type of a GCC
5737 builtin and then its argument prototype would still apply. */
5738 #ifdef __cplusplus
5739 extern "C"
5740 #endif
5741 char $ac_func ();
5742 /* The GNU C library defines this for functions which it implements
5743 to always fail with ENOSYS. Some functions are actually named
5744 something starting with __ and the normal name is an alias. */
5745 #if defined __stub_$ac_func || defined __stub___$ac_func
5746 choke me
5747 #endif
5750 main ()
5752 return $ac_func ();
5754 return 0;
5756 _ACEOF
5757 rm -f conftest.$ac_objext conftest$ac_exeext
5758 if { (ac_try="$ac_link"
5759 case "(($ac_try" in
5760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5761 *) ac_try_echo=$ac_try;;
5762 esac
5763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5764 (eval "$ac_link") 2>conftest.er1
5765 ac_status=$?
5766 grep -v '^ *+' conftest.er1 >conftest.err
5767 rm -f conftest.er1
5768 cat conftest.err >&5
5769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5770 (exit $ac_status); } &&
5771 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5772 { (case "(($ac_try" in
5773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5774 *) ac_try_echo=$ac_try;;
5775 esac
5776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5777 (eval "$ac_try") 2>&5
5778 ac_status=$?
5779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5780 (exit $ac_status); }; } &&
5781 { ac_try='test -s conftest$ac_exeext'
5782 { (case "(($ac_try" in
5783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5784 *) ac_try_echo=$ac_try;;
5785 esac
5786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5787 (eval "$ac_try") 2>&5
5788 ac_status=$?
5789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5790 (exit $ac_status); }; }; then
5791 eval "$as_ac_var=yes"
5792 else
5793 echo "$as_me: failed program was:" >&5
5794 sed 's/^/| /' conftest.$ac_ext >&5
5796 eval "$as_ac_var=no"
5799 rm -f core conftest.err conftest.$ac_objext \
5800 conftest$ac_exeext conftest.$ac_ext
5802 ac_res=`eval echo '${'$as_ac_var'}'`
5803 { echo "$as_me:$LINENO: result: $ac_res" >&5
5804 echo "${ECHO_T}$ac_res" >&6; }
5805 if test `eval echo '${'$as_ac_var'}'` = yes; then
5806 cat >>confdefs.h <<_ACEOF
5807 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5808 _ACEOF
5809 OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS uname\$(EXEEXT)"
5810 MAN="$MAN uname.1"
5812 done
5815 for ac_func in chroot
5817 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5818 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5819 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5820 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5821 echo $ECHO_N "(cached) $ECHO_C" >&6
5822 else
5823 cat >conftest.$ac_ext <<_ACEOF
5824 /* confdefs.h. */
5825 _ACEOF
5826 cat confdefs.h >>conftest.$ac_ext
5827 cat >>conftest.$ac_ext <<_ACEOF
5828 /* end confdefs.h. */
5829 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5830 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5831 #define $ac_func innocuous_$ac_func
5833 /* System header to define __stub macros and hopefully few prototypes,
5834 which can conflict with char $ac_func (); below.
5835 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5836 <limits.h> exists even on freestanding compilers. */
5838 #ifdef __STDC__
5839 # include <limits.h>
5840 #else
5841 # include <assert.h>
5842 #endif
5844 #undef $ac_func
5846 /* Override any GCC internal prototype to avoid an error.
5847 Use char because int might match the return type of a GCC
5848 builtin and then its argument prototype would still apply. */
5849 #ifdef __cplusplus
5850 extern "C"
5851 #endif
5852 char $ac_func ();
5853 /* The GNU C library defines this for functions which it implements
5854 to always fail with ENOSYS. Some functions are actually named
5855 something starting with __ and the normal name is an alias. */
5856 #if defined __stub_$ac_func || defined __stub___$ac_func
5857 choke me
5858 #endif
5861 main ()
5863 return $ac_func ();
5865 return 0;
5867 _ACEOF
5868 rm -f conftest.$ac_objext conftest$ac_exeext
5869 if { (ac_try="$ac_link"
5870 case "(($ac_try" in
5871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5872 *) ac_try_echo=$ac_try;;
5873 esac
5874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5875 (eval "$ac_link") 2>conftest.er1
5876 ac_status=$?
5877 grep -v '^ *+' conftest.er1 >conftest.err
5878 rm -f conftest.er1
5879 cat conftest.err >&5
5880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5881 (exit $ac_status); } &&
5882 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5883 { (case "(($ac_try" in
5884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5885 *) ac_try_echo=$ac_try;;
5886 esac
5887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5888 (eval "$ac_try") 2>&5
5889 ac_status=$?
5890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5891 (exit $ac_status); }; } &&
5892 { ac_try='test -s conftest$ac_exeext'
5893 { (case "(($ac_try" in
5894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5895 *) ac_try_echo=$ac_try;;
5896 esac
5897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5898 (eval "$ac_try") 2>&5
5899 ac_status=$?
5900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5901 (exit $ac_status); }; }; then
5902 eval "$as_ac_var=yes"
5903 else
5904 echo "$as_me: failed program was:" >&5
5905 sed 's/^/| /' conftest.$ac_ext >&5
5907 eval "$as_ac_var=no"
5910 rm -f core conftest.err conftest.$ac_objext \
5911 conftest$ac_exeext conftest.$ac_ext
5913 ac_res=`eval echo '${'$as_ac_var'}'`
5914 { echo "$as_me:$LINENO: result: $ac_res" >&5
5915 echo "${ECHO_T}$ac_res" >&6; }
5916 if test `eval echo '${'$as_ac_var'}'` = yes; then
5917 cat >>confdefs.h <<_ACEOF
5918 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5919 _ACEOF
5920 OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS chroot\$(EXEEXT)"
5921 MAN="$MAN chroot.1"
5923 done
5926 for ac_func in gethostid
5928 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5929 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5930 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5931 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5932 echo $ECHO_N "(cached) $ECHO_C" >&6
5933 else
5934 cat >conftest.$ac_ext <<_ACEOF
5935 /* confdefs.h. */
5936 _ACEOF
5937 cat confdefs.h >>conftest.$ac_ext
5938 cat >>conftest.$ac_ext <<_ACEOF
5939 /* end confdefs.h. */
5940 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5941 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5942 #define $ac_func innocuous_$ac_func
5944 /* System header to define __stub macros and hopefully few prototypes,
5945 which can conflict with char $ac_func (); below.
5946 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5947 <limits.h> exists even on freestanding compilers. */
5949 #ifdef __STDC__
5950 # include <limits.h>
5951 #else
5952 # include <assert.h>
5953 #endif
5955 #undef $ac_func
5957 /* Override any GCC internal prototype to avoid an error.
5958 Use char because int might match the return type of a GCC
5959 builtin and then its argument prototype would still apply. */
5960 #ifdef __cplusplus
5961 extern "C"
5962 #endif
5963 char $ac_func ();
5964 /* The GNU C library defines this for functions which it implements
5965 to always fail with ENOSYS. Some functions are actually named
5966 something starting with __ and the normal name is an alias. */
5967 #if defined __stub_$ac_func || defined __stub___$ac_func
5968 choke me
5969 #endif
5972 main ()
5974 return $ac_func ();
5976 return 0;
5978 _ACEOF
5979 rm -f conftest.$ac_objext conftest$ac_exeext
5980 if { (ac_try="$ac_link"
5981 case "(($ac_try" in
5982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5983 *) ac_try_echo=$ac_try;;
5984 esac
5985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5986 (eval "$ac_link") 2>conftest.er1
5987 ac_status=$?
5988 grep -v '^ *+' conftest.er1 >conftest.err
5989 rm -f conftest.er1
5990 cat conftest.err >&5
5991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5992 (exit $ac_status); } &&
5993 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5994 { (case "(($ac_try" in
5995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5996 *) ac_try_echo=$ac_try;;
5997 esac
5998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5999 (eval "$ac_try") 2>&5
6000 ac_status=$?
6001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6002 (exit $ac_status); }; } &&
6003 { ac_try='test -s conftest$ac_exeext'
6004 { (case "(($ac_try" in
6005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6006 *) ac_try_echo=$ac_try;;
6007 esac
6008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6009 (eval "$ac_try") 2>&5
6010 ac_status=$?
6011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6012 (exit $ac_status); }; }; then
6013 eval "$as_ac_var=yes"
6014 else
6015 echo "$as_me: failed program was:" >&5
6016 sed 's/^/| /' conftest.$ac_ext >&5
6018 eval "$as_ac_var=no"
6021 rm -f core conftest.err conftest.$ac_objext \
6022 conftest$ac_exeext conftest.$ac_ext
6024 ac_res=`eval echo '${'$as_ac_var'}'`
6025 { echo "$as_me:$LINENO: result: $ac_res" >&5
6026 echo "${ECHO_T}$ac_res" >&6; }
6027 if test `eval echo '${'$as_ac_var'}'` = yes; then
6028 cat >>confdefs.h <<_ACEOF
6029 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6030 _ACEOF
6031 OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS hostid\$(EXEEXT)"
6032 MAN="$MAN hostid.1"
6034 done
6037 { echo "$as_me:$LINENO: checking for library containing strerror" >&5
6038 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
6039 if test "${ac_cv_search_strerror+set}" = set; then
6040 echo $ECHO_N "(cached) $ECHO_C" >&6
6041 else
6042 ac_func_search_save_LIBS=$LIBS
6043 cat >conftest.$ac_ext <<_ACEOF
6044 /* confdefs.h. */
6045 _ACEOF
6046 cat confdefs.h >>conftest.$ac_ext
6047 cat >>conftest.$ac_ext <<_ACEOF
6048 /* end confdefs.h. */
6050 /* Override any GCC internal prototype to avoid an error.
6051 Use char because int might match the return type of a GCC
6052 builtin and then its argument prototype would still apply. */
6053 #ifdef __cplusplus
6054 extern "C"
6055 #endif
6056 char strerror ();
6058 main ()
6060 return strerror ();
6062 return 0;
6064 _ACEOF
6065 for ac_lib in '' cposix; do
6066 if test -z "$ac_lib"; then
6067 ac_res="none required"
6068 else
6069 ac_res=-l$ac_lib
6070 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6072 rm -f conftest.$ac_objext conftest$ac_exeext
6073 if { (ac_try="$ac_link"
6074 case "(($ac_try" in
6075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6076 *) ac_try_echo=$ac_try;;
6077 esac
6078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6079 (eval "$ac_link") 2>conftest.er1
6080 ac_status=$?
6081 grep -v '^ *+' conftest.er1 >conftest.err
6082 rm -f conftest.er1
6083 cat conftest.err >&5
6084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6085 (exit $ac_status); } &&
6086 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6087 { (case "(($ac_try" in
6088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6089 *) ac_try_echo=$ac_try;;
6090 esac
6091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6092 (eval "$ac_try") 2>&5
6093 ac_status=$?
6094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6095 (exit $ac_status); }; } &&
6096 { ac_try='test -s conftest$ac_exeext'
6097 { (case "(($ac_try" in
6098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6099 *) ac_try_echo=$ac_try;;
6100 esac
6101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6102 (eval "$ac_try") 2>&5
6103 ac_status=$?
6104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6105 (exit $ac_status); }; }; then
6106 ac_cv_search_strerror=$ac_res
6107 else
6108 echo "$as_me: failed program was:" >&5
6109 sed 's/^/| /' conftest.$ac_ext >&5
6114 rm -f core conftest.err conftest.$ac_objext \
6115 conftest$ac_exeext
6116 if test "${ac_cv_search_strerror+set}" = set; then
6117 break
6119 done
6120 if test "${ac_cv_search_strerror+set}" = set; then
6122 else
6123 ac_cv_search_strerror=no
6125 rm conftest.$ac_ext
6126 LIBS=$ac_func_search_save_LIBS
6128 { echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
6129 echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
6130 ac_res=$ac_cv_search_strerror
6131 if test "$ac_res" != no; then
6132 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6136 # Check whether --enable-largefile was given.
6137 if test "${enable_largefile+set}" = set; then
6138 enableval=$enable_largefile;
6141 if test "$enable_largefile" != no; then
6143 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
6144 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
6145 if test "${ac_cv_sys_largefile_CC+set}" = set; then
6146 echo $ECHO_N "(cached) $ECHO_C" >&6
6147 else
6148 ac_cv_sys_largefile_CC=no
6149 if test "$GCC" != yes; then
6150 ac_save_CC=$CC
6151 while :; do
6152 # IRIX 6.2 and later do not support large files by default,
6153 # so use the C compiler's -n32 option if that helps.
6154 cat >conftest.$ac_ext <<_ACEOF
6155 /* confdefs.h. */
6156 _ACEOF
6157 cat confdefs.h >>conftest.$ac_ext
6158 cat >>conftest.$ac_ext <<_ACEOF
6159 /* end confdefs.h. */
6160 #include <sys/types.h>
6161 /* Check that off_t can represent 2**63 - 1 correctly.
6162 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6163 since some C++ compilers masquerading as C compilers
6164 incorrectly reject 9223372036854775807. */
6165 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6166 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6167 && LARGE_OFF_T % 2147483647 == 1)
6168 ? 1 : -1];
6170 main ()
6174 return 0;
6176 _ACEOF
6177 rm -f conftest.$ac_objext
6178 if { (ac_try="$ac_compile"
6179 case "(($ac_try" in
6180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6181 *) ac_try_echo=$ac_try;;
6182 esac
6183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6184 (eval "$ac_compile") 2>conftest.er1
6185 ac_status=$?
6186 grep -v '^ *+' conftest.er1 >conftest.err
6187 rm -f conftest.er1
6188 cat conftest.err >&5
6189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6190 (exit $ac_status); } &&
6191 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6192 { (case "(($ac_try" in
6193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6194 *) ac_try_echo=$ac_try;;
6195 esac
6196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6197 (eval "$ac_try") 2>&5
6198 ac_status=$?
6199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6200 (exit $ac_status); }; } &&
6201 { ac_try='test -s conftest.$ac_objext'
6202 { (case "(($ac_try" in
6203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6204 *) ac_try_echo=$ac_try;;
6205 esac
6206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6207 (eval "$ac_try") 2>&5
6208 ac_status=$?
6209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6210 (exit $ac_status); }; }; then
6211 break
6212 else
6213 echo "$as_me: failed program was:" >&5
6214 sed 's/^/| /' conftest.$ac_ext >&5
6219 rm -f core conftest.err conftest.$ac_objext
6220 CC="$CC -n32"
6221 rm -f conftest.$ac_objext
6222 if { (ac_try="$ac_compile"
6223 case "(($ac_try" in
6224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6225 *) ac_try_echo=$ac_try;;
6226 esac
6227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6228 (eval "$ac_compile") 2>conftest.er1
6229 ac_status=$?
6230 grep -v '^ *+' conftest.er1 >conftest.err
6231 rm -f conftest.er1
6232 cat conftest.err >&5
6233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6234 (exit $ac_status); } &&
6235 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6236 { (case "(($ac_try" in
6237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6238 *) ac_try_echo=$ac_try;;
6239 esac
6240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6241 (eval "$ac_try") 2>&5
6242 ac_status=$?
6243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6244 (exit $ac_status); }; } &&
6245 { ac_try='test -s conftest.$ac_objext'
6246 { (case "(($ac_try" in
6247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6248 *) ac_try_echo=$ac_try;;
6249 esac
6250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6251 (eval "$ac_try") 2>&5
6252 ac_status=$?
6253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6254 (exit $ac_status); }; }; then
6255 ac_cv_sys_largefile_CC=' -n32'; break
6256 else
6257 echo "$as_me: failed program was:" >&5
6258 sed 's/^/| /' conftest.$ac_ext >&5
6263 rm -f core conftest.err conftest.$ac_objext
6264 break
6265 done
6266 CC=$ac_save_CC
6267 rm -f conftest.$ac_ext
6270 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
6271 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
6272 if test "$ac_cv_sys_largefile_CC" != no; then
6273 CC=$CC$ac_cv_sys_largefile_CC
6276 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6277 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
6278 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
6279 echo $ECHO_N "(cached) $ECHO_C" >&6
6280 else
6281 while :; do
6282 ac_cv_sys_file_offset_bits=no
6283 cat >conftest.$ac_ext <<_ACEOF
6284 /* confdefs.h. */
6285 _ACEOF
6286 cat confdefs.h >>conftest.$ac_ext
6287 cat >>conftest.$ac_ext <<_ACEOF
6288 /* end confdefs.h. */
6289 #include <sys/types.h>
6290 /* Check that off_t can represent 2**63 - 1 correctly.
6291 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6292 since some C++ compilers masquerading as C compilers
6293 incorrectly reject 9223372036854775807. */
6294 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6295 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6296 && LARGE_OFF_T % 2147483647 == 1)
6297 ? 1 : -1];
6299 main ()
6303 return 0;
6305 _ACEOF
6306 rm -f conftest.$ac_objext
6307 if { (ac_try="$ac_compile"
6308 case "(($ac_try" in
6309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6310 *) ac_try_echo=$ac_try;;
6311 esac
6312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6313 (eval "$ac_compile") 2>conftest.er1
6314 ac_status=$?
6315 grep -v '^ *+' conftest.er1 >conftest.err
6316 rm -f conftest.er1
6317 cat conftest.err >&5
6318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6319 (exit $ac_status); } &&
6320 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6321 { (case "(($ac_try" in
6322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6323 *) ac_try_echo=$ac_try;;
6324 esac
6325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6326 (eval "$ac_try") 2>&5
6327 ac_status=$?
6328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6329 (exit $ac_status); }; } &&
6330 { ac_try='test -s conftest.$ac_objext'
6331 { (case "(($ac_try" in
6332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6333 *) ac_try_echo=$ac_try;;
6334 esac
6335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6336 (eval "$ac_try") 2>&5
6337 ac_status=$?
6338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6339 (exit $ac_status); }; }; then
6340 break
6341 else
6342 echo "$as_me: failed program was:" >&5
6343 sed 's/^/| /' conftest.$ac_ext >&5
6348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6349 cat >conftest.$ac_ext <<_ACEOF
6350 /* confdefs.h. */
6351 _ACEOF
6352 cat confdefs.h >>conftest.$ac_ext
6353 cat >>conftest.$ac_ext <<_ACEOF
6354 /* end confdefs.h. */
6355 #define _FILE_OFFSET_BITS 64
6356 #include <sys/types.h>
6357 /* Check that off_t can represent 2**63 - 1 correctly.
6358 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6359 since some C++ compilers masquerading as C compilers
6360 incorrectly reject 9223372036854775807. */
6361 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6362 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6363 && LARGE_OFF_T % 2147483647 == 1)
6364 ? 1 : -1];
6366 main ()
6370 return 0;
6372 _ACEOF
6373 rm -f conftest.$ac_objext
6374 if { (ac_try="$ac_compile"
6375 case "(($ac_try" in
6376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6377 *) ac_try_echo=$ac_try;;
6378 esac
6379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6380 (eval "$ac_compile") 2>conftest.er1
6381 ac_status=$?
6382 grep -v '^ *+' conftest.er1 >conftest.err
6383 rm -f conftest.er1
6384 cat conftest.err >&5
6385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6386 (exit $ac_status); } &&
6387 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6388 { (case "(($ac_try" in
6389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6390 *) ac_try_echo=$ac_try;;
6391 esac
6392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6393 (eval "$ac_try") 2>&5
6394 ac_status=$?
6395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6396 (exit $ac_status); }; } &&
6397 { ac_try='test -s conftest.$ac_objext'
6398 { (case "(($ac_try" in
6399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6400 *) ac_try_echo=$ac_try;;
6401 esac
6402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6403 (eval "$ac_try") 2>&5
6404 ac_status=$?
6405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6406 (exit $ac_status); }; }; then
6407 ac_cv_sys_file_offset_bits=64; break
6408 else
6409 echo "$as_me: failed program was:" >&5
6410 sed 's/^/| /' conftest.$ac_ext >&5
6415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6416 break
6417 done
6419 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
6420 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
6421 if test "$ac_cv_sys_file_offset_bits" != no; then
6423 cat >>confdefs.h <<_ACEOF
6424 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6425 _ACEOF
6428 rm -f conftest*
6429 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
6430 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
6431 if test "${ac_cv_sys_large_files+set}" = set; then
6432 echo $ECHO_N "(cached) $ECHO_C" >&6
6433 else
6434 while :; do
6435 ac_cv_sys_large_files=no
6436 cat >conftest.$ac_ext <<_ACEOF
6437 /* confdefs.h. */
6438 _ACEOF
6439 cat confdefs.h >>conftest.$ac_ext
6440 cat >>conftest.$ac_ext <<_ACEOF
6441 /* end confdefs.h. */
6442 #include <sys/types.h>
6443 /* Check that off_t can represent 2**63 - 1 correctly.
6444 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6445 since some C++ compilers masquerading as C compilers
6446 incorrectly reject 9223372036854775807. */
6447 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6448 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6449 && LARGE_OFF_T % 2147483647 == 1)
6450 ? 1 : -1];
6452 main ()
6456 return 0;
6458 _ACEOF
6459 rm -f conftest.$ac_objext
6460 if { (ac_try="$ac_compile"
6461 case "(($ac_try" in
6462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6463 *) ac_try_echo=$ac_try;;
6464 esac
6465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6466 (eval "$ac_compile") 2>conftest.er1
6467 ac_status=$?
6468 grep -v '^ *+' conftest.er1 >conftest.err
6469 rm -f conftest.er1
6470 cat conftest.err >&5
6471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6472 (exit $ac_status); } &&
6473 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6474 { (case "(($ac_try" in
6475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6476 *) ac_try_echo=$ac_try;;
6477 esac
6478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6479 (eval "$ac_try") 2>&5
6480 ac_status=$?
6481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6482 (exit $ac_status); }; } &&
6483 { ac_try='test -s conftest.$ac_objext'
6484 { (case "(($ac_try" in
6485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6486 *) ac_try_echo=$ac_try;;
6487 esac
6488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6489 (eval "$ac_try") 2>&5
6490 ac_status=$?
6491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6492 (exit $ac_status); }; }; then
6493 break
6494 else
6495 echo "$as_me: failed program was:" >&5
6496 sed 's/^/| /' conftest.$ac_ext >&5
6501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6502 cat >conftest.$ac_ext <<_ACEOF
6503 /* confdefs.h. */
6504 _ACEOF
6505 cat confdefs.h >>conftest.$ac_ext
6506 cat >>conftest.$ac_ext <<_ACEOF
6507 /* end confdefs.h. */
6508 #define _LARGE_FILES 1
6509 #include <sys/types.h>
6510 /* Check that off_t can represent 2**63 - 1 correctly.
6511 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6512 since some C++ compilers masquerading as C compilers
6513 incorrectly reject 9223372036854775807. */
6514 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6515 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6516 && LARGE_OFF_T % 2147483647 == 1)
6517 ? 1 : -1];
6519 main ()
6523 return 0;
6525 _ACEOF
6526 rm -f conftest.$ac_objext
6527 if { (ac_try="$ac_compile"
6528 case "(($ac_try" in
6529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6530 *) ac_try_echo=$ac_try;;
6531 esac
6532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6533 (eval "$ac_compile") 2>conftest.er1
6534 ac_status=$?
6535 grep -v '^ *+' conftest.er1 >conftest.err
6536 rm -f conftest.er1
6537 cat conftest.err >&5
6538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6539 (exit $ac_status); } &&
6540 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6541 { (case "(($ac_try" in
6542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6543 *) ac_try_echo=$ac_try;;
6544 esac
6545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6546 (eval "$ac_try") 2>&5
6547 ac_status=$?
6548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6549 (exit $ac_status); }; } &&
6550 { ac_try='test -s conftest.$ac_objext'
6551 { (case "(($ac_try" in
6552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6553 *) ac_try_echo=$ac_try;;
6554 esac
6555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6556 (eval "$ac_try") 2>&5
6557 ac_status=$?
6558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6559 (exit $ac_status); }; }; then
6560 ac_cv_sys_large_files=1; break
6561 else
6562 echo "$as_me: failed program was:" >&5
6563 sed 's/^/| /' conftest.$ac_ext >&5
6568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6569 break
6570 done
6572 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
6573 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
6574 if test "$ac_cv_sys_large_files" != no; then
6576 cat >>confdefs.h <<_ACEOF
6577 #define _LARGE_FILES $ac_cv_sys_large_files
6578 _ACEOF
6581 rm -f conftest*
6584 { echo "$as_me:$LINENO: checking for function prototypes" >&5
6585 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
6586 if test "$ac_cv_prog_cc_c89" != no; then
6587 { echo "$as_me:$LINENO: result: yes" >&5
6588 echo "${ECHO_T}yes" >&6; }
6590 cat >>confdefs.h <<\_ACEOF
6591 #define PROTOTYPES 1
6592 _ACEOF
6595 cat >>confdefs.h <<\_ACEOF
6596 #define __PROTOTYPES 1
6597 _ACEOF
6599 else
6600 { echo "$as_me:$LINENO: result: no" >&5
6601 echo "${ECHO_T}no" >&6; }
6605 if test "$ac_cv_prog_cc_stdc" != no; then
6606 U= ANSI2KNR=
6607 else
6608 U=_ ANSI2KNR=./ansi2knr
6610 # Ensure some checks needed by ansi2knr itself.
6613 for ac_header in string.h
6615 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6616 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6617 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6618 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6619 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6620 echo $ECHO_N "(cached) $ECHO_C" >&6
6622 ac_res=`eval echo '${'$as_ac_Header'}'`
6623 { echo "$as_me:$LINENO: result: $ac_res" >&5
6624 echo "${ECHO_T}$ac_res" >&6; }
6625 else
6626 # Is the header compilable?
6627 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6628 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6629 cat >conftest.$ac_ext <<_ACEOF
6630 /* confdefs.h. */
6631 _ACEOF
6632 cat confdefs.h >>conftest.$ac_ext
6633 cat >>conftest.$ac_ext <<_ACEOF
6634 /* end confdefs.h. */
6635 $ac_includes_default
6636 #include <$ac_header>
6637 _ACEOF
6638 rm -f conftest.$ac_objext
6639 if { (ac_try="$ac_compile"
6640 case "(($ac_try" in
6641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6642 *) ac_try_echo=$ac_try;;
6643 esac
6644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6645 (eval "$ac_compile") 2>conftest.er1
6646 ac_status=$?
6647 grep -v '^ *+' conftest.er1 >conftest.err
6648 rm -f conftest.er1
6649 cat conftest.err >&5
6650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6651 (exit $ac_status); } &&
6652 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6653 { (case "(($ac_try" in
6654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6655 *) ac_try_echo=$ac_try;;
6656 esac
6657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6658 (eval "$ac_try") 2>&5
6659 ac_status=$?
6660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6661 (exit $ac_status); }; } &&
6662 { ac_try='test -s conftest.$ac_objext'
6663 { (case "(($ac_try" in
6664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6665 *) ac_try_echo=$ac_try;;
6666 esac
6667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6668 (eval "$ac_try") 2>&5
6669 ac_status=$?
6670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6671 (exit $ac_status); }; }; then
6672 ac_header_compiler=yes
6673 else
6674 echo "$as_me: failed program was:" >&5
6675 sed 's/^/| /' conftest.$ac_ext >&5
6677 ac_header_compiler=no
6680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6681 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6682 echo "${ECHO_T}$ac_header_compiler" >&6; }
6684 # Is the header present?
6685 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6686 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6687 cat >conftest.$ac_ext <<_ACEOF
6688 /* confdefs.h. */
6689 _ACEOF
6690 cat confdefs.h >>conftest.$ac_ext
6691 cat >>conftest.$ac_ext <<_ACEOF
6692 /* end confdefs.h. */
6693 #include <$ac_header>
6694 _ACEOF
6695 if { (ac_try="$ac_cpp conftest.$ac_ext"
6696 case "(($ac_try" in
6697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6698 *) ac_try_echo=$ac_try;;
6699 esac
6700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6701 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6702 ac_status=$?
6703 grep -v '^ *+' conftest.er1 >conftest.err
6704 rm -f conftest.er1
6705 cat conftest.err >&5
6706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6707 (exit $ac_status); } >/dev/null; then
6708 if test -s conftest.err; then
6709 ac_cpp_err=$ac_c_preproc_warn_flag
6710 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6711 else
6712 ac_cpp_err=
6714 else
6715 ac_cpp_err=yes
6717 if test -z "$ac_cpp_err"; then
6718 ac_header_preproc=yes
6719 else
6720 echo "$as_me: failed program was:" >&5
6721 sed 's/^/| /' conftest.$ac_ext >&5
6723 ac_header_preproc=no
6726 rm -f conftest.err conftest.$ac_ext
6727 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6728 echo "${ECHO_T}$ac_header_preproc" >&6; }
6730 # So? What about this header?
6731 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6732 yes:no: )
6733 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6734 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6735 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6736 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6737 ac_header_preproc=yes
6739 no:yes:* )
6740 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6741 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6742 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6743 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6744 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6745 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6746 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6747 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6748 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6749 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6750 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6751 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6752 ( cat <<\_ASBOX
6753 ## ------------------------------------ ##
6754 ## Report this to bug-coreutils@gnu.org ##
6755 ## ------------------------------------ ##
6756 _ASBOX
6757 ) | sed "s/^/$as_me: WARNING: /" >&2
6759 esac
6760 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6761 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6762 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6763 echo $ECHO_N "(cached) $ECHO_C" >&6
6764 else
6765 eval "$as_ac_Header=\$ac_header_preproc"
6767 ac_res=`eval echo '${'$as_ac_Header'}'`
6768 { echo "$as_me:$LINENO: result: $ac_res" >&5
6769 echo "${ECHO_T}$ac_res" >&6; }
6772 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6773 cat >>confdefs.h <<_ACEOF
6774 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6775 _ACEOF
6779 done
6782 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
6783 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
6784 if test "${ac_cv_c_bigendian+set}" = set; then
6785 echo $ECHO_N "(cached) $ECHO_C" >&6
6786 else
6787 # See if sys/param.h defines the BYTE_ORDER macro.
6788 cat >conftest.$ac_ext <<_ACEOF
6789 /* confdefs.h. */
6790 _ACEOF
6791 cat confdefs.h >>conftest.$ac_ext
6792 cat >>conftest.$ac_ext <<_ACEOF
6793 /* end confdefs.h. */
6794 #include <sys/types.h>
6795 #include <sys/param.h>
6798 main ()
6800 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
6801 bogus endian macros
6802 #endif
6805 return 0;
6807 _ACEOF
6808 rm -f conftest.$ac_objext
6809 if { (ac_try="$ac_compile"
6810 case "(($ac_try" in
6811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6812 *) ac_try_echo=$ac_try;;
6813 esac
6814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6815 (eval "$ac_compile") 2>conftest.er1
6816 ac_status=$?
6817 grep -v '^ *+' conftest.er1 >conftest.err
6818 rm -f conftest.er1
6819 cat conftest.err >&5
6820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6821 (exit $ac_status); } &&
6822 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6823 { (case "(($ac_try" in
6824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6825 *) ac_try_echo=$ac_try;;
6826 esac
6827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6828 (eval "$ac_try") 2>&5
6829 ac_status=$?
6830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6831 (exit $ac_status); }; } &&
6832 { ac_try='test -s conftest.$ac_objext'
6833 { (case "(($ac_try" in
6834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6835 *) ac_try_echo=$ac_try;;
6836 esac
6837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6838 (eval "$ac_try") 2>&5
6839 ac_status=$?
6840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6841 (exit $ac_status); }; }; then
6842 # It does; now see whether it defined to BIG_ENDIAN or not.
6843 cat >conftest.$ac_ext <<_ACEOF
6844 /* confdefs.h. */
6845 _ACEOF
6846 cat confdefs.h >>conftest.$ac_ext
6847 cat >>conftest.$ac_ext <<_ACEOF
6848 /* end confdefs.h. */
6849 #include <sys/types.h>
6850 #include <sys/param.h>
6853 main ()
6855 #if BYTE_ORDER != BIG_ENDIAN
6856 not big endian
6857 #endif
6860 return 0;
6862 _ACEOF
6863 rm -f conftest.$ac_objext
6864 if { (ac_try="$ac_compile"
6865 case "(($ac_try" in
6866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6867 *) ac_try_echo=$ac_try;;
6868 esac
6869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6870 (eval "$ac_compile") 2>conftest.er1
6871 ac_status=$?
6872 grep -v '^ *+' conftest.er1 >conftest.err
6873 rm -f conftest.er1
6874 cat conftest.err >&5
6875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6876 (exit $ac_status); } &&
6877 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6878 { (case "(($ac_try" in
6879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6880 *) ac_try_echo=$ac_try;;
6881 esac
6882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6883 (eval "$ac_try") 2>&5
6884 ac_status=$?
6885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6886 (exit $ac_status); }; } &&
6887 { ac_try='test -s conftest.$ac_objext'
6888 { (case "(($ac_try" in
6889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6890 *) ac_try_echo=$ac_try;;
6891 esac
6892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6893 (eval "$ac_try") 2>&5
6894 ac_status=$?
6895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6896 (exit $ac_status); }; }; then
6897 ac_cv_c_bigendian=yes
6898 else
6899 echo "$as_me: failed program was:" >&5
6900 sed 's/^/| /' conftest.$ac_ext >&5
6902 ac_cv_c_bigendian=no
6905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6906 else
6907 echo "$as_me: failed program was:" >&5
6908 sed 's/^/| /' conftest.$ac_ext >&5
6910 # It does not; compile a test program.
6911 if test "$cross_compiling" = yes; then
6912 # try to guess the endianness by grepping values into an object file
6913 ac_cv_c_bigendian=unknown
6914 cat >conftest.$ac_ext <<_ACEOF
6915 /* confdefs.h. */
6916 _ACEOF
6917 cat confdefs.h >>conftest.$ac_ext
6918 cat >>conftest.$ac_ext <<_ACEOF
6919 /* end confdefs.h. */
6920 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6921 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6922 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
6923 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6924 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6925 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
6927 main ()
6929 _ascii (); _ebcdic ();
6931 return 0;
6933 _ACEOF
6934 rm -f conftest.$ac_objext
6935 if { (ac_try="$ac_compile"
6936 case "(($ac_try" in
6937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6938 *) ac_try_echo=$ac_try;;
6939 esac
6940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6941 (eval "$ac_compile") 2>conftest.er1
6942 ac_status=$?
6943 grep -v '^ *+' conftest.er1 >conftest.err
6944 rm -f conftest.er1
6945 cat conftest.err >&5
6946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6947 (exit $ac_status); } &&
6948 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6949 { (case "(($ac_try" in
6950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6951 *) ac_try_echo=$ac_try;;
6952 esac
6953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6954 (eval "$ac_try") 2>&5
6955 ac_status=$?
6956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6957 (exit $ac_status); }; } &&
6958 { ac_try='test -s conftest.$ac_objext'
6959 { (case "(($ac_try" in
6960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6961 *) ac_try_echo=$ac_try;;
6962 esac
6963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6964 (eval "$ac_try") 2>&5
6965 ac_status=$?
6966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6967 (exit $ac_status); }; }; then
6968 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
6969 ac_cv_c_bigendian=yes
6971 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
6972 if test "$ac_cv_c_bigendian" = unknown; then
6973 ac_cv_c_bigendian=no
6974 else
6975 # finding both strings is unlikely to happen, but who knows?
6976 ac_cv_c_bigendian=unknown
6979 else
6980 echo "$as_me: failed program was:" >&5
6981 sed 's/^/| /' conftest.$ac_ext >&5
6986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6987 else
6988 cat >conftest.$ac_ext <<_ACEOF
6989 /* confdefs.h. */
6990 _ACEOF
6991 cat confdefs.h >>conftest.$ac_ext
6992 cat >>conftest.$ac_ext <<_ACEOF
6993 /* end confdefs.h. */
6994 $ac_includes_default
6996 main ()
6999 /* Are we little or big endian? From Harbison&Steele. */
7000 union
7002 long int l;
7003 char c[sizeof (long int)];
7004 } u;
7005 u.l = 1;
7006 return u.c[sizeof (long int) - 1] == 1;
7009 return 0;
7011 _ACEOF
7012 rm -f conftest$ac_exeext
7013 if { (ac_try="$ac_link"
7014 case "(($ac_try" in
7015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7016 *) ac_try_echo=$ac_try;;
7017 esac
7018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7019 (eval "$ac_link") 2>&5
7020 ac_status=$?
7021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7022 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7023 { (case "(($ac_try" in
7024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7025 *) ac_try_echo=$ac_try;;
7026 esac
7027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7028 (eval "$ac_try") 2>&5
7029 ac_status=$?
7030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7031 (exit $ac_status); }; }; then
7032 ac_cv_c_bigendian=no
7033 else
7034 echo "$as_me: program exited with status $ac_status" >&5
7035 echo "$as_me: failed program was:" >&5
7036 sed 's/^/| /' conftest.$ac_ext >&5
7038 ( exit $ac_status )
7039 ac_cv_c_bigendian=yes
7041 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7049 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
7050 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
7051 case $ac_cv_c_bigendian in
7052 yes)
7054 cat >>confdefs.h <<\_ACEOF
7055 #define WORDS_BIGENDIAN 1
7056 _ACEOF
7061 { { echo "$as_me:$LINENO: error: unknown endianness
7062 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
7063 echo "$as_me: error: unknown endianness
7064 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
7065 { (exit 1); exit 1; }; } ;;
7066 esac
7068 { echo "$as_me:$LINENO: checking for working volatile" >&5
7069 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
7070 if test "${ac_cv_c_volatile+set}" = set; then
7071 echo $ECHO_N "(cached) $ECHO_C" >&6
7072 else
7073 cat >conftest.$ac_ext <<_ACEOF
7074 /* confdefs.h. */
7075 _ACEOF
7076 cat confdefs.h >>conftest.$ac_ext
7077 cat >>conftest.$ac_ext <<_ACEOF
7078 /* end confdefs.h. */
7081 main ()
7084 volatile int x;
7085 int * volatile y = (int *) 0;
7086 return !x && !y;
7088 return 0;
7090 _ACEOF
7091 rm -f conftest.$ac_objext
7092 if { (ac_try="$ac_compile"
7093 case "(($ac_try" in
7094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7095 *) ac_try_echo=$ac_try;;
7096 esac
7097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7098 (eval "$ac_compile") 2>conftest.er1
7099 ac_status=$?
7100 grep -v '^ *+' conftest.er1 >conftest.err
7101 rm -f conftest.er1
7102 cat conftest.err >&5
7103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7104 (exit $ac_status); } &&
7105 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7106 { (case "(($ac_try" in
7107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7108 *) ac_try_echo=$ac_try;;
7109 esac
7110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7111 (eval "$ac_try") 2>&5
7112 ac_status=$?
7113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7114 (exit $ac_status); }; } &&
7115 { ac_try='test -s conftest.$ac_objext'
7116 { (case "(($ac_try" in
7117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7118 *) ac_try_echo=$ac_try;;
7119 esac
7120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7121 (eval "$ac_try") 2>&5
7122 ac_status=$?
7123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7124 (exit $ac_status); }; }; then
7125 ac_cv_c_volatile=yes
7126 else
7127 echo "$as_me: failed program was:" >&5
7128 sed 's/^/| /' conftest.$ac_ext >&5
7130 ac_cv_c_volatile=no
7133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7135 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
7136 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
7137 if test $ac_cv_c_volatile = no; then
7139 cat >>confdefs.h <<\_ACEOF
7140 #define volatile
7141 _ACEOF
7145 { echo "$as_me:$LINENO: checking for inline" >&5
7146 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
7147 if test "${ac_cv_c_inline+set}" = set; then
7148 echo $ECHO_N "(cached) $ECHO_C" >&6
7149 else
7150 ac_cv_c_inline=no
7151 for ac_kw in inline __inline__ __inline; do
7152 cat >conftest.$ac_ext <<_ACEOF
7153 /* confdefs.h. */
7154 _ACEOF
7155 cat confdefs.h >>conftest.$ac_ext
7156 cat >>conftest.$ac_ext <<_ACEOF
7157 /* end confdefs.h. */
7158 #ifndef __cplusplus
7159 typedef int foo_t;
7160 static $ac_kw foo_t static_foo () {return 0; }
7161 $ac_kw foo_t foo () {return 0; }
7162 #endif
7164 _ACEOF
7165 rm -f conftest.$ac_objext
7166 if { (ac_try="$ac_compile"
7167 case "(($ac_try" in
7168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7169 *) ac_try_echo=$ac_try;;
7170 esac
7171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7172 (eval "$ac_compile") 2>conftest.er1
7173 ac_status=$?
7174 grep -v '^ *+' conftest.er1 >conftest.err
7175 rm -f conftest.er1
7176 cat conftest.err >&5
7177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7178 (exit $ac_status); } &&
7179 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7180 { (case "(($ac_try" in
7181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7182 *) ac_try_echo=$ac_try;;
7183 esac
7184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7185 (eval "$ac_try") 2>&5
7186 ac_status=$?
7187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7188 (exit $ac_status); }; } &&
7189 { ac_try='test -s conftest.$ac_objext'
7190 { (case "(($ac_try" in
7191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7192 *) ac_try_echo=$ac_try;;
7193 esac
7194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7195 (eval "$ac_try") 2>&5
7196 ac_status=$?
7197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7198 (exit $ac_status); }; }; then
7199 ac_cv_c_inline=$ac_kw
7200 else
7201 echo "$as_me: failed program was:" >&5
7202 sed 's/^/| /' conftest.$ac_ext >&5
7207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7208 test "$ac_cv_c_inline" != no && break
7209 done
7212 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
7213 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
7216 case $ac_cv_c_inline in
7217 inline | yes) ;;
7219 case $ac_cv_c_inline in
7220 no) ac_val=;;
7221 *) ac_val=$ac_cv_c_inline;;
7222 esac
7223 cat >>confdefs.h <<_ACEOF
7224 #ifndef __cplusplus
7225 #define inline $ac_val
7226 #endif
7227 _ACEOF
7229 esac
7233 { echo "$as_me:$LINENO: checking for long double with more range or precision than double" >&5
7234 echo $ECHO_N "checking for long double with more range or precision than double... $ECHO_C" >&6; }
7235 if test "${ac_cv_type_long_double_wider+set}" = set; then
7236 echo $ECHO_N "(cached) $ECHO_C" >&6
7237 else
7238 cat >conftest.$ac_ext <<_ACEOF
7239 /* confdefs.h. */
7240 _ACEOF
7241 cat confdefs.h >>conftest.$ac_ext
7242 cat >>conftest.$ac_ext <<_ACEOF
7243 /* end confdefs.h. */
7244 #include <float.h>
7245 long double const a[] =
7247 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
7248 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
7250 long double
7251 f (long double x)
7253 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
7254 + (x ? f (x) : 'c'));
7258 main ()
7260 static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
7261 + (DBL_MANT_DIG < LDBL_MANT_DIG)
7262 - (LDBL_MAX_EXP < DBL_MAX_EXP)
7263 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
7264 && (int) LDBL_EPSILON == 0
7266 test_array [0] = 0
7269 return 0;
7271 _ACEOF
7272 rm -f conftest.$ac_objext
7273 if { (ac_try="$ac_compile"
7274 case "(($ac_try" in
7275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7276 *) ac_try_echo=$ac_try;;
7277 esac
7278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7279 (eval "$ac_compile") 2>conftest.er1
7280 ac_status=$?
7281 grep -v '^ *+' conftest.er1 >conftest.err
7282 rm -f conftest.er1
7283 cat conftest.err >&5
7284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7285 (exit $ac_status); } &&
7286 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7287 { (case "(($ac_try" in
7288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7289 *) ac_try_echo=$ac_try;;
7290 esac
7291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7292 (eval "$ac_try") 2>&5
7293 ac_status=$?
7294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7295 (exit $ac_status); }; } &&
7296 { ac_try='test -s conftest.$ac_objext'
7297 { (case "(($ac_try" in
7298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7299 *) ac_try_echo=$ac_try;;
7300 esac
7301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7302 (eval "$ac_try") 2>&5
7303 ac_status=$?
7304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7305 (exit $ac_status); }; }; then
7306 ac_cv_type_long_double_wider=yes
7307 else
7308 echo "$as_me: failed program was:" >&5
7309 sed 's/^/| /' conftest.$ac_ext >&5
7311 ac_cv_type_long_double_wider=no
7314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7316 { echo "$as_me:$LINENO: result: $ac_cv_type_long_double_wider" >&5
7317 echo "${ECHO_T}$ac_cv_type_long_double_wider" >&6; }
7318 if test $ac_cv_type_long_double_wider = yes; then
7320 cat >>confdefs.h <<\_ACEOF
7321 #define HAVE_LONG_DOUBLE_WIDER 1
7322 _ACEOF
7326 ac_cv_c_long_double=$ac_cv_type_long_double_wider
7327 if test $ac_cv_c_long_double = yes; then
7329 cat >>confdefs.h <<\_ACEOF
7330 #define HAVE_LONG_DOUBLE 1
7331 _ACEOF
7339 for ac_header in $ac_header_list
7341 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7342 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7343 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7344 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7345 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7346 echo $ECHO_N "(cached) $ECHO_C" >&6
7348 ac_res=`eval echo '${'$as_ac_Header'}'`
7349 { echo "$as_me:$LINENO: result: $ac_res" >&5
7350 echo "${ECHO_T}$ac_res" >&6; }
7351 else
7352 # Is the header compilable?
7353 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7354 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7355 cat >conftest.$ac_ext <<_ACEOF
7356 /* confdefs.h. */
7357 _ACEOF
7358 cat confdefs.h >>conftest.$ac_ext
7359 cat >>conftest.$ac_ext <<_ACEOF
7360 /* end confdefs.h. */
7361 $ac_includes_default
7362 #include <$ac_header>
7363 _ACEOF
7364 rm -f conftest.$ac_objext
7365 if { (ac_try="$ac_compile"
7366 case "(($ac_try" in
7367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7368 *) ac_try_echo=$ac_try;;
7369 esac
7370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7371 (eval "$ac_compile") 2>conftest.er1
7372 ac_status=$?
7373 grep -v '^ *+' conftest.er1 >conftest.err
7374 rm -f conftest.er1
7375 cat conftest.err >&5
7376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7377 (exit $ac_status); } &&
7378 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7379 { (case "(($ac_try" in
7380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7381 *) ac_try_echo=$ac_try;;
7382 esac
7383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7384 (eval "$ac_try") 2>&5
7385 ac_status=$?
7386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7387 (exit $ac_status); }; } &&
7388 { ac_try='test -s conftest.$ac_objext'
7389 { (case "(($ac_try" in
7390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7391 *) ac_try_echo=$ac_try;;
7392 esac
7393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7394 (eval "$ac_try") 2>&5
7395 ac_status=$?
7396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7397 (exit $ac_status); }; }; then
7398 ac_header_compiler=yes
7399 else
7400 echo "$as_me: failed program was:" >&5
7401 sed 's/^/| /' conftest.$ac_ext >&5
7403 ac_header_compiler=no
7406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7407 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7408 echo "${ECHO_T}$ac_header_compiler" >&6; }
7410 # Is the header present?
7411 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7412 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7413 cat >conftest.$ac_ext <<_ACEOF
7414 /* confdefs.h. */
7415 _ACEOF
7416 cat confdefs.h >>conftest.$ac_ext
7417 cat >>conftest.$ac_ext <<_ACEOF
7418 /* end confdefs.h. */
7419 #include <$ac_header>
7420 _ACEOF
7421 if { (ac_try="$ac_cpp conftest.$ac_ext"
7422 case "(($ac_try" in
7423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7424 *) ac_try_echo=$ac_try;;
7425 esac
7426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7427 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7428 ac_status=$?
7429 grep -v '^ *+' conftest.er1 >conftest.err
7430 rm -f conftest.er1
7431 cat conftest.err >&5
7432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7433 (exit $ac_status); } >/dev/null; then
7434 if test -s conftest.err; then
7435 ac_cpp_err=$ac_c_preproc_warn_flag
7436 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7437 else
7438 ac_cpp_err=
7440 else
7441 ac_cpp_err=yes
7443 if test -z "$ac_cpp_err"; then
7444 ac_header_preproc=yes
7445 else
7446 echo "$as_me: failed program was:" >&5
7447 sed 's/^/| /' conftest.$ac_ext >&5
7449 ac_header_preproc=no
7452 rm -f conftest.err conftest.$ac_ext
7453 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7454 echo "${ECHO_T}$ac_header_preproc" >&6; }
7456 # So? What about this header?
7457 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7458 yes:no: )
7459 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7460 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7461 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7462 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7463 ac_header_preproc=yes
7465 no:yes:* )
7466 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7467 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7468 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7469 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7470 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7471 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7472 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7473 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7474 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7475 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7476 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7477 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7478 ( cat <<\_ASBOX
7479 ## ------------------------------------ ##
7480 ## Report this to bug-coreutils@gnu.org ##
7481 ## ------------------------------------ ##
7482 _ASBOX
7483 ) | sed "s/^/$as_me: WARNING: /" >&2
7485 esac
7486 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7487 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7488 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7489 echo $ECHO_N "(cached) $ECHO_C" >&6
7490 else
7491 eval "$as_ac_Header=\$ac_header_preproc"
7493 ac_res=`eval echo '${'$as_ac_Header'}'`
7494 { echo "$as_me:$LINENO: result: $ac_res" >&5
7495 echo "${ECHO_T}$ac_res" >&6; }
7498 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7499 cat >>confdefs.h <<_ACEOF
7500 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7501 _ACEOF
7505 done
7570 for ac_header in sys/mount.h sys/sysctl.h
7572 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7573 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7574 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7575 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7576 echo $ECHO_N "(cached) $ECHO_C" >&6
7577 else
7578 cat >conftest.$ac_ext <<_ACEOF
7579 /* confdefs.h. */
7580 _ACEOF
7581 cat confdefs.h >>conftest.$ac_ext
7582 cat >>conftest.$ac_ext <<_ACEOF
7583 /* end confdefs.h. */
7584 $ac_includes_default
7585 #if HAVE_SYS_PARAM_H
7586 #include <sys/param.h>
7587 #endif
7589 #include <$ac_header>
7590 _ACEOF
7591 rm -f conftest.$ac_objext
7592 if { (ac_try="$ac_compile"
7593 case "(($ac_try" in
7594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7595 *) ac_try_echo=$ac_try;;
7596 esac
7597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7598 (eval "$ac_compile") 2>conftest.er1
7599 ac_status=$?
7600 grep -v '^ *+' conftest.er1 >conftest.err
7601 rm -f conftest.er1
7602 cat conftest.err >&5
7603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7604 (exit $ac_status); } &&
7605 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7606 { (case "(($ac_try" in
7607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7608 *) ac_try_echo=$ac_try;;
7609 esac
7610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7611 (eval "$ac_try") 2>&5
7612 ac_status=$?
7613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7614 (exit $ac_status); }; } &&
7615 { ac_try='test -s conftest.$ac_objext'
7616 { (case "(($ac_try" in
7617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7618 *) ac_try_echo=$ac_try;;
7619 esac
7620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7621 (eval "$ac_try") 2>&5
7622 ac_status=$?
7623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7624 (exit $ac_status); }; }; then
7625 eval "$as_ac_Header=yes"
7626 else
7627 echo "$as_me: failed program was:" >&5
7628 sed 's/^/| /' conftest.$ac_ext >&5
7630 eval "$as_ac_Header=no"
7633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7635 ac_res=`eval echo '${'$as_ac_Header'}'`
7636 { echo "$as_me:$LINENO: result: $ac_res" >&5
7637 echo "${ECHO_T}$ac_res" >&6; }
7638 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7639 cat >>confdefs.h <<_ACEOF
7640 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7641 _ACEOF
7645 done
7648 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
7649 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
7650 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
7651 echo $ECHO_N "(cached) $ECHO_C" >&6
7652 else
7653 cat >conftest.$ac_ext <<_ACEOF
7654 /* confdefs.h. */
7655 _ACEOF
7656 cat confdefs.h >>conftest.$ac_ext
7657 cat >>conftest.$ac_ext <<_ACEOF
7658 /* end confdefs.h. */
7659 $ac_includes_default
7661 main ()
7663 static struct stat ac_aggr;
7664 if (ac_aggr.st_blocks)
7665 return 0;
7667 return 0;
7669 _ACEOF
7670 rm -f conftest.$ac_objext
7671 if { (ac_try="$ac_compile"
7672 case "(($ac_try" in
7673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7674 *) ac_try_echo=$ac_try;;
7675 esac
7676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7677 (eval "$ac_compile") 2>conftest.er1
7678 ac_status=$?
7679 grep -v '^ *+' conftest.er1 >conftest.err
7680 rm -f conftest.er1
7681 cat conftest.err >&5
7682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7683 (exit $ac_status); } &&
7684 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7685 { (case "(($ac_try" in
7686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7687 *) ac_try_echo=$ac_try;;
7688 esac
7689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7690 (eval "$ac_try") 2>&5
7691 ac_status=$?
7692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7693 (exit $ac_status); }; } &&
7694 { ac_try='test -s conftest.$ac_objext'
7695 { (case "(($ac_try" in
7696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7697 *) ac_try_echo=$ac_try;;
7698 esac
7699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7700 (eval "$ac_try") 2>&5
7701 ac_status=$?
7702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7703 (exit $ac_status); }; }; then
7704 ac_cv_member_struct_stat_st_blocks=yes
7705 else
7706 echo "$as_me: failed program was:" >&5
7707 sed 's/^/| /' conftest.$ac_ext >&5
7709 cat >conftest.$ac_ext <<_ACEOF
7710 /* confdefs.h. */
7711 _ACEOF
7712 cat confdefs.h >>conftest.$ac_ext
7713 cat >>conftest.$ac_ext <<_ACEOF
7714 /* end confdefs.h. */
7715 $ac_includes_default
7717 main ()
7719 static struct stat ac_aggr;
7720 if (sizeof ac_aggr.st_blocks)
7721 return 0;
7723 return 0;
7725 _ACEOF
7726 rm -f conftest.$ac_objext
7727 if { (ac_try="$ac_compile"
7728 case "(($ac_try" in
7729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7730 *) ac_try_echo=$ac_try;;
7731 esac
7732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7733 (eval "$ac_compile") 2>conftest.er1
7734 ac_status=$?
7735 grep -v '^ *+' conftest.er1 >conftest.err
7736 rm -f conftest.er1
7737 cat conftest.err >&5
7738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7739 (exit $ac_status); } &&
7740 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7741 { (case "(($ac_try" in
7742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7743 *) ac_try_echo=$ac_try;;
7744 esac
7745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7746 (eval "$ac_try") 2>&5
7747 ac_status=$?
7748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7749 (exit $ac_status); }; } &&
7750 { ac_try='test -s conftest.$ac_objext'
7751 { (case "(($ac_try" in
7752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7753 *) ac_try_echo=$ac_try;;
7754 esac
7755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7756 (eval "$ac_try") 2>&5
7757 ac_status=$?
7758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7759 (exit $ac_status); }; }; then
7760 ac_cv_member_struct_stat_st_blocks=yes
7761 else
7762 echo "$as_me: failed program was:" >&5
7763 sed 's/^/| /' conftest.$ac_ext >&5
7765 ac_cv_member_struct_stat_st_blocks=no
7768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7773 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
7774 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
7775 if test $ac_cv_member_struct_stat_st_blocks = yes; then
7777 cat >>confdefs.h <<_ACEOF
7778 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
7779 _ACEOF
7782 cat >>confdefs.h <<\_ACEOF
7783 #define HAVE_ST_BLOCKS 1
7784 _ACEOF
7786 else
7787 case " $LIBOBJS " in
7788 *" fileblocks.$ac_objext "* ) ;;
7789 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
7791 esac
7796 { echo "$as_me:$LINENO: checking for st_dm_mode in struct stat" >&5
7797 echo $ECHO_N "checking for st_dm_mode in struct stat... $ECHO_C" >&6; }
7798 if test "${ac_cv_struct_st_dm_mode+set}" = set; then
7799 echo $ECHO_N "(cached) $ECHO_C" >&6
7800 else
7801 cat >conftest.$ac_ext <<_ACEOF
7802 /* confdefs.h. */
7803 _ACEOF
7804 cat confdefs.h >>conftest.$ac_ext
7805 cat >>conftest.$ac_ext <<_ACEOF
7806 /* end confdefs.h. */
7807 #include <sys/types.h>
7808 #include <sys/stat.h>
7810 main ()
7812 struct stat s; s.st_dm_mode;
7814 return 0;
7816 _ACEOF
7817 rm -f conftest.$ac_objext
7818 if { (ac_try="$ac_compile"
7819 case "(($ac_try" in
7820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7821 *) ac_try_echo=$ac_try;;
7822 esac
7823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7824 (eval "$ac_compile") 2>conftest.er1
7825 ac_status=$?
7826 grep -v '^ *+' conftest.er1 >conftest.err
7827 rm -f conftest.er1
7828 cat conftest.err >&5
7829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7830 (exit $ac_status); } &&
7831 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7832 { (case "(($ac_try" in
7833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7834 *) ac_try_echo=$ac_try;;
7835 esac
7836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7837 (eval "$ac_try") 2>&5
7838 ac_status=$?
7839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7840 (exit $ac_status); }; } &&
7841 { ac_try='test -s conftest.$ac_objext'
7842 { (case "(($ac_try" in
7843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7844 *) ac_try_echo=$ac_try;;
7845 esac
7846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7847 (eval "$ac_try") 2>&5
7848 ac_status=$?
7849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7850 (exit $ac_status); }; }; then
7851 ac_cv_struct_st_dm_mode=yes
7852 else
7853 echo "$as_me: failed program was:" >&5
7854 sed 's/^/| /' conftest.$ac_ext >&5
7856 ac_cv_struct_st_dm_mode=no
7859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7861 { echo "$as_me:$LINENO: result: $ac_cv_struct_st_dm_mode" >&5
7862 echo "${ECHO_T}$ac_cv_struct_st_dm_mode" >&6; }
7864 if test $ac_cv_struct_st_dm_mode = yes; then
7866 cat >>confdefs.h <<\_ACEOF
7867 #define HAVE_ST_DM_MODE 1
7868 _ACEOF
7873 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
7874 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
7875 if test "${ac_cv_type_uid_t+set}" = set; then
7876 echo $ECHO_N "(cached) $ECHO_C" >&6
7877 else
7878 cat >conftest.$ac_ext <<_ACEOF
7879 /* confdefs.h. */
7880 _ACEOF
7881 cat confdefs.h >>conftest.$ac_ext
7882 cat >>conftest.$ac_ext <<_ACEOF
7883 /* end confdefs.h. */
7884 #include <sys/types.h>
7886 _ACEOF
7887 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7888 $EGREP "uid_t" >/dev/null 2>&1; then
7889 ac_cv_type_uid_t=yes
7890 else
7891 ac_cv_type_uid_t=no
7893 rm -f conftest*
7896 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
7897 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
7898 if test $ac_cv_type_uid_t = no; then
7900 cat >>confdefs.h <<\_ACEOF
7901 #define uid_t int
7902 _ACEOF
7905 cat >>confdefs.h <<\_ACEOF
7906 #define gid_t int
7907 _ACEOF
7911 { echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
7912 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6; }
7913 if test "${ac_cv_type_getgroups+set}" = set; then
7914 echo $ECHO_N "(cached) $ECHO_C" >&6
7915 else
7916 if test "$cross_compiling" = yes; then
7917 ac_cv_type_getgroups=cross
7918 else
7919 cat >conftest.$ac_ext <<_ACEOF
7920 /* confdefs.h. */
7921 _ACEOF
7922 cat confdefs.h >>conftest.$ac_ext
7923 cat >>conftest.$ac_ext <<_ACEOF
7924 /* end confdefs.h. */
7925 /* Thanks to Mike Rendell for this test. */
7926 $ac_includes_default
7927 #define NGID 256
7928 #undef MAX
7929 #define MAX(x, y) ((x) > (y) ? (x) : (y))
7932 main ()
7934 gid_t gidset[NGID];
7935 int i, n;
7936 union { gid_t gval; long int lval; } val;
7938 val.lval = -1;
7939 for (i = 0; i < NGID; i++)
7940 gidset[i] = val.gval;
7941 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
7942 gidset);
7943 /* Exit non-zero if getgroups seems to require an array of ints. This
7944 happens when gid_t is short int but getgroups modifies an array
7945 of ints. */
7946 return n > 0 && gidset[n] != val.gval;
7948 _ACEOF
7949 rm -f conftest$ac_exeext
7950 if { (ac_try="$ac_link"
7951 case "(($ac_try" in
7952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7953 *) ac_try_echo=$ac_try;;
7954 esac
7955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7956 (eval "$ac_link") 2>&5
7957 ac_status=$?
7958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7959 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7960 { (case "(($ac_try" in
7961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7962 *) ac_try_echo=$ac_try;;
7963 esac
7964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7965 (eval "$ac_try") 2>&5
7966 ac_status=$?
7967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7968 (exit $ac_status); }; }; then
7969 ac_cv_type_getgroups=gid_t
7970 else
7971 echo "$as_me: program exited with status $ac_status" >&5
7972 echo "$as_me: failed program was:" >&5
7973 sed 's/^/| /' conftest.$ac_ext >&5
7975 ( exit $ac_status )
7976 ac_cv_type_getgroups=int
7978 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7982 if test $ac_cv_type_getgroups = cross; then
7983 cat >conftest.$ac_ext <<_ACEOF
7984 /* confdefs.h. */
7985 _ACEOF
7986 cat confdefs.h >>conftest.$ac_ext
7987 cat >>conftest.$ac_ext <<_ACEOF
7988 /* end confdefs.h. */
7989 #include <unistd.h>
7991 _ACEOF
7992 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7993 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
7994 ac_cv_type_getgroups=gid_t
7995 else
7996 ac_cv_type_getgroups=int
7998 rm -f conftest*
8002 { echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
8003 echo "${ECHO_T}$ac_cv_type_getgroups" >&6; }
8005 cat >>confdefs.h <<_ACEOF
8006 #define GETGROUPS_T $ac_cv_type_getgroups
8007 _ACEOF
8010 { echo "$as_me:$LINENO: checking for mbstate_t" >&5
8011 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
8012 if test "${ac_cv_type_mbstate_t+set}" = set; then
8013 echo $ECHO_N "(cached) $ECHO_C" >&6
8014 else
8015 cat >conftest.$ac_ext <<_ACEOF
8016 /* confdefs.h. */
8017 _ACEOF
8018 cat confdefs.h >>conftest.$ac_ext
8019 cat >>conftest.$ac_ext <<_ACEOF
8020 /* end confdefs.h. */
8021 $ac_includes_default
8022 # include <wchar.h>
8024 main ()
8026 mbstate_t x; return sizeof x;
8028 return 0;
8030 _ACEOF
8031 rm -f conftest.$ac_objext
8032 if { (ac_try="$ac_compile"
8033 case "(($ac_try" in
8034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8035 *) ac_try_echo=$ac_try;;
8036 esac
8037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8038 (eval "$ac_compile") 2>conftest.er1
8039 ac_status=$?
8040 grep -v '^ *+' conftest.er1 >conftest.err
8041 rm -f conftest.er1
8042 cat conftest.err >&5
8043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8044 (exit $ac_status); } &&
8045 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8046 { (case "(($ac_try" in
8047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8048 *) ac_try_echo=$ac_try;;
8049 esac
8050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8051 (eval "$ac_try") 2>&5
8052 ac_status=$?
8053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8054 (exit $ac_status); }; } &&
8055 { ac_try='test -s conftest.$ac_objext'
8056 { (case "(($ac_try" in
8057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8058 *) ac_try_echo=$ac_try;;
8059 esac
8060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8061 (eval "$ac_try") 2>&5
8062 ac_status=$?
8063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8064 (exit $ac_status); }; }; then
8065 ac_cv_type_mbstate_t=yes
8066 else
8067 echo "$as_me: failed program was:" >&5
8068 sed 's/^/| /' conftest.$ac_ext >&5
8070 ac_cv_type_mbstate_t=no
8073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8075 { echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
8076 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
8077 if test $ac_cv_type_mbstate_t = yes; then
8079 cat >>confdefs.h <<\_ACEOF
8080 #define HAVE_MBSTATE_T 1
8081 _ACEOF
8083 else
8085 cat >>confdefs.h <<\_ACEOF
8086 #define mbstate_t int
8087 _ACEOF
8090 { echo "$as_me:$LINENO: checking for mode_t" >&5
8091 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
8092 if test "${ac_cv_type_mode_t+set}" = set; then
8093 echo $ECHO_N "(cached) $ECHO_C" >&6
8094 else
8095 cat >conftest.$ac_ext <<_ACEOF
8096 /* confdefs.h. */
8097 _ACEOF
8098 cat confdefs.h >>conftest.$ac_ext
8099 cat >>conftest.$ac_ext <<_ACEOF
8100 /* end confdefs.h. */
8101 $ac_includes_default
8102 typedef mode_t ac__type_new_;
8104 main ()
8106 if ((ac__type_new_ *) 0)
8107 return 0;
8108 if (sizeof (ac__type_new_))
8109 return 0;
8111 return 0;
8113 _ACEOF
8114 rm -f conftest.$ac_objext
8115 if { (ac_try="$ac_compile"
8116 case "(($ac_try" in
8117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8118 *) ac_try_echo=$ac_try;;
8119 esac
8120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8121 (eval "$ac_compile") 2>conftest.er1
8122 ac_status=$?
8123 grep -v '^ *+' conftest.er1 >conftest.err
8124 rm -f conftest.er1
8125 cat conftest.err >&5
8126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8127 (exit $ac_status); } &&
8128 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8129 { (case "(($ac_try" in
8130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8131 *) ac_try_echo=$ac_try;;
8132 esac
8133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8134 (eval "$ac_try") 2>&5
8135 ac_status=$?
8136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8137 (exit $ac_status); }; } &&
8138 { ac_try='test -s conftest.$ac_objext'
8139 { (case "(($ac_try" in
8140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8141 *) ac_try_echo=$ac_try;;
8142 esac
8143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8144 (eval "$ac_try") 2>&5
8145 ac_status=$?
8146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8147 (exit $ac_status); }; }; then
8148 ac_cv_type_mode_t=yes
8149 else
8150 echo "$as_me: failed program was:" >&5
8151 sed 's/^/| /' conftest.$ac_ext >&5
8153 ac_cv_type_mode_t=no
8156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8158 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
8159 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
8160 if test $ac_cv_type_mode_t = yes; then
8162 else
8164 cat >>confdefs.h <<_ACEOF
8165 #define mode_t int
8166 _ACEOF
8170 { echo "$as_me:$LINENO: checking for off_t" >&5
8171 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
8172 if test "${ac_cv_type_off_t+set}" = set; then
8173 echo $ECHO_N "(cached) $ECHO_C" >&6
8174 else
8175 cat >conftest.$ac_ext <<_ACEOF
8176 /* confdefs.h. */
8177 _ACEOF
8178 cat confdefs.h >>conftest.$ac_ext
8179 cat >>conftest.$ac_ext <<_ACEOF
8180 /* end confdefs.h. */
8181 $ac_includes_default
8182 typedef off_t ac__type_new_;
8184 main ()
8186 if ((ac__type_new_ *) 0)
8187 return 0;
8188 if (sizeof (ac__type_new_))
8189 return 0;
8191 return 0;
8193 _ACEOF
8194 rm -f conftest.$ac_objext
8195 if { (ac_try="$ac_compile"
8196 case "(($ac_try" in
8197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8198 *) ac_try_echo=$ac_try;;
8199 esac
8200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8201 (eval "$ac_compile") 2>conftest.er1
8202 ac_status=$?
8203 grep -v '^ *+' conftest.er1 >conftest.err
8204 rm -f conftest.er1
8205 cat conftest.err >&5
8206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8207 (exit $ac_status); } &&
8208 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8209 { (case "(($ac_try" in
8210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8211 *) ac_try_echo=$ac_try;;
8212 esac
8213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8214 (eval "$ac_try") 2>&5
8215 ac_status=$?
8216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8217 (exit $ac_status); }; } &&
8218 { ac_try='test -s conftest.$ac_objext'
8219 { (case "(($ac_try" in
8220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8221 *) ac_try_echo=$ac_try;;
8222 esac
8223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8224 (eval "$ac_try") 2>&5
8225 ac_status=$?
8226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8227 (exit $ac_status); }; }; then
8228 ac_cv_type_off_t=yes
8229 else
8230 echo "$as_me: failed program was:" >&5
8231 sed 's/^/| /' conftest.$ac_ext >&5
8233 ac_cv_type_off_t=no
8236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8238 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
8239 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
8240 if test $ac_cv_type_off_t = yes; then
8242 else
8244 cat >>confdefs.h <<_ACEOF
8245 #define off_t long int
8246 _ACEOF
8250 { echo "$as_me:$LINENO: checking for pid_t" >&5
8251 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
8252 if test "${ac_cv_type_pid_t+set}" = set; then
8253 echo $ECHO_N "(cached) $ECHO_C" >&6
8254 else
8255 cat >conftest.$ac_ext <<_ACEOF
8256 /* confdefs.h. */
8257 _ACEOF
8258 cat confdefs.h >>conftest.$ac_ext
8259 cat >>conftest.$ac_ext <<_ACEOF
8260 /* end confdefs.h. */
8261 $ac_includes_default
8262 typedef pid_t ac__type_new_;
8264 main ()
8266 if ((ac__type_new_ *) 0)
8267 return 0;
8268 if (sizeof (ac__type_new_))
8269 return 0;
8271 return 0;
8273 _ACEOF
8274 rm -f conftest.$ac_objext
8275 if { (ac_try="$ac_compile"
8276 case "(($ac_try" in
8277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8278 *) ac_try_echo=$ac_try;;
8279 esac
8280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8281 (eval "$ac_compile") 2>conftest.er1
8282 ac_status=$?
8283 grep -v '^ *+' conftest.er1 >conftest.err
8284 rm -f conftest.er1
8285 cat conftest.err >&5
8286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8287 (exit $ac_status); } &&
8288 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8289 { (case "(($ac_try" in
8290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8291 *) ac_try_echo=$ac_try;;
8292 esac
8293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8294 (eval "$ac_try") 2>&5
8295 ac_status=$?
8296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8297 (exit $ac_status); }; } &&
8298 { ac_try='test -s conftest.$ac_objext'
8299 { (case "(($ac_try" in
8300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8301 *) ac_try_echo=$ac_try;;
8302 esac
8303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8304 (eval "$ac_try") 2>&5
8305 ac_status=$?
8306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8307 (exit $ac_status); }; }; then
8308 ac_cv_type_pid_t=yes
8309 else
8310 echo "$as_me: failed program was:" >&5
8311 sed 's/^/| /' conftest.$ac_ext >&5
8313 ac_cv_type_pid_t=no
8316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8318 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
8319 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
8320 if test $ac_cv_type_pid_t = yes; then
8322 else
8324 cat >>confdefs.h <<_ACEOF
8325 #define pid_t int
8326 _ACEOF
8330 { echo "$as_me:$LINENO: checking for size_t" >&5
8331 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
8332 if test "${ac_cv_type_size_t+set}" = set; then
8333 echo $ECHO_N "(cached) $ECHO_C" >&6
8334 else
8335 cat >conftest.$ac_ext <<_ACEOF
8336 /* confdefs.h. */
8337 _ACEOF
8338 cat confdefs.h >>conftest.$ac_ext
8339 cat >>conftest.$ac_ext <<_ACEOF
8340 /* end confdefs.h. */
8341 $ac_includes_default
8342 typedef size_t ac__type_new_;
8344 main ()
8346 if ((ac__type_new_ *) 0)
8347 return 0;
8348 if (sizeof (ac__type_new_))
8349 return 0;
8351 return 0;
8353 _ACEOF
8354 rm -f conftest.$ac_objext
8355 if { (ac_try="$ac_compile"
8356 case "(($ac_try" in
8357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8358 *) ac_try_echo=$ac_try;;
8359 esac
8360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8361 (eval "$ac_compile") 2>conftest.er1
8362 ac_status=$?
8363 grep -v '^ *+' conftest.er1 >conftest.err
8364 rm -f conftest.er1
8365 cat conftest.err >&5
8366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8367 (exit $ac_status); } &&
8368 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8369 { (case "(($ac_try" in
8370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8371 *) ac_try_echo=$ac_try;;
8372 esac
8373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8374 (eval "$ac_try") 2>&5
8375 ac_status=$?
8376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8377 (exit $ac_status); }; } &&
8378 { ac_try='test -s conftest.$ac_objext'
8379 { (case "(($ac_try" in
8380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8381 *) ac_try_echo=$ac_try;;
8382 esac
8383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8384 (eval "$ac_try") 2>&5
8385 ac_status=$?
8386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8387 (exit $ac_status); }; }; then
8388 ac_cv_type_size_t=yes
8389 else
8390 echo "$as_me: failed program was:" >&5
8391 sed 's/^/| /' conftest.$ac_ext >&5
8393 ac_cv_type_size_t=no
8396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8398 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
8399 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
8400 if test $ac_cv_type_size_t = yes; then
8402 else
8404 cat >>confdefs.h <<_ACEOF
8405 #define size_t unsigned int
8406 _ACEOF
8411 { echo "$as_me:$LINENO: checking for uint32_t" >&5
8412 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
8413 if test "${gl_cv_c_uint32_t+set}" = set; then
8414 echo $ECHO_N "(cached) $ECHO_C" >&6
8415 else
8416 gl_cv_c_uint32_t=no
8417 for ac_type in "uint32_t" "unsigned int" \
8418 "unsigned long int" "unsigned short int"; do
8419 cat >conftest.$ac_ext <<_ACEOF
8420 /* confdefs.h. */
8421 _ACEOF
8422 cat confdefs.h >>conftest.$ac_ext
8423 cat >>conftest.$ac_ext <<_ACEOF
8424 /* end confdefs.h. */
8425 $ac_includes_default
8427 main ()
8429 static int test_array [1 - 2 * !(($ac_type) -1 == 4294967295U)];
8430 test_array [0] = 0
8433 return 0;
8435 _ACEOF
8436 rm -f conftest.$ac_objext
8437 if { (ac_try="$ac_compile"
8438 case "(($ac_try" in
8439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8440 *) ac_try_echo=$ac_try;;
8441 esac
8442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8443 (eval "$ac_compile") 2>conftest.er1
8444 ac_status=$?
8445 grep -v '^ *+' conftest.er1 >conftest.err
8446 rm -f conftest.er1
8447 cat conftest.err >&5
8448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8449 (exit $ac_status); } &&
8450 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8451 { (case "(($ac_try" in
8452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8453 *) ac_try_echo=$ac_try;;
8454 esac
8455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8456 (eval "$ac_try") 2>&5
8457 ac_status=$?
8458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8459 (exit $ac_status); }; } &&
8460 { ac_try='test -s conftest.$ac_objext'
8461 { (case "(($ac_try" in
8462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8463 *) ac_try_echo=$ac_try;;
8464 esac
8465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8466 (eval "$ac_try") 2>&5
8467 ac_status=$?
8468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8469 (exit $ac_status); }; }; then
8470 gl_cv_c_uint32_t=$ac_type
8471 else
8472 echo "$as_me: failed program was:" >&5
8473 sed 's/^/| /' conftest.$ac_ext >&5
8478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8479 test "$gl_cv_c_uint32_t" != no && break
8480 done
8482 { echo "$as_me:$LINENO: result: $gl_cv_c_uint32_t" >&5
8483 echo "${ECHO_T}$gl_cv_c_uint32_t" >&6; }
8484 case "$gl_cv_c_uint32_t" in
8485 no|uint32_t) ;;
8488 cat >>confdefs.h <<\_ACEOF
8489 #define _UINT32_T 1
8490 _ACEOF
8493 cat >>confdefs.h <<_ACEOF
8494 #define uint32_t $gl_cv_c_uint32_t
8495 _ACEOF
8498 esac
8500 { echo "$as_me:$LINENO: checking for UINT32_MAX" >&5
8501 echo $ECHO_N "checking for UINT32_MAX... $ECHO_C" >&6; }
8502 if test "${gl_cv_c_uint32_max+set}" = set; then
8503 echo $ECHO_N "(cached) $ECHO_C" >&6
8504 else
8505 cat >conftest.$ac_ext <<_ACEOF
8506 /* confdefs.h. */
8507 _ACEOF
8508 cat confdefs.h >>conftest.$ac_ext
8509 cat >>conftest.$ac_ext <<_ACEOF
8510 /* end confdefs.h. */
8511 $ac_includes_default
8513 main ()
8515 static int test_array [1 - 2 * !(UINT32_MAX == 4294967295U)];
8516 test_array [0] = 0
8519 return 0;
8521 _ACEOF
8522 rm -f conftest.$ac_objext
8523 if { (ac_try="$ac_compile"
8524 case "(($ac_try" in
8525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8526 *) ac_try_echo=$ac_try;;
8527 esac
8528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8529 (eval "$ac_compile") 2>conftest.er1
8530 ac_status=$?
8531 grep -v '^ *+' conftest.er1 >conftest.err
8532 rm -f conftest.er1
8533 cat conftest.err >&5
8534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8535 (exit $ac_status); } &&
8536 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8537 { (case "(($ac_try" in
8538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8539 *) ac_try_echo=$ac_try;;
8540 esac
8541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8542 (eval "$ac_try") 2>&5
8543 ac_status=$?
8544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8545 (exit $ac_status); }; } &&
8546 { ac_try='test -s conftest.$ac_objext'
8547 { (case "(($ac_try" in
8548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8549 *) ac_try_echo=$ac_try;;
8550 esac
8551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8552 (eval "$ac_try") 2>&5
8553 ac_status=$?
8554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8555 (exit $ac_status); }; }; then
8556 gl_cv_c_uint32_max=yes
8557 else
8558 echo "$as_me: failed program was:" >&5
8559 sed 's/^/| /' conftest.$ac_ext >&5
8561 gl_cv_c_uint32_max=no
8564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8566 { echo "$as_me:$LINENO: result: $gl_cv_c_uint32_max" >&5
8567 echo "${ECHO_T}$gl_cv_c_uint32_max" >&6; }
8568 case $gl_cv_c_uint32_max,$gl_cv_c_uint32_t in
8569 yes,*) ;;
8570 *,no) ;;
8573 cat >>confdefs.h <<\_ACEOF
8574 #define UINT32_MAX 4294967295U
8575 _ACEOF
8578 esac
8581 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
8582 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
8583 if test "${gl_cv_header_inttypes_h+set}" = set; then
8584 echo $ECHO_N "(cached) $ECHO_C" >&6
8585 else
8586 cat >conftest.$ac_ext <<_ACEOF
8587 /* confdefs.h. */
8588 _ACEOF
8589 cat confdefs.h >>conftest.$ac_ext
8590 cat >>conftest.$ac_ext <<_ACEOF
8591 /* end confdefs.h. */
8592 #include <sys/types.h>
8593 #include <inttypes.h>
8595 main ()
8597 uintmax_t i = (uintmax_t) -1;
8599 return 0;
8601 _ACEOF
8602 rm -f conftest.$ac_objext
8603 if { (ac_try="$ac_compile"
8604 case "(($ac_try" in
8605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8606 *) ac_try_echo=$ac_try;;
8607 esac
8608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8609 (eval "$ac_compile") 2>conftest.er1
8610 ac_status=$?
8611 grep -v '^ *+' conftest.er1 >conftest.err
8612 rm -f conftest.er1
8613 cat conftest.err >&5
8614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8615 (exit $ac_status); } &&
8616 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8617 { (case "(($ac_try" in
8618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8619 *) ac_try_echo=$ac_try;;
8620 esac
8621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8622 (eval "$ac_try") 2>&5
8623 ac_status=$?
8624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8625 (exit $ac_status); }; } &&
8626 { ac_try='test -s conftest.$ac_objext'
8627 { (case "(($ac_try" in
8628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8629 *) ac_try_echo=$ac_try;;
8630 esac
8631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8632 (eval "$ac_try") 2>&5
8633 ac_status=$?
8634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8635 (exit $ac_status); }; }; then
8636 gl_cv_header_inttypes_h=yes
8637 else
8638 echo "$as_me: failed program was:" >&5
8639 sed 's/^/| /' conftest.$ac_ext >&5
8641 gl_cv_header_inttypes_h=no
8644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8646 { echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
8647 echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6; }
8648 if test $gl_cv_header_inttypes_h = yes; then
8650 cat >>confdefs.h <<_ACEOF
8651 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
8652 _ACEOF
8657 { echo "$as_me:$LINENO: checking for stdint.h" >&5
8658 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
8659 if test "${gl_cv_header_stdint_h+set}" = set; then
8660 echo $ECHO_N "(cached) $ECHO_C" >&6
8661 else
8662 cat >conftest.$ac_ext <<_ACEOF
8663 /* confdefs.h. */
8664 _ACEOF
8665 cat confdefs.h >>conftest.$ac_ext
8666 cat >>conftest.$ac_ext <<_ACEOF
8667 /* end confdefs.h. */
8668 #include <sys/types.h>
8669 #include <stdint.h>
8671 main ()
8673 uintmax_t i = (uintmax_t) -1;
8675 return 0;
8677 _ACEOF
8678 rm -f conftest.$ac_objext
8679 if { (ac_try="$ac_compile"
8680 case "(($ac_try" in
8681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8682 *) ac_try_echo=$ac_try;;
8683 esac
8684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8685 (eval "$ac_compile") 2>conftest.er1
8686 ac_status=$?
8687 grep -v '^ *+' conftest.er1 >conftest.err
8688 rm -f conftest.er1
8689 cat conftest.err >&5
8690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8691 (exit $ac_status); } &&
8692 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8693 { (case "(($ac_try" in
8694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8695 *) ac_try_echo=$ac_try;;
8696 esac
8697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8698 (eval "$ac_try") 2>&5
8699 ac_status=$?
8700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8701 (exit $ac_status); }; } &&
8702 { ac_try='test -s conftest.$ac_objext'
8703 { (case "(($ac_try" in
8704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8705 *) ac_try_echo=$ac_try;;
8706 esac
8707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8708 (eval "$ac_try") 2>&5
8709 ac_status=$?
8710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8711 (exit $ac_status); }; }; then
8712 gl_cv_header_stdint_h=yes
8713 else
8714 echo "$as_me: failed program was:" >&5
8715 sed 's/^/| /' conftest.$ac_ext >&5
8717 gl_cv_header_stdint_h=no
8720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8722 { echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
8723 echo "${ECHO_T}$gl_cv_header_stdint_h" >&6; }
8724 if test $gl_cv_header_stdint_h = yes; then
8726 cat >>confdefs.h <<_ACEOF
8727 #define HAVE_STDINT_H_WITH_UINTMAX 1
8728 _ACEOF
8733 { echo "$as_me:$LINENO: checking for unsigned long long int" >&5
8734 echo $ECHO_N "checking for unsigned long long int... $ECHO_C" >&6; }
8735 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then
8736 echo $ECHO_N "(cached) $ECHO_C" >&6
8737 else
8738 cat >conftest.$ac_ext <<_ACEOF
8739 /* confdefs.h. */
8740 _ACEOF
8741 cat confdefs.h >>conftest.$ac_ext
8742 cat >>conftest.$ac_ext <<_ACEOF
8743 /* end confdefs.h. */
8744 unsigned long long int ull = 18446744073709551615ULL;
8745 typedef int a[(18446744073709551615ULL <= (unsigned long long int) -1
8746 ? 1 : -1)];
8747 int i = 63;
8749 main ()
8751 unsigned long long int ullmax = 18446744073709551615ull;
8752 return (ull << 63 | ull >> 63 | ull << i | ull >> i
8753 | ullmax / ull | ullmax % ull);
8755 return 0;
8757 _ACEOF
8758 rm -f conftest.$ac_objext conftest$ac_exeext
8759 if { (ac_try="$ac_link"
8760 case "(($ac_try" in
8761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8762 *) ac_try_echo=$ac_try;;
8763 esac
8764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8765 (eval "$ac_link") 2>conftest.er1
8766 ac_status=$?
8767 grep -v '^ *+' conftest.er1 >conftest.err
8768 rm -f conftest.er1
8769 cat conftest.err >&5
8770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8771 (exit $ac_status); } &&
8772 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8773 { (case "(($ac_try" in
8774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8775 *) ac_try_echo=$ac_try;;
8776 esac
8777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8778 (eval "$ac_try") 2>&5
8779 ac_status=$?
8780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8781 (exit $ac_status); }; } &&
8782 { ac_try='test -s conftest$ac_exeext'
8783 { (case "(($ac_try" in
8784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8785 *) ac_try_echo=$ac_try;;
8786 esac
8787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8788 (eval "$ac_try") 2>&5
8789 ac_status=$?
8790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8791 (exit $ac_status); }; }; then
8792 ac_cv_type_unsigned_long_long_int=yes
8793 else
8794 echo "$as_me: failed program was:" >&5
8795 sed 's/^/| /' conftest.$ac_ext >&5
8797 ac_cv_type_unsigned_long_long_int=no
8800 rm -f core conftest.err conftest.$ac_objext \
8801 conftest$ac_exeext conftest.$ac_ext
8803 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long_int" >&5
8804 echo "${ECHO_T}$ac_cv_type_unsigned_long_long_int" >&6; }
8805 if test $ac_cv_type_unsigned_long_long_int = yes; then
8807 cat >>confdefs.h <<\_ACEOF
8808 #define HAVE_UNSIGNED_LONG_LONG_INT 1
8809 _ACEOF
8815 ac_cv_type_unsigned_long_long=$ac_cv_type_unsigned_long_long_int
8816 if test $ac_cv_type_unsigned_long_long = yes; then
8818 cat >>confdefs.h <<\_ACEOF
8819 #define HAVE_UNSIGNED_LONG_LONG 1
8820 _ACEOF
8827 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
8829 test $ac_cv_type_unsigned_long_long = yes \
8830 && ac_type='unsigned long long' \
8831 || ac_type='unsigned long'
8833 cat >>confdefs.h <<_ACEOF
8834 #define uintmax_t $ac_type
8835 _ACEOF
8837 else
8839 cat >>confdefs.h <<\_ACEOF
8840 #define HAVE_UINTMAX_T 1
8841 _ACEOF
8846 { echo "$as_me:$LINENO: checking for uintptr_t" >&5
8847 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
8848 if test "${gl_cv_c_uintptr_t+set}" = set; then
8849 echo $ECHO_N "(cached) $ECHO_C" >&6
8850 else
8851 gl_cv_c_uintptr_t=no
8852 for ac_type in "uintptr_t" "unsigned int" \
8853 "unsigned long int" "unsigned long long int"; do
8854 cat >conftest.$ac_ext <<_ACEOF
8855 /* confdefs.h. */
8856 _ACEOF
8857 cat confdefs.h >>conftest.$ac_ext
8858 cat >>conftest.$ac_ext <<_ACEOF
8859 /* end confdefs.h. */
8860 $ac_includes_default
8862 main ()
8864 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof (uintptr_t))];
8865 test_array [0] = 0
8868 return 0;
8870 _ACEOF
8871 rm -f conftest.$ac_objext
8872 if { (ac_try="$ac_compile"
8873 case "(($ac_try" in
8874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8875 *) ac_try_echo=$ac_try;;
8876 esac
8877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8878 (eval "$ac_compile") 2>conftest.er1
8879 ac_status=$?
8880 grep -v '^ *+' conftest.er1 >conftest.err
8881 rm -f conftest.er1
8882 cat conftest.err >&5
8883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8884 (exit $ac_status); } &&
8885 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8886 { (case "(($ac_try" in
8887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8888 *) ac_try_echo=$ac_try;;
8889 esac
8890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8891 (eval "$ac_try") 2>&5
8892 ac_status=$?
8893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8894 (exit $ac_status); }; } &&
8895 { ac_try='test -s conftest.$ac_objext'
8896 { (case "(($ac_try" in
8897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8898 *) ac_try_echo=$ac_try;;
8899 esac
8900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8901 (eval "$ac_try") 2>&5
8902 ac_status=$?
8903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8904 (exit $ac_status); }; }; then
8905 gl_cv_c_uintptr_t=$ac_type
8906 else
8907 echo "$as_me: failed program was:" >&5
8908 sed 's/^/| /' conftest.$ac_ext >&5
8913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8914 test $gl_cv_c_uintptr_t != no && break
8915 done
8917 { echo "$as_me:$LINENO: result: $gl_cv_c_uintptr_t" >&5
8918 echo "${ECHO_T}$gl_cv_c_uintptr_t" >&6; }
8919 case $gl_cv_c_uintptr_t in
8920 no|uintptr_t) ;;
8923 cat >>confdefs.h <<_ACEOF
8924 #define uintptr_t $gl_cv_c_uintptr_t
8925 _ACEOF
8928 esac
8930 { echo "$as_me:$LINENO: checking for UINTPTR_MAX" >&5
8931 echo $ECHO_N "checking for UINTPTR_MAX... $ECHO_C" >&6; }
8932 if test "${gl_cv_c_uintptr_max+set}" = set; then
8933 echo $ECHO_N "(cached) $ECHO_C" >&6
8934 else
8935 cat >conftest.$ac_ext <<_ACEOF
8936 /* confdefs.h. */
8937 _ACEOF
8938 cat confdefs.h >>conftest.$ac_ext
8939 cat >>conftest.$ac_ext <<_ACEOF
8940 /* end confdefs.h. */
8941 $ac_includes_default
8943 main ()
8945 #ifndef UINTPTR_MAX
8946 error: UINTPTR_MAX is not defined.
8947 #endif
8949 return 0;
8951 _ACEOF
8952 rm -f conftest.$ac_objext
8953 if { (ac_try="$ac_compile"
8954 case "(($ac_try" in
8955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8956 *) ac_try_echo=$ac_try;;
8957 esac
8958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8959 (eval "$ac_compile") 2>conftest.er1
8960 ac_status=$?
8961 grep -v '^ *+' conftest.er1 >conftest.err
8962 rm -f conftest.er1
8963 cat conftest.err >&5
8964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8965 (exit $ac_status); } &&
8966 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8967 { (case "(($ac_try" in
8968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8969 *) ac_try_echo=$ac_try;;
8970 esac
8971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8972 (eval "$ac_try") 2>&5
8973 ac_status=$?
8974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8975 (exit $ac_status); }; } &&
8976 { ac_try='test -s conftest.$ac_objext'
8977 { (case "(($ac_try" in
8978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8979 *) ac_try_echo=$ac_try;;
8980 esac
8981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8982 (eval "$ac_try") 2>&5
8983 ac_status=$?
8984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8985 (exit $ac_status); }; }; then
8986 gl_cv_c_uintptr_max=yes
8987 else
8988 echo "$as_me: failed program was:" >&5
8989 sed 's/^/| /' conftest.$ac_ext >&5
8991 gl_cv_c_uintptr_max=no
8994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8996 { echo "$as_me:$LINENO: result: $gl_cv_c_uintptr_max" >&5
8997 echo "${ECHO_T}$gl_cv_c_uintptr_max" >&6; }
8998 case $gl_cv_c_uintptr_max,$gl_cv_c_uintptr_t in
8999 yes,*) ;;
9000 *,no) ;;
9003 cat >>confdefs.h <<\_ACEOF
9004 #define UINTPTR_MAX ((uintptr_t) -1)
9005 _ACEOF
9008 esac
9010 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
9011 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
9012 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
9013 echo $ECHO_N "(cached) $ECHO_C" >&6
9014 else
9015 cat >conftest.$ac_ext <<_ACEOF
9016 /* confdefs.h. */
9017 _ACEOF
9018 cat confdefs.h >>conftest.$ac_ext
9019 cat >>conftest.$ac_ext <<_ACEOF
9020 /* end confdefs.h. */
9021 #include <sys/types.h>
9023 main ()
9025 return makedev(0, 0);
9027 return 0;
9029 _ACEOF
9030 rm -f conftest.$ac_objext conftest$ac_exeext
9031 if { (ac_try="$ac_link"
9032 case "(($ac_try" in
9033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9034 *) ac_try_echo=$ac_try;;
9035 esac
9036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9037 (eval "$ac_link") 2>conftest.er1
9038 ac_status=$?
9039 grep -v '^ *+' conftest.er1 >conftest.err
9040 rm -f conftest.er1
9041 cat conftest.err >&5
9042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9043 (exit $ac_status); } &&
9044 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9045 { (case "(($ac_try" in
9046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9047 *) ac_try_echo=$ac_try;;
9048 esac
9049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9050 (eval "$ac_try") 2>&5
9051 ac_status=$?
9052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9053 (exit $ac_status); }; } &&
9054 { ac_try='test -s conftest$ac_exeext'
9055 { (case "(($ac_try" in
9056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9057 *) ac_try_echo=$ac_try;;
9058 esac
9059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9060 (eval "$ac_try") 2>&5
9061 ac_status=$?
9062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9063 (exit $ac_status); }; }; then
9064 ac_cv_header_sys_types_h_makedev=yes
9065 else
9066 echo "$as_me: failed program was:" >&5
9067 sed 's/^/| /' conftest.$ac_ext >&5
9069 ac_cv_header_sys_types_h_makedev=no
9072 rm -f core conftest.err conftest.$ac_objext \
9073 conftest$ac_exeext conftest.$ac_ext
9076 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
9077 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
9079 if test $ac_cv_header_sys_types_h_makedev = no; then
9080 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
9081 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
9082 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
9083 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
9084 echo $ECHO_N "(cached) $ECHO_C" >&6
9086 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
9087 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
9088 else
9089 # Is the header compilable?
9090 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
9091 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
9092 cat >conftest.$ac_ext <<_ACEOF
9093 /* confdefs.h. */
9094 _ACEOF
9095 cat confdefs.h >>conftest.$ac_ext
9096 cat >>conftest.$ac_ext <<_ACEOF
9097 /* end confdefs.h. */
9098 $ac_includes_default
9099 #include <sys/mkdev.h>
9100 _ACEOF
9101 rm -f conftest.$ac_objext
9102 if { (ac_try="$ac_compile"
9103 case "(($ac_try" in
9104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9105 *) ac_try_echo=$ac_try;;
9106 esac
9107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9108 (eval "$ac_compile") 2>conftest.er1
9109 ac_status=$?
9110 grep -v '^ *+' conftest.er1 >conftest.err
9111 rm -f conftest.er1
9112 cat conftest.err >&5
9113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9114 (exit $ac_status); } &&
9115 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9116 { (case "(($ac_try" in
9117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9118 *) ac_try_echo=$ac_try;;
9119 esac
9120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9121 (eval "$ac_try") 2>&5
9122 ac_status=$?
9123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9124 (exit $ac_status); }; } &&
9125 { ac_try='test -s conftest.$ac_objext'
9126 { (case "(($ac_try" in
9127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9128 *) ac_try_echo=$ac_try;;
9129 esac
9130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9131 (eval "$ac_try") 2>&5
9132 ac_status=$?
9133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9134 (exit $ac_status); }; }; then
9135 ac_header_compiler=yes
9136 else
9137 echo "$as_me: failed program was:" >&5
9138 sed 's/^/| /' conftest.$ac_ext >&5
9140 ac_header_compiler=no
9143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9144 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9145 echo "${ECHO_T}$ac_header_compiler" >&6; }
9147 # Is the header present?
9148 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
9149 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
9150 cat >conftest.$ac_ext <<_ACEOF
9151 /* confdefs.h. */
9152 _ACEOF
9153 cat confdefs.h >>conftest.$ac_ext
9154 cat >>conftest.$ac_ext <<_ACEOF
9155 /* end confdefs.h. */
9156 #include <sys/mkdev.h>
9157 _ACEOF
9158 if { (ac_try="$ac_cpp conftest.$ac_ext"
9159 case "(($ac_try" in
9160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9161 *) ac_try_echo=$ac_try;;
9162 esac
9163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9164 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9165 ac_status=$?
9166 grep -v '^ *+' conftest.er1 >conftest.err
9167 rm -f conftest.er1
9168 cat conftest.err >&5
9169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9170 (exit $ac_status); } >/dev/null; then
9171 if test -s conftest.err; then
9172 ac_cpp_err=$ac_c_preproc_warn_flag
9173 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9174 else
9175 ac_cpp_err=
9177 else
9178 ac_cpp_err=yes
9180 if test -z "$ac_cpp_err"; then
9181 ac_header_preproc=yes
9182 else
9183 echo "$as_me: failed program was:" >&5
9184 sed 's/^/| /' conftest.$ac_ext >&5
9186 ac_header_preproc=no
9189 rm -f conftest.err conftest.$ac_ext
9190 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9191 echo "${ECHO_T}$ac_header_preproc" >&6; }
9193 # So? What about this header?
9194 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9195 yes:no: )
9196 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
9197 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9198 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
9199 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
9200 ac_header_preproc=yes
9202 no:yes:* )
9203 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
9204 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
9205 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
9206 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
9207 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
9208 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
9209 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
9210 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
9211 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
9212 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
9213 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
9214 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
9215 ( cat <<\_ASBOX
9216 ## ------------------------------------ ##
9217 ## Report this to bug-coreutils@gnu.org ##
9218 ## ------------------------------------ ##
9219 _ASBOX
9220 ) | sed "s/^/$as_me: WARNING: /" >&2
9222 esac
9223 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
9224 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
9225 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
9226 echo $ECHO_N "(cached) $ECHO_C" >&6
9227 else
9228 ac_cv_header_sys_mkdev_h=$ac_header_preproc
9230 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
9231 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
9234 if test $ac_cv_header_sys_mkdev_h = yes; then
9236 cat >>confdefs.h <<\_ACEOF
9237 #define MAJOR_IN_MKDEV 1
9238 _ACEOF
9244 if test $ac_cv_header_sys_mkdev_h = no; then
9245 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
9246 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
9247 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
9248 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
9249 echo $ECHO_N "(cached) $ECHO_C" >&6
9251 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
9252 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
9253 else
9254 # Is the header compilable?
9255 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
9256 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
9257 cat >conftest.$ac_ext <<_ACEOF
9258 /* confdefs.h. */
9259 _ACEOF
9260 cat confdefs.h >>conftest.$ac_ext
9261 cat >>conftest.$ac_ext <<_ACEOF
9262 /* end confdefs.h. */
9263 $ac_includes_default
9264 #include <sys/sysmacros.h>
9265 _ACEOF
9266 rm -f conftest.$ac_objext
9267 if { (ac_try="$ac_compile"
9268 case "(($ac_try" in
9269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9270 *) ac_try_echo=$ac_try;;
9271 esac
9272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9273 (eval "$ac_compile") 2>conftest.er1
9274 ac_status=$?
9275 grep -v '^ *+' conftest.er1 >conftest.err
9276 rm -f conftest.er1
9277 cat conftest.err >&5
9278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9279 (exit $ac_status); } &&
9280 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9281 { (case "(($ac_try" in
9282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9283 *) ac_try_echo=$ac_try;;
9284 esac
9285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9286 (eval "$ac_try") 2>&5
9287 ac_status=$?
9288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9289 (exit $ac_status); }; } &&
9290 { ac_try='test -s conftest.$ac_objext'
9291 { (case "(($ac_try" in
9292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9293 *) ac_try_echo=$ac_try;;
9294 esac
9295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9296 (eval "$ac_try") 2>&5
9297 ac_status=$?
9298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9299 (exit $ac_status); }; }; then
9300 ac_header_compiler=yes
9301 else
9302 echo "$as_me: failed program was:" >&5
9303 sed 's/^/| /' conftest.$ac_ext >&5
9305 ac_header_compiler=no
9308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9309 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9310 echo "${ECHO_T}$ac_header_compiler" >&6; }
9312 # Is the header present?
9313 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
9314 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
9315 cat >conftest.$ac_ext <<_ACEOF
9316 /* confdefs.h. */
9317 _ACEOF
9318 cat confdefs.h >>conftest.$ac_ext
9319 cat >>conftest.$ac_ext <<_ACEOF
9320 /* end confdefs.h. */
9321 #include <sys/sysmacros.h>
9322 _ACEOF
9323 if { (ac_try="$ac_cpp conftest.$ac_ext"
9324 case "(($ac_try" in
9325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9326 *) ac_try_echo=$ac_try;;
9327 esac
9328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9329 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9330 ac_status=$?
9331 grep -v '^ *+' conftest.er1 >conftest.err
9332 rm -f conftest.er1
9333 cat conftest.err >&5
9334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9335 (exit $ac_status); } >/dev/null; then
9336 if test -s conftest.err; then
9337 ac_cpp_err=$ac_c_preproc_warn_flag
9338 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9339 else
9340 ac_cpp_err=
9342 else
9343 ac_cpp_err=yes
9345 if test -z "$ac_cpp_err"; then
9346 ac_header_preproc=yes
9347 else
9348 echo "$as_me: failed program was:" >&5
9349 sed 's/^/| /' conftest.$ac_ext >&5
9351 ac_header_preproc=no
9354 rm -f conftest.err conftest.$ac_ext
9355 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9356 echo "${ECHO_T}$ac_header_preproc" >&6; }
9358 # So? What about this header?
9359 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9360 yes:no: )
9361 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
9362 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9363 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
9364 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
9365 ac_header_preproc=yes
9367 no:yes:* )
9368 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
9369 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
9370 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
9371 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
9372 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
9373 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
9374 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
9375 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
9376 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
9377 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
9378 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
9379 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
9380 ( cat <<\_ASBOX
9381 ## ------------------------------------ ##
9382 ## Report this to bug-coreutils@gnu.org ##
9383 ## ------------------------------------ ##
9384 _ASBOX
9385 ) | sed "s/^/$as_me: WARNING: /" >&2
9387 esac
9388 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
9389 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
9390 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
9391 echo $ECHO_N "(cached) $ECHO_C" >&6
9392 else
9393 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
9395 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
9396 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
9399 if test $ac_cv_header_sys_sysmacros_h = yes; then
9401 cat >>confdefs.h <<\_ACEOF
9402 #define MAJOR_IN_SYSMACROS 1
9403 _ACEOF
9412 { echo "$as_me:$LINENO: checking host operating system" >&5
9413 echo $ECHO_N "checking host operating system... $ECHO_C" >&6; }
9414 if test "${gl_cv_host_operating_system+set}" = set; then
9415 echo $ECHO_N "(cached) $ECHO_C" >&6
9416 else
9417 case $host_os in
9419 # These operating system names do not use the default heuristic below.
9420 # They are in reverse order, so that more-specific prefixes come first.
9421 winnt*) os='Windows NT';;
9422 vos*) os='VOS';;
9423 sysv*) os='Unix System V';;
9424 superux*) os='SUPER-UX';;
9425 sunos*) os='SunOS';;
9426 stop*) os='STOP';;
9427 sco*) os='SCO Unix';;
9428 riscos*) os='RISC OS';;
9429 riscix*) os='RISCiX';;
9430 qnx*) os='QNX';;
9431 pw32*) os='PW32';;
9432 ptx*) os='ptx';;
9433 plan9*) os='Plan 9';;
9434 osf*) os='Tru64';;
9435 os2*) os='OS/2';;
9436 openbsd*) os='OpenBSD';;
9437 nsk*) os='NonStop Kernel';;
9438 nonstopux*) os='NonStop-UX';;
9439 netbsd*-gnu*) os='GNU/NetBSD';; # NetBSD kernel+libc, GNU userland
9440 netbsd*) os='NetBSD';;
9441 knetbsd*-gnu) os='GNU/kNetBSD';; # NetBSD kernel, GNU libc+userland
9442 kfreebsd*-gnu) os='GNU/kFreeBSD';; # FreeBSD kernel, GNU libc+userland
9443 msdosdjgpp*) os='DJGPP';;
9444 mpeix*) os='MPE/iX';;
9445 mint*) os='MiNT';;
9446 mingw*) os='MinGW';;
9447 lynxos*) os='LynxOS';;
9448 linux*) os='GNU/Linux';;
9449 hpux*) os='HP-UX';;
9450 hiux*) os='HI-UX';;
9451 gnu*) os='GNU';;
9452 freebsd*) os='FreeBSD';;
9453 dgux*) os='DG/UX';;
9454 bsdi*) os='BSD/OS';;
9455 bsd*) os='BSD';;
9456 beos*) os='BeOS';;
9457 aux*) os='A/UX';;
9458 atheos*) os='AtheOS';;
9459 amigaos*) os='Amiga OS';;
9460 aix*) os='AIX';;
9462 # The default heuristic takes the initial alphabetic string
9463 # from $host_os, but capitalizes its first letter.
9464 [A-Za-z]*)
9465 os=`
9466 expr "X$host_os" : 'X\([A-Za-z]\)' | tr '[a-z]' '[A-Z]'
9468 expr "X$host_os" : 'X.\([A-Za-z]*\)'
9472 # If $host_os does not start with an alphabetic string, use it unchanged.
9474 os=$host_os;;
9475 esac
9476 gl_cv_host_operating_system=$os
9478 { echo "$as_me:$LINENO: result: $gl_cv_host_operating_system" >&5
9479 echo "${ECHO_T}$gl_cv_host_operating_system" >&6; }
9481 cat >>confdefs.h <<_ACEOF
9482 #define HOST_OPERATING_SYSTEM "$gl_cv_host_operating_system"
9483 _ACEOF
9487 { echo "$as_me:$LINENO: checking whether to enable assertions" >&5
9488 echo $ECHO_N "checking whether to enable assertions... $ECHO_C" >&6; }
9489 # Check whether --enable-assert was given.
9490 if test "${enable_assert+set}" = set; then
9491 enableval=$enable_assert; { echo "$as_me:$LINENO: result: no" >&5
9492 echo "${ECHO_T}no" >&6; }
9494 cat >>confdefs.h <<\_ACEOF
9495 #define NDEBUG 1
9496 _ACEOF
9498 else
9499 { echo "$as_me:$LINENO: result: yes" >&5
9500 echo "${ECHO_T}yes" >&6; }
9505 { echo "$as_me:$LINENO: checking for d_type member in directory struct" >&5
9506 echo $ECHO_N "checking for d_type member in directory struct... $ECHO_C" >&6; }
9507 if test "${jm_cv_struct_dirent_d_type+set}" = set; then
9508 echo $ECHO_N "(cached) $ECHO_C" >&6
9509 else
9510 cat >conftest.$ac_ext <<_ACEOF
9511 /* confdefs.h. */
9512 _ACEOF
9513 cat confdefs.h >>conftest.$ac_ext
9514 cat >>conftest.$ac_ext <<_ACEOF
9515 /* end confdefs.h. */
9517 #include <sys/types.h>
9518 #include <dirent.h>
9521 main ()
9523 struct dirent dp; dp.d_type = 0;
9525 return 0;
9527 _ACEOF
9528 rm -f conftest.$ac_objext conftest$ac_exeext
9529 if { (ac_try="$ac_link"
9530 case "(($ac_try" in
9531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9532 *) ac_try_echo=$ac_try;;
9533 esac
9534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9535 (eval "$ac_link") 2>conftest.er1
9536 ac_status=$?
9537 grep -v '^ *+' conftest.er1 >conftest.err
9538 rm -f conftest.er1
9539 cat conftest.err >&5
9540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9541 (exit $ac_status); } &&
9542 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9543 { (case "(($ac_try" in
9544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9545 *) ac_try_echo=$ac_try;;
9546 esac
9547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9548 (eval "$ac_try") 2>&5
9549 ac_status=$?
9550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9551 (exit $ac_status); }; } &&
9552 { ac_try='test -s conftest$ac_exeext'
9553 { (case "(($ac_try" in
9554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9555 *) ac_try_echo=$ac_try;;
9556 esac
9557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9558 (eval "$ac_try") 2>&5
9559 ac_status=$?
9560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9561 (exit $ac_status); }; }; then
9562 jm_cv_struct_dirent_d_type=yes
9563 else
9564 echo "$as_me: failed program was:" >&5
9565 sed 's/^/| /' conftest.$ac_ext >&5
9567 jm_cv_struct_dirent_d_type=no
9570 rm -f core conftest.err conftest.$ac_objext \
9571 conftest$ac_exeext conftest.$ac_ext
9575 { echo "$as_me:$LINENO: result: $jm_cv_struct_dirent_d_type" >&5
9576 echo "${ECHO_T}$jm_cv_struct_dirent_d_type" >&6; }
9577 if test $jm_cv_struct_dirent_d_type = yes; then
9579 cat >>confdefs.h <<\_ACEOF
9580 #define HAVE_STRUCT_DIRENT_D_TYPE 1
9581 _ACEOF
9586 { echo "$as_me:$LINENO: checking for d_ino member in directory struct" >&5
9587 echo $ECHO_N "checking for d_ino member in directory struct... $ECHO_C" >&6; }
9588 if test "${jm_cv_struct_dirent_d_ino+set}" = set; then
9589 echo $ECHO_N "(cached) $ECHO_C" >&6
9590 else
9591 cat >conftest.$ac_ext <<_ACEOF
9592 /* confdefs.h. */
9593 _ACEOF
9594 cat confdefs.h >>conftest.$ac_ext
9595 cat >>conftest.$ac_ext <<_ACEOF
9596 /* end confdefs.h. */
9598 #include <sys/types.h>
9599 #include <dirent.h>
9602 main ()
9604 struct dirent dp; dp.d_ino = 0;
9606 return 0;
9608 _ACEOF
9609 rm -f conftest.$ac_objext conftest$ac_exeext
9610 if { (ac_try="$ac_link"
9611 case "(($ac_try" in
9612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9613 *) ac_try_echo=$ac_try;;
9614 esac
9615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9616 (eval "$ac_link") 2>conftest.er1
9617 ac_status=$?
9618 grep -v '^ *+' conftest.er1 >conftest.err
9619 rm -f conftest.er1
9620 cat conftest.err >&5
9621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9622 (exit $ac_status); } &&
9623 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9624 { (case "(($ac_try" in
9625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9626 *) ac_try_echo=$ac_try;;
9627 esac
9628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9629 (eval "$ac_try") 2>&5
9630 ac_status=$?
9631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9632 (exit $ac_status); }; } &&
9633 { ac_try='test -s conftest$ac_exeext'
9634 { (case "(($ac_try" in
9635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9636 *) ac_try_echo=$ac_try;;
9637 esac
9638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9639 (eval "$ac_try") 2>&5
9640 ac_status=$?
9641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9642 (exit $ac_status); }; }; then
9643 jm_cv_struct_dirent_d_ino=yes
9644 else
9645 echo "$as_me: failed program was:" >&5
9646 sed 's/^/| /' conftest.$ac_ext >&5
9648 jm_cv_struct_dirent_d_ino=no
9651 rm -f core conftest.err conftest.$ac_objext \
9652 conftest$ac_exeext conftest.$ac_ext
9656 { echo "$as_me:$LINENO: result: $jm_cv_struct_dirent_d_ino" >&5
9657 echo "${ECHO_T}$jm_cv_struct_dirent_d_ino" >&6; }
9658 if test $jm_cv_struct_dirent_d_ino = yes; then
9660 cat >>confdefs.h <<\_ACEOF
9661 #define D_INO_IN_DIRENT 1
9662 _ACEOF
9687 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
9688 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
9689 if test "${ac_cv_header_time+set}" = set; then
9690 echo $ECHO_N "(cached) $ECHO_C" >&6
9691 else
9692 cat >conftest.$ac_ext <<_ACEOF
9693 /* confdefs.h. */
9694 _ACEOF
9695 cat confdefs.h >>conftest.$ac_ext
9696 cat >>conftest.$ac_ext <<_ACEOF
9697 /* end confdefs.h. */
9698 #include <sys/types.h>
9699 #include <sys/time.h>
9700 #include <time.h>
9703 main ()
9705 if ((struct tm *) 0)
9706 return 0;
9708 return 0;
9710 _ACEOF
9711 rm -f conftest.$ac_objext
9712 if { (ac_try="$ac_compile"
9713 case "(($ac_try" in
9714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9715 *) ac_try_echo=$ac_try;;
9716 esac
9717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9718 (eval "$ac_compile") 2>conftest.er1
9719 ac_status=$?
9720 grep -v '^ *+' conftest.er1 >conftest.err
9721 rm -f conftest.er1
9722 cat conftest.err >&5
9723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9724 (exit $ac_status); } &&
9725 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9726 { (case "(($ac_try" in
9727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9728 *) ac_try_echo=$ac_try;;
9729 esac
9730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9731 (eval "$ac_try") 2>&5
9732 ac_status=$?
9733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9734 (exit $ac_status); }; } &&
9735 { ac_try='test -s conftest.$ac_objext'
9736 { (case "(($ac_try" in
9737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9738 *) ac_try_echo=$ac_try;;
9739 esac
9740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9741 (eval "$ac_try") 2>&5
9742 ac_status=$?
9743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9744 (exit $ac_status); }; }; then
9745 ac_cv_header_time=yes
9746 else
9747 echo "$as_me: failed program was:" >&5
9748 sed 's/^/| /' conftest.$ac_ext >&5
9750 ac_cv_header_time=no
9753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9755 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
9756 echo "${ECHO_T}$ac_cv_header_time" >&6; }
9757 if test $ac_cv_header_time = yes; then
9759 cat >>confdefs.h <<\_ACEOF
9760 #define TIME_WITH_SYS_TIME 1
9761 _ACEOF
9768 headers='
9769 #include <stdio.h>
9770 #include <string.h>
9771 #include <stdlib.h>
9773 #include <unistd.h>
9775 #include <sys/types.h>
9776 #if TIME_WITH_SYS_TIME
9777 # include <sys/time.h>
9778 # include <time.h>
9779 #else
9780 # if HAVE_SYS_TIME_H
9781 # include <sys/time.h>
9782 # else
9783 # include <time.h>
9784 # endif
9785 #endif
9787 #if HAVE_UTMP_H
9788 # include <utmp.h>
9789 #endif
9791 #if HAVE_GRP_H
9792 # include <grp.h>
9793 #endif
9795 #if HAVE_PWD_H
9796 # include <pwd.h>
9797 #endif
9800 { echo "$as_me:$LINENO: checking whether free is declared" >&5
9801 echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6; }
9802 if test "${ac_cv_have_decl_free+set}" = set; then
9803 echo $ECHO_N "(cached) $ECHO_C" >&6
9804 else
9805 cat >conftest.$ac_ext <<_ACEOF
9806 /* confdefs.h. */
9807 _ACEOF
9808 cat confdefs.h >>conftest.$ac_ext
9809 cat >>conftest.$ac_ext <<_ACEOF
9810 /* end confdefs.h. */
9811 $headers
9814 main ()
9816 #ifndef free
9817 char *p = (char *) free;
9818 return !p;
9819 #endif
9822 return 0;
9824 _ACEOF
9825 rm -f conftest.$ac_objext
9826 if { (ac_try="$ac_compile"
9827 case "(($ac_try" in
9828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9829 *) ac_try_echo=$ac_try;;
9830 esac
9831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9832 (eval "$ac_compile") 2>conftest.er1
9833 ac_status=$?
9834 grep -v '^ *+' conftest.er1 >conftest.err
9835 rm -f conftest.er1
9836 cat conftest.err >&5
9837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9838 (exit $ac_status); } &&
9839 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9840 { (case "(($ac_try" in
9841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9842 *) ac_try_echo=$ac_try;;
9843 esac
9844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9845 (eval "$ac_try") 2>&5
9846 ac_status=$?
9847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9848 (exit $ac_status); }; } &&
9849 { ac_try='test -s conftest.$ac_objext'
9850 { (case "(($ac_try" in
9851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9852 *) ac_try_echo=$ac_try;;
9853 esac
9854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9855 (eval "$ac_try") 2>&5
9856 ac_status=$?
9857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9858 (exit $ac_status); }; }; then
9859 ac_cv_have_decl_free=yes
9860 else
9861 echo "$as_me: failed program was:" >&5
9862 sed 's/^/| /' conftest.$ac_ext >&5
9864 ac_cv_have_decl_free=no
9867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9869 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
9870 echo "${ECHO_T}$ac_cv_have_decl_free" >&6; }
9871 if test $ac_cv_have_decl_free = yes; then
9873 cat >>confdefs.h <<_ACEOF
9874 #define HAVE_DECL_FREE 1
9875 _ACEOF
9878 else
9879 cat >>confdefs.h <<_ACEOF
9880 #define HAVE_DECL_FREE 0
9881 _ACEOF
9885 { echo "$as_me:$LINENO: checking whether getenv is declared" >&5
9886 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6; }
9887 if test "${ac_cv_have_decl_getenv+set}" = set; then
9888 echo $ECHO_N "(cached) $ECHO_C" >&6
9889 else
9890 cat >conftest.$ac_ext <<_ACEOF
9891 /* confdefs.h. */
9892 _ACEOF
9893 cat confdefs.h >>conftest.$ac_ext
9894 cat >>conftest.$ac_ext <<_ACEOF
9895 /* end confdefs.h. */
9896 $headers
9899 main ()
9901 #ifndef getenv
9902 char *p = (char *) getenv;
9903 return !p;
9904 #endif
9907 return 0;
9909 _ACEOF
9910 rm -f conftest.$ac_objext
9911 if { (ac_try="$ac_compile"
9912 case "(($ac_try" in
9913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9914 *) ac_try_echo=$ac_try;;
9915 esac
9916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9917 (eval "$ac_compile") 2>conftest.er1
9918 ac_status=$?
9919 grep -v '^ *+' conftest.er1 >conftest.err
9920 rm -f conftest.er1
9921 cat conftest.err >&5
9922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9923 (exit $ac_status); } &&
9924 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9925 { (case "(($ac_try" in
9926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9927 *) ac_try_echo=$ac_try;;
9928 esac
9929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9930 (eval "$ac_try") 2>&5
9931 ac_status=$?
9932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9933 (exit $ac_status); }; } &&
9934 { ac_try='test -s conftest.$ac_objext'
9935 { (case "(($ac_try" in
9936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9937 *) ac_try_echo=$ac_try;;
9938 esac
9939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9940 (eval "$ac_try") 2>&5
9941 ac_status=$?
9942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9943 (exit $ac_status); }; }; then
9944 ac_cv_have_decl_getenv=yes
9945 else
9946 echo "$as_me: failed program was:" >&5
9947 sed 's/^/| /' conftest.$ac_ext >&5
9949 ac_cv_have_decl_getenv=no
9952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9954 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
9955 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6; }
9956 if test $ac_cv_have_decl_getenv = yes; then
9958 cat >>confdefs.h <<_ACEOF
9959 #define HAVE_DECL_GETENV 1
9960 _ACEOF
9963 else
9964 cat >>confdefs.h <<_ACEOF
9965 #define HAVE_DECL_GETENV 0
9966 _ACEOF
9970 { echo "$as_me:$LINENO: checking whether geteuid is declared" >&5
9971 echo $ECHO_N "checking whether geteuid is declared... $ECHO_C" >&6; }
9972 if test "${ac_cv_have_decl_geteuid+set}" = set; then
9973 echo $ECHO_N "(cached) $ECHO_C" >&6
9974 else
9975 cat >conftest.$ac_ext <<_ACEOF
9976 /* confdefs.h. */
9977 _ACEOF
9978 cat confdefs.h >>conftest.$ac_ext
9979 cat >>conftest.$ac_ext <<_ACEOF
9980 /* end confdefs.h. */
9981 $headers
9984 main ()
9986 #ifndef geteuid
9987 char *p = (char *) geteuid;
9988 return !p;
9989 #endif
9992 return 0;
9994 _ACEOF
9995 rm -f conftest.$ac_objext
9996 if { (ac_try="$ac_compile"
9997 case "(($ac_try" in
9998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9999 *) ac_try_echo=$ac_try;;
10000 esac
10001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10002 (eval "$ac_compile") 2>conftest.er1
10003 ac_status=$?
10004 grep -v '^ *+' conftest.er1 >conftest.err
10005 rm -f conftest.er1
10006 cat conftest.err >&5
10007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10008 (exit $ac_status); } &&
10009 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10010 { (case "(($ac_try" in
10011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10012 *) ac_try_echo=$ac_try;;
10013 esac
10014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10015 (eval "$ac_try") 2>&5
10016 ac_status=$?
10017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10018 (exit $ac_status); }; } &&
10019 { ac_try='test -s conftest.$ac_objext'
10020 { (case "(($ac_try" in
10021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10022 *) ac_try_echo=$ac_try;;
10023 esac
10024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10025 (eval "$ac_try") 2>&5
10026 ac_status=$?
10027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10028 (exit $ac_status); }; }; then
10029 ac_cv_have_decl_geteuid=yes
10030 else
10031 echo "$as_me: failed program was:" >&5
10032 sed 's/^/| /' conftest.$ac_ext >&5
10034 ac_cv_have_decl_geteuid=no
10037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10039 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_geteuid" >&5
10040 echo "${ECHO_T}$ac_cv_have_decl_geteuid" >&6; }
10041 if test $ac_cv_have_decl_geteuid = yes; then
10043 cat >>confdefs.h <<_ACEOF
10044 #define HAVE_DECL_GETEUID 1
10045 _ACEOF
10048 else
10049 cat >>confdefs.h <<_ACEOF
10050 #define HAVE_DECL_GETEUID 0
10051 _ACEOF
10055 { echo "$as_me:$LINENO: checking whether getgrgid is declared" >&5
10056 echo $ECHO_N "checking whether getgrgid is declared... $ECHO_C" >&6; }
10057 if test "${ac_cv_have_decl_getgrgid+set}" = set; then
10058 echo $ECHO_N "(cached) $ECHO_C" >&6
10059 else
10060 cat >conftest.$ac_ext <<_ACEOF
10061 /* confdefs.h. */
10062 _ACEOF
10063 cat confdefs.h >>conftest.$ac_ext
10064 cat >>conftest.$ac_ext <<_ACEOF
10065 /* end confdefs.h. */
10066 $headers
10069 main ()
10071 #ifndef getgrgid
10072 char *p = (char *) getgrgid;
10073 return !p;
10074 #endif
10077 return 0;
10079 _ACEOF
10080 rm -f conftest.$ac_objext
10081 if { (ac_try="$ac_compile"
10082 case "(($ac_try" in
10083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10084 *) ac_try_echo=$ac_try;;
10085 esac
10086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10087 (eval "$ac_compile") 2>conftest.er1
10088 ac_status=$?
10089 grep -v '^ *+' conftest.er1 >conftest.err
10090 rm -f conftest.er1
10091 cat conftest.err >&5
10092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10093 (exit $ac_status); } &&
10094 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10095 { (case "(($ac_try" in
10096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10097 *) ac_try_echo=$ac_try;;
10098 esac
10099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10100 (eval "$ac_try") 2>&5
10101 ac_status=$?
10102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10103 (exit $ac_status); }; } &&
10104 { ac_try='test -s conftest.$ac_objext'
10105 { (case "(($ac_try" in
10106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10107 *) ac_try_echo=$ac_try;;
10108 esac
10109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10110 (eval "$ac_try") 2>&5
10111 ac_status=$?
10112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10113 (exit $ac_status); }; }; then
10114 ac_cv_have_decl_getgrgid=yes
10115 else
10116 echo "$as_me: failed program was:" >&5
10117 sed 's/^/| /' conftest.$ac_ext >&5
10119 ac_cv_have_decl_getgrgid=no
10122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10124 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getgrgid" >&5
10125 echo "${ECHO_T}$ac_cv_have_decl_getgrgid" >&6; }
10126 if test $ac_cv_have_decl_getgrgid = yes; then
10128 cat >>confdefs.h <<_ACEOF
10129 #define HAVE_DECL_GETGRGID 1
10130 _ACEOF
10133 else
10134 cat >>confdefs.h <<_ACEOF
10135 #define HAVE_DECL_GETGRGID 0
10136 _ACEOF
10140 { echo "$as_me:$LINENO: checking whether getlogin is declared" >&5
10141 echo $ECHO_N "checking whether getlogin is declared... $ECHO_C" >&6; }
10142 if test "${ac_cv_have_decl_getlogin+set}" = set; then
10143 echo $ECHO_N "(cached) $ECHO_C" >&6
10144 else
10145 cat >conftest.$ac_ext <<_ACEOF
10146 /* confdefs.h. */
10147 _ACEOF
10148 cat confdefs.h >>conftest.$ac_ext
10149 cat >>conftest.$ac_ext <<_ACEOF
10150 /* end confdefs.h. */
10151 $headers
10154 main ()
10156 #ifndef getlogin
10157 char *p = (char *) getlogin;
10158 return !p;
10159 #endif
10162 return 0;
10164 _ACEOF
10165 rm -f conftest.$ac_objext
10166 if { (ac_try="$ac_compile"
10167 case "(($ac_try" in
10168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10169 *) ac_try_echo=$ac_try;;
10170 esac
10171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10172 (eval "$ac_compile") 2>conftest.er1
10173 ac_status=$?
10174 grep -v '^ *+' conftest.er1 >conftest.err
10175 rm -f conftest.er1
10176 cat conftest.err >&5
10177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10178 (exit $ac_status); } &&
10179 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10180 { (case "(($ac_try" in
10181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10182 *) ac_try_echo=$ac_try;;
10183 esac
10184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10185 (eval "$ac_try") 2>&5
10186 ac_status=$?
10187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10188 (exit $ac_status); }; } &&
10189 { ac_try='test -s conftest.$ac_objext'
10190 { (case "(($ac_try" in
10191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10192 *) ac_try_echo=$ac_try;;
10193 esac
10194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10195 (eval "$ac_try") 2>&5
10196 ac_status=$?
10197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10198 (exit $ac_status); }; }; then
10199 ac_cv_have_decl_getlogin=yes
10200 else
10201 echo "$as_me: failed program was:" >&5
10202 sed 's/^/| /' conftest.$ac_ext >&5
10204 ac_cv_have_decl_getlogin=no
10207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10209 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getlogin" >&5
10210 echo "${ECHO_T}$ac_cv_have_decl_getlogin" >&6; }
10211 if test $ac_cv_have_decl_getlogin = yes; then
10213 cat >>confdefs.h <<_ACEOF
10214 #define HAVE_DECL_GETLOGIN 1
10215 _ACEOF
10218 else
10219 cat >>confdefs.h <<_ACEOF
10220 #define HAVE_DECL_GETLOGIN 0
10221 _ACEOF
10225 { echo "$as_me:$LINENO: checking whether getpwuid is declared" >&5
10226 echo $ECHO_N "checking whether getpwuid is declared... $ECHO_C" >&6; }
10227 if test "${ac_cv_have_decl_getpwuid+set}" = set; then
10228 echo $ECHO_N "(cached) $ECHO_C" >&6
10229 else
10230 cat >conftest.$ac_ext <<_ACEOF
10231 /* confdefs.h. */
10232 _ACEOF
10233 cat confdefs.h >>conftest.$ac_ext
10234 cat >>conftest.$ac_ext <<_ACEOF
10235 /* end confdefs.h. */
10236 $headers
10239 main ()
10241 #ifndef getpwuid
10242 char *p = (char *) getpwuid;
10243 return !p;
10244 #endif
10247 return 0;
10249 _ACEOF
10250 rm -f conftest.$ac_objext
10251 if { (ac_try="$ac_compile"
10252 case "(($ac_try" in
10253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10254 *) ac_try_echo=$ac_try;;
10255 esac
10256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10257 (eval "$ac_compile") 2>conftest.er1
10258 ac_status=$?
10259 grep -v '^ *+' conftest.er1 >conftest.err
10260 rm -f conftest.er1
10261 cat conftest.err >&5
10262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10263 (exit $ac_status); } &&
10264 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10265 { (case "(($ac_try" in
10266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10267 *) ac_try_echo=$ac_try;;
10268 esac
10269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10270 (eval "$ac_try") 2>&5
10271 ac_status=$?
10272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10273 (exit $ac_status); }; } &&
10274 { ac_try='test -s conftest.$ac_objext'
10275 { (case "(($ac_try" in
10276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10277 *) ac_try_echo=$ac_try;;
10278 esac
10279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10280 (eval "$ac_try") 2>&5
10281 ac_status=$?
10282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10283 (exit $ac_status); }; }; then
10284 ac_cv_have_decl_getpwuid=yes
10285 else
10286 echo "$as_me: failed program was:" >&5
10287 sed 's/^/| /' conftest.$ac_ext >&5
10289 ac_cv_have_decl_getpwuid=no
10292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10294 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getpwuid" >&5
10295 echo "${ECHO_T}$ac_cv_have_decl_getpwuid" >&6; }
10296 if test $ac_cv_have_decl_getpwuid = yes; then
10298 cat >>confdefs.h <<_ACEOF
10299 #define HAVE_DECL_GETPWUID 1
10300 _ACEOF
10303 else
10304 cat >>confdefs.h <<_ACEOF
10305 #define HAVE_DECL_GETPWUID 0
10306 _ACEOF
10310 { echo "$as_me:$LINENO: checking whether getuid is declared" >&5
10311 echo $ECHO_N "checking whether getuid is declared... $ECHO_C" >&6; }
10312 if test "${ac_cv_have_decl_getuid+set}" = set; then
10313 echo $ECHO_N "(cached) $ECHO_C" >&6
10314 else
10315 cat >conftest.$ac_ext <<_ACEOF
10316 /* confdefs.h. */
10317 _ACEOF
10318 cat confdefs.h >>conftest.$ac_ext
10319 cat >>conftest.$ac_ext <<_ACEOF
10320 /* end confdefs.h. */
10321 $headers
10324 main ()
10326 #ifndef getuid
10327 char *p = (char *) getuid;
10328 return !p;
10329 #endif
10332 return 0;
10334 _ACEOF
10335 rm -f conftest.$ac_objext
10336 if { (ac_try="$ac_compile"
10337 case "(($ac_try" in
10338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10339 *) ac_try_echo=$ac_try;;
10340 esac
10341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10342 (eval "$ac_compile") 2>conftest.er1
10343 ac_status=$?
10344 grep -v '^ *+' conftest.er1 >conftest.err
10345 rm -f conftest.er1
10346 cat conftest.err >&5
10347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10348 (exit $ac_status); } &&
10349 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10350 { (case "(($ac_try" in
10351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10352 *) ac_try_echo=$ac_try;;
10353 esac
10354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10355 (eval "$ac_try") 2>&5
10356 ac_status=$?
10357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10358 (exit $ac_status); }; } &&
10359 { ac_try='test -s conftest.$ac_objext'
10360 { (case "(($ac_try" in
10361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10362 *) ac_try_echo=$ac_try;;
10363 esac
10364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10365 (eval "$ac_try") 2>&5
10366 ac_status=$?
10367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10368 (exit $ac_status); }; }; then
10369 ac_cv_have_decl_getuid=yes
10370 else
10371 echo "$as_me: failed program was:" >&5
10372 sed 's/^/| /' conftest.$ac_ext >&5
10374 ac_cv_have_decl_getuid=no
10377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10379 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getuid" >&5
10380 echo "${ECHO_T}$ac_cv_have_decl_getuid" >&6; }
10381 if test $ac_cv_have_decl_getuid = yes; then
10383 cat >>confdefs.h <<_ACEOF
10384 #define HAVE_DECL_GETUID 1
10385 _ACEOF
10388 else
10389 cat >>confdefs.h <<_ACEOF
10390 #define HAVE_DECL_GETUID 0
10391 _ACEOF
10395 { echo "$as_me:$LINENO: checking whether getutent is declared" >&5
10396 echo $ECHO_N "checking whether getutent is declared... $ECHO_C" >&6; }
10397 if test "${ac_cv_have_decl_getutent+set}" = set; then
10398 echo $ECHO_N "(cached) $ECHO_C" >&6
10399 else
10400 cat >conftest.$ac_ext <<_ACEOF
10401 /* confdefs.h. */
10402 _ACEOF
10403 cat confdefs.h >>conftest.$ac_ext
10404 cat >>conftest.$ac_ext <<_ACEOF
10405 /* end confdefs.h. */
10406 $headers
10409 main ()
10411 #ifndef getutent
10412 char *p = (char *) getutent;
10413 return !p;
10414 #endif
10417 return 0;
10419 _ACEOF
10420 rm -f conftest.$ac_objext
10421 if { (ac_try="$ac_compile"
10422 case "(($ac_try" in
10423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10424 *) ac_try_echo=$ac_try;;
10425 esac
10426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10427 (eval "$ac_compile") 2>conftest.er1
10428 ac_status=$?
10429 grep -v '^ *+' conftest.er1 >conftest.err
10430 rm -f conftest.er1
10431 cat conftest.err >&5
10432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10433 (exit $ac_status); } &&
10434 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10435 { (case "(($ac_try" in
10436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10437 *) ac_try_echo=$ac_try;;
10438 esac
10439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10440 (eval "$ac_try") 2>&5
10441 ac_status=$?
10442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10443 (exit $ac_status); }; } &&
10444 { ac_try='test -s conftest.$ac_objext'
10445 { (case "(($ac_try" in
10446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10447 *) ac_try_echo=$ac_try;;
10448 esac
10449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10450 (eval "$ac_try") 2>&5
10451 ac_status=$?
10452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10453 (exit $ac_status); }; }; then
10454 ac_cv_have_decl_getutent=yes
10455 else
10456 echo "$as_me: failed program was:" >&5
10457 sed 's/^/| /' conftest.$ac_ext >&5
10459 ac_cv_have_decl_getutent=no
10462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10464 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getutent" >&5
10465 echo "${ECHO_T}$ac_cv_have_decl_getutent" >&6; }
10466 if test $ac_cv_have_decl_getutent = yes; then
10468 cat >>confdefs.h <<_ACEOF
10469 #define HAVE_DECL_GETUTENT 1
10470 _ACEOF
10473 else
10474 cat >>confdefs.h <<_ACEOF
10475 #define HAVE_DECL_GETUTENT 0
10476 _ACEOF
10480 { echo "$as_me:$LINENO: checking whether lseek is declared" >&5
10481 echo $ECHO_N "checking whether lseek is declared... $ECHO_C" >&6; }
10482 if test "${ac_cv_have_decl_lseek+set}" = set; then
10483 echo $ECHO_N "(cached) $ECHO_C" >&6
10484 else
10485 cat >conftest.$ac_ext <<_ACEOF
10486 /* confdefs.h. */
10487 _ACEOF
10488 cat confdefs.h >>conftest.$ac_ext
10489 cat >>conftest.$ac_ext <<_ACEOF
10490 /* end confdefs.h. */
10491 $headers
10494 main ()
10496 #ifndef lseek
10497 char *p = (char *) lseek;
10498 return !p;
10499 #endif
10502 return 0;
10504 _ACEOF
10505 rm -f conftest.$ac_objext
10506 if { (ac_try="$ac_compile"
10507 case "(($ac_try" in
10508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10509 *) ac_try_echo=$ac_try;;
10510 esac
10511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10512 (eval "$ac_compile") 2>conftest.er1
10513 ac_status=$?
10514 grep -v '^ *+' conftest.er1 >conftest.err
10515 rm -f conftest.er1
10516 cat conftest.err >&5
10517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10518 (exit $ac_status); } &&
10519 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10520 { (case "(($ac_try" in
10521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10522 *) ac_try_echo=$ac_try;;
10523 esac
10524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10525 (eval "$ac_try") 2>&5
10526 ac_status=$?
10527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10528 (exit $ac_status); }; } &&
10529 { ac_try='test -s conftest.$ac_objext'
10530 { (case "(($ac_try" in
10531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10532 *) ac_try_echo=$ac_try;;
10533 esac
10534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10535 (eval "$ac_try") 2>&5
10536 ac_status=$?
10537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10538 (exit $ac_status); }; }; then
10539 ac_cv_have_decl_lseek=yes
10540 else
10541 echo "$as_me: failed program was:" >&5
10542 sed 's/^/| /' conftest.$ac_ext >&5
10544 ac_cv_have_decl_lseek=no
10547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10549 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_lseek" >&5
10550 echo "${ECHO_T}$ac_cv_have_decl_lseek" >&6; }
10551 if test $ac_cv_have_decl_lseek = yes; then
10553 cat >>confdefs.h <<_ACEOF
10554 #define HAVE_DECL_LSEEK 1
10555 _ACEOF
10558 else
10559 cat >>confdefs.h <<_ACEOF
10560 #define HAVE_DECL_LSEEK 0
10561 _ACEOF
10565 { echo "$as_me:$LINENO: checking whether malloc is declared" >&5
10566 echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6; }
10567 if test "${ac_cv_have_decl_malloc+set}" = set; then
10568 echo $ECHO_N "(cached) $ECHO_C" >&6
10569 else
10570 cat >conftest.$ac_ext <<_ACEOF
10571 /* confdefs.h. */
10572 _ACEOF
10573 cat confdefs.h >>conftest.$ac_ext
10574 cat >>conftest.$ac_ext <<_ACEOF
10575 /* end confdefs.h. */
10576 $headers
10579 main ()
10581 #ifndef malloc
10582 char *p = (char *) malloc;
10583 return !p;
10584 #endif
10587 return 0;
10589 _ACEOF
10590 rm -f conftest.$ac_objext
10591 if { (ac_try="$ac_compile"
10592 case "(($ac_try" in
10593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10594 *) ac_try_echo=$ac_try;;
10595 esac
10596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10597 (eval "$ac_compile") 2>conftest.er1
10598 ac_status=$?
10599 grep -v '^ *+' conftest.er1 >conftest.err
10600 rm -f conftest.er1
10601 cat conftest.err >&5
10602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10603 (exit $ac_status); } &&
10604 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10605 { (case "(($ac_try" in
10606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10607 *) ac_try_echo=$ac_try;;
10608 esac
10609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10610 (eval "$ac_try") 2>&5
10611 ac_status=$?
10612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10613 (exit $ac_status); }; } &&
10614 { ac_try='test -s conftest.$ac_objext'
10615 { (case "(($ac_try" in
10616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10617 *) ac_try_echo=$ac_try;;
10618 esac
10619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10620 (eval "$ac_try") 2>&5
10621 ac_status=$?
10622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10623 (exit $ac_status); }; }; then
10624 ac_cv_have_decl_malloc=yes
10625 else
10626 echo "$as_me: failed program was:" >&5
10627 sed 's/^/| /' conftest.$ac_ext >&5
10629 ac_cv_have_decl_malloc=no
10632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10634 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
10635 echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6; }
10636 if test $ac_cv_have_decl_malloc = yes; then
10638 cat >>confdefs.h <<_ACEOF
10639 #define HAVE_DECL_MALLOC 1
10640 _ACEOF
10643 else
10644 cat >>confdefs.h <<_ACEOF
10645 #define HAVE_DECL_MALLOC 0
10646 _ACEOF
10650 { echo "$as_me:$LINENO: checking whether memchr is declared" >&5
10651 echo $ECHO_N "checking whether memchr is declared... $ECHO_C" >&6; }
10652 if test "${ac_cv_have_decl_memchr+set}" = set; then
10653 echo $ECHO_N "(cached) $ECHO_C" >&6
10654 else
10655 cat >conftest.$ac_ext <<_ACEOF
10656 /* confdefs.h. */
10657 _ACEOF
10658 cat confdefs.h >>conftest.$ac_ext
10659 cat >>conftest.$ac_ext <<_ACEOF
10660 /* end confdefs.h. */
10661 $headers
10664 main ()
10666 #ifndef memchr
10667 char *p = (char *) memchr;
10668 return !p;
10669 #endif
10672 return 0;
10674 _ACEOF
10675 rm -f conftest.$ac_objext
10676 if { (ac_try="$ac_compile"
10677 case "(($ac_try" in
10678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10679 *) ac_try_echo=$ac_try;;
10680 esac
10681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10682 (eval "$ac_compile") 2>conftest.er1
10683 ac_status=$?
10684 grep -v '^ *+' conftest.er1 >conftest.err
10685 rm -f conftest.er1
10686 cat conftest.err >&5
10687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10688 (exit $ac_status); } &&
10689 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10690 { (case "(($ac_try" in
10691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10692 *) ac_try_echo=$ac_try;;
10693 esac
10694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10695 (eval "$ac_try") 2>&5
10696 ac_status=$?
10697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10698 (exit $ac_status); }; } &&
10699 { ac_try='test -s conftest.$ac_objext'
10700 { (case "(($ac_try" in
10701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10702 *) ac_try_echo=$ac_try;;
10703 esac
10704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10705 (eval "$ac_try") 2>&5
10706 ac_status=$?
10707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10708 (exit $ac_status); }; }; then
10709 ac_cv_have_decl_memchr=yes
10710 else
10711 echo "$as_me: failed program was:" >&5
10712 sed 's/^/| /' conftest.$ac_ext >&5
10714 ac_cv_have_decl_memchr=no
10717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10719 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_memchr" >&5
10720 echo "${ECHO_T}$ac_cv_have_decl_memchr" >&6; }
10721 if test $ac_cv_have_decl_memchr = yes; then
10723 cat >>confdefs.h <<_ACEOF
10724 #define HAVE_DECL_MEMCHR 1
10725 _ACEOF
10728 else
10729 cat >>confdefs.h <<_ACEOF
10730 #define HAVE_DECL_MEMCHR 0
10731 _ACEOF
10735 { echo "$as_me:$LINENO: checking whether memrchr is declared" >&5
10736 echo $ECHO_N "checking whether memrchr is declared... $ECHO_C" >&6; }
10737 if test "${ac_cv_have_decl_memrchr+set}" = set; then
10738 echo $ECHO_N "(cached) $ECHO_C" >&6
10739 else
10740 cat >conftest.$ac_ext <<_ACEOF
10741 /* confdefs.h. */
10742 _ACEOF
10743 cat confdefs.h >>conftest.$ac_ext
10744 cat >>conftest.$ac_ext <<_ACEOF
10745 /* end confdefs.h. */
10746 $headers
10749 main ()
10751 #ifndef memrchr
10752 char *p = (char *) memrchr;
10753 return !p;
10754 #endif
10757 return 0;
10759 _ACEOF
10760 rm -f conftest.$ac_objext
10761 if { (ac_try="$ac_compile"
10762 case "(($ac_try" in
10763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10764 *) ac_try_echo=$ac_try;;
10765 esac
10766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10767 (eval "$ac_compile") 2>conftest.er1
10768 ac_status=$?
10769 grep -v '^ *+' conftest.er1 >conftest.err
10770 rm -f conftest.er1
10771 cat conftest.err >&5
10772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10773 (exit $ac_status); } &&
10774 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10775 { (case "(($ac_try" in
10776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10777 *) ac_try_echo=$ac_try;;
10778 esac
10779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10780 (eval "$ac_try") 2>&5
10781 ac_status=$?
10782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10783 (exit $ac_status); }; } &&
10784 { ac_try='test -s conftest.$ac_objext'
10785 { (case "(($ac_try" in
10786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10787 *) ac_try_echo=$ac_try;;
10788 esac
10789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10790 (eval "$ac_try") 2>&5
10791 ac_status=$?
10792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10793 (exit $ac_status); }; }; then
10794 ac_cv_have_decl_memrchr=yes
10795 else
10796 echo "$as_me: failed program was:" >&5
10797 sed 's/^/| /' conftest.$ac_ext >&5
10799 ac_cv_have_decl_memrchr=no
10802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10804 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_memrchr" >&5
10805 echo "${ECHO_T}$ac_cv_have_decl_memrchr" >&6; }
10806 if test $ac_cv_have_decl_memrchr = yes; then
10808 cat >>confdefs.h <<_ACEOF
10809 #define HAVE_DECL_MEMRCHR 1
10810 _ACEOF
10813 else
10814 cat >>confdefs.h <<_ACEOF
10815 #define HAVE_DECL_MEMRCHR 0
10816 _ACEOF
10820 { echo "$as_me:$LINENO: checking whether nanosleep is declared" >&5
10821 echo $ECHO_N "checking whether nanosleep is declared... $ECHO_C" >&6; }
10822 if test "${ac_cv_have_decl_nanosleep+set}" = set; then
10823 echo $ECHO_N "(cached) $ECHO_C" >&6
10824 else
10825 cat >conftest.$ac_ext <<_ACEOF
10826 /* confdefs.h. */
10827 _ACEOF
10828 cat confdefs.h >>conftest.$ac_ext
10829 cat >>conftest.$ac_ext <<_ACEOF
10830 /* end confdefs.h. */
10831 $headers
10834 main ()
10836 #ifndef nanosleep
10837 char *p = (char *) nanosleep;
10838 return !p;
10839 #endif
10842 return 0;
10844 _ACEOF
10845 rm -f conftest.$ac_objext
10846 if { (ac_try="$ac_compile"
10847 case "(($ac_try" in
10848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10849 *) ac_try_echo=$ac_try;;
10850 esac
10851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10852 (eval "$ac_compile") 2>conftest.er1
10853 ac_status=$?
10854 grep -v '^ *+' conftest.er1 >conftest.err
10855 rm -f conftest.er1
10856 cat conftest.err >&5
10857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10858 (exit $ac_status); } &&
10859 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10860 { (case "(($ac_try" in
10861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10862 *) ac_try_echo=$ac_try;;
10863 esac
10864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10865 (eval "$ac_try") 2>&5
10866 ac_status=$?
10867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10868 (exit $ac_status); }; } &&
10869 { ac_try='test -s conftest.$ac_objext'
10870 { (case "(($ac_try" in
10871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10872 *) ac_try_echo=$ac_try;;
10873 esac
10874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10875 (eval "$ac_try") 2>&5
10876 ac_status=$?
10877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10878 (exit $ac_status); }; }; then
10879 ac_cv_have_decl_nanosleep=yes
10880 else
10881 echo "$as_me: failed program was:" >&5
10882 sed 's/^/| /' conftest.$ac_ext >&5
10884 ac_cv_have_decl_nanosleep=no
10887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10889 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_nanosleep" >&5
10890 echo "${ECHO_T}$ac_cv_have_decl_nanosleep" >&6; }
10891 if test $ac_cv_have_decl_nanosleep = yes; then
10893 cat >>confdefs.h <<_ACEOF
10894 #define HAVE_DECL_NANOSLEEP 1
10895 _ACEOF
10898 else
10899 cat >>confdefs.h <<_ACEOF
10900 #define HAVE_DECL_NANOSLEEP 0
10901 _ACEOF
10905 { echo "$as_me:$LINENO: checking whether realloc is declared" >&5
10906 echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6; }
10907 if test "${ac_cv_have_decl_realloc+set}" = set; then
10908 echo $ECHO_N "(cached) $ECHO_C" >&6
10909 else
10910 cat >conftest.$ac_ext <<_ACEOF
10911 /* confdefs.h. */
10912 _ACEOF
10913 cat confdefs.h >>conftest.$ac_ext
10914 cat >>conftest.$ac_ext <<_ACEOF
10915 /* end confdefs.h. */
10916 $headers
10919 main ()
10921 #ifndef realloc
10922 char *p = (char *) realloc;
10923 return !p;
10924 #endif
10927 return 0;
10929 _ACEOF
10930 rm -f conftest.$ac_objext
10931 if { (ac_try="$ac_compile"
10932 case "(($ac_try" in
10933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10934 *) ac_try_echo=$ac_try;;
10935 esac
10936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10937 (eval "$ac_compile") 2>conftest.er1
10938 ac_status=$?
10939 grep -v '^ *+' conftest.er1 >conftest.err
10940 rm -f conftest.er1
10941 cat conftest.err >&5
10942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10943 (exit $ac_status); } &&
10944 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10945 { (case "(($ac_try" in
10946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10947 *) ac_try_echo=$ac_try;;
10948 esac
10949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10950 (eval "$ac_try") 2>&5
10951 ac_status=$?
10952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10953 (exit $ac_status); }; } &&
10954 { ac_try='test -s conftest.$ac_objext'
10955 { (case "(($ac_try" in
10956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10957 *) ac_try_echo=$ac_try;;
10958 esac
10959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10960 (eval "$ac_try") 2>&5
10961 ac_status=$?
10962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10963 (exit $ac_status); }; }; then
10964 ac_cv_have_decl_realloc=yes
10965 else
10966 echo "$as_me: failed program was:" >&5
10967 sed 's/^/| /' conftest.$ac_ext >&5
10969 ac_cv_have_decl_realloc=no
10972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10974 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
10975 echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6; }
10976 if test $ac_cv_have_decl_realloc = yes; then
10978 cat >>confdefs.h <<_ACEOF
10979 #define HAVE_DECL_REALLOC 1
10980 _ACEOF
10983 else
10984 cat >>confdefs.h <<_ACEOF
10985 #define HAVE_DECL_REALLOC 0
10986 _ACEOF
10990 { echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5
10991 echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6; }
10992 if test "${ac_cv_have_decl_stpcpy+set}" = set; then
10993 echo $ECHO_N "(cached) $ECHO_C" >&6
10994 else
10995 cat >conftest.$ac_ext <<_ACEOF
10996 /* confdefs.h. */
10997 _ACEOF
10998 cat confdefs.h >>conftest.$ac_ext
10999 cat >>conftest.$ac_ext <<_ACEOF
11000 /* end confdefs.h. */
11001 $headers
11004 main ()
11006 #ifndef stpcpy
11007 char *p = (char *) stpcpy;
11008 return !p;
11009 #endif
11012 return 0;
11014 _ACEOF
11015 rm -f conftest.$ac_objext
11016 if { (ac_try="$ac_compile"
11017 case "(($ac_try" in
11018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11019 *) ac_try_echo=$ac_try;;
11020 esac
11021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11022 (eval "$ac_compile") 2>conftest.er1
11023 ac_status=$?
11024 grep -v '^ *+' conftest.er1 >conftest.err
11025 rm -f conftest.er1
11026 cat conftest.err >&5
11027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11028 (exit $ac_status); } &&
11029 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11030 { (case "(($ac_try" in
11031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11032 *) ac_try_echo=$ac_try;;
11033 esac
11034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11035 (eval "$ac_try") 2>&5
11036 ac_status=$?
11037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11038 (exit $ac_status); }; } &&
11039 { ac_try='test -s conftest.$ac_objext'
11040 { (case "(($ac_try" in
11041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11042 *) ac_try_echo=$ac_try;;
11043 esac
11044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11045 (eval "$ac_try") 2>&5
11046 ac_status=$?
11047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11048 (exit $ac_status); }; }; then
11049 ac_cv_have_decl_stpcpy=yes
11050 else
11051 echo "$as_me: failed program was:" >&5
11052 sed 's/^/| /' conftest.$ac_ext >&5
11054 ac_cv_have_decl_stpcpy=no
11057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11059 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5
11060 echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6; }
11061 if test $ac_cv_have_decl_stpcpy = yes; then
11063 cat >>confdefs.h <<_ACEOF
11064 #define HAVE_DECL_STPCPY 1
11065 _ACEOF
11068 else
11069 cat >>confdefs.h <<_ACEOF
11070 #define HAVE_DECL_STPCPY 0
11071 _ACEOF
11075 { echo "$as_me:$LINENO: checking whether strndup is declared" >&5
11076 echo $ECHO_N "checking whether strndup is declared... $ECHO_C" >&6; }
11077 if test "${ac_cv_have_decl_strndup+set}" = set; then
11078 echo $ECHO_N "(cached) $ECHO_C" >&6
11079 else
11080 cat >conftest.$ac_ext <<_ACEOF
11081 /* confdefs.h. */
11082 _ACEOF
11083 cat confdefs.h >>conftest.$ac_ext
11084 cat >>conftest.$ac_ext <<_ACEOF
11085 /* end confdefs.h. */
11086 $headers
11089 main ()
11091 #ifndef strndup
11092 char *p = (char *) strndup;
11093 return !p;
11094 #endif
11097 return 0;
11099 _ACEOF
11100 rm -f conftest.$ac_objext
11101 if { (ac_try="$ac_compile"
11102 case "(($ac_try" in
11103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11104 *) ac_try_echo=$ac_try;;
11105 esac
11106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11107 (eval "$ac_compile") 2>conftest.er1
11108 ac_status=$?
11109 grep -v '^ *+' conftest.er1 >conftest.err
11110 rm -f conftest.er1
11111 cat conftest.err >&5
11112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11113 (exit $ac_status); } &&
11114 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11115 { (case "(($ac_try" in
11116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11117 *) ac_try_echo=$ac_try;;
11118 esac
11119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11120 (eval "$ac_try") 2>&5
11121 ac_status=$?
11122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11123 (exit $ac_status); }; } &&
11124 { ac_try='test -s conftest.$ac_objext'
11125 { (case "(($ac_try" in
11126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11127 *) ac_try_echo=$ac_try;;
11128 esac
11129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11130 (eval "$ac_try") 2>&5
11131 ac_status=$?
11132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11133 (exit $ac_status); }; }; then
11134 ac_cv_have_decl_strndup=yes
11135 else
11136 echo "$as_me: failed program was:" >&5
11137 sed 's/^/| /' conftest.$ac_ext >&5
11139 ac_cv_have_decl_strndup=no
11142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11144 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strndup" >&5
11145 echo "${ECHO_T}$ac_cv_have_decl_strndup" >&6; }
11146 if test $ac_cv_have_decl_strndup = yes; then
11148 cat >>confdefs.h <<_ACEOF
11149 #define HAVE_DECL_STRNDUP 1
11150 _ACEOF
11153 else
11154 cat >>confdefs.h <<_ACEOF
11155 #define HAVE_DECL_STRNDUP 0
11156 _ACEOF
11160 { echo "$as_me:$LINENO: checking whether strnlen is declared" >&5
11161 echo $ECHO_N "checking whether strnlen is declared... $ECHO_C" >&6; }
11162 if test "${ac_cv_have_decl_strnlen+set}" = set; then
11163 echo $ECHO_N "(cached) $ECHO_C" >&6
11164 else
11165 cat >conftest.$ac_ext <<_ACEOF
11166 /* confdefs.h. */
11167 _ACEOF
11168 cat confdefs.h >>conftest.$ac_ext
11169 cat >>conftest.$ac_ext <<_ACEOF
11170 /* end confdefs.h. */
11171 $headers
11174 main ()
11176 #ifndef strnlen
11177 char *p = (char *) strnlen;
11178 return !p;
11179 #endif
11182 return 0;
11184 _ACEOF
11185 rm -f conftest.$ac_objext
11186 if { (ac_try="$ac_compile"
11187 case "(($ac_try" in
11188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11189 *) ac_try_echo=$ac_try;;
11190 esac
11191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11192 (eval "$ac_compile") 2>conftest.er1
11193 ac_status=$?
11194 grep -v '^ *+' conftest.er1 >conftest.err
11195 rm -f conftest.er1
11196 cat conftest.err >&5
11197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11198 (exit $ac_status); } &&
11199 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11200 { (case "(($ac_try" in
11201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11202 *) ac_try_echo=$ac_try;;
11203 esac
11204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11205 (eval "$ac_try") 2>&5
11206 ac_status=$?
11207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11208 (exit $ac_status); }; } &&
11209 { ac_try='test -s conftest.$ac_objext'
11210 { (case "(($ac_try" in
11211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11212 *) ac_try_echo=$ac_try;;
11213 esac
11214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11215 (eval "$ac_try") 2>&5
11216 ac_status=$?
11217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11218 (exit $ac_status); }; }; then
11219 ac_cv_have_decl_strnlen=yes
11220 else
11221 echo "$as_me: failed program was:" >&5
11222 sed 's/^/| /' conftest.$ac_ext >&5
11224 ac_cv_have_decl_strnlen=no
11227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11229 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strnlen" >&5
11230 echo "${ECHO_T}$ac_cv_have_decl_strnlen" >&6; }
11231 if test $ac_cv_have_decl_strnlen = yes; then
11233 cat >>confdefs.h <<_ACEOF
11234 #define HAVE_DECL_STRNLEN 1
11235 _ACEOF
11238 else
11239 cat >>confdefs.h <<_ACEOF
11240 #define HAVE_DECL_STRNLEN 0
11241 _ACEOF
11245 { echo "$as_me:$LINENO: checking whether strstr is declared" >&5
11246 echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6; }
11247 if test "${ac_cv_have_decl_strstr+set}" = set; then
11248 echo $ECHO_N "(cached) $ECHO_C" >&6
11249 else
11250 cat >conftest.$ac_ext <<_ACEOF
11251 /* confdefs.h. */
11252 _ACEOF
11253 cat confdefs.h >>conftest.$ac_ext
11254 cat >>conftest.$ac_ext <<_ACEOF
11255 /* end confdefs.h. */
11256 $headers
11259 main ()
11261 #ifndef strstr
11262 char *p = (char *) strstr;
11263 return !p;
11264 #endif
11267 return 0;
11269 _ACEOF
11270 rm -f conftest.$ac_objext
11271 if { (ac_try="$ac_compile"
11272 case "(($ac_try" in
11273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11274 *) ac_try_echo=$ac_try;;
11275 esac
11276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11277 (eval "$ac_compile") 2>conftest.er1
11278 ac_status=$?
11279 grep -v '^ *+' conftest.er1 >conftest.err
11280 rm -f conftest.er1
11281 cat conftest.err >&5
11282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11283 (exit $ac_status); } &&
11284 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11285 { (case "(($ac_try" in
11286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11287 *) ac_try_echo=$ac_try;;
11288 esac
11289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11290 (eval "$ac_try") 2>&5
11291 ac_status=$?
11292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11293 (exit $ac_status); }; } &&
11294 { ac_try='test -s conftest.$ac_objext'
11295 { (case "(($ac_try" in
11296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11297 *) ac_try_echo=$ac_try;;
11298 esac
11299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11300 (eval "$ac_try") 2>&5
11301 ac_status=$?
11302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11303 (exit $ac_status); }; }; then
11304 ac_cv_have_decl_strstr=yes
11305 else
11306 echo "$as_me: failed program was:" >&5
11307 sed 's/^/| /' conftest.$ac_ext >&5
11309 ac_cv_have_decl_strstr=no
11312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11314 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
11315 echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6; }
11316 if test $ac_cv_have_decl_strstr = yes; then
11318 cat >>confdefs.h <<_ACEOF
11319 #define HAVE_DECL_STRSTR 1
11320 _ACEOF
11323 else
11324 cat >>confdefs.h <<_ACEOF
11325 #define HAVE_DECL_STRSTR 0
11326 _ACEOF
11330 { echo "$as_me:$LINENO: checking whether strtoul is declared" >&5
11331 echo $ECHO_N "checking whether strtoul is declared... $ECHO_C" >&6; }
11332 if test "${ac_cv_have_decl_strtoul+set}" = set; then
11333 echo $ECHO_N "(cached) $ECHO_C" >&6
11334 else
11335 cat >conftest.$ac_ext <<_ACEOF
11336 /* confdefs.h. */
11337 _ACEOF
11338 cat confdefs.h >>conftest.$ac_ext
11339 cat >>conftest.$ac_ext <<_ACEOF
11340 /* end confdefs.h. */
11341 $headers
11344 main ()
11346 #ifndef strtoul
11347 char *p = (char *) strtoul;
11348 return !p;
11349 #endif
11352 return 0;
11354 _ACEOF
11355 rm -f conftest.$ac_objext
11356 if { (ac_try="$ac_compile"
11357 case "(($ac_try" in
11358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11359 *) ac_try_echo=$ac_try;;
11360 esac
11361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11362 (eval "$ac_compile") 2>conftest.er1
11363 ac_status=$?
11364 grep -v '^ *+' conftest.er1 >conftest.err
11365 rm -f conftest.er1
11366 cat conftest.err >&5
11367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11368 (exit $ac_status); } &&
11369 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11370 { (case "(($ac_try" in
11371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11372 *) ac_try_echo=$ac_try;;
11373 esac
11374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11375 (eval "$ac_try") 2>&5
11376 ac_status=$?
11377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11378 (exit $ac_status); }; } &&
11379 { ac_try='test -s conftest.$ac_objext'
11380 { (case "(($ac_try" in
11381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11382 *) ac_try_echo=$ac_try;;
11383 esac
11384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11385 (eval "$ac_try") 2>&5
11386 ac_status=$?
11387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11388 (exit $ac_status); }; }; then
11389 ac_cv_have_decl_strtoul=yes
11390 else
11391 echo "$as_me: failed program was:" >&5
11392 sed 's/^/| /' conftest.$ac_ext >&5
11394 ac_cv_have_decl_strtoul=no
11397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11399 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoul" >&5
11400 echo "${ECHO_T}$ac_cv_have_decl_strtoul" >&6; }
11401 if test $ac_cv_have_decl_strtoul = yes; then
11403 cat >>confdefs.h <<_ACEOF
11404 #define HAVE_DECL_STRTOUL 1
11405 _ACEOF
11408 else
11409 cat >>confdefs.h <<_ACEOF
11410 #define HAVE_DECL_STRTOUL 0
11411 _ACEOF
11415 { echo "$as_me:$LINENO: checking whether strtoull is declared" >&5
11416 echo $ECHO_N "checking whether strtoull is declared... $ECHO_C" >&6; }
11417 if test "${ac_cv_have_decl_strtoull+set}" = set; then
11418 echo $ECHO_N "(cached) $ECHO_C" >&6
11419 else
11420 cat >conftest.$ac_ext <<_ACEOF
11421 /* confdefs.h. */
11422 _ACEOF
11423 cat confdefs.h >>conftest.$ac_ext
11424 cat >>conftest.$ac_ext <<_ACEOF
11425 /* end confdefs.h. */
11426 $headers
11429 main ()
11431 #ifndef strtoull
11432 char *p = (char *) strtoull;
11433 return !p;
11434 #endif
11437 return 0;
11439 _ACEOF
11440 rm -f conftest.$ac_objext
11441 if { (ac_try="$ac_compile"
11442 case "(($ac_try" in
11443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11444 *) ac_try_echo=$ac_try;;
11445 esac
11446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11447 (eval "$ac_compile") 2>conftest.er1
11448 ac_status=$?
11449 grep -v '^ *+' conftest.er1 >conftest.err
11450 rm -f conftest.er1
11451 cat conftest.err >&5
11452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11453 (exit $ac_status); } &&
11454 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11455 { (case "(($ac_try" in
11456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11457 *) ac_try_echo=$ac_try;;
11458 esac
11459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11460 (eval "$ac_try") 2>&5
11461 ac_status=$?
11462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11463 (exit $ac_status); }; } &&
11464 { ac_try='test -s conftest.$ac_objext'
11465 { (case "(($ac_try" in
11466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11467 *) ac_try_echo=$ac_try;;
11468 esac
11469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11470 (eval "$ac_try") 2>&5
11471 ac_status=$?
11472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11473 (exit $ac_status); }; }; then
11474 ac_cv_have_decl_strtoull=yes
11475 else
11476 echo "$as_me: failed program was:" >&5
11477 sed 's/^/| /' conftest.$ac_ext >&5
11479 ac_cv_have_decl_strtoull=no
11482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11484 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoull" >&5
11485 echo "${ECHO_T}$ac_cv_have_decl_strtoull" >&6; }
11486 if test $ac_cv_have_decl_strtoull = yes; then
11488 cat >>confdefs.h <<_ACEOF
11489 #define HAVE_DECL_STRTOULL 1
11490 _ACEOF
11493 else
11494 cat >>confdefs.h <<_ACEOF
11495 #define HAVE_DECL_STRTOULL 0
11496 _ACEOF
11500 { echo "$as_me:$LINENO: checking whether ttyname is declared" >&5
11501 echo $ECHO_N "checking whether ttyname is declared... $ECHO_C" >&6; }
11502 if test "${ac_cv_have_decl_ttyname+set}" = set; then
11503 echo $ECHO_N "(cached) $ECHO_C" >&6
11504 else
11505 cat >conftest.$ac_ext <<_ACEOF
11506 /* confdefs.h. */
11507 _ACEOF
11508 cat confdefs.h >>conftest.$ac_ext
11509 cat >>conftest.$ac_ext <<_ACEOF
11510 /* end confdefs.h. */
11511 $headers
11514 main ()
11516 #ifndef ttyname
11517 char *p = (char *) ttyname;
11518 return !p;
11519 #endif
11522 return 0;
11524 _ACEOF
11525 rm -f conftest.$ac_objext
11526 if { (ac_try="$ac_compile"
11527 case "(($ac_try" in
11528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11529 *) ac_try_echo=$ac_try;;
11530 esac
11531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11532 (eval "$ac_compile") 2>conftest.er1
11533 ac_status=$?
11534 grep -v '^ *+' conftest.er1 >conftest.err
11535 rm -f conftest.er1
11536 cat conftest.err >&5
11537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11538 (exit $ac_status); } &&
11539 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11540 { (case "(($ac_try" in
11541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11542 *) ac_try_echo=$ac_try;;
11543 esac
11544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11545 (eval "$ac_try") 2>&5
11546 ac_status=$?
11547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11548 (exit $ac_status); }; } &&
11549 { ac_try='test -s conftest.$ac_objext'
11550 { (case "(($ac_try" in
11551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11552 *) ac_try_echo=$ac_try;;
11553 esac
11554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11555 (eval "$ac_try") 2>&5
11556 ac_status=$?
11557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11558 (exit $ac_status); }; }; then
11559 ac_cv_have_decl_ttyname=yes
11560 else
11561 echo "$as_me: failed program was:" >&5
11562 sed 's/^/| /' conftest.$ac_ext >&5
11564 ac_cv_have_decl_ttyname=no
11567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11569 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_ttyname" >&5
11570 echo "${ECHO_T}$ac_cv_have_decl_ttyname" >&6; }
11571 if test $ac_cv_have_decl_ttyname = yes; then
11573 cat >>confdefs.h <<_ACEOF
11574 #define HAVE_DECL_TTYNAME 1
11575 _ACEOF
11578 else
11579 cat >>confdefs.h <<_ACEOF
11580 #define HAVE_DECL_TTYNAME 0
11581 _ACEOF
11588 { echo "$as_me:$LINENO: checking whether isblank is declared" >&5
11589 echo $ECHO_N "checking whether isblank is declared... $ECHO_C" >&6; }
11590 if test "${ac_cv_have_decl_isblank+set}" = set; then
11591 echo $ECHO_N "(cached) $ECHO_C" >&6
11592 else
11593 cat >conftest.$ac_ext <<_ACEOF
11594 /* confdefs.h. */
11595 _ACEOF
11596 cat confdefs.h >>conftest.$ac_ext
11597 cat >>conftest.$ac_ext <<_ACEOF
11598 /* end confdefs.h. */
11599 #include <ctype.h>
11602 main ()
11604 #ifndef isblank
11605 char *p = (char *) isblank;
11606 return !p;
11607 #endif
11610 return 0;
11612 _ACEOF
11613 rm -f conftest.$ac_objext
11614 if { (ac_try="$ac_compile"
11615 case "(($ac_try" in
11616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11617 *) ac_try_echo=$ac_try;;
11618 esac
11619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11620 (eval "$ac_compile") 2>conftest.er1
11621 ac_status=$?
11622 grep -v '^ *+' conftest.er1 >conftest.err
11623 rm -f conftest.er1
11624 cat conftest.err >&5
11625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11626 (exit $ac_status); } &&
11627 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11628 { (case "(($ac_try" in
11629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11630 *) ac_try_echo=$ac_try;;
11631 esac
11632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11633 (eval "$ac_try") 2>&5
11634 ac_status=$?
11635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11636 (exit $ac_status); }; } &&
11637 { ac_try='test -s conftest.$ac_objext'
11638 { (case "(($ac_try" in
11639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11640 *) ac_try_echo=$ac_try;;
11641 esac
11642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11643 (eval "$ac_try") 2>&5
11644 ac_status=$?
11645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11646 (exit $ac_status); }; }; then
11647 ac_cv_have_decl_isblank=yes
11648 else
11649 echo "$as_me: failed program was:" >&5
11650 sed 's/^/| /' conftest.$ac_ext >&5
11652 ac_cv_have_decl_isblank=no
11655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11657 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isblank" >&5
11658 echo "${ECHO_T}$ac_cv_have_decl_isblank" >&6; }
11659 if test $ac_cv_have_decl_isblank = yes; then
11661 cat >>confdefs.h <<_ACEOF
11662 #define HAVE_DECL_ISBLANK 1
11663 _ACEOF
11666 else
11667 cat >>confdefs.h <<_ACEOF
11668 #define HAVE_DECL_ISBLANK 0
11669 _ACEOF
11676 { echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
11677 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6; }
11678 if test "${ac_cv_header_stdbool_h+set}" = set; then
11679 echo $ECHO_N "(cached) $ECHO_C" >&6
11680 else
11681 cat >conftest.$ac_ext <<_ACEOF
11682 /* confdefs.h. */
11683 _ACEOF
11684 cat confdefs.h >>conftest.$ac_ext
11685 cat >>conftest.$ac_ext <<_ACEOF
11686 /* end confdefs.h. */
11688 #include <stdbool.h>
11689 #ifndef bool
11690 "error: bool is not defined"
11691 #endif
11692 #ifndef false
11693 "error: false is not defined"
11694 #endif
11695 #if false
11696 "error: false is not 0"
11697 #endif
11698 #ifndef true
11699 "error: true is not defined"
11700 #endif
11701 #if true != 1
11702 "error: true is not 1"
11703 #endif
11704 #ifndef __bool_true_false_are_defined
11705 "error: __bool_true_false_are_defined is not defined"
11706 #endif
11708 struct s { _Bool s: 1; _Bool t; } s;
11710 char a[true == 1 ? 1 : -1];
11711 char b[false == 0 ? 1 : -1];
11712 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
11713 char d[(bool) 0.5 == true ? 1 : -1];
11714 bool e = &s;
11715 char f[(_Bool) 0.0 == false ? 1 : -1];
11716 char g[true];
11717 char h[sizeof (_Bool)];
11718 char i[sizeof s.t];
11719 enum { j = false, k = true, l = false * true, m = true * 256 };
11720 _Bool n[m];
11721 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
11722 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
11723 #if defined __xlc__ || defined __GNUC__
11724 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
11725 reported by James Lemley on 2005-10-05; see
11726 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
11727 This test is not quite right, since xlc is allowed to
11728 reject this program, as the initializer for xlcbug is
11729 not one of the forms that C requires support for.
11730 However, doing the test right would require a run-time
11731 test, and that would make cross-compilation harder.
11732 Let us hope that IBM fixes the xlc bug, and also adds
11733 support for this kind of constant expression. In the
11734 meantime, this test will reject xlc, which is OK, since
11735 our stdbool.h substitute should suffice. We also test
11736 this with GCC, where it should work, to detect more
11737 quickly whether someone messes up the test in the
11738 future. */
11739 char digs[] = "0123456789";
11740 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
11741 #endif
11742 /* Catch a bug in an HP-UX C compiler. See
11743 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
11744 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
11746 _Bool q = true;
11747 _Bool *pq = &q;
11750 main ()
11753 *pq |= q;
11754 *pq |= ! q;
11755 /* Refer to every declared value, to avoid compiler optimizations. */
11756 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
11757 + !m + !n + !o + !p + !q + !pq);
11760 return 0;
11762 _ACEOF
11763 rm -f conftest.$ac_objext
11764 if { (ac_try="$ac_compile"
11765 case "(($ac_try" in
11766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11767 *) ac_try_echo=$ac_try;;
11768 esac
11769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11770 (eval "$ac_compile") 2>conftest.er1
11771 ac_status=$?
11772 grep -v '^ *+' conftest.er1 >conftest.err
11773 rm -f conftest.er1
11774 cat conftest.err >&5
11775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11776 (exit $ac_status); } &&
11777 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11778 { (case "(($ac_try" in
11779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11780 *) ac_try_echo=$ac_try;;
11781 esac
11782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11783 (eval "$ac_try") 2>&5
11784 ac_status=$?
11785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11786 (exit $ac_status); }; } &&
11787 { ac_try='test -s conftest.$ac_objext'
11788 { (case "(($ac_try" in
11789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11790 *) ac_try_echo=$ac_try;;
11791 esac
11792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11793 (eval "$ac_try") 2>&5
11794 ac_status=$?
11795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11796 (exit $ac_status); }; }; then
11797 ac_cv_header_stdbool_h=yes
11798 else
11799 echo "$as_me: failed program was:" >&5
11800 sed 's/^/| /' conftest.$ac_ext >&5
11802 ac_cv_header_stdbool_h=no
11805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11807 { echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
11808 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; }
11809 { echo "$as_me:$LINENO: checking for _Bool" >&5
11810 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
11811 if test "${ac_cv_type__Bool+set}" = set; then
11812 echo $ECHO_N "(cached) $ECHO_C" >&6
11813 else
11814 cat >conftest.$ac_ext <<_ACEOF
11815 /* confdefs.h. */
11816 _ACEOF
11817 cat confdefs.h >>conftest.$ac_ext
11818 cat >>conftest.$ac_ext <<_ACEOF
11819 /* end confdefs.h. */
11820 $ac_includes_default
11821 typedef _Bool ac__type_new_;
11823 main ()
11825 if ((ac__type_new_ *) 0)
11826 return 0;
11827 if (sizeof (ac__type_new_))
11828 return 0;
11830 return 0;
11832 _ACEOF
11833 rm -f conftest.$ac_objext
11834 if { (ac_try="$ac_compile"
11835 case "(($ac_try" in
11836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11837 *) ac_try_echo=$ac_try;;
11838 esac
11839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11840 (eval "$ac_compile") 2>conftest.er1
11841 ac_status=$?
11842 grep -v '^ *+' conftest.er1 >conftest.err
11843 rm -f conftest.er1
11844 cat conftest.err >&5
11845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11846 (exit $ac_status); } &&
11847 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11848 { (case "(($ac_try" in
11849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11850 *) ac_try_echo=$ac_try;;
11851 esac
11852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11853 (eval "$ac_try") 2>&5
11854 ac_status=$?
11855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11856 (exit $ac_status); }; } &&
11857 { ac_try='test -s conftest.$ac_objext'
11858 { (case "(($ac_try" in
11859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11860 *) ac_try_echo=$ac_try;;
11861 esac
11862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11863 (eval "$ac_try") 2>&5
11864 ac_status=$?
11865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11866 (exit $ac_status); }; }; then
11867 ac_cv_type__Bool=yes
11868 else
11869 echo "$as_me: failed program was:" >&5
11870 sed 's/^/| /' conftest.$ac_ext >&5
11872 ac_cv_type__Bool=no
11875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11877 { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
11878 echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
11879 if test $ac_cv_type__Bool = yes; then
11881 cat >>confdefs.h <<_ACEOF
11882 #define HAVE__BOOL 1
11883 _ACEOF
11888 if test $ac_cv_header_stdbool_h = yes; then
11890 cat >>confdefs.h <<\_ACEOF
11891 #define HAVE_STDBOOL_H 1
11892 _ACEOF
11898 # Define two additional variables used in the Makefile substitution.
11900 if test "$ac_cv_header_stdbool_h" = yes; then
11901 STDBOOL_H=''
11902 else
11903 STDBOOL_H='stdbool.h'
11907 if test "$ac_cv_type__Bool" = yes; then
11908 HAVE__BOOL=1
11909 else
11910 HAVE__BOOL=0
11914 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
11915 # for constant arguments. Useless!
11916 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
11917 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
11918 if test "${ac_cv_working_alloca_h+set}" = set; then
11919 echo $ECHO_N "(cached) $ECHO_C" >&6
11920 else
11921 cat >conftest.$ac_ext <<_ACEOF
11922 /* confdefs.h. */
11923 _ACEOF
11924 cat confdefs.h >>conftest.$ac_ext
11925 cat >>conftest.$ac_ext <<_ACEOF
11926 /* end confdefs.h. */
11927 #include <alloca.h>
11929 main ()
11931 char *p = (char *) alloca (2 * sizeof (int));
11932 if (p) return 0;
11934 return 0;
11936 _ACEOF
11937 rm -f conftest.$ac_objext conftest$ac_exeext
11938 if { (ac_try="$ac_link"
11939 case "(($ac_try" in
11940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11941 *) ac_try_echo=$ac_try;;
11942 esac
11943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11944 (eval "$ac_link") 2>conftest.er1
11945 ac_status=$?
11946 grep -v '^ *+' conftest.er1 >conftest.err
11947 rm -f conftest.er1
11948 cat conftest.err >&5
11949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11950 (exit $ac_status); } &&
11951 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11952 { (case "(($ac_try" in
11953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11954 *) ac_try_echo=$ac_try;;
11955 esac
11956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11957 (eval "$ac_try") 2>&5
11958 ac_status=$?
11959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11960 (exit $ac_status); }; } &&
11961 { ac_try='test -s conftest$ac_exeext'
11962 { (case "(($ac_try" in
11963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11964 *) ac_try_echo=$ac_try;;
11965 esac
11966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11967 (eval "$ac_try") 2>&5
11968 ac_status=$?
11969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11970 (exit $ac_status); }; }; then
11971 ac_cv_working_alloca_h=yes
11972 else
11973 echo "$as_me: failed program was:" >&5
11974 sed 's/^/| /' conftest.$ac_ext >&5
11976 ac_cv_working_alloca_h=no
11979 rm -f core conftest.err conftest.$ac_objext \
11980 conftest$ac_exeext conftest.$ac_ext
11982 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
11983 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
11984 if test $ac_cv_working_alloca_h = yes; then
11986 cat >>confdefs.h <<\_ACEOF
11987 #define HAVE_ALLOCA_H 1
11988 _ACEOF
11992 { echo "$as_me:$LINENO: checking for alloca" >&5
11993 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
11994 if test "${ac_cv_func_alloca_works+set}" = set; then
11995 echo $ECHO_N "(cached) $ECHO_C" >&6
11996 else
11997 cat >conftest.$ac_ext <<_ACEOF
11998 /* confdefs.h. */
11999 _ACEOF
12000 cat confdefs.h >>conftest.$ac_ext
12001 cat >>conftest.$ac_ext <<_ACEOF
12002 /* end confdefs.h. */
12003 #ifdef __GNUC__
12004 # define alloca __builtin_alloca
12005 #else
12006 # ifdef _MSC_VER
12007 # include <malloc.h>
12008 # define alloca _alloca
12009 # else
12010 # if HAVE_ALLOCA_H
12011 # include <alloca.h>
12012 # else
12013 # ifdef _AIX
12014 #pragma alloca
12015 # else
12016 # ifndef alloca /* predefined by HP cc +Olibcalls */
12017 char *alloca ();
12018 # endif
12019 # endif
12020 # endif
12021 # endif
12022 #endif
12025 main ()
12027 char *p = (char *) alloca (1);
12028 if (p) return 0;
12030 return 0;
12032 _ACEOF
12033 rm -f conftest.$ac_objext conftest$ac_exeext
12034 if { (ac_try="$ac_link"
12035 case "(($ac_try" in
12036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12037 *) ac_try_echo=$ac_try;;
12038 esac
12039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12040 (eval "$ac_link") 2>conftest.er1
12041 ac_status=$?
12042 grep -v '^ *+' conftest.er1 >conftest.err
12043 rm -f conftest.er1
12044 cat conftest.err >&5
12045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12046 (exit $ac_status); } &&
12047 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12048 { (case "(($ac_try" in
12049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12050 *) ac_try_echo=$ac_try;;
12051 esac
12052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12053 (eval "$ac_try") 2>&5
12054 ac_status=$?
12055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12056 (exit $ac_status); }; } &&
12057 { ac_try='test -s conftest$ac_exeext'
12058 { (case "(($ac_try" in
12059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12060 *) ac_try_echo=$ac_try;;
12061 esac
12062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12063 (eval "$ac_try") 2>&5
12064 ac_status=$?
12065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12066 (exit $ac_status); }; }; then
12067 ac_cv_func_alloca_works=yes
12068 else
12069 echo "$as_me: failed program was:" >&5
12070 sed 's/^/| /' conftest.$ac_ext >&5
12072 ac_cv_func_alloca_works=no
12075 rm -f core conftest.err conftest.$ac_objext \
12076 conftest$ac_exeext conftest.$ac_ext
12078 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
12079 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
12081 if test $ac_cv_func_alloca_works = yes; then
12083 cat >>confdefs.h <<\_ACEOF
12084 #define HAVE_ALLOCA 1
12085 _ACEOF
12087 else
12088 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12089 # that cause trouble. Some versions do not even contain alloca or
12090 # contain a buggy version. If you still want to use their alloca,
12091 # use ar to extract alloca.o from them instead of compiling alloca.c.
12093 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
12095 cat >>confdefs.h <<\_ACEOF
12096 #define C_ALLOCA 1
12097 _ACEOF
12100 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
12101 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
12102 if test "${ac_cv_os_cray+set}" = set; then
12103 echo $ECHO_N "(cached) $ECHO_C" >&6
12104 else
12105 cat >conftest.$ac_ext <<_ACEOF
12106 /* confdefs.h. */
12107 _ACEOF
12108 cat confdefs.h >>conftest.$ac_ext
12109 cat >>conftest.$ac_ext <<_ACEOF
12110 /* end confdefs.h. */
12111 #if defined CRAY && ! defined CRAY2
12112 webecray
12113 #else
12114 wenotbecray
12115 #endif
12117 _ACEOF
12118 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12119 $EGREP "webecray" >/dev/null 2>&1; then
12120 ac_cv_os_cray=yes
12121 else
12122 ac_cv_os_cray=no
12124 rm -f conftest*
12127 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
12128 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
12129 if test $ac_cv_os_cray = yes; then
12130 for ac_func in _getb67 GETB67 getb67; do
12131 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12132 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12133 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12134 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12135 echo $ECHO_N "(cached) $ECHO_C" >&6
12136 else
12137 cat >conftest.$ac_ext <<_ACEOF
12138 /* confdefs.h. */
12139 _ACEOF
12140 cat confdefs.h >>conftest.$ac_ext
12141 cat >>conftest.$ac_ext <<_ACEOF
12142 /* end confdefs.h. */
12143 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12144 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12145 #define $ac_func innocuous_$ac_func
12147 /* System header to define __stub macros and hopefully few prototypes,
12148 which can conflict with char $ac_func (); below.
12149 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12150 <limits.h> exists even on freestanding compilers. */
12152 #ifdef __STDC__
12153 # include <limits.h>
12154 #else
12155 # include <assert.h>
12156 #endif
12158 #undef $ac_func
12160 /* Override any GCC internal prototype to avoid an error.
12161 Use char because int might match the return type of a GCC
12162 builtin and then its argument prototype would still apply. */
12163 #ifdef __cplusplus
12164 extern "C"
12165 #endif
12166 char $ac_func ();
12167 /* The GNU C library defines this for functions which it implements
12168 to always fail with ENOSYS. Some functions are actually named
12169 something starting with __ and the normal name is an alias. */
12170 #if defined __stub_$ac_func || defined __stub___$ac_func
12171 choke me
12172 #endif
12175 main ()
12177 return $ac_func ();
12179 return 0;
12181 _ACEOF
12182 rm -f conftest.$ac_objext conftest$ac_exeext
12183 if { (ac_try="$ac_link"
12184 case "(($ac_try" in
12185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12186 *) ac_try_echo=$ac_try;;
12187 esac
12188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12189 (eval "$ac_link") 2>conftest.er1
12190 ac_status=$?
12191 grep -v '^ *+' conftest.er1 >conftest.err
12192 rm -f conftest.er1
12193 cat conftest.err >&5
12194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12195 (exit $ac_status); } &&
12196 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12197 { (case "(($ac_try" in
12198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12199 *) ac_try_echo=$ac_try;;
12200 esac
12201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12202 (eval "$ac_try") 2>&5
12203 ac_status=$?
12204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12205 (exit $ac_status); }; } &&
12206 { ac_try='test -s conftest$ac_exeext'
12207 { (case "(($ac_try" in
12208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12209 *) ac_try_echo=$ac_try;;
12210 esac
12211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12212 (eval "$ac_try") 2>&5
12213 ac_status=$?
12214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12215 (exit $ac_status); }; }; then
12216 eval "$as_ac_var=yes"
12217 else
12218 echo "$as_me: failed program was:" >&5
12219 sed 's/^/| /' conftest.$ac_ext >&5
12221 eval "$as_ac_var=no"
12224 rm -f core conftest.err conftest.$ac_objext \
12225 conftest$ac_exeext conftest.$ac_ext
12227 ac_res=`eval echo '${'$as_ac_var'}'`
12228 { echo "$as_me:$LINENO: result: $ac_res" >&5
12229 echo "${ECHO_T}$ac_res" >&6; }
12230 if test `eval echo '${'$as_ac_var'}'` = yes; then
12232 cat >>confdefs.h <<_ACEOF
12233 #define CRAY_STACKSEG_END $ac_func
12234 _ACEOF
12236 break
12239 done
12242 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
12243 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
12244 if test "${ac_cv_c_stack_direction+set}" = set; then
12245 echo $ECHO_N "(cached) $ECHO_C" >&6
12246 else
12247 if test "$cross_compiling" = yes; then
12248 ac_cv_c_stack_direction=0
12249 else
12250 cat >conftest.$ac_ext <<_ACEOF
12251 /* confdefs.h. */
12252 _ACEOF
12253 cat confdefs.h >>conftest.$ac_ext
12254 cat >>conftest.$ac_ext <<_ACEOF
12255 /* end confdefs.h. */
12256 $ac_includes_default
12258 find_stack_direction ()
12260 static char *addr = 0;
12261 auto char dummy;
12262 if (addr == 0)
12264 addr = &dummy;
12265 return find_stack_direction ();
12267 else
12268 return (&dummy > addr) ? 1 : -1;
12272 main ()
12274 return find_stack_direction () < 0;
12276 _ACEOF
12277 rm -f conftest$ac_exeext
12278 if { (ac_try="$ac_link"
12279 case "(($ac_try" in
12280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12281 *) ac_try_echo=$ac_try;;
12282 esac
12283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12284 (eval "$ac_link") 2>&5
12285 ac_status=$?
12286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12287 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12288 { (case "(($ac_try" in
12289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12290 *) ac_try_echo=$ac_try;;
12291 esac
12292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12293 (eval "$ac_try") 2>&5
12294 ac_status=$?
12295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12296 (exit $ac_status); }; }; then
12297 ac_cv_c_stack_direction=1
12298 else
12299 echo "$as_me: program exited with status $ac_status" >&5
12300 echo "$as_me: failed program was:" >&5
12301 sed 's/^/| /' conftest.$ac_ext >&5
12303 ( exit $ac_status )
12304 ac_cv_c_stack_direction=-1
12306 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12311 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
12312 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
12314 cat >>confdefs.h <<_ACEOF
12315 #define STACK_DIRECTION $ac_cv_c_stack_direction
12316 _ACEOF
12326 if test $ac_cv_func_alloca_works = no; then
12330 # Define an additional variable used in the Makefile substitution.
12331 if test $ac_cv_working_alloca_h = yes; then
12332 cat >conftest.$ac_ext <<_ACEOF
12333 /* confdefs.h. */
12334 _ACEOF
12335 cat confdefs.h >>conftest.$ac_ext
12336 cat >>conftest.$ac_ext <<_ACEOF
12337 /* end confdefs.h. */
12339 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
12340 Need own alloca
12341 #endif
12343 _ACEOF
12344 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12345 $EGREP "Need own alloca" >/dev/null 2>&1; then
12347 cat >>confdefs.h <<\_ACEOF
12348 #define HAVE_ALLOCA 1
12349 _ACEOF
12351 ALLOCA_H=alloca.h
12352 else
12353 ALLOCA_H=
12355 rm -f conftest*
12357 else
12358 ALLOCA_H=alloca.h
12363 cat >>confdefs.h <<\_ACEOF
12364 #define HAVE_ALLOCA_H 1
12365 _ACEOF
12370 for ac_header in stdlib.h
12372 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12373 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12374 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12375 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12376 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12377 echo $ECHO_N "(cached) $ECHO_C" >&6
12379 ac_res=`eval echo '${'$as_ac_Header'}'`
12380 { echo "$as_me:$LINENO: result: $ac_res" >&5
12381 echo "${ECHO_T}$ac_res" >&6; }
12382 else
12383 # Is the header compilable?
12384 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12385 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12386 cat >conftest.$ac_ext <<_ACEOF
12387 /* confdefs.h. */
12388 _ACEOF
12389 cat confdefs.h >>conftest.$ac_ext
12390 cat >>conftest.$ac_ext <<_ACEOF
12391 /* end confdefs.h. */
12392 $ac_includes_default
12393 #include <$ac_header>
12394 _ACEOF
12395 rm -f conftest.$ac_objext
12396 if { (ac_try="$ac_compile"
12397 case "(($ac_try" in
12398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12399 *) ac_try_echo=$ac_try;;
12400 esac
12401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12402 (eval "$ac_compile") 2>conftest.er1
12403 ac_status=$?
12404 grep -v '^ *+' conftest.er1 >conftest.err
12405 rm -f conftest.er1
12406 cat conftest.err >&5
12407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12408 (exit $ac_status); } &&
12409 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12410 { (case "(($ac_try" in
12411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12412 *) ac_try_echo=$ac_try;;
12413 esac
12414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12415 (eval "$ac_try") 2>&5
12416 ac_status=$?
12417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12418 (exit $ac_status); }; } &&
12419 { ac_try='test -s conftest.$ac_objext'
12420 { (case "(($ac_try" in
12421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12422 *) ac_try_echo=$ac_try;;
12423 esac
12424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12425 (eval "$ac_try") 2>&5
12426 ac_status=$?
12427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12428 (exit $ac_status); }; }; then
12429 ac_header_compiler=yes
12430 else
12431 echo "$as_me: failed program was:" >&5
12432 sed 's/^/| /' conftest.$ac_ext >&5
12434 ac_header_compiler=no
12437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12438 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12439 echo "${ECHO_T}$ac_header_compiler" >&6; }
12441 # Is the header present?
12442 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12443 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12444 cat >conftest.$ac_ext <<_ACEOF
12445 /* confdefs.h. */
12446 _ACEOF
12447 cat confdefs.h >>conftest.$ac_ext
12448 cat >>conftest.$ac_ext <<_ACEOF
12449 /* end confdefs.h. */
12450 #include <$ac_header>
12451 _ACEOF
12452 if { (ac_try="$ac_cpp conftest.$ac_ext"
12453 case "(($ac_try" in
12454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12455 *) ac_try_echo=$ac_try;;
12456 esac
12457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12458 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12459 ac_status=$?
12460 grep -v '^ *+' conftest.er1 >conftest.err
12461 rm -f conftest.er1
12462 cat conftest.err >&5
12463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12464 (exit $ac_status); } >/dev/null; then
12465 if test -s conftest.err; then
12466 ac_cpp_err=$ac_c_preproc_warn_flag
12467 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12468 else
12469 ac_cpp_err=
12471 else
12472 ac_cpp_err=yes
12474 if test -z "$ac_cpp_err"; then
12475 ac_header_preproc=yes
12476 else
12477 echo "$as_me: failed program was:" >&5
12478 sed 's/^/| /' conftest.$ac_ext >&5
12480 ac_header_preproc=no
12483 rm -f conftest.err conftest.$ac_ext
12484 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12485 echo "${ECHO_T}$ac_header_preproc" >&6; }
12487 # So? What about this header?
12488 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12489 yes:no: )
12490 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12491 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12492 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12493 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12494 ac_header_preproc=yes
12496 no:yes:* )
12497 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12498 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12499 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12500 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12501 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12502 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12503 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12504 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12505 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12506 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12507 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12508 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12509 ( cat <<\_ASBOX
12510 ## ------------------------------------ ##
12511 ## Report this to bug-coreutils@gnu.org ##
12512 ## ------------------------------------ ##
12513 _ASBOX
12514 ) | sed "s/^/$as_me: WARNING: /" >&2
12516 esac
12517 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12518 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12519 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12520 echo $ECHO_N "(cached) $ECHO_C" >&6
12521 else
12522 eval "$as_ac_Header=\$ac_header_preproc"
12524 ac_res=`eval echo '${'$as_ac_Header'}'`
12525 { echo "$as_me:$LINENO: result: $ac_res" >&5
12526 echo "${ECHO_T}$ac_res" >&6; }
12529 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12530 cat >>confdefs.h <<_ACEOF
12531 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12532 _ACEOF
12536 done
12538 { echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
12539 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; }
12540 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
12541 echo $ECHO_N "(cached) $ECHO_C" >&6
12542 else
12543 if test "$cross_compiling" = yes; then
12544 ac_cv_func_malloc_0_nonnull=no
12545 else
12546 cat >conftest.$ac_ext <<_ACEOF
12547 /* confdefs.h. */
12548 _ACEOF
12549 cat confdefs.h >>conftest.$ac_ext
12550 cat >>conftest.$ac_ext <<_ACEOF
12551 /* end confdefs.h. */
12552 #if STDC_HEADERS || HAVE_STDLIB_H
12553 # include <stdlib.h>
12554 #else
12555 char *malloc ();
12556 #endif
12559 main ()
12561 return ! malloc (0);
12563 return 0;
12565 _ACEOF
12566 rm -f conftest$ac_exeext
12567 if { (ac_try="$ac_link"
12568 case "(($ac_try" in
12569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12570 *) ac_try_echo=$ac_try;;
12571 esac
12572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12573 (eval "$ac_link") 2>&5
12574 ac_status=$?
12575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12576 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12577 { (case "(($ac_try" in
12578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12579 *) ac_try_echo=$ac_try;;
12580 esac
12581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12582 (eval "$ac_try") 2>&5
12583 ac_status=$?
12584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12585 (exit $ac_status); }; }; then
12586 ac_cv_func_malloc_0_nonnull=yes
12587 else
12588 echo "$as_me: program exited with status $ac_status" >&5
12589 echo "$as_me: failed program was:" >&5
12590 sed 's/^/| /' conftest.$ac_ext >&5
12592 ( exit $ac_status )
12593 ac_cv_func_malloc_0_nonnull=no
12595 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12600 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
12601 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
12602 if test $ac_cv_func_malloc_0_nonnull = yes; then
12603 gl_cv_func_malloc_0_nonnull=1
12604 else
12605 gl_cv_func_malloc_0_nonnull=0
12610 cat >>confdefs.h <<_ACEOF
12611 #define MALLOC_0_IS_NONNULL $gl_cv_func_malloc_0_nonnull
12612 _ACEOF
12616 { echo "$as_me:$LINENO: checking for long long int" >&5
12617 echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
12618 if test "${ac_cv_type_long_long_int+set}" = set; then
12619 echo $ECHO_N "(cached) $ECHO_C" >&6
12620 else
12621 cat >conftest.$ac_ext <<_ACEOF
12622 /* confdefs.h. */
12623 _ACEOF
12624 cat confdefs.h >>conftest.$ac_ext
12625 cat >>conftest.$ac_ext <<_ACEOF
12626 /* end confdefs.h. */
12627 long long int ll = 9223372036854775807ll;
12628 long long int nll = -9223372036854775807LL;
12629 typedef int a[((-9223372036854775807LL < 0
12630 && 0 < 9223372036854775807ll)
12631 ? 1 : -1)];
12632 int i = 63;
12634 main ()
12636 long long int llmax = 9223372036854775807ll;
12637 return (ll << 63 | ll >> 63 | ll < i | ll > i
12638 | llmax / ll | llmax % ll);
12640 return 0;
12642 _ACEOF
12643 rm -f conftest.$ac_objext conftest$ac_exeext
12644 if { (ac_try="$ac_link"
12645 case "(($ac_try" in
12646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12647 *) ac_try_echo=$ac_try;;
12648 esac
12649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12650 (eval "$ac_link") 2>conftest.er1
12651 ac_status=$?
12652 grep -v '^ *+' conftest.er1 >conftest.err
12653 rm -f conftest.er1
12654 cat conftest.err >&5
12655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12656 (exit $ac_status); } &&
12657 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12658 { (case "(($ac_try" in
12659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12660 *) ac_try_echo=$ac_try;;
12661 esac
12662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12663 (eval "$ac_try") 2>&5
12664 ac_status=$?
12665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12666 (exit $ac_status); }; } &&
12667 { ac_try='test -s conftest$ac_exeext'
12668 { (case "(($ac_try" in
12669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12670 *) ac_try_echo=$ac_try;;
12671 esac
12672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12673 (eval "$ac_try") 2>&5
12674 ac_status=$?
12675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12676 (exit $ac_status); }; }; then
12677 ac_cv_type_long_long_int=yes
12678 else
12679 echo "$as_me: failed program was:" >&5
12680 sed 's/^/| /' conftest.$ac_ext >&5
12682 ac_cv_type_long_long_int=no
12685 rm -f core conftest.err conftest.$ac_objext \
12686 conftest$ac_exeext conftest.$ac_ext
12688 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
12689 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
12690 if test $ac_cv_type_long_long_int = yes; then
12692 cat >>confdefs.h <<\_ACEOF
12693 #define HAVE_LONG_LONG_INT 1
12694 _ACEOF
12700 ac_cv_type_long_long=$ac_cv_type_long_long_int
12701 if test $ac_cv_type_long_long = yes; then
12703 cat >>confdefs.h <<\_ACEOF
12704 #define HAVE_LONG_LONG 1
12705 _ACEOF
12710 { echo "$as_me:$LINENO: checking for long double" >&5
12711 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
12712 if test "${gt_cv_c_long_double+set}" = set; then
12713 echo $ECHO_N "(cached) $ECHO_C" >&6
12714 else
12715 if test "$GCC" = yes; then
12716 gt_cv_c_long_double=yes
12717 else
12718 cat >conftest.$ac_ext <<_ACEOF
12719 /* confdefs.h. */
12720 _ACEOF
12721 cat confdefs.h >>conftest.$ac_ext
12722 cat >>conftest.$ac_ext <<_ACEOF
12723 /* end confdefs.h. */
12725 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
12726 long double foo = 0.0;
12727 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
12728 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
12731 main ()
12735 return 0;
12737 _ACEOF
12738 rm -f conftest.$ac_objext
12739 if { (ac_try="$ac_compile"
12740 case "(($ac_try" in
12741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12742 *) ac_try_echo=$ac_try;;
12743 esac
12744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12745 (eval "$ac_compile") 2>conftest.er1
12746 ac_status=$?
12747 grep -v '^ *+' conftest.er1 >conftest.err
12748 rm -f conftest.er1
12749 cat conftest.err >&5
12750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12751 (exit $ac_status); } &&
12752 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12753 { (case "(($ac_try" in
12754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12755 *) ac_try_echo=$ac_try;;
12756 esac
12757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12758 (eval "$ac_try") 2>&5
12759 ac_status=$?
12760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12761 (exit $ac_status); }; } &&
12762 { ac_try='test -s conftest.$ac_objext'
12763 { (case "(($ac_try" in
12764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12765 *) ac_try_echo=$ac_try;;
12766 esac
12767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12768 (eval "$ac_try") 2>&5
12769 ac_status=$?
12770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12771 (exit $ac_status); }; }; then
12772 gt_cv_c_long_double=yes
12773 else
12774 echo "$as_me: failed program was:" >&5
12775 sed 's/^/| /' conftest.$ac_ext >&5
12777 gt_cv_c_long_double=no
12780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12783 { echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
12784 echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
12785 if test $gt_cv_c_long_double = yes; then
12787 cat >>confdefs.h <<\_ACEOF
12788 #define HAVE_LONG_DOUBLE 1
12789 _ACEOF
12800 { echo "$as_me:$LINENO: checking whether system is Windows or MSDOS" >&5
12801 echo $ECHO_N "checking whether system is Windows or MSDOS... $ECHO_C" >&6; }
12802 if test "${ac_cv_win_or_dos+set}" = set; then
12803 echo $ECHO_N "(cached) $ECHO_C" >&6
12804 else
12806 cat >conftest.$ac_ext <<_ACEOF
12807 /* confdefs.h. */
12808 _ACEOF
12809 cat confdefs.h >>conftest.$ac_ext
12810 cat >>conftest.$ac_ext <<_ACEOF
12811 /* end confdefs.h. */
12814 main ()
12816 #if !defined _WIN32 && !defined __WIN32__ && !defined __MSDOS__ && !defined __CYGWIN__
12817 neither MSDOS nor Windows
12818 #endif
12820 return 0;
12822 _ACEOF
12823 rm -f conftest.$ac_objext
12824 if { (ac_try="$ac_compile"
12825 case "(($ac_try" in
12826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12827 *) ac_try_echo=$ac_try;;
12828 esac
12829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12830 (eval "$ac_compile") 2>conftest.er1
12831 ac_status=$?
12832 grep -v '^ *+' conftest.er1 >conftest.err
12833 rm -f conftest.er1
12834 cat conftest.err >&5
12835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12836 (exit $ac_status); } &&
12837 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12838 { (case "(($ac_try" in
12839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12840 *) ac_try_echo=$ac_try;;
12841 esac
12842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12843 (eval "$ac_try") 2>&5
12844 ac_status=$?
12845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12846 (exit $ac_status); }; } &&
12847 { ac_try='test -s conftest.$ac_objext'
12848 { (case "(($ac_try" in
12849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12850 *) ac_try_echo=$ac_try;;
12851 esac
12852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12853 (eval "$ac_try") 2>&5
12854 ac_status=$?
12855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12856 (exit $ac_status); }; }; then
12857 ac_cv_win_or_dos=yes
12858 else
12859 echo "$as_me: failed program was:" >&5
12860 sed 's/^/| /' conftest.$ac_ext >&5
12862 ac_cv_win_or_dos=no
12865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12868 { echo "$as_me:$LINENO: result: $ac_cv_win_or_dos" >&5
12869 echo "${ECHO_T}$ac_cv_win_or_dos" >&6; }
12871 if test x"$ac_cv_win_or_dos" = xyes; then
12872 ac_fs_accepts_drive_letter_prefix=1
12873 ac_fs_backslash_is_file_name_separator=1
12874 { echo "$as_me:$LINENO: checking whether drive letter can start relative path" >&5
12875 echo $ECHO_N "checking whether drive letter can start relative path... $ECHO_C" >&6; }
12876 if test "${ac_cv_drive_letter_can_be_relative+set}" = set; then
12877 echo $ECHO_N "(cached) $ECHO_C" >&6
12878 else
12880 cat >conftest.$ac_ext <<_ACEOF
12881 /* confdefs.h. */
12882 _ACEOF
12883 cat confdefs.h >>conftest.$ac_ext
12884 cat >>conftest.$ac_ext <<_ACEOF
12885 /* end confdefs.h. */
12888 main ()
12890 #if defined __CYGWIN__
12891 drive letters are always absolute
12892 #endif
12894 return 0;
12896 _ACEOF
12897 rm -f conftest.$ac_objext
12898 if { (ac_try="$ac_compile"
12899 case "(($ac_try" in
12900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12901 *) ac_try_echo=$ac_try;;
12902 esac
12903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12904 (eval "$ac_compile") 2>conftest.er1
12905 ac_status=$?
12906 grep -v '^ *+' conftest.er1 >conftest.err
12907 rm -f conftest.er1
12908 cat conftest.err >&5
12909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12910 (exit $ac_status); } &&
12911 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12912 { (case "(($ac_try" in
12913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12914 *) ac_try_echo=$ac_try;;
12915 esac
12916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12917 (eval "$ac_try") 2>&5
12918 ac_status=$?
12919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12920 (exit $ac_status); }; } &&
12921 { ac_try='test -s conftest.$ac_objext'
12922 { (case "(($ac_try" in
12923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12924 *) ac_try_echo=$ac_try;;
12925 esac
12926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12927 (eval "$ac_try") 2>&5
12928 ac_status=$?
12929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12930 (exit $ac_status); }; }; then
12931 ac_cv_drive_letter_can_be_relative=yes
12932 else
12933 echo "$as_me: failed program was:" >&5
12934 sed 's/^/| /' conftest.$ac_ext >&5
12936 ac_cv_drive_letter_can_be_relative=no
12939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12942 { echo "$as_me:$LINENO: result: $ac_cv_drive_letter_can_be_relative" >&5
12943 echo "${ECHO_T}$ac_cv_drive_letter_can_be_relative" >&6; }
12944 if test x"$ac_cv_drive_letter_can_be_relative" = xyes; then
12945 ac_fs_drive_letter_can_be_relative=1
12946 else
12947 ac_fs_drive_letter_can_be_relative=0
12949 else
12950 ac_fs_accepts_drive_letter_prefix=0
12951 ac_fs_backslash_is_file_name_separator=0
12952 ac_fs_drive_letter_can_be_relative=0
12956 cat >>confdefs.h <<_ACEOF
12957 #define FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX $ac_fs_accepts_drive_letter_prefix
12958 _ACEOF
12965 cat >>confdefs.h <<_ACEOF
12966 #define FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR $ac_fs_backslash_is_file_name_separator
12967 _ACEOF
12971 cat >>confdefs.h <<_ACEOF
12972 #define FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE $ac_fs_drive_letter_can_be_relative
12973 _ACEOF
12976 { echo "$as_me:$LINENO: checking for long file names" >&5
12977 echo $ECHO_N "checking for long file names... $ECHO_C" >&6; }
12978 if test "${ac_cv_sys_long_file_names+set}" = set; then
12979 echo $ECHO_N "(cached) $ECHO_C" >&6
12980 else
12981 ac_cv_sys_long_file_names=yes
12982 # Test for long file names in all the places we know might matter:
12983 # . the current directory, where building will happen
12984 # $prefix/lib where we will be installing things
12985 # $exec_prefix/lib likewise
12986 # $TMPDIR if set, where it might want to write temporary files
12987 # /tmp where it might want to write temporary files
12988 # /var/tmp likewise
12989 # /usr/tmp likewise
12990 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
12991 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
12992 # in the usual case where exec_prefix is '${prefix}'.
12993 case $ac_dir in #(
12994 . | /* | ?:[\\/]*) ;; #(
12995 *) continue;;
12996 esac
12997 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
12998 ac_xdir=$ac_dir/cf$$
12999 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
13000 ac_tf1=$ac_xdir/conftest9012345
13001 ac_tf2=$ac_xdir/conftest9012346
13002 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
13003 ac_cv_sys_long_file_names=no
13004 rm -f -r "$ac_xdir" 2>/dev/null
13005 test $ac_cv_sys_long_file_names = no && break
13006 done
13008 { echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
13009 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; }
13010 if test $ac_cv_sys_long_file_names = yes; then
13012 cat >>confdefs.h <<\_ACEOF
13013 #define HAVE_LONG_FILE_NAMES 1
13014 _ACEOF
13022 for ac_func in $ac_func_list
13024 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13025 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13026 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13027 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13028 echo $ECHO_N "(cached) $ECHO_C" >&6
13029 else
13030 cat >conftest.$ac_ext <<_ACEOF
13031 /* confdefs.h. */
13032 _ACEOF
13033 cat confdefs.h >>conftest.$ac_ext
13034 cat >>conftest.$ac_ext <<_ACEOF
13035 /* end confdefs.h. */
13036 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13037 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13038 #define $ac_func innocuous_$ac_func
13040 /* System header to define __stub macros and hopefully few prototypes,
13041 which can conflict with char $ac_func (); below.
13042 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13043 <limits.h> exists even on freestanding compilers. */
13045 #ifdef __STDC__
13046 # include <limits.h>
13047 #else
13048 # include <assert.h>
13049 #endif
13051 #undef $ac_func
13053 /* Override any GCC internal prototype to avoid an error.
13054 Use char because int might match the return type of a GCC
13055 builtin and then its argument prototype would still apply. */
13056 #ifdef __cplusplus
13057 extern "C"
13058 #endif
13059 char $ac_func ();
13060 /* The GNU C library defines this for functions which it implements
13061 to always fail with ENOSYS. Some functions are actually named
13062 something starting with __ and the normal name is an alias. */
13063 #if defined __stub_$ac_func || defined __stub___$ac_func
13064 choke me
13065 #endif
13068 main ()
13070 return $ac_func ();
13072 return 0;
13074 _ACEOF
13075 rm -f conftest.$ac_objext conftest$ac_exeext
13076 if { (ac_try="$ac_link"
13077 case "(($ac_try" in
13078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13079 *) ac_try_echo=$ac_try;;
13080 esac
13081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13082 (eval "$ac_link") 2>conftest.er1
13083 ac_status=$?
13084 grep -v '^ *+' conftest.er1 >conftest.err
13085 rm -f conftest.er1
13086 cat conftest.err >&5
13087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13088 (exit $ac_status); } &&
13089 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13090 { (case "(($ac_try" in
13091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13092 *) ac_try_echo=$ac_try;;
13093 esac
13094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13095 (eval "$ac_try") 2>&5
13096 ac_status=$?
13097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13098 (exit $ac_status); }; } &&
13099 { ac_try='test -s conftest$ac_exeext'
13100 { (case "(($ac_try" in
13101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13102 *) ac_try_echo=$ac_try;;
13103 esac
13104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13105 (eval "$ac_try") 2>&5
13106 ac_status=$?
13107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13108 (exit $ac_status); }; }; then
13109 eval "$as_ac_var=yes"
13110 else
13111 echo "$as_me: failed program was:" >&5
13112 sed 's/^/| /' conftest.$ac_ext >&5
13114 eval "$as_ac_var=no"
13117 rm -f core conftest.err conftest.$ac_objext \
13118 conftest$ac_exeext conftest.$ac_ext
13120 ac_res=`eval echo '${'$as_ac_var'}'`
13121 { echo "$as_me:$LINENO: result: $ac_res" >&5
13122 echo "${ECHO_T}$ac_res" >&6; }
13123 if test `eval echo '${'$as_ac_var'}'` = yes; then
13124 cat >>confdefs.h <<_ACEOF
13125 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13126 _ACEOF
13129 done
13135 case " $LIBOBJS " in
13136 *" backupfile.$ac_objext "* ) ;;
13137 *) LIBOBJS="$LIBOBJS backupfile.$ac_objext"
13139 esac
13154 case " $LIBOBJS " in
13155 *" basename.$ac_objext "* ) ;;
13156 *) LIBOBJS="$LIBOBJS basename.$ac_objext"
13158 esac
13165 case " $LIBOBJS " in
13166 *" c-strtod.$ac_objext "* ) ;;
13167 *) LIBOBJS="$LIBOBJS c-strtod.$ac_objext"
13169 esac
13176 { echo "$as_me:$LINENO: checking whether strtold conforms to C99" >&5
13177 echo $ECHO_N "checking whether strtold conforms to C99... $ECHO_C" >&6; }
13178 if test "${gl_cv_func_c99_strtold+set}" = set; then
13179 echo $ECHO_N "(cached) $ECHO_C" >&6
13180 else
13181 cat >conftest.$ac_ext <<_ACEOF
13182 /* confdefs.h. */
13183 _ACEOF
13184 cat confdefs.h >>conftest.$ac_ext
13185 cat >>conftest.$ac_ext <<_ACEOF
13186 /* end confdefs.h. */
13187 /* On HP-UX before 11.23, strtold returns a struct instead of
13188 long double. Reject implementations like that, by requiring
13189 compatibility with the C99 prototype. */
13190 #include <stdlib.h>
13191 static long double (*p) (char const *, char **) = strtold;
13192 static long double
13193 test (char const *nptr, char **endptr)
13195 long double r;
13196 r = strtold (nptr, endptr);
13197 return r;
13200 main ()
13202 return test ("1.0", NULL) != 1 || p ("1.0", NULL) != 1;
13204 return 0;
13206 _ACEOF
13207 rm -f conftest.$ac_objext conftest$ac_exeext
13208 if { (ac_try="$ac_link"
13209 case "(($ac_try" in
13210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13211 *) ac_try_echo=$ac_try;;
13212 esac
13213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13214 (eval "$ac_link") 2>conftest.er1
13215 ac_status=$?
13216 grep -v '^ *+' conftest.er1 >conftest.err
13217 rm -f conftest.er1
13218 cat conftest.err >&5
13219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13220 (exit $ac_status); } &&
13221 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13222 { (case "(($ac_try" in
13223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13224 *) ac_try_echo=$ac_try;;
13225 esac
13226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13227 (eval "$ac_try") 2>&5
13228 ac_status=$?
13229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13230 (exit $ac_status); }; } &&
13231 { ac_try='test -s conftest$ac_exeext'
13232 { (case "(($ac_try" in
13233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13234 *) ac_try_echo=$ac_try;;
13235 esac
13236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13237 (eval "$ac_try") 2>&5
13238 ac_status=$?
13239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13240 (exit $ac_status); }; }; then
13241 gl_cv_func_c99_strtold=yes
13242 else
13243 echo "$as_me: failed program was:" >&5
13244 sed 's/^/| /' conftest.$ac_ext >&5
13246 gl_cv_func_c99_strtold=no
13249 rm -f core conftest.err conftest.$ac_objext \
13250 conftest$ac_exeext conftest.$ac_ext
13252 { echo "$as_me:$LINENO: result: $gl_cv_func_c99_strtold" >&5
13253 echo "${ECHO_T}$gl_cv_func_c99_strtold" >&6; }
13254 if test $gl_cv_func_c99_strtold = yes; then
13256 cat >>confdefs.h <<\_ACEOF
13257 #define HAVE_C99_STRTOLD 1
13258 _ACEOF
13264 case " $LIBOBJS " in
13265 *" c-strtold.$ac_objext "* ) ;;
13266 *) LIBOBJS="$LIBOBJS c-strtold.$ac_objext"
13268 esac
13275 { echo "$as_me:$LINENO: checking for C/C++ restrict keyword" >&5
13276 echo $ECHO_N "checking for C/C++ restrict keyword... $ECHO_C" >&6; }
13277 if test "${ac_cv_c_restrict+set}" = set; then
13278 echo $ECHO_N "(cached) $ECHO_C" >&6
13279 else
13280 ac_cv_c_restrict=no
13281 # Try the official restrict keyword, then gcc's __restrict, and
13282 # the less common variants.
13283 for ac_kw in restrict __restrict __restrict__ _Restrict; do
13284 cat >conftest.$ac_ext <<_ACEOF
13285 /* confdefs.h. */
13286 _ACEOF
13287 cat confdefs.h >>conftest.$ac_ext
13288 cat >>conftest.$ac_ext <<_ACEOF
13289 /* end confdefs.h. */
13290 typedef int * int_ptr;
13291 int foo (int_ptr $ac_kw ip) {
13292 return ip[0];
13295 main ()
13297 int s[1];
13298 int * $ac_kw t = s;
13299 t[0] = 0;
13300 return foo(t)
13302 return 0;
13304 _ACEOF
13305 rm -f conftest.$ac_objext
13306 if { (ac_try="$ac_compile"
13307 case "(($ac_try" in
13308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13309 *) ac_try_echo=$ac_try;;
13310 esac
13311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13312 (eval "$ac_compile") 2>conftest.er1
13313 ac_status=$?
13314 grep -v '^ *+' conftest.er1 >conftest.err
13315 rm -f conftest.er1
13316 cat conftest.err >&5
13317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13318 (exit $ac_status); } &&
13319 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13320 { (case "(($ac_try" in
13321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13322 *) ac_try_echo=$ac_try;;
13323 esac
13324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13325 (eval "$ac_try") 2>&5
13326 ac_status=$?
13327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13328 (exit $ac_status); }; } &&
13329 { ac_try='test -s conftest.$ac_objext'
13330 { (case "(($ac_try" in
13331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13332 *) ac_try_echo=$ac_try;;
13333 esac
13334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13335 (eval "$ac_try") 2>&5
13336 ac_status=$?
13337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13338 (exit $ac_status); }; }; then
13339 ac_cv_c_restrict=$ac_kw
13340 else
13341 echo "$as_me: failed program was:" >&5
13342 sed 's/^/| /' conftest.$ac_ext >&5
13347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13348 test "$ac_cv_c_restrict" != no && break
13349 done
13352 { echo "$as_me:$LINENO: result: $ac_cv_c_restrict" >&5
13353 echo "${ECHO_T}$ac_cv_c_restrict" >&6; }
13354 case $ac_cv_c_restrict in
13355 restrict) ;;
13357 cat >>confdefs.h <<\_ACEOF
13358 #define restrict
13359 _ACEOF
13361 *) cat >>confdefs.h <<_ACEOF
13362 #define restrict $ac_cv_c_restrict
13363 _ACEOF
13365 esac
13376 if test $ac_cv_header_sys_socket_h = yes; then
13377 SYS_SOCKET_H=''
13378 else
13381 for ac_header in winsock2.h ws2tcpip.h
13383 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13384 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13385 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13386 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13387 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13388 echo $ECHO_N "(cached) $ECHO_C" >&6
13390 ac_res=`eval echo '${'$as_ac_Header'}'`
13391 { echo "$as_me:$LINENO: result: $ac_res" >&5
13392 echo "${ECHO_T}$ac_res" >&6; }
13393 else
13394 # Is the header compilable?
13395 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13396 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13397 cat >conftest.$ac_ext <<_ACEOF
13398 /* confdefs.h. */
13399 _ACEOF
13400 cat confdefs.h >>conftest.$ac_ext
13401 cat >>conftest.$ac_ext <<_ACEOF
13402 /* end confdefs.h. */
13403 $ac_includes_default
13404 #include <$ac_header>
13405 _ACEOF
13406 rm -f conftest.$ac_objext
13407 if { (ac_try="$ac_compile"
13408 case "(($ac_try" in
13409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13410 *) ac_try_echo=$ac_try;;
13411 esac
13412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13413 (eval "$ac_compile") 2>conftest.er1
13414 ac_status=$?
13415 grep -v '^ *+' conftest.er1 >conftest.err
13416 rm -f conftest.er1
13417 cat conftest.err >&5
13418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13419 (exit $ac_status); } &&
13420 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13421 { (case "(($ac_try" in
13422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13423 *) ac_try_echo=$ac_try;;
13424 esac
13425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13426 (eval "$ac_try") 2>&5
13427 ac_status=$?
13428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13429 (exit $ac_status); }; } &&
13430 { ac_try='test -s conftest.$ac_objext'
13431 { (case "(($ac_try" in
13432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13433 *) ac_try_echo=$ac_try;;
13434 esac
13435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13436 (eval "$ac_try") 2>&5
13437 ac_status=$?
13438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13439 (exit $ac_status); }; }; then
13440 ac_header_compiler=yes
13441 else
13442 echo "$as_me: failed program was:" >&5
13443 sed 's/^/| /' conftest.$ac_ext >&5
13445 ac_header_compiler=no
13448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13449 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13450 echo "${ECHO_T}$ac_header_compiler" >&6; }
13452 # Is the header present?
13453 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13454 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13455 cat >conftest.$ac_ext <<_ACEOF
13456 /* confdefs.h. */
13457 _ACEOF
13458 cat confdefs.h >>conftest.$ac_ext
13459 cat >>conftest.$ac_ext <<_ACEOF
13460 /* end confdefs.h. */
13461 #include <$ac_header>
13462 _ACEOF
13463 if { (ac_try="$ac_cpp conftest.$ac_ext"
13464 case "(($ac_try" in
13465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13466 *) ac_try_echo=$ac_try;;
13467 esac
13468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13469 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13470 ac_status=$?
13471 grep -v '^ *+' conftest.er1 >conftest.err
13472 rm -f conftest.er1
13473 cat conftest.err >&5
13474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13475 (exit $ac_status); } >/dev/null; then
13476 if test -s conftest.err; then
13477 ac_cpp_err=$ac_c_preproc_warn_flag
13478 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13479 else
13480 ac_cpp_err=
13482 else
13483 ac_cpp_err=yes
13485 if test -z "$ac_cpp_err"; then
13486 ac_header_preproc=yes
13487 else
13488 echo "$as_me: failed program was:" >&5
13489 sed 's/^/| /' conftest.$ac_ext >&5
13491 ac_header_preproc=no
13494 rm -f conftest.err conftest.$ac_ext
13495 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13496 echo "${ECHO_T}$ac_header_preproc" >&6; }
13498 # So? What about this header?
13499 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13500 yes:no: )
13501 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13502 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13503 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13504 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13505 ac_header_preproc=yes
13507 no:yes:* )
13508 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13509 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13510 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13511 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13512 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13513 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13514 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13515 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13516 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13517 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13518 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13519 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13520 ( cat <<\_ASBOX
13521 ## ------------------------------------ ##
13522 ## Report this to bug-coreutils@gnu.org ##
13523 ## ------------------------------------ ##
13524 _ASBOX
13525 ) | sed "s/^/$as_me: WARNING: /" >&2
13527 esac
13528 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13529 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13530 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13531 echo $ECHO_N "(cached) $ECHO_C" >&6
13532 else
13533 eval "$as_ac_Header=\$ac_header_preproc"
13535 ac_res=`eval echo '${'$as_ac_Header'}'`
13536 { echo "$as_me:$LINENO: result: $ac_res" >&5
13537 echo "${ECHO_T}$ac_res" >&6; }
13540 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13541 cat >>confdefs.h <<_ACEOF
13542 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13543 _ACEOF
13547 done
13549 SYS_SOCKET_H='sys/socket.h'
13564 { echo "$as_me:$LINENO: checking for IPv4 sockets" >&5
13565 echo $ECHO_N "checking for IPv4 sockets... $ECHO_C" >&6; }
13566 if test "${gl_cv_socket_ipv4+set}" = set; then
13567 echo $ECHO_N "(cached) $ECHO_C" >&6
13568 else
13569 cat >conftest.$ac_ext <<_ACEOF
13570 /* confdefs.h. */
13571 _ACEOF
13572 cat confdefs.h >>conftest.$ac_ext
13573 cat >>conftest.$ac_ext <<_ACEOF
13574 /* end confdefs.h. */
13575 #include <sys/types.h>
13576 #ifdef HAVE_SYS_SOCKET_H
13577 #include <sys/socket.h>
13578 #endif
13579 #ifdef HAVE_NETINET_IN_H
13580 #include <netinet/in.h>
13581 #endif
13582 #ifdef HAVE_WINSOCK2_H
13583 #include <winsock2.h>
13584 #endif
13586 main ()
13588 int x = AF_INET; struct in_addr y; struct sockaddr_in z;
13590 return 0;
13592 _ACEOF
13593 rm -f conftest.$ac_objext
13594 if { (ac_try="$ac_compile"
13595 case "(($ac_try" in
13596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13597 *) ac_try_echo=$ac_try;;
13598 esac
13599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13600 (eval "$ac_compile") 2>conftest.er1
13601 ac_status=$?
13602 grep -v '^ *+' conftest.er1 >conftest.err
13603 rm -f conftest.er1
13604 cat conftest.err >&5
13605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13606 (exit $ac_status); } &&
13607 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13608 { (case "(($ac_try" in
13609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13610 *) ac_try_echo=$ac_try;;
13611 esac
13612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13613 (eval "$ac_try") 2>&5
13614 ac_status=$?
13615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13616 (exit $ac_status); }; } &&
13617 { ac_try='test -s conftest.$ac_objext'
13618 { (case "(($ac_try" in
13619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13620 *) ac_try_echo=$ac_try;;
13621 esac
13622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13623 (eval "$ac_try") 2>&5
13624 ac_status=$?
13625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13626 (exit $ac_status); }; }; then
13627 gl_cv_socket_ipv4=yes
13628 else
13629 echo "$as_me: failed program was:" >&5
13630 sed 's/^/| /' conftest.$ac_ext >&5
13632 gl_cv_socket_ipv4=no
13635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13638 { echo "$as_me:$LINENO: result: $gl_cv_socket_ipv4" >&5
13639 echo "${ECHO_T}$gl_cv_socket_ipv4" >&6; }
13640 if test $gl_cv_socket_ipv4 = yes; then
13642 cat >>confdefs.h <<\_ACEOF
13643 #define HAVE_IPV4 1
13644 _ACEOF
13648 { echo "$as_me:$LINENO: checking for IPv6 sockets" >&5
13649 echo $ECHO_N "checking for IPv6 sockets... $ECHO_C" >&6; }
13650 if test "${gl_cv_socket_ipv6+set}" = set; then
13651 echo $ECHO_N "(cached) $ECHO_C" >&6
13652 else
13653 cat >conftest.$ac_ext <<_ACEOF
13654 /* confdefs.h. */
13655 _ACEOF
13656 cat confdefs.h >>conftest.$ac_ext
13657 cat >>conftest.$ac_ext <<_ACEOF
13658 /* end confdefs.h. */
13659 #include <sys/types.h>
13660 #ifdef HAVE_SYS_SOCKET_H
13661 #include <sys/socket.h>
13662 #endif
13663 #ifdef HAVE_NETINET_IN_H
13664 #include <netinet/in.h>
13665 #endif
13666 #ifdef HAVE_WINSOCK2_H
13667 #include <winsock2.h>
13668 #endif
13670 main ()
13672 int x = AF_INET6; struct in6_addr y; struct sockaddr_in6 z;
13674 return 0;
13676 _ACEOF
13677 rm -f conftest.$ac_objext
13678 if { (ac_try="$ac_compile"
13679 case "(($ac_try" in
13680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13681 *) ac_try_echo=$ac_try;;
13682 esac
13683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13684 (eval "$ac_compile") 2>conftest.er1
13685 ac_status=$?
13686 grep -v '^ *+' conftest.er1 >conftest.err
13687 rm -f conftest.er1
13688 cat conftest.err >&5
13689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13690 (exit $ac_status); } &&
13691 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13692 { (case "(($ac_try" in
13693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13694 *) ac_try_echo=$ac_try;;
13695 esac
13696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13697 (eval "$ac_try") 2>&5
13698 ac_status=$?
13699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13700 (exit $ac_status); }; } &&
13701 { ac_try='test -s conftest.$ac_objext'
13702 { (case "(($ac_try" in
13703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13704 *) ac_try_echo=$ac_try;;
13705 esac
13706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13707 (eval "$ac_try") 2>&5
13708 ac_status=$?
13709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13710 (exit $ac_status); }; }; then
13711 gl_cv_socket_ipv6=yes
13712 else
13713 echo "$as_me: failed program was:" >&5
13714 sed 's/^/| /' conftest.$ac_ext >&5
13716 gl_cv_socket_ipv6=no
13719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13722 { echo "$as_me:$LINENO: result: $gl_cv_socket_ipv6" >&5
13723 echo "${ECHO_T}$gl_cv_socket_ipv6" >&6; }
13724 if test $gl_cv_socket_ipv6 = yes; then
13726 cat >>confdefs.h <<\_ACEOF
13727 #define HAVE_IPV6 1
13728 _ACEOF
13735 { echo "$as_me:$LINENO: checking how to do getaddrinfo, freeaddrinfo and getnameinfo" >&5
13736 echo "$as_me: checking how to do getaddrinfo, freeaddrinfo and getnameinfo" >&6;}
13738 { echo "$as_me:$LINENO: checking for library containing getaddrinfo" >&5
13739 echo $ECHO_N "checking for library containing getaddrinfo... $ECHO_C" >&6; }
13740 if test "${ac_cv_search_getaddrinfo+set}" = set; then
13741 echo $ECHO_N "(cached) $ECHO_C" >&6
13742 else
13743 ac_func_search_save_LIBS=$LIBS
13744 cat >conftest.$ac_ext <<_ACEOF
13745 /* confdefs.h. */
13746 _ACEOF
13747 cat confdefs.h >>conftest.$ac_ext
13748 cat >>conftest.$ac_ext <<_ACEOF
13749 /* end confdefs.h. */
13751 /* Override any GCC internal prototype to avoid an error.
13752 Use char because int might match the return type of a GCC
13753 builtin and then its argument prototype would still apply. */
13754 #ifdef __cplusplus
13755 extern "C"
13756 #endif
13757 char getaddrinfo ();
13759 main ()
13761 return getaddrinfo ();
13763 return 0;
13765 _ACEOF
13766 for ac_lib in '' nsl socket; do
13767 if test -z "$ac_lib"; then
13768 ac_res="none required"
13769 else
13770 ac_res=-l$ac_lib
13771 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13773 rm -f conftest.$ac_objext conftest$ac_exeext
13774 if { (ac_try="$ac_link"
13775 case "(($ac_try" in
13776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13777 *) ac_try_echo=$ac_try;;
13778 esac
13779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13780 (eval "$ac_link") 2>conftest.er1
13781 ac_status=$?
13782 grep -v '^ *+' conftest.er1 >conftest.err
13783 rm -f conftest.er1
13784 cat conftest.err >&5
13785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13786 (exit $ac_status); } &&
13787 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13788 { (case "(($ac_try" in
13789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13790 *) ac_try_echo=$ac_try;;
13791 esac
13792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13793 (eval "$ac_try") 2>&5
13794 ac_status=$?
13795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13796 (exit $ac_status); }; } &&
13797 { ac_try='test -s conftest$ac_exeext'
13798 { (case "(($ac_try" in
13799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13800 *) ac_try_echo=$ac_try;;
13801 esac
13802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13803 (eval "$ac_try") 2>&5
13804 ac_status=$?
13805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13806 (exit $ac_status); }; }; then
13807 ac_cv_search_getaddrinfo=$ac_res
13808 else
13809 echo "$as_me: failed program was:" >&5
13810 sed 's/^/| /' conftest.$ac_ext >&5
13815 rm -f core conftest.err conftest.$ac_objext \
13816 conftest$ac_exeext
13817 if test "${ac_cv_search_getaddrinfo+set}" = set; then
13818 break
13820 done
13821 if test "${ac_cv_search_getaddrinfo+set}" = set; then
13823 else
13824 ac_cv_search_getaddrinfo=no
13826 rm conftest.$ac_ext
13827 LIBS=$ac_func_search_save_LIBS
13829 { echo "$as_me:$LINENO: result: $ac_cv_search_getaddrinfo" >&5
13830 echo "${ECHO_T}$ac_cv_search_getaddrinfo" >&6; }
13831 ac_res=$ac_cv_search_getaddrinfo
13832 if test "$ac_res" != no; then
13833 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13838 for ac_func in getaddrinfo
13840 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13841 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13842 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13843 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13844 echo $ECHO_N "(cached) $ECHO_C" >&6
13845 else
13846 cat >conftest.$ac_ext <<_ACEOF
13847 /* confdefs.h. */
13848 _ACEOF
13849 cat confdefs.h >>conftest.$ac_ext
13850 cat >>conftest.$ac_ext <<_ACEOF
13851 /* end confdefs.h. */
13852 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13853 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13854 #define $ac_func innocuous_$ac_func
13856 /* System header to define __stub macros and hopefully few prototypes,
13857 which can conflict with char $ac_func (); below.
13858 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13859 <limits.h> exists even on freestanding compilers. */
13861 #ifdef __STDC__
13862 # include <limits.h>
13863 #else
13864 # include <assert.h>
13865 #endif
13867 #undef $ac_func
13869 /* Override any GCC internal prototype to avoid an error.
13870 Use char because int might match the return type of a GCC
13871 builtin and then its argument prototype would still apply. */
13872 #ifdef __cplusplus
13873 extern "C"
13874 #endif
13875 char $ac_func ();
13876 /* The GNU C library defines this for functions which it implements
13877 to always fail with ENOSYS. Some functions are actually named
13878 something starting with __ and the normal name is an alias. */
13879 #if defined __stub_$ac_func || defined __stub___$ac_func
13880 choke me
13881 #endif
13884 main ()
13886 return $ac_func ();
13888 return 0;
13890 _ACEOF
13891 rm -f conftest.$ac_objext conftest$ac_exeext
13892 if { (ac_try="$ac_link"
13893 case "(($ac_try" in
13894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13895 *) ac_try_echo=$ac_try;;
13896 esac
13897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13898 (eval "$ac_link") 2>conftest.er1
13899 ac_status=$?
13900 grep -v '^ *+' conftest.er1 >conftest.err
13901 rm -f conftest.er1
13902 cat conftest.err >&5
13903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13904 (exit $ac_status); } &&
13905 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13906 { (case "(($ac_try" in
13907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13908 *) ac_try_echo=$ac_try;;
13909 esac
13910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13911 (eval "$ac_try") 2>&5
13912 ac_status=$?
13913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13914 (exit $ac_status); }; } &&
13915 { ac_try='test -s conftest$ac_exeext'
13916 { (case "(($ac_try" in
13917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13918 *) ac_try_echo=$ac_try;;
13919 esac
13920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13921 (eval "$ac_try") 2>&5
13922 ac_status=$?
13923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13924 (exit $ac_status); }; }; then
13925 eval "$as_ac_var=yes"
13926 else
13927 echo "$as_me: failed program was:" >&5
13928 sed 's/^/| /' conftest.$ac_ext >&5
13930 eval "$as_ac_var=no"
13933 rm -f core conftest.err conftest.$ac_objext \
13934 conftest$ac_exeext conftest.$ac_ext
13936 ac_res=`eval echo '${'$as_ac_var'}'`
13937 { echo "$as_me:$LINENO: result: $ac_res" >&5
13938 echo "${ECHO_T}$ac_res" >&6; }
13939 if test `eval echo '${'$as_ac_var'}'` = yes; then
13940 cat >>confdefs.h <<_ACEOF
13941 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13942 _ACEOF
13944 else
13946 { echo "$as_me:$LINENO: checking for getaddrinfo in ws2tcpip.h and -lws2_32" >&5
13947 echo $ECHO_N "checking for getaddrinfo in ws2tcpip.h and -lws2_32... $ECHO_C" >&6; }
13948 if test "${gl_cv_w32_getaddrinfo+set}" = set; then
13949 echo $ECHO_N "(cached) $ECHO_C" >&6
13950 else
13952 gl_cv_w32_getaddrinfo=no
13953 am_save_LIBS="$LIBS"
13954 LIBS="$LIBS -lws2_32"
13955 cat >conftest.$ac_ext <<_ACEOF
13956 /* confdefs.h. */
13957 _ACEOF
13958 cat confdefs.h >>conftest.$ac_ext
13959 cat >>conftest.$ac_ext <<_ACEOF
13960 /* end confdefs.h. */
13962 #ifdef HAVE_WS2TCPIP_H
13963 #include <ws2tcpip.h>
13964 #endif
13967 main ()
13969 getaddrinfo(0, 0, 0, 0);
13971 return 0;
13973 _ACEOF
13974 rm -f conftest.$ac_objext conftest$ac_exeext
13975 if { (ac_try="$ac_link"
13976 case "(($ac_try" in
13977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13978 *) ac_try_echo=$ac_try;;
13979 esac
13980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13981 (eval "$ac_link") 2>conftest.er1
13982 ac_status=$?
13983 grep -v '^ *+' conftest.er1 >conftest.err
13984 rm -f conftest.er1
13985 cat conftest.err >&5
13986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13987 (exit $ac_status); } &&
13988 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13989 { (case "(($ac_try" in
13990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13991 *) ac_try_echo=$ac_try;;
13992 esac
13993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13994 (eval "$ac_try") 2>&5
13995 ac_status=$?
13996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13997 (exit $ac_status); }; } &&
13998 { ac_try='test -s conftest$ac_exeext'
13999 { (case "(($ac_try" in
14000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14001 *) ac_try_echo=$ac_try;;
14002 esac
14003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14004 (eval "$ac_try") 2>&5
14005 ac_status=$?
14006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14007 (exit $ac_status); }; }; then
14008 gl_cv_w32_getaddrinfo=yes
14009 else
14010 echo "$as_me: failed program was:" >&5
14011 sed 's/^/| /' conftest.$ac_ext >&5
14016 rm -f core conftest.err conftest.$ac_objext \
14017 conftest$ac_exeext conftest.$ac_ext
14018 LIBS="$am_save_LIBS"
14020 { echo "$as_me:$LINENO: result: $gl_cv_w32_getaddrinfo" >&5
14021 echo "${ECHO_T}$gl_cv_w32_getaddrinfo" >&6; }
14022 if test "$gl_cv_w32_getaddrinfo" = "yes"; then
14023 LIBS="$LIBS -lws2_32"
14024 else
14025 case " $LIBOBJS " in
14026 *" getaddrinfo.$ac_objext "* ) ;;
14027 *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
14029 esac
14034 done
14038 for ac_func in gai_strerror
14040 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14041 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14042 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14043 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14044 echo $ECHO_N "(cached) $ECHO_C" >&6
14045 else
14046 cat >conftest.$ac_ext <<_ACEOF
14047 /* confdefs.h. */
14048 _ACEOF
14049 cat confdefs.h >>conftest.$ac_ext
14050 cat >>conftest.$ac_ext <<_ACEOF
14051 /* end confdefs.h. */
14052 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14053 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14054 #define $ac_func innocuous_$ac_func
14056 /* System header to define __stub macros and hopefully few prototypes,
14057 which can conflict with char $ac_func (); below.
14058 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14059 <limits.h> exists even on freestanding compilers. */
14061 #ifdef __STDC__
14062 # include <limits.h>
14063 #else
14064 # include <assert.h>
14065 #endif
14067 #undef $ac_func
14069 /* Override any GCC internal prototype to avoid an error.
14070 Use char because int might match the return type of a GCC
14071 builtin and then its argument prototype would still apply. */
14072 #ifdef __cplusplus
14073 extern "C"
14074 #endif
14075 char $ac_func ();
14076 /* The GNU C library defines this for functions which it implements
14077 to always fail with ENOSYS. Some functions are actually named
14078 something starting with __ and the normal name is an alias. */
14079 #if defined __stub_$ac_func || defined __stub___$ac_func
14080 choke me
14081 #endif
14084 main ()
14086 return $ac_func ();
14088 return 0;
14090 _ACEOF
14091 rm -f conftest.$ac_objext conftest$ac_exeext
14092 if { (ac_try="$ac_link"
14093 case "(($ac_try" in
14094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14095 *) ac_try_echo=$ac_try;;
14096 esac
14097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14098 (eval "$ac_link") 2>conftest.er1
14099 ac_status=$?
14100 grep -v '^ *+' conftest.er1 >conftest.err
14101 rm -f conftest.er1
14102 cat conftest.err >&5
14103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14104 (exit $ac_status); } &&
14105 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14106 { (case "(($ac_try" in
14107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14108 *) ac_try_echo=$ac_try;;
14109 esac
14110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14111 (eval "$ac_try") 2>&5
14112 ac_status=$?
14113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14114 (exit $ac_status); }; } &&
14115 { ac_try='test -s conftest$ac_exeext'
14116 { (case "(($ac_try" in
14117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14118 *) ac_try_echo=$ac_try;;
14119 esac
14120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14121 (eval "$ac_try") 2>&5
14122 ac_status=$?
14123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14124 (exit $ac_status); }; }; then
14125 eval "$as_ac_var=yes"
14126 else
14127 echo "$as_me: failed program was:" >&5
14128 sed 's/^/| /' conftest.$ac_ext >&5
14130 eval "$as_ac_var=no"
14133 rm -f core conftest.err conftest.$ac_objext \
14134 conftest$ac_exeext conftest.$ac_ext
14136 ac_res=`eval echo '${'$as_ac_var'}'`
14137 { echo "$as_me:$LINENO: result: $ac_res" >&5
14138 echo "${ECHO_T}$ac_res" >&6; }
14139 if test `eval echo '${'$as_ac_var'}'` = yes; then
14140 cat >>confdefs.h <<_ACEOF
14141 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14142 _ACEOF
14144 else
14145 case " $LIBOBJS " in
14146 *" $ac_func.$ac_objext "* ) ;;
14147 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
14149 esac
14152 done
14156 { echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
14157 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6; }
14158 if test "${ac_cv_search_gethostbyname+set}" = set; then
14159 echo $ECHO_N "(cached) $ECHO_C" >&6
14160 else
14161 ac_func_search_save_LIBS=$LIBS
14162 cat >conftest.$ac_ext <<_ACEOF
14163 /* confdefs.h. */
14164 _ACEOF
14165 cat confdefs.h >>conftest.$ac_ext
14166 cat >>conftest.$ac_ext <<_ACEOF
14167 /* end confdefs.h. */
14169 /* Override any GCC internal prototype to avoid an error.
14170 Use char because int might match the return type of a GCC
14171 builtin and then its argument prototype would still apply. */
14172 #ifdef __cplusplus
14173 extern "C"
14174 #endif
14175 char gethostbyname ();
14177 main ()
14179 return gethostbyname ();
14181 return 0;
14183 _ACEOF
14184 for ac_lib in '' inet nsl; do
14185 if test -z "$ac_lib"; then
14186 ac_res="none required"
14187 else
14188 ac_res=-l$ac_lib
14189 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14191 rm -f conftest.$ac_objext conftest$ac_exeext
14192 if { (ac_try="$ac_link"
14193 case "(($ac_try" in
14194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14195 *) ac_try_echo=$ac_try;;
14196 esac
14197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14198 (eval "$ac_link") 2>conftest.er1
14199 ac_status=$?
14200 grep -v '^ *+' conftest.er1 >conftest.err
14201 rm -f conftest.er1
14202 cat conftest.err >&5
14203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14204 (exit $ac_status); } &&
14205 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14206 { (case "(($ac_try" in
14207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14208 *) ac_try_echo=$ac_try;;
14209 esac
14210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14211 (eval "$ac_try") 2>&5
14212 ac_status=$?
14213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14214 (exit $ac_status); }; } &&
14215 { ac_try='test -s conftest$ac_exeext'
14216 { (case "(($ac_try" in
14217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14218 *) ac_try_echo=$ac_try;;
14219 esac
14220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14221 (eval "$ac_try") 2>&5
14222 ac_status=$?
14223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14224 (exit $ac_status); }; }; then
14225 ac_cv_search_gethostbyname=$ac_res
14226 else
14227 echo "$as_me: failed program was:" >&5
14228 sed 's/^/| /' conftest.$ac_ext >&5
14233 rm -f core conftest.err conftest.$ac_objext \
14234 conftest$ac_exeext
14235 if test "${ac_cv_search_gethostbyname+set}" = set; then
14236 break
14238 done
14239 if test "${ac_cv_search_gethostbyname+set}" = set; then
14241 else
14242 ac_cv_search_gethostbyname=no
14244 rm conftest.$ac_ext
14245 LIBS=$ac_func_search_save_LIBS
14247 { echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
14248 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6; }
14249 ac_res=$ac_cv_search_gethostbyname
14250 if test "$ac_res" != no; then
14251 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14255 { echo "$as_me:$LINENO: checking for library containing getservbyname" >&5
14256 echo $ECHO_N "checking for library containing getservbyname... $ECHO_C" >&6; }
14257 if test "${ac_cv_search_getservbyname+set}" = set; then
14258 echo $ECHO_N "(cached) $ECHO_C" >&6
14259 else
14260 ac_func_search_save_LIBS=$LIBS
14261 cat >conftest.$ac_ext <<_ACEOF
14262 /* confdefs.h. */
14263 _ACEOF
14264 cat confdefs.h >>conftest.$ac_ext
14265 cat >>conftest.$ac_ext <<_ACEOF
14266 /* end confdefs.h. */
14268 /* Override any GCC internal prototype to avoid an error.
14269 Use char because int might match the return type of a GCC
14270 builtin and then its argument prototype would still apply. */
14271 #ifdef __cplusplus
14272 extern "C"
14273 #endif
14274 char getservbyname ();
14276 main ()
14278 return getservbyname ();
14280 return 0;
14282 _ACEOF
14283 for ac_lib in '' inet nsl socket xnet; do
14284 if test -z "$ac_lib"; then
14285 ac_res="none required"
14286 else
14287 ac_res=-l$ac_lib
14288 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14290 rm -f conftest.$ac_objext conftest$ac_exeext
14291 if { (ac_try="$ac_link"
14292 case "(($ac_try" in
14293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14294 *) ac_try_echo=$ac_try;;
14295 esac
14296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14297 (eval "$ac_link") 2>conftest.er1
14298 ac_status=$?
14299 grep -v '^ *+' conftest.er1 >conftest.err
14300 rm -f conftest.er1
14301 cat conftest.err >&5
14302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14303 (exit $ac_status); } &&
14304 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14305 { (case "(($ac_try" in
14306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14307 *) ac_try_echo=$ac_try;;
14308 esac
14309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14310 (eval "$ac_try") 2>&5
14311 ac_status=$?
14312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14313 (exit $ac_status); }; } &&
14314 { ac_try='test -s conftest$ac_exeext'
14315 { (case "(($ac_try" in
14316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14317 *) ac_try_echo=$ac_try;;
14318 esac
14319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14320 (eval "$ac_try") 2>&5
14321 ac_status=$?
14322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14323 (exit $ac_status); }; }; then
14324 ac_cv_search_getservbyname=$ac_res
14325 else
14326 echo "$as_me: failed program was:" >&5
14327 sed 's/^/| /' conftest.$ac_ext >&5
14332 rm -f core conftest.err conftest.$ac_objext \
14333 conftest$ac_exeext
14334 if test "${ac_cv_search_getservbyname+set}" = set; then
14335 break
14337 done
14338 if test "${ac_cv_search_getservbyname+set}" = set; then
14340 else
14341 ac_cv_search_getservbyname=no
14343 rm conftest.$ac_ext
14344 LIBS=$ac_func_search_save_LIBS
14346 { echo "$as_me:$LINENO: result: $ac_cv_search_getservbyname" >&5
14347 echo "${ECHO_T}$ac_cv_search_getservbyname" >&6; }
14348 ac_res=$ac_cv_search_getservbyname
14349 if test "$ac_res" != no; then
14350 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14355 for ac_func in gethostbyname
14357 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14358 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14359 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14360 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14361 echo $ECHO_N "(cached) $ECHO_C" >&6
14362 else
14363 cat >conftest.$ac_ext <<_ACEOF
14364 /* confdefs.h. */
14365 _ACEOF
14366 cat confdefs.h >>conftest.$ac_ext
14367 cat >>conftest.$ac_ext <<_ACEOF
14368 /* end confdefs.h. */
14369 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14370 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14371 #define $ac_func innocuous_$ac_func
14373 /* System header to define __stub macros and hopefully few prototypes,
14374 which can conflict with char $ac_func (); below.
14375 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14376 <limits.h> exists even on freestanding compilers. */
14378 #ifdef __STDC__
14379 # include <limits.h>
14380 #else
14381 # include <assert.h>
14382 #endif
14384 #undef $ac_func
14386 /* Override any GCC internal prototype to avoid an error.
14387 Use char because int might match the return type of a GCC
14388 builtin and then its argument prototype would still apply. */
14389 #ifdef __cplusplus
14390 extern "C"
14391 #endif
14392 char $ac_func ();
14393 /* The GNU C library defines this for functions which it implements
14394 to always fail with ENOSYS. Some functions are actually named
14395 something starting with __ and the normal name is an alias. */
14396 #if defined __stub_$ac_func || defined __stub___$ac_func
14397 choke me
14398 #endif
14401 main ()
14403 return $ac_func ();
14405 return 0;
14407 _ACEOF
14408 rm -f conftest.$ac_objext conftest$ac_exeext
14409 if { (ac_try="$ac_link"
14410 case "(($ac_try" in
14411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14412 *) ac_try_echo=$ac_try;;
14413 esac
14414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14415 (eval "$ac_link") 2>conftest.er1
14416 ac_status=$?
14417 grep -v '^ *+' conftest.er1 >conftest.err
14418 rm -f conftest.er1
14419 cat conftest.err >&5
14420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14421 (exit $ac_status); } &&
14422 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14423 { (case "(($ac_try" in
14424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14425 *) ac_try_echo=$ac_try;;
14426 esac
14427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14428 (eval "$ac_try") 2>&5
14429 ac_status=$?
14430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14431 (exit $ac_status); }; } &&
14432 { ac_try='test -s conftest$ac_exeext'
14433 { (case "(($ac_try" in
14434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14435 *) ac_try_echo=$ac_try;;
14436 esac
14437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14438 (eval "$ac_try") 2>&5
14439 ac_status=$?
14440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14441 (exit $ac_status); }; }; then
14442 eval "$as_ac_var=yes"
14443 else
14444 echo "$as_me: failed program was:" >&5
14445 sed 's/^/| /' conftest.$ac_ext >&5
14447 eval "$as_ac_var=no"
14450 rm -f core conftest.err conftest.$ac_objext \
14451 conftest$ac_exeext conftest.$ac_ext
14453 ac_res=`eval echo '${'$as_ac_var'}'`
14454 { echo "$as_me:$LINENO: result: $ac_res" >&5
14455 echo "${ECHO_T}$ac_res" >&6; }
14456 if test `eval echo '${'$as_ac_var'}'` = yes; then
14457 cat >>confdefs.h <<_ACEOF
14458 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14459 _ACEOF
14461 else
14463 { echo "$as_me:$LINENO: checking for gethostbyname in winsock2.h and -lws2_32" >&5
14464 echo $ECHO_N "checking for gethostbyname in winsock2.h and -lws2_32... $ECHO_C" >&6; }
14465 if test "${gl_cv_w32_gethostbyname+set}" = set; then
14466 echo $ECHO_N "(cached) $ECHO_C" >&6
14467 else
14469 gl_cv_w32_gethostbyname=no
14470 am_save_LIBS="$LIBS"
14471 LIBS="$LIBS -lws2_32"
14472 cat >conftest.$ac_ext <<_ACEOF
14473 /* confdefs.h. */
14474 _ACEOF
14475 cat confdefs.h >>conftest.$ac_ext
14476 cat >>conftest.$ac_ext <<_ACEOF
14477 /* end confdefs.h. */
14479 #ifdef HAVE_WINSOCK2_H
14480 #include <winsock2.h>
14481 #endif
14484 main ()
14486 gethostbyname(0);
14488 return 0;
14490 _ACEOF
14491 rm -f conftest.$ac_objext conftest$ac_exeext
14492 if { (ac_try="$ac_link"
14493 case "(($ac_try" in
14494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14495 *) ac_try_echo=$ac_try;;
14496 esac
14497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14498 (eval "$ac_link") 2>conftest.er1
14499 ac_status=$?
14500 grep -v '^ *+' conftest.er1 >conftest.err
14501 rm -f conftest.er1
14502 cat conftest.err >&5
14503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14504 (exit $ac_status); } &&
14505 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14506 { (case "(($ac_try" in
14507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14508 *) ac_try_echo=$ac_try;;
14509 esac
14510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14511 (eval "$ac_try") 2>&5
14512 ac_status=$?
14513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14514 (exit $ac_status); }; } &&
14515 { ac_try='test -s conftest$ac_exeext'
14516 { (case "(($ac_try" in
14517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14518 *) ac_try_echo=$ac_try;;
14519 esac
14520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14521 (eval "$ac_try") 2>&5
14522 ac_status=$?
14523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14524 (exit $ac_status); }; }; then
14525 gl_cv_w32_gethostbyname=yes
14526 else
14527 echo "$as_me: failed program was:" >&5
14528 sed 's/^/| /' conftest.$ac_ext >&5
14533 rm -f core conftest.err conftest.$ac_objext \
14534 conftest$ac_exeext conftest.$ac_ext
14535 LIBS="$am_save_LIBS"
14537 { echo "$as_me:$LINENO: result: $gl_cv_w32_gethostbyname" >&5
14538 echo "${ECHO_T}$gl_cv_w32_gethostbyname" >&6; }
14539 if test "$gl_cv_w32_gethostbyname" = "yes"; then
14540 LIBS="$LIBS -lws2_32"
14544 done
14559 { echo "$as_me:$LINENO: checking whether getaddrinfo is declared" >&5
14560 echo $ECHO_N "checking whether getaddrinfo is declared... $ECHO_C" >&6; }
14561 if test "${ac_cv_have_decl_getaddrinfo+set}" = set; then
14562 echo $ECHO_N "(cached) $ECHO_C" >&6
14563 else
14564 cat >conftest.$ac_ext <<_ACEOF
14565 /* confdefs.h. */
14566 _ACEOF
14567 cat confdefs.h >>conftest.$ac_ext
14568 cat >>conftest.$ac_ext <<_ACEOF
14569 /* end confdefs.h. */
14571 /* sys/types.h is not needed according to POSIX, but the
14572 sys/socket.h in i386-unknown-freebsd4.10 and
14573 powerpc-apple-darwin5.5 required it. */
14574 #include <sys/types.h>
14575 #ifdef HAVE_SYS_SOCKET_H
14576 #include <sys/socket.h>
14577 #endif
14578 #ifdef HAVE_NETDB_H
14579 #include <netdb.h>
14580 #endif
14581 #ifdef HAVE_WS2TCPIP_H
14582 #include <ws2tcpip.h>
14583 #endif
14587 main ()
14589 #ifndef getaddrinfo
14590 char *p = (char *) getaddrinfo;
14591 return !p;
14592 #endif
14595 return 0;
14597 _ACEOF
14598 rm -f conftest.$ac_objext
14599 if { (ac_try="$ac_compile"
14600 case "(($ac_try" in
14601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14602 *) ac_try_echo=$ac_try;;
14603 esac
14604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14605 (eval "$ac_compile") 2>conftest.er1
14606 ac_status=$?
14607 grep -v '^ *+' conftest.er1 >conftest.err
14608 rm -f conftest.er1
14609 cat conftest.err >&5
14610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14611 (exit $ac_status); } &&
14612 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14613 { (case "(($ac_try" in
14614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14615 *) ac_try_echo=$ac_try;;
14616 esac
14617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14618 (eval "$ac_try") 2>&5
14619 ac_status=$?
14620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14621 (exit $ac_status); }; } &&
14622 { ac_try='test -s conftest.$ac_objext'
14623 { (case "(($ac_try" in
14624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14625 *) ac_try_echo=$ac_try;;
14626 esac
14627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14628 (eval "$ac_try") 2>&5
14629 ac_status=$?
14630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14631 (exit $ac_status); }; }; then
14632 ac_cv_have_decl_getaddrinfo=yes
14633 else
14634 echo "$as_me: failed program was:" >&5
14635 sed 's/^/| /' conftest.$ac_ext >&5
14637 ac_cv_have_decl_getaddrinfo=no
14640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14642 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getaddrinfo" >&5
14643 echo "${ECHO_T}$ac_cv_have_decl_getaddrinfo" >&6; }
14644 if test $ac_cv_have_decl_getaddrinfo = yes; then
14646 cat >>confdefs.h <<_ACEOF
14647 #define HAVE_DECL_GETADDRINFO 1
14648 _ACEOF
14651 else
14652 cat >>confdefs.h <<_ACEOF
14653 #define HAVE_DECL_GETADDRINFO 0
14654 _ACEOF
14658 { echo "$as_me:$LINENO: checking whether freeaddrinfo is declared" >&5
14659 echo $ECHO_N "checking whether freeaddrinfo is declared... $ECHO_C" >&6; }
14660 if test "${ac_cv_have_decl_freeaddrinfo+set}" = set; then
14661 echo $ECHO_N "(cached) $ECHO_C" >&6
14662 else
14663 cat >conftest.$ac_ext <<_ACEOF
14664 /* confdefs.h. */
14665 _ACEOF
14666 cat confdefs.h >>conftest.$ac_ext
14667 cat >>conftest.$ac_ext <<_ACEOF
14668 /* end confdefs.h. */
14670 /* sys/types.h is not needed according to POSIX, but the
14671 sys/socket.h in i386-unknown-freebsd4.10 and
14672 powerpc-apple-darwin5.5 required it. */
14673 #include <sys/types.h>
14674 #ifdef HAVE_SYS_SOCKET_H
14675 #include <sys/socket.h>
14676 #endif
14677 #ifdef HAVE_NETDB_H
14678 #include <netdb.h>
14679 #endif
14680 #ifdef HAVE_WS2TCPIP_H
14681 #include <ws2tcpip.h>
14682 #endif
14686 main ()
14688 #ifndef freeaddrinfo
14689 char *p = (char *) freeaddrinfo;
14690 return !p;
14691 #endif
14694 return 0;
14696 _ACEOF
14697 rm -f conftest.$ac_objext
14698 if { (ac_try="$ac_compile"
14699 case "(($ac_try" in
14700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14701 *) ac_try_echo=$ac_try;;
14702 esac
14703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14704 (eval "$ac_compile") 2>conftest.er1
14705 ac_status=$?
14706 grep -v '^ *+' conftest.er1 >conftest.err
14707 rm -f conftest.er1
14708 cat conftest.err >&5
14709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14710 (exit $ac_status); } &&
14711 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14712 { (case "(($ac_try" in
14713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14714 *) ac_try_echo=$ac_try;;
14715 esac
14716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14717 (eval "$ac_try") 2>&5
14718 ac_status=$?
14719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14720 (exit $ac_status); }; } &&
14721 { ac_try='test -s conftest.$ac_objext'
14722 { (case "(($ac_try" in
14723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14724 *) ac_try_echo=$ac_try;;
14725 esac
14726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14727 (eval "$ac_try") 2>&5
14728 ac_status=$?
14729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14730 (exit $ac_status); }; }; then
14731 ac_cv_have_decl_freeaddrinfo=yes
14732 else
14733 echo "$as_me: failed program was:" >&5
14734 sed 's/^/| /' conftest.$ac_ext >&5
14736 ac_cv_have_decl_freeaddrinfo=no
14739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14741 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_freeaddrinfo" >&5
14742 echo "${ECHO_T}$ac_cv_have_decl_freeaddrinfo" >&6; }
14743 if test $ac_cv_have_decl_freeaddrinfo = yes; then
14745 cat >>confdefs.h <<_ACEOF
14746 #define HAVE_DECL_FREEADDRINFO 1
14747 _ACEOF
14750 else
14751 cat >>confdefs.h <<_ACEOF
14752 #define HAVE_DECL_FREEADDRINFO 0
14753 _ACEOF
14757 { echo "$as_me:$LINENO: checking whether gai_strerror is declared" >&5
14758 echo $ECHO_N "checking whether gai_strerror is declared... $ECHO_C" >&6; }
14759 if test "${ac_cv_have_decl_gai_strerror+set}" = set; then
14760 echo $ECHO_N "(cached) $ECHO_C" >&6
14761 else
14762 cat >conftest.$ac_ext <<_ACEOF
14763 /* confdefs.h. */
14764 _ACEOF
14765 cat confdefs.h >>conftest.$ac_ext
14766 cat >>conftest.$ac_ext <<_ACEOF
14767 /* end confdefs.h. */
14769 /* sys/types.h is not needed according to POSIX, but the
14770 sys/socket.h in i386-unknown-freebsd4.10 and
14771 powerpc-apple-darwin5.5 required it. */
14772 #include <sys/types.h>
14773 #ifdef HAVE_SYS_SOCKET_H
14774 #include <sys/socket.h>
14775 #endif
14776 #ifdef HAVE_NETDB_H
14777 #include <netdb.h>
14778 #endif
14779 #ifdef HAVE_WS2TCPIP_H
14780 #include <ws2tcpip.h>
14781 #endif
14785 main ()
14787 #ifndef gai_strerror
14788 char *p = (char *) gai_strerror;
14789 return !p;
14790 #endif
14793 return 0;
14795 _ACEOF
14796 rm -f conftest.$ac_objext
14797 if { (ac_try="$ac_compile"
14798 case "(($ac_try" in
14799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14800 *) ac_try_echo=$ac_try;;
14801 esac
14802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14803 (eval "$ac_compile") 2>conftest.er1
14804 ac_status=$?
14805 grep -v '^ *+' conftest.er1 >conftest.err
14806 rm -f conftest.er1
14807 cat conftest.err >&5
14808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14809 (exit $ac_status); } &&
14810 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14811 { (case "(($ac_try" in
14812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14813 *) ac_try_echo=$ac_try;;
14814 esac
14815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14816 (eval "$ac_try") 2>&5
14817 ac_status=$?
14818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14819 (exit $ac_status); }; } &&
14820 { ac_try='test -s conftest.$ac_objext'
14821 { (case "(($ac_try" in
14822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14823 *) ac_try_echo=$ac_try;;
14824 esac
14825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14826 (eval "$ac_try") 2>&5
14827 ac_status=$?
14828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14829 (exit $ac_status); }; }; then
14830 ac_cv_have_decl_gai_strerror=yes
14831 else
14832 echo "$as_me: failed program was:" >&5
14833 sed 's/^/| /' conftest.$ac_ext >&5
14835 ac_cv_have_decl_gai_strerror=no
14838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14840 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_gai_strerror" >&5
14841 echo "${ECHO_T}$ac_cv_have_decl_gai_strerror" >&6; }
14842 if test $ac_cv_have_decl_gai_strerror = yes; then
14844 cat >>confdefs.h <<_ACEOF
14845 #define HAVE_DECL_GAI_STRERROR 1
14846 _ACEOF
14849 else
14850 cat >>confdefs.h <<_ACEOF
14851 #define HAVE_DECL_GAI_STRERROR 0
14852 _ACEOF
14856 { echo "$as_me:$LINENO: checking whether getnameinfo is declared" >&5
14857 echo $ECHO_N "checking whether getnameinfo is declared... $ECHO_C" >&6; }
14858 if test "${ac_cv_have_decl_getnameinfo+set}" = set; then
14859 echo $ECHO_N "(cached) $ECHO_C" >&6
14860 else
14861 cat >conftest.$ac_ext <<_ACEOF
14862 /* confdefs.h. */
14863 _ACEOF
14864 cat confdefs.h >>conftest.$ac_ext
14865 cat >>conftest.$ac_ext <<_ACEOF
14866 /* end confdefs.h. */
14868 /* sys/types.h is not needed according to POSIX, but the
14869 sys/socket.h in i386-unknown-freebsd4.10 and
14870 powerpc-apple-darwin5.5 required it. */
14871 #include <sys/types.h>
14872 #ifdef HAVE_SYS_SOCKET_H
14873 #include <sys/socket.h>
14874 #endif
14875 #ifdef HAVE_NETDB_H
14876 #include <netdb.h>
14877 #endif
14878 #ifdef HAVE_WS2TCPIP_H
14879 #include <ws2tcpip.h>
14880 #endif
14884 main ()
14886 #ifndef getnameinfo
14887 char *p = (char *) getnameinfo;
14888 return !p;
14889 #endif
14892 return 0;
14894 _ACEOF
14895 rm -f conftest.$ac_objext
14896 if { (ac_try="$ac_compile"
14897 case "(($ac_try" in
14898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14899 *) ac_try_echo=$ac_try;;
14900 esac
14901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14902 (eval "$ac_compile") 2>conftest.er1
14903 ac_status=$?
14904 grep -v '^ *+' conftest.er1 >conftest.err
14905 rm -f conftest.er1
14906 cat conftest.err >&5
14907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14908 (exit $ac_status); } &&
14909 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14910 { (case "(($ac_try" in
14911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14912 *) ac_try_echo=$ac_try;;
14913 esac
14914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14915 (eval "$ac_try") 2>&5
14916 ac_status=$?
14917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14918 (exit $ac_status); }; } &&
14919 { ac_try='test -s conftest.$ac_objext'
14920 { (case "(($ac_try" in
14921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14922 *) ac_try_echo=$ac_try;;
14923 esac
14924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14925 (eval "$ac_try") 2>&5
14926 ac_status=$?
14927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14928 (exit $ac_status); }; }; then
14929 ac_cv_have_decl_getnameinfo=yes
14930 else
14931 echo "$as_me: failed program was:" >&5
14932 sed 's/^/| /' conftest.$ac_ext >&5
14934 ac_cv_have_decl_getnameinfo=no
14937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14939 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getnameinfo" >&5
14940 echo "${ECHO_T}$ac_cv_have_decl_getnameinfo" >&6; }
14941 if test $ac_cv_have_decl_getnameinfo = yes; then
14943 cat >>confdefs.h <<_ACEOF
14944 #define HAVE_DECL_GETNAMEINFO 1
14945 _ACEOF
14948 else
14949 cat >>confdefs.h <<_ACEOF
14950 #define HAVE_DECL_GETNAMEINFO 0
14951 _ACEOF
14957 { echo "$as_me:$LINENO: checking for struct addrinfo" >&5
14958 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6; }
14959 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
14960 echo $ECHO_N "(cached) $ECHO_C" >&6
14961 else
14962 cat >conftest.$ac_ext <<_ACEOF
14963 /* confdefs.h. */
14964 _ACEOF
14965 cat confdefs.h >>conftest.$ac_ext
14966 cat >>conftest.$ac_ext <<_ACEOF
14967 /* end confdefs.h. */
14969 #include <sys/types.h>
14970 #ifdef HAVE_SYS_SOCKET_H
14971 #include <sys/socket.h>
14972 #endif
14973 #ifdef HAVE_NETDB_H
14974 #include <netdb.h>
14975 #endif
14976 #ifdef HAVE_WS2TCPIP_H
14977 #include <ws2tcpip.h>
14978 #endif
14981 typedef struct addrinfo ac__type_new_;
14983 main ()
14985 if ((ac__type_new_ *) 0)
14986 return 0;
14987 if (sizeof (ac__type_new_))
14988 return 0;
14990 return 0;
14992 _ACEOF
14993 rm -f conftest.$ac_objext
14994 if { (ac_try="$ac_compile"
14995 case "(($ac_try" in
14996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14997 *) ac_try_echo=$ac_try;;
14998 esac
14999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15000 (eval "$ac_compile") 2>conftest.er1
15001 ac_status=$?
15002 grep -v '^ *+' conftest.er1 >conftest.err
15003 rm -f conftest.er1
15004 cat conftest.err >&5
15005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15006 (exit $ac_status); } &&
15007 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15008 { (case "(($ac_try" in
15009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15010 *) ac_try_echo=$ac_try;;
15011 esac
15012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15013 (eval "$ac_try") 2>&5
15014 ac_status=$?
15015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15016 (exit $ac_status); }; } &&
15017 { ac_try='test -s conftest.$ac_objext'
15018 { (case "(($ac_try" in
15019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15020 *) ac_try_echo=$ac_try;;
15021 esac
15022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15023 (eval "$ac_try") 2>&5
15024 ac_status=$?
15025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15026 (exit $ac_status); }; }; then
15027 ac_cv_type_struct_addrinfo=yes
15028 else
15029 echo "$as_me: failed program was:" >&5
15030 sed 's/^/| /' conftest.$ac_ext >&5
15032 ac_cv_type_struct_addrinfo=no
15035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15037 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
15038 echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6; }
15039 if test $ac_cv_type_struct_addrinfo = yes; then
15041 cat >>confdefs.h <<_ACEOF
15042 #define HAVE_STRUCT_ADDRINFO 1
15043 _ACEOF
15052 case " $LIBOBJS " in
15053 *" canon-host.$ac_objext "* ) ;;
15054 *) LIBOBJS="$LIBOBJS canon-host.$ac_objext"
15056 esac
15064 case " $LIBOBJS " in
15065 *" cloexec.$ac_objext "* ) ;;
15066 *) LIBOBJS="$LIBOBJS cloexec.$ac_objext"
15068 esac
15073 case " $LIBOBJS " in
15074 *" close-stream.$ac_objext "* ) ;;
15075 *) LIBOBJS="$LIBOBJS close-stream.$ac_objext"
15077 esac
15084 case " $LIBOBJS " in
15085 *" closeout.$ac_objext "* ) ;;
15086 *) LIBOBJS="$LIBOBJS closeout.$ac_objext"
15088 esac
15095 { echo "$as_me:$LINENO: checking whether // is distinct from /" >&5
15096 echo $ECHO_N "checking whether // is distinct from /... $ECHO_C" >&6; }
15097 if test "${ac_cv_double_slash_root+set}" = set; then
15098 echo $ECHO_N "(cached) $ECHO_C" >&6
15099 else
15100 if test x"$cross_compiling" = xyes ; then
15101 # When cross-compiling, there is no way to tell whether // is special
15102 # short of a list of hosts. However, the only known hosts to date
15103 # that have a distinct // are Apollo DomainOS (too old to port to)
15104 # and Cygwin. If anyone knows of another system for which // has
15105 # special semantics and is distinct from /, please report it to
15106 # <bug-coreutils@gnu.org>.
15107 case $host in
15108 *-cygwin)
15109 ac_cv_double_slash_root=yes ;;
15111 # Be optimistic and assume that / and // are the same when we
15112 # don't know.
15113 ac_cv_double_slash_root='unknown, assuming no' ;;
15114 esac
15115 else
15116 set x `ls -di / //`
15117 if test $2 = $4; then
15118 ac_cv_double_slash_root=no
15119 else
15120 ac_cv_double_slash_root=yes
15124 { echo "$as_me:$LINENO: result: $ac_cv_double_slash_root" >&5
15125 echo "${ECHO_T}$ac_cv_double_slash_root" >&6; }
15126 if test x"$ac_cv_double_slash_root" = xyes; then
15127 ac_double_slash_root=1
15128 else
15129 ac_double_slash_root=0
15133 cat >>confdefs.h <<_ACEOF
15134 #define DOUBLE_SLASH_IS_DISTINCT_ROOT $ac_double_slash_root
15135 _ACEOF
15140 case " $LIBOBJS " in
15141 *" dirname.$ac_objext "* ) ;;
15142 *) LIBOBJS="$LIBOBJS dirname.$ac_objext"
15144 esac
15151 { echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
15152 echo $ECHO_N "checking whether strerror_r is declared... $ECHO_C" >&6; }
15153 if test "${ac_cv_have_decl_strerror_r+set}" = set; then
15154 echo $ECHO_N "(cached) $ECHO_C" >&6
15155 else
15156 cat >conftest.$ac_ext <<_ACEOF
15157 /* confdefs.h. */
15158 _ACEOF
15159 cat confdefs.h >>conftest.$ac_ext
15160 cat >>conftest.$ac_ext <<_ACEOF
15161 /* end confdefs.h. */
15162 $ac_includes_default
15164 main ()
15166 #ifndef strerror_r
15167 char *p = (char *) strerror_r;
15168 return !p;
15169 #endif
15172 return 0;
15174 _ACEOF
15175 rm -f conftest.$ac_objext
15176 if { (ac_try="$ac_compile"
15177 case "(($ac_try" in
15178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15179 *) ac_try_echo=$ac_try;;
15180 esac
15181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15182 (eval "$ac_compile") 2>conftest.er1
15183 ac_status=$?
15184 grep -v '^ *+' conftest.er1 >conftest.err
15185 rm -f conftest.er1
15186 cat conftest.err >&5
15187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15188 (exit $ac_status); } &&
15189 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15190 { (case "(($ac_try" in
15191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15192 *) ac_try_echo=$ac_try;;
15193 esac
15194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15195 (eval "$ac_try") 2>&5
15196 ac_status=$?
15197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15198 (exit $ac_status); }; } &&
15199 { ac_try='test -s conftest.$ac_objext'
15200 { (case "(($ac_try" in
15201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15202 *) ac_try_echo=$ac_try;;
15203 esac
15204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15205 (eval "$ac_try") 2>&5
15206 ac_status=$?
15207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15208 (exit $ac_status); }; }; then
15209 ac_cv_have_decl_strerror_r=yes
15210 else
15211 echo "$as_me: failed program was:" >&5
15212 sed 's/^/| /' conftest.$ac_ext >&5
15214 ac_cv_have_decl_strerror_r=no
15217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15219 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5
15220 echo "${ECHO_T}$ac_cv_have_decl_strerror_r" >&6; }
15221 if test $ac_cv_have_decl_strerror_r = yes; then
15223 cat >>confdefs.h <<_ACEOF
15224 #define HAVE_DECL_STRERROR_R 1
15225 _ACEOF
15228 else
15229 cat >>confdefs.h <<_ACEOF
15230 #define HAVE_DECL_STRERROR_R 0
15231 _ACEOF
15238 for ac_func in strerror_r
15240 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15241 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15242 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15243 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15244 echo $ECHO_N "(cached) $ECHO_C" >&6
15245 else
15246 cat >conftest.$ac_ext <<_ACEOF
15247 /* confdefs.h. */
15248 _ACEOF
15249 cat confdefs.h >>conftest.$ac_ext
15250 cat >>conftest.$ac_ext <<_ACEOF
15251 /* end confdefs.h. */
15252 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15253 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15254 #define $ac_func innocuous_$ac_func
15256 /* System header to define __stub macros and hopefully few prototypes,
15257 which can conflict with char $ac_func (); below.
15258 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15259 <limits.h> exists even on freestanding compilers. */
15261 #ifdef __STDC__
15262 # include <limits.h>
15263 #else
15264 # include <assert.h>
15265 #endif
15267 #undef $ac_func
15269 /* Override any GCC internal prototype to avoid an error.
15270 Use char because int might match the return type of a GCC
15271 builtin and then its argument prototype would still apply. */
15272 #ifdef __cplusplus
15273 extern "C"
15274 #endif
15275 char $ac_func ();
15276 /* The GNU C library defines this for functions which it implements
15277 to always fail with ENOSYS. Some functions are actually named
15278 something starting with __ and the normal name is an alias. */
15279 #if defined __stub_$ac_func || defined __stub___$ac_func
15280 choke me
15281 #endif
15284 main ()
15286 return $ac_func ();
15288 return 0;
15290 _ACEOF
15291 rm -f conftest.$ac_objext conftest$ac_exeext
15292 if { (ac_try="$ac_link"
15293 case "(($ac_try" in
15294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15295 *) ac_try_echo=$ac_try;;
15296 esac
15297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15298 (eval "$ac_link") 2>conftest.er1
15299 ac_status=$?
15300 grep -v '^ *+' conftest.er1 >conftest.err
15301 rm -f conftest.er1
15302 cat conftest.err >&5
15303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15304 (exit $ac_status); } &&
15305 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15306 { (case "(($ac_try" in
15307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15308 *) ac_try_echo=$ac_try;;
15309 esac
15310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15311 (eval "$ac_try") 2>&5
15312 ac_status=$?
15313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15314 (exit $ac_status); }; } &&
15315 { ac_try='test -s conftest$ac_exeext'
15316 { (case "(($ac_try" in
15317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15318 *) ac_try_echo=$ac_try;;
15319 esac
15320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15321 (eval "$ac_try") 2>&5
15322 ac_status=$?
15323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15324 (exit $ac_status); }; }; then
15325 eval "$as_ac_var=yes"
15326 else
15327 echo "$as_me: failed program was:" >&5
15328 sed 's/^/| /' conftest.$ac_ext >&5
15330 eval "$as_ac_var=no"
15333 rm -f core conftest.err conftest.$ac_objext \
15334 conftest$ac_exeext conftest.$ac_ext
15336 ac_res=`eval echo '${'$as_ac_var'}'`
15337 { echo "$as_me:$LINENO: result: $ac_res" >&5
15338 echo "${ECHO_T}$ac_res" >&6; }
15339 if test `eval echo '${'$as_ac_var'}'` = yes; then
15340 cat >>confdefs.h <<_ACEOF
15341 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15342 _ACEOF
15345 done
15347 { echo "$as_me:$LINENO: checking whether strerror_r returns char *" >&5
15348 echo $ECHO_N "checking whether strerror_r returns char *... $ECHO_C" >&6; }
15349 if test "${ac_cv_func_strerror_r_char_p+set}" = set; then
15350 echo $ECHO_N "(cached) $ECHO_C" >&6
15351 else
15353 ac_cv_func_strerror_r_char_p=no
15354 if test $ac_cv_have_decl_strerror_r = yes; then
15355 cat >conftest.$ac_ext <<_ACEOF
15356 /* confdefs.h. */
15357 _ACEOF
15358 cat confdefs.h >>conftest.$ac_ext
15359 cat >>conftest.$ac_ext <<_ACEOF
15360 /* end confdefs.h. */
15361 $ac_includes_default
15363 main ()
15366 char buf[100];
15367 char x = *strerror_r (0, buf, sizeof buf);
15368 char *p = strerror_r (0, buf, sizeof buf);
15369 return !p || x;
15372 return 0;
15374 _ACEOF
15375 rm -f conftest.$ac_objext
15376 if { (ac_try="$ac_compile"
15377 case "(($ac_try" in
15378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15379 *) ac_try_echo=$ac_try;;
15380 esac
15381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15382 (eval "$ac_compile") 2>conftest.er1
15383 ac_status=$?
15384 grep -v '^ *+' conftest.er1 >conftest.err
15385 rm -f conftest.er1
15386 cat conftest.err >&5
15387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15388 (exit $ac_status); } &&
15389 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15390 { (case "(($ac_try" in
15391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15392 *) ac_try_echo=$ac_try;;
15393 esac
15394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15395 (eval "$ac_try") 2>&5
15396 ac_status=$?
15397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15398 (exit $ac_status); }; } &&
15399 { ac_try='test -s conftest.$ac_objext'
15400 { (case "(($ac_try" in
15401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15402 *) ac_try_echo=$ac_try;;
15403 esac
15404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15405 (eval "$ac_try") 2>&5
15406 ac_status=$?
15407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15408 (exit $ac_status); }; }; then
15409 ac_cv_func_strerror_r_char_p=yes
15410 else
15411 echo "$as_me: failed program was:" >&5
15412 sed 's/^/| /' conftest.$ac_ext >&5
15417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15418 else
15419 # strerror_r is not declared. Choose between
15420 # systems that have relatively inaccessible declarations for the
15421 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
15422 # former has a strerror_r that returns char*, while the latter
15423 # has a strerror_r that returns `int'.
15424 # This test should segfault on the DEC system.
15425 if test "$cross_compiling" = yes; then
15427 else
15428 cat >conftest.$ac_ext <<_ACEOF
15429 /* confdefs.h. */
15430 _ACEOF
15431 cat confdefs.h >>conftest.$ac_ext
15432 cat >>conftest.$ac_ext <<_ACEOF
15433 /* end confdefs.h. */
15434 $ac_includes_default
15435 extern char *strerror_r ();
15437 main ()
15439 char buf[100];
15440 char x = *strerror_r (0, buf, sizeof buf);
15441 return ! isalpha (x);
15443 return 0;
15445 _ACEOF
15446 rm -f conftest$ac_exeext
15447 if { (ac_try="$ac_link"
15448 case "(($ac_try" in
15449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15450 *) ac_try_echo=$ac_try;;
15451 esac
15452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15453 (eval "$ac_link") 2>&5
15454 ac_status=$?
15455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15456 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15457 { (case "(($ac_try" in
15458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15459 *) ac_try_echo=$ac_try;;
15460 esac
15461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15462 (eval "$ac_try") 2>&5
15463 ac_status=$?
15464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15465 (exit $ac_status); }; }; then
15466 ac_cv_func_strerror_r_char_p=yes
15467 else
15468 echo "$as_me: program exited with status $ac_status" >&5
15469 echo "$as_me: failed program was:" >&5
15470 sed 's/^/| /' conftest.$ac_ext >&5
15473 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15480 { echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_char_p" >&5
15481 echo "${ECHO_T}$ac_cv_func_strerror_r_char_p" >&6; }
15482 if test $ac_cv_func_strerror_r_char_p = yes; then
15484 cat >>confdefs.h <<\_ACEOF
15485 #define STRERROR_R_CHAR_P 1
15486 _ACEOF
15491 { echo "$as_me:$LINENO: checking for error_at_line" >&5
15492 echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6; }
15493 if test "${ac_cv_lib_error_at_line+set}" = set; then
15494 echo $ECHO_N "(cached) $ECHO_C" >&6
15495 else
15496 cat >conftest.$ac_ext <<_ACEOF
15497 /* confdefs.h. */
15498 _ACEOF
15499 cat confdefs.h >>conftest.$ac_ext
15500 cat >>conftest.$ac_ext <<_ACEOF
15501 /* end confdefs.h. */
15502 $ac_includes_default
15504 main ()
15506 error_at_line (0, 0, "", 0, "");
15508 return 0;
15510 _ACEOF
15511 rm -f conftest.$ac_objext conftest$ac_exeext
15512 if { (ac_try="$ac_link"
15513 case "(($ac_try" in
15514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15515 *) ac_try_echo=$ac_try;;
15516 esac
15517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15518 (eval "$ac_link") 2>conftest.er1
15519 ac_status=$?
15520 grep -v '^ *+' conftest.er1 >conftest.err
15521 rm -f conftest.er1
15522 cat conftest.err >&5
15523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15524 (exit $ac_status); } &&
15525 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15526 { (case "(($ac_try" in
15527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15528 *) ac_try_echo=$ac_try;;
15529 esac
15530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15531 (eval "$ac_try") 2>&5
15532 ac_status=$?
15533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15534 (exit $ac_status); }; } &&
15535 { ac_try='test -s conftest$ac_exeext'
15536 { (case "(($ac_try" in
15537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15538 *) ac_try_echo=$ac_try;;
15539 esac
15540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15541 (eval "$ac_try") 2>&5
15542 ac_status=$?
15543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15544 (exit $ac_status); }; }; then
15545 ac_cv_lib_error_at_line=yes
15546 else
15547 echo "$as_me: failed program was:" >&5
15548 sed 's/^/| /' conftest.$ac_ext >&5
15550 ac_cv_lib_error_at_line=no
15553 rm -f core conftest.err conftest.$ac_objext \
15554 conftest$ac_exeext conftest.$ac_ext
15556 { echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
15557 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6; }
15558 if test $ac_cv_lib_error_at_line = no; then
15559 case " $LIBOBJS " in
15560 *" error.$ac_objext "* ) ;;
15561 *) LIBOBJS="$LIBOBJS error.$ac_objext"
15563 esac
15574 case " $LIBOBJS " in
15575 *" exclude.$ac_objext "* ) ;;
15576 *) LIBOBJS="$LIBOBJS exclude.$ac_objext"
15578 esac
15583 case " $LIBOBJS " in
15584 *" exitfail.$ac_objext "* ) ;;
15585 *) LIBOBJS="$LIBOBJS exitfail.$ac_objext"
15587 esac
15594 case " $LIBOBJS " in
15595 *" open-safer.$ac_objext "* ) ;;
15596 *) LIBOBJS="$LIBOBJS open-safer.$ac_objext"
15598 esac
15600 case " $LIBOBJS " in
15601 *" creat-safer.$ac_objext "* ) ;;
15602 *) LIBOBJS="$LIBOBJS creat-safer.$ac_objext"
15604 esac
15609 case " $LIBOBJS " in
15610 *" fd-reopen.$ac_objext "* ) ;;
15611 *) LIBOBJS="$LIBOBJS fd-reopen.$ac_objext"
15613 esac
15617 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
15618 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
15619 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
15620 echo $ECHO_N "(cached) $ECHO_C" >&6
15621 else
15622 cat >conftest.$ac_ext <<_ACEOF
15623 /* confdefs.h. */
15624 _ACEOF
15625 cat confdefs.h >>conftest.$ac_ext
15626 cat >>conftest.$ac_ext <<_ACEOF
15627 /* end confdefs.h. */
15628 $ac_includes_default
15630 main ()
15632 static struct stat ac_aggr;
15633 if (ac_aggr.st_blocks)
15634 return 0;
15636 return 0;
15638 _ACEOF
15639 rm -f conftest.$ac_objext
15640 if { (ac_try="$ac_compile"
15641 case "(($ac_try" in
15642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15643 *) ac_try_echo=$ac_try;;
15644 esac
15645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15646 (eval "$ac_compile") 2>conftest.er1
15647 ac_status=$?
15648 grep -v '^ *+' conftest.er1 >conftest.err
15649 rm -f conftest.er1
15650 cat conftest.err >&5
15651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15652 (exit $ac_status); } &&
15653 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15654 { (case "(($ac_try" in
15655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15656 *) ac_try_echo=$ac_try;;
15657 esac
15658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15659 (eval "$ac_try") 2>&5
15660 ac_status=$?
15661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15662 (exit $ac_status); }; } &&
15663 { ac_try='test -s conftest.$ac_objext'
15664 { (case "(($ac_try" in
15665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15666 *) ac_try_echo=$ac_try;;
15667 esac
15668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15669 (eval "$ac_try") 2>&5
15670 ac_status=$?
15671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15672 (exit $ac_status); }; }; then
15673 ac_cv_member_struct_stat_st_blocks=yes
15674 else
15675 echo "$as_me: failed program was:" >&5
15676 sed 's/^/| /' conftest.$ac_ext >&5
15678 cat >conftest.$ac_ext <<_ACEOF
15679 /* confdefs.h. */
15680 _ACEOF
15681 cat confdefs.h >>conftest.$ac_ext
15682 cat >>conftest.$ac_ext <<_ACEOF
15683 /* end confdefs.h. */
15684 $ac_includes_default
15686 main ()
15688 static struct stat ac_aggr;
15689 if (sizeof ac_aggr.st_blocks)
15690 return 0;
15692 return 0;
15694 _ACEOF
15695 rm -f conftest.$ac_objext
15696 if { (ac_try="$ac_compile"
15697 case "(($ac_try" in
15698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15699 *) ac_try_echo=$ac_try;;
15700 esac
15701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15702 (eval "$ac_compile") 2>conftest.er1
15703 ac_status=$?
15704 grep -v '^ *+' conftest.er1 >conftest.err
15705 rm -f conftest.er1
15706 cat conftest.err >&5
15707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15708 (exit $ac_status); } &&
15709 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15710 { (case "(($ac_try" in
15711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15712 *) ac_try_echo=$ac_try;;
15713 esac
15714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15715 (eval "$ac_try") 2>&5
15716 ac_status=$?
15717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15718 (exit $ac_status); }; } &&
15719 { ac_try='test -s conftest.$ac_objext'
15720 { (case "(($ac_try" in
15721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15722 *) ac_try_echo=$ac_try;;
15723 esac
15724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15725 (eval "$ac_try") 2>&5
15726 ac_status=$?
15727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15728 (exit $ac_status); }; }; then
15729 ac_cv_member_struct_stat_st_blocks=yes
15730 else
15731 echo "$as_me: failed program was:" >&5
15732 sed 's/^/| /' conftest.$ac_ext >&5
15734 ac_cv_member_struct_stat_st_blocks=no
15737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15742 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
15743 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
15744 if test $ac_cv_member_struct_stat_st_blocks = yes; then
15746 cat >>confdefs.h <<_ACEOF
15747 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
15748 _ACEOF
15751 cat >>confdefs.h <<\_ACEOF
15752 #define HAVE_ST_BLOCKS 1
15753 _ACEOF
15755 else
15756 case " $LIBOBJS " in
15757 *" fileblocks.$ac_objext "* ) ;;
15758 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
15760 esac
15765 if test $ac_cv_member_struct_stat_st_blocks = no; then
15777 { echo "$as_me:$LINENO: checking whether strmode is declared" >&5
15778 echo $ECHO_N "checking whether strmode is declared... $ECHO_C" >&6; }
15779 if test "${ac_cv_have_decl_strmode+set}" = set; then
15780 echo $ECHO_N "(cached) $ECHO_C" >&6
15781 else
15782 cat >conftest.$ac_ext <<_ACEOF
15783 /* confdefs.h. */
15784 _ACEOF
15785 cat confdefs.h >>conftest.$ac_ext
15786 cat >>conftest.$ac_ext <<_ACEOF
15787 /* end confdefs.h. */
15788 $ac_includes_default
15790 main ()
15792 #ifndef strmode
15793 char *p = (char *) strmode;
15794 return !p;
15795 #endif
15798 return 0;
15800 _ACEOF
15801 rm -f conftest.$ac_objext
15802 if { (ac_try="$ac_compile"
15803 case "(($ac_try" in
15804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15805 *) ac_try_echo=$ac_try;;
15806 esac
15807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15808 (eval "$ac_compile") 2>conftest.er1
15809 ac_status=$?
15810 grep -v '^ *+' conftest.er1 >conftest.err
15811 rm -f conftest.er1
15812 cat conftest.err >&5
15813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15814 (exit $ac_status); } &&
15815 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15816 { (case "(($ac_try" in
15817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15818 *) ac_try_echo=$ac_try;;
15819 esac
15820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15821 (eval "$ac_try") 2>&5
15822 ac_status=$?
15823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15824 (exit $ac_status); }; } &&
15825 { ac_try='test -s conftest.$ac_objext'
15826 { (case "(($ac_try" in
15827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15828 *) ac_try_echo=$ac_try;;
15829 esac
15830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15831 (eval "$ac_try") 2>&5
15832 ac_status=$?
15833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15834 (exit $ac_status); }; }; then
15835 ac_cv_have_decl_strmode=yes
15836 else
15837 echo "$as_me: failed program was:" >&5
15838 sed 's/^/| /' conftest.$ac_ext >&5
15840 ac_cv_have_decl_strmode=no
15843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15845 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strmode" >&5
15846 echo "${ECHO_T}$ac_cv_have_decl_strmode" >&6; }
15847 if test $ac_cv_have_decl_strmode = yes; then
15849 cat >>confdefs.h <<_ACEOF
15850 #define HAVE_DECL_STRMODE 1
15851 _ACEOF
15854 else
15855 cat >>confdefs.h <<_ACEOF
15856 #define HAVE_DECL_STRMODE 0
15857 _ACEOF
15865 case " $LIBOBJS " in
15866 *" filemode.$ac_objext "* ) ;;
15867 *) LIBOBJS="$LIBOBJS filemode.$ac_objext"
15869 esac
15880 case " $LIBOBJS " in
15881 *" filenamecat.$ac_objext "* ) ;;
15882 *) LIBOBJS="$LIBOBJS filenamecat.$ac_objext"
15884 esac
15896 case " $LIBOBJS " in
15897 *" file-type.$ac_objext "* ) ;;
15898 *) LIBOBJS="$LIBOBJS file-type.$ac_objext"
15900 esac
15923 for ac_header in sys/mount.h
15925 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15926 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15927 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15928 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15929 echo $ECHO_N "(cached) $ECHO_C" >&6
15930 else
15931 cat >conftest.$ac_ext <<_ACEOF
15932 /* confdefs.h. */
15933 _ACEOF
15934 cat confdefs.h >>conftest.$ac_ext
15935 cat >>conftest.$ac_ext <<_ACEOF
15936 /* end confdefs.h. */
15937 $ac_includes_default
15938 #if HAVE_SYS_PARAM_H
15939 #include <sys/param.h>
15940 #endif
15942 #include <$ac_header>
15943 _ACEOF
15944 rm -f conftest.$ac_objext
15945 if { (ac_try="$ac_compile"
15946 case "(($ac_try" in
15947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15948 *) ac_try_echo=$ac_try;;
15949 esac
15950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15951 (eval "$ac_compile") 2>conftest.er1
15952 ac_status=$?
15953 grep -v '^ *+' conftest.er1 >conftest.err
15954 rm -f conftest.er1
15955 cat conftest.err >&5
15956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15957 (exit $ac_status); } &&
15958 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15959 { (case "(($ac_try" in
15960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15961 *) ac_try_echo=$ac_try;;
15962 esac
15963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15964 (eval "$ac_try") 2>&5
15965 ac_status=$?
15966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15967 (exit $ac_status); }; } &&
15968 { ac_try='test -s conftest.$ac_objext'
15969 { (case "(($ac_try" in
15970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15971 *) ac_try_echo=$ac_try;;
15972 esac
15973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15974 (eval "$ac_try") 2>&5
15975 ac_status=$?
15976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15977 (exit $ac_status); }; }; then
15978 eval "$as_ac_Header=yes"
15979 else
15980 echo "$as_me: failed program was:" >&5
15981 sed 's/^/| /' conftest.$ac_ext >&5
15983 eval "$as_ac_Header=no"
15986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15988 ac_res=`eval echo '${'$as_ac_Header'}'`
15989 { echo "$as_me:$LINENO: result: $ac_res" >&5
15990 echo "${ECHO_T}$ac_res" >&6; }
15991 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15992 cat >>confdefs.h <<_ACEOF
15993 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15994 _ACEOF
15998 done
16002 echo "checking how to get file system space usage..."
16003 ac_fsusage_space=no
16005 # Perform only the link test since it seems there are no variants of the
16006 # statvfs function. This check is more than just AC_CHECK_FUNCS(statvfs)
16007 # because that got a false positive on SCO OSR5. Adding the declaration
16008 # of a `struct statvfs' causes this test to fail (as it should) on such
16009 # systems. That system is reported to work fine with STAT_STATFS4 which
16010 # is what it gets when this test fails.
16011 if test $ac_fsusage_space = no; then
16012 # SVR4
16013 { echo "$as_me:$LINENO: checking for statvfs function (SVR4)" >&5
16014 echo $ECHO_N "checking for statvfs function (SVR4)... $ECHO_C" >&6; }
16015 if test "${fu_cv_sys_stat_statvfs+set}" = set; then
16016 echo $ECHO_N "(cached) $ECHO_C" >&6
16017 else
16018 cat >conftest.$ac_ext <<_ACEOF
16019 /* confdefs.h. */
16020 _ACEOF
16021 cat confdefs.h >>conftest.$ac_ext
16022 cat >>conftest.$ac_ext <<_ACEOF
16023 /* end confdefs.h. */
16024 #include <sys/types.h>
16025 #ifdef __GLIBC__
16026 Do not use statvfs on systems with GNU libc, because that function stats
16027 all preceding entries in /proc/mounts, and that makes df hang if even
16028 one of the corresponding file systems is hard-mounted, but not available.
16029 #endif
16030 #include <sys/statvfs.h>
16032 main ()
16034 struct statvfs fsd; statvfs (0, &fsd);
16036 return 0;
16038 _ACEOF
16039 rm -f conftest.$ac_objext conftest$ac_exeext
16040 if { (ac_try="$ac_link"
16041 case "(($ac_try" in
16042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16043 *) ac_try_echo=$ac_try;;
16044 esac
16045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16046 (eval "$ac_link") 2>conftest.er1
16047 ac_status=$?
16048 grep -v '^ *+' conftest.er1 >conftest.err
16049 rm -f conftest.er1
16050 cat conftest.err >&5
16051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16052 (exit $ac_status); } &&
16053 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16054 { (case "(($ac_try" in
16055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16056 *) ac_try_echo=$ac_try;;
16057 esac
16058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16059 (eval "$ac_try") 2>&5
16060 ac_status=$?
16061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16062 (exit $ac_status); }; } &&
16063 { ac_try='test -s conftest$ac_exeext'
16064 { (case "(($ac_try" in
16065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16066 *) ac_try_echo=$ac_try;;
16067 esac
16068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16069 (eval "$ac_try") 2>&5
16070 ac_status=$?
16071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16072 (exit $ac_status); }; }; then
16073 fu_cv_sys_stat_statvfs=yes
16074 else
16075 echo "$as_me: failed program was:" >&5
16076 sed 's/^/| /' conftest.$ac_ext >&5
16078 fu_cv_sys_stat_statvfs=no
16081 rm -f core conftest.err conftest.$ac_objext \
16082 conftest$ac_exeext conftest.$ac_ext
16084 { echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statvfs" >&5
16085 echo "${ECHO_T}$fu_cv_sys_stat_statvfs" >&6; }
16086 if test $fu_cv_sys_stat_statvfs = yes; then
16087 ac_fsusage_space=yes
16089 cat >>confdefs.h <<\_ACEOF
16090 #define STAT_STATVFS 1
16091 _ACEOF
16096 if test $ac_fsusage_space = no; then
16097 # DEC Alpha running OSF/1
16098 { echo "$as_me:$LINENO: checking for 3-argument statfs function (DEC OSF/1)" >&5
16099 echo $ECHO_N "checking for 3-argument statfs function (DEC OSF/1)... $ECHO_C" >&6; }
16100 if test "${fu_cv_sys_stat_statfs3_osf1+set}" = set; then
16101 echo $ECHO_N "(cached) $ECHO_C" >&6
16102 else
16103 if test "$cross_compiling" = yes; then
16104 fu_cv_sys_stat_statfs3_osf1=no
16105 else
16106 cat >conftest.$ac_ext <<_ACEOF
16107 /* confdefs.h. */
16108 _ACEOF
16109 cat confdefs.h >>conftest.$ac_ext
16110 cat >>conftest.$ac_ext <<_ACEOF
16111 /* end confdefs.h. */
16113 #include <sys/param.h>
16114 #include <sys/types.h>
16115 #include <sys/mount.h>
16117 main ()
16119 struct statfs fsd;
16120 fsd.f_fsize = 0;
16121 return statfs (".", &fsd, sizeof (struct statfs)) != 0;
16123 _ACEOF
16124 rm -f conftest$ac_exeext
16125 if { (ac_try="$ac_link"
16126 case "(($ac_try" in
16127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16128 *) ac_try_echo=$ac_try;;
16129 esac
16130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16131 (eval "$ac_link") 2>&5
16132 ac_status=$?
16133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16134 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16135 { (case "(($ac_try" in
16136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16137 *) ac_try_echo=$ac_try;;
16138 esac
16139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16140 (eval "$ac_try") 2>&5
16141 ac_status=$?
16142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16143 (exit $ac_status); }; }; then
16144 fu_cv_sys_stat_statfs3_osf1=yes
16145 else
16146 echo "$as_me: program exited with status $ac_status" >&5
16147 echo "$as_me: failed program was:" >&5
16148 sed 's/^/| /' conftest.$ac_ext >&5
16150 ( exit $ac_status )
16151 fu_cv_sys_stat_statfs3_osf1=no
16153 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16159 { echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs3_osf1" >&5
16160 echo "${ECHO_T}$fu_cv_sys_stat_statfs3_osf1" >&6; }
16161 if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
16162 ac_fsusage_space=yes
16164 cat >>confdefs.h <<\_ACEOF
16165 #define STAT_STATFS3_OSF1 1
16166 _ACEOF
16171 if test $ac_fsusage_space = no; then
16172 # AIX
16173 { echo "$as_me:$LINENO: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
16174 echo $ECHO_N "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)... $ECHO_C" >&6; }
16175 if test "${fu_cv_sys_stat_statfs2_bsize+set}" = set; then
16176 echo $ECHO_N "(cached) $ECHO_C" >&6
16177 else
16178 if test "$cross_compiling" = yes; then
16179 fu_cv_sys_stat_statfs2_bsize=no
16180 else
16181 cat >conftest.$ac_ext <<_ACEOF
16182 /* confdefs.h. */
16183 _ACEOF
16184 cat confdefs.h >>conftest.$ac_ext
16185 cat >>conftest.$ac_ext <<_ACEOF
16186 /* end confdefs.h. */
16188 #ifdef HAVE_SYS_PARAM_H
16189 #include <sys/param.h>
16190 #endif
16191 #ifdef HAVE_SYS_MOUNT_H
16192 #include <sys/mount.h>
16193 #endif
16194 #ifdef HAVE_SYS_VFS_H
16195 #include <sys/vfs.h>
16196 #endif
16198 main ()
16200 struct statfs fsd;
16201 fsd.f_bsize = 0;
16202 return statfs (".", &fsd) != 0;
16204 _ACEOF
16205 rm -f conftest$ac_exeext
16206 if { (ac_try="$ac_link"
16207 case "(($ac_try" in
16208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16209 *) ac_try_echo=$ac_try;;
16210 esac
16211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16212 (eval "$ac_link") 2>&5
16213 ac_status=$?
16214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16215 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16216 { (case "(($ac_try" in
16217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16218 *) ac_try_echo=$ac_try;;
16219 esac
16220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16221 (eval "$ac_try") 2>&5
16222 ac_status=$?
16223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16224 (exit $ac_status); }; }; then
16225 fu_cv_sys_stat_statfs2_bsize=yes
16226 else
16227 echo "$as_me: program exited with status $ac_status" >&5
16228 echo "$as_me: failed program was:" >&5
16229 sed 's/^/| /' conftest.$ac_ext >&5
16231 ( exit $ac_status )
16232 fu_cv_sys_stat_statfs2_bsize=no
16234 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16240 { echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs2_bsize" >&5
16241 echo "${ECHO_T}$fu_cv_sys_stat_statfs2_bsize" >&6; }
16242 if test $fu_cv_sys_stat_statfs2_bsize = yes; then
16243 ac_fsusage_space=yes
16245 cat >>confdefs.h <<\_ACEOF
16246 #define STAT_STATFS2_BSIZE 1
16247 _ACEOF
16252 if test $ac_fsusage_space = no; then
16253 # SVR3
16254 { echo "$as_me:$LINENO: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
16255 echo $ECHO_N "checking for four-argument statfs (AIX-3.2.5, SVR3)... $ECHO_C" >&6; }
16256 if test "${fu_cv_sys_stat_statfs4+set}" = set; then
16257 echo $ECHO_N "(cached) $ECHO_C" >&6
16258 else
16259 if test "$cross_compiling" = yes; then
16260 fu_cv_sys_stat_statfs4=no
16261 else
16262 cat >conftest.$ac_ext <<_ACEOF
16263 /* confdefs.h. */
16264 _ACEOF
16265 cat confdefs.h >>conftest.$ac_ext
16266 cat >>conftest.$ac_ext <<_ACEOF
16267 /* end confdefs.h. */
16268 #include <sys/types.h>
16269 #include <sys/statfs.h>
16271 main ()
16273 struct statfs fsd;
16274 return statfs (".", &fsd, sizeof fsd, 0) != 0;
16276 _ACEOF
16277 rm -f conftest$ac_exeext
16278 if { (ac_try="$ac_link"
16279 case "(($ac_try" in
16280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16281 *) ac_try_echo=$ac_try;;
16282 esac
16283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16284 (eval "$ac_link") 2>&5
16285 ac_status=$?
16286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16287 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16288 { (case "(($ac_try" in
16289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16290 *) ac_try_echo=$ac_try;;
16291 esac
16292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16293 (eval "$ac_try") 2>&5
16294 ac_status=$?
16295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16296 (exit $ac_status); }; }; then
16297 fu_cv_sys_stat_statfs4=yes
16298 else
16299 echo "$as_me: program exited with status $ac_status" >&5
16300 echo "$as_me: failed program was:" >&5
16301 sed 's/^/| /' conftest.$ac_ext >&5
16303 ( exit $ac_status )
16304 fu_cv_sys_stat_statfs4=no
16306 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16312 { echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs4" >&5
16313 echo "${ECHO_T}$fu_cv_sys_stat_statfs4" >&6; }
16314 if test $fu_cv_sys_stat_statfs4 = yes; then
16315 ac_fsusage_space=yes
16317 cat >>confdefs.h <<\_ACEOF
16318 #define STAT_STATFS4 1
16319 _ACEOF
16324 if test $ac_fsusage_space = no; then
16325 # 4.4BSD and NetBSD
16326 { echo "$as_me:$LINENO: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
16327 echo $ECHO_N "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)... $ECHO_C" >&6; }
16328 if test "${fu_cv_sys_stat_statfs2_fsize+set}" = set; then
16329 echo $ECHO_N "(cached) $ECHO_C" >&6
16330 else
16331 if test "$cross_compiling" = yes; then
16332 fu_cv_sys_stat_statfs2_fsize=no
16333 else
16334 cat >conftest.$ac_ext <<_ACEOF
16335 /* confdefs.h. */
16336 _ACEOF
16337 cat confdefs.h >>conftest.$ac_ext
16338 cat >>conftest.$ac_ext <<_ACEOF
16339 /* end confdefs.h. */
16340 #include <sys/types.h>
16341 #ifdef HAVE_SYS_PARAM_H
16342 #include <sys/param.h>
16343 #endif
16344 #ifdef HAVE_SYS_MOUNT_H
16345 #include <sys/mount.h>
16346 #endif
16348 main ()
16350 struct statfs fsd;
16351 fsd.f_fsize = 0;
16352 return statfs (".", &fsd) != 0;
16354 _ACEOF
16355 rm -f conftest$ac_exeext
16356 if { (ac_try="$ac_link"
16357 case "(($ac_try" in
16358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16359 *) ac_try_echo=$ac_try;;
16360 esac
16361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16362 (eval "$ac_link") 2>&5
16363 ac_status=$?
16364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16365 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16366 { (case "(($ac_try" in
16367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16368 *) ac_try_echo=$ac_try;;
16369 esac
16370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16371 (eval "$ac_try") 2>&5
16372 ac_status=$?
16373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16374 (exit $ac_status); }; }; then
16375 fu_cv_sys_stat_statfs2_fsize=yes
16376 else
16377 echo "$as_me: program exited with status $ac_status" >&5
16378 echo "$as_me: failed program was:" >&5
16379 sed 's/^/| /' conftest.$ac_ext >&5
16381 ( exit $ac_status )
16382 fu_cv_sys_stat_statfs2_fsize=no
16384 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16390 { echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs2_fsize" >&5
16391 echo "${ECHO_T}$fu_cv_sys_stat_statfs2_fsize" >&6; }
16392 if test $fu_cv_sys_stat_statfs2_fsize = yes; then
16393 ac_fsusage_space=yes
16395 cat >>confdefs.h <<\_ACEOF
16396 #define STAT_STATFS2_FSIZE 1
16397 _ACEOF
16402 if test $ac_fsusage_space = no; then
16403 # Ultrix
16404 { echo "$as_me:$LINENO: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
16405 echo $ECHO_N "checking for two-argument statfs with struct fs_data (Ultrix)... $ECHO_C" >&6; }
16406 if test "${fu_cv_sys_stat_fs_data+set}" = set; then
16407 echo $ECHO_N "(cached) $ECHO_C" >&6
16408 else
16409 if test "$cross_compiling" = yes; then
16410 fu_cv_sys_stat_fs_data=no
16411 else
16412 cat >conftest.$ac_ext <<_ACEOF
16413 /* confdefs.h. */
16414 _ACEOF
16415 cat confdefs.h >>conftest.$ac_ext
16416 cat >>conftest.$ac_ext <<_ACEOF
16417 /* end confdefs.h. */
16418 #include <sys/types.h>
16419 #ifdef HAVE_SYS_PARAM_H
16420 #include <sys/param.h>
16421 #endif
16422 #ifdef HAVE_SYS_MOUNT_H
16423 #include <sys/mount.h>
16424 #endif
16425 #ifdef HAVE_SYS_FS_TYPES_H
16426 #include <sys/fs_types.h>
16427 #endif
16429 main ()
16431 struct fs_data fsd;
16432 /* Ultrix's statfs returns 1 for success,
16433 0 for not mounted, -1 for failure. */
16434 return statfs (".", &fsd) != 1;
16436 _ACEOF
16437 rm -f conftest$ac_exeext
16438 if { (ac_try="$ac_link"
16439 case "(($ac_try" in
16440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16441 *) ac_try_echo=$ac_try;;
16442 esac
16443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16444 (eval "$ac_link") 2>&5
16445 ac_status=$?
16446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16447 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16448 { (case "(($ac_try" in
16449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16450 *) ac_try_echo=$ac_try;;
16451 esac
16452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16453 (eval "$ac_try") 2>&5
16454 ac_status=$?
16455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16456 (exit $ac_status); }; }; then
16457 fu_cv_sys_stat_fs_data=yes
16458 else
16459 echo "$as_me: program exited with status $ac_status" >&5
16460 echo "$as_me: failed program was:" >&5
16461 sed 's/^/| /' conftest.$ac_ext >&5
16463 ( exit $ac_status )
16464 fu_cv_sys_stat_fs_data=no
16466 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16472 { echo "$as_me:$LINENO: result: $fu_cv_sys_stat_fs_data" >&5
16473 echo "${ECHO_T}$fu_cv_sys_stat_fs_data" >&6; }
16474 if test $fu_cv_sys_stat_fs_data = yes; then
16475 ac_fsusage_space=yes
16477 cat >>confdefs.h <<\_ACEOF
16478 #define STAT_STATFS2_FS_DATA 1
16479 _ACEOF
16484 if test $ac_fsusage_space = no; then
16485 # SVR2
16486 cat >conftest.$ac_ext <<_ACEOF
16487 /* confdefs.h. */
16488 _ACEOF
16489 cat confdefs.h >>conftest.$ac_ext
16490 cat >>conftest.$ac_ext <<_ACEOF
16491 /* end confdefs.h. */
16492 #include <sys/filsys.h>
16494 _ACEOF
16495 if { (ac_try="$ac_cpp conftest.$ac_ext"
16496 case "(($ac_try" in
16497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16498 *) ac_try_echo=$ac_try;;
16499 esac
16500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16501 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16502 ac_status=$?
16503 grep -v '^ *+' conftest.er1 >conftest.err
16504 rm -f conftest.er1
16505 cat conftest.err >&5
16506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16507 (exit $ac_status); } >/dev/null; then
16508 if test -s conftest.err; then
16509 ac_cpp_err=$ac_c_preproc_warn_flag
16510 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16511 else
16512 ac_cpp_err=
16514 else
16515 ac_cpp_err=yes
16517 if test -z "$ac_cpp_err"; then
16519 cat >>confdefs.h <<\_ACEOF
16520 #define STAT_READ_FILSYS 1
16521 _ACEOF
16523 ac_fsusage_space=yes
16524 else
16525 echo "$as_me: failed program was:" >&5
16526 sed 's/^/| /' conftest.$ac_ext >&5
16531 rm -f conftest.err conftest.$ac_ext
16534 if test $ac_fsusage_space = yes; then
16535 gl_cv_fs_space=yes
16536 else
16537 gl_cv_fs_space=no
16542 if test $gl_cv_fs_space = yes; then
16543 case " $LIBOBJS " in
16544 *" fsusage.$ac_objext "* ) ;;
16545 *) LIBOBJS="$LIBOBJS fsusage.$ac_objext"
16547 esac
16556 for ac_header in dustat.h sys/fs/s5param.h sys/filsys.h sys/statfs.h sys/statvfs.h
16558 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16559 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16560 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16561 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16562 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16563 echo $ECHO_N "(cached) $ECHO_C" >&6
16565 ac_res=`eval echo '${'$as_ac_Header'}'`
16566 { echo "$as_me:$LINENO: result: $ac_res" >&5
16567 echo "${ECHO_T}$ac_res" >&6; }
16568 else
16569 # Is the header compilable?
16570 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16571 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16572 cat >conftest.$ac_ext <<_ACEOF
16573 /* confdefs.h. */
16574 _ACEOF
16575 cat confdefs.h >>conftest.$ac_ext
16576 cat >>conftest.$ac_ext <<_ACEOF
16577 /* end confdefs.h. */
16578 $ac_includes_default
16579 #include <$ac_header>
16580 _ACEOF
16581 rm -f conftest.$ac_objext
16582 if { (ac_try="$ac_compile"
16583 case "(($ac_try" in
16584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16585 *) ac_try_echo=$ac_try;;
16586 esac
16587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16588 (eval "$ac_compile") 2>conftest.er1
16589 ac_status=$?
16590 grep -v '^ *+' conftest.er1 >conftest.err
16591 rm -f conftest.er1
16592 cat conftest.err >&5
16593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16594 (exit $ac_status); } &&
16595 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16596 { (case "(($ac_try" in
16597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16598 *) ac_try_echo=$ac_try;;
16599 esac
16600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16601 (eval "$ac_try") 2>&5
16602 ac_status=$?
16603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16604 (exit $ac_status); }; } &&
16605 { ac_try='test -s conftest.$ac_objext'
16606 { (case "(($ac_try" in
16607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16608 *) ac_try_echo=$ac_try;;
16609 esac
16610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16611 (eval "$ac_try") 2>&5
16612 ac_status=$?
16613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16614 (exit $ac_status); }; }; then
16615 ac_header_compiler=yes
16616 else
16617 echo "$as_me: failed program was:" >&5
16618 sed 's/^/| /' conftest.$ac_ext >&5
16620 ac_header_compiler=no
16623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16624 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16625 echo "${ECHO_T}$ac_header_compiler" >&6; }
16627 # Is the header present?
16628 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16629 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16630 cat >conftest.$ac_ext <<_ACEOF
16631 /* confdefs.h. */
16632 _ACEOF
16633 cat confdefs.h >>conftest.$ac_ext
16634 cat >>conftest.$ac_ext <<_ACEOF
16635 /* end confdefs.h. */
16636 #include <$ac_header>
16637 _ACEOF
16638 if { (ac_try="$ac_cpp conftest.$ac_ext"
16639 case "(($ac_try" in
16640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16641 *) ac_try_echo=$ac_try;;
16642 esac
16643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16644 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16645 ac_status=$?
16646 grep -v '^ *+' conftest.er1 >conftest.err
16647 rm -f conftest.er1
16648 cat conftest.err >&5
16649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16650 (exit $ac_status); } >/dev/null; then
16651 if test -s conftest.err; then
16652 ac_cpp_err=$ac_c_preproc_warn_flag
16653 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16654 else
16655 ac_cpp_err=
16657 else
16658 ac_cpp_err=yes
16660 if test -z "$ac_cpp_err"; then
16661 ac_header_preproc=yes
16662 else
16663 echo "$as_me: failed program was:" >&5
16664 sed 's/^/| /' conftest.$ac_ext >&5
16666 ac_header_preproc=no
16669 rm -f conftest.err conftest.$ac_ext
16670 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16671 echo "${ECHO_T}$ac_header_preproc" >&6; }
16673 # So? What about this header?
16674 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16675 yes:no: )
16676 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16677 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16678 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16679 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16680 ac_header_preproc=yes
16682 no:yes:* )
16683 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16684 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16685 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16686 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16687 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16688 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16689 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16690 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16691 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16692 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16693 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16694 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16695 ( cat <<\_ASBOX
16696 ## ------------------------------------ ##
16697 ## Report this to bug-coreutils@gnu.org ##
16698 ## ------------------------------------ ##
16699 _ASBOX
16700 ) | sed "s/^/$as_me: WARNING: /" >&2
16702 esac
16703 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16704 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16705 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16706 echo $ECHO_N "(cached) $ECHO_C" >&6
16707 else
16708 eval "$as_ac_Header=\$ac_header_preproc"
16710 ac_res=`eval echo '${'$as_ac_Header'}'`
16711 { echo "$as_me:$LINENO: result: $ac_res" >&5
16712 echo "${ECHO_T}$ac_res" >&6; }
16715 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16716 cat >>confdefs.h <<_ACEOF
16717 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16718 _ACEOF
16722 done
16725 { echo "$as_me:$LINENO: checking for statfs that truncates block counts" >&5
16726 echo $ECHO_N "checking for statfs that truncates block counts... $ECHO_C" >&6; }
16727 if test "${fu_cv_sys_truncating_statfs+set}" = set; then
16728 echo $ECHO_N "(cached) $ECHO_C" >&6
16729 else
16730 cat >conftest.$ac_ext <<_ACEOF
16731 /* confdefs.h. */
16732 _ACEOF
16733 cat confdefs.h >>conftest.$ac_ext
16734 cat >>conftest.$ac_ext <<_ACEOF
16735 /* end confdefs.h. */
16737 #if !defined(sun) && !defined(__sun)
16738 choke -- this is a workaround for a Sun-specific problem
16739 #endif
16740 #include <sys/types.h>
16741 #include <sys/vfs.h>
16743 main ()
16745 struct statfs t; long c = *(t.f_spare);
16747 return 0;
16749 _ACEOF
16750 rm -f conftest.$ac_objext
16751 if { (ac_try="$ac_compile"
16752 case "(($ac_try" in
16753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16754 *) ac_try_echo=$ac_try;;
16755 esac
16756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16757 (eval "$ac_compile") 2>conftest.er1
16758 ac_status=$?
16759 grep -v '^ *+' conftest.er1 >conftest.err
16760 rm -f conftest.er1
16761 cat conftest.err >&5
16762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16763 (exit $ac_status); } &&
16764 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16765 { (case "(($ac_try" in
16766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16767 *) ac_try_echo=$ac_try;;
16768 esac
16769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16770 (eval "$ac_try") 2>&5
16771 ac_status=$?
16772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16773 (exit $ac_status); }; } &&
16774 { ac_try='test -s conftest.$ac_objext'
16775 { (case "(($ac_try" in
16776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16777 *) ac_try_echo=$ac_try;;
16778 esac
16779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16780 (eval "$ac_try") 2>&5
16781 ac_status=$?
16782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16783 (exit $ac_status); }; }; then
16784 fu_cv_sys_truncating_statfs=yes
16785 else
16786 echo "$as_me: failed program was:" >&5
16787 sed 's/^/| /' conftest.$ac_ext >&5
16789 fu_cv_sys_truncating_statfs=no
16792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16795 if test $fu_cv_sys_truncating_statfs = yes; then
16797 cat >>confdefs.h <<\_ACEOF
16798 #define STATFS_TRUNCATES_BLOCK_COUNTS 1
16799 _ACEOF
16802 { echo "$as_me:$LINENO: result: $fu_cv_sys_truncating_statfs" >&5
16803 echo "${ECHO_T}$fu_cv_sys_truncating_statfs" >&6; }
16810 case " $LIBOBJS " in
16811 *" fopen-safer.$ac_objext "* ) ;;
16812 *) LIBOBJS="$LIBOBJS fopen-safer.$ac_objext"
16814 esac
16819 for ac_func in atexit
16821 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16822 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16823 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16824 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16825 echo $ECHO_N "(cached) $ECHO_C" >&6
16826 else
16827 cat >conftest.$ac_ext <<_ACEOF
16828 /* confdefs.h. */
16829 _ACEOF
16830 cat confdefs.h >>conftest.$ac_ext
16831 cat >>conftest.$ac_ext <<_ACEOF
16832 /* end confdefs.h. */
16833 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16834 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16835 #define $ac_func innocuous_$ac_func
16837 /* System header to define __stub macros and hopefully few prototypes,
16838 which can conflict with char $ac_func (); below.
16839 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16840 <limits.h> exists even on freestanding compilers. */
16842 #ifdef __STDC__
16843 # include <limits.h>
16844 #else
16845 # include <assert.h>
16846 #endif
16848 #undef $ac_func
16850 /* Override any GCC internal prototype to avoid an error.
16851 Use char because int might match the return type of a GCC
16852 builtin and then its argument prototype would still apply. */
16853 #ifdef __cplusplus
16854 extern "C"
16855 #endif
16856 char $ac_func ();
16857 /* The GNU C library defines this for functions which it implements
16858 to always fail with ENOSYS. Some functions are actually named
16859 something starting with __ and the normal name is an alias. */
16860 #if defined __stub_$ac_func || defined __stub___$ac_func
16861 choke me
16862 #endif
16865 main ()
16867 return $ac_func ();
16869 return 0;
16871 _ACEOF
16872 rm -f conftest.$ac_objext conftest$ac_exeext
16873 if { (ac_try="$ac_link"
16874 case "(($ac_try" in
16875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16876 *) ac_try_echo=$ac_try;;
16877 esac
16878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16879 (eval "$ac_link") 2>conftest.er1
16880 ac_status=$?
16881 grep -v '^ *+' conftest.er1 >conftest.err
16882 rm -f conftest.er1
16883 cat conftest.err >&5
16884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16885 (exit $ac_status); } &&
16886 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16887 { (case "(($ac_try" in
16888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16889 *) ac_try_echo=$ac_try;;
16890 esac
16891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16892 (eval "$ac_try") 2>&5
16893 ac_status=$?
16894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16895 (exit $ac_status); }; } &&
16896 { ac_try='test -s conftest$ac_exeext'
16897 { (case "(($ac_try" in
16898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16899 *) ac_try_echo=$ac_try;;
16900 esac
16901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16902 (eval "$ac_try") 2>&5
16903 ac_status=$?
16904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16905 (exit $ac_status); }; }; then
16906 eval "$as_ac_var=yes"
16907 else
16908 echo "$as_me: failed program was:" >&5
16909 sed 's/^/| /' conftest.$ac_ext >&5
16911 eval "$as_ac_var=no"
16914 rm -f core conftest.err conftest.$ac_objext \
16915 conftest$ac_exeext conftest.$ac_ext
16917 ac_res=`eval echo '${'$as_ac_var'}'`
16918 { echo "$as_me:$LINENO: result: $ac_res" >&5
16919 echo "${ECHO_T}$ac_res" >&6; }
16920 if test `eval echo '${'$as_ac_var'}'` = yes; then
16921 cat >>confdefs.h <<_ACEOF
16922 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16923 _ACEOF
16925 else
16926 case " $LIBOBJS " in
16927 *" $ac_func.$ac_objext "* ) ;;
16928 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
16930 esac
16933 done
16936 if test $ac_cv_func_atexit = no; then
16944 for ac_func in dup2
16946 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16947 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16948 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16949 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16950 echo $ECHO_N "(cached) $ECHO_C" >&6
16951 else
16952 cat >conftest.$ac_ext <<_ACEOF
16953 /* confdefs.h. */
16954 _ACEOF
16955 cat confdefs.h >>conftest.$ac_ext
16956 cat >>conftest.$ac_ext <<_ACEOF
16957 /* end confdefs.h. */
16958 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16959 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16960 #define $ac_func innocuous_$ac_func
16962 /* System header to define __stub macros and hopefully few prototypes,
16963 which can conflict with char $ac_func (); below.
16964 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16965 <limits.h> exists even on freestanding compilers. */
16967 #ifdef __STDC__
16968 # include <limits.h>
16969 #else
16970 # include <assert.h>
16971 #endif
16973 #undef $ac_func
16975 /* Override any GCC internal prototype to avoid an error.
16976 Use char because int might match the return type of a GCC
16977 builtin and then its argument prototype would still apply. */
16978 #ifdef __cplusplus
16979 extern "C"
16980 #endif
16981 char $ac_func ();
16982 /* The GNU C library defines this for functions which it implements
16983 to always fail with ENOSYS. Some functions are actually named
16984 something starting with __ and the normal name is an alias. */
16985 #if defined __stub_$ac_func || defined __stub___$ac_func
16986 choke me
16987 #endif
16990 main ()
16992 return $ac_func ();
16994 return 0;
16996 _ACEOF
16997 rm -f conftest.$ac_objext conftest$ac_exeext
16998 if { (ac_try="$ac_link"
16999 case "(($ac_try" in
17000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17001 *) ac_try_echo=$ac_try;;
17002 esac
17003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17004 (eval "$ac_link") 2>conftest.er1
17005 ac_status=$?
17006 grep -v '^ *+' conftest.er1 >conftest.err
17007 rm -f conftest.er1
17008 cat conftest.err >&5
17009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17010 (exit $ac_status); } &&
17011 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17012 { (case "(($ac_try" in
17013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17014 *) ac_try_echo=$ac_try;;
17015 esac
17016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17017 (eval "$ac_try") 2>&5
17018 ac_status=$?
17019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17020 (exit $ac_status); }; } &&
17021 { ac_try='test -s conftest$ac_exeext'
17022 { (case "(($ac_try" in
17023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17024 *) ac_try_echo=$ac_try;;
17025 esac
17026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17027 (eval "$ac_try") 2>&5
17028 ac_status=$?
17029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17030 (exit $ac_status); }; }; then
17031 eval "$as_ac_var=yes"
17032 else
17033 echo "$as_me: failed program was:" >&5
17034 sed 's/^/| /' conftest.$ac_ext >&5
17036 eval "$as_ac_var=no"
17039 rm -f core conftest.err conftest.$ac_objext \
17040 conftest$ac_exeext conftest.$ac_ext
17042 ac_res=`eval echo '${'$as_ac_var'}'`
17043 { echo "$as_me:$LINENO: result: $ac_res" >&5
17044 echo "${ECHO_T}$ac_res" >&6; }
17045 if test `eval echo '${'$as_ac_var'}'` = yes; then
17046 cat >>confdefs.h <<_ACEOF
17047 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17048 _ACEOF
17050 else
17051 case " $LIBOBJS " in
17052 *" $ac_func.$ac_objext "* ) ;;
17053 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
17055 esac
17058 done
17065 FNMATCH_H=
17066 { echo "$as_me:$LINENO: checking for working GNU fnmatch" >&5
17067 echo $ECHO_N "checking for working GNU fnmatch... $ECHO_C" >&6; }
17068 if test "${ac_cv_func_fnmatch_gnu+set}" = set; then
17069 echo $ECHO_N "(cached) $ECHO_C" >&6
17070 else
17071 if test "$cross_compiling" = yes; then
17072 ac_cv_func_fnmatch_gnu=cross
17073 else
17074 cat >conftest.$ac_ext <<_ACEOF
17075 /* confdefs.h. */
17076 _ACEOF
17077 cat confdefs.h >>conftest.$ac_ext
17078 cat >>conftest.$ac_ext <<_ACEOF
17079 /* end confdefs.h. */
17081 # include <stdlib.h>
17082 # include <fnmatch.h>
17083 # define y(a, b, c) (fnmatch (a, b, c) == 0)
17084 # define n(a, b, c) (fnmatch (a, b, c) == FNM_NOMATCH)
17085 static int
17086 fnm (char const *pattern, char const *string, int flags)
17088 return fnmatch (pattern, string, flags);
17092 main ()
17094 exit
17095 (!((fnm ? fnm : fnmatch) ("a*", "", 0) == FNM_NOMATCH
17096 && y ("a*", "abc", 0)
17097 && n ("d*/*1", "d/s/1", FNM_PATHNAME)
17098 && y ("a\\\\bc", "abc", 0)
17099 && n ("a\\\\bc", "abc", FNM_NOESCAPE)
17100 && y ("*x", ".x", 0)
17101 && n ("*x", ".x", FNM_PERIOD)
17102 && y ("xxXX", "xXxX", FNM_CASEFOLD)
17103 && y ("a++(x|yy)b", "a+xyyyyxb", FNM_EXTMATCH)
17104 && n ("d*/*1", "d/s/1", FNM_FILE_NAME)
17105 && y ("*", "x", FNM_FILE_NAME | FNM_LEADING_DIR)
17106 && y ("x*", "x/y/z", FNM_FILE_NAME | FNM_LEADING_DIR)
17107 && y ("*c*", "c/x", FNM_FILE_NAME | FNM_LEADING_DIR)));
17109 return 0;
17111 _ACEOF
17112 rm -f conftest$ac_exeext
17113 if { (ac_try="$ac_link"
17114 case "(($ac_try" in
17115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17116 *) ac_try_echo=$ac_try;;
17117 esac
17118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17119 (eval "$ac_link") 2>&5
17120 ac_status=$?
17121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17122 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17123 { (case "(($ac_try" in
17124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17125 *) ac_try_echo=$ac_try;;
17126 esac
17127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17128 (eval "$ac_try") 2>&5
17129 ac_status=$?
17130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17131 (exit $ac_status); }; }; then
17132 ac_cv_func_fnmatch_gnu=yes
17133 else
17134 echo "$as_me: program exited with status $ac_status" >&5
17135 echo "$as_me: failed program was:" >&5
17136 sed 's/^/| /' conftest.$ac_ext >&5
17138 ( exit $ac_status )
17139 ac_cv_func_fnmatch_gnu=no
17141 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17146 { echo "$as_me:$LINENO: result: $ac_cv_func_fnmatch_gnu" >&5
17147 echo "${ECHO_T}$ac_cv_func_fnmatch_gnu" >&6; }
17148 if test $ac_cv_func_fnmatch_gnu = yes; then
17149 rm -f lib/fnmatch.h
17150 else
17151 { echo "$as_me:$LINENO: checking whether isblank is declared" >&5
17152 echo $ECHO_N "checking whether isblank is declared... $ECHO_C" >&6; }
17153 if test "${ac_cv_have_decl_isblank+set}" = set; then
17154 echo $ECHO_N "(cached) $ECHO_C" >&6
17155 else
17156 cat >conftest.$ac_ext <<_ACEOF
17157 /* confdefs.h. */
17158 _ACEOF
17159 cat confdefs.h >>conftest.$ac_ext
17160 cat >>conftest.$ac_ext <<_ACEOF
17161 /* end confdefs.h. */
17162 #include <ctype.h>
17165 main ()
17167 #ifndef isblank
17168 char *p = (char *) isblank;
17169 return !p;
17170 #endif
17173 return 0;
17175 _ACEOF
17176 rm -f conftest.$ac_objext
17177 if { (ac_try="$ac_compile"
17178 case "(($ac_try" in
17179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17180 *) ac_try_echo=$ac_try;;
17181 esac
17182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17183 (eval "$ac_compile") 2>conftest.er1
17184 ac_status=$?
17185 grep -v '^ *+' conftest.er1 >conftest.err
17186 rm -f conftest.er1
17187 cat conftest.err >&5
17188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17189 (exit $ac_status); } &&
17190 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17191 { (case "(($ac_try" in
17192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17193 *) ac_try_echo=$ac_try;;
17194 esac
17195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17196 (eval "$ac_try") 2>&5
17197 ac_status=$?
17198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17199 (exit $ac_status); }; } &&
17200 { ac_try='test -s conftest.$ac_objext'
17201 { (case "(($ac_try" in
17202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17203 *) ac_try_echo=$ac_try;;
17204 esac
17205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17206 (eval "$ac_try") 2>&5
17207 ac_status=$?
17208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17209 (exit $ac_status); }; }; then
17210 ac_cv_have_decl_isblank=yes
17211 else
17212 echo "$as_me: failed program was:" >&5
17213 sed 's/^/| /' conftest.$ac_ext >&5
17215 ac_cv_have_decl_isblank=no
17218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17220 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isblank" >&5
17221 echo "${ECHO_T}$ac_cv_have_decl_isblank" >&6; }
17222 if test $ac_cv_have_decl_isblank = yes; then
17224 cat >>confdefs.h <<_ACEOF
17225 #define HAVE_DECL_ISBLANK 1
17226 _ACEOF
17229 else
17230 cat >>confdefs.h <<_ACEOF
17231 #define HAVE_DECL_ISBLANK 0
17232 _ACEOF
17244 for ac_func in btowc mbsrtowcs mempcpy wmemchr wmemcpy wmempcpy
17246 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17247 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17248 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17249 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17250 echo $ECHO_N "(cached) $ECHO_C" >&6
17251 else
17252 cat >conftest.$ac_ext <<_ACEOF
17253 /* confdefs.h. */
17254 _ACEOF
17255 cat confdefs.h >>conftest.$ac_ext
17256 cat >>conftest.$ac_ext <<_ACEOF
17257 /* end confdefs.h. */
17258 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17259 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17260 #define $ac_func innocuous_$ac_func
17262 /* System header to define __stub macros and hopefully few prototypes,
17263 which can conflict with char $ac_func (); below.
17264 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17265 <limits.h> exists even on freestanding compilers. */
17267 #ifdef __STDC__
17268 # include <limits.h>
17269 #else
17270 # include <assert.h>
17271 #endif
17273 #undef $ac_func
17275 /* Override any GCC internal prototype to avoid an error.
17276 Use char because int might match the return type of a GCC
17277 builtin and then its argument prototype would still apply. */
17278 #ifdef __cplusplus
17279 extern "C"
17280 #endif
17281 char $ac_func ();
17282 /* The GNU C library defines this for functions which it implements
17283 to always fail with ENOSYS. Some functions are actually named
17284 something starting with __ and the normal name is an alias. */
17285 #if defined __stub_$ac_func || defined __stub___$ac_func
17286 choke me
17287 #endif
17290 main ()
17292 return $ac_func ();
17294 return 0;
17296 _ACEOF
17297 rm -f conftest.$ac_objext conftest$ac_exeext
17298 if { (ac_try="$ac_link"
17299 case "(($ac_try" in
17300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17301 *) ac_try_echo=$ac_try;;
17302 esac
17303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17304 (eval "$ac_link") 2>conftest.er1
17305 ac_status=$?
17306 grep -v '^ *+' conftest.er1 >conftest.err
17307 rm -f conftest.er1
17308 cat conftest.err >&5
17309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17310 (exit $ac_status); } &&
17311 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17312 { (case "(($ac_try" in
17313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17314 *) ac_try_echo=$ac_try;;
17315 esac
17316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17317 (eval "$ac_try") 2>&5
17318 ac_status=$?
17319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17320 (exit $ac_status); }; } &&
17321 { ac_try='test -s conftest$ac_exeext'
17322 { (case "(($ac_try" in
17323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17324 *) ac_try_echo=$ac_try;;
17325 esac
17326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17327 (eval "$ac_try") 2>&5
17328 ac_status=$?
17329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17330 (exit $ac_status); }; }; then
17331 eval "$as_ac_var=yes"
17332 else
17333 echo "$as_me: failed program was:" >&5
17334 sed 's/^/| /' conftest.$ac_ext >&5
17336 eval "$as_ac_var=no"
17339 rm -f core conftest.err conftest.$ac_objext \
17340 conftest$ac_exeext conftest.$ac_ext
17342 ac_res=`eval echo '${'$as_ac_var'}'`
17343 { echo "$as_me:$LINENO: result: $ac_res" >&5
17344 echo "${ECHO_T}$ac_res" >&6; }
17345 if test `eval echo '${'$as_ac_var'}'` = yes; then
17346 cat >>confdefs.h <<_ACEOF
17347 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17348 _ACEOF
17351 done
17355 for ac_header in wchar.h wctype.h
17357 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17358 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17359 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17360 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17361 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17362 echo $ECHO_N "(cached) $ECHO_C" >&6
17364 ac_res=`eval echo '${'$as_ac_Header'}'`
17365 { echo "$as_me:$LINENO: result: $ac_res" >&5
17366 echo "${ECHO_T}$ac_res" >&6; }
17367 else
17368 # Is the header compilable?
17369 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17370 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17371 cat >conftest.$ac_ext <<_ACEOF
17372 /* confdefs.h. */
17373 _ACEOF
17374 cat confdefs.h >>conftest.$ac_ext
17375 cat >>conftest.$ac_ext <<_ACEOF
17376 /* end confdefs.h. */
17377 $ac_includes_default
17378 #include <$ac_header>
17379 _ACEOF
17380 rm -f conftest.$ac_objext
17381 if { (ac_try="$ac_compile"
17382 case "(($ac_try" in
17383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17384 *) ac_try_echo=$ac_try;;
17385 esac
17386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17387 (eval "$ac_compile") 2>conftest.er1
17388 ac_status=$?
17389 grep -v '^ *+' conftest.er1 >conftest.err
17390 rm -f conftest.er1
17391 cat conftest.err >&5
17392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17393 (exit $ac_status); } &&
17394 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17395 { (case "(($ac_try" in
17396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17397 *) ac_try_echo=$ac_try;;
17398 esac
17399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17400 (eval "$ac_try") 2>&5
17401 ac_status=$?
17402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17403 (exit $ac_status); }; } &&
17404 { ac_try='test -s conftest.$ac_objext'
17405 { (case "(($ac_try" in
17406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17407 *) ac_try_echo=$ac_try;;
17408 esac
17409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17410 (eval "$ac_try") 2>&5
17411 ac_status=$?
17412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17413 (exit $ac_status); }; }; then
17414 ac_header_compiler=yes
17415 else
17416 echo "$as_me: failed program was:" >&5
17417 sed 's/^/| /' conftest.$ac_ext >&5
17419 ac_header_compiler=no
17422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17423 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17424 echo "${ECHO_T}$ac_header_compiler" >&6; }
17426 # Is the header present?
17427 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17428 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17429 cat >conftest.$ac_ext <<_ACEOF
17430 /* confdefs.h. */
17431 _ACEOF
17432 cat confdefs.h >>conftest.$ac_ext
17433 cat >>conftest.$ac_ext <<_ACEOF
17434 /* end confdefs.h. */
17435 #include <$ac_header>
17436 _ACEOF
17437 if { (ac_try="$ac_cpp conftest.$ac_ext"
17438 case "(($ac_try" in
17439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17440 *) ac_try_echo=$ac_try;;
17441 esac
17442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17443 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17444 ac_status=$?
17445 grep -v '^ *+' conftest.er1 >conftest.err
17446 rm -f conftest.er1
17447 cat conftest.err >&5
17448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17449 (exit $ac_status); } >/dev/null; then
17450 if test -s conftest.err; then
17451 ac_cpp_err=$ac_c_preproc_warn_flag
17452 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17453 else
17454 ac_cpp_err=
17456 else
17457 ac_cpp_err=yes
17459 if test -z "$ac_cpp_err"; then
17460 ac_header_preproc=yes
17461 else
17462 echo "$as_me: failed program was:" >&5
17463 sed 's/^/| /' conftest.$ac_ext >&5
17465 ac_header_preproc=no
17468 rm -f conftest.err conftest.$ac_ext
17469 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17470 echo "${ECHO_T}$ac_header_preproc" >&6; }
17472 # So? What about this header?
17473 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17474 yes:no: )
17475 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17476 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17477 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17478 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17479 ac_header_preproc=yes
17481 no:yes:* )
17482 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17483 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17484 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17485 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17486 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17487 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17488 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17489 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17490 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17491 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17492 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17493 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17494 ( cat <<\_ASBOX
17495 ## ------------------------------------ ##
17496 ## Report this to bug-coreutils@gnu.org ##
17497 ## ------------------------------------ ##
17498 _ASBOX
17499 ) | sed "s/^/$as_me: WARNING: /" >&2
17501 esac
17502 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17503 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17504 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17505 echo $ECHO_N "(cached) $ECHO_C" >&6
17506 else
17507 eval "$as_ac_Header=\$ac_header_preproc"
17509 ac_res=`eval echo '${'$as_ac_Header'}'`
17510 { echo "$as_me:$LINENO: result: $ac_res" >&5
17511 echo "${ECHO_T}$ac_res" >&6; }
17514 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17515 cat >>confdefs.h <<_ACEOF
17516 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17517 _ACEOF
17521 done
17523 case " $LIBOBJS " in
17524 *" fnmatch.$ac_objext "* ) ;;
17525 *) LIBOBJS="$LIBOBJS fnmatch.$ac_objext"
17527 esac
17529 FNMATCH_H=fnmatch.h
17534 if test $ac_cv_func_fnmatch_gnu != yes; then
17536 cat >>confdefs.h <<\_ACEOF
17537 #define fnmatch gnu_fnmatch
17538 _ACEOF
17545 for ac_func in gethostname
17547 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17548 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17549 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17550 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17551 echo $ECHO_N "(cached) $ECHO_C" >&6
17552 else
17553 cat >conftest.$ac_ext <<_ACEOF
17554 /* confdefs.h. */
17555 _ACEOF
17556 cat confdefs.h >>conftest.$ac_ext
17557 cat >>conftest.$ac_ext <<_ACEOF
17558 /* end confdefs.h. */
17559 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17560 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17561 #define $ac_func innocuous_$ac_func
17563 /* System header to define __stub macros and hopefully few prototypes,
17564 which can conflict with char $ac_func (); below.
17565 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17566 <limits.h> exists even on freestanding compilers. */
17568 #ifdef __STDC__
17569 # include <limits.h>
17570 #else
17571 # include <assert.h>
17572 #endif
17574 #undef $ac_func
17576 /* Override any GCC internal prototype to avoid an error.
17577 Use char because int might match the return type of a GCC
17578 builtin and then its argument prototype would still apply. */
17579 #ifdef __cplusplus
17580 extern "C"
17581 #endif
17582 char $ac_func ();
17583 /* The GNU C library defines this for functions which it implements
17584 to always fail with ENOSYS. Some functions are actually named
17585 something starting with __ and the normal name is an alias. */
17586 #if defined __stub_$ac_func || defined __stub___$ac_func
17587 choke me
17588 #endif
17591 main ()
17593 return $ac_func ();
17595 return 0;
17597 _ACEOF
17598 rm -f conftest.$ac_objext conftest$ac_exeext
17599 if { (ac_try="$ac_link"
17600 case "(($ac_try" in
17601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17602 *) ac_try_echo=$ac_try;;
17603 esac
17604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17605 (eval "$ac_link") 2>conftest.er1
17606 ac_status=$?
17607 grep -v '^ *+' conftest.er1 >conftest.err
17608 rm -f conftest.er1
17609 cat conftest.err >&5
17610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17611 (exit $ac_status); } &&
17612 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17613 { (case "(($ac_try" in
17614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17615 *) ac_try_echo=$ac_try;;
17616 esac
17617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17618 (eval "$ac_try") 2>&5
17619 ac_status=$?
17620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17621 (exit $ac_status); }; } &&
17622 { ac_try='test -s conftest$ac_exeext'
17623 { (case "(($ac_try" in
17624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17625 *) ac_try_echo=$ac_try;;
17626 esac
17627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17628 (eval "$ac_try") 2>&5
17629 ac_status=$?
17630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17631 (exit $ac_status); }; }; then
17632 eval "$as_ac_var=yes"
17633 else
17634 echo "$as_me: failed program was:" >&5
17635 sed 's/^/| /' conftest.$ac_ext >&5
17637 eval "$as_ac_var=no"
17640 rm -f core conftest.err conftest.$ac_objext \
17641 conftest$ac_exeext conftest.$ac_ext
17643 ac_res=`eval echo '${'$as_ac_var'}'`
17644 { echo "$as_me:$LINENO: result: $ac_res" >&5
17645 echo "${ECHO_T}$ac_res" >&6; }
17646 if test `eval echo '${'$as_ac_var'}'` = yes; then
17647 cat >>confdefs.h <<_ACEOF
17648 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17649 _ACEOF
17651 else
17652 case " $LIBOBJS " in
17653 *" $ac_func.$ac_objext "* ) ;;
17654 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
17656 esac
17659 done
17662 if test $ac_cv_func_gethostname = no; then
17665 for ac_func in uname
17667 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17668 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17669 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17670 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17671 echo $ECHO_N "(cached) $ECHO_C" >&6
17672 else
17673 cat >conftest.$ac_ext <<_ACEOF
17674 /* confdefs.h. */
17675 _ACEOF
17676 cat confdefs.h >>conftest.$ac_ext
17677 cat >>conftest.$ac_ext <<_ACEOF
17678 /* end confdefs.h. */
17679 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17680 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17681 #define $ac_func innocuous_$ac_func
17683 /* System header to define __stub macros and hopefully few prototypes,
17684 which can conflict with char $ac_func (); below.
17685 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17686 <limits.h> exists even on freestanding compilers. */
17688 #ifdef __STDC__
17689 # include <limits.h>
17690 #else
17691 # include <assert.h>
17692 #endif
17694 #undef $ac_func
17696 /* Override any GCC internal prototype to avoid an error.
17697 Use char because int might match the return type of a GCC
17698 builtin and then its argument prototype would still apply. */
17699 #ifdef __cplusplus
17700 extern "C"
17701 #endif
17702 char $ac_func ();
17703 /* The GNU C library defines this for functions which it implements
17704 to always fail with ENOSYS. Some functions are actually named
17705 something starting with __ and the normal name is an alias. */
17706 #if defined __stub_$ac_func || defined __stub___$ac_func
17707 choke me
17708 #endif
17711 main ()
17713 return $ac_func ();
17715 return 0;
17717 _ACEOF
17718 rm -f conftest.$ac_objext conftest$ac_exeext
17719 if { (ac_try="$ac_link"
17720 case "(($ac_try" in
17721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17722 *) ac_try_echo=$ac_try;;
17723 esac
17724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17725 (eval "$ac_link") 2>conftest.er1
17726 ac_status=$?
17727 grep -v '^ *+' conftest.er1 >conftest.err
17728 rm -f conftest.er1
17729 cat conftest.err >&5
17730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17731 (exit $ac_status); } &&
17732 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17733 { (case "(($ac_try" in
17734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17735 *) ac_try_echo=$ac_try;;
17736 esac
17737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17738 (eval "$ac_try") 2>&5
17739 ac_status=$?
17740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17741 (exit $ac_status); }; } &&
17742 { ac_try='test -s conftest$ac_exeext'
17743 { (case "(($ac_try" in
17744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17745 *) ac_try_echo=$ac_try;;
17746 esac
17747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17748 (eval "$ac_try") 2>&5
17749 ac_status=$?
17750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17751 (exit $ac_status); }; }; then
17752 eval "$as_ac_var=yes"
17753 else
17754 echo "$as_me: failed program was:" >&5
17755 sed 's/^/| /' conftest.$ac_ext >&5
17757 eval "$as_ac_var=no"
17760 rm -f core conftest.err conftest.$ac_objext \
17761 conftest$ac_exeext conftest.$ac_ext
17763 ac_res=`eval echo '${'$as_ac_var'}'`
17764 { echo "$as_me:$LINENO: result: $ac_res" >&5
17765 echo "${ECHO_T}$ac_res" >&6; }
17766 if test `eval echo '${'$as_ac_var'}'` = yes; then
17767 cat >>confdefs.h <<_ACEOF
17768 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17769 _ACEOF
17772 done
17777 { echo "$as_me:$LINENO: checking whether getdelim is declared" >&5
17778 echo $ECHO_N "checking whether getdelim is declared... $ECHO_C" >&6; }
17779 if test "${ac_cv_have_decl_getdelim+set}" = set; then
17780 echo $ECHO_N "(cached) $ECHO_C" >&6
17781 else
17782 cat >conftest.$ac_ext <<_ACEOF
17783 /* confdefs.h. */
17784 _ACEOF
17785 cat confdefs.h >>conftest.$ac_ext
17786 cat >>conftest.$ac_ext <<_ACEOF
17787 /* end confdefs.h. */
17788 $ac_includes_default
17790 main ()
17792 #ifndef getdelim
17793 char *p = (char *) getdelim;
17794 return !p;
17795 #endif
17798 return 0;
17800 _ACEOF
17801 rm -f conftest.$ac_objext
17802 if { (ac_try="$ac_compile"
17803 case "(($ac_try" in
17804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17805 *) ac_try_echo=$ac_try;;
17806 esac
17807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17808 (eval "$ac_compile") 2>conftest.er1
17809 ac_status=$?
17810 grep -v '^ *+' conftest.er1 >conftest.err
17811 rm -f conftest.er1
17812 cat conftest.err >&5
17813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17814 (exit $ac_status); } &&
17815 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17816 { (case "(($ac_try" in
17817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17818 *) ac_try_echo=$ac_try;;
17819 esac
17820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17821 (eval "$ac_try") 2>&5
17822 ac_status=$?
17823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17824 (exit $ac_status); }; } &&
17825 { ac_try='test -s conftest.$ac_objext'
17826 { (case "(($ac_try" in
17827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17828 *) ac_try_echo=$ac_try;;
17829 esac
17830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17831 (eval "$ac_try") 2>&5
17832 ac_status=$?
17833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17834 (exit $ac_status); }; }; then
17835 ac_cv_have_decl_getdelim=yes
17836 else
17837 echo "$as_me: failed program was:" >&5
17838 sed 's/^/| /' conftest.$ac_ext >&5
17840 ac_cv_have_decl_getdelim=no
17843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17845 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getdelim" >&5
17846 echo "${ECHO_T}$ac_cv_have_decl_getdelim" >&6; }
17847 if test $ac_cv_have_decl_getdelim = yes; then
17849 cat >>confdefs.h <<_ACEOF
17850 #define HAVE_DECL_GETDELIM 1
17851 _ACEOF
17854 else
17855 cat >>confdefs.h <<_ACEOF
17856 #define HAVE_DECL_GETDELIM 0
17857 _ACEOF
17868 { echo "$as_me:$LINENO: checking whether getline is declared" >&5
17869 echo $ECHO_N "checking whether getline is declared... $ECHO_C" >&6; }
17870 if test "${ac_cv_have_decl_getline+set}" = set; then
17871 echo $ECHO_N "(cached) $ECHO_C" >&6
17872 else
17873 cat >conftest.$ac_ext <<_ACEOF
17874 /* confdefs.h. */
17875 _ACEOF
17876 cat confdefs.h >>conftest.$ac_ext
17877 cat >>conftest.$ac_ext <<_ACEOF
17878 /* end confdefs.h. */
17879 $ac_includes_default
17881 main ()
17883 #ifndef getline
17884 char *p = (char *) getline;
17885 return !p;
17886 #endif
17889 return 0;
17891 _ACEOF
17892 rm -f conftest.$ac_objext
17893 if { (ac_try="$ac_compile"
17894 case "(($ac_try" in
17895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17896 *) ac_try_echo=$ac_try;;
17897 esac
17898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17899 (eval "$ac_compile") 2>conftest.er1
17900 ac_status=$?
17901 grep -v '^ *+' conftest.er1 >conftest.err
17902 rm -f conftest.er1
17903 cat conftest.err >&5
17904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17905 (exit $ac_status); } &&
17906 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17907 { (case "(($ac_try" in
17908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17909 *) ac_try_echo=$ac_try;;
17910 esac
17911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17912 (eval "$ac_try") 2>&5
17913 ac_status=$?
17914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17915 (exit $ac_status); }; } &&
17916 { ac_try='test -s conftest.$ac_objext'
17917 { (case "(($ac_try" in
17918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17919 *) ac_try_echo=$ac_try;;
17920 esac
17921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17922 (eval "$ac_try") 2>&5
17923 ac_status=$?
17924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17925 (exit $ac_status); }; }; then
17926 ac_cv_have_decl_getline=yes
17927 else
17928 echo "$as_me: failed program was:" >&5
17929 sed 's/^/| /' conftest.$ac_ext >&5
17931 ac_cv_have_decl_getline=no
17934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17936 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getline" >&5
17937 echo "${ECHO_T}$ac_cv_have_decl_getline" >&6; }
17938 if test $ac_cv_have_decl_getline = yes; then
17940 cat >>confdefs.h <<_ACEOF
17941 #define HAVE_DECL_GETLINE 1
17942 _ACEOF
17945 else
17946 cat >>confdefs.h <<_ACEOF
17947 #define HAVE_DECL_GETLINE 0
17948 _ACEOF
17955 gl_getline_needs_run_time_check=no
17956 { echo "$as_me:$LINENO: checking for getline" >&5
17957 echo $ECHO_N "checking for getline... $ECHO_C" >&6; }
17958 if test "${ac_cv_func_getline+set}" = set; then
17959 echo $ECHO_N "(cached) $ECHO_C" >&6
17960 else
17961 cat >conftest.$ac_ext <<_ACEOF
17962 /* confdefs.h. */
17963 _ACEOF
17964 cat confdefs.h >>conftest.$ac_ext
17965 cat >>conftest.$ac_ext <<_ACEOF
17966 /* end confdefs.h. */
17967 /* Define getline to an innocuous variant, in case <limits.h> declares getline.
17968 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17969 #define getline innocuous_getline
17971 /* System header to define __stub macros and hopefully few prototypes,
17972 which can conflict with char getline (); below.
17973 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17974 <limits.h> exists even on freestanding compilers. */
17976 #ifdef __STDC__
17977 # include <limits.h>
17978 #else
17979 # include <assert.h>
17980 #endif
17982 #undef getline
17984 /* Override any GCC internal prototype to avoid an error.
17985 Use char because int might match the return type of a GCC
17986 builtin and then its argument prototype would still apply. */
17987 #ifdef __cplusplus
17988 extern "C"
17989 #endif
17990 char getline ();
17991 /* The GNU C library defines this for functions which it implements
17992 to always fail with ENOSYS. Some functions are actually named
17993 something starting with __ and the normal name is an alias. */
17994 #if defined __stub_getline || defined __stub___getline
17995 choke me
17996 #endif
17999 main ()
18001 return getline ();
18003 return 0;
18005 _ACEOF
18006 rm -f conftest.$ac_objext conftest$ac_exeext
18007 if { (ac_try="$ac_link"
18008 case "(($ac_try" in
18009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18010 *) ac_try_echo=$ac_try;;
18011 esac
18012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18013 (eval "$ac_link") 2>conftest.er1
18014 ac_status=$?
18015 grep -v '^ *+' conftest.er1 >conftest.err
18016 rm -f conftest.er1
18017 cat conftest.err >&5
18018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18019 (exit $ac_status); } &&
18020 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18021 { (case "(($ac_try" in
18022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18023 *) ac_try_echo=$ac_try;;
18024 esac
18025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18026 (eval "$ac_try") 2>&5
18027 ac_status=$?
18028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18029 (exit $ac_status); }; } &&
18030 { ac_try='test -s conftest$ac_exeext'
18031 { (case "(($ac_try" in
18032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18033 *) ac_try_echo=$ac_try;;
18034 esac
18035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18036 (eval "$ac_try") 2>&5
18037 ac_status=$?
18038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18039 (exit $ac_status); }; }; then
18040 ac_cv_func_getline=yes
18041 else
18042 echo "$as_me: failed program was:" >&5
18043 sed 's/^/| /' conftest.$ac_ext >&5
18045 ac_cv_func_getline=no
18048 rm -f core conftest.err conftest.$ac_objext \
18049 conftest$ac_exeext conftest.$ac_ext
18051 { echo "$as_me:$LINENO: result: $ac_cv_func_getline" >&5
18052 echo "${ECHO_T}$ac_cv_func_getline" >&6; }
18053 if test $ac_cv_func_getline = yes; then
18054 gl_getline_needs_run_time_check=yes
18055 else
18056 am_cv_func_working_getline=no
18059 if test $gl_getline_needs_run_time_check = yes; then
18060 { echo "$as_me:$LINENO: checking for working getline function" >&5
18061 echo $ECHO_N "checking for working getline function... $ECHO_C" >&6; }
18062 if test "${am_cv_func_working_getline+set}" = set; then
18063 echo $ECHO_N "(cached) $ECHO_C" >&6
18064 else
18065 echo fooN |tr -d '\012'|tr N '\012' > conftest.data
18066 if test "$cross_compiling" = yes; then
18067 cat >conftest.$ac_ext <<_ACEOF
18068 /* confdefs.h. */
18069 _ACEOF
18070 cat confdefs.h >>conftest.$ac_ext
18071 cat >>conftest.$ac_ext <<_ACEOF
18072 /* end confdefs.h. */
18074 #include <features.h>
18075 #ifdef __GNU_LIBRARY__
18076 #if (__GLIBC__ >= 2)
18077 Lucky GNU user
18078 #endif
18079 #endif
18081 _ACEOF
18082 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18083 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
18084 am_cv_func_working_getline=yes
18085 else
18086 am_cv_func_working_getline=no
18088 rm -f conftest*
18091 else
18092 cat >conftest.$ac_ext <<_ACEOF
18093 /* confdefs.h. */
18094 _ACEOF
18095 cat confdefs.h >>conftest.$ac_ext
18096 cat >>conftest.$ac_ext <<_ACEOF
18097 /* end confdefs.h. */
18099 # include <stdio.h>
18100 # include <stdlib.h>
18101 # include <string.h>
18102 int main ()
18103 { /* Based on a test program from Karl Heuer. */
18104 char *line = NULL;
18105 size_t siz = 0;
18106 int len;
18107 FILE *in = fopen ("./conftest.data", "r");
18108 if (!in)
18109 return 1;
18110 len = getline (&line, &siz, in);
18111 exit ((len == 4 && line && strcmp (line, "foo\n") == 0) ? 0 : 1);
18114 _ACEOF
18115 rm -f conftest$ac_exeext
18116 if { (ac_try="$ac_link"
18117 case "(($ac_try" in
18118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18119 *) ac_try_echo=$ac_try;;
18120 esac
18121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18122 (eval "$ac_link") 2>&5
18123 ac_status=$?
18124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18125 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18126 { (case "(($ac_try" in
18127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18128 *) ac_try_echo=$ac_try;;
18129 esac
18130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18131 (eval "$ac_try") 2>&5
18132 ac_status=$?
18133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18134 (exit $ac_status); }; }; then
18135 am_cv_func_working_getline=yes
18136 else
18137 echo "$as_me: program exited with status $ac_status" >&5
18138 echo "$as_me: failed program was:" >&5
18139 sed 's/^/| /' conftest.$ac_ext >&5
18141 ( exit $ac_status )
18142 am_cv_func_working_getline=no
18144 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18149 { echo "$as_me:$LINENO: result: $am_cv_func_working_getline" >&5
18150 echo "${ECHO_T}$am_cv_func_working_getline" >&6; }
18153 if test $am_cv_func_working_getline = no; then
18155 cat >>confdefs.h <<\_ACEOF
18156 #define getline gnu_getline
18157 _ACEOF
18159 case " $LIBOBJS " in
18160 *" getline.$ac_objext "* ) ;;
18161 *) LIBOBJS="$LIBOBJS getline.$ac_objext"
18163 esac
18173 for ac_func in getdelim
18175 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18176 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18177 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18178 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18179 echo $ECHO_N "(cached) $ECHO_C" >&6
18180 else
18181 cat >conftest.$ac_ext <<_ACEOF
18182 /* confdefs.h. */
18183 _ACEOF
18184 cat confdefs.h >>conftest.$ac_ext
18185 cat >>conftest.$ac_ext <<_ACEOF
18186 /* end confdefs.h. */
18187 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18188 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18189 #define $ac_func innocuous_$ac_func
18191 /* System header to define __stub macros and hopefully few prototypes,
18192 which can conflict with char $ac_func (); below.
18193 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18194 <limits.h> exists even on freestanding compilers. */
18196 #ifdef __STDC__
18197 # include <limits.h>
18198 #else
18199 # include <assert.h>
18200 #endif
18202 #undef $ac_func
18204 /* Override any GCC internal prototype to avoid an error.
18205 Use char because int might match the return type of a GCC
18206 builtin and then its argument prototype would still apply. */
18207 #ifdef __cplusplus
18208 extern "C"
18209 #endif
18210 char $ac_func ();
18211 /* The GNU C library defines this for functions which it implements
18212 to always fail with ENOSYS. Some functions are actually named
18213 something starting with __ and the normal name is an alias. */
18214 #if defined __stub_$ac_func || defined __stub___$ac_func
18215 choke me
18216 #endif
18219 main ()
18221 return $ac_func ();
18223 return 0;
18225 _ACEOF
18226 rm -f conftest.$ac_objext conftest$ac_exeext
18227 if { (ac_try="$ac_link"
18228 case "(($ac_try" in
18229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18230 *) ac_try_echo=$ac_try;;
18231 esac
18232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18233 (eval "$ac_link") 2>conftest.er1
18234 ac_status=$?
18235 grep -v '^ *+' conftest.er1 >conftest.err
18236 rm -f conftest.er1
18237 cat conftest.err >&5
18238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18239 (exit $ac_status); } &&
18240 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18241 { (case "(($ac_try" in
18242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18243 *) ac_try_echo=$ac_try;;
18244 esac
18245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18246 (eval "$ac_try") 2>&5
18247 ac_status=$?
18248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18249 (exit $ac_status); }; } &&
18250 { ac_try='test -s conftest$ac_exeext'
18251 { (case "(($ac_try" in
18252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18253 *) ac_try_echo=$ac_try;;
18254 esac
18255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18256 (eval "$ac_try") 2>&5
18257 ac_status=$?
18258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18259 (exit $ac_status); }; }; then
18260 eval "$as_ac_var=yes"
18261 else
18262 echo "$as_me: failed program was:" >&5
18263 sed 's/^/| /' conftest.$ac_ext >&5
18265 eval "$as_ac_var=no"
18268 rm -f core conftest.err conftest.$ac_objext \
18269 conftest$ac_exeext conftest.$ac_ext
18271 ac_res=`eval echo '${'$as_ac_var'}'`
18272 { echo "$as_me:$LINENO: result: $ac_res" >&5
18273 echo "${ECHO_T}$ac_res" >&6; }
18274 if test `eval echo '${'$as_ac_var'}'` = yes; then
18275 cat >>confdefs.h <<_ACEOF
18276 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18277 _ACEOF
18279 else
18280 case " $LIBOBJS " in
18281 *" $ac_func.$ac_objext "* ) ;;
18282 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
18284 esac
18287 done
18295 if test $ac_cv_func_getdelim = no; then
18299 for ac_func in flockfile funlockfile
18301 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18302 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18303 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18304 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18305 echo $ECHO_N "(cached) $ECHO_C" >&6
18306 else
18307 cat >conftest.$ac_ext <<_ACEOF
18308 /* confdefs.h. */
18309 _ACEOF
18310 cat confdefs.h >>conftest.$ac_ext
18311 cat >>conftest.$ac_ext <<_ACEOF
18312 /* end confdefs.h. */
18313 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18314 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18315 #define $ac_func innocuous_$ac_func
18317 /* System header to define __stub macros and hopefully few prototypes,
18318 which can conflict with char $ac_func (); below.
18319 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18320 <limits.h> exists even on freestanding compilers. */
18322 #ifdef __STDC__
18323 # include <limits.h>
18324 #else
18325 # include <assert.h>
18326 #endif
18328 #undef $ac_func
18330 /* Override any GCC internal prototype to avoid an error.
18331 Use char because int might match the return type of a GCC
18332 builtin and then its argument prototype would still apply. */
18333 #ifdef __cplusplus
18334 extern "C"
18335 #endif
18336 char $ac_func ();
18337 /* The GNU C library defines this for functions which it implements
18338 to always fail with ENOSYS. Some functions are actually named
18339 something starting with __ and the normal name is an alias. */
18340 #if defined __stub_$ac_func || defined __stub___$ac_func
18341 choke me
18342 #endif
18345 main ()
18347 return $ac_func ();
18349 return 0;
18351 _ACEOF
18352 rm -f conftest.$ac_objext conftest$ac_exeext
18353 if { (ac_try="$ac_link"
18354 case "(($ac_try" in
18355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18356 *) ac_try_echo=$ac_try;;
18357 esac
18358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18359 (eval "$ac_link") 2>conftest.er1
18360 ac_status=$?
18361 grep -v '^ *+' conftest.er1 >conftest.err
18362 rm -f conftest.er1
18363 cat conftest.err >&5
18364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18365 (exit $ac_status); } &&
18366 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18367 { (case "(($ac_try" in
18368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18369 *) ac_try_echo=$ac_try;;
18370 esac
18371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18372 (eval "$ac_try") 2>&5
18373 ac_status=$?
18374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18375 (exit $ac_status); }; } &&
18376 { ac_try='test -s conftest$ac_exeext'
18377 { (case "(($ac_try" in
18378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18379 *) ac_try_echo=$ac_try;;
18380 esac
18381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18382 (eval "$ac_try") 2>&5
18383 ac_status=$?
18384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18385 (exit $ac_status); }; }; then
18386 eval "$as_ac_var=yes"
18387 else
18388 echo "$as_me: failed program was:" >&5
18389 sed 's/^/| /' conftest.$ac_ext >&5
18391 eval "$as_ac_var=no"
18394 rm -f core conftest.err conftest.$ac_objext \
18395 conftest$ac_exeext conftest.$ac_ext
18397 ac_res=`eval echo '${'$as_ac_var'}'`
18398 { echo "$as_me:$LINENO: result: $ac_res" >&5
18399 echo "${ECHO_T}$ac_res" >&6; }
18400 if test `eval echo '${'$as_ac_var'}'` = yes; then
18401 cat >>confdefs.h <<_ACEOF
18402 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18403 _ACEOF
18406 done
18414 ac_have_func=no # yes means we've found a way to get the load average.
18416 # Make sure getloadavg.c is where it belongs, at configure-time.
18417 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
18418 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
18419 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
18420 { (exit 1); exit 1; }; }
18422 ac_save_LIBS=$LIBS
18424 # Check for getloadavg, but be sure not to touch the cache variable.
18425 ({ echo "$as_me:$LINENO: checking for getloadavg" >&5
18426 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6; }
18427 if test "${ac_cv_func_getloadavg+set}" = set; then
18428 echo $ECHO_N "(cached) $ECHO_C" >&6
18429 else
18430 cat >conftest.$ac_ext <<_ACEOF
18431 /* confdefs.h. */
18432 _ACEOF
18433 cat confdefs.h >>conftest.$ac_ext
18434 cat >>conftest.$ac_ext <<_ACEOF
18435 /* end confdefs.h. */
18436 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
18437 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18438 #define getloadavg innocuous_getloadavg
18440 /* System header to define __stub macros and hopefully few prototypes,
18441 which can conflict with char getloadavg (); below.
18442 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18443 <limits.h> exists even on freestanding compilers. */
18445 #ifdef __STDC__
18446 # include <limits.h>
18447 #else
18448 # include <assert.h>
18449 #endif
18451 #undef getloadavg
18453 /* Override any GCC internal prototype to avoid an error.
18454 Use char because int might match the return type of a GCC
18455 builtin and then its argument prototype would still apply. */
18456 #ifdef __cplusplus
18457 extern "C"
18458 #endif
18459 char getloadavg ();
18460 /* The GNU C library defines this for functions which it implements
18461 to always fail with ENOSYS. Some functions are actually named
18462 something starting with __ and the normal name is an alias. */
18463 #if defined __stub_getloadavg || defined __stub___getloadavg
18464 choke me
18465 #endif
18468 main ()
18470 return getloadavg ();
18472 return 0;
18474 _ACEOF
18475 rm -f conftest.$ac_objext conftest$ac_exeext
18476 if { (ac_try="$ac_link"
18477 case "(($ac_try" in
18478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18479 *) ac_try_echo=$ac_try;;
18480 esac
18481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18482 (eval "$ac_link") 2>conftest.er1
18483 ac_status=$?
18484 grep -v '^ *+' conftest.er1 >conftest.err
18485 rm -f conftest.er1
18486 cat conftest.err >&5
18487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18488 (exit $ac_status); } &&
18489 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18490 { (case "(($ac_try" in
18491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18492 *) ac_try_echo=$ac_try;;
18493 esac
18494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18495 (eval "$ac_try") 2>&5
18496 ac_status=$?
18497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18498 (exit $ac_status); }; } &&
18499 { ac_try='test -s conftest$ac_exeext'
18500 { (case "(($ac_try" in
18501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18502 *) ac_try_echo=$ac_try;;
18503 esac
18504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18505 (eval "$ac_try") 2>&5
18506 ac_status=$?
18507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18508 (exit $ac_status); }; }; then
18509 ac_cv_func_getloadavg=yes
18510 else
18511 echo "$as_me: failed program was:" >&5
18512 sed 's/^/| /' conftest.$ac_ext >&5
18514 ac_cv_func_getloadavg=no
18517 rm -f core conftest.err conftest.$ac_objext \
18518 conftest$ac_exeext conftest.$ac_ext
18520 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
18521 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6; }
18522 if test $ac_cv_func_getloadavg = yes; then
18523 exit 0
18524 else
18525 exit 1
18527 ) && ac_have_func=yes
18529 # On HPUX9, an unprivileged user can get load averages through this function.
18531 for ac_func in pstat_getdynamic
18533 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18534 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18535 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18536 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18537 echo $ECHO_N "(cached) $ECHO_C" >&6
18538 else
18539 cat >conftest.$ac_ext <<_ACEOF
18540 /* confdefs.h. */
18541 _ACEOF
18542 cat confdefs.h >>conftest.$ac_ext
18543 cat >>conftest.$ac_ext <<_ACEOF
18544 /* end confdefs.h. */
18545 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18546 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18547 #define $ac_func innocuous_$ac_func
18549 /* System header to define __stub macros and hopefully few prototypes,
18550 which can conflict with char $ac_func (); below.
18551 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18552 <limits.h> exists even on freestanding compilers. */
18554 #ifdef __STDC__
18555 # include <limits.h>
18556 #else
18557 # include <assert.h>
18558 #endif
18560 #undef $ac_func
18562 /* Override any GCC internal prototype to avoid an error.
18563 Use char because int might match the return type of a GCC
18564 builtin and then its argument prototype would still apply. */
18565 #ifdef __cplusplus
18566 extern "C"
18567 #endif
18568 char $ac_func ();
18569 /* The GNU C library defines this for functions which it implements
18570 to always fail with ENOSYS. Some functions are actually named
18571 something starting with __ and the normal name is an alias. */
18572 #if defined __stub_$ac_func || defined __stub___$ac_func
18573 choke me
18574 #endif
18577 main ()
18579 return $ac_func ();
18581 return 0;
18583 _ACEOF
18584 rm -f conftest.$ac_objext conftest$ac_exeext
18585 if { (ac_try="$ac_link"
18586 case "(($ac_try" in
18587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18588 *) ac_try_echo=$ac_try;;
18589 esac
18590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18591 (eval "$ac_link") 2>conftest.er1
18592 ac_status=$?
18593 grep -v '^ *+' conftest.er1 >conftest.err
18594 rm -f conftest.er1
18595 cat conftest.err >&5
18596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18597 (exit $ac_status); } &&
18598 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18599 { (case "(($ac_try" in
18600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18601 *) ac_try_echo=$ac_try;;
18602 esac
18603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18604 (eval "$ac_try") 2>&5
18605 ac_status=$?
18606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18607 (exit $ac_status); }; } &&
18608 { ac_try='test -s conftest$ac_exeext'
18609 { (case "(($ac_try" in
18610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18611 *) ac_try_echo=$ac_try;;
18612 esac
18613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18614 (eval "$ac_try") 2>&5
18615 ac_status=$?
18616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18617 (exit $ac_status); }; }; then
18618 eval "$as_ac_var=yes"
18619 else
18620 echo "$as_me: failed program was:" >&5
18621 sed 's/^/| /' conftest.$ac_ext >&5
18623 eval "$as_ac_var=no"
18626 rm -f core conftest.err conftest.$ac_objext \
18627 conftest$ac_exeext conftest.$ac_ext
18629 ac_res=`eval echo '${'$as_ac_var'}'`
18630 { echo "$as_me:$LINENO: result: $ac_res" >&5
18631 echo "${ECHO_T}$ac_res" >&6; }
18632 if test `eval echo '${'$as_ac_var'}'` = yes; then
18633 cat >>confdefs.h <<_ACEOF
18634 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18635 _ACEOF
18638 done
18641 # Solaris has libkstat which does not require root.
18643 { echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
18644 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6; }
18645 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
18646 echo $ECHO_N "(cached) $ECHO_C" >&6
18647 else
18648 ac_check_lib_save_LIBS=$LIBS
18649 LIBS="-lkstat $LIBS"
18650 cat >conftest.$ac_ext <<_ACEOF
18651 /* confdefs.h. */
18652 _ACEOF
18653 cat confdefs.h >>conftest.$ac_ext
18654 cat >>conftest.$ac_ext <<_ACEOF
18655 /* end confdefs.h. */
18657 /* Override any GCC internal prototype to avoid an error.
18658 Use char because int might match the return type of a GCC
18659 builtin and then its argument prototype would still apply. */
18660 #ifdef __cplusplus
18661 extern "C"
18662 #endif
18663 char kstat_open ();
18665 main ()
18667 return kstat_open ();
18669 return 0;
18671 _ACEOF
18672 rm -f conftest.$ac_objext conftest$ac_exeext
18673 if { (ac_try="$ac_link"
18674 case "(($ac_try" in
18675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18676 *) ac_try_echo=$ac_try;;
18677 esac
18678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18679 (eval "$ac_link") 2>conftest.er1
18680 ac_status=$?
18681 grep -v '^ *+' conftest.er1 >conftest.err
18682 rm -f conftest.er1
18683 cat conftest.err >&5
18684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18685 (exit $ac_status); } &&
18686 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18687 { (case "(($ac_try" in
18688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18689 *) ac_try_echo=$ac_try;;
18690 esac
18691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18692 (eval "$ac_try") 2>&5
18693 ac_status=$?
18694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18695 (exit $ac_status); }; } &&
18696 { ac_try='test -s conftest$ac_exeext'
18697 { (case "(($ac_try" in
18698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18699 *) ac_try_echo=$ac_try;;
18700 esac
18701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18702 (eval "$ac_try") 2>&5
18703 ac_status=$?
18704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18705 (exit $ac_status); }; }; then
18706 ac_cv_lib_kstat_kstat_open=yes
18707 else
18708 echo "$as_me: failed program was:" >&5
18709 sed 's/^/| /' conftest.$ac_ext >&5
18711 ac_cv_lib_kstat_kstat_open=no
18714 rm -f core conftest.err conftest.$ac_objext \
18715 conftest$ac_exeext conftest.$ac_ext
18716 LIBS=$ac_check_lib_save_LIBS
18718 { echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
18719 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; }
18720 if test $ac_cv_lib_kstat_kstat_open = yes; then
18721 cat >>confdefs.h <<_ACEOF
18722 #define HAVE_LIBKSTAT 1
18723 _ACEOF
18725 LIBS="-lkstat $LIBS"
18729 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
18731 # Some systems with -lutil have (and need) -lkvm as well, some do not.
18732 # On Solaris, -lkvm requires nlist from -lelf, so check that first
18733 # to get the right answer into the cache.
18734 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
18735 if test $ac_have_func = no; then
18736 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
18737 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
18738 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
18739 echo $ECHO_N "(cached) $ECHO_C" >&6
18740 else
18741 ac_check_lib_save_LIBS=$LIBS
18742 LIBS="-lelf $LIBS"
18743 cat >conftest.$ac_ext <<_ACEOF
18744 /* confdefs.h. */
18745 _ACEOF
18746 cat confdefs.h >>conftest.$ac_ext
18747 cat >>conftest.$ac_ext <<_ACEOF
18748 /* end confdefs.h. */
18750 /* Override any GCC internal prototype to avoid an error.
18751 Use char because int might match the return type of a GCC
18752 builtin and then its argument prototype would still apply. */
18753 #ifdef __cplusplus
18754 extern "C"
18755 #endif
18756 char elf_begin ();
18758 main ()
18760 return elf_begin ();
18762 return 0;
18764 _ACEOF
18765 rm -f conftest.$ac_objext conftest$ac_exeext
18766 if { (ac_try="$ac_link"
18767 case "(($ac_try" in
18768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18769 *) ac_try_echo=$ac_try;;
18770 esac
18771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18772 (eval "$ac_link") 2>conftest.er1
18773 ac_status=$?
18774 grep -v '^ *+' conftest.er1 >conftest.err
18775 rm -f conftest.er1
18776 cat conftest.err >&5
18777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18778 (exit $ac_status); } &&
18779 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18780 { (case "(($ac_try" in
18781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18782 *) ac_try_echo=$ac_try;;
18783 esac
18784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18785 (eval "$ac_try") 2>&5
18786 ac_status=$?
18787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18788 (exit $ac_status); }; } &&
18789 { ac_try='test -s conftest$ac_exeext'
18790 { (case "(($ac_try" in
18791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18792 *) ac_try_echo=$ac_try;;
18793 esac
18794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18795 (eval "$ac_try") 2>&5
18796 ac_status=$?
18797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18798 (exit $ac_status); }; }; then
18799 ac_cv_lib_elf_elf_begin=yes
18800 else
18801 echo "$as_me: failed program was:" >&5
18802 sed 's/^/| /' conftest.$ac_ext >&5
18804 ac_cv_lib_elf_elf_begin=no
18807 rm -f core conftest.err conftest.$ac_objext \
18808 conftest$ac_exeext conftest.$ac_ext
18809 LIBS=$ac_check_lib_save_LIBS
18811 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
18812 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
18813 if test $ac_cv_lib_elf_elf_begin = yes; then
18814 LIBS="-lelf $LIBS"
18818 if test $ac_have_func = no; then
18819 { echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
18820 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6; }
18821 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
18822 echo $ECHO_N "(cached) $ECHO_C" >&6
18823 else
18824 ac_check_lib_save_LIBS=$LIBS
18825 LIBS="-lkvm $LIBS"
18826 cat >conftest.$ac_ext <<_ACEOF
18827 /* confdefs.h. */
18828 _ACEOF
18829 cat confdefs.h >>conftest.$ac_ext
18830 cat >>conftest.$ac_ext <<_ACEOF
18831 /* end confdefs.h. */
18833 /* Override any GCC internal prototype to avoid an error.
18834 Use char because int might match the return type of a GCC
18835 builtin and then its argument prototype would still apply. */
18836 #ifdef __cplusplus
18837 extern "C"
18838 #endif
18839 char kvm_open ();
18841 main ()
18843 return kvm_open ();
18845 return 0;
18847 _ACEOF
18848 rm -f conftest.$ac_objext conftest$ac_exeext
18849 if { (ac_try="$ac_link"
18850 case "(($ac_try" in
18851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18852 *) ac_try_echo=$ac_try;;
18853 esac
18854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18855 (eval "$ac_link") 2>conftest.er1
18856 ac_status=$?
18857 grep -v '^ *+' conftest.er1 >conftest.err
18858 rm -f conftest.er1
18859 cat conftest.err >&5
18860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18861 (exit $ac_status); } &&
18862 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18863 { (case "(($ac_try" in
18864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18865 *) ac_try_echo=$ac_try;;
18866 esac
18867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18868 (eval "$ac_try") 2>&5
18869 ac_status=$?
18870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18871 (exit $ac_status); }; } &&
18872 { ac_try='test -s conftest$ac_exeext'
18873 { (case "(($ac_try" in
18874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18875 *) ac_try_echo=$ac_try;;
18876 esac
18877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18878 (eval "$ac_try") 2>&5
18879 ac_status=$?
18880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18881 (exit $ac_status); }; }; then
18882 ac_cv_lib_kvm_kvm_open=yes
18883 else
18884 echo "$as_me: failed program was:" >&5
18885 sed 's/^/| /' conftest.$ac_ext >&5
18887 ac_cv_lib_kvm_kvm_open=no
18890 rm -f core conftest.err conftest.$ac_objext \
18891 conftest$ac_exeext conftest.$ac_ext
18892 LIBS=$ac_check_lib_save_LIBS
18894 { echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
18895 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; }
18896 if test $ac_cv_lib_kvm_kvm_open = yes; then
18897 LIBS="-lkvm $LIBS"
18900 # Check for the 4.4BSD definition of getloadavg.
18901 { echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
18902 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6; }
18903 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
18904 echo $ECHO_N "(cached) $ECHO_C" >&6
18905 else
18906 ac_check_lib_save_LIBS=$LIBS
18907 LIBS="-lutil $LIBS"
18908 cat >conftest.$ac_ext <<_ACEOF
18909 /* confdefs.h. */
18910 _ACEOF
18911 cat confdefs.h >>conftest.$ac_ext
18912 cat >>conftest.$ac_ext <<_ACEOF
18913 /* end confdefs.h. */
18915 /* Override any GCC internal prototype to avoid an error.
18916 Use char because int might match the return type of a GCC
18917 builtin and then its argument prototype would still apply. */
18918 #ifdef __cplusplus
18919 extern "C"
18920 #endif
18921 char getloadavg ();
18923 main ()
18925 return getloadavg ();
18927 return 0;
18929 _ACEOF
18930 rm -f conftest.$ac_objext conftest$ac_exeext
18931 if { (ac_try="$ac_link"
18932 case "(($ac_try" in
18933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18934 *) ac_try_echo=$ac_try;;
18935 esac
18936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18937 (eval "$ac_link") 2>conftest.er1
18938 ac_status=$?
18939 grep -v '^ *+' conftest.er1 >conftest.err
18940 rm -f conftest.er1
18941 cat conftest.err >&5
18942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18943 (exit $ac_status); } &&
18944 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18945 { (case "(($ac_try" in
18946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18947 *) ac_try_echo=$ac_try;;
18948 esac
18949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18950 (eval "$ac_try") 2>&5
18951 ac_status=$?
18952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18953 (exit $ac_status); }; } &&
18954 { ac_try='test -s conftest$ac_exeext'
18955 { (case "(($ac_try" in
18956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18957 *) ac_try_echo=$ac_try;;
18958 esac
18959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18960 (eval "$ac_try") 2>&5
18961 ac_status=$?
18962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18963 (exit $ac_status); }; }; then
18964 ac_cv_lib_util_getloadavg=yes
18965 else
18966 echo "$as_me: failed program was:" >&5
18967 sed 's/^/| /' conftest.$ac_ext >&5
18969 ac_cv_lib_util_getloadavg=no
18972 rm -f core conftest.err conftest.$ac_objext \
18973 conftest$ac_exeext conftest.$ac_ext
18974 LIBS=$ac_check_lib_save_LIBS
18976 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
18977 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6; }
18978 if test $ac_cv_lib_util_getloadavg = yes; then
18979 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
18984 if test $ac_have_func = no; then
18985 # There is a commonly available library for RS/6000 AIX.
18986 # Since it is not a standard part of AIX, it might be installed locally.
18987 ac_getloadavg_LIBS=$LIBS
18988 LIBS="-L/usr/local/lib $LIBS"
18989 { echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
18990 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6; }
18991 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
18992 echo $ECHO_N "(cached) $ECHO_C" >&6
18993 else
18994 ac_check_lib_save_LIBS=$LIBS
18995 LIBS="-lgetloadavg $LIBS"
18996 cat >conftest.$ac_ext <<_ACEOF
18997 /* confdefs.h. */
18998 _ACEOF
18999 cat confdefs.h >>conftest.$ac_ext
19000 cat >>conftest.$ac_ext <<_ACEOF
19001 /* end confdefs.h. */
19003 /* Override any GCC internal prototype to avoid an error.
19004 Use char because int might match the return type of a GCC
19005 builtin and then its argument prototype would still apply. */
19006 #ifdef __cplusplus
19007 extern "C"
19008 #endif
19009 char getloadavg ();
19011 main ()
19013 return getloadavg ();
19015 return 0;
19017 _ACEOF
19018 rm -f conftest.$ac_objext conftest$ac_exeext
19019 if { (ac_try="$ac_link"
19020 case "(($ac_try" in
19021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19022 *) ac_try_echo=$ac_try;;
19023 esac
19024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19025 (eval "$ac_link") 2>conftest.er1
19026 ac_status=$?
19027 grep -v '^ *+' conftest.er1 >conftest.err
19028 rm -f conftest.er1
19029 cat conftest.err >&5
19030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19031 (exit $ac_status); } &&
19032 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19033 { (case "(($ac_try" in
19034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19035 *) ac_try_echo=$ac_try;;
19036 esac
19037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19038 (eval "$ac_try") 2>&5
19039 ac_status=$?
19040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19041 (exit $ac_status); }; } &&
19042 { ac_try='test -s conftest$ac_exeext'
19043 { (case "(($ac_try" in
19044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19045 *) ac_try_echo=$ac_try;;
19046 esac
19047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19048 (eval "$ac_try") 2>&5
19049 ac_status=$?
19050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19051 (exit $ac_status); }; }; then
19052 ac_cv_lib_getloadavg_getloadavg=yes
19053 else
19054 echo "$as_me: failed program was:" >&5
19055 sed 's/^/| /' conftest.$ac_ext >&5
19057 ac_cv_lib_getloadavg_getloadavg=no
19060 rm -f core conftest.err conftest.$ac_objext \
19061 conftest$ac_exeext conftest.$ac_ext
19062 LIBS=$ac_check_lib_save_LIBS
19064 { echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
19065 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6; }
19066 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
19067 LIBS="-lgetloadavg $LIBS"
19068 else
19069 LIBS=$ac_getloadavg_LIBS
19074 # Make sure it is really in the library, if we think we found it,
19075 # otherwise set up the replacement function.
19077 for ac_func in getloadavg
19079 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19080 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19081 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19082 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19083 echo $ECHO_N "(cached) $ECHO_C" >&6
19084 else
19085 cat >conftest.$ac_ext <<_ACEOF
19086 /* confdefs.h. */
19087 _ACEOF
19088 cat confdefs.h >>conftest.$ac_ext
19089 cat >>conftest.$ac_ext <<_ACEOF
19090 /* end confdefs.h. */
19091 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19092 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19093 #define $ac_func innocuous_$ac_func
19095 /* System header to define __stub macros and hopefully few prototypes,
19096 which can conflict with char $ac_func (); below.
19097 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19098 <limits.h> exists even on freestanding compilers. */
19100 #ifdef __STDC__
19101 # include <limits.h>
19102 #else
19103 # include <assert.h>
19104 #endif
19106 #undef $ac_func
19108 /* Override any GCC internal prototype to avoid an error.
19109 Use char because int might match the return type of a GCC
19110 builtin and then its argument prototype would still apply. */
19111 #ifdef __cplusplus
19112 extern "C"
19113 #endif
19114 char $ac_func ();
19115 /* The GNU C library defines this for functions which it implements
19116 to always fail with ENOSYS. Some functions are actually named
19117 something starting with __ and the normal name is an alias. */
19118 #if defined __stub_$ac_func || defined __stub___$ac_func
19119 choke me
19120 #endif
19123 main ()
19125 return $ac_func ();
19127 return 0;
19129 _ACEOF
19130 rm -f conftest.$ac_objext conftest$ac_exeext
19131 if { (ac_try="$ac_link"
19132 case "(($ac_try" in
19133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19134 *) ac_try_echo=$ac_try;;
19135 esac
19136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19137 (eval "$ac_link") 2>conftest.er1
19138 ac_status=$?
19139 grep -v '^ *+' conftest.er1 >conftest.err
19140 rm -f conftest.er1
19141 cat conftest.err >&5
19142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19143 (exit $ac_status); } &&
19144 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19145 { (case "(($ac_try" in
19146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19147 *) ac_try_echo=$ac_try;;
19148 esac
19149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19150 (eval "$ac_try") 2>&5
19151 ac_status=$?
19152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19153 (exit $ac_status); }; } &&
19154 { ac_try='test -s conftest$ac_exeext'
19155 { (case "(($ac_try" in
19156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19157 *) ac_try_echo=$ac_try;;
19158 esac
19159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19160 (eval "$ac_try") 2>&5
19161 ac_status=$?
19162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19163 (exit $ac_status); }; }; then
19164 eval "$as_ac_var=yes"
19165 else
19166 echo "$as_me: failed program was:" >&5
19167 sed 's/^/| /' conftest.$ac_ext >&5
19169 eval "$as_ac_var=no"
19172 rm -f core conftest.err conftest.$ac_objext \
19173 conftest$ac_exeext conftest.$ac_ext
19175 ac_res=`eval echo '${'$as_ac_var'}'`
19176 { echo "$as_me:$LINENO: result: $ac_res" >&5
19177 echo "${ECHO_T}$ac_res" >&6; }
19178 if test `eval echo '${'$as_ac_var'}'` = yes; then
19179 cat >>confdefs.h <<_ACEOF
19180 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19181 _ACEOF
19183 else
19184 case " $LIBOBJS " in
19185 *" getloadavg.$ac_objext "* ) ;;
19186 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
19188 esac
19191 cat >>confdefs.h <<\_ACEOF
19192 #define C_GETLOADAVG 1
19193 _ACEOF
19195 # Figure out what our getloadavg.c needs.
19196 ac_have_func=no
19197 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
19198 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
19199 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
19200 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
19201 echo $ECHO_N "(cached) $ECHO_C" >&6
19203 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
19204 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
19205 else
19206 # Is the header compilable?
19207 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
19208 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6; }
19209 cat >conftest.$ac_ext <<_ACEOF
19210 /* confdefs.h. */
19211 _ACEOF
19212 cat confdefs.h >>conftest.$ac_ext
19213 cat >>conftest.$ac_ext <<_ACEOF
19214 /* end confdefs.h. */
19215 $ac_includes_default
19216 #include <sys/dg_sys_info.h>
19217 _ACEOF
19218 rm -f conftest.$ac_objext
19219 if { (ac_try="$ac_compile"
19220 case "(($ac_try" in
19221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19222 *) ac_try_echo=$ac_try;;
19223 esac
19224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19225 (eval "$ac_compile") 2>conftest.er1
19226 ac_status=$?
19227 grep -v '^ *+' conftest.er1 >conftest.err
19228 rm -f conftest.er1
19229 cat conftest.err >&5
19230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19231 (exit $ac_status); } &&
19232 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19233 { (case "(($ac_try" in
19234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19235 *) ac_try_echo=$ac_try;;
19236 esac
19237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19238 (eval "$ac_try") 2>&5
19239 ac_status=$?
19240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19241 (exit $ac_status); }; } &&
19242 { ac_try='test -s conftest.$ac_objext'
19243 { (case "(($ac_try" in
19244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19245 *) ac_try_echo=$ac_try;;
19246 esac
19247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19248 (eval "$ac_try") 2>&5
19249 ac_status=$?
19250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19251 (exit $ac_status); }; }; then
19252 ac_header_compiler=yes
19253 else
19254 echo "$as_me: failed program was:" >&5
19255 sed 's/^/| /' conftest.$ac_ext >&5
19257 ac_header_compiler=no
19260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19261 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19262 echo "${ECHO_T}$ac_header_compiler" >&6; }
19264 # Is the header present?
19265 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
19266 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6; }
19267 cat >conftest.$ac_ext <<_ACEOF
19268 /* confdefs.h. */
19269 _ACEOF
19270 cat confdefs.h >>conftest.$ac_ext
19271 cat >>conftest.$ac_ext <<_ACEOF
19272 /* end confdefs.h. */
19273 #include <sys/dg_sys_info.h>
19274 _ACEOF
19275 if { (ac_try="$ac_cpp conftest.$ac_ext"
19276 case "(($ac_try" in
19277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19278 *) ac_try_echo=$ac_try;;
19279 esac
19280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19281 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19282 ac_status=$?
19283 grep -v '^ *+' conftest.er1 >conftest.err
19284 rm -f conftest.er1
19285 cat conftest.err >&5
19286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19287 (exit $ac_status); } >/dev/null; then
19288 if test -s conftest.err; then
19289 ac_cpp_err=$ac_c_preproc_warn_flag
19290 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19291 else
19292 ac_cpp_err=
19294 else
19295 ac_cpp_err=yes
19297 if test -z "$ac_cpp_err"; then
19298 ac_header_preproc=yes
19299 else
19300 echo "$as_me: failed program was:" >&5
19301 sed 's/^/| /' conftest.$ac_ext >&5
19303 ac_header_preproc=no
19306 rm -f conftest.err conftest.$ac_ext
19307 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19308 echo "${ECHO_T}$ac_header_preproc" >&6; }
19310 # So? What about this header?
19311 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19312 yes:no: )
19313 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
19314 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19315 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
19316 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
19317 ac_header_preproc=yes
19319 no:yes:* )
19320 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
19321 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
19322 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
19323 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
19324 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
19325 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
19326 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
19327 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
19328 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
19329 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
19330 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
19331 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
19332 ( cat <<\_ASBOX
19333 ## ------------------------------------ ##
19334 ## Report this to bug-coreutils@gnu.org ##
19335 ## ------------------------------------ ##
19336 _ASBOX
19337 ) | sed "s/^/$as_me: WARNING: /" >&2
19339 esac
19340 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
19341 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
19342 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
19343 echo $ECHO_N "(cached) $ECHO_C" >&6
19344 else
19345 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
19347 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
19348 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
19351 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
19352 ac_have_func=yes
19354 cat >>confdefs.h <<\_ACEOF
19355 #define DGUX 1
19356 _ACEOF
19359 { echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
19360 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6; }
19361 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
19362 echo $ECHO_N "(cached) $ECHO_C" >&6
19363 else
19364 ac_check_lib_save_LIBS=$LIBS
19365 LIBS="-ldgc $LIBS"
19366 cat >conftest.$ac_ext <<_ACEOF
19367 /* confdefs.h. */
19368 _ACEOF
19369 cat confdefs.h >>conftest.$ac_ext
19370 cat >>conftest.$ac_ext <<_ACEOF
19371 /* end confdefs.h. */
19373 /* Override any GCC internal prototype to avoid an error.
19374 Use char because int might match the return type of a GCC
19375 builtin and then its argument prototype would still apply. */
19376 #ifdef __cplusplus
19377 extern "C"
19378 #endif
19379 char dg_sys_info ();
19381 main ()
19383 return dg_sys_info ();
19385 return 0;
19387 _ACEOF
19388 rm -f conftest.$ac_objext conftest$ac_exeext
19389 if { (ac_try="$ac_link"
19390 case "(($ac_try" in
19391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19392 *) ac_try_echo=$ac_try;;
19393 esac
19394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19395 (eval "$ac_link") 2>conftest.er1
19396 ac_status=$?
19397 grep -v '^ *+' conftest.er1 >conftest.err
19398 rm -f conftest.er1
19399 cat conftest.err >&5
19400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19401 (exit $ac_status); } &&
19402 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19403 { (case "(($ac_try" in
19404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19405 *) ac_try_echo=$ac_try;;
19406 esac
19407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19408 (eval "$ac_try") 2>&5
19409 ac_status=$?
19410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19411 (exit $ac_status); }; } &&
19412 { ac_try='test -s conftest$ac_exeext'
19413 { (case "(($ac_try" in
19414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19415 *) ac_try_echo=$ac_try;;
19416 esac
19417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19418 (eval "$ac_try") 2>&5
19419 ac_status=$?
19420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19421 (exit $ac_status); }; }; then
19422 ac_cv_lib_dgc_dg_sys_info=yes
19423 else
19424 echo "$as_me: failed program was:" >&5
19425 sed 's/^/| /' conftest.$ac_ext >&5
19427 ac_cv_lib_dgc_dg_sys_info=no
19430 rm -f core conftest.err conftest.$ac_objext \
19431 conftest$ac_exeext conftest.$ac_ext
19432 LIBS=$ac_check_lib_save_LIBS
19434 { echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
19435 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6; }
19436 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
19437 cat >>confdefs.h <<_ACEOF
19438 #define HAVE_LIBDGC 1
19439 _ACEOF
19441 LIBS="-ldgc $LIBS"
19449 if test "${ac_cv_header_locale_h+set}" = set; then
19450 { echo "$as_me:$LINENO: checking for locale.h" >&5
19451 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
19452 if test "${ac_cv_header_locale_h+set}" = set; then
19453 echo $ECHO_N "(cached) $ECHO_C" >&6
19455 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
19456 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
19457 else
19458 # Is the header compilable?
19459 { echo "$as_me:$LINENO: checking locale.h usability" >&5
19460 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6; }
19461 cat >conftest.$ac_ext <<_ACEOF
19462 /* confdefs.h. */
19463 _ACEOF
19464 cat confdefs.h >>conftest.$ac_ext
19465 cat >>conftest.$ac_ext <<_ACEOF
19466 /* end confdefs.h. */
19467 $ac_includes_default
19468 #include <locale.h>
19469 _ACEOF
19470 rm -f conftest.$ac_objext
19471 if { (ac_try="$ac_compile"
19472 case "(($ac_try" in
19473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19474 *) ac_try_echo=$ac_try;;
19475 esac
19476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19477 (eval "$ac_compile") 2>conftest.er1
19478 ac_status=$?
19479 grep -v '^ *+' conftest.er1 >conftest.err
19480 rm -f conftest.er1
19481 cat conftest.err >&5
19482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19483 (exit $ac_status); } &&
19484 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19485 { (case "(($ac_try" in
19486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19487 *) ac_try_echo=$ac_try;;
19488 esac
19489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19490 (eval "$ac_try") 2>&5
19491 ac_status=$?
19492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19493 (exit $ac_status); }; } &&
19494 { ac_try='test -s conftest.$ac_objext'
19495 { (case "(($ac_try" in
19496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19497 *) ac_try_echo=$ac_try;;
19498 esac
19499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19500 (eval "$ac_try") 2>&5
19501 ac_status=$?
19502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19503 (exit $ac_status); }; }; then
19504 ac_header_compiler=yes
19505 else
19506 echo "$as_me: failed program was:" >&5
19507 sed 's/^/| /' conftest.$ac_ext >&5
19509 ac_header_compiler=no
19512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19513 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19514 echo "${ECHO_T}$ac_header_compiler" >&6; }
19516 # Is the header present?
19517 { echo "$as_me:$LINENO: checking locale.h presence" >&5
19518 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6; }
19519 cat >conftest.$ac_ext <<_ACEOF
19520 /* confdefs.h. */
19521 _ACEOF
19522 cat confdefs.h >>conftest.$ac_ext
19523 cat >>conftest.$ac_ext <<_ACEOF
19524 /* end confdefs.h. */
19525 #include <locale.h>
19526 _ACEOF
19527 if { (ac_try="$ac_cpp conftest.$ac_ext"
19528 case "(($ac_try" in
19529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19530 *) ac_try_echo=$ac_try;;
19531 esac
19532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19533 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19534 ac_status=$?
19535 grep -v '^ *+' conftest.er1 >conftest.err
19536 rm -f conftest.er1
19537 cat conftest.err >&5
19538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19539 (exit $ac_status); } >/dev/null; then
19540 if test -s conftest.err; then
19541 ac_cpp_err=$ac_c_preproc_warn_flag
19542 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19543 else
19544 ac_cpp_err=
19546 else
19547 ac_cpp_err=yes
19549 if test -z "$ac_cpp_err"; then
19550 ac_header_preproc=yes
19551 else
19552 echo "$as_me: failed program was:" >&5
19553 sed 's/^/| /' conftest.$ac_ext >&5
19555 ac_header_preproc=no
19558 rm -f conftest.err conftest.$ac_ext
19559 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19560 echo "${ECHO_T}$ac_header_preproc" >&6; }
19562 # So? What about this header?
19563 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19564 yes:no: )
19565 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
19566 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19567 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
19568 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
19569 ac_header_preproc=yes
19571 no:yes:* )
19572 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
19573 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
19574 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
19575 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
19576 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
19577 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
19578 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
19579 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
19580 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
19581 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
19582 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
19583 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
19584 ( cat <<\_ASBOX
19585 ## ------------------------------------ ##
19586 ## Report this to bug-coreutils@gnu.org ##
19587 ## ------------------------------------ ##
19588 _ASBOX
19589 ) | sed "s/^/$as_me: WARNING: /" >&2
19591 esac
19592 { echo "$as_me:$LINENO: checking for locale.h" >&5
19593 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
19594 if test "${ac_cv_header_locale_h+set}" = set; then
19595 echo $ECHO_N "(cached) $ECHO_C" >&6
19596 else
19597 ac_cv_header_locale_h=$ac_header_preproc
19599 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
19600 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
19606 for ac_func in setlocale
19608 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19609 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19610 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19611 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19612 echo $ECHO_N "(cached) $ECHO_C" >&6
19613 else
19614 cat >conftest.$ac_ext <<_ACEOF
19615 /* confdefs.h. */
19616 _ACEOF
19617 cat confdefs.h >>conftest.$ac_ext
19618 cat >>conftest.$ac_ext <<_ACEOF
19619 /* end confdefs.h. */
19620 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19621 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19622 #define $ac_func innocuous_$ac_func
19624 /* System header to define __stub macros and hopefully few prototypes,
19625 which can conflict with char $ac_func (); below.
19626 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19627 <limits.h> exists even on freestanding compilers. */
19629 #ifdef __STDC__
19630 # include <limits.h>
19631 #else
19632 # include <assert.h>
19633 #endif
19635 #undef $ac_func
19637 /* Override any GCC internal prototype to avoid an error.
19638 Use char because int might match the return type of a GCC
19639 builtin and then its argument prototype would still apply. */
19640 #ifdef __cplusplus
19641 extern "C"
19642 #endif
19643 char $ac_func ();
19644 /* The GNU C library defines this for functions which it implements
19645 to always fail with ENOSYS. Some functions are actually named
19646 something starting with __ and the normal name is an alias. */
19647 #if defined __stub_$ac_func || defined __stub___$ac_func
19648 choke me
19649 #endif
19652 main ()
19654 return $ac_func ();
19656 return 0;
19658 _ACEOF
19659 rm -f conftest.$ac_objext conftest$ac_exeext
19660 if { (ac_try="$ac_link"
19661 case "(($ac_try" in
19662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19663 *) ac_try_echo=$ac_try;;
19664 esac
19665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19666 (eval "$ac_link") 2>conftest.er1
19667 ac_status=$?
19668 grep -v '^ *+' conftest.er1 >conftest.err
19669 rm -f conftest.er1
19670 cat conftest.err >&5
19671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19672 (exit $ac_status); } &&
19673 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19674 { (case "(($ac_try" in
19675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19676 *) ac_try_echo=$ac_try;;
19677 esac
19678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19679 (eval "$ac_try") 2>&5
19680 ac_status=$?
19681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19682 (exit $ac_status); }; } &&
19683 { ac_try='test -s conftest$ac_exeext'
19684 { (case "(($ac_try" in
19685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19686 *) ac_try_echo=$ac_try;;
19687 esac
19688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19689 (eval "$ac_try") 2>&5
19690 ac_status=$?
19691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19692 (exit $ac_status); }; }; then
19693 eval "$as_ac_var=yes"
19694 else
19695 echo "$as_me: failed program was:" >&5
19696 sed 's/^/| /' conftest.$ac_ext >&5
19698 eval "$as_ac_var=no"
19701 rm -f core conftest.err conftest.$ac_objext \
19702 conftest$ac_exeext conftest.$ac_ext
19704 ac_res=`eval echo '${'$as_ac_var'}'`
19705 { echo "$as_me:$LINENO: result: $ac_res" >&5
19706 echo "${ECHO_T}$ac_res" >&6; }
19707 if test `eval echo '${'$as_ac_var'}'` = yes; then
19708 cat >>confdefs.h <<_ACEOF
19709 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19710 _ACEOF
19713 done
19716 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
19717 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
19718 # Irix 4.0.5F has the header but not the library.
19719 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
19720 ac_have_func=yes
19722 cat >>confdefs.h <<\_ACEOF
19723 #define SVR4 1
19724 _ACEOF
19728 if test $ac_have_func = no; then
19729 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
19730 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
19731 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
19732 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
19733 echo $ECHO_N "(cached) $ECHO_C" >&6
19735 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
19736 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
19737 else
19738 # Is the header compilable?
19739 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
19740 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6; }
19741 cat >conftest.$ac_ext <<_ACEOF
19742 /* confdefs.h. */
19743 _ACEOF
19744 cat confdefs.h >>conftest.$ac_ext
19745 cat >>conftest.$ac_ext <<_ACEOF
19746 /* end confdefs.h. */
19747 $ac_includes_default
19748 #include <inq_stats/cpustats.h>
19749 _ACEOF
19750 rm -f conftest.$ac_objext
19751 if { (ac_try="$ac_compile"
19752 case "(($ac_try" in
19753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19754 *) ac_try_echo=$ac_try;;
19755 esac
19756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19757 (eval "$ac_compile") 2>conftest.er1
19758 ac_status=$?
19759 grep -v '^ *+' conftest.er1 >conftest.err
19760 rm -f conftest.er1
19761 cat conftest.err >&5
19762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19763 (exit $ac_status); } &&
19764 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19765 { (case "(($ac_try" in
19766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19767 *) ac_try_echo=$ac_try;;
19768 esac
19769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19770 (eval "$ac_try") 2>&5
19771 ac_status=$?
19772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19773 (exit $ac_status); }; } &&
19774 { ac_try='test -s conftest.$ac_objext'
19775 { (case "(($ac_try" in
19776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19777 *) ac_try_echo=$ac_try;;
19778 esac
19779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19780 (eval "$ac_try") 2>&5
19781 ac_status=$?
19782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19783 (exit $ac_status); }; }; then
19784 ac_header_compiler=yes
19785 else
19786 echo "$as_me: failed program was:" >&5
19787 sed 's/^/| /' conftest.$ac_ext >&5
19789 ac_header_compiler=no
19792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19793 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19794 echo "${ECHO_T}$ac_header_compiler" >&6; }
19796 # Is the header present?
19797 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
19798 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6; }
19799 cat >conftest.$ac_ext <<_ACEOF
19800 /* confdefs.h. */
19801 _ACEOF
19802 cat confdefs.h >>conftest.$ac_ext
19803 cat >>conftest.$ac_ext <<_ACEOF
19804 /* end confdefs.h. */
19805 #include <inq_stats/cpustats.h>
19806 _ACEOF
19807 if { (ac_try="$ac_cpp conftest.$ac_ext"
19808 case "(($ac_try" in
19809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19810 *) ac_try_echo=$ac_try;;
19811 esac
19812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19813 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19814 ac_status=$?
19815 grep -v '^ *+' conftest.er1 >conftest.err
19816 rm -f conftest.er1
19817 cat conftest.err >&5
19818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19819 (exit $ac_status); } >/dev/null; then
19820 if test -s conftest.err; then
19821 ac_cpp_err=$ac_c_preproc_warn_flag
19822 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19823 else
19824 ac_cpp_err=
19826 else
19827 ac_cpp_err=yes
19829 if test -z "$ac_cpp_err"; then
19830 ac_header_preproc=yes
19831 else
19832 echo "$as_me: failed program was:" >&5
19833 sed 's/^/| /' conftest.$ac_ext >&5
19835 ac_header_preproc=no
19838 rm -f conftest.err conftest.$ac_ext
19839 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19840 echo "${ECHO_T}$ac_header_preproc" >&6; }
19842 # So? What about this header?
19843 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19844 yes:no: )
19845 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
19846 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19847 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
19848 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
19849 ac_header_preproc=yes
19851 no:yes:* )
19852 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
19853 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
19854 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
19855 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
19856 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
19857 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
19858 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
19859 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
19860 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
19861 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
19862 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
19863 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
19864 ( cat <<\_ASBOX
19865 ## ------------------------------------ ##
19866 ## Report this to bug-coreutils@gnu.org ##
19867 ## ------------------------------------ ##
19868 _ASBOX
19869 ) | sed "s/^/$as_me: WARNING: /" >&2
19871 esac
19872 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
19873 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
19874 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
19875 echo $ECHO_N "(cached) $ECHO_C" >&6
19876 else
19877 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
19879 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
19880 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
19883 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
19884 ac_have_func=yes
19886 cat >>confdefs.h <<\_ACEOF
19887 #define UMAX 1
19888 _ACEOF
19891 cat >>confdefs.h <<\_ACEOF
19892 #define UMAX4_3 1
19893 _ACEOF
19900 if test $ac_have_func = no; then
19901 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19902 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
19903 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
19904 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19905 echo $ECHO_N "(cached) $ECHO_C" >&6
19907 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
19908 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
19909 else
19910 # Is the header compilable?
19911 { echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
19912 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6; }
19913 cat >conftest.$ac_ext <<_ACEOF
19914 /* confdefs.h. */
19915 _ACEOF
19916 cat confdefs.h >>conftest.$ac_ext
19917 cat >>conftest.$ac_ext <<_ACEOF
19918 /* end confdefs.h. */
19919 $ac_includes_default
19920 #include <sys/cpustats.h>
19921 _ACEOF
19922 rm -f conftest.$ac_objext
19923 if { (ac_try="$ac_compile"
19924 case "(($ac_try" in
19925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19926 *) ac_try_echo=$ac_try;;
19927 esac
19928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19929 (eval "$ac_compile") 2>conftest.er1
19930 ac_status=$?
19931 grep -v '^ *+' conftest.er1 >conftest.err
19932 rm -f conftest.er1
19933 cat conftest.err >&5
19934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19935 (exit $ac_status); } &&
19936 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19937 { (case "(($ac_try" in
19938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19939 *) ac_try_echo=$ac_try;;
19940 esac
19941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19942 (eval "$ac_try") 2>&5
19943 ac_status=$?
19944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19945 (exit $ac_status); }; } &&
19946 { ac_try='test -s conftest.$ac_objext'
19947 { (case "(($ac_try" in
19948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19949 *) ac_try_echo=$ac_try;;
19950 esac
19951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19952 (eval "$ac_try") 2>&5
19953 ac_status=$?
19954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19955 (exit $ac_status); }; }; then
19956 ac_header_compiler=yes
19957 else
19958 echo "$as_me: failed program was:" >&5
19959 sed 's/^/| /' conftest.$ac_ext >&5
19961 ac_header_compiler=no
19964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19965 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19966 echo "${ECHO_T}$ac_header_compiler" >&6; }
19968 # Is the header present?
19969 { echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
19970 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6; }
19971 cat >conftest.$ac_ext <<_ACEOF
19972 /* confdefs.h. */
19973 _ACEOF
19974 cat confdefs.h >>conftest.$ac_ext
19975 cat >>conftest.$ac_ext <<_ACEOF
19976 /* end confdefs.h. */
19977 #include <sys/cpustats.h>
19978 _ACEOF
19979 if { (ac_try="$ac_cpp conftest.$ac_ext"
19980 case "(($ac_try" in
19981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19982 *) ac_try_echo=$ac_try;;
19983 esac
19984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19985 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19986 ac_status=$?
19987 grep -v '^ *+' conftest.er1 >conftest.err
19988 rm -f conftest.er1
19989 cat conftest.err >&5
19990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19991 (exit $ac_status); } >/dev/null; then
19992 if test -s conftest.err; then
19993 ac_cpp_err=$ac_c_preproc_warn_flag
19994 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19995 else
19996 ac_cpp_err=
19998 else
19999 ac_cpp_err=yes
20001 if test -z "$ac_cpp_err"; then
20002 ac_header_preproc=yes
20003 else
20004 echo "$as_me: failed program was:" >&5
20005 sed 's/^/| /' conftest.$ac_ext >&5
20007 ac_header_preproc=no
20010 rm -f conftest.err conftest.$ac_ext
20011 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20012 echo "${ECHO_T}$ac_header_preproc" >&6; }
20014 # So? What about this header?
20015 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20016 yes:no: )
20017 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
20018 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20019 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
20020 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
20021 ac_header_preproc=yes
20023 no:yes:* )
20024 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
20025 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
20026 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
20027 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
20028 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
20029 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
20030 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
20031 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
20032 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
20033 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
20034 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
20035 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
20036 ( cat <<\_ASBOX
20037 ## ------------------------------------ ##
20038 ## Report this to bug-coreutils@gnu.org ##
20039 ## ------------------------------------ ##
20040 _ASBOX
20041 ) | sed "s/^/$as_me: WARNING: /" >&2
20043 esac
20044 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
20045 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
20046 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
20047 echo $ECHO_N "(cached) $ECHO_C" >&6
20048 else
20049 ac_cv_header_sys_cpustats_h=$ac_header_preproc
20051 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
20052 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
20055 if test $ac_cv_header_sys_cpustats_h = yes; then
20056 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
20057 #define UMAX 1
20058 _ACEOF
20065 if test $ac_have_func = no; then
20067 for ac_header in mach/mach.h
20069 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20070 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20071 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20072 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20073 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20074 echo $ECHO_N "(cached) $ECHO_C" >&6
20076 ac_res=`eval echo '${'$as_ac_Header'}'`
20077 { echo "$as_me:$LINENO: result: $ac_res" >&5
20078 echo "${ECHO_T}$ac_res" >&6; }
20079 else
20080 # Is the header compilable?
20081 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20082 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20083 cat >conftest.$ac_ext <<_ACEOF
20084 /* confdefs.h. */
20085 _ACEOF
20086 cat confdefs.h >>conftest.$ac_ext
20087 cat >>conftest.$ac_ext <<_ACEOF
20088 /* end confdefs.h. */
20089 $ac_includes_default
20090 #include <$ac_header>
20091 _ACEOF
20092 rm -f conftest.$ac_objext
20093 if { (ac_try="$ac_compile"
20094 case "(($ac_try" in
20095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20096 *) ac_try_echo=$ac_try;;
20097 esac
20098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20099 (eval "$ac_compile") 2>conftest.er1
20100 ac_status=$?
20101 grep -v '^ *+' conftest.er1 >conftest.err
20102 rm -f conftest.er1
20103 cat conftest.err >&5
20104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20105 (exit $ac_status); } &&
20106 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20107 { (case "(($ac_try" in
20108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20109 *) ac_try_echo=$ac_try;;
20110 esac
20111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20112 (eval "$ac_try") 2>&5
20113 ac_status=$?
20114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20115 (exit $ac_status); }; } &&
20116 { ac_try='test -s conftest.$ac_objext'
20117 { (case "(($ac_try" in
20118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20119 *) ac_try_echo=$ac_try;;
20120 esac
20121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20122 (eval "$ac_try") 2>&5
20123 ac_status=$?
20124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20125 (exit $ac_status); }; }; then
20126 ac_header_compiler=yes
20127 else
20128 echo "$as_me: failed program was:" >&5
20129 sed 's/^/| /' conftest.$ac_ext >&5
20131 ac_header_compiler=no
20134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20135 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20136 echo "${ECHO_T}$ac_header_compiler" >&6; }
20138 # Is the header present?
20139 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20140 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20141 cat >conftest.$ac_ext <<_ACEOF
20142 /* confdefs.h. */
20143 _ACEOF
20144 cat confdefs.h >>conftest.$ac_ext
20145 cat >>conftest.$ac_ext <<_ACEOF
20146 /* end confdefs.h. */
20147 #include <$ac_header>
20148 _ACEOF
20149 if { (ac_try="$ac_cpp conftest.$ac_ext"
20150 case "(($ac_try" in
20151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20152 *) ac_try_echo=$ac_try;;
20153 esac
20154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20155 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20156 ac_status=$?
20157 grep -v '^ *+' conftest.er1 >conftest.err
20158 rm -f conftest.er1
20159 cat conftest.err >&5
20160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20161 (exit $ac_status); } >/dev/null; then
20162 if test -s conftest.err; then
20163 ac_cpp_err=$ac_c_preproc_warn_flag
20164 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20165 else
20166 ac_cpp_err=
20168 else
20169 ac_cpp_err=yes
20171 if test -z "$ac_cpp_err"; then
20172 ac_header_preproc=yes
20173 else
20174 echo "$as_me: failed program was:" >&5
20175 sed 's/^/| /' conftest.$ac_ext >&5
20177 ac_header_preproc=no
20180 rm -f conftest.err conftest.$ac_ext
20181 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20182 echo "${ECHO_T}$ac_header_preproc" >&6; }
20184 # So? What about this header?
20185 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20186 yes:no: )
20187 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20188 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20189 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20190 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20191 ac_header_preproc=yes
20193 no:yes:* )
20194 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20195 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20196 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20197 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20198 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20199 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20200 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20201 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20202 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20203 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20204 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20205 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20206 ( cat <<\_ASBOX
20207 ## ------------------------------------ ##
20208 ## Report this to bug-coreutils@gnu.org ##
20209 ## ------------------------------------ ##
20210 _ASBOX
20211 ) | sed "s/^/$as_me: WARNING: /" >&2
20213 esac
20214 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20215 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20216 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20217 echo $ECHO_N "(cached) $ECHO_C" >&6
20218 else
20219 eval "$as_ac_Header=\$ac_header_preproc"
20221 ac_res=`eval echo '${'$as_ac_Header'}'`
20222 { echo "$as_me:$LINENO: result: $ac_res" >&5
20223 echo "${ECHO_T}$ac_res" >&6; }
20226 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20227 cat >>confdefs.h <<_ACEOF
20228 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20229 _ACEOF
20233 done
20238 for ac_header in nlist.h
20240 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20241 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20242 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20243 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20244 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20245 echo $ECHO_N "(cached) $ECHO_C" >&6
20247 ac_res=`eval echo '${'$as_ac_Header'}'`
20248 { echo "$as_me:$LINENO: result: $ac_res" >&5
20249 echo "${ECHO_T}$ac_res" >&6; }
20250 else
20251 # Is the header compilable?
20252 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20253 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20254 cat >conftest.$ac_ext <<_ACEOF
20255 /* confdefs.h. */
20256 _ACEOF
20257 cat confdefs.h >>conftest.$ac_ext
20258 cat >>conftest.$ac_ext <<_ACEOF
20259 /* end confdefs.h. */
20260 $ac_includes_default
20261 #include <$ac_header>
20262 _ACEOF
20263 rm -f conftest.$ac_objext
20264 if { (ac_try="$ac_compile"
20265 case "(($ac_try" in
20266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20267 *) ac_try_echo=$ac_try;;
20268 esac
20269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20270 (eval "$ac_compile") 2>conftest.er1
20271 ac_status=$?
20272 grep -v '^ *+' conftest.er1 >conftest.err
20273 rm -f conftest.er1
20274 cat conftest.err >&5
20275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20276 (exit $ac_status); } &&
20277 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20278 { (case "(($ac_try" in
20279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20280 *) ac_try_echo=$ac_try;;
20281 esac
20282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20283 (eval "$ac_try") 2>&5
20284 ac_status=$?
20285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20286 (exit $ac_status); }; } &&
20287 { ac_try='test -s conftest.$ac_objext'
20288 { (case "(($ac_try" in
20289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20290 *) ac_try_echo=$ac_try;;
20291 esac
20292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20293 (eval "$ac_try") 2>&5
20294 ac_status=$?
20295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20296 (exit $ac_status); }; }; then
20297 ac_header_compiler=yes
20298 else
20299 echo "$as_me: failed program was:" >&5
20300 sed 's/^/| /' conftest.$ac_ext >&5
20302 ac_header_compiler=no
20305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20306 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20307 echo "${ECHO_T}$ac_header_compiler" >&6; }
20309 # Is the header present?
20310 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20311 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20312 cat >conftest.$ac_ext <<_ACEOF
20313 /* confdefs.h. */
20314 _ACEOF
20315 cat confdefs.h >>conftest.$ac_ext
20316 cat >>conftest.$ac_ext <<_ACEOF
20317 /* end confdefs.h. */
20318 #include <$ac_header>
20319 _ACEOF
20320 if { (ac_try="$ac_cpp conftest.$ac_ext"
20321 case "(($ac_try" in
20322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20323 *) ac_try_echo=$ac_try;;
20324 esac
20325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20326 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20327 ac_status=$?
20328 grep -v '^ *+' conftest.er1 >conftest.err
20329 rm -f conftest.er1
20330 cat conftest.err >&5
20331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20332 (exit $ac_status); } >/dev/null; then
20333 if test -s conftest.err; then
20334 ac_cpp_err=$ac_c_preproc_warn_flag
20335 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20336 else
20337 ac_cpp_err=
20339 else
20340 ac_cpp_err=yes
20342 if test -z "$ac_cpp_err"; then
20343 ac_header_preproc=yes
20344 else
20345 echo "$as_me: failed program was:" >&5
20346 sed 's/^/| /' conftest.$ac_ext >&5
20348 ac_header_preproc=no
20351 rm -f conftest.err conftest.$ac_ext
20352 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20353 echo "${ECHO_T}$ac_header_preproc" >&6; }
20355 # So? What about this header?
20356 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20357 yes:no: )
20358 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20359 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20360 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20361 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20362 ac_header_preproc=yes
20364 no:yes:* )
20365 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20366 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20367 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20368 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20369 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20370 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20371 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20372 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20373 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20374 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20375 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20376 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20377 ( cat <<\_ASBOX
20378 ## ------------------------------------ ##
20379 ## Report this to bug-coreutils@gnu.org ##
20380 ## ------------------------------------ ##
20381 _ASBOX
20382 ) | sed "s/^/$as_me: WARNING: /" >&2
20384 esac
20385 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20386 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20387 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20388 echo $ECHO_N "(cached) $ECHO_C" >&6
20389 else
20390 eval "$as_ac_Header=\$ac_header_preproc"
20392 ac_res=`eval echo '${'$as_ac_Header'}'`
20393 { echo "$as_me:$LINENO: result: $ac_res" >&5
20394 echo "${ECHO_T}$ac_res" >&6; }
20397 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20398 cat >>confdefs.h <<_ACEOF
20399 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20400 _ACEOF
20401 { echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
20402 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6; }
20403 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
20404 echo $ECHO_N "(cached) $ECHO_C" >&6
20405 else
20406 cat >conftest.$ac_ext <<_ACEOF
20407 /* confdefs.h. */
20408 _ACEOF
20409 cat confdefs.h >>conftest.$ac_ext
20410 cat >>conftest.$ac_ext <<_ACEOF
20411 /* end confdefs.h. */
20412 #include <nlist.h>
20415 main ()
20417 static struct nlist ac_aggr;
20418 if (ac_aggr.n_un.n_name)
20419 return 0;
20421 return 0;
20423 _ACEOF
20424 rm -f conftest.$ac_objext
20425 if { (ac_try="$ac_compile"
20426 case "(($ac_try" in
20427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20428 *) ac_try_echo=$ac_try;;
20429 esac
20430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20431 (eval "$ac_compile") 2>conftest.er1
20432 ac_status=$?
20433 grep -v '^ *+' conftest.er1 >conftest.err
20434 rm -f conftest.er1
20435 cat conftest.err >&5
20436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20437 (exit $ac_status); } &&
20438 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20439 { (case "(($ac_try" in
20440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20441 *) ac_try_echo=$ac_try;;
20442 esac
20443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20444 (eval "$ac_try") 2>&5
20445 ac_status=$?
20446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20447 (exit $ac_status); }; } &&
20448 { ac_try='test -s conftest.$ac_objext'
20449 { (case "(($ac_try" in
20450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20451 *) ac_try_echo=$ac_try;;
20452 esac
20453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20454 (eval "$ac_try") 2>&5
20455 ac_status=$?
20456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20457 (exit $ac_status); }; }; then
20458 ac_cv_member_struct_nlist_n_un_n_name=yes
20459 else
20460 echo "$as_me: failed program was:" >&5
20461 sed 's/^/| /' conftest.$ac_ext >&5
20463 cat >conftest.$ac_ext <<_ACEOF
20464 /* confdefs.h. */
20465 _ACEOF
20466 cat confdefs.h >>conftest.$ac_ext
20467 cat >>conftest.$ac_ext <<_ACEOF
20468 /* end confdefs.h. */
20469 #include <nlist.h>
20472 main ()
20474 static struct nlist ac_aggr;
20475 if (sizeof ac_aggr.n_un.n_name)
20476 return 0;
20478 return 0;
20480 _ACEOF
20481 rm -f conftest.$ac_objext
20482 if { (ac_try="$ac_compile"
20483 case "(($ac_try" in
20484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20485 *) ac_try_echo=$ac_try;;
20486 esac
20487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20488 (eval "$ac_compile") 2>conftest.er1
20489 ac_status=$?
20490 grep -v '^ *+' conftest.er1 >conftest.err
20491 rm -f conftest.er1
20492 cat conftest.err >&5
20493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20494 (exit $ac_status); } &&
20495 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20496 { (case "(($ac_try" in
20497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20498 *) ac_try_echo=$ac_try;;
20499 esac
20500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20501 (eval "$ac_try") 2>&5
20502 ac_status=$?
20503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20504 (exit $ac_status); }; } &&
20505 { ac_try='test -s conftest.$ac_objext'
20506 { (case "(($ac_try" in
20507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20508 *) ac_try_echo=$ac_try;;
20509 esac
20510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20511 (eval "$ac_try") 2>&5
20512 ac_status=$?
20513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20514 (exit $ac_status); }; }; then
20515 ac_cv_member_struct_nlist_n_un_n_name=yes
20516 else
20517 echo "$as_me: failed program was:" >&5
20518 sed 's/^/| /' conftest.$ac_ext >&5
20520 ac_cv_member_struct_nlist_n_un_n_name=no
20523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20528 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
20529 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
20530 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
20532 cat >>confdefs.h <<_ACEOF
20533 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
20534 _ACEOF
20537 cat >>confdefs.h <<\_ACEOF
20538 #define NLIST_NAME_UNION 1
20539 _ACEOF
20546 done
20549 done
20552 # Some definitions of getloadavg require that the program be installed setgid.
20553 { echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
20554 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6; }
20555 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
20556 echo $ECHO_N "(cached) $ECHO_C" >&6
20557 else
20558 cat >conftest.$ac_ext <<_ACEOF
20559 /* confdefs.h. */
20560 _ACEOF
20561 cat confdefs.h >>conftest.$ac_ext
20562 cat >>conftest.$ac_ext <<_ACEOF
20563 /* end confdefs.h. */
20564 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
20565 #ifdef LDAV_PRIVILEGED
20566 Yowza Am I SETGID yet
20567 #endif
20568 _ACEOF
20569 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20570 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
20571 ac_cv_func_getloadavg_setgid=yes
20572 else
20573 ac_cv_func_getloadavg_setgid=no
20575 rm -f conftest*
20578 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
20579 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6; }
20580 if test $ac_cv_func_getloadavg_setgid = yes; then
20581 NEED_SETGID=true
20583 cat >>confdefs.h <<\_ACEOF
20584 #define GETLOADAVG_PRIVILEGED 1
20585 _ACEOF
20587 else
20588 NEED_SETGID=false
20591 if test $ac_cv_func_getloadavg_setgid = yes; then
20592 { echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
20593 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6; }
20594 if test "${ac_cv_group_kmem+set}" = set; then
20595 echo $ECHO_N "(cached) $ECHO_C" >&6
20596 else
20597 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
20598 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
20599 # If we got an error (system does not support symlinks), try without -L.
20600 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
20601 ac_cv_group_kmem=`echo $ac_ls_output \
20602 | sed -ne 's/[ ][ ]*/ /g;
20603 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
20604 / /s/.* //;p;'`
20607 { echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
20608 echo "${ECHO_T}$ac_cv_group_kmem" >&6; }
20609 KMEM_GROUP=$ac_cv_group_kmem
20611 if test "x$ac_save_LIBS" = x; then
20612 GETLOADAVG_LIBS=$LIBS
20613 else
20614 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
20616 LIBS=$ac_save_LIBS
20619 { echo "$as_me:$LINENO: checking whether getpass is declared" >&5
20620 echo $ECHO_N "checking whether getpass is declared... $ECHO_C" >&6; }
20621 if test "${ac_cv_have_decl_getpass+set}" = set; then
20622 echo $ECHO_N "(cached) $ECHO_C" >&6
20623 else
20624 cat >conftest.$ac_ext <<_ACEOF
20625 /* confdefs.h. */
20626 _ACEOF
20627 cat confdefs.h >>conftest.$ac_ext
20628 cat >>conftest.$ac_ext <<_ACEOF
20629 /* end confdefs.h. */
20630 $ac_includes_default
20632 main ()
20634 #ifndef getpass
20635 char *p = (char *) getpass;
20636 return !p;
20637 #endif
20640 return 0;
20642 _ACEOF
20643 rm -f conftest.$ac_objext
20644 if { (ac_try="$ac_compile"
20645 case "(($ac_try" in
20646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20647 *) ac_try_echo=$ac_try;;
20648 esac
20649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20650 (eval "$ac_compile") 2>conftest.er1
20651 ac_status=$?
20652 grep -v '^ *+' conftest.er1 >conftest.err
20653 rm -f conftest.er1
20654 cat conftest.err >&5
20655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20656 (exit $ac_status); } &&
20657 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20658 { (case "(($ac_try" in
20659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20660 *) ac_try_echo=$ac_try;;
20661 esac
20662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20663 (eval "$ac_try") 2>&5
20664 ac_status=$?
20665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20666 (exit $ac_status); }; } &&
20667 { ac_try='test -s conftest.$ac_objext'
20668 { (case "(($ac_try" in
20669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20670 *) ac_try_echo=$ac_try;;
20671 esac
20672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20673 (eval "$ac_try") 2>&5
20674 ac_status=$?
20675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20676 (exit $ac_status); }; }; then
20677 ac_cv_have_decl_getpass=yes
20678 else
20679 echo "$as_me: failed program was:" >&5
20680 sed 's/^/| /' conftest.$ac_ext >&5
20682 ac_cv_have_decl_getpass=no
20685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20687 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getpass" >&5
20688 echo "${ECHO_T}$ac_cv_have_decl_getpass" >&6; }
20689 if test $ac_cv_have_decl_getpass = yes; then
20691 cat >>confdefs.h <<_ACEOF
20692 #define HAVE_DECL_GETPASS 1
20693 _ACEOF
20696 else
20697 cat >>confdefs.h <<_ACEOF
20698 #define HAVE_DECL_GETPASS 0
20699 _ACEOF
20713 { echo "$as_me:$LINENO: checking whether fflush_unlocked is declared" >&5
20714 echo $ECHO_N "checking whether fflush_unlocked is declared... $ECHO_C" >&6; }
20715 if test "${ac_cv_have_decl_fflush_unlocked+set}" = set; then
20716 echo $ECHO_N "(cached) $ECHO_C" >&6
20717 else
20718 cat >conftest.$ac_ext <<_ACEOF
20719 /* confdefs.h. */
20720 _ACEOF
20721 cat confdefs.h >>conftest.$ac_ext
20722 cat >>conftest.$ac_ext <<_ACEOF
20723 /* end confdefs.h. */
20724 $ac_includes_default
20726 main ()
20728 #ifndef fflush_unlocked
20729 char *p = (char *) fflush_unlocked;
20730 return !p;
20731 #endif
20734 return 0;
20736 _ACEOF
20737 rm -f conftest.$ac_objext
20738 if { (ac_try="$ac_compile"
20739 case "(($ac_try" in
20740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20741 *) ac_try_echo=$ac_try;;
20742 esac
20743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20744 (eval "$ac_compile") 2>conftest.er1
20745 ac_status=$?
20746 grep -v '^ *+' conftest.er1 >conftest.err
20747 rm -f conftest.er1
20748 cat conftest.err >&5
20749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20750 (exit $ac_status); } &&
20751 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20752 { (case "(($ac_try" in
20753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20754 *) ac_try_echo=$ac_try;;
20755 esac
20756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20757 (eval "$ac_try") 2>&5
20758 ac_status=$?
20759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20760 (exit $ac_status); }; } &&
20761 { ac_try='test -s conftest.$ac_objext'
20762 { (case "(($ac_try" in
20763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20764 *) ac_try_echo=$ac_try;;
20765 esac
20766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20767 (eval "$ac_try") 2>&5
20768 ac_status=$?
20769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20770 (exit $ac_status); }; }; then
20771 ac_cv_have_decl_fflush_unlocked=yes
20772 else
20773 echo "$as_me: failed program was:" >&5
20774 sed 's/^/| /' conftest.$ac_ext >&5
20776 ac_cv_have_decl_fflush_unlocked=no
20779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20781 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fflush_unlocked" >&5
20782 echo "${ECHO_T}$ac_cv_have_decl_fflush_unlocked" >&6; }
20783 if test $ac_cv_have_decl_fflush_unlocked = yes; then
20785 cat >>confdefs.h <<_ACEOF
20786 #define HAVE_DECL_FFLUSH_UNLOCKED 1
20787 _ACEOF
20790 else
20791 cat >>confdefs.h <<_ACEOF
20792 #define HAVE_DECL_FFLUSH_UNLOCKED 0
20793 _ACEOF
20799 { echo "$as_me:$LINENO: checking whether flockfile is declared" >&5
20800 echo $ECHO_N "checking whether flockfile is declared... $ECHO_C" >&6; }
20801 if test "${ac_cv_have_decl_flockfile+set}" = set; then
20802 echo $ECHO_N "(cached) $ECHO_C" >&6
20803 else
20804 cat >conftest.$ac_ext <<_ACEOF
20805 /* confdefs.h. */
20806 _ACEOF
20807 cat confdefs.h >>conftest.$ac_ext
20808 cat >>conftest.$ac_ext <<_ACEOF
20809 /* end confdefs.h. */
20810 $ac_includes_default
20812 main ()
20814 #ifndef flockfile
20815 char *p = (char *) flockfile;
20816 return !p;
20817 #endif
20820 return 0;
20822 _ACEOF
20823 rm -f conftest.$ac_objext
20824 if { (ac_try="$ac_compile"
20825 case "(($ac_try" in
20826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20827 *) ac_try_echo=$ac_try;;
20828 esac
20829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20830 (eval "$ac_compile") 2>conftest.er1
20831 ac_status=$?
20832 grep -v '^ *+' conftest.er1 >conftest.err
20833 rm -f conftest.er1
20834 cat conftest.err >&5
20835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20836 (exit $ac_status); } &&
20837 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20838 { (case "(($ac_try" in
20839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20840 *) ac_try_echo=$ac_try;;
20841 esac
20842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20843 (eval "$ac_try") 2>&5
20844 ac_status=$?
20845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20846 (exit $ac_status); }; } &&
20847 { ac_try='test -s conftest.$ac_objext'
20848 { (case "(($ac_try" in
20849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20850 *) ac_try_echo=$ac_try;;
20851 esac
20852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20853 (eval "$ac_try") 2>&5
20854 ac_status=$?
20855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20856 (exit $ac_status); }; }; then
20857 ac_cv_have_decl_flockfile=yes
20858 else
20859 echo "$as_me: failed program was:" >&5
20860 sed 's/^/| /' conftest.$ac_ext >&5
20862 ac_cv_have_decl_flockfile=no
20865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20867 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_flockfile" >&5
20868 echo "${ECHO_T}$ac_cv_have_decl_flockfile" >&6; }
20869 if test $ac_cv_have_decl_flockfile = yes; then
20871 cat >>confdefs.h <<_ACEOF
20872 #define HAVE_DECL_FLOCKFILE 1
20873 _ACEOF
20876 else
20877 cat >>confdefs.h <<_ACEOF
20878 #define HAVE_DECL_FLOCKFILE 0
20879 _ACEOF
20885 { echo "$as_me:$LINENO: checking whether fputs_unlocked is declared" >&5
20886 echo $ECHO_N "checking whether fputs_unlocked is declared... $ECHO_C" >&6; }
20887 if test "${ac_cv_have_decl_fputs_unlocked+set}" = set; then
20888 echo $ECHO_N "(cached) $ECHO_C" >&6
20889 else
20890 cat >conftest.$ac_ext <<_ACEOF
20891 /* confdefs.h. */
20892 _ACEOF
20893 cat confdefs.h >>conftest.$ac_ext
20894 cat >>conftest.$ac_ext <<_ACEOF
20895 /* end confdefs.h. */
20896 $ac_includes_default
20898 main ()
20900 #ifndef fputs_unlocked
20901 char *p = (char *) fputs_unlocked;
20902 return !p;
20903 #endif
20906 return 0;
20908 _ACEOF
20909 rm -f conftest.$ac_objext
20910 if { (ac_try="$ac_compile"
20911 case "(($ac_try" in
20912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20913 *) ac_try_echo=$ac_try;;
20914 esac
20915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20916 (eval "$ac_compile") 2>conftest.er1
20917 ac_status=$?
20918 grep -v '^ *+' conftest.er1 >conftest.err
20919 rm -f conftest.er1
20920 cat conftest.err >&5
20921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20922 (exit $ac_status); } &&
20923 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20924 { (case "(($ac_try" in
20925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20926 *) ac_try_echo=$ac_try;;
20927 esac
20928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20929 (eval "$ac_try") 2>&5
20930 ac_status=$?
20931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20932 (exit $ac_status); }; } &&
20933 { ac_try='test -s conftest.$ac_objext'
20934 { (case "(($ac_try" in
20935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20936 *) ac_try_echo=$ac_try;;
20937 esac
20938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20939 (eval "$ac_try") 2>&5
20940 ac_status=$?
20941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20942 (exit $ac_status); }; }; then
20943 ac_cv_have_decl_fputs_unlocked=yes
20944 else
20945 echo "$as_me: failed program was:" >&5
20946 sed 's/^/| /' conftest.$ac_ext >&5
20948 ac_cv_have_decl_fputs_unlocked=no
20951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20953 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputs_unlocked" >&5
20954 echo "${ECHO_T}$ac_cv_have_decl_fputs_unlocked" >&6; }
20955 if test $ac_cv_have_decl_fputs_unlocked = yes; then
20957 cat >>confdefs.h <<_ACEOF
20958 #define HAVE_DECL_FPUTS_UNLOCKED 1
20959 _ACEOF
20962 else
20963 cat >>confdefs.h <<_ACEOF
20964 #define HAVE_DECL_FPUTS_UNLOCKED 0
20965 _ACEOF
20971 { echo "$as_me:$LINENO: checking whether funlockfile is declared" >&5
20972 echo $ECHO_N "checking whether funlockfile is declared... $ECHO_C" >&6; }
20973 if test "${ac_cv_have_decl_funlockfile+set}" = set; then
20974 echo $ECHO_N "(cached) $ECHO_C" >&6
20975 else
20976 cat >conftest.$ac_ext <<_ACEOF
20977 /* confdefs.h. */
20978 _ACEOF
20979 cat confdefs.h >>conftest.$ac_ext
20980 cat >>conftest.$ac_ext <<_ACEOF
20981 /* end confdefs.h. */
20982 $ac_includes_default
20984 main ()
20986 #ifndef funlockfile
20987 char *p = (char *) funlockfile;
20988 return !p;
20989 #endif
20992 return 0;
20994 _ACEOF
20995 rm -f conftest.$ac_objext
20996 if { (ac_try="$ac_compile"
20997 case "(($ac_try" in
20998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20999 *) ac_try_echo=$ac_try;;
21000 esac
21001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21002 (eval "$ac_compile") 2>conftest.er1
21003 ac_status=$?
21004 grep -v '^ *+' conftest.er1 >conftest.err
21005 rm -f conftest.er1
21006 cat conftest.err >&5
21007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21008 (exit $ac_status); } &&
21009 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21010 { (case "(($ac_try" in
21011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21012 *) ac_try_echo=$ac_try;;
21013 esac
21014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21015 (eval "$ac_try") 2>&5
21016 ac_status=$?
21017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21018 (exit $ac_status); }; } &&
21019 { ac_try='test -s conftest.$ac_objext'
21020 { (case "(($ac_try" in
21021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21022 *) ac_try_echo=$ac_try;;
21023 esac
21024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21025 (eval "$ac_try") 2>&5
21026 ac_status=$?
21027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21028 (exit $ac_status); }; }; then
21029 ac_cv_have_decl_funlockfile=yes
21030 else
21031 echo "$as_me: failed program was:" >&5
21032 sed 's/^/| /' conftest.$ac_ext >&5
21034 ac_cv_have_decl_funlockfile=no
21037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21039 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_funlockfile" >&5
21040 echo "${ECHO_T}$ac_cv_have_decl_funlockfile" >&6; }
21041 if test $ac_cv_have_decl_funlockfile = yes; then
21043 cat >>confdefs.h <<_ACEOF
21044 #define HAVE_DECL_FUNLOCKFILE 1
21045 _ACEOF
21048 else
21049 cat >>confdefs.h <<_ACEOF
21050 #define HAVE_DECL_FUNLOCKFILE 0
21051 _ACEOF
21057 { echo "$as_me:$LINENO: checking whether putc_unlocked is declared" >&5
21058 echo $ECHO_N "checking whether putc_unlocked is declared... $ECHO_C" >&6; }
21059 if test "${ac_cv_have_decl_putc_unlocked+set}" = set; then
21060 echo $ECHO_N "(cached) $ECHO_C" >&6
21061 else
21062 cat >conftest.$ac_ext <<_ACEOF
21063 /* confdefs.h. */
21064 _ACEOF
21065 cat confdefs.h >>conftest.$ac_ext
21066 cat >>conftest.$ac_ext <<_ACEOF
21067 /* end confdefs.h. */
21068 $ac_includes_default
21070 main ()
21072 #ifndef putc_unlocked
21073 char *p = (char *) putc_unlocked;
21074 return !p;
21075 #endif
21078 return 0;
21080 _ACEOF
21081 rm -f conftest.$ac_objext
21082 if { (ac_try="$ac_compile"
21083 case "(($ac_try" in
21084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21085 *) ac_try_echo=$ac_try;;
21086 esac
21087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21088 (eval "$ac_compile") 2>conftest.er1
21089 ac_status=$?
21090 grep -v '^ *+' conftest.er1 >conftest.err
21091 rm -f conftest.er1
21092 cat conftest.err >&5
21093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21094 (exit $ac_status); } &&
21095 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21096 { (case "(($ac_try" in
21097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21098 *) ac_try_echo=$ac_try;;
21099 esac
21100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21101 (eval "$ac_try") 2>&5
21102 ac_status=$?
21103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21104 (exit $ac_status); }; } &&
21105 { ac_try='test -s conftest.$ac_objext'
21106 { (case "(($ac_try" in
21107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21108 *) ac_try_echo=$ac_try;;
21109 esac
21110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21111 (eval "$ac_try") 2>&5
21112 ac_status=$?
21113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21114 (exit $ac_status); }; }; then
21115 ac_cv_have_decl_putc_unlocked=yes
21116 else
21117 echo "$as_me: failed program was:" >&5
21118 sed 's/^/| /' conftest.$ac_ext >&5
21120 ac_cv_have_decl_putc_unlocked=no
21123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21125 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_putc_unlocked" >&5
21126 echo "${ECHO_T}$ac_cv_have_decl_putc_unlocked" >&6; }
21127 if test $ac_cv_have_decl_putc_unlocked = yes; then
21129 cat >>confdefs.h <<_ACEOF
21130 #define HAVE_DECL_PUTC_UNLOCKED 1
21131 _ACEOF
21134 else
21135 cat >>confdefs.h <<_ACEOF
21136 #define HAVE_DECL_PUTC_UNLOCKED 0
21137 _ACEOF
21150 case " $LIBOBJS " in
21151 *" getpass.$ac_objext "* ) ;;
21152 *) LIBOBJS="$LIBOBJS getpass.$ac_objext"
21154 esac
21198 cat >>confdefs.h <<\_ACEOF
21199 #define getpass gnu_getpass
21200 _ACEOF
21205 for ac_func in getusershell
21207 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21208 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21209 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21210 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21211 echo $ECHO_N "(cached) $ECHO_C" >&6
21212 else
21213 cat >conftest.$ac_ext <<_ACEOF
21214 /* confdefs.h. */
21215 _ACEOF
21216 cat confdefs.h >>conftest.$ac_ext
21217 cat >>conftest.$ac_ext <<_ACEOF
21218 /* end confdefs.h. */
21219 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21220 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21221 #define $ac_func innocuous_$ac_func
21223 /* System header to define __stub macros and hopefully few prototypes,
21224 which can conflict with char $ac_func (); below.
21225 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21226 <limits.h> exists even on freestanding compilers. */
21228 #ifdef __STDC__
21229 # include <limits.h>
21230 #else
21231 # include <assert.h>
21232 #endif
21234 #undef $ac_func
21236 /* Override any GCC internal prototype to avoid an error.
21237 Use char because int might match the return type of a GCC
21238 builtin and then its argument prototype would still apply. */
21239 #ifdef __cplusplus
21240 extern "C"
21241 #endif
21242 char $ac_func ();
21243 /* The GNU C library defines this for functions which it implements
21244 to always fail with ENOSYS. Some functions are actually named
21245 something starting with __ and the normal name is an alias. */
21246 #if defined __stub_$ac_func || defined __stub___$ac_func
21247 choke me
21248 #endif
21251 main ()
21253 return $ac_func ();
21255 return 0;
21257 _ACEOF
21258 rm -f conftest.$ac_objext conftest$ac_exeext
21259 if { (ac_try="$ac_link"
21260 case "(($ac_try" in
21261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21262 *) ac_try_echo=$ac_try;;
21263 esac
21264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21265 (eval "$ac_link") 2>conftest.er1
21266 ac_status=$?
21267 grep -v '^ *+' conftest.er1 >conftest.err
21268 rm -f conftest.er1
21269 cat conftest.err >&5
21270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21271 (exit $ac_status); } &&
21272 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21273 { (case "(($ac_try" in
21274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21275 *) ac_try_echo=$ac_try;;
21276 esac
21277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21278 (eval "$ac_try") 2>&5
21279 ac_status=$?
21280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21281 (exit $ac_status); }; } &&
21282 { ac_try='test -s conftest$ac_exeext'
21283 { (case "(($ac_try" in
21284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21285 *) ac_try_echo=$ac_try;;
21286 esac
21287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21288 (eval "$ac_try") 2>&5
21289 ac_status=$?
21290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21291 (exit $ac_status); }; }; then
21292 eval "$as_ac_var=yes"
21293 else
21294 echo "$as_me: failed program was:" >&5
21295 sed 's/^/| /' conftest.$ac_ext >&5
21297 eval "$as_ac_var=no"
21300 rm -f core conftest.err conftest.$ac_objext \
21301 conftest$ac_exeext conftest.$ac_ext
21303 ac_res=`eval echo '${'$as_ac_var'}'`
21304 { echo "$as_me:$LINENO: result: $ac_res" >&5
21305 echo "${ECHO_T}$ac_res" >&6; }
21306 if test `eval echo '${'$as_ac_var'}'` = yes; then
21307 cat >>confdefs.h <<_ACEOF
21308 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21309 _ACEOF
21311 else
21312 case " $LIBOBJS " in
21313 *" $ac_func.$ac_objext "* ) ;;
21314 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
21316 esac
21319 done
21323 { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
21324 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
21325 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
21326 echo $ECHO_N "(cached) $ECHO_C" >&6
21327 else
21328 rm -f conftest.sym conftest.file
21329 echo >conftest.file
21330 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
21331 if test "$cross_compiling" = yes; then
21332 ac_cv_func_lstat_dereferences_slashed_symlink=no
21333 else
21334 cat >conftest.$ac_ext <<_ACEOF
21335 /* confdefs.h. */
21336 _ACEOF
21337 cat confdefs.h >>conftest.$ac_ext
21338 cat >>conftest.$ac_ext <<_ACEOF
21339 /* end confdefs.h. */
21340 $ac_includes_default
21342 main ()
21344 struct stat sbuf;
21345 /* Linux will dereference the symlink and fail.
21346 That is better in the sense that it means we will not
21347 have to compile and use the lstat wrapper. */
21348 return lstat ("conftest.sym/", &sbuf) == 0;
21350 return 0;
21352 _ACEOF
21353 rm -f conftest$ac_exeext
21354 if { (ac_try="$ac_link"
21355 case "(($ac_try" in
21356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21357 *) ac_try_echo=$ac_try;;
21358 esac
21359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21360 (eval "$ac_link") 2>&5
21361 ac_status=$?
21362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21363 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21364 { (case "(($ac_try" in
21365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21366 *) ac_try_echo=$ac_try;;
21367 esac
21368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21369 (eval "$ac_try") 2>&5
21370 ac_status=$?
21371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21372 (exit $ac_status); }; }; then
21373 ac_cv_func_lstat_dereferences_slashed_symlink=yes
21374 else
21375 echo "$as_me: program exited with status $ac_status" >&5
21376 echo "$as_me: failed program was:" >&5
21377 sed 's/^/| /' conftest.$ac_ext >&5
21379 ( exit $ac_status )
21380 ac_cv_func_lstat_dereferences_slashed_symlink=no
21382 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21386 else
21387 # If the `ln -s' command failed, then we probably don't even
21388 # have an lstat function.
21389 ac_cv_func_lstat_dereferences_slashed_symlink=no
21391 rm -f conftest.sym conftest.file
21394 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
21395 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
21397 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
21399 cat >>confdefs.h <<_ACEOF
21400 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
21401 _ACEOF
21404 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
21405 case " $LIBOBJS " in
21406 *" lstat.$ac_objext "* ) ;;
21407 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
21409 esac
21421 for ac_func in memchr
21423 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21424 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21425 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21426 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21427 echo $ECHO_N "(cached) $ECHO_C" >&6
21428 else
21429 cat >conftest.$ac_ext <<_ACEOF
21430 /* confdefs.h. */
21431 _ACEOF
21432 cat confdefs.h >>conftest.$ac_ext
21433 cat >>conftest.$ac_ext <<_ACEOF
21434 /* end confdefs.h. */
21435 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21436 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21437 #define $ac_func innocuous_$ac_func
21439 /* System header to define __stub macros and hopefully few prototypes,
21440 which can conflict with char $ac_func (); below.
21441 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21442 <limits.h> exists even on freestanding compilers. */
21444 #ifdef __STDC__
21445 # include <limits.h>
21446 #else
21447 # include <assert.h>
21448 #endif
21450 #undef $ac_func
21452 /* Override any GCC internal prototype to avoid an error.
21453 Use char because int might match the return type of a GCC
21454 builtin and then its argument prototype would still apply. */
21455 #ifdef __cplusplus
21456 extern "C"
21457 #endif
21458 char $ac_func ();
21459 /* The GNU C library defines this for functions which it implements
21460 to always fail with ENOSYS. Some functions are actually named
21461 something starting with __ and the normal name is an alias. */
21462 #if defined __stub_$ac_func || defined __stub___$ac_func
21463 choke me
21464 #endif
21467 main ()
21469 return $ac_func ();
21471 return 0;
21473 _ACEOF
21474 rm -f conftest.$ac_objext conftest$ac_exeext
21475 if { (ac_try="$ac_link"
21476 case "(($ac_try" in
21477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21478 *) ac_try_echo=$ac_try;;
21479 esac
21480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21481 (eval "$ac_link") 2>conftest.er1
21482 ac_status=$?
21483 grep -v '^ *+' conftest.er1 >conftest.err
21484 rm -f conftest.er1
21485 cat conftest.err >&5
21486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21487 (exit $ac_status); } &&
21488 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21489 { (case "(($ac_try" in
21490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21491 *) ac_try_echo=$ac_try;;
21492 esac
21493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21494 (eval "$ac_try") 2>&5
21495 ac_status=$?
21496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21497 (exit $ac_status); }; } &&
21498 { ac_try='test -s conftest$ac_exeext'
21499 { (case "(($ac_try" in
21500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21501 *) ac_try_echo=$ac_try;;
21502 esac
21503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21504 (eval "$ac_try") 2>&5
21505 ac_status=$?
21506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21507 (exit $ac_status); }; }; then
21508 eval "$as_ac_var=yes"
21509 else
21510 echo "$as_me: failed program was:" >&5
21511 sed 's/^/| /' conftest.$ac_ext >&5
21513 eval "$as_ac_var=no"
21516 rm -f core conftest.err conftest.$ac_objext \
21517 conftest$ac_exeext conftest.$ac_ext
21519 ac_res=`eval echo '${'$as_ac_var'}'`
21520 { echo "$as_me:$LINENO: result: $ac_res" >&5
21521 echo "${ECHO_T}$ac_res" >&6; }
21522 if test `eval echo '${'$as_ac_var'}'` = yes; then
21523 cat >>confdefs.h <<_ACEOF
21524 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21525 _ACEOF
21527 else
21528 case " $LIBOBJS " in
21529 *" $ac_func.$ac_objext "* ) ;;
21530 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
21532 esac
21535 done
21538 if test $ac_cv_func_memchr = no; then
21541 for ac_header in bp-sym.h
21543 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21544 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21545 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21546 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21547 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21548 echo $ECHO_N "(cached) $ECHO_C" >&6
21550 ac_res=`eval echo '${'$as_ac_Header'}'`
21551 { echo "$as_me:$LINENO: result: $ac_res" >&5
21552 echo "${ECHO_T}$ac_res" >&6; }
21553 else
21554 # Is the header compilable?
21555 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21556 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21557 cat >conftest.$ac_ext <<_ACEOF
21558 /* confdefs.h. */
21559 _ACEOF
21560 cat confdefs.h >>conftest.$ac_ext
21561 cat >>conftest.$ac_ext <<_ACEOF
21562 /* end confdefs.h. */
21563 $ac_includes_default
21564 #include <$ac_header>
21565 _ACEOF
21566 rm -f conftest.$ac_objext
21567 if { (ac_try="$ac_compile"
21568 case "(($ac_try" in
21569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21570 *) ac_try_echo=$ac_try;;
21571 esac
21572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21573 (eval "$ac_compile") 2>conftest.er1
21574 ac_status=$?
21575 grep -v '^ *+' conftest.er1 >conftest.err
21576 rm -f conftest.er1
21577 cat conftest.err >&5
21578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21579 (exit $ac_status); } &&
21580 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21581 { (case "(($ac_try" in
21582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21583 *) ac_try_echo=$ac_try;;
21584 esac
21585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21586 (eval "$ac_try") 2>&5
21587 ac_status=$?
21588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21589 (exit $ac_status); }; } &&
21590 { ac_try='test -s conftest.$ac_objext'
21591 { (case "(($ac_try" in
21592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21593 *) ac_try_echo=$ac_try;;
21594 esac
21595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21596 (eval "$ac_try") 2>&5
21597 ac_status=$?
21598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21599 (exit $ac_status); }; }; then
21600 ac_header_compiler=yes
21601 else
21602 echo "$as_me: failed program was:" >&5
21603 sed 's/^/| /' conftest.$ac_ext >&5
21605 ac_header_compiler=no
21608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21609 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21610 echo "${ECHO_T}$ac_header_compiler" >&6; }
21612 # Is the header present?
21613 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21614 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21615 cat >conftest.$ac_ext <<_ACEOF
21616 /* confdefs.h. */
21617 _ACEOF
21618 cat confdefs.h >>conftest.$ac_ext
21619 cat >>conftest.$ac_ext <<_ACEOF
21620 /* end confdefs.h. */
21621 #include <$ac_header>
21622 _ACEOF
21623 if { (ac_try="$ac_cpp conftest.$ac_ext"
21624 case "(($ac_try" in
21625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21626 *) ac_try_echo=$ac_try;;
21627 esac
21628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21629 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21630 ac_status=$?
21631 grep -v '^ *+' conftest.er1 >conftest.err
21632 rm -f conftest.er1
21633 cat conftest.err >&5
21634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21635 (exit $ac_status); } >/dev/null; then
21636 if test -s conftest.err; then
21637 ac_cpp_err=$ac_c_preproc_warn_flag
21638 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21639 else
21640 ac_cpp_err=
21642 else
21643 ac_cpp_err=yes
21645 if test -z "$ac_cpp_err"; then
21646 ac_header_preproc=yes
21647 else
21648 echo "$as_me: failed program was:" >&5
21649 sed 's/^/| /' conftest.$ac_ext >&5
21651 ac_header_preproc=no
21654 rm -f conftest.err conftest.$ac_ext
21655 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21656 echo "${ECHO_T}$ac_header_preproc" >&6; }
21658 # So? What about this header?
21659 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21660 yes:no: )
21661 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21662 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21663 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21664 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21665 ac_header_preproc=yes
21667 no:yes:* )
21668 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21669 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21670 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21671 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21672 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21673 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21674 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21675 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21676 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21677 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21678 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21679 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21680 ( cat <<\_ASBOX
21681 ## ------------------------------------ ##
21682 ## Report this to bug-coreutils@gnu.org ##
21683 ## ------------------------------------ ##
21684 _ASBOX
21685 ) | sed "s/^/$as_me: WARNING: /" >&2
21687 esac
21688 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21689 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21690 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21691 echo $ECHO_N "(cached) $ECHO_C" >&6
21692 else
21693 eval "$as_ac_Header=\$ac_header_preproc"
21695 ac_res=`eval echo '${'$as_ac_Header'}'`
21696 { echo "$as_me:$LINENO: result: $ac_res" >&5
21697 echo "${ECHO_T}$ac_res" >&6; }
21700 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21701 cat >>confdefs.h <<_ACEOF
21702 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21703 _ACEOF
21707 done
21714 for ac_func in memcpy
21716 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21717 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21718 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21719 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21720 echo $ECHO_N "(cached) $ECHO_C" >&6
21721 else
21722 cat >conftest.$ac_ext <<_ACEOF
21723 /* confdefs.h. */
21724 _ACEOF
21725 cat confdefs.h >>conftest.$ac_ext
21726 cat >>conftest.$ac_ext <<_ACEOF
21727 /* end confdefs.h. */
21728 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21729 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21730 #define $ac_func innocuous_$ac_func
21732 /* System header to define __stub macros and hopefully few prototypes,
21733 which can conflict with char $ac_func (); below.
21734 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21735 <limits.h> exists even on freestanding compilers. */
21737 #ifdef __STDC__
21738 # include <limits.h>
21739 #else
21740 # include <assert.h>
21741 #endif
21743 #undef $ac_func
21745 /* Override any GCC internal prototype to avoid an error.
21746 Use char because int might match the return type of a GCC
21747 builtin and then its argument prototype would still apply. */
21748 #ifdef __cplusplus
21749 extern "C"
21750 #endif
21751 char $ac_func ();
21752 /* The GNU C library defines this for functions which it implements
21753 to always fail with ENOSYS. Some functions are actually named
21754 something starting with __ and the normal name is an alias. */
21755 #if defined __stub_$ac_func || defined __stub___$ac_func
21756 choke me
21757 #endif
21760 main ()
21762 return $ac_func ();
21764 return 0;
21766 _ACEOF
21767 rm -f conftest.$ac_objext conftest$ac_exeext
21768 if { (ac_try="$ac_link"
21769 case "(($ac_try" in
21770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21771 *) ac_try_echo=$ac_try;;
21772 esac
21773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21774 (eval "$ac_link") 2>conftest.er1
21775 ac_status=$?
21776 grep -v '^ *+' conftest.er1 >conftest.err
21777 rm -f conftest.er1
21778 cat conftest.err >&5
21779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21780 (exit $ac_status); } &&
21781 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21782 { (case "(($ac_try" in
21783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21784 *) ac_try_echo=$ac_try;;
21785 esac
21786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21787 (eval "$ac_try") 2>&5
21788 ac_status=$?
21789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21790 (exit $ac_status); }; } &&
21791 { ac_try='test -s conftest$ac_exeext'
21792 { (case "(($ac_try" in
21793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21794 *) ac_try_echo=$ac_try;;
21795 esac
21796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21797 (eval "$ac_try") 2>&5
21798 ac_status=$?
21799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21800 (exit $ac_status); }; }; then
21801 eval "$as_ac_var=yes"
21802 else
21803 echo "$as_me: failed program was:" >&5
21804 sed 's/^/| /' conftest.$ac_ext >&5
21806 eval "$as_ac_var=no"
21809 rm -f core conftest.err conftest.$ac_objext \
21810 conftest$ac_exeext conftest.$ac_ext
21812 ac_res=`eval echo '${'$as_ac_var'}'`
21813 { echo "$as_me:$LINENO: result: $ac_res" >&5
21814 echo "${ECHO_T}$ac_res" >&6; }
21815 if test `eval echo '${'$as_ac_var'}'` = yes; then
21816 cat >>confdefs.h <<_ACEOF
21817 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21818 _ACEOF
21820 else
21821 case " $LIBOBJS " in
21822 *" $ac_func.$ac_objext "* ) ;;
21823 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
21825 esac
21828 done
21831 if test $ac_cv_func_memcpy = no; then
21839 for ac_func in memmove
21841 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21842 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21843 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21844 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21845 echo $ECHO_N "(cached) $ECHO_C" >&6
21846 else
21847 cat >conftest.$ac_ext <<_ACEOF
21848 /* confdefs.h. */
21849 _ACEOF
21850 cat confdefs.h >>conftest.$ac_ext
21851 cat >>conftest.$ac_ext <<_ACEOF
21852 /* end confdefs.h. */
21853 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21854 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21855 #define $ac_func innocuous_$ac_func
21857 /* System header to define __stub macros and hopefully few prototypes,
21858 which can conflict with char $ac_func (); below.
21859 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21860 <limits.h> exists even on freestanding compilers. */
21862 #ifdef __STDC__
21863 # include <limits.h>
21864 #else
21865 # include <assert.h>
21866 #endif
21868 #undef $ac_func
21870 /* Override any GCC internal prototype to avoid an error.
21871 Use char because int might match the return type of a GCC
21872 builtin and then its argument prototype would still apply. */
21873 #ifdef __cplusplus
21874 extern "C"
21875 #endif
21876 char $ac_func ();
21877 /* The GNU C library defines this for functions which it implements
21878 to always fail with ENOSYS. Some functions are actually named
21879 something starting with __ and the normal name is an alias. */
21880 #if defined __stub_$ac_func || defined __stub___$ac_func
21881 choke me
21882 #endif
21885 main ()
21887 return $ac_func ();
21889 return 0;
21891 _ACEOF
21892 rm -f conftest.$ac_objext conftest$ac_exeext
21893 if { (ac_try="$ac_link"
21894 case "(($ac_try" in
21895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21896 *) ac_try_echo=$ac_try;;
21897 esac
21898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21899 (eval "$ac_link") 2>conftest.er1
21900 ac_status=$?
21901 grep -v '^ *+' conftest.er1 >conftest.err
21902 rm -f conftest.er1
21903 cat conftest.err >&5
21904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21905 (exit $ac_status); } &&
21906 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21907 { (case "(($ac_try" in
21908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21909 *) ac_try_echo=$ac_try;;
21910 esac
21911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21912 (eval "$ac_try") 2>&5
21913 ac_status=$?
21914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21915 (exit $ac_status); }; } &&
21916 { ac_try='test -s conftest$ac_exeext'
21917 { (case "(($ac_try" in
21918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21919 *) ac_try_echo=$ac_try;;
21920 esac
21921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21922 (eval "$ac_try") 2>&5
21923 ac_status=$?
21924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21925 (exit $ac_status); }; }; then
21926 eval "$as_ac_var=yes"
21927 else
21928 echo "$as_me: failed program was:" >&5
21929 sed 's/^/| /' conftest.$ac_ext >&5
21931 eval "$as_ac_var=no"
21934 rm -f core conftest.err conftest.$ac_objext \
21935 conftest$ac_exeext conftest.$ac_ext
21937 ac_res=`eval echo '${'$as_ac_var'}'`
21938 { echo "$as_me:$LINENO: result: $ac_res" >&5
21939 echo "${ECHO_T}$ac_res" >&6; }
21940 if test `eval echo '${'$as_ac_var'}'` = yes; then
21941 cat >>confdefs.h <<_ACEOF
21942 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21943 _ACEOF
21945 else
21946 case " $LIBOBJS " in
21947 *" $ac_func.$ac_objext "* ) ;;
21948 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
21950 esac
21953 done
21956 if test $ac_cv_func_memmove = no; then
21968 for ac_func in mempcpy
21970 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21971 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21972 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21973 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21974 echo $ECHO_N "(cached) $ECHO_C" >&6
21975 else
21976 cat >conftest.$ac_ext <<_ACEOF
21977 /* confdefs.h. */
21978 _ACEOF
21979 cat confdefs.h >>conftest.$ac_ext
21980 cat >>conftest.$ac_ext <<_ACEOF
21981 /* end confdefs.h. */
21982 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21983 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21984 #define $ac_func innocuous_$ac_func
21986 /* System header to define __stub macros and hopefully few prototypes,
21987 which can conflict with char $ac_func (); below.
21988 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21989 <limits.h> exists even on freestanding compilers. */
21991 #ifdef __STDC__
21992 # include <limits.h>
21993 #else
21994 # include <assert.h>
21995 #endif
21997 #undef $ac_func
21999 /* Override any GCC internal prototype to avoid an error.
22000 Use char because int might match the return type of a GCC
22001 builtin and then its argument prototype would still apply. */
22002 #ifdef __cplusplus
22003 extern "C"
22004 #endif
22005 char $ac_func ();
22006 /* The GNU C library defines this for functions which it implements
22007 to always fail with ENOSYS. Some functions are actually named
22008 something starting with __ and the normal name is an alias. */
22009 #if defined __stub_$ac_func || defined __stub___$ac_func
22010 choke me
22011 #endif
22014 main ()
22016 return $ac_func ();
22018 return 0;
22020 _ACEOF
22021 rm -f conftest.$ac_objext conftest$ac_exeext
22022 if { (ac_try="$ac_link"
22023 case "(($ac_try" in
22024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22025 *) ac_try_echo=$ac_try;;
22026 esac
22027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22028 (eval "$ac_link") 2>conftest.er1
22029 ac_status=$?
22030 grep -v '^ *+' conftest.er1 >conftest.err
22031 rm -f conftest.er1
22032 cat conftest.err >&5
22033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22034 (exit $ac_status); } &&
22035 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22036 { (case "(($ac_try" in
22037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22038 *) ac_try_echo=$ac_try;;
22039 esac
22040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22041 (eval "$ac_try") 2>&5
22042 ac_status=$?
22043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22044 (exit $ac_status); }; } &&
22045 { ac_try='test -s conftest$ac_exeext'
22046 { (case "(($ac_try" in
22047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22048 *) ac_try_echo=$ac_try;;
22049 esac
22050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22051 (eval "$ac_try") 2>&5
22052 ac_status=$?
22053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22054 (exit $ac_status); }; }; then
22055 eval "$as_ac_var=yes"
22056 else
22057 echo "$as_me: failed program was:" >&5
22058 sed 's/^/| /' conftest.$ac_ext >&5
22060 eval "$as_ac_var=no"
22063 rm -f core conftest.err conftest.$ac_objext \
22064 conftest$ac_exeext conftest.$ac_ext
22066 ac_res=`eval echo '${'$as_ac_var'}'`
22067 { echo "$as_me:$LINENO: result: $ac_res" >&5
22068 echo "${ECHO_T}$ac_res" >&6; }
22069 if test `eval echo '${'$as_ac_var'}'` = yes; then
22070 cat >>confdefs.h <<_ACEOF
22071 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22072 _ACEOF
22074 else
22075 case " $LIBOBJS " in
22076 *" $ac_func.$ac_objext "* ) ;;
22077 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
22079 esac
22082 done
22085 if test $ac_cv_func_mempcpy = no; then
22091 { echo "$as_me:$LINENO: checking whether memrchr is declared" >&5
22092 echo $ECHO_N "checking whether memrchr is declared... $ECHO_C" >&6; }
22093 if test "${ac_cv_have_decl_memrchr+set}" = set; then
22094 echo $ECHO_N "(cached) $ECHO_C" >&6
22095 else
22096 cat >conftest.$ac_ext <<_ACEOF
22097 /* confdefs.h. */
22098 _ACEOF
22099 cat confdefs.h >>conftest.$ac_ext
22100 cat >>conftest.$ac_ext <<_ACEOF
22101 /* end confdefs.h. */
22102 $ac_includes_default
22104 main ()
22106 #ifndef memrchr
22107 char *p = (char *) memrchr;
22108 return !p;
22109 #endif
22112 return 0;
22114 _ACEOF
22115 rm -f conftest.$ac_objext
22116 if { (ac_try="$ac_compile"
22117 case "(($ac_try" in
22118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22119 *) ac_try_echo=$ac_try;;
22120 esac
22121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22122 (eval "$ac_compile") 2>conftest.er1
22123 ac_status=$?
22124 grep -v '^ *+' conftest.er1 >conftest.err
22125 rm -f conftest.er1
22126 cat conftest.err >&5
22127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22128 (exit $ac_status); } &&
22129 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22130 { (case "(($ac_try" in
22131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22132 *) ac_try_echo=$ac_try;;
22133 esac
22134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22135 (eval "$ac_try") 2>&5
22136 ac_status=$?
22137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22138 (exit $ac_status); }; } &&
22139 { ac_try='test -s conftest.$ac_objext'
22140 { (case "(($ac_try" in
22141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22142 *) ac_try_echo=$ac_try;;
22143 esac
22144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22145 (eval "$ac_try") 2>&5
22146 ac_status=$?
22147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22148 (exit $ac_status); }; }; then
22149 ac_cv_have_decl_memrchr=yes
22150 else
22151 echo "$as_me: failed program was:" >&5
22152 sed 's/^/| /' conftest.$ac_ext >&5
22154 ac_cv_have_decl_memrchr=no
22157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22159 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_memrchr" >&5
22160 echo "${ECHO_T}$ac_cv_have_decl_memrchr" >&6; }
22161 if test $ac_cv_have_decl_memrchr = yes; then
22163 cat >>confdefs.h <<_ACEOF
22164 #define HAVE_DECL_MEMRCHR 1
22165 _ACEOF
22168 else
22169 cat >>confdefs.h <<_ACEOF
22170 #define HAVE_DECL_MEMRCHR 0
22171 _ACEOF
22188 for ac_func in memrchr
22190 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22191 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22192 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22193 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22194 echo $ECHO_N "(cached) $ECHO_C" >&6
22195 else
22196 cat >conftest.$ac_ext <<_ACEOF
22197 /* confdefs.h. */
22198 _ACEOF
22199 cat confdefs.h >>conftest.$ac_ext
22200 cat >>conftest.$ac_ext <<_ACEOF
22201 /* end confdefs.h. */
22202 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22203 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22204 #define $ac_func innocuous_$ac_func
22206 /* System header to define __stub macros and hopefully few prototypes,
22207 which can conflict with char $ac_func (); below.
22208 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22209 <limits.h> exists even on freestanding compilers. */
22211 #ifdef __STDC__
22212 # include <limits.h>
22213 #else
22214 # include <assert.h>
22215 #endif
22217 #undef $ac_func
22219 /* Override any GCC internal prototype to avoid an error.
22220 Use char because int might match the return type of a GCC
22221 builtin and then its argument prototype would still apply. */
22222 #ifdef __cplusplus
22223 extern "C"
22224 #endif
22225 char $ac_func ();
22226 /* The GNU C library defines this for functions which it implements
22227 to always fail with ENOSYS. Some functions are actually named
22228 something starting with __ and the normal name is an alias. */
22229 #if defined __stub_$ac_func || defined __stub___$ac_func
22230 choke me
22231 #endif
22234 main ()
22236 return $ac_func ();
22238 return 0;
22240 _ACEOF
22241 rm -f conftest.$ac_objext conftest$ac_exeext
22242 if { (ac_try="$ac_link"
22243 case "(($ac_try" in
22244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22245 *) ac_try_echo=$ac_try;;
22246 esac
22247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22248 (eval "$ac_link") 2>conftest.er1
22249 ac_status=$?
22250 grep -v '^ *+' conftest.er1 >conftest.err
22251 rm -f conftest.er1
22252 cat conftest.err >&5
22253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22254 (exit $ac_status); } &&
22255 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22256 { (case "(($ac_try" in
22257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22258 *) ac_try_echo=$ac_try;;
22259 esac
22260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22261 (eval "$ac_try") 2>&5
22262 ac_status=$?
22263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22264 (exit $ac_status); }; } &&
22265 { ac_try='test -s conftest$ac_exeext'
22266 { (case "(($ac_try" in
22267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22268 *) ac_try_echo=$ac_try;;
22269 esac
22270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22271 (eval "$ac_try") 2>&5
22272 ac_status=$?
22273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22274 (exit $ac_status); }; }; then
22275 eval "$as_ac_var=yes"
22276 else
22277 echo "$as_me: failed program was:" >&5
22278 sed 's/^/| /' conftest.$ac_ext >&5
22280 eval "$as_ac_var=no"
22283 rm -f core conftest.err conftest.$ac_objext \
22284 conftest$ac_exeext conftest.$ac_ext
22286 ac_res=`eval echo '${'$as_ac_var'}'`
22287 { echo "$as_me:$LINENO: result: $ac_res" >&5
22288 echo "${ECHO_T}$ac_res" >&6; }
22289 if test `eval echo '${'$as_ac_var'}'` = yes; then
22290 cat >>confdefs.h <<_ACEOF
22291 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22292 _ACEOF
22294 else
22295 case " $LIBOBJS " in
22296 *" $ac_func.$ac_objext "* ) ;;
22297 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
22299 esac
22302 done
22305 if test $ac_cv_func_memrchr = no; then
22311 for ac_func in memset
22313 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22314 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22315 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22316 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22317 echo $ECHO_N "(cached) $ECHO_C" >&6
22318 else
22319 cat >conftest.$ac_ext <<_ACEOF
22320 /* confdefs.h. */
22321 _ACEOF
22322 cat confdefs.h >>conftest.$ac_ext
22323 cat >>conftest.$ac_ext <<_ACEOF
22324 /* end confdefs.h. */
22325 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22326 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22327 #define $ac_func innocuous_$ac_func
22329 /* System header to define __stub macros and hopefully few prototypes,
22330 which can conflict with char $ac_func (); below.
22331 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22332 <limits.h> exists even on freestanding compilers. */
22334 #ifdef __STDC__
22335 # include <limits.h>
22336 #else
22337 # include <assert.h>
22338 #endif
22340 #undef $ac_func
22342 /* Override any GCC internal prototype to avoid an error.
22343 Use char because int might match the return type of a GCC
22344 builtin and then its argument prototype would still apply. */
22345 #ifdef __cplusplus
22346 extern "C"
22347 #endif
22348 char $ac_func ();
22349 /* The GNU C library defines this for functions which it implements
22350 to always fail with ENOSYS. Some functions are actually named
22351 something starting with __ and the normal name is an alias. */
22352 #if defined __stub_$ac_func || defined __stub___$ac_func
22353 choke me
22354 #endif
22357 main ()
22359 return $ac_func ();
22361 return 0;
22363 _ACEOF
22364 rm -f conftest.$ac_objext conftest$ac_exeext
22365 if { (ac_try="$ac_link"
22366 case "(($ac_try" in
22367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22368 *) ac_try_echo=$ac_try;;
22369 esac
22370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22371 (eval "$ac_link") 2>conftest.er1
22372 ac_status=$?
22373 grep -v '^ *+' conftest.er1 >conftest.err
22374 rm -f conftest.er1
22375 cat conftest.err >&5
22376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22377 (exit $ac_status); } &&
22378 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22379 { (case "(($ac_try" in
22380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22381 *) ac_try_echo=$ac_try;;
22382 esac
22383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22384 (eval "$ac_try") 2>&5
22385 ac_status=$?
22386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22387 (exit $ac_status); }; } &&
22388 { ac_try='test -s conftest$ac_exeext'
22389 { (case "(($ac_try" in
22390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22391 *) ac_try_echo=$ac_try;;
22392 esac
22393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22394 (eval "$ac_try") 2>&5
22395 ac_status=$?
22396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22397 (exit $ac_status); }; }; then
22398 eval "$as_ac_var=yes"
22399 else
22400 echo "$as_me: failed program was:" >&5
22401 sed 's/^/| /' conftest.$ac_ext >&5
22403 eval "$as_ac_var=no"
22406 rm -f core conftest.err conftest.$ac_objext \
22407 conftest$ac_exeext conftest.$ac_ext
22409 ac_res=`eval echo '${'$as_ac_var'}'`
22410 { echo "$as_me:$LINENO: result: $ac_res" >&5
22411 echo "${ECHO_T}$ac_res" >&6; }
22412 if test `eval echo '${'$as_ac_var'}'` = yes; then
22413 cat >>confdefs.h <<_ACEOF
22414 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22415 _ACEOF
22417 else
22418 case " $LIBOBJS " in
22419 *" $ac_func.$ac_objext "* ) ;;
22420 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
22422 esac
22425 done
22428 if test $ac_cv_func_memset = no; then
22434 { echo "$as_me:$LINENO: checking whether mkdir fails due to a trailing slash" >&5
22435 echo $ECHO_N "checking whether mkdir fails due to a trailing slash... $ECHO_C" >&6; }
22436 if test "${gl_cv_func_mkdir_trailing_slash_bug+set}" = set; then
22437 echo $ECHO_N "(cached) $ECHO_C" >&6
22438 else
22440 # Arrange for deletion of the temporary directory this test might create.
22441 ac_clean_files="$ac_clean_files confdir-slash"
22442 if test "$cross_compiling" = yes; then
22443 gl_cv_func_mkdir_trailing_slash_bug=yes
22445 else
22446 cat >conftest.$ac_ext <<_ACEOF
22447 /* confdefs.h. */
22448 _ACEOF
22449 cat confdefs.h >>conftest.$ac_ext
22450 cat >>conftest.$ac_ext <<_ACEOF
22451 /* end confdefs.h. */
22453 # include <sys/types.h>
22454 # include <sys/stat.h>
22455 # include <stdlib.h>
22456 int main ()
22458 rmdir ("confdir-slash");
22459 exit (mkdir ("confdir-slash/", 0700));
22462 _ACEOF
22463 rm -f conftest$ac_exeext
22464 if { (ac_try="$ac_link"
22465 case "(($ac_try" in
22466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22467 *) ac_try_echo=$ac_try;;
22468 esac
22469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22470 (eval "$ac_link") 2>&5
22471 ac_status=$?
22472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22473 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22474 { (case "(($ac_try" in
22475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22476 *) ac_try_echo=$ac_try;;
22477 esac
22478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22479 (eval "$ac_try") 2>&5
22480 ac_status=$?
22481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22482 (exit $ac_status); }; }; then
22483 gl_cv_func_mkdir_trailing_slash_bug=no
22484 else
22485 echo "$as_me: program exited with status $ac_status" >&5
22486 echo "$as_me: failed program was:" >&5
22487 sed 's/^/| /' conftest.$ac_ext >&5
22489 ( exit $ac_status )
22490 gl_cv_func_mkdir_trailing_slash_bug=yes
22492 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22499 { echo "$as_me:$LINENO: result: $gl_cv_func_mkdir_trailing_slash_bug" >&5
22500 echo "${ECHO_T}$gl_cv_func_mkdir_trailing_slash_bug" >&6; }
22502 if test $gl_cv_func_mkdir_trailing_slash_bug = yes; then
22503 case " $LIBOBJS " in
22504 *" mkdir.$ac_objext "* ) ;;
22505 *) LIBOBJS="$LIBOBJS mkdir.$ac_objext"
22507 esac
22510 cat >>confdefs.h <<\_ACEOF
22511 #define mkdir rpl_mkdir
22512 _ACEOF
22531 { echo "$as_me:$LINENO: checking for working mktime" >&5
22532 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6; }
22533 if test "${ac_cv_func_working_mktime+set}" = set; then
22534 echo $ECHO_N "(cached) $ECHO_C" >&6
22535 else
22536 if test "$cross_compiling" = yes; then
22537 ac_cv_func_working_mktime=no
22538 else
22539 cat >conftest.$ac_ext <<_ACEOF
22540 /* confdefs.h. */
22541 _ACEOF
22542 cat confdefs.h >>conftest.$ac_ext
22543 cat >>conftest.$ac_ext <<_ACEOF
22544 /* end confdefs.h. */
22545 /* Test program from Paul Eggert and Tony Leneis. */
22546 #if TIME_WITH_SYS_TIME
22547 # include <sys/time.h>
22548 # include <time.h>
22549 #else
22550 # if HAVE_SYS_TIME_H
22551 # include <sys/time.h>
22552 # else
22553 # include <time.h>
22554 # endif
22555 #endif
22557 #include <stdlib.h>
22558 #include <unistd.h>
22560 #if !HAVE_ALARM
22561 # define alarm(X) /* empty */
22562 #endif
22564 /* Work around redefinition to rpl_putenv by other config tests. */
22565 #undef putenv
22567 static time_t time_t_max;
22568 static time_t time_t_min;
22570 /* Values we'll use to set the TZ environment variable. */
22571 static char *tz_strings[] = {
22572 (char *) 0, "TZ=GMT0", "TZ=JST-9",
22573 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
22575 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
22577 /* Fail if mktime fails to convert a date in the spring-forward gap.
22578 Based on a problem report from Andreas Jaeger. */
22579 static void
22580 spring_forward_gap ()
22582 /* glibc (up to about 1998-10-07) failed this test. */
22583 struct tm tm;
22585 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
22586 instead of "TZ=America/Vancouver" in order to detect the bug even
22587 on systems that don't support the Olson extension, or don't have the
22588 full zoneinfo tables installed. */
22589 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
22591 tm.tm_year = 98;
22592 tm.tm_mon = 3;
22593 tm.tm_mday = 5;
22594 tm.tm_hour = 2;
22595 tm.tm_min = 0;
22596 tm.tm_sec = 0;
22597 tm.tm_isdst = -1;
22598 if (mktime (&tm) == (time_t)-1)
22599 exit (1);
22602 static void
22603 mktime_test1 (now)
22604 time_t now;
22606 struct tm *lt;
22607 if ((lt = localtime (&now)) && mktime (lt) != now)
22608 exit (1);
22611 static void
22612 mktime_test (now)
22613 time_t now;
22615 mktime_test1 (now);
22616 mktime_test1 ((time_t) (time_t_max - now));
22617 mktime_test1 ((time_t) (time_t_min + now));
22620 static void
22621 irix_6_4_bug ()
22623 /* Based on code from Ariel Faigon. */
22624 struct tm tm;
22625 tm.tm_year = 96;
22626 tm.tm_mon = 3;
22627 tm.tm_mday = 0;
22628 tm.tm_hour = 0;
22629 tm.tm_min = 0;
22630 tm.tm_sec = 0;
22631 tm.tm_isdst = -1;
22632 mktime (&tm);
22633 if (tm.tm_mon != 2 || tm.tm_mday != 31)
22634 exit (1);
22637 static void
22638 bigtime_test (j)
22639 int j;
22641 struct tm tm;
22642 time_t now;
22643 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
22644 now = mktime (&tm);
22645 if (now != (time_t) -1)
22647 struct tm *lt = localtime (&now);
22648 if (! (lt
22649 && lt->tm_year == tm.tm_year
22650 && lt->tm_mon == tm.tm_mon
22651 && lt->tm_mday == tm.tm_mday
22652 && lt->tm_hour == tm.tm_hour
22653 && lt->tm_min == tm.tm_min
22654 && lt->tm_sec == tm.tm_sec
22655 && lt->tm_yday == tm.tm_yday
22656 && lt->tm_wday == tm.tm_wday
22657 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
22658 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
22659 exit (1);
22664 main ()
22666 time_t t, delta;
22667 int i, j;
22669 /* This test makes some buggy mktime implementations loop.
22670 Give up after 60 seconds; a mktime slower than that
22671 isn't worth using anyway. */
22672 alarm (60);
22674 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
22675 continue;
22676 time_t_max--;
22677 if ((time_t) -1 < 0)
22678 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
22679 continue;
22680 delta = time_t_max / 997; /* a suitable prime number */
22681 for (i = 0; i < N_STRINGS; i++)
22683 if (tz_strings[i])
22684 putenv (tz_strings[i]);
22686 for (t = 0; t <= time_t_max - delta; t += delta)
22687 mktime_test (t);
22688 mktime_test ((time_t) 1);
22689 mktime_test ((time_t) (60 * 60));
22690 mktime_test ((time_t) (60 * 60 * 24));
22692 for (j = 1; 0 < j; j *= 2)
22693 bigtime_test (j);
22694 bigtime_test (j - 1);
22696 irix_6_4_bug ();
22697 spring_forward_gap ();
22698 exit (0);
22700 _ACEOF
22701 rm -f conftest$ac_exeext
22702 if { (ac_try="$ac_link"
22703 case "(($ac_try" in
22704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22705 *) ac_try_echo=$ac_try;;
22706 esac
22707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22708 (eval "$ac_link") 2>&5
22709 ac_status=$?
22710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22711 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22712 { (case "(($ac_try" in
22713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22714 *) ac_try_echo=$ac_try;;
22715 esac
22716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22717 (eval "$ac_try") 2>&5
22718 ac_status=$?
22719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22720 (exit $ac_status); }; }; then
22721 ac_cv_func_working_mktime=yes
22722 else
22723 echo "$as_me: program exited with status $ac_status" >&5
22724 echo "$as_me: failed program was:" >&5
22725 sed 's/^/| /' conftest.$ac_ext >&5
22727 ( exit $ac_status )
22728 ac_cv_func_working_mktime=no
22730 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22735 { echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
22736 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
22737 if test $ac_cv_func_working_mktime = no; then
22738 case " $LIBOBJS " in
22739 *" mktime.$ac_objext "* ) ;;
22740 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
22742 esac
22748 if test $ac_cv_func_working_mktime = no; then
22750 cat >>confdefs.h <<\_ACEOF
22751 #define mktime rpl_mktime
22752 _ACEOF
22758 for ac_func in mkstemp
22760 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22761 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22762 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22763 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22764 echo $ECHO_N "(cached) $ECHO_C" >&6
22765 else
22766 cat >conftest.$ac_ext <<_ACEOF
22767 /* confdefs.h. */
22768 _ACEOF
22769 cat confdefs.h >>conftest.$ac_ext
22770 cat >>conftest.$ac_ext <<_ACEOF
22771 /* end confdefs.h. */
22772 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22773 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22774 #define $ac_func innocuous_$ac_func
22776 /* System header to define __stub macros and hopefully few prototypes,
22777 which can conflict with char $ac_func (); below.
22778 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22779 <limits.h> exists even on freestanding compilers. */
22781 #ifdef __STDC__
22782 # include <limits.h>
22783 #else
22784 # include <assert.h>
22785 #endif
22787 #undef $ac_func
22789 /* Override any GCC internal prototype to avoid an error.
22790 Use char because int might match the return type of a GCC
22791 builtin and then its argument prototype would still apply. */
22792 #ifdef __cplusplus
22793 extern "C"
22794 #endif
22795 char $ac_func ();
22796 /* The GNU C library defines this for functions which it implements
22797 to always fail with ENOSYS. Some functions are actually named
22798 something starting with __ and the normal name is an alias. */
22799 #if defined __stub_$ac_func || defined __stub___$ac_func
22800 choke me
22801 #endif
22804 main ()
22806 return $ac_func ();
22808 return 0;
22810 _ACEOF
22811 rm -f conftest.$ac_objext conftest$ac_exeext
22812 if { (ac_try="$ac_link"
22813 case "(($ac_try" in
22814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22815 *) ac_try_echo=$ac_try;;
22816 esac
22817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22818 (eval "$ac_link") 2>conftest.er1
22819 ac_status=$?
22820 grep -v '^ *+' conftest.er1 >conftest.err
22821 rm -f conftest.er1
22822 cat conftest.err >&5
22823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22824 (exit $ac_status); } &&
22825 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22826 { (case "(($ac_try" in
22827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22828 *) ac_try_echo=$ac_try;;
22829 esac
22830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22831 (eval "$ac_try") 2>&5
22832 ac_status=$?
22833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22834 (exit $ac_status); }; } &&
22835 { ac_try='test -s conftest$ac_exeext'
22836 { (case "(($ac_try" in
22837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22838 *) ac_try_echo=$ac_try;;
22839 esac
22840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22841 (eval "$ac_try") 2>&5
22842 ac_status=$?
22843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22844 (exit $ac_status); }; }; then
22845 eval "$as_ac_var=yes"
22846 else
22847 echo "$as_me: failed program was:" >&5
22848 sed 's/^/| /' conftest.$ac_ext >&5
22850 eval "$as_ac_var=no"
22853 rm -f core conftest.err conftest.$ac_objext \
22854 conftest$ac_exeext conftest.$ac_ext
22856 ac_res=`eval echo '${'$as_ac_var'}'`
22857 { echo "$as_me:$LINENO: result: $ac_res" >&5
22858 echo "${ECHO_T}$ac_res" >&6; }
22859 if test `eval echo '${'$as_ac_var'}'` = yes; then
22860 cat >>confdefs.h <<_ACEOF
22861 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22862 _ACEOF
22864 else
22865 case " $LIBOBJS " in
22866 *" $ac_func.$ac_objext "* ) ;;
22867 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
22869 esac
22872 done
22875 if test $ac_cv_func_mkstemp = no; then
22876 gl_cv_func_mkstemp_limitations=yes
22877 else
22878 { echo "$as_me:$LINENO: checking for mkstemp limitations" >&5
22879 echo $ECHO_N "checking for mkstemp limitations... $ECHO_C" >&6; }
22880 if test "${gl_cv_func_mkstemp_limitations+set}" = set; then
22881 echo $ECHO_N "(cached) $ECHO_C" >&6
22882 else
22884 mkdir conftest.mkstemp
22885 if test "$cross_compiling" = yes; then
22886 gl_cv_func_mkstemp_limitations=yes
22888 else
22889 cat >conftest.$ac_ext <<_ACEOF
22890 /* confdefs.h. */
22891 _ACEOF
22892 cat confdefs.h >>conftest.$ac_ext
22893 cat >>conftest.$ac_ext <<_ACEOF
22894 /* end confdefs.h. */
22896 # include <stdlib.h>
22897 # include <unistd.h>
22898 int main ()
22900 int i;
22901 for (i = 0; i < 70; i++)
22903 char template[] = "conftest.mkstemp/coXXXXXX";
22904 int fd = mkstemp (template);
22905 if (fd == -1)
22906 exit (1);
22907 close (fd);
22909 exit (0);
22912 _ACEOF
22913 rm -f conftest$ac_exeext
22914 if { (ac_try="$ac_link"
22915 case "(($ac_try" in
22916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22917 *) ac_try_echo=$ac_try;;
22918 esac
22919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22920 (eval "$ac_link") 2>&5
22921 ac_status=$?
22922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22923 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22924 { (case "(($ac_try" in
22925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22926 *) ac_try_echo=$ac_try;;
22927 esac
22928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22929 (eval "$ac_try") 2>&5
22930 ac_status=$?
22931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22932 (exit $ac_status); }; }; then
22933 gl_cv_func_mkstemp_limitations=no
22934 else
22935 echo "$as_me: program exited with status $ac_status" >&5
22936 echo "$as_me: failed program was:" >&5
22937 sed 's/^/| /' conftest.$ac_ext >&5
22939 ( exit $ac_status )
22940 gl_cv_func_mkstemp_limitations=yes
22942 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22946 rm -rf conftest.mkstemp
22950 { echo "$as_me:$LINENO: result: $gl_cv_func_mkstemp_limitations" >&5
22951 echo "${ECHO_T}$gl_cv_func_mkstemp_limitations" >&6; }
22954 if test $gl_cv_func_mkstemp_limitations = yes; then
22955 case " $LIBOBJS " in
22956 *" mkstemp.$ac_objext "* ) ;;
22957 *) LIBOBJS="$LIBOBJS mkstemp.$ac_objext"
22959 esac
22961 case " $LIBOBJS " in
22962 *" tempname.$ac_objext "* ) ;;
22963 *) LIBOBJS="$LIBOBJS tempname.$ac_objext"
22965 esac
22968 cat >>confdefs.h <<\_ACEOF
22969 #define mkstemp rpl_mkstemp
22970 _ACEOF
22983 for ac_func in __secure_getenv gettimeofday
22985 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22986 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22987 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22988 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22989 echo $ECHO_N "(cached) $ECHO_C" >&6
22990 else
22991 cat >conftest.$ac_ext <<_ACEOF
22992 /* confdefs.h. */
22993 _ACEOF
22994 cat confdefs.h >>conftest.$ac_ext
22995 cat >>conftest.$ac_ext <<_ACEOF
22996 /* end confdefs.h. */
22997 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22998 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22999 #define $ac_func innocuous_$ac_func
23001 /* System header to define __stub macros and hopefully few prototypes,
23002 which can conflict with char $ac_func (); below.
23003 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23004 <limits.h> exists even on freestanding compilers. */
23006 #ifdef __STDC__
23007 # include <limits.h>
23008 #else
23009 # include <assert.h>
23010 #endif
23012 #undef $ac_func
23014 /* Override any GCC internal prototype to avoid an error.
23015 Use char because int might match the return type of a GCC
23016 builtin and then its argument prototype would still apply. */
23017 #ifdef __cplusplus
23018 extern "C"
23019 #endif
23020 char $ac_func ();
23021 /* The GNU C library defines this for functions which it implements
23022 to always fail with ENOSYS. Some functions are actually named
23023 something starting with __ and the normal name is an alias. */
23024 #if defined __stub_$ac_func || defined __stub___$ac_func
23025 choke me
23026 #endif
23029 main ()
23031 return $ac_func ();
23033 return 0;
23035 _ACEOF
23036 rm -f conftest.$ac_objext conftest$ac_exeext
23037 if { (ac_try="$ac_link"
23038 case "(($ac_try" in
23039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23040 *) ac_try_echo=$ac_try;;
23041 esac
23042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23043 (eval "$ac_link") 2>conftest.er1
23044 ac_status=$?
23045 grep -v '^ *+' conftest.er1 >conftest.err
23046 rm -f conftest.er1
23047 cat conftest.err >&5
23048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23049 (exit $ac_status); } &&
23050 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23051 { (case "(($ac_try" in
23052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23053 *) ac_try_echo=$ac_try;;
23054 esac
23055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23056 (eval "$ac_try") 2>&5
23057 ac_status=$?
23058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23059 (exit $ac_status); }; } &&
23060 { ac_try='test -s conftest$ac_exeext'
23061 { (case "(($ac_try" in
23062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23063 *) ac_try_echo=$ac_try;;
23064 esac
23065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23066 (eval "$ac_try") 2>&5
23067 ac_status=$?
23068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23069 (exit $ac_status); }; }; then
23070 eval "$as_ac_var=yes"
23071 else
23072 echo "$as_me: failed program was:" >&5
23073 sed 's/^/| /' conftest.$ac_ext >&5
23075 eval "$as_ac_var=no"
23078 rm -f core conftest.err conftest.$ac_objext \
23079 conftest$ac_exeext conftest.$ac_ext
23081 ac_res=`eval echo '${'$as_ac_var'}'`
23082 { echo "$as_me:$LINENO: result: $ac_res" >&5
23083 echo "${ECHO_T}$ac_res" >&6; }
23084 if test `eval echo '${'$as_ac_var'}'` = yes; then
23085 cat >>confdefs.h <<_ACEOF
23086 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23087 _ACEOF
23090 done
23096 { echo "$as_me:$LINENO: checking whether euidaccess is declared" >&5
23097 echo $ECHO_N "checking whether euidaccess is declared... $ECHO_C" >&6; }
23098 if test "${ac_cv_have_decl_euidaccess+set}" = set; then
23099 echo $ECHO_N "(cached) $ECHO_C" >&6
23100 else
23101 cat >conftest.$ac_ext <<_ACEOF
23102 /* confdefs.h. */
23103 _ACEOF
23104 cat confdefs.h >>conftest.$ac_ext
23105 cat >>conftest.$ac_ext <<_ACEOF
23106 /* end confdefs.h. */
23107 $ac_includes_default
23109 main ()
23111 #ifndef euidaccess
23112 char *p = (char *) euidaccess;
23113 return !p;
23114 #endif
23117 return 0;
23119 _ACEOF
23120 rm -f conftest.$ac_objext
23121 if { (ac_try="$ac_compile"
23122 case "(($ac_try" in
23123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23124 *) ac_try_echo=$ac_try;;
23125 esac
23126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23127 (eval "$ac_compile") 2>conftest.er1
23128 ac_status=$?
23129 grep -v '^ *+' conftest.er1 >conftest.err
23130 rm -f conftest.er1
23131 cat conftest.err >&5
23132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23133 (exit $ac_status); } &&
23134 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23135 { (case "(($ac_try" in
23136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23137 *) ac_try_echo=$ac_try;;
23138 esac
23139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23140 (eval "$ac_try") 2>&5
23141 ac_status=$?
23142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23143 (exit $ac_status); }; } &&
23144 { ac_try='test -s conftest.$ac_objext'
23145 { (case "(($ac_try" in
23146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23147 *) ac_try_echo=$ac_try;;
23148 esac
23149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23150 (eval "$ac_try") 2>&5
23151 ac_status=$?
23152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23153 (exit $ac_status); }; }; then
23154 ac_cv_have_decl_euidaccess=yes
23155 else
23156 echo "$as_me: failed program was:" >&5
23157 sed 's/^/| /' conftest.$ac_ext >&5
23159 ac_cv_have_decl_euidaccess=no
23162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23164 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_euidaccess" >&5
23165 echo "${ECHO_T}$ac_cv_have_decl_euidaccess" >&6; }
23166 if test $ac_cv_have_decl_euidaccess = yes; then
23168 cat >>confdefs.h <<_ACEOF
23169 #define HAVE_DECL_EUIDACCESS 1
23170 _ACEOF
23173 else
23174 cat >>confdefs.h <<_ACEOF
23175 #define HAVE_DECL_EUIDACCESS 0
23176 _ACEOF
23184 { echo "$as_me:$LINENO: checking whether setregid is declared" >&5
23185 echo $ECHO_N "checking whether setregid is declared... $ECHO_C" >&6; }
23186 if test "${ac_cv_have_decl_setregid+set}" = set; then
23187 echo $ECHO_N "(cached) $ECHO_C" >&6
23188 else
23189 cat >conftest.$ac_ext <<_ACEOF
23190 /* confdefs.h. */
23191 _ACEOF
23192 cat confdefs.h >>conftest.$ac_ext
23193 cat >>conftest.$ac_ext <<_ACEOF
23194 /* end confdefs.h. */
23195 $ac_includes_default
23197 main ()
23199 #ifndef setregid
23200 char *p = (char *) setregid;
23201 return !p;
23202 #endif
23205 return 0;
23207 _ACEOF
23208 rm -f conftest.$ac_objext
23209 if { (ac_try="$ac_compile"
23210 case "(($ac_try" in
23211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23212 *) ac_try_echo=$ac_try;;
23213 esac
23214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23215 (eval "$ac_compile") 2>conftest.er1
23216 ac_status=$?
23217 grep -v '^ *+' conftest.er1 >conftest.err
23218 rm -f conftest.er1
23219 cat conftest.err >&5
23220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23221 (exit $ac_status); } &&
23222 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23223 { (case "(($ac_try" in
23224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23225 *) ac_try_echo=$ac_try;;
23226 esac
23227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23228 (eval "$ac_try") 2>&5
23229 ac_status=$?
23230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23231 (exit $ac_status); }; } &&
23232 { ac_try='test -s conftest.$ac_objext'
23233 { (case "(($ac_try" in
23234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23235 *) ac_try_echo=$ac_try;;
23236 esac
23237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23238 (eval "$ac_try") 2>&5
23239 ac_status=$?
23240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23241 (exit $ac_status); }; }; then
23242 ac_cv_have_decl_setregid=yes
23243 else
23244 echo "$as_me: failed program was:" >&5
23245 sed 's/^/| /' conftest.$ac_ext >&5
23247 ac_cv_have_decl_setregid=no
23250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23252 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_setregid" >&5
23253 echo "${ECHO_T}$ac_cv_have_decl_setregid" >&6; }
23254 if test $ac_cv_have_decl_setregid = yes; then
23256 cat >>confdefs.h <<_ACEOF
23257 #define HAVE_DECL_SETREGID 1
23258 _ACEOF
23261 else
23262 cat >>confdefs.h <<_ACEOF
23263 #define HAVE_DECL_SETREGID 0
23264 _ACEOF
23270 { echo "$as_me:$LINENO: checking for getgroups" >&5
23271 echo $ECHO_N "checking for getgroups... $ECHO_C" >&6; }
23272 if test "${ac_cv_func_getgroups+set}" = set; then
23273 echo $ECHO_N "(cached) $ECHO_C" >&6
23274 else
23275 cat >conftest.$ac_ext <<_ACEOF
23276 /* confdefs.h. */
23277 _ACEOF
23278 cat confdefs.h >>conftest.$ac_ext
23279 cat >>conftest.$ac_ext <<_ACEOF
23280 /* end confdefs.h. */
23281 /* Define getgroups to an innocuous variant, in case <limits.h> declares getgroups.
23282 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23283 #define getgroups innocuous_getgroups
23285 /* System header to define __stub macros and hopefully few prototypes,
23286 which can conflict with char getgroups (); below.
23287 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23288 <limits.h> exists even on freestanding compilers. */
23290 #ifdef __STDC__
23291 # include <limits.h>
23292 #else
23293 # include <assert.h>
23294 #endif
23296 #undef getgroups
23298 /* Override any GCC internal prototype to avoid an error.
23299 Use char because int might match the return type of a GCC
23300 builtin and then its argument prototype would still apply. */
23301 #ifdef __cplusplus
23302 extern "C"
23303 #endif
23304 char getgroups ();
23305 /* The GNU C library defines this for functions which it implements
23306 to always fail with ENOSYS. Some functions are actually named
23307 something starting with __ and the normal name is an alias. */
23308 #if defined __stub_getgroups || defined __stub___getgroups
23309 choke me
23310 #endif
23313 main ()
23315 return getgroups ();
23317 return 0;
23319 _ACEOF
23320 rm -f conftest.$ac_objext conftest$ac_exeext
23321 if { (ac_try="$ac_link"
23322 case "(($ac_try" in
23323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23324 *) ac_try_echo=$ac_try;;
23325 esac
23326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23327 (eval "$ac_link") 2>conftest.er1
23328 ac_status=$?
23329 grep -v '^ *+' conftest.er1 >conftest.err
23330 rm -f conftest.er1
23331 cat conftest.err >&5
23332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23333 (exit $ac_status); } &&
23334 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23335 { (case "(($ac_try" in
23336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23337 *) ac_try_echo=$ac_try;;
23338 esac
23339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23340 (eval "$ac_try") 2>&5
23341 ac_status=$?
23342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23343 (exit $ac_status); }; } &&
23344 { ac_try='test -s conftest$ac_exeext'
23345 { (case "(($ac_try" in
23346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23347 *) ac_try_echo=$ac_try;;
23348 esac
23349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23350 (eval "$ac_try") 2>&5
23351 ac_status=$?
23352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23353 (exit $ac_status); }; }; then
23354 ac_cv_func_getgroups=yes
23355 else
23356 echo "$as_me: failed program was:" >&5
23357 sed 's/^/| /' conftest.$ac_ext >&5
23359 ac_cv_func_getgroups=no
23362 rm -f core conftest.err conftest.$ac_objext \
23363 conftest$ac_exeext conftest.$ac_ext
23365 { echo "$as_me:$LINENO: result: $ac_cv_func_getgroups" >&5
23366 echo "${ECHO_T}$ac_cv_func_getgroups" >&6; }
23369 # If we don't yet have getgroups, see if it's in -lbsd.
23370 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
23371 ac_save_LIBS=$LIBS
23372 if test $ac_cv_func_getgroups = no; then
23373 { echo "$as_me:$LINENO: checking for getgroups in -lbsd" >&5
23374 echo $ECHO_N "checking for getgroups in -lbsd... $ECHO_C" >&6; }
23375 if test "${ac_cv_lib_bsd_getgroups+set}" = set; then
23376 echo $ECHO_N "(cached) $ECHO_C" >&6
23377 else
23378 ac_check_lib_save_LIBS=$LIBS
23379 LIBS="-lbsd $LIBS"
23380 cat >conftest.$ac_ext <<_ACEOF
23381 /* confdefs.h. */
23382 _ACEOF
23383 cat confdefs.h >>conftest.$ac_ext
23384 cat >>conftest.$ac_ext <<_ACEOF
23385 /* end confdefs.h. */
23387 /* Override any GCC internal prototype to avoid an error.
23388 Use char because int might match the return type of a GCC
23389 builtin and then its argument prototype would still apply. */
23390 #ifdef __cplusplus
23391 extern "C"
23392 #endif
23393 char getgroups ();
23395 main ()
23397 return getgroups ();
23399 return 0;
23401 _ACEOF
23402 rm -f conftest.$ac_objext conftest$ac_exeext
23403 if { (ac_try="$ac_link"
23404 case "(($ac_try" in
23405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23406 *) ac_try_echo=$ac_try;;
23407 esac
23408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23409 (eval "$ac_link") 2>conftest.er1
23410 ac_status=$?
23411 grep -v '^ *+' conftest.er1 >conftest.err
23412 rm -f conftest.er1
23413 cat conftest.err >&5
23414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23415 (exit $ac_status); } &&
23416 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23417 { (case "(($ac_try" in
23418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23419 *) ac_try_echo=$ac_try;;
23420 esac
23421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23422 (eval "$ac_try") 2>&5
23423 ac_status=$?
23424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23425 (exit $ac_status); }; } &&
23426 { ac_try='test -s conftest$ac_exeext'
23427 { (case "(($ac_try" in
23428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23429 *) ac_try_echo=$ac_try;;
23430 esac
23431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23432 (eval "$ac_try") 2>&5
23433 ac_status=$?
23434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23435 (exit $ac_status); }; }; then
23436 ac_cv_lib_bsd_getgroups=yes
23437 else
23438 echo "$as_me: failed program was:" >&5
23439 sed 's/^/| /' conftest.$ac_ext >&5
23441 ac_cv_lib_bsd_getgroups=no
23444 rm -f core conftest.err conftest.$ac_objext \
23445 conftest$ac_exeext conftest.$ac_ext
23446 LIBS=$ac_check_lib_save_LIBS
23448 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_getgroups" >&5
23449 echo "${ECHO_T}$ac_cv_lib_bsd_getgroups" >&6; }
23450 if test $ac_cv_lib_bsd_getgroups = yes; then
23451 GETGROUPS_LIB=-lbsd
23456 # Run the program to test the functionality of the system-supplied
23457 # getgroups function only if there is such a function.
23458 if test $ac_cv_func_getgroups = yes; then
23459 { echo "$as_me:$LINENO: checking for working getgroups" >&5
23460 echo $ECHO_N "checking for working getgroups... $ECHO_C" >&6; }
23461 if test "${ac_cv_func_getgroups_works+set}" = set; then
23462 echo $ECHO_N "(cached) $ECHO_C" >&6
23463 else
23464 if test "$cross_compiling" = yes; then
23465 ac_cv_func_getgroups_works=no
23466 else
23467 cat >conftest.$ac_ext <<_ACEOF
23468 /* confdefs.h. */
23469 _ACEOF
23470 cat confdefs.h >>conftest.$ac_ext
23471 cat >>conftest.$ac_ext <<_ACEOF
23472 /* end confdefs.h. */
23473 $ac_includes_default
23475 main ()
23477 /* On Ultrix 4.3, getgroups (0, 0) always fails. */
23478 return getgroups (0, 0) == -1;
23480 return 0;
23482 _ACEOF
23483 rm -f conftest$ac_exeext
23484 if { (ac_try="$ac_link"
23485 case "(($ac_try" in
23486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23487 *) ac_try_echo=$ac_try;;
23488 esac
23489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23490 (eval "$ac_link") 2>&5
23491 ac_status=$?
23492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23493 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23494 { (case "(($ac_try" in
23495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23496 *) ac_try_echo=$ac_try;;
23497 esac
23498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23499 (eval "$ac_try") 2>&5
23500 ac_status=$?
23501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23502 (exit $ac_status); }; }; then
23503 ac_cv_func_getgroups_works=yes
23504 else
23505 echo "$as_me: program exited with status $ac_status" >&5
23506 echo "$as_me: failed program was:" >&5
23507 sed 's/^/| /' conftest.$ac_ext >&5
23509 ( exit $ac_status )
23510 ac_cv_func_getgroups_works=no
23512 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23518 { echo "$as_me:$LINENO: result: $ac_cv_func_getgroups_works" >&5
23519 echo "${ECHO_T}$ac_cv_func_getgroups_works" >&6; }
23520 if test $ac_cv_func_getgroups_works = yes; then
23522 cat >>confdefs.h <<\_ACEOF
23523 #define HAVE_GETGROUPS 1
23524 _ACEOF
23528 LIBS=$ac_save_LIBS
23538 for ac_func in euidaccess
23540 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23541 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23542 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23543 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23544 echo $ECHO_N "(cached) $ECHO_C" >&6
23545 else
23546 cat >conftest.$ac_ext <<_ACEOF
23547 /* confdefs.h. */
23548 _ACEOF
23549 cat confdefs.h >>conftest.$ac_ext
23550 cat >>conftest.$ac_ext <<_ACEOF
23551 /* end confdefs.h. */
23552 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23553 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23554 #define $ac_func innocuous_$ac_func
23556 /* System header to define __stub macros and hopefully few prototypes,
23557 which can conflict with char $ac_func (); below.
23558 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23559 <limits.h> exists even on freestanding compilers. */
23561 #ifdef __STDC__
23562 # include <limits.h>
23563 #else
23564 # include <assert.h>
23565 #endif
23567 #undef $ac_func
23569 /* Override any GCC internal prototype to avoid an error.
23570 Use char because int might match the return type of a GCC
23571 builtin and then its argument prototype would still apply. */
23572 #ifdef __cplusplus
23573 extern "C"
23574 #endif
23575 char $ac_func ();
23576 /* The GNU C library defines this for functions which it implements
23577 to always fail with ENOSYS. Some functions are actually named
23578 something starting with __ and the normal name is an alias. */
23579 #if defined __stub_$ac_func || defined __stub___$ac_func
23580 choke me
23581 #endif
23584 main ()
23586 return $ac_func ();
23588 return 0;
23590 _ACEOF
23591 rm -f conftest.$ac_objext conftest$ac_exeext
23592 if { (ac_try="$ac_link"
23593 case "(($ac_try" in
23594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23595 *) ac_try_echo=$ac_try;;
23596 esac
23597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23598 (eval "$ac_link") 2>conftest.er1
23599 ac_status=$?
23600 grep -v '^ *+' conftest.er1 >conftest.err
23601 rm -f conftest.er1
23602 cat conftest.err >&5
23603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23604 (exit $ac_status); } &&
23605 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23606 { (case "(($ac_try" in
23607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23608 *) ac_try_echo=$ac_try;;
23609 esac
23610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23611 (eval "$ac_try") 2>&5
23612 ac_status=$?
23613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23614 (exit $ac_status); }; } &&
23615 { ac_try='test -s conftest$ac_exeext'
23616 { (case "(($ac_try" in
23617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23618 *) ac_try_echo=$ac_try;;
23619 esac
23620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23621 (eval "$ac_try") 2>&5
23622 ac_status=$?
23623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23624 (exit $ac_status); }; }; then
23625 eval "$as_ac_var=yes"
23626 else
23627 echo "$as_me: failed program was:" >&5
23628 sed 's/^/| /' conftest.$ac_ext >&5
23630 eval "$as_ac_var=no"
23633 rm -f core conftest.err conftest.$ac_objext \
23634 conftest$ac_exeext conftest.$ac_ext
23636 ac_res=`eval echo '${'$as_ac_var'}'`
23637 { echo "$as_me:$LINENO: result: $ac_res" >&5
23638 echo "${ECHO_T}$ac_res" >&6; }
23639 if test `eval echo '${'$as_ac_var'}'` = yes; then
23640 cat >>confdefs.h <<_ACEOF
23641 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23642 _ACEOF
23644 else
23645 case " $LIBOBJS " in
23646 *" $ac_func.$ac_objext "* ) ;;
23647 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
23649 esac
23652 done
23655 if test $ac_cv_func_euidaccess = no; then
23669 # Solaris 9 needs -lgen to get the eaccess function.
23670 # Save and restore LIBS so -lgen isn't added to it. Otherwise, *all*
23671 # programs in the package would end up linked with that potentially-shared
23672 # library, inducing unnecessary run-time overhead.
23673 gl_saved_libs=$LIBS
23674 { echo "$as_me:$LINENO: checking for library containing eaccess" >&5
23675 echo $ECHO_N "checking for library containing eaccess... $ECHO_C" >&6; }
23676 if test "${ac_cv_search_eaccess+set}" = set; then
23677 echo $ECHO_N "(cached) $ECHO_C" >&6
23678 else
23679 ac_func_search_save_LIBS=$LIBS
23680 cat >conftest.$ac_ext <<_ACEOF
23681 /* confdefs.h. */
23682 _ACEOF
23683 cat confdefs.h >>conftest.$ac_ext
23684 cat >>conftest.$ac_ext <<_ACEOF
23685 /* end confdefs.h. */
23687 /* Override any GCC internal prototype to avoid an error.
23688 Use char because int might match the return type of a GCC
23689 builtin and then its argument prototype would still apply. */
23690 #ifdef __cplusplus
23691 extern "C"
23692 #endif
23693 char eaccess ();
23695 main ()
23697 return eaccess ();
23699 return 0;
23701 _ACEOF
23702 for ac_lib in '' gen; do
23703 if test -z "$ac_lib"; then
23704 ac_res="none required"
23705 else
23706 ac_res=-l$ac_lib
23707 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23709 rm -f conftest.$ac_objext conftest$ac_exeext
23710 if { (ac_try="$ac_link"
23711 case "(($ac_try" in
23712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23713 *) ac_try_echo=$ac_try;;
23714 esac
23715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23716 (eval "$ac_link") 2>conftest.er1
23717 ac_status=$?
23718 grep -v '^ *+' conftest.er1 >conftest.err
23719 rm -f conftest.er1
23720 cat conftest.err >&5
23721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23722 (exit $ac_status); } &&
23723 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23724 { (case "(($ac_try" in
23725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23726 *) ac_try_echo=$ac_try;;
23727 esac
23728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23729 (eval "$ac_try") 2>&5
23730 ac_status=$?
23731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23732 (exit $ac_status); }; } &&
23733 { ac_try='test -s conftest$ac_exeext'
23734 { (case "(($ac_try" in
23735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23736 *) ac_try_echo=$ac_try;;
23737 esac
23738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23739 (eval "$ac_try") 2>&5
23740 ac_status=$?
23741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23742 (exit $ac_status); }; }; then
23743 ac_cv_search_eaccess=$ac_res
23744 else
23745 echo "$as_me: failed program was:" >&5
23746 sed 's/^/| /' conftest.$ac_ext >&5
23751 rm -f core conftest.err conftest.$ac_objext \
23752 conftest$ac_exeext
23753 if test "${ac_cv_search_eaccess+set}" = set; then
23754 break
23756 done
23757 if test "${ac_cv_search_eaccess+set}" = set; then
23759 else
23760 ac_cv_search_eaccess=no
23762 rm conftest.$ac_ext
23763 LIBS=$ac_func_search_save_LIBS
23765 { echo "$as_me:$LINENO: result: $ac_cv_search_eaccess" >&5
23766 echo "${ECHO_T}$ac_cv_search_eaccess" >&6; }
23767 ac_res=$ac_cv_search_eaccess
23768 if test "$ac_res" != no; then
23769 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23770 test "$ac_cv_search_eaccess" = "none required" ||
23771 LIB_EACCESS=$ac_cv_search_eaccess
23776 for ac_func in eaccess
23778 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23779 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23780 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23781 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23782 echo $ECHO_N "(cached) $ECHO_C" >&6
23783 else
23784 cat >conftest.$ac_ext <<_ACEOF
23785 /* confdefs.h. */
23786 _ACEOF
23787 cat confdefs.h >>conftest.$ac_ext
23788 cat >>conftest.$ac_ext <<_ACEOF
23789 /* end confdefs.h. */
23790 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23791 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23792 #define $ac_func innocuous_$ac_func
23794 /* System header to define __stub macros and hopefully few prototypes,
23795 which can conflict with char $ac_func (); below.
23796 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23797 <limits.h> exists even on freestanding compilers. */
23799 #ifdef __STDC__
23800 # include <limits.h>
23801 #else
23802 # include <assert.h>
23803 #endif
23805 #undef $ac_func
23807 /* Override any GCC internal prototype to avoid an error.
23808 Use char because int might match the return type of a GCC
23809 builtin and then its argument prototype would still apply. */
23810 #ifdef __cplusplus
23811 extern "C"
23812 #endif
23813 char $ac_func ();
23814 /* The GNU C library defines this for functions which it implements
23815 to always fail with ENOSYS. Some functions are actually named
23816 something starting with __ and the normal name is an alias. */
23817 #if defined __stub_$ac_func || defined __stub___$ac_func
23818 choke me
23819 #endif
23822 main ()
23824 return $ac_func ();
23826 return 0;
23828 _ACEOF
23829 rm -f conftest.$ac_objext conftest$ac_exeext
23830 if { (ac_try="$ac_link"
23831 case "(($ac_try" in
23832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23833 *) ac_try_echo=$ac_try;;
23834 esac
23835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23836 (eval "$ac_link") 2>conftest.er1
23837 ac_status=$?
23838 grep -v '^ *+' conftest.er1 >conftest.err
23839 rm -f conftest.er1
23840 cat conftest.err >&5
23841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23842 (exit $ac_status); } &&
23843 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23844 { (case "(($ac_try" in
23845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23846 *) ac_try_echo=$ac_try;;
23847 esac
23848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23849 (eval "$ac_try") 2>&5
23850 ac_status=$?
23851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23852 (exit $ac_status); }; } &&
23853 { ac_try='test -s conftest$ac_exeext'
23854 { (case "(($ac_try" in
23855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23856 *) ac_try_echo=$ac_try;;
23857 esac
23858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23859 (eval "$ac_try") 2>&5
23860 ac_status=$?
23861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23862 (exit $ac_status); }; }; then
23863 eval "$as_ac_var=yes"
23864 else
23865 echo "$as_me: failed program was:" >&5
23866 sed 's/^/| /' conftest.$ac_ext >&5
23868 eval "$as_ac_var=no"
23871 rm -f core conftest.err conftest.$ac_objext \
23872 conftest$ac_exeext conftest.$ac_ext
23874 ac_res=`eval echo '${'$as_ac_var'}'`
23875 { echo "$as_me:$LINENO: result: $ac_res" >&5
23876 echo "${ECHO_T}$ac_res" >&6; }
23877 if test `eval echo '${'$as_ac_var'}'` = yes; then
23878 cat >>confdefs.h <<_ACEOF
23879 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23880 _ACEOF
23883 done
23885 LIBS=$gl_saved_libs
23892 cat >>confdefs.h <<\_ACEOF
23893 #define PREFER_NONREENTRANT_EUIDACCESS 1
23894 _ACEOF
23899 for ac_func in readlink
23901 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23902 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23903 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23904 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23905 echo $ECHO_N "(cached) $ECHO_C" >&6
23906 else
23907 cat >conftest.$ac_ext <<_ACEOF
23908 /* confdefs.h. */
23909 _ACEOF
23910 cat confdefs.h >>conftest.$ac_ext
23911 cat >>conftest.$ac_ext <<_ACEOF
23912 /* end confdefs.h. */
23913 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23914 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23915 #define $ac_func innocuous_$ac_func
23917 /* System header to define __stub macros and hopefully few prototypes,
23918 which can conflict with char $ac_func (); below.
23919 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23920 <limits.h> exists even on freestanding compilers. */
23922 #ifdef __STDC__
23923 # include <limits.h>
23924 #else
23925 # include <assert.h>
23926 #endif
23928 #undef $ac_func
23930 /* Override any GCC internal prototype to avoid an error.
23931 Use char because int might match the return type of a GCC
23932 builtin and then its argument prototype would still apply. */
23933 #ifdef __cplusplus
23934 extern "C"
23935 #endif
23936 char $ac_func ();
23937 /* The GNU C library defines this for functions which it implements
23938 to always fail with ENOSYS. Some functions are actually named
23939 something starting with __ and the normal name is an alias. */
23940 #if defined __stub_$ac_func || defined __stub___$ac_func
23941 choke me
23942 #endif
23945 main ()
23947 return $ac_func ();
23949 return 0;
23951 _ACEOF
23952 rm -f conftest.$ac_objext conftest$ac_exeext
23953 if { (ac_try="$ac_link"
23954 case "(($ac_try" in
23955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23956 *) ac_try_echo=$ac_try;;
23957 esac
23958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23959 (eval "$ac_link") 2>conftest.er1
23960 ac_status=$?
23961 grep -v '^ *+' conftest.er1 >conftest.err
23962 rm -f conftest.er1
23963 cat conftest.err >&5
23964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23965 (exit $ac_status); } &&
23966 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23967 { (case "(($ac_try" in
23968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23969 *) ac_try_echo=$ac_try;;
23970 esac
23971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23972 (eval "$ac_try") 2>&5
23973 ac_status=$?
23974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23975 (exit $ac_status); }; } &&
23976 { ac_try='test -s conftest$ac_exeext'
23977 { (case "(($ac_try" in
23978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23979 *) ac_try_echo=$ac_try;;
23980 esac
23981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23982 (eval "$ac_try") 2>&5
23983 ac_status=$?
23984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23985 (exit $ac_status); }; }; then
23986 eval "$as_ac_var=yes"
23987 else
23988 echo "$as_me: failed program was:" >&5
23989 sed 's/^/| /' conftest.$ac_ext >&5
23991 eval "$as_ac_var=no"
23994 rm -f core conftest.err conftest.$ac_objext \
23995 conftest$ac_exeext conftest.$ac_ext
23997 ac_res=`eval echo '${'$as_ac_var'}'`
23998 { echo "$as_me:$LINENO: result: $ac_res" >&5
23999 echo "${ECHO_T}$ac_res" >&6; }
24000 if test `eval echo '${'$as_ac_var'}'` = yes; then
24001 cat >>confdefs.h <<_ACEOF
24002 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24003 _ACEOF
24006 done
24008 if test $ac_cv_func_readlink = no; then
24009 case " $LIBOBJS " in
24010 *" readlink.$ac_objext "* ) ;;
24011 *) LIBOBJS="$LIBOBJS readlink.$ac_objext"
24013 esac
24022 for ac_func in rmdir
24024 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24025 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24026 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24027 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24028 echo $ECHO_N "(cached) $ECHO_C" >&6
24029 else
24030 cat >conftest.$ac_ext <<_ACEOF
24031 /* confdefs.h. */
24032 _ACEOF
24033 cat confdefs.h >>conftest.$ac_ext
24034 cat >>conftest.$ac_ext <<_ACEOF
24035 /* end confdefs.h. */
24036 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24037 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24038 #define $ac_func innocuous_$ac_func
24040 /* System header to define __stub macros and hopefully few prototypes,
24041 which can conflict with char $ac_func (); below.
24042 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24043 <limits.h> exists even on freestanding compilers. */
24045 #ifdef __STDC__
24046 # include <limits.h>
24047 #else
24048 # include <assert.h>
24049 #endif
24051 #undef $ac_func
24053 /* Override any GCC internal prototype to avoid an error.
24054 Use char because int might match the return type of a GCC
24055 builtin and then its argument prototype would still apply. */
24056 #ifdef __cplusplus
24057 extern "C"
24058 #endif
24059 char $ac_func ();
24060 /* The GNU C library defines this for functions which it implements
24061 to always fail with ENOSYS. Some functions are actually named
24062 something starting with __ and the normal name is an alias. */
24063 #if defined __stub_$ac_func || defined __stub___$ac_func
24064 choke me
24065 #endif
24068 main ()
24070 return $ac_func ();
24072 return 0;
24074 _ACEOF
24075 rm -f conftest.$ac_objext conftest$ac_exeext
24076 if { (ac_try="$ac_link"
24077 case "(($ac_try" in
24078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24079 *) ac_try_echo=$ac_try;;
24080 esac
24081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24082 (eval "$ac_link") 2>conftest.er1
24083 ac_status=$?
24084 grep -v '^ *+' conftest.er1 >conftest.err
24085 rm -f conftest.er1
24086 cat conftest.err >&5
24087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24088 (exit $ac_status); } &&
24089 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24090 { (case "(($ac_try" in
24091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24092 *) ac_try_echo=$ac_try;;
24093 esac
24094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24095 (eval "$ac_try") 2>&5
24096 ac_status=$?
24097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24098 (exit $ac_status); }; } &&
24099 { ac_try='test -s conftest$ac_exeext'
24100 { (case "(($ac_try" in
24101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24102 *) ac_try_echo=$ac_try;;
24103 esac
24104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24105 (eval "$ac_try") 2>&5
24106 ac_status=$?
24107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24108 (exit $ac_status); }; }; then
24109 eval "$as_ac_var=yes"
24110 else
24111 echo "$as_me: failed program was:" >&5
24112 sed 's/^/| /' conftest.$ac_ext >&5
24114 eval "$as_ac_var=no"
24117 rm -f core conftest.err conftest.$ac_objext \
24118 conftest$ac_exeext conftest.$ac_ext
24120 ac_res=`eval echo '${'$as_ac_var'}'`
24121 { echo "$as_me:$LINENO: result: $ac_res" >&5
24122 echo "${ECHO_T}$ac_res" >&6; }
24123 if test `eval echo '${'$as_ac_var'}'` = yes; then
24124 cat >>confdefs.h <<_ACEOF
24125 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24126 _ACEOF
24128 else
24129 case " $LIBOBJS " in
24130 *" $ac_func.$ac_objext "* ) ;;
24131 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
24133 esac
24136 done
24142 for ac_func in rpmatch
24144 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24145 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24146 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24147 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24148 echo $ECHO_N "(cached) $ECHO_C" >&6
24149 else
24150 cat >conftest.$ac_ext <<_ACEOF
24151 /* confdefs.h. */
24152 _ACEOF
24153 cat confdefs.h >>conftest.$ac_ext
24154 cat >>conftest.$ac_ext <<_ACEOF
24155 /* end confdefs.h. */
24156 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24157 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24158 #define $ac_func innocuous_$ac_func
24160 /* System header to define __stub macros and hopefully few prototypes,
24161 which can conflict with char $ac_func (); below.
24162 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24163 <limits.h> exists even on freestanding compilers. */
24165 #ifdef __STDC__
24166 # include <limits.h>
24167 #else
24168 # include <assert.h>
24169 #endif
24171 #undef $ac_func
24173 /* Override any GCC internal prototype to avoid an error.
24174 Use char because int might match the return type of a GCC
24175 builtin and then its argument prototype would still apply. */
24176 #ifdef __cplusplus
24177 extern "C"
24178 #endif
24179 char $ac_func ();
24180 /* The GNU C library defines this for functions which it implements
24181 to always fail with ENOSYS. Some functions are actually named
24182 something starting with __ and the normal name is an alias. */
24183 #if defined __stub_$ac_func || defined __stub___$ac_func
24184 choke me
24185 #endif
24188 main ()
24190 return $ac_func ();
24192 return 0;
24194 _ACEOF
24195 rm -f conftest.$ac_objext conftest$ac_exeext
24196 if { (ac_try="$ac_link"
24197 case "(($ac_try" in
24198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24199 *) ac_try_echo=$ac_try;;
24200 esac
24201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24202 (eval "$ac_link") 2>conftest.er1
24203 ac_status=$?
24204 grep -v '^ *+' conftest.er1 >conftest.err
24205 rm -f conftest.er1
24206 cat conftest.err >&5
24207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24208 (exit $ac_status); } &&
24209 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24210 { (case "(($ac_try" in
24211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24212 *) ac_try_echo=$ac_try;;
24213 esac
24214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24215 (eval "$ac_try") 2>&5
24216 ac_status=$?
24217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24218 (exit $ac_status); }; } &&
24219 { ac_try='test -s conftest$ac_exeext'
24220 { (case "(($ac_try" in
24221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24222 *) ac_try_echo=$ac_try;;
24223 esac
24224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24225 (eval "$ac_try") 2>&5
24226 ac_status=$?
24227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24228 (exit $ac_status); }; }; then
24229 eval "$as_ac_var=yes"
24230 else
24231 echo "$as_me: failed program was:" >&5
24232 sed 's/^/| /' conftest.$ac_ext >&5
24234 eval "$as_ac_var=no"
24237 rm -f core conftest.err conftest.$ac_objext \
24238 conftest$ac_exeext conftest.$ac_ext
24240 ac_res=`eval echo '${'$as_ac_var'}'`
24241 { echo "$as_me:$LINENO: result: $ac_res" >&5
24242 echo "${ECHO_T}$ac_res" >&6; }
24243 if test `eval echo '${'$as_ac_var'}'` = yes; then
24244 cat >>confdefs.h <<_ACEOF
24245 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24246 _ACEOF
24248 else
24249 case " $LIBOBJS " in
24250 *" $ac_func.$ac_objext "* ) ;;
24251 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
24253 esac
24256 done
24259 if test $ac_cv_func_rpmatch = no; then
24268 for ac_func in setenv unsetenv
24270 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24271 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24272 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24273 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24274 echo $ECHO_N "(cached) $ECHO_C" >&6
24275 else
24276 cat >conftest.$ac_ext <<_ACEOF
24277 /* confdefs.h. */
24278 _ACEOF
24279 cat confdefs.h >>conftest.$ac_ext
24280 cat >>conftest.$ac_ext <<_ACEOF
24281 /* end confdefs.h. */
24282 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24283 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24284 #define $ac_func innocuous_$ac_func
24286 /* System header to define __stub macros and hopefully few prototypes,
24287 which can conflict with char $ac_func (); below.
24288 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24289 <limits.h> exists even on freestanding compilers. */
24291 #ifdef __STDC__
24292 # include <limits.h>
24293 #else
24294 # include <assert.h>
24295 #endif
24297 #undef $ac_func
24299 /* Override any GCC internal prototype to avoid an error.
24300 Use char because int might match the return type of a GCC
24301 builtin and then its argument prototype would still apply. */
24302 #ifdef __cplusplus
24303 extern "C"
24304 #endif
24305 char $ac_func ();
24306 /* The GNU C library defines this for functions which it implements
24307 to always fail with ENOSYS. Some functions are actually named
24308 something starting with __ and the normal name is an alias. */
24309 #if defined __stub_$ac_func || defined __stub___$ac_func
24310 choke me
24311 #endif
24314 main ()
24316 return $ac_func ();
24318 return 0;
24320 _ACEOF
24321 rm -f conftest.$ac_objext conftest$ac_exeext
24322 if { (ac_try="$ac_link"
24323 case "(($ac_try" in
24324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24325 *) ac_try_echo=$ac_try;;
24326 esac
24327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24328 (eval "$ac_link") 2>conftest.er1
24329 ac_status=$?
24330 grep -v '^ *+' conftest.er1 >conftest.err
24331 rm -f conftest.er1
24332 cat conftest.err >&5
24333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24334 (exit $ac_status); } &&
24335 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24336 { (case "(($ac_try" in
24337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24338 *) ac_try_echo=$ac_try;;
24339 esac
24340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24341 (eval "$ac_try") 2>&5
24342 ac_status=$?
24343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24344 (exit $ac_status); }; } &&
24345 { ac_try='test -s conftest$ac_exeext'
24346 { (case "(($ac_try" in
24347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24348 *) ac_try_echo=$ac_try;;
24349 esac
24350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24351 (eval "$ac_try") 2>&5
24352 ac_status=$?
24353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24354 (exit $ac_status); }; }; then
24355 eval "$as_ac_var=yes"
24356 else
24357 echo "$as_me: failed program was:" >&5
24358 sed 's/^/| /' conftest.$ac_ext >&5
24360 eval "$as_ac_var=no"
24363 rm -f core conftest.err conftest.$ac_objext \
24364 conftest$ac_exeext conftest.$ac_ext
24366 ac_res=`eval echo '${'$as_ac_var'}'`
24367 { echo "$as_me:$LINENO: result: $ac_res" >&5
24368 echo "${ECHO_T}$ac_res" >&6; }
24369 if test `eval echo '${'$as_ac_var'}'` = yes; then
24370 cat >>confdefs.h <<_ACEOF
24371 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24372 _ACEOF
24374 else
24375 case " $LIBOBJS " in
24376 *" $ac_func.$ac_objext "* ) ;;
24377 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
24379 esac
24382 done
24385 if test $ac_cv_func_setenv = no; then
24395 for ac_header in search.h
24397 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24398 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24399 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24400 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24401 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24402 echo $ECHO_N "(cached) $ECHO_C" >&6
24404 ac_res=`eval echo '${'$as_ac_Header'}'`
24405 { echo "$as_me:$LINENO: result: $ac_res" >&5
24406 echo "${ECHO_T}$ac_res" >&6; }
24407 else
24408 # Is the header compilable?
24409 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24410 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24411 cat >conftest.$ac_ext <<_ACEOF
24412 /* confdefs.h. */
24413 _ACEOF
24414 cat confdefs.h >>conftest.$ac_ext
24415 cat >>conftest.$ac_ext <<_ACEOF
24416 /* end confdefs.h. */
24417 $ac_includes_default
24418 #include <$ac_header>
24419 _ACEOF
24420 rm -f conftest.$ac_objext
24421 if { (ac_try="$ac_compile"
24422 case "(($ac_try" in
24423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24424 *) ac_try_echo=$ac_try;;
24425 esac
24426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24427 (eval "$ac_compile") 2>conftest.er1
24428 ac_status=$?
24429 grep -v '^ *+' conftest.er1 >conftest.err
24430 rm -f conftest.er1
24431 cat conftest.err >&5
24432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24433 (exit $ac_status); } &&
24434 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24435 { (case "(($ac_try" in
24436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24437 *) ac_try_echo=$ac_try;;
24438 esac
24439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24440 (eval "$ac_try") 2>&5
24441 ac_status=$?
24442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24443 (exit $ac_status); }; } &&
24444 { ac_try='test -s conftest.$ac_objext'
24445 { (case "(($ac_try" in
24446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24447 *) ac_try_echo=$ac_try;;
24448 esac
24449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24450 (eval "$ac_try") 2>&5
24451 ac_status=$?
24452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24453 (exit $ac_status); }; }; then
24454 ac_header_compiler=yes
24455 else
24456 echo "$as_me: failed program was:" >&5
24457 sed 's/^/| /' conftest.$ac_ext >&5
24459 ac_header_compiler=no
24462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24463 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24464 echo "${ECHO_T}$ac_header_compiler" >&6; }
24466 # Is the header present?
24467 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24468 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24469 cat >conftest.$ac_ext <<_ACEOF
24470 /* confdefs.h. */
24471 _ACEOF
24472 cat confdefs.h >>conftest.$ac_ext
24473 cat >>conftest.$ac_ext <<_ACEOF
24474 /* end confdefs.h. */
24475 #include <$ac_header>
24476 _ACEOF
24477 if { (ac_try="$ac_cpp conftest.$ac_ext"
24478 case "(($ac_try" in
24479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24480 *) ac_try_echo=$ac_try;;
24481 esac
24482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24483 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24484 ac_status=$?
24485 grep -v '^ *+' conftest.er1 >conftest.err
24486 rm -f conftest.er1
24487 cat conftest.err >&5
24488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24489 (exit $ac_status); } >/dev/null; then
24490 if test -s conftest.err; then
24491 ac_cpp_err=$ac_c_preproc_warn_flag
24492 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24493 else
24494 ac_cpp_err=
24496 else
24497 ac_cpp_err=yes
24499 if test -z "$ac_cpp_err"; then
24500 ac_header_preproc=yes
24501 else
24502 echo "$as_me: failed program was:" >&5
24503 sed 's/^/| /' conftest.$ac_ext >&5
24505 ac_header_preproc=no
24508 rm -f conftest.err conftest.$ac_ext
24509 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24510 echo "${ECHO_T}$ac_header_preproc" >&6; }
24512 # So? What about this header?
24513 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24514 yes:no: )
24515 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24516 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24517 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24518 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24519 ac_header_preproc=yes
24521 no:yes:* )
24522 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24523 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24524 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24525 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24526 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24527 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24528 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24529 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24530 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24531 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24532 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24533 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24534 ( cat <<\_ASBOX
24535 ## ------------------------------------ ##
24536 ## Report this to bug-coreutils@gnu.org ##
24537 ## ------------------------------------ ##
24538 _ASBOX
24539 ) | sed "s/^/$as_me: WARNING: /" >&2
24541 esac
24542 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24543 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24544 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24545 echo $ECHO_N "(cached) $ECHO_C" >&6
24546 else
24547 eval "$as_ac_Header=\$ac_header_preproc"
24549 ac_res=`eval echo '${'$as_ac_Header'}'`
24550 { echo "$as_me:$LINENO: result: $ac_res" >&5
24551 echo "${ECHO_T}$ac_res" >&6; }
24554 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24555 cat >>confdefs.h <<_ACEOF
24556 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24557 _ACEOF
24561 done
24564 for ac_func in tsearch
24566 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24567 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24568 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24569 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24570 echo $ECHO_N "(cached) $ECHO_C" >&6
24571 else
24572 cat >conftest.$ac_ext <<_ACEOF
24573 /* confdefs.h. */
24574 _ACEOF
24575 cat confdefs.h >>conftest.$ac_ext
24576 cat >>conftest.$ac_ext <<_ACEOF
24577 /* end confdefs.h. */
24578 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24579 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24580 #define $ac_func innocuous_$ac_func
24582 /* System header to define __stub macros and hopefully few prototypes,
24583 which can conflict with char $ac_func (); below.
24584 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24585 <limits.h> exists even on freestanding compilers. */
24587 #ifdef __STDC__
24588 # include <limits.h>
24589 #else
24590 # include <assert.h>
24591 #endif
24593 #undef $ac_func
24595 /* Override any GCC internal prototype to avoid an error.
24596 Use char because int might match the return type of a GCC
24597 builtin and then its argument prototype would still apply. */
24598 #ifdef __cplusplus
24599 extern "C"
24600 #endif
24601 char $ac_func ();
24602 /* The GNU C library defines this for functions which it implements
24603 to always fail with ENOSYS. Some functions are actually named
24604 something starting with __ and the normal name is an alias. */
24605 #if defined __stub_$ac_func || defined __stub___$ac_func
24606 choke me
24607 #endif
24610 main ()
24612 return $ac_func ();
24614 return 0;
24616 _ACEOF
24617 rm -f conftest.$ac_objext conftest$ac_exeext
24618 if { (ac_try="$ac_link"
24619 case "(($ac_try" in
24620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24621 *) ac_try_echo=$ac_try;;
24622 esac
24623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24624 (eval "$ac_link") 2>conftest.er1
24625 ac_status=$?
24626 grep -v '^ *+' conftest.er1 >conftest.err
24627 rm -f conftest.er1
24628 cat conftest.err >&5
24629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24630 (exit $ac_status); } &&
24631 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24632 { (case "(($ac_try" in
24633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24634 *) ac_try_echo=$ac_try;;
24635 esac
24636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24637 (eval "$ac_try") 2>&5
24638 ac_status=$?
24639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24640 (exit $ac_status); }; } &&
24641 { ac_try='test -s conftest$ac_exeext'
24642 { (case "(($ac_try" in
24643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24644 *) ac_try_echo=$ac_try;;
24645 esac
24646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24647 (eval "$ac_try") 2>&5
24648 ac_status=$?
24649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24650 (exit $ac_status); }; }; then
24651 eval "$as_ac_var=yes"
24652 else
24653 echo "$as_me: failed program was:" >&5
24654 sed 's/^/| /' conftest.$ac_ext >&5
24656 eval "$as_ac_var=no"
24659 rm -f core conftest.err conftest.$ac_objext \
24660 conftest$ac_exeext conftest.$ac_ext
24662 ac_res=`eval echo '${'$as_ac_var'}'`
24663 { echo "$as_me:$LINENO: result: $ac_res" >&5
24664 echo "${ECHO_T}$ac_res" >&6; }
24665 if test `eval echo '${'$as_ac_var'}'` = yes; then
24666 cat >>confdefs.h <<_ACEOF
24667 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24668 _ACEOF
24671 done
24675 { echo "$as_me:$LINENO: checking if environ is properly declared" >&5
24676 echo $ECHO_N "checking if environ is properly declared... $ECHO_C" >&6; }
24677 if test "${gt_cv_var_environ_declaration+set}" = set; then
24678 echo $ECHO_N "(cached) $ECHO_C" >&6
24679 else
24681 cat >conftest.$ac_ext <<_ACEOF
24682 /* confdefs.h. */
24683 _ACEOF
24684 cat confdefs.h >>conftest.$ac_ext
24685 cat >>conftest.$ac_ext <<_ACEOF
24686 /* end confdefs.h. */
24687 #include <unistd.h>
24688 extern struct { int foo; } environ;
24690 main ()
24692 environ.foo = 1;
24694 return 0;
24696 _ACEOF
24697 rm -f conftest.$ac_objext
24698 if { (ac_try="$ac_compile"
24699 case "(($ac_try" in
24700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24701 *) ac_try_echo=$ac_try;;
24702 esac
24703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24704 (eval "$ac_compile") 2>conftest.er1
24705 ac_status=$?
24706 grep -v '^ *+' conftest.er1 >conftest.err
24707 rm -f conftest.er1
24708 cat conftest.err >&5
24709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24710 (exit $ac_status); } &&
24711 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24712 { (case "(($ac_try" in
24713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24714 *) ac_try_echo=$ac_try;;
24715 esac
24716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24717 (eval "$ac_try") 2>&5
24718 ac_status=$?
24719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24720 (exit $ac_status); }; } &&
24721 { ac_try='test -s conftest.$ac_objext'
24722 { (case "(($ac_try" in
24723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24724 *) ac_try_echo=$ac_try;;
24725 esac
24726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24727 (eval "$ac_try") 2>&5
24728 ac_status=$?
24729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24730 (exit $ac_status); }; }; then
24731 gt_cv_var_environ_declaration=no
24732 else
24733 echo "$as_me: failed program was:" >&5
24734 sed 's/^/| /' conftest.$ac_ext >&5
24736 gt_cv_var_environ_declaration=yes
24739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24742 { echo "$as_me:$LINENO: result: $gt_cv_var_environ_declaration" >&5
24743 echo "${ECHO_T}$gt_cv_var_environ_declaration" >&6; }
24744 if test $gt_cv_var_environ_declaration = yes; then
24746 cat >>confdefs.h <<\_ACEOF
24747 #define HAVE_ENVIRON_DECL 1
24748 _ACEOF
24754 if test $ac_cv_func_unsetenv = no; then
24764 { echo "$as_me:$LINENO: checking if environ is properly declared" >&5
24765 echo $ECHO_N "checking if environ is properly declared... $ECHO_C" >&6; }
24766 if test "${gt_cv_var_environ_declaration+set}" = set; then
24767 echo $ECHO_N "(cached) $ECHO_C" >&6
24768 else
24770 cat >conftest.$ac_ext <<_ACEOF
24771 /* confdefs.h. */
24772 _ACEOF
24773 cat confdefs.h >>conftest.$ac_ext
24774 cat >>conftest.$ac_ext <<_ACEOF
24775 /* end confdefs.h. */
24776 #include <unistd.h>
24777 extern struct { int foo; } environ;
24779 main ()
24781 environ.foo = 1;
24783 return 0;
24785 _ACEOF
24786 rm -f conftest.$ac_objext
24787 if { (ac_try="$ac_compile"
24788 case "(($ac_try" in
24789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24790 *) ac_try_echo=$ac_try;;
24791 esac
24792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24793 (eval "$ac_compile") 2>conftest.er1
24794 ac_status=$?
24795 grep -v '^ *+' conftest.er1 >conftest.err
24796 rm -f conftest.er1
24797 cat conftest.err >&5
24798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24799 (exit $ac_status); } &&
24800 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24801 { (case "(($ac_try" in
24802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24803 *) ac_try_echo=$ac_try;;
24804 esac
24805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24806 (eval "$ac_try") 2>&5
24807 ac_status=$?
24808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24809 (exit $ac_status); }; } &&
24810 { ac_try='test -s conftest.$ac_objext'
24811 { (case "(($ac_try" in
24812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24813 *) ac_try_echo=$ac_try;;
24814 esac
24815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24816 (eval "$ac_try") 2>&5
24817 ac_status=$?
24818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24819 (exit $ac_status); }; }; then
24820 gt_cv_var_environ_declaration=no
24821 else
24822 echo "$as_me: failed program was:" >&5
24823 sed 's/^/| /' conftest.$ac_ext >&5
24825 gt_cv_var_environ_declaration=yes
24828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24831 { echo "$as_me:$LINENO: result: $gt_cv_var_environ_declaration" >&5
24832 echo "${ECHO_T}$gt_cv_var_environ_declaration" >&6; }
24833 if test $gt_cv_var_environ_declaration = yes; then
24835 cat >>confdefs.h <<\_ACEOF
24836 #define HAVE_ENVIRON_DECL 1
24837 _ACEOF
24842 else
24843 { echo "$as_me:$LINENO: checking for unsetenv() return type" >&5
24844 echo $ECHO_N "checking for unsetenv() return type... $ECHO_C" >&6; }
24845 if test "${gt_cv_func_unsetenv_ret+set}" = set; then
24846 echo $ECHO_N "(cached) $ECHO_C" >&6
24847 else
24848 cat >conftest.$ac_ext <<_ACEOF
24849 /* confdefs.h. */
24850 _ACEOF
24851 cat confdefs.h >>conftest.$ac_ext
24852 cat >>conftest.$ac_ext <<_ACEOF
24853 /* end confdefs.h. */
24854 #include <stdlib.h>
24855 extern
24856 #ifdef __cplusplus
24858 #endif
24859 #if defined(__STDC__) || defined(__cplusplus)
24860 int unsetenv (const char *name);
24861 #else
24862 int unsetenv();
24863 #endif
24866 main ()
24870 return 0;
24872 _ACEOF
24873 rm -f conftest.$ac_objext
24874 if { (ac_try="$ac_compile"
24875 case "(($ac_try" in
24876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24877 *) ac_try_echo=$ac_try;;
24878 esac
24879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24880 (eval "$ac_compile") 2>conftest.er1
24881 ac_status=$?
24882 grep -v '^ *+' conftest.er1 >conftest.err
24883 rm -f conftest.er1
24884 cat conftest.err >&5
24885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24886 (exit $ac_status); } &&
24887 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24888 { (case "(($ac_try" in
24889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24890 *) ac_try_echo=$ac_try;;
24891 esac
24892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24893 (eval "$ac_try") 2>&5
24894 ac_status=$?
24895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24896 (exit $ac_status); }; } &&
24897 { ac_try='test -s conftest.$ac_objext'
24898 { (case "(($ac_try" in
24899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24900 *) ac_try_echo=$ac_try;;
24901 esac
24902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24903 (eval "$ac_try") 2>&5
24904 ac_status=$?
24905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24906 (exit $ac_status); }; }; then
24907 gt_cv_func_unsetenv_ret='int'
24908 else
24909 echo "$as_me: failed program was:" >&5
24910 sed 's/^/| /' conftest.$ac_ext >&5
24912 gt_cv_func_unsetenv_ret='void'
24915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24917 { echo "$as_me:$LINENO: result: $gt_cv_func_unsetenv_ret" >&5
24918 echo "${ECHO_T}$gt_cv_func_unsetenv_ret" >&6; }
24919 if test $gt_cv_func_unsetenv_ret = 'void'; then
24921 cat >>confdefs.h <<\_ACEOF
24922 #define VOID_UNSETENV 1
24923 _ACEOF
24932 for ac_func in sig2str
24934 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24935 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24936 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24937 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24938 echo $ECHO_N "(cached) $ECHO_C" >&6
24939 else
24940 cat >conftest.$ac_ext <<_ACEOF
24941 /* confdefs.h. */
24942 _ACEOF
24943 cat confdefs.h >>conftest.$ac_ext
24944 cat >>conftest.$ac_ext <<_ACEOF
24945 /* end confdefs.h. */
24946 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24947 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24948 #define $ac_func innocuous_$ac_func
24950 /* System header to define __stub macros and hopefully few prototypes,
24951 which can conflict with char $ac_func (); below.
24952 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24953 <limits.h> exists even on freestanding compilers. */
24955 #ifdef __STDC__
24956 # include <limits.h>
24957 #else
24958 # include <assert.h>
24959 #endif
24961 #undef $ac_func
24963 /* Override any GCC internal prototype to avoid an error.
24964 Use char because int might match the return type of a GCC
24965 builtin and then its argument prototype would still apply. */
24966 #ifdef __cplusplus
24967 extern "C"
24968 #endif
24969 char $ac_func ();
24970 /* The GNU C library defines this for functions which it implements
24971 to always fail with ENOSYS. Some functions are actually named
24972 something starting with __ and the normal name is an alias. */
24973 #if defined __stub_$ac_func || defined __stub___$ac_func
24974 choke me
24975 #endif
24978 main ()
24980 return $ac_func ();
24982 return 0;
24984 _ACEOF
24985 rm -f conftest.$ac_objext conftest$ac_exeext
24986 if { (ac_try="$ac_link"
24987 case "(($ac_try" in
24988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24989 *) ac_try_echo=$ac_try;;
24990 esac
24991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24992 (eval "$ac_link") 2>conftest.er1
24993 ac_status=$?
24994 grep -v '^ *+' conftest.er1 >conftest.err
24995 rm -f conftest.er1
24996 cat conftest.err >&5
24997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24998 (exit $ac_status); } &&
24999 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25000 { (case "(($ac_try" in
25001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25002 *) ac_try_echo=$ac_try;;
25003 esac
25004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25005 (eval "$ac_try") 2>&5
25006 ac_status=$?
25007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25008 (exit $ac_status); }; } &&
25009 { ac_try='test -s conftest$ac_exeext'
25010 { (case "(($ac_try" in
25011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25012 *) ac_try_echo=$ac_try;;
25013 esac
25014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25015 (eval "$ac_try") 2>&5
25016 ac_status=$?
25017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25018 (exit $ac_status); }; }; then
25019 eval "$as_ac_var=yes"
25020 else
25021 echo "$as_me: failed program was:" >&5
25022 sed 's/^/| /' conftest.$ac_ext >&5
25024 eval "$as_ac_var=no"
25027 rm -f core conftest.err conftest.$ac_objext \
25028 conftest$ac_exeext conftest.$ac_ext
25030 ac_res=`eval echo '${'$as_ac_var'}'`
25031 { echo "$as_me:$LINENO: result: $ac_res" >&5
25032 echo "${ECHO_T}$ac_res" >&6; }
25033 if test `eval echo '${'$as_ac_var'}'` = yes; then
25034 cat >>confdefs.h <<_ACEOF
25035 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25036 _ACEOF
25038 else
25039 case " $LIBOBJS " in
25040 *" $ac_func.$ac_objext "* ) ;;
25041 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
25043 esac
25046 done
25049 if test $ac_cv_func_sig2str = no; then
25055 { echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
25056 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6; }
25057 if test "${ac_cv_have_decl_snprintf+set}" = set; then
25058 echo $ECHO_N "(cached) $ECHO_C" >&6
25059 else
25060 cat >conftest.$ac_ext <<_ACEOF
25061 /* confdefs.h. */
25062 _ACEOF
25063 cat confdefs.h >>conftest.$ac_ext
25064 cat >>conftest.$ac_ext <<_ACEOF
25065 /* end confdefs.h. */
25066 $ac_includes_default
25068 main ()
25070 #ifndef snprintf
25071 char *p = (char *) snprintf;
25072 return !p;
25073 #endif
25076 return 0;
25078 _ACEOF
25079 rm -f conftest.$ac_objext
25080 if { (ac_try="$ac_compile"
25081 case "(($ac_try" in
25082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25083 *) ac_try_echo=$ac_try;;
25084 esac
25085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25086 (eval "$ac_compile") 2>conftest.er1
25087 ac_status=$?
25088 grep -v '^ *+' conftest.er1 >conftest.err
25089 rm -f conftest.er1
25090 cat conftest.err >&5
25091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25092 (exit $ac_status); } &&
25093 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25094 { (case "(($ac_try" in
25095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25096 *) ac_try_echo=$ac_try;;
25097 esac
25098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25099 (eval "$ac_try") 2>&5
25100 ac_status=$?
25101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25102 (exit $ac_status); }; } &&
25103 { ac_try='test -s conftest.$ac_objext'
25104 { (case "(($ac_try" in
25105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25106 *) ac_try_echo=$ac_try;;
25107 esac
25108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25109 (eval "$ac_try") 2>&5
25110 ac_status=$?
25111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25112 (exit $ac_status); }; }; then
25113 ac_cv_have_decl_snprintf=yes
25114 else
25115 echo "$as_me: failed program was:" >&5
25116 sed 's/^/| /' conftest.$ac_ext >&5
25118 ac_cv_have_decl_snprintf=no
25121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25123 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
25124 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6; }
25125 if test $ac_cv_have_decl_snprintf = yes; then
25127 cat >>confdefs.h <<_ACEOF
25128 #define HAVE_DECL_SNPRINTF 1
25129 _ACEOF
25132 else
25133 cat >>confdefs.h <<_ACEOF
25134 #define HAVE_DECL_SNPRINTF 0
25135 _ACEOF
25143 for ac_func in snprintf
25145 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25146 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25147 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25148 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25149 echo $ECHO_N "(cached) $ECHO_C" >&6
25150 else
25151 cat >conftest.$ac_ext <<_ACEOF
25152 /* confdefs.h. */
25153 _ACEOF
25154 cat confdefs.h >>conftest.$ac_ext
25155 cat >>conftest.$ac_ext <<_ACEOF
25156 /* end confdefs.h. */
25157 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25158 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25159 #define $ac_func innocuous_$ac_func
25161 /* System header to define __stub macros and hopefully few prototypes,
25162 which can conflict with char $ac_func (); below.
25163 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25164 <limits.h> exists even on freestanding compilers. */
25166 #ifdef __STDC__
25167 # include <limits.h>
25168 #else
25169 # include <assert.h>
25170 #endif
25172 #undef $ac_func
25174 /* Override any GCC internal prototype to avoid an error.
25175 Use char because int might match the return type of a GCC
25176 builtin and then its argument prototype would still apply. */
25177 #ifdef __cplusplus
25178 extern "C"
25179 #endif
25180 char $ac_func ();
25181 /* The GNU C library defines this for functions which it implements
25182 to always fail with ENOSYS. Some functions are actually named
25183 something starting with __ and the normal name is an alias. */
25184 #if defined __stub_$ac_func || defined __stub___$ac_func
25185 choke me
25186 #endif
25189 main ()
25191 return $ac_func ();
25193 return 0;
25195 _ACEOF
25196 rm -f conftest.$ac_objext conftest$ac_exeext
25197 if { (ac_try="$ac_link"
25198 case "(($ac_try" in
25199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25200 *) ac_try_echo=$ac_try;;
25201 esac
25202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25203 (eval "$ac_link") 2>conftest.er1
25204 ac_status=$?
25205 grep -v '^ *+' conftest.er1 >conftest.err
25206 rm -f conftest.er1
25207 cat conftest.err >&5
25208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25209 (exit $ac_status); } &&
25210 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25211 { (case "(($ac_try" in
25212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25213 *) ac_try_echo=$ac_try;;
25214 esac
25215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25216 (eval "$ac_try") 2>&5
25217 ac_status=$?
25218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25219 (exit $ac_status); }; } &&
25220 { ac_try='test -s conftest$ac_exeext'
25221 { (case "(($ac_try" in
25222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25223 *) ac_try_echo=$ac_try;;
25224 esac
25225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25226 (eval "$ac_try") 2>&5
25227 ac_status=$?
25228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25229 (exit $ac_status); }; }; then
25230 eval "$as_ac_var=yes"
25231 else
25232 echo "$as_me: failed program was:" >&5
25233 sed 's/^/| /' conftest.$ac_ext >&5
25235 eval "$as_ac_var=no"
25238 rm -f core conftest.err conftest.$ac_objext \
25239 conftest$ac_exeext conftest.$ac_ext
25241 ac_res=`eval echo '${'$as_ac_var'}'`
25242 { echo "$as_me:$LINENO: result: $ac_res" >&5
25243 echo "${ECHO_T}$ac_res" >&6; }
25244 if test `eval echo '${'$as_ac_var'}'` = yes; then
25245 cat >>confdefs.h <<_ACEOF
25246 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25247 _ACEOF
25249 else
25250 case " $LIBOBJS " in
25251 *" $ac_func.$ac_objext "* ) ;;
25252 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
25254 esac
25257 done
25270 for ac_func in stpcpy
25272 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25273 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25274 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25275 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25276 echo $ECHO_N "(cached) $ECHO_C" >&6
25277 else
25278 cat >conftest.$ac_ext <<_ACEOF
25279 /* confdefs.h. */
25280 _ACEOF
25281 cat confdefs.h >>conftest.$ac_ext
25282 cat >>conftest.$ac_ext <<_ACEOF
25283 /* end confdefs.h. */
25284 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25285 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25286 #define $ac_func innocuous_$ac_func
25288 /* System header to define __stub macros and hopefully few prototypes,
25289 which can conflict with char $ac_func (); below.
25290 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25291 <limits.h> exists even on freestanding compilers. */
25293 #ifdef __STDC__
25294 # include <limits.h>
25295 #else
25296 # include <assert.h>
25297 #endif
25299 #undef $ac_func
25301 /* Override any GCC internal prototype to avoid an error.
25302 Use char because int might match the return type of a GCC
25303 builtin and then its argument prototype would still apply. */
25304 #ifdef __cplusplus
25305 extern "C"
25306 #endif
25307 char $ac_func ();
25308 /* The GNU C library defines this for functions which it implements
25309 to always fail with ENOSYS. Some functions are actually named
25310 something starting with __ and the normal name is an alias. */
25311 #if defined __stub_$ac_func || defined __stub___$ac_func
25312 choke me
25313 #endif
25316 main ()
25318 return $ac_func ();
25320 return 0;
25322 _ACEOF
25323 rm -f conftest.$ac_objext conftest$ac_exeext
25324 if { (ac_try="$ac_link"
25325 case "(($ac_try" in
25326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25327 *) ac_try_echo=$ac_try;;
25328 esac
25329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25330 (eval "$ac_link") 2>conftest.er1
25331 ac_status=$?
25332 grep -v '^ *+' conftest.er1 >conftest.err
25333 rm -f conftest.er1
25334 cat conftest.err >&5
25335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25336 (exit $ac_status); } &&
25337 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25338 { (case "(($ac_try" in
25339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25340 *) ac_try_echo=$ac_try;;
25341 esac
25342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25343 (eval "$ac_try") 2>&5
25344 ac_status=$?
25345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25346 (exit $ac_status); }; } &&
25347 { ac_try='test -s conftest$ac_exeext'
25348 { (case "(($ac_try" in
25349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25350 *) ac_try_echo=$ac_try;;
25351 esac
25352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25353 (eval "$ac_try") 2>&5
25354 ac_status=$?
25355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25356 (exit $ac_status); }; }; then
25357 eval "$as_ac_var=yes"
25358 else
25359 echo "$as_me: failed program was:" >&5
25360 sed 's/^/| /' conftest.$ac_ext >&5
25362 eval "$as_ac_var=no"
25365 rm -f core conftest.err conftest.$ac_objext \
25366 conftest$ac_exeext conftest.$ac_ext
25368 ac_res=`eval echo '${'$as_ac_var'}'`
25369 { echo "$as_me:$LINENO: result: $ac_res" >&5
25370 echo "${ECHO_T}$ac_res" >&6; }
25371 if test `eval echo '${'$as_ac_var'}'` = yes; then
25372 cat >>confdefs.h <<_ACEOF
25373 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25374 _ACEOF
25376 else
25377 case " $LIBOBJS " in
25378 *" $ac_func.$ac_objext "* ) ;;
25379 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
25381 esac
25384 done
25387 if test $ac_cv_func_stpcpy = no; then
25395 for ac_func in strcspn
25397 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25398 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25399 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25400 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25401 echo $ECHO_N "(cached) $ECHO_C" >&6
25402 else
25403 cat >conftest.$ac_ext <<_ACEOF
25404 /* confdefs.h. */
25405 _ACEOF
25406 cat confdefs.h >>conftest.$ac_ext
25407 cat >>conftest.$ac_ext <<_ACEOF
25408 /* end confdefs.h. */
25409 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25410 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25411 #define $ac_func innocuous_$ac_func
25413 /* System header to define __stub macros and hopefully few prototypes,
25414 which can conflict with char $ac_func (); below.
25415 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25416 <limits.h> exists even on freestanding compilers. */
25418 #ifdef __STDC__
25419 # include <limits.h>
25420 #else
25421 # include <assert.h>
25422 #endif
25424 #undef $ac_func
25426 /* Override any GCC internal prototype to avoid an error.
25427 Use char because int might match the return type of a GCC
25428 builtin and then its argument prototype would still apply. */
25429 #ifdef __cplusplus
25430 extern "C"
25431 #endif
25432 char $ac_func ();
25433 /* The GNU C library defines this for functions which it implements
25434 to always fail with ENOSYS. Some functions are actually named
25435 something starting with __ and the normal name is an alias. */
25436 #if defined __stub_$ac_func || defined __stub___$ac_func
25437 choke me
25438 #endif
25441 main ()
25443 return $ac_func ();
25445 return 0;
25447 _ACEOF
25448 rm -f conftest.$ac_objext conftest$ac_exeext
25449 if { (ac_try="$ac_link"
25450 case "(($ac_try" in
25451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25452 *) ac_try_echo=$ac_try;;
25453 esac
25454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25455 (eval "$ac_link") 2>conftest.er1
25456 ac_status=$?
25457 grep -v '^ *+' conftest.er1 >conftest.err
25458 rm -f conftest.er1
25459 cat conftest.err >&5
25460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25461 (exit $ac_status); } &&
25462 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25463 { (case "(($ac_try" in
25464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25465 *) ac_try_echo=$ac_try;;
25466 esac
25467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25468 (eval "$ac_try") 2>&5
25469 ac_status=$?
25470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25471 (exit $ac_status); }; } &&
25472 { ac_try='test -s conftest$ac_exeext'
25473 { (case "(($ac_try" in
25474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25475 *) ac_try_echo=$ac_try;;
25476 esac
25477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25478 (eval "$ac_try") 2>&5
25479 ac_status=$?
25480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25481 (exit $ac_status); }; }; then
25482 eval "$as_ac_var=yes"
25483 else
25484 echo "$as_me: failed program was:" >&5
25485 sed 's/^/| /' conftest.$ac_ext >&5
25487 eval "$as_ac_var=no"
25490 rm -f core conftest.err conftest.$ac_objext \
25491 conftest$ac_exeext conftest.$ac_ext
25493 ac_res=`eval echo '${'$as_ac_var'}'`
25494 { echo "$as_me:$LINENO: result: $ac_res" >&5
25495 echo "${ECHO_T}$ac_res" >&6; }
25496 if test `eval echo '${'$as_ac_var'}'` = yes; then
25497 cat >>confdefs.h <<_ACEOF
25498 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25499 _ACEOF
25501 else
25502 case " $LIBOBJS " in
25503 *" $ac_func.$ac_objext "* ) ;;
25504 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
25506 esac
25509 done
25512 if test $ac_cv_func_strcspn = no; then
25516 { echo "$as_me:$LINENO: checking whether strdup is declared" >&5
25517 echo $ECHO_N "checking whether strdup is declared... $ECHO_C" >&6; }
25518 if test "${ac_cv_have_decl_strdup+set}" = set; then
25519 echo $ECHO_N "(cached) $ECHO_C" >&6
25520 else
25521 cat >conftest.$ac_ext <<_ACEOF
25522 /* confdefs.h. */
25523 _ACEOF
25524 cat confdefs.h >>conftest.$ac_ext
25525 cat >>conftest.$ac_ext <<_ACEOF
25526 /* end confdefs.h. */
25527 $ac_includes_default
25529 main ()
25531 #ifndef strdup
25532 char *p = (char *) strdup;
25533 return !p;
25534 #endif
25537 return 0;
25539 _ACEOF
25540 rm -f conftest.$ac_objext
25541 if { (ac_try="$ac_compile"
25542 case "(($ac_try" in
25543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25544 *) ac_try_echo=$ac_try;;
25545 esac
25546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25547 (eval "$ac_compile") 2>conftest.er1
25548 ac_status=$?
25549 grep -v '^ *+' conftest.er1 >conftest.err
25550 rm -f conftest.er1
25551 cat conftest.err >&5
25552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25553 (exit $ac_status); } &&
25554 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25555 { (case "(($ac_try" in
25556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25557 *) ac_try_echo=$ac_try;;
25558 esac
25559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25560 (eval "$ac_try") 2>&5
25561 ac_status=$?
25562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25563 (exit $ac_status); }; } &&
25564 { ac_try='test -s conftest.$ac_objext'
25565 { (case "(($ac_try" in
25566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25567 *) ac_try_echo=$ac_try;;
25568 esac
25569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25570 (eval "$ac_try") 2>&5
25571 ac_status=$?
25572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25573 (exit $ac_status); }; }; then
25574 ac_cv_have_decl_strdup=yes
25575 else
25576 echo "$as_me: failed program was:" >&5
25577 sed 's/^/| /' conftest.$ac_ext >&5
25579 ac_cv_have_decl_strdup=no
25582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25584 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strdup" >&5
25585 echo "${ECHO_T}$ac_cv_have_decl_strdup" >&6; }
25586 if test $ac_cv_have_decl_strdup = yes; then
25588 cat >>confdefs.h <<_ACEOF
25589 #define HAVE_DECL_STRDUP 1
25590 _ACEOF
25593 else
25594 cat >>confdefs.h <<_ACEOF
25595 #define HAVE_DECL_STRDUP 0
25596 _ACEOF
25606 for ac_func in strdup
25608 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25609 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25610 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25611 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25612 echo $ECHO_N "(cached) $ECHO_C" >&6
25613 else
25614 cat >conftest.$ac_ext <<_ACEOF
25615 /* confdefs.h. */
25616 _ACEOF
25617 cat confdefs.h >>conftest.$ac_ext
25618 cat >>conftest.$ac_ext <<_ACEOF
25619 /* end confdefs.h. */
25620 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25621 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25622 #define $ac_func innocuous_$ac_func
25624 /* System header to define __stub macros and hopefully few prototypes,
25625 which can conflict with char $ac_func (); below.
25626 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25627 <limits.h> exists even on freestanding compilers. */
25629 #ifdef __STDC__
25630 # include <limits.h>
25631 #else
25632 # include <assert.h>
25633 #endif
25635 #undef $ac_func
25637 /* Override any GCC internal prototype to avoid an error.
25638 Use char because int might match the return type of a GCC
25639 builtin and then its argument prototype would still apply. */
25640 #ifdef __cplusplus
25641 extern "C"
25642 #endif
25643 char $ac_func ();
25644 /* The GNU C library defines this for functions which it implements
25645 to always fail with ENOSYS. Some functions are actually named
25646 something starting with __ and the normal name is an alias. */
25647 #if defined __stub_$ac_func || defined __stub___$ac_func
25648 choke me
25649 #endif
25652 main ()
25654 return $ac_func ();
25656 return 0;
25658 _ACEOF
25659 rm -f conftest.$ac_objext conftest$ac_exeext
25660 if { (ac_try="$ac_link"
25661 case "(($ac_try" in
25662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25663 *) ac_try_echo=$ac_try;;
25664 esac
25665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25666 (eval "$ac_link") 2>conftest.er1
25667 ac_status=$?
25668 grep -v '^ *+' conftest.er1 >conftest.err
25669 rm -f conftest.er1
25670 cat conftest.err >&5
25671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25672 (exit $ac_status); } &&
25673 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25674 { (case "(($ac_try" in
25675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25676 *) ac_try_echo=$ac_try;;
25677 esac
25678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25679 (eval "$ac_try") 2>&5
25680 ac_status=$?
25681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25682 (exit $ac_status); }; } &&
25683 { ac_try='test -s conftest$ac_exeext'
25684 { (case "(($ac_try" in
25685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25686 *) ac_try_echo=$ac_try;;
25687 esac
25688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25689 (eval "$ac_try") 2>&5
25690 ac_status=$?
25691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25692 (exit $ac_status); }; }; then
25693 eval "$as_ac_var=yes"
25694 else
25695 echo "$as_me: failed program was:" >&5
25696 sed 's/^/| /' conftest.$ac_ext >&5
25698 eval "$as_ac_var=no"
25701 rm -f core conftest.err conftest.$ac_objext \
25702 conftest$ac_exeext conftest.$ac_ext
25704 ac_res=`eval echo '${'$as_ac_var'}'`
25705 { echo "$as_me:$LINENO: result: $ac_res" >&5
25706 echo "${ECHO_T}$ac_res" >&6; }
25707 if test `eval echo '${'$as_ac_var'}'` = yes; then
25708 cat >>confdefs.h <<_ACEOF
25709 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25710 _ACEOF
25712 else
25713 case " $LIBOBJS " in
25714 *" $ac_func.$ac_objext "* ) ;;
25715 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
25717 esac
25720 done
25729 { echo "$as_me:$LINENO: checking whether strndup is declared" >&5
25730 echo $ECHO_N "checking whether strndup is declared... $ECHO_C" >&6; }
25731 if test "${ac_cv_have_decl_strndup+set}" = set; then
25732 echo $ECHO_N "(cached) $ECHO_C" >&6
25733 else
25734 cat >conftest.$ac_ext <<_ACEOF
25735 /* confdefs.h. */
25736 _ACEOF
25737 cat confdefs.h >>conftest.$ac_ext
25738 cat >>conftest.$ac_ext <<_ACEOF
25739 /* end confdefs.h. */
25740 $ac_includes_default
25742 main ()
25744 #ifndef strndup
25745 char *p = (char *) strndup;
25746 return !p;
25747 #endif
25750 return 0;
25752 _ACEOF
25753 rm -f conftest.$ac_objext
25754 if { (ac_try="$ac_compile"
25755 case "(($ac_try" in
25756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25757 *) ac_try_echo=$ac_try;;
25758 esac
25759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25760 (eval "$ac_compile") 2>conftest.er1
25761 ac_status=$?
25762 grep -v '^ *+' conftest.er1 >conftest.err
25763 rm -f conftest.er1
25764 cat conftest.err >&5
25765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25766 (exit $ac_status); } &&
25767 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25768 { (case "(($ac_try" in
25769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25770 *) ac_try_echo=$ac_try;;
25771 esac
25772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25773 (eval "$ac_try") 2>&5
25774 ac_status=$?
25775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25776 (exit $ac_status); }; } &&
25777 { ac_try='test -s conftest.$ac_objext'
25778 { (case "(($ac_try" in
25779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25780 *) ac_try_echo=$ac_try;;
25781 esac
25782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25783 (eval "$ac_try") 2>&5
25784 ac_status=$?
25785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25786 (exit $ac_status); }; }; then
25787 ac_cv_have_decl_strndup=yes
25788 else
25789 echo "$as_me: failed program was:" >&5
25790 sed 's/^/| /' conftest.$ac_ext >&5
25792 ac_cv_have_decl_strndup=no
25795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25797 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strndup" >&5
25798 echo "${ECHO_T}$ac_cv_have_decl_strndup" >&6; }
25799 if test $ac_cv_have_decl_strndup = yes; then
25801 cat >>confdefs.h <<_ACEOF
25802 #define HAVE_DECL_STRNDUP 1
25803 _ACEOF
25806 else
25807 cat >>confdefs.h <<_ACEOF
25808 #define HAVE_DECL_STRNDUP 0
25809 _ACEOF
25825 # AIX 4.3.3, AIX 5.1 have a function that fails to add the terminating '\0'.
25826 { echo "$as_me:$LINENO: checking for working strndup" >&5
25827 echo $ECHO_N "checking for working strndup... $ECHO_C" >&6; }
25828 if test "${gl_cv_func_strndup+set}" = set; then
25829 echo $ECHO_N "(cached) $ECHO_C" >&6
25830 else
25831 if test "$cross_compiling" = yes; then
25832 { echo "$as_me:$LINENO: checking for strndup" >&5
25833 echo $ECHO_N "checking for strndup... $ECHO_C" >&6; }
25834 if test "${ac_cv_func_strndup+set}" = set; then
25835 echo $ECHO_N "(cached) $ECHO_C" >&6
25836 else
25837 cat >conftest.$ac_ext <<_ACEOF
25838 /* confdefs.h. */
25839 _ACEOF
25840 cat confdefs.h >>conftest.$ac_ext
25841 cat >>conftest.$ac_ext <<_ACEOF
25842 /* end confdefs.h. */
25843 /* Define strndup to an innocuous variant, in case <limits.h> declares strndup.
25844 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25845 #define strndup innocuous_strndup
25847 /* System header to define __stub macros and hopefully few prototypes,
25848 which can conflict with char strndup (); below.
25849 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25850 <limits.h> exists even on freestanding compilers. */
25852 #ifdef __STDC__
25853 # include <limits.h>
25854 #else
25855 # include <assert.h>
25856 #endif
25858 #undef strndup
25860 /* Override any GCC internal prototype to avoid an error.
25861 Use char because int might match the return type of a GCC
25862 builtin and then its argument prototype would still apply. */
25863 #ifdef __cplusplus
25864 extern "C"
25865 #endif
25866 char strndup ();
25867 /* The GNU C library defines this for functions which it implements
25868 to always fail with ENOSYS. Some functions are actually named
25869 something starting with __ and the normal name is an alias. */
25870 #if defined __stub_strndup || defined __stub___strndup
25871 choke me
25872 #endif
25875 main ()
25877 return strndup ();
25879 return 0;
25881 _ACEOF
25882 rm -f conftest.$ac_objext conftest$ac_exeext
25883 if { (ac_try="$ac_link"
25884 case "(($ac_try" in
25885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25886 *) ac_try_echo=$ac_try;;
25887 esac
25888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25889 (eval "$ac_link") 2>conftest.er1
25890 ac_status=$?
25891 grep -v '^ *+' conftest.er1 >conftest.err
25892 rm -f conftest.er1
25893 cat conftest.err >&5
25894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25895 (exit $ac_status); } &&
25896 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25897 { (case "(($ac_try" in
25898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25899 *) ac_try_echo=$ac_try;;
25900 esac
25901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25902 (eval "$ac_try") 2>&5
25903 ac_status=$?
25904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25905 (exit $ac_status); }; } &&
25906 { ac_try='test -s conftest$ac_exeext'
25907 { (case "(($ac_try" in
25908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25909 *) ac_try_echo=$ac_try;;
25910 esac
25911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25912 (eval "$ac_try") 2>&5
25913 ac_status=$?
25914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25915 (exit $ac_status); }; }; then
25916 ac_cv_func_strndup=yes
25917 else
25918 echo "$as_me: failed program was:" >&5
25919 sed 's/^/| /' conftest.$ac_ext >&5
25921 ac_cv_func_strndup=no
25924 rm -f core conftest.err conftest.$ac_objext \
25925 conftest$ac_exeext conftest.$ac_ext
25927 { echo "$as_me:$LINENO: result: $ac_cv_func_strndup" >&5
25928 echo "${ECHO_T}$ac_cv_func_strndup" >&6; }
25929 if test $ac_cv_func_strndup = yes; then
25930 cat >conftest.$ac_ext <<_ACEOF
25931 /* confdefs.h. */
25932 _ACEOF
25933 cat confdefs.h >>conftest.$ac_ext
25934 cat >>conftest.$ac_ext <<_ACEOF
25935 /* end confdefs.h. */
25937 #ifdef _AIX
25938 too risky
25939 #endif
25941 _ACEOF
25942 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25943 $EGREP "too risky" >/dev/null 2>&1; then
25944 gl_cv_func_strndup=no
25945 else
25946 gl_cv_func_strndup=yes
25948 rm -f conftest*
25950 else
25951 gl_cv_func_strndup=no
25954 else
25955 cat >conftest.$ac_ext <<_ACEOF
25957 /* confdefs.h. */
25958 _ACEOF
25959 cat confdefs.h >>conftest.$ac_ext
25960 cat >>conftest.$ac_ext <<_ACEOF
25961 /* end confdefs.h. */
25962 #include <string.h>
25964 main ()
25967 #ifndef HAVE_DECL_STRNDUP
25968 extern char *strndup (const char *, size_t);
25969 #endif
25970 char *s;
25971 s = strndup ("some longer string", 15);
25972 free (s);
25973 s = strndup ("shorter string", 13);
25974 return s[13] != '\0';
25976 return 0;
25978 _ACEOF
25979 rm -f conftest$ac_exeext
25980 if { (ac_try="$ac_link"
25981 case "(($ac_try" in
25982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25983 *) ac_try_echo=$ac_try;;
25984 esac
25985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25986 (eval "$ac_link") 2>&5
25987 ac_status=$?
25988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25989 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25990 { (case "(($ac_try" in
25991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25992 *) ac_try_echo=$ac_try;;
25993 esac
25994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25995 (eval "$ac_try") 2>&5
25996 ac_status=$?
25997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25998 (exit $ac_status); }; }; then
25999 gl_cv_func_strndup=yes
26000 else
26001 echo "$as_me: program exited with status $ac_status" >&5
26002 echo "$as_me: failed program was:" >&5
26003 sed 's/^/| /' conftest.$ac_ext >&5
26005 ( exit $ac_status )
26006 gl_cv_func_strndup=no
26008 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26013 { echo "$as_me:$LINENO: result: $gl_cv_func_strndup" >&5
26014 echo "${ECHO_T}$gl_cv_func_strndup" >&6; }
26015 if test $gl_cv_func_strndup = yes; then
26017 cat >>confdefs.h <<\_ACEOF
26018 #define HAVE_STRNDUP 1
26019 _ACEOF
26021 else
26022 case " $LIBOBJS " in
26023 *" strndup.$ac_objext "* ) ;;
26024 *) LIBOBJS="$LIBOBJS strndup.$ac_objext"
26026 esac
26029 cat >>confdefs.h <<\_ACEOF
26030 #define strndup rpl_strndup
26031 _ACEOF
26036 { echo "$as_me:$LINENO: checking whether strnlen is declared" >&5
26037 echo $ECHO_N "checking whether strnlen is declared... $ECHO_C" >&6; }
26038 if test "${ac_cv_have_decl_strnlen+set}" = set; then
26039 echo $ECHO_N "(cached) $ECHO_C" >&6
26040 else
26041 cat >conftest.$ac_ext <<_ACEOF
26042 /* confdefs.h. */
26043 _ACEOF
26044 cat confdefs.h >>conftest.$ac_ext
26045 cat >>conftest.$ac_ext <<_ACEOF
26046 /* end confdefs.h. */
26047 $ac_includes_default
26049 main ()
26051 #ifndef strnlen
26052 char *p = (char *) strnlen;
26053 return !p;
26054 #endif
26057 return 0;
26059 _ACEOF
26060 rm -f conftest.$ac_objext
26061 if { (ac_try="$ac_compile"
26062 case "(($ac_try" in
26063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26064 *) ac_try_echo=$ac_try;;
26065 esac
26066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26067 (eval "$ac_compile") 2>conftest.er1
26068 ac_status=$?
26069 grep -v '^ *+' conftest.er1 >conftest.err
26070 rm -f conftest.er1
26071 cat conftest.err >&5
26072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26073 (exit $ac_status); } &&
26074 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26075 { (case "(($ac_try" in
26076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26077 *) ac_try_echo=$ac_try;;
26078 esac
26079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26080 (eval "$ac_try") 2>&5
26081 ac_status=$?
26082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26083 (exit $ac_status); }; } &&
26084 { ac_try='test -s conftest.$ac_objext'
26085 { (case "(($ac_try" in
26086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26087 *) ac_try_echo=$ac_try;;
26088 esac
26089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26090 (eval "$ac_try") 2>&5
26091 ac_status=$?
26092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26093 (exit $ac_status); }; }; then
26094 ac_cv_have_decl_strnlen=yes
26095 else
26096 echo "$as_me: failed program was:" >&5
26097 sed 's/^/| /' conftest.$ac_ext >&5
26099 ac_cv_have_decl_strnlen=no
26102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26104 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strnlen" >&5
26105 echo "${ECHO_T}$ac_cv_have_decl_strnlen" >&6; }
26106 if test $ac_cv_have_decl_strnlen = yes; then
26108 cat >>confdefs.h <<_ACEOF
26109 #define HAVE_DECL_STRNLEN 1
26110 _ACEOF
26113 else
26114 cat >>confdefs.h <<_ACEOF
26115 #define HAVE_DECL_STRNLEN 0
26116 _ACEOF
26127 { echo "$as_me:$LINENO: checking for working strnlen" >&5
26128 echo $ECHO_N "checking for working strnlen... $ECHO_C" >&6; }
26129 if test "${ac_cv_func_strnlen_working+set}" = set; then
26130 echo $ECHO_N "(cached) $ECHO_C" >&6
26131 else
26132 if test "$cross_compiling" = yes; then
26133 ac_cv_func_strnlen_working=no
26134 else
26135 cat >conftest.$ac_ext <<_ACEOF
26136 /* confdefs.h. */
26137 _ACEOF
26138 cat confdefs.h >>conftest.$ac_ext
26139 cat >>conftest.$ac_ext <<_ACEOF
26140 /* end confdefs.h. */
26141 $ac_includes_default
26143 main ()
26146 #define S "foobar"
26147 #define S_LEN (sizeof S - 1)
26149 /* At least one implementation is buggy: that of AIX 4.3 would
26150 give strnlen (S, 1) == 3. */
26152 int i;
26153 for (i = 0; i < S_LEN + 1; ++i)
26155 int expected = i <= S_LEN ? i : S_LEN;
26156 if (strnlen (S, i) != expected)
26157 return 1;
26159 return 0;
26162 return 0;
26164 _ACEOF
26165 rm -f conftest$ac_exeext
26166 if { (ac_try="$ac_link"
26167 case "(($ac_try" in
26168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26169 *) ac_try_echo=$ac_try;;
26170 esac
26171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26172 (eval "$ac_link") 2>&5
26173 ac_status=$?
26174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26175 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26176 { (case "(($ac_try" in
26177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26178 *) ac_try_echo=$ac_try;;
26179 esac
26180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26181 (eval "$ac_try") 2>&5
26182 ac_status=$?
26183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26184 (exit $ac_status); }; }; then
26185 ac_cv_func_strnlen_working=yes
26186 else
26187 echo "$as_me: program exited with status $ac_status" >&5
26188 echo "$as_me: failed program was:" >&5
26189 sed 's/^/| /' conftest.$ac_ext >&5
26191 ( exit $ac_status )
26192 ac_cv_func_strnlen_working=no
26194 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26199 { echo "$as_me:$LINENO: result: $ac_cv_func_strnlen_working" >&5
26200 echo "${ECHO_T}$ac_cv_func_strnlen_working" >&6; }
26201 test $ac_cv_func_strnlen_working = no && case " $LIBOBJS " in
26202 *" strnlen.$ac_objext "* ) ;;
26203 *) LIBOBJS="$LIBOBJS strnlen.$ac_objext"
26205 esac
26208 if test $ac_cv_func_strnlen_working = no; then
26209 # This is necessary because automake-1.6.1 doens't understand
26210 # that the above use of AC_FUNC_STRNLEN means we may have to use
26211 # lib/strnlen.c.
26212 #AC_LIBOBJ(strnlen)
26214 cat >>confdefs.h <<\_ACEOF
26215 #define strnlen rpl_strnlen
26216 _ACEOF
26228 for ac_func in strpbrk
26230 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26231 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26232 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26233 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26234 echo $ECHO_N "(cached) $ECHO_C" >&6
26235 else
26236 cat >conftest.$ac_ext <<_ACEOF
26237 /* confdefs.h. */
26238 _ACEOF
26239 cat confdefs.h >>conftest.$ac_ext
26240 cat >>conftest.$ac_ext <<_ACEOF
26241 /* end confdefs.h. */
26242 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26243 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26244 #define $ac_func innocuous_$ac_func
26246 /* System header to define __stub macros and hopefully few prototypes,
26247 which can conflict with char $ac_func (); below.
26248 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26249 <limits.h> exists even on freestanding compilers. */
26251 #ifdef __STDC__
26252 # include <limits.h>
26253 #else
26254 # include <assert.h>
26255 #endif
26257 #undef $ac_func
26259 /* Override any GCC internal prototype to avoid an error.
26260 Use char because int might match the return type of a GCC
26261 builtin and then its argument prototype would still apply. */
26262 #ifdef __cplusplus
26263 extern "C"
26264 #endif
26265 char $ac_func ();
26266 /* The GNU C library defines this for functions which it implements
26267 to always fail with ENOSYS. Some functions are actually named
26268 something starting with __ and the normal name is an alias. */
26269 #if defined __stub_$ac_func || defined __stub___$ac_func
26270 choke me
26271 #endif
26274 main ()
26276 return $ac_func ();
26278 return 0;
26280 _ACEOF
26281 rm -f conftest.$ac_objext conftest$ac_exeext
26282 if { (ac_try="$ac_link"
26283 case "(($ac_try" in
26284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26285 *) ac_try_echo=$ac_try;;
26286 esac
26287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26288 (eval "$ac_link") 2>conftest.er1
26289 ac_status=$?
26290 grep -v '^ *+' conftest.er1 >conftest.err
26291 rm -f conftest.er1
26292 cat conftest.err >&5
26293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26294 (exit $ac_status); } &&
26295 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26296 { (case "(($ac_try" in
26297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26298 *) ac_try_echo=$ac_try;;
26299 esac
26300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26301 (eval "$ac_try") 2>&5
26302 ac_status=$?
26303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26304 (exit $ac_status); }; } &&
26305 { ac_try='test -s conftest$ac_exeext'
26306 { (case "(($ac_try" in
26307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26308 *) ac_try_echo=$ac_try;;
26309 esac
26310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26311 (eval "$ac_try") 2>&5
26312 ac_status=$?
26313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26314 (exit $ac_status); }; }; then
26315 eval "$as_ac_var=yes"
26316 else
26317 echo "$as_me: failed program was:" >&5
26318 sed 's/^/| /' conftest.$ac_ext >&5
26320 eval "$as_ac_var=no"
26323 rm -f core conftest.err conftest.$ac_objext \
26324 conftest$ac_exeext conftest.$ac_ext
26326 ac_res=`eval echo '${'$as_ac_var'}'`
26327 { echo "$as_me:$LINENO: result: $ac_res" >&5
26328 echo "${ECHO_T}$ac_res" >&6; }
26329 if test `eval echo '${'$as_ac_var'}'` = yes; then
26330 cat >>confdefs.h <<_ACEOF
26331 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26332 _ACEOF
26334 else
26335 case " $LIBOBJS " in
26336 *" $ac_func.$ac_objext "* ) ;;
26337 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
26339 esac
26342 done
26345 if test $ac_cv_func_strpbrk = no; then
26350 { echo "$as_me:$LINENO: checking whether mbrtowc and mbstate_t are properly declared" >&5
26351 echo $ECHO_N "checking whether mbrtowc and mbstate_t are properly declared... $ECHO_C" >&6; }
26352 if test "${gl_cv_func_mbrtowc+set}" = set; then
26353 echo $ECHO_N "(cached) $ECHO_C" >&6
26354 else
26355 cat >conftest.$ac_ext <<_ACEOF
26356 /* confdefs.h. */
26357 _ACEOF
26358 cat confdefs.h >>conftest.$ac_ext
26359 cat >>conftest.$ac_ext <<_ACEOF
26360 /* end confdefs.h. */
26361 #include <wchar.h>
26363 main ()
26365 wchar_t wc;
26366 char const s[] = "";
26367 size_t n = 1;
26368 mbstate_t state;
26369 return ! (sizeof state && (mbrtowc) (&wc, s, n, &state));
26371 return 0;
26373 _ACEOF
26374 rm -f conftest.$ac_objext conftest$ac_exeext
26375 if { (ac_try="$ac_link"
26376 case "(($ac_try" in
26377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26378 *) ac_try_echo=$ac_try;;
26379 esac
26380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26381 (eval "$ac_link") 2>conftest.er1
26382 ac_status=$?
26383 grep -v '^ *+' conftest.er1 >conftest.err
26384 rm -f conftest.er1
26385 cat conftest.err >&5
26386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26387 (exit $ac_status); } &&
26388 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26389 { (case "(($ac_try" in
26390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26391 *) ac_try_echo=$ac_try;;
26392 esac
26393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26394 (eval "$ac_try") 2>&5
26395 ac_status=$?
26396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26397 (exit $ac_status); }; } &&
26398 { ac_try='test -s conftest$ac_exeext'
26399 { (case "(($ac_try" in
26400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26401 *) ac_try_echo=$ac_try;;
26402 esac
26403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26404 (eval "$ac_try") 2>&5
26405 ac_status=$?
26406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26407 (exit $ac_status); }; }; then
26408 gl_cv_func_mbrtowc=yes
26409 else
26410 echo "$as_me: failed program was:" >&5
26411 sed 's/^/| /' conftest.$ac_ext >&5
26413 gl_cv_func_mbrtowc=no
26416 rm -f core conftest.err conftest.$ac_objext \
26417 conftest$ac_exeext conftest.$ac_ext
26419 { echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc" >&5
26420 echo "${ECHO_T}$gl_cv_func_mbrtowc" >&6; }
26421 if test $gl_cv_func_mbrtowc = yes; then
26423 cat >>confdefs.h <<\_ACEOF
26424 #define HAVE_MBRTOWC 1
26425 _ACEOF
26430 case " $LIBOBJS " in
26431 *" strstr.$ac_objext "* ) ;;
26432 *) LIBOBJS="$LIBOBJS strstr.$ac_objext"
26434 esac
26441 { echo "$as_me:$LINENO: checking for working strtod" >&5
26442 echo $ECHO_N "checking for working strtod... $ECHO_C" >&6; }
26443 if test "${ac_cv_func_strtod+set}" = set; then
26444 echo $ECHO_N "(cached) $ECHO_C" >&6
26445 else
26446 if test "$cross_compiling" = yes; then
26447 ac_cv_func_strtod=no
26448 else
26449 cat >conftest.$ac_ext <<_ACEOF
26450 /* confdefs.h. */
26451 _ACEOF
26452 cat confdefs.h >>conftest.$ac_ext
26453 cat >>conftest.$ac_ext <<_ACEOF
26454 /* end confdefs.h. */
26456 $ac_includes_default
26457 #ifndef strtod
26458 double strtod ();
26459 #endif
26461 main()
26464 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
26465 char *string = " +69";
26466 char *term;
26467 double value;
26468 value = strtod (string, &term);
26469 if (value != 69 || term != (string + 4))
26470 return 1;
26474 /* Under Solaris 2.4, strtod returns the wrong value for the
26475 terminating character under some conditions. */
26476 char *string = "NaN";
26477 char *term;
26478 strtod (string, &term);
26479 if (term != string && *(term - 1) == 0)
26480 return 1;
26482 return 0;
26485 _ACEOF
26486 rm -f conftest$ac_exeext
26487 if { (ac_try="$ac_link"
26488 case "(($ac_try" in
26489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26490 *) ac_try_echo=$ac_try;;
26491 esac
26492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26493 (eval "$ac_link") 2>&5
26494 ac_status=$?
26495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26496 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26497 { (case "(($ac_try" in
26498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26499 *) ac_try_echo=$ac_try;;
26500 esac
26501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26502 (eval "$ac_try") 2>&5
26503 ac_status=$?
26504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26505 (exit $ac_status); }; }; then
26506 ac_cv_func_strtod=yes
26507 else
26508 echo "$as_me: program exited with status $ac_status" >&5
26509 echo "$as_me: failed program was:" >&5
26510 sed 's/^/| /' conftest.$ac_ext >&5
26512 ( exit $ac_status )
26513 ac_cv_func_strtod=no
26515 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26520 { echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
26521 echo "${ECHO_T}$ac_cv_func_strtod" >&6; }
26522 if test $ac_cv_func_strtod = no; then
26523 case " $LIBOBJS " in
26524 *" strtod.$ac_objext "* ) ;;
26525 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
26527 esac
26529 { echo "$as_me:$LINENO: checking for pow" >&5
26530 echo $ECHO_N "checking for pow... $ECHO_C" >&6; }
26531 if test "${ac_cv_func_pow+set}" = set; then
26532 echo $ECHO_N "(cached) $ECHO_C" >&6
26533 else
26534 cat >conftest.$ac_ext <<_ACEOF
26535 /* confdefs.h. */
26536 _ACEOF
26537 cat confdefs.h >>conftest.$ac_ext
26538 cat >>conftest.$ac_ext <<_ACEOF
26539 /* end confdefs.h. */
26540 /* Define pow to an innocuous variant, in case <limits.h> declares pow.
26541 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26542 #define pow innocuous_pow
26544 /* System header to define __stub macros and hopefully few prototypes,
26545 which can conflict with char pow (); below.
26546 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26547 <limits.h> exists even on freestanding compilers. */
26549 #ifdef __STDC__
26550 # include <limits.h>
26551 #else
26552 # include <assert.h>
26553 #endif
26555 #undef pow
26557 /* Override any GCC internal prototype to avoid an error.
26558 Use char because int might match the return type of a GCC
26559 builtin and then its argument prototype would still apply. */
26560 #ifdef __cplusplus
26561 extern "C"
26562 #endif
26563 char pow ();
26564 /* The GNU C library defines this for functions which it implements
26565 to always fail with ENOSYS. Some functions are actually named
26566 something starting with __ and the normal name is an alias. */
26567 #if defined __stub_pow || defined __stub___pow
26568 choke me
26569 #endif
26572 main ()
26574 return pow ();
26576 return 0;
26578 _ACEOF
26579 rm -f conftest.$ac_objext conftest$ac_exeext
26580 if { (ac_try="$ac_link"
26581 case "(($ac_try" in
26582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26583 *) ac_try_echo=$ac_try;;
26584 esac
26585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26586 (eval "$ac_link") 2>conftest.er1
26587 ac_status=$?
26588 grep -v '^ *+' conftest.er1 >conftest.err
26589 rm -f conftest.er1
26590 cat conftest.err >&5
26591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26592 (exit $ac_status); } &&
26593 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26594 { (case "(($ac_try" in
26595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26596 *) ac_try_echo=$ac_try;;
26597 esac
26598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26599 (eval "$ac_try") 2>&5
26600 ac_status=$?
26601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26602 (exit $ac_status); }; } &&
26603 { ac_try='test -s conftest$ac_exeext'
26604 { (case "(($ac_try" in
26605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26606 *) ac_try_echo=$ac_try;;
26607 esac
26608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26609 (eval "$ac_try") 2>&5
26610 ac_status=$?
26611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26612 (exit $ac_status); }; }; then
26613 ac_cv_func_pow=yes
26614 else
26615 echo "$as_me: failed program was:" >&5
26616 sed 's/^/| /' conftest.$ac_ext >&5
26618 ac_cv_func_pow=no
26621 rm -f core conftest.err conftest.$ac_objext \
26622 conftest$ac_exeext conftest.$ac_ext
26624 { echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
26625 echo "${ECHO_T}$ac_cv_func_pow" >&6; }
26627 if test $ac_cv_func_pow = no; then
26628 { echo "$as_me:$LINENO: checking for pow in -lm" >&5
26629 echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6; }
26630 if test "${ac_cv_lib_m_pow+set}" = set; then
26631 echo $ECHO_N "(cached) $ECHO_C" >&6
26632 else
26633 ac_check_lib_save_LIBS=$LIBS
26634 LIBS="-lm $LIBS"
26635 cat >conftest.$ac_ext <<_ACEOF
26636 /* confdefs.h. */
26637 _ACEOF
26638 cat confdefs.h >>conftest.$ac_ext
26639 cat >>conftest.$ac_ext <<_ACEOF
26640 /* end confdefs.h. */
26642 /* Override any GCC internal prototype to avoid an error.
26643 Use char because int might match the return type of a GCC
26644 builtin and then its argument prototype would still apply. */
26645 #ifdef __cplusplus
26646 extern "C"
26647 #endif
26648 char pow ();
26650 main ()
26652 return pow ();
26654 return 0;
26656 _ACEOF
26657 rm -f conftest.$ac_objext conftest$ac_exeext
26658 if { (ac_try="$ac_link"
26659 case "(($ac_try" in
26660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26661 *) ac_try_echo=$ac_try;;
26662 esac
26663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26664 (eval "$ac_link") 2>conftest.er1
26665 ac_status=$?
26666 grep -v '^ *+' conftest.er1 >conftest.err
26667 rm -f conftest.er1
26668 cat conftest.err >&5
26669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26670 (exit $ac_status); } &&
26671 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26672 { (case "(($ac_try" in
26673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26674 *) ac_try_echo=$ac_try;;
26675 esac
26676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26677 (eval "$ac_try") 2>&5
26678 ac_status=$?
26679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26680 (exit $ac_status); }; } &&
26681 { ac_try='test -s conftest$ac_exeext'
26682 { (case "(($ac_try" in
26683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26684 *) ac_try_echo=$ac_try;;
26685 esac
26686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26687 (eval "$ac_try") 2>&5
26688 ac_status=$?
26689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26690 (exit $ac_status); }; }; then
26691 ac_cv_lib_m_pow=yes
26692 else
26693 echo "$as_me: failed program was:" >&5
26694 sed 's/^/| /' conftest.$ac_ext >&5
26696 ac_cv_lib_m_pow=no
26699 rm -f core conftest.err conftest.$ac_objext \
26700 conftest$ac_exeext conftest.$ac_ext
26701 LIBS=$ac_check_lib_save_LIBS
26703 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
26704 echo "${ECHO_T}$ac_cv_lib_m_pow" >&6; }
26705 if test $ac_cv_lib_m_pow = yes; then
26706 POW_LIB=-lm
26707 else
26708 { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
26709 echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
26718 if test $ac_cv_func_strtod = no; then
26720 cat >>confdefs.h <<\_ACEOF
26721 #define strtod rpl_strtod
26722 _ACEOF
26731 { echo "$as_me:$LINENO: checking whether <inttypes.h> defines strtoimax as a macro" >&5
26732 echo $ECHO_N "checking whether <inttypes.h> defines strtoimax as a macro... $ECHO_C" >&6; }
26733 if test "${jm_cv_func_strtoimax_macro+set}" = set; then
26734 echo $ECHO_N "(cached) $ECHO_C" >&6
26735 else
26736 cat >conftest.$ac_ext <<_ACEOF
26737 /* confdefs.h. */
26738 _ACEOF
26739 cat confdefs.h >>conftest.$ac_ext
26740 cat >>conftest.$ac_ext <<_ACEOF
26741 /* end confdefs.h. */
26742 #include <inttypes.h>
26743 #ifdef strtoimax
26744 inttypes_h_defines_strtoimax
26745 #endif
26746 _ACEOF
26747 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26748 $EGREP "inttypes_h_defines_strtoimax" >/dev/null 2>&1; then
26749 jm_cv_func_strtoimax_macro=yes
26750 else
26751 jm_cv_func_strtoimax_macro=no
26753 rm -f conftest*
26756 { echo "$as_me:$LINENO: result: $jm_cv_func_strtoimax_macro" >&5
26757 echo "${ECHO_T}$jm_cv_func_strtoimax_macro" >&6; }
26759 if test "$jm_cv_func_strtoimax_macro" != yes; then
26761 for ac_func in strtoimax
26763 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26764 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26765 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26766 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26767 echo $ECHO_N "(cached) $ECHO_C" >&6
26768 else
26769 cat >conftest.$ac_ext <<_ACEOF
26770 /* confdefs.h. */
26771 _ACEOF
26772 cat confdefs.h >>conftest.$ac_ext
26773 cat >>conftest.$ac_ext <<_ACEOF
26774 /* end confdefs.h. */
26775 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26776 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26777 #define $ac_func innocuous_$ac_func
26779 /* System header to define __stub macros and hopefully few prototypes,
26780 which can conflict with char $ac_func (); below.
26781 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26782 <limits.h> exists even on freestanding compilers. */
26784 #ifdef __STDC__
26785 # include <limits.h>
26786 #else
26787 # include <assert.h>
26788 #endif
26790 #undef $ac_func
26792 /* Override any GCC internal prototype to avoid an error.
26793 Use char because int might match the return type of a GCC
26794 builtin and then its argument prototype would still apply. */
26795 #ifdef __cplusplus
26796 extern "C"
26797 #endif
26798 char $ac_func ();
26799 /* The GNU C library defines this for functions which it implements
26800 to always fail with ENOSYS. Some functions are actually named
26801 something starting with __ and the normal name is an alias. */
26802 #if defined __stub_$ac_func || defined __stub___$ac_func
26803 choke me
26804 #endif
26807 main ()
26809 return $ac_func ();
26811 return 0;
26813 _ACEOF
26814 rm -f conftest.$ac_objext conftest$ac_exeext
26815 if { (ac_try="$ac_link"
26816 case "(($ac_try" in
26817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26818 *) ac_try_echo=$ac_try;;
26819 esac
26820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26821 (eval "$ac_link") 2>conftest.er1
26822 ac_status=$?
26823 grep -v '^ *+' conftest.er1 >conftest.err
26824 rm -f conftest.er1
26825 cat conftest.err >&5
26826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26827 (exit $ac_status); } &&
26828 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26829 { (case "(($ac_try" in
26830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26831 *) ac_try_echo=$ac_try;;
26832 esac
26833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26834 (eval "$ac_try") 2>&5
26835 ac_status=$?
26836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26837 (exit $ac_status); }; } &&
26838 { ac_try='test -s conftest$ac_exeext'
26839 { (case "(($ac_try" in
26840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26841 *) ac_try_echo=$ac_try;;
26842 esac
26843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26844 (eval "$ac_try") 2>&5
26845 ac_status=$?
26846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26847 (exit $ac_status); }; }; then
26848 eval "$as_ac_var=yes"
26849 else
26850 echo "$as_me: failed program was:" >&5
26851 sed 's/^/| /' conftest.$ac_ext >&5
26853 eval "$as_ac_var=no"
26856 rm -f core conftest.err conftest.$ac_objext \
26857 conftest$ac_exeext conftest.$ac_ext
26859 ac_res=`eval echo '${'$as_ac_var'}'`
26860 { echo "$as_me:$LINENO: result: $ac_res" >&5
26861 echo "${ECHO_T}$ac_res" >&6; }
26862 if test `eval echo '${'$as_ac_var'}'` = yes; then
26863 cat >>confdefs.h <<_ACEOF
26864 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26865 _ACEOF
26867 else
26868 case " $LIBOBJS " in
26869 *" $ac_func.$ac_objext "* ) ;;
26870 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
26872 esac
26875 done
26878 if test $ac_cv_func_strtoimax = no; then
26883 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
26885 test $ac_cv_type_long_long = yes \
26886 && ac_type='long long' \
26887 || ac_type='long'
26889 cat >>confdefs.h <<_ACEOF
26890 #define intmax_t $ac_type
26891 _ACEOF
26893 else
26895 cat >>confdefs.h <<\_ACEOF
26896 #define HAVE_INTMAX_T 1
26897 _ACEOF
26901 { echo "$as_me:$LINENO: checking whether strtoll is declared" >&5
26902 echo $ECHO_N "checking whether strtoll is declared... $ECHO_C" >&6; }
26903 if test "${ac_cv_have_decl_strtoll+set}" = set; then
26904 echo $ECHO_N "(cached) $ECHO_C" >&6
26905 else
26906 cat >conftest.$ac_ext <<_ACEOF
26907 /* confdefs.h. */
26908 _ACEOF
26909 cat confdefs.h >>conftest.$ac_ext
26910 cat >>conftest.$ac_ext <<_ACEOF
26911 /* end confdefs.h. */
26912 $ac_includes_default
26914 main ()
26916 #ifndef strtoll
26917 char *p = (char *) strtoll;
26918 return !p;
26919 #endif
26922 return 0;
26924 _ACEOF
26925 rm -f conftest.$ac_objext
26926 if { (ac_try="$ac_compile"
26927 case "(($ac_try" in
26928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26929 *) ac_try_echo=$ac_try;;
26930 esac
26931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26932 (eval "$ac_compile") 2>conftest.er1
26933 ac_status=$?
26934 grep -v '^ *+' conftest.er1 >conftest.err
26935 rm -f conftest.er1
26936 cat conftest.err >&5
26937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26938 (exit $ac_status); } &&
26939 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26940 { (case "(($ac_try" in
26941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26942 *) ac_try_echo=$ac_try;;
26943 esac
26944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26945 (eval "$ac_try") 2>&5
26946 ac_status=$?
26947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26948 (exit $ac_status); }; } &&
26949 { ac_try='test -s conftest.$ac_objext'
26950 { (case "(($ac_try" in
26951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26952 *) ac_try_echo=$ac_try;;
26953 esac
26954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26955 (eval "$ac_try") 2>&5
26956 ac_status=$?
26957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26958 (exit $ac_status); }; }; then
26959 ac_cv_have_decl_strtoll=yes
26960 else
26961 echo "$as_me: failed program was:" >&5
26962 sed 's/^/| /' conftest.$ac_ext >&5
26964 ac_cv_have_decl_strtoll=no
26967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26969 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoll" >&5
26970 echo "${ECHO_T}$ac_cv_have_decl_strtoll" >&6; }
26971 if test $ac_cv_have_decl_strtoll = yes; then
26973 cat >>confdefs.h <<_ACEOF
26974 #define HAVE_DECL_STRTOLL 1
26975 _ACEOF
26978 else
26979 cat >>confdefs.h <<_ACEOF
26980 #define HAVE_DECL_STRTOLL 0
26981 _ACEOF
26994 if test "$ac_cv_type_long_long" = yes; then
26996 for ac_func in strtoll
26998 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26999 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27000 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27001 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27002 echo $ECHO_N "(cached) $ECHO_C" >&6
27003 else
27004 cat >conftest.$ac_ext <<_ACEOF
27005 /* confdefs.h. */
27006 _ACEOF
27007 cat confdefs.h >>conftest.$ac_ext
27008 cat >>conftest.$ac_ext <<_ACEOF
27009 /* end confdefs.h. */
27010 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27011 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27012 #define $ac_func innocuous_$ac_func
27014 /* System header to define __stub macros and hopefully few prototypes,
27015 which can conflict with char $ac_func (); below.
27016 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27017 <limits.h> exists even on freestanding compilers. */
27019 #ifdef __STDC__
27020 # include <limits.h>
27021 #else
27022 # include <assert.h>
27023 #endif
27025 #undef $ac_func
27027 /* Override any GCC internal prototype to avoid an error.
27028 Use char because int might match the return type of a GCC
27029 builtin and then its argument prototype would still apply. */
27030 #ifdef __cplusplus
27031 extern "C"
27032 #endif
27033 char $ac_func ();
27034 /* The GNU C library defines this for functions which it implements
27035 to always fail with ENOSYS. Some functions are actually named
27036 something starting with __ and the normal name is an alias. */
27037 #if defined __stub_$ac_func || defined __stub___$ac_func
27038 choke me
27039 #endif
27042 main ()
27044 return $ac_func ();
27046 return 0;
27048 _ACEOF
27049 rm -f conftest.$ac_objext conftest$ac_exeext
27050 if { (ac_try="$ac_link"
27051 case "(($ac_try" in
27052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27053 *) ac_try_echo=$ac_try;;
27054 esac
27055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27056 (eval "$ac_link") 2>conftest.er1
27057 ac_status=$?
27058 grep -v '^ *+' conftest.er1 >conftest.err
27059 rm -f conftest.er1
27060 cat conftest.err >&5
27061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27062 (exit $ac_status); } &&
27063 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27064 { (case "(($ac_try" in
27065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27066 *) ac_try_echo=$ac_try;;
27067 esac
27068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27069 (eval "$ac_try") 2>&5
27070 ac_status=$?
27071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27072 (exit $ac_status); }; } &&
27073 { ac_try='test -s conftest$ac_exeext'
27074 { (case "(($ac_try" in
27075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27076 *) ac_try_echo=$ac_try;;
27077 esac
27078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27079 (eval "$ac_try") 2>&5
27080 ac_status=$?
27081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27082 (exit $ac_status); }; }; then
27083 eval "$as_ac_var=yes"
27084 else
27085 echo "$as_me: failed program was:" >&5
27086 sed 's/^/| /' conftest.$ac_ext >&5
27088 eval "$as_ac_var=no"
27091 rm -f core conftest.err conftest.$ac_objext \
27092 conftest$ac_exeext conftest.$ac_ext
27094 ac_res=`eval echo '${'$as_ac_var'}'`
27095 { echo "$as_me:$LINENO: result: $ac_res" >&5
27096 echo "${ECHO_T}$ac_res" >&6; }
27097 if test `eval echo '${'$as_ac_var'}'` = yes; then
27098 cat >>confdefs.h <<_ACEOF
27099 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27100 _ACEOF
27102 else
27103 case " $LIBOBJS " in
27104 *" $ac_func.$ac_objext "* ) ;;
27105 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
27107 esac
27110 done
27113 if test $ac_cv_func_strtoll = no; then
27122 for ac_func in strtol
27124 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27125 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27126 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27127 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27128 echo $ECHO_N "(cached) $ECHO_C" >&6
27129 else
27130 cat >conftest.$ac_ext <<_ACEOF
27131 /* confdefs.h. */
27132 _ACEOF
27133 cat confdefs.h >>conftest.$ac_ext
27134 cat >>conftest.$ac_ext <<_ACEOF
27135 /* end confdefs.h. */
27136 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27137 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27138 #define $ac_func innocuous_$ac_func
27140 /* System header to define __stub macros and hopefully few prototypes,
27141 which can conflict with char $ac_func (); below.
27142 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27143 <limits.h> exists even on freestanding compilers. */
27145 #ifdef __STDC__
27146 # include <limits.h>
27147 #else
27148 # include <assert.h>
27149 #endif
27151 #undef $ac_func
27153 /* Override any GCC internal prototype to avoid an error.
27154 Use char because int might match the return type of a GCC
27155 builtin and then its argument prototype would still apply. */
27156 #ifdef __cplusplus
27157 extern "C"
27158 #endif
27159 char $ac_func ();
27160 /* The GNU C library defines this for functions which it implements
27161 to always fail with ENOSYS. Some functions are actually named
27162 something starting with __ and the normal name is an alias. */
27163 #if defined __stub_$ac_func || defined __stub___$ac_func
27164 choke me
27165 #endif
27168 main ()
27170 return $ac_func ();
27172 return 0;
27174 _ACEOF
27175 rm -f conftest.$ac_objext conftest$ac_exeext
27176 if { (ac_try="$ac_link"
27177 case "(($ac_try" in
27178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27179 *) ac_try_echo=$ac_try;;
27180 esac
27181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27182 (eval "$ac_link") 2>conftest.er1
27183 ac_status=$?
27184 grep -v '^ *+' conftest.er1 >conftest.err
27185 rm -f conftest.er1
27186 cat conftest.err >&5
27187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27188 (exit $ac_status); } &&
27189 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27190 { (case "(($ac_try" in
27191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27192 *) ac_try_echo=$ac_try;;
27193 esac
27194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27195 (eval "$ac_try") 2>&5
27196 ac_status=$?
27197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27198 (exit $ac_status); }; } &&
27199 { ac_try='test -s conftest$ac_exeext'
27200 { (case "(($ac_try" in
27201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27202 *) ac_try_echo=$ac_try;;
27203 esac
27204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27205 (eval "$ac_try") 2>&5
27206 ac_status=$?
27207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27208 (exit $ac_status); }; }; then
27209 eval "$as_ac_var=yes"
27210 else
27211 echo "$as_me: failed program was:" >&5
27212 sed 's/^/| /' conftest.$ac_ext >&5
27214 eval "$as_ac_var=no"
27217 rm -f core conftest.err conftest.$ac_objext \
27218 conftest$ac_exeext conftest.$ac_ext
27220 ac_res=`eval echo '${'$as_ac_var'}'`
27221 { echo "$as_me:$LINENO: result: $ac_res" >&5
27222 echo "${ECHO_T}$ac_res" >&6; }
27223 if test `eval echo '${'$as_ac_var'}'` = yes; then
27224 cat >>confdefs.h <<_ACEOF
27225 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27226 _ACEOF
27228 else
27229 case " $LIBOBJS " in
27230 *" $ac_func.$ac_objext "* ) ;;
27231 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
27233 esac
27236 done
27242 if test "$ac_cv_type_unsigned_long_long" = yes; then
27244 for ac_func in strtoull
27246 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27247 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27248 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27249 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27250 echo $ECHO_N "(cached) $ECHO_C" >&6
27251 else
27252 cat >conftest.$ac_ext <<_ACEOF
27253 /* confdefs.h. */
27254 _ACEOF
27255 cat confdefs.h >>conftest.$ac_ext
27256 cat >>conftest.$ac_ext <<_ACEOF
27257 /* end confdefs.h. */
27258 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27259 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27260 #define $ac_func innocuous_$ac_func
27262 /* System header to define __stub macros and hopefully few prototypes,
27263 which can conflict with char $ac_func (); below.
27264 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27265 <limits.h> exists even on freestanding compilers. */
27267 #ifdef __STDC__
27268 # include <limits.h>
27269 #else
27270 # include <assert.h>
27271 #endif
27273 #undef $ac_func
27275 /* Override any GCC internal prototype to avoid an error.
27276 Use char because int might match the return type of a GCC
27277 builtin and then its argument prototype would still apply. */
27278 #ifdef __cplusplus
27279 extern "C"
27280 #endif
27281 char $ac_func ();
27282 /* The GNU C library defines this for functions which it implements
27283 to always fail with ENOSYS. Some functions are actually named
27284 something starting with __ and the normal name is an alias. */
27285 #if defined __stub_$ac_func || defined __stub___$ac_func
27286 choke me
27287 #endif
27290 main ()
27292 return $ac_func ();
27294 return 0;
27296 _ACEOF
27297 rm -f conftest.$ac_objext conftest$ac_exeext
27298 if { (ac_try="$ac_link"
27299 case "(($ac_try" in
27300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27301 *) ac_try_echo=$ac_try;;
27302 esac
27303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27304 (eval "$ac_link") 2>conftest.er1
27305 ac_status=$?
27306 grep -v '^ *+' conftest.er1 >conftest.err
27307 rm -f conftest.er1
27308 cat conftest.err >&5
27309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27310 (exit $ac_status); } &&
27311 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27312 { (case "(($ac_try" in
27313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27314 *) ac_try_echo=$ac_try;;
27315 esac
27316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27317 (eval "$ac_try") 2>&5
27318 ac_status=$?
27319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27320 (exit $ac_status); }; } &&
27321 { ac_try='test -s conftest$ac_exeext'
27322 { (case "(($ac_try" in
27323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27324 *) ac_try_echo=$ac_try;;
27325 esac
27326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27327 (eval "$ac_try") 2>&5
27328 ac_status=$?
27329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27330 (exit $ac_status); }; }; then
27331 eval "$as_ac_var=yes"
27332 else
27333 echo "$as_me: failed program was:" >&5
27334 sed 's/^/| /' conftest.$ac_ext >&5
27336 eval "$as_ac_var=no"
27339 rm -f core conftest.err conftest.$ac_objext \
27340 conftest$ac_exeext conftest.$ac_ext
27342 ac_res=`eval echo '${'$as_ac_var'}'`
27343 { echo "$as_me:$LINENO: result: $ac_res" >&5
27344 echo "${ECHO_T}$ac_res" >&6; }
27345 if test `eval echo '${'$as_ac_var'}'` = yes; then
27346 cat >>confdefs.h <<_ACEOF
27347 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27348 _ACEOF
27350 else
27351 case " $LIBOBJS " in
27352 *" $ac_func.$ac_objext "* ) ;;
27353 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
27355 esac
27358 done
27361 if test $ac_cv_func_strtoull = no; then
27370 for ac_func in strtoul
27372 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27373 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27374 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27375 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27376 echo $ECHO_N "(cached) $ECHO_C" >&6
27377 else
27378 cat >conftest.$ac_ext <<_ACEOF
27379 /* confdefs.h. */
27380 _ACEOF
27381 cat confdefs.h >>conftest.$ac_ext
27382 cat >>conftest.$ac_ext <<_ACEOF
27383 /* end confdefs.h. */
27384 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27385 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27386 #define $ac_func innocuous_$ac_func
27388 /* System header to define __stub macros and hopefully few prototypes,
27389 which can conflict with char $ac_func (); below.
27390 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27391 <limits.h> exists even on freestanding compilers. */
27393 #ifdef __STDC__
27394 # include <limits.h>
27395 #else
27396 # include <assert.h>
27397 #endif
27399 #undef $ac_func
27401 /* Override any GCC internal prototype to avoid an error.
27402 Use char because int might match the return type of a GCC
27403 builtin and then its argument prototype would still apply. */
27404 #ifdef __cplusplus
27405 extern "C"
27406 #endif
27407 char $ac_func ();
27408 /* The GNU C library defines this for functions which it implements
27409 to always fail with ENOSYS. Some functions are actually named
27410 something starting with __ and the normal name is an alias. */
27411 #if defined __stub_$ac_func || defined __stub___$ac_func
27412 choke me
27413 #endif
27416 main ()
27418 return $ac_func ();
27420 return 0;
27422 _ACEOF
27423 rm -f conftest.$ac_objext conftest$ac_exeext
27424 if { (ac_try="$ac_link"
27425 case "(($ac_try" in
27426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27427 *) ac_try_echo=$ac_try;;
27428 esac
27429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27430 (eval "$ac_link") 2>conftest.er1
27431 ac_status=$?
27432 grep -v '^ *+' conftest.er1 >conftest.err
27433 rm -f conftest.er1
27434 cat conftest.err >&5
27435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27436 (exit $ac_status); } &&
27437 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27438 { (case "(($ac_try" in
27439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27440 *) ac_try_echo=$ac_try;;
27441 esac
27442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27443 (eval "$ac_try") 2>&5
27444 ac_status=$?
27445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27446 (exit $ac_status); }; } &&
27447 { ac_try='test -s conftest$ac_exeext'
27448 { (case "(($ac_try" in
27449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27450 *) ac_try_echo=$ac_try;;
27451 esac
27452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27453 (eval "$ac_try") 2>&5
27454 ac_status=$?
27455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27456 (exit $ac_status); }; }; then
27457 eval "$as_ac_var=yes"
27458 else
27459 echo "$as_me: failed program was:" >&5
27460 sed 's/^/| /' conftest.$ac_ext >&5
27462 eval "$as_ac_var=no"
27465 rm -f core conftest.err conftest.$ac_objext \
27466 conftest$ac_exeext conftest.$ac_ext
27468 ac_res=`eval echo '${'$as_ac_var'}'`
27469 { echo "$as_me:$LINENO: result: $ac_res" >&5
27470 echo "${ECHO_T}$ac_res" >&6; }
27471 if test `eval echo '${'$as_ac_var'}'` = yes; then
27472 cat >>confdefs.h <<_ACEOF
27473 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27474 _ACEOF
27476 else
27477 case " $LIBOBJS " in
27478 *" $ac_func.$ac_objext "* ) ;;
27479 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
27481 esac
27484 done
27492 { echo "$as_me:$LINENO: checking whether <inttypes.h> defines strtoumax as a macro" >&5
27493 echo $ECHO_N "checking whether <inttypes.h> defines strtoumax as a macro... $ECHO_C" >&6; }
27494 if test "${jm_cv_func_strtoumax_macro+set}" = set; then
27495 echo $ECHO_N "(cached) $ECHO_C" >&6
27496 else
27497 cat >conftest.$ac_ext <<_ACEOF
27498 /* confdefs.h. */
27499 _ACEOF
27500 cat confdefs.h >>conftest.$ac_ext
27501 cat >>conftest.$ac_ext <<_ACEOF
27502 /* end confdefs.h. */
27503 #include <inttypes.h>
27504 #ifdef strtoumax
27505 inttypes_h_defines_strtoumax
27506 #endif
27507 _ACEOF
27508 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27509 $EGREP "inttypes_h_defines_strtoumax" >/dev/null 2>&1; then
27510 jm_cv_func_strtoumax_macro=yes
27511 else
27512 jm_cv_func_strtoumax_macro=no
27514 rm -f conftest*
27517 { echo "$as_me:$LINENO: result: $jm_cv_func_strtoumax_macro" >&5
27518 echo "${ECHO_T}$jm_cv_func_strtoumax_macro" >&6; }
27520 if test "$jm_cv_func_strtoumax_macro" != yes; then
27522 for ac_func in strtoumax
27524 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27525 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27526 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27527 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27528 echo $ECHO_N "(cached) $ECHO_C" >&6
27529 else
27530 cat >conftest.$ac_ext <<_ACEOF
27531 /* confdefs.h. */
27532 _ACEOF
27533 cat confdefs.h >>conftest.$ac_ext
27534 cat >>conftest.$ac_ext <<_ACEOF
27535 /* end confdefs.h. */
27536 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27537 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27538 #define $ac_func innocuous_$ac_func
27540 /* System header to define __stub macros and hopefully few prototypes,
27541 which can conflict with char $ac_func (); below.
27542 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27543 <limits.h> exists even on freestanding compilers. */
27545 #ifdef __STDC__
27546 # include <limits.h>
27547 #else
27548 # include <assert.h>
27549 #endif
27551 #undef $ac_func
27553 /* Override any GCC internal prototype to avoid an error.
27554 Use char because int might match the return type of a GCC
27555 builtin and then its argument prototype would still apply. */
27556 #ifdef __cplusplus
27557 extern "C"
27558 #endif
27559 char $ac_func ();
27560 /* The GNU C library defines this for functions which it implements
27561 to always fail with ENOSYS. Some functions are actually named
27562 something starting with __ and the normal name is an alias. */
27563 #if defined __stub_$ac_func || defined __stub___$ac_func
27564 choke me
27565 #endif
27568 main ()
27570 return $ac_func ();
27572 return 0;
27574 _ACEOF
27575 rm -f conftest.$ac_objext conftest$ac_exeext
27576 if { (ac_try="$ac_link"
27577 case "(($ac_try" in
27578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27579 *) ac_try_echo=$ac_try;;
27580 esac
27581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27582 (eval "$ac_link") 2>conftest.er1
27583 ac_status=$?
27584 grep -v '^ *+' conftest.er1 >conftest.err
27585 rm -f conftest.er1
27586 cat conftest.err >&5
27587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27588 (exit $ac_status); } &&
27589 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27590 { (case "(($ac_try" in
27591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27592 *) ac_try_echo=$ac_try;;
27593 esac
27594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27595 (eval "$ac_try") 2>&5
27596 ac_status=$?
27597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27598 (exit $ac_status); }; } &&
27599 { ac_try='test -s conftest$ac_exeext'
27600 { (case "(($ac_try" in
27601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27602 *) ac_try_echo=$ac_try;;
27603 esac
27604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27605 (eval "$ac_try") 2>&5
27606 ac_status=$?
27607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27608 (exit $ac_status); }; }; then
27609 eval "$as_ac_var=yes"
27610 else
27611 echo "$as_me: failed program was:" >&5
27612 sed 's/^/| /' conftest.$ac_ext >&5
27614 eval "$as_ac_var=no"
27617 rm -f core conftest.err conftest.$ac_objext \
27618 conftest$ac_exeext conftest.$ac_ext
27620 ac_res=`eval echo '${'$as_ac_var'}'`
27621 { echo "$as_me:$LINENO: result: $ac_res" >&5
27622 echo "${ECHO_T}$ac_res" >&6; }
27623 if test `eval echo '${'$as_ac_var'}'` = yes; then
27624 cat >>confdefs.h <<_ACEOF
27625 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27626 _ACEOF
27628 else
27629 case " $LIBOBJS " in
27630 *" $ac_func.$ac_objext "* ) ;;
27631 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
27633 esac
27636 done
27639 if test $ac_cv_func_strtoumax = no; then
27644 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
27646 test $ac_cv_type_unsigned_long_long = yes \
27647 && ac_type='unsigned long long' \
27648 || ac_type='unsigned long'
27650 cat >>confdefs.h <<_ACEOF
27651 #define uintmax_t $ac_type
27652 _ACEOF
27654 else
27656 cat >>confdefs.h <<\_ACEOF
27657 #define HAVE_UINTMAX_T 1
27658 _ACEOF
27662 { echo "$as_me:$LINENO: checking whether strtoull is declared" >&5
27663 echo $ECHO_N "checking whether strtoull is declared... $ECHO_C" >&6; }
27664 if test "${ac_cv_have_decl_strtoull+set}" = set; then
27665 echo $ECHO_N "(cached) $ECHO_C" >&6
27666 else
27667 cat >conftest.$ac_ext <<_ACEOF
27668 /* confdefs.h. */
27669 _ACEOF
27670 cat confdefs.h >>conftest.$ac_ext
27671 cat >>conftest.$ac_ext <<_ACEOF
27672 /* end confdefs.h. */
27673 $ac_includes_default
27675 main ()
27677 #ifndef strtoull
27678 char *p = (char *) strtoull;
27679 return !p;
27680 #endif
27683 return 0;
27685 _ACEOF
27686 rm -f conftest.$ac_objext
27687 if { (ac_try="$ac_compile"
27688 case "(($ac_try" in
27689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27690 *) ac_try_echo=$ac_try;;
27691 esac
27692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27693 (eval "$ac_compile") 2>conftest.er1
27694 ac_status=$?
27695 grep -v '^ *+' conftest.er1 >conftest.err
27696 rm -f conftest.er1
27697 cat conftest.err >&5
27698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27699 (exit $ac_status); } &&
27700 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27701 { (case "(($ac_try" in
27702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27703 *) ac_try_echo=$ac_try;;
27704 esac
27705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27706 (eval "$ac_try") 2>&5
27707 ac_status=$?
27708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27709 (exit $ac_status); }; } &&
27710 { ac_try='test -s conftest.$ac_objext'
27711 { (case "(($ac_try" in
27712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27713 *) ac_try_echo=$ac_try;;
27714 esac
27715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27716 (eval "$ac_try") 2>&5
27717 ac_status=$?
27718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27719 (exit $ac_status); }; }; then
27720 ac_cv_have_decl_strtoull=yes
27721 else
27722 echo "$as_me: failed program was:" >&5
27723 sed 's/^/| /' conftest.$ac_ext >&5
27725 ac_cv_have_decl_strtoull=no
27728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27730 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoull" >&5
27731 echo "${ECHO_T}$ac_cv_have_decl_strtoull" >&6; }
27732 if test $ac_cv_have_decl_strtoull = yes; then
27734 cat >>confdefs.h <<_ACEOF
27735 #define HAVE_DECL_STRTOULL 1
27736 _ACEOF
27739 else
27740 cat >>confdefs.h <<_ACEOF
27741 #define HAVE_DECL_STRTOULL 0
27742 _ACEOF
27759 for ac_func in strverscmp
27761 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27762 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27763 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27764 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27765 echo $ECHO_N "(cached) $ECHO_C" >&6
27766 else
27767 cat >conftest.$ac_ext <<_ACEOF
27768 /* confdefs.h. */
27769 _ACEOF
27770 cat confdefs.h >>conftest.$ac_ext
27771 cat >>conftest.$ac_ext <<_ACEOF
27772 /* end confdefs.h. */
27773 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27774 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27775 #define $ac_func innocuous_$ac_func
27777 /* System header to define __stub macros and hopefully few prototypes,
27778 which can conflict with char $ac_func (); below.
27779 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27780 <limits.h> exists even on freestanding compilers. */
27782 #ifdef __STDC__
27783 # include <limits.h>
27784 #else
27785 # include <assert.h>
27786 #endif
27788 #undef $ac_func
27790 /* Override any GCC internal prototype to avoid an error.
27791 Use char because int might match the return type of a GCC
27792 builtin and then its argument prototype would still apply. */
27793 #ifdef __cplusplus
27794 extern "C"
27795 #endif
27796 char $ac_func ();
27797 /* The GNU C library defines this for functions which it implements
27798 to always fail with ENOSYS. Some functions are actually named
27799 something starting with __ and the normal name is an alias. */
27800 #if defined __stub_$ac_func || defined __stub___$ac_func
27801 choke me
27802 #endif
27805 main ()
27807 return $ac_func ();
27809 return 0;
27811 _ACEOF
27812 rm -f conftest.$ac_objext conftest$ac_exeext
27813 if { (ac_try="$ac_link"
27814 case "(($ac_try" in
27815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27816 *) ac_try_echo=$ac_try;;
27817 esac
27818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27819 (eval "$ac_link") 2>conftest.er1
27820 ac_status=$?
27821 grep -v '^ *+' conftest.er1 >conftest.err
27822 rm -f conftest.er1
27823 cat conftest.err >&5
27824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27825 (exit $ac_status); } &&
27826 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27827 { (case "(($ac_try" in
27828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27829 *) ac_try_echo=$ac_try;;
27830 esac
27831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27832 (eval "$ac_try") 2>&5
27833 ac_status=$?
27834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27835 (exit $ac_status); }; } &&
27836 { ac_try='test -s conftest$ac_exeext'
27837 { (case "(($ac_try" in
27838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27839 *) ac_try_echo=$ac_try;;
27840 esac
27841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27842 (eval "$ac_try") 2>&5
27843 ac_status=$?
27844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27845 (exit $ac_status); }; }; then
27846 eval "$as_ac_var=yes"
27847 else
27848 echo "$as_me: failed program was:" >&5
27849 sed 's/^/| /' conftest.$ac_ext >&5
27851 eval "$as_ac_var=no"
27854 rm -f core conftest.err conftest.$ac_objext \
27855 conftest$ac_exeext conftest.$ac_ext
27857 ac_res=`eval echo '${'$as_ac_var'}'`
27858 { echo "$as_me:$LINENO: result: $ac_res" >&5
27859 echo "${ECHO_T}$ac_res" >&6; }
27860 if test `eval echo '${'$as_ac_var'}'` = yes; then
27861 cat >>confdefs.h <<_ACEOF
27862 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27863 _ACEOF
27865 else
27866 case " $LIBOBJS " in
27867 *" $ac_func.$ac_objext "* ) ;;
27868 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
27870 esac
27873 done
27876 if test $ac_cv_func_strverscmp = no; then
27884 { echo "$as_me:$LINENO: checking whether tzset clobbers localtime buffer" >&5
27885 echo $ECHO_N "checking whether tzset clobbers localtime buffer... $ECHO_C" >&6; }
27886 if test "${gl_cv_func_tzset_clobber+set}" = set; then
27887 echo $ECHO_N "(cached) $ECHO_C" >&6
27888 else
27890 if test "$cross_compiling" = yes; then
27891 gl_cv_func_tzset_clobber=yes
27892 else
27893 cat >conftest.$ac_ext <<_ACEOF
27894 /* confdefs.h. */
27895 _ACEOF
27896 cat confdefs.h >>conftest.$ac_ext
27897 cat >>conftest.$ac_ext <<_ACEOF
27898 /* end confdefs.h. */
27900 #if TIME_WITH_SYS_TIME
27901 # include <sys/time.h>
27902 # include <time.h>
27903 #else
27904 # if HAVE_SYS_TIME_H
27905 # include <sys/time.h>
27906 # else
27907 # include <time.h>
27908 # endif
27909 #endif
27910 #include <stdlib.h>
27913 main ()
27915 time_t t1 = 853958121;
27916 struct tm *p, s;
27917 putenv ("TZ=GMT0");
27918 p = localtime (&t1);
27919 s = *p;
27920 putenv ("TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00");
27921 tzset ();
27922 exit (p->tm_year != s.tm_year
27923 || p->tm_mon != s.tm_mon
27924 || p->tm_mday != s.tm_mday
27925 || p->tm_hour != s.tm_hour
27926 || p->tm_min != s.tm_min
27927 || p->tm_sec != s.tm_sec);
27930 _ACEOF
27931 rm -f conftest$ac_exeext
27932 if { (ac_try="$ac_link"
27933 case "(($ac_try" in
27934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27935 *) ac_try_echo=$ac_try;;
27936 esac
27937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27938 (eval "$ac_link") 2>&5
27939 ac_status=$?
27940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27941 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27942 { (case "(($ac_try" in
27943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27944 *) ac_try_echo=$ac_try;;
27945 esac
27946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27947 (eval "$ac_try") 2>&5
27948 ac_status=$?
27949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27950 (exit $ac_status); }; }; then
27951 gl_cv_func_tzset_clobber=no
27952 else
27953 echo "$as_me: program exited with status $ac_status" >&5
27954 echo "$as_me: failed program was:" >&5
27955 sed 's/^/| /' conftest.$ac_ext >&5
27957 ( exit $ac_status )
27958 gl_cv_func_tzset_clobber=yes
27960 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27965 { echo "$as_me:$LINENO: result: $gl_cv_func_tzset_clobber" >&5
27966 echo "${ECHO_T}$gl_cv_func_tzset_clobber" >&6; }
27969 cat >>confdefs.h <<\_ACEOF
27970 #define HAVE_RUN_TZSET_TEST 1
27971 _ACEOF
27974 if test $gl_cv_func_tzset_clobber = yes; then
27976 case " $LIBOBJS " in
27977 *" gettimeofday.$ac_objext "* ) ;;
27978 *) LIBOBJS="$LIBOBJS gettimeofday.$ac_objext"
27980 esac
27983 cat >>confdefs.h <<\_ACEOF
27984 #define gmtime rpl_gmtime
27985 _ACEOF
27988 cat >>confdefs.h <<\_ACEOF
27989 #define localtime rpl_localtime
27990 _ACEOF
27995 cat >>confdefs.h <<\_ACEOF
27996 #define tzset rpl_tzset
27997 _ACEOF
28000 cat >>confdefs.h <<\_ACEOF
28001 #define TZSET_CLOBBERS_LOCALTIME_BUFFER 1
28002 _ACEOF
28008 { echo "$as_me:$LINENO: checking for EOVERFLOW" >&5
28009 echo $ECHO_N "checking for EOVERFLOW... $ECHO_C" >&6; }
28010 if test "${ac_cv_decl_EOVERFLOW+set}" = set; then
28011 echo $ECHO_N "(cached) $ECHO_C" >&6
28012 else
28014 cat >conftest.$ac_ext <<_ACEOF
28015 /* confdefs.h. */
28016 _ACEOF
28017 cat confdefs.h >>conftest.$ac_ext
28018 cat >>conftest.$ac_ext <<_ACEOF
28019 /* end confdefs.h. */
28021 #include <errno.h>
28022 #ifdef EOVERFLOW
28024 #endif
28026 _ACEOF
28027 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28028 $EGREP "yes" >/dev/null 2>&1; then
28029 have_eoverflow=1
28031 rm -f conftest*
28033 if test -n "$have_eoverflow"; then
28034 ac_cv_decl_EOVERFLOW=yes
28035 else
28036 cat >conftest.$ac_ext <<_ACEOF
28037 /* confdefs.h. */
28038 _ACEOF
28039 cat confdefs.h >>conftest.$ac_ext
28040 cat >>conftest.$ac_ext <<_ACEOF
28041 /* end confdefs.h. */
28043 #define _XOPEN_SOURCE_EXTENDED 1
28044 #include <errno.h>
28045 #ifdef EOVERFLOW
28047 #endif
28049 _ACEOF
28050 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28051 $EGREP "yes" >/dev/null 2>&1; then
28052 have_eoverflow=1
28054 rm -f conftest*
28056 if test -n "$have_eoverflow"; then
28057 if test "$cross_compiling" = yes; then
28058 # Depending upon the size, compute the lo and hi bounds.
28059 cat >conftest.$ac_ext <<_ACEOF
28060 /* confdefs.h. */
28061 _ACEOF
28062 cat confdefs.h >>conftest.$ac_ext
28063 cat >>conftest.$ac_ext <<_ACEOF
28064 /* end confdefs.h. */
28066 #define _XOPEN_SOURCE_EXTENDED 1
28067 #include <errno.h>
28068 /* The following two lines are a workaround against an autoconf-2.52 bug. */
28069 #include <stdio.h>
28070 #include <stdlib.h>
28073 main ()
28075 static int test_array [1 - 2 * !((EOVERFLOW) >= 0)];
28076 test_array [0] = 0
28079 return 0;
28081 _ACEOF
28082 rm -f conftest.$ac_objext
28083 if { (ac_try="$ac_compile"
28084 case "(($ac_try" in
28085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28086 *) ac_try_echo=$ac_try;;
28087 esac
28088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28089 (eval "$ac_compile") 2>conftest.er1
28090 ac_status=$?
28091 grep -v '^ *+' conftest.er1 >conftest.err
28092 rm -f conftest.er1
28093 cat conftest.err >&5
28094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28095 (exit $ac_status); } &&
28096 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28097 { (case "(($ac_try" in
28098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28099 *) ac_try_echo=$ac_try;;
28100 esac
28101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28102 (eval "$ac_try") 2>&5
28103 ac_status=$?
28104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28105 (exit $ac_status); }; } &&
28106 { ac_try='test -s conftest.$ac_objext'
28107 { (case "(($ac_try" in
28108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28109 *) ac_try_echo=$ac_try;;
28110 esac
28111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28112 (eval "$ac_try") 2>&5
28113 ac_status=$?
28114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28115 (exit $ac_status); }; }; then
28116 ac_lo=0 ac_mid=0
28117 while :; do
28118 cat >conftest.$ac_ext <<_ACEOF
28119 /* confdefs.h. */
28120 _ACEOF
28121 cat confdefs.h >>conftest.$ac_ext
28122 cat >>conftest.$ac_ext <<_ACEOF
28123 /* end confdefs.h. */
28125 #define _XOPEN_SOURCE_EXTENDED 1
28126 #include <errno.h>
28127 /* The following two lines are a workaround against an autoconf-2.52 bug. */
28128 #include <stdio.h>
28129 #include <stdlib.h>
28132 main ()
28134 static int test_array [1 - 2 * !((EOVERFLOW) <= $ac_mid)];
28135 test_array [0] = 0
28138 return 0;
28140 _ACEOF
28141 rm -f conftest.$ac_objext
28142 if { (ac_try="$ac_compile"
28143 case "(($ac_try" in
28144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28145 *) ac_try_echo=$ac_try;;
28146 esac
28147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28148 (eval "$ac_compile") 2>conftest.er1
28149 ac_status=$?
28150 grep -v '^ *+' conftest.er1 >conftest.err
28151 rm -f conftest.er1
28152 cat conftest.err >&5
28153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28154 (exit $ac_status); } &&
28155 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28156 { (case "(($ac_try" in
28157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28158 *) ac_try_echo=$ac_try;;
28159 esac
28160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28161 (eval "$ac_try") 2>&5
28162 ac_status=$?
28163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28164 (exit $ac_status); }; } &&
28165 { ac_try='test -s conftest.$ac_objext'
28166 { (case "(($ac_try" in
28167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28168 *) ac_try_echo=$ac_try;;
28169 esac
28170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28171 (eval "$ac_try") 2>&5
28172 ac_status=$?
28173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28174 (exit $ac_status); }; }; then
28175 ac_hi=$ac_mid; break
28176 else
28177 echo "$as_me: failed program was:" >&5
28178 sed 's/^/| /' conftest.$ac_ext >&5
28180 ac_lo=`expr $ac_mid + 1`
28181 if test $ac_lo -le $ac_mid; then
28182 ac_lo= ac_hi=
28183 break
28185 ac_mid=`expr 2 '*' $ac_mid + 1`
28188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28189 done
28190 else
28191 echo "$as_me: failed program was:" >&5
28192 sed 's/^/| /' conftest.$ac_ext >&5
28194 cat >conftest.$ac_ext <<_ACEOF
28195 /* confdefs.h. */
28196 _ACEOF
28197 cat confdefs.h >>conftest.$ac_ext
28198 cat >>conftest.$ac_ext <<_ACEOF
28199 /* end confdefs.h. */
28201 #define _XOPEN_SOURCE_EXTENDED 1
28202 #include <errno.h>
28203 /* The following two lines are a workaround against an autoconf-2.52 bug. */
28204 #include <stdio.h>
28205 #include <stdlib.h>
28208 main ()
28210 static int test_array [1 - 2 * !((EOVERFLOW) < 0)];
28211 test_array [0] = 0
28214 return 0;
28216 _ACEOF
28217 rm -f conftest.$ac_objext
28218 if { (ac_try="$ac_compile"
28219 case "(($ac_try" in
28220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28221 *) ac_try_echo=$ac_try;;
28222 esac
28223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28224 (eval "$ac_compile") 2>conftest.er1
28225 ac_status=$?
28226 grep -v '^ *+' conftest.er1 >conftest.err
28227 rm -f conftest.er1
28228 cat conftest.err >&5
28229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28230 (exit $ac_status); } &&
28231 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28232 { (case "(($ac_try" in
28233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28234 *) ac_try_echo=$ac_try;;
28235 esac
28236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28237 (eval "$ac_try") 2>&5
28238 ac_status=$?
28239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28240 (exit $ac_status); }; } &&
28241 { ac_try='test -s conftest.$ac_objext'
28242 { (case "(($ac_try" in
28243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28244 *) ac_try_echo=$ac_try;;
28245 esac
28246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28247 (eval "$ac_try") 2>&5
28248 ac_status=$?
28249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28250 (exit $ac_status); }; }; then
28251 ac_hi=-1 ac_mid=-1
28252 while :; do
28253 cat >conftest.$ac_ext <<_ACEOF
28254 /* confdefs.h. */
28255 _ACEOF
28256 cat confdefs.h >>conftest.$ac_ext
28257 cat >>conftest.$ac_ext <<_ACEOF
28258 /* end confdefs.h. */
28260 #define _XOPEN_SOURCE_EXTENDED 1
28261 #include <errno.h>
28262 /* The following two lines are a workaround against an autoconf-2.52 bug. */
28263 #include <stdio.h>
28264 #include <stdlib.h>
28267 main ()
28269 static int test_array [1 - 2 * !((EOVERFLOW) >= $ac_mid)];
28270 test_array [0] = 0
28273 return 0;
28275 _ACEOF
28276 rm -f conftest.$ac_objext
28277 if { (ac_try="$ac_compile"
28278 case "(($ac_try" in
28279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28280 *) ac_try_echo=$ac_try;;
28281 esac
28282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28283 (eval "$ac_compile") 2>conftest.er1
28284 ac_status=$?
28285 grep -v '^ *+' conftest.er1 >conftest.err
28286 rm -f conftest.er1
28287 cat conftest.err >&5
28288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28289 (exit $ac_status); } &&
28290 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28291 { (case "(($ac_try" in
28292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28293 *) ac_try_echo=$ac_try;;
28294 esac
28295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28296 (eval "$ac_try") 2>&5
28297 ac_status=$?
28298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28299 (exit $ac_status); }; } &&
28300 { ac_try='test -s conftest.$ac_objext'
28301 { (case "(($ac_try" in
28302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28303 *) ac_try_echo=$ac_try;;
28304 esac
28305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28306 (eval "$ac_try") 2>&5
28307 ac_status=$?
28308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28309 (exit $ac_status); }; }; then
28310 ac_lo=$ac_mid; break
28311 else
28312 echo "$as_me: failed program was:" >&5
28313 sed 's/^/| /' conftest.$ac_ext >&5
28315 ac_hi=`expr '(' $ac_mid ')' - 1`
28316 if test $ac_mid -le $ac_hi; then
28317 ac_lo= ac_hi=
28318 break
28320 ac_mid=`expr 2 '*' $ac_mid`
28323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28324 done
28325 else
28326 echo "$as_me: failed program was:" >&5
28327 sed 's/^/| /' conftest.$ac_ext >&5
28329 ac_lo= ac_hi=
28332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28336 # Binary search between lo and hi bounds.
28337 while test "x$ac_lo" != "x$ac_hi"; do
28338 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28339 cat >conftest.$ac_ext <<_ACEOF
28340 /* confdefs.h. */
28341 _ACEOF
28342 cat confdefs.h >>conftest.$ac_ext
28343 cat >>conftest.$ac_ext <<_ACEOF
28344 /* end confdefs.h. */
28346 #define _XOPEN_SOURCE_EXTENDED 1
28347 #include <errno.h>
28348 /* The following two lines are a workaround against an autoconf-2.52 bug. */
28349 #include <stdio.h>
28350 #include <stdlib.h>
28353 main ()
28355 static int test_array [1 - 2 * !((EOVERFLOW) <= $ac_mid)];
28356 test_array [0] = 0
28359 return 0;
28361 _ACEOF
28362 rm -f conftest.$ac_objext
28363 if { (ac_try="$ac_compile"
28364 case "(($ac_try" in
28365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28366 *) ac_try_echo=$ac_try;;
28367 esac
28368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28369 (eval "$ac_compile") 2>conftest.er1
28370 ac_status=$?
28371 grep -v '^ *+' conftest.er1 >conftest.err
28372 rm -f conftest.er1
28373 cat conftest.err >&5
28374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28375 (exit $ac_status); } &&
28376 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28377 { (case "(($ac_try" in
28378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28379 *) ac_try_echo=$ac_try;;
28380 esac
28381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28382 (eval "$ac_try") 2>&5
28383 ac_status=$?
28384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28385 (exit $ac_status); }; } &&
28386 { ac_try='test -s conftest.$ac_objext'
28387 { (case "(($ac_try" in
28388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28389 *) ac_try_echo=$ac_try;;
28390 esac
28391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28392 (eval "$ac_try") 2>&5
28393 ac_status=$?
28394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28395 (exit $ac_status); }; }; then
28396 ac_hi=$ac_mid
28397 else
28398 echo "$as_me: failed program was:" >&5
28399 sed 's/^/| /' conftest.$ac_ext >&5
28401 ac_lo=`expr '(' $ac_mid ')' + 1`
28404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28405 done
28406 case $ac_lo in
28407 ?*) ac_cv_decl_EOVERFLOW=$ac_lo;;
28408 '') ;;
28409 esac
28410 else
28411 cat >conftest.$ac_ext <<_ACEOF
28412 /* confdefs.h. */
28413 _ACEOF
28414 cat confdefs.h >>conftest.$ac_ext
28415 cat >>conftest.$ac_ext <<_ACEOF
28416 /* end confdefs.h. */
28418 #define _XOPEN_SOURCE_EXTENDED 1
28419 #include <errno.h>
28420 /* The following two lines are a workaround against an autoconf-2.52 bug. */
28421 #include <stdio.h>
28422 #include <stdlib.h>
28424 static long int longval () { return EOVERFLOW; }
28425 static unsigned long int ulongval () { return EOVERFLOW; }
28426 #include <stdio.h>
28427 #include <stdlib.h>
28429 main ()
28432 FILE *f = fopen ("conftest.val", "w");
28433 if (! f)
28434 return 1;
28435 if ((EOVERFLOW) < 0)
28437 long int i = longval ();
28438 if (i != (EOVERFLOW))
28439 return 1;
28440 fprintf (f, "%ld\n", i);
28442 else
28444 unsigned long int i = ulongval ();
28445 if (i != (EOVERFLOW))
28446 return 1;
28447 fprintf (f, "%lu\n", i);
28449 return ferror (f) || fclose (f) != 0;
28452 return 0;
28454 _ACEOF
28455 rm -f conftest$ac_exeext
28456 if { (ac_try="$ac_link"
28457 case "(($ac_try" in
28458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28459 *) ac_try_echo=$ac_try;;
28460 esac
28461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28462 (eval "$ac_link") 2>&5
28463 ac_status=$?
28464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28465 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28466 { (case "(($ac_try" in
28467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28468 *) ac_try_echo=$ac_try;;
28469 esac
28470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28471 (eval "$ac_try") 2>&5
28472 ac_status=$?
28473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28474 (exit $ac_status); }; }; then
28475 ac_cv_decl_EOVERFLOW=`cat conftest.val`
28476 else
28477 echo "$as_me: program exited with status $ac_status" >&5
28478 echo "$as_me: failed program was:" >&5
28479 sed 's/^/| /' conftest.$ac_ext >&5
28482 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28484 rm -f conftest.val
28485 else
28486 ac_cv_decl_EOVERFLOW=E2BIG
28491 { echo "$as_me:$LINENO: result: $ac_cv_decl_EOVERFLOW" >&5
28492 echo "${ECHO_T}$ac_cv_decl_EOVERFLOW" >&6; }
28493 if test "$ac_cv_decl_EOVERFLOW" != yes; then
28495 cat >>confdefs.h <<_ACEOF
28496 #define EOVERFLOW $ac_cv_decl_EOVERFLOW
28497 _ACEOF
28499 EOVERFLOW="$ac_cv_decl_EOVERFLOW"
28504 { echo "$as_me:$LINENO: checking for signed" >&5
28505 echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
28506 if test "${bh_cv_c_signed+set}" = set; then
28507 echo $ECHO_N "(cached) $ECHO_C" >&6
28508 else
28509 cat >conftest.$ac_ext <<_ACEOF
28510 /* confdefs.h. */
28511 _ACEOF
28512 cat confdefs.h >>conftest.$ac_ext
28513 cat >>conftest.$ac_ext <<_ACEOF
28514 /* end confdefs.h. */
28517 main ()
28519 signed char x;
28521 return 0;
28523 _ACEOF
28524 rm -f conftest.$ac_objext
28525 if { (ac_try="$ac_compile"
28526 case "(($ac_try" in
28527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28528 *) ac_try_echo=$ac_try;;
28529 esac
28530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28531 (eval "$ac_compile") 2>conftest.er1
28532 ac_status=$?
28533 grep -v '^ *+' conftest.er1 >conftest.err
28534 rm -f conftest.er1
28535 cat conftest.err >&5
28536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28537 (exit $ac_status); } &&
28538 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28539 { (case "(($ac_try" in
28540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28541 *) ac_try_echo=$ac_try;;
28542 esac
28543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28544 (eval "$ac_try") 2>&5
28545 ac_status=$?
28546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28547 (exit $ac_status); }; } &&
28548 { ac_try='test -s conftest.$ac_objext'
28549 { (case "(($ac_try" in
28550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28551 *) ac_try_echo=$ac_try;;
28552 esac
28553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28554 (eval "$ac_try") 2>&5
28555 ac_status=$?
28556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28557 (exit $ac_status); }; }; then
28558 bh_cv_c_signed=yes
28559 else
28560 echo "$as_me: failed program was:" >&5
28561 sed 's/^/| /' conftest.$ac_ext >&5
28563 bh_cv_c_signed=no
28566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28568 { echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
28569 echo "${ECHO_T}$bh_cv_c_signed" >&6; }
28570 if test $bh_cv_c_signed = no; then
28572 cat >>confdefs.h <<\_ACEOF
28573 #define signed
28574 _ACEOF
28579 { echo "$as_me:$LINENO: checking for wchar_t" >&5
28580 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
28581 if test "${gt_cv_c_wchar_t+set}" = set; then
28582 echo $ECHO_N "(cached) $ECHO_C" >&6
28583 else
28584 cat >conftest.$ac_ext <<_ACEOF
28585 /* confdefs.h. */
28586 _ACEOF
28587 cat confdefs.h >>conftest.$ac_ext
28588 cat >>conftest.$ac_ext <<_ACEOF
28589 /* end confdefs.h. */
28590 #include <stddef.h>
28591 wchar_t foo = (wchar_t)'\0';
28593 main ()
28597 return 0;
28599 _ACEOF
28600 rm -f conftest.$ac_objext
28601 if { (ac_try="$ac_compile"
28602 case "(($ac_try" in
28603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28604 *) ac_try_echo=$ac_try;;
28605 esac
28606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28607 (eval "$ac_compile") 2>conftest.er1
28608 ac_status=$?
28609 grep -v '^ *+' conftest.er1 >conftest.err
28610 rm -f conftest.er1
28611 cat conftest.err >&5
28612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28613 (exit $ac_status); } &&
28614 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28615 { (case "(($ac_try" in
28616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28617 *) ac_try_echo=$ac_try;;
28618 esac
28619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28620 (eval "$ac_try") 2>&5
28621 ac_status=$?
28622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28623 (exit $ac_status); }; } &&
28624 { ac_try='test -s conftest.$ac_objext'
28625 { (case "(($ac_try" in
28626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28627 *) ac_try_echo=$ac_try;;
28628 esac
28629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28630 (eval "$ac_try") 2>&5
28631 ac_status=$?
28632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28633 (exit $ac_status); }; }; then
28634 gt_cv_c_wchar_t=yes
28635 else
28636 echo "$as_me: failed program was:" >&5
28637 sed 's/^/| /' conftest.$ac_ext >&5
28639 gt_cv_c_wchar_t=no
28642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28644 { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
28645 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
28646 if test $gt_cv_c_wchar_t = yes; then
28648 cat >>confdefs.h <<\_ACEOF
28649 #define HAVE_WCHAR_T 1
28650 _ACEOF
28655 { echo "$as_me:$LINENO: checking for wint_t" >&5
28656 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
28657 if test "${gt_cv_c_wint_t+set}" = set; then
28658 echo $ECHO_N "(cached) $ECHO_C" >&6
28659 else
28660 cat >conftest.$ac_ext <<_ACEOF
28661 /* confdefs.h. */
28662 _ACEOF
28663 cat confdefs.h >>conftest.$ac_ext
28664 cat >>conftest.$ac_ext <<_ACEOF
28665 /* end confdefs.h. */
28666 #include <wchar.h>
28667 wint_t foo = (wchar_t)'\0';
28669 main ()
28673 return 0;
28675 _ACEOF
28676 rm -f conftest.$ac_objext
28677 if { (ac_try="$ac_compile"
28678 case "(($ac_try" in
28679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28680 *) ac_try_echo=$ac_try;;
28681 esac
28682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28683 (eval "$ac_compile") 2>conftest.er1
28684 ac_status=$?
28685 grep -v '^ *+' conftest.er1 >conftest.err
28686 rm -f conftest.er1
28687 cat conftest.err >&5
28688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28689 (exit $ac_status); } &&
28690 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28691 { (case "(($ac_try" in
28692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28693 *) ac_try_echo=$ac_try;;
28694 esac
28695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28696 (eval "$ac_try") 2>&5
28697 ac_status=$?
28698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28699 (exit $ac_status); }; } &&
28700 { ac_try='test -s conftest.$ac_objext'
28701 { (case "(($ac_try" in
28702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28703 *) ac_try_echo=$ac_try;;
28704 esac
28705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28706 (eval "$ac_try") 2>&5
28707 ac_status=$?
28708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28709 (exit $ac_status); }; }; then
28710 gt_cv_c_wint_t=yes
28711 else
28712 echo "$as_me: failed program was:" >&5
28713 sed 's/^/| /' conftest.$ac_ext >&5
28715 gt_cv_c_wint_t=no
28718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28720 { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
28721 echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
28722 if test $gt_cv_c_wint_t = yes; then
28724 cat >>confdefs.h <<\_ACEOF
28725 #define HAVE_WINT_T 1
28726 _ACEOF
28733 { echo "$as_me:$LINENO: checking for intmax_t" >&5
28734 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
28735 if test "${gt_cv_c_intmax_t+set}" = set; then
28736 echo $ECHO_N "(cached) $ECHO_C" >&6
28737 else
28738 cat >conftest.$ac_ext <<_ACEOF
28739 /* confdefs.h. */
28740 _ACEOF
28741 cat confdefs.h >>conftest.$ac_ext
28742 cat >>conftest.$ac_ext <<_ACEOF
28743 /* end confdefs.h. */
28745 #include <stddef.h>
28746 #include <stdlib.h>
28747 #if HAVE_STDINT_H_WITH_UINTMAX
28748 #include <stdint.h>
28749 #endif
28750 #if HAVE_INTTYPES_H_WITH_UINTMAX
28751 #include <inttypes.h>
28752 #endif
28755 main ()
28757 intmax_t x = -1;
28759 return 0;
28761 _ACEOF
28762 rm -f conftest.$ac_objext
28763 if { (ac_try="$ac_compile"
28764 case "(($ac_try" in
28765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28766 *) ac_try_echo=$ac_try;;
28767 esac
28768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28769 (eval "$ac_compile") 2>conftest.er1
28770 ac_status=$?
28771 grep -v '^ *+' conftest.er1 >conftest.err
28772 rm -f conftest.er1
28773 cat conftest.err >&5
28774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28775 (exit $ac_status); } &&
28776 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28777 { (case "(($ac_try" in
28778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28779 *) ac_try_echo=$ac_try;;
28780 esac
28781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28782 (eval "$ac_try") 2>&5
28783 ac_status=$?
28784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28785 (exit $ac_status); }; } &&
28786 { ac_try='test -s conftest.$ac_objext'
28787 { (case "(($ac_try" in
28788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28789 *) ac_try_echo=$ac_try;;
28790 esac
28791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28792 (eval "$ac_try") 2>&5
28793 ac_status=$?
28794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28795 (exit $ac_status); }; }; then
28796 gt_cv_c_intmax_t=yes
28797 else
28798 echo "$as_me: failed program was:" >&5
28799 sed 's/^/| /' conftest.$ac_ext >&5
28801 gt_cv_c_intmax_t=no
28804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28806 { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
28807 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
28808 if test $gt_cv_c_intmax_t = yes; then
28810 cat >>confdefs.h <<\_ACEOF
28811 #define HAVE_INTMAX_T 1
28812 _ACEOF
28814 else
28816 test $ac_cv_type_long_long = yes \
28817 && ac_type='long long' \
28818 || ac_type='long'
28820 cat >>confdefs.h <<_ACEOF
28821 #define intmax_t $ac_type
28822 _ACEOF
28829 for ac_func in vasnprintf
28831 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28832 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28833 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28834 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28835 echo $ECHO_N "(cached) $ECHO_C" >&6
28836 else
28837 cat >conftest.$ac_ext <<_ACEOF
28838 /* confdefs.h. */
28839 _ACEOF
28840 cat confdefs.h >>conftest.$ac_ext
28841 cat >>conftest.$ac_ext <<_ACEOF
28842 /* end confdefs.h. */
28843 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28844 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28845 #define $ac_func innocuous_$ac_func
28847 /* System header to define __stub macros and hopefully few prototypes,
28848 which can conflict with char $ac_func (); below.
28849 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28850 <limits.h> exists even on freestanding compilers. */
28852 #ifdef __STDC__
28853 # include <limits.h>
28854 #else
28855 # include <assert.h>
28856 #endif
28858 #undef $ac_func
28860 /* Override any GCC internal prototype to avoid an error.
28861 Use char because int might match the return type of a GCC
28862 builtin and then its argument prototype would still apply. */
28863 #ifdef __cplusplus
28864 extern "C"
28865 #endif
28866 char $ac_func ();
28867 /* The GNU C library defines this for functions which it implements
28868 to always fail with ENOSYS. Some functions are actually named
28869 something starting with __ and the normal name is an alias. */
28870 #if defined __stub_$ac_func || defined __stub___$ac_func
28871 choke me
28872 #endif
28875 main ()
28877 return $ac_func ();
28879 return 0;
28881 _ACEOF
28882 rm -f conftest.$ac_objext conftest$ac_exeext
28883 if { (ac_try="$ac_link"
28884 case "(($ac_try" in
28885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28886 *) ac_try_echo=$ac_try;;
28887 esac
28888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28889 (eval "$ac_link") 2>conftest.er1
28890 ac_status=$?
28891 grep -v '^ *+' conftest.er1 >conftest.err
28892 rm -f conftest.er1
28893 cat conftest.err >&5
28894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28895 (exit $ac_status); } &&
28896 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28897 { (case "(($ac_try" in
28898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28899 *) ac_try_echo=$ac_try;;
28900 esac
28901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28902 (eval "$ac_try") 2>&5
28903 ac_status=$?
28904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28905 (exit $ac_status); }; } &&
28906 { ac_try='test -s conftest$ac_exeext'
28907 { (case "(($ac_try" in
28908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28909 *) ac_try_echo=$ac_try;;
28910 esac
28911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28912 (eval "$ac_try") 2>&5
28913 ac_status=$?
28914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28915 (exit $ac_status); }; }; then
28916 eval "$as_ac_var=yes"
28917 else
28918 echo "$as_me: failed program was:" >&5
28919 sed 's/^/| /' conftest.$ac_ext >&5
28921 eval "$as_ac_var=no"
28924 rm -f core conftest.err conftest.$ac_objext \
28925 conftest$ac_exeext conftest.$ac_ext
28927 ac_res=`eval echo '${'$as_ac_var'}'`
28928 { echo "$as_me:$LINENO: result: $ac_res" >&5
28929 echo "${ECHO_T}$ac_res" >&6; }
28930 if test `eval echo '${'$as_ac_var'}'` = yes; then
28931 cat >>confdefs.h <<_ACEOF
28932 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28933 _ACEOF
28935 else
28936 case " $LIBOBJS " in
28937 *" $ac_func.$ac_objext "* ) ;;
28938 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
28940 esac
28943 done
28946 if test $ac_cv_func_vasnprintf = no; then
28947 case " $LIBOBJS " in
28948 *" printf-args.$ac_objext "* ) ;;
28949 *) LIBOBJS="$LIBOBJS printf-args.$ac_objext"
28951 esac
28953 case " $LIBOBJS " in
28954 *" printf-parse.$ac_objext "* ) ;;
28955 *) LIBOBJS="$LIBOBJS printf-parse.$ac_objext"
28957 esac
28959 case " $LIBOBJS " in
28960 *" asnprintf.$ac_objext "* ) ;;
28961 *) LIBOBJS="$LIBOBJS asnprintf.$ac_objext"
28963 esac
28978 { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
28979 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
28980 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
28981 echo $ECHO_N "(cached) $ECHO_C" >&6
28982 else
28983 cat >conftest.$ac_ext <<_ACEOF
28984 /* confdefs.h. */
28985 _ACEOF
28986 cat confdefs.h >>conftest.$ac_ext
28987 cat >>conftest.$ac_ext <<_ACEOF
28988 /* end confdefs.h. */
28989 $ac_includes_default
28990 typedef ptrdiff_t ac__type_new_;
28992 main ()
28994 if ((ac__type_new_ *) 0)
28995 return 0;
28996 if (sizeof (ac__type_new_))
28997 return 0;
28999 return 0;
29001 _ACEOF
29002 rm -f conftest.$ac_objext
29003 if { (ac_try="$ac_compile"
29004 case "(($ac_try" in
29005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29006 *) ac_try_echo=$ac_try;;
29007 esac
29008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29009 (eval "$ac_compile") 2>conftest.er1
29010 ac_status=$?
29011 grep -v '^ *+' conftest.er1 >conftest.err
29012 rm -f conftest.er1
29013 cat conftest.err >&5
29014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29015 (exit $ac_status); } &&
29016 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29017 { (case "(($ac_try" in
29018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29019 *) ac_try_echo=$ac_try;;
29020 esac
29021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29022 (eval "$ac_try") 2>&5
29023 ac_status=$?
29024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29025 (exit $ac_status); }; } &&
29026 { ac_try='test -s conftest.$ac_objext'
29027 { (case "(($ac_try" in
29028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29029 *) ac_try_echo=$ac_try;;
29030 esac
29031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29032 (eval "$ac_try") 2>&5
29033 ac_status=$?
29034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29035 (exit $ac_status); }; }; then
29036 ac_cv_type_ptrdiff_t=yes
29037 else
29038 echo "$as_me: failed program was:" >&5
29039 sed 's/^/| /' conftest.$ac_ext >&5
29041 ac_cv_type_ptrdiff_t=no
29044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29046 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
29047 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
29048 if test $ac_cv_type_ptrdiff_t = yes; then
29050 cat >>confdefs.h <<_ACEOF
29051 #define HAVE_PTRDIFF_T 1
29052 _ACEOF
29067 for ac_func in snprintf wcslen
29069 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29070 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29071 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29072 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29073 echo $ECHO_N "(cached) $ECHO_C" >&6
29074 else
29075 cat >conftest.$ac_ext <<_ACEOF
29076 /* confdefs.h. */
29077 _ACEOF
29078 cat confdefs.h >>conftest.$ac_ext
29079 cat >>conftest.$ac_ext <<_ACEOF
29080 /* end confdefs.h. */
29081 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29082 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29083 #define $ac_func innocuous_$ac_func
29085 /* System header to define __stub macros and hopefully few prototypes,
29086 which can conflict with char $ac_func (); below.
29087 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29088 <limits.h> exists even on freestanding compilers. */
29090 #ifdef __STDC__
29091 # include <limits.h>
29092 #else
29093 # include <assert.h>
29094 #endif
29096 #undef $ac_func
29098 /* Override any GCC internal prototype to avoid an error.
29099 Use char because int might match the return type of a GCC
29100 builtin and then its argument prototype would still apply. */
29101 #ifdef __cplusplus
29102 extern "C"
29103 #endif
29104 char $ac_func ();
29105 /* The GNU C library defines this for functions which it implements
29106 to always fail with ENOSYS. Some functions are actually named
29107 something starting with __ and the normal name is an alias. */
29108 #if defined __stub_$ac_func || defined __stub___$ac_func
29109 choke me
29110 #endif
29113 main ()
29115 return $ac_func ();
29117 return 0;
29119 _ACEOF
29120 rm -f conftest.$ac_objext conftest$ac_exeext
29121 if { (ac_try="$ac_link"
29122 case "(($ac_try" in
29123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29124 *) ac_try_echo=$ac_try;;
29125 esac
29126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29127 (eval "$ac_link") 2>conftest.er1
29128 ac_status=$?
29129 grep -v '^ *+' conftest.er1 >conftest.err
29130 rm -f conftest.er1
29131 cat conftest.err >&5
29132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29133 (exit $ac_status); } &&
29134 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29135 { (case "(($ac_try" in
29136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29137 *) ac_try_echo=$ac_try;;
29138 esac
29139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29140 (eval "$ac_try") 2>&5
29141 ac_status=$?
29142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29143 (exit $ac_status); }; } &&
29144 { ac_try='test -s conftest$ac_exeext'
29145 { (case "(($ac_try" in
29146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29147 *) ac_try_echo=$ac_try;;
29148 esac
29149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29150 (eval "$ac_try") 2>&5
29151 ac_status=$?
29152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29153 (exit $ac_status); }; }; then
29154 eval "$as_ac_var=yes"
29155 else
29156 echo "$as_me: failed program was:" >&5
29157 sed 's/^/| /' conftest.$ac_ext >&5
29159 eval "$as_ac_var=no"
29162 rm -f core conftest.err conftest.$ac_objext \
29163 conftest$ac_exeext conftest.$ac_ext
29165 ac_res=`eval echo '${'$as_ac_var'}'`
29166 { echo "$as_me:$LINENO: result: $ac_res" >&5
29167 echo "${ECHO_T}$ac_res" >&6; }
29168 if test `eval echo '${'$as_ac_var'}'` = yes; then
29169 cat >>confdefs.h <<_ACEOF
29170 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29171 _ACEOF
29174 done
29183 for ac_func in vasprintf
29185 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29186 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29187 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29188 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29189 echo $ECHO_N "(cached) $ECHO_C" >&6
29190 else
29191 cat >conftest.$ac_ext <<_ACEOF
29192 /* confdefs.h. */
29193 _ACEOF
29194 cat confdefs.h >>conftest.$ac_ext
29195 cat >>conftest.$ac_ext <<_ACEOF
29196 /* end confdefs.h. */
29197 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29198 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29199 #define $ac_func innocuous_$ac_func
29201 /* System header to define __stub macros and hopefully few prototypes,
29202 which can conflict with char $ac_func (); below.
29203 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29204 <limits.h> exists even on freestanding compilers. */
29206 #ifdef __STDC__
29207 # include <limits.h>
29208 #else
29209 # include <assert.h>
29210 #endif
29212 #undef $ac_func
29214 /* Override any GCC internal prototype to avoid an error.
29215 Use char because int might match the return type of a GCC
29216 builtin and then its argument prototype would still apply. */
29217 #ifdef __cplusplus
29218 extern "C"
29219 #endif
29220 char $ac_func ();
29221 /* The GNU C library defines this for functions which it implements
29222 to always fail with ENOSYS. Some functions are actually named
29223 something starting with __ and the normal name is an alias. */
29224 #if defined __stub_$ac_func || defined __stub___$ac_func
29225 choke me
29226 #endif
29229 main ()
29231 return $ac_func ();
29233 return 0;
29235 _ACEOF
29236 rm -f conftest.$ac_objext conftest$ac_exeext
29237 if { (ac_try="$ac_link"
29238 case "(($ac_try" in
29239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29240 *) ac_try_echo=$ac_try;;
29241 esac
29242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29243 (eval "$ac_link") 2>conftest.er1
29244 ac_status=$?
29245 grep -v '^ *+' conftest.er1 >conftest.err
29246 rm -f conftest.er1
29247 cat conftest.err >&5
29248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29249 (exit $ac_status); } &&
29250 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29251 { (case "(($ac_try" in
29252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29253 *) ac_try_echo=$ac_try;;
29254 esac
29255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29256 (eval "$ac_try") 2>&5
29257 ac_status=$?
29258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29259 (exit $ac_status); }; } &&
29260 { ac_try='test -s conftest$ac_exeext'
29261 { (case "(($ac_try" in
29262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29263 *) ac_try_echo=$ac_try;;
29264 esac
29265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29266 (eval "$ac_try") 2>&5
29267 ac_status=$?
29268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29269 (exit $ac_status); }; }; then
29270 eval "$as_ac_var=yes"
29271 else
29272 echo "$as_me: failed program was:" >&5
29273 sed 's/^/| /' conftest.$ac_ext >&5
29275 eval "$as_ac_var=no"
29278 rm -f core conftest.err conftest.$ac_objext \
29279 conftest$ac_exeext conftest.$ac_ext
29281 ac_res=`eval echo '${'$as_ac_var'}'`
29282 { echo "$as_me:$LINENO: result: $ac_res" >&5
29283 echo "${ECHO_T}$ac_res" >&6; }
29284 if test `eval echo '${'$as_ac_var'}'` = yes; then
29285 cat >>confdefs.h <<_ACEOF
29286 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29287 _ACEOF
29289 else
29290 case " $LIBOBJS " in
29291 *" $ac_func.$ac_objext "* ) ;;
29292 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
29294 esac
29297 done
29300 if test $ac_cv_func_vasprintf = no; then
29301 case " $LIBOBJS " in
29302 *" asprintf.$ac_objext "* ) ;;
29303 *) LIBOBJS="$LIBOBJS asprintf.$ac_objext"
29305 esac
29344 { echo "$as_me:$LINENO: checking whether wcwidth is declared" >&5
29345 echo $ECHO_N "checking whether wcwidth is declared... $ECHO_C" >&6; }
29346 if test "${ac_cv_have_decl_wcwidth+set}" = set; then
29347 echo $ECHO_N "(cached) $ECHO_C" >&6
29348 else
29349 cat >conftest.$ac_ext <<_ACEOF
29350 /* confdefs.h. */
29351 _ACEOF
29352 cat confdefs.h >>conftest.$ac_ext
29353 cat >>conftest.$ac_ext <<_ACEOF
29354 /* end confdefs.h. */
29356 /* AIX 3.2.5 declares wcwidth in <string.h>. */
29357 #include <string.h>
29358 #if HAVE_WCHAR_H
29359 # include <wchar.h>
29360 #endif
29364 main ()
29366 #ifndef wcwidth
29367 char *p = (char *) wcwidth;
29368 return !p;
29369 #endif
29372 return 0;
29374 _ACEOF
29375 rm -f conftest.$ac_objext
29376 if { (ac_try="$ac_compile"
29377 case "(($ac_try" in
29378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29379 *) ac_try_echo=$ac_try;;
29380 esac
29381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29382 (eval "$ac_compile") 2>conftest.er1
29383 ac_status=$?
29384 grep -v '^ *+' conftest.er1 >conftest.err
29385 rm -f conftest.er1
29386 cat conftest.err >&5
29387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29388 (exit $ac_status); } &&
29389 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29390 { (case "(($ac_try" in
29391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29392 *) ac_try_echo=$ac_try;;
29393 esac
29394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29395 (eval "$ac_try") 2>&5
29396 ac_status=$?
29397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29398 (exit $ac_status); }; } &&
29399 { ac_try='test -s conftest.$ac_objext'
29400 { (case "(($ac_try" in
29401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29402 *) ac_try_echo=$ac_try;;
29403 esac
29404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29405 (eval "$ac_try") 2>&5
29406 ac_status=$?
29407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29408 (exit $ac_status); }; }; then
29409 ac_cv_have_decl_wcwidth=yes
29410 else
29411 echo "$as_me: failed program was:" >&5
29412 sed 's/^/| /' conftest.$ac_ext >&5
29414 ac_cv_have_decl_wcwidth=no
29417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29419 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_wcwidth" >&5
29420 echo "${ECHO_T}$ac_cv_have_decl_wcwidth" >&6; }
29421 if test $ac_cv_have_decl_wcwidth = yes; then
29423 cat >>confdefs.h <<_ACEOF
29424 #define HAVE_DECL_WCWIDTH 1
29425 _ACEOF
29428 else
29429 cat >>confdefs.h <<_ACEOF
29430 #define HAVE_DECL_WCWIDTH 0
29431 _ACEOF
29458 { echo "$as_me:$LINENO: checking for struct timespec" >&5
29459 echo $ECHO_N "checking for struct timespec... $ECHO_C" >&6; }
29460 if test "${fu_cv_sys_struct_timespec+set}" = set; then
29461 echo $ECHO_N "(cached) $ECHO_C" >&6
29462 else
29463 cat >conftest.$ac_ext <<_ACEOF
29464 /* confdefs.h. */
29465 _ACEOF
29466 cat confdefs.h >>conftest.$ac_ext
29467 cat >>conftest.$ac_ext <<_ACEOF
29468 /* end confdefs.h. */
29470 # if TIME_WITH_SYS_TIME
29471 # include <sys/time.h>
29472 # include <time.h>
29473 # else
29474 # if HAVE_SYS_TIME_H
29475 # include <sys/time.h>
29476 # else
29477 # include <time.h>
29478 # endif
29479 # endif
29482 main ()
29484 static struct timespec x; x.tv_sec = x.tv_nsec;
29486 return 0;
29488 _ACEOF
29489 rm -f conftest.$ac_objext
29490 if { (ac_try="$ac_compile"
29491 case "(($ac_try" in
29492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29493 *) ac_try_echo=$ac_try;;
29494 esac
29495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29496 (eval "$ac_compile") 2>conftest.er1
29497 ac_status=$?
29498 grep -v '^ *+' conftest.er1 >conftest.err
29499 rm -f conftest.er1
29500 cat conftest.err >&5
29501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29502 (exit $ac_status); } &&
29503 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29504 { (case "(($ac_try" in
29505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29506 *) ac_try_echo=$ac_try;;
29507 esac
29508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29509 (eval "$ac_try") 2>&5
29510 ac_status=$?
29511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29512 (exit $ac_status); }; } &&
29513 { ac_try='test -s conftest.$ac_objext'
29514 { (case "(($ac_try" in
29515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29516 *) ac_try_echo=$ac_try;;
29517 esac
29518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29519 (eval "$ac_try") 2>&5
29520 ac_status=$?
29521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29522 (exit $ac_status); }; }; then
29523 fu_cv_sys_struct_timespec=yes
29524 else
29525 echo "$as_me: failed program was:" >&5
29526 sed 's/^/| /' conftest.$ac_ext >&5
29528 fu_cv_sys_struct_timespec=no
29531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29534 { echo "$as_me:$LINENO: result: $fu_cv_sys_struct_timespec" >&5
29535 echo "${ECHO_T}$fu_cv_sys_struct_timespec" >&6; }
29537 if test $fu_cv_sys_struct_timespec = yes; then
29539 cat >>confdefs.h <<\_ACEOF
29540 #define HAVE_STRUCT_TIMESPEC 1
29541 _ACEOF
29548 { echo "$as_me:$LINENO: checking whether nanosleep is declared" >&5
29549 echo $ECHO_N "checking whether nanosleep is declared... $ECHO_C" >&6; }
29550 if test "${ac_cv_have_decl_nanosleep+set}" = set; then
29551 echo $ECHO_N "(cached) $ECHO_C" >&6
29552 else
29553 cat >conftest.$ac_ext <<_ACEOF
29554 /* confdefs.h. */
29555 _ACEOF
29556 cat confdefs.h >>conftest.$ac_ext
29557 cat >>conftest.$ac_ext <<_ACEOF
29558 /* end confdefs.h. */
29559 #include <time.h>
29562 main ()
29564 #ifndef nanosleep
29565 char *p = (char *) nanosleep;
29566 return !p;
29567 #endif
29570 return 0;
29572 _ACEOF
29573 rm -f conftest.$ac_objext
29574 if { (ac_try="$ac_compile"
29575 case "(($ac_try" in
29576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29577 *) ac_try_echo=$ac_try;;
29578 esac
29579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29580 (eval "$ac_compile") 2>conftest.er1
29581 ac_status=$?
29582 grep -v '^ *+' conftest.er1 >conftest.err
29583 rm -f conftest.er1
29584 cat conftest.err >&5
29585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29586 (exit $ac_status); } &&
29587 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29588 { (case "(($ac_try" in
29589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29590 *) ac_try_echo=$ac_try;;
29591 esac
29592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29593 (eval "$ac_try") 2>&5
29594 ac_status=$?
29595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29596 (exit $ac_status); }; } &&
29597 { ac_try='test -s conftest.$ac_objext'
29598 { (case "(($ac_try" in
29599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29600 *) ac_try_echo=$ac_try;;
29601 esac
29602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29603 (eval "$ac_try") 2>&5
29604 ac_status=$?
29605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29606 (exit $ac_status); }; }; then
29607 ac_cv_have_decl_nanosleep=yes
29608 else
29609 echo "$as_me: failed program was:" >&5
29610 sed 's/^/| /' conftest.$ac_ext >&5
29612 ac_cv_have_decl_nanosleep=no
29615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29617 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_nanosleep" >&5
29618 echo "${ECHO_T}$ac_cv_have_decl_nanosleep" >&6; }
29619 if test $ac_cv_have_decl_nanosleep = yes; then
29621 cat >>confdefs.h <<_ACEOF
29622 #define HAVE_DECL_NANOSLEEP 1
29623 _ACEOF
29626 else
29627 cat >>confdefs.h <<_ACEOF
29628 #define HAVE_DECL_NANOSLEEP 0
29629 _ACEOF
29637 # getdate.y works with bison only.
29638 : ${YACC='bison -y'}
29641 { echo "$as_me:$LINENO: checking for compound literals" >&5
29642 echo $ECHO_N "checking for compound literals... $ECHO_C" >&6; }
29643 if test "${gl_cv_compound_literals+set}" = set; then
29644 echo $ECHO_N "(cached) $ECHO_C" >&6
29645 else
29646 cat >conftest.$ac_ext <<_ACEOF
29647 /* confdefs.h. */
29648 _ACEOF
29649 cat confdefs.h >>conftest.$ac_ext
29650 cat >>conftest.$ac_ext <<_ACEOF
29651 /* end confdefs.h. */
29652 struct s { int i, j; }; struct s s = (struct s) { 1, 2 };
29654 main ()
29656 struct s t = (struct s) { 3, 4 };
29658 return 0;
29660 _ACEOF
29661 rm -f conftest.$ac_objext
29662 if { (ac_try="$ac_compile"
29663 case "(($ac_try" in
29664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29665 *) ac_try_echo=$ac_try;;
29666 esac
29667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29668 (eval "$ac_compile") 2>conftest.er1
29669 ac_status=$?
29670 grep -v '^ *+' conftest.er1 >conftest.err
29671 rm -f conftest.er1
29672 cat conftest.err >&5
29673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29674 (exit $ac_status); } &&
29675 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29676 { (case "(($ac_try" in
29677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29678 *) ac_try_echo=$ac_try;;
29679 esac
29680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29681 (eval "$ac_try") 2>&5
29682 ac_status=$?
29683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29684 (exit $ac_status); }; } &&
29685 { ac_try='test -s conftest.$ac_objext'
29686 { (case "(($ac_try" in
29687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29688 *) ac_try_echo=$ac_try;;
29689 esac
29690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29691 (eval "$ac_try") 2>&5
29692 ac_status=$?
29693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29694 (exit $ac_status); }; }; then
29695 gl_cv_compound_literals=yes
29696 else
29697 echo "$as_me: failed program was:" >&5
29698 sed 's/^/| /' conftest.$ac_ext >&5
29700 gl_cv_compound_literals=no
29703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29705 { echo "$as_me:$LINENO: result: $gl_cv_compound_literals" >&5
29706 echo "${ECHO_T}$gl_cv_compound_literals" >&6; }
29707 if test $gl_cv_compound_literals = yes; then
29709 cat >>confdefs.h <<\_ACEOF
29710 #define HAVE_COMPOUND_LITERALS 1
29711 _ACEOF
29715 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
29716 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
29717 if test "${ac_cv_struct_tm+set}" = set; then
29718 echo $ECHO_N "(cached) $ECHO_C" >&6
29719 else
29720 cat >conftest.$ac_ext <<_ACEOF
29721 /* confdefs.h. */
29722 _ACEOF
29723 cat confdefs.h >>conftest.$ac_ext
29724 cat >>conftest.$ac_ext <<_ACEOF
29725 /* end confdefs.h. */
29726 #include <sys/types.h>
29727 #include <time.h>
29730 main ()
29732 struct tm *tp; tp->tm_sec;
29734 return 0;
29736 _ACEOF
29737 rm -f conftest.$ac_objext
29738 if { (ac_try="$ac_compile"
29739 case "(($ac_try" in
29740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29741 *) ac_try_echo=$ac_try;;
29742 esac
29743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29744 (eval "$ac_compile") 2>conftest.er1
29745 ac_status=$?
29746 grep -v '^ *+' conftest.er1 >conftest.err
29747 rm -f conftest.er1
29748 cat conftest.err >&5
29749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29750 (exit $ac_status); } &&
29751 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29752 { (case "(($ac_try" in
29753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29754 *) ac_try_echo=$ac_try;;
29755 esac
29756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29757 (eval "$ac_try") 2>&5
29758 ac_status=$?
29759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29760 (exit $ac_status); }; } &&
29761 { ac_try='test -s conftest.$ac_objext'
29762 { (case "(($ac_try" in
29763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29764 *) ac_try_echo=$ac_try;;
29765 esac
29766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29767 (eval "$ac_try") 2>&5
29768 ac_status=$?
29769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29770 (exit $ac_status); }; }; then
29771 ac_cv_struct_tm=time.h
29772 else
29773 echo "$as_me: failed program was:" >&5
29774 sed 's/^/| /' conftest.$ac_ext >&5
29776 ac_cv_struct_tm=sys/time.h
29779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29781 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
29782 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
29783 if test $ac_cv_struct_tm = sys/time.h; then
29785 cat >>confdefs.h <<\_ACEOF
29786 #define TM_IN_SYS_TIME 1
29787 _ACEOF
29794 # Solaris 2.5.1 needs -lposix4 to get the clock_gettime function.
29795 # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
29797 # Save and restore LIBS so e.g., -lrt, isn't added to it. Otherwise, *all*
29798 # programs in the package would end up linked with that potentially-shared
29799 # library, inducing unnecessary run-time overhead.
29800 gl_saved_libs=$LIBS
29801 { echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
29802 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
29803 if test "${ac_cv_search_clock_gettime+set}" = set; then
29804 echo $ECHO_N "(cached) $ECHO_C" >&6
29805 else
29806 ac_func_search_save_LIBS=$LIBS
29807 cat >conftest.$ac_ext <<_ACEOF
29808 /* confdefs.h. */
29809 _ACEOF
29810 cat confdefs.h >>conftest.$ac_ext
29811 cat >>conftest.$ac_ext <<_ACEOF
29812 /* end confdefs.h. */
29814 /* Override any GCC internal prototype to avoid an error.
29815 Use char because int might match the return type of a GCC
29816 builtin and then its argument prototype would still apply. */
29817 #ifdef __cplusplus
29818 extern "C"
29819 #endif
29820 char clock_gettime ();
29822 main ()
29824 return clock_gettime ();
29826 return 0;
29828 _ACEOF
29829 for ac_lib in '' rt posix4; do
29830 if test -z "$ac_lib"; then
29831 ac_res="none required"
29832 else
29833 ac_res=-l$ac_lib
29834 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29836 rm -f conftest.$ac_objext conftest$ac_exeext
29837 if { (ac_try="$ac_link"
29838 case "(($ac_try" in
29839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29840 *) ac_try_echo=$ac_try;;
29841 esac
29842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29843 (eval "$ac_link") 2>conftest.er1
29844 ac_status=$?
29845 grep -v '^ *+' conftest.er1 >conftest.err
29846 rm -f conftest.er1
29847 cat conftest.err >&5
29848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29849 (exit $ac_status); } &&
29850 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29851 { (case "(($ac_try" in
29852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29853 *) ac_try_echo=$ac_try;;
29854 esac
29855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29856 (eval "$ac_try") 2>&5
29857 ac_status=$?
29858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29859 (exit $ac_status); }; } &&
29860 { ac_try='test -s conftest$ac_exeext'
29861 { (case "(($ac_try" in
29862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29863 *) ac_try_echo=$ac_try;;
29864 esac
29865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29866 (eval "$ac_try") 2>&5
29867 ac_status=$?
29868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29869 (exit $ac_status); }; }; then
29870 ac_cv_search_clock_gettime=$ac_res
29871 else
29872 echo "$as_me: failed program was:" >&5
29873 sed 's/^/| /' conftest.$ac_ext >&5
29878 rm -f core conftest.err conftest.$ac_objext \
29879 conftest$ac_exeext
29880 if test "${ac_cv_search_clock_gettime+set}" = set; then
29881 break
29883 done
29884 if test "${ac_cv_search_clock_gettime+set}" = set; then
29886 else
29887 ac_cv_search_clock_gettime=no
29889 rm conftest.$ac_ext
29890 LIBS=$ac_func_search_save_LIBS
29892 { echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
29893 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
29894 ac_res=$ac_cv_search_clock_gettime
29895 if test "$ac_res" != no; then
29896 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29897 test "$ac_cv_search_clock_gettime" = "none required" ||
29898 LIB_CLOCK_GETTIME=$ac_cv_search_clock_gettime
29904 for ac_func in clock_gettime clock_settime
29906 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29907 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29908 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29909 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29910 echo $ECHO_N "(cached) $ECHO_C" >&6
29911 else
29912 cat >conftest.$ac_ext <<_ACEOF
29913 /* confdefs.h. */
29914 _ACEOF
29915 cat confdefs.h >>conftest.$ac_ext
29916 cat >>conftest.$ac_ext <<_ACEOF
29917 /* end confdefs.h. */
29918 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29919 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29920 #define $ac_func innocuous_$ac_func
29922 /* System header to define __stub macros and hopefully few prototypes,
29923 which can conflict with char $ac_func (); below.
29924 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29925 <limits.h> exists even on freestanding compilers. */
29927 #ifdef __STDC__
29928 # include <limits.h>
29929 #else
29930 # include <assert.h>
29931 #endif
29933 #undef $ac_func
29935 /* Override any GCC internal prototype to avoid an error.
29936 Use char because int might match the return type of a GCC
29937 builtin and then its argument prototype would still apply. */
29938 #ifdef __cplusplus
29939 extern "C"
29940 #endif
29941 char $ac_func ();
29942 /* The GNU C library defines this for functions which it implements
29943 to always fail with ENOSYS. Some functions are actually named
29944 something starting with __ and the normal name is an alias. */
29945 #if defined __stub_$ac_func || defined __stub___$ac_func
29946 choke me
29947 #endif
29950 main ()
29952 return $ac_func ();
29954 return 0;
29956 _ACEOF
29957 rm -f conftest.$ac_objext conftest$ac_exeext
29958 if { (ac_try="$ac_link"
29959 case "(($ac_try" in
29960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29961 *) ac_try_echo=$ac_try;;
29962 esac
29963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29964 (eval "$ac_link") 2>conftest.er1
29965 ac_status=$?
29966 grep -v '^ *+' conftest.er1 >conftest.err
29967 rm -f conftest.er1
29968 cat conftest.err >&5
29969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29970 (exit $ac_status); } &&
29971 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29972 { (case "(($ac_try" in
29973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29974 *) ac_try_echo=$ac_try;;
29975 esac
29976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29977 (eval "$ac_try") 2>&5
29978 ac_status=$?
29979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29980 (exit $ac_status); }; } &&
29981 { ac_try='test -s conftest$ac_exeext'
29982 { (case "(($ac_try" in
29983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29984 *) ac_try_echo=$ac_try;;
29985 esac
29986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29987 (eval "$ac_try") 2>&5
29988 ac_status=$?
29989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29990 (exit $ac_status); }; }; then
29991 eval "$as_ac_var=yes"
29992 else
29993 echo "$as_me: failed program was:" >&5
29994 sed 's/^/| /' conftest.$ac_ext >&5
29996 eval "$as_ac_var=no"
29999 rm -f core conftest.err conftest.$ac_objext \
30000 conftest$ac_exeext conftest.$ac_ext
30002 ac_res=`eval echo '${'$as_ac_var'}'`
30003 { echo "$as_me:$LINENO: result: $ac_res" >&5
30004 echo "${ECHO_T}$ac_res" >&6; }
30005 if test `eval echo '${'$as_ac_var'}'` = yes; then
30006 cat >>confdefs.h <<_ACEOF
30007 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30008 _ACEOF
30011 done
30013 LIBS=$gl_saved_libs
30016 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
30017 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
30018 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
30019 echo $ECHO_N "(cached) $ECHO_C" >&6
30020 else
30021 cat >conftest.$ac_ext <<_ACEOF
30022 /* confdefs.h. */
30023 _ACEOF
30024 cat confdefs.h >>conftest.$ac_ext
30025 cat >>conftest.$ac_ext <<_ACEOF
30026 /* end confdefs.h. */
30027 #include <time.h>
30030 main ()
30032 static struct tm ac_aggr;
30033 if (ac_aggr.tm_gmtoff)
30034 return 0;
30036 return 0;
30038 _ACEOF
30039 rm -f conftest.$ac_objext
30040 if { (ac_try="$ac_compile"
30041 case "(($ac_try" in
30042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30043 *) ac_try_echo=$ac_try;;
30044 esac
30045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30046 (eval "$ac_compile") 2>conftest.er1
30047 ac_status=$?
30048 grep -v '^ *+' conftest.er1 >conftest.err
30049 rm -f conftest.er1
30050 cat conftest.err >&5
30051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30052 (exit $ac_status); } &&
30053 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30054 { (case "(($ac_try" in
30055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30056 *) ac_try_echo=$ac_try;;
30057 esac
30058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30059 (eval "$ac_try") 2>&5
30060 ac_status=$?
30061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30062 (exit $ac_status); }; } &&
30063 { ac_try='test -s conftest.$ac_objext'
30064 { (case "(($ac_try" in
30065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30066 *) ac_try_echo=$ac_try;;
30067 esac
30068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30069 (eval "$ac_try") 2>&5
30070 ac_status=$?
30071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30072 (exit $ac_status); }; }; then
30073 ac_cv_member_struct_tm_tm_gmtoff=yes
30074 else
30075 echo "$as_me: failed program was:" >&5
30076 sed 's/^/| /' conftest.$ac_ext >&5
30078 cat >conftest.$ac_ext <<_ACEOF
30079 /* confdefs.h. */
30080 _ACEOF
30081 cat confdefs.h >>conftest.$ac_ext
30082 cat >>conftest.$ac_ext <<_ACEOF
30083 /* end confdefs.h. */
30084 #include <time.h>
30087 main ()
30089 static struct tm ac_aggr;
30090 if (sizeof ac_aggr.tm_gmtoff)
30091 return 0;
30093 return 0;
30095 _ACEOF
30096 rm -f conftest.$ac_objext
30097 if { (ac_try="$ac_compile"
30098 case "(($ac_try" in
30099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30100 *) ac_try_echo=$ac_try;;
30101 esac
30102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30103 (eval "$ac_compile") 2>conftest.er1
30104 ac_status=$?
30105 grep -v '^ *+' conftest.er1 >conftest.err
30106 rm -f conftest.er1
30107 cat conftest.err >&5
30108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30109 (exit $ac_status); } &&
30110 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30111 { (case "(($ac_try" in
30112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30113 *) ac_try_echo=$ac_try;;
30114 esac
30115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30116 (eval "$ac_try") 2>&5
30117 ac_status=$?
30118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30119 (exit $ac_status); }; } &&
30120 { ac_try='test -s conftest.$ac_objext'
30121 { (case "(($ac_try" in
30122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30123 *) ac_try_echo=$ac_try;;
30124 esac
30125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30126 (eval "$ac_try") 2>&5
30127 ac_status=$?
30128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30129 (exit $ac_status); }; }; then
30130 ac_cv_member_struct_tm_tm_gmtoff=yes
30131 else
30132 echo "$as_me: failed program was:" >&5
30133 sed 's/^/| /' conftest.$ac_ext >&5
30135 ac_cv_member_struct_tm_tm_gmtoff=no
30138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30143 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
30144 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
30145 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
30147 cat >>confdefs.h <<\_ACEOF
30148 #define HAVE_TM_GMTOFF 1
30149 _ACEOF
30156 case " $LIBOBJS " in
30157 *" getdate.$ac_objext "* ) ;;
30158 *) LIBOBJS="$LIBOBJS getdate.$ac_objext"
30160 esac
30168 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
30169 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
30170 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
30171 echo $ECHO_N "(cached) $ECHO_C" >&6
30172 else
30173 cat >conftest.$ac_ext <<_ACEOF
30174 /* confdefs.h. */
30175 _ACEOF
30176 cat confdefs.h >>conftest.$ac_ext
30177 cat >>conftest.$ac_ext <<_ACEOF
30178 /* end confdefs.h. */
30179 #include <sys/types.h>
30180 #include <$ac_cv_struct_tm>
30184 main ()
30186 static struct tm ac_aggr;
30187 if (ac_aggr.tm_zone)
30188 return 0;
30190 return 0;
30192 _ACEOF
30193 rm -f conftest.$ac_objext
30194 if { (ac_try="$ac_compile"
30195 case "(($ac_try" in
30196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30197 *) ac_try_echo=$ac_try;;
30198 esac
30199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30200 (eval "$ac_compile") 2>conftest.er1
30201 ac_status=$?
30202 grep -v '^ *+' conftest.er1 >conftest.err
30203 rm -f conftest.er1
30204 cat conftest.err >&5
30205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30206 (exit $ac_status); } &&
30207 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30208 { (case "(($ac_try" in
30209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30210 *) ac_try_echo=$ac_try;;
30211 esac
30212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30213 (eval "$ac_try") 2>&5
30214 ac_status=$?
30215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30216 (exit $ac_status); }; } &&
30217 { ac_try='test -s conftest.$ac_objext'
30218 { (case "(($ac_try" in
30219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30220 *) ac_try_echo=$ac_try;;
30221 esac
30222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30223 (eval "$ac_try") 2>&5
30224 ac_status=$?
30225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30226 (exit $ac_status); }; }; then
30227 ac_cv_member_struct_tm_tm_zone=yes
30228 else
30229 echo "$as_me: failed program was:" >&5
30230 sed 's/^/| /' conftest.$ac_ext >&5
30232 cat >conftest.$ac_ext <<_ACEOF
30233 /* confdefs.h. */
30234 _ACEOF
30235 cat confdefs.h >>conftest.$ac_ext
30236 cat >>conftest.$ac_ext <<_ACEOF
30237 /* end confdefs.h. */
30238 #include <sys/types.h>
30239 #include <$ac_cv_struct_tm>
30243 main ()
30245 static struct tm ac_aggr;
30246 if (sizeof ac_aggr.tm_zone)
30247 return 0;
30249 return 0;
30251 _ACEOF
30252 rm -f conftest.$ac_objext
30253 if { (ac_try="$ac_compile"
30254 case "(($ac_try" in
30255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30256 *) ac_try_echo=$ac_try;;
30257 esac
30258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30259 (eval "$ac_compile") 2>conftest.er1
30260 ac_status=$?
30261 grep -v '^ *+' conftest.er1 >conftest.err
30262 rm -f conftest.er1
30263 cat conftest.err >&5
30264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30265 (exit $ac_status); } &&
30266 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30267 { (case "(($ac_try" in
30268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30269 *) ac_try_echo=$ac_try;;
30270 esac
30271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30272 (eval "$ac_try") 2>&5
30273 ac_status=$?
30274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30275 (exit $ac_status); }; } &&
30276 { ac_try='test -s conftest.$ac_objext'
30277 { (case "(($ac_try" in
30278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30279 *) ac_try_echo=$ac_try;;
30280 esac
30281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30282 (eval "$ac_try") 2>&5
30283 ac_status=$?
30284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30285 (exit $ac_status); }; }; then
30286 ac_cv_member_struct_tm_tm_zone=yes
30287 else
30288 echo "$as_me: failed program was:" >&5
30289 sed 's/^/| /' conftest.$ac_ext >&5
30291 ac_cv_member_struct_tm_tm_zone=no
30294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30299 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
30300 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
30301 if test $ac_cv_member_struct_tm_tm_zone = yes; then
30303 cat >>confdefs.h <<_ACEOF
30304 #define HAVE_STRUCT_TM_TM_ZONE 1
30305 _ACEOF
30310 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
30312 cat >>confdefs.h <<\_ACEOF
30313 #define HAVE_TM_ZONE 1
30314 _ACEOF
30316 else
30317 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
30318 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
30319 if test "${ac_cv_have_decl_tzname+set}" = set; then
30320 echo $ECHO_N "(cached) $ECHO_C" >&6
30321 else
30322 cat >conftest.$ac_ext <<_ACEOF
30323 /* confdefs.h. */
30324 _ACEOF
30325 cat confdefs.h >>conftest.$ac_ext
30326 cat >>conftest.$ac_ext <<_ACEOF
30327 /* end confdefs.h. */
30328 #include <time.h>
30331 main ()
30333 #ifndef tzname
30334 char *p = (char *) tzname;
30335 return !p;
30336 #endif
30339 return 0;
30341 _ACEOF
30342 rm -f conftest.$ac_objext
30343 if { (ac_try="$ac_compile"
30344 case "(($ac_try" in
30345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30346 *) ac_try_echo=$ac_try;;
30347 esac
30348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30349 (eval "$ac_compile") 2>conftest.er1
30350 ac_status=$?
30351 grep -v '^ *+' conftest.er1 >conftest.err
30352 rm -f conftest.er1
30353 cat conftest.err >&5
30354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30355 (exit $ac_status); } &&
30356 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30357 { (case "(($ac_try" in
30358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30359 *) ac_try_echo=$ac_try;;
30360 esac
30361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30362 (eval "$ac_try") 2>&5
30363 ac_status=$?
30364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30365 (exit $ac_status); }; } &&
30366 { ac_try='test -s conftest.$ac_objext'
30367 { (case "(($ac_try" in
30368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30369 *) ac_try_echo=$ac_try;;
30370 esac
30371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30372 (eval "$ac_try") 2>&5
30373 ac_status=$?
30374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30375 (exit $ac_status); }; }; then
30376 ac_cv_have_decl_tzname=yes
30377 else
30378 echo "$as_me: failed program was:" >&5
30379 sed 's/^/| /' conftest.$ac_ext >&5
30381 ac_cv_have_decl_tzname=no
30384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30386 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
30387 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
30388 if test $ac_cv_have_decl_tzname = yes; then
30390 cat >>confdefs.h <<_ACEOF
30391 #define HAVE_DECL_TZNAME 1
30392 _ACEOF
30395 else
30396 cat >>confdefs.h <<_ACEOF
30397 #define HAVE_DECL_TZNAME 0
30398 _ACEOF
30404 { echo "$as_me:$LINENO: checking for tzname" >&5
30405 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
30406 if test "${ac_cv_var_tzname+set}" = set; then
30407 echo $ECHO_N "(cached) $ECHO_C" >&6
30408 else
30409 cat >conftest.$ac_ext <<_ACEOF
30410 /* confdefs.h. */
30411 _ACEOF
30412 cat confdefs.h >>conftest.$ac_ext
30413 cat >>conftest.$ac_ext <<_ACEOF
30414 /* end confdefs.h. */
30415 #include <time.h>
30416 #if !HAVE_DECL_TZNAME
30417 extern char *tzname[];
30418 #endif
30421 main ()
30423 return tzname[0][0];
30425 return 0;
30427 _ACEOF
30428 rm -f conftest.$ac_objext conftest$ac_exeext
30429 if { (ac_try="$ac_link"
30430 case "(($ac_try" in
30431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30432 *) ac_try_echo=$ac_try;;
30433 esac
30434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30435 (eval "$ac_link") 2>conftest.er1
30436 ac_status=$?
30437 grep -v '^ *+' conftest.er1 >conftest.err
30438 rm -f conftest.er1
30439 cat conftest.err >&5
30440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30441 (exit $ac_status); } &&
30442 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30443 { (case "(($ac_try" in
30444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30445 *) ac_try_echo=$ac_try;;
30446 esac
30447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30448 (eval "$ac_try") 2>&5
30449 ac_status=$?
30450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30451 (exit $ac_status); }; } &&
30452 { ac_try='test -s conftest$ac_exeext'
30453 { (case "(($ac_try" in
30454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30455 *) ac_try_echo=$ac_try;;
30456 esac
30457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30458 (eval "$ac_try") 2>&5
30459 ac_status=$?
30460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30461 (exit $ac_status); }; }; then
30462 ac_cv_var_tzname=yes
30463 else
30464 echo "$as_me: failed program was:" >&5
30465 sed 's/^/| /' conftest.$ac_ext >&5
30467 ac_cv_var_tzname=no
30470 rm -f core conftest.err conftest.$ac_objext \
30471 conftest$ac_exeext conftest.$ac_ext
30473 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
30474 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
30475 if test $ac_cv_var_tzname = yes; then
30477 cat >>confdefs.h <<\_ACEOF
30478 #define HAVE_TZNAME 1
30479 _ACEOF
30489 { echo "$as_me:$LINENO: checking for arithmetic hrtime_t" >&5
30490 echo $ECHO_N "checking for arithmetic hrtime_t... $ECHO_C" >&6; }
30491 if test "${gl_cv_arithmetic_hrtime_t+set}" = set; then
30492 echo $ECHO_N "(cached) $ECHO_C" >&6
30493 else
30494 cat >conftest.$ac_ext <<_ACEOF
30495 /* confdefs.h. */
30496 _ACEOF
30497 cat confdefs.h >>conftest.$ac_ext
30498 cat >>conftest.$ac_ext <<_ACEOF
30499 /* end confdefs.h. */
30500 #include <time.h>
30502 main ()
30504 hrtime_t x = 0; return x/x;
30506 return 0;
30508 _ACEOF
30509 rm -f conftest.$ac_objext
30510 if { (ac_try="$ac_compile"
30511 case "(($ac_try" in
30512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30513 *) ac_try_echo=$ac_try;;
30514 esac
30515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30516 (eval "$ac_compile") 2>conftest.er1
30517 ac_status=$?
30518 grep -v '^ *+' conftest.er1 >conftest.err
30519 rm -f conftest.er1
30520 cat conftest.err >&5
30521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30522 (exit $ac_status); } &&
30523 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30524 { (case "(($ac_try" in
30525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30526 *) ac_try_echo=$ac_try;;
30527 esac
30528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30529 (eval "$ac_try") 2>&5
30530 ac_status=$?
30531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30532 (exit $ac_status); }; } &&
30533 { ac_try='test -s conftest.$ac_objext'
30534 { (case "(($ac_try" in
30535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30536 *) ac_try_echo=$ac_try;;
30537 esac
30538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30539 (eval "$ac_try") 2>&5
30540 ac_status=$?
30541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30542 (exit $ac_status); }; }; then
30543 gl_cv_arithmetic_hrtime_t=yes
30544 else
30545 echo "$as_me: failed program was:" >&5
30546 sed 's/^/| /' conftest.$ac_ext >&5
30548 gl_cv_arithmetic_hrtime_t=no
30551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30553 { echo "$as_me:$LINENO: result: $gl_cv_arithmetic_hrtime_t" >&5
30554 echo "${ECHO_T}$gl_cv_arithmetic_hrtime_t" >&6; }
30555 if test $gl_cv_arithmetic_hrtime_t = yes; then
30557 cat >>confdefs.h <<\_ACEOF
30558 #define HAVE_ARITHMETIC_HRTIME_T 1
30559 _ACEOF
30577 { echo "$as_me:$LINENO: checking whether gethrtime is declared" >&5
30578 echo $ECHO_N "checking whether gethrtime is declared... $ECHO_C" >&6; }
30579 if test "${ac_cv_have_decl_gethrtime+set}" = set; then
30580 echo $ECHO_N "(cached) $ECHO_C" >&6
30581 else
30582 cat >conftest.$ac_ext <<_ACEOF
30583 /* confdefs.h. */
30584 _ACEOF
30585 cat confdefs.h >>conftest.$ac_ext
30586 cat >>conftest.$ac_ext <<_ACEOF
30587 /* end confdefs.h. */
30588 #include <time.h>
30591 main ()
30593 #ifndef gethrtime
30594 char *p = (char *) gethrtime;
30595 return !p;
30596 #endif
30599 return 0;
30601 _ACEOF
30602 rm -f conftest.$ac_objext
30603 if { (ac_try="$ac_compile"
30604 case "(($ac_try" in
30605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30606 *) ac_try_echo=$ac_try;;
30607 esac
30608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30609 (eval "$ac_compile") 2>conftest.er1
30610 ac_status=$?
30611 grep -v '^ *+' conftest.er1 >conftest.err
30612 rm -f conftest.er1
30613 cat conftest.err >&5
30614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30615 (exit $ac_status); } &&
30616 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30617 { (case "(($ac_try" in
30618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30619 *) ac_try_echo=$ac_try;;
30620 esac
30621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30622 (eval "$ac_try") 2>&5
30623 ac_status=$?
30624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30625 (exit $ac_status); }; } &&
30626 { ac_try='test -s conftest.$ac_objext'
30627 { (case "(($ac_try" in
30628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30629 *) ac_try_echo=$ac_try;;
30630 esac
30631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30632 (eval "$ac_try") 2>&5
30633 ac_status=$?
30634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30635 (exit $ac_status); }; }; then
30636 ac_cv_have_decl_gethrtime=yes
30637 else
30638 echo "$as_me: failed program was:" >&5
30639 sed 's/^/| /' conftest.$ac_ext >&5
30641 ac_cv_have_decl_gethrtime=no
30644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30646 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_gethrtime" >&5
30647 echo "${ECHO_T}$ac_cv_have_decl_gethrtime" >&6; }
30648 if test $ac_cv_have_decl_gethrtime = yes; then
30650 cat >>confdefs.h <<_ACEOF
30651 #define HAVE_DECL_GETHRTIME 1
30652 _ACEOF
30655 else
30656 cat >>confdefs.h <<_ACEOF
30657 #define HAVE_DECL_GETHRTIME 0
30658 _ACEOF
30664 case $ac_cv_have_decl_gethrtime,$gl_cv_arithmetic_hrtime_t in
30665 yes,yes) ;;
30667 case " $LIBOBJS " in
30668 *" gethrxtime.$ac_objext "* ) ;;
30669 *) LIBOBJS="$LIBOBJS gethrxtime.$ac_objext"
30671 esac
30685 if test $ac_cv_func_nanouptime != yes; then
30686 LIB_GETHRXTIME=
30687 { echo "$as_me:$LINENO: checking whether CLOCK_MONOTONIC or CLOCK_REALTIME is defined" >&5
30688 echo $ECHO_N "checking whether CLOCK_MONOTONIC or CLOCK_REALTIME is defined... $ECHO_C" >&6; }
30689 if test "${gl_cv_have_clock_gettime_macro+set}" = set; then
30690 echo $ECHO_N "(cached) $ECHO_C" >&6
30691 else
30692 cat >conftest.$ac_ext <<_ACEOF
30693 /* confdefs.h. */
30694 _ACEOF
30695 cat confdefs.h >>conftest.$ac_ext
30696 cat >>conftest.$ac_ext <<_ACEOF
30697 /* end confdefs.h. */
30699 # include <time.h>
30700 # if defined CLOCK_MONOTONIC || defined CLOCK_REALTIME
30701 have_clock_gettime_macro
30702 # endif
30704 _ACEOF
30705 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30706 $EGREP "have_clock_gettime_macro" >/dev/null 2>&1; then
30707 gl_cv_have_clock_gettime_macro=yes
30708 else
30709 gl_cv_have_clock_gettime_macro=no
30711 rm -f conftest*
30714 { echo "$as_me:$LINENO: result: $gl_cv_have_clock_gettime_macro" >&5
30715 echo "${ECHO_T}$gl_cv_have_clock_gettime_macro" >&6; }
30716 if test $gl_cv_have_clock_gettime_macro = yes; then
30717 LIB_GETHRXTIME=$LIB_CLOCK_GETTIME
30722 esac
30725 # Avoid multiple inclusions of getndelim2.o into LIBOBJS.
30726 # This hack won't be needed after gnulib requires Autoconf 2.58 or later.
30727 case " $LIBOBJS " in
30728 *" getndelim2.$ac_objext "* ) ;;
30729 *) case " $LIBOBJS " in
30730 *" getndelim2.$ac_objext "* ) ;;
30731 *) LIBOBJS="$LIBOBJS getndelim2.$ac_objext"
30733 esac
30735 esac
30742 if test -z "$GETOPT_H"; then
30744 for ac_header in getopt.h
30746 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30747 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30748 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30749 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30750 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30751 echo $ECHO_N "(cached) $ECHO_C" >&6
30753 ac_res=`eval echo '${'$as_ac_Header'}'`
30754 { echo "$as_me:$LINENO: result: $ac_res" >&5
30755 echo "${ECHO_T}$ac_res" >&6; }
30756 else
30757 # Is the header compilable?
30758 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30759 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30760 cat >conftest.$ac_ext <<_ACEOF
30761 /* confdefs.h. */
30762 _ACEOF
30763 cat confdefs.h >>conftest.$ac_ext
30764 cat >>conftest.$ac_ext <<_ACEOF
30765 /* end confdefs.h. */
30766 $ac_includes_default
30767 #include <$ac_header>
30768 _ACEOF
30769 rm -f conftest.$ac_objext
30770 if { (ac_try="$ac_compile"
30771 case "(($ac_try" in
30772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30773 *) ac_try_echo=$ac_try;;
30774 esac
30775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30776 (eval "$ac_compile") 2>conftest.er1
30777 ac_status=$?
30778 grep -v '^ *+' conftest.er1 >conftest.err
30779 rm -f conftest.er1
30780 cat conftest.err >&5
30781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30782 (exit $ac_status); } &&
30783 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30784 { (case "(($ac_try" in
30785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30786 *) ac_try_echo=$ac_try;;
30787 esac
30788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30789 (eval "$ac_try") 2>&5
30790 ac_status=$?
30791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30792 (exit $ac_status); }; } &&
30793 { ac_try='test -s conftest.$ac_objext'
30794 { (case "(($ac_try" in
30795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30796 *) ac_try_echo=$ac_try;;
30797 esac
30798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30799 (eval "$ac_try") 2>&5
30800 ac_status=$?
30801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30802 (exit $ac_status); }; }; then
30803 ac_header_compiler=yes
30804 else
30805 echo "$as_me: failed program was:" >&5
30806 sed 's/^/| /' conftest.$ac_ext >&5
30808 ac_header_compiler=no
30811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30812 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30813 echo "${ECHO_T}$ac_header_compiler" >&6; }
30815 # Is the header present?
30816 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30817 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30818 cat >conftest.$ac_ext <<_ACEOF
30819 /* confdefs.h. */
30820 _ACEOF
30821 cat confdefs.h >>conftest.$ac_ext
30822 cat >>conftest.$ac_ext <<_ACEOF
30823 /* end confdefs.h. */
30824 #include <$ac_header>
30825 _ACEOF
30826 if { (ac_try="$ac_cpp conftest.$ac_ext"
30827 case "(($ac_try" in
30828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30829 *) ac_try_echo=$ac_try;;
30830 esac
30831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30832 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30833 ac_status=$?
30834 grep -v '^ *+' conftest.er1 >conftest.err
30835 rm -f conftest.er1
30836 cat conftest.err >&5
30837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30838 (exit $ac_status); } >/dev/null; then
30839 if test -s conftest.err; then
30840 ac_cpp_err=$ac_c_preproc_warn_flag
30841 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30842 else
30843 ac_cpp_err=
30845 else
30846 ac_cpp_err=yes
30848 if test -z "$ac_cpp_err"; then
30849 ac_header_preproc=yes
30850 else
30851 echo "$as_me: failed program was:" >&5
30852 sed 's/^/| /' conftest.$ac_ext >&5
30854 ac_header_preproc=no
30857 rm -f conftest.err conftest.$ac_ext
30858 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30859 echo "${ECHO_T}$ac_header_preproc" >&6; }
30861 # So? What about this header?
30862 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30863 yes:no: )
30864 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30865 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30866 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30867 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30868 ac_header_preproc=yes
30870 no:yes:* )
30871 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30872 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30873 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30874 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30875 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30876 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30877 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30878 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30879 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30880 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30881 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30882 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30883 ( cat <<\_ASBOX
30884 ## ------------------------------------ ##
30885 ## Report this to bug-coreutils@gnu.org ##
30886 ## ------------------------------------ ##
30887 _ASBOX
30888 ) | sed "s/^/$as_me: WARNING: /" >&2
30890 esac
30891 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30892 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30893 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30894 echo $ECHO_N "(cached) $ECHO_C" >&6
30895 else
30896 eval "$as_ac_Header=\$ac_header_preproc"
30898 ac_res=`eval echo '${'$as_ac_Header'}'`
30899 { echo "$as_me:$LINENO: result: $ac_res" >&5
30900 echo "${ECHO_T}$ac_res" >&6; }
30903 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30904 cat >>confdefs.h <<_ACEOF
30905 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30906 _ACEOF
30908 else
30909 GETOPT_H=getopt.h
30912 done
30916 if test -z "$GETOPT_H"; then
30918 for ac_func in getopt_long_only
30920 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30921 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30922 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30923 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30924 echo $ECHO_N "(cached) $ECHO_C" >&6
30925 else
30926 cat >conftest.$ac_ext <<_ACEOF
30927 /* confdefs.h. */
30928 _ACEOF
30929 cat confdefs.h >>conftest.$ac_ext
30930 cat >>conftest.$ac_ext <<_ACEOF
30931 /* end confdefs.h. */
30932 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30933 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30934 #define $ac_func innocuous_$ac_func
30936 /* System header to define __stub macros and hopefully few prototypes,
30937 which can conflict with char $ac_func (); below.
30938 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30939 <limits.h> exists even on freestanding compilers. */
30941 #ifdef __STDC__
30942 # include <limits.h>
30943 #else
30944 # include <assert.h>
30945 #endif
30947 #undef $ac_func
30949 /* Override any GCC internal prototype to avoid an error.
30950 Use char because int might match the return type of a GCC
30951 builtin and then its argument prototype would still apply. */
30952 #ifdef __cplusplus
30953 extern "C"
30954 #endif
30955 char $ac_func ();
30956 /* The GNU C library defines this for functions which it implements
30957 to always fail with ENOSYS. Some functions are actually named
30958 something starting with __ and the normal name is an alias. */
30959 #if defined __stub_$ac_func || defined __stub___$ac_func
30960 choke me
30961 #endif
30964 main ()
30966 return $ac_func ();
30968 return 0;
30970 _ACEOF
30971 rm -f conftest.$ac_objext conftest$ac_exeext
30972 if { (ac_try="$ac_link"
30973 case "(($ac_try" in
30974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30975 *) ac_try_echo=$ac_try;;
30976 esac
30977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30978 (eval "$ac_link") 2>conftest.er1
30979 ac_status=$?
30980 grep -v '^ *+' conftest.er1 >conftest.err
30981 rm -f conftest.er1
30982 cat conftest.err >&5
30983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30984 (exit $ac_status); } &&
30985 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30986 { (case "(($ac_try" in
30987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30988 *) ac_try_echo=$ac_try;;
30989 esac
30990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30991 (eval "$ac_try") 2>&5
30992 ac_status=$?
30993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30994 (exit $ac_status); }; } &&
30995 { ac_try='test -s conftest$ac_exeext'
30996 { (case "(($ac_try" in
30997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30998 *) ac_try_echo=$ac_try;;
30999 esac
31000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31001 (eval "$ac_try") 2>&5
31002 ac_status=$?
31003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31004 (exit $ac_status); }; }; then
31005 eval "$as_ac_var=yes"
31006 else
31007 echo "$as_me: failed program was:" >&5
31008 sed 's/^/| /' conftest.$ac_ext >&5
31010 eval "$as_ac_var=no"
31013 rm -f core conftest.err conftest.$ac_objext \
31014 conftest$ac_exeext conftest.$ac_ext
31016 ac_res=`eval echo '${'$as_ac_var'}'`
31017 { echo "$as_me:$LINENO: result: $ac_res" >&5
31018 echo "${ECHO_T}$ac_res" >&6; }
31019 if test `eval echo '${'$as_ac_var'}'` = yes; then
31020 cat >>confdefs.h <<_ACEOF
31021 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31022 _ACEOF
31024 else
31025 GETOPT_H=getopt.h
31027 done
31031 if test -z "$GETOPT_H"; then
31032 { echo "$as_me:$LINENO: checking whether optreset is declared" >&5
31033 echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6; }
31034 if test "${ac_cv_have_decl_optreset+set}" = set; then
31035 echo $ECHO_N "(cached) $ECHO_C" >&6
31036 else
31037 cat >conftest.$ac_ext <<_ACEOF
31038 /* confdefs.h. */
31039 _ACEOF
31040 cat confdefs.h >>conftest.$ac_ext
31041 cat >>conftest.$ac_ext <<_ACEOF
31042 /* end confdefs.h. */
31043 #include <getopt.h>
31046 main ()
31048 #ifndef optreset
31049 char *p = (char *) optreset;
31050 return !p;
31051 #endif
31054 return 0;
31056 _ACEOF
31057 rm -f conftest.$ac_objext
31058 if { (ac_try="$ac_compile"
31059 case "(($ac_try" in
31060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31061 *) ac_try_echo=$ac_try;;
31062 esac
31063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31064 (eval "$ac_compile") 2>conftest.er1
31065 ac_status=$?
31066 grep -v '^ *+' conftest.er1 >conftest.err
31067 rm -f conftest.er1
31068 cat conftest.err >&5
31069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31070 (exit $ac_status); } &&
31071 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31072 { (case "(($ac_try" in
31073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31074 *) ac_try_echo=$ac_try;;
31075 esac
31076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31077 (eval "$ac_try") 2>&5
31078 ac_status=$?
31079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31080 (exit $ac_status); }; } &&
31081 { ac_try='test -s conftest.$ac_objext'
31082 { (case "(($ac_try" in
31083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31084 *) ac_try_echo=$ac_try;;
31085 esac
31086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31087 (eval "$ac_try") 2>&5
31088 ac_status=$?
31089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31090 (exit $ac_status); }; }; then
31091 ac_cv_have_decl_optreset=yes
31092 else
31093 echo "$as_me: failed program was:" >&5
31094 sed 's/^/| /' conftest.$ac_ext >&5
31096 ac_cv_have_decl_optreset=no
31099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31101 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
31102 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
31103 if test $ac_cv_have_decl_optreset = yes; then
31104 GETOPT_H=getopt.h
31109 if test -z "$GETOPT_H"; then
31110 { echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
31111 echo $ECHO_N "checking for working GNU getopt function... $ECHO_C" >&6; }
31112 if test "${gl_cv_func_gnu_getopt+set}" = set; then
31113 echo $ECHO_N "(cached) $ECHO_C" >&6
31114 else
31115 if test "$cross_compiling" = yes; then
31116 { echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
31117 echo $ECHO_N "checking whether getopt_clip is declared... $ECHO_C" >&6; }
31118 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
31119 echo $ECHO_N "(cached) $ECHO_C" >&6
31120 else
31121 cat >conftest.$ac_ext <<_ACEOF
31122 /* confdefs.h. */
31123 _ACEOF
31124 cat confdefs.h >>conftest.$ac_ext
31125 cat >>conftest.$ac_ext <<_ACEOF
31126 /* end confdefs.h. */
31127 #include <getopt.h>
31130 main ()
31132 #ifndef getopt_clip
31133 char *p = (char *) getopt_clip;
31134 return !p;
31135 #endif
31138 return 0;
31140 _ACEOF
31141 rm -f conftest.$ac_objext
31142 if { (ac_try="$ac_compile"
31143 case "(($ac_try" in
31144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31145 *) ac_try_echo=$ac_try;;
31146 esac
31147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31148 (eval "$ac_compile") 2>conftest.er1
31149 ac_status=$?
31150 grep -v '^ *+' conftest.er1 >conftest.err
31151 rm -f conftest.er1
31152 cat conftest.err >&5
31153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31154 (exit $ac_status); } &&
31155 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31156 { (case "(($ac_try" in
31157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31158 *) ac_try_echo=$ac_try;;
31159 esac
31160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31161 (eval "$ac_try") 2>&5
31162 ac_status=$?
31163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31164 (exit $ac_status); }; } &&
31165 { ac_try='test -s conftest.$ac_objext'
31166 { (case "(($ac_try" in
31167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31168 *) ac_try_echo=$ac_try;;
31169 esac
31170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31171 (eval "$ac_try") 2>&5
31172 ac_status=$?
31173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31174 (exit $ac_status); }; }; then
31175 ac_cv_have_decl_getopt_clip=yes
31176 else
31177 echo "$as_me: failed program was:" >&5
31178 sed 's/^/| /' conftest.$ac_ext >&5
31180 ac_cv_have_decl_getopt_clip=no
31183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31185 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
31186 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
31187 if test $ac_cv_have_decl_getopt_clip = yes; then
31188 gl_cv_func_gnu_getopt=no
31189 else
31190 gl_cv_func_gnu_getopt=yes
31193 else
31194 cat >conftest.$ac_ext <<_ACEOF
31195 /* confdefs.h. */
31196 _ACEOF
31197 cat confdefs.h >>conftest.$ac_ext
31198 cat >>conftest.$ac_ext <<_ACEOF
31199 /* end confdefs.h. */
31200 #include <getopt.h>
31202 main ()
31205 char *myargv[3];
31206 myargv[0] = "conftest";
31207 myargv[1] = "-+";
31208 myargv[2] = 0;
31209 return getopt (2, myargv, "+a") != '?';
31212 return 0;
31214 _ACEOF
31215 rm -f conftest$ac_exeext
31216 if { (ac_try="$ac_link"
31217 case "(($ac_try" in
31218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31219 *) ac_try_echo=$ac_try;;
31220 esac
31221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31222 (eval "$ac_link") 2>&5
31223 ac_status=$?
31224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31225 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31226 { (case "(($ac_try" in
31227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31228 *) ac_try_echo=$ac_try;;
31229 esac
31230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31231 (eval "$ac_try") 2>&5
31232 ac_status=$?
31233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31234 (exit $ac_status); }; }; then
31235 gl_cv_func_gnu_getopt=yes
31236 else
31237 echo "$as_me: program exited with status $ac_status" >&5
31238 echo "$as_me: failed program was:" >&5
31239 sed 's/^/| /' conftest.$ac_ext >&5
31241 ( exit $ac_status )
31242 gl_cv_func_gnu_getopt=no
31244 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31249 { echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
31250 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
31251 if test "$gl_cv_func_gnu_getopt" = "no"; then
31252 GETOPT_H=getopt.h
31256 { echo "$as_me:$LINENO: checking whether getenv is declared" >&5
31257 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6; }
31258 if test "${ac_cv_have_decl_getenv+set}" = set; then
31259 echo $ECHO_N "(cached) $ECHO_C" >&6
31260 else
31261 cat >conftest.$ac_ext <<_ACEOF
31262 /* confdefs.h. */
31263 _ACEOF
31264 cat confdefs.h >>conftest.$ac_ext
31265 cat >>conftest.$ac_ext <<_ACEOF
31266 /* end confdefs.h. */
31267 $ac_includes_default
31269 main ()
31271 #ifndef getenv
31272 char *p = (char *) getenv;
31273 return !p;
31274 #endif
31277 return 0;
31279 _ACEOF
31280 rm -f conftest.$ac_objext
31281 if { (ac_try="$ac_compile"
31282 case "(($ac_try" in
31283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31284 *) ac_try_echo=$ac_try;;
31285 esac
31286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31287 (eval "$ac_compile") 2>conftest.er1
31288 ac_status=$?
31289 grep -v '^ *+' conftest.er1 >conftest.err
31290 rm -f conftest.er1
31291 cat conftest.err >&5
31292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31293 (exit $ac_status); } &&
31294 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31295 { (case "(($ac_try" in
31296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31297 *) ac_try_echo=$ac_try;;
31298 esac
31299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31300 (eval "$ac_try") 2>&5
31301 ac_status=$?
31302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31303 (exit $ac_status); }; } &&
31304 { ac_try='test -s conftest.$ac_objext'
31305 { (case "(($ac_try" in
31306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31307 *) ac_try_echo=$ac_try;;
31308 esac
31309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31310 (eval "$ac_try") 2>&5
31311 ac_status=$?
31312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31313 (exit $ac_status); }; }; then
31314 ac_cv_have_decl_getenv=yes
31315 else
31316 echo "$as_me: failed program was:" >&5
31317 sed 's/^/| /' conftest.$ac_ext >&5
31319 ac_cv_have_decl_getenv=no
31322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31324 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
31325 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6; }
31326 if test $ac_cv_have_decl_getenv = yes; then
31328 cat >>confdefs.h <<_ACEOF
31329 #define HAVE_DECL_GETENV 1
31330 _ACEOF
31333 else
31334 cat >>confdefs.h <<_ACEOF
31335 #define HAVE_DECL_GETENV 0
31336 _ACEOF
31344 if test -n "$GETOPT_H"; then
31346 case " $LIBOBJS " in
31347 *" getopt.$ac_objext "* ) ;;
31348 *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
31350 esac
31352 case " $LIBOBJS " in
31353 *" getopt1.$ac_objext "* ) ;;
31354 *) LIBOBJS="$LIBOBJS getopt1.$ac_objext"
31356 esac
31359 GETOPT_H=getopt.h
31361 cat >>confdefs.h <<\_ACEOF
31362 #define __GETOPT_PREFIX rpl_
31363 _ACEOF
31387 for ac_header in OS.h
31389 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31390 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31391 { echo "$as_me:$LINENO: checking for $ac_header" >&5
31392 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31393 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31394 echo $ECHO_N "(cached) $ECHO_C" >&6
31396 ac_res=`eval echo '${'$as_ac_Header'}'`
31397 { echo "$as_me:$LINENO: result: $ac_res" >&5
31398 echo "${ECHO_T}$ac_res" >&6; }
31399 else
31400 # Is the header compilable?
31401 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
31402 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
31403 cat >conftest.$ac_ext <<_ACEOF
31404 /* confdefs.h. */
31405 _ACEOF
31406 cat confdefs.h >>conftest.$ac_ext
31407 cat >>conftest.$ac_ext <<_ACEOF
31408 /* end confdefs.h. */
31409 $ac_includes_default
31410 #include <$ac_header>
31411 _ACEOF
31412 rm -f conftest.$ac_objext
31413 if { (ac_try="$ac_compile"
31414 case "(($ac_try" in
31415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31416 *) ac_try_echo=$ac_try;;
31417 esac
31418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31419 (eval "$ac_compile") 2>conftest.er1
31420 ac_status=$?
31421 grep -v '^ *+' conftest.er1 >conftest.err
31422 rm -f conftest.er1
31423 cat conftest.err >&5
31424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31425 (exit $ac_status); } &&
31426 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31427 { (case "(($ac_try" in
31428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31429 *) ac_try_echo=$ac_try;;
31430 esac
31431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31432 (eval "$ac_try") 2>&5
31433 ac_status=$?
31434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31435 (exit $ac_status); }; } &&
31436 { ac_try='test -s conftest.$ac_objext'
31437 { (case "(($ac_try" in
31438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31439 *) ac_try_echo=$ac_try;;
31440 esac
31441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31442 (eval "$ac_try") 2>&5
31443 ac_status=$?
31444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31445 (exit $ac_status); }; }; then
31446 ac_header_compiler=yes
31447 else
31448 echo "$as_me: failed program was:" >&5
31449 sed 's/^/| /' conftest.$ac_ext >&5
31451 ac_header_compiler=no
31454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31455 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31456 echo "${ECHO_T}$ac_header_compiler" >&6; }
31458 # Is the header present?
31459 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
31460 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
31461 cat >conftest.$ac_ext <<_ACEOF
31462 /* confdefs.h. */
31463 _ACEOF
31464 cat confdefs.h >>conftest.$ac_ext
31465 cat >>conftest.$ac_ext <<_ACEOF
31466 /* end confdefs.h. */
31467 #include <$ac_header>
31468 _ACEOF
31469 if { (ac_try="$ac_cpp conftest.$ac_ext"
31470 case "(($ac_try" in
31471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31472 *) ac_try_echo=$ac_try;;
31473 esac
31474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31475 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31476 ac_status=$?
31477 grep -v '^ *+' conftest.er1 >conftest.err
31478 rm -f conftest.er1
31479 cat conftest.err >&5
31480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31481 (exit $ac_status); } >/dev/null; then
31482 if test -s conftest.err; then
31483 ac_cpp_err=$ac_c_preproc_warn_flag
31484 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31485 else
31486 ac_cpp_err=
31488 else
31489 ac_cpp_err=yes
31491 if test -z "$ac_cpp_err"; then
31492 ac_header_preproc=yes
31493 else
31494 echo "$as_me: failed program was:" >&5
31495 sed 's/^/| /' conftest.$ac_ext >&5
31497 ac_header_preproc=no
31500 rm -f conftest.err conftest.$ac_ext
31501 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31502 echo "${ECHO_T}$ac_header_preproc" >&6; }
31504 # So? What about this header?
31505 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31506 yes:no: )
31507 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31508 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31509 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31510 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31511 ac_header_preproc=yes
31513 no:yes:* )
31514 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31515 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31516 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31517 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31518 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31519 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31520 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31521 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
31522 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31523 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31524 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31525 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31526 ( cat <<\_ASBOX
31527 ## ------------------------------------ ##
31528 ## Report this to bug-coreutils@gnu.org ##
31529 ## ------------------------------------ ##
31530 _ASBOX
31531 ) | sed "s/^/$as_me: WARNING: /" >&2
31533 esac
31534 { echo "$as_me:$LINENO: checking for $ac_header" >&5
31535 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31536 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31537 echo $ECHO_N "(cached) $ECHO_C" >&6
31538 else
31539 eval "$as_ac_Header=\$ac_header_preproc"
31541 ac_res=`eval echo '${'$as_ac_Header'}'`
31542 { echo "$as_me:$LINENO: result: $ac_res" >&5
31543 echo "${ECHO_T}$ac_res" >&6; }
31546 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31547 cat >>confdefs.h <<_ACEOF
31548 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31549 _ACEOF
31553 done
31556 for ac_func in getpagesize
31558 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31559 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31560 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31561 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31562 echo $ECHO_N "(cached) $ECHO_C" >&6
31563 else
31564 cat >conftest.$ac_ext <<_ACEOF
31565 /* confdefs.h. */
31566 _ACEOF
31567 cat confdefs.h >>conftest.$ac_ext
31568 cat >>conftest.$ac_ext <<_ACEOF
31569 /* end confdefs.h. */
31570 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31571 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31572 #define $ac_func innocuous_$ac_func
31574 /* System header to define __stub macros and hopefully few prototypes,
31575 which can conflict with char $ac_func (); below.
31576 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31577 <limits.h> exists even on freestanding compilers. */
31579 #ifdef __STDC__
31580 # include <limits.h>
31581 #else
31582 # include <assert.h>
31583 #endif
31585 #undef $ac_func
31587 /* Override any GCC internal prototype to avoid an error.
31588 Use char because int might match the return type of a GCC
31589 builtin and then its argument prototype would still apply. */
31590 #ifdef __cplusplus
31591 extern "C"
31592 #endif
31593 char $ac_func ();
31594 /* The GNU C library defines this for functions which it implements
31595 to always fail with ENOSYS. Some functions are actually named
31596 something starting with __ and the normal name is an alias. */
31597 #if defined __stub_$ac_func || defined __stub___$ac_func
31598 choke me
31599 #endif
31602 main ()
31604 return $ac_func ();
31606 return 0;
31608 _ACEOF
31609 rm -f conftest.$ac_objext conftest$ac_exeext
31610 if { (ac_try="$ac_link"
31611 case "(($ac_try" in
31612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31613 *) ac_try_echo=$ac_try;;
31614 esac
31615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31616 (eval "$ac_link") 2>conftest.er1
31617 ac_status=$?
31618 grep -v '^ *+' conftest.er1 >conftest.err
31619 rm -f conftest.er1
31620 cat conftest.err >&5
31621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31622 (exit $ac_status); } &&
31623 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31624 { (case "(($ac_try" in
31625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31626 *) ac_try_echo=$ac_try;;
31627 esac
31628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31629 (eval "$ac_try") 2>&5
31630 ac_status=$?
31631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31632 (exit $ac_status); }; } &&
31633 { ac_try='test -s conftest$ac_exeext'
31634 { (case "(($ac_try" in
31635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31636 *) ac_try_echo=$ac_try;;
31637 esac
31638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31639 (eval "$ac_try") 2>&5
31640 ac_status=$?
31641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31642 (exit $ac_status); }; }; then
31643 eval "$as_ac_var=yes"
31644 else
31645 echo "$as_me: failed program was:" >&5
31646 sed 's/^/| /' conftest.$ac_ext >&5
31648 eval "$as_ac_var=no"
31651 rm -f core conftest.err conftest.$ac_objext \
31652 conftest$ac_exeext conftest.$ac_ext
31654 ac_res=`eval echo '${'$as_ac_var'}'`
31655 { echo "$as_me:$LINENO: result: $ac_res" >&5
31656 echo "${ECHO_T}$ac_res" >&6; }
31657 if test `eval echo '${'$as_ac_var'}'` = yes; then
31658 cat >>confdefs.h <<_ACEOF
31659 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31660 _ACEOF
31663 done
31672 case " $LIBOBJS " in
31673 *" gettime.$ac_objext "* ) ;;
31674 *) LIBOBJS="$LIBOBJS gettime.$ac_objext"
31676 esac
31692 case " $LIBOBJS " in
31693 *" getugroups.$ac_objext "* ) ;;
31694 *) LIBOBJS="$LIBOBJS getugroups.$ac_objext"
31696 esac
31699 { echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
31700 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6; }
31701 if test "${ac_cv_type_getgroups+set}" = set; then
31702 echo $ECHO_N "(cached) $ECHO_C" >&6
31703 else
31704 if test "$cross_compiling" = yes; then
31705 ac_cv_type_getgroups=cross
31706 else
31707 cat >conftest.$ac_ext <<_ACEOF
31708 /* confdefs.h. */
31709 _ACEOF
31710 cat confdefs.h >>conftest.$ac_ext
31711 cat >>conftest.$ac_ext <<_ACEOF
31712 /* end confdefs.h. */
31713 /* Thanks to Mike Rendell for this test. */
31714 $ac_includes_default
31715 #define NGID 256
31716 #undef MAX
31717 #define MAX(x, y) ((x) > (y) ? (x) : (y))
31720 main ()
31722 gid_t gidset[NGID];
31723 int i, n;
31724 union { gid_t gval; long int lval; } val;
31726 val.lval = -1;
31727 for (i = 0; i < NGID; i++)
31728 gidset[i] = val.gval;
31729 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
31730 gidset);
31731 /* Exit non-zero if getgroups seems to require an array of ints. This
31732 happens when gid_t is short int but getgroups modifies an array
31733 of ints. */
31734 return n > 0 && gidset[n] != val.gval;
31736 _ACEOF
31737 rm -f conftest$ac_exeext
31738 if { (ac_try="$ac_link"
31739 case "(($ac_try" in
31740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31741 *) ac_try_echo=$ac_try;;
31742 esac
31743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31744 (eval "$ac_link") 2>&5
31745 ac_status=$?
31746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31747 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31748 { (case "(($ac_try" in
31749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31750 *) ac_try_echo=$ac_try;;
31751 esac
31752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31753 (eval "$ac_try") 2>&5
31754 ac_status=$?
31755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31756 (exit $ac_status); }; }; then
31757 ac_cv_type_getgroups=gid_t
31758 else
31759 echo "$as_me: program exited with status $ac_status" >&5
31760 echo "$as_me: failed program was:" >&5
31761 sed 's/^/| /' conftest.$ac_ext >&5
31763 ( exit $ac_status )
31764 ac_cv_type_getgroups=int
31766 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31770 if test $ac_cv_type_getgroups = cross; then
31771 cat >conftest.$ac_ext <<_ACEOF
31772 /* confdefs.h. */
31773 _ACEOF
31774 cat confdefs.h >>conftest.$ac_ext
31775 cat >>conftest.$ac_ext <<_ACEOF
31776 /* end confdefs.h. */
31777 #include <unistd.h>
31779 _ACEOF
31780 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31781 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
31782 ac_cv_type_getgroups=gid_t
31783 else
31784 ac_cv_type_getgroups=int
31786 rm -f conftest*
31790 { echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
31791 echo "${ECHO_T}$ac_cv_type_getgroups" >&6; }
31793 cat >>confdefs.h <<_ACEOF
31794 #define GETGROUPS_T $ac_cv_type_getgroups
31795 _ACEOF
31801 case " $LIBOBJS " in
31802 *" hard-locale.$ac_objext "* ) ;;
31803 *) LIBOBJS="$LIBOBJS hard-locale.$ac_objext"
31805 esac
31810 case " $LIBOBJS " in
31811 *" hash.$ac_objext "* ) ;;
31812 *) LIBOBJS="$LIBOBJS hash.$ac_objext"
31814 esac
31821 case " $LIBOBJS " in
31822 *" hash-pjw.$ac_objext "* ) ;;
31823 *) LIBOBJS="$LIBOBJS hash-pjw.$ac_objext"
31825 esac
31838 if test $ac_cv_header_arpa_inet_h = yes; then
31839 ARPA_INET_H=''
31840 else
31841 ARPA_INET_H='arpa/inet.h'
31852 if test $ac_cv_header_netinet_in_h = yes; then
31853 NETINET_IN_H=''
31854 else
31855 NETINET_IN_H='netinet/in.h'
31861 case " $LIBOBJS " in
31862 *" human.$ac_objext "* ) ;;
31863 *) LIBOBJS="$LIBOBJS human.$ac_objext"
31865 esac
31875 case " $LIBOBJS " in
31876 *" idcache.$ac_objext "* ) ;;
31877 *) LIBOBJS="$LIBOBJS idcache.$ac_objext"
31879 esac
31884 for ac_func in inet_ntop
31886 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31887 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31888 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31889 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31890 echo $ECHO_N "(cached) $ECHO_C" >&6
31891 else
31892 cat >conftest.$ac_ext <<_ACEOF
31893 /* confdefs.h. */
31894 _ACEOF
31895 cat confdefs.h >>conftest.$ac_ext
31896 cat >>conftest.$ac_ext <<_ACEOF
31897 /* end confdefs.h. */
31898 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31899 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31900 #define $ac_func innocuous_$ac_func
31902 /* System header to define __stub macros and hopefully few prototypes,
31903 which can conflict with char $ac_func (); below.
31904 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31905 <limits.h> exists even on freestanding compilers. */
31907 #ifdef __STDC__
31908 # include <limits.h>
31909 #else
31910 # include <assert.h>
31911 #endif
31913 #undef $ac_func
31915 /* Override any GCC internal prototype to avoid an error.
31916 Use char because int might match the return type of a GCC
31917 builtin and then its argument prototype would still apply. */
31918 #ifdef __cplusplus
31919 extern "C"
31920 #endif
31921 char $ac_func ();
31922 /* The GNU C library defines this for functions which it implements
31923 to always fail with ENOSYS. Some functions are actually named
31924 something starting with __ and the normal name is an alias. */
31925 #if defined __stub_$ac_func || defined __stub___$ac_func
31926 choke me
31927 #endif
31930 main ()
31932 return $ac_func ();
31934 return 0;
31936 _ACEOF
31937 rm -f conftest.$ac_objext conftest$ac_exeext
31938 if { (ac_try="$ac_link"
31939 case "(($ac_try" in
31940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31941 *) ac_try_echo=$ac_try;;
31942 esac
31943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31944 (eval "$ac_link") 2>conftest.er1
31945 ac_status=$?
31946 grep -v '^ *+' conftest.er1 >conftest.err
31947 rm -f conftest.er1
31948 cat conftest.err >&5
31949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31950 (exit $ac_status); } &&
31951 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31952 { (case "(($ac_try" in
31953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31954 *) ac_try_echo=$ac_try;;
31955 esac
31956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31957 (eval "$ac_try") 2>&5
31958 ac_status=$?
31959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31960 (exit $ac_status); }; } &&
31961 { ac_try='test -s conftest$ac_exeext'
31962 { (case "(($ac_try" in
31963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31964 *) ac_try_echo=$ac_try;;
31965 esac
31966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31967 (eval "$ac_try") 2>&5
31968 ac_status=$?
31969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31970 (exit $ac_status); }; }; then
31971 eval "$as_ac_var=yes"
31972 else
31973 echo "$as_me: failed program was:" >&5
31974 sed 's/^/| /' conftest.$ac_ext >&5
31976 eval "$as_ac_var=no"
31979 rm -f core conftest.err conftest.$ac_objext \
31980 conftest$ac_exeext conftest.$ac_ext
31982 ac_res=`eval echo '${'$as_ac_var'}'`
31983 { echo "$as_me:$LINENO: result: $ac_res" >&5
31984 echo "${ECHO_T}$ac_res" >&6; }
31985 if test `eval echo '${'$as_ac_var'}'` = yes; then
31986 cat >>confdefs.h <<_ACEOF
31987 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31988 _ACEOF
31990 else
31991 case " $LIBOBJS " in
31992 *" $ac_func.$ac_objext "* ) ;;
31993 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
31995 esac
31998 done
32010 { echo "$as_me:$LINENO: checking whether inet_ntop is declared" >&5
32011 echo $ECHO_N "checking whether inet_ntop is declared... $ECHO_C" >&6; }
32012 if test "${ac_cv_have_decl_inet_ntop+set}" = set; then
32013 echo $ECHO_N "(cached) $ECHO_C" >&6
32014 else
32015 cat >conftest.$ac_ext <<_ACEOF
32016 /* confdefs.h. */
32017 _ACEOF
32018 cat confdefs.h >>conftest.$ac_ext
32019 cat >>conftest.$ac_ext <<_ACEOF
32020 /* end confdefs.h. */
32021 #include <arpa/inet.h>
32024 main ()
32026 #ifndef inet_ntop
32027 char *p = (char *) inet_ntop;
32028 return !p;
32029 #endif
32032 return 0;
32034 _ACEOF
32035 rm -f conftest.$ac_objext
32036 if { (ac_try="$ac_compile"
32037 case "(($ac_try" in
32038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32039 *) ac_try_echo=$ac_try;;
32040 esac
32041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32042 (eval "$ac_compile") 2>conftest.er1
32043 ac_status=$?
32044 grep -v '^ *+' conftest.er1 >conftest.err
32045 rm -f conftest.er1
32046 cat conftest.err >&5
32047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32048 (exit $ac_status); } &&
32049 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32050 { (case "(($ac_try" in
32051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32052 *) ac_try_echo=$ac_try;;
32053 esac
32054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32055 (eval "$ac_try") 2>&5
32056 ac_status=$?
32057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32058 (exit $ac_status); }; } &&
32059 { ac_try='test -s conftest.$ac_objext'
32060 { (case "(($ac_try" in
32061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32062 *) ac_try_echo=$ac_try;;
32063 esac
32064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32065 (eval "$ac_try") 2>&5
32066 ac_status=$?
32067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32068 (exit $ac_status); }; }; then
32069 ac_cv_have_decl_inet_ntop=yes
32070 else
32071 echo "$as_me: failed program was:" >&5
32072 sed 's/^/| /' conftest.$ac_ext >&5
32074 ac_cv_have_decl_inet_ntop=no
32077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32079 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_inet_ntop" >&5
32080 echo "${ECHO_T}$ac_cv_have_decl_inet_ntop" >&6; }
32081 if test $ac_cv_have_decl_inet_ntop = yes; then
32083 cat >>confdefs.h <<_ACEOF
32084 #define HAVE_DECL_INET_NTOP 1
32085 _ACEOF
32088 else
32089 cat >>confdefs.h <<_ACEOF
32090 #define HAVE_DECL_INET_NTOP 0
32091 _ACEOF
32106 case " $LIBOBJS " in
32107 *" imaxtostr.$ac_objext "* ) ;;
32108 *) LIBOBJS="$LIBOBJS imaxtostr.$ac_objext"
32110 esac
32112 case " $LIBOBJS " in
32113 *" offtostr.$ac_objext "* ) ;;
32114 *) LIBOBJS="$LIBOBJS offtostr.$ac_objext"
32116 esac
32118 case " $LIBOBJS " in
32119 *" umaxtostr.$ac_objext "* ) ;;
32120 *) LIBOBJS="$LIBOBJS umaxtostr.$ac_objext"
32122 esac
32137 case " $LIBOBJS " in
32138 *" linebuffer.$ac_objext "* ) ;;
32139 *) LIBOBJS="$LIBOBJS linebuffer.$ac_objext"
32141 esac
32148 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
32149 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
32150 if test "${am_cv_langinfo_codeset+set}" = set; then
32151 echo $ECHO_N "(cached) $ECHO_C" >&6
32152 else
32153 cat >conftest.$ac_ext <<_ACEOF
32154 /* confdefs.h. */
32155 _ACEOF
32156 cat confdefs.h >>conftest.$ac_ext
32157 cat >>conftest.$ac_ext <<_ACEOF
32158 /* end confdefs.h. */
32159 #include <langinfo.h>
32161 main ()
32163 char* cs = nl_langinfo(CODESET);
32165 return 0;
32167 _ACEOF
32168 rm -f conftest.$ac_objext conftest$ac_exeext
32169 if { (ac_try="$ac_link"
32170 case "(($ac_try" in
32171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32172 *) ac_try_echo=$ac_try;;
32173 esac
32174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32175 (eval "$ac_link") 2>conftest.er1
32176 ac_status=$?
32177 grep -v '^ *+' conftest.er1 >conftest.err
32178 rm -f conftest.er1
32179 cat conftest.err >&5
32180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32181 (exit $ac_status); } &&
32182 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32183 { (case "(($ac_try" in
32184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32185 *) ac_try_echo=$ac_try;;
32186 esac
32187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32188 (eval "$ac_try") 2>&5
32189 ac_status=$?
32190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32191 (exit $ac_status); }; } &&
32192 { ac_try='test -s conftest$ac_exeext'
32193 { (case "(($ac_try" in
32194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32195 *) ac_try_echo=$ac_try;;
32196 esac
32197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32198 (eval "$ac_try") 2>&5
32199 ac_status=$?
32200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32201 (exit $ac_status); }; }; then
32202 am_cv_langinfo_codeset=yes
32203 else
32204 echo "$as_me: failed program was:" >&5
32205 sed 's/^/| /' conftest.$ac_ext >&5
32207 am_cv_langinfo_codeset=no
32210 rm -f core conftest.err conftest.$ac_objext \
32211 conftest$ac_exeext conftest.$ac_ext
32214 { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
32215 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
32216 if test $am_cv_langinfo_codeset = yes; then
32218 cat >>confdefs.h <<\_ACEOF
32219 #define HAVE_LANGINFO_CODESET 1
32220 _ACEOF
32224 { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
32225 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
32226 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
32227 echo $ECHO_N "(cached) $ECHO_C" >&6
32228 else
32229 cat >conftest.$ac_ext <<_ACEOF
32230 /* confdefs.h. */
32231 _ACEOF
32232 cat confdefs.h >>conftest.$ac_ext
32233 cat >>conftest.$ac_ext <<_ACEOF
32234 /* end confdefs.h. */
32235 $ac_includes_default
32237 main ()
32239 #ifndef getc_unlocked
32240 char *p = (char *) getc_unlocked;
32241 return !p;
32242 #endif
32245 return 0;
32247 _ACEOF
32248 rm -f conftest.$ac_objext
32249 if { (ac_try="$ac_compile"
32250 case "(($ac_try" in
32251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32252 *) ac_try_echo=$ac_try;;
32253 esac
32254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32255 (eval "$ac_compile") 2>conftest.er1
32256 ac_status=$?
32257 grep -v '^ *+' conftest.er1 >conftest.err
32258 rm -f conftest.er1
32259 cat conftest.err >&5
32260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32261 (exit $ac_status); } &&
32262 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32263 { (case "(($ac_try" in
32264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32265 *) ac_try_echo=$ac_try;;
32266 esac
32267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32268 (eval "$ac_try") 2>&5
32269 ac_status=$?
32270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32271 (exit $ac_status); }; } &&
32272 { ac_try='test -s conftest.$ac_objext'
32273 { (case "(($ac_try" in
32274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32275 *) ac_try_echo=$ac_try;;
32276 esac
32277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32278 (eval "$ac_try") 2>&5
32279 ac_status=$?
32280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32281 (exit $ac_status); }; }; then
32282 ac_cv_have_decl_getc_unlocked=yes
32283 else
32284 echo "$as_me: failed program was:" >&5
32285 sed 's/^/| /' conftest.$ac_ext >&5
32287 ac_cv_have_decl_getc_unlocked=no
32290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32292 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
32293 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
32294 if test $ac_cv_have_decl_getc_unlocked = yes; then
32296 cat >>confdefs.h <<_ACEOF
32297 #define HAVE_DECL_GETC_UNLOCKED 1
32298 _ACEOF
32301 else
32302 cat >>confdefs.h <<_ACEOF
32303 #define HAVE_DECL_GETC_UNLOCKED 0
32304 _ACEOF
32313 { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
32314 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
32315 if test "${ac_cv_gnu_library_2_1+set}" = set; then
32316 echo $ECHO_N "(cached) $ECHO_C" >&6
32317 else
32318 cat >conftest.$ac_ext <<_ACEOF
32319 /* confdefs.h. */
32320 _ACEOF
32321 cat confdefs.h >>conftest.$ac_ext
32322 cat >>conftest.$ac_ext <<_ACEOF
32323 /* end confdefs.h. */
32325 #include <features.h>
32326 #ifdef __GNU_LIBRARY__
32327 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
32328 Lucky GNU user
32329 #endif
32330 #endif
32332 _ACEOF
32333 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32334 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
32335 ac_cv_gnu_library_2_1=yes
32336 else
32337 ac_cv_gnu_library_2_1=no
32339 rm -f conftest*
32344 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
32345 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
32347 GLIBC21="$ac_cv_gnu_library_2_1"
32368 case " $LIBOBJS " in
32369 *" long-options.$ac_objext "* ) ;;
32370 *) LIBOBJS="$LIBOBJS long-options.$ac_objext"
32372 esac
32386 if test $ac_cv_header_wchar_h = yes && test $ac_cv_header_wctype_h = yes; then
32387 case " $LIBOBJS " in
32388 *" mbchar.$ac_objext "* ) ;;
32389 *) LIBOBJS="$LIBOBJS mbchar.$ac_objext"
32391 esac
32394 for ac_func in iswcntrl
32396 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32397 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32398 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32399 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32400 echo $ECHO_N "(cached) $ECHO_C" >&6
32401 else
32402 cat >conftest.$ac_ext <<_ACEOF
32403 /* confdefs.h. */
32404 _ACEOF
32405 cat confdefs.h >>conftest.$ac_ext
32406 cat >>conftest.$ac_ext <<_ACEOF
32407 /* end confdefs.h. */
32408 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32409 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32410 #define $ac_func innocuous_$ac_func
32412 /* System header to define __stub macros and hopefully few prototypes,
32413 which can conflict with char $ac_func (); below.
32414 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32415 <limits.h> exists even on freestanding compilers. */
32417 #ifdef __STDC__
32418 # include <limits.h>
32419 #else
32420 # include <assert.h>
32421 #endif
32423 #undef $ac_func
32425 /* Override any GCC internal prototype to avoid an error.
32426 Use char because int might match the return type of a GCC
32427 builtin and then its argument prototype would still apply. */
32428 #ifdef __cplusplus
32429 extern "C"
32430 #endif
32431 char $ac_func ();
32432 /* The GNU C library defines this for functions which it implements
32433 to always fail with ENOSYS. Some functions are actually named
32434 something starting with __ and the normal name is an alias. */
32435 #if defined __stub_$ac_func || defined __stub___$ac_func
32436 choke me
32437 #endif
32440 main ()
32442 return $ac_func ();
32444 return 0;
32446 _ACEOF
32447 rm -f conftest.$ac_objext conftest$ac_exeext
32448 if { (ac_try="$ac_link"
32449 case "(($ac_try" in
32450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32451 *) ac_try_echo=$ac_try;;
32452 esac
32453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32454 (eval "$ac_link") 2>conftest.er1
32455 ac_status=$?
32456 grep -v '^ *+' conftest.er1 >conftest.err
32457 rm -f conftest.er1
32458 cat conftest.err >&5
32459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32460 (exit $ac_status); } &&
32461 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32462 { (case "(($ac_try" in
32463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32464 *) ac_try_echo=$ac_try;;
32465 esac
32466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32467 (eval "$ac_try") 2>&5
32468 ac_status=$?
32469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32470 (exit $ac_status); }; } &&
32471 { ac_try='test -s conftest$ac_exeext'
32472 { (case "(($ac_try" in
32473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32474 *) ac_try_echo=$ac_try;;
32475 esac
32476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32477 (eval "$ac_try") 2>&5
32478 ac_status=$?
32479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32480 (exit $ac_status); }; }; then
32481 eval "$as_ac_var=yes"
32482 else
32483 echo "$as_me: failed program was:" >&5
32484 sed 's/^/| /' conftest.$ac_ext >&5
32486 eval "$as_ac_var=no"
32489 rm -f core conftest.err conftest.$ac_objext \
32490 conftest$ac_exeext conftest.$ac_ext
32492 ac_res=`eval echo '${'$as_ac_var'}'`
32493 { echo "$as_me:$LINENO: result: $ac_res" >&5
32494 echo "${ECHO_T}$ac_res" >&6; }
32495 if test `eval echo '${'$as_ac_var'}'` = yes; then
32496 cat >>confdefs.h <<_ACEOF
32497 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32498 _ACEOF
32501 done
32532 for ac_func in iswcntrl
32534 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32535 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32536 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32537 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32538 echo $ECHO_N "(cached) $ECHO_C" >&6
32539 else
32540 cat >conftest.$ac_ext <<_ACEOF
32541 /* confdefs.h. */
32542 _ACEOF
32543 cat confdefs.h >>conftest.$ac_ext
32544 cat >>conftest.$ac_ext <<_ACEOF
32545 /* end confdefs.h. */
32546 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32547 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32548 #define $ac_func innocuous_$ac_func
32550 /* System header to define __stub macros and hopefully few prototypes,
32551 which can conflict with char $ac_func (); below.
32552 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32553 <limits.h> exists even on freestanding compilers. */
32555 #ifdef __STDC__
32556 # include <limits.h>
32557 #else
32558 # include <assert.h>
32559 #endif
32561 #undef $ac_func
32563 /* Override any GCC internal prototype to avoid an error.
32564 Use char because int might match the return type of a GCC
32565 builtin and then its argument prototype would still apply. */
32566 #ifdef __cplusplus
32567 extern "C"
32568 #endif
32569 char $ac_func ();
32570 /* The GNU C library defines this for functions which it implements
32571 to always fail with ENOSYS. Some functions are actually named
32572 something starting with __ and the normal name is an alias. */
32573 #if defined __stub_$ac_func || defined __stub___$ac_func
32574 choke me
32575 #endif
32578 main ()
32580 return $ac_func ();
32582 return 0;
32584 _ACEOF
32585 rm -f conftest.$ac_objext conftest$ac_exeext
32586 if { (ac_try="$ac_link"
32587 case "(($ac_try" in
32588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32589 *) ac_try_echo=$ac_try;;
32590 esac
32591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32592 (eval "$ac_link") 2>conftest.er1
32593 ac_status=$?
32594 grep -v '^ *+' conftest.er1 >conftest.err
32595 rm -f conftest.er1
32596 cat conftest.err >&5
32597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32598 (exit $ac_status); } &&
32599 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32600 { (case "(($ac_try" in
32601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32602 *) ac_try_echo=$ac_try;;
32603 esac
32604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32605 (eval "$ac_try") 2>&5
32606 ac_status=$?
32607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32608 (exit $ac_status); }; } &&
32609 { ac_try='test -s conftest$ac_exeext'
32610 { (case "(($ac_try" in
32611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32612 *) ac_try_echo=$ac_try;;
32613 esac
32614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32615 (eval "$ac_try") 2>&5
32616 ac_status=$?
32617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32618 (exit $ac_status); }; }; then
32619 eval "$as_ac_var=yes"
32620 else
32621 echo "$as_me: failed program was:" >&5
32622 sed 's/^/| /' conftest.$ac_ext >&5
32624 eval "$as_ac_var=no"
32627 rm -f core conftest.err conftest.$ac_objext \
32628 conftest$ac_exeext conftest.$ac_ext
32630 ac_res=`eval echo '${'$as_ac_var'}'`
32631 { echo "$as_me:$LINENO: result: $ac_res" >&5
32632 echo "${ECHO_T}$ac_res" >&6; }
32633 if test `eval echo '${'$as_ac_var'}'` = yes; then
32634 cat >>confdefs.h <<_ACEOF
32635 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32636 _ACEOF
32639 done
32642 { echo "$as_me:$LINENO: checking whether mbrtowc and mbstate_t are properly declared" >&5
32643 echo $ECHO_N "checking whether mbrtowc and mbstate_t are properly declared... $ECHO_C" >&6; }
32644 if test "${gl_cv_func_mbrtowc+set}" = set; then
32645 echo $ECHO_N "(cached) $ECHO_C" >&6
32646 else
32647 cat >conftest.$ac_ext <<_ACEOF
32648 /* confdefs.h. */
32649 _ACEOF
32650 cat confdefs.h >>conftest.$ac_ext
32651 cat >>conftest.$ac_ext <<_ACEOF
32652 /* end confdefs.h. */
32653 #include <wchar.h>
32655 main ()
32657 wchar_t wc;
32658 char const s[] = "";
32659 size_t n = 1;
32660 mbstate_t state;
32661 return ! (sizeof state && (mbrtowc) (&wc, s, n, &state));
32663 return 0;
32665 _ACEOF
32666 rm -f conftest.$ac_objext conftest$ac_exeext
32667 if { (ac_try="$ac_link"
32668 case "(($ac_try" in
32669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32670 *) ac_try_echo=$ac_try;;
32671 esac
32672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32673 (eval "$ac_link") 2>conftest.er1
32674 ac_status=$?
32675 grep -v '^ *+' conftest.er1 >conftest.err
32676 rm -f conftest.er1
32677 cat conftest.err >&5
32678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32679 (exit $ac_status); } &&
32680 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32681 { (case "(($ac_try" in
32682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32683 *) ac_try_echo=$ac_try;;
32684 esac
32685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32686 (eval "$ac_try") 2>&5
32687 ac_status=$?
32688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32689 (exit $ac_status); }; } &&
32690 { ac_try='test -s conftest$ac_exeext'
32691 { (case "(($ac_try" in
32692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32693 *) ac_try_echo=$ac_try;;
32694 esac
32695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32696 (eval "$ac_try") 2>&5
32697 ac_status=$?
32698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32699 (exit $ac_status); }; }; then
32700 gl_cv_func_mbrtowc=yes
32701 else
32702 echo "$as_me: failed program was:" >&5
32703 sed 's/^/| /' conftest.$ac_ext >&5
32705 gl_cv_func_mbrtowc=no
32708 rm -f core conftest.err conftest.$ac_objext \
32709 conftest$ac_exeext conftest.$ac_ext
32711 { echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc" >&5
32712 echo "${ECHO_T}$gl_cv_func_mbrtowc" >&6; }
32713 if test $gl_cv_func_mbrtowc = yes; then
32715 cat >>confdefs.h <<\_ACEOF
32716 #define HAVE_MBRTOWC 1
32717 _ACEOF
32722 { echo "$as_me:$LINENO: checking whether mbswidth is declared in <wchar.h>" >&5
32723 echo $ECHO_N "checking whether mbswidth is declared in <wchar.h>... $ECHO_C" >&6; }
32724 if test "${ac_cv_have_decl_mbswidth+set}" = set; then
32725 echo $ECHO_N "(cached) $ECHO_C" >&6
32726 else
32727 cat >conftest.$ac_ext <<_ACEOF
32728 /* confdefs.h. */
32729 _ACEOF
32730 cat confdefs.h >>conftest.$ac_ext
32731 cat >>conftest.$ac_ext <<_ACEOF
32732 /* end confdefs.h. */
32734 #if HAVE_WCHAR_H
32735 # include <wchar.h>
32736 #endif
32739 main ()
32742 char *p = (char *) mbswidth;
32745 return 0;
32747 _ACEOF
32748 rm -f conftest.$ac_objext
32749 if { (ac_try="$ac_compile"
32750 case "(($ac_try" in
32751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32752 *) ac_try_echo=$ac_try;;
32753 esac
32754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32755 (eval "$ac_compile") 2>conftest.er1
32756 ac_status=$?
32757 grep -v '^ *+' conftest.er1 >conftest.err
32758 rm -f conftest.er1
32759 cat conftest.err >&5
32760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32761 (exit $ac_status); } &&
32762 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32763 { (case "(($ac_try" in
32764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32765 *) ac_try_echo=$ac_try;;
32766 esac
32767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32768 (eval "$ac_try") 2>&5
32769 ac_status=$?
32770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32771 (exit $ac_status); }; } &&
32772 { ac_try='test -s conftest.$ac_objext'
32773 { (case "(($ac_try" in
32774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32775 *) ac_try_echo=$ac_try;;
32776 esac
32777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32778 (eval "$ac_try") 2>&5
32779 ac_status=$?
32780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32781 (exit $ac_status); }; }; then
32782 ac_cv_have_decl_mbswidth=yes
32783 else
32784 echo "$as_me: failed program was:" >&5
32785 sed 's/^/| /' conftest.$ac_ext >&5
32787 ac_cv_have_decl_mbswidth=no
32790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32792 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_mbswidth" >&5
32793 echo "${ECHO_T}$ac_cv_have_decl_mbswidth" >&6; }
32794 if test $ac_cv_have_decl_mbswidth = yes; then
32795 ac_val=1
32796 else
32797 ac_val=0
32800 cat >>confdefs.h <<_ACEOF
32801 #define HAVE_DECL_MBSWIDTH_IN_WCHAR_H $ac_val
32802 _ACEOF
32805 { echo "$as_me:$LINENO: checking for mbstate_t" >&5
32806 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
32807 if test "${ac_cv_type_mbstate_t+set}" = set; then
32808 echo $ECHO_N "(cached) $ECHO_C" >&6
32809 else
32810 cat >conftest.$ac_ext <<_ACEOF
32811 /* confdefs.h. */
32812 _ACEOF
32813 cat confdefs.h >>conftest.$ac_ext
32814 cat >>conftest.$ac_ext <<_ACEOF
32815 /* end confdefs.h. */
32816 $ac_includes_default
32817 # include <wchar.h>
32819 main ()
32821 mbstate_t x; return sizeof x;
32823 return 0;
32825 _ACEOF
32826 rm -f conftest.$ac_objext
32827 if { (ac_try="$ac_compile"
32828 case "(($ac_try" in
32829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32830 *) ac_try_echo=$ac_try;;
32831 esac
32832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32833 (eval "$ac_compile") 2>conftest.er1
32834 ac_status=$?
32835 grep -v '^ *+' conftest.er1 >conftest.err
32836 rm -f conftest.er1
32837 cat conftest.err >&5
32838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32839 (exit $ac_status); } &&
32840 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32841 { (case "(($ac_try" in
32842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32843 *) ac_try_echo=$ac_try;;
32844 esac
32845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32846 (eval "$ac_try") 2>&5
32847 ac_status=$?
32848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32849 (exit $ac_status); }; } &&
32850 { ac_try='test -s conftest.$ac_objext'
32851 { (case "(($ac_try" in
32852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32853 *) ac_try_echo=$ac_try;;
32854 esac
32855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32856 (eval "$ac_try") 2>&5
32857 ac_status=$?
32858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32859 (exit $ac_status); }; }; then
32860 ac_cv_type_mbstate_t=yes
32861 else
32862 echo "$as_me: failed program was:" >&5
32863 sed 's/^/| /' conftest.$ac_ext >&5
32865 ac_cv_type_mbstate_t=no
32868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32870 { echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
32871 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
32872 if test $ac_cv_type_mbstate_t = yes; then
32874 cat >>confdefs.h <<\_ACEOF
32875 #define HAVE_MBSTATE_T 1
32876 _ACEOF
32878 else
32880 cat >>confdefs.h <<\_ACEOF
32881 #define mbstate_t int
32882 _ACEOF
32888 case " $LIBOBJS " in
32889 *" md5.$ac_objext "* ) ;;
32890 *) LIBOBJS="$LIBOBJS md5.$ac_objext"
32892 esac
32900 case " $LIBOBJS " in
32901 *" memcoll.$ac_objext "* ) ;;
32902 *) LIBOBJS="$LIBOBJS memcoll.$ac_objext"
32904 esac
32907 { echo "$as_me:$LINENO: checking for working strcoll" >&5
32908 echo $ECHO_N "checking for working strcoll... $ECHO_C" >&6; }
32909 if test "${ac_cv_func_strcoll_works+set}" = set; then
32910 echo $ECHO_N "(cached) $ECHO_C" >&6
32911 else
32912 if test "$cross_compiling" = yes; then
32913 ac_cv_func_strcoll_works=no
32914 else
32915 cat >conftest.$ac_ext <<_ACEOF
32916 /* confdefs.h. */
32917 _ACEOF
32918 cat confdefs.h >>conftest.$ac_ext
32919 cat >>conftest.$ac_ext <<_ACEOF
32920 /* end confdefs.h. */
32921 $ac_includes_default
32923 main ()
32925 return (strcoll ("abc", "def") >= 0 ||
32926 strcoll ("ABC", "DEF") >= 0 ||
32927 strcoll ("123", "456") >= 0)
32929 return 0;
32931 _ACEOF
32932 rm -f conftest$ac_exeext
32933 if { (ac_try="$ac_link"
32934 case "(($ac_try" in
32935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32936 *) ac_try_echo=$ac_try;;
32937 esac
32938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32939 (eval "$ac_link") 2>&5
32940 ac_status=$?
32941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32942 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32943 { (case "(($ac_try" in
32944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32945 *) ac_try_echo=$ac_try;;
32946 esac
32947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32948 (eval "$ac_try") 2>&5
32949 ac_status=$?
32950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32951 (exit $ac_status); }; }; then
32952 ac_cv_func_strcoll_works=yes
32953 else
32954 echo "$as_me: program exited with status $ac_status" >&5
32955 echo "$as_me: failed program was:" >&5
32956 sed 's/^/| /' conftest.$ac_ext >&5
32958 ( exit $ac_status )
32959 ac_cv_func_strcoll_works=no
32961 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32966 { echo "$as_me:$LINENO: result: $ac_cv_func_strcoll_works" >&5
32967 echo "${ECHO_T}$ac_cv_func_strcoll_works" >&6; }
32968 if test $ac_cv_func_strcoll_works = yes; then
32970 cat >>confdefs.h <<\_ACEOF
32971 #define HAVE_STRCOLL 1
32972 _ACEOF
32981 case " $LIBOBJS " in
32982 *" memxfrm.$ac_objext "* ) ;;
32983 *) LIBOBJS="$LIBOBJS memxfrm.$ac_objext"
32985 esac
32999 case " $LIBOBJS " in
33000 *" mkancesdirs.$ac_objext "* ) ;;
33001 *) LIBOBJS="$LIBOBJS mkancesdirs.$ac_objext"
33003 esac
33018 for ac_header in unistd.h
33020 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33021 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33022 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33023 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33024 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33025 echo $ECHO_N "(cached) $ECHO_C" >&6
33027 ac_res=`eval echo '${'$as_ac_Header'}'`
33028 { echo "$as_me:$LINENO: result: $ac_res" >&5
33029 echo "${ECHO_T}$ac_res" >&6; }
33030 else
33031 # Is the header compilable?
33032 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
33033 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
33034 cat >conftest.$ac_ext <<_ACEOF
33035 /* confdefs.h. */
33036 _ACEOF
33037 cat confdefs.h >>conftest.$ac_ext
33038 cat >>conftest.$ac_ext <<_ACEOF
33039 /* end confdefs.h. */
33040 $ac_includes_default
33041 #include <$ac_header>
33042 _ACEOF
33043 rm -f conftest.$ac_objext
33044 if { (ac_try="$ac_compile"
33045 case "(($ac_try" in
33046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33047 *) ac_try_echo=$ac_try;;
33048 esac
33049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33050 (eval "$ac_compile") 2>conftest.er1
33051 ac_status=$?
33052 grep -v '^ *+' conftest.er1 >conftest.err
33053 rm -f conftest.er1
33054 cat conftest.err >&5
33055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33056 (exit $ac_status); } &&
33057 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33058 { (case "(($ac_try" in
33059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33060 *) ac_try_echo=$ac_try;;
33061 esac
33062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33063 (eval "$ac_try") 2>&5
33064 ac_status=$?
33065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33066 (exit $ac_status); }; } &&
33067 { ac_try='test -s conftest.$ac_objext'
33068 { (case "(($ac_try" in
33069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33070 *) ac_try_echo=$ac_try;;
33071 esac
33072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33073 (eval "$ac_try") 2>&5
33074 ac_status=$?
33075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33076 (exit $ac_status); }; }; then
33077 ac_header_compiler=yes
33078 else
33079 echo "$as_me: failed program was:" >&5
33080 sed 's/^/| /' conftest.$ac_ext >&5
33082 ac_header_compiler=no
33085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33086 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33087 echo "${ECHO_T}$ac_header_compiler" >&6; }
33089 # Is the header present?
33090 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
33091 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
33092 cat >conftest.$ac_ext <<_ACEOF
33093 /* confdefs.h. */
33094 _ACEOF
33095 cat confdefs.h >>conftest.$ac_ext
33096 cat >>conftest.$ac_ext <<_ACEOF
33097 /* end confdefs.h. */
33098 #include <$ac_header>
33099 _ACEOF
33100 if { (ac_try="$ac_cpp conftest.$ac_ext"
33101 case "(($ac_try" in
33102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33103 *) ac_try_echo=$ac_try;;
33104 esac
33105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33106 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33107 ac_status=$?
33108 grep -v '^ *+' conftest.er1 >conftest.err
33109 rm -f conftest.er1
33110 cat conftest.err >&5
33111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33112 (exit $ac_status); } >/dev/null; then
33113 if test -s conftest.err; then
33114 ac_cpp_err=$ac_c_preproc_warn_flag
33115 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33116 else
33117 ac_cpp_err=
33119 else
33120 ac_cpp_err=yes
33122 if test -z "$ac_cpp_err"; then
33123 ac_header_preproc=yes
33124 else
33125 echo "$as_me: failed program was:" >&5
33126 sed 's/^/| /' conftest.$ac_ext >&5
33128 ac_header_preproc=no
33131 rm -f conftest.err conftest.$ac_ext
33132 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33133 echo "${ECHO_T}$ac_header_preproc" >&6; }
33135 # So? What about this header?
33136 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33137 yes:no: )
33138 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33139 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33140 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33141 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33142 ac_header_preproc=yes
33144 no:yes:* )
33145 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33146 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33147 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33148 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33149 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33150 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33151 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
33152 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
33153 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33154 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33155 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33156 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33157 ( cat <<\_ASBOX
33158 ## ------------------------------------ ##
33159 ## Report this to bug-coreutils@gnu.org ##
33160 ## ------------------------------------ ##
33161 _ASBOX
33162 ) | sed "s/^/$as_me: WARNING: /" >&2
33164 esac
33165 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33166 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33167 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33168 echo $ECHO_N "(cached) $ECHO_C" >&6
33169 else
33170 eval "$as_ac_Header=\$ac_header_preproc"
33172 ac_res=`eval echo '${'$as_ac_Header'}'`
33173 { echo "$as_me:$LINENO: result: $ac_res" >&5
33174 echo "${ECHO_T}$ac_res" >&6; }
33177 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33178 cat >>confdefs.h <<_ACEOF
33179 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33180 _ACEOF
33184 done
33186 { echo "$as_me:$LINENO: checking for working chown" >&5
33187 echo $ECHO_N "checking for working chown... $ECHO_C" >&6; }
33188 if test "${ac_cv_func_chown_works+set}" = set; then
33189 echo $ECHO_N "(cached) $ECHO_C" >&6
33190 else
33191 if test "$cross_compiling" = yes; then
33192 ac_cv_func_chown_works=no
33193 else
33194 cat >conftest.$ac_ext <<_ACEOF
33195 /* confdefs.h. */
33196 _ACEOF
33197 cat confdefs.h >>conftest.$ac_ext
33198 cat >>conftest.$ac_ext <<_ACEOF
33199 /* end confdefs.h. */
33200 $ac_includes_default
33201 #include <fcntl.h>
33204 main ()
33206 char *f = "conftest.chown";
33207 struct stat before, after;
33209 if (creat (f, 0600) < 0)
33210 return 1;
33211 if (stat (f, &before) < 0)
33212 return 1;
33213 if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
33214 return 1;
33215 if (stat (f, &after) < 0)
33216 return 1;
33217 return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
33220 return 0;
33222 _ACEOF
33223 rm -f conftest$ac_exeext
33224 if { (ac_try="$ac_link"
33225 case "(($ac_try" in
33226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33227 *) ac_try_echo=$ac_try;;
33228 esac
33229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33230 (eval "$ac_link") 2>&5
33231 ac_status=$?
33232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33233 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33234 { (case "(($ac_try" in
33235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33236 *) ac_try_echo=$ac_try;;
33237 esac
33238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33239 (eval "$ac_try") 2>&5
33240 ac_status=$?
33241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33242 (exit $ac_status); }; }; then
33243 ac_cv_func_chown_works=yes
33244 else
33245 echo "$as_me: program exited with status $ac_status" >&5
33246 echo "$as_me: failed program was:" >&5
33247 sed 's/^/| /' conftest.$ac_ext >&5
33249 ( exit $ac_status )
33250 ac_cv_func_chown_works=no
33252 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33256 rm -f conftest.chown
33259 { echo "$as_me:$LINENO: result: $ac_cv_func_chown_works" >&5
33260 echo "${ECHO_T}$ac_cv_func_chown_works" >&6; }
33261 if test $ac_cv_func_chown_works = yes; then
33263 cat >>confdefs.h <<\_ACEOF
33264 #define HAVE_CHOWN 1
33265 _ACEOF
33270 { echo "$as_me:$LINENO: checking whether chown(2) dereferences symlinks" >&5
33271 echo $ECHO_N "checking whether chown(2) dereferences symlinks... $ECHO_C" >&6; }
33272 if test "${gl_cv_func_chown_follows_symlink+set}" = set; then
33273 echo $ECHO_N "(cached) $ECHO_C" >&6
33274 else
33276 if test "$cross_compiling" = yes; then
33277 gl_cv_func_chown_follows_symlink=yes
33279 else
33280 cat >conftest.$ac_ext <<_ACEOF
33281 /* confdefs.h. */
33282 _ACEOF
33283 cat confdefs.h >>conftest.$ac_ext
33284 cat >>conftest.$ac_ext <<_ACEOF
33285 /* end confdefs.h. */
33287 #include <unistd.h>
33288 #include <stdlib.h>
33289 #include <errno.h>
33292 main ()
33294 char const *dangling_symlink = "conftest.dangle";
33296 unlink (dangling_symlink);
33297 if (symlink ("conftest.no-such", dangling_symlink))
33298 abort ();
33300 /* Exit successfully on a conforming system,
33301 i.e., where chown must fail with ENOENT. */
33302 exit ( ! (chown (dangling_symlink, getuid (), getgid ()) != 0
33303 && errno == ENOENT));
33306 _ACEOF
33307 rm -f conftest$ac_exeext
33308 if { (ac_try="$ac_link"
33309 case "(($ac_try" in
33310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33311 *) ac_try_echo=$ac_try;;
33312 esac
33313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33314 (eval "$ac_link") 2>&5
33315 ac_status=$?
33316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33317 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33318 { (case "(($ac_try" in
33319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33320 *) ac_try_echo=$ac_try;;
33321 esac
33322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33323 (eval "$ac_try") 2>&5
33324 ac_status=$?
33325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33326 (exit $ac_status); }; }; then
33327 gl_cv_func_chown_follows_symlink=yes
33328 else
33329 echo "$as_me: program exited with status $ac_status" >&5
33330 echo "$as_me: failed program was:" >&5
33331 sed 's/^/| /' conftest.$ac_ext >&5
33333 ( exit $ac_status )
33334 gl_cv_func_chown_follows_symlink=no
33336 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33343 { echo "$as_me:$LINENO: result: $gl_cv_func_chown_follows_symlink" >&5
33344 echo "${ECHO_T}$gl_cv_func_chown_follows_symlink" >&6; }
33346 if test $gl_cv_func_chown_follows_symlink = no; then
33348 cat >>confdefs.h <<\_ACEOF
33349 #define CHOWN_MODIFIES_SYMLINK 1
33350 _ACEOF
33359 if test $ac_cv_func_chown_works = no; then
33361 cat >>confdefs.h <<\_ACEOF
33362 #define CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE 1
33363 _ACEOF
33367 # If chown has either of the above problems, then we need the wrapper.
33368 if test $ac_cv_func_chown_works$gl_cv_func_chown_follows_symlink = yesyes; then
33369 : # no wrapper needed
33370 else
33371 case " $LIBOBJS " in
33372 *" chown.$ac_objext "* ) ;;
33373 *) LIBOBJS="$LIBOBJS chown.$ac_objext"
33375 esac
33378 cat >>confdefs.h <<\_ACEOF
33379 #define chown rpl_chown
33380 _ACEOF
33383 { echo "$as_me:$LINENO: checking for fchown" >&5
33384 echo $ECHO_N "checking for fchown... $ECHO_C" >&6; }
33385 if test "${ac_cv_func_fchown+set}" = set; then
33386 echo $ECHO_N "(cached) $ECHO_C" >&6
33387 else
33388 cat >conftest.$ac_ext <<_ACEOF
33389 /* confdefs.h. */
33390 _ACEOF
33391 cat confdefs.h >>conftest.$ac_ext
33392 cat >>conftest.$ac_ext <<_ACEOF
33393 /* end confdefs.h. */
33394 /* Define fchown to an innocuous variant, in case <limits.h> declares fchown.
33395 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33396 #define fchown innocuous_fchown
33398 /* System header to define __stub macros and hopefully few prototypes,
33399 which can conflict with char fchown (); below.
33400 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33401 <limits.h> exists even on freestanding compilers. */
33403 #ifdef __STDC__
33404 # include <limits.h>
33405 #else
33406 # include <assert.h>
33407 #endif
33409 #undef fchown
33411 /* Override any GCC internal prototype to avoid an error.
33412 Use char because int might match the return type of a GCC
33413 builtin and then its argument prototype would still apply. */
33414 #ifdef __cplusplus
33415 extern "C"
33416 #endif
33417 char fchown ();
33418 /* The GNU C library defines this for functions which it implements
33419 to always fail with ENOSYS. Some functions are actually named
33420 something starting with __ and the normal name is an alias. */
33421 #if defined __stub_fchown || defined __stub___fchown
33422 choke me
33423 #endif
33426 main ()
33428 return fchown ();
33430 return 0;
33432 _ACEOF
33433 rm -f conftest.$ac_objext conftest$ac_exeext
33434 if { (ac_try="$ac_link"
33435 case "(($ac_try" in
33436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33437 *) ac_try_echo=$ac_try;;
33438 esac
33439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33440 (eval "$ac_link") 2>conftest.er1
33441 ac_status=$?
33442 grep -v '^ *+' conftest.er1 >conftest.err
33443 rm -f conftest.er1
33444 cat conftest.err >&5
33445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33446 (exit $ac_status); } &&
33447 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33448 { (case "(($ac_try" in
33449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33450 *) ac_try_echo=$ac_try;;
33451 esac
33452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33453 (eval "$ac_try") 2>&5
33454 ac_status=$?
33455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33456 (exit $ac_status); }; } &&
33457 { ac_try='test -s conftest$ac_exeext'
33458 { (case "(($ac_try" in
33459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33460 *) ac_try_echo=$ac_try;;
33461 esac
33462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33463 (eval "$ac_try") 2>&5
33464 ac_status=$?
33465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33466 (exit $ac_status); }; }; then
33467 ac_cv_func_fchown=yes
33468 else
33469 echo "$as_me: failed program was:" >&5
33470 sed 's/^/| /' conftest.$ac_ext >&5
33472 ac_cv_func_fchown=no
33475 rm -f core conftest.err conftest.$ac_objext \
33476 conftest$ac_exeext conftest.$ac_ext
33478 { echo "$as_me:$LINENO: result: $ac_cv_func_fchown" >&5
33479 echo "${ECHO_T}$ac_cv_func_fchown" >&6; }
33480 if test $ac_cv_func_fchown = yes; then
33482 else
33483 case " $LIBOBJS " in
33484 *" fchown-stub.$ac_objext "* ) ;;
33485 *) LIBOBJS="$LIBOBJS fchown-stub.$ac_objext"
33487 esac
33494 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
33495 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
33496 if test "${ac_cv_header_stat_broken+set}" = set; then
33497 echo $ECHO_N "(cached) $ECHO_C" >&6
33498 else
33499 cat >conftest.$ac_ext <<_ACEOF
33500 /* confdefs.h. */
33501 _ACEOF
33502 cat confdefs.h >>conftest.$ac_ext
33503 cat >>conftest.$ac_ext <<_ACEOF
33504 /* end confdefs.h. */
33505 #include <sys/types.h>
33506 #include <sys/stat.h>
33508 #if defined S_ISBLK && defined S_IFDIR
33509 # if S_ISBLK (S_IFDIR)
33510 You lose.
33511 # endif
33512 #endif
33514 #if defined S_ISBLK && defined S_IFCHR
33515 # if S_ISBLK (S_IFCHR)
33516 You lose.
33517 # endif
33518 #endif
33520 #if defined S_ISLNK && defined S_IFREG
33521 # if S_ISLNK (S_IFREG)
33522 You lose.
33523 # endif
33524 #endif
33526 #if defined S_ISSOCK && defined S_IFREG
33527 # if S_ISSOCK (S_IFREG)
33528 You lose.
33529 # endif
33530 #endif
33532 _ACEOF
33533 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33534 $EGREP "You lose" >/dev/null 2>&1; then
33535 ac_cv_header_stat_broken=yes
33536 else
33537 ac_cv_header_stat_broken=no
33539 rm -f conftest*
33542 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
33543 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
33544 if test $ac_cv_header_stat_broken = yes; then
33546 cat >>confdefs.h <<\_ACEOF
33547 #define STAT_MACROS_BROKEN 1
33548 _ACEOF
33563 for ac_func in lchown
33565 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33566 { echo "$as_me:$LINENO: checking for $ac_func" >&5
33567 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33568 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33569 echo $ECHO_N "(cached) $ECHO_C" >&6
33570 else
33571 cat >conftest.$ac_ext <<_ACEOF
33572 /* confdefs.h. */
33573 _ACEOF
33574 cat confdefs.h >>conftest.$ac_ext
33575 cat >>conftest.$ac_ext <<_ACEOF
33576 /* end confdefs.h. */
33577 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33578 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33579 #define $ac_func innocuous_$ac_func
33581 /* System header to define __stub macros and hopefully few prototypes,
33582 which can conflict with char $ac_func (); below.
33583 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33584 <limits.h> exists even on freestanding compilers. */
33586 #ifdef __STDC__
33587 # include <limits.h>
33588 #else
33589 # include <assert.h>
33590 #endif
33592 #undef $ac_func
33594 /* Override any GCC internal prototype to avoid an error.
33595 Use char because int might match the return type of a GCC
33596 builtin and then its argument prototype would still apply. */
33597 #ifdef __cplusplus
33598 extern "C"
33599 #endif
33600 char $ac_func ();
33601 /* The GNU C library defines this for functions which it implements
33602 to always fail with ENOSYS. Some functions are actually named
33603 something starting with __ and the normal name is an alias. */
33604 #if defined __stub_$ac_func || defined __stub___$ac_func
33605 choke me
33606 #endif
33609 main ()
33611 return $ac_func ();
33613 return 0;
33615 _ACEOF
33616 rm -f conftest.$ac_objext conftest$ac_exeext
33617 if { (ac_try="$ac_link"
33618 case "(($ac_try" in
33619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33620 *) ac_try_echo=$ac_try;;
33621 esac
33622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33623 (eval "$ac_link") 2>conftest.er1
33624 ac_status=$?
33625 grep -v '^ *+' conftest.er1 >conftest.err
33626 rm -f conftest.er1
33627 cat conftest.err >&5
33628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33629 (exit $ac_status); } &&
33630 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33631 { (case "(($ac_try" in
33632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33633 *) ac_try_echo=$ac_try;;
33634 esac
33635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33636 (eval "$ac_try") 2>&5
33637 ac_status=$?
33638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33639 (exit $ac_status); }; } &&
33640 { ac_try='test -s conftest$ac_exeext'
33641 { (case "(($ac_try" in
33642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33643 *) ac_try_echo=$ac_try;;
33644 esac
33645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33646 (eval "$ac_try") 2>&5
33647 ac_status=$?
33648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33649 (exit $ac_status); }; }; then
33650 eval "$as_ac_var=yes"
33651 else
33652 echo "$as_me: failed program was:" >&5
33653 sed 's/^/| /' conftest.$ac_ext >&5
33655 eval "$as_ac_var=no"
33658 rm -f core conftest.err conftest.$ac_objext \
33659 conftest$ac_exeext conftest.$ac_ext
33661 ac_res=`eval echo '${'$as_ac_var'}'`
33662 { echo "$as_me:$LINENO: result: $ac_res" >&5
33663 echo "${ECHO_T}$ac_res" >&6; }
33664 if test `eval echo '${'$as_ac_var'}'` = yes; then
33665 cat >>confdefs.h <<_ACEOF
33666 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33667 _ACEOF
33669 else
33670 case " $LIBOBJS " in
33671 *" $ac_func.$ac_objext "* ) ;;
33672 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
33674 esac
33677 done
33683 case " $LIBOBJS " in
33684 *" dirchownmod.$ac_objext "* ) ;;
33685 *) LIBOBJS="$LIBOBJS dirchownmod.$ac_objext"
33687 esac
33689 case " $LIBOBJS " in
33690 *" mkdir-p.$ac_objext "* ) ;;
33691 *) LIBOBJS="$LIBOBJS mkdir-p.$ac_objext"
33693 esac
33701 case " $LIBOBJS " in
33702 *" modechange.$ac_objext "* ) ;;
33703 *) LIBOBJS="$LIBOBJS modechange.$ac_objext"
33705 esac
33714 for ac_func in listmntent getmntinfo
33716 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33717 { echo "$as_me:$LINENO: checking for $ac_func" >&5
33718 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33719 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33720 echo $ECHO_N "(cached) $ECHO_C" >&6
33721 else
33722 cat >conftest.$ac_ext <<_ACEOF
33723 /* confdefs.h. */
33724 _ACEOF
33725 cat confdefs.h >>conftest.$ac_ext
33726 cat >>conftest.$ac_ext <<_ACEOF
33727 /* end confdefs.h. */
33728 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33729 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33730 #define $ac_func innocuous_$ac_func
33732 /* System header to define __stub macros and hopefully few prototypes,
33733 which can conflict with char $ac_func (); below.
33734 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33735 <limits.h> exists even on freestanding compilers. */
33737 #ifdef __STDC__
33738 # include <limits.h>
33739 #else
33740 # include <assert.h>
33741 #endif
33743 #undef $ac_func
33745 /* Override any GCC internal prototype to avoid an error.
33746 Use char because int might match the return type of a GCC
33747 builtin and then its argument prototype would still apply. */
33748 #ifdef __cplusplus
33749 extern "C"
33750 #endif
33751 char $ac_func ();
33752 /* The GNU C library defines this for functions which it implements
33753 to always fail with ENOSYS. Some functions are actually named
33754 something starting with __ and the normal name is an alias. */
33755 #if defined __stub_$ac_func || defined __stub___$ac_func
33756 choke me
33757 #endif
33760 main ()
33762 return $ac_func ();
33764 return 0;
33766 _ACEOF
33767 rm -f conftest.$ac_objext conftest$ac_exeext
33768 if { (ac_try="$ac_link"
33769 case "(($ac_try" in
33770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33771 *) ac_try_echo=$ac_try;;
33772 esac
33773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33774 (eval "$ac_link") 2>conftest.er1
33775 ac_status=$?
33776 grep -v '^ *+' conftest.er1 >conftest.err
33777 rm -f conftest.er1
33778 cat conftest.err >&5
33779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33780 (exit $ac_status); } &&
33781 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33782 { (case "(($ac_try" in
33783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33784 *) ac_try_echo=$ac_try;;
33785 esac
33786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33787 (eval "$ac_try") 2>&5
33788 ac_status=$?
33789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33790 (exit $ac_status); }; } &&
33791 { ac_try='test -s conftest$ac_exeext'
33792 { (case "(($ac_try" in
33793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33794 *) ac_try_echo=$ac_try;;
33795 esac
33796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33797 (eval "$ac_try") 2>&5
33798 ac_status=$?
33799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33800 (exit $ac_status); }; }; then
33801 eval "$as_ac_var=yes"
33802 else
33803 echo "$as_me: failed program was:" >&5
33804 sed 's/^/| /' conftest.$ac_ext >&5
33806 eval "$as_ac_var=no"
33809 rm -f core conftest.err conftest.$ac_objext \
33810 conftest$ac_exeext conftest.$ac_ext
33812 ac_res=`eval echo '${'$as_ac_var'}'`
33813 { echo "$as_me:$LINENO: result: $ac_res" >&5
33814 echo "${ECHO_T}$ac_res" >&6; }
33815 if test `eval echo '${'$as_ac_var'}'` = yes; then
33816 cat >>confdefs.h <<_ACEOF
33817 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33818 _ACEOF
33821 done
33832 # We must include grp.h before ucred.h on OSF V4.0, since ucred.h uses
33833 # NGROUPS (as the array dimension for a struct member) without a definition.
33835 for ac_header in sys/ucred.h
33837 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33838 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33839 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33840 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33841 echo $ECHO_N "(cached) $ECHO_C" >&6
33842 else
33843 cat >conftest.$ac_ext <<_ACEOF
33844 /* confdefs.h. */
33845 _ACEOF
33846 cat confdefs.h >>conftest.$ac_ext
33847 cat >>conftest.$ac_ext <<_ACEOF
33848 /* end confdefs.h. */
33849 #include <grp.h>
33851 #include <$ac_header>
33852 _ACEOF
33853 rm -f conftest.$ac_objext
33854 if { (ac_try="$ac_compile"
33855 case "(($ac_try" in
33856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33857 *) ac_try_echo=$ac_try;;
33858 esac
33859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33860 (eval "$ac_compile") 2>conftest.er1
33861 ac_status=$?
33862 grep -v '^ *+' conftest.er1 >conftest.err
33863 rm -f conftest.er1
33864 cat conftest.err >&5
33865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33866 (exit $ac_status); } &&
33867 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33868 { (case "(($ac_try" in
33869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33870 *) ac_try_echo=$ac_try;;
33871 esac
33872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33873 (eval "$ac_try") 2>&5
33874 ac_status=$?
33875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33876 (exit $ac_status); }; } &&
33877 { ac_try='test -s conftest.$ac_objext'
33878 { (case "(($ac_try" in
33879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33880 *) ac_try_echo=$ac_try;;
33881 esac
33882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33883 (eval "$ac_try") 2>&5
33884 ac_status=$?
33885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33886 (exit $ac_status); }; }; then
33887 eval "$as_ac_Header=yes"
33888 else
33889 echo "$as_me: failed program was:" >&5
33890 sed 's/^/| /' conftest.$ac_ext >&5
33892 eval "$as_ac_Header=no"
33895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33897 ac_res=`eval echo '${'$as_ac_Header'}'`
33898 { echo "$as_me:$LINENO: result: $ac_res" >&5
33899 echo "${ECHO_T}$ac_res" >&6; }
33900 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33901 cat >>confdefs.h <<_ACEOF
33902 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33903 _ACEOF
33907 done
33911 for ac_header in sys/mount.h
33913 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33914 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33915 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33916 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33917 echo $ECHO_N "(cached) $ECHO_C" >&6
33918 else
33919 cat >conftest.$ac_ext <<_ACEOF
33920 /* confdefs.h. */
33921 _ACEOF
33922 cat confdefs.h >>conftest.$ac_ext
33923 cat >>conftest.$ac_ext <<_ACEOF
33924 /* end confdefs.h. */
33925 $ac_includes_default
33926 #if HAVE_SYS_PARAM_H
33927 #include <sys/param.h>
33928 #endif
33930 #include <$ac_header>
33931 _ACEOF
33932 rm -f conftest.$ac_objext
33933 if { (ac_try="$ac_compile"
33934 case "(($ac_try" in
33935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33936 *) ac_try_echo=$ac_try;;
33937 esac
33938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33939 (eval "$ac_compile") 2>conftest.er1
33940 ac_status=$?
33941 grep -v '^ *+' conftest.er1 >conftest.err
33942 rm -f conftest.er1
33943 cat conftest.err >&5
33944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33945 (exit $ac_status); } &&
33946 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33947 { (case "(($ac_try" in
33948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33949 *) ac_try_echo=$ac_try;;
33950 esac
33951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33952 (eval "$ac_try") 2>&5
33953 ac_status=$?
33954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33955 (exit $ac_status); }; } &&
33956 { ac_try='test -s conftest.$ac_objext'
33957 { (case "(($ac_try" in
33958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33959 *) ac_try_echo=$ac_try;;
33960 esac
33961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33962 (eval "$ac_try") 2>&5
33963 ac_status=$?
33964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33965 (exit $ac_status); }; }; then
33966 eval "$as_ac_Header=yes"
33967 else
33968 echo "$as_me: failed program was:" >&5
33969 sed 's/^/| /' conftest.$ac_ext >&5
33971 eval "$as_ac_Header=no"
33974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33976 ac_res=`eval echo '${'$as_ac_Header'}'`
33977 { echo "$as_me:$LINENO: result: $ac_res" >&5
33978 echo "${ECHO_T}$ac_res" >&6; }
33979 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33980 cat >>confdefs.h <<_ACEOF
33981 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33982 _ACEOF
33986 done
33991 for ac_header in mntent.h sys/fs_types.h
33993 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33994 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33995 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33996 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33997 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33998 echo $ECHO_N "(cached) $ECHO_C" >&6
34000 ac_res=`eval echo '${'$as_ac_Header'}'`
34001 { echo "$as_me:$LINENO: result: $ac_res" >&5
34002 echo "${ECHO_T}$ac_res" >&6; }
34003 else
34004 # Is the header compilable?
34005 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
34006 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
34007 cat >conftest.$ac_ext <<_ACEOF
34008 /* confdefs.h. */
34009 _ACEOF
34010 cat confdefs.h >>conftest.$ac_ext
34011 cat >>conftest.$ac_ext <<_ACEOF
34012 /* end confdefs.h. */
34013 $ac_includes_default
34014 #include <$ac_header>
34015 _ACEOF
34016 rm -f conftest.$ac_objext
34017 if { (ac_try="$ac_compile"
34018 case "(($ac_try" in
34019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34020 *) ac_try_echo=$ac_try;;
34021 esac
34022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34023 (eval "$ac_compile") 2>conftest.er1
34024 ac_status=$?
34025 grep -v '^ *+' conftest.er1 >conftest.err
34026 rm -f conftest.er1
34027 cat conftest.err >&5
34028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34029 (exit $ac_status); } &&
34030 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34031 { (case "(($ac_try" in
34032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34033 *) ac_try_echo=$ac_try;;
34034 esac
34035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34036 (eval "$ac_try") 2>&5
34037 ac_status=$?
34038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34039 (exit $ac_status); }; } &&
34040 { ac_try='test -s conftest.$ac_objext'
34041 { (case "(($ac_try" in
34042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34043 *) ac_try_echo=$ac_try;;
34044 esac
34045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34046 (eval "$ac_try") 2>&5
34047 ac_status=$?
34048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34049 (exit $ac_status); }; }; then
34050 ac_header_compiler=yes
34051 else
34052 echo "$as_me: failed program was:" >&5
34053 sed 's/^/| /' conftest.$ac_ext >&5
34055 ac_header_compiler=no
34058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34059 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34060 echo "${ECHO_T}$ac_header_compiler" >&6; }
34062 # Is the header present?
34063 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
34064 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
34065 cat >conftest.$ac_ext <<_ACEOF
34066 /* confdefs.h. */
34067 _ACEOF
34068 cat confdefs.h >>conftest.$ac_ext
34069 cat >>conftest.$ac_ext <<_ACEOF
34070 /* end confdefs.h. */
34071 #include <$ac_header>
34072 _ACEOF
34073 if { (ac_try="$ac_cpp conftest.$ac_ext"
34074 case "(($ac_try" in
34075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34076 *) ac_try_echo=$ac_try;;
34077 esac
34078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34079 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34080 ac_status=$?
34081 grep -v '^ *+' conftest.er1 >conftest.err
34082 rm -f conftest.er1
34083 cat conftest.err >&5
34084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34085 (exit $ac_status); } >/dev/null; then
34086 if test -s conftest.err; then
34087 ac_cpp_err=$ac_c_preproc_warn_flag
34088 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34089 else
34090 ac_cpp_err=
34092 else
34093 ac_cpp_err=yes
34095 if test -z "$ac_cpp_err"; then
34096 ac_header_preproc=yes
34097 else
34098 echo "$as_me: failed program was:" >&5
34099 sed 's/^/| /' conftest.$ac_ext >&5
34101 ac_header_preproc=no
34104 rm -f conftest.err conftest.$ac_ext
34105 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34106 echo "${ECHO_T}$ac_header_preproc" >&6; }
34108 # So? What about this header?
34109 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34110 yes:no: )
34111 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34112 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
34113 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34114 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34115 ac_header_preproc=yes
34117 no:yes:* )
34118 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34119 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
34120 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
34121 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
34122 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34123 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34124 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
34125 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
34126 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34127 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
34128 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34129 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
34130 ( cat <<\_ASBOX
34131 ## ------------------------------------ ##
34132 ## Report this to bug-coreutils@gnu.org ##
34133 ## ------------------------------------ ##
34134 _ASBOX
34135 ) | sed "s/^/$as_me: WARNING: /" >&2
34137 esac
34138 { echo "$as_me:$LINENO: checking for $ac_header" >&5
34139 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34140 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34141 echo $ECHO_N "(cached) $ECHO_C" >&6
34142 else
34143 eval "$as_ac_Header=\$ac_header_preproc"
34145 ac_res=`eval echo '${'$as_ac_Header'}'`
34146 { echo "$as_me:$LINENO: result: $ac_res" >&5
34147 echo "${ECHO_T}$ac_res" >&6; }
34150 if test `eval echo '${'$as_ac_Header'}'` = yes; then
34151 cat >>confdefs.h <<_ACEOF
34152 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34153 _ACEOF
34157 done
34159 getfsstat_includes="\
34160 $ac_includes_default
34161 #if HAVE_SYS_PARAM_H
34162 # include <sys/param.h> /* needed by powerpc-apple-darwin1.3.7 */
34163 #endif
34164 #if HAVE_SYS_UCRED_H
34165 # include <grp.h> /* needed for definition of NGROUPS */
34166 # include <sys/ucred.h> /* needed by powerpc-apple-darwin1.3.7 */
34167 #endif
34168 #if HAVE_SYS_MOUNT_H
34169 # include <sys/mount.h>
34170 #endif
34171 #if HAVE_SYS_FS_TYPES_H
34172 # include <sys/fs_types.h> /* needed by powerpc-apple-darwin1.3.7 */
34173 #endif
34175 { echo "$as_me:$LINENO: checking for struct fsstat.f_fstypename" >&5
34176 echo $ECHO_N "checking for struct fsstat.f_fstypename... $ECHO_C" >&6; }
34177 if test "${ac_cv_member_struct_fsstat_f_fstypename+set}" = set; then
34178 echo $ECHO_N "(cached) $ECHO_C" >&6
34179 else
34180 cat >conftest.$ac_ext <<_ACEOF
34181 /* confdefs.h. */
34182 _ACEOF
34183 cat confdefs.h >>conftest.$ac_ext
34184 cat >>conftest.$ac_ext <<_ACEOF
34185 /* end confdefs.h. */
34186 $getfsstat_includes
34189 main ()
34191 static struct fsstat ac_aggr;
34192 if (ac_aggr.f_fstypename)
34193 return 0;
34195 return 0;
34197 _ACEOF
34198 rm -f conftest.$ac_objext
34199 if { (ac_try="$ac_compile"
34200 case "(($ac_try" in
34201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34202 *) ac_try_echo=$ac_try;;
34203 esac
34204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34205 (eval "$ac_compile") 2>conftest.er1
34206 ac_status=$?
34207 grep -v '^ *+' conftest.er1 >conftest.err
34208 rm -f conftest.er1
34209 cat conftest.err >&5
34210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34211 (exit $ac_status); } &&
34212 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34213 { (case "(($ac_try" in
34214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34215 *) ac_try_echo=$ac_try;;
34216 esac
34217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34218 (eval "$ac_try") 2>&5
34219 ac_status=$?
34220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34221 (exit $ac_status); }; } &&
34222 { ac_try='test -s conftest.$ac_objext'
34223 { (case "(($ac_try" in
34224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34225 *) ac_try_echo=$ac_try;;
34226 esac
34227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34228 (eval "$ac_try") 2>&5
34229 ac_status=$?
34230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34231 (exit $ac_status); }; }; then
34232 ac_cv_member_struct_fsstat_f_fstypename=yes
34233 else
34234 echo "$as_me: failed program was:" >&5
34235 sed 's/^/| /' conftest.$ac_ext >&5
34237 cat >conftest.$ac_ext <<_ACEOF
34238 /* confdefs.h. */
34239 _ACEOF
34240 cat confdefs.h >>conftest.$ac_ext
34241 cat >>conftest.$ac_ext <<_ACEOF
34242 /* end confdefs.h. */
34243 $getfsstat_includes
34246 main ()
34248 static struct fsstat ac_aggr;
34249 if (sizeof ac_aggr.f_fstypename)
34250 return 0;
34252 return 0;
34254 _ACEOF
34255 rm -f conftest.$ac_objext
34256 if { (ac_try="$ac_compile"
34257 case "(($ac_try" in
34258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34259 *) ac_try_echo=$ac_try;;
34260 esac
34261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34262 (eval "$ac_compile") 2>conftest.er1
34263 ac_status=$?
34264 grep -v '^ *+' conftest.er1 >conftest.err
34265 rm -f conftest.er1
34266 cat conftest.err >&5
34267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34268 (exit $ac_status); } &&
34269 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34270 { (case "(($ac_try" in
34271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34272 *) ac_try_echo=$ac_try;;
34273 esac
34274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34275 (eval "$ac_try") 2>&5
34276 ac_status=$?
34277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34278 (exit $ac_status); }; } &&
34279 { ac_try='test -s conftest.$ac_objext'
34280 { (case "(($ac_try" in
34281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34282 *) ac_try_echo=$ac_try;;
34283 esac
34284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34285 (eval "$ac_try") 2>&5
34286 ac_status=$?
34287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34288 (exit $ac_status); }; }; then
34289 ac_cv_member_struct_fsstat_f_fstypename=yes
34290 else
34291 echo "$as_me: failed program was:" >&5
34292 sed 's/^/| /' conftest.$ac_ext >&5
34294 ac_cv_member_struct_fsstat_f_fstypename=no
34297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34302 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_fsstat_f_fstypename" >&5
34303 echo "${ECHO_T}$ac_cv_member_struct_fsstat_f_fstypename" >&6; }
34304 if test $ac_cv_member_struct_fsstat_f_fstypename = yes; then
34306 cat >>confdefs.h <<_ACEOF
34307 #define HAVE_STRUCT_FSSTAT_F_FSTYPENAME 1
34308 _ACEOF
34314 # Determine how to get the list of mounted file systems.
34315 ac_list_mounted_fs=
34317 # If the getmntent function is available but not in the standard library,
34318 # make sure LIBS contains the appropriate -l option.
34319 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
34320 # -lseq on Dynix/PTX, -lgen on Unixware.
34321 { echo "$as_me:$LINENO: checking for library containing getmntent" >&5
34322 echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; }
34323 if test "${ac_cv_search_getmntent+set}" = set; then
34324 echo $ECHO_N "(cached) $ECHO_C" >&6
34325 else
34326 ac_func_search_save_LIBS=$LIBS
34327 cat >conftest.$ac_ext <<_ACEOF
34328 /* confdefs.h. */
34329 _ACEOF
34330 cat confdefs.h >>conftest.$ac_ext
34331 cat >>conftest.$ac_ext <<_ACEOF
34332 /* end confdefs.h. */
34334 /* Override any GCC internal prototype to avoid an error.
34335 Use char because int might match the return type of a GCC
34336 builtin and then its argument prototype would still apply. */
34337 #ifdef __cplusplus
34338 extern "C"
34339 #endif
34340 char getmntent ();
34342 main ()
34344 return getmntent ();
34346 return 0;
34348 _ACEOF
34349 for ac_lib in '' sun seq gen; do
34350 if test -z "$ac_lib"; then
34351 ac_res="none required"
34352 else
34353 ac_res=-l$ac_lib
34354 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
34356 rm -f conftest.$ac_objext conftest$ac_exeext
34357 if { (ac_try="$ac_link"
34358 case "(($ac_try" in
34359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34360 *) ac_try_echo=$ac_try;;
34361 esac
34362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34363 (eval "$ac_link") 2>conftest.er1
34364 ac_status=$?
34365 grep -v '^ *+' conftest.er1 >conftest.err
34366 rm -f conftest.er1
34367 cat conftest.err >&5
34368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34369 (exit $ac_status); } &&
34370 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34371 { (case "(($ac_try" in
34372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34373 *) ac_try_echo=$ac_try;;
34374 esac
34375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34376 (eval "$ac_try") 2>&5
34377 ac_status=$?
34378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34379 (exit $ac_status); }; } &&
34380 { ac_try='test -s conftest$ac_exeext'
34381 { (case "(($ac_try" in
34382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34383 *) ac_try_echo=$ac_try;;
34384 esac
34385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34386 (eval "$ac_try") 2>&5
34387 ac_status=$?
34388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34389 (exit $ac_status); }; }; then
34390 ac_cv_search_getmntent=$ac_res
34391 else
34392 echo "$as_me: failed program was:" >&5
34393 sed 's/^/| /' conftest.$ac_ext >&5
34398 rm -f core conftest.err conftest.$ac_objext \
34399 conftest$ac_exeext
34400 if test "${ac_cv_search_getmntent+set}" = set; then
34401 break
34403 done
34404 if test "${ac_cv_search_getmntent+set}" = set; then
34406 else
34407 ac_cv_search_getmntent=no
34409 rm conftest.$ac_ext
34410 LIBS=$ac_func_search_save_LIBS
34412 { echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
34413 echo "${ECHO_T}$ac_cv_search_getmntent" >&6; }
34414 ac_res=$ac_cv_search_getmntent
34415 if test "$ac_res" != no; then
34416 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
34421 for ac_func in getmntent
34423 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34424 { echo "$as_me:$LINENO: checking for $ac_func" >&5
34425 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34426 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34427 echo $ECHO_N "(cached) $ECHO_C" >&6
34428 else
34429 cat >conftest.$ac_ext <<_ACEOF
34430 /* confdefs.h. */
34431 _ACEOF
34432 cat confdefs.h >>conftest.$ac_ext
34433 cat >>conftest.$ac_ext <<_ACEOF
34434 /* end confdefs.h. */
34435 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34436 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34437 #define $ac_func innocuous_$ac_func
34439 /* System header to define __stub macros and hopefully few prototypes,
34440 which can conflict with char $ac_func (); below.
34441 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34442 <limits.h> exists even on freestanding compilers. */
34444 #ifdef __STDC__
34445 # include <limits.h>
34446 #else
34447 # include <assert.h>
34448 #endif
34450 #undef $ac_func
34452 /* Override any GCC internal prototype to avoid an error.
34453 Use char because int might match the return type of a GCC
34454 builtin and then its argument prototype would still apply. */
34455 #ifdef __cplusplus
34456 extern "C"
34457 #endif
34458 char $ac_func ();
34459 /* The GNU C library defines this for functions which it implements
34460 to always fail with ENOSYS. Some functions are actually named
34461 something starting with __ and the normal name is an alias. */
34462 #if defined __stub_$ac_func || defined __stub___$ac_func
34463 choke me
34464 #endif
34467 main ()
34469 return $ac_func ();
34471 return 0;
34473 _ACEOF
34474 rm -f conftest.$ac_objext conftest$ac_exeext
34475 if { (ac_try="$ac_link"
34476 case "(($ac_try" in
34477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34478 *) ac_try_echo=$ac_try;;
34479 esac
34480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34481 (eval "$ac_link") 2>conftest.er1
34482 ac_status=$?
34483 grep -v '^ *+' conftest.er1 >conftest.err
34484 rm -f conftest.er1
34485 cat conftest.err >&5
34486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34487 (exit $ac_status); } &&
34488 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34489 { (case "(($ac_try" in
34490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34491 *) ac_try_echo=$ac_try;;
34492 esac
34493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34494 (eval "$ac_try") 2>&5
34495 ac_status=$?
34496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34497 (exit $ac_status); }; } &&
34498 { ac_try='test -s conftest$ac_exeext'
34499 { (case "(($ac_try" in
34500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34501 *) ac_try_echo=$ac_try;;
34502 esac
34503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34504 (eval "$ac_try") 2>&5
34505 ac_status=$?
34506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34507 (exit $ac_status); }; }; then
34508 eval "$as_ac_var=yes"
34509 else
34510 echo "$as_me: failed program was:" >&5
34511 sed 's/^/| /' conftest.$ac_ext >&5
34513 eval "$as_ac_var=no"
34516 rm -f core conftest.err conftest.$ac_objext \
34517 conftest$ac_exeext conftest.$ac_ext
34519 ac_res=`eval echo '${'$as_ac_var'}'`
34520 { echo "$as_me:$LINENO: result: $ac_res" >&5
34521 echo "${ECHO_T}$ac_res" >&6; }
34522 if test `eval echo '${'$as_ac_var'}'` = yes; then
34523 cat >>confdefs.h <<_ACEOF
34524 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34525 _ACEOF
34528 done
34532 # This test must precede the ones for getmntent because Unicos-9 is
34533 # reported to have the getmntent function, but its support is incompatible
34534 # with other getmntent implementations.
34536 # NOTE: Normally, I wouldn't use a check for system type as I've done for
34537 # `CRAY' below since that goes against the whole autoconf philosophy. But
34538 # I think there is too great a chance that some non-Cray system has a
34539 # function named listmntent to risk the false positive.
34541 if test -z "$ac_list_mounted_fs"; then
34542 # Cray UNICOS 9
34543 { echo "$as_me:$LINENO: checking for listmntent of Cray/Unicos-9" >&5
34544 echo $ECHO_N "checking for listmntent of Cray/Unicos-9... $ECHO_C" >&6; }
34545 if test "${fu_cv_sys_mounted_cray_listmntent+set}" = set; then
34546 echo $ECHO_N "(cached) $ECHO_C" >&6
34547 else
34548 fu_cv_sys_mounted_cray_listmntent=no
34549 cat >conftest.$ac_ext <<_ACEOF
34550 /* confdefs.h. */
34551 _ACEOF
34552 cat confdefs.h >>conftest.$ac_ext
34553 cat >>conftest.$ac_ext <<_ACEOF
34554 /* end confdefs.h. */
34555 #ifdef _CRAY
34557 #endif
34559 _ACEOF
34560 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34561 $EGREP "yes" >/dev/null 2>&1; then
34562 test $ac_cv_func_listmntent = yes \
34563 && fu_cv_sys_mounted_cray_listmntent=yes
34566 rm -f conftest*
34572 { echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_cray_listmntent" >&5
34573 echo "${ECHO_T}$fu_cv_sys_mounted_cray_listmntent" >&6; }
34574 if test $fu_cv_sys_mounted_cray_listmntent = yes; then
34575 ac_list_mounted_fs=found
34577 cat >>confdefs.h <<\_ACEOF
34578 #define MOUNTED_LISTMNTENT 1
34579 _ACEOF
34584 if test -z "$ac_list_mounted_fs"; then
34585 # AIX.
34586 { echo "$as_me:$LINENO: checking for mntctl function and struct vmount" >&5
34587 echo $ECHO_N "checking for mntctl function and struct vmount... $ECHO_C" >&6; }
34588 if test "${fu_cv_sys_mounted_vmount+set}" = set; then
34589 echo $ECHO_N "(cached) $ECHO_C" >&6
34590 else
34591 cat >conftest.$ac_ext <<_ACEOF
34592 /* confdefs.h. */
34593 _ACEOF
34594 cat confdefs.h >>conftest.$ac_ext
34595 cat >>conftest.$ac_ext <<_ACEOF
34596 /* end confdefs.h. */
34597 #include <fshelp.h>
34598 _ACEOF
34599 if { (ac_try="$ac_cpp conftest.$ac_ext"
34600 case "(($ac_try" in
34601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34602 *) ac_try_echo=$ac_try;;
34603 esac
34604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34605 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34606 ac_status=$?
34607 grep -v '^ *+' conftest.er1 >conftest.err
34608 rm -f conftest.er1
34609 cat conftest.err >&5
34610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34611 (exit $ac_status); } >/dev/null; then
34612 if test -s conftest.err; then
34613 ac_cpp_err=$ac_c_preproc_warn_flag
34614 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34615 else
34616 ac_cpp_err=
34618 else
34619 ac_cpp_err=yes
34621 if test -z "$ac_cpp_err"; then
34622 fu_cv_sys_mounted_vmount=yes
34623 else
34624 echo "$as_me: failed program was:" >&5
34625 sed 's/^/| /' conftest.$ac_ext >&5
34627 fu_cv_sys_mounted_vmount=no
34630 rm -f conftest.err conftest.$ac_ext
34633 { echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_vmount" >&5
34634 echo "${ECHO_T}$fu_cv_sys_mounted_vmount" >&6; }
34635 if test $fu_cv_sys_mounted_vmount = yes; then
34636 ac_list_mounted_fs=found
34638 cat >>confdefs.h <<\_ACEOF
34639 #define MOUNTED_VMOUNT 1
34640 _ACEOF
34645 if test $ac_cv_func_getmntent = yes; then
34647 # This system has the getmntent function.
34648 # Determine whether it's the one-argument variant or the two-argument one.
34650 if test -z "$ac_list_mounted_fs"; then
34651 # 4.3BSD, SunOS, HP-UX, Dynix, Irix
34652 { echo "$as_me:$LINENO: checking for one-argument getmntent function" >&5
34653 echo $ECHO_N "checking for one-argument getmntent function... $ECHO_C" >&6; }
34654 if test "${fu_cv_sys_mounted_getmntent1+set}" = set; then
34655 echo $ECHO_N "(cached) $ECHO_C" >&6
34656 else
34657 cat >conftest.$ac_ext <<_ACEOF
34658 /* confdefs.h. */
34659 _ACEOF
34660 cat confdefs.h >>conftest.$ac_ext
34661 cat >>conftest.$ac_ext <<_ACEOF
34662 /* end confdefs.h. */
34664 /* SunOS 4.1.x /usr/include/mntent.h needs this for FILE */
34665 #include <stdio.h>
34667 #include <mntent.h>
34668 #if !defined MOUNTED
34669 # if defined _PATH_MOUNTED /* GNU libc */
34670 # define MOUNTED _PATH_MOUNTED
34671 # endif
34672 # if defined MNT_MNTTAB /* HP-UX. */
34673 # define MOUNTED MNT_MNTTAB
34674 # endif
34675 # if defined MNTTABNAME /* Dynix. */
34676 # define MOUNTED MNTTABNAME
34677 # endif
34678 #endif
34681 main ()
34683 struct mntent *mnt = 0; char *table = MOUNTED;
34685 return 0;
34687 _ACEOF
34688 rm -f conftest.$ac_objext
34689 if { (ac_try="$ac_compile"
34690 case "(($ac_try" in
34691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34692 *) ac_try_echo=$ac_try;;
34693 esac
34694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34695 (eval "$ac_compile") 2>conftest.er1
34696 ac_status=$?
34697 grep -v '^ *+' conftest.er1 >conftest.err
34698 rm -f conftest.er1
34699 cat conftest.err >&5
34700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34701 (exit $ac_status); } &&
34702 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34703 { (case "(($ac_try" in
34704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34705 *) ac_try_echo=$ac_try;;
34706 esac
34707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34708 (eval "$ac_try") 2>&5
34709 ac_status=$?
34710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34711 (exit $ac_status); }; } &&
34712 { ac_try='test -s conftest.$ac_objext'
34713 { (case "(($ac_try" in
34714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34715 *) ac_try_echo=$ac_try;;
34716 esac
34717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34718 (eval "$ac_try") 2>&5
34719 ac_status=$?
34720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34721 (exit $ac_status); }; }; then
34722 fu_cv_sys_mounted_getmntent1=yes
34723 else
34724 echo "$as_me: failed program was:" >&5
34725 sed 's/^/| /' conftest.$ac_ext >&5
34727 fu_cv_sys_mounted_getmntent1=no
34730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34733 { echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_getmntent1" >&5
34734 echo "${ECHO_T}$fu_cv_sys_mounted_getmntent1" >&6; }
34735 if test $fu_cv_sys_mounted_getmntent1 = yes; then
34736 ac_list_mounted_fs=found
34738 cat >>confdefs.h <<\_ACEOF
34739 #define MOUNTED_GETMNTENT1 1
34740 _ACEOF
34745 if test -z "$ac_list_mounted_fs"; then
34746 # SVR4
34747 { echo "$as_me:$LINENO: checking for two-argument getmntent function" >&5
34748 echo $ECHO_N "checking for two-argument getmntent function... $ECHO_C" >&6; }
34749 if test "${fu_cv_sys_mounted_getmntent2+set}" = set; then
34750 echo $ECHO_N "(cached) $ECHO_C" >&6
34751 else
34752 cat >conftest.$ac_ext <<_ACEOF
34753 /* confdefs.h. */
34754 _ACEOF
34755 cat confdefs.h >>conftest.$ac_ext
34756 cat >>conftest.$ac_ext <<_ACEOF
34757 /* end confdefs.h. */
34758 #include <sys/mnttab.h>
34760 _ACEOF
34761 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34762 $EGREP "getmntent" >/dev/null 2>&1; then
34763 fu_cv_sys_mounted_getmntent2=yes
34764 else
34765 fu_cv_sys_mounted_getmntent2=no
34767 rm -f conftest*
34771 { echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_getmntent2" >&5
34772 echo "${ECHO_T}$fu_cv_sys_mounted_getmntent2" >&6; }
34773 if test $fu_cv_sys_mounted_getmntent2 = yes; then
34774 ac_list_mounted_fs=found
34776 cat >>confdefs.h <<\_ACEOF
34777 #define MOUNTED_GETMNTENT2 1
34778 _ACEOF
34785 if test -z "$ac_list_mounted_fs"; then
34786 # DEC Alpha running OSF/1, and Apple Darwin 1.3.
34787 # powerpc-apple-darwin1.3.7 needs sys/param.h sys/ucred.h sys/fs_types.h
34789 { echo "$as_me:$LINENO: checking for getfsstat function" >&5
34790 echo $ECHO_N "checking for getfsstat function... $ECHO_C" >&6; }
34791 if test "${fu_cv_sys_mounted_getfsstat+set}" = set; then
34792 echo $ECHO_N "(cached) $ECHO_C" >&6
34793 else
34794 cat >conftest.$ac_ext <<_ACEOF
34795 /* confdefs.h. */
34796 _ACEOF
34797 cat confdefs.h >>conftest.$ac_ext
34798 cat >>conftest.$ac_ext <<_ACEOF
34799 /* end confdefs.h. */
34801 #include <sys/types.h>
34802 #if HAVE_STRUCT_FSSTAT_F_FSTYPENAME
34803 # define FS_TYPE(Ent) ((Ent).f_fstypename)
34804 #else
34805 # define FS_TYPE(Ent) mnt_names[(Ent).f_type]
34806 #endif
34807 $getfsstat_includes
34810 main ()
34812 struct statfs *stats;
34813 int numsys = getfsstat ((struct statfs *)0, 0L, MNT_WAIT);
34814 char *t = FS_TYPE (*stats);
34816 return 0;
34818 _ACEOF
34819 rm -f conftest.$ac_objext conftest$ac_exeext
34820 if { (ac_try="$ac_link"
34821 case "(($ac_try" in
34822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34823 *) ac_try_echo=$ac_try;;
34824 esac
34825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34826 (eval "$ac_link") 2>conftest.er1
34827 ac_status=$?
34828 grep -v '^ *+' conftest.er1 >conftest.err
34829 rm -f conftest.er1
34830 cat conftest.err >&5
34831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34832 (exit $ac_status); } &&
34833 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34834 { (case "(($ac_try" in
34835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34836 *) ac_try_echo=$ac_try;;
34837 esac
34838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34839 (eval "$ac_try") 2>&5
34840 ac_status=$?
34841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34842 (exit $ac_status); }; } &&
34843 { ac_try='test -s conftest$ac_exeext'
34844 { (case "(($ac_try" in
34845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34846 *) ac_try_echo=$ac_try;;
34847 esac
34848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34849 (eval "$ac_try") 2>&5
34850 ac_status=$?
34851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34852 (exit $ac_status); }; }; then
34853 fu_cv_sys_mounted_getfsstat=yes
34854 else
34855 echo "$as_me: failed program was:" >&5
34856 sed 's/^/| /' conftest.$ac_ext >&5
34858 fu_cv_sys_mounted_getfsstat=no
34861 rm -f core conftest.err conftest.$ac_objext \
34862 conftest$ac_exeext conftest.$ac_ext
34865 { echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_getfsstat" >&5
34866 echo "${ECHO_T}$fu_cv_sys_mounted_getfsstat" >&6; }
34867 if test $fu_cv_sys_mounted_getfsstat = yes; then
34868 ac_list_mounted_fs=found
34870 cat >>confdefs.h <<\_ACEOF
34871 #define MOUNTED_GETFSSTAT 1
34872 _ACEOF
34877 if test -z "$ac_list_mounted_fs"; then
34878 # SVR3
34879 { echo "$as_me:$LINENO: checking for FIXME existence of three headers" >&5
34880 echo $ECHO_N "checking for FIXME existence of three headers... $ECHO_C" >&6; }
34881 if test "${fu_cv_sys_mounted_fread_fstyp+set}" = set; then
34882 echo $ECHO_N "(cached) $ECHO_C" >&6
34883 else
34884 cat >conftest.$ac_ext <<_ACEOF
34885 /* confdefs.h. */
34886 _ACEOF
34887 cat confdefs.h >>conftest.$ac_ext
34888 cat >>conftest.$ac_ext <<_ACEOF
34889 /* end confdefs.h. */
34891 #include <sys/statfs.h>
34892 #include <sys/fstyp.h>
34893 #include <mnttab.h>
34894 _ACEOF
34895 if { (ac_try="$ac_cpp conftest.$ac_ext"
34896 case "(($ac_try" in
34897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34898 *) ac_try_echo=$ac_try;;
34899 esac
34900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34901 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34902 ac_status=$?
34903 grep -v '^ *+' conftest.er1 >conftest.err
34904 rm -f conftest.er1
34905 cat conftest.err >&5
34906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34907 (exit $ac_status); } >/dev/null; then
34908 if test -s conftest.err; then
34909 ac_cpp_err=$ac_c_preproc_warn_flag
34910 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34911 else
34912 ac_cpp_err=
34914 else
34915 ac_cpp_err=yes
34917 if test -z "$ac_cpp_err"; then
34918 fu_cv_sys_mounted_fread_fstyp=yes
34919 else
34920 echo "$as_me: failed program was:" >&5
34921 sed 's/^/| /' conftest.$ac_ext >&5
34923 fu_cv_sys_mounted_fread_fstyp=no
34926 rm -f conftest.err conftest.$ac_ext
34929 { echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_fread_fstyp" >&5
34930 echo "${ECHO_T}$fu_cv_sys_mounted_fread_fstyp" >&6; }
34931 if test $fu_cv_sys_mounted_fread_fstyp = yes; then
34932 ac_list_mounted_fs=found
34934 cat >>confdefs.h <<\_ACEOF
34935 #define MOUNTED_FREAD_FSTYP 1
34936 _ACEOF
34941 if test -z "$ac_list_mounted_fs"; then
34942 # 4.4BSD and DEC OSF/1.
34943 { echo "$as_me:$LINENO: checking for getmntinfo function" >&5
34944 echo $ECHO_N "checking for getmntinfo function... $ECHO_C" >&6; }
34945 if test "${fu_cv_sys_mounted_getmntinfo+set}" = set; then
34946 echo $ECHO_N "(cached) $ECHO_C" >&6
34947 else
34949 test "$ac_cv_func_getmntinfo" = yes \
34950 && fu_cv_sys_mounted_getmntinfo=yes \
34951 || fu_cv_sys_mounted_getmntinfo=no
34955 { echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_getmntinfo" >&5
34956 echo "${ECHO_T}$fu_cv_sys_mounted_getmntinfo" >&6; }
34957 if test $fu_cv_sys_mounted_getmntinfo = yes; then
34958 { echo "$as_me:$LINENO: checking whether getmntinfo returns statvfs structures" >&5
34959 echo $ECHO_N "checking whether getmntinfo returns statvfs structures... $ECHO_C" >&6; }
34960 if test "${fu_cv_sys_mounted_getmntinfo2+set}" = set; then
34961 echo $ECHO_N "(cached) $ECHO_C" >&6
34962 else
34964 cat >conftest.$ac_ext <<_ACEOF
34965 /* confdefs.h. */
34966 _ACEOF
34967 cat confdefs.h >>conftest.$ac_ext
34968 cat >>conftest.$ac_ext <<_ACEOF
34969 /* end confdefs.h. */
34971 #include <sys/types.h>
34972 #if HAVE_SYS_MOUNT_H
34973 # include <sys/mount.h>
34974 #endif
34975 #if HAVE_SYS_STATVFS_H
34976 # include <sys/statvfs.h>
34977 #endif
34978 extern int getmntinfo (struct statfs **, int);
34981 main ()
34985 return 0;
34987 _ACEOF
34988 rm -f conftest.$ac_objext
34989 if { (ac_try="$ac_compile"
34990 case "(($ac_try" in
34991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34992 *) ac_try_echo=$ac_try;;
34993 esac
34994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34995 (eval "$ac_compile") 2>conftest.er1
34996 ac_status=$?
34997 grep -v '^ *+' conftest.er1 >conftest.err
34998 rm -f conftest.er1
34999 cat conftest.err >&5
35000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35001 (exit $ac_status); } &&
35002 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35003 { (case "(($ac_try" in
35004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35005 *) ac_try_echo=$ac_try;;
35006 esac
35007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35008 (eval "$ac_try") 2>&5
35009 ac_status=$?
35010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35011 (exit $ac_status); }; } &&
35012 { ac_try='test -s conftest.$ac_objext'
35013 { (case "(($ac_try" in
35014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35015 *) ac_try_echo=$ac_try;;
35016 esac
35017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35018 (eval "$ac_try") 2>&5
35019 ac_status=$?
35020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35021 (exit $ac_status); }; }; then
35022 fu_cv_sys_mounted_getmntinfo2=no
35023 else
35024 echo "$as_me: failed program was:" >&5
35025 sed 's/^/| /' conftest.$ac_ext >&5
35027 fu_cv_sys_mounted_getmntinfo2=yes
35030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35034 { echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_getmntinfo2" >&5
35035 echo "${ECHO_T}$fu_cv_sys_mounted_getmntinfo2" >&6; }
35036 if test $fu_cv_sys_mounted_getmntinfo2 = no; then
35037 ac_list_mounted_fs=found
35039 cat >>confdefs.h <<\_ACEOF
35040 #define MOUNTED_GETMNTINFO 1
35041 _ACEOF
35043 else
35044 ac_list_mounted_fs=found
35046 cat >>confdefs.h <<\_ACEOF
35047 #define MOUNTED_GETMNTINFO2 1
35048 _ACEOF
35054 if test -z "$ac_list_mounted_fs"; then
35055 # Ultrix
35056 { echo "$as_me:$LINENO: checking for getmnt function" >&5
35057 echo $ECHO_N "checking for getmnt function... $ECHO_C" >&6; }
35058 if test "${fu_cv_sys_mounted_getmnt+set}" = set; then
35059 echo $ECHO_N "(cached) $ECHO_C" >&6
35060 else
35061 cat >conftest.$ac_ext <<_ACEOF
35062 /* confdefs.h. */
35063 _ACEOF
35064 cat confdefs.h >>conftest.$ac_ext
35065 cat >>conftest.$ac_ext <<_ACEOF
35066 /* end confdefs.h. */
35068 #include <sys/fs_types.h>
35069 #include <sys/mount.h>
35070 _ACEOF
35071 if { (ac_try="$ac_cpp conftest.$ac_ext"
35072 case "(($ac_try" in
35073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35074 *) ac_try_echo=$ac_try;;
35075 esac
35076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35077 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35078 ac_status=$?
35079 grep -v '^ *+' conftest.er1 >conftest.err
35080 rm -f conftest.er1
35081 cat conftest.err >&5
35082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35083 (exit $ac_status); } >/dev/null; then
35084 if test -s conftest.err; then
35085 ac_cpp_err=$ac_c_preproc_warn_flag
35086 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35087 else
35088 ac_cpp_err=
35090 else
35091 ac_cpp_err=yes
35093 if test -z "$ac_cpp_err"; then
35094 fu_cv_sys_mounted_getmnt=yes
35095 else
35096 echo "$as_me: failed program was:" >&5
35097 sed 's/^/| /' conftest.$ac_ext >&5
35099 fu_cv_sys_mounted_getmnt=no
35102 rm -f conftest.err conftest.$ac_ext
35105 { echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_getmnt" >&5
35106 echo "${ECHO_T}$fu_cv_sys_mounted_getmnt" >&6; }
35107 if test $fu_cv_sys_mounted_getmnt = yes; then
35108 ac_list_mounted_fs=found
35110 cat >>confdefs.h <<\_ACEOF
35111 #define MOUNTED_GETMNT 1
35112 _ACEOF
35117 if test -z "$ac_list_mounted_fs"; then
35118 # BeOS
35121 for ac_func in next_dev fs_stat_dev
35123 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35124 { echo "$as_me:$LINENO: checking for $ac_func" >&5
35125 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
35126 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
35127 echo $ECHO_N "(cached) $ECHO_C" >&6
35128 else
35129 cat >conftest.$ac_ext <<_ACEOF
35130 /* confdefs.h. */
35131 _ACEOF
35132 cat confdefs.h >>conftest.$ac_ext
35133 cat >>conftest.$ac_ext <<_ACEOF
35134 /* end confdefs.h. */
35135 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35136 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35137 #define $ac_func innocuous_$ac_func
35139 /* System header to define __stub macros and hopefully few prototypes,
35140 which can conflict with char $ac_func (); below.
35141 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35142 <limits.h> exists even on freestanding compilers. */
35144 #ifdef __STDC__
35145 # include <limits.h>
35146 #else
35147 # include <assert.h>
35148 #endif
35150 #undef $ac_func
35152 /* Override any GCC internal prototype to avoid an error.
35153 Use char because int might match the return type of a GCC
35154 builtin and then its argument prototype would still apply. */
35155 #ifdef __cplusplus
35156 extern "C"
35157 #endif
35158 char $ac_func ();
35159 /* The GNU C library defines this for functions which it implements
35160 to always fail with ENOSYS. Some functions are actually named
35161 something starting with __ and the normal name is an alias. */
35162 #if defined __stub_$ac_func || defined __stub___$ac_func
35163 choke me
35164 #endif
35167 main ()
35169 return $ac_func ();
35171 return 0;
35173 _ACEOF
35174 rm -f conftest.$ac_objext conftest$ac_exeext
35175 if { (ac_try="$ac_link"
35176 case "(($ac_try" in
35177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35178 *) ac_try_echo=$ac_try;;
35179 esac
35180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35181 (eval "$ac_link") 2>conftest.er1
35182 ac_status=$?
35183 grep -v '^ *+' conftest.er1 >conftest.err
35184 rm -f conftest.er1
35185 cat conftest.err >&5
35186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35187 (exit $ac_status); } &&
35188 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35189 { (case "(($ac_try" in
35190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35191 *) ac_try_echo=$ac_try;;
35192 esac
35193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35194 (eval "$ac_try") 2>&5
35195 ac_status=$?
35196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35197 (exit $ac_status); }; } &&
35198 { ac_try='test -s conftest$ac_exeext'
35199 { (case "(($ac_try" in
35200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35201 *) ac_try_echo=$ac_try;;
35202 esac
35203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35204 (eval "$ac_try") 2>&5
35205 ac_status=$?
35206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35207 (exit $ac_status); }; }; then
35208 eval "$as_ac_var=yes"
35209 else
35210 echo "$as_me: failed program was:" >&5
35211 sed 's/^/| /' conftest.$ac_ext >&5
35213 eval "$as_ac_var=no"
35216 rm -f core conftest.err conftest.$ac_objext \
35217 conftest$ac_exeext conftest.$ac_ext
35219 ac_res=`eval echo '${'$as_ac_var'}'`
35220 { echo "$as_me:$LINENO: result: $ac_res" >&5
35221 echo "${ECHO_T}$ac_res" >&6; }
35222 if test `eval echo '${'$as_ac_var'}'` = yes; then
35223 cat >>confdefs.h <<_ACEOF
35224 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35225 _ACEOF
35228 done
35231 for ac_header in fs_info.h
35233 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35234 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35235 { echo "$as_me:$LINENO: checking for $ac_header" >&5
35236 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35237 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35238 echo $ECHO_N "(cached) $ECHO_C" >&6
35240 ac_res=`eval echo '${'$as_ac_Header'}'`
35241 { echo "$as_me:$LINENO: result: $ac_res" >&5
35242 echo "${ECHO_T}$ac_res" >&6; }
35243 else
35244 # Is the header compilable?
35245 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
35246 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
35247 cat >conftest.$ac_ext <<_ACEOF
35248 /* confdefs.h. */
35249 _ACEOF
35250 cat confdefs.h >>conftest.$ac_ext
35251 cat >>conftest.$ac_ext <<_ACEOF
35252 /* end confdefs.h. */
35253 $ac_includes_default
35254 #include <$ac_header>
35255 _ACEOF
35256 rm -f conftest.$ac_objext
35257 if { (ac_try="$ac_compile"
35258 case "(($ac_try" in
35259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35260 *) ac_try_echo=$ac_try;;
35261 esac
35262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35263 (eval "$ac_compile") 2>conftest.er1
35264 ac_status=$?
35265 grep -v '^ *+' conftest.er1 >conftest.err
35266 rm -f conftest.er1
35267 cat conftest.err >&5
35268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35269 (exit $ac_status); } &&
35270 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35271 { (case "(($ac_try" in
35272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35273 *) ac_try_echo=$ac_try;;
35274 esac
35275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35276 (eval "$ac_try") 2>&5
35277 ac_status=$?
35278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35279 (exit $ac_status); }; } &&
35280 { ac_try='test -s conftest.$ac_objext'
35281 { (case "(($ac_try" in
35282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35283 *) ac_try_echo=$ac_try;;
35284 esac
35285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35286 (eval "$ac_try") 2>&5
35287 ac_status=$?
35288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35289 (exit $ac_status); }; }; then
35290 ac_header_compiler=yes
35291 else
35292 echo "$as_me: failed program was:" >&5
35293 sed 's/^/| /' conftest.$ac_ext >&5
35295 ac_header_compiler=no
35298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35299 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35300 echo "${ECHO_T}$ac_header_compiler" >&6; }
35302 # Is the header present?
35303 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
35304 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
35305 cat >conftest.$ac_ext <<_ACEOF
35306 /* confdefs.h. */
35307 _ACEOF
35308 cat confdefs.h >>conftest.$ac_ext
35309 cat >>conftest.$ac_ext <<_ACEOF
35310 /* end confdefs.h. */
35311 #include <$ac_header>
35312 _ACEOF
35313 if { (ac_try="$ac_cpp conftest.$ac_ext"
35314 case "(($ac_try" in
35315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35316 *) ac_try_echo=$ac_try;;
35317 esac
35318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35319 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35320 ac_status=$?
35321 grep -v '^ *+' conftest.er1 >conftest.err
35322 rm -f conftest.er1
35323 cat conftest.err >&5
35324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35325 (exit $ac_status); } >/dev/null; then
35326 if test -s conftest.err; then
35327 ac_cpp_err=$ac_c_preproc_warn_flag
35328 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35329 else
35330 ac_cpp_err=
35332 else
35333 ac_cpp_err=yes
35335 if test -z "$ac_cpp_err"; then
35336 ac_header_preproc=yes
35337 else
35338 echo "$as_me: failed program was:" >&5
35339 sed 's/^/| /' conftest.$ac_ext >&5
35341 ac_header_preproc=no
35344 rm -f conftest.err conftest.$ac_ext
35345 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35346 echo "${ECHO_T}$ac_header_preproc" >&6; }
35348 # So? What about this header?
35349 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35350 yes:no: )
35351 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35352 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35353 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35354 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35355 ac_header_preproc=yes
35357 no:yes:* )
35358 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35359 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35360 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35361 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35362 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35363 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35364 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35365 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
35366 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35367 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35368 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35369 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35370 ( cat <<\_ASBOX
35371 ## ------------------------------------ ##
35372 ## Report this to bug-coreutils@gnu.org ##
35373 ## ------------------------------------ ##
35374 _ASBOX
35375 ) | sed "s/^/$as_me: WARNING: /" >&2
35377 esac
35378 { echo "$as_me:$LINENO: checking for $ac_header" >&5
35379 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35380 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35381 echo $ECHO_N "(cached) $ECHO_C" >&6
35382 else
35383 eval "$as_ac_Header=\$ac_header_preproc"
35385 ac_res=`eval echo '${'$as_ac_Header'}'`
35386 { echo "$as_me:$LINENO: result: $ac_res" >&5
35387 echo "${ECHO_T}$ac_res" >&6; }
35390 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35391 cat >>confdefs.h <<_ACEOF
35392 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35393 _ACEOF
35397 done
35399 { echo "$as_me:$LINENO: checking for BEOS mounted file system support functions" >&5
35400 echo $ECHO_N "checking for BEOS mounted file system support functions... $ECHO_C" >&6; }
35401 if test $ac_cv_header_fs_info_h = yes \
35402 && test $ac_cv_func_next_dev = yes \
35403 && test $ac_cv_func_fs_stat_dev = yes; then
35404 fu_result=yes
35405 else
35406 fu_result=no
35408 { echo "$as_me:$LINENO: result: $fu_result" >&5
35409 echo "${ECHO_T}$fu_result" >&6; }
35410 if test $fu_result = yes; then
35411 ac_list_mounted_fs=found
35413 cat >>confdefs.h <<\_ACEOF
35414 #define MOUNTED_FS_STAT_DEV 1
35415 _ACEOF
35420 if test -z "$ac_list_mounted_fs"; then
35421 # SVR2
35422 { echo "$as_me:$LINENO: checking whether it is possible to resort to fread on /etc/mnttab" >&5
35423 echo $ECHO_N "checking whether it is possible to resort to fread on /etc/mnttab... $ECHO_C" >&6; }
35424 if test "${fu_cv_sys_mounted_fread+set}" = set; then
35425 echo $ECHO_N "(cached) $ECHO_C" >&6
35426 else
35427 cat >conftest.$ac_ext <<_ACEOF
35428 /* confdefs.h. */
35429 _ACEOF
35430 cat confdefs.h >>conftest.$ac_ext
35431 cat >>conftest.$ac_ext <<_ACEOF
35432 /* end confdefs.h. */
35433 #include <mnttab.h>
35434 _ACEOF
35435 if { (ac_try="$ac_cpp conftest.$ac_ext"
35436 case "(($ac_try" in
35437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35438 *) ac_try_echo=$ac_try;;
35439 esac
35440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35441 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35442 ac_status=$?
35443 grep -v '^ *+' conftest.er1 >conftest.err
35444 rm -f conftest.er1
35445 cat conftest.err >&5
35446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35447 (exit $ac_status); } >/dev/null; then
35448 if test -s conftest.err; then
35449 ac_cpp_err=$ac_c_preproc_warn_flag
35450 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35451 else
35452 ac_cpp_err=
35454 else
35455 ac_cpp_err=yes
35457 if test -z "$ac_cpp_err"; then
35458 fu_cv_sys_mounted_fread=yes
35459 else
35460 echo "$as_me: failed program was:" >&5
35461 sed 's/^/| /' conftest.$ac_ext >&5
35463 fu_cv_sys_mounted_fread=no
35466 rm -f conftest.err conftest.$ac_ext
35469 { echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_fread" >&5
35470 echo "${ECHO_T}$fu_cv_sys_mounted_fread" >&6; }
35471 if test $fu_cv_sys_mounted_fread = yes; then
35472 ac_list_mounted_fs=found
35474 cat >>confdefs.h <<\_ACEOF
35475 #define MOUNTED_FREAD 1
35476 _ACEOF
35481 if test -z "$ac_list_mounted_fs"; then
35482 { { echo "$as_me:$LINENO: error: could not determine how to read list of mounted file systems" >&5
35483 echo "$as_me: error: could not determine how to read list of mounted file systems" >&2;}
35484 { (exit 1); exit 1; }; }
35485 # FIXME -- no need to abort building the whole package
35486 # Can't build mountlist.c or anything that needs its functions
35489 if test $ac_list_mounted_fs = found; then
35490 gl_cv_list_mounted_fs=yes
35491 else
35492 gl_cv_list_mounted_fs=no
35497 if test $gl_cv_list_mounted_fs = yes; then
35498 case " $LIBOBJS " in
35499 *" mountlist.$ac_objext "* ) ;;
35500 *) LIBOBJS="$LIBOBJS mountlist.$ac_objext"
35502 esac
35506 for ac_header in sys/mntent.h
35508 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35509 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35510 { echo "$as_me:$LINENO: checking for $ac_header" >&5
35511 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35512 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35513 echo $ECHO_N "(cached) $ECHO_C" >&6
35515 ac_res=`eval echo '${'$as_ac_Header'}'`
35516 { echo "$as_me:$LINENO: result: $ac_res" >&5
35517 echo "${ECHO_T}$ac_res" >&6; }
35518 else
35519 # Is the header compilable?
35520 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
35521 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
35522 cat >conftest.$ac_ext <<_ACEOF
35523 /* confdefs.h. */
35524 _ACEOF
35525 cat confdefs.h >>conftest.$ac_ext
35526 cat >>conftest.$ac_ext <<_ACEOF
35527 /* end confdefs.h. */
35528 $ac_includes_default
35529 #include <$ac_header>
35530 _ACEOF
35531 rm -f conftest.$ac_objext
35532 if { (ac_try="$ac_compile"
35533 case "(($ac_try" in
35534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35535 *) ac_try_echo=$ac_try;;
35536 esac
35537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35538 (eval "$ac_compile") 2>conftest.er1
35539 ac_status=$?
35540 grep -v '^ *+' conftest.er1 >conftest.err
35541 rm -f conftest.er1
35542 cat conftest.err >&5
35543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35544 (exit $ac_status); } &&
35545 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35546 { (case "(($ac_try" in
35547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35548 *) ac_try_echo=$ac_try;;
35549 esac
35550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35551 (eval "$ac_try") 2>&5
35552 ac_status=$?
35553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35554 (exit $ac_status); }; } &&
35555 { ac_try='test -s conftest.$ac_objext'
35556 { (case "(($ac_try" in
35557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35558 *) ac_try_echo=$ac_try;;
35559 esac
35560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35561 (eval "$ac_try") 2>&5
35562 ac_status=$?
35563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35564 (exit $ac_status); }; }; then
35565 ac_header_compiler=yes
35566 else
35567 echo "$as_me: failed program was:" >&5
35568 sed 's/^/| /' conftest.$ac_ext >&5
35570 ac_header_compiler=no
35573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35574 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35575 echo "${ECHO_T}$ac_header_compiler" >&6; }
35577 # Is the header present?
35578 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
35579 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
35580 cat >conftest.$ac_ext <<_ACEOF
35581 /* confdefs.h. */
35582 _ACEOF
35583 cat confdefs.h >>conftest.$ac_ext
35584 cat >>conftest.$ac_ext <<_ACEOF
35585 /* end confdefs.h. */
35586 #include <$ac_header>
35587 _ACEOF
35588 if { (ac_try="$ac_cpp conftest.$ac_ext"
35589 case "(($ac_try" in
35590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35591 *) ac_try_echo=$ac_try;;
35592 esac
35593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35594 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35595 ac_status=$?
35596 grep -v '^ *+' conftest.er1 >conftest.err
35597 rm -f conftest.er1
35598 cat conftest.err >&5
35599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35600 (exit $ac_status); } >/dev/null; then
35601 if test -s conftest.err; then
35602 ac_cpp_err=$ac_c_preproc_warn_flag
35603 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35604 else
35605 ac_cpp_err=
35607 else
35608 ac_cpp_err=yes
35610 if test -z "$ac_cpp_err"; then
35611 ac_header_preproc=yes
35612 else
35613 echo "$as_me: failed program was:" >&5
35614 sed 's/^/| /' conftest.$ac_ext >&5
35616 ac_header_preproc=no
35619 rm -f conftest.err conftest.$ac_ext
35620 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35621 echo "${ECHO_T}$ac_header_preproc" >&6; }
35623 # So? What about this header?
35624 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35625 yes:no: )
35626 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35627 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35628 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35629 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35630 ac_header_preproc=yes
35632 no:yes:* )
35633 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35634 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35635 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35636 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35637 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35638 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35639 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35640 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
35641 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35642 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35643 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35644 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35645 ( cat <<\_ASBOX
35646 ## ------------------------------------ ##
35647 ## Report this to bug-coreutils@gnu.org ##
35648 ## ------------------------------------ ##
35649 _ASBOX
35650 ) | sed "s/^/$as_me: WARNING: /" >&2
35652 esac
35653 { echo "$as_me:$LINENO: checking for $ac_header" >&5
35654 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35655 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35656 echo $ECHO_N "(cached) $ECHO_C" >&6
35657 else
35658 eval "$as_ac_Header=\$ac_header_preproc"
35660 ac_res=`eval echo '${'$as_ac_Header'}'`
35661 { echo "$as_me:$LINENO: result: $ac_res" >&5
35662 echo "${ECHO_T}$ac_res" >&6; }
35665 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35666 cat >>confdefs.h <<_ACEOF
35667 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35668 _ACEOF
35672 done
35675 { echo "$as_me:$LINENO: checking for f_fstypename in struct statfs" >&5
35676 echo $ECHO_N "checking for f_fstypename in struct statfs... $ECHO_C" >&6; }
35677 if test "${fu_cv_sys_f_fstypename_in_statfs+set}" = set; then
35678 echo $ECHO_N "(cached) $ECHO_C" >&6
35679 else
35681 cat >conftest.$ac_ext <<_ACEOF
35682 /* confdefs.h. */
35683 _ACEOF
35684 cat confdefs.h >>conftest.$ac_ext
35685 cat >>conftest.$ac_ext <<_ACEOF
35686 /* end confdefs.h. */
35688 #include <sys/param.h>
35689 #include <sys/types.h>
35690 #include <sys/mount.h>
35693 main ()
35695 struct statfs s; int i = sizeof s.f_fstypename;
35697 return 0;
35699 _ACEOF
35700 rm -f conftest.$ac_objext
35701 if { (ac_try="$ac_compile"
35702 case "(($ac_try" in
35703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35704 *) ac_try_echo=$ac_try;;
35705 esac
35706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35707 (eval "$ac_compile") 2>conftest.er1
35708 ac_status=$?
35709 grep -v '^ *+' conftest.er1 >conftest.err
35710 rm -f conftest.er1
35711 cat conftest.err >&5
35712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35713 (exit $ac_status); } &&
35714 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35715 { (case "(($ac_try" in
35716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35717 *) ac_try_echo=$ac_try;;
35718 esac
35719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35720 (eval "$ac_try") 2>&5
35721 ac_status=$?
35722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35723 (exit $ac_status); }; } &&
35724 { ac_try='test -s conftest.$ac_objext'
35725 { (case "(($ac_try" in
35726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35727 *) ac_try_echo=$ac_try;;
35728 esac
35729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35730 (eval "$ac_try") 2>&5
35731 ac_status=$?
35732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35733 (exit $ac_status); }; }; then
35734 fu_cv_sys_f_fstypename_in_statfs=yes
35735 else
35736 echo "$as_me: failed program was:" >&5
35737 sed 's/^/| /' conftest.$ac_ext >&5
35739 fu_cv_sys_f_fstypename_in_statfs=no
35743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35747 { echo "$as_me:$LINENO: result: $fu_cv_sys_f_fstypename_in_statfs" >&5
35748 echo "${ECHO_T}$fu_cv_sys_f_fstypename_in_statfs" >&6; }
35750 if test $fu_cv_sys_f_fstypename_in_statfs = yes; then
35752 cat >>confdefs.h <<\_ACEOF
35753 #define HAVE_F_FSTYPENAME_IN_STATFS 1
35754 _ACEOF
35763 { echo "$as_me:$LINENO: checking for obstacks" >&5
35764 echo $ECHO_N "checking for obstacks... $ECHO_C" >&6; }
35765 if test "${ac_cv_func_obstack+set}" = set; then
35766 echo $ECHO_N "(cached) $ECHO_C" >&6
35767 else
35768 cat >conftest.$ac_ext <<_ACEOF
35769 /* confdefs.h. */
35770 _ACEOF
35771 cat confdefs.h >>conftest.$ac_ext
35772 cat >>conftest.$ac_ext <<_ACEOF
35773 /* end confdefs.h. */
35774 #include "obstack.h"
35776 main ()
35778 struct obstack *mem; obstack_free(mem,(char *) 0)
35780 return 0;
35782 _ACEOF
35783 rm -f conftest.$ac_objext conftest$ac_exeext
35784 if { (ac_try="$ac_link"
35785 case "(($ac_try" in
35786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35787 *) ac_try_echo=$ac_try;;
35788 esac
35789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35790 (eval "$ac_link") 2>conftest.er1
35791 ac_status=$?
35792 grep -v '^ *+' conftest.er1 >conftest.err
35793 rm -f conftest.er1
35794 cat conftest.err >&5
35795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35796 (exit $ac_status); } &&
35797 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35798 { (case "(($ac_try" in
35799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35800 *) ac_try_echo=$ac_try;;
35801 esac
35802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35803 (eval "$ac_try") 2>&5
35804 ac_status=$?
35805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35806 (exit $ac_status); }; } &&
35807 { ac_try='test -s conftest$ac_exeext'
35808 { (case "(($ac_try" in
35809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35810 *) ac_try_echo=$ac_try;;
35811 esac
35812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35813 (eval "$ac_try") 2>&5
35814 ac_status=$?
35815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35816 (exit $ac_status); }; }; then
35817 ac_cv_func_obstack=yes
35818 else
35819 echo "$as_me: failed program was:" >&5
35820 sed 's/^/| /' conftest.$ac_ext >&5
35822 ac_cv_func_obstack=no
35825 rm -f core conftest.err conftest.$ac_objext \
35826 conftest$ac_exeext conftest.$ac_ext
35828 { echo "$as_me:$LINENO: result: $ac_cv_func_obstack" >&5
35829 echo "${ECHO_T}$ac_cv_func_obstack" >&6; }
35830 if test $ac_cv_func_obstack = yes; then
35832 cat >>confdefs.h <<\_ACEOF
35833 #define HAVE_OBSTACK 1
35834 _ACEOF
35836 else
35837 case " $LIBOBJS " in
35838 *" obstack.$ac_objext "* ) ;;
35839 *) LIBOBJS="$LIBOBJS obstack.$ac_objext"
35841 esac
35845 if test $ac_cv_func_obstack = no; then
35864 { echo "$as_me:$LINENO: checking for external symbol _system_configuration" >&5
35865 echo $ECHO_N "checking for external symbol _system_configuration... $ECHO_C" >&6; }
35866 if test "${gl_cv_var__system_configuration+set}" = set; then
35867 echo $ECHO_N "(cached) $ECHO_C" >&6
35868 else
35869 cat >conftest.$ac_ext <<_ACEOF
35870 /* confdefs.h. */
35871 _ACEOF
35872 cat confdefs.h >>conftest.$ac_ext
35873 cat >>conftest.$ac_ext <<_ACEOF
35874 /* end confdefs.h. */
35875 #include <sys/systemcfg.h>
35878 main ()
35880 double x = _system_configuration.physmem;
35882 return 0;
35884 _ACEOF
35885 rm -f conftest.$ac_objext conftest$ac_exeext
35886 if { (ac_try="$ac_link"
35887 case "(($ac_try" in
35888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35889 *) ac_try_echo=$ac_try;;
35890 esac
35891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35892 (eval "$ac_link") 2>conftest.er1
35893 ac_status=$?
35894 grep -v '^ *+' conftest.er1 >conftest.err
35895 rm -f conftest.er1
35896 cat conftest.err >&5
35897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35898 (exit $ac_status); } &&
35899 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35900 { (case "(($ac_try" in
35901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35902 *) ac_try_echo=$ac_try;;
35903 esac
35904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35905 (eval "$ac_try") 2>&5
35906 ac_status=$?
35907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35908 (exit $ac_status); }; } &&
35909 { ac_try='test -s conftest$ac_exeext'
35910 { (case "(($ac_try" in
35911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35912 *) ac_try_echo=$ac_try;;
35913 esac
35914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35915 (eval "$ac_try") 2>&5
35916 ac_status=$?
35917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35918 (exit $ac_status); }; }; then
35919 gl_cv_var__system_configuration=yes
35920 else
35921 echo "$as_me: failed program was:" >&5
35922 sed 's/^/| /' conftest.$ac_ext >&5
35924 gl_cv_var__system_configuration=no
35927 rm -f core conftest.err conftest.$ac_objext \
35928 conftest$ac_exeext conftest.$ac_ext
35930 { echo "$as_me:$LINENO: result: $gl_cv_var__system_configuration" >&5
35931 echo "${ECHO_T}$gl_cv_var__system_configuration" >&6; }
35933 if test $gl_cv_var__system_configuration = yes; then
35935 cat >>confdefs.h <<\_ACEOF
35936 #define HAVE__SYSTEM_CONFIGURATION 1
35937 _ACEOF
35944 case " $LIBOBJS " in
35945 *" physmem.$ac_objext "* ) ;;
35946 *) LIBOBJS="$LIBOBJS physmem.$ac_objext"
35948 esac
35951 # Prerequisites of lib/physmem.c.
35960 for ac_header in sys/pstat.h sys/sysmp.h sys/sysinfo.h \
35961 machine/hal_sysinfo.h sys/table.h sys/param.h sys/sysctl.h \
35962 sys/systemcfg.h
35964 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35965 { echo "$as_me:$LINENO: checking for $ac_header" >&5
35966 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35967 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35968 echo $ECHO_N "(cached) $ECHO_C" >&6
35969 else
35970 cat >conftest.$ac_ext <<_ACEOF
35971 /* confdefs.h. */
35972 _ACEOF
35973 cat confdefs.h >>conftest.$ac_ext
35974 cat >>conftest.$ac_ext <<_ACEOF
35975 /* end confdefs.h. */
35976 $ac_includes_default
35978 #include <$ac_header>
35979 _ACEOF
35980 rm -f conftest.$ac_objext
35981 if { (ac_try="$ac_compile"
35982 case "(($ac_try" in
35983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35984 *) ac_try_echo=$ac_try;;
35985 esac
35986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35987 (eval "$ac_compile") 2>conftest.er1
35988 ac_status=$?
35989 grep -v '^ *+' conftest.er1 >conftest.err
35990 rm -f conftest.er1
35991 cat conftest.err >&5
35992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35993 (exit $ac_status); } &&
35994 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35995 { (case "(($ac_try" in
35996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35997 *) ac_try_echo=$ac_try;;
35998 esac
35999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36000 (eval "$ac_try") 2>&5
36001 ac_status=$?
36002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36003 (exit $ac_status); }; } &&
36004 { ac_try='test -s conftest.$ac_objext'
36005 { (case "(($ac_try" in
36006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36007 *) ac_try_echo=$ac_try;;
36008 esac
36009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36010 (eval "$ac_try") 2>&5
36011 ac_status=$?
36012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36013 (exit $ac_status); }; }; then
36014 eval "$as_ac_Header=yes"
36015 else
36016 echo "$as_me: failed program was:" >&5
36017 sed 's/^/| /' conftest.$ac_ext >&5
36019 eval "$as_ac_Header=no"
36022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36024 ac_res=`eval echo '${'$as_ac_Header'}'`
36025 { echo "$as_me:$LINENO: result: $ac_res" >&5
36026 echo "${ECHO_T}$ac_res" >&6; }
36027 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36028 cat >>confdefs.h <<_ACEOF
36029 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36030 _ACEOF
36034 done
36043 for ac_func in pstat_getstatic pstat_getdynamic sysmp getsysinfo sysctl table
36045 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36046 { echo "$as_me:$LINENO: checking for $ac_func" >&5
36047 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36048 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36049 echo $ECHO_N "(cached) $ECHO_C" >&6
36050 else
36051 cat >conftest.$ac_ext <<_ACEOF
36052 /* confdefs.h. */
36053 _ACEOF
36054 cat confdefs.h >>conftest.$ac_ext
36055 cat >>conftest.$ac_ext <<_ACEOF
36056 /* end confdefs.h. */
36057 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36058 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36059 #define $ac_func innocuous_$ac_func
36061 /* System header to define __stub macros and hopefully few prototypes,
36062 which can conflict with char $ac_func (); below.
36063 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36064 <limits.h> exists even on freestanding compilers. */
36066 #ifdef __STDC__
36067 # include <limits.h>
36068 #else
36069 # include <assert.h>
36070 #endif
36072 #undef $ac_func
36074 /* Override any GCC internal prototype to avoid an error.
36075 Use char because int might match the return type of a GCC
36076 builtin and then its argument prototype would still apply. */
36077 #ifdef __cplusplus
36078 extern "C"
36079 #endif
36080 char $ac_func ();
36081 /* The GNU C library defines this for functions which it implements
36082 to always fail with ENOSYS. Some functions are actually named
36083 something starting with __ and the normal name is an alias. */
36084 #if defined __stub_$ac_func || defined __stub___$ac_func
36085 choke me
36086 #endif
36089 main ()
36091 return $ac_func ();
36093 return 0;
36095 _ACEOF
36096 rm -f conftest.$ac_objext conftest$ac_exeext
36097 if { (ac_try="$ac_link"
36098 case "(($ac_try" in
36099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36100 *) ac_try_echo=$ac_try;;
36101 esac
36102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36103 (eval "$ac_link") 2>conftest.er1
36104 ac_status=$?
36105 grep -v '^ *+' conftest.er1 >conftest.err
36106 rm -f conftest.er1
36107 cat conftest.err >&5
36108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36109 (exit $ac_status); } &&
36110 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36111 { (case "(($ac_try" in
36112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36113 *) ac_try_echo=$ac_try;;
36114 esac
36115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36116 (eval "$ac_try") 2>&5
36117 ac_status=$?
36118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36119 (exit $ac_status); }; } &&
36120 { ac_try='test -s conftest$ac_exeext'
36121 { (case "(($ac_try" in
36122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36123 *) ac_try_echo=$ac_try;;
36124 esac
36125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36126 (eval "$ac_try") 2>&5
36127 ac_status=$?
36128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36129 (exit $ac_status); }; }; then
36130 eval "$as_ac_var=yes"
36131 else
36132 echo "$as_me: failed program was:" >&5
36133 sed 's/^/| /' conftest.$ac_ext >&5
36135 eval "$as_ac_var=no"
36138 rm -f core conftest.err conftest.$ac_objext \
36139 conftest$ac_exeext conftest.$ac_ext
36141 ac_res=`eval echo '${'$as_ac_var'}'`
36142 { echo "$as_me:$LINENO: result: $ac_res" >&5
36143 echo "${ECHO_T}$ac_res" >&6; }
36144 if test `eval echo '${'$as_ac_var'}'` = yes; then
36145 cat >>confdefs.h <<_ACEOF
36146 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36147 _ACEOF
36150 done
36156 case " $LIBOBJS " in
36157 *" posixtm.$ac_objext "* ) ;;
36158 *) LIBOBJS="$LIBOBJS posixtm.$ac_objext"
36160 esac
36163 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
36164 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
36165 if test "${ac_cv_struct_tm+set}" = set; then
36166 echo $ECHO_N "(cached) $ECHO_C" >&6
36167 else
36168 cat >conftest.$ac_ext <<_ACEOF
36169 /* confdefs.h. */
36170 _ACEOF
36171 cat confdefs.h >>conftest.$ac_ext
36172 cat >>conftest.$ac_ext <<_ACEOF
36173 /* end confdefs.h. */
36174 #include <sys/types.h>
36175 #include <time.h>
36178 main ()
36180 struct tm *tp; tp->tm_sec;
36182 return 0;
36184 _ACEOF
36185 rm -f conftest.$ac_objext
36186 if { (ac_try="$ac_compile"
36187 case "(($ac_try" in
36188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36189 *) ac_try_echo=$ac_try;;
36190 esac
36191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36192 (eval "$ac_compile") 2>conftest.er1
36193 ac_status=$?
36194 grep -v '^ *+' conftest.er1 >conftest.err
36195 rm -f conftest.er1
36196 cat conftest.err >&5
36197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36198 (exit $ac_status); } &&
36199 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36200 { (case "(($ac_try" in
36201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36202 *) ac_try_echo=$ac_try;;
36203 esac
36204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36205 (eval "$ac_try") 2>&5
36206 ac_status=$?
36207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36208 (exit $ac_status); }; } &&
36209 { ac_try='test -s conftest.$ac_objext'
36210 { (case "(($ac_try" in
36211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36212 *) ac_try_echo=$ac_try;;
36213 esac
36214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36215 (eval "$ac_try") 2>&5
36216 ac_status=$?
36217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36218 (exit $ac_status); }; }; then
36219 ac_cv_struct_tm=time.h
36220 else
36221 echo "$as_me: failed program was:" >&5
36222 sed 's/^/| /' conftest.$ac_ext >&5
36224 ac_cv_struct_tm=sys/time.h
36227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36229 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
36230 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
36231 if test $ac_cv_struct_tm = sys/time.h; then
36233 cat >>confdefs.h <<\_ACEOF
36234 #define TM_IN_SYS_TIME 1
36235 _ACEOF
36242 case " $LIBOBJS " in
36243 *" posixver.$ac_objext "* ) ;;
36244 *) LIBOBJS="$LIBOBJS posixver.$ac_objext"
36246 esac
36253 case " $LIBOBJS " in
36254 *" quotearg.$ac_objext "* ) ;;
36255 *) LIBOBJS="$LIBOBJS quotearg.$ac_objext"
36257 esac
36276 { echo "$as_me:$LINENO: checking for mbstate_t" >&5
36277 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
36278 if test "${ac_cv_type_mbstate_t+set}" = set; then
36279 echo $ECHO_N "(cached) $ECHO_C" >&6
36280 else
36281 cat >conftest.$ac_ext <<_ACEOF
36282 /* confdefs.h. */
36283 _ACEOF
36284 cat confdefs.h >>conftest.$ac_ext
36285 cat >>conftest.$ac_ext <<_ACEOF
36286 /* end confdefs.h. */
36287 $ac_includes_default
36288 # include <wchar.h>
36290 main ()
36292 mbstate_t x; return sizeof x;
36294 return 0;
36296 _ACEOF
36297 rm -f conftest.$ac_objext
36298 if { (ac_try="$ac_compile"
36299 case "(($ac_try" in
36300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36301 *) ac_try_echo=$ac_try;;
36302 esac
36303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36304 (eval "$ac_compile") 2>conftest.er1
36305 ac_status=$?
36306 grep -v '^ *+' conftest.er1 >conftest.err
36307 rm -f conftest.er1
36308 cat conftest.err >&5
36309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36310 (exit $ac_status); } &&
36311 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36312 { (case "(($ac_try" in
36313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36314 *) ac_try_echo=$ac_try;;
36315 esac
36316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36317 (eval "$ac_try") 2>&5
36318 ac_status=$?
36319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36320 (exit $ac_status); }; } &&
36321 { ac_try='test -s conftest.$ac_objext'
36322 { (case "(($ac_try" in
36323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36324 *) ac_try_echo=$ac_try;;
36325 esac
36326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36327 (eval "$ac_try") 2>&5
36328 ac_status=$?
36329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36330 (exit $ac_status); }; }; then
36331 ac_cv_type_mbstate_t=yes
36332 else
36333 echo "$as_me: failed program was:" >&5
36334 sed 's/^/| /' conftest.$ac_ext >&5
36336 ac_cv_type_mbstate_t=no
36339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36341 { echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
36342 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
36343 if test $ac_cv_type_mbstate_t = yes; then
36345 cat >>confdefs.h <<\_ACEOF
36346 #define HAVE_MBSTATE_T 1
36347 _ACEOF
36349 else
36351 cat >>confdefs.h <<\_ACEOF
36352 #define mbstate_t int
36353 _ACEOF
36357 { echo "$as_me:$LINENO: checking whether mbrtowc and mbstate_t are properly declared" >&5
36358 echo $ECHO_N "checking whether mbrtowc and mbstate_t are properly declared... $ECHO_C" >&6; }
36359 if test "${gl_cv_func_mbrtowc+set}" = set; then
36360 echo $ECHO_N "(cached) $ECHO_C" >&6
36361 else
36362 cat >conftest.$ac_ext <<_ACEOF
36363 /* confdefs.h. */
36364 _ACEOF
36365 cat confdefs.h >>conftest.$ac_ext
36366 cat >>conftest.$ac_ext <<_ACEOF
36367 /* end confdefs.h. */
36368 #include <wchar.h>
36370 main ()
36372 wchar_t wc;
36373 char const s[] = "";
36374 size_t n = 1;
36375 mbstate_t state;
36376 return ! (sizeof state && (mbrtowc) (&wc, s, n, &state));
36378 return 0;
36380 _ACEOF
36381 rm -f conftest.$ac_objext conftest$ac_exeext
36382 if { (ac_try="$ac_link"
36383 case "(($ac_try" in
36384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36385 *) ac_try_echo=$ac_try;;
36386 esac
36387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36388 (eval "$ac_link") 2>conftest.er1
36389 ac_status=$?
36390 grep -v '^ *+' conftest.er1 >conftest.err
36391 rm -f conftest.er1
36392 cat conftest.err >&5
36393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36394 (exit $ac_status); } &&
36395 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36396 { (case "(($ac_try" in
36397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36398 *) ac_try_echo=$ac_try;;
36399 esac
36400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36401 (eval "$ac_try") 2>&5
36402 ac_status=$?
36403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36404 (exit $ac_status); }; } &&
36405 { ac_try='test -s conftest$ac_exeext'
36406 { (case "(($ac_try" in
36407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36408 *) ac_try_echo=$ac_try;;
36409 esac
36410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36411 (eval "$ac_try") 2>&5
36412 ac_status=$?
36413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36414 (exit $ac_status); }; }; then
36415 gl_cv_func_mbrtowc=yes
36416 else
36417 echo "$as_me: failed program was:" >&5
36418 sed 's/^/| /' conftest.$ac_ext >&5
36420 gl_cv_func_mbrtowc=no
36423 rm -f core conftest.err conftest.$ac_objext \
36424 conftest$ac_exeext conftest.$ac_ext
36426 { echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc" >&5
36427 echo "${ECHO_T}$gl_cv_func_mbrtowc" >&6; }
36428 if test $gl_cv_func_mbrtowc = yes; then
36430 cat >>confdefs.h <<\_ACEOF
36431 #define HAVE_MBRTOWC 1
36432 _ACEOF
36439 case " $LIBOBJS " in
36440 *" quote.$ac_objext "* ) ;;
36441 *) LIBOBJS="$LIBOBJS quote.$ac_objext"
36443 esac
36449 case " $LIBOBJS " in
36450 *" randint.$ac_objext "* ) ;;
36451 *) LIBOBJS="$LIBOBJS randint.$ac_objext"
36453 esac
36460 case " $LIBOBJS " in
36461 *" randperm.$ac_objext "* ) ;;
36462 *) LIBOBJS="$LIBOBJS randperm.$ac_objext"
36464 esac
36469 case " $LIBOBJS " in
36470 *" randread.$ac_objext "* ) ;;
36471 *) LIBOBJS="$LIBOBJS randread.$ac_objext"
36473 esac
36475 case " $LIBOBJS " in
36476 *" rand-isaac.$ac_objext "* ) ;;
36477 *) LIBOBJS="$LIBOBJS rand-isaac.$ac_objext"
36479 esac
36484 case " $LIBOBJS " in
36485 *" readtokens.$ac_objext "* ) ;;
36486 *) LIBOBJS="$LIBOBJS readtokens.$ac_objext"
36488 esac
36494 { echo "$as_me:$LINENO: checking whether free (NULL) is known to work" >&5
36495 echo $ECHO_N "checking whether free (NULL) is known to work... $ECHO_C" >&6; }
36496 if test "${gl_cv_func_free+set}" = set; then
36497 echo $ECHO_N "(cached) $ECHO_C" >&6
36498 else
36499 cat >conftest.$ac_ext <<_ACEOF
36500 /* confdefs.h. */
36501 _ACEOF
36502 cat confdefs.h >>conftest.$ac_ext
36503 cat >>conftest.$ac_ext <<_ACEOF
36504 /* end confdefs.h. */
36505 #include <unistd.h>
36507 main ()
36509 #if _POSIX_VERSION < 199009L && \
36510 (defined unix || defined _unix || defined _unix_ \
36511 || defined __unix || defined __unix__)
36512 #error "'free (NULL)' is not known to work"
36513 #endif
36515 return 0;
36517 _ACEOF
36518 rm -f conftest.$ac_objext
36519 if { (ac_try="$ac_compile"
36520 case "(($ac_try" in
36521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36522 *) ac_try_echo=$ac_try;;
36523 esac
36524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36525 (eval "$ac_compile") 2>conftest.er1
36526 ac_status=$?
36527 grep -v '^ *+' conftest.er1 >conftest.err
36528 rm -f conftest.er1
36529 cat conftest.err >&5
36530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36531 (exit $ac_status); } &&
36532 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36533 { (case "(($ac_try" in
36534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36535 *) ac_try_echo=$ac_try;;
36536 esac
36537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36538 (eval "$ac_try") 2>&5
36539 ac_status=$?
36540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36541 (exit $ac_status); }; } &&
36542 { ac_try='test -s conftest.$ac_objext'
36543 { (case "(($ac_try" in
36544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36545 *) ac_try_echo=$ac_try;;
36546 esac
36547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36548 (eval "$ac_try") 2>&5
36549 ac_status=$?
36550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36551 (exit $ac_status); }; }; then
36552 gl_cv_func_free=yes
36553 else
36554 echo "$as_me: failed program was:" >&5
36555 sed 's/^/| /' conftest.$ac_ext >&5
36557 gl_cv_func_free=no
36560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36562 { echo "$as_me:$LINENO: result: $gl_cv_func_free" >&5
36563 echo "${ECHO_T}$gl_cv_func_free" >&6; }
36565 if test $gl_cv_func_free = no; then
36566 case " $LIBOBJS " in
36567 *" free.$ac_objext "* ) ;;
36568 *) LIBOBJS="$LIBOBJS free.$ac_objext"
36570 esac
36573 cat >>confdefs.h <<\_ACEOF
36574 #define free rpl_free
36575 _ACEOF
36587 case " $LIBOBJS " in
36588 *" readutmp.$ac_objext "* ) ;;
36589 *) LIBOBJS="$LIBOBJS readutmp.$ac_objext"
36591 esac
36612 { echo "$as_me:$LINENO: checking whether getutent is declared" >&5
36613 echo $ECHO_N "checking whether getutent is declared... $ECHO_C" >&6; }
36614 if test "${ac_cv_have_decl_getutent+set}" = set; then
36615 echo $ECHO_N "(cached) $ECHO_C" >&6
36616 else
36617 cat >conftest.$ac_ext <<_ACEOF
36618 /* confdefs.h. */
36619 _ACEOF
36620 cat confdefs.h >>conftest.$ac_ext
36621 cat >>conftest.$ac_ext <<_ACEOF
36622 /* end confdefs.h. */
36624 #ifdef HAVE_UTMP_H
36625 # include <utmp.h>
36626 #endif
36630 main ()
36632 #ifndef getutent
36633 char *p = (char *) getutent;
36634 return !p;
36635 #endif
36638 return 0;
36640 _ACEOF
36641 rm -f conftest.$ac_objext
36642 if { (ac_try="$ac_compile"
36643 case "(($ac_try" in
36644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36645 *) ac_try_echo=$ac_try;;
36646 esac
36647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36648 (eval "$ac_compile") 2>conftest.er1
36649 ac_status=$?
36650 grep -v '^ *+' conftest.er1 >conftest.err
36651 rm -f conftest.er1
36652 cat conftest.err >&5
36653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36654 (exit $ac_status); } &&
36655 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36656 { (case "(($ac_try" in
36657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36658 *) ac_try_echo=$ac_try;;
36659 esac
36660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36661 (eval "$ac_try") 2>&5
36662 ac_status=$?
36663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36664 (exit $ac_status); }; } &&
36665 { ac_try='test -s conftest.$ac_objext'
36666 { (case "(($ac_try" in
36667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36668 *) ac_try_echo=$ac_try;;
36669 esac
36670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36671 (eval "$ac_try") 2>&5
36672 ac_status=$?
36673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36674 (exit $ac_status); }; }; then
36675 ac_cv_have_decl_getutent=yes
36676 else
36677 echo "$as_me: failed program was:" >&5
36678 sed 's/^/| /' conftest.$ac_ext >&5
36680 ac_cv_have_decl_getutent=no
36683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36685 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getutent" >&5
36686 echo "${ECHO_T}$ac_cv_have_decl_getutent" >&6; }
36687 if test $ac_cv_have_decl_getutent = yes; then
36689 cat >>confdefs.h <<_ACEOF
36690 #define HAVE_DECL_GETUTENT 1
36691 _ACEOF
36694 else
36695 cat >>confdefs.h <<_ACEOF
36696 #define HAVE_DECL_GETUTENT 0
36697 _ACEOF
36703 if test $ac_cv_header_utmp_h = yes || test $ac_cv_header_utmpx_h = yes; then
36704 utmp_includes="\
36705 $ac_includes_default
36706 #ifdef HAVE_UTMPX_H
36707 # include <utmpx.h>
36708 #endif
36709 #ifdef HAVE_UTMP_H
36710 # include <utmp.h>
36711 #endif
36713 { echo "$as_me:$LINENO: checking for struct utmpx.ut_user" >&5
36714 echo $ECHO_N "checking for struct utmpx.ut_user... $ECHO_C" >&6; }
36715 if test "${ac_cv_member_struct_utmpx_ut_user+set}" = set; then
36716 echo $ECHO_N "(cached) $ECHO_C" >&6
36717 else
36718 cat >conftest.$ac_ext <<_ACEOF
36719 /* confdefs.h. */
36720 _ACEOF
36721 cat confdefs.h >>conftest.$ac_ext
36722 cat >>conftest.$ac_ext <<_ACEOF
36723 /* end confdefs.h. */
36724 $utmp_includes
36727 main ()
36729 static struct utmpx ac_aggr;
36730 if (ac_aggr.ut_user)
36731 return 0;
36733 return 0;
36735 _ACEOF
36736 rm -f conftest.$ac_objext
36737 if { (ac_try="$ac_compile"
36738 case "(($ac_try" in
36739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36740 *) ac_try_echo=$ac_try;;
36741 esac
36742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36743 (eval "$ac_compile") 2>conftest.er1
36744 ac_status=$?
36745 grep -v '^ *+' conftest.er1 >conftest.err
36746 rm -f conftest.er1
36747 cat conftest.err >&5
36748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36749 (exit $ac_status); } &&
36750 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36751 { (case "(($ac_try" in
36752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36753 *) ac_try_echo=$ac_try;;
36754 esac
36755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36756 (eval "$ac_try") 2>&5
36757 ac_status=$?
36758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36759 (exit $ac_status); }; } &&
36760 { ac_try='test -s conftest.$ac_objext'
36761 { (case "(($ac_try" in
36762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36763 *) ac_try_echo=$ac_try;;
36764 esac
36765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36766 (eval "$ac_try") 2>&5
36767 ac_status=$?
36768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36769 (exit $ac_status); }; }; then
36770 ac_cv_member_struct_utmpx_ut_user=yes
36771 else
36772 echo "$as_me: failed program was:" >&5
36773 sed 's/^/| /' conftest.$ac_ext >&5
36775 cat >conftest.$ac_ext <<_ACEOF
36776 /* confdefs.h. */
36777 _ACEOF
36778 cat confdefs.h >>conftest.$ac_ext
36779 cat >>conftest.$ac_ext <<_ACEOF
36780 /* end confdefs.h. */
36781 $utmp_includes
36784 main ()
36786 static struct utmpx ac_aggr;
36787 if (sizeof ac_aggr.ut_user)
36788 return 0;
36790 return 0;
36792 _ACEOF
36793 rm -f conftest.$ac_objext
36794 if { (ac_try="$ac_compile"
36795 case "(($ac_try" in
36796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36797 *) ac_try_echo=$ac_try;;
36798 esac
36799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36800 (eval "$ac_compile") 2>conftest.er1
36801 ac_status=$?
36802 grep -v '^ *+' conftest.er1 >conftest.err
36803 rm -f conftest.er1
36804 cat conftest.err >&5
36805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36806 (exit $ac_status); } &&
36807 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36808 { (case "(($ac_try" in
36809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36810 *) ac_try_echo=$ac_try;;
36811 esac
36812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36813 (eval "$ac_try") 2>&5
36814 ac_status=$?
36815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36816 (exit $ac_status); }; } &&
36817 { ac_try='test -s conftest.$ac_objext'
36818 { (case "(($ac_try" in
36819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36820 *) ac_try_echo=$ac_try;;
36821 esac
36822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36823 (eval "$ac_try") 2>&5
36824 ac_status=$?
36825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36826 (exit $ac_status); }; }; then
36827 ac_cv_member_struct_utmpx_ut_user=yes
36828 else
36829 echo "$as_me: failed program was:" >&5
36830 sed 's/^/| /' conftest.$ac_ext >&5
36832 ac_cv_member_struct_utmpx_ut_user=no
36835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36840 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_user" >&5
36841 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_user" >&6; }
36842 if test $ac_cv_member_struct_utmpx_ut_user = yes; then
36844 cat >>confdefs.h <<_ACEOF
36845 #define HAVE_STRUCT_UTMPX_UT_USER 1
36846 _ACEOF
36851 { echo "$as_me:$LINENO: checking for struct utmp.ut_user" >&5
36852 echo $ECHO_N "checking for struct utmp.ut_user... $ECHO_C" >&6; }
36853 if test "${ac_cv_member_struct_utmp_ut_user+set}" = set; then
36854 echo $ECHO_N "(cached) $ECHO_C" >&6
36855 else
36856 cat >conftest.$ac_ext <<_ACEOF
36857 /* confdefs.h. */
36858 _ACEOF
36859 cat confdefs.h >>conftest.$ac_ext
36860 cat >>conftest.$ac_ext <<_ACEOF
36861 /* end confdefs.h. */
36862 $utmp_includes
36865 main ()
36867 static struct utmp ac_aggr;
36868 if (ac_aggr.ut_user)
36869 return 0;
36871 return 0;
36873 _ACEOF
36874 rm -f conftest.$ac_objext
36875 if { (ac_try="$ac_compile"
36876 case "(($ac_try" in
36877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36878 *) ac_try_echo=$ac_try;;
36879 esac
36880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36881 (eval "$ac_compile") 2>conftest.er1
36882 ac_status=$?
36883 grep -v '^ *+' conftest.er1 >conftest.err
36884 rm -f conftest.er1
36885 cat conftest.err >&5
36886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36887 (exit $ac_status); } &&
36888 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36889 { (case "(($ac_try" in
36890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36891 *) ac_try_echo=$ac_try;;
36892 esac
36893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36894 (eval "$ac_try") 2>&5
36895 ac_status=$?
36896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36897 (exit $ac_status); }; } &&
36898 { ac_try='test -s conftest.$ac_objext'
36899 { (case "(($ac_try" in
36900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36901 *) ac_try_echo=$ac_try;;
36902 esac
36903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36904 (eval "$ac_try") 2>&5
36905 ac_status=$?
36906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36907 (exit $ac_status); }; }; then
36908 ac_cv_member_struct_utmp_ut_user=yes
36909 else
36910 echo "$as_me: failed program was:" >&5
36911 sed 's/^/| /' conftest.$ac_ext >&5
36913 cat >conftest.$ac_ext <<_ACEOF
36914 /* confdefs.h. */
36915 _ACEOF
36916 cat confdefs.h >>conftest.$ac_ext
36917 cat >>conftest.$ac_ext <<_ACEOF
36918 /* end confdefs.h. */
36919 $utmp_includes
36922 main ()
36924 static struct utmp ac_aggr;
36925 if (sizeof ac_aggr.ut_user)
36926 return 0;
36928 return 0;
36930 _ACEOF
36931 rm -f conftest.$ac_objext
36932 if { (ac_try="$ac_compile"
36933 case "(($ac_try" in
36934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36935 *) ac_try_echo=$ac_try;;
36936 esac
36937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36938 (eval "$ac_compile") 2>conftest.er1
36939 ac_status=$?
36940 grep -v '^ *+' conftest.er1 >conftest.err
36941 rm -f conftest.er1
36942 cat conftest.err >&5
36943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36944 (exit $ac_status); } &&
36945 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36946 { (case "(($ac_try" in
36947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36948 *) ac_try_echo=$ac_try;;
36949 esac
36950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36951 (eval "$ac_try") 2>&5
36952 ac_status=$?
36953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36954 (exit $ac_status); }; } &&
36955 { ac_try='test -s conftest.$ac_objext'
36956 { (case "(($ac_try" in
36957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36958 *) ac_try_echo=$ac_try;;
36959 esac
36960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36961 (eval "$ac_try") 2>&5
36962 ac_status=$?
36963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36964 (exit $ac_status); }; }; then
36965 ac_cv_member_struct_utmp_ut_user=yes
36966 else
36967 echo "$as_me: failed program was:" >&5
36968 sed 's/^/| /' conftest.$ac_ext >&5
36970 ac_cv_member_struct_utmp_ut_user=no
36973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36978 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_user" >&5
36979 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_user" >&6; }
36980 if test $ac_cv_member_struct_utmp_ut_user = yes; then
36982 cat >>confdefs.h <<_ACEOF
36983 #define HAVE_STRUCT_UTMP_UT_USER 1
36984 _ACEOF
36989 { echo "$as_me:$LINENO: checking for struct utmpx.ut_name" >&5
36990 echo $ECHO_N "checking for struct utmpx.ut_name... $ECHO_C" >&6; }
36991 if test "${ac_cv_member_struct_utmpx_ut_name+set}" = set; then
36992 echo $ECHO_N "(cached) $ECHO_C" >&6
36993 else
36994 cat >conftest.$ac_ext <<_ACEOF
36995 /* confdefs.h. */
36996 _ACEOF
36997 cat confdefs.h >>conftest.$ac_ext
36998 cat >>conftest.$ac_ext <<_ACEOF
36999 /* end confdefs.h. */
37000 $utmp_includes
37003 main ()
37005 static struct utmpx ac_aggr;
37006 if (ac_aggr.ut_name)
37007 return 0;
37009 return 0;
37011 _ACEOF
37012 rm -f conftest.$ac_objext
37013 if { (ac_try="$ac_compile"
37014 case "(($ac_try" in
37015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37016 *) ac_try_echo=$ac_try;;
37017 esac
37018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37019 (eval "$ac_compile") 2>conftest.er1
37020 ac_status=$?
37021 grep -v '^ *+' conftest.er1 >conftest.err
37022 rm -f conftest.er1
37023 cat conftest.err >&5
37024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37025 (exit $ac_status); } &&
37026 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37027 { (case "(($ac_try" in
37028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37029 *) ac_try_echo=$ac_try;;
37030 esac
37031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37032 (eval "$ac_try") 2>&5
37033 ac_status=$?
37034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37035 (exit $ac_status); }; } &&
37036 { ac_try='test -s conftest.$ac_objext'
37037 { (case "(($ac_try" in
37038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37039 *) ac_try_echo=$ac_try;;
37040 esac
37041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37042 (eval "$ac_try") 2>&5
37043 ac_status=$?
37044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37045 (exit $ac_status); }; }; then
37046 ac_cv_member_struct_utmpx_ut_name=yes
37047 else
37048 echo "$as_me: failed program was:" >&5
37049 sed 's/^/| /' conftest.$ac_ext >&5
37051 cat >conftest.$ac_ext <<_ACEOF
37052 /* confdefs.h. */
37053 _ACEOF
37054 cat confdefs.h >>conftest.$ac_ext
37055 cat >>conftest.$ac_ext <<_ACEOF
37056 /* end confdefs.h. */
37057 $utmp_includes
37060 main ()
37062 static struct utmpx ac_aggr;
37063 if (sizeof ac_aggr.ut_name)
37064 return 0;
37066 return 0;
37068 _ACEOF
37069 rm -f conftest.$ac_objext
37070 if { (ac_try="$ac_compile"
37071 case "(($ac_try" in
37072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37073 *) ac_try_echo=$ac_try;;
37074 esac
37075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37076 (eval "$ac_compile") 2>conftest.er1
37077 ac_status=$?
37078 grep -v '^ *+' conftest.er1 >conftest.err
37079 rm -f conftest.er1
37080 cat conftest.err >&5
37081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37082 (exit $ac_status); } &&
37083 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37084 { (case "(($ac_try" in
37085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37086 *) ac_try_echo=$ac_try;;
37087 esac
37088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37089 (eval "$ac_try") 2>&5
37090 ac_status=$?
37091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37092 (exit $ac_status); }; } &&
37093 { ac_try='test -s conftest.$ac_objext'
37094 { (case "(($ac_try" in
37095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37096 *) ac_try_echo=$ac_try;;
37097 esac
37098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37099 (eval "$ac_try") 2>&5
37100 ac_status=$?
37101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37102 (exit $ac_status); }; }; then
37103 ac_cv_member_struct_utmpx_ut_name=yes
37104 else
37105 echo "$as_me: failed program was:" >&5
37106 sed 's/^/| /' conftest.$ac_ext >&5
37108 ac_cv_member_struct_utmpx_ut_name=no
37111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37116 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_name" >&5
37117 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_name" >&6; }
37118 if test $ac_cv_member_struct_utmpx_ut_name = yes; then
37120 cat >>confdefs.h <<_ACEOF
37121 #define HAVE_STRUCT_UTMPX_UT_NAME 1
37122 _ACEOF
37127 { echo "$as_me:$LINENO: checking for struct utmp.ut_name" >&5
37128 echo $ECHO_N "checking for struct utmp.ut_name... $ECHO_C" >&6; }
37129 if test "${ac_cv_member_struct_utmp_ut_name+set}" = set; then
37130 echo $ECHO_N "(cached) $ECHO_C" >&6
37131 else
37132 cat >conftest.$ac_ext <<_ACEOF
37133 /* confdefs.h. */
37134 _ACEOF
37135 cat confdefs.h >>conftest.$ac_ext
37136 cat >>conftest.$ac_ext <<_ACEOF
37137 /* end confdefs.h. */
37138 $utmp_includes
37141 main ()
37143 static struct utmp ac_aggr;
37144 if (ac_aggr.ut_name)
37145 return 0;
37147 return 0;
37149 _ACEOF
37150 rm -f conftest.$ac_objext
37151 if { (ac_try="$ac_compile"
37152 case "(($ac_try" in
37153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37154 *) ac_try_echo=$ac_try;;
37155 esac
37156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37157 (eval "$ac_compile") 2>conftest.er1
37158 ac_status=$?
37159 grep -v '^ *+' conftest.er1 >conftest.err
37160 rm -f conftest.er1
37161 cat conftest.err >&5
37162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37163 (exit $ac_status); } &&
37164 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37165 { (case "(($ac_try" in
37166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37167 *) ac_try_echo=$ac_try;;
37168 esac
37169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37170 (eval "$ac_try") 2>&5
37171 ac_status=$?
37172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37173 (exit $ac_status); }; } &&
37174 { ac_try='test -s conftest.$ac_objext'
37175 { (case "(($ac_try" in
37176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37177 *) ac_try_echo=$ac_try;;
37178 esac
37179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37180 (eval "$ac_try") 2>&5
37181 ac_status=$?
37182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37183 (exit $ac_status); }; }; then
37184 ac_cv_member_struct_utmp_ut_name=yes
37185 else
37186 echo "$as_me: failed program was:" >&5
37187 sed 's/^/| /' conftest.$ac_ext >&5
37189 cat >conftest.$ac_ext <<_ACEOF
37190 /* confdefs.h. */
37191 _ACEOF
37192 cat confdefs.h >>conftest.$ac_ext
37193 cat >>conftest.$ac_ext <<_ACEOF
37194 /* end confdefs.h. */
37195 $utmp_includes
37198 main ()
37200 static struct utmp ac_aggr;
37201 if (sizeof ac_aggr.ut_name)
37202 return 0;
37204 return 0;
37206 _ACEOF
37207 rm -f conftest.$ac_objext
37208 if { (ac_try="$ac_compile"
37209 case "(($ac_try" in
37210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37211 *) ac_try_echo=$ac_try;;
37212 esac
37213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37214 (eval "$ac_compile") 2>conftest.er1
37215 ac_status=$?
37216 grep -v '^ *+' conftest.er1 >conftest.err
37217 rm -f conftest.er1
37218 cat conftest.err >&5
37219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37220 (exit $ac_status); } &&
37221 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37222 { (case "(($ac_try" in
37223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37224 *) ac_try_echo=$ac_try;;
37225 esac
37226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37227 (eval "$ac_try") 2>&5
37228 ac_status=$?
37229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37230 (exit $ac_status); }; } &&
37231 { ac_try='test -s conftest.$ac_objext'
37232 { (case "(($ac_try" in
37233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37234 *) ac_try_echo=$ac_try;;
37235 esac
37236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37237 (eval "$ac_try") 2>&5
37238 ac_status=$?
37239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37240 (exit $ac_status); }; }; then
37241 ac_cv_member_struct_utmp_ut_name=yes
37242 else
37243 echo "$as_me: failed program was:" >&5
37244 sed 's/^/| /' conftest.$ac_ext >&5
37246 ac_cv_member_struct_utmp_ut_name=no
37249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37254 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_name" >&5
37255 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_name" >&6; }
37256 if test $ac_cv_member_struct_utmp_ut_name = yes; then
37258 cat >>confdefs.h <<_ACEOF
37259 #define HAVE_STRUCT_UTMP_UT_NAME 1
37260 _ACEOF
37265 { echo "$as_me:$LINENO: checking for struct utmpx.ut_type" >&5
37266 echo $ECHO_N "checking for struct utmpx.ut_type... $ECHO_C" >&6; }
37267 if test "${ac_cv_member_struct_utmpx_ut_type+set}" = set; then
37268 echo $ECHO_N "(cached) $ECHO_C" >&6
37269 else
37270 cat >conftest.$ac_ext <<_ACEOF
37271 /* confdefs.h. */
37272 _ACEOF
37273 cat confdefs.h >>conftest.$ac_ext
37274 cat >>conftest.$ac_ext <<_ACEOF
37275 /* end confdefs.h. */
37276 $utmp_includes
37279 main ()
37281 static struct utmpx ac_aggr;
37282 if (ac_aggr.ut_type)
37283 return 0;
37285 return 0;
37287 _ACEOF
37288 rm -f conftest.$ac_objext
37289 if { (ac_try="$ac_compile"
37290 case "(($ac_try" in
37291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37292 *) ac_try_echo=$ac_try;;
37293 esac
37294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37295 (eval "$ac_compile") 2>conftest.er1
37296 ac_status=$?
37297 grep -v '^ *+' conftest.er1 >conftest.err
37298 rm -f conftest.er1
37299 cat conftest.err >&5
37300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37301 (exit $ac_status); } &&
37302 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37303 { (case "(($ac_try" in
37304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37305 *) ac_try_echo=$ac_try;;
37306 esac
37307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37308 (eval "$ac_try") 2>&5
37309 ac_status=$?
37310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37311 (exit $ac_status); }; } &&
37312 { ac_try='test -s conftest.$ac_objext'
37313 { (case "(($ac_try" in
37314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37315 *) ac_try_echo=$ac_try;;
37316 esac
37317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37318 (eval "$ac_try") 2>&5
37319 ac_status=$?
37320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37321 (exit $ac_status); }; }; then
37322 ac_cv_member_struct_utmpx_ut_type=yes
37323 else
37324 echo "$as_me: failed program was:" >&5
37325 sed 's/^/| /' conftest.$ac_ext >&5
37327 cat >conftest.$ac_ext <<_ACEOF
37328 /* confdefs.h. */
37329 _ACEOF
37330 cat confdefs.h >>conftest.$ac_ext
37331 cat >>conftest.$ac_ext <<_ACEOF
37332 /* end confdefs.h. */
37333 $utmp_includes
37336 main ()
37338 static struct utmpx ac_aggr;
37339 if (sizeof ac_aggr.ut_type)
37340 return 0;
37342 return 0;
37344 _ACEOF
37345 rm -f conftest.$ac_objext
37346 if { (ac_try="$ac_compile"
37347 case "(($ac_try" in
37348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37349 *) ac_try_echo=$ac_try;;
37350 esac
37351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37352 (eval "$ac_compile") 2>conftest.er1
37353 ac_status=$?
37354 grep -v '^ *+' conftest.er1 >conftest.err
37355 rm -f conftest.er1
37356 cat conftest.err >&5
37357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37358 (exit $ac_status); } &&
37359 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37360 { (case "(($ac_try" in
37361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37362 *) ac_try_echo=$ac_try;;
37363 esac
37364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37365 (eval "$ac_try") 2>&5
37366 ac_status=$?
37367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37368 (exit $ac_status); }; } &&
37369 { ac_try='test -s conftest.$ac_objext'
37370 { (case "(($ac_try" in
37371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37372 *) ac_try_echo=$ac_try;;
37373 esac
37374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37375 (eval "$ac_try") 2>&5
37376 ac_status=$?
37377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37378 (exit $ac_status); }; }; then
37379 ac_cv_member_struct_utmpx_ut_type=yes
37380 else
37381 echo "$as_me: failed program was:" >&5
37382 sed 's/^/| /' conftest.$ac_ext >&5
37384 ac_cv_member_struct_utmpx_ut_type=no
37387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37392 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_type" >&5
37393 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_type" >&6; }
37394 if test $ac_cv_member_struct_utmpx_ut_type = yes; then
37396 cat >>confdefs.h <<_ACEOF
37397 #define HAVE_STRUCT_UTMPX_UT_TYPE 1
37398 _ACEOF
37403 { echo "$as_me:$LINENO: checking for struct utmp.ut_type" >&5
37404 echo $ECHO_N "checking for struct utmp.ut_type... $ECHO_C" >&6; }
37405 if test "${ac_cv_member_struct_utmp_ut_type+set}" = set; then
37406 echo $ECHO_N "(cached) $ECHO_C" >&6
37407 else
37408 cat >conftest.$ac_ext <<_ACEOF
37409 /* confdefs.h. */
37410 _ACEOF
37411 cat confdefs.h >>conftest.$ac_ext
37412 cat >>conftest.$ac_ext <<_ACEOF
37413 /* end confdefs.h. */
37414 $utmp_includes
37417 main ()
37419 static struct utmp ac_aggr;
37420 if (ac_aggr.ut_type)
37421 return 0;
37423 return 0;
37425 _ACEOF
37426 rm -f conftest.$ac_objext
37427 if { (ac_try="$ac_compile"
37428 case "(($ac_try" in
37429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37430 *) ac_try_echo=$ac_try;;
37431 esac
37432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37433 (eval "$ac_compile") 2>conftest.er1
37434 ac_status=$?
37435 grep -v '^ *+' conftest.er1 >conftest.err
37436 rm -f conftest.er1
37437 cat conftest.err >&5
37438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37439 (exit $ac_status); } &&
37440 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37441 { (case "(($ac_try" in
37442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37443 *) ac_try_echo=$ac_try;;
37444 esac
37445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37446 (eval "$ac_try") 2>&5
37447 ac_status=$?
37448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37449 (exit $ac_status); }; } &&
37450 { ac_try='test -s conftest.$ac_objext'
37451 { (case "(($ac_try" in
37452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37453 *) ac_try_echo=$ac_try;;
37454 esac
37455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37456 (eval "$ac_try") 2>&5
37457 ac_status=$?
37458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37459 (exit $ac_status); }; }; then
37460 ac_cv_member_struct_utmp_ut_type=yes
37461 else
37462 echo "$as_me: failed program was:" >&5
37463 sed 's/^/| /' conftest.$ac_ext >&5
37465 cat >conftest.$ac_ext <<_ACEOF
37466 /* confdefs.h. */
37467 _ACEOF
37468 cat confdefs.h >>conftest.$ac_ext
37469 cat >>conftest.$ac_ext <<_ACEOF
37470 /* end confdefs.h. */
37471 $utmp_includes
37474 main ()
37476 static struct utmp ac_aggr;
37477 if (sizeof ac_aggr.ut_type)
37478 return 0;
37480 return 0;
37482 _ACEOF
37483 rm -f conftest.$ac_objext
37484 if { (ac_try="$ac_compile"
37485 case "(($ac_try" in
37486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37487 *) ac_try_echo=$ac_try;;
37488 esac
37489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37490 (eval "$ac_compile") 2>conftest.er1
37491 ac_status=$?
37492 grep -v '^ *+' conftest.er1 >conftest.err
37493 rm -f conftest.er1
37494 cat conftest.err >&5
37495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37496 (exit $ac_status); } &&
37497 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37498 { (case "(($ac_try" in
37499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37500 *) ac_try_echo=$ac_try;;
37501 esac
37502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37503 (eval "$ac_try") 2>&5
37504 ac_status=$?
37505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37506 (exit $ac_status); }; } &&
37507 { ac_try='test -s conftest.$ac_objext'
37508 { (case "(($ac_try" in
37509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37510 *) ac_try_echo=$ac_try;;
37511 esac
37512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37513 (eval "$ac_try") 2>&5
37514 ac_status=$?
37515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37516 (exit $ac_status); }; }; then
37517 ac_cv_member_struct_utmp_ut_type=yes
37518 else
37519 echo "$as_me: failed program was:" >&5
37520 sed 's/^/| /' conftest.$ac_ext >&5
37522 ac_cv_member_struct_utmp_ut_type=no
37525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37530 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_type" >&5
37531 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_type" >&6; }
37532 if test $ac_cv_member_struct_utmp_ut_type = yes; then
37534 cat >>confdefs.h <<_ACEOF
37535 #define HAVE_STRUCT_UTMP_UT_TYPE 1
37536 _ACEOF
37541 { echo "$as_me:$LINENO: checking for struct utmpx.ut_pid" >&5
37542 echo $ECHO_N "checking for struct utmpx.ut_pid... $ECHO_C" >&6; }
37543 if test "${ac_cv_member_struct_utmpx_ut_pid+set}" = set; then
37544 echo $ECHO_N "(cached) $ECHO_C" >&6
37545 else
37546 cat >conftest.$ac_ext <<_ACEOF
37547 /* confdefs.h. */
37548 _ACEOF
37549 cat confdefs.h >>conftest.$ac_ext
37550 cat >>conftest.$ac_ext <<_ACEOF
37551 /* end confdefs.h. */
37552 $utmp_includes
37555 main ()
37557 static struct utmpx ac_aggr;
37558 if (ac_aggr.ut_pid)
37559 return 0;
37561 return 0;
37563 _ACEOF
37564 rm -f conftest.$ac_objext
37565 if { (ac_try="$ac_compile"
37566 case "(($ac_try" in
37567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37568 *) ac_try_echo=$ac_try;;
37569 esac
37570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37571 (eval "$ac_compile") 2>conftest.er1
37572 ac_status=$?
37573 grep -v '^ *+' conftest.er1 >conftest.err
37574 rm -f conftest.er1
37575 cat conftest.err >&5
37576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37577 (exit $ac_status); } &&
37578 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37579 { (case "(($ac_try" in
37580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37581 *) ac_try_echo=$ac_try;;
37582 esac
37583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37584 (eval "$ac_try") 2>&5
37585 ac_status=$?
37586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37587 (exit $ac_status); }; } &&
37588 { ac_try='test -s conftest.$ac_objext'
37589 { (case "(($ac_try" in
37590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37591 *) ac_try_echo=$ac_try;;
37592 esac
37593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37594 (eval "$ac_try") 2>&5
37595 ac_status=$?
37596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37597 (exit $ac_status); }; }; then
37598 ac_cv_member_struct_utmpx_ut_pid=yes
37599 else
37600 echo "$as_me: failed program was:" >&5
37601 sed 's/^/| /' conftest.$ac_ext >&5
37603 cat >conftest.$ac_ext <<_ACEOF
37604 /* confdefs.h. */
37605 _ACEOF
37606 cat confdefs.h >>conftest.$ac_ext
37607 cat >>conftest.$ac_ext <<_ACEOF
37608 /* end confdefs.h. */
37609 $utmp_includes
37612 main ()
37614 static struct utmpx ac_aggr;
37615 if (sizeof ac_aggr.ut_pid)
37616 return 0;
37618 return 0;
37620 _ACEOF
37621 rm -f conftest.$ac_objext
37622 if { (ac_try="$ac_compile"
37623 case "(($ac_try" in
37624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37625 *) ac_try_echo=$ac_try;;
37626 esac
37627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37628 (eval "$ac_compile") 2>conftest.er1
37629 ac_status=$?
37630 grep -v '^ *+' conftest.er1 >conftest.err
37631 rm -f conftest.er1
37632 cat conftest.err >&5
37633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37634 (exit $ac_status); } &&
37635 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37636 { (case "(($ac_try" in
37637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37638 *) ac_try_echo=$ac_try;;
37639 esac
37640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37641 (eval "$ac_try") 2>&5
37642 ac_status=$?
37643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37644 (exit $ac_status); }; } &&
37645 { ac_try='test -s conftest.$ac_objext'
37646 { (case "(($ac_try" in
37647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37648 *) ac_try_echo=$ac_try;;
37649 esac
37650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37651 (eval "$ac_try") 2>&5
37652 ac_status=$?
37653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37654 (exit $ac_status); }; }; then
37655 ac_cv_member_struct_utmpx_ut_pid=yes
37656 else
37657 echo "$as_me: failed program was:" >&5
37658 sed 's/^/| /' conftest.$ac_ext >&5
37660 ac_cv_member_struct_utmpx_ut_pid=no
37663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37668 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_pid" >&5
37669 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_pid" >&6; }
37670 if test $ac_cv_member_struct_utmpx_ut_pid = yes; then
37672 cat >>confdefs.h <<_ACEOF
37673 #define HAVE_STRUCT_UTMPX_UT_PID 1
37674 _ACEOF
37679 { echo "$as_me:$LINENO: checking for struct utmp.ut_pid" >&5
37680 echo $ECHO_N "checking for struct utmp.ut_pid... $ECHO_C" >&6; }
37681 if test "${ac_cv_member_struct_utmp_ut_pid+set}" = set; then
37682 echo $ECHO_N "(cached) $ECHO_C" >&6
37683 else
37684 cat >conftest.$ac_ext <<_ACEOF
37685 /* confdefs.h. */
37686 _ACEOF
37687 cat confdefs.h >>conftest.$ac_ext
37688 cat >>conftest.$ac_ext <<_ACEOF
37689 /* end confdefs.h. */
37690 $utmp_includes
37693 main ()
37695 static struct utmp ac_aggr;
37696 if (ac_aggr.ut_pid)
37697 return 0;
37699 return 0;
37701 _ACEOF
37702 rm -f conftest.$ac_objext
37703 if { (ac_try="$ac_compile"
37704 case "(($ac_try" in
37705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37706 *) ac_try_echo=$ac_try;;
37707 esac
37708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37709 (eval "$ac_compile") 2>conftest.er1
37710 ac_status=$?
37711 grep -v '^ *+' conftest.er1 >conftest.err
37712 rm -f conftest.er1
37713 cat conftest.err >&5
37714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37715 (exit $ac_status); } &&
37716 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37717 { (case "(($ac_try" in
37718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37719 *) ac_try_echo=$ac_try;;
37720 esac
37721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37722 (eval "$ac_try") 2>&5
37723 ac_status=$?
37724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37725 (exit $ac_status); }; } &&
37726 { ac_try='test -s conftest.$ac_objext'
37727 { (case "(($ac_try" in
37728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37729 *) ac_try_echo=$ac_try;;
37730 esac
37731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37732 (eval "$ac_try") 2>&5
37733 ac_status=$?
37734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37735 (exit $ac_status); }; }; then
37736 ac_cv_member_struct_utmp_ut_pid=yes
37737 else
37738 echo "$as_me: failed program was:" >&5
37739 sed 's/^/| /' conftest.$ac_ext >&5
37741 cat >conftest.$ac_ext <<_ACEOF
37742 /* confdefs.h. */
37743 _ACEOF
37744 cat confdefs.h >>conftest.$ac_ext
37745 cat >>conftest.$ac_ext <<_ACEOF
37746 /* end confdefs.h. */
37747 $utmp_includes
37750 main ()
37752 static struct utmp ac_aggr;
37753 if (sizeof ac_aggr.ut_pid)
37754 return 0;
37756 return 0;
37758 _ACEOF
37759 rm -f conftest.$ac_objext
37760 if { (ac_try="$ac_compile"
37761 case "(($ac_try" in
37762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37763 *) ac_try_echo=$ac_try;;
37764 esac
37765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37766 (eval "$ac_compile") 2>conftest.er1
37767 ac_status=$?
37768 grep -v '^ *+' conftest.er1 >conftest.err
37769 rm -f conftest.er1
37770 cat conftest.err >&5
37771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37772 (exit $ac_status); } &&
37773 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37774 { (case "(($ac_try" in
37775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37776 *) ac_try_echo=$ac_try;;
37777 esac
37778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37779 (eval "$ac_try") 2>&5
37780 ac_status=$?
37781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37782 (exit $ac_status); }; } &&
37783 { ac_try='test -s conftest.$ac_objext'
37784 { (case "(($ac_try" in
37785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37786 *) ac_try_echo=$ac_try;;
37787 esac
37788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37789 (eval "$ac_try") 2>&5
37790 ac_status=$?
37791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37792 (exit $ac_status); }; }; then
37793 ac_cv_member_struct_utmp_ut_pid=yes
37794 else
37795 echo "$as_me: failed program was:" >&5
37796 sed 's/^/| /' conftest.$ac_ext >&5
37798 ac_cv_member_struct_utmp_ut_pid=no
37801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37806 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_pid" >&5
37807 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_pid" >&6; }
37808 if test $ac_cv_member_struct_utmp_ut_pid = yes; then
37810 cat >>confdefs.h <<_ACEOF
37811 #define HAVE_STRUCT_UTMP_UT_PID 1
37812 _ACEOF
37817 { echo "$as_me:$LINENO: checking for struct utmpx.ut_id" >&5
37818 echo $ECHO_N "checking for struct utmpx.ut_id... $ECHO_C" >&6; }
37819 if test "${ac_cv_member_struct_utmpx_ut_id+set}" = set; then
37820 echo $ECHO_N "(cached) $ECHO_C" >&6
37821 else
37822 cat >conftest.$ac_ext <<_ACEOF
37823 /* confdefs.h. */
37824 _ACEOF
37825 cat confdefs.h >>conftest.$ac_ext
37826 cat >>conftest.$ac_ext <<_ACEOF
37827 /* end confdefs.h. */
37828 $utmp_includes
37831 main ()
37833 static struct utmpx ac_aggr;
37834 if (ac_aggr.ut_id)
37835 return 0;
37837 return 0;
37839 _ACEOF
37840 rm -f conftest.$ac_objext
37841 if { (ac_try="$ac_compile"
37842 case "(($ac_try" in
37843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37844 *) ac_try_echo=$ac_try;;
37845 esac
37846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37847 (eval "$ac_compile") 2>conftest.er1
37848 ac_status=$?
37849 grep -v '^ *+' conftest.er1 >conftest.err
37850 rm -f conftest.er1
37851 cat conftest.err >&5
37852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37853 (exit $ac_status); } &&
37854 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37855 { (case "(($ac_try" in
37856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37857 *) ac_try_echo=$ac_try;;
37858 esac
37859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37860 (eval "$ac_try") 2>&5
37861 ac_status=$?
37862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37863 (exit $ac_status); }; } &&
37864 { ac_try='test -s conftest.$ac_objext'
37865 { (case "(($ac_try" in
37866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37867 *) ac_try_echo=$ac_try;;
37868 esac
37869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37870 (eval "$ac_try") 2>&5
37871 ac_status=$?
37872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37873 (exit $ac_status); }; }; then
37874 ac_cv_member_struct_utmpx_ut_id=yes
37875 else
37876 echo "$as_me: failed program was:" >&5
37877 sed 's/^/| /' conftest.$ac_ext >&5
37879 cat >conftest.$ac_ext <<_ACEOF
37880 /* confdefs.h. */
37881 _ACEOF
37882 cat confdefs.h >>conftest.$ac_ext
37883 cat >>conftest.$ac_ext <<_ACEOF
37884 /* end confdefs.h. */
37885 $utmp_includes
37888 main ()
37890 static struct utmpx ac_aggr;
37891 if (sizeof ac_aggr.ut_id)
37892 return 0;
37894 return 0;
37896 _ACEOF
37897 rm -f conftest.$ac_objext
37898 if { (ac_try="$ac_compile"
37899 case "(($ac_try" in
37900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37901 *) ac_try_echo=$ac_try;;
37902 esac
37903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37904 (eval "$ac_compile") 2>conftest.er1
37905 ac_status=$?
37906 grep -v '^ *+' conftest.er1 >conftest.err
37907 rm -f conftest.er1
37908 cat conftest.err >&5
37909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37910 (exit $ac_status); } &&
37911 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37912 { (case "(($ac_try" in
37913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37914 *) ac_try_echo=$ac_try;;
37915 esac
37916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37917 (eval "$ac_try") 2>&5
37918 ac_status=$?
37919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37920 (exit $ac_status); }; } &&
37921 { ac_try='test -s conftest.$ac_objext'
37922 { (case "(($ac_try" in
37923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37924 *) ac_try_echo=$ac_try;;
37925 esac
37926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37927 (eval "$ac_try") 2>&5
37928 ac_status=$?
37929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37930 (exit $ac_status); }; }; then
37931 ac_cv_member_struct_utmpx_ut_id=yes
37932 else
37933 echo "$as_me: failed program was:" >&5
37934 sed 's/^/| /' conftest.$ac_ext >&5
37936 ac_cv_member_struct_utmpx_ut_id=no
37939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37944 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_id" >&5
37945 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_id" >&6; }
37946 if test $ac_cv_member_struct_utmpx_ut_id = yes; then
37948 cat >>confdefs.h <<_ACEOF
37949 #define HAVE_STRUCT_UTMPX_UT_ID 1
37950 _ACEOF
37955 { echo "$as_me:$LINENO: checking for struct utmp.ut_id" >&5
37956 echo $ECHO_N "checking for struct utmp.ut_id... $ECHO_C" >&6; }
37957 if test "${ac_cv_member_struct_utmp_ut_id+set}" = set; then
37958 echo $ECHO_N "(cached) $ECHO_C" >&6
37959 else
37960 cat >conftest.$ac_ext <<_ACEOF
37961 /* confdefs.h. */
37962 _ACEOF
37963 cat confdefs.h >>conftest.$ac_ext
37964 cat >>conftest.$ac_ext <<_ACEOF
37965 /* end confdefs.h. */
37966 $utmp_includes
37969 main ()
37971 static struct utmp ac_aggr;
37972 if (ac_aggr.ut_id)
37973 return 0;
37975 return 0;
37977 _ACEOF
37978 rm -f conftest.$ac_objext
37979 if { (ac_try="$ac_compile"
37980 case "(($ac_try" in
37981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37982 *) ac_try_echo=$ac_try;;
37983 esac
37984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37985 (eval "$ac_compile") 2>conftest.er1
37986 ac_status=$?
37987 grep -v '^ *+' conftest.er1 >conftest.err
37988 rm -f conftest.er1
37989 cat conftest.err >&5
37990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37991 (exit $ac_status); } &&
37992 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37993 { (case "(($ac_try" in
37994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37995 *) ac_try_echo=$ac_try;;
37996 esac
37997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37998 (eval "$ac_try") 2>&5
37999 ac_status=$?
38000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38001 (exit $ac_status); }; } &&
38002 { ac_try='test -s conftest.$ac_objext'
38003 { (case "(($ac_try" in
38004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38005 *) ac_try_echo=$ac_try;;
38006 esac
38007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38008 (eval "$ac_try") 2>&5
38009 ac_status=$?
38010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38011 (exit $ac_status); }; }; then
38012 ac_cv_member_struct_utmp_ut_id=yes
38013 else
38014 echo "$as_me: failed program was:" >&5
38015 sed 's/^/| /' conftest.$ac_ext >&5
38017 cat >conftest.$ac_ext <<_ACEOF
38018 /* confdefs.h. */
38019 _ACEOF
38020 cat confdefs.h >>conftest.$ac_ext
38021 cat >>conftest.$ac_ext <<_ACEOF
38022 /* end confdefs.h. */
38023 $utmp_includes
38026 main ()
38028 static struct utmp ac_aggr;
38029 if (sizeof ac_aggr.ut_id)
38030 return 0;
38032 return 0;
38034 _ACEOF
38035 rm -f conftest.$ac_objext
38036 if { (ac_try="$ac_compile"
38037 case "(($ac_try" in
38038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38039 *) ac_try_echo=$ac_try;;
38040 esac
38041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38042 (eval "$ac_compile") 2>conftest.er1
38043 ac_status=$?
38044 grep -v '^ *+' conftest.er1 >conftest.err
38045 rm -f conftest.er1
38046 cat conftest.err >&5
38047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38048 (exit $ac_status); } &&
38049 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
38050 { (case "(($ac_try" in
38051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38052 *) ac_try_echo=$ac_try;;
38053 esac
38054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38055 (eval "$ac_try") 2>&5
38056 ac_status=$?
38057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38058 (exit $ac_status); }; } &&
38059 { ac_try='test -s conftest.$ac_objext'
38060 { (case "(($ac_try" in
38061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38062 *) ac_try_echo=$ac_try;;
38063 esac
38064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38065 (eval "$ac_try") 2>&5
38066 ac_status=$?
38067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38068 (exit $ac_status); }; }; then
38069 ac_cv_member_struct_utmp_ut_id=yes
38070 else
38071 echo "$as_me: failed program was:" >&5
38072 sed 's/^/| /' conftest.$ac_ext >&5
38074 ac_cv_member_struct_utmp_ut_id=no
38077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38082 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_id" >&5
38083 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_id" >&6; }
38084 if test $ac_cv_member_struct_utmp_ut_id = yes; then
38086 cat >>confdefs.h <<_ACEOF
38087 #define HAVE_STRUCT_UTMP_UT_ID 1
38088 _ACEOF
38093 { echo "$as_me:$LINENO: checking for struct utmpx.ut_exit" >&5
38094 echo $ECHO_N "checking for struct utmpx.ut_exit... $ECHO_C" >&6; }
38095 if test "${ac_cv_member_struct_utmpx_ut_exit+set}" = set; then
38096 echo $ECHO_N "(cached) $ECHO_C" >&6
38097 else
38098 cat >conftest.$ac_ext <<_ACEOF
38099 /* confdefs.h. */
38100 _ACEOF
38101 cat confdefs.h >>conftest.$ac_ext
38102 cat >>conftest.$ac_ext <<_ACEOF
38103 /* end confdefs.h. */
38104 $utmp_includes
38107 main ()
38109 static struct utmpx ac_aggr;
38110 if (ac_aggr.ut_exit)
38111 return 0;
38113 return 0;
38115 _ACEOF
38116 rm -f conftest.$ac_objext
38117 if { (ac_try="$ac_compile"
38118 case "(($ac_try" in
38119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38120 *) ac_try_echo=$ac_try;;
38121 esac
38122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38123 (eval "$ac_compile") 2>conftest.er1
38124 ac_status=$?
38125 grep -v '^ *+' conftest.er1 >conftest.err
38126 rm -f conftest.er1
38127 cat conftest.err >&5
38128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38129 (exit $ac_status); } &&
38130 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
38131 { (case "(($ac_try" in
38132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38133 *) ac_try_echo=$ac_try;;
38134 esac
38135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38136 (eval "$ac_try") 2>&5
38137 ac_status=$?
38138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38139 (exit $ac_status); }; } &&
38140 { ac_try='test -s conftest.$ac_objext'
38141 { (case "(($ac_try" in
38142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38143 *) ac_try_echo=$ac_try;;
38144 esac
38145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38146 (eval "$ac_try") 2>&5
38147 ac_status=$?
38148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38149 (exit $ac_status); }; }; then
38150 ac_cv_member_struct_utmpx_ut_exit=yes
38151 else
38152 echo "$as_me: failed program was:" >&5
38153 sed 's/^/| /' conftest.$ac_ext >&5
38155 cat >conftest.$ac_ext <<_ACEOF
38156 /* confdefs.h. */
38157 _ACEOF
38158 cat confdefs.h >>conftest.$ac_ext
38159 cat >>conftest.$ac_ext <<_ACEOF
38160 /* end confdefs.h. */
38161 $utmp_includes
38164 main ()
38166 static struct utmpx ac_aggr;
38167 if (sizeof ac_aggr.ut_exit)
38168 return 0;
38170 return 0;
38172 _ACEOF
38173 rm -f conftest.$ac_objext
38174 if { (ac_try="$ac_compile"
38175 case "(($ac_try" in
38176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38177 *) ac_try_echo=$ac_try;;
38178 esac
38179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38180 (eval "$ac_compile") 2>conftest.er1
38181 ac_status=$?
38182 grep -v '^ *+' conftest.er1 >conftest.err
38183 rm -f conftest.er1
38184 cat conftest.err >&5
38185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38186 (exit $ac_status); } &&
38187 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
38188 { (case "(($ac_try" in
38189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38190 *) ac_try_echo=$ac_try;;
38191 esac
38192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38193 (eval "$ac_try") 2>&5
38194 ac_status=$?
38195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38196 (exit $ac_status); }; } &&
38197 { ac_try='test -s conftest.$ac_objext'
38198 { (case "(($ac_try" in
38199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38200 *) ac_try_echo=$ac_try;;
38201 esac
38202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38203 (eval "$ac_try") 2>&5
38204 ac_status=$?
38205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38206 (exit $ac_status); }; }; then
38207 ac_cv_member_struct_utmpx_ut_exit=yes
38208 else
38209 echo "$as_me: failed program was:" >&5
38210 sed 's/^/| /' conftest.$ac_ext >&5
38212 ac_cv_member_struct_utmpx_ut_exit=no
38215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38220 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_exit" >&5
38221 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_exit" >&6; }
38222 if test $ac_cv_member_struct_utmpx_ut_exit = yes; then
38224 cat >>confdefs.h <<_ACEOF
38225 #define HAVE_STRUCT_UTMPX_UT_EXIT 1
38226 _ACEOF
38231 { echo "$as_me:$LINENO: checking for struct utmp.ut_exit" >&5
38232 echo $ECHO_N "checking for struct utmp.ut_exit... $ECHO_C" >&6; }
38233 if test "${ac_cv_member_struct_utmp_ut_exit+set}" = set; then
38234 echo $ECHO_N "(cached) $ECHO_C" >&6
38235 else
38236 cat >conftest.$ac_ext <<_ACEOF
38237 /* confdefs.h. */
38238 _ACEOF
38239 cat confdefs.h >>conftest.$ac_ext
38240 cat >>conftest.$ac_ext <<_ACEOF
38241 /* end confdefs.h. */
38242 $utmp_includes
38245 main ()
38247 static struct utmp ac_aggr;
38248 if (ac_aggr.ut_exit)
38249 return 0;
38251 return 0;
38253 _ACEOF
38254 rm -f conftest.$ac_objext
38255 if { (ac_try="$ac_compile"
38256 case "(($ac_try" in
38257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38258 *) ac_try_echo=$ac_try;;
38259 esac
38260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38261 (eval "$ac_compile") 2>conftest.er1
38262 ac_status=$?
38263 grep -v '^ *+' conftest.er1 >conftest.err
38264 rm -f conftest.er1
38265 cat conftest.err >&5
38266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38267 (exit $ac_status); } &&
38268 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
38269 { (case "(($ac_try" in
38270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38271 *) ac_try_echo=$ac_try;;
38272 esac
38273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38274 (eval "$ac_try") 2>&5
38275 ac_status=$?
38276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38277 (exit $ac_status); }; } &&
38278 { ac_try='test -s conftest.$ac_objext'
38279 { (case "(($ac_try" in
38280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38281 *) ac_try_echo=$ac_try;;
38282 esac
38283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38284 (eval "$ac_try") 2>&5
38285 ac_status=$?
38286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38287 (exit $ac_status); }; }; then
38288 ac_cv_member_struct_utmp_ut_exit=yes
38289 else
38290 echo "$as_me: failed program was:" >&5
38291 sed 's/^/| /' conftest.$ac_ext >&5
38293 cat >conftest.$ac_ext <<_ACEOF
38294 /* confdefs.h. */
38295 _ACEOF
38296 cat confdefs.h >>conftest.$ac_ext
38297 cat >>conftest.$ac_ext <<_ACEOF
38298 /* end confdefs.h. */
38299 $utmp_includes
38302 main ()
38304 static struct utmp ac_aggr;
38305 if (sizeof ac_aggr.ut_exit)
38306 return 0;
38308 return 0;
38310 _ACEOF
38311 rm -f conftest.$ac_objext
38312 if { (ac_try="$ac_compile"
38313 case "(($ac_try" in
38314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38315 *) ac_try_echo=$ac_try;;
38316 esac
38317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38318 (eval "$ac_compile") 2>conftest.er1
38319 ac_status=$?
38320 grep -v '^ *+' conftest.er1 >conftest.err
38321 rm -f conftest.er1
38322 cat conftest.err >&5
38323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38324 (exit $ac_status); } &&
38325 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
38326 { (case "(($ac_try" in
38327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38328 *) ac_try_echo=$ac_try;;
38329 esac
38330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38331 (eval "$ac_try") 2>&5
38332 ac_status=$?
38333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38334 (exit $ac_status); }; } &&
38335 { ac_try='test -s conftest.$ac_objext'
38336 { (case "(($ac_try" in
38337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38338 *) ac_try_echo=$ac_try;;
38339 esac
38340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38341 (eval "$ac_try") 2>&5
38342 ac_status=$?
38343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38344 (exit $ac_status); }; }; then
38345 ac_cv_member_struct_utmp_ut_exit=yes
38346 else
38347 echo "$as_me: failed program was:" >&5
38348 sed 's/^/| /' conftest.$ac_ext >&5
38350 ac_cv_member_struct_utmp_ut_exit=no
38353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38358 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_exit" >&5
38359 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_exit" >&6; }
38360 if test $ac_cv_member_struct_utmp_ut_exit = yes; then
38362 cat >>confdefs.h <<_ACEOF
38363 #define HAVE_STRUCT_UTMP_UT_EXIT 1
38364 _ACEOF
38370 { echo "$as_me:$LINENO: checking for struct utmpx.ut_exit.ut_exit" >&5
38371 echo $ECHO_N "checking for struct utmpx.ut_exit.ut_exit... $ECHO_C" >&6; }
38372 if test "${ac_cv_member_struct_utmpx_ut_exit_ut_exit+set}" = set; then
38373 echo $ECHO_N "(cached) $ECHO_C" >&6
38374 else
38375 cat >conftest.$ac_ext <<_ACEOF
38376 /* confdefs.h. */
38377 _ACEOF
38378 cat confdefs.h >>conftest.$ac_ext
38379 cat >>conftest.$ac_ext <<_ACEOF
38380 /* end confdefs.h. */
38381 $utmp_includes
38384 main ()
38386 static struct utmpx ac_aggr;
38387 if (ac_aggr.ut_exit.ut_exit)
38388 return 0;
38390 return 0;
38392 _ACEOF
38393 rm -f conftest.$ac_objext
38394 if { (ac_try="$ac_compile"
38395 case "(($ac_try" in
38396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38397 *) ac_try_echo=$ac_try;;
38398 esac
38399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38400 (eval "$ac_compile") 2>conftest.er1
38401 ac_status=$?
38402 grep -v '^ *+' conftest.er1 >conftest.err
38403 rm -f conftest.er1
38404 cat conftest.err >&5
38405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38406 (exit $ac_status); } &&
38407 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
38408 { (case "(($ac_try" in
38409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38410 *) ac_try_echo=$ac_try;;
38411 esac
38412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38413 (eval "$ac_try") 2>&5
38414 ac_status=$?
38415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38416 (exit $ac_status); }; } &&
38417 { ac_try='test -s conftest.$ac_objext'
38418 { (case "(($ac_try" in
38419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38420 *) ac_try_echo=$ac_try;;
38421 esac
38422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38423 (eval "$ac_try") 2>&5
38424 ac_status=$?
38425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38426 (exit $ac_status); }; }; then
38427 ac_cv_member_struct_utmpx_ut_exit_ut_exit=yes
38428 else
38429 echo "$as_me: failed program was:" >&5
38430 sed 's/^/| /' conftest.$ac_ext >&5
38432 cat >conftest.$ac_ext <<_ACEOF
38433 /* confdefs.h. */
38434 _ACEOF
38435 cat confdefs.h >>conftest.$ac_ext
38436 cat >>conftest.$ac_ext <<_ACEOF
38437 /* end confdefs.h. */
38438 $utmp_includes
38441 main ()
38443 static struct utmpx ac_aggr;
38444 if (sizeof ac_aggr.ut_exit.ut_exit)
38445 return 0;
38447 return 0;
38449 _ACEOF
38450 rm -f conftest.$ac_objext
38451 if { (ac_try="$ac_compile"
38452 case "(($ac_try" in
38453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38454 *) ac_try_echo=$ac_try;;
38455 esac
38456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38457 (eval "$ac_compile") 2>conftest.er1
38458 ac_status=$?
38459 grep -v '^ *+' conftest.er1 >conftest.err
38460 rm -f conftest.er1
38461 cat conftest.err >&5
38462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38463 (exit $ac_status); } &&
38464 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
38465 { (case "(($ac_try" in
38466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38467 *) ac_try_echo=$ac_try;;
38468 esac
38469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38470 (eval "$ac_try") 2>&5
38471 ac_status=$?
38472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38473 (exit $ac_status); }; } &&
38474 { ac_try='test -s conftest.$ac_objext'
38475 { (case "(($ac_try" in
38476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38477 *) ac_try_echo=$ac_try;;
38478 esac
38479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38480 (eval "$ac_try") 2>&5
38481 ac_status=$?
38482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38483 (exit $ac_status); }; }; then
38484 ac_cv_member_struct_utmpx_ut_exit_ut_exit=yes
38485 else
38486 echo "$as_me: failed program was:" >&5
38487 sed 's/^/| /' conftest.$ac_ext >&5
38489 ac_cv_member_struct_utmpx_ut_exit_ut_exit=no
38492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38497 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_exit_ut_exit" >&5
38498 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_exit_ut_exit" >&6; }
38499 if test $ac_cv_member_struct_utmpx_ut_exit_ut_exit = yes; then
38501 cat >>confdefs.h <<_ACEOF
38502 #define HAVE_STRUCT_UTMPX_UT_EXIT_UT_EXIT 1
38503 _ACEOF
38508 { echo "$as_me:$LINENO: checking for struct utmp.ut_exit.ut_exit" >&5
38509 echo $ECHO_N "checking for struct utmp.ut_exit.ut_exit... $ECHO_C" >&6; }
38510 if test "${ac_cv_member_struct_utmp_ut_exit_ut_exit+set}" = set; then
38511 echo $ECHO_N "(cached) $ECHO_C" >&6
38512 else
38513 cat >conftest.$ac_ext <<_ACEOF
38514 /* confdefs.h. */
38515 _ACEOF
38516 cat confdefs.h >>conftest.$ac_ext
38517 cat >>conftest.$ac_ext <<_ACEOF
38518 /* end confdefs.h. */
38519 $utmp_includes
38522 main ()
38524 static struct utmp ac_aggr;
38525 if (ac_aggr.ut_exit.ut_exit)
38526 return 0;
38528 return 0;
38530 _ACEOF
38531 rm -f conftest.$ac_objext
38532 if { (ac_try="$ac_compile"
38533 case "(($ac_try" in
38534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38535 *) ac_try_echo=$ac_try;;
38536 esac
38537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38538 (eval "$ac_compile") 2>conftest.er1
38539 ac_status=$?
38540 grep -v '^ *+' conftest.er1 >conftest.err
38541 rm -f conftest.er1
38542 cat conftest.err >&5
38543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38544 (exit $ac_status); } &&
38545 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
38546 { (case "(($ac_try" in
38547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38548 *) ac_try_echo=$ac_try;;
38549 esac
38550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38551 (eval "$ac_try") 2>&5
38552 ac_status=$?
38553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38554 (exit $ac_status); }; } &&
38555 { ac_try='test -s conftest.$ac_objext'
38556 { (case "(($ac_try" in
38557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38558 *) ac_try_echo=$ac_try;;
38559 esac
38560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38561 (eval "$ac_try") 2>&5
38562 ac_status=$?
38563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38564 (exit $ac_status); }; }; then
38565 ac_cv_member_struct_utmp_ut_exit_ut_exit=yes
38566 else
38567 echo "$as_me: failed program was:" >&5
38568 sed 's/^/| /' conftest.$ac_ext >&5
38570 cat >conftest.$ac_ext <<_ACEOF
38571 /* confdefs.h. */
38572 _ACEOF
38573 cat confdefs.h >>conftest.$ac_ext
38574 cat >>conftest.$ac_ext <<_ACEOF
38575 /* end confdefs.h. */
38576 $utmp_includes
38579 main ()
38581 static struct utmp ac_aggr;
38582 if (sizeof ac_aggr.ut_exit.ut_exit)
38583 return 0;
38585 return 0;
38587 _ACEOF
38588 rm -f conftest.$ac_objext
38589 if { (ac_try="$ac_compile"
38590 case "(($ac_try" in
38591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38592 *) ac_try_echo=$ac_try;;
38593 esac
38594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38595 (eval "$ac_compile") 2>conftest.er1
38596 ac_status=$?
38597 grep -v '^ *+' conftest.er1 >conftest.err
38598 rm -f conftest.er1
38599 cat conftest.err >&5
38600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38601 (exit $ac_status); } &&
38602 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
38603 { (case "(($ac_try" in
38604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38605 *) ac_try_echo=$ac_try;;
38606 esac
38607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38608 (eval "$ac_try") 2>&5
38609 ac_status=$?
38610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38611 (exit $ac_status); }; } &&
38612 { ac_try='test -s conftest.$ac_objext'
38613 { (case "(($ac_try" in
38614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38615 *) ac_try_echo=$ac_try;;
38616 esac
38617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38618 (eval "$ac_try") 2>&5
38619 ac_status=$?
38620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38621 (exit $ac_status); }; }; then
38622 ac_cv_member_struct_utmp_ut_exit_ut_exit=yes
38623 else
38624 echo "$as_me: failed program was:" >&5
38625 sed 's/^/| /' conftest.$ac_ext >&5
38627 ac_cv_member_struct_utmp_ut_exit_ut_exit=no
38630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38635 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_exit_ut_exit" >&5
38636 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_exit_ut_exit" >&6; }
38637 if test $ac_cv_member_struct_utmp_ut_exit_ut_exit = yes; then
38639 cat >>confdefs.h <<_ACEOF
38640 #define HAVE_STRUCT_UTMP_UT_EXIT_UT_EXIT 1
38641 _ACEOF
38646 { echo "$as_me:$LINENO: checking for struct utmpx.ut_exit.e_exit" >&5
38647 echo $ECHO_N "checking for struct utmpx.ut_exit.e_exit... $ECHO_C" >&6; }
38648 if test "${ac_cv_member_struct_utmpx_ut_exit_e_exit+set}" = set; then
38649 echo $ECHO_N "(cached) $ECHO_C" >&6
38650 else
38651 cat >conftest.$ac_ext <<_ACEOF
38652 /* confdefs.h. */
38653 _ACEOF
38654 cat confdefs.h >>conftest.$ac_ext
38655 cat >>conftest.$ac_ext <<_ACEOF
38656 /* end confdefs.h. */
38657 $utmp_includes
38660 main ()
38662 static struct utmpx ac_aggr;
38663 if (ac_aggr.ut_exit.e_exit)
38664 return 0;
38666 return 0;
38668 _ACEOF
38669 rm -f conftest.$ac_objext
38670 if { (ac_try="$ac_compile"
38671 case "(($ac_try" in
38672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38673 *) ac_try_echo=$ac_try;;
38674 esac
38675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38676 (eval "$ac_compile") 2>conftest.er1
38677 ac_status=$?
38678 grep -v '^ *+' conftest.er1 >conftest.err
38679 rm -f conftest.er1
38680 cat conftest.err >&5
38681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38682 (exit $ac_status); } &&
38683 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
38684 { (case "(($ac_try" in
38685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38686 *) ac_try_echo=$ac_try;;
38687 esac
38688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38689 (eval "$ac_try") 2>&5
38690 ac_status=$?
38691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38692 (exit $ac_status); }; } &&
38693 { ac_try='test -s conftest.$ac_objext'
38694 { (case "(($ac_try" in
38695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38696 *) ac_try_echo=$ac_try;;
38697 esac
38698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38699 (eval "$ac_try") 2>&5
38700 ac_status=$?
38701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38702 (exit $ac_status); }; }; then
38703 ac_cv_member_struct_utmpx_ut_exit_e_exit=yes
38704 else
38705 echo "$as_me: failed program was:" >&5
38706 sed 's/^/| /' conftest.$ac_ext >&5
38708 cat >conftest.$ac_ext <<_ACEOF
38709 /* confdefs.h. */
38710 _ACEOF
38711 cat confdefs.h >>conftest.$ac_ext
38712 cat >>conftest.$ac_ext <<_ACEOF
38713 /* end confdefs.h. */
38714 $utmp_includes
38717 main ()
38719 static struct utmpx ac_aggr;
38720 if (sizeof ac_aggr.ut_exit.e_exit)
38721 return 0;
38723 return 0;
38725 _ACEOF
38726 rm -f conftest.$ac_objext
38727 if { (ac_try="$ac_compile"
38728 case "(($ac_try" in
38729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38730 *) ac_try_echo=$ac_try;;
38731 esac
38732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38733 (eval "$ac_compile") 2>conftest.er1
38734 ac_status=$?
38735 grep -v '^ *+' conftest.er1 >conftest.err
38736 rm -f conftest.er1
38737 cat conftest.err >&5
38738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38739 (exit $ac_status); } &&
38740 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
38741 { (case "(($ac_try" in
38742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38743 *) ac_try_echo=$ac_try;;
38744 esac
38745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38746 (eval "$ac_try") 2>&5
38747 ac_status=$?
38748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38749 (exit $ac_status); }; } &&
38750 { ac_try='test -s conftest.$ac_objext'
38751 { (case "(($ac_try" in
38752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38753 *) ac_try_echo=$ac_try;;
38754 esac
38755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38756 (eval "$ac_try") 2>&5
38757 ac_status=$?
38758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38759 (exit $ac_status); }; }; then
38760 ac_cv_member_struct_utmpx_ut_exit_e_exit=yes
38761 else
38762 echo "$as_me: failed program was:" >&5
38763 sed 's/^/| /' conftest.$ac_ext >&5
38765 ac_cv_member_struct_utmpx_ut_exit_e_exit=no
38768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38773 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_exit_e_exit" >&5
38774 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_exit_e_exit" >&6; }
38775 if test $ac_cv_member_struct_utmpx_ut_exit_e_exit = yes; then
38777 cat >>confdefs.h <<_ACEOF
38778 #define HAVE_STRUCT_UTMPX_UT_EXIT_E_EXIT 1
38779 _ACEOF
38784 { echo "$as_me:$LINENO: checking for struct utmp.ut_exit.e_exit" >&5
38785 echo $ECHO_N "checking for struct utmp.ut_exit.e_exit... $ECHO_C" >&6; }
38786 if test "${ac_cv_member_struct_utmp_ut_exit_e_exit+set}" = set; then
38787 echo $ECHO_N "(cached) $ECHO_C" >&6
38788 else
38789 cat >conftest.$ac_ext <<_ACEOF
38790 /* confdefs.h. */
38791 _ACEOF
38792 cat confdefs.h >>conftest.$ac_ext
38793 cat >>conftest.$ac_ext <<_ACEOF
38794 /* end confdefs.h. */
38795 $utmp_includes
38798 main ()
38800 static struct utmp ac_aggr;
38801 if (ac_aggr.ut_exit.e_exit)
38802 return 0;
38804 return 0;
38806 _ACEOF
38807 rm -f conftest.$ac_objext
38808 if { (ac_try="$ac_compile"
38809 case "(($ac_try" in
38810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38811 *) ac_try_echo=$ac_try;;
38812 esac
38813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38814 (eval "$ac_compile") 2>conftest.er1
38815 ac_status=$?
38816 grep -v '^ *+' conftest.er1 >conftest.err
38817 rm -f conftest.er1
38818 cat conftest.err >&5
38819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38820 (exit $ac_status); } &&
38821 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
38822 { (case "(($ac_try" in
38823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38824 *) ac_try_echo=$ac_try;;
38825 esac
38826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38827 (eval "$ac_try") 2>&5
38828 ac_status=$?
38829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38830 (exit $ac_status); }; } &&
38831 { ac_try='test -s conftest.$ac_objext'
38832 { (case "(($ac_try" in
38833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38834 *) ac_try_echo=$ac_try;;
38835 esac
38836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38837 (eval "$ac_try") 2>&5
38838 ac_status=$?
38839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38840 (exit $ac_status); }; }; then
38841 ac_cv_member_struct_utmp_ut_exit_e_exit=yes
38842 else
38843 echo "$as_me: failed program was:" >&5
38844 sed 's/^/| /' conftest.$ac_ext >&5
38846 cat >conftest.$ac_ext <<_ACEOF
38847 /* confdefs.h. */
38848 _ACEOF
38849 cat confdefs.h >>conftest.$ac_ext
38850 cat >>conftest.$ac_ext <<_ACEOF
38851 /* end confdefs.h. */
38852 $utmp_includes
38855 main ()
38857 static struct utmp ac_aggr;
38858 if (sizeof ac_aggr.ut_exit.e_exit)
38859 return 0;
38861 return 0;
38863 _ACEOF
38864 rm -f conftest.$ac_objext
38865 if { (ac_try="$ac_compile"
38866 case "(($ac_try" in
38867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38868 *) ac_try_echo=$ac_try;;
38869 esac
38870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38871 (eval "$ac_compile") 2>conftest.er1
38872 ac_status=$?
38873 grep -v '^ *+' conftest.er1 >conftest.err
38874 rm -f conftest.er1
38875 cat conftest.err >&5
38876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38877 (exit $ac_status); } &&
38878 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
38879 { (case "(($ac_try" in
38880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38881 *) ac_try_echo=$ac_try;;
38882 esac
38883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38884 (eval "$ac_try") 2>&5
38885 ac_status=$?
38886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38887 (exit $ac_status); }; } &&
38888 { ac_try='test -s conftest.$ac_objext'
38889 { (case "(($ac_try" in
38890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38891 *) ac_try_echo=$ac_try;;
38892 esac
38893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38894 (eval "$ac_try") 2>&5
38895 ac_status=$?
38896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38897 (exit $ac_status); }; }; then
38898 ac_cv_member_struct_utmp_ut_exit_e_exit=yes
38899 else
38900 echo "$as_me: failed program was:" >&5
38901 sed 's/^/| /' conftest.$ac_ext >&5
38903 ac_cv_member_struct_utmp_ut_exit_e_exit=no
38906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38911 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_exit_e_exit" >&5
38912 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_exit_e_exit" >&6; }
38913 if test $ac_cv_member_struct_utmp_ut_exit_e_exit = yes; then
38915 cat >>confdefs.h <<_ACEOF
38916 #define HAVE_STRUCT_UTMP_UT_EXIT_E_EXIT 1
38917 _ACEOF
38923 { echo "$as_me:$LINENO: checking for struct utmpx.ut_exit.ut_termination" >&5
38924 echo $ECHO_N "checking for struct utmpx.ut_exit.ut_termination... $ECHO_C" >&6; }
38925 if test "${ac_cv_member_struct_utmpx_ut_exit_ut_termination+set}" = set; then
38926 echo $ECHO_N "(cached) $ECHO_C" >&6
38927 else
38928 cat >conftest.$ac_ext <<_ACEOF
38929 /* confdefs.h. */
38930 _ACEOF
38931 cat confdefs.h >>conftest.$ac_ext
38932 cat >>conftest.$ac_ext <<_ACEOF
38933 /* end confdefs.h. */
38934 $utmp_includes
38937 main ()
38939 static struct utmpx ac_aggr;
38940 if (ac_aggr.ut_exit.ut_termination)
38941 return 0;
38943 return 0;
38945 _ACEOF
38946 rm -f conftest.$ac_objext
38947 if { (ac_try="$ac_compile"
38948 case "(($ac_try" in
38949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38950 *) ac_try_echo=$ac_try;;
38951 esac
38952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38953 (eval "$ac_compile") 2>conftest.er1
38954 ac_status=$?
38955 grep -v '^ *+' conftest.er1 >conftest.err
38956 rm -f conftest.er1
38957 cat conftest.err >&5
38958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38959 (exit $ac_status); } &&
38960 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
38961 { (case "(($ac_try" in
38962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38963 *) ac_try_echo=$ac_try;;
38964 esac
38965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38966 (eval "$ac_try") 2>&5
38967 ac_status=$?
38968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38969 (exit $ac_status); }; } &&
38970 { ac_try='test -s conftest.$ac_objext'
38971 { (case "(($ac_try" in
38972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38973 *) ac_try_echo=$ac_try;;
38974 esac
38975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38976 (eval "$ac_try") 2>&5
38977 ac_status=$?
38978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38979 (exit $ac_status); }; }; then
38980 ac_cv_member_struct_utmpx_ut_exit_ut_termination=yes
38981 else
38982 echo "$as_me: failed program was:" >&5
38983 sed 's/^/| /' conftest.$ac_ext >&5
38985 cat >conftest.$ac_ext <<_ACEOF
38986 /* confdefs.h. */
38987 _ACEOF
38988 cat confdefs.h >>conftest.$ac_ext
38989 cat >>conftest.$ac_ext <<_ACEOF
38990 /* end confdefs.h. */
38991 $utmp_includes
38994 main ()
38996 static struct utmpx ac_aggr;
38997 if (sizeof ac_aggr.ut_exit.ut_termination)
38998 return 0;
39000 return 0;
39002 _ACEOF
39003 rm -f conftest.$ac_objext
39004 if { (ac_try="$ac_compile"
39005 case "(($ac_try" in
39006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39007 *) ac_try_echo=$ac_try;;
39008 esac
39009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39010 (eval "$ac_compile") 2>conftest.er1
39011 ac_status=$?
39012 grep -v '^ *+' conftest.er1 >conftest.err
39013 rm -f conftest.er1
39014 cat conftest.err >&5
39015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39016 (exit $ac_status); } &&
39017 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
39018 { (case "(($ac_try" in
39019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39020 *) ac_try_echo=$ac_try;;
39021 esac
39022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39023 (eval "$ac_try") 2>&5
39024 ac_status=$?
39025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39026 (exit $ac_status); }; } &&
39027 { ac_try='test -s conftest.$ac_objext'
39028 { (case "(($ac_try" in
39029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39030 *) ac_try_echo=$ac_try;;
39031 esac
39032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39033 (eval "$ac_try") 2>&5
39034 ac_status=$?
39035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39036 (exit $ac_status); }; }; then
39037 ac_cv_member_struct_utmpx_ut_exit_ut_termination=yes
39038 else
39039 echo "$as_me: failed program was:" >&5
39040 sed 's/^/| /' conftest.$ac_ext >&5
39042 ac_cv_member_struct_utmpx_ut_exit_ut_termination=no
39045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39050 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_exit_ut_termination" >&5
39051 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_exit_ut_termination" >&6; }
39052 if test $ac_cv_member_struct_utmpx_ut_exit_ut_termination = yes; then
39054 cat >>confdefs.h <<_ACEOF
39055 #define HAVE_STRUCT_UTMPX_UT_EXIT_UT_TERMINATION 1
39056 _ACEOF
39061 { echo "$as_me:$LINENO: checking for struct utmp.ut_exit.ut_termination" >&5
39062 echo $ECHO_N "checking for struct utmp.ut_exit.ut_termination... $ECHO_C" >&6; }
39063 if test "${ac_cv_member_struct_utmp_ut_exit_ut_termination+set}" = set; then
39064 echo $ECHO_N "(cached) $ECHO_C" >&6
39065 else
39066 cat >conftest.$ac_ext <<_ACEOF
39067 /* confdefs.h. */
39068 _ACEOF
39069 cat confdefs.h >>conftest.$ac_ext
39070 cat >>conftest.$ac_ext <<_ACEOF
39071 /* end confdefs.h. */
39072 $utmp_includes
39075 main ()
39077 static struct utmp ac_aggr;
39078 if (ac_aggr.ut_exit.ut_termination)
39079 return 0;
39081 return 0;
39083 _ACEOF
39084 rm -f conftest.$ac_objext
39085 if { (ac_try="$ac_compile"
39086 case "(($ac_try" in
39087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39088 *) ac_try_echo=$ac_try;;
39089 esac
39090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39091 (eval "$ac_compile") 2>conftest.er1
39092 ac_status=$?
39093 grep -v '^ *+' conftest.er1 >conftest.err
39094 rm -f conftest.er1
39095 cat conftest.err >&5
39096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39097 (exit $ac_status); } &&
39098 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
39099 { (case "(($ac_try" in
39100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39101 *) ac_try_echo=$ac_try;;
39102 esac
39103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39104 (eval "$ac_try") 2>&5
39105 ac_status=$?
39106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39107 (exit $ac_status); }; } &&
39108 { ac_try='test -s conftest.$ac_objext'
39109 { (case "(($ac_try" in
39110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39111 *) ac_try_echo=$ac_try;;
39112 esac
39113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39114 (eval "$ac_try") 2>&5
39115 ac_status=$?
39116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39117 (exit $ac_status); }; }; then
39118 ac_cv_member_struct_utmp_ut_exit_ut_termination=yes
39119 else
39120 echo "$as_me: failed program was:" >&5
39121 sed 's/^/| /' conftest.$ac_ext >&5
39123 cat >conftest.$ac_ext <<_ACEOF
39124 /* confdefs.h. */
39125 _ACEOF
39126 cat confdefs.h >>conftest.$ac_ext
39127 cat >>conftest.$ac_ext <<_ACEOF
39128 /* end confdefs.h. */
39129 $utmp_includes
39132 main ()
39134 static struct utmp ac_aggr;
39135 if (sizeof ac_aggr.ut_exit.ut_termination)
39136 return 0;
39138 return 0;
39140 _ACEOF
39141 rm -f conftest.$ac_objext
39142 if { (ac_try="$ac_compile"
39143 case "(($ac_try" in
39144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39145 *) ac_try_echo=$ac_try;;
39146 esac
39147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39148 (eval "$ac_compile") 2>conftest.er1
39149 ac_status=$?
39150 grep -v '^ *+' conftest.er1 >conftest.err
39151 rm -f conftest.er1
39152 cat conftest.err >&5
39153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39154 (exit $ac_status); } &&
39155 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
39156 { (case "(($ac_try" in
39157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39158 *) ac_try_echo=$ac_try;;
39159 esac
39160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39161 (eval "$ac_try") 2>&5
39162 ac_status=$?
39163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39164 (exit $ac_status); }; } &&
39165 { ac_try='test -s conftest.$ac_objext'
39166 { (case "(($ac_try" in
39167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39168 *) ac_try_echo=$ac_try;;
39169 esac
39170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39171 (eval "$ac_try") 2>&5
39172 ac_status=$?
39173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39174 (exit $ac_status); }; }; then
39175 ac_cv_member_struct_utmp_ut_exit_ut_termination=yes
39176 else
39177 echo "$as_me: failed program was:" >&5
39178 sed 's/^/| /' conftest.$ac_ext >&5
39180 ac_cv_member_struct_utmp_ut_exit_ut_termination=no
39183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39188 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_exit_ut_termination" >&5
39189 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_exit_ut_termination" >&6; }
39190 if test $ac_cv_member_struct_utmp_ut_exit_ut_termination = yes; then
39192 cat >>confdefs.h <<_ACEOF
39193 #define HAVE_STRUCT_UTMP_UT_EXIT_UT_TERMINATION 1
39194 _ACEOF
39199 { echo "$as_me:$LINENO: checking for struct utmpx.ut_exit.e_termination" >&5
39200 echo $ECHO_N "checking for struct utmpx.ut_exit.e_termination... $ECHO_C" >&6; }
39201 if test "${ac_cv_member_struct_utmpx_ut_exit_e_termination+set}" = set; then
39202 echo $ECHO_N "(cached) $ECHO_C" >&6
39203 else
39204 cat >conftest.$ac_ext <<_ACEOF
39205 /* confdefs.h. */
39206 _ACEOF
39207 cat confdefs.h >>conftest.$ac_ext
39208 cat >>conftest.$ac_ext <<_ACEOF
39209 /* end confdefs.h. */
39210 $utmp_includes
39213 main ()
39215 static struct utmpx ac_aggr;
39216 if (ac_aggr.ut_exit.e_termination)
39217 return 0;
39219 return 0;
39221 _ACEOF
39222 rm -f conftest.$ac_objext
39223 if { (ac_try="$ac_compile"
39224 case "(($ac_try" in
39225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39226 *) ac_try_echo=$ac_try;;
39227 esac
39228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39229 (eval "$ac_compile") 2>conftest.er1
39230 ac_status=$?
39231 grep -v '^ *+' conftest.er1 >conftest.err
39232 rm -f conftest.er1
39233 cat conftest.err >&5
39234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39235 (exit $ac_status); } &&
39236 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
39237 { (case "(($ac_try" in
39238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39239 *) ac_try_echo=$ac_try;;
39240 esac
39241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39242 (eval "$ac_try") 2>&5
39243 ac_status=$?
39244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39245 (exit $ac_status); }; } &&
39246 { ac_try='test -s conftest.$ac_objext'
39247 { (case "(($ac_try" in
39248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39249 *) ac_try_echo=$ac_try;;
39250 esac
39251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39252 (eval "$ac_try") 2>&5
39253 ac_status=$?
39254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39255 (exit $ac_status); }; }; then
39256 ac_cv_member_struct_utmpx_ut_exit_e_termination=yes
39257 else
39258 echo "$as_me: failed program was:" >&5
39259 sed 's/^/| /' conftest.$ac_ext >&5
39261 cat >conftest.$ac_ext <<_ACEOF
39262 /* confdefs.h. */
39263 _ACEOF
39264 cat confdefs.h >>conftest.$ac_ext
39265 cat >>conftest.$ac_ext <<_ACEOF
39266 /* end confdefs.h. */
39267 $utmp_includes
39270 main ()
39272 static struct utmpx ac_aggr;
39273 if (sizeof ac_aggr.ut_exit.e_termination)
39274 return 0;
39276 return 0;
39278 _ACEOF
39279 rm -f conftest.$ac_objext
39280 if { (ac_try="$ac_compile"
39281 case "(($ac_try" in
39282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39283 *) ac_try_echo=$ac_try;;
39284 esac
39285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39286 (eval "$ac_compile") 2>conftest.er1
39287 ac_status=$?
39288 grep -v '^ *+' conftest.er1 >conftest.err
39289 rm -f conftest.er1
39290 cat conftest.err >&5
39291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39292 (exit $ac_status); } &&
39293 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
39294 { (case "(($ac_try" in
39295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39296 *) ac_try_echo=$ac_try;;
39297 esac
39298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39299 (eval "$ac_try") 2>&5
39300 ac_status=$?
39301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39302 (exit $ac_status); }; } &&
39303 { ac_try='test -s conftest.$ac_objext'
39304 { (case "(($ac_try" in
39305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39306 *) ac_try_echo=$ac_try;;
39307 esac
39308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39309 (eval "$ac_try") 2>&5
39310 ac_status=$?
39311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39312 (exit $ac_status); }; }; then
39313 ac_cv_member_struct_utmpx_ut_exit_e_termination=yes
39314 else
39315 echo "$as_me: failed program was:" >&5
39316 sed 's/^/| /' conftest.$ac_ext >&5
39318 ac_cv_member_struct_utmpx_ut_exit_e_termination=no
39321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39326 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_exit_e_termination" >&5
39327 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_exit_e_termination" >&6; }
39328 if test $ac_cv_member_struct_utmpx_ut_exit_e_termination = yes; then
39330 cat >>confdefs.h <<_ACEOF
39331 #define HAVE_STRUCT_UTMPX_UT_EXIT_E_TERMINATION 1
39332 _ACEOF
39337 { echo "$as_me:$LINENO: checking for struct utmp.ut_exit.e_termination" >&5
39338 echo $ECHO_N "checking for struct utmp.ut_exit.e_termination... $ECHO_C" >&6; }
39339 if test "${ac_cv_member_struct_utmp_ut_exit_e_termination+set}" = set; then
39340 echo $ECHO_N "(cached) $ECHO_C" >&6
39341 else
39342 cat >conftest.$ac_ext <<_ACEOF
39343 /* confdefs.h. */
39344 _ACEOF
39345 cat confdefs.h >>conftest.$ac_ext
39346 cat >>conftest.$ac_ext <<_ACEOF
39347 /* end confdefs.h. */
39348 $utmp_includes
39351 main ()
39353 static struct utmp ac_aggr;
39354 if (ac_aggr.ut_exit.e_termination)
39355 return 0;
39357 return 0;
39359 _ACEOF
39360 rm -f conftest.$ac_objext
39361 if { (ac_try="$ac_compile"
39362 case "(($ac_try" in
39363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39364 *) ac_try_echo=$ac_try;;
39365 esac
39366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39367 (eval "$ac_compile") 2>conftest.er1
39368 ac_status=$?
39369 grep -v '^ *+' conftest.er1 >conftest.err
39370 rm -f conftest.er1
39371 cat conftest.err >&5
39372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39373 (exit $ac_status); } &&
39374 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
39375 { (case "(($ac_try" in
39376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39377 *) ac_try_echo=$ac_try;;
39378 esac
39379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39380 (eval "$ac_try") 2>&5
39381 ac_status=$?
39382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39383 (exit $ac_status); }; } &&
39384 { ac_try='test -s conftest.$ac_objext'
39385 { (case "(($ac_try" in
39386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39387 *) ac_try_echo=$ac_try;;
39388 esac
39389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39390 (eval "$ac_try") 2>&5
39391 ac_status=$?
39392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39393 (exit $ac_status); }; }; then
39394 ac_cv_member_struct_utmp_ut_exit_e_termination=yes
39395 else
39396 echo "$as_me: failed program was:" >&5
39397 sed 's/^/| /' conftest.$ac_ext >&5
39399 cat >conftest.$ac_ext <<_ACEOF
39400 /* confdefs.h. */
39401 _ACEOF
39402 cat confdefs.h >>conftest.$ac_ext
39403 cat >>conftest.$ac_ext <<_ACEOF
39404 /* end confdefs.h. */
39405 $utmp_includes
39408 main ()
39410 static struct utmp ac_aggr;
39411 if (sizeof ac_aggr.ut_exit.e_termination)
39412 return 0;
39414 return 0;
39416 _ACEOF
39417 rm -f conftest.$ac_objext
39418 if { (ac_try="$ac_compile"
39419 case "(($ac_try" in
39420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39421 *) ac_try_echo=$ac_try;;
39422 esac
39423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39424 (eval "$ac_compile") 2>conftest.er1
39425 ac_status=$?
39426 grep -v '^ *+' conftest.er1 >conftest.err
39427 rm -f conftest.er1
39428 cat conftest.err >&5
39429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39430 (exit $ac_status); } &&
39431 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
39432 { (case "(($ac_try" in
39433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39434 *) ac_try_echo=$ac_try;;
39435 esac
39436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39437 (eval "$ac_try") 2>&5
39438 ac_status=$?
39439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39440 (exit $ac_status); }; } &&
39441 { ac_try='test -s conftest.$ac_objext'
39442 { (case "(($ac_try" in
39443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39444 *) ac_try_echo=$ac_try;;
39445 esac
39446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39447 (eval "$ac_try") 2>&5
39448 ac_status=$?
39449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39450 (exit $ac_status); }; }; then
39451 ac_cv_member_struct_utmp_ut_exit_e_termination=yes
39452 else
39453 echo "$as_me: failed program was:" >&5
39454 sed 's/^/| /' conftest.$ac_ext >&5
39456 ac_cv_member_struct_utmp_ut_exit_e_termination=no
39459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39464 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_exit_e_termination" >&5
39465 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_exit_e_termination" >&6; }
39466 if test $ac_cv_member_struct_utmp_ut_exit_e_termination = yes; then
39468 cat >>confdefs.h <<_ACEOF
39469 #define HAVE_STRUCT_UTMP_UT_EXIT_E_TERMINATION 1
39470 _ACEOF
39489 # Check whether --with-included-regex was given.
39490 if test "${with_included_regex+set}" = set; then
39491 withval=$with_included_regex;
39495 case $with_included_regex in #(
39496 yes|no) ac_use_included_regex=$with_included_regex
39499 # If the system regex support is good enough that it passes the
39500 # following run test, then default to *not* using the included regex.c.
39501 # If cross compiling, assume the test would fail and use the included
39502 # regex.c. The first failing regular expression is from `Spencer ere
39503 # test #75' in grep-2.3.
39504 { echo "$as_me:$LINENO: checking for working re_compile_pattern" >&5
39505 echo $ECHO_N "checking for working re_compile_pattern... $ECHO_C" >&6; }
39506 if test "${gl_cv_func_re_compile_pattern_working+set}" = set; then
39507 echo $ECHO_N "(cached) $ECHO_C" >&6
39508 else
39509 if test "$cross_compiling" = yes; then
39510 gl_cv_func_re_compile_pattern_working=no
39511 else
39512 cat >conftest.$ac_ext <<_ACEOF
39513 /* confdefs.h. */
39514 _ACEOF
39515 cat confdefs.h >>conftest.$ac_ext
39516 cat >>conftest.$ac_ext <<_ACEOF
39517 /* end confdefs.h. */
39518 $ac_includes_default
39519 #include <limits.h>
39520 #include <regex.h>
39523 main ()
39525 static struct re_pattern_buffer regex;
39526 unsigned char folded_chars[UCHAR_MAX + 1];
39527 int i;
39528 const char *s;
39529 struct re_registers regs;
39530 re_set_syntax (RE_SYNTAX_POSIX_EGREP);
39531 memset (&regex, 0, sizeof (regex));
39532 for (i = 0; i <= UCHAR_MAX; i++)
39533 folded_chars[i] = i;
39534 regex.translate = folded_chars;
39535 s = re_compile_pattern ("a[[:]:]]b\n", 11, &regex);
39536 /* This should fail with _Invalid character class name_ error. */
39537 if (!s)
39538 exit (1);
39540 /* This should succeed, but does not for e.g. glibc-2.1.3. */
39541 memset (&regex, 0, sizeof (regex));
39542 s = re_compile_pattern ("{1", 2, &regex);
39544 if (s)
39545 exit (1);
39547 /* The following example is derived from a problem report
39548 against gawk from Jorge Stolfi <stolfi@ic.unicamp.br>. */
39549 memset (&regex, 0, sizeof (regex));
39550 s = re_compile_pattern ("[an\371]*n", 7, &regex);
39551 if (s)
39552 exit (1);
39554 /* This should match, but does not for e.g. glibc-2.2.1. */
39555 if (re_match (&regex, "an", 2, 0, &regs) != 2)
39556 exit (1);
39558 memset (&regex, 0, sizeof (regex));
39559 s = re_compile_pattern ("x", 1, &regex);
39560 if (s)
39561 exit (1);
39563 /* The version of regex.c in e.g. GNU libc-2.2.93 did not
39564 work with a negative RANGE argument. */
39565 if (re_search (&regex, "wxy", 3, 2, -2, &regs) != 1)
39566 exit (1);
39568 /* The version of regex.c in older versions of gnulib
39569 ignored RE_ICASE. Detect that problem too. */
39570 memset (&regex, 0, sizeof (regex));
39571 re_set_syntax (RE_SYNTAX_EMACS | RE_ICASE);
39572 s = re_compile_pattern ("x", 1, &regex);
39573 if (s)
39574 exit (1);
39576 if (re_search (&regex, "WXY", 3, 0, 3, &regs) < 0)
39577 exit (1);
39579 /* REG_STARTEND was added to glibc on 2004-01-15.
39580 Reject older versions. */
39581 if (! REG_STARTEND)
39582 exit (1);
39584 /* Reject hosts whose regoff_t values are too narrow.
39585 These include glibc 2.3.5 on hosts with 64-bit ptrdiff_t
39586 and 32-bit int. */
39587 if (sizeof (regoff_t) < sizeof (ptrdiff_t)
39588 || sizeof (regoff_t) < sizeof (ssize_t))
39589 exit (1);
39591 exit (0);
39593 return 0;
39595 _ACEOF
39596 rm -f conftest$ac_exeext
39597 if { (ac_try="$ac_link"
39598 case "(($ac_try" in
39599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39600 *) ac_try_echo=$ac_try;;
39601 esac
39602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39603 (eval "$ac_link") 2>&5
39604 ac_status=$?
39605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39606 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39607 { (case "(($ac_try" in
39608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39609 *) ac_try_echo=$ac_try;;
39610 esac
39611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39612 (eval "$ac_try") 2>&5
39613 ac_status=$?
39614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39615 (exit $ac_status); }; }; then
39616 gl_cv_func_re_compile_pattern_working=yes
39617 else
39618 echo "$as_me: program exited with status $ac_status" >&5
39619 echo "$as_me: failed program was:" >&5
39620 sed 's/^/| /' conftest.$ac_ext >&5
39622 ( exit $ac_status )
39623 gl_cv_func_re_compile_pattern_working=no
39625 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39630 { echo "$as_me:$LINENO: result: $gl_cv_func_re_compile_pattern_working" >&5
39631 echo "${ECHO_T}$gl_cv_func_re_compile_pattern_working" >&6; }
39632 case $gl_cv_func_re_compile_pattern_working in #(
39633 yes) ac_use_included_regex=no;; #(
39634 no) ac_use_included_regex=yes;;
39635 esac
39637 *) { { echo "$as_me:$LINENO: error: Invalid value for --with-included-regex: $with_included_regex" >&5
39638 echo "$as_me: error: Invalid value for --with-included-regex: $with_included_regex" >&2;}
39639 { (exit 1); exit 1; }; }
39641 esac
39643 if test $ac_use_included_regex = yes; then
39645 cat >>confdefs.h <<\_ACEOF
39646 #define _REGEX_LARGE_OFFSETS 1
39647 _ACEOF
39650 cat >>confdefs.h <<\_ACEOF
39651 #define re_syntax_options rpl_re_syntax_options
39652 _ACEOF
39655 cat >>confdefs.h <<\_ACEOF
39656 #define re_set_syntax rpl_re_set_syntax
39657 _ACEOF
39660 cat >>confdefs.h <<\_ACEOF
39661 #define re_compile_pattern rpl_re_compile_pattern
39662 _ACEOF
39665 cat >>confdefs.h <<\_ACEOF
39666 #define re_compile_fastmap rpl_re_compile_fastmap
39667 _ACEOF
39670 cat >>confdefs.h <<\_ACEOF
39671 #define re_search rpl_re_search
39672 _ACEOF
39675 cat >>confdefs.h <<\_ACEOF
39676 #define re_search_2 rpl_re_search_2
39677 _ACEOF
39680 cat >>confdefs.h <<\_ACEOF
39681 #define re_match rpl_re_match
39682 _ACEOF
39685 cat >>confdefs.h <<\_ACEOF
39686 #define re_match_2 rpl_re_match_2
39687 _ACEOF
39690 cat >>confdefs.h <<\_ACEOF
39691 #define re_set_registers rpl_re_set_registers
39692 _ACEOF
39695 cat >>confdefs.h <<\_ACEOF
39696 #define re_comp rpl_re_comp
39697 _ACEOF
39700 cat >>confdefs.h <<\_ACEOF
39701 #define re_exec rpl_re_exec
39702 _ACEOF
39705 cat >>confdefs.h <<\_ACEOF
39706 #define regcomp rpl_regcomp
39707 _ACEOF
39710 cat >>confdefs.h <<\_ACEOF
39711 #define regexec rpl_regexec
39712 _ACEOF
39715 cat >>confdefs.h <<\_ACEOF
39716 #define regerror rpl_regerror
39717 _ACEOF
39720 cat >>confdefs.h <<\_ACEOF
39721 #define regfree rpl_regfree
39722 _ACEOF
39724 case " $LIBOBJS " in
39725 *" regex.$ac_objext "* ) ;;
39726 *) LIBOBJS="$LIBOBJS regex.$ac_objext"
39728 esac
39756 { echo "$as_me:$LINENO: checking whether isblank is declared" >&5
39757 echo $ECHO_N "checking whether isblank is declared... $ECHO_C" >&6; }
39758 if test "${ac_cv_have_decl_isblank+set}" = set; then
39759 echo $ECHO_N "(cached) $ECHO_C" >&6
39760 else
39761 cat >conftest.$ac_ext <<_ACEOF
39762 /* confdefs.h. */
39763 _ACEOF
39764 cat confdefs.h >>conftest.$ac_ext
39765 cat >>conftest.$ac_ext <<_ACEOF
39766 /* end confdefs.h. */
39767 #include <ctype.h>
39770 main ()
39772 #ifndef isblank
39773 char *p = (char *) isblank;
39774 return !p;
39775 #endif
39778 return 0;
39780 _ACEOF
39781 rm -f conftest.$ac_objext
39782 if { (ac_try="$ac_compile"
39783 case "(($ac_try" in
39784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39785 *) ac_try_echo=$ac_try;;
39786 esac
39787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39788 (eval "$ac_compile") 2>conftest.er1
39789 ac_status=$?
39790 grep -v '^ *+' conftest.er1 >conftest.err
39791 rm -f conftest.er1
39792 cat conftest.err >&5
39793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39794 (exit $ac_status); } &&
39795 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
39796 { (case "(($ac_try" in
39797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39798 *) ac_try_echo=$ac_try;;
39799 esac
39800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39801 (eval "$ac_try") 2>&5
39802 ac_status=$?
39803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39804 (exit $ac_status); }; } &&
39805 { ac_try='test -s conftest.$ac_objext'
39806 { (case "(($ac_try" in
39807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39808 *) ac_try_echo=$ac_try;;
39809 esac
39810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39811 (eval "$ac_try") 2>&5
39812 ac_status=$?
39813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39814 (exit $ac_status); }; }; then
39815 ac_cv_have_decl_isblank=yes
39816 else
39817 echo "$as_me: failed program was:" >&5
39818 sed 's/^/| /' conftest.$ac_ext >&5
39820 ac_cv_have_decl_isblank=no
39823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39825 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isblank" >&5
39826 echo "${ECHO_T}$ac_cv_have_decl_isblank" >&6; }
39827 if test $ac_cv_have_decl_isblank = yes; then
39829 cat >>confdefs.h <<_ACEOF
39830 #define HAVE_DECL_ISBLANK 1
39831 _ACEOF
39834 else
39835 cat >>confdefs.h <<_ACEOF
39836 #define HAVE_DECL_ISBLANK 0
39837 _ACEOF
39848 case " $LIBOBJS " in
39849 *" safe-read.$ac_objext "* ) ;;
39850 *) LIBOBJS="$LIBOBJS safe-read.$ac_objext"
39852 esac
39861 case " $LIBOBJS " in
39862 *" safe-write.$ac_objext "* ) ;;
39863 *) LIBOBJS="$LIBOBJS safe-write.$ac_objext"
39865 esac
39876 case " $LIBOBJS " in
39877 *" same.$ac_objext "* ) ;;
39878 *) LIBOBJS="$LIBOBJS same.$ac_objext"
39880 esac
39893 case " $LIBOBJS " in
39894 *" savedir.$ac_objext "* ) ;;
39895 *) LIBOBJS="$LIBOBJS savedir.$ac_objext"
39897 esac
39904 case " $LIBOBJS " in
39905 *" save-cwd.$ac_objext "* ) ;;
39906 *) LIBOBJS="$LIBOBJS save-cwd.$ac_objext"
39908 esac
39923 case " $LIBOBJS " in
39924 *" settime.$ac_objext "* ) ;;
39925 *) LIBOBJS="$LIBOBJS settime.$ac_objext"
39927 esac
39943 case " $LIBOBJS " in
39944 *" sha1.$ac_objext "* ) ;;
39945 *) LIBOBJS="$LIBOBJS sha1.$ac_objext"
39947 esac
39955 case " $LIBOBJS " in
39956 *" sha256.$ac_objext "* ) ;;
39957 *) LIBOBJS="$LIBOBJS sha256.$ac_objext"
39959 esac
39967 case " $LIBOBJS " in
39968 *" sha512.$ac_objext "* ) ;;
39969 *) LIBOBJS="$LIBOBJS sha512.$ac_objext"
39971 esac
39983 { echo "$as_me:$LINENO: checking for struct stat.st_atim.tv_nsec" >&5
39984 echo $ECHO_N "checking for struct stat.st_atim.tv_nsec... $ECHO_C" >&6; }
39985 if test "${ac_cv_member_struct_stat_st_atim_tv_nsec+set}" = set; then
39986 echo $ECHO_N "(cached) $ECHO_C" >&6
39987 else
39988 cat >conftest.$ac_ext <<_ACEOF
39989 /* confdefs.h. */
39990 _ACEOF
39991 cat confdefs.h >>conftest.$ac_ext
39992 cat >>conftest.$ac_ext <<_ACEOF
39993 /* end confdefs.h. */
39994 #include <sys/types.h>
39995 #include <sys/stat.h>
39998 main ()
40000 static struct stat ac_aggr;
40001 if (ac_aggr.st_atim.tv_nsec)
40002 return 0;
40004 return 0;
40006 _ACEOF
40007 rm -f conftest.$ac_objext
40008 if { (ac_try="$ac_compile"
40009 case "(($ac_try" in
40010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40011 *) ac_try_echo=$ac_try;;
40012 esac
40013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40014 (eval "$ac_compile") 2>conftest.er1
40015 ac_status=$?
40016 grep -v '^ *+' conftest.er1 >conftest.err
40017 rm -f conftest.er1
40018 cat conftest.err >&5
40019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40020 (exit $ac_status); } &&
40021 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
40022 { (case "(($ac_try" in
40023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40024 *) ac_try_echo=$ac_try;;
40025 esac
40026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40027 (eval "$ac_try") 2>&5
40028 ac_status=$?
40029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40030 (exit $ac_status); }; } &&
40031 { ac_try='test -s conftest.$ac_objext'
40032 { (case "(($ac_try" in
40033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40034 *) ac_try_echo=$ac_try;;
40035 esac
40036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40037 (eval "$ac_try") 2>&5
40038 ac_status=$?
40039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40040 (exit $ac_status); }; }; then
40041 ac_cv_member_struct_stat_st_atim_tv_nsec=yes
40042 else
40043 echo "$as_me: failed program was:" >&5
40044 sed 's/^/| /' conftest.$ac_ext >&5
40046 cat >conftest.$ac_ext <<_ACEOF
40047 /* confdefs.h. */
40048 _ACEOF
40049 cat confdefs.h >>conftest.$ac_ext
40050 cat >>conftest.$ac_ext <<_ACEOF
40051 /* end confdefs.h. */
40052 #include <sys/types.h>
40053 #include <sys/stat.h>
40056 main ()
40058 static struct stat ac_aggr;
40059 if (sizeof ac_aggr.st_atim.tv_nsec)
40060 return 0;
40062 return 0;
40064 _ACEOF
40065 rm -f conftest.$ac_objext
40066 if { (ac_try="$ac_compile"
40067 case "(($ac_try" in
40068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40069 *) ac_try_echo=$ac_try;;
40070 esac
40071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40072 (eval "$ac_compile") 2>conftest.er1
40073 ac_status=$?
40074 grep -v '^ *+' conftest.er1 >conftest.err
40075 rm -f conftest.er1
40076 cat conftest.err >&5
40077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40078 (exit $ac_status); } &&
40079 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
40080 { (case "(($ac_try" in
40081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40082 *) ac_try_echo=$ac_try;;
40083 esac
40084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40085 (eval "$ac_try") 2>&5
40086 ac_status=$?
40087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40088 (exit $ac_status); }; } &&
40089 { ac_try='test -s conftest.$ac_objext'
40090 { (case "(($ac_try" in
40091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40092 *) ac_try_echo=$ac_try;;
40093 esac
40094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40095 (eval "$ac_try") 2>&5
40096 ac_status=$?
40097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40098 (exit $ac_status); }; }; then
40099 ac_cv_member_struct_stat_st_atim_tv_nsec=yes
40100 else
40101 echo "$as_me: failed program was:" >&5
40102 sed 's/^/| /' conftest.$ac_ext >&5
40104 ac_cv_member_struct_stat_st_atim_tv_nsec=no
40107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40112 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_atim_tv_nsec" >&5
40113 echo "${ECHO_T}$ac_cv_member_struct_stat_st_atim_tv_nsec" >&6; }
40114 if test $ac_cv_member_struct_stat_st_atim_tv_nsec = yes; then
40116 cat >>confdefs.h <<_ACEOF
40117 #define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1
40118 _ACEOF
40120 { echo "$as_me:$LINENO: checking whether struct stat.st_atim is of type struct timespec" >&5
40121 echo $ECHO_N "checking whether struct stat.st_atim is of type struct timespec... $ECHO_C" >&6; }
40122 if test "${ac_cv_typeof_struct_stat_st_atim_is_struct_timespec+set}" = set; then
40123 echo $ECHO_N "(cached) $ECHO_C" >&6
40124 else
40125 cat >conftest.$ac_ext <<_ACEOF
40126 /* confdefs.h. */
40127 _ACEOF
40128 cat confdefs.h >>conftest.$ac_ext
40129 cat >>conftest.$ac_ext <<_ACEOF
40130 /* end confdefs.h. */
40132 #include <sys/types.h>
40133 #if TIME_WITH_SYS_TIME
40134 # include <sys/time.h>
40135 # include <time.h>
40136 #else
40137 # if HAVE_SYS_TIME_H
40138 # include <sys/time.h>
40139 # else
40140 # include <time.h>
40141 # endif
40142 #endif
40143 #include <sys/stat.h>
40144 struct timespec ts;
40145 struct stat st;
40148 main ()
40151 st.st_atim = ts;
40154 return 0;
40156 _ACEOF
40157 rm -f conftest.$ac_objext
40158 if { (ac_try="$ac_compile"
40159 case "(($ac_try" in
40160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40161 *) ac_try_echo=$ac_try;;
40162 esac
40163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40164 (eval "$ac_compile") 2>conftest.er1
40165 ac_status=$?
40166 grep -v '^ *+' conftest.er1 >conftest.err
40167 rm -f conftest.er1
40168 cat conftest.err >&5
40169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40170 (exit $ac_status); } &&
40171 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
40172 { (case "(($ac_try" in
40173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40174 *) ac_try_echo=$ac_try;;
40175 esac
40176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40177 (eval "$ac_try") 2>&5
40178 ac_status=$?
40179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40180 (exit $ac_status); }; } &&
40181 { ac_try='test -s conftest.$ac_objext'
40182 { (case "(($ac_try" in
40183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40184 *) ac_try_echo=$ac_try;;
40185 esac
40186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40187 (eval "$ac_try") 2>&5
40188 ac_status=$?
40189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40190 (exit $ac_status); }; }; then
40191 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=yes
40192 else
40193 echo "$as_me: failed program was:" >&5
40194 sed 's/^/| /' conftest.$ac_ext >&5
40196 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=no
40199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40201 { echo "$as_me:$LINENO: result: $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&5
40202 echo "${ECHO_T}$ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&6; }
40203 if test $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec = yes; then
40205 cat >>confdefs.h <<\_ACEOF
40206 #define TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC 1
40207 _ACEOF
40210 else
40211 { echo "$as_me:$LINENO: checking for struct stat.st_atimespec.tv_nsec" >&5
40212 echo $ECHO_N "checking for struct stat.st_atimespec.tv_nsec... $ECHO_C" >&6; }
40213 if test "${ac_cv_member_struct_stat_st_atimespec_tv_nsec+set}" = set; then
40214 echo $ECHO_N "(cached) $ECHO_C" >&6
40215 else
40216 cat >conftest.$ac_ext <<_ACEOF
40217 /* confdefs.h. */
40218 _ACEOF
40219 cat confdefs.h >>conftest.$ac_ext
40220 cat >>conftest.$ac_ext <<_ACEOF
40221 /* end confdefs.h. */
40222 #include <sys/types.h>
40223 #include <sys/stat.h>
40226 main ()
40228 static struct stat ac_aggr;
40229 if (ac_aggr.st_atimespec.tv_nsec)
40230 return 0;
40232 return 0;
40234 _ACEOF
40235 rm -f conftest.$ac_objext
40236 if { (ac_try="$ac_compile"
40237 case "(($ac_try" in
40238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40239 *) ac_try_echo=$ac_try;;
40240 esac
40241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40242 (eval "$ac_compile") 2>conftest.er1
40243 ac_status=$?
40244 grep -v '^ *+' conftest.er1 >conftest.err
40245 rm -f conftest.er1
40246 cat conftest.err >&5
40247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40248 (exit $ac_status); } &&
40249 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
40250 { (case "(($ac_try" in
40251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40252 *) ac_try_echo=$ac_try;;
40253 esac
40254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40255 (eval "$ac_try") 2>&5
40256 ac_status=$?
40257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40258 (exit $ac_status); }; } &&
40259 { ac_try='test -s conftest.$ac_objext'
40260 { (case "(($ac_try" in
40261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40262 *) ac_try_echo=$ac_try;;
40263 esac
40264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40265 (eval "$ac_try") 2>&5
40266 ac_status=$?
40267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40268 (exit $ac_status); }; }; then
40269 ac_cv_member_struct_stat_st_atimespec_tv_nsec=yes
40270 else
40271 echo "$as_me: failed program was:" >&5
40272 sed 's/^/| /' conftest.$ac_ext >&5
40274 cat >conftest.$ac_ext <<_ACEOF
40275 /* confdefs.h. */
40276 _ACEOF
40277 cat confdefs.h >>conftest.$ac_ext
40278 cat >>conftest.$ac_ext <<_ACEOF
40279 /* end confdefs.h. */
40280 #include <sys/types.h>
40281 #include <sys/stat.h>
40284 main ()
40286 static struct stat ac_aggr;
40287 if (sizeof ac_aggr.st_atimespec.tv_nsec)
40288 return 0;
40290 return 0;
40292 _ACEOF
40293 rm -f conftest.$ac_objext
40294 if { (ac_try="$ac_compile"
40295 case "(($ac_try" in
40296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40297 *) ac_try_echo=$ac_try;;
40298 esac
40299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40300 (eval "$ac_compile") 2>conftest.er1
40301 ac_status=$?
40302 grep -v '^ *+' conftest.er1 >conftest.err
40303 rm -f conftest.er1
40304 cat conftest.err >&5
40305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40306 (exit $ac_status); } &&
40307 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
40308 { (case "(($ac_try" in
40309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40310 *) ac_try_echo=$ac_try;;
40311 esac
40312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40313 (eval "$ac_try") 2>&5
40314 ac_status=$?
40315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40316 (exit $ac_status); }; } &&
40317 { ac_try='test -s conftest.$ac_objext'
40318 { (case "(($ac_try" in
40319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40320 *) ac_try_echo=$ac_try;;
40321 esac
40322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40323 (eval "$ac_try") 2>&5
40324 ac_status=$?
40325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40326 (exit $ac_status); }; }; then
40327 ac_cv_member_struct_stat_st_atimespec_tv_nsec=yes
40328 else
40329 echo "$as_me: failed program was:" >&5
40330 sed 's/^/| /' conftest.$ac_ext >&5
40332 ac_cv_member_struct_stat_st_atimespec_tv_nsec=no
40335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40340 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_atimespec_tv_nsec" >&5
40341 echo "${ECHO_T}$ac_cv_member_struct_stat_st_atimespec_tv_nsec" >&6; }
40342 if test $ac_cv_member_struct_stat_st_atimespec_tv_nsec = yes; then
40344 cat >>confdefs.h <<_ACEOF
40345 #define HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC 1
40346 _ACEOF
40349 else
40350 { echo "$as_me:$LINENO: checking for struct stat.st_atimensec" >&5
40351 echo $ECHO_N "checking for struct stat.st_atimensec... $ECHO_C" >&6; }
40352 if test "${ac_cv_member_struct_stat_st_atimensec+set}" = set; then
40353 echo $ECHO_N "(cached) $ECHO_C" >&6
40354 else
40355 cat >conftest.$ac_ext <<_ACEOF
40356 /* confdefs.h. */
40357 _ACEOF
40358 cat confdefs.h >>conftest.$ac_ext
40359 cat >>conftest.$ac_ext <<_ACEOF
40360 /* end confdefs.h. */
40361 #include <sys/types.h>
40362 #include <sys/stat.h>
40365 main ()
40367 static struct stat ac_aggr;
40368 if (ac_aggr.st_atimensec)
40369 return 0;
40371 return 0;
40373 _ACEOF
40374 rm -f conftest.$ac_objext
40375 if { (ac_try="$ac_compile"
40376 case "(($ac_try" in
40377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40378 *) ac_try_echo=$ac_try;;
40379 esac
40380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40381 (eval "$ac_compile") 2>conftest.er1
40382 ac_status=$?
40383 grep -v '^ *+' conftest.er1 >conftest.err
40384 rm -f conftest.er1
40385 cat conftest.err >&5
40386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40387 (exit $ac_status); } &&
40388 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
40389 { (case "(($ac_try" in
40390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40391 *) ac_try_echo=$ac_try;;
40392 esac
40393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40394 (eval "$ac_try") 2>&5
40395 ac_status=$?
40396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40397 (exit $ac_status); }; } &&
40398 { ac_try='test -s conftest.$ac_objext'
40399 { (case "(($ac_try" in
40400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40401 *) ac_try_echo=$ac_try;;
40402 esac
40403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40404 (eval "$ac_try") 2>&5
40405 ac_status=$?
40406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40407 (exit $ac_status); }; }; then
40408 ac_cv_member_struct_stat_st_atimensec=yes
40409 else
40410 echo "$as_me: failed program was:" >&5
40411 sed 's/^/| /' conftest.$ac_ext >&5
40413 cat >conftest.$ac_ext <<_ACEOF
40414 /* confdefs.h. */
40415 _ACEOF
40416 cat confdefs.h >>conftest.$ac_ext
40417 cat >>conftest.$ac_ext <<_ACEOF
40418 /* end confdefs.h. */
40419 #include <sys/types.h>
40420 #include <sys/stat.h>
40423 main ()
40425 static struct stat ac_aggr;
40426 if (sizeof ac_aggr.st_atimensec)
40427 return 0;
40429 return 0;
40431 _ACEOF
40432 rm -f conftest.$ac_objext
40433 if { (ac_try="$ac_compile"
40434 case "(($ac_try" in
40435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40436 *) ac_try_echo=$ac_try;;
40437 esac
40438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40439 (eval "$ac_compile") 2>conftest.er1
40440 ac_status=$?
40441 grep -v '^ *+' conftest.er1 >conftest.err
40442 rm -f conftest.er1
40443 cat conftest.err >&5
40444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40445 (exit $ac_status); } &&
40446 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
40447 { (case "(($ac_try" in
40448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40449 *) ac_try_echo=$ac_try;;
40450 esac
40451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40452 (eval "$ac_try") 2>&5
40453 ac_status=$?
40454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40455 (exit $ac_status); }; } &&
40456 { ac_try='test -s conftest.$ac_objext'
40457 { (case "(($ac_try" in
40458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40459 *) ac_try_echo=$ac_try;;
40460 esac
40461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40462 (eval "$ac_try") 2>&5
40463 ac_status=$?
40464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40465 (exit $ac_status); }; }; then
40466 ac_cv_member_struct_stat_st_atimensec=yes
40467 else
40468 echo "$as_me: failed program was:" >&5
40469 sed 's/^/| /' conftest.$ac_ext >&5
40471 ac_cv_member_struct_stat_st_atimensec=no
40474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40479 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_atimensec" >&5
40480 echo "${ECHO_T}$ac_cv_member_struct_stat_st_atimensec" >&6; }
40481 if test $ac_cv_member_struct_stat_st_atimensec = yes; then
40483 cat >>confdefs.h <<_ACEOF
40484 #define HAVE_STRUCT_STAT_ST_ATIMENSEC 1
40485 _ACEOF
40488 else
40489 { echo "$as_me:$LINENO: checking for struct stat.st_atim.st__tim.tv_nsec" >&5
40490 echo $ECHO_N "checking for struct stat.st_atim.st__tim.tv_nsec... $ECHO_C" >&6; }
40491 if test "${ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec+set}" = set; then
40492 echo $ECHO_N "(cached) $ECHO_C" >&6
40493 else
40494 cat >conftest.$ac_ext <<_ACEOF
40495 /* confdefs.h. */
40496 _ACEOF
40497 cat confdefs.h >>conftest.$ac_ext
40498 cat >>conftest.$ac_ext <<_ACEOF
40499 /* end confdefs.h. */
40500 #include <sys/types.h>
40501 #include <sys/stat.h>
40504 main ()
40506 static struct stat ac_aggr;
40507 if (ac_aggr.st_atim.st__tim.tv_nsec)
40508 return 0;
40510 return 0;
40512 _ACEOF
40513 rm -f conftest.$ac_objext
40514 if { (ac_try="$ac_compile"
40515 case "(($ac_try" in
40516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40517 *) ac_try_echo=$ac_try;;
40518 esac
40519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40520 (eval "$ac_compile") 2>conftest.er1
40521 ac_status=$?
40522 grep -v '^ *+' conftest.er1 >conftest.err
40523 rm -f conftest.er1
40524 cat conftest.err >&5
40525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40526 (exit $ac_status); } &&
40527 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
40528 { (case "(($ac_try" in
40529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40530 *) ac_try_echo=$ac_try;;
40531 esac
40532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40533 (eval "$ac_try") 2>&5
40534 ac_status=$?
40535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40536 (exit $ac_status); }; } &&
40537 { ac_try='test -s conftest.$ac_objext'
40538 { (case "(($ac_try" in
40539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40540 *) ac_try_echo=$ac_try;;
40541 esac
40542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40543 (eval "$ac_try") 2>&5
40544 ac_status=$?
40545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40546 (exit $ac_status); }; }; then
40547 ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec=yes
40548 else
40549 echo "$as_me: failed program was:" >&5
40550 sed 's/^/| /' conftest.$ac_ext >&5
40552 cat >conftest.$ac_ext <<_ACEOF
40553 /* confdefs.h. */
40554 _ACEOF
40555 cat confdefs.h >>conftest.$ac_ext
40556 cat >>conftest.$ac_ext <<_ACEOF
40557 /* end confdefs.h. */
40558 #include <sys/types.h>
40559 #include <sys/stat.h>
40562 main ()
40564 static struct stat ac_aggr;
40565 if (sizeof ac_aggr.st_atim.st__tim.tv_nsec)
40566 return 0;
40568 return 0;
40570 _ACEOF
40571 rm -f conftest.$ac_objext
40572 if { (ac_try="$ac_compile"
40573 case "(($ac_try" in
40574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40575 *) ac_try_echo=$ac_try;;
40576 esac
40577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40578 (eval "$ac_compile") 2>conftest.er1
40579 ac_status=$?
40580 grep -v '^ *+' conftest.er1 >conftest.err
40581 rm -f conftest.er1
40582 cat conftest.err >&5
40583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40584 (exit $ac_status); } &&
40585 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
40586 { (case "(($ac_try" in
40587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40588 *) ac_try_echo=$ac_try;;
40589 esac
40590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40591 (eval "$ac_try") 2>&5
40592 ac_status=$?
40593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40594 (exit $ac_status); }; } &&
40595 { ac_try='test -s conftest.$ac_objext'
40596 { (case "(($ac_try" in
40597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40598 *) ac_try_echo=$ac_try;;
40599 esac
40600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40601 (eval "$ac_try") 2>&5
40602 ac_status=$?
40603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40604 (exit $ac_status); }; }; then
40605 ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec=yes
40606 else
40607 echo "$as_me: failed program was:" >&5
40608 sed 's/^/| /' conftest.$ac_ext >&5
40610 ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec=no
40613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40618 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" >&5
40619 echo "${ECHO_T}$ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" >&6; }
40620 if test $ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec = yes; then
40622 cat >>confdefs.h <<_ACEOF
40623 #define HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC 1
40624 _ACEOF
40627 else
40628 { echo "$as_me:$LINENO: checking for struct stat.st_spare1" >&5
40629 echo $ECHO_N "checking for struct stat.st_spare1... $ECHO_C" >&6; }
40630 if test "${ac_cv_member_struct_stat_st_spare1+set}" = set; then
40631 echo $ECHO_N "(cached) $ECHO_C" >&6
40632 else
40633 cat >conftest.$ac_ext <<_ACEOF
40634 /* confdefs.h. */
40635 _ACEOF
40636 cat confdefs.h >>conftest.$ac_ext
40637 cat >>conftest.$ac_ext <<_ACEOF
40638 /* end confdefs.h. */
40639 #include <sys/types.h>
40640 #include <sys/stat.h>
40643 main ()
40645 static struct stat ac_aggr;
40646 if (ac_aggr.st_spare1)
40647 return 0;
40649 return 0;
40651 _ACEOF
40652 rm -f conftest.$ac_objext
40653 if { (ac_try="$ac_compile"
40654 case "(($ac_try" in
40655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40656 *) ac_try_echo=$ac_try;;
40657 esac
40658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40659 (eval "$ac_compile") 2>conftest.er1
40660 ac_status=$?
40661 grep -v '^ *+' conftest.er1 >conftest.err
40662 rm -f conftest.er1
40663 cat conftest.err >&5
40664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40665 (exit $ac_status); } &&
40666 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
40667 { (case "(($ac_try" in
40668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40669 *) ac_try_echo=$ac_try;;
40670 esac
40671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40672 (eval "$ac_try") 2>&5
40673 ac_status=$?
40674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40675 (exit $ac_status); }; } &&
40676 { ac_try='test -s conftest.$ac_objext'
40677 { (case "(($ac_try" in
40678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40679 *) ac_try_echo=$ac_try;;
40680 esac
40681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40682 (eval "$ac_try") 2>&5
40683 ac_status=$?
40684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40685 (exit $ac_status); }; }; then
40686 ac_cv_member_struct_stat_st_spare1=yes
40687 else
40688 echo "$as_me: failed program was:" >&5
40689 sed 's/^/| /' conftest.$ac_ext >&5
40691 cat >conftest.$ac_ext <<_ACEOF
40692 /* confdefs.h. */
40693 _ACEOF
40694 cat confdefs.h >>conftest.$ac_ext
40695 cat >>conftest.$ac_ext <<_ACEOF
40696 /* end confdefs.h. */
40697 #include <sys/types.h>
40698 #include <sys/stat.h>
40701 main ()
40703 static struct stat ac_aggr;
40704 if (sizeof ac_aggr.st_spare1)
40705 return 0;
40707 return 0;
40709 _ACEOF
40710 rm -f conftest.$ac_objext
40711 if { (ac_try="$ac_compile"
40712 case "(($ac_try" in
40713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40714 *) ac_try_echo=$ac_try;;
40715 esac
40716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40717 (eval "$ac_compile") 2>conftest.er1
40718 ac_status=$?
40719 grep -v '^ *+' conftest.er1 >conftest.err
40720 rm -f conftest.er1
40721 cat conftest.err >&5
40722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40723 (exit $ac_status); } &&
40724 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
40725 { (case "(($ac_try" in
40726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40727 *) ac_try_echo=$ac_try;;
40728 esac
40729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40730 (eval "$ac_try") 2>&5
40731 ac_status=$?
40732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40733 (exit $ac_status); }; } &&
40734 { ac_try='test -s conftest.$ac_objext'
40735 { (case "(($ac_try" in
40736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40737 *) ac_try_echo=$ac_try;;
40738 esac
40739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40740 (eval "$ac_try") 2>&5
40741 ac_status=$?
40742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40743 (exit $ac_status); }; }; then
40744 ac_cv_member_struct_stat_st_spare1=yes
40745 else
40746 echo "$as_me: failed program was:" >&5
40747 sed 's/^/| /' conftest.$ac_ext >&5
40749 ac_cv_member_struct_stat_st_spare1=no
40752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40757 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_spare1" >&5
40758 echo "${ECHO_T}$ac_cv_member_struct_stat_st_spare1" >&6; }
40759 if test $ac_cv_member_struct_stat_st_spare1 = yes; then
40761 cat >>confdefs.h <<_ACEOF
40762 #define HAVE_STRUCT_STAT_ST_SPARE1 1
40763 _ACEOF
40778 { echo "$as_me:$LINENO: checking for va_copy" >&5
40779 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
40780 if test "${gl_cv_func_va_copy+set}" = set; then
40781 echo $ECHO_N "(cached) $ECHO_C" >&6
40782 else
40784 cat >conftest.$ac_ext <<_ACEOF
40785 /* confdefs.h. */
40786 _ACEOF
40787 cat confdefs.h >>conftest.$ac_ext
40788 cat >>conftest.$ac_ext <<_ACEOF
40789 /* end confdefs.h. */
40790 #include <stdarg.h>
40792 main ()
40795 #ifndef va_copy
40796 void (*func) (va_list, va_list) = va_copy;
40797 #endif
40800 return 0;
40802 _ACEOF
40803 rm -f conftest.$ac_objext
40804 if { (ac_try="$ac_compile"
40805 case "(($ac_try" in
40806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40807 *) ac_try_echo=$ac_try;;
40808 esac
40809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40810 (eval "$ac_compile") 2>conftest.er1
40811 ac_status=$?
40812 grep -v '^ *+' conftest.er1 >conftest.err
40813 rm -f conftest.er1
40814 cat conftest.err >&5
40815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40816 (exit $ac_status); } &&
40817 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
40818 { (case "(($ac_try" in
40819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40820 *) ac_try_echo=$ac_try;;
40821 esac
40822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40823 (eval "$ac_try") 2>&5
40824 ac_status=$?
40825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40826 (exit $ac_status); }; } &&
40827 { ac_try='test -s conftest.$ac_objext'
40828 { (case "(($ac_try" in
40829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40830 *) ac_try_echo=$ac_try;;
40831 esac
40832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40833 (eval "$ac_try") 2>&5
40834 ac_status=$?
40835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40836 (exit $ac_status); }; }; then
40837 gl_cv_func_va_copy=yes
40838 else
40839 echo "$as_me: failed program was:" >&5
40840 sed 's/^/| /' conftest.$ac_ext >&5
40842 gl_cv_func_va_copy=no
40845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40848 { echo "$as_me:$LINENO: result: $gl_cv_func_va_copy" >&5
40849 echo "${ECHO_T}$gl_cv_func_va_copy" >&6; }
40850 if test $gl_cv_func_va_copy = no; then
40851 # Provide a substitute, either __va_copy or as a simple assignment.
40852 if test "${gl_cv_func___va_copy+set}" = set; then
40853 echo $ECHO_N "(cached) $ECHO_C" >&6
40854 else
40856 cat >conftest.$ac_ext <<_ACEOF
40857 /* confdefs.h. */
40858 _ACEOF
40859 cat confdefs.h >>conftest.$ac_ext
40860 cat >>conftest.$ac_ext <<_ACEOF
40861 /* end confdefs.h. */
40862 #include <stdarg.h>
40864 main ()
40867 #ifndef __va_copy
40868 error, bail out
40869 #endif
40872 return 0;
40874 _ACEOF
40875 rm -f conftest.$ac_objext
40876 if { (ac_try="$ac_compile"
40877 case "(($ac_try" in
40878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40879 *) ac_try_echo=$ac_try;;
40880 esac
40881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40882 (eval "$ac_compile") 2>conftest.er1
40883 ac_status=$?
40884 grep -v '^ *+' conftest.er1 >conftest.err
40885 rm -f conftest.er1
40886 cat conftest.err >&5
40887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40888 (exit $ac_status); } &&
40889 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
40890 { (case "(($ac_try" in
40891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40892 *) ac_try_echo=$ac_try;;
40893 esac
40894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40895 (eval "$ac_try") 2>&5
40896 ac_status=$?
40897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40898 (exit $ac_status); }; } &&
40899 { ac_try='test -s conftest.$ac_objext'
40900 { (case "(($ac_try" in
40901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40902 *) ac_try_echo=$ac_try;;
40903 esac
40904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40905 (eval "$ac_try") 2>&5
40906 ac_status=$?
40907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40908 (exit $ac_status); }; }; then
40909 gl_cv_func___va_copy=yes
40910 else
40911 echo "$as_me: failed program was:" >&5
40912 sed 's/^/| /' conftest.$ac_ext >&5
40914 gl_cv_func___va_copy=no
40917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40920 if test $gl_cv_func___va_copy = yes; then
40922 cat >>confdefs.h <<\_ACEOF
40923 #define va_copy __va_copy
40924 _ACEOF
40926 else
40930 cat >>confdefs.h <<\_ACEOF
40931 #define va_copy gl_va_copy
40932 _ACEOF
40942 if test $ac_cv_type_long_long_int = yes; then
40943 HAVE_LONG_LONG_INT=1
40944 else
40945 HAVE_LONG_LONG_INT=0
40955 if test $ac_cv_header_wchar_h = yes; then
40956 HAVE_WCHAR_H=1
40957 else
40958 HAVE_WCHAR_H=0
40962 if test $ac_cv_header_inttypes_h = yes; then
40963 HAVE_INTTYPES_H=1
40964 else
40965 HAVE_INTTYPES_H=0
40969 if test $ac_cv_header_sys_types_h = yes; then
40970 HAVE_SYS_TYPES_H=1
40971 else
40972 HAVE_SYS_TYPES_H=0
40976 if test $ac_cv_header_stdint_h = yes; then
40977 { echo "$as_me:$LINENO: checking absolute name of <stdint.h>" >&5
40978 echo $ECHO_N "checking absolute name of <stdint.h>... $ECHO_C" >&6; }
40979 if test "${gl_cv_absolute_stdint_h+set}" = set; then
40980 echo $ECHO_N "(cached) $ECHO_C" >&6
40981 else
40987 if test $ac_cv_header_stdint_h = yes; then
40988 cat >conftest.$ac_ext <<_ACEOF
40989 /* confdefs.h. */
40990 _ACEOF
40991 cat confdefs.h >>conftest.$ac_ext
40992 cat >>conftest.$ac_ext <<_ACEOF
40993 /* end confdefs.h. */
40994 #include <stdint.h>
40995 _ACEOF
40996 gl_cv_absolute_stdint_h=`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40997 sed -n '\#/stdint.h#{s#.*"\(.*/stdint.h\)".*#\1#;s#^/[^/]#//&#;p;q;}'`
41001 { echo "$as_me:$LINENO: result: $gl_cv_absolute_stdint_h" >&5
41002 echo "${ECHO_T}$gl_cv_absolute_stdint_h" >&6; }
41003 cat >>confdefs.h <<_ACEOF
41004 #define ABSOLUTE_STDINT_H "$gl_cv_absolute_stdint_h"
41005 _ACEOF
41008 ABSOLUTE_STDINT_H=\"$gl_cv_absolute_stdint_h\"
41009 HAVE_STDINT_H=1
41010 else
41011 ABSOLUTE_STDINT_H=\"no/such/file/stdint.h\"
41012 HAVE_STDINT_H=0
41017 if test $ac_cv_header_stdint_h = yes; then
41018 { echo "$as_me:$LINENO: checking whether stdint.h conforms to C99" >&5
41019 echo $ECHO_N "checking whether stdint.h conforms to C99... $ECHO_C" >&6; }
41020 if test "${gl_cv_header_working_stdint_h+set}" = set; then
41021 echo $ECHO_N "(cached) $ECHO_C" >&6
41022 else
41023 gl_cv_header_working_stdint_h=no
41024 cat >conftest.$ac_ext <<_ACEOF
41026 /* confdefs.h. */
41027 _ACEOF
41028 cat confdefs.h >>conftest.$ac_ext
41029 cat >>conftest.$ac_ext <<_ACEOF
41030 /* end confdefs.h. */
41032 #include <stddef.h>
41033 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
41034 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
41035 #include ABSOLUTE_STDINT_H
41036 #ifdef INT8_MAX
41037 int8_t a1 = INT8_MAX;
41038 int8_t a1min = INT8_MIN;
41039 #endif
41040 #ifdef INT16_MAX
41041 int16_t a2 = INT16_MAX;
41042 int16_t a2min = INT16_MIN;
41043 #endif
41044 #ifdef INT32_MAX
41045 int32_t a3 = INT32_MAX;
41046 int32_t a3min = INT32_MIN;
41047 #endif
41048 #ifdef INT64_MAX
41049 int64_t a4 = INT64_MAX;
41050 int64_t a4min = INT64_MIN;
41051 #endif
41052 #ifdef UINT8_MAX
41053 uint8_t b1 = UINT8_MAX;
41054 #else
41055 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
41056 #endif
41057 #ifdef UINT16_MAX
41058 uint16_t b2 = UINT16_MAX;
41059 #endif
41060 #ifdef UINT32_MAX
41061 uint32_t b3 = UINT32_MAX;
41062 #endif
41063 #ifdef UINT64_MAX
41064 uint64_t b4 = UINT64_MAX;
41065 #endif
41066 int_least8_t c1 = INT8_C (0x7f);
41067 int_least8_t c1max = INT_LEAST8_MAX;
41068 int_least8_t c1min = INT_LEAST8_MIN;
41069 int_least16_t c2 = INT16_C (0x7fff);
41070 int_least16_t c2max = INT_LEAST16_MAX;
41071 int_least16_t c2min = INT_LEAST16_MIN;
41072 int_least32_t c3 = INT32_C (0x7fffffff);
41073 int_least32_t c3max = INT_LEAST32_MAX;
41074 int_least32_t c3min = INT_LEAST32_MIN;
41075 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
41076 int_least64_t c4max = INT_LEAST64_MAX;
41077 int_least64_t c4min = INT_LEAST64_MIN;
41078 uint_least8_t d1 = UINT8_C (0xff);
41079 uint_least8_t d1max = UINT_LEAST8_MAX;
41080 uint_least16_t d2 = UINT16_C (0xffff);
41081 uint_least16_t d2max = UINT_LEAST16_MAX;
41082 uint_least32_t d3 = UINT32_C (0xffffffff);
41083 uint_least32_t d3max = UINT_LEAST32_MAX;
41084 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
41085 uint_least64_t d4max = UINT_LEAST64_MAX;
41086 int_fast8_t e1 = INT_FAST8_MAX;
41087 int_fast8_t e1min = INT_FAST8_MIN;
41088 int_fast16_t e2 = INT_FAST16_MAX;
41089 int_fast16_t e2min = INT_FAST16_MIN;
41090 int_fast32_t e3 = INT_FAST32_MAX;
41091 int_fast32_t e3min = INT_FAST32_MIN;
41092 int_fast64_t e4 = INT_FAST64_MAX;
41093 int_fast64_t e4min = INT_FAST64_MIN;
41094 uint_fast8_t f1 = UINT_FAST8_MAX;
41095 uint_fast16_t f2 = UINT_FAST16_MAX;
41096 uint_fast32_t f3 = UINT_FAST32_MAX;
41097 uint_fast64_t f4 = UINT_FAST64_MAX;
41098 #ifdef INTPTR_MAX
41099 intptr_t g = INTPTR_MAX;
41100 intptr_t gmin = INTPTR_MIN;
41101 #endif
41102 #ifdef UINTPTR_MAX
41103 uintptr_t h = UINTPTR_MAX;
41104 #endif
41105 intmax_t i = INTMAX_MAX;
41106 uintmax_t j = UINTMAX_MAX;
41107 struct s {
41108 int check_PTRDIFF: PTRDIFF_MIN < 0 && 0 < PTRDIFF_MAX ? 1 : -1;
41109 int check_SIG_ATOMIC: SIG_ATOMIC_MIN <= 0 && 0 < SIG_ATOMIC_MAX ? 1 : -1;
41110 int check_SIZE: 0 < SIZE_MAX ? 1 : -1;
41111 int check_WCHAR: WCHAR_MIN <= 0 && 0 < WCHAR_MAX ? 1 : -1;
41112 int check_WINT: WINT_MIN <= 0 && 0 < WINT_MAX ? 1 : -1;
41114 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
41115 int check_UINT8_C:
41116 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
41117 int check_UINT16_C:
41118 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
41120 /* Detect bugs in OpenBSD 3.9 stdint.h. */
41121 #ifdef UINT8_MAX
41122 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
41123 #endif
41124 #ifdef UINT16_MAX
41125 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
41126 #endif
41127 #ifdef UINT32_MAX
41128 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
41129 #endif
41130 #ifdef UINT64_MAX
41131 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
41132 #endif
41133 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
41134 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
41135 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
41136 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
41137 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
41138 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
41139 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
41140 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
41141 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
41142 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
41143 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
41147 main ()
41151 return 0;
41153 _ACEOF
41154 rm -f conftest.$ac_objext
41155 if { (ac_try="$ac_compile"
41156 case "(($ac_try" in
41157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41158 *) ac_try_echo=$ac_try;;
41159 esac
41160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41161 (eval "$ac_compile") 2>conftest.er1
41162 ac_status=$?
41163 grep -v '^ *+' conftest.er1 >conftest.err
41164 rm -f conftest.er1
41165 cat conftest.err >&5
41166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41167 (exit $ac_status); } &&
41168 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
41169 { (case "(($ac_try" in
41170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41171 *) ac_try_echo=$ac_try;;
41172 esac
41173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41174 (eval "$ac_try") 2>&5
41175 ac_status=$?
41176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41177 (exit $ac_status); }; } &&
41178 { ac_try='test -s conftest.$ac_objext'
41179 { (case "(($ac_try" in
41180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41181 *) ac_try_echo=$ac_try;;
41182 esac
41183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41184 (eval "$ac_try") 2>&5
41185 ac_status=$?
41186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41187 (exit $ac_status); }; }; then
41188 gl_cv_header_working_stdint_h=yes
41189 else
41190 echo "$as_me: failed program was:" >&5
41191 sed 's/^/| /' conftest.$ac_ext >&5
41196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41198 { echo "$as_me:$LINENO: result: $gl_cv_header_working_stdint_h" >&5
41199 echo "${ECHO_T}$gl_cv_header_working_stdint_h" >&6; }
41201 if test "$gl_cv_header_working_stdint_h" != yes; then
41205 for ac_header in sys/inttypes.h sys/bitypes.h
41207 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
41208 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
41209 { echo "$as_me:$LINENO: checking for $ac_header" >&5
41210 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
41211 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
41212 echo $ECHO_N "(cached) $ECHO_C" >&6
41214 ac_res=`eval echo '${'$as_ac_Header'}'`
41215 { echo "$as_me:$LINENO: result: $ac_res" >&5
41216 echo "${ECHO_T}$ac_res" >&6; }
41217 else
41218 # Is the header compilable?
41219 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
41220 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
41221 cat >conftest.$ac_ext <<_ACEOF
41222 /* confdefs.h. */
41223 _ACEOF
41224 cat confdefs.h >>conftest.$ac_ext
41225 cat >>conftest.$ac_ext <<_ACEOF
41226 /* end confdefs.h. */
41227 $ac_includes_default
41228 #include <$ac_header>
41229 _ACEOF
41230 rm -f conftest.$ac_objext
41231 if { (ac_try="$ac_compile"
41232 case "(($ac_try" in
41233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41234 *) ac_try_echo=$ac_try;;
41235 esac
41236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41237 (eval "$ac_compile") 2>conftest.er1
41238 ac_status=$?
41239 grep -v '^ *+' conftest.er1 >conftest.err
41240 rm -f conftest.er1
41241 cat conftest.err >&5
41242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41243 (exit $ac_status); } &&
41244 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
41245 { (case "(($ac_try" in
41246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41247 *) ac_try_echo=$ac_try;;
41248 esac
41249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41250 (eval "$ac_try") 2>&5
41251 ac_status=$?
41252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41253 (exit $ac_status); }; } &&
41254 { ac_try='test -s conftest.$ac_objext'
41255 { (case "(($ac_try" in
41256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41257 *) ac_try_echo=$ac_try;;
41258 esac
41259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41260 (eval "$ac_try") 2>&5
41261 ac_status=$?
41262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41263 (exit $ac_status); }; }; then
41264 ac_header_compiler=yes
41265 else
41266 echo "$as_me: failed program was:" >&5
41267 sed 's/^/| /' conftest.$ac_ext >&5
41269 ac_header_compiler=no
41272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41273 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41274 echo "${ECHO_T}$ac_header_compiler" >&6; }
41276 # Is the header present?
41277 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
41278 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
41279 cat >conftest.$ac_ext <<_ACEOF
41280 /* confdefs.h. */
41281 _ACEOF
41282 cat confdefs.h >>conftest.$ac_ext
41283 cat >>conftest.$ac_ext <<_ACEOF
41284 /* end confdefs.h. */
41285 #include <$ac_header>
41286 _ACEOF
41287 if { (ac_try="$ac_cpp conftest.$ac_ext"
41288 case "(($ac_try" in
41289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41290 *) ac_try_echo=$ac_try;;
41291 esac
41292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41293 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41294 ac_status=$?
41295 grep -v '^ *+' conftest.er1 >conftest.err
41296 rm -f conftest.er1
41297 cat conftest.err >&5
41298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41299 (exit $ac_status); } >/dev/null; then
41300 if test -s conftest.err; then
41301 ac_cpp_err=$ac_c_preproc_warn_flag
41302 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
41303 else
41304 ac_cpp_err=
41306 else
41307 ac_cpp_err=yes
41309 if test -z "$ac_cpp_err"; then
41310 ac_header_preproc=yes
41311 else
41312 echo "$as_me: failed program was:" >&5
41313 sed 's/^/| /' conftest.$ac_ext >&5
41315 ac_header_preproc=no
41318 rm -f conftest.err conftest.$ac_ext
41319 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41320 echo "${ECHO_T}$ac_header_preproc" >&6; }
41322 # So? What about this header?
41323 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41324 yes:no: )
41325 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
41326 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
41327 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
41328 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
41329 ac_header_preproc=yes
41331 no:yes:* )
41332 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
41333 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
41334 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
41335 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
41336 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
41337 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
41338 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
41339 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
41340 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
41341 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
41342 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
41343 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
41344 ( cat <<\_ASBOX
41345 ## ------------------------------------ ##
41346 ## Report this to bug-coreutils@gnu.org ##
41347 ## ------------------------------------ ##
41348 _ASBOX
41349 ) | sed "s/^/$as_me: WARNING: /" >&2
41351 esac
41352 { echo "$as_me:$LINENO: checking for $ac_header" >&5
41353 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
41354 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
41355 echo $ECHO_N "(cached) $ECHO_C" >&6
41356 else
41357 eval "$as_ac_Header=\$ac_header_preproc"
41359 ac_res=`eval echo '${'$as_ac_Header'}'`
41360 { echo "$as_me:$LINENO: result: $ac_res" >&5
41361 echo "${ECHO_T}$ac_res" >&6; }
41364 if test `eval echo '${'$as_ac_Header'}'` = yes; then
41365 cat >>confdefs.h <<_ACEOF
41366 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
41367 _ACEOF
41371 done
41373 if test $ac_cv_header_sys_inttypes_h = yes; then
41374 HAVE_SYS_INTTYPES_H=1
41375 else
41376 HAVE_SYS_INTTYPES_H=0
41379 if test $ac_cv_header_sys_bitypes_h = yes; then
41380 HAVE_SYS_BITYPES_H=1
41381 else
41382 HAVE_SYS_BITYPES_H=0
41394 for gltype in ptrdiff_t sig_atomic_t size_t wchar_t wint_t ; do
41395 { echo "$as_me:$LINENO: checking for bit size of $gltype" >&5
41396 echo $ECHO_N "checking for bit size of $gltype... $ECHO_C" >&6; }
41397 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then
41398 echo $ECHO_N "(cached) $ECHO_C" >&6
41399 else
41400 if test "$cross_compiling" = yes; then
41401 # Depending upon the size, compute the lo and hi bounds.
41402 cat >conftest.$ac_ext <<_ACEOF
41403 /* confdefs.h. */
41404 _ACEOF
41405 cat confdefs.h >>conftest.$ac_ext
41406 cat >>conftest.$ac_ext <<_ACEOF
41407 /* end confdefs.h. */
41409 #include <stddef.h>
41410 #include <signal.h>
41411 #if HAVE_WCHAR_H
41412 /* BSD/OS 4.1 has a bug: <stdio.h> and <time.h> must be included before
41413 <wchar.h>. */
41414 # include <stdio.h>
41415 # include <time.h>
41416 # include <wchar.h>
41417 #endif
41419 #include <limits.h>
41421 main ()
41423 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= 0)];
41424 test_array [0] = 0
41427 return 0;
41429 _ACEOF
41430 rm -f conftest.$ac_objext
41431 if { (ac_try="$ac_compile"
41432 case "(($ac_try" in
41433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41434 *) ac_try_echo=$ac_try;;
41435 esac
41436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41437 (eval "$ac_compile") 2>conftest.er1
41438 ac_status=$?
41439 grep -v '^ *+' conftest.er1 >conftest.err
41440 rm -f conftest.er1
41441 cat conftest.err >&5
41442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41443 (exit $ac_status); } &&
41444 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
41445 { (case "(($ac_try" in
41446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41447 *) ac_try_echo=$ac_try;;
41448 esac
41449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41450 (eval "$ac_try") 2>&5
41451 ac_status=$?
41452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41453 (exit $ac_status); }; } &&
41454 { ac_try='test -s conftest.$ac_objext'
41455 { (case "(($ac_try" in
41456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41457 *) ac_try_echo=$ac_try;;
41458 esac
41459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41460 (eval "$ac_try") 2>&5
41461 ac_status=$?
41462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41463 (exit $ac_status); }; }; then
41464 ac_lo=0 ac_mid=0
41465 while :; do
41466 cat >conftest.$ac_ext <<_ACEOF
41467 /* confdefs.h. */
41468 _ACEOF
41469 cat confdefs.h >>conftest.$ac_ext
41470 cat >>conftest.$ac_ext <<_ACEOF
41471 /* end confdefs.h. */
41473 #include <stddef.h>
41474 #include <signal.h>
41475 #if HAVE_WCHAR_H
41476 /* BSD/OS 4.1 has a bug: <stdio.h> and <time.h> must be included before
41477 <wchar.h>. */
41478 # include <stdio.h>
41479 # include <time.h>
41480 # include <wchar.h>
41481 #endif
41483 #include <limits.h>
41485 main ()
41487 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
41488 test_array [0] = 0
41491 return 0;
41493 _ACEOF
41494 rm -f conftest.$ac_objext
41495 if { (ac_try="$ac_compile"
41496 case "(($ac_try" in
41497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41498 *) ac_try_echo=$ac_try;;
41499 esac
41500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41501 (eval "$ac_compile") 2>conftest.er1
41502 ac_status=$?
41503 grep -v '^ *+' conftest.er1 >conftest.err
41504 rm -f conftest.er1
41505 cat conftest.err >&5
41506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41507 (exit $ac_status); } &&
41508 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
41509 { (case "(($ac_try" in
41510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41511 *) ac_try_echo=$ac_try;;
41512 esac
41513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41514 (eval "$ac_try") 2>&5
41515 ac_status=$?
41516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41517 (exit $ac_status); }; } &&
41518 { ac_try='test -s conftest.$ac_objext'
41519 { (case "(($ac_try" in
41520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41521 *) ac_try_echo=$ac_try;;
41522 esac
41523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41524 (eval "$ac_try") 2>&5
41525 ac_status=$?
41526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41527 (exit $ac_status); }; }; then
41528 ac_hi=$ac_mid; break
41529 else
41530 echo "$as_me: failed program was:" >&5
41531 sed 's/^/| /' conftest.$ac_ext >&5
41533 ac_lo=`expr $ac_mid + 1`
41534 if test $ac_lo -le $ac_mid; then
41535 ac_lo= ac_hi=
41536 break
41538 ac_mid=`expr 2 '*' $ac_mid + 1`
41541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41542 done
41543 else
41544 echo "$as_me: failed program was:" >&5
41545 sed 's/^/| /' conftest.$ac_ext >&5
41547 cat >conftest.$ac_ext <<_ACEOF
41548 /* confdefs.h. */
41549 _ACEOF
41550 cat confdefs.h >>conftest.$ac_ext
41551 cat >>conftest.$ac_ext <<_ACEOF
41552 /* end confdefs.h. */
41554 #include <stddef.h>
41555 #include <signal.h>
41556 #if HAVE_WCHAR_H
41557 /* BSD/OS 4.1 has a bug: <stdio.h> and <time.h> must be included before
41558 <wchar.h>. */
41559 # include <stdio.h>
41560 # include <time.h>
41561 # include <wchar.h>
41562 #endif
41564 #include <limits.h>
41566 main ()
41568 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) < 0)];
41569 test_array [0] = 0
41572 return 0;
41574 _ACEOF
41575 rm -f conftest.$ac_objext
41576 if { (ac_try="$ac_compile"
41577 case "(($ac_try" in
41578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41579 *) ac_try_echo=$ac_try;;
41580 esac
41581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41582 (eval "$ac_compile") 2>conftest.er1
41583 ac_status=$?
41584 grep -v '^ *+' conftest.er1 >conftest.err
41585 rm -f conftest.er1
41586 cat conftest.err >&5
41587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41588 (exit $ac_status); } &&
41589 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
41590 { (case "(($ac_try" in
41591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41592 *) ac_try_echo=$ac_try;;
41593 esac
41594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41595 (eval "$ac_try") 2>&5
41596 ac_status=$?
41597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41598 (exit $ac_status); }; } &&
41599 { ac_try='test -s conftest.$ac_objext'
41600 { (case "(($ac_try" in
41601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41602 *) ac_try_echo=$ac_try;;
41603 esac
41604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41605 (eval "$ac_try") 2>&5
41606 ac_status=$?
41607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41608 (exit $ac_status); }; }; then
41609 ac_hi=-1 ac_mid=-1
41610 while :; do
41611 cat >conftest.$ac_ext <<_ACEOF
41612 /* confdefs.h. */
41613 _ACEOF
41614 cat confdefs.h >>conftest.$ac_ext
41615 cat >>conftest.$ac_ext <<_ACEOF
41616 /* end confdefs.h. */
41618 #include <stddef.h>
41619 #include <signal.h>
41620 #if HAVE_WCHAR_H
41621 /* BSD/OS 4.1 has a bug: <stdio.h> and <time.h> must be included before
41622 <wchar.h>. */
41623 # include <stdio.h>
41624 # include <time.h>
41625 # include <wchar.h>
41626 #endif
41628 #include <limits.h>
41630 main ()
41632 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= $ac_mid)];
41633 test_array [0] = 0
41636 return 0;
41638 _ACEOF
41639 rm -f conftest.$ac_objext
41640 if { (ac_try="$ac_compile"
41641 case "(($ac_try" in
41642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41643 *) ac_try_echo=$ac_try;;
41644 esac
41645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41646 (eval "$ac_compile") 2>conftest.er1
41647 ac_status=$?
41648 grep -v '^ *+' conftest.er1 >conftest.err
41649 rm -f conftest.er1
41650 cat conftest.err >&5
41651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41652 (exit $ac_status); } &&
41653 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
41654 { (case "(($ac_try" in
41655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41656 *) ac_try_echo=$ac_try;;
41657 esac
41658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41659 (eval "$ac_try") 2>&5
41660 ac_status=$?
41661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41662 (exit $ac_status); }; } &&
41663 { ac_try='test -s conftest.$ac_objext'
41664 { (case "(($ac_try" in
41665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41666 *) ac_try_echo=$ac_try;;
41667 esac
41668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41669 (eval "$ac_try") 2>&5
41670 ac_status=$?
41671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41672 (exit $ac_status); }; }; then
41673 ac_lo=$ac_mid; break
41674 else
41675 echo "$as_me: failed program was:" >&5
41676 sed 's/^/| /' conftest.$ac_ext >&5
41678 ac_hi=`expr '(' $ac_mid ')' - 1`
41679 if test $ac_mid -le $ac_hi; then
41680 ac_lo= ac_hi=
41681 break
41683 ac_mid=`expr 2 '*' $ac_mid`
41686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41687 done
41688 else
41689 echo "$as_me: failed program was:" >&5
41690 sed 's/^/| /' conftest.$ac_ext >&5
41692 ac_lo= ac_hi=
41695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41699 # Binary search between lo and hi bounds.
41700 while test "x$ac_lo" != "x$ac_hi"; do
41701 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
41702 cat >conftest.$ac_ext <<_ACEOF
41703 /* confdefs.h. */
41704 _ACEOF
41705 cat confdefs.h >>conftest.$ac_ext
41706 cat >>conftest.$ac_ext <<_ACEOF
41707 /* end confdefs.h. */
41709 #include <stddef.h>
41710 #include <signal.h>
41711 #if HAVE_WCHAR_H
41712 /* BSD/OS 4.1 has a bug: <stdio.h> and <time.h> must be included before
41713 <wchar.h>. */
41714 # include <stdio.h>
41715 # include <time.h>
41716 # include <wchar.h>
41717 #endif
41719 #include <limits.h>
41721 main ()
41723 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
41724 test_array [0] = 0
41727 return 0;
41729 _ACEOF
41730 rm -f conftest.$ac_objext
41731 if { (ac_try="$ac_compile"
41732 case "(($ac_try" in
41733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41734 *) ac_try_echo=$ac_try;;
41735 esac
41736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41737 (eval "$ac_compile") 2>conftest.er1
41738 ac_status=$?
41739 grep -v '^ *+' conftest.er1 >conftest.err
41740 rm -f conftest.er1
41741 cat conftest.err >&5
41742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41743 (exit $ac_status); } &&
41744 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
41745 { (case "(($ac_try" in
41746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41747 *) ac_try_echo=$ac_try;;
41748 esac
41749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41750 (eval "$ac_try") 2>&5
41751 ac_status=$?
41752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41753 (exit $ac_status); }; } &&
41754 { ac_try='test -s conftest.$ac_objext'
41755 { (case "(($ac_try" in
41756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41757 *) ac_try_echo=$ac_try;;
41758 esac
41759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41760 (eval "$ac_try") 2>&5
41761 ac_status=$?
41762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41763 (exit $ac_status); }; }; then
41764 ac_hi=$ac_mid
41765 else
41766 echo "$as_me: failed program was:" >&5
41767 sed 's/^/| /' conftest.$ac_ext >&5
41769 ac_lo=`expr '(' $ac_mid ')' + 1`
41772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41773 done
41774 case $ac_lo in
41775 ?*) result=$ac_lo;;
41776 '') result=unknown ;;
41777 esac
41778 else
41779 cat >conftest.$ac_ext <<_ACEOF
41780 /* confdefs.h. */
41781 _ACEOF
41782 cat confdefs.h >>conftest.$ac_ext
41783 cat >>conftest.$ac_ext <<_ACEOF
41784 /* end confdefs.h. */
41786 #include <stddef.h>
41787 #include <signal.h>
41788 #if HAVE_WCHAR_H
41789 /* BSD/OS 4.1 has a bug: <stdio.h> and <time.h> must be included before
41790 <wchar.h>. */
41791 # include <stdio.h>
41792 # include <time.h>
41793 # include <wchar.h>
41794 #endif
41796 #include <limits.h>
41797 static long int longval () { return sizeof ($gltype) * CHAR_BIT; }
41798 static unsigned long int ulongval () { return sizeof ($gltype) * CHAR_BIT; }
41799 #include <stdio.h>
41800 #include <stdlib.h>
41802 main ()
41805 FILE *f = fopen ("conftest.val", "w");
41806 if (! f)
41807 return 1;
41808 if ((sizeof ($gltype) * CHAR_BIT) < 0)
41810 long int i = longval ();
41811 if (i != (sizeof ($gltype) * CHAR_BIT))
41812 return 1;
41813 fprintf (f, "%ld\n", i);
41815 else
41817 unsigned long int i = ulongval ();
41818 if (i != (sizeof ($gltype) * CHAR_BIT))
41819 return 1;
41820 fprintf (f, "%lu\n", i);
41822 return ferror (f) || fclose (f) != 0;
41825 return 0;
41827 _ACEOF
41828 rm -f conftest$ac_exeext
41829 if { (ac_try="$ac_link"
41830 case "(($ac_try" in
41831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41832 *) ac_try_echo=$ac_try;;
41833 esac
41834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41835 (eval "$ac_link") 2>&5
41836 ac_status=$?
41837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41838 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
41839 { (case "(($ac_try" in
41840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41841 *) ac_try_echo=$ac_try;;
41842 esac
41843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41844 (eval "$ac_try") 2>&5
41845 ac_status=$?
41846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41847 (exit $ac_status); }; }; then
41848 result=`cat conftest.val`
41849 else
41850 echo "$as_me: program exited with status $ac_status" >&5
41851 echo "$as_me: failed program was:" >&5
41852 sed 's/^/| /' conftest.$ac_ext >&5
41854 ( exit $ac_status )
41855 result=unknown
41857 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
41859 rm -f conftest.val
41860 eval gl_cv_bitsizeof_${gltype}=\$result
41863 ac_res=`eval echo '${'gl_cv_bitsizeof_${gltype}'}'`
41864 { echo "$as_me:$LINENO: result: $ac_res" >&5
41865 echo "${ECHO_T}$ac_res" >&6; }
41866 eval result=\$gl_cv_bitsizeof_${gltype}
41867 if test $result = unknown; then
41868 result=0
41870 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
41871 cat >>confdefs.h <<_ACEOF
41872 #define BITSIZEOF_${GLTYPE} $result
41873 _ACEOF
41875 eval BITSIZEOF_${GLTYPE}=\$result
41876 done
41884 for gltype in sig_atomic_t wchar_t wint_t ; do
41885 { echo "$as_me:$LINENO: checking whether $gltype is signed" >&5
41886 echo $ECHO_N "checking whether $gltype is signed... $ECHO_C" >&6; }
41887 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then
41888 echo $ECHO_N "(cached) $ECHO_C" >&6
41889 else
41890 cat >conftest.$ac_ext <<_ACEOF
41891 /* confdefs.h. */
41892 _ACEOF
41893 cat confdefs.h >>conftest.$ac_ext
41894 cat >>conftest.$ac_ext <<_ACEOF
41895 /* end confdefs.h. */
41897 #include <stddef.h>
41898 #include <signal.h>
41899 #if HAVE_WCHAR_H
41900 /* BSD/OS 4.1 has a bug: <stdio.h> and <time.h> must be included before
41901 <wchar.h>. */
41902 # include <stdio.h>
41903 # include <time.h>
41904 # include <wchar.h>
41905 #endif
41907 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
41909 main ()
41913 return 0;
41915 _ACEOF
41916 rm -f conftest.$ac_objext
41917 if { (ac_try="$ac_compile"
41918 case "(($ac_try" in
41919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41920 *) ac_try_echo=$ac_try;;
41921 esac
41922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41923 (eval "$ac_compile") 2>conftest.er1
41924 ac_status=$?
41925 grep -v '^ *+' conftest.er1 >conftest.err
41926 rm -f conftest.er1
41927 cat conftest.err >&5
41928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41929 (exit $ac_status); } &&
41930 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
41931 { (case "(($ac_try" in
41932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41933 *) ac_try_echo=$ac_try;;
41934 esac
41935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41936 (eval "$ac_try") 2>&5
41937 ac_status=$?
41938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41939 (exit $ac_status); }; } &&
41940 { ac_try='test -s conftest.$ac_objext'
41941 { (case "(($ac_try" in
41942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41943 *) ac_try_echo=$ac_try;;
41944 esac
41945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41946 (eval "$ac_try") 2>&5
41947 ac_status=$?
41948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41949 (exit $ac_status); }; }; then
41950 result=yes
41951 else
41952 echo "$as_me: failed program was:" >&5
41953 sed 's/^/| /' conftest.$ac_ext >&5
41955 result=no
41958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41959 eval gl_cv_type_${gltype}_signed=\$result
41962 ac_res=`eval echo '${'gl_cv_type_${gltype}_signed'}'`
41963 { echo "$as_me:$LINENO: result: $ac_res" >&5
41964 echo "${ECHO_T}$ac_res" >&6; }
41965 eval result=\$gl_cv_type_${gltype}_signed
41966 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
41967 if test "$result" = yes; then
41968 cat >>confdefs.h <<_ACEOF
41969 #define HAVE_SIGNED_${GLTYPE} 1
41970 _ACEOF
41972 eval HAVE_SIGNED_${GLTYPE}=1
41973 else
41974 eval HAVE_SIGNED_${GLTYPE}=0
41976 done
41979 gl_cv_type_ptrdiff_t_signed=yes
41980 gl_cv_type_size_t_signed=no
41988 for gltype in ptrdiff_t sig_atomic_t size_t wchar_t wint_t ; do
41989 { echo "$as_me:$LINENO: checking for $gltype integer literal suffix" >&5
41990 echo $ECHO_N "checking for $gltype integer literal suffix... $ECHO_C" >&6; }
41991 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then
41992 echo $ECHO_N "(cached) $ECHO_C" >&6
41993 else
41994 eval gl_cv_type_${gltype}_suffix=no
41995 eval result=\$gl_cv_type_${gltype}_signed
41996 if test "$result" = yes; then
41997 glsufu=
41998 else
41999 glsufu=u
42001 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
42002 case $glsuf in
42003 '') gltype1='int';;
42004 l) gltype1='long int';;
42005 ll) gltype1='long long int';;
42006 i64) gltype1='__int64';;
42007 u) gltype1='unsigned int';;
42008 ul) gltype1='unsigned long int';;
42009 ull) gltype1='unsigned long long int';;
42010 ui64)gltype1='unsigned __int64';;
42011 esac
42012 cat >conftest.$ac_ext <<_ACEOF
42013 /* confdefs.h. */
42014 _ACEOF
42015 cat confdefs.h >>conftest.$ac_ext
42016 cat >>conftest.$ac_ext <<_ACEOF
42017 /* end confdefs.h. */
42019 #include <stddef.h>
42020 #include <signal.h>
42021 #if HAVE_WCHAR_H
42022 /* BSD/OS 4.1 has a bug: <stdio.h> and <time.h> must be included before
42023 <wchar.h>. */
42024 # include <stdio.h>
42025 # include <time.h>
42026 # include <wchar.h>
42027 #endif
42029 extern $gltype foo;
42030 extern $gltype1 foo;
42032 main ()
42036 return 0;
42038 _ACEOF
42039 rm -f conftest.$ac_objext
42040 if { (ac_try="$ac_compile"
42041 case "(($ac_try" in
42042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42043 *) ac_try_echo=$ac_try;;
42044 esac
42045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42046 (eval "$ac_compile") 2>conftest.er1
42047 ac_status=$?
42048 grep -v '^ *+' conftest.er1 >conftest.err
42049 rm -f conftest.er1
42050 cat conftest.err >&5
42051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42052 (exit $ac_status); } &&
42053 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
42054 { (case "(($ac_try" in
42055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42056 *) ac_try_echo=$ac_try;;
42057 esac
42058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42059 (eval "$ac_try") 2>&5
42060 ac_status=$?
42061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42062 (exit $ac_status); }; } &&
42063 { ac_try='test -s conftest.$ac_objext'
42064 { (case "(($ac_try" in
42065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42066 *) ac_try_echo=$ac_try;;
42067 esac
42068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42069 (eval "$ac_try") 2>&5
42070 ac_status=$?
42071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42072 (exit $ac_status); }; }; then
42073 eval gl_cv_type_${gltype}_suffix=\$glsuf
42074 else
42075 echo "$as_me: failed program was:" >&5
42076 sed 's/^/| /' conftest.$ac_ext >&5
42081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42082 eval result=\$gl_cv_type_${gltype}_suffix
42083 test "$result" != no && break
42084 done
42086 ac_res=`eval echo '${'gl_cv_type_${gltype}_suffix'}'`
42087 { echo "$as_me:$LINENO: result: $ac_res" >&5
42088 echo "${ECHO_T}$ac_res" >&6; }
42089 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
42090 eval result=\$gl_cv_type_${gltype}_suffix
42091 test "$result" = no && result=
42092 eval ${GLTYPE}_SUFFIX=\$result
42093 cat >>confdefs.h <<_ACEOF
42094 #define ${GLTYPE}_SUFFIX $result
42095 _ACEOF
42097 done
42101 STDINT_H=stdint.h
42107 case " $LIBOBJS " in
42108 *" mkstemp-safer.$ac_objext "* ) ;;
42109 *) LIBOBJS="$LIBOBJS mkstemp-safer.$ac_objext"
42111 esac
42116 case " $LIBOBJS " in
42117 *" strcasecmp.$ac_objext "* ) ;;
42118 *) LIBOBJS="$LIBOBJS strcasecmp.$ac_objext"
42120 esac
42123 cat >>confdefs.h <<\_ACEOF
42124 #define strcasecmp rpl_strcasecmp
42125 _ACEOF
42134 for ac_func in strncasecmp
42136 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42137 { echo "$as_me:$LINENO: checking for $ac_func" >&5
42138 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
42139 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
42140 echo $ECHO_N "(cached) $ECHO_C" >&6
42141 else
42142 cat >conftest.$ac_ext <<_ACEOF
42143 /* confdefs.h. */
42144 _ACEOF
42145 cat confdefs.h >>conftest.$ac_ext
42146 cat >>conftest.$ac_ext <<_ACEOF
42147 /* end confdefs.h. */
42148 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42149 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42150 #define $ac_func innocuous_$ac_func
42152 /* System header to define __stub macros and hopefully few prototypes,
42153 which can conflict with char $ac_func (); below.
42154 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42155 <limits.h> exists even on freestanding compilers. */
42157 #ifdef __STDC__
42158 # include <limits.h>
42159 #else
42160 # include <assert.h>
42161 #endif
42163 #undef $ac_func
42165 /* Override any GCC internal prototype to avoid an error.
42166 Use char because int might match the return type of a GCC
42167 builtin and then its argument prototype would still apply. */
42168 #ifdef __cplusplus
42169 extern "C"
42170 #endif
42171 char $ac_func ();
42172 /* The GNU C library defines this for functions which it implements
42173 to always fail with ENOSYS. Some functions are actually named
42174 something starting with __ and the normal name is an alias. */
42175 #if defined __stub_$ac_func || defined __stub___$ac_func
42176 choke me
42177 #endif
42180 main ()
42182 return $ac_func ();
42184 return 0;
42186 _ACEOF
42187 rm -f conftest.$ac_objext conftest$ac_exeext
42188 if { (ac_try="$ac_link"
42189 case "(($ac_try" in
42190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42191 *) ac_try_echo=$ac_try;;
42192 esac
42193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42194 (eval "$ac_link") 2>conftest.er1
42195 ac_status=$?
42196 grep -v '^ *+' conftest.er1 >conftest.err
42197 rm -f conftest.er1
42198 cat conftest.err >&5
42199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42200 (exit $ac_status); } &&
42201 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
42202 { (case "(($ac_try" in
42203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42204 *) ac_try_echo=$ac_try;;
42205 esac
42206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42207 (eval "$ac_try") 2>&5
42208 ac_status=$?
42209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42210 (exit $ac_status); }; } &&
42211 { ac_try='test -s conftest$ac_exeext'
42212 { (case "(($ac_try" in
42213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42214 *) ac_try_echo=$ac_try;;
42215 esac
42216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42217 (eval "$ac_try") 2>&5
42218 ac_status=$?
42219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42220 (exit $ac_status); }; }; then
42221 eval "$as_ac_var=yes"
42222 else
42223 echo "$as_me: failed program was:" >&5
42224 sed 's/^/| /' conftest.$ac_ext >&5
42226 eval "$as_ac_var=no"
42229 rm -f core conftest.err conftest.$ac_objext \
42230 conftest$ac_exeext conftest.$ac_ext
42232 ac_res=`eval echo '${'$as_ac_var'}'`
42233 { echo "$as_me:$LINENO: result: $ac_res" >&5
42234 echo "${ECHO_T}$ac_res" >&6; }
42235 if test `eval echo '${'$as_ac_var'}'` = yes; then
42236 cat >>confdefs.h <<_ACEOF
42237 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42238 _ACEOF
42240 else
42241 case " $LIBOBJS " in
42242 *" $ac_func.$ac_objext "* ) ;;
42243 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
42245 esac
42248 done
42251 if test $ac_cv_func_strncasecmp = no; then
42258 { echo "$as_me:$LINENO: checking for inline" >&5
42259 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
42260 if test "${ac_cv_c_inline+set}" = set; then
42261 echo $ECHO_N "(cached) $ECHO_C" >&6
42262 else
42263 ac_cv_c_inline=no
42264 for ac_kw in inline __inline__ __inline; do
42265 cat >conftest.$ac_ext <<_ACEOF
42266 /* confdefs.h. */
42267 _ACEOF
42268 cat confdefs.h >>conftest.$ac_ext
42269 cat >>conftest.$ac_ext <<_ACEOF
42270 /* end confdefs.h. */
42271 #ifndef __cplusplus
42272 typedef int foo_t;
42273 static $ac_kw foo_t static_foo () {return 0; }
42274 $ac_kw foo_t foo () {return 0; }
42275 #endif
42277 _ACEOF
42278 rm -f conftest.$ac_objext
42279 if { (ac_try="$ac_compile"
42280 case "(($ac_try" in
42281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42282 *) ac_try_echo=$ac_try;;
42283 esac
42284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42285 (eval "$ac_compile") 2>conftest.er1
42286 ac_status=$?
42287 grep -v '^ *+' conftest.er1 >conftest.err
42288 rm -f conftest.er1
42289 cat conftest.err >&5
42290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42291 (exit $ac_status); } &&
42292 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
42293 { (case "(($ac_try" in
42294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42295 *) ac_try_echo=$ac_try;;
42296 esac
42297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42298 (eval "$ac_try") 2>&5
42299 ac_status=$?
42300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42301 (exit $ac_status); }; } &&
42302 { ac_try='test -s conftest.$ac_objext'
42303 { (case "(($ac_try" in
42304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42305 *) ac_try_echo=$ac_try;;
42306 esac
42307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42308 (eval "$ac_try") 2>&5
42309 ac_status=$?
42310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42311 (exit $ac_status); }; }; then
42312 ac_cv_c_inline=$ac_kw
42313 else
42314 echo "$as_me: failed program was:" >&5
42315 sed 's/^/| /' conftest.$ac_ext >&5
42320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42321 test "$ac_cv_c_inline" != no && break
42322 done
42325 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
42326 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
42329 case $ac_cv_c_inline in
42330 inline | yes) ;;
42332 case $ac_cv_c_inline in
42333 no) ac_val=;;
42334 *) ac_val=$ac_cv_c_inline;;
42335 esac
42336 cat >>confdefs.h <<_ACEOF
42337 #ifndef __cplusplus
42338 #define inline $ac_val
42339 #endif
42340 _ACEOF
42342 esac
42346 case " $LIBOBJS " in
42347 *" strintcmp.$ac_objext "* ) ;;
42348 *) LIBOBJS="$LIBOBJS strintcmp.$ac_objext"
42350 esac
42357 case " $LIBOBJS " in
42358 *" strnumcmp.$ac_objext "* ) ;;
42359 *) LIBOBJS="$LIBOBJS strnumcmp.$ac_objext"
42361 esac
42368 case " $LIBOBJS " in
42369 *" stripslash.$ac_objext "* ) ;;
42370 *) LIBOBJS="$LIBOBJS stripslash.$ac_objext"
42372 esac
42382 { echo "$as_me:$LINENO: checking whether localtime_r is compatible with its POSIX signature" >&5
42383 echo $ECHO_N "checking whether localtime_r is compatible with its POSIX signature... $ECHO_C" >&6; }
42384 if test "${gl_cv_time_r_posix+set}" = set; then
42385 echo $ECHO_N "(cached) $ECHO_C" >&6
42386 else
42387 cat >conftest.$ac_ext <<_ACEOF
42388 /* confdefs.h. */
42389 _ACEOF
42390 cat confdefs.h >>conftest.$ac_ext
42391 cat >>conftest.$ac_ext <<_ACEOF
42392 /* end confdefs.h. */
42393 #include <time.h>
42395 main ()
42397 /* We don't need to append 'restrict's to the argument types,
42398 even though the POSIX signature has the 'restrict's,
42399 since C99 says they can't affect type compatibility. */
42400 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
42402 return 0;
42404 _ACEOF
42405 rm -f conftest.$ac_objext
42406 if { (ac_try="$ac_compile"
42407 case "(($ac_try" in
42408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42409 *) ac_try_echo=$ac_try;;
42410 esac
42411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42412 (eval "$ac_compile") 2>conftest.er1
42413 ac_status=$?
42414 grep -v '^ *+' conftest.er1 >conftest.err
42415 rm -f conftest.er1
42416 cat conftest.err >&5
42417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42418 (exit $ac_status); } &&
42419 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
42420 { (case "(($ac_try" in
42421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42422 *) ac_try_echo=$ac_try;;
42423 esac
42424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42425 (eval "$ac_try") 2>&5
42426 ac_status=$?
42427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42428 (exit $ac_status); }; } &&
42429 { ac_try='test -s conftest.$ac_objext'
42430 { (case "(($ac_try" in
42431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42432 *) ac_try_echo=$ac_try;;
42433 esac
42434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42435 (eval "$ac_try") 2>&5
42436 ac_status=$?
42437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42438 (exit $ac_status); }; }; then
42439 gl_cv_time_r_posix=yes
42440 else
42441 echo "$as_me: failed program was:" >&5
42442 sed 's/^/| /' conftest.$ac_ext >&5
42444 gl_cv_time_r_posix=no
42447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42449 { echo "$as_me:$LINENO: result: $gl_cv_time_r_posix" >&5
42450 echo "${ECHO_T}$gl_cv_time_r_posix" >&6; }
42451 if test $gl_cv_time_r_posix = yes; then
42453 cat >>confdefs.h <<\_ACEOF
42454 #define HAVE_TIME_R_POSIX 1
42455 _ACEOF
42457 else
42458 case " $LIBOBJS " in
42459 *" time_r.$ac_objext "* ) ;;
42460 *) LIBOBJS="$LIBOBJS time_r.$ac_objext"
42462 esac
42469 { echo "$as_me:$LINENO: checking for socklen_t" >&5
42470 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
42471 if test "${ac_cv_type_socklen_t+set}" = set; then
42472 echo $ECHO_N "(cached) $ECHO_C" >&6
42473 else
42474 cat >conftest.$ac_ext <<_ACEOF
42475 /* confdefs.h. */
42476 _ACEOF
42477 cat confdefs.h >>conftest.$ac_ext
42478 cat >>conftest.$ac_ext <<_ACEOF
42479 /* end confdefs.h. */
42480 #include <sys/types.h>
42481 #if HAVE_SYS_SOCKET_H
42482 # include <sys/socket.h>
42483 #elif HAVE_WS2TCPIP_H
42484 # include <ws2tcpip.h>
42485 #endif
42487 typedef socklen_t ac__type_new_;
42489 main ()
42491 if ((ac__type_new_ *) 0)
42492 return 0;
42493 if (sizeof (ac__type_new_))
42494 return 0;
42496 return 0;
42498 _ACEOF
42499 rm -f conftest.$ac_objext
42500 if { (ac_try="$ac_compile"
42501 case "(($ac_try" in
42502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42503 *) ac_try_echo=$ac_try;;
42504 esac
42505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42506 (eval "$ac_compile") 2>conftest.er1
42507 ac_status=$?
42508 grep -v '^ *+' conftest.er1 >conftest.err
42509 rm -f conftest.er1
42510 cat conftest.err >&5
42511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42512 (exit $ac_status); } &&
42513 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
42514 { (case "(($ac_try" in
42515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42516 *) ac_try_echo=$ac_try;;
42517 esac
42518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42519 (eval "$ac_try") 2>&5
42520 ac_status=$?
42521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42522 (exit $ac_status); }; } &&
42523 { ac_try='test -s conftest.$ac_objext'
42524 { (case "(($ac_try" in
42525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42526 *) ac_try_echo=$ac_try;;
42527 esac
42528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42529 (eval "$ac_try") 2>&5
42530 ac_status=$?
42531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42532 (exit $ac_status); }; }; then
42533 ac_cv_type_socklen_t=yes
42534 else
42535 echo "$as_me: failed program was:" >&5
42536 sed 's/^/| /' conftest.$ac_ext >&5
42538 ac_cv_type_socklen_t=no
42541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42543 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
42544 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
42545 if test $ac_cv_type_socklen_t = yes; then
42547 else
42548 { echo "$as_me:$LINENO: checking for socklen_t equivalent" >&5
42549 echo $ECHO_N "checking for socklen_t equivalent... $ECHO_C" >&6; }
42550 if test "${gl_cv_gl_cv_socklen_t_equiv+set}" = set; then
42551 echo $ECHO_N "(cached) $ECHO_C" >&6
42552 else
42553 # Systems have either "struct sockaddr *" or
42554 # "void *" as the second argument to getpeername
42555 gl_cv_socklen_t_equiv=
42556 for arg2 in "struct sockaddr" void; do
42557 for t in int size_t "unsigned int" "long int" "unsigned long int"; do
42558 cat >conftest.$ac_ext <<_ACEOF
42559 /* confdefs.h. */
42560 _ACEOF
42561 cat confdefs.h >>conftest.$ac_ext
42562 cat >>conftest.$ac_ext <<_ACEOF
42563 /* end confdefs.h. */
42564 #include <sys/types.h>
42565 #include <sys/socket.h>
42567 int getpeername (int, $arg2 *, $t *);
42569 main ()
42571 $t len;
42572 getpeername (0, 0, &len);
42574 return 0;
42576 _ACEOF
42577 rm -f conftest.$ac_objext
42578 if { (ac_try="$ac_compile"
42579 case "(($ac_try" in
42580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42581 *) ac_try_echo=$ac_try;;
42582 esac
42583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42584 (eval "$ac_compile") 2>conftest.er1
42585 ac_status=$?
42586 grep -v '^ *+' conftest.er1 >conftest.err
42587 rm -f conftest.er1
42588 cat conftest.err >&5
42589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42590 (exit $ac_status); } &&
42591 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
42592 { (case "(($ac_try" in
42593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42594 *) ac_try_echo=$ac_try;;
42595 esac
42596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42597 (eval "$ac_try") 2>&5
42598 ac_status=$?
42599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42600 (exit $ac_status); }; } &&
42601 { ac_try='test -s conftest.$ac_objext'
42602 { (case "(($ac_try" in
42603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42604 *) ac_try_echo=$ac_try;;
42605 esac
42606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42607 (eval "$ac_try") 2>&5
42608 ac_status=$?
42609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42610 (exit $ac_status); }; }; then
42611 gl_cv_socklen_t_equiv="$t"
42612 else
42613 echo "$as_me: failed program was:" >&5
42614 sed 's/^/| /' conftest.$ac_ext >&5
42619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42620 test "$gl_cv_socklen_t_equiv" != "" && break
42621 done
42622 test "$gl_cv_socklen_t_equiv" != "" && break
42623 done
42627 if test "$gl_cv_socklen_t_equiv" = ""; then
42628 { { echo "$as_me:$LINENO: error: Cannot find a type to use in place of socklen_t" >&5
42629 echo "$as_me: error: Cannot find a type to use in place of socklen_t" >&2;}
42630 { (exit 1); exit 1; }; }
42632 { echo "$as_me:$LINENO: result: $gl_cv_socklen_t_equiv" >&5
42633 echo "${ECHO_T}$gl_cv_socklen_t_equiv" >&6; }
42635 cat >>confdefs.h <<_ACEOF
42636 #define socklen_t $gl_cv_socklen_t_equiv
42637 _ACEOF
42654 case " $LIBOBJS " in
42655 *" dup-safer.$ac_objext "* ) ;;
42656 *) LIBOBJS="$LIBOBJS dup-safer.$ac_objext"
42658 esac
42660 case " $LIBOBJS " in
42661 *" fd-safer.$ac_objext "* ) ;;
42662 *) LIBOBJS="$LIBOBJS fd-safer.$ac_objext"
42664 esac
42666 case " $LIBOBJS " in
42667 *" pipe-safer.$ac_objext "* ) ;;
42668 *) LIBOBJS="$LIBOBJS pipe-safer.$ac_objext"
42670 esac
42683 case " $LIBOBJS " in
42684 *" unlinkdir.$ac_objext "* ) ;;
42685 *) LIBOBJS="$LIBOBJS unlinkdir.$ac_objext"
42687 esac
42690 # The Hurd, the Linux kernel, the FreeBSD kernel version 2.2 and later,
42691 # and Cygwin never let anyone (even root) unlink directories.
42692 # If anyone knows of another system for which unlink can never
42693 # remove a directory, please report it to <bug-coreutils@gnu.org>.
42694 # Unfortunately this is difficult to test for, since it requires root access
42695 # and might create garbage in the file system,
42696 # so the code below simply relies on the kernel name and version number.
42697 case $host in
42698 *-*-gnu0-9* | \
42699 *-*-linux-* | *-*-linux | \
42700 *-*-freebsd2.2* | *-*-freebsd3-9* | *-*-freebsd1-90-9* | \
42701 *-cygwin)
42703 cat >>confdefs.h <<\_ACEOF
42704 #define UNLINK_CANNOT_UNLINK_DIR 1
42705 _ACEOF
42707 esac
42711 case " $LIBOBJS " in
42712 *" userspec.$ac_objext "* ) ;;
42713 *) LIBOBJS="$LIBOBJS userspec.$ac_objext"
42715 esac
42726 { echo "$as_me:$LINENO: checking determine whether the utimes function works" >&5
42727 echo $ECHO_N "checking determine whether the utimes function works... $ECHO_C" >&6; }
42728 if test "${gl_cv_func_working_utimes+set}" = set; then
42729 echo $ECHO_N "(cached) $ECHO_C" >&6
42730 else
42732 if test "$cross_compiling" = yes; then
42733 gl_cv_func_working_utimes=no
42734 else
42735 cat >conftest.$ac_ext <<_ACEOF
42736 /* confdefs.h. */
42737 _ACEOF
42738 cat confdefs.h >>conftest.$ac_ext
42739 cat >>conftest.$ac_ext <<_ACEOF
42740 /* end confdefs.h. */
42742 #include <sys/types.h>
42743 #include <sys/stat.h>
42744 #include <fcntl.h>
42745 #include <sys/time.h>
42746 #include <time.h>
42747 #include <unistd.h>
42748 #include <stdlib.h>
42749 #include <stdio.h>
42750 #include <utime.h>
42753 main ()
42755 static struct timeval timeval[2] = {{9, 10}, {999999, 999999}};
42756 struct stat sbuf;
42757 char const *file = "conftest.utimes";
42758 FILE *f;
42759 time_t now;
42760 int fd;
42762 int ok = ((f = fopen (file, "w"))
42763 && fclose (f) == 0
42764 && utimes (file, timeval) == 0
42765 && lstat (file, &sbuf) == 0
42766 && sbuf.st_atime == timeval[0].tv_sec
42767 && sbuf.st_mtime == timeval[1].tv_sec);
42768 unlink (file);
42769 if (!ok)
42770 exit (1);
42772 ok =
42773 ((f = fopen (file, "w"))
42774 && fclose (f) == 0
42775 && time (&now) != (time_t)-1
42776 && utimes (file, NULL) == 0
42777 && lstat (file, &sbuf) == 0
42778 && now - sbuf.st_atime <= 2
42779 && now - sbuf.st_mtime <= 2);
42780 unlink (file);
42781 if (!ok)
42782 exit (1);
42784 ok = (0 <= (fd = open (file, O_WRONLY|O_CREAT, 0444))
42785 && close (fd) == 0
42786 && utimes (file, NULL) == 0);
42787 unlink (file);
42789 exit (!ok);
42792 _ACEOF
42793 rm -f conftest$ac_exeext
42794 if { (ac_try="$ac_link"
42795 case "(($ac_try" in
42796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42797 *) ac_try_echo=$ac_try;;
42798 esac
42799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42800 (eval "$ac_link") 2>&5
42801 ac_status=$?
42802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42803 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
42804 { (case "(($ac_try" in
42805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42806 *) ac_try_echo=$ac_try;;
42807 esac
42808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42809 (eval "$ac_try") 2>&5
42810 ac_status=$?
42811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42812 (exit $ac_status); }; }; then
42813 gl_cv_func_working_utimes=yes
42814 else
42815 echo "$as_me: program exited with status $ac_status" >&5
42816 echo "$as_me: failed program was:" >&5
42817 sed 's/^/| /' conftest.$ac_ext >&5
42819 ( exit $ac_status )
42820 gl_cv_func_working_utimes=no
42822 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
42827 { echo "$as_me:$LINENO: result: $gl_cv_func_working_utimes" >&5
42828 echo "${ECHO_T}$gl_cv_func_working_utimes" >&6; }
42830 if test $gl_cv_func_working_utimes = yes; then
42832 cat >>confdefs.h <<\_ACEOF
42833 #define HAVE_WORKING_UTIMES 1
42834 _ACEOF
42840 case " $LIBOBJS " in
42841 *" utimecmp.$ac_objext "* ) ;;
42842 *) LIBOBJS="$LIBOBJS utimecmp.$ac_objext"
42844 esac
42863 { echo "$as_me:$LINENO: checking for struct utimbuf" >&5
42864 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; }
42865 if test "${fu_cv_sys_struct_utimbuf+set}" = set; then
42866 echo $ECHO_N "(cached) $ECHO_C" >&6
42867 else
42868 cat >conftest.$ac_ext <<_ACEOF
42869 /* confdefs.h. */
42870 _ACEOF
42871 cat confdefs.h >>conftest.$ac_ext
42872 cat >>conftest.$ac_ext <<_ACEOF
42873 /* end confdefs.h. */
42875 #ifdef TIME_WITH_SYS_TIME
42876 # include <sys/time.h>
42877 # include <time.h>
42878 #else
42879 # ifdef HAVE_SYS_TIME_H
42880 # include <sys/time.h>
42881 # else
42882 # include <time.h>
42883 # endif
42884 #endif
42885 #ifdef HAVE_UTIME_H
42886 # include <utime.h>
42887 #endif
42890 main ()
42892 static struct utimbuf x; x.actime = x.modtime;
42894 return 0;
42896 _ACEOF
42897 rm -f conftest.$ac_objext
42898 if { (ac_try="$ac_compile"
42899 case "(($ac_try" in
42900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42901 *) ac_try_echo=$ac_try;;
42902 esac
42903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42904 (eval "$ac_compile") 2>conftest.er1
42905 ac_status=$?
42906 grep -v '^ *+' conftest.er1 >conftest.err
42907 rm -f conftest.er1
42908 cat conftest.err >&5
42909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42910 (exit $ac_status); } &&
42911 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
42912 { (case "(($ac_try" in
42913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42914 *) ac_try_echo=$ac_try;;
42915 esac
42916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42917 (eval "$ac_try") 2>&5
42918 ac_status=$?
42919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42920 (exit $ac_status); }; } &&
42921 { ac_try='test -s conftest.$ac_objext'
42922 { (case "(($ac_try" in
42923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42924 *) ac_try_echo=$ac_try;;
42925 esac
42926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42927 (eval "$ac_try") 2>&5
42928 ac_status=$?
42929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42930 (exit $ac_status); }; }; then
42931 fu_cv_sys_struct_utimbuf=yes
42932 else
42933 echo "$as_me: failed program was:" >&5
42934 sed 's/^/| /' conftest.$ac_ext >&5
42936 fu_cv_sys_struct_utimbuf=no
42939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42942 { echo "$as_me:$LINENO: result: $fu_cv_sys_struct_utimbuf" >&5
42943 echo "${ECHO_T}$fu_cv_sys_struct_utimbuf" >&6; }
42945 if test $fu_cv_sys_struct_utimbuf = yes; then
42947 cat >>confdefs.h <<\_ACEOF
42948 #define HAVE_STRUCT_UTIMBUF 1
42949 _ACEOF
42959 case " $LIBOBJS " in
42960 *" utimens.$ac_objext "* ) ;;
42961 *) LIBOBJS="$LIBOBJS utimens.$ac_objext"
42963 esac
42981 case " $LIBOBJS " in
42982 *" xmalloc.$ac_objext "* ) ;;
42983 *) LIBOBJS="$LIBOBJS xmalloc.$ac_objext"
42985 esac
42999 { echo "$as_me:$LINENO: checking whether getcwd (NULL, 0) allocates memory for result" >&5
43000 echo $ECHO_N "checking whether getcwd (NULL, 0) allocates memory for result... $ECHO_C" >&6; }
43001 if test "${gl_cv_func_getcwd_null+set}" = set; then
43002 echo $ECHO_N "(cached) $ECHO_C" >&6
43003 else
43004 if test "$cross_compiling" = yes; then
43005 gl_cv_func_getcwd_null=no
43006 else
43007 cat >conftest.$ac_ext <<_ACEOF
43008 /* confdefs.h. */
43009 _ACEOF
43010 cat confdefs.h >>conftest.$ac_ext
43011 cat >>conftest.$ac_ext <<_ACEOF
43012 /* end confdefs.h. */
43014 # include <stdlib.h>
43015 # include <unistd.h>
43016 # ifndef getcwd
43017 char *getcwd ();
43018 # endif
43020 main ()
43022 if (chdir ("/") != 0)
43023 exit (1);
43024 else
43026 char *f = getcwd (NULL, 0);
43027 exit (! (f && f[0] == '/' && !f[1]));
43030 _ACEOF
43031 rm -f conftest$ac_exeext
43032 if { (ac_try="$ac_link"
43033 case "(($ac_try" in
43034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43035 *) ac_try_echo=$ac_try;;
43036 esac
43037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43038 (eval "$ac_link") 2>&5
43039 ac_status=$?
43040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43041 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
43042 { (case "(($ac_try" in
43043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43044 *) ac_try_echo=$ac_try;;
43045 esac
43046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43047 (eval "$ac_try") 2>&5
43048 ac_status=$?
43049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43050 (exit $ac_status); }; }; then
43051 gl_cv_func_getcwd_null=yes
43052 else
43053 echo "$as_me: program exited with status $ac_status" >&5
43054 echo "$as_me: failed program was:" >&5
43055 sed 's/^/| /' conftest.$ac_ext >&5
43057 ( exit $ac_status )
43058 gl_cv_func_getcwd_null=no
43060 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
43065 { echo "$as_me:$LINENO: result: $gl_cv_func_getcwd_null" >&5
43066 echo "${ECHO_T}$gl_cv_func_getcwd_null" >&6; }
43068 { echo "$as_me:$LINENO: checking whether getcwd is declared" >&5
43069 echo $ECHO_N "checking whether getcwd is declared... $ECHO_C" >&6; }
43070 if test "${ac_cv_have_decl_getcwd+set}" = set; then
43071 echo $ECHO_N "(cached) $ECHO_C" >&6
43072 else
43073 cat >conftest.$ac_ext <<_ACEOF
43074 /* confdefs.h. */
43075 _ACEOF
43076 cat confdefs.h >>conftest.$ac_ext
43077 cat >>conftest.$ac_ext <<_ACEOF
43078 /* end confdefs.h. */
43079 $ac_includes_default
43081 main ()
43083 #ifndef getcwd
43084 char *p = (char *) getcwd;
43085 return !p;
43086 #endif
43089 return 0;
43091 _ACEOF
43092 rm -f conftest.$ac_objext
43093 if { (ac_try="$ac_compile"
43094 case "(($ac_try" in
43095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43096 *) ac_try_echo=$ac_try;;
43097 esac
43098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43099 (eval "$ac_compile") 2>conftest.er1
43100 ac_status=$?
43101 grep -v '^ *+' conftest.er1 >conftest.err
43102 rm -f conftest.er1
43103 cat conftest.err >&5
43104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43105 (exit $ac_status); } &&
43106 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
43107 { (case "(($ac_try" in
43108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43109 *) ac_try_echo=$ac_try;;
43110 esac
43111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43112 (eval "$ac_try") 2>&5
43113 ac_status=$?
43114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43115 (exit $ac_status); }; } &&
43116 { ac_try='test -s conftest.$ac_objext'
43117 { (case "(($ac_try" in
43118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43119 *) ac_try_echo=$ac_try;;
43120 esac
43121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43122 (eval "$ac_try") 2>&5
43123 ac_status=$?
43124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43125 (exit $ac_status); }; }; then
43126 ac_cv_have_decl_getcwd=yes
43127 else
43128 echo "$as_me: failed program was:" >&5
43129 sed 's/^/| /' conftest.$ac_ext >&5
43131 ac_cv_have_decl_getcwd=no
43134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43136 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getcwd" >&5
43137 echo "${ECHO_T}$ac_cv_have_decl_getcwd" >&6; }
43138 if test $ac_cv_have_decl_getcwd = yes; then
43140 cat >>confdefs.h <<_ACEOF
43141 #define HAVE_DECL_GETCWD 1
43142 _ACEOF
43145 else
43146 cat >>confdefs.h <<_ACEOF
43147 #define HAVE_DECL_GETCWD 0
43148 _ACEOF
43157 gl_abort_bug=no
43158 case $gl_cv_func_getcwd_null in
43159 yes)
43166 { echo "$as_me:$LINENO: checking whether getcwd handles long file names properly" >&5
43167 echo $ECHO_N "checking whether getcwd handles long file names properly... $ECHO_C" >&6; }
43168 if test "${gl_cv_func_getcwd_path_max+set}" = set; then
43169 echo $ECHO_N "(cached) $ECHO_C" >&6
43170 else
43171 # Arrange for deletion of the temporary directory this test creates.
43172 ac_clean_files="$ac_clean_files confdir3"
43173 if test "$cross_compiling" = yes; then
43174 gl_cv_func_getcwd_path_max=no
43175 else
43176 cat >conftest.$ac_ext <<_ACEOF
43177 /* confdefs.h. */
43178 _ACEOF
43179 cat confdefs.h >>conftest.$ac_ext
43180 cat >>conftest.$ac_ext <<_ACEOF
43181 /* end confdefs.h. */
43183 #include <errno.h>
43184 #include <stdlib.h>
43185 #include <unistd.h>
43186 #include <string.h>
43187 #include <limits.h>
43188 #include <sys/stat.h>
43189 #include <sys/types.h>
43190 #include <fcntl.h>
43192 #ifndef AT_FDCWD
43193 # define AT_FDCWD 0
43194 #endif
43195 #ifdef ENAMETOOLONG
43196 # define is_ENAMETOOLONG(x) ((x) == ENAMETOOLONG)
43197 #else
43198 # define is_ENAMETOOLONG(x) 0
43199 #endif
43201 /* Don't get link errors because mkdir is redefined to rpl_mkdir. */
43202 #undef mkdir
43204 #ifndef S_IRWXU
43205 # define S_IRWXU 0700
43206 #endif
43208 /* The length of this name must be 8. */
43209 #define DIR_NAME "confdir3"
43210 #define DIR_NAME_LEN 8
43211 #define DIR_NAME_SIZE (DIR_NAME_LEN + 1)
43213 /* The length of "../". */
43214 #define DOTDOTSLASH_LEN 3
43216 /* Leftover bytes in the buffer, to work around library or OS bugs. */
43217 #define BUF_SLOP 20
43220 main ()
43222 #ifndef PATH_MAX
43223 /* The Hurd doesn't define this, so getcwd can't exhibit the bug --
43224 at least not on a local file system. And if we were to start worrying
43225 about remote file systems, we'd have to enable the wrapper function
43226 all of the time, just to be safe. That's not worth the cost. */
43227 exit (0);
43228 #elif ((INT_MAX / (DIR_NAME_SIZE / DOTDOTSLASH_LEN + 1) \
43229 - DIR_NAME_SIZE - BUF_SLOP) \
43230 <= PATH_MAX)
43231 /* FIXME: Assuming there's a system for which this is true,
43232 this should be done in a compile test. */
43233 exit (0);
43234 #else
43235 char buf[PATH_MAX * (DIR_NAME_SIZE / DOTDOTSLASH_LEN + 1)
43236 + DIR_NAME_SIZE + BUF_SLOP];
43237 char *cwd = getcwd (buf, PATH_MAX);
43238 size_t initial_cwd_len;
43239 size_t cwd_len;
43240 int fail = 0;
43241 size_t n_chdirs = 0;
43243 if (cwd == NULL)
43244 exit (1);
43246 cwd_len = initial_cwd_len = strlen (cwd);
43248 while (1)
43250 size_t dotdot_max = PATH_MAX * (DIR_NAME_SIZE / DOTDOTSLASH_LEN);
43251 char *c = NULL;
43253 cwd_len += DIR_NAME_SIZE;
43254 /* If mkdir or chdir fails, it could be that this system cannot create
43255 any file with an absolute name longer than PATH_MAX, such as cygwin.
43256 If so, leave fail as 0, because the current working directory can't
43257 be too long for getcwd if it can't even be created. For other
43258 errors, be pessimistic and consider that as a failure, too. */
43259 if (mkdir (DIR_NAME, S_IRWXU) < 0 || chdir (DIR_NAME) < 0)
43261 if (! (errno == ERANGE || is_ENAMETOOLONG (errno)))
43262 fail = 2;
43263 break;
43266 if (PATH_MAX <= cwd_len && cwd_len < PATH_MAX + DIR_NAME_SIZE)
43268 c = getcwd (buf, PATH_MAX);
43269 if (!c && errno == ENOENT)
43271 fail = 1;
43272 break;
43274 if (c || ! (errno == ERANGE || is_ENAMETOOLONG (errno)))
43276 fail = 2;
43277 break;
43281 if (dotdot_max <= cwd_len - initial_cwd_len)
43283 if (dotdot_max + DIR_NAME_SIZE < cwd_len - initial_cwd_len)
43284 break;
43285 c = getcwd (buf, cwd_len + 1);
43286 if (!c)
43288 if (! (errno == ERANGE || errno == ENOENT
43289 || is_ENAMETOOLONG (errno)))
43291 fail = 2;
43292 break;
43294 if (AT_FDCWD || errno == ERANGE || errno == ENOENT)
43296 fail = 1;
43297 break;
43302 if (c && strlen (c) != cwd_len)
43304 fail = 2;
43305 break;
43307 ++n_chdirs;
43310 /* Leaving behind such a deep directory is not polite.
43311 So clean up here, right away, even though the driving
43312 shell script would also clean up. */
43314 size_t i;
43316 /* Try rmdir first, in case the chdir failed. */
43317 rmdir (DIR_NAME);
43318 for (i = 0; i <= n_chdirs; i++)
43320 if (chdir ("..") < 0)
43321 break;
43322 rmdir (DIR_NAME);
43326 exit (fail);
43327 #endif
43330 _ACEOF
43331 rm -f conftest$ac_exeext
43332 if { (ac_try="$ac_link"
43333 case "(($ac_try" in
43334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43335 *) ac_try_echo=$ac_try;;
43336 esac
43337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43338 (eval "$ac_link") 2>&5
43339 ac_status=$?
43340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43341 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
43342 { (case "(($ac_try" in
43343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43344 *) ac_try_echo=$ac_try;;
43345 esac
43346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43347 (eval "$ac_try") 2>&5
43348 ac_status=$?
43349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43350 (exit $ac_status); }; }; then
43351 gl_cv_func_getcwd_path_max=yes
43352 else
43353 echo "$as_me: program exited with status $ac_status" >&5
43354 echo "$as_me: failed program was:" >&5
43355 sed 's/^/| /' conftest.$ac_ext >&5
43357 ( exit $ac_status )
43358 case $? in
43359 1) gl_cv_func_getcwd_path_max='no, but it is partly working';;
43360 *) gl_cv_func_getcwd_path_max=no;;
43361 esac
43363 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
43369 { echo "$as_me:$LINENO: result: $gl_cv_func_getcwd_path_max" >&5
43370 echo "${ECHO_T}$gl_cv_func_getcwd_path_max" >&6; }
43371 case $gl_cv_func_getcwd_path_max in
43372 no,*)
43374 cat >>confdefs.h <<\_ACEOF
43375 #define HAVE_PARTLY_WORKING_GETCWD 1
43376 _ACEOF
43378 esac
43386 for ac_func in getpagesize
43388 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43389 { echo "$as_me:$LINENO: checking for $ac_func" >&5
43390 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
43391 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
43392 echo $ECHO_N "(cached) $ECHO_C" >&6
43393 else
43394 cat >conftest.$ac_ext <<_ACEOF
43395 /* confdefs.h. */
43396 _ACEOF
43397 cat confdefs.h >>conftest.$ac_ext
43398 cat >>conftest.$ac_ext <<_ACEOF
43399 /* end confdefs.h. */
43400 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43401 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43402 #define $ac_func innocuous_$ac_func
43404 /* System header to define __stub macros and hopefully few prototypes,
43405 which can conflict with char $ac_func (); below.
43406 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43407 <limits.h> exists even on freestanding compilers. */
43409 #ifdef __STDC__
43410 # include <limits.h>
43411 #else
43412 # include <assert.h>
43413 #endif
43415 #undef $ac_func
43417 /* Override any GCC internal prototype to avoid an error.
43418 Use char because int might match the return type of a GCC
43419 builtin and then its argument prototype would still apply. */
43420 #ifdef __cplusplus
43421 extern "C"
43422 #endif
43423 char $ac_func ();
43424 /* The GNU C library defines this for functions which it implements
43425 to always fail with ENOSYS. Some functions are actually named
43426 something starting with __ and the normal name is an alias. */
43427 #if defined __stub_$ac_func || defined __stub___$ac_func
43428 choke me
43429 #endif
43432 main ()
43434 return $ac_func ();
43436 return 0;
43438 _ACEOF
43439 rm -f conftest.$ac_objext conftest$ac_exeext
43440 if { (ac_try="$ac_link"
43441 case "(($ac_try" in
43442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43443 *) ac_try_echo=$ac_try;;
43444 esac
43445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43446 (eval "$ac_link") 2>conftest.er1
43447 ac_status=$?
43448 grep -v '^ *+' conftest.er1 >conftest.err
43449 rm -f conftest.er1
43450 cat conftest.err >&5
43451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43452 (exit $ac_status); } &&
43453 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
43454 { (case "(($ac_try" in
43455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43456 *) ac_try_echo=$ac_try;;
43457 esac
43458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43459 (eval "$ac_try") 2>&5
43460 ac_status=$?
43461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43462 (exit $ac_status); }; } &&
43463 { ac_try='test -s conftest$ac_exeext'
43464 { (case "(($ac_try" in
43465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43466 *) ac_try_echo=$ac_try;;
43467 esac
43468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43469 (eval "$ac_try") 2>&5
43470 ac_status=$?
43471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43472 (exit $ac_status); }; }; then
43473 eval "$as_ac_var=yes"
43474 else
43475 echo "$as_me: failed program was:" >&5
43476 sed 's/^/| /' conftest.$ac_ext >&5
43478 eval "$as_ac_var=no"
43481 rm -f core conftest.err conftest.$ac_objext \
43482 conftest$ac_exeext conftest.$ac_ext
43484 ac_res=`eval echo '${'$as_ac_var'}'`
43485 { echo "$as_me:$LINENO: result: $ac_res" >&5
43486 echo "${ECHO_T}$ac_res" >&6; }
43487 if test `eval echo '${'$as_ac_var'}'` = yes; then
43488 cat >>confdefs.h <<_ACEOF
43489 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43490 _ACEOF
43493 done
43495 { echo "$as_me:$LINENO: checking whether getcwd aborts when 4k < cwd_length < 16k" >&5
43496 echo $ECHO_N "checking whether getcwd aborts when 4k < cwd_length < 16k... $ECHO_C" >&6; }
43497 if test "${gl_cv_func_getcwd_abort_bug+set}" = set; then
43498 echo $ECHO_N "(cached) $ECHO_C" >&6
43499 else
43500 # Remove any remnants of a previous test.
43501 rm -rf confdir-14B---
43502 # Arrange for deletion of the temporary directory this test creates.
43503 ac_clean_files="$ac_clean_files confdir-14B---"
43504 if test "$cross_compiling" = yes; then
43505 gl_cv_func_getcwd_abort_bug=yes
43506 else
43507 cat >conftest.$ac_ext <<_ACEOF
43508 /* confdefs.h. */
43509 _ACEOF
43510 cat confdefs.h >>conftest.$ac_ext
43511 cat >>conftest.$ac_ext <<_ACEOF
43512 /* end confdefs.h. */
43514 #include <stdlib.h>
43515 #include <unistd.h>
43516 #include <limits.h>
43517 #include <string.h>
43518 #include <sys/stat.h>
43520 /* Don't get link errors because mkdir is redefined to rpl_mkdir. */
43521 #undef mkdir
43523 #ifndef S_IRWXU
43524 # define S_IRWXU 0700
43525 #endif
43527 /* FIXME: skip the run-test altogether on systems without getpagesize. */
43528 #if ! HAVE_GETPAGESIZE
43529 # define getpagesize() 0
43530 #endif
43532 /* This size is chosen to be larger than PATH_MAX (4k), yet smaller than
43533 the 16kB pagesize on ia64 linux. Those conditions make the code below
43534 trigger a bug in glibc's getcwd implementation before 2.4.90-10. */
43535 #define TARGET_LEN (5 * 1024)
43538 main ()
43540 char const *dir_name = "confdir-14B---";
43541 char *cwd;
43542 size_t initial_cwd_len;
43543 int fail = 0;
43544 size_t desired_depth;
43545 size_t d;
43547 /* The bug is triggered when PATH_MAX < getpagesize (), so skip
43548 this relative expensive and invasive test if that's not true. */
43549 if (getpagesize () <= PATH_MAX)
43550 return 0;
43552 cwd = getcwd (NULL, 0);
43553 if (cwd == NULL)
43554 return 0;
43556 initial_cwd_len = strlen (cwd);
43557 free (cwd);
43558 desired_depth = ((TARGET_LEN - 1 - initial_cwd_len)
43559 / (1 + strlen (dir_name)));
43560 for (d = 0; d < desired_depth; d++)
43562 if (mkdir (dir_name, S_IRWXU) < 0 || chdir (dir_name) < 0)
43564 fail = 3; /* Unable to construct deep hierarchy. */
43565 break;
43569 /* If libc has the bug in question, this invocation of getcwd
43570 results in a failed assertion. */
43571 cwd = getcwd (NULL, 0);
43572 if (cwd == NULL)
43573 fail = 4; /* getcwd failed. This is ok, and expected. */
43574 free (cwd);
43576 /* Call rmdir first, in case the above chdir failed. */
43577 rmdir (dir_name);
43578 while (0 < d--)
43580 if (chdir ("..") < 0)
43581 break;
43582 rmdir (dir_name);
43585 return 0;
43588 _ACEOF
43589 rm -f conftest$ac_exeext
43590 if { (ac_try="$ac_link"
43591 case "(($ac_try" in
43592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43593 *) ac_try_echo=$ac_try;;
43594 esac
43595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43596 (eval "$ac_link") 2>&5
43597 ac_status=$?
43598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43599 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
43600 { (case "(($ac_try" in
43601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43602 *) ac_try_echo=$ac_try;;
43603 esac
43604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43605 (eval "$ac_try") 2>&5
43606 ac_status=$?
43607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43608 (exit $ac_status); }; }; then
43609 gl_cv_func_getcwd_abort_bug=no
43610 else
43611 echo "$as_me: program exited with status $ac_status" >&5
43612 echo "$as_me: failed program was:" >&5
43613 sed 's/^/| /' conftest.$ac_ext >&5
43615 ( exit $ac_status )
43616 gl_cv_func_getcwd_abort_bug=yes
43618 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
43624 { echo "$as_me:$LINENO: result: $gl_cv_func_getcwd_abort_bug" >&5
43625 echo "${ECHO_T}$gl_cv_func_getcwd_abort_bug" >&6; }
43626 if test $gl_cv_func_getcwd_abort_bug = yes; then
43627 gl_abort_bug=yes
43631 esac
43633 case $gl_cv_func_getcwd_null,$gl_cv_func_getcwd_path_max,$gl_abort_bug in
43634 yes,yes,no) ;;
43636 case " $LIBOBJS " in
43637 *" getcwd.$ac_objext "* ) ;;
43638 *) LIBOBJS="$LIBOBJS getcwd.$ac_objext"
43640 esac
43643 cat >>confdefs.h <<\_ACEOF
43644 #define __GETCWD_PREFIX rpl_
43645 _ACEOF
43652 esac
43656 case " $LIBOBJS " in
43657 *" xgetcwd.$ac_objext "* ) ;;
43658 *) LIBOBJS="$LIBOBJS xgetcwd.$ac_objext"
43660 esac
43667 case " $LIBOBJS " in
43668 *" xnanosleep.$ac_objext "* ) ;;
43669 *) LIBOBJS="$LIBOBJS xnanosleep.$ac_objext"
43671 esac
43676 case " $LIBOBJS " in
43677 *" xreadlink.$ac_objext "* ) ;;
43678 *) LIBOBJS="$LIBOBJS xreadlink.$ac_objext"
43680 esac
43687 case " $LIBOBJS " in
43688 *" xstrtod.$ac_objext "* ) ;;
43689 *) LIBOBJS="$LIBOBJS xstrtod.$ac_objext"
43691 esac
43698 { echo "$as_me:$LINENO: checking whether strtoimax is declared" >&5
43699 echo $ECHO_N "checking whether strtoimax is declared... $ECHO_C" >&6; }
43700 if test "${ac_cv_have_decl_strtoimax+set}" = set; then
43701 echo $ECHO_N "(cached) $ECHO_C" >&6
43702 else
43703 cat >conftest.$ac_ext <<_ACEOF
43704 /* confdefs.h. */
43705 _ACEOF
43706 cat confdefs.h >>conftest.$ac_ext
43707 cat >>conftest.$ac_ext <<_ACEOF
43708 /* end confdefs.h. */
43709 $ac_includes_default
43711 main ()
43713 #ifndef strtoimax
43714 char *p = (char *) strtoimax;
43715 return !p;
43716 #endif
43719 return 0;
43721 _ACEOF
43722 rm -f conftest.$ac_objext
43723 if { (ac_try="$ac_compile"
43724 case "(($ac_try" in
43725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43726 *) ac_try_echo=$ac_try;;
43727 esac
43728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43729 (eval "$ac_compile") 2>conftest.er1
43730 ac_status=$?
43731 grep -v '^ *+' conftest.er1 >conftest.err
43732 rm -f conftest.er1
43733 cat conftest.err >&5
43734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43735 (exit $ac_status); } &&
43736 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
43737 { (case "(($ac_try" in
43738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43739 *) ac_try_echo=$ac_try;;
43740 esac
43741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43742 (eval "$ac_try") 2>&5
43743 ac_status=$?
43744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43745 (exit $ac_status); }; } &&
43746 { ac_try='test -s conftest.$ac_objext'
43747 { (case "(($ac_try" in
43748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43749 *) ac_try_echo=$ac_try;;
43750 esac
43751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43752 (eval "$ac_try") 2>&5
43753 ac_status=$?
43754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43755 (exit $ac_status); }; }; then
43756 ac_cv_have_decl_strtoimax=yes
43757 else
43758 echo "$as_me: failed program was:" >&5
43759 sed 's/^/| /' conftest.$ac_ext >&5
43761 ac_cv_have_decl_strtoimax=no
43764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43766 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoimax" >&5
43767 echo "${ECHO_T}$ac_cv_have_decl_strtoimax" >&6; }
43768 if test $ac_cv_have_decl_strtoimax = yes; then
43770 cat >>confdefs.h <<_ACEOF
43771 #define HAVE_DECL_STRTOIMAX 1
43772 _ACEOF
43775 else
43776 cat >>confdefs.h <<_ACEOF
43777 #define HAVE_DECL_STRTOIMAX 0
43778 _ACEOF
43784 { echo "$as_me:$LINENO: checking whether strtoumax is declared" >&5
43785 echo $ECHO_N "checking whether strtoumax is declared... $ECHO_C" >&6; }
43786 if test "${ac_cv_have_decl_strtoumax+set}" = set; then
43787 echo $ECHO_N "(cached) $ECHO_C" >&6
43788 else
43789 cat >conftest.$ac_ext <<_ACEOF
43790 /* confdefs.h. */
43791 _ACEOF
43792 cat confdefs.h >>conftest.$ac_ext
43793 cat >>conftest.$ac_ext <<_ACEOF
43794 /* end confdefs.h. */
43795 $ac_includes_default
43797 main ()
43799 #ifndef strtoumax
43800 char *p = (char *) strtoumax;
43801 return !p;
43802 #endif
43805 return 0;
43807 _ACEOF
43808 rm -f conftest.$ac_objext
43809 if { (ac_try="$ac_compile"
43810 case "(($ac_try" in
43811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43812 *) ac_try_echo=$ac_try;;
43813 esac
43814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43815 (eval "$ac_compile") 2>conftest.er1
43816 ac_status=$?
43817 grep -v '^ *+' conftest.er1 >conftest.err
43818 rm -f conftest.er1
43819 cat conftest.err >&5
43820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43821 (exit $ac_status); } &&
43822 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
43823 { (case "(($ac_try" in
43824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43825 *) ac_try_echo=$ac_try;;
43826 esac
43827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43828 (eval "$ac_try") 2>&5
43829 ac_status=$?
43830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43831 (exit $ac_status); }; } &&
43832 { ac_try='test -s conftest.$ac_objext'
43833 { (case "(($ac_try" in
43834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43835 *) ac_try_echo=$ac_try;;
43836 esac
43837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43838 (eval "$ac_try") 2>&5
43839 ac_status=$?
43840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43841 (exit $ac_status); }; }; then
43842 ac_cv_have_decl_strtoumax=yes
43843 else
43844 echo "$as_me: failed program was:" >&5
43845 sed 's/^/| /' conftest.$ac_ext >&5
43847 ac_cv_have_decl_strtoumax=no
43850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43852 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoumax" >&5
43853 echo "${ECHO_T}$ac_cv_have_decl_strtoumax" >&6; }
43854 if test $ac_cv_have_decl_strtoumax = yes; then
43856 cat >>confdefs.h <<_ACEOF
43857 #define HAVE_DECL_STRTOUMAX 1
43858 _ACEOF
43861 else
43862 cat >>confdefs.h <<_ACEOF
43863 #define HAVE_DECL_STRTOUMAX 0
43864 _ACEOF
43886 case " $LIBOBJS " in
43887 *" xstrtol.$ac_objext "* ) ;;
43888 *) LIBOBJS="$LIBOBJS xstrtol.$ac_objext"
43890 esac
43892 case " $LIBOBJS " in
43893 *" xstrtoul.$ac_objext "* ) ;;
43894 *) LIBOBJS="$LIBOBJS xstrtoul.$ac_objext"
43896 esac
43904 case " $LIBOBJS " in
43905 *" xstrtold.$ac_objext "* ) ;;
43906 *) LIBOBJS="$LIBOBJS xstrtold.$ac_objext"
43908 esac
43913 case " $LIBOBJS " in
43914 *" yesno.$ac_objext "* ) ;;
43915 *) LIBOBJS="$LIBOBJS yesno.$ac_objext"
43917 esac
43922 { echo "$as_me:$LINENO: checking for GNU libc compatible calloc" >&5
43923 echo $ECHO_N "checking for GNU libc compatible calloc... $ECHO_C" >&6; }
43924 if test "${ac_cv_func_calloc_0_nonnull+set}" = set; then
43925 echo $ECHO_N "(cached) $ECHO_C" >&6
43926 else
43927 if test "$cross_compiling" = yes; then
43928 ac_cv_func_calloc_0_nonnull=no
43929 else
43930 cat >conftest.$ac_ext <<_ACEOF
43931 /* confdefs.h. */
43932 _ACEOF
43933 cat confdefs.h >>conftest.$ac_ext
43934 cat >>conftest.$ac_ext <<_ACEOF
43935 /* end confdefs.h. */
43936 $ac_includes_default
43938 main ()
43940 exit (!calloc (0, 0) || calloc ((size_t) -1 / 8 + 1, 8));
43942 return 0;
43944 _ACEOF
43945 rm -f conftest$ac_exeext
43946 if { (ac_try="$ac_link"
43947 case "(($ac_try" in
43948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43949 *) ac_try_echo=$ac_try;;
43950 esac
43951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43952 (eval "$ac_link") 2>&5
43953 ac_status=$?
43954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43955 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
43956 { (case "(($ac_try" in
43957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43958 *) ac_try_echo=$ac_try;;
43959 esac
43960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43961 (eval "$ac_try") 2>&5
43962 ac_status=$?
43963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43964 (exit $ac_status); }; }; then
43965 ac_cv_func_calloc_0_nonnull=yes
43966 else
43967 echo "$as_me: program exited with status $ac_status" >&5
43968 echo "$as_me: failed program was:" >&5
43969 sed 's/^/| /' conftest.$ac_ext >&5
43971 ( exit $ac_status )
43972 ac_cv_func_calloc_0_nonnull=no
43974 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
43979 { echo "$as_me:$LINENO: result: $ac_cv_func_calloc_0_nonnull" >&5
43980 echo "${ECHO_T}$ac_cv_func_calloc_0_nonnull" >&6; }
43981 if test $ac_cv_func_calloc_0_nonnull = yes; then
43983 cat >>confdefs.h <<\_ACEOF
43984 #define HAVE_CALLOC 1
43985 _ACEOF
43987 else
43988 cat >>confdefs.h <<\_ACEOF
43989 #define HAVE_CALLOC 0
43990 _ACEOF
43992 case " $LIBOBJS " in
43993 *" calloc.$ac_objext "* ) ;;
43994 *) LIBOBJS="$LIBOBJS calloc.$ac_objext"
43996 esac
43999 cat >>confdefs.h <<\_ACEOF
44000 #define calloc rpl_calloc
44001 _ACEOF
44007 { echo "$as_me:$LINENO: checking whether clearerr_unlocked is declared" >&5
44008 echo $ECHO_N "checking whether clearerr_unlocked is declared... $ECHO_C" >&6; }
44009 if test "${ac_cv_have_decl_clearerr_unlocked+set}" = set; then
44010 echo $ECHO_N "(cached) $ECHO_C" >&6
44011 else
44012 cat >conftest.$ac_ext <<_ACEOF
44013 /* confdefs.h. */
44014 _ACEOF
44015 cat confdefs.h >>conftest.$ac_ext
44016 cat >>conftest.$ac_ext <<_ACEOF
44017 /* end confdefs.h. */
44018 $ac_includes_default
44020 main ()
44022 #ifndef clearerr_unlocked
44023 char *p = (char *) clearerr_unlocked;
44024 return !p;
44025 #endif
44028 return 0;
44030 _ACEOF
44031 rm -f conftest.$ac_objext
44032 if { (ac_try="$ac_compile"
44033 case "(($ac_try" in
44034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44035 *) ac_try_echo=$ac_try;;
44036 esac
44037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44038 (eval "$ac_compile") 2>conftest.er1
44039 ac_status=$?
44040 grep -v '^ *+' conftest.er1 >conftest.err
44041 rm -f conftest.er1
44042 cat conftest.err >&5
44043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44044 (exit $ac_status); } &&
44045 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
44046 { (case "(($ac_try" in
44047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44048 *) ac_try_echo=$ac_try;;
44049 esac
44050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44051 (eval "$ac_try") 2>&5
44052 ac_status=$?
44053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44054 (exit $ac_status); }; } &&
44055 { ac_try='test -s conftest.$ac_objext'
44056 { (case "(($ac_try" in
44057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44058 *) ac_try_echo=$ac_try;;
44059 esac
44060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44061 (eval "$ac_try") 2>&5
44062 ac_status=$?
44063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44064 (exit $ac_status); }; }; then
44065 ac_cv_have_decl_clearerr_unlocked=yes
44066 else
44067 echo "$as_me: failed program was:" >&5
44068 sed 's/^/| /' conftest.$ac_ext >&5
44070 ac_cv_have_decl_clearerr_unlocked=no
44073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44075 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_clearerr_unlocked" >&5
44076 echo "${ECHO_T}$ac_cv_have_decl_clearerr_unlocked" >&6; }
44077 if test $ac_cv_have_decl_clearerr_unlocked = yes; then
44079 cat >>confdefs.h <<_ACEOF
44080 #define HAVE_DECL_CLEARERR_UNLOCKED 1
44081 _ACEOF
44084 else
44085 cat >>confdefs.h <<_ACEOF
44086 #define HAVE_DECL_CLEARERR_UNLOCKED 0
44087 _ACEOF
44093 { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
44094 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
44095 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
44096 echo $ECHO_N "(cached) $ECHO_C" >&6
44097 else
44098 cat >conftest.$ac_ext <<_ACEOF
44099 /* confdefs.h. */
44100 _ACEOF
44101 cat confdefs.h >>conftest.$ac_ext
44102 cat >>conftest.$ac_ext <<_ACEOF
44103 /* end confdefs.h. */
44104 $ac_includes_default
44106 main ()
44108 #ifndef feof_unlocked
44109 char *p = (char *) feof_unlocked;
44110 return !p;
44111 #endif
44114 return 0;
44116 _ACEOF
44117 rm -f conftest.$ac_objext
44118 if { (ac_try="$ac_compile"
44119 case "(($ac_try" in
44120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44121 *) ac_try_echo=$ac_try;;
44122 esac
44123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44124 (eval "$ac_compile") 2>conftest.er1
44125 ac_status=$?
44126 grep -v '^ *+' conftest.er1 >conftest.err
44127 rm -f conftest.er1
44128 cat conftest.err >&5
44129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44130 (exit $ac_status); } &&
44131 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
44132 { (case "(($ac_try" in
44133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44134 *) ac_try_echo=$ac_try;;
44135 esac
44136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44137 (eval "$ac_try") 2>&5
44138 ac_status=$?
44139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44140 (exit $ac_status); }; } &&
44141 { ac_try='test -s conftest.$ac_objext'
44142 { (case "(($ac_try" in
44143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44144 *) ac_try_echo=$ac_try;;
44145 esac
44146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44147 (eval "$ac_try") 2>&5
44148 ac_status=$?
44149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44150 (exit $ac_status); }; }; then
44151 ac_cv_have_decl_feof_unlocked=yes
44152 else
44153 echo "$as_me: failed program was:" >&5
44154 sed 's/^/| /' conftest.$ac_ext >&5
44156 ac_cv_have_decl_feof_unlocked=no
44159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44161 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
44162 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
44163 if test $ac_cv_have_decl_feof_unlocked = yes; then
44165 cat >>confdefs.h <<_ACEOF
44166 #define HAVE_DECL_FEOF_UNLOCKED 1
44167 _ACEOF
44170 else
44171 cat >>confdefs.h <<_ACEOF
44172 #define HAVE_DECL_FEOF_UNLOCKED 0
44173 _ACEOF
44179 { echo "$as_me:$LINENO: checking whether ferror_unlocked is declared" >&5
44180 echo $ECHO_N "checking whether ferror_unlocked is declared... $ECHO_C" >&6; }
44181 if test "${ac_cv_have_decl_ferror_unlocked+set}" = set; then
44182 echo $ECHO_N "(cached) $ECHO_C" >&6
44183 else
44184 cat >conftest.$ac_ext <<_ACEOF
44185 /* confdefs.h. */
44186 _ACEOF
44187 cat confdefs.h >>conftest.$ac_ext
44188 cat >>conftest.$ac_ext <<_ACEOF
44189 /* end confdefs.h. */
44190 $ac_includes_default
44192 main ()
44194 #ifndef ferror_unlocked
44195 char *p = (char *) ferror_unlocked;
44196 return !p;
44197 #endif
44200 return 0;
44202 _ACEOF
44203 rm -f conftest.$ac_objext
44204 if { (ac_try="$ac_compile"
44205 case "(($ac_try" in
44206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44207 *) ac_try_echo=$ac_try;;
44208 esac
44209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44210 (eval "$ac_compile") 2>conftest.er1
44211 ac_status=$?
44212 grep -v '^ *+' conftest.er1 >conftest.err
44213 rm -f conftest.er1
44214 cat conftest.err >&5
44215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44216 (exit $ac_status); } &&
44217 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
44218 { (case "(($ac_try" in
44219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44220 *) ac_try_echo=$ac_try;;
44221 esac
44222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44223 (eval "$ac_try") 2>&5
44224 ac_status=$?
44225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44226 (exit $ac_status); }; } &&
44227 { ac_try='test -s conftest.$ac_objext'
44228 { (case "(($ac_try" in
44229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44230 *) ac_try_echo=$ac_try;;
44231 esac
44232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44233 (eval "$ac_try") 2>&5
44234 ac_status=$?
44235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44236 (exit $ac_status); }; }; then
44237 ac_cv_have_decl_ferror_unlocked=yes
44238 else
44239 echo "$as_me: failed program was:" >&5
44240 sed 's/^/| /' conftest.$ac_ext >&5
44242 ac_cv_have_decl_ferror_unlocked=no
44245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44247 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_ferror_unlocked" >&5
44248 echo "${ECHO_T}$ac_cv_have_decl_ferror_unlocked" >&6; }
44249 if test $ac_cv_have_decl_ferror_unlocked = yes; then
44251 cat >>confdefs.h <<_ACEOF
44252 #define HAVE_DECL_FERROR_UNLOCKED 1
44253 _ACEOF
44256 else
44257 cat >>confdefs.h <<_ACEOF
44258 #define HAVE_DECL_FERROR_UNLOCKED 0
44259 _ACEOF
44265 { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
44266 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
44267 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
44268 echo $ECHO_N "(cached) $ECHO_C" >&6
44269 else
44270 cat >conftest.$ac_ext <<_ACEOF
44271 /* confdefs.h. */
44272 _ACEOF
44273 cat confdefs.h >>conftest.$ac_ext
44274 cat >>conftest.$ac_ext <<_ACEOF
44275 /* end confdefs.h. */
44276 $ac_includes_default
44278 main ()
44280 #ifndef fgets_unlocked
44281 char *p = (char *) fgets_unlocked;
44282 return !p;
44283 #endif
44286 return 0;
44288 _ACEOF
44289 rm -f conftest.$ac_objext
44290 if { (ac_try="$ac_compile"
44291 case "(($ac_try" in
44292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44293 *) ac_try_echo=$ac_try;;
44294 esac
44295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44296 (eval "$ac_compile") 2>conftest.er1
44297 ac_status=$?
44298 grep -v '^ *+' conftest.er1 >conftest.err
44299 rm -f conftest.er1
44300 cat conftest.err >&5
44301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44302 (exit $ac_status); } &&
44303 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
44304 { (case "(($ac_try" in
44305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44306 *) ac_try_echo=$ac_try;;
44307 esac
44308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44309 (eval "$ac_try") 2>&5
44310 ac_status=$?
44311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44312 (exit $ac_status); }; } &&
44313 { ac_try='test -s conftest.$ac_objext'
44314 { (case "(($ac_try" in
44315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44316 *) ac_try_echo=$ac_try;;
44317 esac
44318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44319 (eval "$ac_try") 2>&5
44320 ac_status=$?
44321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44322 (exit $ac_status); }; }; then
44323 ac_cv_have_decl_fgets_unlocked=yes
44324 else
44325 echo "$as_me: failed program was:" >&5
44326 sed 's/^/| /' conftest.$ac_ext >&5
44328 ac_cv_have_decl_fgets_unlocked=no
44331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44333 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
44334 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
44335 if test $ac_cv_have_decl_fgets_unlocked = yes; then
44337 cat >>confdefs.h <<_ACEOF
44338 #define HAVE_DECL_FGETS_UNLOCKED 1
44339 _ACEOF
44342 else
44343 cat >>confdefs.h <<_ACEOF
44344 #define HAVE_DECL_FGETS_UNLOCKED 0
44345 _ACEOF
44351 { echo "$as_me:$LINENO: checking whether fputc_unlocked is declared" >&5
44352 echo $ECHO_N "checking whether fputc_unlocked is declared... $ECHO_C" >&6; }
44353 if test "${ac_cv_have_decl_fputc_unlocked+set}" = set; then
44354 echo $ECHO_N "(cached) $ECHO_C" >&6
44355 else
44356 cat >conftest.$ac_ext <<_ACEOF
44357 /* confdefs.h. */
44358 _ACEOF
44359 cat confdefs.h >>conftest.$ac_ext
44360 cat >>conftest.$ac_ext <<_ACEOF
44361 /* end confdefs.h. */
44362 $ac_includes_default
44364 main ()
44366 #ifndef fputc_unlocked
44367 char *p = (char *) fputc_unlocked;
44368 return !p;
44369 #endif
44372 return 0;
44374 _ACEOF
44375 rm -f conftest.$ac_objext
44376 if { (ac_try="$ac_compile"
44377 case "(($ac_try" in
44378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44379 *) ac_try_echo=$ac_try;;
44380 esac
44381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44382 (eval "$ac_compile") 2>conftest.er1
44383 ac_status=$?
44384 grep -v '^ *+' conftest.er1 >conftest.err
44385 rm -f conftest.er1
44386 cat conftest.err >&5
44387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44388 (exit $ac_status); } &&
44389 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
44390 { (case "(($ac_try" in
44391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44392 *) ac_try_echo=$ac_try;;
44393 esac
44394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44395 (eval "$ac_try") 2>&5
44396 ac_status=$?
44397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44398 (exit $ac_status); }; } &&
44399 { ac_try='test -s conftest.$ac_objext'
44400 { (case "(($ac_try" in
44401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44402 *) ac_try_echo=$ac_try;;
44403 esac
44404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44405 (eval "$ac_try") 2>&5
44406 ac_status=$?
44407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44408 (exit $ac_status); }; }; then
44409 ac_cv_have_decl_fputc_unlocked=yes
44410 else
44411 echo "$as_me: failed program was:" >&5
44412 sed 's/^/| /' conftest.$ac_ext >&5
44414 ac_cv_have_decl_fputc_unlocked=no
44417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44419 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputc_unlocked" >&5
44420 echo "${ECHO_T}$ac_cv_have_decl_fputc_unlocked" >&6; }
44421 if test $ac_cv_have_decl_fputc_unlocked = yes; then
44423 cat >>confdefs.h <<_ACEOF
44424 #define HAVE_DECL_FPUTC_UNLOCKED 1
44425 _ACEOF
44428 else
44429 cat >>confdefs.h <<_ACEOF
44430 #define HAVE_DECL_FPUTC_UNLOCKED 0
44431 _ACEOF
44437 { echo "$as_me:$LINENO: checking whether fread_unlocked is declared" >&5
44438 echo $ECHO_N "checking whether fread_unlocked is declared... $ECHO_C" >&6; }
44439 if test "${ac_cv_have_decl_fread_unlocked+set}" = set; then
44440 echo $ECHO_N "(cached) $ECHO_C" >&6
44441 else
44442 cat >conftest.$ac_ext <<_ACEOF
44443 /* confdefs.h. */
44444 _ACEOF
44445 cat confdefs.h >>conftest.$ac_ext
44446 cat >>conftest.$ac_ext <<_ACEOF
44447 /* end confdefs.h. */
44448 $ac_includes_default
44450 main ()
44452 #ifndef fread_unlocked
44453 char *p = (char *) fread_unlocked;
44454 return !p;
44455 #endif
44458 return 0;
44460 _ACEOF
44461 rm -f conftest.$ac_objext
44462 if { (ac_try="$ac_compile"
44463 case "(($ac_try" in
44464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44465 *) ac_try_echo=$ac_try;;
44466 esac
44467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44468 (eval "$ac_compile") 2>conftest.er1
44469 ac_status=$?
44470 grep -v '^ *+' conftest.er1 >conftest.err
44471 rm -f conftest.er1
44472 cat conftest.err >&5
44473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44474 (exit $ac_status); } &&
44475 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
44476 { (case "(($ac_try" in
44477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44478 *) ac_try_echo=$ac_try;;
44479 esac
44480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44481 (eval "$ac_try") 2>&5
44482 ac_status=$?
44483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44484 (exit $ac_status); }; } &&
44485 { ac_try='test -s conftest.$ac_objext'
44486 { (case "(($ac_try" in
44487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44488 *) ac_try_echo=$ac_try;;
44489 esac
44490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44491 (eval "$ac_try") 2>&5
44492 ac_status=$?
44493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44494 (exit $ac_status); }; }; then
44495 ac_cv_have_decl_fread_unlocked=yes
44496 else
44497 echo "$as_me: failed program was:" >&5
44498 sed 's/^/| /' conftest.$ac_ext >&5
44500 ac_cv_have_decl_fread_unlocked=no
44503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44505 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fread_unlocked" >&5
44506 echo "${ECHO_T}$ac_cv_have_decl_fread_unlocked" >&6; }
44507 if test $ac_cv_have_decl_fread_unlocked = yes; then
44509 cat >>confdefs.h <<_ACEOF
44510 #define HAVE_DECL_FREAD_UNLOCKED 1
44511 _ACEOF
44514 else
44515 cat >>confdefs.h <<_ACEOF
44516 #define HAVE_DECL_FREAD_UNLOCKED 0
44517 _ACEOF
44523 { echo "$as_me:$LINENO: checking whether fwrite_unlocked is declared" >&5
44524 echo $ECHO_N "checking whether fwrite_unlocked is declared... $ECHO_C" >&6; }
44525 if test "${ac_cv_have_decl_fwrite_unlocked+set}" = set; then
44526 echo $ECHO_N "(cached) $ECHO_C" >&6
44527 else
44528 cat >conftest.$ac_ext <<_ACEOF
44529 /* confdefs.h. */
44530 _ACEOF
44531 cat confdefs.h >>conftest.$ac_ext
44532 cat >>conftest.$ac_ext <<_ACEOF
44533 /* end confdefs.h. */
44534 $ac_includes_default
44536 main ()
44538 #ifndef fwrite_unlocked
44539 char *p = (char *) fwrite_unlocked;
44540 return !p;
44541 #endif
44544 return 0;
44546 _ACEOF
44547 rm -f conftest.$ac_objext
44548 if { (ac_try="$ac_compile"
44549 case "(($ac_try" in
44550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44551 *) ac_try_echo=$ac_try;;
44552 esac
44553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44554 (eval "$ac_compile") 2>conftest.er1
44555 ac_status=$?
44556 grep -v '^ *+' conftest.er1 >conftest.err
44557 rm -f conftest.er1
44558 cat conftest.err >&5
44559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44560 (exit $ac_status); } &&
44561 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
44562 { (case "(($ac_try" in
44563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44564 *) ac_try_echo=$ac_try;;
44565 esac
44566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44567 (eval "$ac_try") 2>&5
44568 ac_status=$?
44569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44570 (exit $ac_status); }; } &&
44571 { ac_try='test -s conftest.$ac_objext'
44572 { (case "(($ac_try" in
44573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44574 *) ac_try_echo=$ac_try;;
44575 esac
44576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44577 (eval "$ac_try") 2>&5
44578 ac_status=$?
44579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44580 (exit $ac_status); }; }; then
44581 ac_cv_have_decl_fwrite_unlocked=yes
44582 else
44583 echo "$as_me: failed program was:" >&5
44584 sed 's/^/| /' conftest.$ac_ext >&5
44586 ac_cv_have_decl_fwrite_unlocked=no
44589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44591 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fwrite_unlocked" >&5
44592 echo "${ECHO_T}$ac_cv_have_decl_fwrite_unlocked" >&6; }
44593 if test $ac_cv_have_decl_fwrite_unlocked = yes; then
44595 cat >>confdefs.h <<_ACEOF
44596 #define HAVE_DECL_FWRITE_UNLOCKED 1
44597 _ACEOF
44600 else
44601 cat >>confdefs.h <<_ACEOF
44602 #define HAVE_DECL_FWRITE_UNLOCKED 0
44603 _ACEOF
44609 { echo "$as_me:$LINENO: checking whether getchar_unlocked is declared" >&5
44610 echo $ECHO_N "checking whether getchar_unlocked is declared... $ECHO_C" >&6; }
44611 if test "${ac_cv_have_decl_getchar_unlocked+set}" = set; then
44612 echo $ECHO_N "(cached) $ECHO_C" >&6
44613 else
44614 cat >conftest.$ac_ext <<_ACEOF
44615 /* confdefs.h. */
44616 _ACEOF
44617 cat confdefs.h >>conftest.$ac_ext
44618 cat >>conftest.$ac_ext <<_ACEOF
44619 /* end confdefs.h. */
44620 $ac_includes_default
44622 main ()
44624 #ifndef getchar_unlocked
44625 char *p = (char *) getchar_unlocked;
44626 return !p;
44627 #endif
44630 return 0;
44632 _ACEOF
44633 rm -f conftest.$ac_objext
44634 if { (ac_try="$ac_compile"
44635 case "(($ac_try" in
44636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44637 *) ac_try_echo=$ac_try;;
44638 esac
44639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44640 (eval "$ac_compile") 2>conftest.er1
44641 ac_status=$?
44642 grep -v '^ *+' conftest.er1 >conftest.err
44643 rm -f conftest.er1
44644 cat conftest.err >&5
44645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44646 (exit $ac_status); } &&
44647 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
44648 { (case "(($ac_try" in
44649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44650 *) ac_try_echo=$ac_try;;
44651 esac
44652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44653 (eval "$ac_try") 2>&5
44654 ac_status=$?
44655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44656 (exit $ac_status); }; } &&
44657 { ac_try='test -s conftest.$ac_objext'
44658 { (case "(($ac_try" in
44659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44660 *) ac_try_echo=$ac_try;;
44661 esac
44662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44663 (eval "$ac_try") 2>&5
44664 ac_status=$?
44665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44666 (exit $ac_status); }; }; then
44667 ac_cv_have_decl_getchar_unlocked=yes
44668 else
44669 echo "$as_me: failed program was:" >&5
44670 sed 's/^/| /' conftest.$ac_ext >&5
44672 ac_cv_have_decl_getchar_unlocked=no
44675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44677 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getchar_unlocked" >&5
44678 echo "${ECHO_T}$ac_cv_have_decl_getchar_unlocked" >&6; }
44679 if test $ac_cv_have_decl_getchar_unlocked = yes; then
44681 cat >>confdefs.h <<_ACEOF
44682 #define HAVE_DECL_GETCHAR_UNLOCKED 1
44683 _ACEOF
44686 else
44687 cat >>confdefs.h <<_ACEOF
44688 #define HAVE_DECL_GETCHAR_UNLOCKED 0
44689 _ACEOF
44695 { echo "$as_me:$LINENO: checking whether putchar_unlocked is declared" >&5
44696 echo $ECHO_N "checking whether putchar_unlocked is declared... $ECHO_C" >&6; }
44697 if test "${ac_cv_have_decl_putchar_unlocked+set}" = set; then
44698 echo $ECHO_N "(cached) $ECHO_C" >&6
44699 else
44700 cat >conftest.$ac_ext <<_ACEOF
44701 /* confdefs.h. */
44702 _ACEOF
44703 cat confdefs.h >>conftest.$ac_ext
44704 cat >>conftest.$ac_ext <<_ACEOF
44705 /* end confdefs.h. */
44706 $ac_includes_default
44708 main ()
44710 #ifndef putchar_unlocked
44711 char *p = (char *) putchar_unlocked;
44712 return !p;
44713 #endif
44716 return 0;
44718 _ACEOF
44719 rm -f conftest.$ac_objext
44720 if { (ac_try="$ac_compile"
44721 case "(($ac_try" in
44722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44723 *) ac_try_echo=$ac_try;;
44724 esac
44725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44726 (eval "$ac_compile") 2>conftest.er1
44727 ac_status=$?
44728 grep -v '^ *+' conftest.er1 >conftest.err
44729 rm -f conftest.er1
44730 cat conftest.err >&5
44731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44732 (exit $ac_status); } &&
44733 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
44734 { (case "(($ac_try" in
44735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44736 *) ac_try_echo=$ac_try;;
44737 esac
44738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44739 (eval "$ac_try") 2>&5
44740 ac_status=$?
44741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44742 (exit $ac_status); }; } &&
44743 { ac_try='test -s conftest.$ac_objext'
44744 { (case "(($ac_try" in
44745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44746 *) ac_try_echo=$ac_try;;
44747 esac
44748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44749 (eval "$ac_try") 2>&5
44750 ac_status=$?
44751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44752 (exit $ac_status); }; }; then
44753 ac_cv_have_decl_putchar_unlocked=yes
44754 else
44755 echo "$as_me: failed program was:" >&5
44756 sed 's/^/| /' conftest.$ac_ext >&5
44758 ac_cv_have_decl_putchar_unlocked=no
44761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44763 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_putchar_unlocked" >&5
44764 echo "${ECHO_T}$ac_cv_have_decl_putchar_unlocked" >&6; }
44765 if test $ac_cv_have_decl_putchar_unlocked = yes; then
44767 cat >>confdefs.h <<_ACEOF
44768 #define HAVE_DECL_PUTCHAR_UNLOCKED 1
44769 _ACEOF
44772 else
44773 cat >>confdefs.h <<_ACEOF
44774 #define HAVE_DECL_PUTCHAR_UNLOCKED 0
44775 _ACEOF
44785 cat >>confdefs.h <<\_ACEOF
44786 #define USE_UNLOCKED_IO 1
44787 _ACEOF
44853 case " $LIBOBJS " in
44854 *" strftime.$ac_objext "* ) ;;
44855 *) LIBOBJS="$LIBOBJS strftime.$ac_objext"
44857 esac
44860 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
44889 cat >>confdefs.h <<\_ACEOF
44890 #define my_strftime nstrftime
44891 _ACEOF
44896 for ac_header in stdlib.h
44898 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
44899 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
44900 { echo "$as_me:$LINENO: checking for $ac_header" >&5
44901 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
44902 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
44903 echo $ECHO_N "(cached) $ECHO_C" >&6
44905 ac_res=`eval echo '${'$as_ac_Header'}'`
44906 { echo "$as_me:$LINENO: result: $ac_res" >&5
44907 echo "${ECHO_T}$ac_res" >&6; }
44908 else
44909 # Is the header compilable?
44910 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
44911 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
44912 cat >conftest.$ac_ext <<_ACEOF
44913 /* confdefs.h. */
44914 _ACEOF
44915 cat confdefs.h >>conftest.$ac_ext
44916 cat >>conftest.$ac_ext <<_ACEOF
44917 /* end confdefs.h. */
44918 $ac_includes_default
44919 #include <$ac_header>
44920 _ACEOF
44921 rm -f conftest.$ac_objext
44922 if { (ac_try="$ac_compile"
44923 case "(($ac_try" in
44924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44925 *) ac_try_echo=$ac_try;;
44926 esac
44927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44928 (eval "$ac_compile") 2>conftest.er1
44929 ac_status=$?
44930 grep -v '^ *+' conftest.er1 >conftest.err
44931 rm -f conftest.er1
44932 cat conftest.err >&5
44933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44934 (exit $ac_status); } &&
44935 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
44936 { (case "(($ac_try" in
44937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44938 *) ac_try_echo=$ac_try;;
44939 esac
44940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44941 (eval "$ac_try") 2>&5
44942 ac_status=$?
44943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44944 (exit $ac_status); }; } &&
44945 { ac_try='test -s conftest.$ac_objext'
44946 { (case "(($ac_try" in
44947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44948 *) ac_try_echo=$ac_try;;
44949 esac
44950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44951 (eval "$ac_try") 2>&5
44952 ac_status=$?
44953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44954 (exit $ac_status); }; }; then
44955 ac_header_compiler=yes
44956 else
44957 echo "$as_me: failed program was:" >&5
44958 sed 's/^/| /' conftest.$ac_ext >&5
44960 ac_header_compiler=no
44963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44964 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44965 echo "${ECHO_T}$ac_header_compiler" >&6; }
44967 # Is the header present?
44968 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
44969 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
44970 cat >conftest.$ac_ext <<_ACEOF
44971 /* confdefs.h. */
44972 _ACEOF
44973 cat confdefs.h >>conftest.$ac_ext
44974 cat >>conftest.$ac_ext <<_ACEOF
44975 /* end confdefs.h. */
44976 #include <$ac_header>
44977 _ACEOF
44978 if { (ac_try="$ac_cpp conftest.$ac_ext"
44979 case "(($ac_try" in
44980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44981 *) ac_try_echo=$ac_try;;
44982 esac
44983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44984 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
44985 ac_status=$?
44986 grep -v '^ *+' conftest.er1 >conftest.err
44987 rm -f conftest.er1
44988 cat conftest.err >&5
44989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44990 (exit $ac_status); } >/dev/null; then
44991 if test -s conftest.err; then
44992 ac_cpp_err=$ac_c_preproc_warn_flag
44993 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
44994 else
44995 ac_cpp_err=
44997 else
44998 ac_cpp_err=yes
45000 if test -z "$ac_cpp_err"; then
45001 ac_header_preproc=yes
45002 else
45003 echo "$as_me: failed program was:" >&5
45004 sed 's/^/| /' conftest.$ac_ext >&5
45006 ac_header_preproc=no
45009 rm -f conftest.err conftest.$ac_ext
45010 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
45011 echo "${ECHO_T}$ac_header_preproc" >&6; }
45013 # So? What about this header?
45014 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
45015 yes:no: )
45016 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
45017 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
45018 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
45019 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
45020 ac_header_preproc=yes
45022 no:yes:* )
45023 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
45024 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
45025 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
45026 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
45027 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
45028 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
45029 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
45030 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
45031 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
45032 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
45033 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
45034 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
45035 ( cat <<\_ASBOX
45036 ## ------------------------------------ ##
45037 ## Report this to bug-coreutils@gnu.org ##
45038 ## ------------------------------------ ##
45039 _ASBOX
45040 ) | sed "s/^/$as_me: WARNING: /" >&2
45042 esac
45043 { echo "$as_me:$LINENO: checking for $ac_header" >&5
45044 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
45045 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
45046 echo $ECHO_N "(cached) $ECHO_C" >&6
45047 else
45048 eval "$as_ac_Header=\$ac_header_preproc"
45050 ac_res=`eval echo '${'$as_ac_Header'}'`
45051 { echo "$as_me:$LINENO: result: $ac_res" >&5
45052 echo "${ECHO_T}$ac_res" >&6; }
45055 if test `eval echo '${'$as_ac_Header'}'` = yes; then
45056 cat >>confdefs.h <<_ACEOF
45057 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
45058 _ACEOF
45062 done
45064 { echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
45065 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; }
45066 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
45067 echo $ECHO_N "(cached) $ECHO_C" >&6
45068 else
45069 if test "$cross_compiling" = yes; then
45070 ac_cv_func_malloc_0_nonnull=no
45071 else
45072 cat >conftest.$ac_ext <<_ACEOF
45073 /* confdefs.h. */
45074 _ACEOF
45075 cat confdefs.h >>conftest.$ac_ext
45076 cat >>conftest.$ac_ext <<_ACEOF
45077 /* end confdefs.h. */
45078 #if STDC_HEADERS || HAVE_STDLIB_H
45079 # include <stdlib.h>
45080 #else
45081 char *malloc ();
45082 #endif
45085 main ()
45087 return ! malloc (0);
45089 return 0;
45091 _ACEOF
45092 rm -f conftest$ac_exeext
45093 if { (ac_try="$ac_link"
45094 case "(($ac_try" in
45095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45096 *) ac_try_echo=$ac_try;;
45097 esac
45098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45099 (eval "$ac_link") 2>&5
45100 ac_status=$?
45101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45102 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
45103 { (case "(($ac_try" in
45104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45105 *) ac_try_echo=$ac_try;;
45106 esac
45107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45108 (eval "$ac_try") 2>&5
45109 ac_status=$?
45110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45111 (exit $ac_status); }; }; then
45112 ac_cv_func_malloc_0_nonnull=yes
45113 else
45114 echo "$as_me: program exited with status $ac_status" >&5
45115 echo "$as_me: failed program was:" >&5
45116 sed 's/^/| /' conftest.$ac_ext >&5
45118 ( exit $ac_status )
45119 ac_cv_func_malloc_0_nonnull=no
45121 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
45126 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
45127 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
45128 if test $ac_cv_func_malloc_0_nonnull = yes; then
45130 cat >>confdefs.h <<\_ACEOF
45131 #define HAVE_MALLOC 1
45132 _ACEOF
45134 else
45135 cat >>confdefs.h <<\_ACEOF
45136 #define HAVE_MALLOC 0
45137 _ACEOF
45139 case " $LIBOBJS " in
45140 *" malloc.$ac_objext "* ) ;;
45141 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
45143 esac
45146 cat >>confdefs.h <<\_ACEOF
45147 #define malloc rpl_malloc
45148 _ACEOF
45154 { echo "$as_me:$LINENO: checking for working memcmp" >&5
45155 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
45156 if test "${ac_cv_func_memcmp_working+set}" = set; then
45157 echo $ECHO_N "(cached) $ECHO_C" >&6
45158 else
45159 if test "$cross_compiling" = yes; then
45160 ac_cv_func_memcmp_working=no
45161 else
45162 cat >conftest.$ac_ext <<_ACEOF
45163 /* confdefs.h. */
45164 _ACEOF
45165 cat confdefs.h >>conftest.$ac_ext
45166 cat >>conftest.$ac_ext <<_ACEOF
45167 /* end confdefs.h. */
45168 $ac_includes_default
45170 main ()
45173 /* Some versions of memcmp are not 8-bit clean. */
45174 char c0 = '\100', c1 = '\200', c2 = '\201';
45175 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
45176 return 1;
45178 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
45179 or more and with at least one buffer not starting on a 4-byte boundary.
45180 William Lewis provided this test program. */
45182 char foo[21];
45183 char bar[21];
45184 int i;
45185 for (i = 0; i < 4; i++)
45187 char *a = foo + i;
45188 char *b = bar + i;
45189 strcpy (a, "--------01111111");
45190 strcpy (b, "--------10000000");
45191 if (memcmp (a, b, 16) >= 0)
45192 return 1;
45194 return 0;
45198 return 0;
45200 _ACEOF
45201 rm -f conftest$ac_exeext
45202 if { (ac_try="$ac_link"
45203 case "(($ac_try" in
45204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45205 *) ac_try_echo=$ac_try;;
45206 esac
45207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45208 (eval "$ac_link") 2>&5
45209 ac_status=$?
45210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45211 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
45212 { (case "(($ac_try" in
45213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45214 *) ac_try_echo=$ac_try;;
45215 esac
45216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45217 (eval "$ac_try") 2>&5
45218 ac_status=$?
45219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45220 (exit $ac_status); }; }; then
45221 ac_cv_func_memcmp_working=yes
45222 else
45223 echo "$as_me: program exited with status $ac_status" >&5
45224 echo "$as_me: failed program was:" >&5
45225 sed 's/^/| /' conftest.$ac_ext >&5
45227 ( exit $ac_status )
45228 ac_cv_func_memcmp_working=no
45230 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
45235 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
45236 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
45237 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
45238 *" memcmp.$ac_objext "* ) ;;
45239 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
45241 esac
45246 if test $ac_cv_func_memcmp_working = no; then
45248 cat >>confdefs.h <<\_ACEOF
45249 #define memcmp rpl_memcmp
45250 _ACEOF
45272 nanosleep_save_libs=$LIBS
45274 # Solaris 2.5.1 needs -lposix4 to get the nanosleep function.
45275 # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
45276 { echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
45277 echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6; }
45278 if test "${ac_cv_search_nanosleep+set}" = set; then
45279 echo $ECHO_N "(cached) $ECHO_C" >&6
45280 else
45281 ac_func_search_save_LIBS=$LIBS
45282 cat >conftest.$ac_ext <<_ACEOF
45283 /* confdefs.h. */
45284 _ACEOF
45285 cat confdefs.h >>conftest.$ac_ext
45286 cat >>conftest.$ac_ext <<_ACEOF
45287 /* end confdefs.h. */
45289 /* Override any GCC internal prototype to avoid an error.
45290 Use char because int might match the return type of a GCC
45291 builtin and then its argument prototype would still apply. */
45292 #ifdef __cplusplus
45293 extern "C"
45294 #endif
45295 char nanosleep ();
45297 main ()
45299 return nanosleep ();
45301 return 0;
45303 _ACEOF
45304 for ac_lib in '' rt posix4; do
45305 if test -z "$ac_lib"; then
45306 ac_res="none required"
45307 else
45308 ac_res=-l$ac_lib
45309 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
45311 rm -f conftest.$ac_objext conftest$ac_exeext
45312 if { (ac_try="$ac_link"
45313 case "(($ac_try" in
45314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45315 *) ac_try_echo=$ac_try;;
45316 esac
45317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45318 (eval "$ac_link") 2>conftest.er1
45319 ac_status=$?
45320 grep -v '^ *+' conftest.er1 >conftest.err
45321 rm -f conftest.er1
45322 cat conftest.err >&5
45323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45324 (exit $ac_status); } &&
45325 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
45326 { (case "(($ac_try" in
45327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45328 *) ac_try_echo=$ac_try;;
45329 esac
45330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45331 (eval "$ac_try") 2>&5
45332 ac_status=$?
45333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45334 (exit $ac_status); }; } &&
45335 { ac_try='test -s conftest$ac_exeext'
45336 { (case "(($ac_try" in
45337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45338 *) ac_try_echo=$ac_try;;
45339 esac
45340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45341 (eval "$ac_try") 2>&5
45342 ac_status=$?
45343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45344 (exit $ac_status); }; }; then
45345 ac_cv_search_nanosleep=$ac_res
45346 else
45347 echo "$as_me: failed program was:" >&5
45348 sed 's/^/| /' conftest.$ac_ext >&5
45353 rm -f core conftest.err conftest.$ac_objext \
45354 conftest$ac_exeext
45355 if test "${ac_cv_search_nanosleep+set}" = set; then
45356 break
45358 done
45359 if test "${ac_cv_search_nanosleep+set}" = set; then
45361 else
45362 ac_cv_search_nanosleep=no
45364 rm conftest.$ac_ext
45365 LIBS=$ac_func_search_save_LIBS
45367 { echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
45368 echo "${ECHO_T}$ac_cv_search_nanosleep" >&6; }
45369 ac_res=$ac_cv_search_nanosleep
45370 if test "$ac_res" != no; then
45371 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
45372 test "$ac_cv_search_nanosleep" = "none required" ||
45373 LIB_NANOSLEEP=$ac_cv_search_nanosleep
45378 { echo "$as_me:$LINENO: checking for nanosleep" >&5
45379 echo $ECHO_N "checking for nanosleep... $ECHO_C" >&6; }
45380 if test "${gl_cv_func_nanosleep+set}" = set; then
45381 echo $ECHO_N "(cached) $ECHO_C" >&6
45382 else
45384 cat >conftest.$ac_ext <<_ACEOF
45385 /* confdefs.h. */
45386 _ACEOF
45387 cat confdefs.h >>conftest.$ac_ext
45388 cat >>conftest.$ac_ext <<_ACEOF
45389 /* end confdefs.h. */
45391 # if TIME_WITH_SYS_TIME
45392 # include <sys/time.h>
45393 # include <time.h>
45394 # else
45395 # if HAVE_SYS_TIME_H
45396 # include <sys/time.h>
45397 # else
45398 # include <time.h>
45399 # endif
45400 # endif
45403 main ()
45405 struct timespec ts_sleep, ts_remaining;
45406 ts_sleep.tv_sec = 0;
45407 ts_sleep.tv_nsec = 1;
45408 return nanosleep (&ts_sleep, &ts_remaining) < 0;
45411 _ACEOF
45412 rm -f conftest.$ac_objext conftest$ac_exeext
45413 if { (ac_try="$ac_link"
45414 case "(($ac_try" in
45415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45416 *) ac_try_echo=$ac_try;;
45417 esac
45418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45419 (eval "$ac_link") 2>conftest.er1
45420 ac_status=$?
45421 grep -v '^ *+' conftest.er1 >conftest.err
45422 rm -f conftest.er1
45423 cat conftest.err >&5
45424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45425 (exit $ac_status); } &&
45426 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
45427 { (case "(($ac_try" in
45428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45429 *) ac_try_echo=$ac_try;;
45430 esac
45431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45432 (eval "$ac_try") 2>&5
45433 ac_status=$?
45434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45435 (exit $ac_status); }; } &&
45436 { ac_try='test -s conftest$ac_exeext'
45437 { (case "(($ac_try" in
45438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45439 *) ac_try_echo=$ac_try;;
45440 esac
45441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45442 (eval "$ac_try") 2>&5
45443 ac_status=$?
45444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45445 (exit $ac_status); }; }; then
45446 gl_cv_func_nanosleep=yes
45447 else
45448 echo "$as_me: failed program was:" >&5
45449 sed 's/^/| /' conftest.$ac_ext >&5
45451 gl_cv_func_nanosleep=no
45454 rm -f core conftest.err conftest.$ac_objext \
45455 conftest$ac_exeext conftest.$ac_ext
45458 { echo "$as_me:$LINENO: result: $gl_cv_func_nanosleep" >&5
45459 echo "${ECHO_T}$gl_cv_func_nanosleep" >&6; }
45460 if test $gl_cv_func_nanosleep = no; then
45461 case " $LIBOBJS " in
45462 *" nanosleep.$ac_objext "* ) ;;
45463 *) LIBOBJS="$LIBOBJS nanosleep.$ac_objext"
45465 esac
45468 cat >>confdefs.h <<\_ACEOF
45469 #define nanosleep rpl_nanosleep
45470 _ACEOF
45488 LIBS=$nanosleep_save_libs
45490 { echo "$as_me:$LINENO: checking for SVID conformant putenv" >&5
45491 echo $ECHO_N "checking for SVID conformant putenv... $ECHO_C" >&6; }
45492 if test "${jm_cv_func_svid_putenv+set}" = set; then
45493 echo $ECHO_N "(cached) $ECHO_C" >&6
45494 else
45495 if test "$cross_compiling" = yes; then
45496 jm_cv_func_svid_putenv=no
45497 else
45498 cat >conftest.$ac_ext <<_ACEOF
45499 /* confdefs.h. */
45500 _ACEOF
45501 cat confdefs.h >>conftest.$ac_ext
45502 cat >>conftest.$ac_ext <<_ACEOF
45503 /* end confdefs.h. */
45506 main ()
45508 /* Put it in env. */
45509 if (putenv ("CONFTEST_putenv=val"))
45510 return 1;
45512 /* Try to remove it. */
45513 if (putenv ("CONFTEST_putenv"))
45514 return 1;
45516 /* Make sure it was deleted. */
45517 if (getenv ("CONFTEST_putenv") != 0)
45518 return 1;
45520 return 0;
45523 _ACEOF
45524 rm -f conftest$ac_exeext
45525 if { (ac_try="$ac_link"
45526 case "(($ac_try" in
45527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45528 *) ac_try_echo=$ac_try;;
45529 esac
45530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45531 (eval "$ac_link") 2>&5
45532 ac_status=$?
45533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45534 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
45535 { (case "(($ac_try" in
45536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45537 *) ac_try_echo=$ac_try;;
45538 esac
45539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45540 (eval "$ac_try") 2>&5
45541 ac_status=$?
45542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45543 (exit $ac_status); }; }; then
45544 jm_cv_func_svid_putenv=yes
45545 else
45546 echo "$as_me: program exited with status $ac_status" >&5
45547 echo "$as_me: failed program was:" >&5
45548 sed 's/^/| /' conftest.$ac_ext >&5
45550 ( exit $ac_status )
45551 jm_cv_func_svid_putenv=no
45553 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
45559 { echo "$as_me:$LINENO: result: $jm_cv_func_svid_putenv" >&5
45560 echo "${ECHO_T}$jm_cv_func_svid_putenv" >&6; }
45561 if test $jm_cv_func_svid_putenv = no; then
45562 case " $LIBOBJS " in
45563 *" putenv.$ac_objext "* ) ;;
45564 *) LIBOBJS="$LIBOBJS putenv.$ac_objext"
45566 esac
45569 cat >>confdefs.h <<\_ACEOF
45570 #define putenv rpl_putenv
45571 _ACEOF
45576 for ac_header in stdlib.h
45578 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
45579 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
45580 { echo "$as_me:$LINENO: checking for $ac_header" >&5
45581 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
45582 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
45583 echo $ECHO_N "(cached) $ECHO_C" >&6
45585 ac_res=`eval echo '${'$as_ac_Header'}'`
45586 { echo "$as_me:$LINENO: result: $ac_res" >&5
45587 echo "${ECHO_T}$ac_res" >&6; }
45588 else
45589 # Is the header compilable?
45590 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
45591 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
45592 cat >conftest.$ac_ext <<_ACEOF
45593 /* confdefs.h. */
45594 _ACEOF
45595 cat confdefs.h >>conftest.$ac_ext
45596 cat >>conftest.$ac_ext <<_ACEOF
45597 /* end confdefs.h. */
45598 $ac_includes_default
45599 #include <$ac_header>
45600 _ACEOF
45601 rm -f conftest.$ac_objext
45602 if { (ac_try="$ac_compile"
45603 case "(($ac_try" in
45604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45605 *) ac_try_echo=$ac_try;;
45606 esac
45607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45608 (eval "$ac_compile") 2>conftest.er1
45609 ac_status=$?
45610 grep -v '^ *+' conftest.er1 >conftest.err
45611 rm -f conftest.er1
45612 cat conftest.err >&5
45613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45614 (exit $ac_status); } &&
45615 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
45616 { (case "(($ac_try" in
45617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45618 *) ac_try_echo=$ac_try;;
45619 esac
45620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45621 (eval "$ac_try") 2>&5
45622 ac_status=$?
45623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45624 (exit $ac_status); }; } &&
45625 { ac_try='test -s conftest.$ac_objext'
45626 { (case "(($ac_try" in
45627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45628 *) ac_try_echo=$ac_try;;
45629 esac
45630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45631 (eval "$ac_try") 2>&5
45632 ac_status=$?
45633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45634 (exit $ac_status); }; }; then
45635 ac_header_compiler=yes
45636 else
45637 echo "$as_me: failed program was:" >&5
45638 sed 's/^/| /' conftest.$ac_ext >&5
45640 ac_header_compiler=no
45643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45644 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
45645 echo "${ECHO_T}$ac_header_compiler" >&6; }
45647 # Is the header present?
45648 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
45649 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
45650 cat >conftest.$ac_ext <<_ACEOF
45651 /* confdefs.h. */
45652 _ACEOF
45653 cat confdefs.h >>conftest.$ac_ext
45654 cat >>conftest.$ac_ext <<_ACEOF
45655 /* end confdefs.h. */
45656 #include <$ac_header>
45657 _ACEOF
45658 if { (ac_try="$ac_cpp conftest.$ac_ext"
45659 case "(($ac_try" in
45660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45661 *) ac_try_echo=$ac_try;;
45662 esac
45663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45664 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
45665 ac_status=$?
45666 grep -v '^ *+' conftest.er1 >conftest.err
45667 rm -f conftest.er1
45668 cat conftest.err >&5
45669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45670 (exit $ac_status); } >/dev/null; then
45671 if test -s conftest.err; then
45672 ac_cpp_err=$ac_c_preproc_warn_flag
45673 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
45674 else
45675 ac_cpp_err=
45677 else
45678 ac_cpp_err=yes
45680 if test -z "$ac_cpp_err"; then
45681 ac_header_preproc=yes
45682 else
45683 echo "$as_me: failed program was:" >&5
45684 sed 's/^/| /' conftest.$ac_ext >&5
45686 ac_header_preproc=no
45689 rm -f conftest.err conftest.$ac_ext
45690 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
45691 echo "${ECHO_T}$ac_header_preproc" >&6; }
45693 # So? What about this header?
45694 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
45695 yes:no: )
45696 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
45697 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
45698 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
45699 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
45700 ac_header_preproc=yes
45702 no:yes:* )
45703 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
45704 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
45705 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
45706 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
45707 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
45708 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
45709 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
45710 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
45711 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
45712 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
45713 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
45714 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
45715 ( cat <<\_ASBOX
45716 ## ------------------------------------ ##
45717 ## Report this to bug-coreutils@gnu.org ##
45718 ## ------------------------------------ ##
45719 _ASBOX
45720 ) | sed "s/^/$as_me: WARNING: /" >&2
45722 esac
45723 { echo "$as_me:$LINENO: checking for $ac_header" >&5
45724 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
45725 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
45726 echo $ECHO_N "(cached) $ECHO_C" >&6
45727 else
45728 eval "$as_ac_Header=\$ac_header_preproc"
45730 ac_res=`eval echo '${'$as_ac_Header'}'`
45731 { echo "$as_me:$LINENO: result: $ac_res" >&5
45732 echo "${ECHO_T}$ac_res" >&6; }
45735 if test `eval echo '${'$as_ac_Header'}'` = yes; then
45736 cat >>confdefs.h <<_ACEOF
45737 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
45738 _ACEOF
45742 done
45744 { echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
45745 echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6; }
45746 if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
45747 echo $ECHO_N "(cached) $ECHO_C" >&6
45748 else
45749 if test "$cross_compiling" = yes; then
45750 ac_cv_func_realloc_0_nonnull=no
45751 else
45752 cat >conftest.$ac_ext <<_ACEOF
45753 /* confdefs.h. */
45754 _ACEOF
45755 cat confdefs.h >>conftest.$ac_ext
45756 cat >>conftest.$ac_ext <<_ACEOF
45757 /* end confdefs.h. */
45758 #if STDC_HEADERS || HAVE_STDLIB_H
45759 # include <stdlib.h>
45760 #else
45761 char *realloc ();
45762 #endif
45765 main ()
45767 return ! realloc (0, 0);
45769 return 0;
45771 _ACEOF
45772 rm -f conftest$ac_exeext
45773 if { (ac_try="$ac_link"
45774 case "(($ac_try" in
45775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45776 *) ac_try_echo=$ac_try;;
45777 esac
45778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45779 (eval "$ac_link") 2>&5
45780 ac_status=$?
45781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45782 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
45783 { (case "(($ac_try" in
45784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45785 *) ac_try_echo=$ac_try;;
45786 esac
45787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45788 (eval "$ac_try") 2>&5
45789 ac_status=$?
45790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45791 (exit $ac_status); }; }; then
45792 ac_cv_func_realloc_0_nonnull=yes
45793 else
45794 echo "$as_me: program exited with status $ac_status" >&5
45795 echo "$as_me: failed program was:" >&5
45796 sed 's/^/| /' conftest.$ac_ext >&5
45798 ( exit $ac_status )
45799 ac_cv_func_realloc_0_nonnull=no
45801 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
45806 { echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
45807 echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6; }
45808 if test $ac_cv_func_realloc_0_nonnull = yes; then
45810 cat >>confdefs.h <<\_ACEOF
45811 #define HAVE_REALLOC 1
45812 _ACEOF
45814 else
45815 cat >>confdefs.h <<\_ACEOF
45816 #define HAVE_REALLOC 0
45817 _ACEOF
45819 case " $LIBOBJS " in
45820 *" realloc.$ac_objext "* ) ;;
45821 *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
45823 esac
45826 cat >>confdefs.h <<\_ACEOF
45827 #define realloc rpl_realloc
45828 _ACEOF
45834 { echo "$as_me:$LINENO: checking whether utime accepts a null argument" >&5
45835 echo $ECHO_N "checking whether utime accepts a null argument... $ECHO_C" >&6; }
45836 if test "${ac_cv_func_utime_null+set}" = set; then
45837 echo $ECHO_N "(cached) $ECHO_C" >&6
45838 else
45839 rm -f conftest.data; >conftest.data
45840 # Sequent interprets utime(file, 0) to mean use start of epoch. Wrong.
45841 if test "$cross_compiling" = yes; then
45842 ac_cv_func_utime_null=no
45843 else
45844 cat >conftest.$ac_ext <<_ACEOF
45845 /* confdefs.h. */
45846 _ACEOF
45847 cat confdefs.h >>conftest.$ac_ext
45848 cat >>conftest.$ac_ext <<_ACEOF
45849 /* end confdefs.h. */
45850 $ac_includes_default
45852 main ()
45854 struct stat s, t;
45855 return ! (stat ("conftest.data", &s) == 0
45856 && utime ("conftest.data", 0) == 0
45857 && stat ("conftest.data", &t) == 0
45858 && t.st_mtime >= s.st_mtime
45859 && t.st_mtime - s.st_mtime < 120);
45861 return 0;
45863 _ACEOF
45864 rm -f conftest$ac_exeext
45865 if { (ac_try="$ac_link"
45866 case "(($ac_try" in
45867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45868 *) ac_try_echo=$ac_try;;
45869 esac
45870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45871 (eval "$ac_link") 2>&5
45872 ac_status=$?
45873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45874 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
45875 { (case "(($ac_try" in
45876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45877 *) ac_try_echo=$ac_try;;
45878 esac
45879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45880 (eval "$ac_try") 2>&5
45881 ac_status=$?
45882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45883 (exit $ac_status); }; }; then
45884 ac_cv_func_utime_null=yes
45885 else
45886 echo "$as_me: program exited with status $ac_status" >&5
45887 echo "$as_me: failed program was:" >&5
45888 sed 's/^/| /' conftest.$ac_ext >&5
45890 ( exit $ac_status )
45891 ac_cv_func_utime_null=no
45893 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
45898 { echo "$as_me:$LINENO: result: $ac_cv_func_utime_null" >&5
45899 echo "${ECHO_T}$ac_cv_func_utime_null" >&6; }
45900 if test $ac_cv_func_utime_null = yes; then
45902 cat >>confdefs.h <<\_ACEOF
45903 #define HAVE_UTIME_NULL 1
45904 _ACEOF
45907 rm -f conftest.data
45911 if test $ac_cv_func_utime_null = no; then
45912 case " $LIBOBJS " in
45913 *" utime.$ac_objext "* ) ;;
45914 *) LIBOBJS="$LIBOBJS utime.$ac_objext"
45916 esac
45919 cat >>confdefs.h <<\_ACEOF
45920 #define utime rpl_utime
45921 _ACEOF
45931 { echo "$as_me:$LINENO: checking whether utimes accepts a null argument" >&5
45932 echo $ECHO_N "checking whether utimes accepts a null argument... $ECHO_C" >&6; }
45933 if test "${ac_cv_func_utimes_null+set}" = set; then
45934 echo $ECHO_N "(cached) $ECHO_C" >&6
45935 else
45936 rm -f conftest.data; > conftest.data
45937 if test "$cross_compiling" = yes; then
45938 ac_cv_func_utimes_null=no
45939 else
45940 cat >conftest.$ac_ext <<_ACEOF
45941 /* confdefs.h. */
45942 _ACEOF
45943 cat confdefs.h >>conftest.$ac_ext
45944 cat >>conftest.$ac_ext <<_ACEOF
45945 /* end confdefs.h. */
45947 /* In case stat has been defined to rpl_stat, undef it here. */
45948 #undef stat
45949 #include <sys/types.h>
45950 #include <sys/stat.h>
45951 #include <sys/time.h>
45953 main () {
45954 struct stat s, t;
45955 return ! (stat ("conftest.data", &s) == 0
45956 && utimes ("conftest.data", 0) == 0
45957 && stat ("conftest.data", &t) == 0
45958 && t.st_mtime >= s.st_mtime
45959 && t.st_mtime - s.st_mtime < 120));
45961 _ACEOF
45962 rm -f conftest$ac_exeext
45963 if { (ac_try="$ac_link"
45964 case "(($ac_try" in
45965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45966 *) ac_try_echo=$ac_try;;
45967 esac
45968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45969 (eval "$ac_link") 2>&5
45970 ac_status=$?
45971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45972 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
45973 { (case "(($ac_try" in
45974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45975 *) ac_try_echo=$ac_try;;
45976 esac
45977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45978 (eval "$ac_try") 2>&5
45979 ac_status=$?
45980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45981 (exit $ac_status); }; }; then
45982 ac_cv_func_utimes_null=yes
45983 else
45984 echo "$as_me: program exited with status $ac_status" >&5
45985 echo "$as_me: failed program was:" >&5
45986 sed 's/^/| /' conftest.$ac_ext >&5
45988 ( exit $ac_status )
45989 ac_cv_func_utimes_null=no
45991 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
45995 rm -f core core.* *.core
45997 { echo "$as_me:$LINENO: result: $ac_cv_func_utimes_null" >&5
45998 echo "${ECHO_T}$ac_cv_func_utimes_null" >&6; }
46000 if test $ac_cv_func_utimes_null = yes; then
46002 cat >>confdefs.h <<\_ACEOF
46003 #define HAVE_UTIMES_NULL 1
46004 _ACEOF
46021 { echo "$as_me:$LINENO: checking whether rename is broken" >&5
46022 echo $ECHO_N "checking whether rename is broken... $ECHO_C" >&6; }
46023 if test "${vb_cv_func_rename_trailing_slash_bug+set}" = set; then
46024 echo $ECHO_N "(cached) $ECHO_C" >&6
46025 else
46027 rm -rf conftest.d1 conftest.d2
46028 mkdir conftest.d1 ||
46029 { { echo "$as_me:$LINENO: error: cannot create temporary directory" >&5
46030 echo "$as_me: error: cannot create temporary directory" >&2;}
46031 { (exit 1); exit 1; }; }
46032 if test "$cross_compiling" = yes; then
46033 vb_cv_func_rename_trailing_slash_bug=yes
46034 else
46035 cat >conftest.$ac_ext <<_ACEOF
46036 /* confdefs.h. */
46037 _ACEOF
46038 cat confdefs.h >>conftest.$ac_ext
46039 cat >>conftest.$ac_ext <<_ACEOF
46040 /* end confdefs.h. */
46042 # include <stdio.h>
46043 # include <stdlib.h>
46045 main ()
46047 exit (rename ("conftest.d1/", "conftest.d2") ? 1 : 0);
46050 _ACEOF
46051 rm -f conftest$ac_exeext
46052 if { (ac_try="$ac_link"
46053 case "(($ac_try" in
46054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46055 *) ac_try_echo=$ac_try;;
46056 esac
46057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46058 (eval "$ac_link") 2>&5
46059 ac_status=$?
46060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46061 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
46062 { (case "(($ac_try" in
46063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46064 *) ac_try_echo=$ac_try;;
46065 esac
46066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46067 (eval "$ac_try") 2>&5
46068 ac_status=$?
46069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46070 (exit $ac_status); }; }; then
46071 vb_cv_func_rename_trailing_slash_bug=no
46072 else
46073 echo "$as_me: program exited with status $ac_status" >&5
46074 echo "$as_me: failed program was:" >&5
46075 sed 's/^/| /' conftest.$ac_ext >&5
46077 ( exit $ac_status )
46078 vb_cv_func_rename_trailing_slash_bug=yes
46080 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
46085 rm -rf conftest.d1 conftest.d2
46088 { echo "$as_me:$LINENO: result: $vb_cv_func_rename_trailing_slash_bug" >&5
46089 echo "${ECHO_T}$vb_cv_func_rename_trailing_slash_bug" >&6; }
46090 if test $vb_cv_func_rename_trailing_slash_bug = yes; then
46091 case " $LIBOBJS " in
46092 *" rename.$ac_objext "* ) ;;
46093 *) LIBOBJS="$LIBOBJS rename.$ac_objext"
46095 esac
46098 cat >>confdefs.h <<\_ACEOF
46099 #define rename rpl_rename
46100 _ACEOF
46103 cat >>confdefs.h <<\_ACEOF
46104 #define RENAME_TRAILING_SLASH_BUG 1
46105 _ACEOF
46118 # No system provides these functions; compile them unconditionally.
46119 case " $LIBOBJS " in
46120 *" mkdirat.$ac_objext "* ) ;;
46121 *) LIBOBJS="$LIBOBJS mkdirat.$ac_objext"
46123 esac
46125 case " $LIBOBJS " in
46126 *" fchmodat.$ac_objext "* ) ;;
46127 *) LIBOBJS="$LIBOBJS fchmodat.$ac_objext"
46129 esac
46132 case " $LIBOBJS " in
46133 *" openat-die.$ac_objext "* ) ;;
46134 *) LIBOBJS="$LIBOBJS openat-die.$ac_objext"
46136 esac
46152 for ac_func in openat
46154 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46155 { echo "$as_me:$LINENO: checking for $ac_func" >&5
46156 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
46157 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
46158 echo $ECHO_N "(cached) $ECHO_C" >&6
46159 else
46160 cat >conftest.$ac_ext <<_ACEOF
46161 /* confdefs.h. */
46162 _ACEOF
46163 cat confdefs.h >>conftest.$ac_ext
46164 cat >>conftest.$ac_ext <<_ACEOF
46165 /* end confdefs.h. */
46166 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46167 For example, HP-UX 11i <limits.h> declares gettimeofday. */
46168 #define $ac_func innocuous_$ac_func
46170 /* System header to define __stub macros and hopefully few prototypes,
46171 which can conflict with char $ac_func (); below.
46172 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46173 <limits.h> exists even on freestanding compilers. */
46175 #ifdef __STDC__
46176 # include <limits.h>
46177 #else
46178 # include <assert.h>
46179 #endif
46181 #undef $ac_func
46183 /* Override any GCC internal prototype to avoid an error.
46184 Use char because int might match the return type of a GCC
46185 builtin and then its argument prototype would still apply. */
46186 #ifdef __cplusplus
46187 extern "C"
46188 #endif
46189 char $ac_func ();
46190 /* The GNU C library defines this for functions which it implements
46191 to always fail with ENOSYS. Some functions are actually named
46192 something starting with __ and the normal name is an alias. */
46193 #if defined __stub_$ac_func || defined __stub___$ac_func
46194 choke me
46195 #endif
46198 main ()
46200 return $ac_func ();
46202 return 0;
46204 _ACEOF
46205 rm -f conftest.$ac_objext conftest$ac_exeext
46206 if { (ac_try="$ac_link"
46207 case "(($ac_try" in
46208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46209 *) ac_try_echo=$ac_try;;
46210 esac
46211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46212 (eval "$ac_link") 2>conftest.er1
46213 ac_status=$?
46214 grep -v '^ *+' conftest.er1 >conftest.err
46215 rm -f conftest.er1
46216 cat conftest.err >&5
46217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46218 (exit $ac_status); } &&
46219 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
46220 { (case "(($ac_try" in
46221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46222 *) ac_try_echo=$ac_try;;
46223 esac
46224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46225 (eval "$ac_try") 2>&5
46226 ac_status=$?
46227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46228 (exit $ac_status); }; } &&
46229 { ac_try='test -s conftest$ac_exeext'
46230 { (case "(($ac_try" in
46231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46232 *) ac_try_echo=$ac_try;;
46233 esac
46234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46235 (eval "$ac_try") 2>&5
46236 ac_status=$?
46237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46238 (exit $ac_status); }; }; then
46239 eval "$as_ac_var=yes"
46240 else
46241 echo "$as_me: failed program was:" >&5
46242 sed 's/^/| /' conftest.$ac_ext >&5
46244 eval "$as_ac_var=no"
46247 rm -f core conftest.err conftest.$ac_objext \
46248 conftest$ac_exeext conftest.$ac_ext
46250 ac_res=`eval echo '${'$as_ac_var'}'`
46251 { echo "$as_me:$LINENO: result: $ac_res" >&5
46252 echo "${ECHO_T}$ac_res" >&6; }
46253 if test `eval echo '${'$as_ac_var'}'` = yes; then
46254 cat >>confdefs.h <<_ACEOF
46255 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46256 _ACEOF
46258 else
46259 case " $LIBOBJS " in
46260 *" $ac_func.$ac_objext "* ) ;;
46261 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
46263 esac
46266 done
46269 case $ac_cv_func_openat in
46270 yes) ;;
46273 cat >>confdefs.h <<\_ACEOF
46274 #define __OPENAT_PREFIX rpl_
46275 _ACEOF
46280 esac
46285 case " $LIBOBJS " in
46286 *" fts.$ac_objext "* ) ;;
46287 *) LIBOBJS="$LIBOBJS fts.$ac_objext"
46289 esac
46294 # Checks for header files.
46307 case " $LIBOBJS " in
46308 *" memcasecmp.$ac_objext "* ) ;;
46309 *) LIBOBJS="$LIBOBJS memcasecmp.$ac_objext"
46311 esac
46316 case " $LIBOBJS " in
46317 *" argmatch.$ac_objext "* ) ;;
46318 *) LIBOBJS="$LIBOBJS argmatch.$ac_objext"
46320 esac
46331 case " $LIBOBJS " in
46332 *" cycle-check.$ac_objext "* ) ;;
46333 *) LIBOBJS="$LIBOBJS cycle-check.$ac_objext"
46335 esac
46344 case " $LIBOBJS " in
46345 *" euidaccess-stat.$ac_objext "* ) ;;
46346 *) LIBOBJS="$LIBOBJS euidaccess-stat.$ac_objext"
46348 esac
46352 # We don't yet use c-stack.c.
46353 # AC_REQUIRE([gl_C_STACK])
46527 for ac_func in dirfd
46529 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46530 { echo "$as_me:$LINENO: checking for $ac_func" >&5
46531 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
46532 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
46533 echo $ECHO_N "(cached) $ECHO_C" >&6
46534 else
46535 cat >conftest.$ac_ext <<_ACEOF
46536 /* confdefs.h. */
46537 _ACEOF
46538 cat confdefs.h >>conftest.$ac_ext
46539 cat >>conftest.$ac_ext <<_ACEOF
46540 /* end confdefs.h. */
46541 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46542 For example, HP-UX 11i <limits.h> declares gettimeofday. */
46543 #define $ac_func innocuous_$ac_func
46545 /* System header to define __stub macros and hopefully few prototypes,
46546 which can conflict with char $ac_func (); below.
46547 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46548 <limits.h> exists even on freestanding compilers. */
46550 #ifdef __STDC__
46551 # include <limits.h>
46552 #else
46553 # include <assert.h>
46554 #endif
46556 #undef $ac_func
46558 /* Override any GCC internal prototype to avoid an error.
46559 Use char because int might match the return type of a GCC
46560 builtin and then its argument prototype would still apply. */
46561 #ifdef __cplusplus
46562 extern "C"
46563 #endif
46564 char $ac_func ();
46565 /* The GNU C library defines this for functions which it implements
46566 to always fail with ENOSYS. Some functions are actually named
46567 something starting with __ and the normal name is an alias. */
46568 #if defined __stub_$ac_func || defined __stub___$ac_func
46569 choke me
46570 #endif
46573 main ()
46575 return $ac_func ();
46577 return 0;
46579 _ACEOF
46580 rm -f conftest.$ac_objext conftest$ac_exeext
46581 if { (ac_try="$ac_link"
46582 case "(($ac_try" in
46583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46584 *) ac_try_echo=$ac_try;;
46585 esac
46586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46587 (eval "$ac_link") 2>conftest.er1
46588 ac_status=$?
46589 grep -v '^ *+' conftest.er1 >conftest.err
46590 rm -f conftest.er1
46591 cat conftest.err >&5
46592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46593 (exit $ac_status); } &&
46594 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
46595 { (case "(($ac_try" in
46596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46597 *) ac_try_echo=$ac_try;;
46598 esac
46599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46600 (eval "$ac_try") 2>&5
46601 ac_status=$?
46602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46603 (exit $ac_status); }; } &&
46604 { ac_try='test -s conftest$ac_exeext'
46605 { (case "(($ac_try" in
46606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46607 *) ac_try_echo=$ac_try;;
46608 esac
46609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46610 (eval "$ac_try") 2>&5
46611 ac_status=$?
46612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46613 (exit $ac_status); }; }; then
46614 eval "$as_ac_var=yes"
46615 else
46616 echo "$as_me: failed program was:" >&5
46617 sed 's/^/| /' conftest.$ac_ext >&5
46619 eval "$as_ac_var=no"
46622 rm -f core conftest.err conftest.$ac_objext \
46623 conftest$ac_exeext conftest.$ac_ext
46625 ac_res=`eval echo '${'$as_ac_var'}'`
46626 { echo "$as_me:$LINENO: result: $ac_res" >&5
46627 echo "${ECHO_T}$ac_res" >&6; }
46628 if test `eval echo '${'$as_ac_var'}'` = yes; then
46629 cat >>confdefs.h <<_ACEOF
46630 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46631 _ACEOF
46634 done
46636 { echo "$as_me:$LINENO: checking whether dirfd is declared" >&5
46637 echo $ECHO_N "checking whether dirfd is declared... $ECHO_C" >&6; }
46638 if test "${ac_cv_have_decl_dirfd+set}" = set; then
46639 echo $ECHO_N "(cached) $ECHO_C" >&6
46640 else
46641 cat >conftest.$ac_ext <<_ACEOF
46642 /* confdefs.h. */
46643 _ACEOF
46644 cat confdefs.h >>conftest.$ac_ext
46645 cat >>conftest.$ac_ext <<_ACEOF
46646 /* end confdefs.h. */
46647 #include <sys/types.h>
46648 #include <dirent.h>
46651 main ()
46653 #ifndef dirfd
46654 char *p = (char *) dirfd;
46655 return !p;
46656 #endif
46659 return 0;
46661 _ACEOF
46662 rm -f conftest.$ac_objext
46663 if { (ac_try="$ac_compile"
46664 case "(($ac_try" in
46665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46666 *) ac_try_echo=$ac_try;;
46667 esac
46668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46669 (eval "$ac_compile") 2>conftest.er1
46670 ac_status=$?
46671 grep -v '^ *+' conftest.er1 >conftest.err
46672 rm -f conftest.er1
46673 cat conftest.err >&5
46674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46675 (exit $ac_status); } &&
46676 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
46677 { (case "(($ac_try" in
46678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46679 *) ac_try_echo=$ac_try;;
46680 esac
46681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46682 (eval "$ac_try") 2>&5
46683 ac_status=$?
46684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46685 (exit $ac_status); }; } &&
46686 { ac_try='test -s conftest.$ac_objext'
46687 { (case "(($ac_try" in
46688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46689 *) ac_try_echo=$ac_try;;
46690 esac
46691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46692 (eval "$ac_try") 2>&5
46693 ac_status=$?
46694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46695 (exit $ac_status); }; }; then
46696 ac_cv_have_decl_dirfd=yes
46697 else
46698 echo "$as_me: failed program was:" >&5
46699 sed 's/^/| /' conftest.$ac_ext >&5
46701 ac_cv_have_decl_dirfd=no
46704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46706 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_dirfd" >&5
46707 echo "${ECHO_T}$ac_cv_have_decl_dirfd" >&6; }
46708 if test $ac_cv_have_decl_dirfd = yes; then
46710 cat >>confdefs.h <<_ACEOF
46711 #define HAVE_DECL_DIRFD 1
46712 _ACEOF
46715 else
46716 cat >>confdefs.h <<_ACEOF
46717 #define HAVE_DECL_DIRFD 0
46718 _ACEOF
46725 { echo "$as_me:$LINENO: checking whether dirfd is a macro" >&5
46726 echo $ECHO_N "checking whether dirfd is a macro... $ECHO_C" >&6; }
46727 if test "${gl_cv_func_dirfd_macro+set}" = set; then
46728 echo $ECHO_N "(cached) $ECHO_C" >&6
46729 else
46730 cat >conftest.$ac_ext <<_ACEOF
46731 /* confdefs.h. */
46732 _ACEOF
46733 cat confdefs.h >>conftest.$ac_ext
46734 cat >>conftest.$ac_ext <<_ACEOF
46735 /* end confdefs.h. */
46737 #include <sys/types.h>
46738 #include <dirent.h>
46739 #ifdef dirfd
46740 dirent_header_defines_dirfd
46741 #endif
46742 _ACEOF
46743 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46744 $EGREP "dirent_header_defines_dirfd" >/dev/null 2>&1; then
46745 gl_cv_func_dirfd_macro=yes
46746 else
46747 gl_cv_func_dirfd_macro=no
46749 rm -f conftest*
46752 { echo "$as_me:$LINENO: result: $gl_cv_func_dirfd_macro" >&5
46753 echo "${ECHO_T}$gl_cv_func_dirfd_macro" >&6; }
46755 # Use the replacement only if we have no function, macro,
46756 # or declaration with that name.
46757 if test $ac_cv_func_dirfd,$ac_cv_have_decl_dirfd,$gl_cv_func_dirfd_macro \
46758 = no,no,no; then
46760 for ac_func in dirfd
46762 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46763 { echo "$as_me:$LINENO: checking for $ac_func" >&5
46764 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
46765 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
46766 echo $ECHO_N "(cached) $ECHO_C" >&6
46767 else
46768 cat >conftest.$ac_ext <<_ACEOF
46769 /* confdefs.h. */
46770 _ACEOF
46771 cat confdefs.h >>conftest.$ac_ext
46772 cat >>conftest.$ac_ext <<_ACEOF
46773 /* end confdefs.h. */
46774 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46775 For example, HP-UX 11i <limits.h> declares gettimeofday. */
46776 #define $ac_func innocuous_$ac_func
46778 /* System header to define __stub macros and hopefully few prototypes,
46779 which can conflict with char $ac_func (); below.
46780 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46781 <limits.h> exists even on freestanding compilers. */
46783 #ifdef __STDC__
46784 # include <limits.h>
46785 #else
46786 # include <assert.h>
46787 #endif
46789 #undef $ac_func
46791 /* Override any GCC internal prototype to avoid an error.
46792 Use char because int might match the return type of a GCC
46793 builtin and then its argument prototype would still apply. */
46794 #ifdef __cplusplus
46795 extern "C"
46796 #endif
46797 char $ac_func ();
46798 /* The GNU C library defines this for functions which it implements
46799 to always fail with ENOSYS. Some functions are actually named
46800 something starting with __ and the normal name is an alias. */
46801 #if defined __stub_$ac_func || defined __stub___$ac_func
46802 choke me
46803 #endif
46806 main ()
46808 return $ac_func ();
46810 return 0;
46812 _ACEOF
46813 rm -f conftest.$ac_objext conftest$ac_exeext
46814 if { (ac_try="$ac_link"
46815 case "(($ac_try" in
46816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46817 *) ac_try_echo=$ac_try;;
46818 esac
46819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46820 (eval "$ac_link") 2>conftest.er1
46821 ac_status=$?
46822 grep -v '^ *+' conftest.er1 >conftest.err
46823 rm -f conftest.er1
46824 cat conftest.err >&5
46825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46826 (exit $ac_status); } &&
46827 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
46828 { (case "(($ac_try" in
46829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46830 *) ac_try_echo=$ac_try;;
46831 esac
46832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46833 (eval "$ac_try") 2>&5
46834 ac_status=$?
46835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46836 (exit $ac_status); }; } &&
46837 { ac_try='test -s conftest$ac_exeext'
46838 { (case "(($ac_try" in
46839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46840 *) ac_try_echo=$ac_try;;
46841 esac
46842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46843 (eval "$ac_try") 2>&5
46844 ac_status=$?
46845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46846 (exit $ac_status); }; }; then
46847 eval "$as_ac_var=yes"
46848 else
46849 echo "$as_me: failed program was:" >&5
46850 sed 's/^/| /' conftest.$ac_ext >&5
46852 eval "$as_ac_var=no"
46855 rm -f core conftest.err conftest.$ac_objext \
46856 conftest$ac_exeext conftest.$ac_ext
46858 ac_res=`eval echo '${'$as_ac_var'}'`
46859 { echo "$as_me:$LINENO: result: $ac_res" >&5
46860 echo "${ECHO_T}$ac_res" >&6; }
46861 if test `eval echo '${'$as_ac_var'}'` = yes; then
46862 cat >>confdefs.h <<_ACEOF
46863 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46864 _ACEOF
46866 else
46867 case " $LIBOBJS " in
46868 *" $ac_func.$ac_objext "* ) ;;
46869 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
46871 esac
46874 done
46877 { echo "$as_me:$LINENO: checking how to get the file descriptor associated with an open DIR*" >&5
46878 echo $ECHO_N "checking how to get the file descriptor associated with an open DIR*... $ECHO_C" >&6; }
46879 if test "${gl_cv_sys_dir_fd_member_name+set}" = set; then
46880 echo $ECHO_N "(cached) $ECHO_C" >&6
46881 else
46883 dirfd_save_CFLAGS=$CFLAGS
46884 for ac_expr in d_fd dd_fd; do
46886 CFLAGS="$CFLAGS -DDIR_FD_MEMBER_NAME=$ac_expr"
46887 cat >conftest.$ac_ext <<_ACEOF
46888 /* confdefs.h. */
46889 _ACEOF
46890 cat confdefs.h >>conftest.$ac_ext
46891 cat >>conftest.$ac_ext <<_ACEOF
46892 /* end confdefs.h. */
46893 #include <sys/types.h>
46894 #include <dirent.h>
46896 main ()
46898 DIR *dir_p = opendir("."); (void) dir_p->DIR_FD_MEMBER_NAME;
46900 return 0;
46902 _ACEOF
46903 rm -f conftest.$ac_objext
46904 if { (ac_try="$ac_compile"
46905 case "(($ac_try" in
46906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46907 *) ac_try_echo=$ac_try;;
46908 esac
46909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46910 (eval "$ac_compile") 2>conftest.er1
46911 ac_status=$?
46912 grep -v '^ *+' conftest.er1 >conftest.err
46913 rm -f conftest.er1
46914 cat conftest.err >&5
46915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46916 (exit $ac_status); } &&
46917 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
46918 { (case "(($ac_try" in
46919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46920 *) ac_try_echo=$ac_try;;
46921 esac
46922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46923 (eval "$ac_try") 2>&5
46924 ac_status=$?
46925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46926 (exit $ac_status); }; } &&
46927 { ac_try='test -s conftest.$ac_objext'
46928 { (case "(($ac_try" in
46929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46930 *) ac_try_echo=$ac_try;;
46931 esac
46932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46933 (eval "$ac_try") 2>&5
46934 ac_status=$?
46935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46936 (exit $ac_status); }; }; then
46937 dir_fd_found=yes
46939 else
46940 echo "$as_me: failed program was:" >&5
46941 sed 's/^/| /' conftest.$ac_ext >&5
46946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46947 CFLAGS=$dirfd_save_CFLAGS
46948 test "$dir_fd_found" = yes && break
46949 done
46950 test "$dir_fd_found" = yes || ac_expr=no_such_member
46952 gl_cv_sys_dir_fd_member_name=$ac_expr
46956 { echo "$as_me:$LINENO: result: $gl_cv_sys_dir_fd_member_name" >&5
46957 echo "${ECHO_T}$gl_cv_sys_dir_fd_member_name" >&6; }
46958 if test $gl_cv_sys_dir_fd_member_name != no_such_member; then
46960 cat >>confdefs.h <<_ACEOF
46961 #define DIR_FD_MEMBER_NAME $gl_cv_sys_dir_fd_member_name
46962 _ACEOF
46971 case " $LIBOBJS " in
46972 *" acl.$ac_objext "* ) ;;
46973 *) LIBOBJS="$LIBOBJS acl.$ac_objext"
46975 esac
46979 for ac_header in sys/acl.h
46981 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
46982 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
46983 { echo "$as_me:$LINENO: checking for $ac_header" >&5
46984 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
46985 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
46986 echo $ECHO_N "(cached) $ECHO_C" >&6
46988 ac_res=`eval echo '${'$as_ac_Header'}'`
46989 { echo "$as_me:$LINENO: result: $ac_res" >&5
46990 echo "${ECHO_T}$ac_res" >&6; }
46991 else
46992 # Is the header compilable?
46993 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
46994 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
46995 cat >conftest.$ac_ext <<_ACEOF
46996 /* confdefs.h. */
46997 _ACEOF
46998 cat confdefs.h >>conftest.$ac_ext
46999 cat >>conftest.$ac_ext <<_ACEOF
47000 /* end confdefs.h. */
47001 $ac_includes_default
47002 #include <$ac_header>
47003 _ACEOF
47004 rm -f conftest.$ac_objext
47005 if { (ac_try="$ac_compile"
47006 case "(($ac_try" in
47007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47008 *) ac_try_echo=$ac_try;;
47009 esac
47010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47011 (eval "$ac_compile") 2>conftest.er1
47012 ac_status=$?
47013 grep -v '^ *+' conftest.er1 >conftest.err
47014 rm -f conftest.er1
47015 cat conftest.err >&5
47016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47017 (exit $ac_status); } &&
47018 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
47019 { (case "(($ac_try" in
47020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47021 *) ac_try_echo=$ac_try;;
47022 esac
47023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47024 (eval "$ac_try") 2>&5
47025 ac_status=$?
47026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47027 (exit $ac_status); }; } &&
47028 { ac_try='test -s conftest.$ac_objext'
47029 { (case "(($ac_try" in
47030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47031 *) ac_try_echo=$ac_try;;
47032 esac
47033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47034 (eval "$ac_try") 2>&5
47035 ac_status=$?
47036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47037 (exit $ac_status); }; }; then
47038 ac_header_compiler=yes
47039 else
47040 echo "$as_me: failed program was:" >&5
47041 sed 's/^/| /' conftest.$ac_ext >&5
47043 ac_header_compiler=no
47046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47047 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
47048 echo "${ECHO_T}$ac_header_compiler" >&6; }
47050 # Is the header present?
47051 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
47052 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
47053 cat >conftest.$ac_ext <<_ACEOF
47054 /* confdefs.h. */
47055 _ACEOF
47056 cat confdefs.h >>conftest.$ac_ext
47057 cat >>conftest.$ac_ext <<_ACEOF
47058 /* end confdefs.h. */
47059 #include <$ac_header>
47060 _ACEOF
47061 if { (ac_try="$ac_cpp conftest.$ac_ext"
47062 case "(($ac_try" in
47063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47064 *) ac_try_echo=$ac_try;;
47065 esac
47066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47067 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
47068 ac_status=$?
47069 grep -v '^ *+' conftest.er1 >conftest.err
47070 rm -f conftest.er1
47071 cat conftest.err >&5
47072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47073 (exit $ac_status); } >/dev/null; then
47074 if test -s conftest.err; then
47075 ac_cpp_err=$ac_c_preproc_warn_flag
47076 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
47077 else
47078 ac_cpp_err=
47080 else
47081 ac_cpp_err=yes
47083 if test -z "$ac_cpp_err"; then
47084 ac_header_preproc=yes
47085 else
47086 echo "$as_me: failed program was:" >&5
47087 sed 's/^/| /' conftest.$ac_ext >&5
47089 ac_header_preproc=no
47092 rm -f conftest.err conftest.$ac_ext
47093 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
47094 echo "${ECHO_T}$ac_header_preproc" >&6; }
47096 # So? What about this header?
47097 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
47098 yes:no: )
47099 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
47100 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
47101 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
47102 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
47103 ac_header_preproc=yes
47105 no:yes:* )
47106 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
47107 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
47108 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
47109 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
47110 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
47111 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
47112 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
47113 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
47114 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
47115 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
47116 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
47117 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
47118 ( cat <<\_ASBOX
47119 ## ------------------------------------ ##
47120 ## Report this to bug-coreutils@gnu.org ##
47121 ## ------------------------------------ ##
47122 _ASBOX
47123 ) | sed "s/^/$as_me: WARNING: /" >&2
47125 esac
47126 { echo "$as_me:$LINENO: checking for $ac_header" >&5
47127 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
47128 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
47129 echo $ECHO_N "(cached) $ECHO_C" >&6
47130 else
47131 eval "$as_ac_Header=\$ac_header_preproc"
47133 ac_res=`eval echo '${'$as_ac_Header'}'`
47134 { echo "$as_me:$LINENO: result: $ac_res" >&5
47135 echo "${ECHO_T}$ac_res" >&6; }
47138 if test `eval echo '${'$as_ac_Header'}'` = yes; then
47139 cat >>confdefs.h <<_ACEOF
47140 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
47141 _ACEOF
47145 done
47147 if test "$ac_cv_header_sys_acl_h" = yes; then
47148 use_acl=1
47149 else
47150 use_acl=0
47153 cat >>confdefs.h <<_ACEOF
47154 #define USE_ACL $use_acl
47155 _ACEOF
47158 for ac_func in acl
47160 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47161 { echo "$as_me:$LINENO: checking for $ac_func" >&5
47162 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
47163 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
47164 echo $ECHO_N "(cached) $ECHO_C" >&6
47165 else
47166 cat >conftest.$ac_ext <<_ACEOF
47167 /* confdefs.h. */
47168 _ACEOF
47169 cat confdefs.h >>conftest.$ac_ext
47170 cat >>conftest.$ac_ext <<_ACEOF
47171 /* end confdefs.h. */
47172 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47173 For example, HP-UX 11i <limits.h> declares gettimeofday. */
47174 #define $ac_func innocuous_$ac_func
47176 /* System header to define __stub macros and hopefully few prototypes,
47177 which can conflict with char $ac_func (); below.
47178 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47179 <limits.h> exists even on freestanding compilers. */
47181 #ifdef __STDC__
47182 # include <limits.h>
47183 #else
47184 # include <assert.h>
47185 #endif
47187 #undef $ac_func
47189 /* Override any GCC internal prototype to avoid an error.
47190 Use char because int might match the return type of a GCC
47191 builtin and then its argument prototype would still apply. */
47192 #ifdef __cplusplus
47193 extern "C"
47194 #endif
47195 char $ac_func ();
47196 /* The GNU C library defines this for functions which it implements
47197 to always fail with ENOSYS. Some functions are actually named
47198 something starting with __ and the normal name is an alias. */
47199 #if defined __stub_$ac_func || defined __stub___$ac_func
47200 choke me
47201 #endif
47204 main ()
47206 return $ac_func ();
47208 return 0;
47210 _ACEOF
47211 rm -f conftest.$ac_objext conftest$ac_exeext
47212 if { (ac_try="$ac_link"
47213 case "(($ac_try" in
47214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47215 *) ac_try_echo=$ac_try;;
47216 esac
47217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47218 (eval "$ac_link") 2>conftest.er1
47219 ac_status=$?
47220 grep -v '^ *+' conftest.er1 >conftest.err
47221 rm -f conftest.er1
47222 cat conftest.err >&5
47223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47224 (exit $ac_status); } &&
47225 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
47226 { (case "(($ac_try" in
47227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47228 *) ac_try_echo=$ac_try;;
47229 esac
47230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47231 (eval "$ac_try") 2>&5
47232 ac_status=$?
47233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47234 (exit $ac_status); }; } &&
47235 { ac_try='test -s conftest$ac_exeext'
47236 { (case "(($ac_try" in
47237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47238 *) ac_try_echo=$ac_try;;
47239 esac
47240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47241 (eval "$ac_try") 2>&5
47242 ac_status=$?
47243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47244 (exit $ac_status); }; }; then
47245 eval "$as_ac_var=yes"
47246 else
47247 echo "$as_me: failed program was:" >&5
47248 sed 's/^/| /' conftest.$ac_ext >&5
47250 eval "$as_ac_var=no"
47253 rm -f core conftest.err conftest.$ac_objext \
47254 conftest$ac_exeext conftest.$ac_ext
47256 ac_res=`eval echo '${'$as_ac_var'}'`
47257 { echo "$as_me:$LINENO: result: $ac_res" >&5
47258 echo "${ECHO_T}$ac_res" >&6; }
47259 if test `eval echo '${'$as_ac_var'}'` = yes; then
47260 cat >>confdefs.h <<_ACEOF
47261 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47262 _ACEOF
47265 done
47267 ac_save_LIBS="$LIBS"
47268 { echo "$as_me:$LINENO: checking for library containing acl_get_file" >&5
47269 echo $ECHO_N "checking for library containing acl_get_file... $ECHO_C" >&6; }
47270 if test "${ac_cv_search_acl_get_file+set}" = set; then
47271 echo $ECHO_N "(cached) $ECHO_C" >&6
47272 else
47273 ac_func_search_save_LIBS=$LIBS
47274 cat >conftest.$ac_ext <<_ACEOF
47275 /* confdefs.h. */
47276 _ACEOF
47277 cat confdefs.h >>conftest.$ac_ext
47278 cat >>conftest.$ac_ext <<_ACEOF
47279 /* end confdefs.h. */
47281 /* Override any GCC internal prototype to avoid an error.
47282 Use char because int might match the return type of a GCC
47283 builtin and then its argument prototype would still apply. */
47284 #ifdef __cplusplus
47285 extern "C"
47286 #endif
47287 char acl_get_file ();
47289 main ()
47291 return acl_get_file ();
47293 return 0;
47295 _ACEOF
47296 for ac_lib in '' acl; do
47297 if test -z "$ac_lib"; then
47298 ac_res="none required"
47299 else
47300 ac_res=-l$ac_lib
47301 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
47303 rm -f conftest.$ac_objext conftest$ac_exeext
47304 if { (ac_try="$ac_link"
47305 case "(($ac_try" in
47306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47307 *) ac_try_echo=$ac_try;;
47308 esac
47309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47310 (eval "$ac_link") 2>conftest.er1
47311 ac_status=$?
47312 grep -v '^ *+' conftest.er1 >conftest.err
47313 rm -f conftest.er1
47314 cat conftest.err >&5
47315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47316 (exit $ac_status); } &&
47317 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
47318 { (case "(($ac_try" in
47319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47320 *) ac_try_echo=$ac_try;;
47321 esac
47322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47323 (eval "$ac_try") 2>&5
47324 ac_status=$?
47325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47326 (exit $ac_status); }; } &&
47327 { ac_try='test -s conftest$ac_exeext'
47328 { (case "(($ac_try" in
47329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47330 *) ac_try_echo=$ac_try;;
47331 esac
47332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47333 (eval "$ac_try") 2>&5
47334 ac_status=$?
47335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47336 (exit $ac_status); }; }; then
47337 ac_cv_search_acl_get_file=$ac_res
47338 else
47339 echo "$as_me: failed program was:" >&5
47340 sed 's/^/| /' conftest.$ac_ext >&5
47345 rm -f core conftest.err conftest.$ac_objext \
47346 conftest$ac_exeext
47347 if test "${ac_cv_search_acl_get_file+set}" = set; then
47348 break
47350 done
47351 if test "${ac_cv_search_acl_get_file+set}" = set; then
47353 else
47354 ac_cv_search_acl_get_file=no
47356 rm conftest.$ac_ext
47357 LIBS=$ac_func_search_save_LIBS
47359 { echo "$as_me:$LINENO: result: $ac_cv_search_acl_get_file" >&5
47360 echo "${ECHO_T}$ac_cv_search_acl_get_file" >&6; }
47361 ac_res=$ac_cv_search_acl_get_file
47362 if test "$ac_res" != no; then
47363 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
47364 test "$ac_cv_search_acl_get_file" = "none required" ||
47365 LIB_ACL=$ac_cv_search_acl_get_file
47370 for ac_header in acl/libacl.h
47372 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
47373 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
47374 { echo "$as_me:$LINENO: checking for $ac_header" >&5
47375 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
47376 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
47377 echo $ECHO_N "(cached) $ECHO_C" >&6
47379 ac_res=`eval echo '${'$as_ac_Header'}'`
47380 { echo "$as_me:$LINENO: result: $ac_res" >&5
47381 echo "${ECHO_T}$ac_res" >&6; }
47382 else
47383 # Is the header compilable?
47384 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
47385 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
47386 cat >conftest.$ac_ext <<_ACEOF
47387 /* confdefs.h. */
47388 _ACEOF
47389 cat confdefs.h >>conftest.$ac_ext
47390 cat >>conftest.$ac_ext <<_ACEOF
47391 /* end confdefs.h. */
47392 $ac_includes_default
47393 #include <$ac_header>
47394 _ACEOF
47395 rm -f conftest.$ac_objext
47396 if { (ac_try="$ac_compile"
47397 case "(($ac_try" in
47398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47399 *) ac_try_echo=$ac_try;;
47400 esac
47401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47402 (eval "$ac_compile") 2>conftest.er1
47403 ac_status=$?
47404 grep -v '^ *+' conftest.er1 >conftest.err
47405 rm -f conftest.er1
47406 cat conftest.err >&5
47407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47408 (exit $ac_status); } &&
47409 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
47410 { (case "(($ac_try" in
47411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47412 *) ac_try_echo=$ac_try;;
47413 esac
47414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47415 (eval "$ac_try") 2>&5
47416 ac_status=$?
47417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47418 (exit $ac_status); }; } &&
47419 { ac_try='test -s conftest.$ac_objext'
47420 { (case "(($ac_try" in
47421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47422 *) ac_try_echo=$ac_try;;
47423 esac
47424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47425 (eval "$ac_try") 2>&5
47426 ac_status=$?
47427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47428 (exit $ac_status); }; }; then
47429 ac_header_compiler=yes
47430 else
47431 echo "$as_me: failed program was:" >&5
47432 sed 's/^/| /' conftest.$ac_ext >&5
47434 ac_header_compiler=no
47437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47438 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
47439 echo "${ECHO_T}$ac_header_compiler" >&6; }
47441 # Is the header present?
47442 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
47443 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
47444 cat >conftest.$ac_ext <<_ACEOF
47445 /* confdefs.h. */
47446 _ACEOF
47447 cat confdefs.h >>conftest.$ac_ext
47448 cat >>conftest.$ac_ext <<_ACEOF
47449 /* end confdefs.h. */
47450 #include <$ac_header>
47451 _ACEOF
47452 if { (ac_try="$ac_cpp conftest.$ac_ext"
47453 case "(($ac_try" in
47454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47455 *) ac_try_echo=$ac_try;;
47456 esac
47457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47458 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
47459 ac_status=$?
47460 grep -v '^ *+' conftest.er1 >conftest.err
47461 rm -f conftest.er1
47462 cat conftest.err >&5
47463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47464 (exit $ac_status); } >/dev/null; then
47465 if test -s conftest.err; then
47466 ac_cpp_err=$ac_c_preproc_warn_flag
47467 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
47468 else
47469 ac_cpp_err=
47471 else
47472 ac_cpp_err=yes
47474 if test -z "$ac_cpp_err"; then
47475 ac_header_preproc=yes
47476 else
47477 echo "$as_me: failed program was:" >&5
47478 sed 's/^/| /' conftest.$ac_ext >&5
47480 ac_header_preproc=no
47483 rm -f conftest.err conftest.$ac_ext
47484 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
47485 echo "${ECHO_T}$ac_header_preproc" >&6; }
47487 # So? What about this header?
47488 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
47489 yes:no: )
47490 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
47491 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
47492 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
47493 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
47494 ac_header_preproc=yes
47496 no:yes:* )
47497 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
47498 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
47499 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
47500 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
47501 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
47502 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
47503 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
47504 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
47505 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
47506 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
47507 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
47508 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
47509 ( cat <<\_ASBOX
47510 ## ------------------------------------ ##
47511 ## Report this to bug-coreutils@gnu.org ##
47512 ## ------------------------------------ ##
47513 _ASBOX
47514 ) | sed "s/^/$as_me: WARNING: /" >&2
47516 esac
47517 { echo "$as_me:$LINENO: checking for $ac_header" >&5
47518 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
47519 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
47520 echo $ECHO_N "(cached) $ECHO_C" >&6
47521 else
47522 eval "$as_ac_Header=\$ac_header_preproc"
47524 ac_res=`eval echo '${'$as_ac_Header'}'`
47525 { echo "$as_me:$LINENO: result: $ac_res" >&5
47526 echo "${ECHO_T}$ac_res" >&6; }
47529 if test `eval echo '${'$as_ac_Header'}'` = yes; then
47530 cat >>confdefs.h <<_ACEOF
47531 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
47532 _ACEOF
47536 done
47549 for ac_func in acl_get_file acl_get_fd acl_set_file acl_set_fd \
47550 acl_free acl_from_mode acl_from_text acl_to_text \
47551 acl_delete_def_file acl_entries acl_extended_file
47553 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47554 { echo "$as_me:$LINENO: checking for $ac_func" >&5
47555 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
47556 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
47557 echo $ECHO_N "(cached) $ECHO_C" >&6
47558 else
47559 cat >conftest.$ac_ext <<_ACEOF
47560 /* confdefs.h. */
47561 _ACEOF
47562 cat confdefs.h >>conftest.$ac_ext
47563 cat >>conftest.$ac_ext <<_ACEOF
47564 /* end confdefs.h. */
47565 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47566 For example, HP-UX 11i <limits.h> declares gettimeofday. */
47567 #define $ac_func innocuous_$ac_func
47569 /* System header to define __stub macros and hopefully few prototypes,
47570 which can conflict with char $ac_func (); below.
47571 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47572 <limits.h> exists even on freestanding compilers. */
47574 #ifdef __STDC__
47575 # include <limits.h>
47576 #else
47577 # include <assert.h>
47578 #endif
47580 #undef $ac_func
47582 /* Override any GCC internal prototype to avoid an error.
47583 Use char because int might match the return type of a GCC
47584 builtin and then its argument prototype would still apply. */
47585 #ifdef __cplusplus
47586 extern "C"
47587 #endif
47588 char $ac_func ();
47589 /* The GNU C library defines this for functions which it implements
47590 to always fail with ENOSYS. Some functions are actually named
47591 something starting with __ and the normal name is an alias. */
47592 #if defined __stub_$ac_func || defined __stub___$ac_func
47593 choke me
47594 #endif
47597 main ()
47599 return $ac_func ();
47601 return 0;
47603 _ACEOF
47604 rm -f conftest.$ac_objext conftest$ac_exeext
47605 if { (ac_try="$ac_link"
47606 case "(($ac_try" in
47607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47608 *) ac_try_echo=$ac_try;;
47609 esac
47610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47611 (eval "$ac_link") 2>conftest.er1
47612 ac_status=$?
47613 grep -v '^ *+' conftest.er1 >conftest.err
47614 rm -f conftest.er1
47615 cat conftest.err >&5
47616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47617 (exit $ac_status); } &&
47618 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
47619 { (case "(($ac_try" in
47620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47621 *) ac_try_echo=$ac_try;;
47622 esac
47623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47624 (eval "$ac_try") 2>&5
47625 ac_status=$?
47626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47627 (exit $ac_status); }; } &&
47628 { ac_try='test -s conftest$ac_exeext'
47629 { (case "(($ac_try" in
47630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47631 *) ac_try_echo=$ac_try;;
47632 esac
47633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47634 (eval "$ac_try") 2>&5
47635 ac_status=$?
47636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47637 (exit $ac_status); }; }; then
47638 eval "$as_ac_var=yes"
47639 else
47640 echo "$as_me: failed program was:" >&5
47641 sed 's/^/| /' conftest.$ac_ext >&5
47643 eval "$as_ac_var=no"
47646 rm -f core conftest.err conftest.$ac_objext \
47647 conftest$ac_exeext conftest.$ac_ext
47649 ac_res=`eval echo '${'$as_ac_var'}'`
47650 { echo "$as_me:$LINENO: result: $ac_res" >&5
47651 echo "${ECHO_T}$ac_res" >&6; }
47652 if test `eval echo '${'$as_ac_var'}'` = yes; then
47653 cat >>confdefs.h <<_ACEOF
47654 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47655 _ACEOF
47658 done
47660 LIBS="$ac_save_LIBS"
47662 { echo "$as_me:$LINENO: checking for rmdir-not-empty errno value" >&5
47663 echo $ECHO_N "checking for rmdir-not-empty errno value... $ECHO_C" >&6; }
47664 if test "${gl_cv_func_rmdir_errno_not_empty+set}" = set; then
47665 echo $ECHO_N "(cached) $ECHO_C" >&6
47666 else
47668 # Arrange for deletion of the temporary directory this test creates.
47669 ac_clean_files="$ac_clean_files confdir2"
47670 mkdir confdir2; : > confdir2/file
47671 if test "$cross_compiling" = yes; then
47672 gl_cv_func_rmdir_errno_not_empty=ENOTEMPTY
47674 else
47675 cat >conftest.$ac_ext <<_ACEOF
47676 /* confdefs.h. */
47677 _ACEOF
47678 cat confdefs.h >>conftest.$ac_ext
47679 cat >>conftest.$ac_ext <<_ACEOF
47680 /* end confdefs.h. */
47682 #include <stdio.h>
47683 #include <errno.h>
47684 int main ()
47686 FILE *s;
47687 int val;
47688 rmdir ("confdir2");
47689 val = errno;
47690 s = fopen ("confdir2/errno", "w");
47691 fprintf (s, "%d\n", val);
47692 return 0;
47695 _ACEOF
47696 rm -f conftest$ac_exeext
47697 if { (ac_try="$ac_link"
47698 case "(($ac_try" in
47699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47700 *) ac_try_echo=$ac_try;;
47701 esac
47702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47703 (eval "$ac_link") 2>&5
47704 ac_status=$?
47705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47706 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
47707 { (case "(($ac_try" in
47708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47709 *) ac_try_echo=$ac_try;;
47710 esac
47711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47712 (eval "$ac_try") 2>&5
47713 ac_status=$?
47714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47715 (exit $ac_status); }; }; then
47716 gl_cv_func_rmdir_errno_not_empty=`cat confdir2/errno`
47717 else
47718 echo "$as_me: program exited with status $ac_status" >&5
47719 echo "$as_me: failed program was:" >&5
47720 sed 's/^/| /' conftest.$ac_ext >&5
47722 ( exit $ac_status )
47723 gl_cv_func_rmdir_errno_not_empty='configure error in rmdir-errno.m4'
47725 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
47732 { echo "$as_me:$LINENO: result: $gl_cv_func_rmdir_errno_not_empty" >&5
47733 echo "${ECHO_T}$gl_cv_func_rmdir_errno_not_empty" >&6; }
47736 cat >>confdefs.h <<_ACEOF
47737 #define RMDIR_ERRNO_NOT_EMPTY $gl_cv_func_rmdir_errno_not_empty
47738 _ACEOF
47741 { echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
47742 echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6; }
47743 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
47744 echo $ECHO_N "(cached) $ECHO_C" >&6
47745 else
47746 if test "$cross_compiling" = yes; then
47747 ac_cv_func_lstat_empty_string_bug=yes
47748 else
47749 cat >conftest.$ac_ext <<_ACEOF
47750 /* confdefs.h. */
47751 _ACEOF
47752 cat confdefs.h >>conftest.$ac_ext
47753 cat >>conftest.$ac_ext <<_ACEOF
47754 /* end confdefs.h. */
47755 $ac_includes_default
47757 main ()
47759 struct stat sbuf;
47760 return lstat ("", &sbuf) == 0;
47762 return 0;
47764 _ACEOF
47765 rm -f conftest$ac_exeext
47766 if { (ac_try="$ac_link"
47767 case "(($ac_try" in
47768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47769 *) ac_try_echo=$ac_try;;
47770 esac
47771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47772 (eval "$ac_link") 2>&5
47773 ac_status=$?
47774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47775 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
47776 { (case "(($ac_try" in
47777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47778 *) ac_try_echo=$ac_try;;
47779 esac
47780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47781 (eval "$ac_try") 2>&5
47782 ac_status=$?
47783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47784 (exit $ac_status); }; }; then
47785 ac_cv_func_lstat_empty_string_bug=no
47786 else
47787 echo "$as_me: program exited with status $ac_status" >&5
47788 echo "$as_me: failed program was:" >&5
47789 sed 's/^/| /' conftest.$ac_ext >&5
47791 ( exit $ac_status )
47792 ac_cv_func_lstat_empty_string_bug=yes
47794 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
47799 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
47800 echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6; }
47801 if test $ac_cv_func_lstat_empty_string_bug = yes; then
47802 case " $LIBOBJS " in
47803 *" lstat.$ac_objext "* ) ;;
47804 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
47806 esac
47809 cat >>confdefs.h <<_ACEOF
47810 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
47811 _ACEOF
47820 { echo "$as_me:$LINENO: checking for group_member" >&5
47821 echo $ECHO_N "checking for group_member... $ECHO_C" >&6; }
47822 if test "${ac_cv_func_group_member+set}" = set; then
47823 echo $ECHO_N "(cached) $ECHO_C" >&6
47824 else
47825 cat >conftest.$ac_ext <<_ACEOF
47826 /* confdefs.h. */
47827 _ACEOF
47828 cat confdefs.h >>conftest.$ac_ext
47829 cat >>conftest.$ac_ext <<_ACEOF
47830 /* end confdefs.h. */
47831 /* Define group_member to an innocuous variant, in case <limits.h> declares group_member.
47832 For example, HP-UX 11i <limits.h> declares gettimeofday. */
47833 #define group_member innocuous_group_member
47835 /* System header to define __stub macros and hopefully few prototypes,
47836 which can conflict with char group_member (); below.
47837 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47838 <limits.h> exists even on freestanding compilers. */
47840 #ifdef __STDC__
47841 # include <limits.h>
47842 #else
47843 # include <assert.h>
47844 #endif
47846 #undef group_member
47848 /* Override any GCC internal prototype to avoid an error.
47849 Use char because int might match the return type of a GCC
47850 builtin and then its argument prototype would still apply. */
47851 #ifdef __cplusplus
47852 extern "C"
47853 #endif
47854 char group_member ();
47855 /* The GNU C library defines this for functions which it implements
47856 to always fail with ENOSYS. Some functions are actually named
47857 something starting with __ and the normal name is an alias. */
47858 #if defined __stub_group_member || defined __stub___group_member
47859 choke me
47860 #endif
47863 main ()
47865 return group_member ();
47867 return 0;
47869 _ACEOF
47870 rm -f conftest.$ac_objext conftest$ac_exeext
47871 if { (ac_try="$ac_link"
47872 case "(($ac_try" in
47873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47874 *) ac_try_echo=$ac_try;;
47875 esac
47876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47877 (eval "$ac_link") 2>conftest.er1
47878 ac_status=$?
47879 grep -v '^ *+' conftest.er1 >conftest.err
47880 rm -f conftest.er1
47881 cat conftest.err >&5
47882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47883 (exit $ac_status); } &&
47884 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
47885 { (case "(($ac_try" in
47886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47887 *) ac_try_echo=$ac_try;;
47888 esac
47889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47890 (eval "$ac_try") 2>&5
47891 ac_status=$?
47892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47893 (exit $ac_status); }; } &&
47894 { ac_try='test -s conftest$ac_exeext'
47895 { (case "(($ac_try" in
47896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47897 *) ac_try_echo=$ac_try;;
47898 esac
47899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47900 (eval "$ac_try") 2>&5
47901 ac_status=$?
47902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47903 (exit $ac_status); }; }; then
47904 ac_cv_func_group_member=yes
47905 else
47906 echo "$as_me: failed program was:" >&5
47907 sed 's/^/| /' conftest.$ac_ext >&5
47909 ac_cv_func_group_member=no
47912 rm -f core conftest.err conftest.$ac_objext \
47913 conftest$ac_exeext conftest.$ac_ext
47915 { echo "$as_me:$LINENO: result: $ac_cv_func_group_member" >&5
47916 echo "${ECHO_T}$ac_cv_func_group_member" >&6; }
47917 if test $ac_cv_func_group_member = yes; then
47919 else
47921 case " $LIBOBJS " in
47922 *" group-member.$ac_objext "* ) ;;
47923 *) LIBOBJS="$LIBOBJS group-member.$ac_objext"
47925 esac
47934 { echo "$as_me:$LINENO: checking whether link(2) dereferences a symlink specified with a trailing slash" >&5
47935 echo $ECHO_N "checking whether link(2) dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
47936 if test "${jm_ac_cv_func_link_follows_symlink+set}" = set; then
47937 echo $ECHO_N "(cached) $ECHO_C" >&6
47938 else
47940 # Create a regular file.
47941 echo > conftest.file
47942 if test "$cross_compiling" = yes; then
47943 jm_ac_cv_func_link_follows_symlink=yes
47944 else
47945 cat >conftest.$ac_ext <<_ACEOF
47946 /* confdefs.h. */
47947 _ACEOF
47948 cat confdefs.h >>conftest.$ac_ext
47949 cat >>conftest.$ac_ext <<_ACEOF
47950 /* end confdefs.h. */
47952 # include <sys/types.h>
47953 # include <sys/stat.h>
47954 # include <unistd.h>
47956 # define SAME_INODE(Stat_buf_1, Stat_buf_2) \
47957 ((Stat_buf_1).st_ino == (Stat_buf_2).st_ino \
47958 && (Stat_buf_1).st_dev == (Stat_buf_2).st_dev)
47961 main ()
47963 const char *file = "conftest.file";
47964 const char *sym = "conftest.sym";
47965 const char *hard = "conftest.hard";
47966 struct stat sb_file, sb_hard;
47968 /* Create a symlink to the regular file. */
47969 if (symlink (file, sym))
47970 abort ();
47972 /* Create a hard link to that symlink. */
47973 if (link (sym, hard))
47974 abort ();
47976 if (lstat (hard, &sb_hard))
47977 abort ();
47978 if (lstat (file, &sb_file))
47979 abort ();
47981 /* If the dev/inode of hard and file are the same, then
47982 the link call followed the symlink. */
47983 return SAME_INODE (sb_hard, sb_file) ? 0 : 1;
47986 _ACEOF
47987 rm -f conftest$ac_exeext
47988 if { (ac_try="$ac_link"
47989 case "(($ac_try" in
47990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47991 *) ac_try_echo=$ac_try;;
47992 esac
47993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47994 (eval "$ac_link") 2>&5
47995 ac_status=$?
47996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47997 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
47998 { (case "(($ac_try" in
47999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48000 *) ac_try_echo=$ac_try;;
48001 esac
48002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48003 (eval "$ac_try") 2>&5
48004 ac_status=$?
48005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48006 (exit $ac_status); }; }; then
48007 jm_ac_cv_func_link_follows_symlink=yes
48008 else
48009 echo "$as_me: program exited with status $ac_status" >&5
48010 echo "$as_me: failed program was:" >&5
48011 sed 's/^/| /' conftest.$ac_ext >&5
48013 ( exit $ac_status )
48014 jm_ac_cv_func_link_follows_symlink=no
48016 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
48022 { echo "$as_me:$LINENO: result: $jm_ac_cv_func_link_follows_symlink" >&5
48023 echo "${ECHO_T}$jm_ac_cv_func_link_follows_symlink" >&6; }
48024 if test $jm_ac_cv_func_link_follows_symlink = yes; then
48026 cat >>confdefs.h <<\_ACEOF
48027 #define LINK_FOLLOWS_SYMLINKS 1
48028 _ACEOF
48036 for ac_header in stdio_ext.h
48038 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
48039 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
48040 { echo "$as_me:$LINENO: checking for $ac_header" >&5
48041 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
48042 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
48043 echo $ECHO_N "(cached) $ECHO_C" >&6
48045 ac_res=`eval echo '${'$as_ac_Header'}'`
48046 { echo "$as_me:$LINENO: result: $ac_res" >&5
48047 echo "${ECHO_T}$ac_res" >&6; }
48048 else
48049 # Is the header compilable?
48050 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
48051 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
48052 cat >conftest.$ac_ext <<_ACEOF
48053 /* confdefs.h. */
48054 _ACEOF
48055 cat confdefs.h >>conftest.$ac_ext
48056 cat >>conftest.$ac_ext <<_ACEOF
48057 /* end confdefs.h. */
48058 $ac_includes_default
48059 #include <$ac_header>
48060 _ACEOF
48061 rm -f conftest.$ac_objext
48062 if { (ac_try="$ac_compile"
48063 case "(($ac_try" in
48064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48065 *) ac_try_echo=$ac_try;;
48066 esac
48067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48068 (eval "$ac_compile") 2>conftest.er1
48069 ac_status=$?
48070 grep -v '^ *+' conftest.er1 >conftest.err
48071 rm -f conftest.er1
48072 cat conftest.err >&5
48073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48074 (exit $ac_status); } &&
48075 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
48076 { (case "(($ac_try" in
48077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48078 *) ac_try_echo=$ac_try;;
48079 esac
48080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48081 (eval "$ac_try") 2>&5
48082 ac_status=$?
48083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48084 (exit $ac_status); }; } &&
48085 { ac_try='test -s conftest.$ac_objext'
48086 { (case "(($ac_try" in
48087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48088 *) ac_try_echo=$ac_try;;
48089 esac
48090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48091 (eval "$ac_try") 2>&5
48092 ac_status=$?
48093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48094 (exit $ac_status); }; }; then
48095 ac_header_compiler=yes
48096 else
48097 echo "$as_me: failed program was:" >&5
48098 sed 's/^/| /' conftest.$ac_ext >&5
48100 ac_header_compiler=no
48103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48104 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
48105 echo "${ECHO_T}$ac_header_compiler" >&6; }
48107 # Is the header present?
48108 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
48109 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
48110 cat >conftest.$ac_ext <<_ACEOF
48111 /* confdefs.h. */
48112 _ACEOF
48113 cat confdefs.h >>conftest.$ac_ext
48114 cat >>conftest.$ac_ext <<_ACEOF
48115 /* end confdefs.h. */
48116 #include <$ac_header>
48117 _ACEOF
48118 if { (ac_try="$ac_cpp conftest.$ac_ext"
48119 case "(($ac_try" in
48120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48121 *) ac_try_echo=$ac_try;;
48122 esac
48123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48124 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
48125 ac_status=$?
48126 grep -v '^ *+' conftest.er1 >conftest.err
48127 rm -f conftest.er1
48128 cat conftest.err >&5
48129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48130 (exit $ac_status); } >/dev/null; then
48131 if test -s conftest.err; then
48132 ac_cpp_err=$ac_c_preproc_warn_flag
48133 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
48134 else
48135 ac_cpp_err=
48137 else
48138 ac_cpp_err=yes
48140 if test -z "$ac_cpp_err"; then
48141 ac_header_preproc=yes
48142 else
48143 echo "$as_me: failed program was:" >&5
48144 sed 's/^/| /' conftest.$ac_ext >&5
48146 ac_header_preproc=no
48149 rm -f conftest.err conftest.$ac_ext
48150 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
48151 echo "${ECHO_T}$ac_header_preproc" >&6; }
48153 # So? What about this header?
48154 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
48155 yes:no: )
48156 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
48157 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
48158 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
48159 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
48160 ac_header_preproc=yes
48162 no:yes:* )
48163 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
48164 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
48165 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
48166 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
48167 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
48168 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
48169 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
48170 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
48171 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
48172 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
48173 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
48174 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
48175 ( cat <<\_ASBOX
48176 ## ------------------------------------ ##
48177 ## Report this to bug-coreutils@gnu.org ##
48178 ## ------------------------------------ ##
48179 _ASBOX
48180 ) | sed "s/^/$as_me: WARNING: /" >&2
48182 esac
48183 { echo "$as_me:$LINENO: checking for $ac_header" >&5
48184 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
48185 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
48186 echo $ECHO_N "(cached) $ECHO_C" >&6
48187 else
48188 eval "$as_ac_Header=\$ac_header_preproc"
48190 ac_res=`eval echo '${'$as_ac_Header'}'`
48191 { echo "$as_me:$LINENO: result: $ac_res" >&5
48192 echo "${ECHO_T}$ac_res" >&6; }
48195 if test `eval echo '${'$as_ac_Header'}'` = yes; then
48196 cat >>confdefs.h <<_ACEOF
48197 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
48198 _ACEOF
48202 done
48205 for ac_func in __fpending
48207 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
48208 { echo "$as_me:$LINENO: checking for $ac_func" >&5
48209 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
48210 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
48211 echo $ECHO_N "(cached) $ECHO_C" >&6
48212 else
48213 cat >conftest.$ac_ext <<_ACEOF
48214 /* confdefs.h. */
48215 _ACEOF
48216 cat confdefs.h >>conftest.$ac_ext
48217 cat >>conftest.$ac_ext <<_ACEOF
48218 /* end confdefs.h. */
48219 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
48220 For example, HP-UX 11i <limits.h> declares gettimeofday. */
48221 #define $ac_func innocuous_$ac_func
48223 /* System header to define __stub macros and hopefully few prototypes,
48224 which can conflict with char $ac_func (); below.
48225 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48226 <limits.h> exists even on freestanding compilers. */
48228 #ifdef __STDC__
48229 # include <limits.h>
48230 #else
48231 # include <assert.h>
48232 #endif
48234 #undef $ac_func
48236 /* Override any GCC internal prototype to avoid an error.
48237 Use char because int might match the return type of a GCC
48238 builtin and then its argument prototype would still apply. */
48239 #ifdef __cplusplus
48240 extern "C"
48241 #endif
48242 char $ac_func ();
48243 /* The GNU C library defines this for functions which it implements
48244 to always fail with ENOSYS. Some functions are actually named
48245 something starting with __ and the normal name is an alias. */
48246 #if defined __stub_$ac_func || defined __stub___$ac_func
48247 choke me
48248 #endif
48251 main ()
48253 return $ac_func ();
48255 return 0;
48257 _ACEOF
48258 rm -f conftest.$ac_objext conftest$ac_exeext
48259 if { (ac_try="$ac_link"
48260 case "(($ac_try" in
48261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48262 *) ac_try_echo=$ac_try;;
48263 esac
48264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48265 (eval "$ac_link") 2>conftest.er1
48266 ac_status=$?
48267 grep -v '^ *+' conftest.er1 >conftest.err
48268 rm -f conftest.er1
48269 cat conftest.err >&5
48270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48271 (exit $ac_status); } &&
48272 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
48273 { (case "(($ac_try" in
48274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48275 *) ac_try_echo=$ac_try;;
48276 esac
48277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48278 (eval "$ac_try") 2>&5
48279 ac_status=$?
48280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48281 (exit $ac_status); }; } &&
48282 { ac_try='test -s conftest$ac_exeext'
48283 { (case "(($ac_try" in
48284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48285 *) ac_try_echo=$ac_try;;
48286 esac
48287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48288 (eval "$ac_try") 2>&5
48289 ac_status=$?
48290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48291 (exit $ac_status); }; }; then
48292 eval "$as_ac_var=yes"
48293 else
48294 echo "$as_me: failed program was:" >&5
48295 sed 's/^/| /' conftest.$ac_ext >&5
48297 eval "$as_ac_var=no"
48300 rm -f core conftest.err conftest.$ac_objext \
48301 conftest$ac_exeext conftest.$ac_ext
48303 ac_res=`eval echo '${'$as_ac_var'}'`
48304 { echo "$as_me:$LINENO: result: $ac_res" >&5
48305 echo "${ECHO_T}$ac_res" >&6; }
48306 if test `eval echo '${'$as_ac_var'}'` = yes; then
48307 cat >>confdefs.h <<_ACEOF
48308 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
48309 _ACEOF
48311 else
48312 case " $LIBOBJS " in
48313 *" $ac_func.$ac_objext "* ) ;;
48314 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
48316 esac
48319 done
48322 fp_headers='
48323 # include <stdio.h>
48324 # if HAVE_STDIO_EXT_H
48325 # include <stdio_ext.h>
48326 # endif
48328 { echo "$as_me:$LINENO: checking whether __fpending is declared" >&5
48329 echo $ECHO_N "checking whether __fpending is declared... $ECHO_C" >&6; }
48330 if test "${ac_cv_have_decl___fpending+set}" = set; then
48331 echo $ECHO_N "(cached) $ECHO_C" >&6
48332 else
48333 cat >conftest.$ac_ext <<_ACEOF
48334 /* confdefs.h. */
48335 _ACEOF
48336 cat confdefs.h >>conftest.$ac_ext
48337 cat >>conftest.$ac_ext <<_ACEOF
48338 /* end confdefs.h. */
48339 $fp_headers
48342 main ()
48344 #ifndef __fpending
48345 char *p = (char *) __fpending;
48346 return !p;
48347 #endif
48350 return 0;
48352 _ACEOF
48353 rm -f conftest.$ac_objext
48354 if { (ac_try="$ac_compile"
48355 case "(($ac_try" in
48356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48357 *) ac_try_echo=$ac_try;;
48358 esac
48359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48360 (eval "$ac_compile") 2>conftest.er1
48361 ac_status=$?
48362 grep -v '^ *+' conftest.er1 >conftest.err
48363 rm -f conftest.er1
48364 cat conftest.err >&5
48365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48366 (exit $ac_status); } &&
48367 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
48368 { (case "(($ac_try" in
48369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48370 *) ac_try_echo=$ac_try;;
48371 esac
48372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48373 (eval "$ac_try") 2>&5
48374 ac_status=$?
48375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48376 (exit $ac_status); }; } &&
48377 { ac_try='test -s conftest.$ac_objext'
48378 { (case "(($ac_try" in
48379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48380 *) ac_try_echo=$ac_try;;
48381 esac
48382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48383 (eval "$ac_try") 2>&5
48384 ac_status=$?
48385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48386 (exit $ac_status); }; }; then
48387 ac_cv_have_decl___fpending=yes
48388 else
48389 echo "$as_me: failed program was:" >&5
48390 sed 's/^/| /' conftest.$ac_ext >&5
48392 ac_cv_have_decl___fpending=no
48395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48397 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___fpending" >&5
48398 echo "${ECHO_T}$ac_cv_have_decl___fpending" >&6; }
48399 if test $ac_cv_have_decl___fpending = yes; then
48401 cat >>confdefs.h <<_ACEOF
48402 #define HAVE_DECL___FPENDING 1
48403 _ACEOF
48406 else
48407 cat >>confdefs.h <<_ACEOF
48408 #define HAVE_DECL___FPENDING 0
48409 _ACEOF
48415 if test $ac_cv_func___fpending = no; then
48416 { echo "$as_me:$LINENO: checking how to determine the number of pending output bytes on a stream" >&5
48417 echo $ECHO_N "checking how to determine the number of pending output bytes on a stream... $ECHO_C" >&6; }
48418 if test "${ac_cv_sys_pending_output_n_bytes+set}" = set; then
48419 echo $ECHO_N "(cached) $ECHO_C" >&6
48420 else
48422 for ac_expr in \
48424 '# glibc2' \
48425 'fp->_IO_write_ptr - fp->_IO_write_base' \
48427 '# traditional Unix' \
48428 'fp->_ptr - fp->_base' \
48430 '# BSD' \
48431 'fp->_p - fp->_bf._base' \
48433 '# SCO, Unixware' \
48434 '(fp->__ptr ? fp->__ptr - fp->__base : 0)' \
48436 '# old glibc?' \
48437 'fp->__bufp - fp->__buffer' \
48439 '# old glibc iostream?' \
48440 'fp->_pptr - fp->_pbase' \
48442 '# VMS' \
48443 '(*fp)->_ptr - (*fp)->_base' \
48445 '# e.g., DGUX R4.11; the info is not available' \
48447 ; do
48449 # Skip each embedded comment.
48450 case "$ac_expr" in '#'*) continue;; esac
48452 cat >conftest.$ac_ext <<_ACEOF
48453 /* confdefs.h. */
48454 _ACEOF
48455 cat confdefs.h >>conftest.$ac_ext
48456 cat >>conftest.$ac_ext <<_ACEOF
48457 /* end confdefs.h. */
48458 #include <stdio.h>
48461 main ()
48463 FILE *fp = stdin; (void) ($ac_expr);
48465 return 0;
48467 _ACEOF
48468 rm -f conftest.$ac_objext
48469 if { (ac_try="$ac_compile"
48470 case "(($ac_try" in
48471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48472 *) ac_try_echo=$ac_try;;
48473 esac
48474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48475 (eval "$ac_compile") 2>conftest.er1
48476 ac_status=$?
48477 grep -v '^ *+' conftest.er1 >conftest.err
48478 rm -f conftest.er1
48479 cat conftest.err >&5
48480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48481 (exit $ac_status); } &&
48482 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
48483 { (case "(($ac_try" in
48484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48485 *) ac_try_echo=$ac_try;;
48486 esac
48487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48488 (eval "$ac_try") 2>&5
48489 ac_status=$?
48490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48491 (exit $ac_status); }; } &&
48492 { ac_try='test -s conftest.$ac_objext'
48493 { (case "(($ac_try" in
48494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48495 *) ac_try_echo=$ac_try;;
48496 esac
48497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48498 (eval "$ac_try") 2>&5
48499 ac_status=$?
48500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48501 (exit $ac_status); }; }; then
48502 fp_done=yes
48504 else
48505 echo "$as_me: failed program was:" >&5
48506 sed 's/^/| /' conftest.$ac_ext >&5
48511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48512 test "$fp_done" = yes && break
48513 done
48515 ac_cv_sys_pending_output_n_bytes=$ac_expr
48519 { echo "$as_me:$LINENO: result: $ac_cv_sys_pending_output_n_bytes" >&5
48520 echo "${ECHO_T}$ac_cv_sys_pending_output_n_bytes" >&6; }
48522 cat >>confdefs.h <<_ACEOF
48523 #define PENDING_OUTPUT_N_BYTES $ac_cv_sys_pending_output_n_bytes
48524 _ACEOF
48529 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
48530 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
48531 if test "${gl_cv_header_inttypes_h+set}" = set; then
48532 echo $ECHO_N "(cached) $ECHO_C" >&6
48533 else
48535 cat >conftest.$ac_ext <<_ACEOF
48536 /* confdefs.h. */
48537 _ACEOF
48538 cat confdefs.h >>conftest.$ac_ext
48539 cat >>conftest.$ac_ext <<_ACEOF
48540 /* end confdefs.h. */
48541 #include <sys/types.h>
48542 #include <inttypes.h>
48544 main ()
48548 return 0;
48550 _ACEOF
48551 rm -f conftest.$ac_objext
48552 if { (ac_try="$ac_compile"
48553 case "(($ac_try" in
48554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48555 *) ac_try_echo=$ac_try;;
48556 esac
48557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48558 (eval "$ac_compile") 2>conftest.er1
48559 ac_status=$?
48560 grep -v '^ *+' conftest.er1 >conftest.err
48561 rm -f conftest.er1
48562 cat conftest.err >&5
48563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48564 (exit $ac_status); } &&
48565 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
48566 { (case "(($ac_try" in
48567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48568 *) ac_try_echo=$ac_try;;
48569 esac
48570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48571 (eval "$ac_try") 2>&5
48572 ac_status=$?
48573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48574 (exit $ac_status); }; } &&
48575 { ac_try='test -s conftest.$ac_objext'
48576 { (case "(($ac_try" in
48577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48578 *) ac_try_echo=$ac_try;;
48579 esac
48580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48581 (eval "$ac_try") 2>&5
48582 ac_status=$?
48583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48584 (exit $ac_status); }; }; then
48585 gl_cv_header_inttypes_h=yes
48586 else
48587 echo "$as_me: failed program was:" >&5
48588 sed 's/^/| /' conftest.$ac_ext >&5
48590 gl_cv_header_inttypes_h=no
48593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48596 { echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
48597 echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6; }
48598 if test $gl_cv_header_inttypes_h = yes; then
48600 cat >>confdefs.h <<_ACEOF
48601 #define HAVE_INTTYPES_H 1
48602 _ACEOF
48608 if test $gl_cv_header_inttypes_h = yes; then
48609 { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
48610 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
48611 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
48612 echo $ECHO_N "(cached) $ECHO_C" >&6
48613 else
48615 cat >conftest.$ac_ext <<_ACEOF
48616 /* confdefs.h. */
48617 _ACEOF
48618 cat confdefs.h >>conftest.$ac_ext
48619 cat >>conftest.$ac_ext <<_ACEOF
48620 /* end confdefs.h. */
48621 #include <inttypes.h>
48622 #ifdef PRId32
48623 char *p = PRId32;
48624 #endif
48627 main ()
48631 return 0;
48633 _ACEOF
48634 rm -f conftest.$ac_objext
48635 if { (ac_try="$ac_compile"
48636 case "(($ac_try" in
48637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48638 *) ac_try_echo=$ac_try;;
48639 esac
48640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48641 (eval "$ac_compile") 2>conftest.er1
48642 ac_status=$?
48643 grep -v '^ *+' conftest.er1 >conftest.err
48644 rm -f conftest.er1
48645 cat conftest.err >&5
48646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48647 (exit $ac_status); } &&
48648 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
48649 { (case "(($ac_try" in
48650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48651 *) ac_try_echo=$ac_try;;
48652 esac
48653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48654 (eval "$ac_try") 2>&5
48655 ac_status=$?
48656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48657 (exit $ac_status); }; } &&
48658 { ac_try='test -s conftest.$ac_objext'
48659 { (case "(($ac_try" in
48660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48661 *) ac_try_echo=$ac_try;;
48662 esac
48663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48664 (eval "$ac_try") 2>&5
48665 ac_status=$?
48666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48667 (exit $ac_status); }; }; then
48668 gt_cv_inttypes_pri_broken=no
48669 else
48670 echo "$as_me: failed program was:" >&5
48671 sed 's/^/| /' conftest.$ac_ext >&5
48673 gt_cv_inttypes_pri_broken=yes
48676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48679 { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
48680 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
48682 if test "$gt_cv_inttypes_pri_broken" = yes; then
48684 cat >>confdefs.h <<_ACEOF
48685 #define PRI_MACROS_BROKEN 1
48686 _ACEOF
48691 { echo "$as_me:$LINENO: checking whether ULONG_MAX < ULLONG_MAX" >&5
48692 echo $ECHO_N "checking whether ULONG_MAX < ULLONG_MAX... $ECHO_C" >&6; }
48693 if test "${gl_cv_ulong_max_lt_ullong_max+set}" = set; then
48694 echo $ECHO_N "(cached) $ECHO_C" >&6
48695 else
48696 cat >conftest.$ac_ext <<_ACEOF
48697 /* confdefs.h. */
48698 _ACEOF
48699 cat confdefs.h >>conftest.$ac_ext
48700 cat >>conftest.$ac_ext <<_ACEOF
48701 /* end confdefs.h. */
48702 $ac_includes_default
48704 main ()
48706 static int test_array [1 - 2 * !((unsigned long int) -1 < (unsigned long long int) -1)];
48707 test_array [0] = 0
48710 return 0;
48712 _ACEOF
48713 rm -f conftest.$ac_objext
48714 if { (ac_try="$ac_compile"
48715 case "(($ac_try" in
48716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48717 *) ac_try_echo=$ac_try;;
48718 esac
48719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48720 (eval "$ac_compile") 2>conftest.er1
48721 ac_status=$?
48722 grep -v '^ *+' conftest.er1 >conftest.err
48723 rm -f conftest.er1
48724 cat conftest.err >&5
48725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48726 (exit $ac_status); } &&
48727 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
48728 { (case "(($ac_try" in
48729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48730 *) ac_try_echo=$ac_try;;
48731 esac
48732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48733 (eval "$ac_try") 2>&5
48734 ac_status=$?
48735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48736 (exit $ac_status); }; } &&
48737 { ac_try='test -s conftest.$ac_objext'
48738 { (case "(($ac_try" in
48739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48740 *) ac_try_echo=$ac_try;;
48741 esac
48742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48743 (eval "$ac_try") 2>&5
48744 ac_status=$?
48745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48746 (exit $ac_status); }; }; then
48747 gl_cv_ulong_max_lt_ullong_max=yes
48748 else
48749 echo "$as_me: failed program was:" >&5
48750 sed 's/^/| /' conftest.$ac_ext >&5
48752 gl_cv_ulong_max_lt_ullong_max=no
48755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48757 { echo "$as_me:$LINENO: result: $gl_cv_ulong_max_lt_ullong_max" >&5
48758 echo "${ECHO_T}$gl_cv_ulong_max_lt_ullong_max" >&6; }
48759 if test $gl_cv_ulong_max_lt_ullong_max = yes; then
48761 cat >>confdefs.h <<\_ACEOF
48762 #define ULONG_MAX_LT_ULLONG_MAX 1
48763 _ACEOF
48769 if test $ac_cv_func_getgroups_works = no; then
48770 case " $LIBOBJS " in
48771 *" getgroups.$ac_objext "* ) ;;
48772 *) LIBOBJS="$LIBOBJS getgroups.$ac_objext"
48774 esac
48777 cat >>confdefs.h <<\_ACEOF
48778 #define getgroups rpl_getgroups
48779 _ACEOF
48785 test -n "$GETGROUPS_LIB" && LIBS="$GETGROUPS_LIB $LIBS"
48787 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
48788 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
48789 if test "${ac_cv_sys_largefile_source+set}" = set; then
48790 echo $ECHO_N "(cached) $ECHO_C" >&6
48791 else
48792 while :; do
48793 ac_cv_sys_largefile_source=no
48794 cat >conftest.$ac_ext <<_ACEOF
48795 /* confdefs.h. */
48796 _ACEOF
48797 cat confdefs.h >>conftest.$ac_ext
48798 cat >>conftest.$ac_ext <<_ACEOF
48799 /* end confdefs.h. */
48800 #include <stdio.h>
48802 main ()
48804 return !fseeko;
48806 return 0;
48808 _ACEOF
48809 rm -f conftest.$ac_objext
48810 if { (ac_try="$ac_compile"
48811 case "(($ac_try" in
48812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48813 *) ac_try_echo=$ac_try;;
48814 esac
48815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48816 (eval "$ac_compile") 2>conftest.er1
48817 ac_status=$?
48818 grep -v '^ *+' conftest.er1 >conftest.err
48819 rm -f conftest.er1
48820 cat conftest.err >&5
48821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48822 (exit $ac_status); } &&
48823 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
48824 { (case "(($ac_try" in
48825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48826 *) ac_try_echo=$ac_try;;
48827 esac
48828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48829 (eval "$ac_try") 2>&5
48830 ac_status=$?
48831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48832 (exit $ac_status); }; } &&
48833 { ac_try='test -s conftest.$ac_objext'
48834 { (case "(($ac_try" in
48835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48836 *) ac_try_echo=$ac_try;;
48837 esac
48838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48839 (eval "$ac_try") 2>&5
48840 ac_status=$?
48841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48842 (exit $ac_status); }; }; then
48843 break
48844 else
48845 echo "$as_me: failed program was:" >&5
48846 sed 's/^/| /' conftest.$ac_ext >&5
48851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48852 cat >conftest.$ac_ext <<_ACEOF
48853 /* confdefs.h. */
48854 _ACEOF
48855 cat confdefs.h >>conftest.$ac_ext
48856 cat >>conftest.$ac_ext <<_ACEOF
48857 /* end confdefs.h. */
48858 #define _LARGEFILE_SOURCE 1
48859 #include <stdio.h>
48861 main ()
48863 return !fseeko;
48865 return 0;
48867 _ACEOF
48868 rm -f conftest.$ac_objext
48869 if { (ac_try="$ac_compile"
48870 case "(($ac_try" in
48871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48872 *) ac_try_echo=$ac_try;;
48873 esac
48874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48875 (eval "$ac_compile") 2>conftest.er1
48876 ac_status=$?
48877 grep -v '^ *+' conftest.er1 >conftest.err
48878 rm -f conftest.er1
48879 cat conftest.err >&5
48880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48881 (exit $ac_status); } &&
48882 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
48883 { (case "(($ac_try" in
48884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48885 *) ac_try_echo=$ac_try;;
48886 esac
48887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48888 (eval "$ac_try") 2>&5
48889 ac_status=$?
48890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48891 (exit $ac_status); }; } &&
48892 { ac_try='test -s conftest.$ac_objext'
48893 { (case "(($ac_try" in
48894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48895 *) ac_try_echo=$ac_try;;
48896 esac
48897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48898 (eval "$ac_try") 2>&5
48899 ac_status=$?
48900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48901 (exit $ac_status); }; }; then
48902 ac_cv_sys_largefile_source=1; break
48903 else
48904 echo "$as_me: failed program was:" >&5
48905 sed 's/^/| /' conftest.$ac_ext >&5
48910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48911 break
48912 done
48914 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
48915 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
48916 if test "$ac_cv_sys_largefile_source" != no; then
48918 cat >>confdefs.h <<_ACEOF
48919 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
48920 _ACEOF
48923 rm -f conftest*
48925 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
48926 # in glibc 2.1.3, but that breaks too many other things.
48927 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
48928 { echo "$as_me:$LINENO: checking for fseeko" >&5
48929 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6; }
48930 if test "${ac_cv_func_fseeko+set}" = set; then
48931 echo $ECHO_N "(cached) $ECHO_C" >&6
48932 else
48933 cat >conftest.$ac_ext <<_ACEOF
48934 /* confdefs.h. */
48935 _ACEOF
48936 cat confdefs.h >>conftest.$ac_ext
48937 cat >>conftest.$ac_ext <<_ACEOF
48938 /* end confdefs.h. */
48939 #include <stdio.h>
48941 main ()
48943 return fseeko && fseeko (stdin, 0, 0);
48945 return 0;
48947 _ACEOF
48948 rm -f conftest.$ac_objext conftest$ac_exeext
48949 if { (ac_try="$ac_link"
48950 case "(($ac_try" in
48951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48952 *) ac_try_echo=$ac_try;;
48953 esac
48954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48955 (eval "$ac_link") 2>conftest.er1
48956 ac_status=$?
48957 grep -v '^ *+' conftest.er1 >conftest.err
48958 rm -f conftest.er1
48959 cat conftest.err >&5
48960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48961 (exit $ac_status); } &&
48962 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
48963 { (case "(($ac_try" in
48964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48965 *) ac_try_echo=$ac_try;;
48966 esac
48967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48968 (eval "$ac_try") 2>&5
48969 ac_status=$?
48970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48971 (exit $ac_status); }; } &&
48972 { ac_try='test -s conftest$ac_exeext'
48973 { (case "(($ac_try" in
48974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48975 *) ac_try_echo=$ac_try;;
48976 esac
48977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48978 (eval "$ac_try") 2>&5
48979 ac_status=$?
48980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48981 (exit $ac_status); }; }; then
48982 ac_cv_func_fseeko=yes
48983 else
48984 echo "$as_me: failed program was:" >&5
48985 sed 's/^/| /' conftest.$ac_ext >&5
48987 ac_cv_func_fseeko=no
48990 rm -f core conftest.err conftest.$ac_objext \
48991 conftest$ac_exeext conftest.$ac_ext
48993 { echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
48994 echo "${ECHO_T}$ac_cv_func_fseeko" >&6; }
48995 if test $ac_cv_func_fseeko = yes; then
48997 cat >>confdefs.h <<\_ACEOF
48998 #define HAVE_FSEEKO 1
48999 _ACEOF
49004 { echo "$as_me:$LINENO: checking for /proc/uptime" >&5
49005 echo $ECHO_N "checking for /proc/uptime... $ECHO_C" >&6; }
49006 if test "${jm_cv_have_proc_uptime+set}" = set; then
49007 echo $ECHO_N "(cached) $ECHO_C" >&6
49008 else
49009 jm_cv_have_proc_uptime=no
49010 test -f /proc/uptime \
49011 && test "$cross_compiling" = no \
49012 && cat < /proc/uptime >/dev/null 2>/dev/null \
49013 && jm_cv_have_proc_uptime=yes
49015 { echo "$as_me:$LINENO: result: $jm_cv_have_proc_uptime" >&5
49016 echo "${ECHO_T}$jm_cv_have_proc_uptime" >&6; }
49017 if test $jm_cv_have_proc_uptime = yes; then
49019 cat >>confdefs.h <<\_ACEOF
49020 #define HAVE_PROC_UPTIME 1
49021 _ACEOF
49027 for ac_func in ftruncate
49029 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
49030 { echo "$as_me:$LINENO: checking for $ac_func" >&5
49031 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
49032 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
49033 echo $ECHO_N "(cached) $ECHO_C" >&6
49034 else
49035 cat >conftest.$ac_ext <<_ACEOF
49036 /* confdefs.h. */
49037 _ACEOF
49038 cat confdefs.h >>conftest.$ac_ext
49039 cat >>conftest.$ac_ext <<_ACEOF
49040 /* end confdefs.h. */
49041 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
49042 For example, HP-UX 11i <limits.h> declares gettimeofday. */
49043 #define $ac_func innocuous_$ac_func
49045 /* System header to define __stub macros and hopefully few prototypes,
49046 which can conflict with char $ac_func (); below.
49047 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49048 <limits.h> exists even on freestanding compilers. */
49050 #ifdef __STDC__
49051 # include <limits.h>
49052 #else
49053 # include <assert.h>
49054 #endif
49056 #undef $ac_func
49058 /* Override any GCC internal prototype to avoid an error.
49059 Use char because int might match the return type of a GCC
49060 builtin and then its argument prototype would still apply. */
49061 #ifdef __cplusplus
49062 extern "C"
49063 #endif
49064 char $ac_func ();
49065 /* The GNU C library defines this for functions which it implements
49066 to always fail with ENOSYS. Some functions are actually named
49067 something starting with __ and the normal name is an alias. */
49068 #if defined __stub_$ac_func || defined __stub___$ac_func
49069 choke me
49070 #endif
49073 main ()
49075 return $ac_func ();
49077 return 0;
49079 _ACEOF
49080 rm -f conftest.$ac_objext conftest$ac_exeext
49081 if { (ac_try="$ac_link"
49082 case "(($ac_try" in
49083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49084 *) ac_try_echo=$ac_try;;
49085 esac
49086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49087 (eval "$ac_link") 2>conftest.er1
49088 ac_status=$?
49089 grep -v '^ *+' conftest.er1 >conftest.err
49090 rm -f conftest.er1
49091 cat conftest.err >&5
49092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49093 (exit $ac_status); } &&
49094 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
49095 { (case "(($ac_try" in
49096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49097 *) ac_try_echo=$ac_try;;
49098 esac
49099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49100 (eval "$ac_try") 2>&5
49101 ac_status=$?
49102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49103 (exit $ac_status); }; } &&
49104 { ac_try='test -s conftest$ac_exeext'
49105 { (case "(($ac_try" in
49106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49107 *) ac_try_echo=$ac_try;;
49108 esac
49109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49110 (eval "$ac_try") 2>&5
49111 ac_status=$?
49112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49113 (exit $ac_status); }; }; then
49114 eval "$as_ac_var=yes"
49115 else
49116 echo "$as_me: failed program was:" >&5
49117 sed 's/^/| /' conftest.$ac_ext >&5
49119 eval "$as_ac_var=no"
49122 rm -f core conftest.err conftest.$ac_objext \
49123 conftest$ac_exeext conftest.$ac_ext
49125 ac_res=`eval echo '${'$as_ac_var'}'`
49126 { echo "$as_me:$LINENO: result: $ac_res" >&5
49127 echo "${ECHO_T}$ac_res" >&6; }
49128 if test `eval echo '${'$as_ac_var'}'` = yes; then
49129 cat >>confdefs.h <<_ACEOF
49130 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
49131 _ACEOF
49133 else
49134 case " $LIBOBJS " in
49135 *" $ac_func.$ac_objext "* ) ;;
49136 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
49138 esac
49141 done
49144 if test $ac_cv_func_ftruncate = no; then
49147 for ac_func in chsize
49149 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
49150 { echo "$as_me:$LINENO: checking for $ac_func" >&5
49151 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
49152 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
49153 echo $ECHO_N "(cached) $ECHO_C" >&6
49154 else
49155 cat >conftest.$ac_ext <<_ACEOF
49156 /* confdefs.h. */
49157 _ACEOF
49158 cat confdefs.h >>conftest.$ac_ext
49159 cat >>conftest.$ac_ext <<_ACEOF
49160 /* end confdefs.h. */
49161 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
49162 For example, HP-UX 11i <limits.h> declares gettimeofday. */
49163 #define $ac_func innocuous_$ac_func
49165 /* System header to define __stub macros and hopefully few prototypes,
49166 which can conflict with char $ac_func (); below.
49167 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49168 <limits.h> exists even on freestanding compilers. */
49170 #ifdef __STDC__
49171 # include <limits.h>
49172 #else
49173 # include <assert.h>
49174 #endif
49176 #undef $ac_func
49178 /* Override any GCC internal prototype to avoid an error.
49179 Use char because int might match the return type of a GCC
49180 builtin and then its argument prototype would still apply. */
49181 #ifdef __cplusplus
49182 extern "C"
49183 #endif
49184 char $ac_func ();
49185 /* The GNU C library defines this for functions which it implements
49186 to always fail with ENOSYS. Some functions are actually named
49187 something starting with __ and the normal name is an alias. */
49188 #if defined __stub_$ac_func || defined __stub___$ac_func
49189 choke me
49190 #endif
49193 main ()
49195 return $ac_func ();
49197 return 0;
49199 _ACEOF
49200 rm -f conftest.$ac_objext conftest$ac_exeext
49201 if { (ac_try="$ac_link"
49202 case "(($ac_try" in
49203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49204 *) ac_try_echo=$ac_try;;
49205 esac
49206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49207 (eval "$ac_link") 2>conftest.er1
49208 ac_status=$?
49209 grep -v '^ *+' conftest.er1 >conftest.err
49210 rm -f conftest.er1
49211 cat conftest.err >&5
49212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49213 (exit $ac_status); } &&
49214 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
49215 { (case "(($ac_try" in
49216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49217 *) ac_try_echo=$ac_try;;
49218 esac
49219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49220 (eval "$ac_try") 2>&5
49221 ac_status=$?
49222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49223 (exit $ac_status); }; } &&
49224 { ac_try='test -s conftest$ac_exeext'
49225 { (case "(($ac_try" in
49226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49227 *) ac_try_echo=$ac_try;;
49228 esac
49229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49230 (eval "$ac_try") 2>&5
49231 ac_status=$?
49232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49233 (exit $ac_status); }; }; then
49234 eval "$as_ac_var=yes"
49235 else
49236 echo "$as_me: failed program was:" >&5
49237 sed 's/^/| /' conftest.$ac_ext >&5
49239 eval "$as_ac_var=no"
49242 rm -f core conftest.err conftest.$ac_objext \
49243 conftest$ac_exeext conftest.$ac_ext
49245 ac_res=`eval echo '${'$as_ac_var'}'`
49246 { echo "$as_me:$LINENO: result: $ac_res" >&5
49247 echo "${ECHO_T}$ac_res" >&6; }
49248 if test `eval echo '${'$as_ac_var'}'` = yes; then
49249 cat >>confdefs.h <<_ACEOF
49250 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
49251 _ACEOF
49254 done
49257 # If someone lacks ftruncate, make configure fail, and request
49258 # a bug report to inform us about it.
49259 if test x"$SKIP_FTRUNCATE_CHECK" != xyes; then
49260 { { echo "$as_me:$LINENO: error: Your system lacks the ftruncate function.
49261 Please report this, along with the output of \"uname -a\", to the
49262 bug-coreutils@gnu.org mailing list. To continue past this point,
49263 rerun configure with SKIP_FTRUNCATE_CHECK=yes.
49264 E.g., ./configure SKIP_FTRUNCATE_CHECK=yes
49265 See \`config.log' for more details." >&5
49266 echo "$as_me: error: Your system lacks the ftruncate function.
49267 Please report this, along with the output of \"uname -a\", to the
49268 bug-coreutils@gnu.org mailing list. To continue past this point,
49269 rerun configure with SKIP_FTRUNCATE_CHECK=yes.
49270 E.g., ./configure SKIP_FTRUNCATE_CHECK=yes
49271 See \`config.log' for more details." >&2;}
49272 { (exit 1); exit 1; }; }
49283 ac_header_dirent=no
49284 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
49285 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
49286 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
49287 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
49288 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
49289 echo $ECHO_N "(cached) $ECHO_C" >&6
49290 else
49291 cat >conftest.$ac_ext <<_ACEOF
49292 /* confdefs.h. */
49293 _ACEOF
49294 cat confdefs.h >>conftest.$ac_ext
49295 cat >>conftest.$ac_ext <<_ACEOF
49296 /* end confdefs.h. */
49297 #include <sys/types.h>
49298 #include <$ac_hdr>
49301 main ()
49303 if ((DIR *) 0)
49304 return 0;
49306 return 0;
49308 _ACEOF
49309 rm -f conftest.$ac_objext
49310 if { (ac_try="$ac_compile"
49311 case "(($ac_try" in
49312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49313 *) ac_try_echo=$ac_try;;
49314 esac
49315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49316 (eval "$ac_compile") 2>conftest.er1
49317 ac_status=$?
49318 grep -v '^ *+' conftest.er1 >conftest.err
49319 rm -f conftest.er1
49320 cat conftest.err >&5
49321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49322 (exit $ac_status); } &&
49323 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
49324 { (case "(($ac_try" in
49325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49326 *) ac_try_echo=$ac_try;;
49327 esac
49328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49329 (eval "$ac_try") 2>&5
49330 ac_status=$?
49331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49332 (exit $ac_status); }; } &&
49333 { ac_try='test -s conftest.$ac_objext'
49334 { (case "(($ac_try" in
49335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49336 *) ac_try_echo=$ac_try;;
49337 esac
49338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49339 (eval "$ac_try") 2>&5
49340 ac_status=$?
49341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49342 (exit $ac_status); }; }; then
49343 eval "$as_ac_Header=yes"
49344 else
49345 echo "$as_me: failed program was:" >&5
49346 sed 's/^/| /' conftest.$ac_ext >&5
49348 eval "$as_ac_Header=no"
49351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49353 ac_res=`eval echo '${'$as_ac_Header'}'`
49354 { echo "$as_me:$LINENO: result: $ac_res" >&5
49355 echo "${ECHO_T}$ac_res" >&6; }
49356 if test `eval echo '${'$as_ac_Header'}'` = yes; then
49357 cat >>confdefs.h <<_ACEOF
49358 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
49359 _ACEOF
49361 ac_header_dirent=$ac_hdr; break
49364 done
49365 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
49366 if test $ac_header_dirent = dirent.h; then
49367 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
49368 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
49369 if test "${ac_cv_search_opendir+set}" = set; then
49370 echo $ECHO_N "(cached) $ECHO_C" >&6
49371 else
49372 ac_func_search_save_LIBS=$LIBS
49373 cat >conftest.$ac_ext <<_ACEOF
49374 /* confdefs.h. */
49375 _ACEOF
49376 cat confdefs.h >>conftest.$ac_ext
49377 cat >>conftest.$ac_ext <<_ACEOF
49378 /* end confdefs.h. */
49380 /* Override any GCC internal prototype to avoid an error.
49381 Use char because int might match the return type of a GCC
49382 builtin and then its argument prototype would still apply. */
49383 #ifdef __cplusplus
49384 extern "C"
49385 #endif
49386 char opendir ();
49388 main ()
49390 return opendir ();
49392 return 0;
49394 _ACEOF
49395 for ac_lib in '' dir; do
49396 if test -z "$ac_lib"; then
49397 ac_res="none required"
49398 else
49399 ac_res=-l$ac_lib
49400 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
49402 rm -f conftest.$ac_objext conftest$ac_exeext
49403 if { (ac_try="$ac_link"
49404 case "(($ac_try" in
49405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49406 *) ac_try_echo=$ac_try;;
49407 esac
49408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49409 (eval "$ac_link") 2>conftest.er1
49410 ac_status=$?
49411 grep -v '^ *+' conftest.er1 >conftest.err
49412 rm -f conftest.er1
49413 cat conftest.err >&5
49414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49415 (exit $ac_status); } &&
49416 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
49417 { (case "(($ac_try" in
49418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49419 *) ac_try_echo=$ac_try;;
49420 esac
49421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49422 (eval "$ac_try") 2>&5
49423 ac_status=$?
49424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49425 (exit $ac_status); }; } &&
49426 { ac_try='test -s conftest$ac_exeext'
49427 { (case "(($ac_try" in
49428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49429 *) ac_try_echo=$ac_try;;
49430 esac
49431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49432 (eval "$ac_try") 2>&5
49433 ac_status=$?
49434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49435 (exit $ac_status); }; }; then
49436 ac_cv_search_opendir=$ac_res
49437 else
49438 echo "$as_me: failed program was:" >&5
49439 sed 's/^/| /' conftest.$ac_ext >&5
49444 rm -f core conftest.err conftest.$ac_objext \
49445 conftest$ac_exeext
49446 if test "${ac_cv_search_opendir+set}" = set; then
49447 break
49449 done
49450 if test "${ac_cv_search_opendir+set}" = set; then
49452 else
49453 ac_cv_search_opendir=no
49455 rm conftest.$ac_ext
49456 LIBS=$ac_func_search_save_LIBS
49458 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
49459 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
49460 ac_res=$ac_cv_search_opendir
49461 if test "$ac_res" != no; then
49462 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
49466 else
49467 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
49468 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
49469 if test "${ac_cv_search_opendir+set}" = set; then
49470 echo $ECHO_N "(cached) $ECHO_C" >&6
49471 else
49472 ac_func_search_save_LIBS=$LIBS
49473 cat >conftest.$ac_ext <<_ACEOF
49474 /* confdefs.h. */
49475 _ACEOF
49476 cat confdefs.h >>conftest.$ac_ext
49477 cat >>conftest.$ac_ext <<_ACEOF
49478 /* end confdefs.h. */
49480 /* Override any GCC internal prototype to avoid an error.
49481 Use char because int might match the return type of a GCC
49482 builtin and then its argument prototype would still apply. */
49483 #ifdef __cplusplus
49484 extern "C"
49485 #endif
49486 char opendir ();
49488 main ()
49490 return opendir ();
49492 return 0;
49494 _ACEOF
49495 for ac_lib in '' x; do
49496 if test -z "$ac_lib"; then
49497 ac_res="none required"
49498 else
49499 ac_res=-l$ac_lib
49500 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
49502 rm -f conftest.$ac_objext conftest$ac_exeext
49503 if { (ac_try="$ac_link"
49504 case "(($ac_try" in
49505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49506 *) ac_try_echo=$ac_try;;
49507 esac
49508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49509 (eval "$ac_link") 2>conftest.er1
49510 ac_status=$?
49511 grep -v '^ *+' conftest.er1 >conftest.err
49512 rm -f conftest.er1
49513 cat conftest.err >&5
49514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49515 (exit $ac_status); } &&
49516 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
49517 { (case "(($ac_try" in
49518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49519 *) ac_try_echo=$ac_try;;
49520 esac
49521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49522 (eval "$ac_try") 2>&5
49523 ac_status=$?
49524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49525 (exit $ac_status); }; } &&
49526 { ac_try='test -s conftest$ac_exeext'
49527 { (case "(($ac_try" in
49528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49529 *) ac_try_echo=$ac_try;;
49530 esac
49531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49532 (eval "$ac_try") 2>&5
49533 ac_status=$?
49534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49535 (exit $ac_status); }; }; then
49536 ac_cv_search_opendir=$ac_res
49537 else
49538 echo "$as_me: failed program was:" >&5
49539 sed 's/^/| /' conftest.$ac_ext >&5
49544 rm -f core conftest.err conftest.$ac_objext \
49545 conftest$ac_exeext
49546 if test "${ac_cv_search_opendir+set}" = set; then
49547 break
49549 done
49550 if test "${ac_cv_search_opendir+set}" = set; then
49552 else
49553 ac_cv_search_opendir=no
49555 rm conftest.$ac_ext
49556 LIBS=$ac_func_search_save_LIBS
49558 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
49559 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
49560 ac_res=$ac_cv_search_opendir
49561 if test "$ac_res" != no; then
49562 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
49568 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
49569 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
49570 if test "${ac_cv_func_closedir_void+set}" = set; then
49571 echo $ECHO_N "(cached) $ECHO_C" >&6
49572 else
49573 if test "$cross_compiling" = yes; then
49574 ac_cv_func_closedir_void=yes
49575 else
49576 cat >conftest.$ac_ext <<_ACEOF
49577 /* confdefs.h. */
49578 _ACEOF
49579 cat confdefs.h >>conftest.$ac_ext
49580 cat >>conftest.$ac_ext <<_ACEOF
49581 /* end confdefs.h. */
49582 $ac_includes_default
49583 #include <$ac_header_dirent>
49584 #ifndef __cplusplus
49585 int closedir ();
49586 #endif
49589 main ()
49591 return closedir (opendir (".")) != 0;
49593 return 0;
49595 _ACEOF
49596 rm -f conftest$ac_exeext
49597 if { (ac_try="$ac_link"
49598 case "(($ac_try" in
49599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49600 *) ac_try_echo=$ac_try;;
49601 esac
49602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49603 (eval "$ac_link") 2>&5
49604 ac_status=$?
49605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49606 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
49607 { (case "(($ac_try" in
49608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49609 *) ac_try_echo=$ac_try;;
49610 esac
49611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49612 (eval "$ac_try") 2>&5
49613 ac_status=$?
49614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49615 (exit $ac_status); }; }; then
49616 ac_cv_func_closedir_void=no
49617 else
49618 echo "$as_me: program exited with status $ac_status" >&5
49619 echo "$as_me: failed program was:" >&5
49620 sed 's/^/| /' conftest.$ac_ext >&5
49622 ( exit $ac_status )
49623 ac_cv_func_closedir_void=yes
49625 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
49630 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
49631 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
49632 if test $ac_cv_func_closedir_void = yes; then
49634 cat >>confdefs.h <<\_ACEOF
49635 #define CLOSEDIR_VOID 1
49636 _ACEOF
49679 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
49680 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
49681 if test "${gt_cv_header_inttypes_h+set}" = set; then
49682 echo $ECHO_N "(cached) $ECHO_C" >&6
49683 else
49685 cat >conftest.$ac_ext <<_ACEOF
49686 /* confdefs.h. */
49687 _ACEOF
49688 cat confdefs.h >>conftest.$ac_ext
49689 cat >>conftest.$ac_ext <<_ACEOF
49690 /* end confdefs.h. */
49691 #include <sys/types.h>
49692 #include <inttypes.h>
49694 main ()
49698 return 0;
49700 _ACEOF
49701 rm -f conftest.$ac_objext
49702 if { (ac_try="$ac_compile"
49703 case "(($ac_try" in
49704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49705 *) ac_try_echo=$ac_try;;
49706 esac
49707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49708 (eval "$ac_compile") 2>conftest.er1
49709 ac_status=$?
49710 grep -v '^ *+' conftest.er1 >conftest.err
49711 rm -f conftest.er1
49712 cat conftest.err >&5
49713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49714 (exit $ac_status); } &&
49715 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
49716 { (case "(($ac_try" in
49717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49718 *) ac_try_echo=$ac_try;;
49719 esac
49720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49721 (eval "$ac_try") 2>&5
49722 ac_status=$?
49723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49724 (exit $ac_status); }; } &&
49725 { ac_try='test -s conftest.$ac_objext'
49726 { (case "(($ac_try" in
49727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49728 *) ac_try_echo=$ac_try;;
49729 esac
49730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49731 (eval "$ac_try") 2>&5
49732 ac_status=$?
49733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49734 (exit $ac_status); }; }; then
49735 gt_cv_header_inttypes_h=yes
49736 else
49737 echo "$as_me: failed program was:" >&5
49738 sed 's/^/| /' conftest.$ac_ext >&5
49740 gt_cv_header_inttypes_h=no
49743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49746 { echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
49747 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
49748 if test $gt_cv_header_inttypes_h = yes; then
49750 cat >>confdefs.h <<_ACEOF
49751 #define HAVE_INTTYPES_H 1
49752 _ACEOF
49770 for ac_header in sys/mount.h
49772 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
49773 { echo "$as_me:$LINENO: checking for $ac_header" >&5
49774 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
49775 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
49776 echo $ECHO_N "(cached) $ECHO_C" >&6
49777 else
49778 cat >conftest.$ac_ext <<_ACEOF
49779 /* confdefs.h. */
49780 _ACEOF
49781 cat confdefs.h >>conftest.$ac_ext
49782 cat >>conftest.$ac_ext <<_ACEOF
49783 /* end confdefs.h. */
49784 $ac_includes_default
49785 #if HAVE_SYS_PARAM_H
49786 #include <sys/param.h>
49787 #endif
49789 #include <$ac_header>
49790 _ACEOF
49791 rm -f conftest.$ac_objext
49792 if { (ac_try="$ac_compile"
49793 case "(($ac_try" in
49794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49795 *) ac_try_echo=$ac_try;;
49796 esac
49797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49798 (eval "$ac_compile") 2>conftest.er1
49799 ac_status=$?
49800 grep -v '^ *+' conftest.er1 >conftest.err
49801 rm -f conftest.er1
49802 cat conftest.err >&5
49803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49804 (exit $ac_status); } &&
49805 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
49806 { (case "(($ac_try" in
49807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49808 *) ac_try_echo=$ac_try;;
49809 esac
49810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49811 (eval "$ac_try") 2>&5
49812 ac_status=$?
49813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49814 (exit $ac_status); }; } &&
49815 { ac_try='test -s conftest.$ac_objext'
49816 { (case "(($ac_try" in
49817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49818 *) ac_try_echo=$ac_try;;
49819 esac
49820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49821 (eval "$ac_try") 2>&5
49822 ac_status=$?
49823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49824 (exit $ac_status); }; }; then
49825 eval "$as_ac_Header=yes"
49826 else
49827 echo "$as_me: failed program was:" >&5
49828 sed 's/^/| /' conftest.$ac_ext >&5
49830 eval "$as_ac_Header=no"
49833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49835 ac_res=`eval echo '${'$as_ac_Header'}'`
49836 { echo "$as_me:$LINENO: result: $ac_res" >&5
49837 echo "${ECHO_T}$ac_res" >&6; }
49838 if test `eval echo '${'$as_ac_Header'}'` = yes; then
49839 cat >>confdefs.h <<_ACEOF
49840 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
49841 _ACEOF
49845 done
49854 # For `struct statfs' on Ultrix 4.4.
49858 for ac_header in netinet/in.h nfs/nfs_clnt.h nfs/vfs.h
49860 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
49861 { echo "$as_me:$LINENO: checking for $ac_header" >&5
49862 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
49863 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
49864 echo $ECHO_N "(cached) $ECHO_C" >&6
49865 else
49866 cat >conftest.$ac_ext <<_ACEOF
49867 /* confdefs.h. */
49868 _ACEOF
49869 cat confdefs.h >>conftest.$ac_ext
49870 cat >>conftest.$ac_ext <<_ACEOF
49871 /* end confdefs.h. */
49872 $ac_includes_default
49874 #include <$ac_header>
49875 _ACEOF
49876 rm -f conftest.$ac_objext
49877 if { (ac_try="$ac_compile"
49878 case "(($ac_try" in
49879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49880 *) ac_try_echo=$ac_try;;
49881 esac
49882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49883 (eval "$ac_compile") 2>conftest.er1
49884 ac_status=$?
49885 grep -v '^ *+' conftest.er1 >conftest.err
49886 rm -f conftest.er1
49887 cat conftest.err >&5
49888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49889 (exit $ac_status); } &&
49890 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
49891 { (case "(($ac_try" in
49892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49893 *) ac_try_echo=$ac_try;;
49894 esac
49895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49896 (eval "$ac_try") 2>&5
49897 ac_status=$?
49898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49899 (exit $ac_status); }; } &&
49900 { ac_try='test -s conftest.$ac_objext'
49901 { (case "(($ac_try" in
49902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49903 *) ac_try_echo=$ac_try;;
49904 esac
49905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49906 (eval "$ac_try") 2>&5
49907 ac_status=$?
49908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49909 (exit $ac_status); }; }; then
49910 eval "$as_ac_Header=yes"
49911 else
49912 echo "$as_me: failed program was:" >&5
49913 sed 's/^/| /' conftest.$ac_ext >&5
49915 eval "$as_ac_Header=no"
49918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49920 ac_res=`eval echo '${'$as_ac_Header'}'`
49921 { echo "$as_me:$LINENO: result: $ac_res" >&5
49922 echo "${ECHO_T}$ac_res" >&6; }
49923 if test `eval echo '${'$as_ac_Header'}'` = yes; then
49924 cat >>confdefs.h <<_ACEOF
49925 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
49926 _ACEOF
49930 done
49936 statxfs_includes="\
49937 $ac_includes_default
49938 #if HAVE_SYS_STATVFS_H
49939 # include <sys/statvfs.h>
49940 #endif
49941 #if HAVE_SYS_VFS_H
49942 # include <sys/vfs.h>
49943 #endif
49944 #if !HAVE_SYS_STATVFS_H && !HAVE_SYS_VFS_H
49945 # if HAVE_SYS_MOUNT_H && HAVE_SYS_PARAM_H
49946 /* NetBSD 1.5.2 needs these, for the declaration of struct statfs. */
49947 # include <sys/param.h>
49948 # include <sys/mount.h>
49949 # elif HAVE_NETINET_IN_H && HAVE_NFS_NFS_CLNT_H && HAVE_NFS_VFS_H
49950 /* Ultrix 4.4 needs these for the declaration of struct statfs. */
49951 # include <netinet/in.h>
49952 # include <nfs/nfs_clnt.h>
49953 # include <nfs/vfs.h>
49954 # endif
49955 #endif
49957 { echo "$as_me:$LINENO: checking for struct statfs.f_basetype" >&5
49958 echo $ECHO_N "checking for struct statfs.f_basetype... $ECHO_C" >&6; }
49959 if test "${ac_cv_member_struct_statfs_f_basetype+set}" = set; then
49960 echo $ECHO_N "(cached) $ECHO_C" >&6
49961 else
49962 cat >conftest.$ac_ext <<_ACEOF
49963 /* confdefs.h. */
49964 _ACEOF
49965 cat confdefs.h >>conftest.$ac_ext
49966 cat >>conftest.$ac_ext <<_ACEOF
49967 /* end confdefs.h. */
49968 $statxfs_includes
49971 main ()
49973 static struct statfs ac_aggr;
49974 if (ac_aggr.f_basetype)
49975 return 0;
49977 return 0;
49979 _ACEOF
49980 rm -f conftest.$ac_objext
49981 if { (ac_try="$ac_compile"
49982 case "(($ac_try" in
49983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49984 *) ac_try_echo=$ac_try;;
49985 esac
49986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49987 (eval "$ac_compile") 2>conftest.er1
49988 ac_status=$?
49989 grep -v '^ *+' conftest.er1 >conftest.err
49990 rm -f conftest.er1
49991 cat conftest.err >&5
49992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49993 (exit $ac_status); } &&
49994 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
49995 { (case "(($ac_try" in
49996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49997 *) ac_try_echo=$ac_try;;
49998 esac
49999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50000 (eval "$ac_try") 2>&5
50001 ac_status=$?
50002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50003 (exit $ac_status); }; } &&
50004 { ac_try='test -s conftest.$ac_objext'
50005 { (case "(($ac_try" in
50006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50007 *) ac_try_echo=$ac_try;;
50008 esac
50009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50010 (eval "$ac_try") 2>&5
50011 ac_status=$?
50012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50013 (exit $ac_status); }; }; then
50014 ac_cv_member_struct_statfs_f_basetype=yes
50015 else
50016 echo "$as_me: failed program was:" >&5
50017 sed 's/^/| /' conftest.$ac_ext >&5
50019 cat >conftest.$ac_ext <<_ACEOF
50020 /* confdefs.h. */
50021 _ACEOF
50022 cat confdefs.h >>conftest.$ac_ext
50023 cat >>conftest.$ac_ext <<_ACEOF
50024 /* end confdefs.h. */
50025 $statxfs_includes
50028 main ()
50030 static struct statfs ac_aggr;
50031 if (sizeof ac_aggr.f_basetype)
50032 return 0;
50034 return 0;
50036 _ACEOF
50037 rm -f conftest.$ac_objext
50038 if { (ac_try="$ac_compile"
50039 case "(($ac_try" in
50040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50041 *) ac_try_echo=$ac_try;;
50042 esac
50043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50044 (eval "$ac_compile") 2>conftest.er1
50045 ac_status=$?
50046 grep -v '^ *+' conftest.er1 >conftest.err
50047 rm -f conftest.er1
50048 cat conftest.err >&5
50049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50050 (exit $ac_status); } &&
50051 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
50052 { (case "(($ac_try" in
50053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50054 *) ac_try_echo=$ac_try;;
50055 esac
50056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50057 (eval "$ac_try") 2>&5
50058 ac_status=$?
50059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50060 (exit $ac_status); }; } &&
50061 { ac_try='test -s conftest.$ac_objext'
50062 { (case "(($ac_try" in
50063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50064 *) ac_try_echo=$ac_try;;
50065 esac
50066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50067 (eval "$ac_try") 2>&5
50068 ac_status=$?
50069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50070 (exit $ac_status); }; }; then
50071 ac_cv_member_struct_statfs_f_basetype=yes
50072 else
50073 echo "$as_me: failed program was:" >&5
50074 sed 's/^/| /' conftest.$ac_ext >&5
50076 ac_cv_member_struct_statfs_f_basetype=no
50079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50084 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_basetype" >&5
50085 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_basetype" >&6; }
50086 if test $ac_cv_member_struct_statfs_f_basetype = yes; then
50088 cat >>confdefs.h <<_ACEOF
50089 #define HAVE_STRUCT_STATFS_F_BASETYPE 1
50090 _ACEOF
50095 { echo "$as_me:$LINENO: checking for struct statvfs.f_basetype" >&5
50096 echo $ECHO_N "checking for struct statvfs.f_basetype... $ECHO_C" >&6; }
50097 if test "${ac_cv_member_struct_statvfs_f_basetype+set}" = set; then
50098 echo $ECHO_N "(cached) $ECHO_C" >&6
50099 else
50100 cat >conftest.$ac_ext <<_ACEOF
50101 /* confdefs.h. */
50102 _ACEOF
50103 cat confdefs.h >>conftest.$ac_ext
50104 cat >>conftest.$ac_ext <<_ACEOF
50105 /* end confdefs.h. */
50106 $statxfs_includes
50109 main ()
50111 static struct statvfs ac_aggr;
50112 if (ac_aggr.f_basetype)
50113 return 0;
50115 return 0;
50117 _ACEOF
50118 rm -f conftest.$ac_objext
50119 if { (ac_try="$ac_compile"
50120 case "(($ac_try" in
50121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50122 *) ac_try_echo=$ac_try;;
50123 esac
50124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50125 (eval "$ac_compile") 2>conftest.er1
50126 ac_status=$?
50127 grep -v '^ *+' conftest.er1 >conftest.err
50128 rm -f conftest.er1
50129 cat conftest.err >&5
50130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50131 (exit $ac_status); } &&
50132 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
50133 { (case "(($ac_try" in
50134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50135 *) ac_try_echo=$ac_try;;
50136 esac
50137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50138 (eval "$ac_try") 2>&5
50139 ac_status=$?
50140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50141 (exit $ac_status); }; } &&
50142 { ac_try='test -s conftest.$ac_objext'
50143 { (case "(($ac_try" in
50144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50145 *) ac_try_echo=$ac_try;;
50146 esac
50147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50148 (eval "$ac_try") 2>&5
50149 ac_status=$?
50150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50151 (exit $ac_status); }; }; then
50152 ac_cv_member_struct_statvfs_f_basetype=yes
50153 else
50154 echo "$as_me: failed program was:" >&5
50155 sed 's/^/| /' conftest.$ac_ext >&5
50157 cat >conftest.$ac_ext <<_ACEOF
50158 /* confdefs.h. */
50159 _ACEOF
50160 cat confdefs.h >>conftest.$ac_ext
50161 cat >>conftest.$ac_ext <<_ACEOF
50162 /* end confdefs.h. */
50163 $statxfs_includes
50166 main ()
50168 static struct statvfs ac_aggr;
50169 if (sizeof ac_aggr.f_basetype)
50170 return 0;
50172 return 0;
50174 _ACEOF
50175 rm -f conftest.$ac_objext
50176 if { (ac_try="$ac_compile"
50177 case "(($ac_try" in
50178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50179 *) ac_try_echo=$ac_try;;
50180 esac
50181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50182 (eval "$ac_compile") 2>conftest.er1
50183 ac_status=$?
50184 grep -v '^ *+' conftest.er1 >conftest.err
50185 rm -f conftest.er1
50186 cat conftest.err >&5
50187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50188 (exit $ac_status); } &&
50189 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
50190 { (case "(($ac_try" in
50191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50192 *) ac_try_echo=$ac_try;;
50193 esac
50194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50195 (eval "$ac_try") 2>&5
50196 ac_status=$?
50197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50198 (exit $ac_status); }; } &&
50199 { ac_try='test -s conftest.$ac_objext'
50200 { (case "(($ac_try" in
50201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50202 *) ac_try_echo=$ac_try;;
50203 esac
50204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50205 (eval "$ac_try") 2>&5
50206 ac_status=$?
50207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50208 (exit $ac_status); }; }; then
50209 ac_cv_member_struct_statvfs_f_basetype=yes
50210 else
50211 echo "$as_me: failed program was:" >&5
50212 sed 's/^/| /' conftest.$ac_ext >&5
50214 ac_cv_member_struct_statvfs_f_basetype=no
50217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50222 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_basetype" >&5
50223 echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_basetype" >&6; }
50224 if test $ac_cv_member_struct_statvfs_f_basetype = yes; then
50226 cat >>confdefs.h <<_ACEOF
50227 #define HAVE_STRUCT_STATVFS_F_BASETYPE 1
50228 _ACEOF
50233 { echo "$as_me:$LINENO: checking for struct statfs.f_fstypename" >&5
50234 echo $ECHO_N "checking for struct statfs.f_fstypename... $ECHO_C" >&6; }
50235 if test "${ac_cv_member_struct_statfs_f_fstypename+set}" = set; then
50236 echo $ECHO_N "(cached) $ECHO_C" >&6
50237 else
50238 cat >conftest.$ac_ext <<_ACEOF
50239 /* confdefs.h. */
50240 _ACEOF
50241 cat confdefs.h >>conftest.$ac_ext
50242 cat >>conftest.$ac_ext <<_ACEOF
50243 /* end confdefs.h. */
50244 $statxfs_includes
50247 main ()
50249 static struct statfs ac_aggr;
50250 if (ac_aggr.f_fstypename)
50251 return 0;
50253 return 0;
50255 _ACEOF
50256 rm -f conftest.$ac_objext
50257 if { (ac_try="$ac_compile"
50258 case "(($ac_try" in
50259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50260 *) ac_try_echo=$ac_try;;
50261 esac
50262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50263 (eval "$ac_compile") 2>conftest.er1
50264 ac_status=$?
50265 grep -v '^ *+' conftest.er1 >conftest.err
50266 rm -f conftest.er1
50267 cat conftest.err >&5
50268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50269 (exit $ac_status); } &&
50270 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
50271 { (case "(($ac_try" in
50272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50273 *) ac_try_echo=$ac_try;;
50274 esac
50275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50276 (eval "$ac_try") 2>&5
50277 ac_status=$?
50278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50279 (exit $ac_status); }; } &&
50280 { ac_try='test -s conftest.$ac_objext'
50281 { (case "(($ac_try" in
50282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50283 *) ac_try_echo=$ac_try;;
50284 esac
50285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50286 (eval "$ac_try") 2>&5
50287 ac_status=$?
50288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50289 (exit $ac_status); }; }; then
50290 ac_cv_member_struct_statfs_f_fstypename=yes
50291 else
50292 echo "$as_me: failed program was:" >&5
50293 sed 's/^/| /' conftest.$ac_ext >&5
50295 cat >conftest.$ac_ext <<_ACEOF
50296 /* confdefs.h. */
50297 _ACEOF
50298 cat confdefs.h >>conftest.$ac_ext
50299 cat >>conftest.$ac_ext <<_ACEOF
50300 /* end confdefs.h. */
50301 $statxfs_includes
50304 main ()
50306 static struct statfs ac_aggr;
50307 if (sizeof ac_aggr.f_fstypename)
50308 return 0;
50310 return 0;
50312 _ACEOF
50313 rm -f conftest.$ac_objext
50314 if { (ac_try="$ac_compile"
50315 case "(($ac_try" in
50316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50317 *) ac_try_echo=$ac_try;;
50318 esac
50319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50320 (eval "$ac_compile") 2>conftest.er1
50321 ac_status=$?
50322 grep -v '^ *+' conftest.er1 >conftest.err
50323 rm -f conftest.er1
50324 cat conftest.err >&5
50325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50326 (exit $ac_status); } &&
50327 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
50328 { (case "(($ac_try" in
50329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50330 *) ac_try_echo=$ac_try;;
50331 esac
50332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50333 (eval "$ac_try") 2>&5
50334 ac_status=$?
50335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50336 (exit $ac_status); }; } &&
50337 { ac_try='test -s conftest.$ac_objext'
50338 { (case "(($ac_try" in
50339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50340 *) ac_try_echo=$ac_try;;
50341 esac
50342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50343 (eval "$ac_try") 2>&5
50344 ac_status=$?
50345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50346 (exit $ac_status); }; }; then
50347 ac_cv_member_struct_statfs_f_fstypename=yes
50348 else
50349 echo "$as_me: failed program was:" >&5
50350 sed 's/^/| /' conftest.$ac_ext >&5
50352 ac_cv_member_struct_statfs_f_fstypename=no
50355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50360 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_fstypename" >&5
50361 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_fstypename" >&6; }
50362 if test $ac_cv_member_struct_statfs_f_fstypename = yes; then
50364 cat >>confdefs.h <<_ACEOF
50365 #define HAVE_STRUCT_STATFS_F_FSTYPENAME 1
50366 _ACEOF
50371 { echo "$as_me:$LINENO: checking for struct statvfs.f_fstypename" >&5
50372 echo $ECHO_N "checking for struct statvfs.f_fstypename... $ECHO_C" >&6; }
50373 if test "${ac_cv_member_struct_statvfs_f_fstypename+set}" = set; then
50374 echo $ECHO_N "(cached) $ECHO_C" >&6
50375 else
50376 cat >conftest.$ac_ext <<_ACEOF
50377 /* confdefs.h. */
50378 _ACEOF
50379 cat confdefs.h >>conftest.$ac_ext
50380 cat >>conftest.$ac_ext <<_ACEOF
50381 /* end confdefs.h. */
50382 $statxfs_includes
50385 main ()
50387 static struct statvfs ac_aggr;
50388 if (ac_aggr.f_fstypename)
50389 return 0;
50391 return 0;
50393 _ACEOF
50394 rm -f conftest.$ac_objext
50395 if { (ac_try="$ac_compile"
50396 case "(($ac_try" in
50397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50398 *) ac_try_echo=$ac_try;;
50399 esac
50400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50401 (eval "$ac_compile") 2>conftest.er1
50402 ac_status=$?
50403 grep -v '^ *+' conftest.er1 >conftest.err
50404 rm -f conftest.er1
50405 cat conftest.err >&5
50406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50407 (exit $ac_status); } &&
50408 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
50409 { (case "(($ac_try" in
50410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50411 *) ac_try_echo=$ac_try;;
50412 esac
50413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50414 (eval "$ac_try") 2>&5
50415 ac_status=$?
50416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50417 (exit $ac_status); }; } &&
50418 { ac_try='test -s conftest.$ac_objext'
50419 { (case "(($ac_try" in
50420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50421 *) ac_try_echo=$ac_try;;
50422 esac
50423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50424 (eval "$ac_try") 2>&5
50425 ac_status=$?
50426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50427 (exit $ac_status); }; }; then
50428 ac_cv_member_struct_statvfs_f_fstypename=yes
50429 else
50430 echo "$as_me: failed program was:" >&5
50431 sed 's/^/| /' conftest.$ac_ext >&5
50433 cat >conftest.$ac_ext <<_ACEOF
50434 /* confdefs.h. */
50435 _ACEOF
50436 cat confdefs.h >>conftest.$ac_ext
50437 cat >>conftest.$ac_ext <<_ACEOF
50438 /* end confdefs.h. */
50439 $statxfs_includes
50442 main ()
50444 static struct statvfs ac_aggr;
50445 if (sizeof ac_aggr.f_fstypename)
50446 return 0;
50448 return 0;
50450 _ACEOF
50451 rm -f conftest.$ac_objext
50452 if { (ac_try="$ac_compile"
50453 case "(($ac_try" in
50454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50455 *) ac_try_echo=$ac_try;;
50456 esac
50457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50458 (eval "$ac_compile") 2>conftest.er1
50459 ac_status=$?
50460 grep -v '^ *+' conftest.er1 >conftest.err
50461 rm -f conftest.er1
50462 cat conftest.err >&5
50463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50464 (exit $ac_status); } &&
50465 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
50466 { (case "(($ac_try" in
50467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50468 *) ac_try_echo=$ac_try;;
50469 esac
50470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50471 (eval "$ac_try") 2>&5
50472 ac_status=$?
50473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50474 (exit $ac_status); }; } &&
50475 { ac_try='test -s conftest.$ac_objext'
50476 { (case "(($ac_try" in
50477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50478 *) ac_try_echo=$ac_try;;
50479 esac
50480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50481 (eval "$ac_try") 2>&5
50482 ac_status=$?
50483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50484 (exit $ac_status); }; }; then
50485 ac_cv_member_struct_statvfs_f_fstypename=yes
50486 else
50487 echo "$as_me: failed program was:" >&5
50488 sed 's/^/| /' conftest.$ac_ext >&5
50490 ac_cv_member_struct_statvfs_f_fstypename=no
50493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50498 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_fstypename" >&5
50499 echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_fstypename" >&6; }
50500 if test $ac_cv_member_struct_statvfs_f_fstypename = yes; then
50502 cat >>confdefs.h <<_ACEOF
50503 #define HAVE_STRUCT_STATVFS_F_FSTYPENAME 1
50504 _ACEOF
50509 { echo "$as_me:$LINENO: checking for struct statfs.f_type" >&5
50510 echo $ECHO_N "checking for struct statfs.f_type... $ECHO_C" >&6; }
50511 if test "${ac_cv_member_struct_statfs_f_type+set}" = set; then
50512 echo $ECHO_N "(cached) $ECHO_C" >&6
50513 else
50514 cat >conftest.$ac_ext <<_ACEOF
50515 /* confdefs.h. */
50516 _ACEOF
50517 cat confdefs.h >>conftest.$ac_ext
50518 cat >>conftest.$ac_ext <<_ACEOF
50519 /* end confdefs.h. */
50520 $statxfs_includes
50523 main ()
50525 static struct statfs ac_aggr;
50526 if (ac_aggr.f_type)
50527 return 0;
50529 return 0;
50531 _ACEOF
50532 rm -f conftest.$ac_objext
50533 if { (ac_try="$ac_compile"
50534 case "(($ac_try" in
50535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50536 *) ac_try_echo=$ac_try;;
50537 esac
50538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50539 (eval "$ac_compile") 2>conftest.er1
50540 ac_status=$?
50541 grep -v '^ *+' conftest.er1 >conftest.err
50542 rm -f conftest.er1
50543 cat conftest.err >&5
50544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50545 (exit $ac_status); } &&
50546 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
50547 { (case "(($ac_try" in
50548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50549 *) ac_try_echo=$ac_try;;
50550 esac
50551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50552 (eval "$ac_try") 2>&5
50553 ac_status=$?
50554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50555 (exit $ac_status); }; } &&
50556 { ac_try='test -s conftest.$ac_objext'
50557 { (case "(($ac_try" in
50558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50559 *) ac_try_echo=$ac_try;;
50560 esac
50561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50562 (eval "$ac_try") 2>&5
50563 ac_status=$?
50564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50565 (exit $ac_status); }; }; then
50566 ac_cv_member_struct_statfs_f_type=yes
50567 else
50568 echo "$as_me: failed program was:" >&5
50569 sed 's/^/| /' conftest.$ac_ext >&5
50571 cat >conftest.$ac_ext <<_ACEOF
50572 /* confdefs.h. */
50573 _ACEOF
50574 cat confdefs.h >>conftest.$ac_ext
50575 cat >>conftest.$ac_ext <<_ACEOF
50576 /* end confdefs.h. */
50577 $statxfs_includes
50580 main ()
50582 static struct statfs ac_aggr;
50583 if (sizeof ac_aggr.f_type)
50584 return 0;
50586 return 0;
50588 _ACEOF
50589 rm -f conftest.$ac_objext
50590 if { (ac_try="$ac_compile"
50591 case "(($ac_try" in
50592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50593 *) ac_try_echo=$ac_try;;
50594 esac
50595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50596 (eval "$ac_compile") 2>conftest.er1
50597 ac_status=$?
50598 grep -v '^ *+' conftest.er1 >conftest.err
50599 rm -f conftest.er1
50600 cat conftest.err >&5
50601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50602 (exit $ac_status); } &&
50603 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
50604 { (case "(($ac_try" in
50605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50606 *) ac_try_echo=$ac_try;;
50607 esac
50608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50609 (eval "$ac_try") 2>&5
50610 ac_status=$?
50611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50612 (exit $ac_status); }; } &&
50613 { ac_try='test -s conftest.$ac_objext'
50614 { (case "(($ac_try" in
50615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50616 *) ac_try_echo=$ac_try;;
50617 esac
50618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50619 (eval "$ac_try") 2>&5
50620 ac_status=$?
50621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50622 (exit $ac_status); }; }; then
50623 ac_cv_member_struct_statfs_f_type=yes
50624 else
50625 echo "$as_me: failed program was:" >&5
50626 sed 's/^/| /' conftest.$ac_ext >&5
50628 ac_cv_member_struct_statfs_f_type=no
50631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50636 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_type" >&5
50637 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_type" >&6; }
50638 if test $ac_cv_member_struct_statfs_f_type = yes; then
50640 cat >>confdefs.h <<_ACEOF
50641 #define HAVE_STRUCT_STATFS_F_TYPE 1
50642 _ACEOF
50647 { echo "$as_me:$LINENO: checking for struct statvfs.f_type" >&5
50648 echo $ECHO_N "checking for struct statvfs.f_type... $ECHO_C" >&6; }
50649 if test "${ac_cv_member_struct_statvfs_f_type+set}" = set; then
50650 echo $ECHO_N "(cached) $ECHO_C" >&6
50651 else
50652 cat >conftest.$ac_ext <<_ACEOF
50653 /* confdefs.h. */
50654 _ACEOF
50655 cat confdefs.h >>conftest.$ac_ext
50656 cat >>conftest.$ac_ext <<_ACEOF
50657 /* end confdefs.h. */
50658 $statxfs_includes
50661 main ()
50663 static struct statvfs ac_aggr;
50664 if (ac_aggr.f_type)
50665 return 0;
50667 return 0;
50669 _ACEOF
50670 rm -f conftest.$ac_objext
50671 if { (ac_try="$ac_compile"
50672 case "(($ac_try" in
50673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50674 *) ac_try_echo=$ac_try;;
50675 esac
50676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50677 (eval "$ac_compile") 2>conftest.er1
50678 ac_status=$?
50679 grep -v '^ *+' conftest.er1 >conftest.err
50680 rm -f conftest.er1
50681 cat conftest.err >&5
50682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50683 (exit $ac_status); } &&
50684 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
50685 { (case "(($ac_try" in
50686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50687 *) ac_try_echo=$ac_try;;
50688 esac
50689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50690 (eval "$ac_try") 2>&5
50691 ac_status=$?
50692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50693 (exit $ac_status); }; } &&
50694 { ac_try='test -s conftest.$ac_objext'
50695 { (case "(($ac_try" in
50696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50697 *) ac_try_echo=$ac_try;;
50698 esac
50699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50700 (eval "$ac_try") 2>&5
50701 ac_status=$?
50702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50703 (exit $ac_status); }; }; then
50704 ac_cv_member_struct_statvfs_f_type=yes
50705 else
50706 echo "$as_me: failed program was:" >&5
50707 sed 's/^/| /' conftest.$ac_ext >&5
50709 cat >conftest.$ac_ext <<_ACEOF
50710 /* confdefs.h. */
50711 _ACEOF
50712 cat confdefs.h >>conftest.$ac_ext
50713 cat >>conftest.$ac_ext <<_ACEOF
50714 /* end confdefs.h. */
50715 $statxfs_includes
50718 main ()
50720 static struct statvfs ac_aggr;
50721 if (sizeof ac_aggr.f_type)
50722 return 0;
50724 return 0;
50726 _ACEOF
50727 rm -f conftest.$ac_objext
50728 if { (ac_try="$ac_compile"
50729 case "(($ac_try" in
50730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50731 *) ac_try_echo=$ac_try;;
50732 esac
50733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50734 (eval "$ac_compile") 2>conftest.er1
50735 ac_status=$?
50736 grep -v '^ *+' conftest.er1 >conftest.err
50737 rm -f conftest.er1
50738 cat conftest.err >&5
50739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50740 (exit $ac_status); } &&
50741 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
50742 { (case "(($ac_try" in
50743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50744 *) ac_try_echo=$ac_try;;
50745 esac
50746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50747 (eval "$ac_try") 2>&5
50748 ac_status=$?
50749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50750 (exit $ac_status); }; } &&
50751 { ac_try='test -s conftest.$ac_objext'
50752 { (case "(($ac_try" in
50753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50754 *) ac_try_echo=$ac_try;;
50755 esac
50756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50757 (eval "$ac_try") 2>&5
50758 ac_status=$?
50759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50760 (exit $ac_status); }; }; then
50761 ac_cv_member_struct_statvfs_f_type=yes
50762 else
50763 echo "$as_me: failed program was:" >&5
50764 sed 's/^/| /' conftest.$ac_ext >&5
50766 ac_cv_member_struct_statvfs_f_type=no
50769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50774 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_type" >&5
50775 echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_type" >&6; }
50776 if test $ac_cv_member_struct_statvfs_f_type = yes; then
50778 cat >>confdefs.h <<_ACEOF
50779 #define HAVE_STRUCT_STATVFS_F_TYPE 1
50780 _ACEOF
50785 { echo "$as_me:$LINENO: checking for struct statfs.f_fsid.__val" >&5
50786 echo $ECHO_N "checking for struct statfs.f_fsid.__val... $ECHO_C" >&6; }
50787 if test "${ac_cv_member_struct_statfs_f_fsid___val+set}" = set; then
50788 echo $ECHO_N "(cached) $ECHO_C" >&6
50789 else
50790 cat >conftest.$ac_ext <<_ACEOF
50791 /* confdefs.h. */
50792 _ACEOF
50793 cat confdefs.h >>conftest.$ac_ext
50794 cat >>conftest.$ac_ext <<_ACEOF
50795 /* end confdefs.h. */
50796 $statxfs_includes
50799 main ()
50801 static struct statfs ac_aggr;
50802 if (ac_aggr.f_fsid.__val)
50803 return 0;
50805 return 0;
50807 _ACEOF
50808 rm -f conftest.$ac_objext
50809 if { (ac_try="$ac_compile"
50810 case "(($ac_try" in
50811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50812 *) ac_try_echo=$ac_try;;
50813 esac
50814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50815 (eval "$ac_compile") 2>conftest.er1
50816 ac_status=$?
50817 grep -v '^ *+' conftest.er1 >conftest.err
50818 rm -f conftest.er1
50819 cat conftest.err >&5
50820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50821 (exit $ac_status); } &&
50822 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
50823 { (case "(($ac_try" in
50824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50825 *) ac_try_echo=$ac_try;;
50826 esac
50827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50828 (eval "$ac_try") 2>&5
50829 ac_status=$?
50830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50831 (exit $ac_status); }; } &&
50832 { ac_try='test -s conftest.$ac_objext'
50833 { (case "(($ac_try" in
50834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50835 *) ac_try_echo=$ac_try;;
50836 esac
50837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50838 (eval "$ac_try") 2>&5
50839 ac_status=$?
50840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50841 (exit $ac_status); }; }; then
50842 ac_cv_member_struct_statfs_f_fsid___val=yes
50843 else
50844 echo "$as_me: failed program was:" >&5
50845 sed 's/^/| /' conftest.$ac_ext >&5
50847 cat >conftest.$ac_ext <<_ACEOF
50848 /* confdefs.h. */
50849 _ACEOF
50850 cat confdefs.h >>conftest.$ac_ext
50851 cat >>conftest.$ac_ext <<_ACEOF
50852 /* end confdefs.h. */
50853 $statxfs_includes
50856 main ()
50858 static struct statfs ac_aggr;
50859 if (sizeof ac_aggr.f_fsid.__val)
50860 return 0;
50862 return 0;
50864 _ACEOF
50865 rm -f conftest.$ac_objext
50866 if { (ac_try="$ac_compile"
50867 case "(($ac_try" in
50868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50869 *) ac_try_echo=$ac_try;;
50870 esac
50871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50872 (eval "$ac_compile") 2>conftest.er1
50873 ac_status=$?
50874 grep -v '^ *+' conftest.er1 >conftest.err
50875 rm -f conftest.er1
50876 cat conftest.err >&5
50877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50878 (exit $ac_status); } &&
50879 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
50880 { (case "(($ac_try" in
50881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50882 *) ac_try_echo=$ac_try;;
50883 esac
50884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50885 (eval "$ac_try") 2>&5
50886 ac_status=$?
50887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50888 (exit $ac_status); }; } &&
50889 { ac_try='test -s conftest.$ac_objext'
50890 { (case "(($ac_try" in
50891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50892 *) ac_try_echo=$ac_try;;
50893 esac
50894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50895 (eval "$ac_try") 2>&5
50896 ac_status=$?
50897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50898 (exit $ac_status); }; }; then
50899 ac_cv_member_struct_statfs_f_fsid___val=yes
50900 else
50901 echo "$as_me: failed program was:" >&5
50902 sed 's/^/| /' conftest.$ac_ext >&5
50904 ac_cv_member_struct_statfs_f_fsid___val=no
50907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50912 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_fsid___val" >&5
50913 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_fsid___val" >&6; }
50914 if test $ac_cv_member_struct_statfs_f_fsid___val = yes; then
50916 cat >>confdefs.h <<_ACEOF
50917 #define HAVE_STRUCT_STATFS_F_FSID___VAL 1
50918 _ACEOF
50923 { echo "$as_me:$LINENO: checking for struct statvfs.f_fsid.__val" >&5
50924 echo $ECHO_N "checking for struct statvfs.f_fsid.__val... $ECHO_C" >&6; }
50925 if test "${ac_cv_member_struct_statvfs_f_fsid___val+set}" = set; then
50926 echo $ECHO_N "(cached) $ECHO_C" >&6
50927 else
50928 cat >conftest.$ac_ext <<_ACEOF
50929 /* confdefs.h. */
50930 _ACEOF
50931 cat confdefs.h >>conftest.$ac_ext
50932 cat >>conftest.$ac_ext <<_ACEOF
50933 /* end confdefs.h. */
50934 $statxfs_includes
50937 main ()
50939 static struct statvfs ac_aggr;
50940 if (ac_aggr.f_fsid.__val)
50941 return 0;
50943 return 0;
50945 _ACEOF
50946 rm -f conftest.$ac_objext
50947 if { (ac_try="$ac_compile"
50948 case "(($ac_try" in
50949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50950 *) ac_try_echo=$ac_try;;
50951 esac
50952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50953 (eval "$ac_compile") 2>conftest.er1
50954 ac_status=$?
50955 grep -v '^ *+' conftest.er1 >conftest.err
50956 rm -f conftest.er1
50957 cat conftest.err >&5
50958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50959 (exit $ac_status); } &&
50960 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
50961 { (case "(($ac_try" in
50962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50963 *) ac_try_echo=$ac_try;;
50964 esac
50965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50966 (eval "$ac_try") 2>&5
50967 ac_status=$?
50968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50969 (exit $ac_status); }; } &&
50970 { ac_try='test -s conftest.$ac_objext'
50971 { (case "(($ac_try" in
50972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50973 *) ac_try_echo=$ac_try;;
50974 esac
50975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50976 (eval "$ac_try") 2>&5
50977 ac_status=$?
50978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50979 (exit $ac_status); }; }; then
50980 ac_cv_member_struct_statvfs_f_fsid___val=yes
50981 else
50982 echo "$as_me: failed program was:" >&5
50983 sed 's/^/| /' conftest.$ac_ext >&5
50985 cat >conftest.$ac_ext <<_ACEOF
50986 /* confdefs.h. */
50987 _ACEOF
50988 cat confdefs.h >>conftest.$ac_ext
50989 cat >>conftest.$ac_ext <<_ACEOF
50990 /* end confdefs.h. */
50991 $statxfs_includes
50994 main ()
50996 static struct statvfs ac_aggr;
50997 if (sizeof ac_aggr.f_fsid.__val)
50998 return 0;
51000 return 0;
51002 _ACEOF
51003 rm -f conftest.$ac_objext
51004 if { (ac_try="$ac_compile"
51005 case "(($ac_try" in
51006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51007 *) ac_try_echo=$ac_try;;
51008 esac
51009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51010 (eval "$ac_compile") 2>conftest.er1
51011 ac_status=$?
51012 grep -v '^ *+' conftest.er1 >conftest.err
51013 rm -f conftest.er1
51014 cat conftest.err >&5
51015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51016 (exit $ac_status); } &&
51017 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
51018 { (case "(($ac_try" in
51019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51020 *) ac_try_echo=$ac_try;;
51021 esac
51022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51023 (eval "$ac_try") 2>&5
51024 ac_status=$?
51025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51026 (exit $ac_status); }; } &&
51027 { ac_try='test -s conftest.$ac_objext'
51028 { (case "(($ac_try" in
51029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51030 *) ac_try_echo=$ac_try;;
51031 esac
51032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51033 (eval "$ac_try") 2>&5
51034 ac_status=$?
51035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51036 (exit $ac_status); }; }; then
51037 ac_cv_member_struct_statvfs_f_fsid___val=yes
51038 else
51039 echo "$as_me: failed program was:" >&5
51040 sed 's/^/| /' conftest.$ac_ext >&5
51042 ac_cv_member_struct_statvfs_f_fsid___val=no
51045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51050 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_fsid___val" >&5
51051 echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_fsid___val" >&6; }
51052 if test $ac_cv_member_struct_statvfs_f_fsid___val = yes; then
51054 cat >>confdefs.h <<_ACEOF
51055 #define HAVE_STRUCT_STATVFS_F_FSID___VAL 1
51056 _ACEOF
51061 { echo "$as_me:$LINENO: checking for struct statfs.f_namemax" >&5
51062 echo $ECHO_N "checking for struct statfs.f_namemax... $ECHO_C" >&6; }
51063 if test "${ac_cv_member_struct_statfs_f_namemax+set}" = set; then
51064 echo $ECHO_N "(cached) $ECHO_C" >&6
51065 else
51066 cat >conftest.$ac_ext <<_ACEOF
51067 /* confdefs.h. */
51068 _ACEOF
51069 cat confdefs.h >>conftest.$ac_ext
51070 cat >>conftest.$ac_ext <<_ACEOF
51071 /* end confdefs.h. */
51072 $statxfs_includes
51075 main ()
51077 static struct statfs ac_aggr;
51078 if (ac_aggr.f_namemax)
51079 return 0;
51081 return 0;
51083 _ACEOF
51084 rm -f conftest.$ac_objext
51085 if { (ac_try="$ac_compile"
51086 case "(($ac_try" in
51087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51088 *) ac_try_echo=$ac_try;;
51089 esac
51090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51091 (eval "$ac_compile") 2>conftest.er1
51092 ac_status=$?
51093 grep -v '^ *+' conftest.er1 >conftest.err
51094 rm -f conftest.er1
51095 cat conftest.err >&5
51096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51097 (exit $ac_status); } &&
51098 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
51099 { (case "(($ac_try" in
51100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51101 *) ac_try_echo=$ac_try;;
51102 esac
51103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51104 (eval "$ac_try") 2>&5
51105 ac_status=$?
51106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51107 (exit $ac_status); }; } &&
51108 { ac_try='test -s conftest.$ac_objext'
51109 { (case "(($ac_try" in
51110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51111 *) ac_try_echo=$ac_try;;
51112 esac
51113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51114 (eval "$ac_try") 2>&5
51115 ac_status=$?
51116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51117 (exit $ac_status); }; }; then
51118 ac_cv_member_struct_statfs_f_namemax=yes
51119 else
51120 echo "$as_me: failed program was:" >&5
51121 sed 's/^/| /' conftest.$ac_ext >&5
51123 cat >conftest.$ac_ext <<_ACEOF
51124 /* confdefs.h. */
51125 _ACEOF
51126 cat confdefs.h >>conftest.$ac_ext
51127 cat >>conftest.$ac_ext <<_ACEOF
51128 /* end confdefs.h. */
51129 $statxfs_includes
51132 main ()
51134 static struct statfs ac_aggr;
51135 if (sizeof ac_aggr.f_namemax)
51136 return 0;
51138 return 0;
51140 _ACEOF
51141 rm -f conftest.$ac_objext
51142 if { (ac_try="$ac_compile"
51143 case "(($ac_try" in
51144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51145 *) ac_try_echo=$ac_try;;
51146 esac
51147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51148 (eval "$ac_compile") 2>conftest.er1
51149 ac_status=$?
51150 grep -v '^ *+' conftest.er1 >conftest.err
51151 rm -f conftest.er1
51152 cat conftest.err >&5
51153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51154 (exit $ac_status); } &&
51155 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
51156 { (case "(($ac_try" in
51157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51158 *) ac_try_echo=$ac_try;;
51159 esac
51160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51161 (eval "$ac_try") 2>&5
51162 ac_status=$?
51163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51164 (exit $ac_status); }; } &&
51165 { ac_try='test -s conftest.$ac_objext'
51166 { (case "(($ac_try" in
51167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51168 *) ac_try_echo=$ac_try;;
51169 esac
51170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51171 (eval "$ac_try") 2>&5
51172 ac_status=$?
51173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51174 (exit $ac_status); }; }; then
51175 ac_cv_member_struct_statfs_f_namemax=yes
51176 else
51177 echo "$as_me: failed program was:" >&5
51178 sed 's/^/| /' conftest.$ac_ext >&5
51180 ac_cv_member_struct_statfs_f_namemax=no
51183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51188 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_namemax" >&5
51189 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_namemax" >&6; }
51190 if test $ac_cv_member_struct_statfs_f_namemax = yes; then
51192 cat >>confdefs.h <<_ACEOF
51193 #define HAVE_STRUCT_STATFS_F_NAMEMAX 1
51194 _ACEOF
51199 { echo "$as_me:$LINENO: checking for struct statvfs.f_namemax" >&5
51200 echo $ECHO_N "checking for struct statvfs.f_namemax... $ECHO_C" >&6; }
51201 if test "${ac_cv_member_struct_statvfs_f_namemax+set}" = set; then
51202 echo $ECHO_N "(cached) $ECHO_C" >&6
51203 else
51204 cat >conftest.$ac_ext <<_ACEOF
51205 /* confdefs.h. */
51206 _ACEOF
51207 cat confdefs.h >>conftest.$ac_ext
51208 cat >>conftest.$ac_ext <<_ACEOF
51209 /* end confdefs.h. */
51210 $statxfs_includes
51213 main ()
51215 static struct statvfs ac_aggr;
51216 if (ac_aggr.f_namemax)
51217 return 0;
51219 return 0;
51221 _ACEOF
51222 rm -f conftest.$ac_objext
51223 if { (ac_try="$ac_compile"
51224 case "(($ac_try" in
51225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51226 *) ac_try_echo=$ac_try;;
51227 esac
51228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51229 (eval "$ac_compile") 2>conftest.er1
51230 ac_status=$?
51231 grep -v '^ *+' conftest.er1 >conftest.err
51232 rm -f conftest.er1
51233 cat conftest.err >&5
51234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51235 (exit $ac_status); } &&
51236 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
51237 { (case "(($ac_try" in
51238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51239 *) ac_try_echo=$ac_try;;
51240 esac
51241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51242 (eval "$ac_try") 2>&5
51243 ac_status=$?
51244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51245 (exit $ac_status); }; } &&
51246 { ac_try='test -s conftest.$ac_objext'
51247 { (case "(($ac_try" in
51248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51249 *) ac_try_echo=$ac_try;;
51250 esac
51251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51252 (eval "$ac_try") 2>&5
51253 ac_status=$?
51254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51255 (exit $ac_status); }; }; then
51256 ac_cv_member_struct_statvfs_f_namemax=yes
51257 else
51258 echo "$as_me: failed program was:" >&5
51259 sed 's/^/| /' conftest.$ac_ext >&5
51261 cat >conftest.$ac_ext <<_ACEOF
51262 /* confdefs.h. */
51263 _ACEOF
51264 cat confdefs.h >>conftest.$ac_ext
51265 cat >>conftest.$ac_ext <<_ACEOF
51266 /* end confdefs.h. */
51267 $statxfs_includes
51270 main ()
51272 static struct statvfs ac_aggr;
51273 if (sizeof ac_aggr.f_namemax)
51274 return 0;
51276 return 0;
51278 _ACEOF
51279 rm -f conftest.$ac_objext
51280 if { (ac_try="$ac_compile"
51281 case "(($ac_try" in
51282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51283 *) ac_try_echo=$ac_try;;
51284 esac
51285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51286 (eval "$ac_compile") 2>conftest.er1
51287 ac_status=$?
51288 grep -v '^ *+' conftest.er1 >conftest.err
51289 rm -f conftest.er1
51290 cat conftest.err >&5
51291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51292 (exit $ac_status); } &&
51293 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
51294 { (case "(($ac_try" in
51295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51296 *) ac_try_echo=$ac_try;;
51297 esac
51298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51299 (eval "$ac_try") 2>&5
51300 ac_status=$?
51301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51302 (exit $ac_status); }; } &&
51303 { ac_try='test -s conftest.$ac_objext'
51304 { (case "(($ac_try" in
51305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51306 *) ac_try_echo=$ac_try;;
51307 esac
51308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51309 (eval "$ac_try") 2>&5
51310 ac_status=$?
51311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51312 (exit $ac_status); }; }; then
51313 ac_cv_member_struct_statvfs_f_namemax=yes
51314 else
51315 echo "$as_me: failed program was:" >&5
51316 sed 's/^/| /' conftest.$ac_ext >&5
51318 ac_cv_member_struct_statvfs_f_namemax=no
51321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51326 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_namemax" >&5
51327 echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_namemax" >&6; }
51328 if test $ac_cv_member_struct_statvfs_f_namemax = yes; then
51330 cat >>confdefs.h <<_ACEOF
51331 #define HAVE_STRUCT_STATVFS_F_NAMEMAX 1
51332 _ACEOF
51337 { echo "$as_me:$LINENO: checking for struct statfs.f_namelen" >&5
51338 echo $ECHO_N "checking for struct statfs.f_namelen... $ECHO_C" >&6; }
51339 if test "${ac_cv_member_struct_statfs_f_namelen+set}" = set; then
51340 echo $ECHO_N "(cached) $ECHO_C" >&6
51341 else
51342 cat >conftest.$ac_ext <<_ACEOF
51343 /* confdefs.h. */
51344 _ACEOF
51345 cat confdefs.h >>conftest.$ac_ext
51346 cat >>conftest.$ac_ext <<_ACEOF
51347 /* end confdefs.h. */
51348 $statxfs_includes
51351 main ()
51353 static struct statfs ac_aggr;
51354 if (ac_aggr.f_namelen)
51355 return 0;
51357 return 0;
51359 _ACEOF
51360 rm -f conftest.$ac_objext
51361 if { (ac_try="$ac_compile"
51362 case "(($ac_try" in
51363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51364 *) ac_try_echo=$ac_try;;
51365 esac
51366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51367 (eval "$ac_compile") 2>conftest.er1
51368 ac_status=$?
51369 grep -v '^ *+' conftest.er1 >conftest.err
51370 rm -f conftest.er1
51371 cat conftest.err >&5
51372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51373 (exit $ac_status); } &&
51374 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
51375 { (case "(($ac_try" in
51376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51377 *) ac_try_echo=$ac_try;;
51378 esac
51379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51380 (eval "$ac_try") 2>&5
51381 ac_status=$?
51382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51383 (exit $ac_status); }; } &&
51384 { ac_try='test -s conftest.$ac_objext'
51385 { (case "(($ac_try" in
51386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51387 *) ac_try_echo=$ac_try;;
51388 esac
51389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51390 (eval "$ac_try") 2>&5
51391 ac_status=$?
51392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51393 (exit $ac_status); }; }; then
51394 ac_cv_member_struct_statfs_f_namelen=yes
51395 else
51396 echo "$as_me: failed program was:" >&5
51397 sed 's/^/| /' conftest.$ac_ext >&5
51399 cat >conftest.$ac_ext <<_ACEOF
51400 /* confdefs.h. */
51401 _ACEOF
51402 cat confdefs.h >>conftest.$ac_ext
51403 cat >>conftest.$ac_ext <<_ACEOF
51404 /* end confdefs.h. */
51405 $statxfs_includes
51408 main ()
51410 static struct statfs ac_aggr;
51411 if (sizeof ac_aggr.f_namelen)
51412 return 0;
51414 return 0;
51416 _ACEOF
51417 rm -f conftest.$ac_objext
51418 if { (ac_try="$ac_compile"
51419 case "(($ac_try" in
51420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51421 *) ac_try_echo=$ac_try;;
51422 esac
51423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51424 (eval "$ac_compile") 2>conftest.er1
51425 ac_status=$?
51426 grep -v '^ *+' conftest.er1 >conftest.err
51427 rm -f conftest.er1
51428 cat conftest.err >&5
51429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51430 (exit $ac_status); } &&
51431 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
51432 { (case "(($ac_try" in
51433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51434 *) ac_try_echo=$ac_try;;
51435 esac
51436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51437 (eval "$ac_try") 2>&5
51438 ac_status=$?
51439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51440 (exit $ac_status); }; } &&
51441 { ac_try='test -s conftest.$ac_objext'
51442 { (case "(($ac_try" in
51443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51444 *) ac_try_echo=$ac_try;;
51445 esac
51446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51447 (eval "$ac_try") 2>&5
51448 ac_status=$?
51449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51450 (exit $ac_status); }; }; then
51451 ac_cv_member_struct_statfs_f_namelen=yes
51452 else
51453 echo "$as_me: failed program was:" >&5
51454 sed 's/^/| /' conftest.$ac_ext >&5
51456 ac_cv_member_struct_statfs_f_namelen=no
51459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51464 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_namelen" >&5
51465 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_namelen" >&6; }
51466 if test $ac_cv_member_struct_statfs_f_namelen = yes; then
51468 cat >>confdefs.h <<_ACEOF
51469 #define HAVE_STRUCT_STATFS_F_NAMELEN 1
51470 _ACEOF
51475 { echo "$as_me:$LINENO: checking for struct statvfs.f_namelen" >&5
51476 echo $ECHO_N "checking for struct statvfs.f_namelen... $ECHO_C" >&6; }
51477 if test "${ac_cv_member_struct_statvfs_f_namelen+set}" = set; then
51478 echo $ECHO_N "(cached) $ECHO_C" >&6
51479 else
51480 cat >conftest.$ac_ext <<_ACEOF
51481 /* confdefs.h. */
51482 _ACEOF
51483 cat confdefs.h >>conftest.$ac_ext
51484 cat >>conftest.$ac_ext <<_ACEOF
51485 /* end confdefs.h. */
51486 $statxfs_includes
51489 main ()
51491 static struct statvfs ac_aggr;
51492 if (ac_aggr.f_namelen)
51493 return 0;
51495 return 0;
51497 _ACEOF
51498 rm -f conftest.$ac_objext
51499 if { (ac_try="$ac_compile"
51500 case "(($ac_try" in
51501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51502 *) ac_try_echo=$ac_try;;
51503 esac
51504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51505 (eval "$ac_compile") 2>conftest.er1
51506 ac_status=$?
51507 grep -v '^ *+' conftest.er1 >conftest.err
51508 rm -f conftest.er1
51509 cat conftest.err >&5
51510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51511 (exit $ac_status); } &&
51512 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
51513 { (case "(($ac_try" in
51514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51515 *) ac_try_echo=$ac_try;;
51516 esac
51517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51518 (eval "$ac_try") 2>&5
51519 ac_status=$?
51520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51521 (exit $ac_status); }; } &&
51522 { ac_try='test -s conftest.$ac_objext'
51523 { (case "(($ac_try" in
51524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51525 *) ac_try_echo=$ac_try;;
51526 esac
51527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51528 (eval "$ac_try") 2>&5
51529 ac_status=$?
51530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51531 (exit $ac_status); }; }; then
51532 ac_cv_member_struct_statvfs_f_namelen=yes
51533 else
51534 echo "$as_me: failed program was:" >&5
51535 sed 's/^/| /' conftest.$ac_ext >&5
51537 cat >conftest.$ac_ext <<_ACEOF
51538 /* confdefs.h. */
51539 _ACEOF
51540 cat confdefs.h >>conftest.$ac_ext
51541 cat >>conftest.$ac_ext <<_ACEOF
51542 /* end confdefs.h. */
51543 $statxfs_includes
51546 main ()
51548 static struct statvfs ac_aggr;
51549 if (sizeof ac_aggr.f_namelen)
51550 return 0;
51552 return 0;
51554 _ACEOF
51555 rm -f conftest.$ac_objext
51556 if { (ac_try="$ac_compile"
51557 case "(($ac_try" in
51558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51559 *) ac_try_echo=$ac_try;;
51560 esac
51561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51562 (eval "$ac_compile") 2>conftest.er1
51563 ac_status=$?
51564 grep -v '^ *+' conftest.er1 >conftest.err
51565 rm -f conftest.er1
51566 cat conftest.err >&5
51567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51568 (exit $ac_status); } &&
51569 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
51570 { (case "(($ac_try" in
51571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51572 *) ac_try_echo=$ac_try;;
51573 esac
51574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51575 (eval "$ac_try") 2>&5
51576 ac_status=$?
51577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51578 (exit $ac_status); }; } &&
51579 { ac_try='test -s conftest.$ac_objext'
51580 { (case "(($ac_try" in
51581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51582 *) ac_try_echo=$ac_try;;
51583 esac
51584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51585 (eval "$ac_try") 2>&5
51586 ac_status=$?
51587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51588 (exit $ac_status); }; }; then
51589 ac_cv_member_struct_statvfs_f_namelen=yes
51590 else
51591 echo "$as_me: failed program was:" >&5
51592 sed 's/^/| /' conftest.$ac_ext >&5
51594 ac_cv_member_struct_statvfs_f_namelen=no
51597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51602 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_namelen" >&5
51603 echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_namelen" >&6; }
51604 if test $ac_cv_member_struct_statvfs_f_namelen = yes; then
51606 cat >>confdefs.h <<_ACEOF
51607 #define HAVE_STRUCT_STATVFS_F_NAMELEN 1
51608 _ACEOF
51615 if test "X$prefix" = "XNONE"; then
51616 acl_final_prefix="$ac_default_prefix"
51617 else
51618 acl_final_prefix="$prefix"
51620 if test "X$exec_prefix" = "XNONE"; then
51621 acl_final_exec_prefix='${prefix}'
51622 else
51623 acl_final_exec_prefix="$exec_prefix"
51625 acl_save_prefix="$prefix"
51626 prefix="$acl_final_prefix"
51627 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
51628 prefix="$acl_save_prefix"
51631 # Check whether --with-gnu-ld was given.
51632 if test "${with_gnu_ld+set}" = set; then
51633 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
51634 else
51635 with_gnu_ld=no
51638 # Prepare PATH_SEPARATOR.
51639 # The user is always right.
51640 if test "${PATH_SEPARATOR+set}" != set; then
51641 echo "#! /bin/sh" >conf$$.sh
51642 echo "exit 0" >>conf$$.sh
51643 chmod +x conf$$.sh
51644 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
51645 PATH_SEPARATOR=';'
51646 else
51647 PATH_SEPARATOR=:
51649 rm -f conf$$.sh
51651 ac_prog=ld
51652 if test "$GCC" = yes; then
51653 # Check if gcc -print-prog-name=ld gives a path.
51654 { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
51655 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
51656 case $host in
51657 *-*-mingw*)
51658 # gcc leaves a trailing carriage return which upsets mingw
51659 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
51661 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
51662 esac
51663 case $ac_prog in
51664 # Accept absolute paths.
51665 [\\/]* | [A-Za-z]:[\\/]*)
51666 re_direlt='/[^/][^/]*/\.\./'
51667 # Canonicalize the path of ld
51668 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
51669 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
51670 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
51671 done
51672 test -z "$LD" && LD="$ac_prog"
51675 # If it fails, then pretend we aren't using GCC.
51676 ac_prog=ld
51679 # If it is relative, then search for the first ld in PATH.
51680 with_gnu_ld=unknown
51682 esac
51683 elif test "$with_gnu_ld" = yes; then
51684 { echo "$as_me:$LINENO: checking for GNU ld" >&5
51685 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
51686 else
51687 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
51688 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
51690 if test "${acl_cv_path_LD+set}" = set; then
51691 echo $ECHO_N "(cached) $ECHO_C" >&6
51692 else
51693 if test -z "$LD"; then
51694 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
51695 for ac_dir in $PATH; do
51696 test -z "$ac_dir" && ac_dir=.
51697 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
51698 acl_cv_path_LD="$ac_dir/$ac_prog"
51699 # Check to see if the program is GNU ld. I'd rather use --version,
51700 # but apparently some GNU ld's only accept -v.
51701 # Break only if it was the GNU/non-GNU ld that we prefer.
51702 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
51703 *GNU* | *'with BFD'*)
51704 test "$with_gnu_ld" != no && break ;;
51706 test "$with_gnu_ld" != yes && break ;;
51707 esac
51709 done
51710 IFS="$ac_save_ifs"
51711 else
51712 acl_cv_path_LD="$LD" # Let the user override the test with a path.
51716 LD="$acl_cv_path_LD"
51717 if test -n "$LD"; then
51718 { echo "$as_me:$LINENO: result: $LD" >&5
51719 echo "${ECHO_T}$LD" >&6; }
51720 else
51721 { echo "$as_me:$LINENO: result: no" >&5
51722 echo "${ECHO_T}no" >&6; }
51724 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
51725 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
51726 { (exit 1); exit 1; }; }
51727 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
51728 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
51729 if test "${acl_cv_prog_gnu_ld+set}" = set; then
51730 echo $ECHO_N "(cached) $ECHO_C" >&6
51731 else
51732 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
51733 case `$LD -v 2>&1 </dev/null` in
51734 *GNU* | *'with BFD'*)
51735 acl_cv_prog_gnu_ld=yes ;;
51737 acl_cv_prog_gnu_ld=no ;;
51738 esac
51740 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
51741 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
51742 with_gnu_ld=$acl_cv_prog_gnu_ld
51747 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
51748 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
51749 if test "${acl_cv_rpath+set}" = set; then
51750 echo $ECHO_N "(cached) $ECHO_C" >&6
51751 else
51753 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
51754 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
51755 . ./conftest.sh
51756 rm -f ./conftest.sh
51757 acl_cv_rpath=done
51760 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
51761 echo "${ECHO_T}$acl_cv_rpath" >&6; }
51762 wl="$acl_cv_wl"
51763 libext="$acl_cv_libext"
51764 shlibext="$acl_cv_shlibext"
51765 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
51766 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
51767 hardcode_direct="$acl_cv_hardcode_direct"
51768 hardcode_minus_L="$acl_cv_hardcode_minus_L"
51769 # Check whether --enable-rpath was given.
51770 if test "${enable_rpath+set}" = set; then
51771 enableval=$enable_rpath; :
51772 else
51773 enable_rpath=yes
51778 acl_libdirstem=lib
51779 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
51780 if test -n "$searchpath"; then
51781 acl_save_IFS="${IFS= }"; IFS=":"
51782 for searchdir in $searchpath; do
51783 if test -d "$searchdir"; then
51784 case "$searchdir" in
51785 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
51786 *) searchdir=`cd "$searchdir" && pwd`
51787 case "$searchdir" in
51788 */lib64 ) acl_libdirstem=lib64 ;;
51789 esac ;;
51790 esac
51792 done
51793 IFS="$acl_save_IFS"
51803 use_additional=yes
51805 acl_save_prefix="$prefix"
51806 prefix="$acl_final_prefix"
51807 acl_save_exec_prefix="$exec_prefix"
51808 exec_prefix="$acl_final_exec_prefix"
51810 eval additional_includedir=\"$includedir\"
51811 eval additional_libdir=\"$libdir\"
51813 exec_prefix="$acl_save_exec_prefix"
51814 prefix="$acl_save_prefix"
51817 # Check whether --with-libiconv-prefix was given.
51818 if test "${with_libiconv_prefix+set}" = set; then
51819 withval=$with_libiconv_prefix;
51820 if test "X$withval" = "Xno"; then
51821 use_additional=no
51822 else
51823 if test "X$withval" = "X"; then
51825 acl_save_prefix="$prefix"
51826 prefix="$acl_final_prefix"
51827 acl_save_exec_prefix="$exec_prefix"
51828 exec_prefix="$acl_final_exec_prefix"
51830 eval additional_includedir=\"$includedir\"
51831 eval additional_libdir=\"$libdir\"
51833 exec_prefix="$acl_save_exec_prefix"
51834 prefix="$acl_save_prefix"
51836 else
51837 additional_includedir="$withval/include"
51838 additional_libdir="$withval/$acl_libdirstem"
51844 LIBICONV=
51845 LTLIBICONV=
51846 INCICONV=
51847 rpathdirs=
51848 ltrpathdirs=
51849 names_already_handled=
51850 names_next_round='iconv '
51851 while test -n "$names_next_round"; do
51852 names_this_round="$names_next_round"
51853 names_next_round=
51854 for name in $names_this_round; do
51855 already_handled=
51856 for n in $names_already_handled; do
51857 if test "$n" = "$name"; then
51858 already_handled=yes
51859 break
51861 done
51862 if test -z "$already_handled"; then
51863 names_already_handled="$names_already_handled $name"
51864 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
51865 eval value=\"\$HAVE_LIB$uppername\"
51866 if test -n "$value"; then
51867 if test "$value" = yes; then
51868 eval value=\"\$LIB$uppername\"
51869 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
51870 eval value=\"\$LTLIB$uppername\"
51871 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
51872 else
51875 else
51876 found_dir=
51877 found_la=
51878 found_so=
51879 found_a=
51880 if test $use_additional = yes; then
51881 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
51882 found_dir="$additional_libdir"
51883 found_so="$additional_libdir/lib$name.$shlibext"
51884 if test -f "$additional_libdir/lib$name.la"; then
51885 found_la="$additional_libdir/lib$name.la"
51887 else
51888 if test -f "$additional_libdir/lib$name.$libext"; then
51889 found_dir="$additional_libdir"
51890 found_a="$additional_libdir/lib$name.$libext"
51891 if test -f "$additional_libdir/lib$name.la"; then
51892 found_la="$additional_libdir/lib$name.la"
51897 if test "X$found_dir" = "X"; then
51898 for x in $LDFLAGS $LTLIBICONV; do
51900 acl_save_prefix="$prefix"
51901 prefix="$acl_final_prefix"
51902 acl_save_exec_prefix="$exec_prefix"
51903 exec_prefix="$acl_final_exec_prefix"
51904 eval x=\"$x\"
51905 exec_prefix="$acl_save_exec_prefix"
51906 prefix="$acl_save_prefix"
51908 case "$x" in
51909 -L*)
51910 dir=`echo "X$x" | sed -e 's/^X-L//'`
51911 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
51912 found_dir="$dir"
51913 found_so="$dir/lib$name.$shlibext"
51914 if test -f "$dir/lib$name.la"; then
51915 found_la="$dir/lib$name.la"
51917 else
51918 if test -f "$dir/lib$name.$libext"; then
51919 found_dir="$dir"
51920 found_a="$dir/lib$name.$libext"
51921 if test -f "$dir/lib$name.la"; then
51922 found_la="$dir/lib$name.la"
51927 esac
51928 if test "X$found_dir" != "X"; then
51929 break
51931 done
51933 if test "X$found_dir" != "X"; then
51934 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
51935 if test "X$found_so" != "X"; then
51936 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
51937 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
51938 else
51939 haveit=
51940 for x in $ltrpathdirs; do
51941 if test "X$x" = "X$found_dir"; then
51942 haveit=yes
51943 break
51945 done
51946 if test -z "$haveit"; then
51947 ltrpathdirs="$ltrpathdirs $found_dir"
51949 if test "$hardcode_direct" = yes; then
51950 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
51951 else
51952 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
51953 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
51954 haveit=
51955 for x in $rpathdirs; do
51956 if test "X$x" = "X$found_dir"; then
51957 haveit=yes
51958 break
51960 done
51961 if test -z "$haveit"; then
51962 rpathdirs="$rpathdirs $found_dir"
51964 else
51965 haveit=
51966 for x in $LDFLAGS $LIBICONV; do
51968 acl_save_prefix="$prefix"
51969 prefix="$acl_final_prefix"
51970 acl_save_exec_prefix="$exec_prefix"
51971 exec_prefix="$acl_final_exec_prefix"
51972 eval x=\"$x\"
51973 exec_prefix="$acl_save_exec_prefix"
51974 prefix="$acl_save_prefix"
51976 if test "X$x" = "X-L$found_dir"; then
51977 haveit=yes
51978 break
51980 done
51981 if test -z "$haveit"; then
51982 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
51984 if test "$hardcode_minus_L" != no; then
51985 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
51986 else
51987 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
51992 else
51993 if test "X$found_a" != "X"; then
51994 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
51995 else
51996 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
51999 additional_includedir=
52000 case "$found_dir" in
52001 */$acl_libdirstem | */$acl_libdirstem/)
52002 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
52003 additional_includedir="$basedir/include"
52005 esac
52006 if test "X$additional_includedir" != "X"; then
52007 if test "X$additional_includedir" != "X/usr/include"; then
52008 haveit=
52009 if test "X$additional_includedir" = "X/usr/local/include"; then
52010 if test -n "$GCC"; then
52011 case $host_os in
52012 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
52013 esac
52016 if test -z "$haveit"; then
52017 for x in $CPPFLAGS $INCICONV; do
52019 acl_save_prefix="$prefix"
52020 prefix="$acl_final_prefix"
52021 acl_save_exec_prefix="$exec_prefix"
52022 exec_prefix="$acl_final_exec_prefix"
52023 eval x=\"$x\"
52024 exec_prefix="$acl_save_exec_prefix"
52025 prefix="$acl_save_prefix"
52027 if test "X$x" = "X-I$additional_includedir"; then
52028 haveit=yes
52029 break
52031 done
52032 if test -z "$haveit"; then
52033 if test -d "$additional_includedir"; then
52034 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
52040 if test -n "$found_la"; then
52041 save_libdir="$libdir"
52042 case "$found_la" in
52043 */* | *\\*) . "$found_la" ;;
52044 *) . "./$found_la" ;;
52045 esac
52046 libdir="$save_libdir"
52047 for dep in $dependency_libs; do
52048 case "$dep" in
52049 -L*)
52050 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
52051 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
52052 haveit=
52053 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
52054 if test -n "$GCC"; then
52055 case $host_os in
52056 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
52057 esac
52060 if test -z "$haveit"; then
52061 haveit=
52062 for x in $LDFLAGS $LIBICONV; do
52064 acl_save_prefix="$prefix"
52065 prefix="$acl_final_prefix"
52066 acl_save_exec_prefix="$exec_prefix"
52067 exec_prefix="$acl_final_exec_prefix"
52068 eval x=\"$x\"
52069 exec_prefix="$acl_save_exec_prefix"
52070 prefix="$acl_save_prefix"
52072 if test "X$x" = "X-L$additional_libdir"; then
52073 haveit=yes
52074 break
52076 done
52077 if test -z "$haveit"; then
52078 if test -d "$additional_libdir"; then
52079 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
52082 haveit=
52083 for x in $LDFLAGS $LTLIBICONV; do
52085 acl_save_prefix="$prefix"
52086 prefix="$acl_final_prefix"
52087 acl_save_exec_prefix="$exec_prefix"
52088 exec_prefix="$acl_final_exec_prefix"
52089 eval x=\"$x\"
52090 exec_prefix="$acl_save_exec_prefix"
52091 prefix="$acl_save_prefix"
52093 if test "X$x" = "X-L$additional_libdir"; then
52094 haveit=yes
52095 break
52097 done
52098 if test -z "$haveit"; then
52099 if test -d "$additional_libdir"; then
52100 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
52106 -R*)
52107 dir=`echo "X$dep" | sed -e 's/^X-R//'`
52108 if test "$enable_rpath" != no; then
52109 haveit=
52110 for x in $rpathdirs; do
52111 if test "X$x" = "X$dir"; then
52112 haveit=yes
52113 break
52115 done
52116 if test -z "$haveit"; then
52117 rpathdirs="$rpathdirs $dir"
52119 haveit=
52120 for x in $ltrpathdirs; do
52121 if test "X$x" = "X$dir"; then
52122 haveit=yes
52123 break
52125 done
52126 if test -z "$haveit"; then
52127 ltrpathdirs="$ltrpathdirs $dir"
52131 -l*)
52132 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
52134 *.la)
52135 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
52138 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
52139 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
52141 esac
52142 done
52144 else
52145 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
52146 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
52150 done
52151 done
52152 if test "X$rpathdirs" != "X"; then
52153 if test -n "$hardcode_libdir_separator"; then
52154 alldirs=
52155 for found_dir in $rpathdirs; do
52156 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
52157 done
52158 acl_save_libdir="$libdir"
52159 libdir="$alldirs"
52160 eval flag=\"$hardcode_libdir_flag_spec\"
52161 libdir="$acl_save_libdir"
52162 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
52163 else
52164 for found_dir in $rpathdirs; do
52165 acl_save_libdir="$libdir"
52166 libdir="$found_dir"
52167 eval flag=\"$hardcode_libdir_flag_spec\"
52168 libdir="$acl_save_libdir"
52169 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
52170 done
52173 if test "X$ltrpathdirs" != "X"; then
52174 for found_dir in $ltrpathdirs; do
52175 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
52176 done
52182 case " $LIBOBJS " in
52183 *" canonicalize.$ac_objext "* ) ;;
52184 *) LIBOBJS="$LIBOBJS canonicalize.$ac_objext"
52186 esac
52190 for ac_header in sys/param.h
52192 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
52193 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
52194 { echo "$as_me:$LINENO: checking for $ac_header" >&5
52195 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
52196 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
52197 echo $ECHO_N "(cached) $ECHO_C" >&6
52199 ac_res=`eval echo '${'$as_ac_Header'}'`
52200 { echo "$as_me:$LINENO: result: $ac_res" >&5
52201 echo "${ECHO_T}$ac_res" >&6; }
52202 else
52203 # Is the header compilable?
52204 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
52205 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
52206 cat >conftest.$ac_ext <<_ACEOF
52207 /* confdefs.h. */
52208 _ACEOF
52209 cat confdefs.h >>conftest.$ac_ext
52210 cat >>conftest.$ac_ext <<_ACEOF
52211 /* end confdefs.h. */
52212 $ac_includes_default
52213 #include <$ac_header>
52214 _ACEOF
52215 rm -f conftest.$ac_objext
52216 if { (ac_try="$ac_compile"
52217 case "(($ac_try" in
52218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52219 *) ac_try_echo=$ac_try;;
52220 esac
52221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52222 (eval "$ac_compile") 2>conftest.er1
52223 ac_status=$?
52224 grep -v '^ *+' conftest.er1 >conftest.err
52225 rm -f conftest.er1
52226 cat conftest.err >&5
52227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52228 (exit $ac_status); } &&
52229 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
52230 { (case "(($ac_try" in
52231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52232 *) ac_try_echo=$ac_try;;
52233 esac
52234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52235 (eval "$ac_try") 2>&5
52236 ac_status=$?
52237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52238 (exit $ac_status); }; } &&
52239 { ac_try='test -s conftest.$ac_objext'
52240 { (case "(($ac_try" in
52241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52242 *) ac_try_echo=$ac_try;;
52243 esac
52244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52245 (eval "$ac_try") 2>&5
52246 ac_status=$?
52247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52248 (exit $ac_status); }; }; then
52249 ac_header_compiler=yes
52250 else
52251 echo "$as_me: failed program was:" >&5
52252 sed 's/^/| /' conftest.$ac_ext >&5
52254 ac_header_compiler=no
52257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52258 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
52259 echo "${ECHO_T}$ac_header_compiler" >&6; }
52261 # Is the header present?
52262 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
52263 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
52264 cat >conftest.$ac_ext <<_ACEOF
52265 /* confdefs.h. */
52266 _ACEOF
52267 cat confdefs.h >>conftest.$ac_ext
52268 cat >>conftest.$ac_ext <<_ACEOF
52269 /* end confdefs.h. */
52270 #include <$ac_header>
52271 _ACEOF
52272 if { (ac_try="$ac_cpp conftest.$ac_ext"
52273 case "(($ac_try" in
52274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52275 *) ac_try_echo=$ac_try;;
52276 esac
52277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52278 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
52279 ac_status=$?
52280 grep -v '^ *+' conftest.er1 >conftest.err
52281 rm -f conftest.er1
52282 cat conftest.err >&5
52283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52284 (exit $ac_status); } >/dev/null; then
52285 if test -s conftest.err; then
52286 ac_cpp_err=$ac_c_preproc_warn_flag
52287 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
52288 else
52289 ac_cpp_err=
52291 else
52292 ac_cpp_err=yes
52294 if test -z "$ac_cpp_err"; then
52295 ac_header_preproc=yes
52296 else
52297 echo "$as_me: failed program was:" >&5
52298 sed 's/^/| /' conftest.$ac_ext >&5
52300 ac_header_preproc=no
52303 rm -f conftest.err conftest.$ac_ext
52304 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
52305 echo "${ECHO_T}$ac_header_preproc" >&6; }
52307 # So? What about this header?
52308 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
52309 yes:no: )
52310 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
52311 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
52312 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
52313 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
52314 ac_header_preproc=yes
52316 no:yes:* )
52317 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
52318 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
52319 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
52320 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
52321 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
52322 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
52323 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
52324 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
52325 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
52326 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
52327 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
52328 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
52329 ( cat <<\_ASBOX
52330 ## ------------------------------------ ##
52331 ## Report this to bug-coreutils@gnu.org ##
52332 ## ------------------------------------ ##
52333 _ASBOX
52334 ) | sed "s/^/$as_me: WARNING: /" >&2
52336 esac
52337 { echo "$as_me:$LINENO: checking for $ac_header" >&5
52338 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
52339 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
52340 echo $ECHO_N "(cached) $ECHO_C" >&6
52341 else
52342 eval "$as_ac_Header=\$ac_header_preproc"
52344 ac_res=`eval echo '${'$as_ac_Header'}'`
52345 { echo "$as_me:$LINENO: result: $ac_res" >&5
52346 echo "${ECHO_T}$ac_res" >&6; }
52349 if test `eval echo '${'$as_ac_Header'}'` = yes; then
52350 cat >>confdefs.h <<_ACEOF
52351 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
52352 _ACEOF
52356 done
52360 for ac_func in resolvepath canonicalize_file_name
52362 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
52363 { echo "$as_me:$LINENO: checking for $ac_func" >&5
52364 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
52365 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
52366 echo $ECHO_N "(cached) $ECHO_C" >&6
52367 else
52368 cat >conftest.$ac_ext <<_ACEOF
52369 /* confdefs.h. */
52370 _ACEOF
52371 cat confdefs.h >>conftest.$ac_ext
52372 cat >>conftest.$ac_ext <<_ACEOF
52373 /* end confdefs.h. */
52374 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
52375 For example, HP-UX 11i <limits.h> declares gettimeofday. */
52376 #define $ac_func innocuous_$ac_func
52378 /* System header to define __stub macros and hopefully few prototypes,
52379 which can conflict with char $ac_func (); below.
52380 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
52381 <limits.h> exists even on freestanding compilers. */
52383 #ifdef __STDC__
52384 # include <limits.h>
52385 #else
52386 # include <assert.h>
52387 #endif
52389 #undef $ac_func
52391 /* Override any GCC internal prototype to avoid an error.
52392 Use char because int might match the return type of a GCC
52393 builtin and then its argument prototype would still apply. */
52394 #ifdef __cplusplus
52395 extern "C"
52396 #endif
52397 char $ac_func ();
52398 /* The GNU C library defines this for functions which it implements
52399 to always fail with ENOSYS. Some functions are actually named
52400 something starting with __ and the normal name is an alias. */
52401 #if defined __stub_$ac_func || defined __stub___$ac_func
52402 choke me
52403 #endif
52406 main ()
52408 return $ac_func ();
52410 return 0;
52412 _ACEOF
52413 rm -f conftest.$ac_objext conftest$ac_exeext
52414 if { (ac_try="$ac_link"
52415 case "(($ac_try" in
52416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52417 *) ac_try_echo=$ac_try;;
52418 esac
52419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52420 (eval "$ac_link") 2>conftest.er1
52421 ac_status=$?
52422 grep -v '^ *+' conftest.er1 >conftest.err
52423 rm -f conftest.er1
52424 cat conftest.err >&5
52425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52426 (exit $ac_status); } &&
52427 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
52428 { (case "(($ac_try" in
52429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52430 *) ac_try_echo=$ac_try;;
52431 esac
52432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52433 (eval "$ac_try") 2>&5
52434 ac_status=$?
52435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52436 (exit $ac_status); }; } &&
52437 { ac_try='test -s conftest$ac_exeext'
52438 { (case "(($ac_try" in
52439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52440 *) ac_try_echo=$ac_try;;
52441 esac
52442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52443 (eval "$ac_try") 2>&5
52444 ac_status=$?
52445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52446 (exit $ac_status); }; }; then
52447 eval "$as_ac_var=yes"
52448 else
52449 echo "$as_me: failed program was:" >&5
52450 sed 's/^/| /' conftest.$ac_ext >&5
52452 eval "$as_ac_var=no"
52455 rm -f core conftest.err conftest.$ac_objext \
52456 conftest$ac_exeext conftest.$ac_ext
52458 ac_res=`eval echo '${'$as_ac_var'}'`
52459 { echo "$as_me:$LINENO: result: $ac_res" >&5
52460 echo "${ECHO_T}$ac_res" >&6; }
52461 if test `eval echo '${'$as_ac_var'}'` = yes; then
52462 cat >>confdefs.h <<_ACEOF
52463 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
52464 _ACEOF
52467 done
52472 { echo "$as_me:$LINENO: checking whether this system has an arbitrary file name length limit" >&5
52473 echo $ECHO_N "checking whether this system has an arbitrary file name length limit... $ECHO_C" >&6; }
52474 if test "${gl_have_arbitrary_file_name_length_limit+set}" = set; then
52475 echo $ECHO_N "(cached) $ECHO_C" >&6
52476 else
52477 cat >conftest.$ac_ext <<_ACEOF
52478 /* confdefs.h. */
52479 _ACEOF
52480 cat confdefs.h >>conftest.$ac_ext
52481 cat >>conftest.$ac_ext <<_ACEOF
52482 /* end confdefs.h. */
52483 #include <unistd.h>
52484 #include <limits.h>
52485 #if defined PATH_MAX || defined MAXPATHLEN
52486 have_arbitrary_file_name_length_limit
52487 #endif
52488 _ACEOF
52489 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
52490 $EGREP "have_arbitrary_file_name_length_limit" >/dev/null 2>&1; then
52491 gl_have_arbitrary_file_name_length_limit=yes
52492 else
52493 gl_have_arbitrary_file_name_length_limit=no
52495 rm -f conftest*
52498 { echo "$as_me:$LINENO: result: $gl_have_arbitrary_file_name_length_limit" >&5
52499 echo "${ECHO_T}$gl_have_arbitrary_file_name_length_limit" >&6; }
52501 if test $gl_have_arbitrary_file_name_length_limit = yes; then
52502 case " $LIBOBJS " in
52503 *" chdir-long.$ac_objext "* ) ;;
52504 *) LIBOBJS="$LIBOBJS chdir-long.$ac_objext"
52506 esac
52512 # Define two additional variables used in the Makefile substitution.
52514 if test "$ac_cv_header_stdbool_h" = yes; then
52515 STDBOOL_H=''
52516 else
52517 STDBOOL_H='stdbool.h'
52521 if test "$ac_cv_type__Bool" = yes; then
52522 HAVE__BOOL=1
52523 else
52524 HAVE__BOOL=0
52534 for ac_func in mempcpy
52536 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
52537 { echo "$as_me:$LINENO: checking for $ac_func" >&5
52538 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
52539 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
52540 echo $ECHO_N "(cached) $ECHO_C" >&6
52541 else
52542 cat >conftest.$ac_ext <<_ACEOF
52543 /* confdefs.h. */
52544 _ACEOF
52545 cat confdefs.h >>conftest.$ac_ext
52546 cat >>conftest.$ac_ext <<_ACEOF
52547 /* end confdefs.h. */
52548 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
52549 For example, HP-UX 11i <limits.h> declares gettimeofday. */
52550 #define $ac_func innocuous_$ac_func
52552 /* System header to define __stub macros and hopefully few prototypes,
52553 which can conflict with char $ac_func (); below.
52554 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
52555 <limits.h> exists even on freestanding compilers. */
52557 #ifdef __STDC__
52558 # include <limits.h>
52559 #else
52560 # include <assert.h>
52561 #endif
52563 #undef $ac_func
52565 /* Override any GCC internal prototype to avoid an error.
52566 Use char because int might match the return type of a GCC
52567 builtin and then its argument prototype would still apply. */
52568 #ifdef __cplusplus
52569 extern "C"
52570 #endif
52571 char $ac_func ();
52572 /* The GNU C library defines this for functions which it implements
52573 to always fail with ENOSYS. Some functions are actually named
52574 something starting with __ and the normal name is an alias. */
52575 #if defined __stub_$ac_func || defined __stub___$ac_func
52576 choke me
52577 #endif
52580 main ()
52582 return $ac_func ();
52584 return 0;
52586 _ACEOF
52587 rm -f conftest.$ac_objext conftest$ac_exeext
52588 if { (ac_try="$ac_link"
52589 case "(($ac_try" in
52590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52591 *) ac_try_echo=$ac_try;;
52592 esac
52593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52594 (eval "$ac_link") 2>conftest.er1
52595 ac_status=$?
52596 grep -v '^ *+' conftest.er1 >conftest.err
52597 rm -f conftest.er1
52598 cat conftest.err >&5
52599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52600 (exit $ac_status); } &&
52601 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
52602 { (case "(($ac_try" in
52603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52604 *) ac_try_echo=$ac_try;;
52605 esac
52606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52607 (eval "$ac_try") 2>&5
52608 ac_status=$?
52609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52610 (exit $ac_status); }; } &&
52611 { ac_try='test -s conftest$ac_exeext'
52612 { (case "(($ac_try" in
52613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52614 *) ac_try_echo=$ac_try;;
52615 esac
52616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52617 (eval "$ac_try") 2>&5
52618 ac_status=$?
52619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52620 (exit $ac_status); }; }; then
52621 eval "$as_ac_var=yes"
52622 else
52623 echo "$as_me: failed program was:" >&5
52624 sed 's/^/| /' conftest.$ac_ext >&5
52626 eval "$as_ac_var=no"
52629 rm -f core conftest.err conftest.$ac_objext \
52630 conftest$ac_exeext conftest.$ac_ext
52632 ac_res=`eval echo '${'$as_ac_var'}'`
52633 { echo "$as_me:$LINENO: result: $ac_res" >&5
52634 echo "${ECHO_T}$ac_res" >&6; }
52635 if test `eval echo '${'$as_ac_var'}'` = yes; then
52636 cat >>confdefs.h <<_ACEOF
52637 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
52638 _ACEOF
52640 else
52641 case " $LIBOBJS " in
52642 *" $ac_func.$ac_objext "* ) ;;
52643 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
52645 esac
52648 done
52651 if test $ac_cv_func_mempcpy = no; then
52663 # No system provides these functions; compile them unconditionally.
52664 case " $LIBOBJS " in
52665 *" mkdirat.$ac_objext "* ) ;;
52666 *) LIBOBJS="$LIBOBJS mkdirat.$ac_objext"
52668 esac
52670 case " $LIBOBJS " in
52671 *" fchmodat.$ac_objext "* ) ;;
52672 *) LIBOBJS="$LIBOBJS fchmodat.$ac_objext"
52674 esac
52677 case " $LIBOBJS " in
52678 *" openat-die.$ac_objext "* ) ;;
52679 *) LIBOBJS="$LIBOBJS openat-die.$ac_objext"
52681 esac
52697 for ac_func in openat
52699 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
52700 { echo "$as_me:$LINENO: checking for $ac_func" >&5
52701 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
52702 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
52703 echo $ECHO_N "(cached) $ECHO_C" >&6
52704 else
52705 cat >conftest.$ac_ext <<_ACEOF
52706 /* confdefs.h. */
52707 _ACEOF
52708 cat confdefs.h >>conftest.$ac_ext
52709 cat >>conftest.$ac_ext <<_ACEOF
52710 /* end confdefs.h. */
52711 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
52712 For example, HP-UX 11i <limits.h> declares gettimeofday. */
52713 #define $ac_func innocuous_$ac_func
52715 /* System header to define __stub macros and hopefully few prototypes,
52716 which can conflict with char $ac_func (); below.
52717 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
52718 <limits.h> exists even on freestanding compilers. */
52720 #ifdef __STDC__
52721 # include <limits.h>
52722 #else
52723 # include <assert.h>
52724 #endif
52726 #undef $ac_func
52728 /* Override any GCC internal prototype to avoid an error.
52729 Use char because int might match the return type of a GCC
52730 builtin and then its argument prototype would still apply. */
52731 #ifdef __cplusplus
52732 extern "C"
52733 #endif
52734 char $ac_func ();
52735 /* The GNU C library defines this for functions which it implements
52736 to always fail with ENOSYS. Some functions are actually named
52737 something starting with __ and the normal name is an alias. */
52738 #if defined __stub_$ac_func || defined __stub___$ac_func
52739 choke me
52740 #endif
52743 main ()
52745 return $ac_func ();
52747 return 0;
52749 _ACEOF
52750 rm -f conftest.$ac_objext conftest$ac_exeext
52751 if { (ac_try="$ac_link"
52752 case "(($ac_try" in
52753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52754 *) ac_try_echo=$ac_try;;
52755 esac
52756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52757 (eval "$ac_link") 2>conftest.er1
52758 ac_status=$?
52759 grep -v '^ *+' conftest.er1 >conftest.err
52760 rm -f conftest.er1
52761 cat conftest.err >&5
52762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52763 (exit $ac_status); } &&
52764 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
52765 { (case "(($ac_try" in
52766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52767 *) ac_try_echo=$ac_try;;
52768 esac
52769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52770 (eval "$ac_try") 2>&5
52771 ac_status=$?
52772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52773 (exit $ac_status); }; } &&
52774 { ac_try='test -s conftest$ac_exeext'
52775 { (case "(($ac_try" in
52776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52777 *) ac_try_echo=$ac_try;;
52778 esac
52779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52780 (eval "$ac_try") 2>&5
52781 ac_status=$?
52782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52783 (exit $ac_status); }; }; then
52784 eval "$as_ac_var=yes"
52785 else
52786 echo "$as_me: failed program was:" >&5
52787 sed 's/^/| /' conftest.$ac_ext >&5
52789 eval "$as_ac_var=no"
52792 rm -f core conftest.err conftest.$ac_objext \
52793 conftest$ac_exeext conftest.$ac_ext
52795 ac_res=`eval echo '${'$as_ac_var'}'`
52796 { echo "$as_me:$LINENO: result: $ac_res" >&5
52797 echo "${ECHO_T}$ac_res" >&6; }
52798 if test `eval echo '${'$as_ac_var'}'` = yes; then
52799 cat >>confdefs.h <<_ACEOF
52800 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
52801 _ACEOF
52803 else
52804 case " $LIBOBJS " in
52805 *" $ac_func.$ac_objext "* ) ;;
52806 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
52808 esac
52811 done
52814 case $ac_cv_func_openat in
52815 yes) ;;
52818 cat >>confdefs.h <<\_ACEOF
52819 #define __OPENAT_PREFIX rpl_
52820 _ACEOF
52825 esac
52838 for ac_func in memrchr
52840 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
52841 { echo "$as_me:$LINENO: checking for $ac_func" >&5
52842 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
52843 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
52844 echo $ECHO_N "(cached) $ECHO_C" >&6
52845 else
52846 cat >conftest.$ac_ext <<_ACEOF
52847 /* confdefs.h. */
52848 _ACEOF
52849 cat confdefs.h >>conftest.$ac_ext
52850 cat >>conftest.$ac_ext <<_ACEOF
52851 /* end confdefs.h. */
52852 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
52853 For example, HP-UX 11i <limits.h> declares gettimeofday. */
52854 #define $ac_func innocuous_$ac_func
52856 /* System header to define __stub macros and hopefully few prototypes,
52857 which can conflict with char $ac_func (); below.
52858 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
52859 <limits.h> exists even on freestanding compilers. */
52861 #ifdef __STDC__
52862 # include <limits.h>
52863 #else
52864 # include <assert.h>
52865 #endif
52867 #undef $ac_func
52869 /* Override any GCC internal prototype to avoid an error.
52870 Use char because int might match the return type of a GCC
52871 builtin and then its argument prototype would still apply. */
52872 #ifdef __cplusplus
52873 extern "C"
52874 #endif
52875 char $ac_func ();
52876 /* The GNU C library defines this for functions which it implements
52877 to always fail with ENOSYS. Some functions are actually named
52878 something starting with __ and the normal name is an alias. */
52879 #if defined __stub_$ac_func || defined __stub___$ac_func
52880 choke me
52881 #endif
52884 main ()
52886 return $ac_func ();
52888 return 0;
52890 _ACEOF
52891 rm -f conftest.$ac_objext conftest$ac_exeext
52892 if { (ac_try="$ac_link"
52893 case "(($ac_try" in
52894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52895 *) ac_try_echo=$ac_try;;
52896 esac
52897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52898 (eval "$ac_link") 2>conftest.er1
52899 ac_status=$?
52900 grep -v '^ *+' conftest.er1 >conftest.err
52901 rm -f conftest.er1
52902 cat conftest.err >&5
52903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52904 (exit $ac_status); } &&
52905 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
52906 { (case "(($ac_try" in
52907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52908 *) ac_try_echo=$ac_try;;
52909 esac
52910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52911 (eval "$ac_try") 2>&5
52912 ac_status=$?
52913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52914 (exit $ac_status); }; } &&
52915 { ac_try='test -s conftest$ac_exeext'
52916 { (case "(($ac_try" in
52917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52918 *) ac_try_echo=$ac_try;;
52919 esac
52920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52921 (eval "$ac_try") 2>&5
52922 ac_status=$?
52923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52924 (exit $ac_status); }; }; then
52925 eval "$as_ac_var=yes"
52926 else
52927 echo "$as_me: failed program was:" >&5
52928 sed 's/^/| /' conftest.$ac_ext >&5
52930 eval "$as_ac_var=no"
52933 rm -f core conftest.err conftest.$ac_objext \
52934 conftest$ac_exeext conftest.$ac_ext
52936 ac_res=`eval echo '${'$as_ac_var'}'`
52937 { echo "$as_me:$LINENO: result: $ac_res" >&5
52938 echo "${ECHO_T}$ac_res" >&6; }
52939 if test `eval echo '${'$as_ac_var'}'` = yes; then
52940 cat >>confdefs.h <<_ACEOF
52941 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
52942 _ACEOF
52944 else
52945 case " $LIBOBJS " in
52946 *" $ac_func.$ac_objext "* ) ;;
52947 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
52949 esac
52952 done
52955 if test $ac_cv_func_memrchr = no; then
52964 case " $LIBOBJS " in
52965 *" xfts.$ac_objext "* ) ;;
52966 *) LIBOBJS="$LIBOBJS xfts.$ac_objext"
52968 esac
52975 case " $LIBOBJS " in
52976 *" root-dev-ino.$ac_objext "* ) ;;
52977 *) LIBOBJS="$LIBOBJS root-dev-ino.$ac_objext"
52979 esac
52987 case " $LIBOBJS " in
52988 *" version-etc-fsf.$ac_objext "* ) ;;
52989 *) LIBOBJS="$LIBOBJS version-etc-fsf.$ac_objext"
52991 esac
52993 case " $LIBOBJS " in
52994 *" version-etc.$ac_objext "* ) ;;
52995 *) LIBOBJS="$LIBOBJS version-etc.$ac_objext"
52997 esac
53004 case " $LIBOBJS " in
53005 *" diacrit.$ac_objext "* ) ;;
53006 *) LIBOBJS="$LIBOBJS diacrit.$ac_objext"
53008 esac
53015 case " $LIBOBJS " in
53016 *" fprintftime.$ac_objext "* ) ;;
53017 *) LIBOBJS="$LIBOBJS fprintftime.$ac_objext"
53019 esac
53024 case " $LIBOBJS " in
53025 *" chdir-safer.$ac_objext "* ) ;;
53026 *) LIBOBJS="$LIBOBJS chdir-safer.$ac_objext"
53028 esac
53034 GNU_PACKAGE="GNU $PACKAGE"
53036 cat >>confdefs.h <<_ACEOF
53037 #define GNU_PACKAGE "$GNU_PACKAGE"
53038 _ACEOF
53043 HELP2MAN=${HELP2MAN-"${am_missing_run}help2man"}
53061 { echo "$as_me:$LINENO: checking for struct stat.st_author" >&5
53062 echo $ECHO_N "checking for struct stat.st_author... $ECHO_C" >&6; }
53063 if test "${ac_cv_member_struct_stat_st_author+set}" = set; then
53064 echo $ECHO_N "(cached) $ECHO_C" >&6
53065 else
53066 cat >conftest.$ac_ext <<_ACEOF
53067 /* confdefs.h. */
53068 _ACEOF
53069 cat confdefs.h >>conftest.$ac_ext
53070 cat >>conftest.$ac_ext <<_ACEOF
53071 /* end confdefs.h. */
53072 $ac_includes_default
53073 #include <sys/stat.h>
53077 main ()
53079 static struct stat ac_aggr;
53080 if (ac_aggr.st_author)
53081 return 0;
53083 return 0;
53085 _ACEOF
53086 rm -f conftest.$ac_objext
53087 if { (ac_try="$ac_compile"
53088 case "(($ac_try" in
53089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53090 *) ac_try_echo=$ac_try;;
53091 esac
53092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
53093 (eval "$ac_compile") 2>conftest.er1
53094 ac_status=$?
53095 grep -v '^ *+' conftest.er1 >conftest.err
53096 rm -f conftest.er1
53097 cat conftest.err >&5
53098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53099 (exit $ac_status); } &&
53100 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
53101 { (case "(($ac_try" in
53102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53103 *) ac_try_echo=$ac_try;;
53104 esac
53105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
53106 (eval "$ac_try") 2>&5
53107 ac_status=$?
53108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53109 (exit $ac_status); }; } &&
53110 { ac_try='test -s conftest.$ac_objext'
53111 { (case "(($ac_try" in
53112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53113 *) ac_try_echo=$ac_try;;
53114 esac
53115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
53116 (eval "$ac_try") 2>&5
53117 ac_status=$?
53118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53119 (exit $ac_status); }; }; then
53120 ac_cv_member_struct_stat_st_author=yes
53121 else
53122 echo "$as_me: failed program was:" >&5
53123 sed 's/^/| /' conftest.$ac_ext >&5
53125 cat >conftest.$ac_ext <<_ACEOF
53126 /* confdefs.h. */
53127 _ACEOF
53128 cat confdefs.h >>conftest.$ac_ext
53129 cat >>conftest.$ac_ext <<_ACEOF
53130 /* end confdefs.h. */
53131 $ac_includes_default
53132 #include <sys/stat.h>
53136 main ()
53138 static struct stat ac_aggr;
53139 if (sizeof ac_aggr.st_author)
53140 return 0;
53142 return 0;
53144 _ACEOF
53145 rm -f conftest.$ac_objext
53146 if { (ac_try="$ac_compile"
53147 case "(($ac_try" in
53148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53149 *) ac_try_echo=$ac_try;;
53150 esac
53151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
53152 (eval "$ac_compile") 2>conftest.er1
53153 ac_status=$?
53154 grep -v '^ *+' conftest.er1 >conftest.err
53155 rm -f conftest.er1
53156 cat conftest.err >&5
53157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53158 (exit $ac_status); } &&
53159 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
53160 { (case "(($ac_try" in
53161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53162 *) ac_try_echo=$ac_try;;
53163 esac
53164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
53165 (eval "$ac_try") 2>&5
53166 ac_status=$?
53167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53168 (exit $ac_status); }; } &&
53169 { ac_try='test -s conftest.$ac_objext'
53170 { (case "(($ac_try" in
53171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53172 *) ac_try_echo=$ac_try;;
53173 esac
53174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
53175 (eval "$ac_try") 2>&5
53176 ac_status=$?
53177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53178 (exit $ac_status); }; }; then
53179 ac_cv_member_struct_stat_st_author=yes
53180 else
53181 echo "$as_me: failed program was:" >&5
53182 sed 's/^/| /' conftest.$ac_ext >&5
53184 ac_cv_member_struct_stat_st_author=no
53187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53192 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_author" >&5
53193 echo "${ECHO_T}$ac_cv_member_struct_stat_st_author" >&6; }
53194 if test $ac_cv_member_struct_stat_st_author = yes; then
53196 cat >>confdefs.h <<_ACEOF
53197 #define HAVE_STRUCT_STAT_ST_AUTHOR 1
53198 _ACEOF
53202 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
53203 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
53204 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
53205 echo $ECHO_N "(cached) $ECHO_C" >&6
53206 else
53207 cat >conftest.$ac_ext <<_ACEOF
53208 /* confdefs.h. */
53209 _ACEOF
53210 cat confdefs.h >>conftest.$ac_ext
53211 cat >>conftest.$ac_ext <<_ACEOF
53212 /* end confdefs.h. */
53213 $ac_includes_default
53214 #include <sys/stat.h>
53218 main ()
53220 static struct stat ac_aggr;
53221 if (ac_aggr.st_blksize)
53222 return 0;
53224 return 0;
53226 _ACEOF
53227 rm -f conftest.$ac_objext
53228 if { (ac_try="$ac_compile"
53229 case "(($ac_try" in
53230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53231 *) ac_try_echo=$ac_try;;
53232 esac
53233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
53234 (eval "$ac_compile") 2>conftest.er1
53235 ac_status=$?
53236 grep -v '^ *+' conftest.er1 >conftest.err
53237 rm -f conftest.er1
53238 cat conftest.err >&5
53239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53240 (exit $ac_status); } &&
53241 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
53242 { (case "(($ac_try" in
53243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53244 *) ac_try_echo=$ac_try;;
53245 esac
53246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
53247 (eval "$ac_try") 2>&5
53248 ac_status=$?
53249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53250 (exit $ac_status); }; } &&
53251 { ac_try='test -s conftest.$ac_objext'
53252 { (case "(($ac_try" in
53253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53254 *) ac_try_echo=$ac_try;;
53255 esac
53256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
53257 (eval "$ac_try") 2>&5
53258 ac_status=$?
53259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53260 (exit $ac_status); }; }; then
53261 ac_cv_member_struct_stat_st_blksize=yes
53262 else
53263 echo "$as_me: failed program was:" >&5
53264 sed 's/^/| /' conftest.$ac_ext >&5
53266 cat >conftest.$ac_ext <<_ACEOF
53267 /* confdefs.h. */
53268 _ACEOF
53269 cat confdefs.h >>conftest.$ac_ext
53270 cat >>conftest.$ac_ext <<_ACEOF
53271 /* end confdefs.h. */
53272 $ac_includes_default
53273 #include <sys/stat.h>
53277 main ()
53279 static struct stat ac_aggr;
53280 if (sizeof ac_aggr.st_blksize)
53281 return 0;
53283 return 0;
53285 _ACEOF
53286 rm -f conftest.$ac_objext
53287 if { (ac_try="$ac_compile"
53288 case "(($ac_try" in
53289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53290 *) ac_try_echo=$ac_try;;
53291 esac
53292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
53293 (eval "$ac_compile") 2>conftest.er1
53294 ac_status=$?
53295 grep -v '^ *+' conftest.er1 >conftest.err
53296 rm -f conftest.er1
53297 cat conftest.err >&5
53298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53299 (exit $ac_status); } &&
53300 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
53301 { (case "(($ac_try" in
53302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53303 *) ac_try_echo=$ac_try;;
53304 esac
53305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
53306 (eval "$ac_try") 2>&5
53307 ac_status=$?
53308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53309 (exit $ac_status); }; } &&
53310 { ac_try='test -s conftest.$ac_objext'
53311 { (case "(($ac_try" in
53312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53313 *) ac_try_echo=$ac_try;;
53314 esac
53315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
53316 (eval "$ac_try") 2>&5
53317 ac_status=$?
53318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53319 (exit $ac_status); }; }; then
53320 ac_cv_member_struct_stat_st_blksize=yes
53321 else
53322 echo "$as_me: failed program was:" >&5
53323 sed 's/^/| /' conftest.$ac_ext >&5
53325 ac_cv_member_struct_stat_st_blksize=no
53328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53333 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
53334 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
53335 if test $ac_cv_member_struct_stat_st_blksize = yes; then
53337 cat >>confdefs.h <<_ACEOF
53338 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
53339 _ACEOF
53355 { echo "$as_me:$LINENO: checking for ino_t" >&5
53356 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6; }
53357 if test "${ac_cv_type_ino_t+set}" = set; then
53358 echo $ECHO_N "(cached) $ECHO_C" >&6
53359 else
53360 cat >conftest.$ac_ext <<_ACEOF
53361 /* confdefs.h. */
53362 _ACEOF
53363 cat confdefs.h >>conftest.$ac_ext
53364 cat >>conftest.$ac_ext <<_ACEOF
53365 /* end confdefs.h. */
53366 $ac_includes_default
53367 typedef ino_t ac__type_new_;
53369 main ()
53371 if ((ac__type_new_ *) 0)
53372 return 0;
53373 if (sizeof (ac__type_new_))
53374 return 0;
53376 return 0;
53378 _ACEOF
53379 rm -f conftest.$ac_objext
53380 if { (ac_try="$ac_compile"
53381 case "(($ac_try" in
53382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53383 *) ac_try_echo=$ac_try;;
53384 esac
53385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
53386 (eval "$ac_compile") 2>conftest.er1
53387 ac_status=$?
53388 grep -v '^ *+' conftest.er1 >conftest.err
53389 rm -f conftest.er1
53390 cat conftest.err >&5
53391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53392 (exit $ac_status); } &&
53393 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
53394 { (case "(($ac_try" in
53395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53396 *) ac_try_echo=$ac_try;;
53397 esac
53398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
53399 (eval "$ac_try") 2>&5
53400 ac_status=$?
53401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53402 (exit $ac_status); }; } &&
53403 { ac_try='test -s conftest.$ac_objext'
53404 { (case "(($ac_try" in
53405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53406 *) ac_try_echo=$ac_try;;
53407 esac
53408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
53409 (eval "$ac_try") 2>&5
53410 ac_status=$?
53411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53412 (exit $ac_status); }; }; then
53413 ac_cv_type_ino_t=yes
53414 else
53415 echo "$as_me: failed program was:" >&5
53416 sed 's/^/| /' conftest.$ac_ext >&5
53418 ac_cv_type_ino_t=no
53421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53423 { echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
53424 echo "${ECHO_T}$ac_cv_type_ino_t" >&6; }
53425 if test $ac_cv_type_ino_t = yes; then
53427 else
53429 cat >>confdefs.h <<_ACEOF
53430 #define ino_t unsigned long int
53431 _ACEOF
53437 { echo "$as_me:$LINENO: checking for ssize_t" >&5
53438 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
53439 if test "${gt_cv_ssize_t+set}" = set; then
53440 echo $ECHO_N "(cached) $ECHO_C" >&6
53441 else
53442 cat >conftest.$ac_ext <<_ACEOF
53443 /* confdefs.h. */
53444 _ACEOF
53445 cat confdefs.h >>conftest.$ac_ext
53446 cat >>conftest.$ac_ext <<_ACEOF
53447 /* end confdefs.h. */
53448 #include <sys/types.h>
53450 main ()
53452 int x = sizeof (ssize_t *) + sizeof (ssize_t);
53453 return !x;
53455 return 0;
53457 _ACEOF
53458 rm -f conftest.$ac_objext
53459 if { (ac_try="$ac_compile"
53460 case "(($ac_try" in
53461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53462 *) ac_try_echo=$ac_try;;
53463 esac
53464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
53465 (eval "$ac_compile") 2>conftest.er1
53466 ac_status=$?
53467 grep -v '^ *+' conftest.er1 >conftest.err
53468 rm -f conftest.er1
53469 cat conftest.err >&5
53470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53471 (exit $ac_status); } &&
53472 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
53473 { (case "(($ac_try" in
53474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53475 *) ac_try_echo=$ac_try;;
53476 esac
53477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
53478 (eval "$ac_try") 2>&5
53479 ac_status=$?
53480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53481 (exit $ac_status); }; } &&
53482 { ac_try='test -s conftest.$ac_objext'
53483 { (case "(($ac_try" in
53484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53485 *) ac_try_echo=$ac_try;;
53486 esac
53487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
53488 (eval "$ac_try") 2>&5
53489 ac_status=$?
53490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53491 (exit $ac_status); }; }; then
53492 gt_cv_ssize_t=yes
53493 else
53494 echo "$as_me: failed program was:" >&5
53495 sed 's/^/| /' conftest.$ac_ext >&5
53497 gt_cv_ssize_t=no
53500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53502 { echo "$as_me:$LINENO: result: $gt_cv_ssize_t" >&5
53503 echo "${ECHO_T}$gt_cv_ssize_t" >&6; }
53504 if test $gt_cv_ssize_t = no; then
53506 cat >>confdefs.h <<\_ACEOF
53507 #define ssize_t int
53508 _ACEOF
53513 { echo "$as_me:$LINENO: checking for major_t" >&5
53514 echo $ECHO_N "checking for major_t... $ECHO_C" >&6; }
53515 if test "${ac_cv_type_major_t+set}" = set; then
53516 echo $ECHO_N "(cached) $ECHO_C" >&6
53517 else
53518 cat >conftest.$ac_ext <<_ACEOF
53519 /* confdefs.h. */
53520 _ACEOF
53521 cat confdefs.h >>conftest.$ac_ext
53522 cat >>conftest.$ac_ext <<_ACEOF
53523 /* end confdefs.h. */
53524 $ac_includes_default
53525 typedef major_t ac__type_new_;
53527 main ()
53529 if ((ac__type_new_ *) 0)
53530 return 0;
53531 if (sizeof (ac__type_new_))
53532 return 0;
53534 return 0;
53536 _ACEOF
53537 rm -f conftest.$ac_objext
53538 if { (ac_try="$ac_compile"
53539 case "(($ac_try" in
53540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53541 *) ac_try_echo=$ac_try;;
53542 esac
53543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
53544 (eval "$ac_compile") 2>conftest.er1
53545 ac_status=$?
53546 grep -v '^ *+' conftest.er1 >conftest.err
53547 rm -f conftest.er1
53548 cat conftest.err >&5
53549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53550 (exit $ac_status); } &&
53551 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
53552 { (case "(($ac_try" in
53553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53554 *) ac_try_echo=$ac_try;;
53555 esac
53556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
53557 (eval "$ac_try") 2>&5
53558 ac_status=$?
53559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53560 (exit $ac_status); }; } &&
53561 { ac_try='test -s conftest.$ac_objext'
53562 { (case "(($ac_try" in
53563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53564 *) ac_try_echo=$ac_try;;
53565 esac
53566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
53567 (eval "$ac_try") 2>&5
53568 ac_status=$?
53569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53570 (exit $ac_status); }; }; then
53571 ac_cv_type_major_t=yes
53572 else
53573 echo "$as_me: failed program was:" >&5
53574 sed 's/^/| /' conftest.$ac_ext >&5
53576 ac_cv_type_major_t=no
53579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53581 { echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
53582 echo "${ECHO_T}$ac_cv_type_major_t" >&6; }
53583 if test $ac_cv_type_major_t = yes; then
53585 else
53587 cat >>confdefs.h <<_ACEOF
53588 #define major_t unsigned int
53589 _ACEOF
53593 { echo "$as_me:$LINENO: checking for minor_t" >&5
53594 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6; }
53595 if test "${ac_cv_type_minor_t+set}" = set; then
53596 echo $ECHO_N "(cached) $ECHO_C" >&6
53597 else
53598 cat >conftest.$ac_ext <<_ACEOF
53599 /* confdefs.h. */
53600 _ACEOF
53601 cat confdefs.h >>conftest.$ac_ext
53602 cat >>conftest.$ac_ext <<_ACEOF
53603 /* end confdefs.h. */
53604 $ac_includes_default
53605 typedef minor_t ac__type_new_;
53607 main ()
53609 if ((ac__type_new_ *) 0)
53610 return 0;
53611 if (sizeof (ac__type_new_))
53612 return 0;
53614 return 0;
53616 _ACEOF
53617 rm -f conftest.$ac_objext
53618 if { (ac_try="$ac_compile"
53619 case "(($ac_try" in
53620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53621 *) ac_try_echo=$ac_try;;
53622 esac
53623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
53624 (eval "$ac_compile") 2>conftest.er1
53625 ac_status=$?
53626 grep -v '^ *+' conftest.er1 >conftest.err
53627 rm -f conftest.er1
53628 cat conftest.err >&5
53629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53630 (exit $ac_status); } &&
53631 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
53632 { (case "(($ac_try" in
53633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53634 *) ac_try_echo=$ac_try;;
53635 esac
53636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
53637 (eval "$ac_try") 2>&5
53638 ac_status=$?
53639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53640 (exit $ac_status); }; } &&
53641 { ac_try='test -s conftest.$ac_objext'
53642 { (case "(($ac_try" in
53643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53644 *) ac_try_echo=$ac_try;;
53645 esac
53646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
53647 (eval "$ac_try") 2>&5
53648 ac_status=$?
53649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53650 (exit $ac_status); }; }; then
53651 ac_cv_type_minor_t=yes
53652 else
53653 echo "$as_me: failed program was:" >&5
53654 sed 's/^/| /' conftest.$ac_ext >&5
53656 ac_cv_type_minor_t=no
53659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53661 { echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
53662 echo "${ECHO_T}$ac_cv_type_minor_t" >&6; }
53663 if test $ac_cv_type_minor_t = yes; then
53665 else
53667 cat >>confdefs.h <<_ACEOF
53668 #define minor_t unsigned int
53669 _ACEOF
53702 # This is for od and stat, and any other program that
53703 # uses the PRI.MAX macros from inttypes.h.
53713 ac_have_func=no # yes means we've found a way to get the load average.
53715 # Make sure getloadavg.c is where it belongs, at configure-time.
53716 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
53717 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
53718 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
53719 { (exit 1); exit 1; }; }
53721 ac_save_LIBS=$LIBS
53723 # Check for getloadavg, but be sure not to touch the cache variable.
53724 ({ echo "$as_me:$LINENO: checking for getloadavg" >&5
53725 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6; }
53726 if test "${ac_cv_func_getloadavg+set}" = set; then
53727 echo $ECHO_N "(cached) $ECHO_C" >&6
53728 else
53729 cat >conftest.$ac_ext <<_ACEOF
53730 /* confdefs.h. */
53731 _ACEOF
53732 cat confdefs.h >>conftest.$ac_ext
53733 cat >>conftest.$ac_ext <<_ACEOF
53734 /* end confdefs.h. */
53735 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
53736 For example, HP-UX 11i <limits.h> declares gettimeofday. */
53737 #define getloadavg innocuous_getloadavg
53739 /* System header to define __stub macros and hopefully few prototypes,
53740 which can conflict with char getloadavg (); below.
53741 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
53742 <limits.h> exists even on freestanding compilers. */
53744 #ifdef __STDC__
53745 # include <limits.h>
53746 #else
53747 # include <assert.h>
53748 #endif
53750 #undef getloadavg
53752 /* Override any GCC internal prototype to avoid an error.
53753 Use char because int might match the return type of a GCC
53754 builtin and then its argument prototype would still apply. */
53755 #ifdef __cplusplus
53756 extern "C"
53757 #endif
53758 char getloadavg ();
53759 /* The GNU C library defines this for functions which it implements
53760 to always fail with ENOSYS. Some functions are actually named
53761 something starting with __ and the normal name is an alias. */
53762 #if defined __stub_getloadavg || defined __stub___getloadavg
53763 choke me
53764 #endif
53767 main ()
53769 return getloadavg ();
53771 return 0;
53773 _ACEOF
53774 rm -f conftest.$ac_objext conftest$ac_exeext
53775 if { (ac_try="$ac_link"
53776 case "(($ac_try" in
53777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53778 *) ac_try_echo=$ac_try;;
53779 esac
53780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
53781 (eval "$ac_link") 2>conftest.er1
53782 ac_status=$?
53783 grep -v '^ *+' conftest.er1 >conftest.err
53784 rm -f conftest.er1
53785 cat conftest.err >&5
53786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53787 (exit $ac_status); } &&
53788 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
53789 { (case "(($ac_try" in
53790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53791 *) ac_try_echo=$ac_try;;
53792 esac
53793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
53794 (eval "$ac_try") 2>&5
53795 ac_status=$?
53796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53797 (exit $ac_status); }; } &&
53798 { ac_try='test -s conftest$ac_exeext'
53799 { (case "(($ac_try" in
53800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53801 *) ac_try_echo=$ac_try;;
53802 esac
53803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
53804 (eval "$ac_try") 2>&5
53805 ac_status=$?
53806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53807 (exit $ac_status); }; }; then
53808 ac_cv_func_getloadavg=yes
53809 else
53810 echo "$as_me: failed program was:" >&5
53811 sed 's/^/| /' conftest.$ac_ext >&5
53813 ac_cv_func_getloadavg=no
53816 rm -f core conftest.err conftest.$ac_objext \
53817 conftest$ac_exeext conftest.$ac_ext
53819 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
53820 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6; }
53821 if test $ac_cv_func_getloadavg = yes; then
53822 exit 0
53823 else
53824 exit 1
53826 ) && ac_have_func=yes
53828 # On HPUX9, an unprivileged user can get load averages through this function.
53830 for ac_func in pstat_getdynamic
53832 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
53833 { echo "$as_me:$LINENO: checking for $ac_func" >&5
53834 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
53835 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
53836 echo $ECHO_N "(cached) $ECHO_C" >&6
53837 else
53838 cat >conftest.$ac_ext <<_ACEOF
53839 /* confdefs.h. */
53840 _ACEOF
53841 cat confdefs.h >>conftest.$ac_ext
53842 cat >>conftest.$ac_ext <<_ACEOF
53843 /* end confdefs.h. */
53844 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
53845 For example, HP-UX 11i <limits.h> declares gettimeofday. */
53846 #define $ac_func innocuous_$ac_func
53848 /* System header to define __stub macros and hopefully few prototypes,
53849 which can conflict with char $ac_func (); below.
53850 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
53851 <limits.h> exists even on freestanding compilers. */
53853 #ifdef __STDC__
53854 # include <limits.h>
53855 #else
53856 # include <assert.h>
53857 #endif
53859 #undef $ac_func
53861 /* Override any GCC internal prototype to avoid an error.
53862 Use char because int might match the return type of a GCC
53863 builtin and then its argument prototype would still apply. */
53864 #ifdef __cplusplus
53865 extern "C"
53866 #endif
53867 char $ac_func ();
53868 /* The GNU C library defines this for functions which it implements
53869 to always fail with ENOSYS. Some functions are actually named
53870 something starting with __ and the normal name is an alias. */
53871 #if defined __stub_$ac_func || defined __stub___$ac_func
53872 choke me
53873 #endif
53876 main ()
53878 return $ac_func ();
53880 return 0;
53882 _ACEOF
53883 rm -f conftest.$ac_objext conftest$ac_exeext
53884 if { (ac_try="$ac_link"
53885 case "(($ac_try" in
53886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53887 *) ac_try_echo=$ac_try;;
53888 esac
53889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
53890 (eval "$ac_link") 2>conftest.er1
53891 ac_status=$?
53892 grep -v '^ *+' conftest.er1 >conftest.err
53893 rm -f conftest.er1
53894 cat conftest.err >&5
53895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53896 (exit $ac_status); } &&
53897 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
53898 { (case "(($ac_try" in
53899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53900 *) ac_try_echo=$ac_try;;
53901 esac
53902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
53903 (eval "$ac_try") 2>&5
53904 ac_status=$?
53905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53906 (exit $ac_status); }; } &&
53907 { ac_try='test -s conftest$ac_exeext'
53908 { (case "(($ac_try" in
53909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53910 *) ac_try_echo=$ac_try;;
53911 esac
53912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
53913 (eval "$ac_try") 2>&5
53914 ac_status=$?
53915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53916 (exit $ac_status); }; }; then
53917 eval "$as_ac_var=yes"
53918 else
53919 echo "$as_me: failed program was:" >&5
53920 sed 's/^/| /' conftest.$ac_ext >&5
53922 eval "$as_ac_var=no"
53925 rm -f core conftest.err conftest.$ac_objext \
53926 conftest$ac_exeext conftest.$ac_ext
53928 ac_res=`eval echo '${'$as_ac_var'}'`
53929 { echo "$as_me:$LINENO: result: $ac_res" >&5
53930 echo "${ECHO_T}$ac_res" >&6; }
53931 if test `eval echo '${'$as_ac_var'}'` = yes; then
53932 cat >>confdefs.h <<_ACEOF
53933 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
53934 _ACEOF
53937 done
53940 # Solaris has libkstat which does not require root.
53942 { echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
53943 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6; }
53944 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
53945 echo $ECHO_N "(cached) $ECHO_C" >&6
53946 else
53947 ac_check_lib_save_LIBS=$LIBS
53948 LIBS="-lkstat $LIBS"
53949 cat >conftest.$ac_ext <<_ACEOF
53950 /* confdefs.h. */
53951 _ACEOF
53952 cat confdefs.h >>conftest.$ac_ext
53953 cat >>conftest.$ac_ext <<_ACEOF
53954 /* end confdefs.h. */
53956 /* Override any GCC internal prototype to avoid an error.
53957 Use char because int might match the return type of a GCC
53958 builtin and then its argument prototype would still apply. */
53959 #ifdef __cplusplus
53960 extern "C"
53961 #endif
53962 char kstat_open ();
53964 main ()
53966 return kstat_open ();
53968 return 0;
53970 _ACEOF
53971 rm -f conftest.$ac_objext conftest$ac_exeext
53972 if { (ac_try="$ac_link"
53973 case "(($ac_try" in
53974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53975 *) ac_try_echo=$ac_try;;
53976 esac
53977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
53978 (eval "$ac_link") 2>conftest.er1
53979 ac_status=$?
53980 grep -v '^ *+' conftest.er1 >conftest.err
53981 rm -f conftest.er1
53982 cat conftest.err >&5
53983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53984 (exit $ac_status); } &&
53985 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
53986 { (case "(($ac_try" in
53987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53988 *) ac_try_echo=$ac_try;;
53989 esac
53990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
53991 (eval "$ac_try") 2>&5
53992 ac_status=$?
53993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53994 (exit $ac_status); }; } &&
53995 { ac_try='test -s conftest$ac_exeext'
53996 { (case "(($ac_try" in
53997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53998 *) ac_try_echo=$ac_try;;
53999 esac
54000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
54001 (eval "$ac_try") 2>&5
54002 ac_status=$?
54003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54004 (exit $ac_status); }; }; then
54005 ac_cv_lib_kstat_kstat_open=yes
54006 else
54007 echo "$as_me: failed program was:" >&5
54008 sed 's/^/| /' conftest.$ac_ext >&5
54010 ac_cv_lib_kstat_kstat_open=no
54013 rm -f core conftest.err conftest.$ac_objext \
54014 conftest$ac_exeext conftest.$ac_ext
54015 LIBS=$ac_check_lib_save_LIBS
54017 { echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
54018 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; }
54019 if test $ac_cv_lib_kstat_kstat_open = yes; then
54020 cat >>confdefs.h <<_ACEOF
54021 #define HAVE_LIBKSTAT 1
54022 _ACEOF
54024 LIBS="-lkstat $LIBS"
54028 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
54030 # Some systems with -lutil have (and need) -lkvm as well, some do not.
54031 # On Solaris, -lkvm requires nlist from -lelf, so check that first
54032 # to get the right answer into the cache.
54033 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
54034 if test $ac_have_func = no; then
54035 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
54036 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
54037 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
54038 echo $ECHO_N "(cached) $ECHO_C" >&6
54039 else
54040 ac_check_lib_save_LIBS=$LIBS
54041 LIBS="-lelf $LIBS"
54042 cat >conftest.$ac_ext <<_ACEOF
54043 /* confdefs.h. */
54044 _ACEOF
54045 cat confdefs.h >>conftest.$ac_ext
54046 cat >>conftest.$ac_ext <<_ACEOF
54047 /* end confdefs.h. */
54049 /* Override any GCC internal prototype to avoid an error.
54050 Use char because int might match the return type of a GCC
54051 builtin and then its argument prototype would still apply. */
54052 #ifdef __cplusplus
54053 extern "C"
54054 #endif
54055 char elf_begin ();
54057 main ()
54059 return elf_begin ();
54061 return 0;
54063 _ACEOF
54064 rm -f conftest.$ac_objext conftest$ac_exeext
54065 if { (ac_try="$ac_link"
54066 case "(($ac_try" in
54067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54068 *) ac_try_echo=$ac_try;;
54069 esac
54070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
54071 (eval "$ac_link") 2>conftest.er1
54072 ac_status=$?
54073 grep -v '^ *+' conftest.er1 >conftest.err
54074 rm -f conftest.er1
54075 cat conftest.err >&5
54076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54077 (exit $ac_status); } &&
54078 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
54079 { (case "(($ac_try" in
54080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54081 *) ac_try_echo=$ac_try;;
54082 esac
54083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
54084 (eval "$ac_try") 2>&5
54085 ac_status=$?
54086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54087 (exit $ac_status); }; } &&
54088 { ac_try='test -s conftest$ac_exeext'
54089 { (case "(($ac_try" in
54090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54091 *) ac_try_echo=$ac_try;;
54092 esac
54093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
54094 (eval "$ac_try") 2>&5
54095 ac_status=$?
54096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54097 (exit $ac_status); }; }; then
54098 ac_cv_lib_elf_elf_begin=yes
54099 else
54100 echo "$as_me: failed program was:" >&5
54101 sed 's/^/| /' conftest.$ac_ext >&5
54103 ac_cv_lib_elf_elf_begin=no
54106 rm -f core conftest.err conftest.$ac_objext \
54107 conftest$ac_exeext conftest.$ac_ext
54108 LIBS=$ac_check_lib_save_LIBS
54110 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
54111 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
54112 if test $ac_cv_lib_elf_elf_begin = yes; then
54113 LIBS="-lelf $LIBS"
54117 if test $ac_have_func = no; then
54118 { echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
54119 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6; }
54120 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
54121 echo $ECHO_N "(cached) $ECHO_C" >&6
54122 else
54123 ac_check_lib_save_LIBS=$LIBS
54124 LIBS="-lkvm $LIBS"
54125 cat >conftest.$ac_ext <<_ACEOF
54126 /* confdefs.h. */
54127 _ACEOF
54128 cat confdefs.h >>conftest.$ac_ext
54129 cat >>conftest.$ac_ext <<_ACEOF
54130 /* end confdefs.h. */
54132 /* Override any GCC internal prototype to avoid an error.
54133 Use char because int might match the return type of a GCC
54134 builtin and then its argument prototype would still apply. */
54135 #ifdef __cplusplus
54136 extern "C"
54137 #endif
54138 char kvm_open ();
54140 main ()
54142 return kvm_open ();
54144 return 0;
54146 _ACEOF
54147 rm -f conftest.$ac_objext conftest$ac_exeext
54148 if { (ac_try="$ac_link"
54149 case "(($ac_try" in
54150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54151 *) ac_try_echo=$ac_try;;
54152 esac
54153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
54154 (eval "$ac_link") 2>conftest.er1
54155 ac_status=$?
54156 grep -v '^ *+' conftest.er1 >conftest.err
54157 rm -f conftest.er1
54158 cat conftest.err >&5
54159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54160 (exit $ac_status); } &&
54161 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
54162 { (case "(($ac_try" in
54163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54164 *) ac_try_echo=$ac_try;;
54165 esac
54166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
54167 (eval "$ac_try") 2>&5
54168 ac_status=$?
54169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54170 (exit $ac_status); }; } &&
54171 { ac_try='test -s conftest$ac_exeext'
54172 { (case "(($ac_try" in
54173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54174 *) ac_try_echo=$ac_try;;
54175 esac
54176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
54177 (eval "$ac_try") 2>&5
54178 ac_status=$?
54179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54180 (exit $ac_status); }; }; then
54181 ac_cv_lib_kvm_kvm_open=yes
54182 else
54183 echo "$as_me: failed program was:" >&5
54184 sed 's/^/| /' conftest.$ac_ext >&5
54186 ac_cv_lib_kvm_kvm_open=no
54189 rm -f core conftest.err conftest.$ac_objext \
54190 conftest$ac_exeext conftest.$ac_ext
54191 LIBS=$ac_check_lib_save_LIBS
54193 { echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
54194 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; }
54195 if test $ac_cv_lib_kvm_kvm_open = yes; then
54196 LIBS="-lkvm $LIBS"
54199 # Check for the 4.4BSD definition of getloadavg.
54200 { echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
54201 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6; }
54202 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
54203 echo $ECHO_N "(cached) $ECHO_C" >&6
54204 else
54205 ac_check_lib_save_LIBS=$LIBS
54206 LIBS="-lutil $LIBS"
54207 cat >conftest.$ac_ext <<_ACEOF
54208 /* confdefs.h. */
54209 _ACEOF
54210 cat confdefs.h >>conftest.$ac_ext
54211 cat >>conftest.$ac_ext <<_ACEOF
54212 /* end confdefs.h. */
54214 /* Override any GCC internal prototype to avoid an error.
54215 Use char because int might match the return type of a GCC
54216 builtin and then its argument prototype would still apply. */
54217 #ifdef __cplusplus
54218 extern "C"
54219 #endif
54220 char getloadavg ();
54222 main ()
54224 return getloadavg ();
54226 return 0;
54228 _ACEOF
54229 rm -f conftest.$ac_objext conftest$ac_exeext
54230 if { (ac_try="$ac_link"
54231 case "(($ac_try" in
54232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54233 *) ac_try_echo=$ac_try;;
54234 esac
54235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
54236 (eval "$ac_link") 2>conftest.er1
54237 ac_status=$?
54238 grep -v '^ *+' conftest.er1 >conftest.err
54239 rm -f conftest.er1
54240 cat conftest.err >&5
54241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54242 (exit $ac_status); } &&
54243 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
54244 { (case "(($ac_try" in
54245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54246 *) ac_try_echo=$ac_try;;
54247 esac
54248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
54249 (eval "$ac_try") 2>&5
54250 ac_status=$?
54251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54252 (exit $ac_status); }; } &&
54253 { ac_try='test -s conftest$ac_exeext'
54254 { (case "(($ac_try" in
54255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54256 *) ac_try_echo=$ac_try;;
54257 esac
54258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
54259 (eval "$ac_try") 2>&5
54260 ac_status=$?
54261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54262 (exit $ac_status); }; }; then
54263 ac_cv_lib_util_getloadavg=yes
54264 else
54265 echo "$as_me: failed program was:" >&5
54266 sed 's/^/| /' conftest.$ac_ext >&5
54268 ac_cv_lib_util_getloadavg=no
54271 rm -f core conftest.err conftest.$ac_objext \
54272 conftest$ac_exeext conftest.$ac_ext
54273 LIBS=$ac_check_lib_save_LIBS
54275 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
54276 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6; }
54277 if test $ac_cv_lib_util_getloadavg = yes; then
54278 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
54283 if test $ac_have_func = no; then
54284 # There is a commonly available library for RS/6000 AIX.
54285 # Since it is not a standard part of AIX, it might be installed locally.
54286 ac_getloadavg_LIBS=$LIBS
54287 LIBS="-L/usr/local/lib $LIBS"
54288 { echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
54289 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6; }
54290 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
54291 echo $ECHO_N "(cached) $ECHO_C" >&6
54292 else
54293 ac_check_lib_save_LIBS=$LIBS
54294 LIBS="-lgetloadavg $LIBS"
54295 cat >conftest.$ac_ext <<_ACEOF
54296 /* confdefs.h. */
54297 _ACEOF
54298 cat confdefs.h >>conftest.$ac_ext
54299 cat >>conftest.$ac_ext <<_ACEOF
54300 /* end confdefs.h. */
54302 /* Override any GCC internal prototype to avoid an error.
54303 Use char because int might match the return type of a GCC
54304 builtin and then its argument prototype would still apply. */
54305 #ifdef __cplusplus
54306 extern "C"
54307 #endif
54308 char getloadavg ();
54310 main ()
54312 return getloadavg ();
54314 return 0;
54316 _ACEOF
54317 rm -f conftest.$ac_objext conftest$ac_exeext
54318 if { (ac_try="$ac_link"
54319 case "(($ac_try" in
54320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54321 *) ac_try_echo=$ac_try;;
54322 esac
54323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
54324 (eval "$ac_link") 2>conftest.er1
54325 ac_status=$?
54326 grep -v '^ *+' conftest.er1 >conftest.err
54327 rm -f conftest.er1
54328 cat conftest.err >&5
54329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54330 (exit $ac_status); } &&
54331 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
54332 { (case "(($ac_try" in
54333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54334 *) ac_try_echo=$ac_try;;
54335 esac
54336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
54337 (eval "$ac_try") 2>&5
54338 ac_status=$?
54339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54340 (exit $ac_status); }; } &&
54341 { ac_try='test -s conftest$ac_exeext'
54342 { (case "(($ac_try" in
54343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54344 *) ac_try_echo=$ac_try;;
54345 esac
54346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
54347 (eval "$ac_try") 2>&5
54348 ac_status=$?
54349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54350 (exit $ac_status); }; }; then
54351 ac_cv_lib_getloadavg_getloadavg=yes
54352 else
54353 echo "$as_me: failed program was:" >&5
54354 sed 's/^/| /' conftest.$ac_ext >&5
54356 ac_cv_lib_getloadavg_getloadavg=no
54359 rm -f core conftest.err conftest.$ac_objext \
54360 conftest$ac_exeext conftest.$ac_ext
54361 LIBS=$ac_check_lib_save_LIBS
54363 { echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
54364 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6; }
54365 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
54366 LIBS="-lgetloadavg $LIBS"
54367 else
54368 LIBS=$ac_getloadavg_LIBS
54373 # Make sure it is really in the library, if we think we found it,
54374 # otherwise set up the replacement function.
54376 for ac_func in getloadavg
54378 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
54379 { echo "$as_me:$LINENO: checking for $ac_func" >&5
54380 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
54381 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
54382 echo $ECHO_N "(cached) $ECHO_C" >&6
54383 else
54384 cat >conftest.$ac_ext <<_ACEOF
54385 /* confdefs.h. */
54386 _ACEOF
54387 cat confdefs.h >>conftest.$ac_ext
54388 cat >>conftest.$ac_ext <<_ACEOF
54389 /* end confdefs.h. */
54390 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
54391 For example, HP-UX 11i <limits.h> declares gettimeofday. */
54392 #define $ac_func innocuous_$ac_func
54394 /* System header to define __stub macros and hopefully few prototypes,
54395 which can conflict with char $ac_func (); below.
54396 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
54397 <limits.h> exists even on freestanding compilers. */
54399 #ifdef __STDC__
54400 # include <limits.h>
54401 #else
54402 # include <assert.h>
54403 #endif
54405 #undef $ac_func
54407 /* Override any GCC internal prototype to avoid an error.
54408 Use char because int might match the return type of a GCC
54409 builtin and then its argument prototype would still apply. */
54410 #ifdef __cplusplus
54411 extern "C"
54412 #endif
54413 char $ac_func ();
54414 /* The GNU C library defines this for functions which it implements
54415 to always fail with ENOSYS. Some functions are actually named
54416 something starting with __ and the normal name is an alias. */
54417 #if defined __stub_$ac_func || defined __stub___$ac_func
54418 choke me
54419 #endif
54422 main ()
54424 return $ac_func ();
54426 return 0;
54428 _ACEOF
54429 rm -f conftest.$ac_objext conftest$ac_exeext
54430 if { (ac_try="$ac_link"
54431 case "(($ac_try" in
54432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54433 *) ac_try_echo=$ac_try;;
54434 esac
54435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
54436 (eval "$ac_link") 2>conftest.er1
54437 ac_status=$?
54438 grep -v '^ *+' conftest.er1 >conftest.err
54439 rm -f conftest.er1
54440 cat conftest.err >&5
54441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54442 (exit $ac_status); } &&
54443 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
54444 { (case "(($ac_try" in
54445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54446 *) ac_try_echo=$ac_try;;
54447 esac
54448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
54449 (eval "$ac_try") 2>&5
54450 ac_status=$?
54451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54452 (exit $ac_status); }; } &&
54453 { ac_try='test -s conftest$ac_exeext'
54454 { (case "(($ac_try" in
54455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54456 *) ac_try_echo=$ac_try;;
54457 esac
54458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
54459 (eval "$ac_try") 2>&5
54460 ac_status=$?
54461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54462 (exit $ac_status); }; }; then
54463 eval "$as_ac_var=yes"
54464 else
54465 echo "$as_me: failed program was:" >&5
54466 sed 's/^/| /' conftest.$ac_ext >&5
54468 eval "$as_ac_var=no"
54471 rm -f core conftest.err conftest.$ac_objext \
54472 conftest$ac_exeext conftest.$ac_ext
54474 ac_res=`eval echo '${'$as_ac_var'}'`
54475 { echo "$as_me:$LINENO: result: $ac_res" >&5
54476 echo "${ECHO_T}$ac_res" >&6; }
54477 if test `eval echo '${'$as_ac_var'}'` = yes; then
54478 cat >>confdefs.h <<_ACEOF
54479 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
54480 _ACEOF
54482 else
54483 case " $LIBOBJS " in
54484 *" getloadavg.$ac_objext "* ) ;;
54485 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
54487 esac
54490 cat >>confdefs.h <<\_ACEOF
54491 #define C_GETLOADAVG 1
54492 _ACEOF
54494 # Figure out what our getloadavg.c needs.
54495 ac_have_func=no
54496 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
54497 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
54498 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
54499 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
54500 echo $ECHO_N "(cached) $ECHO_C" >&6
54502 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
54503 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
54504 else
54505 # Is the header compilable?
54506 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
54507 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6; }
54508 cat >conftest.$ac_ext <<_ACEOF
54509 /* confdefs.h. */
54510 _ACEOF
54511 cat confdefs.h >>conftest.$ac_ext
54512 cat >>conftest.$ac_ext <<_ACEOF
54513 /* end confdefs.h. */
54514 $ac_includes_default
54515 #include <sys/dg_sys_info.h>
54516 _ACEOF
54517 rm -f conftest.$ac_objext
54518 if { (ac_try="$ac_compile"
54519 case "(($ac_try" in
54520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54521 *) ac_try_echo=$ac_try;;
54522 esac
54523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
54524 (eval "$ac_compile") 2>conftest.er1
54525 ac_status=$?
54526 grep -v '^ *+' conftest.er1 >conftest.err
54527 rm -f conftest.er1
54528 cat conftest.err >&5
54529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54530 (exit $ac_status); } &&
54531 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
54532 { (case "(($ac_try" in
54533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54534 *) ac_try_echo=$ac_try;;
54535 esac
54536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
54537 (eval "$ac_try") 2>&5
54538 ac_status=$?
54539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54540 (exit $ac_status); }; } &&
54541 { ac_try='test -s conftest.$ac_objext'
54542 { (case "(($ac_try" in
54543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54544 *) ac_try_echo=$ac_try;;
54545 esac
54546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
54547 (eval "$ac_try") 2>&5
54548 ac_status=$?
54549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54550 (exit $ac_status); }; }; then
54551 ac_header_compiler=yes
54552 else
54553 echo "$as_me: failed program was:" >&5
54554 sed 's/^/| /' conftest.$ac_ext >&5
54556 ac_header_compiler=no
54559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54560 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
54561 echo "${ECHO_T}$ac_header_compiler" >&6; }
54563 # Is the header present?
54564 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
54565 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6; }
54566 cat >conftest.$ac_ext <<_ACEOF
54567 /* confdefs.h. */
54568 _ACEOF
54569 cat confdefs.h >>conftest.$ac_ext
54570 cat >>conftest.$ac_ext <<_ACEOF
54571 /* end confdefs.h. */
54572 #include <sys/dg_sys_info.h>
54573 _ACEOF
54574 if { (ac_try="$ac_cpp conftest.$ac_ext"
54575 case "(($ac_try" in
54576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54577 *) ac_try_echo=$ac_try;;
54578 esac
54579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
54580 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
54581 ac_status=$?
54582 grep -v '^ *+' conftest.er1 >conftest.err
54583 rm -f conftest.er1
54584 cat conftest.err >&5
54585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54586 (exit $ac_status); } >/dev/null; then
54587 if test -s conftest.err; then
54588 ac_cpp_err=$ac_c_preproc_warn_flag
54589 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
54590 else
54591 ac_cpp_err=
54593 else
54594 ac_cpp_err=yes
54596 if test -z "$ac_cpp_err"; then
54597 ac_header_preproc=yes
54598 else
54599 echo "$as_me: failed program was:" >&5
54600 sed 's/^/| /' conftest.$ac_ext >&5
54602 ac_header_preproc=no
54605 rm -f conftest.err conftest.$ac_ext
54606 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
54607 echo "${ECHO_T}$ac_header_preproc" >&6; }
54609 # So? What about this header?
54610 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
54611 yes:no: )
54612 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
54613 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
54614 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
54615 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
54616 ac_header_preproc=yes
54618 no:yes:* )
54619 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
54620 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
54621 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
54622 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
54623 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
54624 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
54625 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
54626 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
54627 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
54628 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
54629 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
54630 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
54631 ( cat <<\_ASBOX
54632 ## ------------------------------------ ##
54633 ## Report this to bug-coreutils@gnu.org ##
54634 ## ------------------------------------ ##
54635 _ASBOX
54636 ) | sed "s/^/$as_me: WARNING: /" >&2
54638 esac
54639 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
54640 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
54641 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
54642 echo $ECHO_N "(cached) $ECHO_C" >&6
54643 else
54644 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
54646 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
54647 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
54650 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
54651 ac_have_func=yes
54653 cat >>confdefs.h <<\_ACEOF
54654 #define DGUX 1
54655 _ACEOF
54658 { echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
54659 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6; }
54660 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
54661 echo $ECHO_N "(cached) $ECHO_C" >&6
54662 else
54663 ac_check_lib_save_LIBS=$LIBS
54664 LIBS="-ldgc $LIBS"
54665 cat >conftest.$ac_ext <<_ACEOF
54666 /* confdefs.h. */
54667 _ACEOF
54668 cat confdefs.h >>conftest.$ac_ext
54669 cat >>conftest.$ac_ext <<_ACEOF
54670 /* end confdefs.h. */
54672 /* Override any GCC internal prototype to avoid an error.
54673 Use char because int might match the return type of a GCC
54674 builtin and then its argument prototype would still apply. */
54675 #ifdef __cplusplus
54676 extern "C"
54677 #endif
54678 char dg_sys_info ();
54680 main ()
54682 return dg_sys_info ();
54684 return 0;
54686 _ACEOF
54687 rm -f conftest.$ac_objext conftest$ac_exeext
54688 if { (ac_try="$ac_link"
54689 case "(($ac_try" in
54690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54691 *) ac_try_echo=$ac_try;;
54692 esac
54693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
54694 (eval "$ac_link") 2>conftest.er1
54695 ac_status=$?
54696 grep -v '^ *+' conftest.er1 >conftest.err
54697 rm -f conftest.er1
54698 cat conftest.err >&5
54699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54700 (exit $ac_status); } &&
54701 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
54702 { (case "(($ac_try" in
54703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54704 *) ac_try_echo=$ac_try;;
54705 esac
54706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
54707 (eval "$ac_try") 2>&5
54708 ac_status=$?
54709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54710 (exit $ac_status); }; } &&
54711 { ac_try='test -s conftest$ac_exeext'
54712 { (case "(($ac_try" in
54713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54714 *) ac_try_echo=$ac_try;;
54715 esac
54716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
54717 (eval "$ac_try") 2>&5
54718 ac_status=$?
54719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54720 (exit $ac_status); }; }; then
54721 ac_cv_lib_dgc_dg_sys_info=yes
54722 else
54723 echo "$as_me: failed program was:" >&5
54724 sed 's/^/| /' conftest.$ac_ext >&5
54726 ac_cv_lib_dgc_dg_sys_info=no
54729 rm -f core conftest.err conftest.$ac_objext \
54730 conftest$ac_exeext conftest.$ac_ext
54731 LIBS=$ac_check_lib_save_LIBS
54733 { echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
54734 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6; }
54735 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
54736 cat >>confdefs.h <<_ACEOF
54737 #define HAVE_LIBDGC 1
54738 _ACEOF
54740 LIBS="-ldgc $LIBS"
54748 if test "${ac_cv_header_locale_h+set}" = set; then
54749 { echo "$as_me:$LINENO: checking for locale.h" >&5
54750 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
54751 if test "${ac_cv_header_locale_h+set}" = set; then
54752 echo $ECHO_N "(cached) $ECHO_C" >&6
54754 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
54755 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
54756 else
54757 # Is the header compilable?
54758 { echo "$as_me:$LINENO: checking locale.h usability" >&5
54759 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6; }
54760 cat >conftest.$ac_ext <<_ACEOF
54761 /* confdefs.h. */
54762 _ACEOF
54763 cat confdefs.h >>conftest.$ac_ext
54764 cat >>conftest.$ac_ext <<_ACEOF
54765 /* end confdefs.h. */
54766 $ac_includes_default
54767 #include <locale.h>
54768 _ACEOF
54769 rm -f conftest.$ac_objext
54770 if { (ac_try="$ac_compile"
54771 case "(($ac_try" in
54772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54773 *) ac_try_echo=$ac_try;;
54774 esac
54775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
54776 (eval "$ac_compile") 2>conftest.er1
54777 ac_status=$?
54778 grep -v '^ *+' conftest.er1 >conftest.err
54779 rm -f conftest.er1
54780 cat conftest.err >&5
54781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54782 (exit $ac_status); } &&
54783 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
54784 { (case "(($ac_try" in
54785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54786 *) ac_try_echo=$ac_try;;
54787 esac
54788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
54789 (eval "$ac_try") 2>&5
54790 ac_status=$?
54791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54792 (exit $ac_status); }; } &&
54793 { ac_try='test -s conftest.$ac_objext'
54794 { (case "(($ac_try" in
54795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54796 *) ac_try_echo=$ac_try;;
54797 esac
54798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
54799 (eval "$ac_try") 2>&5
54800 ac_status=$?
54801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54802 (exit $ac_status); }; }; then
54803 ac_header_compiler=yes
54804 else
54805 echo "$as_me: failed program was:" >&5
54806 sed 's/^/| /' conftest.$ac_ext >&5
54808 ac_header_compiler=no
54811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54812 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
54813 echo "${ECHO_T}$ac_header_compiler" >&6; }
54815 # Is the header present?
54816 { echo "$as_me:$LINENO: checking locale.h presence" >&5
54817 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6; }
54818 cat >conftest.$ac_ext <<_ACEOF
54819 /* confdefs.h. */
54820 _ACEOF
54821 cat confdefs.h >>conftest.$ac_ext
54822 cat >>conftest.$ac_ext <<_ACEOF
54823 /* end confdefs.h. */
54824 #include <locale.h>
54825 _ACEOF
54826 if { (ac_try="$ac_cpp conftest.$ac_ext"
54827 case "(($ac_try" in
54828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54829 *) ac_try_echo=$ac_try;;
54830 esac
54831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
54832 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
54833 ac_status=$?
54834 grep -v '^ *+' conftest.er1 >conftest.err
54835 rm -f conftest.er1
54836 cat conftest.err >&5
54837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54838 (exit $ac_status); } >/dev/null; then
54839 if test -s conftest.err; then
54840 ac_cpp_err=$ac_c_preproc_warn_flag
54841 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
54842 else
54843 ac_cpp_err=
54845 else
54846 ac_cpp_err=yes
54848 if test -z "$ac_cpp_err"; then
54849 ac_header_preproc=yes
54850 else
54851 echo "$as_me: failed program was:" >&5
54852 sed 's/^/| /' conftest.$ac_ext >&5
54854 ac_header_preproc=no
54857 rm -f conftest.err conftest.$ac_ext
54858 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
54859 echo "${ECHO_T}$ac_header_preproc" >&6; }
54861 # So? What about this header?
54862 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
54863 yes:no: )
54864 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
54865 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
54866 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
54867 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
54868 ac_header_preproc=yes
54870 no:yes:* )
54871 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
54872 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
54873 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
54874 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
54875 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
54876 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
54877 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
54878 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
54879 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
54880 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
54881 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
54882 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
54883 ( cat <<\_ASBOX
54884 ## ------------------------------------ ##
54885 ## Report this to bug-coreutils@gnu.org ##
54886 ## ------------------------------------ ##
54887 _ASBOX
54888 ) | sed "s/^/$as_me: WARNING: /" >&2
54890 esac
54891 { echo "$as_me:$LINENO: checking for locale.h" >&5
54892 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
54893 if test "${ac_cv_header_locale_h+set}" = set; then
54894 echo $ECHO_N "(cached) $ECHO_C" >&6
54895 else
54896 ac_cv_header_locale_h=$ac_header_preproc
54898 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
54899 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
54905 for ac_func in setlocale
54907 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
54908 { echo "$as_me:$LINENO: checking for $ac_func" >&5
54909 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
54910 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
54911 echo $ECHO_N "(cached) $ECHO_C" >&6
54912 else
54913 cat >conftest.$ac_ext <<_ACEOF
54914 /* confdefs.h. */
54915 _ACEOF
54916 cat confdefs.h >>conftest.$ac_ext
54917 cat >>conftest.$ac_ext <<_ACEOF
54918 /* end confdefs.h. */
54919 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
54920 For example, HP-UX 11i <limits.h> declares gettimeofday. */
54921 #define $ac_func innocuous_$ac_func
54923 /* System header to define __stub macros and hopefully few prototypes,
54924 which can conflict with char $ac_func (); below.
54925 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
54926 <limits.h> exists even on freestanding compilers. */
54928 #ifdef __STDC__
54929 # include <limits.h>
54930 #else
54931 # include <assert.h>
54932 #endif
54934 #undef $ac_func
54936 /* Override any GCC internal prototype to avoid an error.
54937 Use char because int might match the return type of a GCC
54938 builtin and then its argument prototype would still apply. */
54939 #ifdef __cplusplus
54940 extern "C"
54941 #endif
54942 char $ac_func ();
54943 /* The GNU C library defines this for functions which it implements
54944 to always fail with ENOSYS. Some functions are actually named
54945 something starting with __ and the normal name is an alias. */
54946 #if defined __stub_$ac_func || defined __stub___$ac_func
54947 choke me
54948 #endif
54951 main ()
54953 return $ac_func ();
54955 return 0;
54957 _ACEOF
54958 rm -f conftest.$ac_objext conftest$ac_exeext
54959 if { (ac_try="$ac_link"
54960 case "(($ac_try" in
54961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54962 *) ac_try_echo=$ac_try;;
54963 esac
54964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
54965 (eval "$ac_link") 2>conftest.er1
54966 ac_status=$?
54967 grep -v '^ *+' conftest.er1 >conftest.err
54968 rm -f conftest.er1
54969 cat conftest.err >&5
54970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54971 (exit $ac_status); } &&
54972 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
54973 { (case "(($ac_try" in
54974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54975 *) ac_try_echo=$ac_try;;
54976 esac
54977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
54978 (eval "$ac_try") 2>&5
54979 ac_status=$?
54980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54981 (exit $ac_status); }; } &&
54982 { ac_try='test -s conftest$ac_exeext'
54983 { (case "(($ac_try" in
54984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54985 *) ac_try_echo=$ac_try;;
54986 esac
54987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
54988 (eval "$ac_try") 2>&5
54989 ac_status=$?
54990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54991 (exit $ac_status); }; }; then
54992 eval "$as_ac_var=yes"
54993 else
54994 echo "$as_me: failed program was:" >&5
54995 sed 's/^/| /' conftest.$ac_ext >&5
54997 eval "$as_ac_var=no"
55000 rm -f core conftest.err conftest.$ac_objext \
55001 conftest$ac_exeext conftest.$ac_ext
55003 ac_res=`eval echo '${'$as_ac_var'}'`
55004 { echo "$as_me:$LINENO: result: $ac_res" >&5
55005 echo "${ECHO_T}$ac_res" >&6; }
55006 if test `eval echo '${'$as_ac_var'}'` = yes; then
55007 cat >>confdefs.h <<_ACEOF
55008 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
55009 _ACEOF
55012 done
55015 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
55016 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
55017 # Irix 4.0.5F has the header but not the library.
55018 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
55019 ac_have_func=yes
55021 cat >>confdefs.h <<\_ACEOF
55022 #define SVR4 1
55023 _ACEOF
55027 if test $ac_have_func = no; then
55028 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
55029 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
55030 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
55031 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
55032 echo $ECHO_N "(cached) $ECHO_C" >&6
55034 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
55035 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
55036 else
55037 # Is the header compilable?
55038 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
55039 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6; }
55040 cat >conftest.$ac_ext <<_ACEOF
55041 /* confdefs.h. */
55042 _ACEOF
55043 cat confdefs.h >>conftest.$ac_ext
55044 cat >>conftest.$ac_ext <<_ACEOF
55045 /* end confdefs.h. */
55046 $ac_includes_default
55047 #include <inq_stats/cpustats.h>
55048 _ACEOF
55049 rm -f conftest.$ac_objext
55050 if { (ac_try="$ac_compile"
55051 case "(($ac_try" in
55052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55053 *) ac_try_echo=$ac_try;;
55054 esac
55055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
55056 (eval "$ac_compile") 2>conftest.er1
55057 ac_status=$?
55058 grep -v '^ *+' conftest.er1 >conftest.err
55059 rm -f conftest.er1
55060 cat conftest.err >&5
55061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55062 (exit $ac_status); } &&
55063 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
55064 { (case "(($ac_try" in
55065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55066 *) ac_try_echo=$ac_try;;
55067 esac
55068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
55069 (eval "$ac_try") 2>&5
55070 ac_status=$?
55071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55072 (exit $ac_status); }; } &&
55073 { ac_try='test -s conftest.$ac_objext'
55074 { (case "(($ac_try" in
55075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55076 *) ac_try_echo=$ac_try;;
55077 esac
55078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
55079 (eval "$ac_try") 2>&5
55080 ac_status=$?
55081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55082 (exit $ac_status); }; }; then
55083 ac_header_compiler=yes
55084 else
55085 echo "$as_me: failed program was:" >&5
55086 sed 's/^/| /' conftest.$ac_ext >&5
55088 ac_header_compiler=no
55091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
55092 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
55093 echo "${ECHO_T}$ac_header_compiler" >&6; }
55095 # Is the header present?
55096 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
55097 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6; }
55098 cat >conftest.$ac_ext <<_ACEOF
55099 /* confdefs.h. */
55100 _ACEOF
55101 cat confdefs.h >>conftest.$ac_ext
55102 cat >>conftest.$ac_ext <<_ACEOF
55103 /* end confdefs.h. */
55104 #include <inq_stats/cpustats.h>
55105 _ACEOF
55106 if { (ac_try="$ac_cpp conftest.$ac_ext"
55107 case "(($ac_try" in
55108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55109 *) ac_try_echo=$ac_try;;
55110 esac
55111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
55112 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
55113 ac_status=$?
55114 grep -v '^ *+' conftest.er1 >conftest.err
55115 rm -f conftest.er1
55116 cat conftest.err >&5
55117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55118 (exit $ac_status); } >/dev/null; then
55119 if test -s conftest.err; then
55120 ac_cpp_err=$ac_c_preproc_warn_flag
55121 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
55122 else
55123 ac_cpp_err=
55125 else
55126 ac_cpp_err=yes
55128 if test -z "$ac_cpp_err"; then
55129 ac_header_preproc=yes
55130 else
55131 echo "$as_me: failed program was:" >&5
55132 sed 's/^/| /' conftest.$ac_ext >&5
55134 ac_header_preproc=no
55137 rm -f conftest.err conftest.$ac_ext
55138 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
55139 echo "${ECHO_T}$ac_header_preproc" >&6; }
55141 # So? What about this header?
55142 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
55143 yes:no: )
55144 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
55145 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
55146 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
55147 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
55148 ac_header_preproc=yes
55150 no:yes:* )
55151 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
55152 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
55153 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
55154 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
55155 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
55156 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
55157 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
55158 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
55159 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
55160 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
55161 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
55162 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
55163 ( cat <<\_ASBOX
55164 ## ------------------------------------ ##
55165 ## Report this to bug-coreutils@gnu.org ##
55166 ## ------------------------------------ ##
55167 _ASBOX
55168 ) | sed "s/^/$as_me: WARNING: /" >&2
55170 esac
55171 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
55172 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
55173 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
55174 echo $ECHO_N "(cached) $ECHO_C" >&6
55175 else
55176 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
55178 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
55179 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
55182 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
55183 ac_have_func=yes
55185 cat >>confdefs.h <<\_ACEOF
55186 #define UMAX 1
55187 _ACEOF
55190 cat >>confdefs.h <<\_ACEOF
55191 #define UMAX4_3 1
55192 _ACEOF
55199 if test $ac_have_func = no; then
55200 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
55201 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
55202 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
55203 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
55204 echo $ECHO_N "(cached) $ECHO_C" >&6
55206 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
55207 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
55208 else
55209 # Is the header compilable?
55210 { echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
55211 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6; }
55212 cat >conftest.$ac_ext <<_ACEOF
55213 /* confdefs.h. */
55214 _ACEOF
55215 cat confdefs.h >>conftest.$ac_ext
55216 cat >>conftest.$ac_ext <<_ACEOF
55217 /* end confdefs.h. */
55218 $ac_includes_default
55219 #include <sys/cpustats.h>
55220 _ACEOF
55221 rm -f conftest.$ac_objext
55222 if { (ac_try="$ac_compile"
55223 case "(($ac_try" in
55224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55225 *) ac_try_echo=$ac_try;;
55226 esac
55227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
55228 (eval "$ac_compile") 2>conftest.er1
55229 ac_status=$?
55230 grep -v '^ *+' conftest.er1 >conftest.err
55231 rm -f conftest.er1
55232 cat conftest.err >&5
55233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55234 (exit $ac_status); } &&
55235 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
55236 { (case "(($ac_try" in
55237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55238 *) ac_try_echo=$ac_try;;
55239 esac
55240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
55241 (eval "$ac_try") 2>&5
55242 ac_status=$?
55243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55244 (exit $ac_status); }; } &&
55245 { ac_try='test -s conftest.$ac_objext'
55246 { (case "(($ac_try" in
55247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55248 *) ac_try_echo=$ac_try;;
55249 esac
55250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
55251 (eval "$ac_try") 2>&5
55252 ac_status=$?
55253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55254 (exit $ac_status); }; }; then
55255 ac_header_compiler=yes
55256 else
55257 echo "$as_me: failed program was:" >&5
55258 sed 's/^/| /' conftest.$ac_ext >&5
55260 ac_header_compiler=no
55263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
55264 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
55265 echo "${ECHO_T}$ac_header_compiler" >&6; }
55267 # Is the header present?
55268 { echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
55269 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6; }
55270 cat >conftest.$ac_ext <<_ACEOF
55271 /* confdefs.h. */
55272 _ACEOF
55273 cat confdefs.h >>conftest.$ac_ext
55274 cat >>conftest.$ac_ext <<_ACEOF
55275 /* end confdefs.h. */
55276 #include <sys/cpustats.h>
55277 _ACEOF
55278 if { (ac_try="$ac_cpp conftest.$ac_ext"
55279 case "(($ac_try" in
55280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55281 *) ac_try_echo=$ac_try;;
55282 esac
55283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
55284 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
55285 ac_status=$?
55286 grep -v '^ *+' conftest.er1 >conftest.err
55287 rm -f conftest.er1
55288 cat conftest.err >&5
55289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55290 (exit $ac_status); } >/dev/null; then
55291 if test -s conftest.err; then
55292 ac_cpp_err=$ac_c_preproc_warn_flag
55293 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
55294 else
55295 ac_cpp_err=
55297 else
55298 ac_cpp_err=yes
55300 if test -z "$ac_cpp_err"; then
55301 ac_header_preproc=yes
55302 else
55303 echo "$as_me: failed program was:" >&5
55304 sed 's/^/| /' conftest.$ac_ext >&5
55306 ac_header_preproc=no
55309 rm -f conftest.err conftest.$ac_ext
55310 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
55311 echo "${ECHO_T}$ac_header_preproc" >&6; }
55313 # So? What about this header?
55314 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
55315 yes:no: )
55316 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
55317 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
55318 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
55319 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
55320 ac_header_preproc=yes
55322 no:yes:* )
55323 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
55324 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
55325 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
55326 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
55327 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
55328 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
55329 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
55330 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
55331 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
55332 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
55333 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
55334 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
55335 ( cat <<\_ASBOX
55336 ## ------------------------------------ ##
55337 ## Report this to bug-coreutils@gnu.org ##
55338 ## ------------------------------------ ##
55339 _ASBOX
55340 ) | sed "s/^/$as_me: WARNING: /" >&2
55342 esac
55343 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
55344 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
55345 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
55346 echo $ECHO_N "(cached) $ECHO_C" >&6
55347 else
55348 ac_cv_header_sys_cpustats_h=$ac_header_preproc
55350 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
55351 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
55354 if test $ac_cv_header_sys_cpustats_h = yes; then
55355 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
55356 #define UMAX 1
55357 _ACEOF
55364 if test $ac_have_func = no; then
55366 for ac_header in mach/mach.h
55368 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
55369 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
55370 { echo "$as_me:$LINENO: checking for $ac_header" >&5
55371 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
55372 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
55373 echo $ECHO_N "(cached) $ECHO_C" >&6
55375 ac_res=`eval echo '${'$as_ac_Header'}'`
55376 { echo "$as_me:$LINENO: result: $ac_res" >&5
55377 echo "${ECHO_T}$ac_res" >&6; }
55378 else
55379 # Is the header compilable?
55380 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
55381 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
55382 cat >conftest.$ac_ext <<_ACEOF
55383 /* confdefs.h. */
55384 _ACEOF
55385 cat confdefs.h >>conftest.$ac_ext
55386 cat >>conftest.$ac_ext <<_ACEOF
55387 /* end confdefs.h. */
55388 $ac_includes_default
55389 #include <$ac_header>
55390 _ACEOF
55391 rm -f conftest.$ac_objext
55392 if { (ac_try="$ac_compile"
55393 case "(($ac_try" in
55394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55395 *) ac_try_echo=$ac_try;;
55396 esac
55397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
55398 (eval "$ac_compile") 2>conftest.er1
55399 ac_status=$?
55400 grep -v '^ *+' conftest.er1 >conftest.err
55401 rm -f conftest.er1
55402 cat conftest.err >&5
55403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55404 (exit $ac_status); } &&
55405 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
55406 { (case "(($ac_try" in
55407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55408 *) ac_try_echo=$ac_try;;
55409 esac
55410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
55411 (eval "$ac_try") 2>&5
55412 ac_status=$?
55413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55414 (exit $ac_status); }; } &&
55415 { ac_try='test -s conftest.$ac_objext'
55416 { (case "(($ac_try" in
55417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55418 *) ac_try_echo=$ac_try;;
55419 esac
55420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
55421 (eval "$ac_try") 2>&5
55422 ac_status=$?
55423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55424 (exit $ac_status); }; }; then
55425 ac_header_compiler=yes
55426 else
55427 echo "$as_me: failed program was:" >&5
55428 sed 's/^/| /' conftest.$ac_ext >&5
55430 ac_header_compiler=no
55433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
55434 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
55435 echo "${ECHO_T}$ac_header_compiler" >&6; }
55437 # Is the header present?
55438 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
55439 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
55440 cat >conftest.$ac_ext <<_ACEOF
55441 /* confdefs.h. */
55442 _ACEOF
55443 cat confdefs.h >>conftest.$ac_ext
55444 cat >>conftest.$ac_ext <<_ACEOF
55445 /* end confdefs.h. */
55446 #include <$ac_header>
55447 _ACEOF
55448 if { (ac_try="$ac_cpp conftest.$ac_ext"
55449 case "(($ac_try" in
55450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55451 *) ac_try_echo=$ac_try;;
55452 esac
55453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
55454 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
55455 ac_status=$?
55456 grep -v '^ *+' conftest.er1 >conftest.err
55457 rm -f conftest.er1
55458 cat conftest.err >&5
55459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55460 (exit $ac_status); } >/dev/null; then
55461 if test -s conftest.err; then
55462 ac_cpp_err=$ac_c_preproc_warn_flag
55463 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
55464 else
55465 ac_cpp_err=
55467 else
55468 ac_cpp_err=yes
55470 if test -z "$ac_cpp_err"; then
55471 ac_header_preproc=yes
55472 else
55473 echo "$as_me: failed program was:" >&5
55474 sed 's/^/| /' conftest.$ac_ext >&5
55476 ac_header_preproc=no
55479 rm -f conftest.err conftest.$ac_ext
55480 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
55481 echo "${ECHO_T}$ac_header_preproc" >&6; }
55483 # So? What about this header?
55484 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
55485 yes:no: )
55486 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
55487 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
55488 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
55489 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
55490 ac_header_preproc=yes
55492 no:yes:* )
55493 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
55494 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
55495 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
55496 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
55497 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
55498 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
55499 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
55500 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
55501 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
55502 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
55503 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
55504 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
55505 ( cat <<\_ASBOX
55506 ## ------------------------------------ ##
55507 ## Report this to bug-coreutils@gnu.org ##
55508 ## ------------------------------------ ##
55509 _ASBOX
55510 ) | sed "s/^/$as_me: WARNING: /" >&2
55512 esac
55513 { echo "$as_me:$LINENO: checking for $ac_header" >&5
55514 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
55515 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
55516 echo $ECHO_N "(cached) $ECHO_C" >&6
55517 else
55518 eval "$as_ac_Header=\$ac_header_preproc"
55520 ac_res=`eval echo '${'$as_ac_Header'}'`
55521 { echo "$as_me:$LINENO: result: $ac_res" >&5
55522 echo "${ECHO_T}$ac_res" >&6; }
55525 if test `eval echo '${'$as_ac_Header'}'` = yes; then
55526 cat >>confdefs.h <<_ACEOF
55527 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
55528 _ACEOF
55532 done
55537 for ac_header in nlist.h
55539 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
55540 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
55541 { echo "$as_me:$LINENO: checking for $ac_header" >&5
55542 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
55543 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
55544 echo $ECHO_N "(cached) $ECHO_C" >&6
55546 ac_res=`eval echo '${'$as_ac_Header'}'`
55547 { echo "$as_me:$LINENO: result: $ac_res" >&5
55548 echo "${ECHO_T}$ac_res" >&6; }
55549 else
55550 # Is the header compilable?
55551 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
55552 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
55553 cat >conftest.$ac_ext <<_ACEOF
55554 /* confdefs.h. */
55555 _ACEOF
55556 cat confdefs.h >>conftest.$ac_ext
55557 cat >>conftest.$ac_ext <<_ACEOF
55558 /* end confdefs.h. */
55559 $ac_includes_default
55560 #include <$ac_header>
55561 _ACEOF
55562 rm -f conftest.$ac_objext
55563 if { (ac_try="$ac_compile"
55564 case "(($ac_try" in
55565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55566 *) ac_try_echo=$ac_try;;
55567 esac
55568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
55569 (eval "$ac_compile") 2>conftest.er1
55570 ac_status=$?
55571 grep -v '^ *+' conftest.er1 >conftest.err
55572 rm -f conftest.er1
55573 cat conftest.err >&5
55574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55575 (exit $ac_status); } &&
55576 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
55577 { (case "(($ac_try" in
55578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55579 *) ac_try_echo=$ac_try;;
55580 esac
55581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
55582 (eval "$ac_try") 2>&5
55583 ac_status=$?
55584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55585 (exit $ac_status); }; } &&
55586 { ac_try='test -s conftest.$ac_objext'
55587 { (case "(($ac_try" in
55588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55589 *) ac_try_echo=$ac_try;;
55590 esac
55591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
55592 (eval "$ac_try") 2>&5
55593 ac_status=$?
55594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55595 (exit $ac_status); }; }; then
55596 ac_header_compiler=yes
55597 else
55598 echo "$as_me: failed program was:" >&5
55599 sed 's/^/| /' conftest.$ac_ext >&5
55601 ac_header_compiler=no
55604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
55605 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
55606 echo "${ECHO_T}$ac_header_compiler" >&6; }
55608 # Is the header present?
55609 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
55610 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
55611 cat >conftest.$ac_ext <<_ACEOF
55612 /* confdefs.h. */
55613 _ACEOF
55614 cat confdefs.h >>conftest.$ac_ext
55615 cat >>conftest.$ac_ext <<_ACEOF
55616 /* end confdefs.h. */
55617 #include <$ac_header>
55618 _ACEOF
55619 if { (ac_try="$ac_cpp conftest.$ac_ext"
55620 case "(($ac_try" in
55621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55622 *) ac_try_echo=$ac_try;;
55623 esac
55624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
55625 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
55626 ac_status=$?
55627 grep -v '^ *+' conftest.er1 >conftest.err
55628 rm -f conftest.er1
55629 cat conftest.err >&5
55630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55631 (exit $ac_status); } >/dev/null; then
55632 if test -s conftest.err; then
55633 ac_cpp_err=$ac_c_preproc_warn_flag
55634 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
55635 else
55636 ac_cpp_err=
55638 else
55639 ac_cpp_err=yes
55641 if test -z "$ac_cpp_err"; then
55642 ac_header_preproc=yes
55643 else
55644 echo "$as_me: failed program was:" >&5
55645 sed 's/^/| /' conftest.$ac_ext >&5
55647 ac_header_preproc=no
55650 rm -f conftest.err conftest.$ac_ext
55651 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
55652 echo "${ECHO_T}$ac_header_preproc" >&6; }
55654 # So? What about this header?
55655 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
55656 yes:no: )
55657 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
55658 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
55659 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
55660 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
55661 ac_header_preproc=yes
55663 no:yes:* )
55664 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
55665 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
55666 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
55667 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
55668 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
55669 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
55670 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
55671 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
55672 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
55673 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
55674 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
55675 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
55676 ( cat <<\_ASBOX
55677 ## ------------------------------------ ##
55678 ## Report this to bug-coreutils@gnu.org ##
55679 ## ------------------------------------ ##
55680 _ASBOX
55681 ) | sed "s/^/$as_me: WARNING: /" >&2
55683 esac
55684 { echo "$as_me:$LINENO: checking for $ac_header" >&5
55685 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
55686 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
55687 echo $ECHO_N "(cached) $ECHO_C" >&6
55688 else
55689 eval "$as_ac_Header=\$ac_header_preproc"
55691 ac_res=`eval echo '${'$as_ac_Header'}'`
55692 { echo "$as_me:$LINENO: result: $ac_res" >&5
55693 echo "${ECHO_T}$ac_res" >&6; }
55696 if test `eval echo '${'$as_ac_Header'}'` = yes; then
55697 cat >>confdefs.h <<_ACEOF
55698 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
55699 _ACEOF
55700 { echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
55701 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6; }
55702 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
55703 echo $ECHO_N "(cached) $ECHO_C" >&6
55704 else
55705 cat >conftest.$ac_ext <<_ACEOF
55706 /* confdefs.h. */
55707 _ACEOF
55708 cat confdefs.h >>conftest.$ac_ext
55709 cat >>conftest.$ac_ext <<_ACEOF
55710 /* end confdefs.h. */
55711 #include <nlist.h>
55714 main ()
55716 static struct nlist ac_aggr;
55717 if (ac_aggr.n_un.n_name)
55718 return 0;
55720 return 0;
55722 _ACEOF
55723 rm -f conftest.$ac_objext
55724 if { (ac_try="$ac_compile"
55725 case "(($ac_try" in
55726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55727 *) ac_try_echo=$ac_try;;
55728 esac
55729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
55730 (eval "$ac_compile") 2>conftest.er1
55731 ac_status=$?
55732 grep -v '^ *+' conftest.er1 >conftest.err
55733 rm -f conftest.er1
55734 cat conftest.err >&5
55735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55736 (exit $ac_status); } &&
55737 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
55738 { (case "(($ac_try" in
55739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55740 *) ac_try_echo=$ac_try;;
55741 esac
55742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
55743 (eval "$ac_try") 2>&5
55744 ac_status=$?
55745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55746 (exit $ac_status); }; } &&
55747 { ac_try='test -s conftest.$ac_objext'
55748 { (case "(($ac_try" in
55749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55750 *) ac_try_echo=$ac_try;;
55751 esac
55752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
55753 (eval "$ac_try") 2>&5
55754 ac_status=$?
55755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55756 (exit $ac_status); }; }; then
55757 ac_cv_member_struct_nlist_n_un_n_name=yes
55758 else
55759 echo "$as_me: failed program was:" >&5
55760 sed 's/^/| /' conftest.$ac_ext >&5
55762 cat >conftest.$ac_ext <<_ACEOF
55763 /* confdefs.h. */
55764 _ACEOF
55765 cat confdefs.h >>conftest.$ac_ext
55766 cat >>conftest.$ac_ext <<_ACEOF
55767 /* end confdefs.h. */
55768 #include <nlist.h>
55771 main ()
55773 static struct nlist ac_aggr;
55774 if (sizeof ac_aggr.n_un.n_name)
55775 return 0;
55777 return 0;
55779 _ACEOF
55780 rm -f conftest.$ac_objext
55781 if { (ac_try="$ac_compile"
55782 case "(($ac_try" in
55783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55784 *) ac_try_echo=$ac_try;;
55785 esac
55786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
55787 (eval "$ac_compile") 2>conftest.er1
55788 ac_status=$?
55789 grep -v '^ *+' conftest.er1 >conftest.err
55790 rm -f conftest.er1
55791 cat conftest.err >&5
55792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55793 (exit $ac_status); } &&
55794 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
55795 { (case "(($ac_try" in
55796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55797 *) ac_try_echo=$ac_try;;
55798 esac
55799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
55800 (eval "$ac_try") 2>&5
55801 ac_status=$?
55802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55803 (exit $ac_status); }; } &&
55804 { ac_try='test -s conftest.$ac_objext'
55805 { (case "(($ac_try" in
55806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55807 *) ac_try_echo=$ac_try;;
55808 esac
55809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
55810 (eval "$ac_try") 2>&5
55811 ac_status=$?
55812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55813 (exit $ac_status); }; }; then
55814 ac_cv_member_struct_nlist_n_un_n_name=yes
55815 else
55816 echo "$as_me: failed program was:" >&5
55817 sed 's/^/| /' conftest.$ac_ext >&5
55819 ac_cv_member_struct_nlist_n_un_n_name=no
55822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
55825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
55827 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
55828 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
55829 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
55831 cat >>confdefs.h <<_ACEOF
55832 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
55833 _ACEOF
55836 cat >>confdefs.h <<\_ACEOF
55837 #define NLIST_NAME_UNION 1
55838 _ACEOF
55845 done
55848 done
55851 # Some definitions of getloadavg require that the program be installed setgid.
55852 { echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
55853 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6; }
55854 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
55855 echo $ECHO_N "(cached) $ECHO_C" >&6
55856 else
55857 cat >conftest.$ac_ext <<_ACEOF
55858 /* confdefs.h. */
55859 _ACEOF
55860 cat confdefs.h >>conftest.$ac_ext
55861 cat >>conftest.$ac_ext <<_ACEOF
55862 /* end confdefs.h. */
55863 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
55864 #ifdef LDAV_PRIVILEGED
55865 Yowza Am I SETGID yet
55866 #endif
55867 _ACEOF
55868 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
55869 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
55870 ac_cv_func_getloadavg_setgid=yes
55871 else
55872 ac_cv_func_getloadavg_setgid=no
55874 rm -f conftest*
55877 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
55878 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6; }
55879 if test $ac_cv_func_getloadavg_setgid = yes; then
55880 NEED_SETGID=true
55882 cat >>confdefs.h <<\_ACEOF
55883 #define GETLOADAVG_PRIVILEGED 1
55884 _ACEOF
55886 else
55887 NEED_SETGID=false
55890 if test $ac_cv_func_getloadavg_setgid = yes; then
55891 { echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
55892 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6; }
55893 if test "${ac_cv_group_kmem+set}" = set; then
55894 echo $ECHO_N "(cached) $ECHO_C" >&6
55895 else
55896 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
55897 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
55898 # If we got an error (system does not support symlinks), try without -L.
55899 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
55900 ac_cv_group_kmem=`echo $ac_ls_output \
55901 | sed -ne 's/[ ][ ]*/ /g;
55902 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
55903 / /s/.* //;p;'`
55906 { echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
55907 echo "${ECHO_T}$ac_cv_group_kmem" >&6; }
55908 KMEM_GROUP=$ac_cv_group_kmem
55910 if test "x$ac_save_LIBS" = x; then
55911 GETLOADAVG_LIBS=$LIBS
55912 else
55913 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
55915 LIBS=$ac_save_LIBS
55922 # raise is used by at least sort and ls.
55924 for ac_func in raise
55926 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
55927 { echo "$as_me:$LINENO: checking for $ac_func" >&5
55928 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
55929 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
55930 echo $ECHO_N "(cached) $ECHO_C" >&6
55931 else
55932 cat >conftest.$ac_ext <<_ACEOF
55933 /* confdefs.h. */
55934 _ACEOF
55935 cat confdefs.h >>conftest.$ac_ext
55936 cat >>conftest.$ac_ext <<_ACEOF
55937 /* end confdefs.h. */
55938 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
55939 For example, HP-UX 11i <limits.h> declares gettimeofday. */
55940 #define $ac_func innocuous_$ac_func
55942 /* System header to define __stub macros and hopefully few prototypes,
55943 which can conflict with char $ac_func (); below.
55944 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
55945 <limits.h> exists even on freestanding compilers. */
55947 #ifdef __STDC__
55948 # include <limits.h>
55949 #else
55950 # include <assert.h>
55951 #endif
55953 #undef $ac_func
55955 /* Override any GCC internal prototype to avoid an error.
55956 Use char because int might match the return type of a GCC
55957 builtin and then its argument prototype would still apply. */
55958 #ifdef __cplusplus
55959 extern "C"
55960 #endif
55961 char $ac_func ();
55962 /* The GNU C library defines this for functions which it implements
55963 to always fail with ENOSYS. Some functions are actually named
55964 something starting with __ and the normal name is an alias. */
55965 #if defined __stub_$ac_func || defined __stub___$ac_func
55966 choke me
55967 #endif
55970 main ()
55972 return $ac_func ();
55974 return 0;
55976 _ACEOF
55977 rm -f conftest.$ac_objext conftest$ac_exeext
55978 if { (ac_try="$ac_link"
55979 case "(($ac_try" in
55980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55981 *) ac_try_echo=$ac_try;;
55982 esac
55983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
55984 (eval "$ac_link") 2>conftest.er1
55985 ac_status=$?
55986 grep -v '^ *+' conftest.er1 >conftest.err
55987 rm -f conftest.er1
55988 cat conftest.err >&5
55989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55990 (exit $ac_status); } &&
55991 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
55992 { (case "(($ac_try" in
55993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55994 *) ac_try_echo=$ac_try;;
55995 esac
55996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
55997 (eval "$ac_try") 2>&5
55998 ac_status=$?
55999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56000 (exit $ac_status); }; } &&
56001 { ac_try='test -s conftest$ac_exeext'
56002 { (case "(($ac_try" in
56003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56004 *) ac_try_echo=$ac_try;;
56005 esac
56006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
56007 (eval "$ac_try") 2>&5
56008 ac_status=$?
56009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56010 (exit $ac_status); }; }; then
56011 eval "$as_ac_var=yes"
56012 else
56013 echo "$as_me: failed program was:" >&5
56014 sed 's/^/| /' conftest.$ac_ext >&5
56016 eval "$as_ac_var=no"
56019 rm -f core conftest.err conftest.$ac_objext \
56020 conftest$ac_exeext conftest.$ac_ext
56022 ac_res=`eval echo '${'$as_ac_var'}'`
56023 { echo "$as_me:$LINENO: result: $ac_res" >&5
56024 echo "${ECHO_T}$ac_res" >&6; }
56025 if test `eval echo '${'$as_ac_var'}'` = yes; then
56026 cat >>confdefs.h <<_ACEOF
56027 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
56028 _ACEOF
56030 else
56031 case " $LIBOBJS " in
56032 *" $ac_func.$ac_objext "* ) ;;
56033 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
56035 esac
56038 done
56042 # By default, argmatch should fail calling usage (1).
56044 cat >>confdefs.h <<\_ACEOF
56045 #define ARGMATCH_DIE usage (1)
56046 _ACEOF
56049 cat >>confdefs.h <<\_ACEOF
56050 #define ARGMATCH_DIE_DECL extern void usage ()
56051 _ACEOF
56054 { echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed" >&5
56055 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6; }
56056 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
56057 echo $ECHO_N "(cached) $ECHO_C" >&6
56058 else
56059 ac_cv_func_setvbuf_reversed=no
56060 cat >conftest.$ac_ext <<_ACEOF
56061 /* confdefs.h. */
56062 _ACEOF
56063 cat confdefs.h >>conftest.$ac_ext
56064 cat >>conftest.$ac_ext <<_ACEOF
56065 /* end confdefs.h. */
56066 #include <stdio.h>
56067 # if PROTOTYPES
56068 int (setvbuf) (FILE *, int, char *, size_t);
56069 # endif
56071 main ()
56073 char buf; return setvbuf (stdout, _IOLBF, &buf, 1);
56075 return 0;
56077 _ACEOF
56078 rm -f conftest.$ac_objext conftest$ac_exeext
56079 if { (ac_try="$ac_link"
56080 case "(($ac_try" in
56081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56082 *) ac_try_echo=$ac_try;;
56083 esac
56084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
56085 (eval "$ac_link") 2>conftest.er1
56086 ac_status=$?
56087 grep -v '^ *+' conftest.er1 >conftest.err
56088 rm -f conftest.er1
56089 cat conftest.err >&5
56090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56091 (exit $ac_status); } &&
56092 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
56093 { (case "(($ac_try" in
56094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56095 *) ac_try_echo=$ac_try;;
56096 esac
56097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
56098 (eval "$ac_try") 2>&5
56099 ac_status=$?
56100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56101 (exit $ac_status); }; } &&
56102 { ac_try='test -s conftest$ac_exeext'
56103 { (case "(($ac_try" in
56104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56105 *) ac_try_echo=$ac_try;;
56106 esac
56107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
56108 (eval "$ac_try") 2>&5
56109 ac_status=$?
56110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56111 (exit $ac_status); }; }; then
56112 cat >conftest.$ac_ext <<_ACEOF
56113 /* confdefs.h. */
56114 _ACEOF
56115 cat confdefs.h >>conftest.$ac_ext
56116 cat >>conftest.$ac_ext <<_ACEOF
56117 /* end confdefs.h. */
56118 #include <stdio.h>
56119 # if PROTOTYPES
56120 int (setvbuf) (FILE *, int, char *, size_t);
56121 # endif
56123 main ()
56125 char buf; return setvbuf (stdout, &buf, _IOLBF, 1);
56127 return 0;
56129 _ACEOF
56130 rm -f conftest.$ac_objext conftest$ac_exeext
56131 if { (ac_try="$ac_link"
56132 case "(($ac_try" in
56133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56134 *) ac_try_echo=$ac_try;;
56135 esac
56136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
56137 (eval "$ac_link") 2>conftest.er1
56138 ac_status=$?
56139 grep -v '^ *+' conftest.er1 >conftest.err
56140 rm -f conftest.er1
56141 cat conftest.err >&5
56142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56143 (exit $ac_status); } &&
56144 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
56145 { (case "(($ac_try" in
56146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56147 *) ac_try_echo=$ac_try;;
56148 esac
56149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
56150 (eval "$ac_try") 2>&5
56151 ac_status=$?
56152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56153 (exit $ac_status); }; } &&
56154 { ac_try='test -s conftest$ac_exeext'
56155 { (case "(($ac_try" in
56156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56157 *) ac_try_echo=$ac_try;;
56158 esac
56159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
56160 (eval "$ac_try") 2>&5
56161 ac_status=$?
56162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56163 (exit $ac_status); }; }; then
56164 # It compiles and links either way, so it must not be declared
56165 # with a prototype and most likely this is a K&R C compiler.
56166 # Try running it.
56167 if test "$cross_compiling" = yes; then
56168 : # Assume setvbuf is not reversed when cross-compiling.
56169 else
56170 cat >conftest.$ac_ext <<_ACEOF
56171 /* confdefs.h. */
56172 _ACEOF
56173 cat confdefs.h >>conftest.$ac_ext
56174 cat >>conftest.$ac_ext <<_ACEOF
56175 /* end confdefs.h. */
56176 $ac_includes_default
56178 main ()
56180 /* This call has the arguments reversed.
56181 A reversed system may check and see that the address of buf
56182 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
56183 char buf;
56184 if (setvbuf (stdout, _IOLBF, &buf, 1) != 0)
56185 return 1;
56186 putchar ('\r');
56187 return 0; /* Non-reversed systems SEGV here. */
56189 return 0;
56191 _ACEOF
56192 rm -f conftest$ac_exeext
56193 if { (ac_try="$ac_link"
56194 case "(($ac_try" in
56195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56196 *) ac_try_echo=$ac_try;;
56197 esac
56198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
56199 (eval "$ac_link") 2>&5
56200 ac_status=$?
56201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56202 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
56203 { (case "(($ac_try" in
56204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56205 *) ac_try_echo=$ac_try;;
56206 esac
56207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
56208 (eval "$ac_try") 2>&5
56209 ac_status=$?
56210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56211 (exit $ac_status); }; }; then
56212 ac_cv_func_setvbuf_reversed=yes
56213 else
56214 echo "$as_me: program exited with status $ac_status" >&5
56215 echo "$as_me: failed program was:" >&5
56216 sed 's/^/| /' conftest.$ac_ext >&5
56219 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
56223 ac_cv_func_setvbuf_reversed=yes
56224 else
56225 echo "$as_me: failed program was:" >&5
56226 sed 's/^/| /' conftest.$ac_ext >&5
56231 rm -f core conftest.err conftest.$ac_objext \
56232 conftest$ac_exeext conftest.$ac_ext
56233 else
56234 echo "$as_me: failed program was:" >&5
56235 sed 's/^/| /' conftest.$ac_ext >&5
56240 rm -f core conftest.err conftest.$ac_objext \
56241 conftest$ac_exeext conftest.$ac_ext
56243 { echo "$as_me:$LINENO: result: $ac_cv_func_setvbuf_reversed" >&5
56244 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6; }
56245 if test $ac_cv_func_setvbuf_reversed = yes; then
56247 cat >>confdefs.h <<\_ACEOF
56248 #define SETVBUF_REVERSED 1
56249 _ACEOF
56254 # used by sleep and shred
56264 { echo "$as_me:$LINENO: checking whether gettimeofday clobbers localtime buffer" >&5
56265 echo $ECHO_N "checking whether gettimeofday clobbers localtime buffer... $ECHO_C" >&6; }
56266 if test "${jm_cv_func_gettimeofday_clobber+set}" = set; then
56267 echo $ECHO_N "(cached) $ECHO_C" >&6
56268 else
56269 if test "$cross_compiling" = yes; then
56270 jm_cv_func_gettimeofday_clobber=yes
56271 else
56272 cat >conftest.$ac_ext <<_ACEOF
56273 /* confdefs.h. */
56274 _ACEOF
56275 cat confdefs.h >>conftest.$ac_ext
56276 cat >>conftest.$ac_ext <<_ACEOF
56277 /* end confdefs.h. */
56279 #include <stdio.h>
56280 #include <string.h>
56282 #if TIME_WITH_SYS_TIME
56283 # include <sys/time.h>
56284 # include <time.h>
56285 #else
56286 # if HAVE_SYS_TIME_H
56287 # include <sys/time.h>
56288 # else
56289 # include <time.h>
56290 # endif
56291 #endif
56293 #include <stdlib.h>
56296 main ()
56298 time_t t = 0;
56299 struct tm *lt;
56300 struct tm saved_lt;
56301 struct timeval tv;
56302 lt = localtime (&t);
56303 saved_lt = *lt;
56304 gettimeofday (&tv, NULL);
56305 if (memcmp (lt, &saved_lt, sizeof (struct tm)) != 0)
56306 exit (1);
56308 exit (0);
56311 _ACEOF
56312 rm -f conftest$ac_exeext
56313 if { (ac_try="$ac_link"
56314 case "(($ac_try" in
56315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56316 *) ac_try_echo=$ac_try;;
56317 esac
56318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
56319 (eval "$ac_link") 2>&5
56320 ac_status=$?
56321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56322 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
56323 { (case "(($ac_try" in
56324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56325 *) ac_try_echo=$ac_try;;
56326 esac
56327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
56328 (eval "$ac_try") 2>&5
56329 ac_status=$?
56330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56331 (exit $ac_status); }; }; then
56332 jm_cv_func_gettimeofday_clobber=no
56333 else
56334 echo "$as_me: program exited with status $ac_status" >&5
56335 echo "$as_me: failed program was:" >&5
56336 sed 's/^/| /' conftest.$ac_ext >&5
56338 ( exit $ac_status )
56339 jm_cv_func_gettimeofday_clobber=yes
56341 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
56347 { echo "$as_me:$LINENO: result: $jm_cv_func_gettimeofday_clobber" >&5
56348 echo "${ECHO_T}$jm_cv_func_gettimeofday_clobber" >&6; }
56349 if test $jm_cv_func_gettimeofday_clobber = yes; then
56351 case " $LIBOBJS " in
56352 *" gettimeofday.$ac_objext "* ) ;;
56353 *) LIBOBJS="$LIBOBJS gettimeofday.$ac_objext"
56355 esac
56358 cat >>confdefs.h <<\_ACEOF
56359 #define gmtime rpl_gmtime
56360 _ACEOF
56363 cat >>confdefs.h <<\_ACEOF
56364 #define localtime rpl_localtime
56365 _ACEOF
56370 cat >>confdefs.h <<\_ACEOF
56371 #define gettimeofday rpl_gettimeofday
56372 _ACEOF
56379 # used by shred
56440 { echo "$as_me:$LINENO: checking for working strtod" >&5
56441 echo $ECHO_N "checking for working strtod... $ECHO_C" >&6; }
56442 if test "${ac_cv_func_strtod+set}" = set; then
56443 echo $ECHO_N "(cached) $ECHO_C" >&6
56444 else
56445 if test "$cross_compiling" = yes; then
56446 ac_cv_func_strtod=no
56447 else
56448 cat >conftest.$ac_ext <<_ACEOF
56449 /* confdefs.h. */
56450 _ACEOF
56451 cat confdefs.h >>conftest.$ac_ext
56452 cat >>conftest.$ac_ext <<_ACEOF
56453 /* end confdefs.h. */
56455 $ac_includes_default
56456 #ifndef strtod
56457 double strtod ();
56458 #endif
56460 main()
56463 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
56464 char *string = " +69";
56465 char *term;
56466 double value;
56467 value = strtod (string, &term);
56468 if (value != 69 || term != (string + 4))
56469 return 1;
56473 /* Under Solaris 2.4, strtod returns the wrong value for the
56474 terminating character under some conditions. */
56475 char *string = "NaN";
56476 char *term;
56477 strtod (string, &term);
56478 if (term != string && *(term - 1) == 0)
56479 return 1;
56481 return 0;
56484 _ACEOF
56485 rm -f conftest$ac_exeext
56486 if { (ac_try="$ac_link"
56487 case "(($ac_try" in
56488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56489 *) ac_try_echo=$ac_try;;
56490 esac
56491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
56492 (eval "$ac_link") 2>&5
56493 ac_status=$?
56494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56495 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
56496 { (case "(($ac_try" in
56497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56498 *) ac_try_echo=$ac_try;;
56499 esac
56500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
56501 (eval "$ac_try") 2>&5
56502 ac_status=$?
56503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56504 (exit $ac_status); }; }; then
56505 ac_cv_func_strtod=yes
56506 else
56507 echo "$as_me: program exited with status $ac_status" >&5
56508 echo "$as_me: failed program was:" >&5
56509 sed 's/^/| /' conftest.$ac_ext >&5
56511 ( exit $ac_status )
56512 ac_cv_func_strtod=no
56514 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
56519 { echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
56520 echo "${ECHO_T}$ac_cv_func_strtod" >&6; }
56521 if test $ac_cv_func_strtod = no; then
56522 case " $LIBOBJS " in
56523 *" strtod.$ac_objext "* ) ;;
56524 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
56526 esac
56528 { echo "$as_me:$LINENO: checking for pow" >&5
56529 echo $ECHO_N "checking for pow... $ECHO_C" >&6; }
56530 if test "${ac_cv_func_pow+set}" = set; then
56531 echo $ECHO_N "(cached) $ECHO_C" >&6
56532 else
56533 cat >conftest.$ac_ext <<_ACEOF
56534 /* confdefs.h. */
56535 _ACEOF
56536 cat confdefs.h >>conftest.$ac_ext
56537 cat >>conftest.$ac_ext <<_ACEOF
56538 /* end confdefs.h. */
56539 /* Define pow to an innocuous variant, in case <limits.h> declares pow.
56540 For example, HP-UX 11i <limits.h> declares gettimeofday. */
56541 #define pow innocuous_pow
56543 /* System header to define __stub macros and hopefully few prototypes,
56544 which can conflict with char pow (); below.
56545 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
56546 <limits.h> exists even on freestanding compilers. */
56548 #ifdef __STDC__
56549 # include <limits.h>
56550 #else
56551 # include <assert.h>
56552 #endif
56554 #undef pow
56556 /* Override any GCC internal prototype to avoid an error.
56557 Use char because int might match the return type of a GCC
56558 builtin and then its argument prototype would still apply. */
56559 #ifdef __cplusplus
56560 extern "C"
56561 #endif
56562 char pow ();
56563 /* The GNU C library defines this for functions which it implements
56564 to always fail with ENOSYS. Some functions are actually named
56565 something starting with __ and the normal name is an alias. */
56566 #if defined __stub_pow || defined __stub___pow
56567 choke me
56568 #endif
56571 main ()
56573 return pow ();
56575 return 0;
56577 _ACEOF
56578 rm -f conftest.$ac_objext conftest$ac_exeext
56579 if { (ac_try="$ac_link"
56580 case "(($ac_try" in
56581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56582 *) ac_try_echo=$ac_try;;
56583 esac
56584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
56585 (eval "$ac_link") 2>conftest.er1
56586 ac_status=$?
56587 grep -v '^ *+' conftest.er1 >conftest.err
56588 rm -f conftest.er1
56589 cat conftest.err >&5
56590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56591 (exit $ac_status); } &&
56592 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
56593 { (case "(($ac_try" in
56594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56595 *) ac_try_echo=$ac_try;;
56596 esac
56597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
56598 (eval "$ac_try") 2>&5
56599 ac_status=$?
56600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56601 (exit $ac_status); }; } &&
56602 { ac_try='test -s conftest$ac_exeext'
56603 { (case "(($ac_try" in
56604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56605 *) ac_try_echo=$ac_try;;
56606 esac
56607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
56608 (eval "$ac_try") 2>&5
56609 ac_status=$?
56610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56611 (exit $ac_status); }; }; then
56612 ac_cv_func_pow=yes
56613 else
56614 echo "$as_me: failed program was:" >&5
56615 sed 's/^/| /' conftest.$ac_ext >&5
56617 ac_cv_func_pow=no
56620 rm -f core conftest.err conftest.$ac_objext \
56621 conftest$ac_exeext conftest.$ac_ext
56623 { echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
56624 echo "${ECHO_T}$ac_cv_func_pow" >&6; }
56626 if test $ac_cv_func_pow = no; then
56627 { echo "$as_me:$LINENO: checking for pow in -lm" >&5
56628 echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6; }
56629 if test "${ac_cv_lib_m_pow+set}" = set; then
56630 echo $ECHO_N "(cached) $ECHO_C" >&6
56631 else
56632 ac_check_lib_save_LIBS=$LIBS
56633 LIBS="-lm $LIBS"
56634 cat >conftest.$ac_ext <<_ACEOF
56635 /* confdefs.h. */
56636 _ACEOF
56637 cat confdefs.h >>conftest.$ac_ext
56638 cat >>conftest.$ac_ext <<_ACEOF
56639 /* end confdefs.h. */
56641 /* Override any GCC internal prototype to avoid an error.
56642 Use char because int might match the return type of a GCC
56643 builtin and then its argument prototype would still apply. */
56644 #ifdef __cplusplus
56645 extern "C"
56646 #endif
56647 char pow ();
56649 main ()
56651 return pow ();
56653 return 0;
56655 _ACEOF
56656 rm -f conftest.$ac_objext conftest$ac_exeext
56657 if { (ac_try="$ac_link"
56658 case "(($ac_try" in
56659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56660 *) ac_try_echo=$ac_try;;
56661 esac
56662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
56663 (eval "$ac_link") 2>conftest.er1
56664 ac_status=$?
56665 grep -v '^ *+' conftest.er1 >conftest.err
56666 rm -f conftest.er1
56667 cat conftest.err >&5
56668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56669 (exit $ac_status); } &&
56670 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
56671 { (case "(($ac_try" in
56672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56673 *) ac_try_echo=$ac_try;;
56674 esac
56675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
56676 (eval "$ac_try") 2>&5
56677 ac_status=$?
56678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56679 (exit $ac_status); }; } &&
56680 { ac_try='test -s conftest$ac_exeext'
56681 { (case "(($ac_try" in
56682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56683 *) ac_try_echo=$ac_try;;
56684 esac
56685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
56686 (eval "$ac_try") 2>&5
56687 ac_status=$?
56688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56689 (exit $ac_status); }; }; then
56690 ac_cv_lib_m_pow=yes
56691 else
56692 echo "$as_me: failed program was:" >&5
56693 sed 's/^/| /' conftest.$ac_ext >&5
56695 ac_cv_lib_m_pow=no
56698 rm -f core conftest.err conftest.$ac_objext \
56699 conftest$ac_exeext conftest.$ac_ext
56700 LIBS=$ac_check_lib_save_LIBS
56702 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
56703 echo "${ECHO_T}$ac_cv_lib_m_pow" >&6; }
56704 if test $ac_cv_lib_m_pow = yes; then
56705 POW_LIB=-lm
56706 else
56707 { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
56708 echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
56718 # for dd.c and shred.c
56719 coreutils_saved_libs=$LIBS
56720 { echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
56721 echo $ECHO_N "checking for library containing fdatasync... $ECHO_C" >&6; }
56722 if test "${ac_cv_search_fdatasync+set}" = set; then
56723 echo $ECHO_N "(cached) $ECHO_C" >&6
56724 else
56725 ac_func_search_save_LIBS=$LIBS
56726 cat >conftest.$ac_ext <<_ACEOF
56727 /* confdefs.h. */
56728 _ACEOF
56729 cat confdefs.h >>conftest.$ac_ext
56730 cat >>conftest.$ac_ext <<_ACEOF
56731 /* end confdefs.h. */
56733 /* Override any GCC internal prototype to avoid an error.
56734 Use char because int might match the return type of a GCC
56735 builtin and then its argument prototype would still apply. */
56736 #ifdef __cplusplus
56737 extern "C"
56738 #endif
56739 char fdatasync ();
56741 main ()
56743 return fdatasync ();
56745 return 0;
56747 _ACEOF
56748 for ac_lib in '' rt posix4; do
56749 if test -z "$ac_lib"; then
56750 ac_res="none required"
56751 else
56752 ac_res=-l$ac_lib
56753 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
56755 rm -f conftest.$ac_objext conftest$ac_exeext
56756 if { (ac_try="$ac_link"
56757 case "(($ac_try" in
56758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56759 *) ac_try_echo=$ac_try;;
56760 esac
56761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
56762 (eval "$ac_link") 2>conftest.er1
56763 ac_status=$?
56764 grep -v '^ *+' conftest.er1 >conftest.err
56765 rm -f conftest.er1
56766 cat conftest.err >&5
56767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56768 (exit $ac_status); } &&
56769 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
56770 { (case "(($ac_try" in
56771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56772 *) ac_try_echo=$ac_try;;
56773 esac
56774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
56775 (eval "$ac_try") 2>&5
56776 ac_status=$?
56777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56778 (exit $ac_status); }; } &&
56779 { ac_try='test -s conftest$ac_exeext'
56780 { (case "(($ac_try" in
56781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56782 *) ac_try_echo=$ac_try;;
56783 esac
56784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
56785 (eval "$ac_try") 2>&5
56786 ac_status=$?
56787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56788 (exit $ac_status); }; }; then
56789 ac_cv_search_fdatasync=$ac_res
56790 else
56791 echo "$as_me: failed program was:" >&5
56792 sed 's/^/| /' conftest.$ac_ext >&5
56797 rm -f core conftest.err conftest.$ac_objext \
56798 conftest$ac_exeext
56799 if test "${ac_cv_search_fdatasync+set}" = set; then
56800 break
56802 done
56803 if test "${ac_cv_search_fdatasync+set}" = set; then
56805 else
56806 ac_cv_search_fdatasync=no
56808 rm conftest.$ac_ext
56809 LIBS=$ac_func_search_save_LIBS
56811 { echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
56812 echo "${ECHO_T}$ac_cv_search_fdatasync" >&6; }
56813 ac_res=$ac_cv_search_fdatasync
56814 if test "$ac_res" != no; then
56815 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
56816 test "$ac_cv_search_fdatasync" = "none required" ||
56817 LIB_FDATASYNC=$ac_cv_search_fdatasync
56822 for ac_func in fdatasync
56824 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
56825 { echo "$as_me:$LINENO: checking for $ac_func" >&5
56826 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
56827 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
56828 echo $ECHO_N "(cached) $ECHO_C" >&6
56829 else
56830 cat >conftest.$ac_ext <<_ACEOF
56831 /* confdefs.h. */
56832 _ACEOF
56833 cat confdefs.h >>conftest.$ac_ext
56834 cat >>conftest.$ac_ext <<_ACEOF
56835 /* end confdefs.h. */
56836 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
56837 For example, HP-UX 11i <limits.h> declares gettimeofday. */
56838 #define $ac_func innocuous_$ac_func
56840 /* System header to define __stub macros and hopefully few prototypes,
56841 which can conflict with char $ac_func (); below.
56842 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
56843 <limits.h> exists even on freestanding compilers. */
56845 #ifdef __STDC__
56846 # include <limits.h>
56847 #else
56848 # include <assert.h>
56849 #endif
56851 #undef $ac_func
56853 /* Override any GCC internal prototype to avoid an error.
56854 Use char because int might match the return type of a GCC
56855 builtin and then its argument prototype would still apply. */
56856 #ifdef __cplusplus
56857 extern "C"
56858 #endif
56859 char $ac_func ();
56860 /* The GNU C library defines this for functions which it implements
56861 to always fail with ENOSYS. Some functions are actually named
56862 something starting with __ and the normal name is an alias. */
56863 #if defined __stub_$ac_func || defined __stub___$ac_func
56864 choke me
56865 #endif
56868 main ()
56870 return $ac_func ();
56872 return 0;
56874 _ACEOF
56875 rm -f conftest.$ac_objext conftest$ac_exeext
56876 if { (ac_try="$ac_link"
56877 case "(($ac_try" in
56878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56879 *) ac_try_echo=$ac_try;;
56880 esac
56881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
56882 (eval "$ac_link") 2>conftest.er1
56883 ac_status=$?
56884 grep -v '^ *+' conftest.er1 >conftest.err
56885 rm -f conftest.er1
56886 cat conftest.err >&5
56887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56888 (exit $ac_status); } &&
56889 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
56890 { (case "(($ac_try" in
56891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56892 *) ac_try_echo=$ac_try;;
56893 esac
56894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
56895 (eval "$ac_try") 2>&5
56896 ac_status=$?
56897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56898 (exit $ac_status); }; } &&
56899 { ac_try='test -s conftest$ac_exeext'
56900 { (case "(($ac_try" in
56901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56902 *) ac_try_echo=$ac_try;;
56903 esac
56904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
56905 (eval "$ac_try") 2>&5
56906 ac_status=$?
56907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56908 (exit $ac_status); }; }; then
56909 eval "$as_ac_var=yes"
56910 else
56911 echo "$as_me: failed program was:" >&5
56912 sed 's/^/| /' conftest.$ac_ext >&5
56914 eval "$as_ac_var=no"
56917 rm -f core conftest.err conftest.$ac_objext \
56918 conftest$ac_exeext conftest.$ac_ext
56920 ac_res=`eval echo '${'$as_ac_var'}'`
56921 { echo "$as_me:$LINENO: result: $ac_res" >&5
56922 echo "${ECHO_T}$ac_res" >&6; }
56923 if test `eval echo '${'$as_ac_var'}'` = yes; then
56924 cat >>confdefs.h <<_ACEOF
56925 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
56926 _ACEOF
56929 done
56931 LIBS=$coreutils_saved_libs
56933 # See if linking `seq' requires -lm.
56934 # It does on nearly every system. The single exception (so far) is
56935 # BeOS which has all the math functions in the normal runtime library
56936 # and doesn't have a separate math library.
56939 ac_seq_body='
56940 static double x, y;
56941 x = floor (x);
56942 x = rint (x);
56943 x = modf (x, &y);'
56944 cat >conftest.$ac_ext <<_ACEOF
56945 /* confdefs.h. */
56946 _ACEOF
56947 cat confdefs.h >>conftest.$ac_ext
56948 cat >>conftest.$ac_ext <<_ACEOF
56949 /* end confdefs.h. */
56950 #include <math.h>
56952 main ()
56954 $ac_seq_body
56956 return 0;
56958 _ACEOF
56959 rm -f conftest.$ac_objext conftest$ac_exeext
56960 if { (ac_try="$ac_link"
56961 case "(($ac_try" in
56962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56963 *) ac_try_echo=$ac_try;;
56964 esac
56965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
56966 (eval "$ac_link") 2>conftest.er1
56967 ac_status=$?
56968 grep -v '^ *+' conftest.er1 >conftest.err
56969 rm -f conftest.er1
56970 cat conftest.err >&5
56971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56972 (exit $ac_status); } &&
56973 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
56974 { (case "(($ac_try" in
56975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56976 *) ac_try_echo=$ac_try;;
56977 esac
56978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
56979 (eval "$ac_try") 2>&5
56980 ac_status=$?
56981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56982 (exit $ac_status); }; } &&
56983 { ac_try='test -s conftest$ac_exeext'
56984 { (case "(($ac_try" in
56985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56986 *) ac_try_echo=$ac_try;;
56987 esac
56988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
56989 (eval "$ac_try") 2>&5
56990 ac_status=$?
56991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56992 (exit $ac_status); }; }; then
56994 else
56995 echo "$as_me: failed program was:" >&5
56996 sed 's/^/| /' conftest.$ac_ext >&5
56998 ac_seq_save_LIBS="$LIBS"
56999 LIBS="$LIBS -lm"
57000 cat >conftest.$ac_ext <<_ACEOF
57001 /* confdefs.h. */
57002 _ACEOF
57003 cat confdefs.h >>conftest.$ac_ext
57004 cat >>conftest.$ac_ext <<_ACEOF
57005 /* end confdefs.h. */
57006 #include <math.h>
57008 main ()
57010 $ac_seq_body
57012 return 0;
57014 _ACEOF
57015 rm -f conftest.$ac_objext conftest$ac_exeext
57016 if { (ac_try="$ac_link"
57017 case "(($ac_try" in
57018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57019 *) ac_try_echo=$ac_try;;
57020 esac
57021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
57022 (eval "$ac_link") 2>conftest.er1
57023 ac_status=$?
57024 grep -v '^ *+' conftest.er1 >conftest.err
57025 rm -f conftest.er1
57026 cat conftest.err >&5
57027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57028 (exit $ac_status); } &&
57029 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
57030 { (case "(($ac_try" in
57031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57032 *) ac_try_echo=$ac_try;;
57033 esac
57034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
57035 (eval "$ac_try") 2>&5
57036 ac_status=$?
57037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57038 (exit $ac_status); }; } &&
57039 { ac_try='test -s conftest$ac_exeext'
57040 { (case "(($ac_try" in
57041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57042 *) ac_try_echo=$ac_try;;
57043 esac
57044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
57045 (eval "$ac_try") 2>&5
57046 ac_status=$?
57047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57048 (exit $ac_status); }; }; then
57049 SEQ_LIBM=-lm
57050 else
57051 echo "$as_me: failed program was:" >&5
57052 sed 's/^/| /' conftest.$ac_ext >&5
57057 rm -f core conftest.err conftest.$ac_objext \
57058 conftest$ac_exeext conftest.$ac_ext
57059 LIBS="$ac_seq_save_LIBS"
57063 rm -f core conftest.err conftest.$ac_objext \
57064 conftest$ac_exeext conftest.$ac_ext
57073 am_save_CPPFLAGS="$CPPFLAGS"
57075 for element in $INCICONV; do
57076 haveit=
57077 for x in $CPPFLAGS; do
57079 acl_save_prefix="$prefix"
57080 prefix="$acl_final_prefix"
57081 acl_save_exec_prefix="$exec_prefix"
57082 exec_prefix="$acl_final_exec_prefix"
57083 eval x=\"$x\"
57084 exec_prefix="$acl_save_exec_prefix"
57085 prefix="$acl_save_prefix"
57087 if test "X$x" = "X$element"; then
57088 haveit=yes
57089 break
57091 done
57092 if test -z "$haveit"; then
57093 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
57095 done
57098 { echo "$as_me:$LINENO: checking for iconv" >&5
57099 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
57100 if test "${am_cv_func_iconv+set}" = set; then
57101 echo $ECHO_N "(cached) $ECHO_C" >&6
57102 else
57104 am_cv_func_iconv="no, consider installing GNU libiconv"
57105 am_cv_lib_iconv=no
57106 cat >conftest.$ac_ext <<_ACEOF
57107 /* confdefs.h. */
57108 _ACEOF
57109 cat confdefs.h >>conftest.$ac_ext
57110 cat >>conftest.$ac_ext <<_ACEOF
57111 /* end confdefs.h. */
57112 #include <stdlib.h>
57113 #include <iconv.h>
57115 main ()
57117 iconv_t cd = iconv_open("","");
57118 iconv(cd,NULL,NULL,NULL,NULL);
57119 iconv_close(cd);
57121 return 0;
57123 _ACEOF
57124 rm -f conftest.$ac_objext conftest$ac_exeext
57125 if { (ac_try="$ac_link"
57126 case "(($ac_try" in
57127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57128 *) ac_try_echo=$ac_try;;
57129 esac
57130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
57131 (eval "$ac_link") 2>conftest.er1
57132 ac_status=$?
57133 grep -v '^ *+' conftest.er1 >conftest.err
57134 rm -f conftest.er1
57135 cat conftest.err >&5
57136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57137 (exit $ac_status); } &&
57138 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
57139 { (case "(($ac_try" in
57140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57141 *) ac_try_echo=$ac_try;;
57142 esac
57143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
57144 (eval "$ac_try") 2>&5
57145 ac_status=$?
57146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57147 (exit $ac_status); }; } &&
57148 { ac_try='test -s conftest$ac_exeext'
57149 { (case "(($ac_try" in
57150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57151 *) ac_try_echo=$ac_try;;
57152 esac
57153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
57154 (eval "$ac_try") 2>&5
57155 ac_status=$?
57156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57157 (exit $ac_status); }; }; then
57158 am_cv_func_iconv=yes
57159 else
57160 echo "$as_me: failed program was:" >&5
57161 sed 's/^/| /' conftest.$ac_ext >&5
57166 rm -f core conftest.err conftest.$ac_objext \
57167 conftest$ac_exeext conftest.$ac_ext
57168 if test "$am_cv_func_iconv" != yes; then
57169 am_save_LIBS="$LIBS"
57170 LIBS="$LIBS $LIBICONV"
57171 cat >conftest.$ac_ext <<_ACEOF
57172 /* confdefs.h. */
57173 _ACEOF
57174 cat confdefs.h >>conftest.$ac_ext
57175 cat >>conftest.$ac_ext <<_ACEOF
57176 /* end confdefs.h. */
57177 #include <stdlib.h>
57178 #include <iconv.h>
57180 main ()
57182 iconv_t cd = iconv_open("","");
57183 iconv(cd,NULL,NULL,NULL,NULL);
57184 iconv_close(cd);
57186 return 0;
57188 _ACEOF
57189 rm -f conftest.$ac_objext conftest$ac_exeext
57190 if { (ac_try="$ac_link"
57191 case "(($ac_try" in
57192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57193 *) ac_try_echo=$ac_try;;
57194 esac
57195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
57196 (eval "$ac_link") 2>conftest.er1
57197 ac_status=$?
57198 grep -v '^ *+' conftest.er1 >conftest.err
57199 rm -f conftest.er1
57200 cat conftest.err >&5
57201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57202 (exit $ac_status); } &&
57203 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
57204 { (case "(($ac_try" in
57205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57206 *) ac_try_echo=$ac_try;;
57207 esac
57208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
57209 (eval "$ac_try") 2>&5
57210 ac_status=$?
57211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57212 (exit $ac_status); }; } &&
57213 { ac_try='test -s conftest$ac_exeext'
57214 { (case "(($ac_try" in
57215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57216 *) ac_try_echo=$ac_try;;
57217 esac
57218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
57219 (eval "$ac_try") 2>&5
57220 ac_status=$?
57221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57222 (exit $ac_status); }; }; then
57223 am_cv_lib_iconv=yes
57224 am_cv_func_iconv=yes
57225 else
57226 echo "$as_me: failed program was:" >&5
57227 sed 's/^/| /' conftest.$ac_ext >&5
57232 rm -f core conftest.err conftest.$ac_objext \
57233 conftest$ac_exeext conftest.$ac_ext
57234 LIBS="$am_save_LIBS"
57238 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
57239 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
57240 if test "$am_cv_func_iconv" = yes; then
57242 cat >>confdefs.h <<\_ACEOF
57243 #define HAVE_ICONV 1
57244 _ACEOF
57247 if test "$am_cv_lib_iconv" = yes; then
57248 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
57249 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
57250 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
57251 echo "${ECHO_T}$LIBICONV" >&6; }
57252 else
57253 CPPFLAGS="$am_save_CPPFLAGS"
57254 LIBICONV=
57255 LTLIBICONV=
57260 if test "$am_cv_func_iconv" = yes; then
57261 { echo "$as_me:$LINENO: checking for iconv declaration" >&5
57262 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
57263 if test "${am_cv_proto_iconv+set}" = set; then
57264 echo $ECHO_N "(cached) $ECHO_C" >&6
57265 else
57267 cat >conftest.$ac_ext <<_ACEOF
57268 /* confdefs.h. */
57269 _ACEOF
57270 cat confdefs.h >>conftest.$ac_ext
57271 cat >>conftest.$ac_ext <<_ACEOF
57272 /* end confdefs.h. */
57274 #include <stdlib.h>
57275 #include <iconv.h>
57276 extern
57277 #ifdef __cplusplus
57279 #endif
57280 #if defined(__STDC__) || defined(__cplusplus)
57281 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
57282 #else
57283 size_t iconv();
57284 #endif
57287 main ()
57291 return 0;
57293 _ACEOF
57294 rm -f conftest.$ac_objext
57295 if { (ac_try="$ac_compile"
57296 case "(($ac_try" in
57297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57298 *) ac_try_echo=$ac_try;;
57299 esac
57300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
57301 (eval "$ac_compile") 2>conftest.er1
57302 ac_status=$?
57303 grep -v '^ *+' conftest.er1 >conftest.err
57304 rm -f conftest.er1
57305 cat conftest.err >&5
57306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57307 (exit $ac_status); } &&
57308 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
57309 { (case "(($ac_try" in
57310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57311 *) ac_try_echo=$ac_try;;
57312 esac
57313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
57314 (eval "$ac_try") 2>&5
57315 ac_status=$?
57316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57317 (exit $ac_status); }; } &&
57318 { ac_try='test -s conftest.$ac_objext'
57319 { (case "(($ac_try" in
57320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57321 *) ac_try_echo=$ac_try;;
57322 esac
57323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
57324 (eval "$ac_try") 2>&5
57325 ac_status=$?
57326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57327 (exit $ac_status); }; }; then
57328 am_cv_proto_iconv_arg1=""
57329 else
57330 echo "$as_me: failed program was:" >&5
57331 sed 's/^/| /' conftest.$ac_ext >&5
57333 am_cv_proto_iconv_arg1="const"
57336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
57337 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);"
57340 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
57341 { echo "$as_me:$LINENO: result: ${ac_t:-
57342 }$am_cv_proto_iconv" >&5
57343 echo "${ECHO_T}${ac_t:-
57344 }$am_cv_proto_iconv" >&6; }
57346 cat >>confdefs.h <<_ACEOF
57347 #define ICONV_CONST $am_cv_proto_iconv_arg1
57348 _ACEOF
57352 { echo "$as_me:$LINENO: checking whether a running program can be unlinked" >&5
57353 echo $ECHO_N "checking whether a running program can be unlinked... $ECHO_C" >&6; }
57354 if test "${jm_cv_func_unlink_busy_text+set}" = set; then
57355 echo $ECHO_N "(cached) $ECHO_C" >&6
57356 else
57358 if test "$cross_compiling" = yes; then
57359 jm_cv_func_unlink_busy_text=no
57361 else
57362 cat >conftest.$ac_ext <<_ACEOF
57363 /* confdefs.h. */
57364 _ACEOF
57365 cat confdefs.h >>conftest.$ac_ext
57366 cat >>conftest.$ac_ext <<_ACEOF
57367 /* end confdefs.h. */
57368 $ac_includes_default
57370 main (int argc, char **argv)
57372 return !argc || unlink (argv0) != 0;
57374 _ACEOF
57375 rm -f conftest$ac_exeext
57376 if { (ac_try="$ac_link"
57377 case "(($ac_try" in
57378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57379 *) ac_try_echo=$ac_try;;
57380 esac
57381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
57382 (eval "$ac_link") 2>&5
57383 ac_status=$?
57384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57385 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
57386 { (case "(($ac_try" in
57387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57388 *) ac_try_echo=$ac_try;;
57389 esac
57390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
57391 (eval "$ac_try") 2>&5
57392 ac_status=$?
57393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57394 (exit $ac_status); }; }; then
57395 jm_cv_func_unlink_busy_text=yes
57396 else
57397 echo "$as_me: program exited with status $ac_status" >&5
57398 echo "$as_me: failed program was:" >&5
57399 sed 's/^/| /' conftest.$ac_ext >&5
57401 ( exit $ac_status )
57402 jm_cv_func_unlink_busy_text=no
57404 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
57411 { echo "$as_me:$LINENO: result: $jm_cv_func_unlink_busy_text" >&5
57412 echo "${ECHO_T}$jm_cv_func_unlink_busy_text" >&6; }
57414 if test $jm_cv_func_unlink_busy_text = no; then
57415 INSTALL=$ac_install_sh
57419 # These tests are for df.
57422 if test $gl_cv_list_mounted_fs = yes && test $gl_cv_fs_space = yes; then
57423 DF_PROG='df$(EXEEXT)'
57428 # If any of these functions don't exist (e.g. DJGPP 2.03),
57429 # use the corresponding stub.
57430 { echo "$as_me:$LINENO: checking for fchdir" >&5
57431 echo $ECHO_N "checking for fchdir... $ECHO_C" >&6; }
57432 if test "${ac_cv_func_fchdir+set}" = set; then
57433 echo $ECHO_N "(cached) $ECHO_C" >&6
57434 else
57435 cat >conftest.$ac_ext <<_ACEOF
57436 /* confdefs.h. */
57437 _ACEOF
57438 cat confdefs.h >>conftest.$ac_ext
57439 cat >>conftest.$ac_ext <<_ACEOF
57440 /* end confdefs.h. */
57441 /* Define fchdir to an innocuous variant, in case <limits.h> declares fchdir.
57442 For example, HP-UX 11i <limits.h> declares gettimeofday. */
57443 #define fchdir innocuous_fchdir
57445 /* System header to define __stub macros and hopefully few prototypes,
57446 which can conflict with char fchdir (); below.
57447 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
57448 <limits.h> exists even on freestanding compilers. */
57450 #ifdef __STDC__
57451 # include <limits.h>
57452 #else
57453 # include <assert.h>
57454 #endif
57456 #undef fchdir
57458 /* Override any GCC internal prototype to avoid an error.
57459 Use char because int might match the return type of a GCC
57460 builtin and then its argument prototype would still apply. */
57461 #ifdef __cplusplus
57462 extern "C"
57463 #endif
57464 char fchdir ();
57465 /* The GNU C library defines this for functions which it implements
57466 to always fail with ENOSYS. Some functions are actually named
57467 something starting with __ and the normal name is an alias. */
57468 #if defined __stub_fchdir || defined __stub___fchdir
57469 choke me
57470 #endif
57473 main ()
57475 return fchdir ();
57477 return 0;
57479 _ACEOF
57480 rm -f conftest.$ac_objext conftest$ac_exeext
57481 if { (ac_try="$ac_link"
57482 case "(($ac_try" in
57483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57484 *) ac_try_echo=$ac_try;;
57485 esac
57486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
57487 (eval "$ac_link") 2>conftest.er1
57488 ac_status=$?
57489 grep -v '^ *+' conftest.er1 >conftest.err
57490 rm -f conftest.er1
57491 cat conftest.err >&5
57492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57493 (exit $ac_status); } &&
57494 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
57495 { (case "(($ac_try" in
57496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57497 *) ac_try_echo=$ac_try;;
57498 esac
57499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
57500 (eval "$ac_try") 2>&5
57501 ac_status=$?
57502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57503 (exit $ac_status); }; } &&
57504 { ac_try='test -s conftest$ac_exeext'
57505 { (case "(($ac_try" in
57506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57507 *) ac_try_echo=$ac_try;;
57508 esac
57509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
57510 (eval "$ac_try") 2>&5
57511 ac_status=$?
57512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57513 (exit $ac_status); }; }; then
57514 ac_cv_func_fchdir=yes
57515 else
57516 echo "$as_me: failed program was:" >&5
57517 sed 's/^/| /' conftest.$ac_ext >&5
57519 ac_cv_func_fchdir=no
57522 rm -f core conftest.err conftest.$ac_objext \
57523 conftest$ac_exeext conftest.$ac_ext
57525 { echo "$as_me:$LINENO: result: $ac_cv_func_fchdir" >&5
57526 echo "${ECHO_T}$ac_cv_func_fchdir" >&6; }
57527 if test $ac_cv_func_fchdir = yes; then
57529 else
57530 case " $LIBOBJS " in
57531 *" fchdir-stub.$ac_objext "* ) ;;
57532 *) LIBOBJS="$LIBOBJS fchdir-stub.$ac_objext"
57534 esac
57550 { echo "$as_me:$LINENO: checking POSIX termios" >&5
57551 echo $ECHO_N "checking POSIX termios... $ECHO_C" >&6; }
57552 if test "${ac_cv_sys_posix_termios+set}" = set; then
57553 echo $ECHO_N "(cached) $ECHO_C" >&6
57554 else
57555 cat >conftest.$ac_ext <<_ACEOF
57556 /* confdefs.h. */
57557 _ACEOF
57558 cat confdefs.h >>conftest.$ac_ext
57559 cat >>conftest.$ac_ext <<_ACEOF
57560 /* end confdefs.h. */
57561 #include <sys/types.h>
57562 #include <unistd.h>
57563 #include <termios.h>
57566 main ()
57568 /* SunOS 4.0.3 has termios.h but not the library calls. */
57569 tcgetattr(0, 0);
57571 return 0;
57573 _ACEOF
57574 rm -f conftest.$ac_objext conftest$ac_exeext
57575 if { (ac_try="$ac_link"
57576 case "(($ac_try" in
57577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57578 *) ac_try_echo=$ac_try;;
57579 esac
57580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
57581 (eval "$ac_link") 2>conftest.er1
57582 ac_status=$?
57583 grep -v '^ *+' conftest.er1 >conftest.err
57584 rm -f conftest.er1
57585 cat conftest.err >&5
57586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57587 (exit $ac_status); } &&
57588 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
57589 { (case "(($ac_try" in
57590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57591 *) ac_try_echo=$ac_try;;
57592 esac
57593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
57594 (eval "$ac_try") 2>&5
57595 ac_status=$?
57596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57597 (exit $ac_status); }; } &&
57598 { ac_try='test -s conftest$ac_exeext'
57599 { (case "(($ac_try" in
57600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57601 *) ac_try_echo=$ac_try;;
57602 esac
57603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
57604 (eval "$ac_try") 2>&5
57605 ac_status=$?
57606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57607 (exit $ac_status); }; }; then
57608 ac_cv_sys_posix_termios=yes
57609 else
57610 echo "$as_me: failed program was:" >&5
57611 sed 's/^/| /' conftest.$ac_ext >&5
57613 ac_cv_sys_posix_termios=no
57616 rm -f core conftest.err conftest.$ac_objext \
57617 conftest$ac_exeext conftest.$ac_ext
57619 { echo "$as_me:$LINENO: result: $ac_cv_sys_posix_termios" >&5
57620 echo "${ECHO_T}$ac_cv_sys_posix_termios" >&6; }
57623 { echo "$as_me:$LINENO: checking whether use of struct winsize requires sys/ptem.h" >&5
57624 echo $ECHO_N "checking whether use of struct winsize requires sys/ptem.h... $ECHO_C" >&6; }
57625 if test "${jm_cv_sys_struct_winsize_needs_sys_ptem_h+set}" = set; then
57626 echo $ECHO_N "(cached) $ECHO_C" >&6
57627 else
57628 jm_cv_sys_struct_winsize_needs_sys_ptem_h=yes
57629 if test $ac_cv_sys_posix_termios = yes; then
57630 cat >conftest.$ac_ext <<_ACEOF
57631 /* confdefs.h. */
57632 _ACEOF
57633 cat confdefs.h >>conftest.$ac_ext
57634 cat >>conftest.$ac_ext <<_ACEOF
57635 /* end confdefs.h. */
57636 #include <termios.h>
57637 struct winsize x;
57639 main ()
57641 jm_cv_sys_struct_winsize_needs_sys_ptem_h=no
57643 return 0;
57645 _ACEOF
57646 rm -f conftest.$ac_objext
57647 if { (ac_try="$ac_compile"
57648 case "(($ac_try" in
57649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57650 *) ac_try_echo=$ac_try;;
57651 esac
57652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
57653 (eval "$ac_compile") 2>conftest.er1
57654 ac_status=$?
57655 grep -v '^ *+' conftest.er1 >conftest.err
57656 rm -f conftest.er1
57657 cat conftest.err >&5
57658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57659 (exit $ac_status); } &&
57660 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
57661 { (case "(($ac_try" in
57662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57663 *) ac_try_echo=$ac_try;;
57664 esac
57665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
57666 (eval "$ac_try") 2>&5
57667 ac_status=$?
57668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57669 (exit $ac_status); }; } &&
57670 { ac_try='test -s conftest.$ac_objext'
57671 { (case "(($ac_try" in
57672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57673 *) ac_try_echo=$ac_try;;
57674 esac
57675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
57676 (eval "$ac_try") 2>&5
57677 ac_status=$?
57678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57679 (exit $ac_status); }; }; then
57681 else
57682 echo "$as_me: failed program was:" >&5
57683 sed 's/^/| /' conftest.$ac_ext >&5
57688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
57690 if test $jm_cv_sys_struct_winsize_needs_sys_ptem_h = yes; then
57691 cat >conftest.$ac_ext <<_ACEOF
57692 /* confdefs.h. */
57693 _ACEOF
57694 cat confdefs.h >>conftest.$ac_ext
57695 cat >>conftest.$ac_ext <<_ACEOF
57696 /* end confdefs.h. */
57697 #include <sys/ptem.h>
57699 main ()
57701 struct winsize x;
57703 return 0;
57705 _ACEOF
57706 rm -f conftest.$ac_objext
57707 if { (ac_try="$ac_compile"
57708 case "(($ac_try" in
57709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57710 *) ac_try_echo=$ac_try;;
57711 esac
57712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
57713 (eval "$ac_compile") 2>conftest.er1
57714 ac_status=$?
57715 grep -v '^ *+' conftest.er1 >conftest.err
57716 rm -f conftest.er1
57717 cat conftest.err >&5
57718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57719 (exit $ac_status); } &&
57720 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
57721 { (case "(($ac_try" in
57722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57723 *) ac_try_echo=$ac_try;;
57724 esac
57725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
57726 (eval "$ac_try") 2>&5
57727 ac_status=$?
57728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57729 (exit $ac_status); }; } &&
57730 { ac_try='test -s conftest.$ac_objext'
57731 { (case "(($ac_try" in
57732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57733 *) ac_try_echo=$ac_try;;
57734 esac
57735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
57736 (eval "$ac_try") 2>&5
57737 ac_status=$?
57738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57739 (exit $ac_status); }; }; then
57741 else
57742 echo "$as_me: failed program was:" >&5
57743 sed 's/^/| /' conftest.$ac_ext >&5
57745 jm_cv_sys_struct_winsize_needs_sys_ptem_h=no
57748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
57751 { echo "$as_me:$LINENO: result: $jm_cv_sys_struct_winsize_needs_sys_ptem_h" >&5
57752 echo "${ECHO_T}$jm_cv_sys_struct_winsize_needs_sys_ptem_h" >&6; }
57753 if test $jm_cv_sys_struct_winsize_needs_sys_ptem_h = yes; then
57755 cat >>confdefs.h <<\_ACEOF
57756 #define WINSIZE_IN_PTEM 1
57757 _ACEOF
57761 { echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
57762 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6; }
57763 if test "${utils_cv_localtime_cache+set}" = set; then
57764 echo $ECHO_N "(cached) $ECHO_C" >&6
57765 else
57766 if test x$ac_cv_func_tzset = xyes; then
57767 if test "$cross_compiling" = yes; then
57768 # If we have tzset, assume the worst when cross-compiling.
57769 utils_cv_localtime_cache=yes
57770 else
57771 cat >conftest.$ac_ext <<_ACEOF
57772 /* confdefs.h. */
57773 _ACEOF
57774 cat confdefs.h >>conftest.$ac_ext
57775 cat >>conftest.$ac_ext <<_ACEOF
57776 /* end confdefs.h. */
57777 #include <time.h>
57778 #if STDC_HEADERS
57779 # include <stdlib.h>
57780 #endif
57781 extern char **environ;
57782 unset_TZ ()
57784 char **from, **to;
57785 for (to = from = environ; (*to = *from); from++)
57786 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
57787 to++;
57789 main()
57791 time_t now = time ((time_t *) 0);
57792 int hour_GMT0, hour_unset;
57793 if (putenv ("TZ=GMT0") != 0)
57794 exit (1);
57795 hour_GMT0 = localtime (&now)->tm_hour;
57796 unset_TZ ();
57797 hour_unset = localtime (&now)->tm_hour;
57798 if (putenv ("TZ=PST8") != 0)
57799 exit (1);
57800 if (localtime (&now)->tm_hour == hour_GMT0)
57801 exit (1);
57802 unset_TZ ();
57803 if (localtime (&now)->tm_hour != hour_unset)
57804 exit (1);
57805 exit (0);
57807 _ACEOF
57808 rm -f conftest$ac_exeext
57809 if { (ac_try="$ac_link"
57810 case "(($ac_try" in
57811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57812 *) ac_try_echo=$ac_try;;
57813 esac
57814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
57815 (eval "$ac_link") 2>&5
57816 ac_status=$?
57817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57818 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
57819 { (case "(($ac_try" in
57820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57821 *) ac_try_echo=$ac_try;;
57822 esac
57823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
57824 (eval "$ac_try") 2>&5
57825 ac_status=$?
57826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57827 (exit $ac_status); }; }; then
57828 utils_cv_localtime_cache=no
57829 else
57830 echo "$as_me: program exited with status $ac_status" >&5
57831 echo "$as_me: failed program was:" >&5
57832 sed 's/^/| /' conftest.$ac_ext >&5
57834 ( exit $ac_status )
57835 utils_cv_localtime_cache=yes
57837 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
57841 else
57842 # If we lack tzset, report that localtime does not cache TZ,
57843 # since we can't invalidate the cache if we don't have tzset.
57844 utils_cv_localtime_cache=no
57847 { echo "$as_me:$LINENO: result: $utils_cv_localtime_cache" >&5
57848 echo "${ECHO_T}$utils_cv_localtime_cache" >&6; }
57849 if test $utils_cv_localtime_cache = yes; then
57851 cat >>confdefs.h <<\_ACEOF
57852 #define LOCALTIME_CACHE 1
57853 _ACEOF
57857 # SCO-ODT-3.0 is reported to need -los to link programs using initgroups
57859 for ac_func in initgroups
57861 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
57862 { echo "$as_me:$LINENO: checking for $ac_func" >&5
57863 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
57864 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
57865 echo $ECHO_N "(cached) $ECHO_C" >&6
57866 else
57867 cat >conftest.$ac_ext <<_ACEOF
57868 /* confdefs.h. */
57869 _ACEOF
57870 cat confdefs.h >>conftest.$ac_ext
57871 cat >>conftest.$ac_ext <<_ACEOF
57872 /* end confdefs.h. */
57873 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
57874 For example, HP-UX 11i <limits.h> declares gettimeofday. */
57875 #define $ac_func innocuous_$ac_func
57877 /* System header to define __stub macros and hopefully few prototypes,
57878 which can conflict with char $ac_func (); below.
57879 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
57880 <limits.h> exists even on freestanding compilers. */
57882 #ifdef __STDC__
57883 # include <limits.h>
57884 #else
57885 # include <assert.h>
57886 #endif
57888 #undef $ac_func
57890 /* Override any GCC internal prototype to avoid an error.
57891 Use char because int might match the return type of a GCC
57892 builtin and then its argument prototype would still apply. */
57893 #ifdef __cplusplus
57894 extern "C"
57895 #endif
57896 char $ac_func ();
57897 /* The GNU C library defines this for functions which it implements
57898 to always fail with ENOSYS. Some functions are actually named
57899 something starting with __ and the normal name is an alias. */
57900 #if defined __stub_$ac_func || defined __stub___$ac_func
57901 choke me
57902 #endif
57905 main ()
57907 return $ac_func ();
57909 return 0;
57911 _ACEOF
57912 rm -f conftest.$ac_objext conftest$ac_exeext
57913 if { (ac_try="$ac_link"
57914 case "(($ac_try" in
57915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57916 *) ac_try_echo=$ac_try;;
57917 esac
57918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
57919 (eval "$ac_link") 2>conftest.er1
57920 ac_status=$?
57921 grep -v '^ *+' conftest.er1 >conftest.err
57922 rm -f conftest.er1
57923 cat conftest.err >&5
57924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57925 (exit $ac_status); } &&
57926 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
57927 { (case "(($ac_try" in
57928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57929 *) ac_try_echo=$ac_try;;
57930 esac
57931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
57932 (eval "$ac_try") 2>&5
57933 ac_status=$?
57934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57935 (exit $ac_status); }; } &&
57936 { ac_try='test -s conftest$ac_exeext'
57937 { (case "(($ac_try" in
57938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57939 *) ac_try_echo=$ac_try;;
57940 esac
57941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
57942 (eval "$ac_try") 2>&5
57943 ac_status=$?
57944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57945 (exit $ac_status); }; }; then
57946 eval "$as_ac_var=yes"
57947 else
57948 echo "$as_me: failed program was:" >&5
57949 sed 's/^/| /' conftest.$ac_ext >&5
57951 eval "$as_ac_var=no"
57954 rm -f core conftest.err conftest.$ac_objext \
57955 conftest$ac_exeext conftest.$ac_ext
57957 ac_res=`eval echo '${'$as_ac_var'}'`
57958 { echo "$as_me:$LINENO: result: $ac_res" >&5
57959 echo "${ECHO_T}$ac_res" >&6; }
57960 if test `eval echo '${'$as_ac_var'}'` = yes; then
57961 cat >>confdefs.h <<_ACEOF
57962 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
57963 _ACEOF
57966 done
57968 if test $ac_cv_func_initgroups = no; then
57970 { echo "$as_me:$LINENO: checking for initgroups in -los" >&5
57971 echo $ECHO_N "checking for initgroups in -los... $ECHO_C" >&6; }
57972 if test "${ac_cv_lib_os_initgroups+set}" = set; then
57973 echo $ECHO_N "(cached) $ECHO_C" >&6
57974 else
57975 ac_check_lib_save_LIBS=$LIBS
57976 LIBS="-los $LIBS"
57977 cat >conftest.$ac_ext <<_ACEOF
57978 /* confdefs.h. */
57979 _ACEOF
57980 cat confdefs.h >>conftest.$ac_ext
57981 cat >>conftest.$ac_ext <<_ACEOF
57982 /* end confdefs.h. */
57984 /* Override any GCC internal prototype to avoid an error.
57985 Use char because int might match the return type of a GCC
57986 builtin and then its argument prototype would still apply. */
57987 #ifdef __cplusplus
57988 extern "C"
57989 #endif
57990 char initgroups ();
57992 main ()
57994 return initgroups ();
57996 return 0;
57998 _ACEOF
57999 rm -f conftest.$ac_objext conftest$ac_exeext
58000 if { (ac_try="$ac_link"
58001 case "(($ac_try" in
58002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58003 *) ac_try_echo=$ac_try;;
58004 esac
58005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58006 (eval "$ac_link") 2>conftest.er1
58007 ac_status=$?
58008 grep -v '^ *+' conftest.er1 >conftest.err
58009 rm -f conftest.er1
58010 cat conftest.err >&5
58011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58012 (exit $ac_status); } &&
58013 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
58014 { (case "(($ac_try" in
58015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58016 *) ac_try_echo=$ac_try;;
58017 esac
58018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58019 (eval "$ac_try") 2>&5
58020 ac_status=$?
58021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58022 (exit $ac_status); }; } &&
58023 { ac_try='test -s conftest$ac_exeext'
58024 { (case "(($ac_try" in
58025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58026 *) ac_try_echo=$ac_try;;
58027 esac
58028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58029 (eval "$ac_try") 2>&5
58030 ac_status=$?
58031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58032 (exit $ac_status); }; }; then
58033 ac_cv_lib_os_initgroups=yes
58034 else
58035 echo "$as_me: failed program was:" >&5
58036 sed 's/^/| /' conftest.$ac_ext >&5
58038 ac_cv_lib_os_initgroups=no
58041 rm -f core conftest.err conftest.$ac_objext \
58042 conftest$ac_exeext conftest.$ac_ext
58043 LIBS=$ac_check_lib_save_LIBS
58045 { echo "$as_me:$LINENO: result: $ac_cv_lib_os_initgroups" >&5
58046 echo "${ECHO_T}$ac_cv_lib_os_initgroups" >&6; }
58047 if test $ac_cv_lib_os_initgroups = yes; then
58048 cat >>confdefs.h <<_ACEOF
58049 #define HAVE_LIBOS 1
58050 _ACEOF
58052 LIBS="-los $LIBS"
58059 for ac_func in syslog
58061 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
58062 { echo "$as_me:$LINENO: checking for $ac_func" >&5
58063 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
58064 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
58065 echo $ECHO_N "(cached) $ECHO_C" >&6
58066 else
58067 cat >conftest.$ac_ext <<_ACEOF
58068 /* confdefs.h. */
58069 _ACEOF
58070 cat confdefs.h >>conftest.$ac_ext
58071 cat >>conftest.$ac_ext <<_ACEOF
58072 /* end confdefs.h. */
58073 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
58074 For example, HP-UX 11i <limits.h> declares gettimeofday. */
58075 #define $ac_func innocuous_$ac_func
58077 /* System header to define __stub macros and hopefully few prototypes,
58078 which can conflict with char $ac_func (); below.
58079 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
58080 <limits.h> exists even on freestanding compilers. */
58082 #ifdef __STDC__
58083 # include <limits.h>
58084 #else
58085 # include <assert.h>
58086 #endif
58088 #undef $ac_func
58090 /* Override any GCC internal prototype to avoid an error.
58091 Use char because int might match the return type of a GCC
58092 builtin and then its argument prototype would still apply. */
58093 #ifdef __cplusplus
58094 extern "C"
58095 #endif
58096 char $ac_func ();
58097 /* The GNU C library defines this for functions which it implements
58098 to always fail with ENOSYS. Some functions are actually named
58099 something starting with __ and the normal name is an alias. */
58100 #if defined __stub_$ac_func || defined __stub___$ac_func
58101 choke me
58102 #endif
58105 main ()
58107 return $ac_func ();
58109 return 0;
58111 _ACEOF
58112 rm -f conftest.$ac_objext conftest$ac_exeext
58113 if { (ac_try="$ac_link"
58114 case "(($ac_try" in
58115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58116 *) ac_try_echo=$ac_try;;
58117 esac
58118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58119 (eval "$ac_link") 2>conftest.er1
58120 ac_status=$?
58121 grep -v '^ *+' conftest.er1 >conftest.err
58122 rm -f conftest.er1
58123 cat conftest.err >&5
58124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58125 (exit $ac_status); } &&
58126 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
58127 { (case "(($ac_try" in
58128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58129 *) ac_try_echo=$ac_try;;
58130 esac
58131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58132 (eval "$ac_try") 2>&5
58133 ac_status=$?
58134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58135 (exit $ac_status); }; } &&
58136 { ac_try='test -s conftest$ac_exeext'
58137 { (case "(($ac_try" in
58138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58139 *) ac_try_echo=$ac_try;;
58140 esac
58141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58142 (eval "$ac_try") 2>&5
58143 ac_status=$?
58144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58145 (exit $ac_status); }; }; then
58146 eval "$as_ac_var=yes"
58147 else
58148 echo "$as_me: failed program was:" >&5
58149 sed 's/^/| /' conftest.$ac_ext >&5
58151 eval "$as_ac_var=no"
58154 rm -f core conftest.err conftest.$ac_objext \
58155 conftest$ac_exeext conftest.$ac_ext
58157 ac_res=`eval echo '${'$as_ac_var'}'`
58158 { echo "$as_me:$LINENO: result: $ac_res" >&5
58159 echo "${ECHO_T}$ac_res" >&6; }
58160 if test `eval echo '${'$as_ac_var'}'` = yes; then
58161 cat >>confdefs.h <<_ACEOF
58162 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
58163 _ACEOF
58166 done
58168 if test $ac_cv_func_syslog = no; then
58169 # syslog is not in the default libraries. See if it's in some other.
58170 for lib in bsd socket inet; do
58171 as_ac_Lib=`echo "ac_cv_lib_$lib''_syslog" | $as_tr_sh`
58172 { echo "$as_me:$LINENO: checking for syslog in -l$lib" >&5
58173 echo $ECHO_N "checking for syslog in -l$lib... $ECHO_C" >&6; }
58174 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
58175 echo $ECHO_N "(cached) $ECHO_C" >&6
58176 else
58177 ac_check_lib_save_LIBS=$LIBS
58178 LIBS="-l$lib $LIBS"
58179 cat >conftest.$ac_ext <<_ACEOF
58180 /* confdefs.h. */
58181 _ACEOF
58182 cat confdefs.h >>conftest.$ac_ext
58183 cat >>conftest.$ac_ext <<_ACEOF
58184 /* end confdefs.h. */
58186 /* Override any GCC internal prototype to avoid an error.
58187 Use char because int might match the return type of a GCC
58188 builtin and then its argument prototype would still apply. */
58189 #ifdef __cplusplus
58190 extern "C"
58191 #endif
58192 char syslog ();
58194 main ()
58196 return syslog ();
58198 return 0;
58200 _ACEOF
58201 rm -f conftest.$ac_objext conftest$ac_exeext
58202 if { (ac_try="$ac_link"
58203 case "(($ac_try" in
58204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58205 *) ac_try_echo=$ac_try;;
58206 esac
58207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58208 (eval "$ac_link") 2>conftest.er1
58209 ac_status=$?
58210 grep -v '^ *+' conftest.er1 >conftest.err
58211 rm -f conftest.er1
58212 cat conftest.err >&5
58213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58214 (exit $ac_status); } &&
58215 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
58216 { (case "(($ac_try" in
58217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58218 *) ac_try_echo=$ac_try;;
58219 esac
58220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58221 (eval "$ac_try") 2>&5
58222 ac_status=$?
58223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58224 (exit $ac_status); }; } &&
58225 { ac_try='test -s conftest$ac_exeext'
58226 { (case "(($ac_try" in
58227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58228 *) ac_try_echo=$ac_try;;
58229 esac
58230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58231 (eval "$ac_try") 2>&5
58232 ac_status=$?
58233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58234 (exit $ac_status); }; }; then
58235 eval "$as_ac_Lib=yes"
58236 else
58237 echo "$as_me: failed program was:" >&5
58238 sed 's/^/| /' conftest.$ac_ext >&5
58240 eval "$as_ac_Lib=no"
58243 rm -f core conftest.err conftest.$ac_objext \
58244 conftest$ac_exeext conftest.$ac_ext
58245 LIBS=$ac_check_lib_save_LIBS
58247 ac_res=`eval echo '${'$as_ac_Lib'}'`
58248 { echo "$as_me:$LINENO: result: $ac_res" >&5
58249 echo "${ECHO_T}$ac_res" >&6; }
58250 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
58252 cat >>confdefs.h <<\_ACEOF
58253 #define HAVE_SYSLOG 1
58254 _ACEOF
58256 LIBS="$LIBS -l$lib"; break
58259 done
58262 { echo "$as_me:$LINENO: checking for 3-argument setpriority function" >&5
58263 echo $ECHO_N "checking for 3-argument setpriority function... $ECHO_C" >&6; }
58264 if test "${utils_cv_func_setpriority+set}" = set; then
58265 echo $ECHO_N "(cached) $ECHO_C" >&6
58266 else
58267 cat >conftest.$ac_ext <<_ACEOF
58268 /* confdefs.h. */
58269 _ACEOF
58270 cat confdefs.h >>conftest.$ac_ext
58271 cat >>conftest.$ac_ext <<_ACEOF
58272 /* end confdefs.h. */
58273 #include <sys/time.h>
58274 #include <sys/resource.h>
58277 main ()
58279 setpriority (0, 0, 0);
58281 return 0;
58283 _ACEOF
58284 rm -f conftest.$ac_objext conftest$ac_exeext
58285 if { (ac_try="$ac_link"
58286 case "(($ac_try" in
58287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58288 *) ac_try_echo=$ac_try;;
58289 esac
58290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58291 (eval "$ac_link") 2>conftest.er1
58292 ac_status=$?
58293 grep -v '^ *+' conftest.er1 >conftest.err
58294 rm -f conftest.er1
58295 cat conftest.err >&5
58296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58297 (exit $ac_status); } &&
58298 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
58299 { (case "(($ac_try" in
58300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58301 *) ac_try_echo=$ac_try;;
58302 esac
58303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58304 (eval "$ac_try") 2>&5
58305 ac_status=$?
58306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58307 (exit $ac_status); }; } &&
58308 { ac_try='test -s conftest$ac_exeext'
58309 { (case "(($ac_try" in
58310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58311 *) ac_try_echo=$ac_try;;
58312 esac
58313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58314 (eval "$ac_try") 2>&5
58315 ac_status=$?
58316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58317 (exit $ac_status); }; }; then
58318 utils_cv_func_setpriority=yes
58319 else
58320 echo "$as_me: failed program was:" >&5
58321 sed 's/^/| /' conftest.$ac_ext >&5
58323 utils_cv_func_setpriority=no
58326 rm -f core conftest.err conftest.$ac_objext \
58327 conftest$ac_exeext conftest.$ac_ext
58329 { echo "$as_me:$LINENO: result: $utils_cv_func_setpriority" >&5
58330 echo "${ECHO_T}$utils_cv_func_setpriority" >&6; }
58331 if test $utils_cv_func_setpriority = no; then
58333 for ac_func in nice
58335 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
58336 { echo "$as_me:$LINENO: checking for $ac_func" >&5
58337 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
58338 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
58339 echo $ECHO_N "(cached) $ECHO_C" >&6
58340 else
58341 cat >conftest.$ac_ext <<_ACEOF
58342 /* confdefs.h. */
58343 _ACEOF
58344 cat confdefs.h >>conftest.$ac_ext
58345 cat >>conftest.$ac_ext <<_ACEOF
58346 /* end confdefs.h. */
58347 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
58348 For example, HP-UX 11i <limits.h> declares gettimeofday. */
58349 #define $ac_func innocuous_$ac_func
58351 /* System header to define __stub macros and hopefully few prototypes,
58352 which can conflict with char $ac_func (); below.
58353 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
58354 <limits.h> exists even on freestanding compilers. */
58356 #ifdef __STDC__
58357 # include <limits.h>
58358 #else
58359 # include <assert.h>
58360 #endif
58362 #undef $ac_func
58364 /* Override any GCC internal prototype to avoid an error.
58365 Use char because int might match the return type of a GCC
58366 builtin and then its argument prototype would still apply. */
58367 #ifdef __cplusplus
58368 extern "C"
58369 #endif
58370 char $ac_func ();
58371 /* The GNU C library defines this for functions which it implements
58372 to always fail with ENOSYS. Some functions are actually named
58373 something starting with __ and the normal name is an alias. */
58374 #if defined __stub_$ac_func || defined __stub___$ac_func
58375 choke me
58376 #endif
58379 main ()
58381 return $ac_func ();
58383 return 0;
58385 _ACEOF
58386 rm -f conftest.$ac_objext conftest$ac_exeext
58387 if { (ac_try="$ac_link"
58388 case "(($ac_try" in
58389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58390 *) ac_try_echo=$ac_try;;
58391 esac
58392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58393 (eval "$ac_link") 2>conftest.er1
58394 ac_status=$?
58395 grep -v '^ *+' conftest.er1 >conftest.err
58396 rm -f conftest.er1
58397 cat conftest.err >&5
58398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58399 (exit $ac_status); } &&
58400 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
58401 { (case "(($ac_try" in
58402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58403 *) ac_try_echo=$ac_try;;
58404 esac
58405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58406 (eval "$ac_try") 2>&5
58407 ac_status=$?
58408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58409 (exit $ac_status); }; } &&
58410 { ac_try='test -s conftest$ac_exeext'
58411 { (case "(($ac_try" in
58412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58413 *) ac_try_echo=$ac_try;;
58414 esac
58415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58416 (eval "$ac_try") 2>&5
58417 ac_status=$?
58418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58419 (exit $ac_status); }; }; then
58420 eval "$as_ac_var=yes"
58421 else
58422 echo "$as_me: failed program was:" >&5
58423 sed 's/^/| /' conftest.$ac_ext >&5
58425 eval "$as_ac_var=no"
58428 rm -f core conftest.err conftest.$ac_objext \
58429 conftest$ac_exeext conftest.$ac_ext
58431 ac_res=`eval echo '${'$as_ac_var'}'`
58432 { echo "$as_me:$LINENO: result: $ac_res" >&5
58433 echo "${ECHO_T}$ac_res" >&6; }
58434 if test `eval echo '${'$as_ac_var'}'` = yes; then
58435 cat >>confdefs.h <<_ACEOF
58436 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
58437 _ACEOF
58440 done
58443 case $utils_cv_func_setpriority,$ac_cv_func_nice in
58444 *yes*)
58445 OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS nice\$(EXEEXT)"
58446 MAN="$MAN nice.1";;
58447 esac
58452 if test $ac_cv_header_utmp_h = yes || test $ac_cv_header_utmpx_h = yes; then
58453 OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS pinky\$(EXEEXT)"
58454 OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS users\$(EXEEXT)"
58455 OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS who\$(EXEEXT)"
58456 MAN="$MAN pinky.1 users.1 who.1"
58460 { echo "$as_me:$LINENO: checking ut_host in struct utmp" >&5
58461 echo $ECHO_N "checking ut_host in struct utmp... $ECHO_C" >&6; }
58462 if test "${su_cv_func_ut_host_in_utmp+set}" = set; then
58463 echo $ECHO_N "(cached) $ECHO_C" >&6
58464 else
58465 cat >conftest.$ac_ext <<_ACEOF
58466 /* confdefs.h. */
58467 _ACEOF
58468 cat confdefs.h >>conftest.$ac_ext
58469 cat >>conftest.$ac_ext <<_ACEOF
58470 /* end confdefs.h. */
58471 #include <sys/types.h>
58472 #include <utmp.h>
58474 main ()
58476 struct utmp ut; ut.ut_host;
58478 return 0;
58480 _ACEOF
58481 rm -f conftest.$ac_objext conftest$ac_exeext
58482 if { (ac_try="$ac_link"
58483 case "(($ac_try" in
58484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58485 *) ac_try_echo=$ac_try;;
58486 esac
58487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58488 (eval "$ac_link") 2>conftest.er1
58489 ac_status=$?
58490 grep -v '^ *+' conftest.er1 >conftest.err
58491 rm -f conftest.er1
58492 cat conftest.err >&5
58493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58494 (exit $ac_status); } &&
58495 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
58496 { (case "(($ac_try" in
58497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58498 *) ac_try_echo=$ac_try;;
58499 esac
58500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58501 (eval "$ac_try") 2>&5
58502 ac_status=$?
58503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58504 (exit $ac_status); }; } &&
58505 { ac_try='test -s conftest$ac_exeext'
58506 { (case "(($ac_try" in
58507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58508 *) ac_try_echo=$ac_try;;
58509 esac
58510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58511 (eval "$ac_try") 2>&5
58512 ac_status=$?
58513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58514 (exit $ac_status); }; }; then
58515 su_cv_func_ut_host_in_utmp=yes
58516 else
58517 echo "$as_me: failed program was:" >&5
58518 sed 's/^/| /' conftest.$ac_ext >&5
58520 su_cv_func_ut_host_in_utmp=no
58523 rm -f core conftest.err conftest.$ac_objext \
58524 conftest$ac_exeext conftest.$ac_ext
58527 { echo "$as_me:$LINENO: result: $su_cv_func_ut_host_in_utmp" >&5
58528 echo "${ECHO_T}$su_cv_func_ut_host_in_utmp" >&6; }
58529 if test $su_cv_func_ut_host_in_utmp = yes; then
58530 have_ut_host=1
58532 cat >>confdefs.h <<\_ACEOF
58533 #define HAVE_UT_HOST 1
58534 _ACEOF
58538 if test -z "$have_ut_host"; then
58539 { echo "$as_me:$LINENO: checking ut_host in struct utmpx" >&5
58540 echo $ECHO_N "checking ut_host in struct utmpx... $ECHO_C" >&6; }
58541 if test "${su_cv_func_ut_host_in_utmpx+set}" = set; then
58542 echo $ECHO_N "(cached) $ECHO_C" >&6
58543 else
58544 cat >conftest.$ac_ext <<_ACEOF
58545 /* confdefs.h. */
58546 _ACEOF
58547 cat confdefs.h >>conftest.$ac_ext
58548 cat >>conftest.$ac_ext <<_ACEOF
58549 /* end confdefs.h. */
58550 #include <sys/types.h>
58551 #include <utmpx.h>
58553 main ()
58555 struct utmpx ut; ut.ut_host;
58557 return 0;
58559 _ACEOF
58560 rm -f conftest.$ac_objext conftest$ac_exeext
58561 if { (ac_try="$ac_link"
58562 case "(($ac_try" in
58563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58564 *) ac_try_echo=$ac_try;;
58565 esac
58566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58567 (eval "$ac_link") 2>conftest.er1
58568 ac_status=$?
58569 grep -v '^ *+' conftest.er1 >conftest.err
58570 rm -f conftest.er1
58571 cat conftest.err >&5
58572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58573 (exit $ac_status); } &&
58574 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
58575 { (case "(($ac_try" in
58576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58577 *) ac_try_echo=$ac_try;;
58578 esac
58579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58580 (eval "$ac_try") 2>&5
58581 ac_status=$?
58582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58583 (exit $ac_status); }; } &&
58584 { ac_try='test -s conftest$ac_exeext'
58585 { (case "(($ac_try" in
58586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58587 *) ac_try_echo=$ac_try;;
58588 esac
58589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58590 (eval "$ac_try") 2>&5
58591 ac_status=$?
58592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58593 (exit $ac_status); }; }; then
58594 su_cv_func_ut_host_in_utmpx=yes
58595 else
58596 echo "$as_me: failed program was:" >&5
58597 sed 's/^/| /' conftest.$ac_ext >&5
58599 su_cv_func_ut_host_in_utmpx=no
58602 rm -f core conftest.err conftest.$ac_objext \
58603 conftest$ac_exeext conftest.$ac_ext
58606 { echo "$as_me:$LINENO: result: $su_cv_func_ut_host_in_utmpx" >&5
58607 echo "${ECHO_T}$su_cv_func_ut_host_in_utmpx" >&6; }
58608 if test $su_cv_func_ut_host_in_utmpx = yes; then
58610 cat >>confdefs.h <<\_ACEOF
58611 #define HAVE_UTMPX_H 1
58612 _ACEOF
58615 cat >>confdefs.h <<\_ACEOF
58616 #define HAVE_UT_HOST 1
58617 _ACEOF
58624 for ac_func in sysctl
58626 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
58627 { echo "$as_me:$LINENO: checking for $ac_func" >&5
58628 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
58629 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
58630 echo $ECHO_N "(cached) $ECHO_C" >&6
58631 else
58632 cat >conftest.$ac_ext <<_ACEOF
58633 /* confdefs.h. */
58634 _ACEOF
58635 cat confdefs.h >>conftest.$ac_ext
58636 cat >>conftest.$ac_ext <<_ACEOF
58637 /* end confdefs.h. */
58638 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
58639 For example, HP-UX 11i <limits.h> declares gettimeofday. */
58640 #define $ac_func innocuous_$ac_func
58642 /* System header to define __stub macros and hopefully few prototypes,
58643 which can conflict with char $ac_func (); below.
58644 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
58645 <limits.h> exists even on freestanding compilers. */
58647 #ifdef __STDC__
58648 # include <limits.h>
58649 #else
58650 # include <assert.h>
58651 #endif
58653 #undef $ac_func
58655 /* Override any GCC internal prototype to avoid an error.
58656 Use char because int might match the return type of a GCC
58657 builtin and then its argument prototype would still apply. */
58658 #ifdef __cplusplus
58659 extern "C"
58660 #endif
58661 char $ac_func ();
58662 /* The GNU C library defines this for functions which it implements
58663 to always fail with ENOSYS. Some functions are actually named
58664 something starting with __ and the normal name is an alias. */
58665 #if defined __stub_$ac_func || defined __stub___$ac_func
58666 choke me
58667 #endif
58670 main ()
58672 return $ac_func ();
58674 return 0;
58676 _ACEOF
58677 rm -f conftest.$ac_objext conftest$ac_exeext
58678 if { (ac_try="$ac_link"
58679 case "(($ac_try" in
58680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58681 *) ac_try_echo=$ac_try;;
58682 esac
58683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58684 (eval "$ac_link") 2>conftest.er1
58685 ac_status=$?
58686 grep -v '^ *+' conftest.er1 >conftest.err
58687 rm -f conftest.er1
58688 cat conftest.err >&5
58689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58690 (exit $ac_status); } &&
58691 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
58692 { (case "(($ac_try" in
58693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58694 *) ac_try_echo=$ac_try;;
58695 esac
58696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58697 (eval "$ac_try") 2>&5
58698 ac_status=$?
58699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58700 (exit $ac_status); }; } &&
58701 { ac_try='test -s conftest$ac_exeext'
58702 { (case "(($ac_try" in
58703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58704 *) ac_try_echo=$ac_try;;
58705 esac
58706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58707 (eval "$ac_try") 2>&5
58708 ac_status=$?
58709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58710 (exit $ac_status); }; }; then
58711 eval "$as_ac_var=yes"
58712 else
58713 echo "$as_me: failed program was:" >&5
58714 sed 's/^/| /' conftest.$ac_ext >&5
58716 eval "$as_ac_var=no"
58719 rm -f core conftest.err conftest.$ac_objext \
58720 conftest$ac_exeext conftest.$ac_ext
58722 ac_res=`eval echo '${'$as_ac_var'}'`
58723 { echo "$as_me:$LINENO: result: $ac_res" >&5
58724 echo "${ECHO_T}$ac_res" >&6; }
58725 if test `eval echo '${'$as_ac_var'}'` = yes; then
58726 cat >>confdefs.h <<_ACEOF
58727 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
58728 _ACEOF
58731 done
58740 for ac_header in sys/sysctl.h
58742 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
58743 { echo "$as_me:$LINENO: checking for $ac_header" >&5
58744 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
58745 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
58746 echo $ECHO_N "(cached) $ECHO_C" >&6
58747 else
58748 cat >conftest.$ac_ext <<_ACEOF
58749 /* confdefs.h. */
58750 _ACEOF
58751 cat confdefs.h >>conftest.$ac_ext
58752 cat >>conftest.$ac_ext <<_ACEOF
58753 /* end confdefs.h. */
58754 $ac_includes_default
58755 #if HAVE_SYS_PARAM_H
58756 #include <sys/param.h>
58757 #endif
58759 #include <$ac_header>
58760 _ACEOF
58761 rm -f conftest.$ac_objext
58762 if { (ac_try="$ac_compile"
58763 case "(($ac_try" in
58764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58765 *) ac_try_echo=$ac_try;;
58766 esac
58767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58768 (eval "$ac_compile") 2>conftest.er1
58769 ac_status=$?
58770 grep -v '^ *+' conftest.er1 >conftest.err
58771 rm -f conftest.er1
58772 cat conftest.err >&5
58773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58774 (exit $ac_status); } &&
58775 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
58776 { (case "(($ac_try" in
58777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58778 *) ac_try_echo=$ac_try;;
58779 esac
58780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58781 (eval "$ac_try") 2>&5
58782 ac_status=$?
58783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58784 (exit $ac_status); }; } &&
58785 { ac_try='test -s conftest.$ac_objext'
58786 { (case "(($ac_try" in
58787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58788 *) ac_try_echo=$ac_try;;
58789 esac
58790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58791 (eval "$ac_try") 2>&5
58792 ac_status=$?
58793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58794 (exit $ac_status); }; }; then
58795 eval "$as_ac_Header=yes"
58796 else
58797 echo "$as_me: failed program was:" >&5
58798 sed 's/^/| /' conftest.$ac_ext >&5
58800 eval "$as_ac_Header=no"
58803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
58805 ac_res=`eval echo '${'$as_ac_Header'}'`
58806 { echo "$as_me:$LINENO: result: $ac_res" >&5
58807 echo "${ECHO_T}$ac_res" >&6; }
58808 if test `eval echo '${'$as_ac_Header'}'` = yes; then
58809 cat >>confdefs.h <<_ACEOF
58810 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
58811 _ACEOF
58815 done
58817 { echo "$as_me:$LINENO: checking whether we can get the system boot time" >&5
58818 echo $ECHO_N "checking whether we can get the system boot time... $ECHO_C" >&6; }
58819 if test "${gnulib_cv_have_boot_time+set}" = set; then
58820 echo $ECHO_N "(cached) $ECHO_C" >&6
58821 else
58823 cat >conftest.$ac_ext <<_ACEOF
58824 /* confdefs.h. */
58825 _ACEOF
58826 cat confdefs.h >>conftest.$ac_ext
58827 cat >>conftest.$ac_ext <<_ACEOF
58828 /* end confdefs.h. */
58829 $ac_includes_default
58830 #if HAVE_SYSCTL && HAVE_SYS_SYSCTL_H
58831 # if HAVE_SYS_PARAM_H
58832 # include <sys/param.h> /* needed for OpenBSD 3.0 */
58833 # endif
58834 # include <sys/sysctl.h>
58835 #endif
58836 #ifdef HAVE_UTMPX_H
58837 # include <utmpx.h>
58838 #else
58839 # include <utmp.h>
58840 #endif
58843 main ()
58846 #if defined BOOT_TIME || (defined CTL_KERN && defined KERN_BOOTTIME)
58847 /* your system *does* have the infrastructure to determine boot time */
58848 #else
58849 please_tell_us_how_to_determine_boot_time_on_your_system
58850 #endif
58853 return 0;
58855 _ACEOF
58856 rm -f conftest.$ac_objext
58857 if { (ac_try="$ac_compile"
58858 case "(($ac_try" in
58859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58860 *) ac_try_echo=$ac_try;;
58861 esac
58862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58863 (eval "$ac_compile") 2>conftest.er1
58864 ac_status=$?
58865 grep -v '^ *+' conftest.er1 >conftest.err
58866 rm -f conftest.er1
58867 cat conftest.err >&5
58868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58869 (exit $ac_status); } &&
58870 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
58871 { (case "(($ac_try" in
58872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58873 *) ac_try_echo=$ac_try;;
58874 esac
58875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58876 (eval "$ac_try") 2>&5
58877 ac_status=$?
58878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58879 (exit $ac_status); }; } &&
58880 { ac_try='test -s conftest.$ac_objext'
58881 { (case "(($ac_try" in
58882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58883 *) ac_try_echo=$ac_try;;
58884 esac
58885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58886 (eval "$ac_try") 2>&5
58887 ac_status=$?
58888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58889 (exit $ac_status); }; }; then
58890 gnulib_cv_have_boot_time=yes
58891 else
58892 echo "$as_me: failed program was:" >&5
58893 sed 's/^/| /' conftest.$ac_ext >&5
58895 gnulib_cv_have_boot_time=no
58898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
58901 { echo "$as_me:$LINENO: result: $gnulib_cv_have_boot_time" >&5
58902 echo "${ECHO_T}$gnulib_cv_have_boot_time" >&6; }
58903 if test $gnulib_cv_have_boot_time = yes; then
58904 OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS uptime\$(EXEEXT)"
58905 MAN="$MAN uptime.1"
58910 { echo "$as_me:$LINENO: checking POSIX termios" >&5
58911 echo $ECHO_N "checking POSIX termios... $ECHO_C" >&6; }
58912 if test "${ac_cv_sys_posix_termios+set}" = set; then
58913 echo $ECHO_N "(cached) $ECHO_C" >&6
58914 else
58915 cat >conftest.$ac_ext <<_ACEOF
58916 /* confdefs.h. */
58917 _ACEOF
58918 cat confdefs.h >>conftest.$ac_ext
58919 cat >>conftest.$ac_ext <<_ACEOF
58920 /* end confdefs.h. */
58921 #include <sys/types.h>
58922 #include <unistd.h>
58923 #include <termios.h>
58926 main ()
58928 /* SunOS 4.0.3 has termios.h but not the library calls. */
58929 tcgetattr(0, 0);
58931 return 0;
58933 _ACEOF
58934 rm -f conftest.$ac_objext conftest$ac_exeext
58935 if { (ac_try="$ac_link"
58936 case "(($ac_try" in
58937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58938 *) ac_try_echo=$ac_try;;
58939 esac
58940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58941 (eval "$ac_link") 2>conftest.er1
58942 ac_status=$?
58943 grep -v '^ *+' conftest.er1 >conftest.err
58944 rm -f conftest.er1
58945 cat conftest.err >&5
58946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58947 (exit $ac_status); } &&
58948 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
58949 { (case "(($ac_try" in
58950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58951 *) ac_try_echo=$ac_try;;
58952 esac
58953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58954 (eval "$ac_try") 2>&5
58955 ac_status=$?
58956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58957 (exit $ac_status); }; } &&
58958 { ac_try='test -s conftest$ac_exeext'
58959 { (case "(($ac_try" in
58960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58961 *) ac_try_echo=$ac_try;;
58962 esac
58963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58964 (eval "$ac_try") 2>&5
58965 ac_status=$?
58966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58967 (exit $ac_status); }; }; then
58968 ac_cv_sys_posix_termios=yes
58969 else
58970 echo "$as_me: failed program was:" >&5
58971 sed 's/^/| /' conftest.$ac_ext >&5
58973 ac_cv_sys_posix_termios=no
58976 rm -f core conftest.err conftest.$ac_objext \
58977 conftest$ac_exeext conftest.$ac_ext
58979 { echo "$as_me:$LINENO: result: $ac_cv_sys_posix_termios" >&5
58980 echo "${ECHO_T}$ac_cv_sys_posix_termios" >&6; }
58983 { echo "$as_me:$LINENO: checking whether use of TIOCGWINSZ requires termios.h" >&5
58984 echo $ECHO_N "checking whether use of TIOCGWINSZ requires termios.h... $ECHO_C" >&6; }
58985 if test "${jm_cv_sys_tiocgwinsz_needs_termios_h+set}" = set; then
58986 echo $ECHO_N "(cached) $ECHO_C" >&6
58987 else
58988 jm_cv_sys_tiocgwinsz_needs_termios_h=no
58990 if test $ac_cv_sys_posix_termios = yes; then
58991 cat >conftest.$ac_ext <<_ACEOF
58992 /* confdefs.h. */
58993 _ACEOF
58994 cat confdefs.h >>conftest.$ac_ext
58995 cat >>conftest.$ac_ext <<_ACEOF
58996 /* end confdefs.h. */
58997 #include <sys/types.h>
58998 # include <termios.h>
58999 # ifdef TIOCGWINSZ
59001 # endif
59003 _ACEOF
59004 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
59005 $EGREP "yes" >/dev/null 2>&1; then
59006 jm_cv_sys_tiocgwinsz_needs_termios_h=yes
59008 rm -f conftest*
59013 { echo "$as_me:$LINENO: result: $jm_cv_sys_tiocgwinsz_needs_termios_h" >&5
59014 echo "${ECHO_T}$jm_cv_sys_tiocgwinsz_needs_termios_h" >&6; }
59017 { echo "$as_me:$LINENO: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
59018 echo $ECHO_N "checking whether use of TIOCGWINSZ requires sys/ioctl.h... $ECHO_C" >&6; }
59019 if test "${jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h+set}" = set; then
59020 echo $ECHO_N "(cached) $ECHO_C" >&6
59021 else
59022 jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
59024 if test $jm_cv_sys_tiocgwinsz_needs_termios_h = no; then
59025 cat >conftest.$ac_ext <<_ACEOF
59026 /* confdefs.h. */
59027 _ACEOF
59028 cat confdefs.h >>conftest.$ac_ext
59029 cat >>conftest.$ac_ext <<_ACEOF
59030 /* end confdefs.h. */
59031 #include <sys/types.h>
59032 # include <sys/ioctl.h>
59033 # ifdef TIOCGWINSZ
59035 # endif
59037 _ACEOF
59038 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
59039 $EGREP "yes" >/dev/null 2>&1; then
59040 jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes
59042 rm -f conftest*
59047 { echo "$as_me:$LINENO: result: $jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h" >&5
59048 echo "${ECHO_T}$jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h" >&6; }
59049 if test $jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
59051 cat >>confdefs.h <<\_ACEOF
59052 #define GWINSZ_IN_SYS_IOCTL 1
59053 _ACEOF
59058 if test $ac_cv_sys_posix_termios = yes; then
59059 OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS stty\$(EXEEXT)" MAN="$MAN stty.1"
59061 { echo "$as_me:$LINENO: checking whether termios.h needs _XOPEN_SOURCE" >&5
59062 echo $ECHO_N "checking whether termios.h needs _XOPEN_SOURCE... $ECHO_C" >&6; }
59063 if test "${su_cv_sys_termios_needs_xopen_source+set}" = set; then
59064 echo $ECHO_N "(cached) $ECHO_C" >&6
59065 else
59066 cat >conftest.$ac_ext <<_ACEOF
59067 /* confdefs.h. */
59068 _ACEOF
59069 cat confdefs.h >>conftest.$ac_ext
59070 cat >>conftest.$ac_ext <<_ACEOF
59071 /* end confdefs.h. */
59072 #include <termios.h>
59073 #ifdef IUCLC
59075 #endif
59076 _ACEOF
59077 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
59078 $EGREP "yes" >/dev/null 2>&1; then
59079 su_cv_sys_termios_needs_xopen_source=no
59080 else
59081 cat >conftest.$ac_ext <<_ACEOF
59082 /* confdefs.h. */
59083 _ACEOF
59084 cat confdefs.h >>conftest.$ac_ext
59085 cat >>conftest.$ac_ext <<_ACEOF
59086 /* end confdefs.h. */
59087 #define _XOPEN_SOURCE
59088 #include <termios.h>
59089 #ifdef IUCLC
59091 #endif
59092 _ACEOF
59093 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
59094 $EGREP "yes" >/dev/null 2>&1; then
59095 su_cv_sys_termios_needs_xopen_source=yes
59096 else
59097 su_cv_sys_termios_needs_xopen_source=no
59099 rm -f conftest*
59102 rm -f conftest*
59106 { echo "$as_me:$LINENO: result: $su_cv_sys_termios_needs_xopen_source" >&5
59107 echo "${ECHO_T}$su_cv_sys_termios_needs_xopen_source" >&6; }
59108 test $su_cv_sys_termios_needs_xopen_source = yes &&
59110 cat >>confdefs.h <<\_ACEOF
59111 #define TERMIOS_NEEDS_XOPEN_SOURCE 1
59112 _ACEOF
59115 { echo "$as_me:$LINENO: checking c_line in struct termios" >&5
59116 echo $ECHO_N "checking c_line in struct termios... $ECHO_C" >&6; }
59117 if test "${su_cv_sys_c_line_in_termios+set}" = set; then
59118 echo $ECHO_N "(cached) $ECHO_C" >&6
59119 else
59120 cat >conftest.$ac_ext <<_ACEOF
59121 /* confdefs.h. */
59122 _ACEOF
59123 cat confdefs.h >>conftest.$ac_ext
59124 cat >>conftest.$ac_ext <<_ACEOF
59125 /* end confdefs.h. */
59126 #if TERMIOS_NEEDS_XOPEN_SOURCE
59127 #define _XOPEN_SOURCE
59128 #endif
59129 #include <sys/types.h>
59130 #include <termios.h>
59132 main ()
59134 struct termios t; t.c_line;
59136 return 0;
59138 _ACEOF
59139 rm -f conftest.$ac_objext conftest$ac_exeext
59140 if { (ac_try="$ac_link"
59141 case "(($ac_try" in
59142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59143 *) ac_try_echo=$ac_try;;
59144 esac
59145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
59146 (eval "$ac_link") 2>conftest.er1
59147 ac_status=$?
59148 grep -v '^ *+' conftest.er1 >conftest.err
59149 rm -f conftest.er1
59150 cat conftest.err >&5
59151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59152 (exit $ac_status); } &&
59153 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
59154 { (case "(($ac_try" in
59155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59156 *) ac_try_echo=$ac_try;;
59157 esac
59158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
59159 (eval "$ac_try") 2>&5
59160 ac_status=$?
59161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59162 (exit $ac_status); }; } &&
59163 { ac_try='test -s conftest$ac_exeext'
59164 { (case "(($ac_try" in
59165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59166 *) ac_try_echo=$ac_try;;
59167 esac
59168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
59169 (eval "$ac_try") 2>&5
59170 ac_status=$?
59171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59172 (exit $ac_status); }; }; then
59173 su_cv_sys_c_line_in_termios=yes
59174 else
59175 echo "$as_me: failed program was:" >&5
59176 sed 's/^/| /' conftest.$ac_ext >&5
59178 su_cv_sys_c_line_in_termios=no
59181 rm -f core conftest.err conftest.$ac_objext \
59182 conftest$ac_exeext conftest.$ac_ext
59185 { echo "$as_me:$LINENO: result: $su_cv_sys_c_line_in_termios" >&5
59186 echo "${ECHO_T}$su_cv_sys_c_line_in_termios" >&6; }
59187 test $su_cv_sys_c_line_in_termios = yes \
59189 cat >>confdefs.h <<\_ACEOF
59190 #define HAVE_C_LINE 1
59191 _ACEOF
59195 # FIXME: note that this macro appears above, too.
59196 # I'm leaving it here for now. This whole thing needs to be modernized...
59198 { echo "$as_me:$LINENO: checking whether use of struct winsize requires sys/ptem.h" >&5
59199 echo $ECHO_N "checking whether use of struct winsize requires sys/ptem.h... $ECHO_C" >&6; }
59200 if test "${jm_cv_sys_struct_winsize_needs_sys_ptem_h+set}" = set; then
59201 echo $ECHO_N "(cached) $ECHO_C" >&6
59202 else
59203 jm_cv_sys_struct_winsize_needs_sys_ptem_h=yes
59204 if test $ac_cv_sys_posix_termios = yes; then
59205 cat >conftest.$ac_ext <<_ACEOF
59206 /* confdefs.h. */
59207 _ACEOF
59208 cat confdefs.h >>conftest.$ac_ext
59209 cat >>conftest.$ac_ext <<_ACEOF
59210 /* end confdefs.h. */
59211 #include <termios.h>
59212 struct winsize x;
59214 main ()
59216 jm_cv_sys_struct_winsize_needs_sys_ptem_h=no
59218 return 0;
59220 _ACEOF
59221 rm -f conftest.$ac_objext
59222 if { (ac_try="$ac_compile"
59223 case "(($ac_try" in
59224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59225 *) ac_try_echo=$ac_try;;
59226 esac
59227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
59228 (eval "$ac_compile") 2>conftest.er1
59229 ac_status=$?
59230 grep -v '^ *+' conftest.er1 >conftest.err
59231 rm -f conftest.er1
59232 cat conftest.err >&5
59233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59234 (exit $ac_status); } &&
59235 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
59236 { (case "(($ac_try" in
59237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59238 *) ac_try_echo=$ac_try;;
59239 esac
59240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
59241 (eval "$ac_try") 2>&5
59242 ac_status=$?
59243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59244 (exit $ac_status); }; } &&
59245 { ac_try='test -s conftest.$ac_objext'
59246 { (case "(($ac_try" in
59247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59248 *) ac_try_echo=$ac_try;;
59249 esac
59250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
59251 (eval "$ac_try") 2>&5
59252 ac_status=$?
59253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59254 (exit $ac_status); }; }; then
59256 else
59257 echo "$as_me: failed program was:" >&5
59258 sed 's/^/| /' conftest.$ac_ext >&5
59263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
59265 if test $jm_cv_sys_struct_winsize_needs_sys_ptem_h = yes; then
59266 cat >conftest.$ac_ext <<_ACEOF
59267 /* confdefs.h. */
59268 _ACEOF
59269 cat confdefs.h >>conftest.$ac_ext
59270 cat >>conftest.$ac_ext <<_ACEOF
59271 /* end confdefs.h. */
59272 #include <sys/ptem.h>
59274 main ()
59276 struct winsize x;
59278 return 0;
59280 _ACEOF
59281 rm -f conftest.$ac_objext
59282 if { (ac_try="$ac_compile"
59283 case "(($ac_try" in
59284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59285 *) ac_try_echo=$ac_try;;
59286 esac
59287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
59288 (eval "$ac_compile") 2>conftest.er1
59289 ac_status=$?
59290 grep -v '^ *+' conftest.er1 >conftest.err
59291 rm -f conftest.er1
59292 cat conftest.err >&5
59293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59294 (exit $ac_status); } &&
59295 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
59296 { (case "(($ac_try" in
59297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59298 *) ac_try_echo=$ac_try;;
59299 esac
59300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
59301 (eval "$ac_try") 2>&5
59302 ac_status=$?
59303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59304 (exit $ac_status); }; } &&
59305 { ac_try='test -s conftest.$ac_objext'
59306 { (case "(($ac_try" in
59307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59308 *) ac_try_echo=$ac_try;;
59309 esac
59310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
59311 (eval "$ac_try") 2>&5
59312 ac_status=$?
59313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59314 (exit $ac_status); }; }; then
59316 else
59317 echo "$as_me: failed program was:" >&5
59318 sed 's/^/| /' conftest.$ac_ext >&5
59320 jm_cv_sys_struct_winsize_needs_sys_ptem_h=no
59323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
59326 { echo "$as_me:$LINENO: result: $jm_cv_sys_struct_winsize_needs_sys_ptem_h" >&5
59327 echo "${ECHO_T}$jm_cv_sys_struct_winsize_needs_sys_ptem_h" >&6; }
59328 if test $jm_cv_sys_struct_winsize_needs_sys_ptem_h = yes; then
59330 cat >>confdefs.h <<\_ACEOF
59331 #define WINSIZE_IN_PTEM 1
59332 _ACEOF
59337 { echo "$as_me:$LINENO: checking whether use of TIOCGWINSZ requires termios.h" >&5
59338 echo $ECHO_N "checking whether use of TIOCGWINSZ requires termios.h... $ECHO_C" >&6; }
59339 if test "${jm_cv_sys_tiocgwinsz_needs_termios_h+set}" = set; then
59340 echo $ECHO_N "(cached) $ECHO_C" >&6
59341 else
59342 jm_cv_sys_tiocgwinsz_needs_termios_h=no
59344 if test $ac_cv_sys_posix_termios = yes; then
59345 cat >conftest.$ac_ext <<_ACEOF
59346 /* confdefs.h. */
59347 _ACEOF
59348 cat confdefs.h >>conftest.$ac_ext
59349 cat >>conftest.$ac_ext <<_ACEOF
59350 /* end confdefs.h. */
59351 #include <sys/types.h>
59352 # include <termios.h>
59353 # ifdef TIOCGWINSZ
59355 # endif
59357 _ACEOF
59358 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
59359 $EGREP "yes" >/dev/null 2>&1; then
59360 jm_cv_sys_tiocgwinsz_needs_termios_h=yes
59362 rm -f conftest*
59367 { echo "$as_me:$LINENO: result: $jm_cv_sys_tiocgwinsz_needs_termios_h" >&5
59368 echo "${ECHO_T}$jm_cv_sys_tiocgwinsz_needs_termios_h" >&6; }
59371 if test $jm_cv_sys_tiocgwinsz_needs_termios_h = no && \
59372 test $jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h = no; then
59373 { echo "$as_me:$LINENO: checking TIOCGWINSZ in sys/pty.h" >&5
59374 echo $ECHO_N "checking TIOCGWINSZ in sys/pty.h... $ECHO_C" >&6; }
59375 if test "${su_cv_sys_tiocgwinsz_in_sys_pty_h+set}" = set; then
59376 echo $ECHO_N "(cached) $ECHO_C" >&6
59377 else
59378 cat >conftest.$ac_ext <<_ACEOF
59379 /* confdefs.h. */
59380 _ACEOF
59381 cat confdefs.h >>conftest.$ac_ext
59382 cat >>conftest.$ac_ext <<_ACEOF
59383 /* end confdefs.h. */
59384 #include <sys/types.h>
59385 #ifdef WINSIZE_IN_PTEM
59386 # include <sys/stream.h>
59387 # include <sys/ptem.h>
59388 #endif
59389 #include <sys/ioctl.h>
59390 #include <sys/tty.h>
59391 #include <sys/pty.h>
59393 main ()
59395 int x = TIOCGWINSZ;
59397 return 0;
59399 _ACEOF
59400 rm -f conftest.$ac_objext conftest$ac_exeext
59401 if { (ac_try="$ac_link"
59402 case "(($ac_try" in
59403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59404 *) ac_try_echo=$ac_try;;
59405 esac
59406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
59407 (eval "$ac_link") 2>conftest.er1
59408 ac_status=$?
59409 grep -v '^ *+' conftest.er1 >conftest.err
59410 rm -f conftest.er1
59411 cat conftest.err >&5
59412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59413 (exit $ac_status); } &&
59414 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
59415 { (case "(($ac_try" in
59416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59417 *) ac_try_echo=$ac_try;;
59418 esac
59419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
59420 (eval "$ac_try") 2>&5
59421 ac_status=$?
59422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59423 (exit $ac_status); }; } &&
59424 { ac_try='test -s conftest$ac_exeext'
59425 { (case "(($ac_try" in
59426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59427 *) ac_try_echo=$ac_try;;
59428 esac
59429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
59430 (eval "$ac_try") 2>&5
59431 ac_status=$?
59432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59433 (exit $ac_status); }; }; then
59434 su_cv_sys_tiocgwinsz_in_sys_pty_h=yes
59435 else
59436 echo "$as_me: failed program was:" >&5
59437 sed 's/^/| /' conftest.$ac_ext >&5
59439 su_cv_sys_tiocgwinsz_in_sys_pty_h=no
59442 rm -f core conftest.err conftest.$ac_objext \
59443 conftest$ac_exeext conftest.$ac_ext
59446 { echo "$as_me:$LINENO: result: $su_cv_sys_tiocgwinsz_in_sys_pty_h" >&5
59447 echo "${ECHO_T}$su_cv_sys_tiocgwinsz_in_sys_pty_h" >&6; }
59449 test $su_cv_sys_tiocgwinsz_in_sys_pty_h = yes \
59451 cat >>confdefs.h <<\_ACEOF
59452 #define GWINSZ_IN_SYS_PTY 1
59453 _ACEOF
59457 # For src/kill.c.
59458 { echo "$as_me:$LINENO: checking whether strsignal is declared" >&5
59459 echo $ECHO_N "checking whether strsignal is declared... $ECHO_C" >&6; }
59460 if test "${ac_cv_have_decl_strsignal+set}" = set; then
59461 echo $ECHO_N "(cached) $ECHO_C" >&6
59462 else
59463 cat >conftest.$ac_ext <<_ACEOF
59464 /* confdefs.h. */
59465 _ACEOF
59466 cat confdefs.h >>conftest.$ac_ext
59467 cat >>conftest.$ac_ext <<_ACEOF
59468 /* end confdefs.h. */
59469 $ac_includes_default
59470 #include <signal.h>
59473 main ()
59475 #ifndef strsignal
59476 char *p = (char *) strsignal;
59477 return !p;
59478 #endif
59481 return 0;
59483 _ACEOF
59484 rm -f conftest.$ac_objext
59485 if { (ac_try="$ac_compile"
59486 case "(($ac_try" in
59487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59488 *) ac_try_echo=$ac_try;;
59489 esac
59490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
59491 (eval "$ac_compile") 2>conftest.er1
59492 ac_status=$?
59493 grep -v '^ *+' conftest.er1 >conftest.err
59494 rm -f conftest.er1
59495 cat conftest.err >&5
59496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59497 (exit $ac_status); } &&
59498 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
59499 { (case "(($ac_try" in
59500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59501 *) ac_try_echo=$ac_try;;
59502 esac
59503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
59504 (eval "$ac_try") 2>&5
59505 ac_status=$?
59506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59507 (exit $ac_status); }; } &&
59508 { ac_try='test -s conftest.$ac_objext'
59509 { (case "(($ac_try" in
59510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59511 *) ac_try_echo=$ac_try;;
59512 esac
59513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
59514 (eval "$ac_try") 2>&5
59515 ac_status=$?
59516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59517 (exit $ac_status); }; }; then
59518 ac_cv_have_decl_strsignal=yes
59519 else
59520 echo "$as_me: failed program was:" >&5
59521 sed 's/^/| /' conftest.$ac_ext >&5
59523 ac_cv_have_decl_strsignal=no
59526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
59528 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strsignal" >&5
59529 echo "${ECHO_T}$ac_cv_have_decl_strsignal" >&6; }
59530 if test $ac_cv_have_decl_strsignal = yes; then
59532 cat >>confdefs.h <<_ACEOF
59533 #define HAVE_DECL_STRSIGNAL 1
59534 _ACEOF
59537 else
59538 cat >>confdefs.h <<_ACEOF
59539 #define HAVE_DECL_STRSIGNAL 0
59540 _ACEOF
59544 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
59545 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
59546 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
59547 echo $ECHO_N "(cached) $ECHO_C" >&6
59548 else
59549 cat >conftest.$ac_ext <<_ACEOF
59550 /* confdefs.h. */
59551 _ACEOF
59552 cat confdefs.h >>conftest.$ac_ext
59553 cat >>conftest.$ac_ext <<_ACEOF
59554 /* end confdefs.h. */
59555 $ac_includes_default
59556 #include <signal.h>
59559 main ()
59561 #ifndef sys_siglist
59562 char *p = (char *) sys_siglist;
59563 return !p;
59564 #endif
59567 return 0;
59569 _ACEOF
59570 rm -f conftest.$ac_objext
59571 if { (ac_try="$ac_compile"
59572 case "(($ac_try" in
59573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59574 *) ac_try_echo=$ac_try;;
59575 esac
59576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
59577 (eval "$ac_compile") 2>conftest.er1
59578 ac_status=$?
59579 grep -v '^ *+' conftest.er1 >conftest.err
59580 rm -f conftest.er1
59581 cat conftest.err >&5
59582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59583 (exit $ac_status); } &&
59584 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
59585 { (case "(($ac_try" in
59586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59587 *) ac_try_echo=$ac_try;;
59588 esac
59589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
59590 (eval "$ac_try") 2>&5
59591 ac_status=$?
59592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59593 (exit $ac_status); }; } &&
59594 { ac_try='test -s conftest.$ac_objext'
59595 { (case "(($ac_try" in
59596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59597 *) ac_try_echo=$ac_try;;
59598 esac
59599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
59600 (eval "$ac_try") 2>&5
59601 ac_status=$?
59602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59603 (exit $ac_status); }; }; then
59604 ac_cv_have_decl_sys_siglist=yes
59605 else
59606 echo "$as_me: failed program was:" >&5
59607 sed 's/^/| /' conftest.$ac_ext >&5
59609 ac_cv_have_decl_sys_siglist=no
59612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
59614 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
59615 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
59616 if test $ac_cv_have_decl_sys_siglist = yes; then
59618 cat >>confdefs.h <<_ACEOF
59619 #define HAVE_DECL_SYS_SIGLIST 1
59620 _ACEOF
59623 else
59624 cat >>confdefs.h <<_ACEOF
59625 #define HAVE_DECL_SYS_SIGLIST 0
59626 _ACEOF
59630 { echo "$as_me:$LINENO: checking whether _sys_siglist is declared" >&5
59631 echo $ECHO_N "checking whether _sys_siglist is declared... $ECHO_C" >&6; }
59632 if test "${ac_cv_have_decl__sys_siglist+set}" = set; then
59633 echo $ECHO_N "(cached) $ECHO_C" >&6
59634 else
59635 cat >conftest.$ac_ext <<_ACEOF
59636 /* confdefs.h. */
59637 _ACEOF
59638 cat confdefs.h >>conftest.$ac_ext
59639 cat >>conftest.$ac_ext <<_ACEOF
59640 /* end confdefs.h. */
59641 $ac_includes_default
59642 #include <signal.h>
59645 main ()
59647 #ifndef _sys_siglist
59648 char *p = (char *) _sys_siglist;
59649 return !p;
59650 #endif
59653 return 0;
59655 _ACEOF
59656 rm -f conftest.$ac_objext
59657 if { (ac_try="$ac_compile"
59658 case "(($ac_try" in
59659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59660 *) ac_try_echo=$ac_try;;
59661 esac
59662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
59663 (eval "$ac_compile") 2>conftest.er1
59664 ac_status=$?
59665 grep -v '^ *+' conftest.er1 >conftest.err
59666 rm -f conftest.er1
59667 cat conftest.err >&5
59668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59669 (exit $ac_status); } &&
59670 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
59671 { (case "(($ac_try" in
59672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59673 *) ac_try_echo=$ac_try;;
59674 esac
59675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
59676 (eval "$ac_try") 2>&5
59677 ac_status=$?
59678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59679 (exit $ac_status); }; } &&
59680 { ac_try='test -s conftest.$ac_objext'
59681 { (case "(($ac_try" in
59682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59683 *) ac_try_echo=$ac_try;;
59684 esac
59685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
59686 (eval "$ac_try") 2>&5
59687 ac_status=$?
59688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59689 (exit $ac_status); }; }; then
59690 ac_cv_have_decl__sys_siglist=yes
59691 else
59692 echo "$as_me: failed program was:" >&5
59693 sed 's/^/| /' conftest.$ac_ext >&5
59695 ac_cv_have_decl__sys_siglist=no
59698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
59700 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__sys_siglist" >&5
59701 echo "${ECHO_T}$ac_cv_have_decl__sys_siglist" >&6; }
59702 if test $ac_cv_have_decl__sys_siglist = yes; then
59704 cat >>confdefs.h <<_ACEOF
59705 #define HAVE_DECL__SYS_SIGLIST 1
59706 _ACEOF
59709 else
59710 cat >>confdefs.h <<_ACEOF
59711 #define HAVE_DECL__SYS_SIGLIST 0
59712 _ACEOF
59716 { echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
59717 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6; }
59718 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
59719 echo $ECHO_N "(cached) $ECHO_C" >&6
59720 else
59721 cat >conftest.$ac_ext <<_ACEOF
59722 /* confdefs.h. */
59723 _ACEOF
59724 cat confdefs.h >>conftest.$ac_ext
59725 cat >>conftest.$ac_ext <<_ACEOF
59726 /* end confdefs.h. */
59727 $ac_includes_default
59728 #include <signal.h>
59731 main ()
59733 #ifndef __sys_siglist
59734 char *p = (char *) __sys_siglist;
59735 return !p;
59736 #endif
59739 return 0;
59741 _ACEOF
59742 rm -f conftest.$ac_objext
59743 if { (ac_try="$ac_compile"
59744 case "(($ac_try" in
59745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59746 *) ac_try_echo=$ac_try;;
59747 esac
59748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
59749 (eval "$ac_compile") 2>conftest.er1
59750 ac_status=$?
59751 grep -v '^ *+' conftest.er1 >conftest.err
59752 rm -f conftest.er1
59753 cat conftest.err >&5
59754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59755 (exit $ac_status); } &&
59756 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
59757 { (case "(($ac_try" in
59758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59759 *) ac_try_echo=$ac_try;;
59760 esac
59761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
59762 (eval "$ac_try") 2>&5
59763 ac_status=$?
59764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59765 (exit $ac_status); }; } &&
59766 { ac_try='test -s conftest.$ac_objext'
59767 { (case "(($ac_try" in
59768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59769 *) ac_try_echo=$ac_try;;
59770 esac
59771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
59772 (eval "$ac_try") 2>&5
59773 ac_status=$?
59774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59775 (exit $ac_status); }; }; then
59776 ac_cv_have_decl___sys_siglist=yes
59777 else
59778 echo "$as_me: failed program was:" >&5
59779 sed 's/^/| /' conftest.$ac_ext >&5
59781 ac_cv_have_decl___sys_siglist=no
59784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
59786 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
59787 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6; }
59788 if test $ac_cv_have_decl___sys_siglist = yes; then
59790 cat >>confdefs.h <<_ACEOF
59791 #define HAVE_DECL___SYS_SIGLIST 1
59792 _ACEOF
59795 else
59796 cat >>confdefs.h <<_ACEOF
59797 #define HAVE_DECL___SYS_SIGLIST 0
59798 _ACEOF
59805 # For src/kill.c and src/printf.c.
59806 { echo "$as_me:$LINENO: checking whether strtoimax is declared" >&5
59807 echo $ECHO_N "checking whether strtoimax is declared... $ECHO_C" >&6; }
59808 if test "${ac_cv_have_decl_strtoimax+set}" = set; then
59809 echo $ECHO_N "(cached) $ECHO_C" >&6
59810 else
59811 cat >conftest.$ac_ext <<_ACEOF
59812 /* confdefs.h. */
59813 _ACEOF
59814 cat confdefs.h >>conftest.$ac_ext
59815 cat >>conftest.$ac_ext <<_ACEOF
59816 /* end confdefs.h. */
59817 $ac_includes_default
59819 main ()
59821 #ifndef strtoimax
59822 char *p = (char *) strtoimax;
59823 return !p;
59824 #endif
59827 return 0;
59829 _ACEOF
59830 rm -f conftest.$ac_objext
59831 if { (ac_try="$ac_compile"
59832 case "(($ac_try" in
59833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59834 *) ac_try_echo=$ac_try;;
59835 esac
59836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
59837 (eval "$ac_compile") 2>conftest.er1
59838 ac_status=$?
59839 grep -v '^ *+' conftest.er1 >conftest.err
59840 rm -f conftest.er1
59841 cat conftest.err >&5
59842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59843 (exit $ac_status); } &&
59844 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
59845 { (case "(($ac_try" in
59846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59847 *) ac_try_echo=$ac_try;;
59848 esac
59849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
59850 (eval "$ac_try") 2>&5
59851 ac_status=$?
59852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59853 (exit $ac_status); }; } &&
59854 { ac_try='test -s conftest.$ac_objext'
59855 { (case "(($ac_try" in
59856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59857 *) ac_try_echo=$ac_try;;
59858 esac
59859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
59860 (eval "$ac_try") 2>&5
59861 ac_status=$?
59862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59863 (exit $ac_status); }; }; then
59864 ac_cv_have_decl_strtoimax=yes
59865 else
59866 echo "$as_me: failed program was:" >&5
59867 sed 's/^/| /' conftest.$ac_ext >&5
59869 ac_cv_have_decl_strtoimax=no
59872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
59874 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoimax" >&5
59875 echo "${ECHO_T}$ac_cv_have_decl_strtoimax" >&6; }
59876 if test $ac_cv_have_decl_strtoimax = yes; then
59878 cat >>confdefs.h <<_ACEOF
59879 #define HAVE_DECL_STRTOIMAX 1
59880 _ACEOF
59883 else
59884 cat >>confdefs.h <<_ACEOF
59885 #define HAVE_DECL_STRTOIMAX 0
59886 _ACEOF
59890 { echo "$as_me:$LINENO: checking whether strtoumax is declared" >&5
59891 echo $ECHO_N "checking whether strtoumax is declared... $ECHO_C" >&6; }
59892 if test "${ac_cv_have_decl_strtoumax+set}" = set; then
59893 echo $ECHO_N "(cached) $ECHO_C" >&6
59894 else
59895 cat >conftest.$ac_ext <<_ACEOF
59896 /* confdefs.h. */
59897 _ACEOF
59898 cat confdefs.h >>conftest.$ac_ext
59899 cat >>conftest.$ac_ext <<_ACEOF
59900 /* end confdefs.h. */
59901 $ac_includes_default
59903 main ()
59905 #ifndef strtoumax
59906 char *p = (char *) strtoumax;
59907 return !p;
59908 #endif
59911 return 0;
59913 _ACEOF
59914 rm -f conftest.$ac_objext
59915 if { (ac_try="$ac_compile"
59916 case "(($ac_try" in
59917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59918 *) ac_try_echo=$ac_try;;
59919 esac
59920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
59921 (eval "$ac_compile") 2>conftest.er1
59922 ac_status=$?
59923 grep -v '^ *+' conftest.er1 >conftest.err
59924 rm -f conftest.er1
59925 cat conftest.err >&5
59926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59927 (exit $ac_status); } &&
59928 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
59929 { (case "(($ac_try" in
59930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59931 *) ac_try_echo=$ac_try;;
59932 esac
59933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
59934 (eval "$ac_try") 2>&5
59935 ac_status=$?
59936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59937 (exit $ac_status); }; } &&
59938 { ac_try='test -s conftest.$ac_objext'
59939 { (case "(($ac_try" in
59940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59941 *) ac_try_echo=$ac_try;;
59942 esac
59943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
59944 (eval "$ac_try") 2>&5
59945 ac_status=$?
59946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59947 (exit $ac_status); }; }; then
59948 ac_cv_have_decl_strtoumax=yes
59949 else
59950 echo "$as_me: failed program was:" >&5
59951 sed 's/^/| /' conftest.$ac_ext >&5
59953 ac_cv_have_decl_strtoumax=no
59956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
59958 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoumax" >&5
59959 echo "${ECHO_T}$ac_cv_have_decl_strtoumax" >&6; }
59960 if test $ac_cv_have_decl_strtoumax = yes; then
59962 cat >>confdefs.h <<_ACEOF
59963 #define HAVE_DECL_STRTOUMAX 1
59964 _ACEOF
59967 else
59968 cat >>confdefs.h <<_ACEOF
59969 #define HAVE_DECL_STRTOUMAX 0
59970 _ACEOF
59979 # Check for libypsec.a on Dolphin M88K machines.
59981 { echo "$as_me:$LINENO: checking for main in -lypsec" >&5
59982 echo $ECHO_N "checking for main in -lypsec... $ECHO_C" >&6; }
59983 if test "${ac_cv_lib_ypsec_main+set}" = set; then
59984 echo $ECHO_N "(cached) $ECHO_C" >&6
59985 else
59986 ac_check_lib_save_LIBS=$LIBS
59987 LIBS="-lypsec $LIBS"
59988 cat >conftest.$ac_ext <<_ACEOF
59989 /* confdefs.h. */
59990 _ACEOF
59991 cat confdefs.h >>conftest.$ac_ext
59992 cat >>conftest.$ac_ext <<_ACEOF
59993 /* end confdefs.h. */
59997 main ()
59999 return main ();
60001 return 0;
60003 _ACEOF
60004 rm -f conftest.$ac_objext conftest$ac_exeext
60005 if { (ac_try="$ac_link"
60006 case "(($ac_try" in
60007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60008 *) ac_try_echo=$ac_try;;
60009 esac
60010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
60011 (eval "$ac_link") 2>conftest.er1
60012 ac_status=$?
60013 grep -v '^ *+' conftest.er1 >conftest.err
60014 rm -f conftest.er1
60015 cat conftest.err >&5
60016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60017 (exit $ac_status); } &&
60018 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
60019 { (case "(($ac_try" in
60020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60021 *) ac_try_echo=$ac_try;;
60022 esac
60023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
60024 (eval "$ac_try") 2>&5
60025 ac_status=$?
60026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60027 (exit $ac_status); }; } &&
60028 { ac_try='test -s conftest$ac_exeext'
60029 { (case "(($ac_try" in
60030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60031 *) ac_try_echo=$ac_try;;
60032 esac
60033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
60034 (eval "$ac_try") 2>&5
60035 ac_status=$?
60036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60037 (exit $ac_status); }; }; then
60038 ac_cv_lib_ypsec_main=yes
60039 else
60040 echo "$as_me: failed program was:" >&5
60041 sed 's/^/| /' conftest.$ac_ext >&5
60043 ac_cv_lib_ypsec_main=no
60046 rm -f core conftest.err conftest.$ac_objext \
60047 conftest$ac_exeext conftest.$ac_ext
60048 LIBS=$ac_check_lib_save_LIBS
60050 { echo "$as_me:$LINENO: result: $ac_cv_lib_ypsec_main" >&5
60051 echo "${ECHO_T}$ac_cv_lib_ypsec_main" >&6; }
60052 if test $ac_cv_lib_ypsec_main = yes; then
60053 cat >>confdefs.h <<_ACEOF
60054 #define HAVE_LIBYPSEC 1
60055 _ACEOF
60057 LIBS="-lypsec $LIBS"
60062 # m88k running dgux 5.4 needs this
60064 { echo "$as_me:$LINENO: checking for main in -lldgc" >&5
60065 echo $ECHO_N "checking for main in -lldgc... $ECHO_C" >&6; }
60066 if test "${ac_cv_lib_ldgc_main+set}" = set; then
60067 echo $ECHO_N "(cached) $ECHO_C" >&6
60068 else
60069 ac_check_lib_save_LIBS=$LIBS
60070 LIBS="-lldgc $LIBS"
60071 cat >conftest.$ac_ext <<_ACEOF
60072 /* confdefs.h. */
60073 _ACEOF
60074 cat confdefs.h >>conftest.$ac_ext
60075 cat >>conftest.$ac_ext <<_ACEOF
60076 /* end confdefs.h. */
60080 main ()
60082 return main ();
60084 return 0;
60086 _ACEOF
60087 rm -f conftest.$ac_objext conftest$ac_exeext
60088 if { (ac_try="$ac_link"
60089 case "(($ac_try" in
60090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60091 *) ac_try_echo=$ac_try;;
60092 esac
60093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
60094 (eval "$ac_link") 2>conftest.er1
60095 ac_status=$?
60096 grep -v '^ *+' conftest.er1 >conftest.err
60097 rm -f conftest.er1
60098 cat conftest.err >&5
60099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60100 (exit $ac_status); } &&
60101 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
60102 { (case "(($ac_try" in
60103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60104 *) ac_try_echo=$ac_try;;
60105 esac
60106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
60107 (eval "$ac_try") 2>&5
60108 ac_status=$?
60109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60110 (exit $ac_status); }; } &&
60111 { ac_try='test -s conftest$ac_exeext'
60112 { (case "(($ac_try" in
60113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60114 *) ac_try_echo=$ac_try;;
60115 esac
60116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
60117 (eval "$ac_try") 2>&5
60118 ac_status=$?
60119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60120 (exit $ac_status); }; }; then
60121 ac_cv_lib_ldgc_main=yes
60122 else
60123 echo "$as_me: failed program was:" >&5
60124 sed 's/^/| /' conftest.$ac_ext >&5
60126 ac_cv_lib_ldgc_main=no
60129 rm -f core conftest.err conftest.$ac_objext \
60130 conftest$ac_exeext conftest.$ac_ext
60131 LIBS=$ac_check_lib_save_LIBS
60133 { echo "$as_me:$LINENO: result: $ac_cv_lib_ldgc_main" >&5
60134 echo "${ECHO_T}$ac_cv_lib_ldgc_main" >&6; }
60135 if test $ac_cv_lib_ldgc_main = yes; then
60136 cat >>confdefs.h <<_ACEOF
60137 #define HAVE_LIBLDGC 1
60138 _ACEOF
60140 LIBS="-lldgc $LIBS"
60145 # The -lsun library is required for YP support on Irix-4.0.5 systems.
60146 # m88k/svr3 DolphinOS systems using YP need -lypsec for id.
60147 { echo "$as_me:$LINENO: checking for library containing yp_match" >&5
60148 echo $ECHO_N "checking for library containing yp_match... $ECHO_C" >&6; }
60149 if test "${ac_cv_search_yp_match+set}" = set; then
60150 echo $ECHO_N "(cached) $ECHO_C" >&6
60151 else
60152 ac_func_search_save_LIBS=$LIBS
60153 cat >conftest.$ac_ext <<_ACEOF
60154 /* confdefs.h. */
60155 _ACEOF
60156 cat confdefs.h >>conftest.$ac_ext
60157 cat >>conftest.$ac_ext <<_ACEOF
60158 /* end confdefs.h. */
60160 /* Override any GCC internal prototype to avoid an error.
60161 Use char because int might match the return type of a GCC
60162 builtin and then its argument prototype would still apply. */
60163 #ifdef __cplusplus
60164 extern "C"
60165 #endif
60166 char yp_match ();
60168 main ()
60170 return yp_match ();
60172 return 0;
60174 _ACEOF
60175 for ac_lib in '' sun ypsec; do
60176 if test -z "$ac_lib"; then
60177 ac_res="none required"
60178 else
60179 ac_res=-l$ac_lib
60180 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
60182 rm -f conftest.$ac_objext conftest$ac_exeext
60183 if { (ac_try="$ac_link"
60184 case "(($ac_try" in
60185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60186 *) ac_try_echo=$ac_try;;
60187 esac
60188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
60189 (eval "$ac_link") 2>conftest.er1
60190 ac_status=$?
60191 grep -v '^ *+' conftest.er1 >conftest.err
60192 rm -f conftest.er1
60193 cat conftest.err >&5
60194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60195 (exit $ac_status); } &&
60196 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
60197 { (case "(($ac_try" in
60198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60199 *) ac_try_echo=$ac_try;;
60200 esac
60201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
60202 (eval "$ac_try") 2>&5
60203 ac_status=$?
60204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60205 (exit $ac_status); }; } &&
60206 { ac_try='test -s conftest$ac_exeext'
60207 { (case "(($ac_try" in
60208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60209 *) ac_try_echo=$ac_try;;
60210 esac
60211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
60212 (eval "$ac_try") 2>&5
60213 ac_status=$?
60214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60215 (exit $ac_status); }; }; then
60216 ac_cv_search_yp_match=$ac_res
60217 else
60218 echo "$as_me: failed program was:" >&5
60219 sed 's/^/| /' conftest.$ac_ext >&5
60224 rm -f core conftest.err conftest.$ac_objext \
60225 conftest$ac_exeext
60226 if test "${ac_cv_search_yp_match+set}" = set; then
60227 break
60229 done
60230 if test "${ac_cv_search_yp_match+set}" = set; then
60232 else
60233 ac_cv_search_yp_match=no
60235 rm conftest.$ac_ext
60236 LIBS=$ac_func_search_save_LIBS
60238 { echo "$as_me:$LINENO: result: $ac_cv_search_yp_match" >&5
60239 echo "${ECHO_T}$ac_cv_search_yp_match" >&6; }
60240 ac_res=$ac_cv_search_yp_match
60241 if test "$ac_res" != no; then
60242 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
60247 # SysV needs -lsec, older versions of Linux need -lshadow for
60248 # shadow passwords. UnixWare 7 needs -lgen.
60249 { echo "$as_me:$LINENO: checking for library containing getspnam" >&5
60250 echo $ECHO_N "checking for library containing getspnam... $ECHO_C" >&6; }
60251 if test "${ac_cv_search_getspnam+set}" = set; then
60252 echo $ECHO_N "(cached) $ECHO_C" >&6
60253 else
60254 ac_func_search_save_LIBS=$LIBS
60255 cat >conftest.$ac_ext <<_ACEOF
60256 /* confdefs.h. */
60257 _ACEOF
60258 cat confdefs.h >>conftest.$ac_ext
60259 cat >>conftest.$ac_ext <<_ACEOF
60260 /* end confdefs.h. */
60262 /* Override any GCC internal prototype to avoid an error.
60263 Use char because int might match the return type of a GCC
60264 builtin and then its argument prototype would still apply. */
60265 #ifdef __cplusplus
60266 extern "C"
60267 #endif
60268 char getspnam ();
60270 main ()
60272 return getspnam ();
60274 return 0;
60276 _ACEOF
60277 for ac_lib in '' shadow sec gen; do
60278 if test -z "$ac_lib"; then
60279 ac_res="none required"
60280 else
60281 ac_res=-l$ac_lib
60282 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
60284 rm -f conftest.$ac_objext conftest$ac_exeext
60285 if { (ac_try="$ac_link"
60286 case "(($ac_try" in
60287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60288 *) ac_try_echo=$ac_try;;
60289 esac
60290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
60291 (eval "$ac_link") 2>conftest.er1
60292 ac_status=$?
60293 grep -v '^ *+' conftest.er1 >conftest.err
60294 rm -f conftest.er1
60295 cat conftest.err >&5
60296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60297 (exit $ac_status); } &&
60298 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
60299 { (case "(($ac_try" in
60300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60301 *) ac_try_echo=$ac_try;;
60302 esac
60303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
60304 (eval "$ac_try") 2>&5
60305 ac_status=$?
60306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60307 (exit $ac_status); }; } &&
60308 { ac_try='test -s conftest$ac_exeext'
60309 { (case "(($ac_try" in
60310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60311 *) ac_try_echo=$ac_try;;
60312 esac
60313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
60314 (eval "$ac_try") 2>&5
60315 ac_status=$?
60316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60317 (exit $ac_status); }; }; then
60318 ac_cv_search_getspnam=$ac_res
60319 else
60320 echo "$as_me: failed program was:" >&5
60321 sed 's/^/| /' conftest.$ac_ext >&5
60326 rm -f core conftest.err conftest.$ac_objext \
60327 conftest$ac_exeext
60328 if test "${ac_cv_search_getspnam+set}" = set; then
60329 break
60331 done
60332 if test "${ac_cv_search_getspnam+set}" = set; then
60334 else
60335 ac_cv_search_getspnam=no
60337 rm conftest.$ac_ext
60338 LIBS=$ac_func_search_save_LIBS
60340 { echo "$as_me:$LINENO: result: $ac_cv_search_getspnam" >&5
60341 echo "${ECHO_T}$ac_cv_search_getspnam" >&6; }
60342 ac_res=$ac_cv_search_getspnam
60343 if test "$ac_res" != no; then
60344 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
60350 for ac_header in shadow.h
60352 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
60353 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
60354 { echo "$as_me:$LINENO: checking for $ac_header" >&5
60355 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
60356 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
60357 echo $ECHO_N "(cached) $ECHO_C" >&6
60359 ac_res=`eval echo '${'$as_ac_Header'}'`
60360 { echo "$as_me:$LINENO: result: $ac_res" >&5
60361 echo "${ECHO_T}$ac_res" >&6; }
60362 else
60363 # Is the header compilable?
60364 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
60365 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
60366 cat >conftest.$ac_ext <<_ACEOF
60367 /* confdefs.h. */
60368 _ACEOF
60369 cat confdefs.h >>conftest.$ac_ext
60370 cat >>conftest.$ac_ext <<_ACEOF
60371 /* end confdefs.h. */
60372 $ac_includes_default
60373 #include <$ac_header>
60374 _ACEOF
60375 rm -f conftest.$ac_objext
60376 if { (ac_try="$ac_compile"
60377 case "(($ac_try" in
60378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60379 *) ac_try_echo=$ac_try;;
60380 esac
60381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
60382 (eval "$ac_compile") 2>conftest.er1
60383 ac_status=$?
60384 grep -v '^ *+' conftest.er1 >conftest.err
60385 rm -f conftest.er1
60386 cat conftest.err >&5
60387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60388 (exit $ac_status); } &&
60389 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
60390 { (case "(($ac_try" in
60391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60392 *) ac_try_echo=$ac_try;;
60393 esac
60394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
60395 (eval "$ac_try") 2>&5
60396 ac_status=$?
60397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60398 (exit $ac_status); }; } &&
60399 { ac_try='test -s conftest.$ac_objext'
60400 { (case "(($ac_try" in
60401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60402 *) ac_try_echo=$ac_try;;
60403 esac
60404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
60405 (eval "$ac_try") 2>&5
60406 ac_status=$?
60407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60408 (exit $ac_status); }; }; then
60409 ac_header_compiler=yes
60410 else
60411 echo "$as_me: failed program was:" >&5
60412 sed 's/^/| /' conftest.$ac_ext >&5
60414 ac_header_compiler=no
60417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
60418 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
60419 echo "${ECHO_T}$ac_header_compiler" >&6; }
60421 # Is the header present?
60422 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
60423 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
60424 cat >conftest.$ac_ext <<_ACEOF
60425 /* confdefs.h. */
60426 _ACEOF
60427 cat confdefs.h >>conftest.$ac_ext
60428 cat >>conftest.$ac_ext <<_ACEOF
60429 /* end confdefs.h. */
60430 #include <$ac_header>
60431 _ACEOF
60432 if { (ac_try="$ac_cpp conftest.$ac_ext"
60433 case "(($ac_try" in
60434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60435 *) ac_try_echo=$ac_try;;
60436 esac
60437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
60438 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
60439 ac_status=$?
60440 grep -v '^ *+' conftest.er1 >conftest.err
60441 rm -f conftest.er1
60442 cat conftest.err >&5
60443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60444 (exit $ac_status); } >/dev/null; then
60445 if test -s conftest.err; then
60446 ac_cpp_err=$ac_c_preproc_warn_flag
60447 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
60448 else
60449 ac_cpp_err=
60451 else
60452 ac_cpp_err=yes
60454 if test -z "$ac_cpp_err"; then
60455 ac_header_preproc=yes
60456 else
60457 echo "$as_me: failed program was:" >&5
60458 sed 's/^/| /' conftest.$ac_ext >&5
60460 ac_header_preproc=no
60463 rm -f conftest.err conftest.$ac_ext
60464 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
60465 echo "${ECHO_T}$ac_header_preproc" >&6; }
60467 # So? What about this header?
60468 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
60469 yes:no: )
60470 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
60471 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
60472 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
60473 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
60474 ac_header_preproc=yes
60476 no:yes:* )
60477 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
60478 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
60479 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
60480 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
60481 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
60482 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
60483 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
60484 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
60485 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
60486 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
60487 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
60488 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
60489 ( cat <<\_ASBOX
60490 ## ------------------------------------ ##
60491 ## Report this to bug-coreutils@gnu.org ##
60492 ## ------------------------------------ ##
60493 _ASBOX
60494 ) | sed "s/^/$as_me: WARNING: /" >&2
60496 esac
60497 { echo "$as_me:$LINENO: checking for $ac_header" >&5
60498 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
60499 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
60500 echo $ECHO_N "(cached) $ECHO_C" >&6
60501 else
60502 eval "$as_ac_Header=\$ac_header_preproc"
60504 ac_res=`eval echo '${'$as_ac_Header'}'`
60505 { echo "$as_me:$LINENO: result: $ac_res" >&5
60506 echo "${ECHO_T}$ac_res" >&6; }
60509 if test `eval echo '${'$as_ac_Header'}'` = yes; then
60510 cat >>confdefs.h <<_ACEOF
60511 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
60512 _ACEOF
60516 done
60519 # Requirements for su.c.
60520 shadow_includes="\
60521 $ac_includes_default
60522 #if HAVE_SHADOW_H
60523 # include <shadow.h>
60524 #endif
60526 { echo "$as_me:$LINENO: checking for struct spwd.sp_pwdp" >&5
60527 echo $ECHO_N "checking for struct spwd.sp_pwdp... $ECHO_C" >&6; }
60528 if test "${ac_cv_member_struct_spwd_sp_pwdp+set}" = set; then
60529 echo $ECHO_N "(cached) $ECHO_C" >&6
60530 else
60531 cat >conftest.$ac_ext <<_ACEOF
60532 /* confdefs.h. */
60533 _ACEOF
60534 cat confdefs.h >>conftest.$ac_ext
60535 cat >>conftest.$ac_ext <<_ACEOF
60536 /* end confdefs.h. */
60537 $shadow_includes
60540 main ()
60542 static struct spwd ac_aggr;
60543 if (ac_aggr.sp_pwdp)
60544 return 0;
60546 return 0;
60548 _ACEOF
60549 rm -f conftest.$ac_objext
60550 if { (ac_try="$ac_compile"
60551 case "(($ac_try" in
60552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60553 *) ac_try_echo=$ac_try;;
60554 esac
60555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
60556 (eval "$ac_compile") 2>conftest.er1
60557 ac_status=$?
60558 grep -v '^ *+' conftest.er1 >conftest.err
60559 rm -f conftest.er1
60560 cat conftest.err >&5
60561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60562 (exit $ac_status); } &&
60563 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
60564 { (case "(($ac_try" in
60565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60566 *) ac_try_echo=$ac_try;;
60567 esac
60568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
60569 (eval "$ac_try") 2>&5
60570 ac_status=$?
60571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60572 (exit $ac_status); }; } &&
60573 { ac_try='test -s conftest.$ac_objext'
60574 { (case "(($ac_try" in
60575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60576 *) ac_try_echo=$ac_try;;
60577 esac
60578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
60579 (eval "$ac_try") 2>&5
60580 ac_status=$?
60581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60582 (exit $ac_status); }; }; then
60583 ac_cv_member_struct_spwd_sp_pwdp=yes
60584 else
60585 echo "$as_me: failed program was:" >&5
60586 sed 's/^/| /' conftest.$ac_ext >&5
60588 cat >conftest.$ac_ext <<_ACEOF
60589 /* confdefs.h. */
60590 _ACEOF
60591 cat confdefs.h >>conftest.$ac_ext
60592 cat >>conftest.$ac_ext <<_ACEOF
60593 /* end confdefs.h. */
60594 $shadow_includes
60597 main ()
60599 static struct spwd ac_aggr;
60600 if (sizeof ac_aggr.sp_pwdp)
60601 return 0;
60603 return 0;
60605 _ACEOF
60606 rm -f conftest.$ac_objext
60607 if { (ac_try="$ac_compile"
60608 case "(($ac_try" in
60609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60610 *) ac_try_echo=$ac_try;;
60611 esac
60612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
60613 (eval "$ac_compile") 2>conftest.er1
60614 ac_status=$?
60615 grep -v '^ *+' conftest.er1 >conftest.err
60616 rm -f conftest.er1
60617 cat conftest.err >&5
60618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60619 (exit $ac_status); } &&
60620 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
60621 { (case "(($ac_try" in
60622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60623 *) ac_try_echo=$ac_try;;
60624 esac
60625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
60626 (eval "$ac_try") 2>&5
60627 ac_status=$?
60628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60629 (exit $ac_status); }; } &&
60630 { ac_try='test -s conftest.$ac_objext'
60631 { (case "(($ac_try" in
60632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60633 *) ac_try_echo=$ac_try;;
60634 esac
60635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
60636 (eval "$ac_try") 2>&5
60637 ac_status=$?
60638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60639 (exit $ac_status); }; }; then
60640 ac_cv_member_struct_spwd_sp_pwdp=yes
60641 else
60642 echo "$as_me: failed program was:" >&5
60643 sed 's/^/| /' conftest.$ac_ext >&5
60645 ac_cv_member_struct_spwd_sp_pwdp=no
60648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
60651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
60653 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_spwd_sp_pwdp" >&5
60654 echo "${ECHO_T}$ac_cv_member_struct_spwd_sp_pwdp" >&6; }
60655 if test $ac_cv_member_struct_spwd_sp_pwdp = yes; then
60657 cat >>confdefs.h <<_ACEOF
60658 #define HAVE_STRUCT_SPWD_SP_PWDP 1
60659 _ACEOF
60665 for ac_func in getspnam
60667 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
60668 { echo "$as_me:$LINENO: checking for $ac_func" >&5
60669 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
60670 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
60671 echo $ECHO_N "(cached) $ECHO_C" >&6
60672 else
60673 cat >conftest.$ac_ext <<_ACEOF
60674 /* confdefs.h. */
60675 _ACEOF
60676 cat confdefs.h >>conftest.$ac_ext
60677 cat >>conftest.$ac_ext <<_ACEOF
60678 /* end confdefs.h. */
60679 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
60680 For example, HP-UX 11i <limits.h> declares gettimeofday. */
60681 #define $ac_func innocuous_$ac_func
60683 /* System header to define __stub macros and hopefully few prototypes,
60684 which can conflict with char $ac_func (); below.
60685 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
60686 <limits.h> exists even on freestanding compilers. */
60688 #ifdef __STDC__
60689 # include <limits.h>
60690 #else
60691 # include <assert.h>
60692 #endif
60694 #undef $ac_func
60696 /* Override any GCC internal prototype to avoid an error.
60697 Use char because int might match the return type of a GCC
60698 builtin and then its argument prototype would still apply. */
60699 #ifdef __cplusplus
60700 extern "C"
60701 #endif
60702 char $ac_func ();
60703 /* The GNU C library defines this for functions which it implements
60704 to always fail with ENOSYS. Some functions are actually named
60705 something starting with __ and the normal name is an alias. */
60706 #if defined __stub_$ac_func || defined __stub___$ac_func
60707 choke me
60708 #endif
60711 main ()
60713 return $ac_func ();
60715 return 0;
60717 _ACEOF
60718 rm -f conftest.$ac_objext conftest$ac_exeext
60719 if { (ac_try="$ac_link"
60720 case "(($ac_try" in
60721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60722 *) ac_try_echo=$ac_try;;
60723 esac
60724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
60725 (eval "$ac_link") 2>conftest.er1
60726 ac_status=$?
60727 grep -v '^ *+' conftest.er1 >conftest.err
60728 rm -f conftest.er1
60729 cat conftest.err >&5
60730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60731 (exit $ac_status); } &&
60732 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
60733 { (case "(($ac_try" in
60734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60735 *) ac_try_echo=$ac_try;;
60736 esac
60737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
60738 (eval "$ac_try") 2>&5
60739 ac_status=$?
60740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60741 (exit $ac_status); }; } &&
60742 { ac_try='test -s conftest$ac_exeext'
60743 { (case "(($ac_try" in
60744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60745 *) ac_try_echo=$ac_try;;
60746 esac
60747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
60748 (eval "$ac_try") 2>&5
60749 ac_status=$?
60750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60751 (exit $ac_status); }; }; then
60752 eval "$as_ac_var=yes"
60753 else
60754 echo "$as_me: failed program was:" >&5
60755 sed 's/^/| /' conftest.$ac_ext >&5
60757 eval "$as_ac_var=no"
60760 rm -f core conftest.err conftest.$ac_objext \
60761 conftest$ac_exeext conftest.$ac_ext
60763 ac_res=`eval echo '${'$as_ac_var'}'`
60764 { echo "$as_me:$LINENO: result: $ac_res" >&5
60765 echo "${ECHO_T}$ac_res" >&6; }
60766 if test `eval echo '${'$as_ac_var'}'` = yes; then
60767 cat >>confdefs.h <<_ACEOF
60768 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
60769 _ACEOF
60772 done
60775 # SCO-ODT-3.0 is reported to need -lufc for crypt.
60776 # NetBSD needs -lcrypt for crypt.
60777 cu_saved_libs="$LIBS"
60778 { echo "$as_me:$LINENO: checking for library containing crypt" >&5
60779 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6; }
60780 if test "${ac_cv_search_crypt+set}" = set; then
60781 echo $ECHO_N "(cached) $ECHO_C" >&6
60782 else
60783 ac_func_search_save_LIBS=$LIBS
60784 cat >conftest.$ac_ext <<_ACEOF
60785 /* confdefs.h. */
60786 _ACEOF
60787 cat confdefs.h >>conftest.$ac_ext
60788 cat >>conftest.$ac_ext <<_ACEOF
60789 /* end confdefs.h. */
60791 /* Override any GCC internal prototype to avoid an error.
60792 Use char because int might match the return type of a GCC
60793 builtin and then its argument prototype would still apply. */
60794 #ifdef __cplusplus
60795 extern "C"
60796 #endif
60797 char crypt ();
60799 main ()
60801 return crypt ();
60803 return 0;
60805 _ACEOF
60806 for ac_lib in '' ufc crypt; do
60807 if test -z "$ac_lib"; then
60808 ac_res="none required"
60809 else
60810 ac_res=-l$ac_lib
60811 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
60813 rm -f conftest.$ac_objext conftest$ac_exeext
60814 if { (ac_try="$ac_link"
60815 case "(($ac_try" in
60816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60817 *) ac_try_echo=$ac_try;;
60818 esac
60819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
60820 (eval "$ac_link") 2>conftest.er1
60821 ac_status=$?
60822 grep -v '^ *+' conftest.er1 >conftest.err
60823 rm -f conftest.er1
60824 cat conftest.err >&5
60825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60826 (exit $ac_status); } &&
60827 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
60828 { (case "(($ac_try" in
60829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60830 *) ac_try_echo=$ac_try;;
60831 esac
60832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
60833 (eval "$ac_try") 2>&5
60834 ac_status=$?
60835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60836 (exit $ac_status); }; } &&
60837 { ac_try='test -s conftest$ac_exeext'
60838 { (case "(($ac_try" in
60839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60840 *) ac_try_echo=$ac_try;;
60841 esac
60842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
60843 (eval "$ac_try") 2>&5
60844 ac_status=$?
60845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60846 (exit $ac_status); }; }; then
60847 ac_cv_search_crypt=$ac_res
60848 else
60849 echo "$as_me: failed program was:" >&5
60850 sed 's/^/| /' conftest.$ac_ext >&5
60855 rm -f core conftest.err conftest.$ac_objext \
60856 conftest$ac_exeext
60857 if test "${ac_cv_search_crypt+set}" = set; then
60858 break
60860 done
60861 if test "${ac_cv_search_crypt+set}" = set; then
60863 else
60864 ac_cv_search_crypt=no
60866 rm conftest.$ac_ext
60867 LIBS=$ac_func_search_save_LIBS
60869 { echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
60870 echo "${ECHO_T}$ac_cv_search_crypt" >&6; }
60871 ac_res=$ac_cv_search_crypt
60872 if test "$ac_res" != no; then
60873 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
60874 test "$ac_cv_search_crypt" = "none required" ||
60875 LIB_CRYPT="$ac_cv_search_crypt"
60878 LIBS="$cu_saved_libs"
60883 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
60884 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
60885 # Check whether --enable-nls was given.
60886 if test "${enable_nls+set}" = set; then
60887 enableval=$enable_nls; USE_NLS=$enableval
60888 else
60889 USE_NLS=yes
60892 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
60893 echo "${ECHO_T}$USE_NLS" >&6; }
60900 # Prepare PATH_SEPARATOR.
60901 # The user is always right.
60902 if test "${PATH_SEPARATOR+set}" != set; then
60903 echo "#! /bin/sh" >conf$$.sh
60904 echo "exit 0" >>conf$$.sh
60905 chmod +x conf$$.sh
60906 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
60907 PATH_SEPARATOR=';'
60908 else
60909 PATH_SEPARATOR=:
60911 rm -f conf$$.sh
60914 # Find out how to test for executable files. Don't use a zero-byte file,
60915 # as systems may use methods other than mode bits to determine executability.
60916 cat >conf$$.file <<_ASEOF
60917 #! /bin/sh
60918 exit 0
60919 _ASEOF
60920 chmod +x conf$$.file
60921 if test -x conf$$.file >/dev/null 2>&1; then
60922 ac_executable_p="test -x"
60923 else
60924 ac_executable_p="test -f"
60926 rm -f conf$$.file
60928 # Extract the first word of "msgfmt", so it can be a program name with args.
60929 set dummy msgfmt; ac_word=$2
60930 { echo "$as_me:$LINENO: checking for $ac_word" >&5
60931 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
60932 if test "${ac_cv_path_MSGFMT+set}" = set; then
60933 echo $ECHO_N "(cached) $ECHO_C" >&6
60934 else
60935 case "$MSGFMT" in
60936 [\\/]* | ?:[\\/]*)
60937 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
60940 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
60941 for ac_dir in $PATH; do
60942 IFS="$ac_save_IFS"
60943 test -z "$ac_dir" && ac_dir=.
60944 for ac_exec_ext in '' $ac_executable_extensions; do
60945 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
60946 echo "$as_me: trying $ac_dir/$ac_word..." >&5
60947 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
60948 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
60949 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
60950 break 2
60953 done
60954 done
60955 IFS="$ac_save_IFS"
60956 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
60958 esac
60960 MSGFMT="$ac_cv_path_MSGFMT"
60961 if test "$MSGFMT" != ":"; then
60962 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
60963 echo "${ECHO_T}$MSGFMT" >&6; }
60964 else
60965 { echo "$as_me:$LINENO: result: no" >&5
60966 echo "${ECHO_T}no" >&6; }
60969 # Extract the first word of "gmsgfmt", so it can be a program name with args.
60970 set dummy gmsgfmt; ac_word=$2
60971 { echo "$as_me:$LINENO: checking for $ac_word" >&5
60972 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
60973 if test "${ac_cv_path_GMSGFMT+set}" = set; then
60974 echo $ECHO_N "(cached) $ECHO_C" >&6
60975 else
60976 case $GMSGFMT in
60977 [\\/]* | ?:[\\/]*)
60978 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
60981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
60982 for as_dir in $PATH
60984 IFS=$as_save_IFS
60985 test -z "$as_dir" && as_dir=.
60986 for ac_exec_ext in '' $ac_executable_extensions; do
60987 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
60988 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
60989 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
60990 break 2
60992 done
60993 done
60994 IFS=$as_save_IFS
60996 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
60998 esac
61000 GMSGFMT=$ac_cv_path_GMSGFMT
61001 if test -n "$GMSGFMT"; then
61002 { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
61003 echo "${ECHO_T}$GMSGFMT" >&6; }
61004 else
61005 { echo "$as_me:$LINENO: result: no" >&5
61006 echo "${ECHO_T}no" >&6; }
61011 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
61012 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
61013 *) MSGFMT_015=$MSGFMT ;;
61014 esac
61016 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
61017 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
61018 *) GMSGFMT_015=$GMSGFMT ;;
61019 esac
61023 # Prepare PATH_SEPARATOR.
61024 # The user is always right.
61025 if test "${PATH_SEPARATOR+set}" != set; then
61026 echo "#! /bin/sh" >conf$$.sh
61027 echo "exit 0" >>conf$$.sh
61028 chmod +x conf$$.sh
61029 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
61030 PATH_SEPARATOR=';'
61031 else
61032 PATH_SEPARATOR=:
61034 rm -f conf$$.sh
61037 # Find out how to test for executable files. Don't use a zero-byte file,
61038 # as systems may use methods other than mode bits to determine executability.
61039 cat >conf$$.file <<_ASEOF
61040 #! /bin/sh
61041 exit 0
61042 _ASEOF
61043 chmod +x conf$$.file
61044 if test -x conf$$.file >/dev/null 2>&1; then
61045 ac_executable_p="test -x"
61046 else
61047 ac_executable_p="test -f"
61049 rm -f conf$$.file
61051 # Extract the first word of "xgettext", so it can be a program name with args.
61052 set dummy xgettext; ac_word=$2
61053 { echo "$as_me:$LINENO: checking for $ac_word" >&5
61054 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
61055 if test "${ac_cv_path_XGETTEXT+set}" = set; then
61056 echo $ECHO_N "(cached) $ECHO_C" >&6
61057 else
61058 case "$XGETTEXT" in
61059 [\\/]* | ?:[\\/]*)
61060 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
61063 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
61064 for ac_dir in $PATH; do
61065 IFS="$ac_save_IFS"
61066 test -z "$ac_dir" && ac_dir=.
61067 for ac_exec_ext in '' $ac_executable_extensions; do
61068 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
61069 echo "$as_me: trying $ac_dir/$ac_word..." >&5
61070 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
61071 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
61072 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
61073 break 2
61076 done
61077 done
61078 IFS="$ac_save_IFS"
61079 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
61081 esac
61083 XGETTEXT="$ac_cv_path_XGETTEXT"
61084 if test "$XGETTEXT" != ":"; then
61085 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
61086 echo "${ECHO_T}$XGETTEXT" >&6; }
61087 else
61088 { echo "$as_me:$LINENO: result: no" >&5
61089 echo "${ECHO_T}no" >&6; }
61092 rm -f messages.po
61094 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
61095 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
61096 *) XGETTEXT_015=$XGETTEXT ;;
61097 esac
61101 # Prepare PATH_SEPARATOR.
61102 # The user is always right.
61103 if test "${PATH_SEPARATOR+set}" != set; then
61104 echo "#! /bin/sh" >conf$$.sh
61105 echo "exit 0" >>conf$$.sh
61106 chmod +x conf$$.sh
61107 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
61108 PATH_SEPARATOR=';'
61109 else
61110 PATH_SEPARATOR=:
61112 rm -f conf$$.sh
61115 # Find out how to test for executable files. Don't use a zero-byte file,
61116 # as systems may use methods other than mode bits to determine executability.
61117 cat >conf$$.file <<_ASEOF
61118 #! /bin/sh
61119 exit 0
61120 _ASEOF
61121 chmod +x conf$$.file
61122 if test -x conf$$.file >/dev/null 2>&1; then
61123 ac_executable_p="test -x"
61124 else
61125 ac_executable_p="test -f"
61127 rm -f conf$$.file
61129 # Extract the first word of "msgmerge", so it can be a program name with args.
61130 set dummy msgmerge; ac_word=$2
61131 { echo "$as_me:$LINENO: checking for $ac_word" >&5
61132 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
61133 if test "${ac_cv_path_MSGMERGE+set}" = set; then
61134 echo $ECHO_N "(cached) $ECHO_C" >&6
61135 else
61136 case "$MSGMERGE" in
61137 [\\/]* | ?:[\\/]*)
61138 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
61141 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
61142 for ac_dir in $PATH; do
61143 IFS="$ac_save_IFS"
61144 test -z "$ac_dir" && ac_dir=.
61145 for ac_exec_ext in '' $ac_executable_extensions; do
61146 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
61147 echo "$as_me: trying $ac_dir/$ac_word..." >&5
61148 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
61149 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
61150 break 2
61153 done
61154 done
61155 IFS="$ac_save_IFS"
61156 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
61158 esac
61160 MSGMERGE="$ac_cv_path_MSGMERGE"
61161 if test "$MSGMERGE" != ":"; then
61162 { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
61163 echo "${ECHO_T}$MSGMERGE" >&6; }
61164 else
61165 { echo "$as_me:$LINENO: result: no" >&5
61166 echo "${ECHO_T}no" >&6; }
61170 test -n "$localedir" || localedir='${datadir}/locale'
61173 ac_config_commands="$ac_config_commands po-directories"
61192 { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
61193 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
61194 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
61195 echo $ECHO_N "(cached) $ECHO_C" >&6
61196 else
61197 gt_save_LIBS="$LIBS"
61198 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
61199 cat >conftest.$ac_ext <<_ACEOF
61200 /* confdefs.h. */
61201 _ACEOF
61202 cat confdefs.h >>conftest.$ac_ext
61203 cat >>conftest.$ac_ext <<_ACEOF
61204 /* end confdefs.h. */
61205 #include <CoreFoundation/CFPreferences.h>
61207 main ()
61209 CFPreferencesCopyAppValue(NULL, NULL)
61211 return 0;
61213 _ACEOF
61214 rm -f conftest.$ac_objext conftest$ac_exeext
61215 if { (ac_try="$ac_link"
61216 case "(($ac_try" in
61217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61218 *) ac_try_echo=$ac_try;;
61219 esac
61220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
61221 (eval "$ac_link") 2>conftest.er1
61222 ac_status=$?
61223 grep -v '^ *+' conftest.er1 >conftest.err
61224 rm -f conftest.er1
61225 cat conftest.err >&5
61226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61227 (exit $ac_status); } &&
61228 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
61229 { (case "(($ac_try" in
61230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61231 *) ac_try_echo=$ac_try;;
61232 esac
61233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
61234 (eval "$ac_try") 2>&5
61235 ac_status=$?
61236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61237 (exit $ac_status); }; } &&
61238 { ac_try='test -s conftest$ac_exeext'
61239 { (case "(($ac_try" in
61240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61241 *) ac_try_echo=$ac_try;;
61242 esac
61243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
61244 (eval "$ac_try") 2>&5
61245 ac_status=$?
61246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61247 (exit $ac_status); }; }; then
61248 gt_cv_func_CFPreferencesCopyAppValue=yes
61249 else
61250 echo "$as_me: failed program was:" >&5
61251 sed 's/^/| /' conftest.$ac_ext >&5
61253 gt_cv_func_CFPreferencesCopyAppValue=no
61256 rm -f core conftest.err conftest.$ac_objext \
61257 conftest$ac_exeext conftest.$ac_ext
61258 LIBS="$gt_save_LIBS"
61260 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
61261 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
61262 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
61264 cat >>confdefs.h <<\_ACEOF
61265 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
61266 _ACEOF
61269 { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
61270 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
61271 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
61272 echo $ECHO_N "(cached) $ECHO_C" >&6
61273 else
61274 gt_save_LIBS="$LIBS"
61275 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
61276 cat >conftest.$ac_ext <<_ACEOF
61277 /* confdefs.h. */
61278 _ACEOF
61279 cat confdefs.h >>conftest.$ac_ext
61280 cat >>conftest.$ac_ext <<_ACEOF
61281 /* end confdefs.h. */
61282 #include <CoreFoundation/CFLocale.h>
61284 main ()
61286 CFLocaleCopyCurrent();
61288 return 0;
61290 _ACEOF
61291 rm -f conftest.$ac_objext conftest$ac_exeext
61292 if { (ac_try="$ac_link"
61293 case "(($ac_try" in
61294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61295 *) ac_try_echo=$ac_try;;
61296 esac
61297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
61298 (eval "$ac_link") 2>conftest.er1
61299 ac_status=$?
61300 grep -v '^ *+' conftest.er1 >conftest.err
61301 rm -f conftest.er1
61302 cat conftest.err >&5
61303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61304 (exit $ac_status); } &&
61305 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
61306 { (case "(($ac_try" in
61307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61308 *) ac_try_echo=$ac_try;;
61309 esac
61310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
61311 (eval "$ac_try") 2>&5
61312 ac_status=$?
61313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61314 (exit $ac_status); }; } &&
61315 { ac_try='test -s conftest$ac_exeext'
61316 { (case "(($ac_try" in
61317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61318 *) ac_try_echo=$ac_try;;
61319 esac
61320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
61321 (eval "$ac_try") 2>&5
61322 ac_status=$?
61323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61324 (exit $ac_status); }; }; then
61325 gt_cv_func_CFLocaleCopyCurrent=yes
61326 else
61327 echo "$as_me: failed program was:" >&5
61328 sed 's/^/| /' conftest.$ac_ext >&5
61330 gt_cv_func_CFLocaleCopyCurrent=no
61333 rm -f core conftest.err conftest.$ac_objext \
61334 conftest$ac_exeext conftest.$ac_ext
61335 LIBS="$gt_save_LIBS"
61337 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
61338 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
61339 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
61341 cat >>confdefs.h <<\_ACEOF
61342 #define HAVE_CFLOCALECOPYCURRENT 1
61343 _ACEOF
61346 INTL_MACOSX_LIBS=
61347 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
61348 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
61356 LIBINTL=
61357 LTLIBINTL=
61358 POSUB=
61360 if test "$USE_NLS" = "yes"; then
61361 gt_use_preinstalled_gnugettext=no
61368 { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
61369 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
61370 if test "${gt_cv_func_gnugettext3_libc+set}" = set; then
61371 echo $ECHO_N "(cached) $ECHO_C" >&6
61372 else
61373 cat >conftest.$ac_ext <<_ACEOF
61374 /* confdefs.h. */
61375 _ACEOF
61376 cat confdefs.h >>conftest.$ac_ext
61377 cat >>conftest.$ac_ext <<_ACEOF
61378 /* end confdefs.h. */
61379 #include <libintl.h>
61380 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
61381 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
61382 #endif
61383 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
61384 extern int _nl_msg_cat_cntr;
61385 extern int *_nl_domain_bindings;
61387 main ()
61389 bindtextdomain ("", "");
61390 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
61392 return 0;
61394 _ACEOF
61395 rm -f conftest.$ac_objext conftest$ac_exeext
61396 if { (ac_try="$ac_link"
61397 case "(($ac_try" in
61398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61399 *) ac_try_echo=$ac_try;;
61400 esac
61401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
61402 (eval "$ac_link") 2>conftest.er1
61403 ac_status=$?
61404 grep -v '^ *+' conftest.er1 >conftest.err
61405 rm -f conftest.er1
61406 cat conftest.err >&5
61407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61408 (exit $ac_status); } &&
61409 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
61410 { (case "(($ac_try" in
61411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61412 *) ac_try_echo=$ac_try;;
61413 esac
61414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
61415 (eval "$ac_try") 2>&5
61416 ac_status=$?
61417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61418 (exit $ac_status); }; } &&
61419 { ac_try='test -s conftest$ac_exeext'
61420 { (case "(($ac_try" in
61421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61422 *) ac_try_echo=$ac_try;;
61423 esac
61424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
61425 (eval "$ac_try") 2>&5
61426 ac_status=$?
61427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61428 (exit $ac_status); }; }; then
61429 gt_cv_func_gnugettext3_libc=yes
61430 else
61431 echo "$as_me: failed program was:" >&5
61432 sed 's/^/| /' conftest.$ac_ext >&5
61434 gt_cv_func_gnugettext3_libc=no
61437 rm -f core conftest.err conftest.$ac_objext \
61438 conftest$ac_exeext conftest.$ac_ext
61440 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext3_libc" >&5
61441 echo "${ECHO_T}$gt_cv_func_gnugettext3_libc" >&6; }
61443 if test "$gt_cv_func_gnugettext3_libc" != "yes"; then
61449 am_save_CPPFLAGS="$CPPFLAGS"
61451 for element in $INCICONV; do
61452 haveit=
61453 for x in $CPPFLAGS; do
61455 acl_save_prefix="$prefix"
61456 prefix="$acl_final_prefix"
61457 acl_save_exec_prefix="$exec_prefix"
61458 exec_prefix="$acl_final_exec_prefix"
61459 eval x=\"$x\"
61460 exec_prefix="$acl_save_exec_prefix"
61461 prefix="$acl_save_prefix"
61463 if test "X$x" = "X$element"; then
61464 haveit=yes
61465 break
61467 done
61468 if test -z "$haveit"; then
61469 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
61471 done
61474 { echo "$as_me:$LINENO: checking for iconv" >&5
61475 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
61476 if test "${am_cv_func_iconv+set}" = set; then
61477 echo $ECHO_N "(cached) $ECHO_C" >&6
61478 else
61480 am_cv_func_iconv="no, consider installing GNU libiconv"
61481 am_cv_lib_iconv=no
61482 cat >conftest.$ac_ext <<_ACEOF
61483 /* confdefs.h. */
61484 _ACEOF
61485 cat confdefs.h >>conftest.$ac_ext
61486 cat >>conftest.$ac_ext <<_ACEOF
61487 /* end confdefs.h. */
61488 #include <stdlib.h>
61489 #include <iconv.h>
61491 main ()
61493 iconv_t cd = iconv_open("","");
61494 iconv(cd,NULL,NULL,NULL,NULL);
61495 iconv_close(cd);
61497 return 0;
61499 _ACEOF
61500 rm -f conftest.$ac_objext conftest$ac_exeext
61501 if { (ac_try="$ac_link"
61502 case "(($ac_try" in
61503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61504 *) ac_try_echo=$ac_try;;
61505 esac
61506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
61507 (eval "$ac_link") 2>conftest.er1
61508 ac_status=$?
61509 grep -v '^ *+' conftest.er1 >conftest.err
61510 rm -f conftest.er1
61511 cat conftest.err >&5
61512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61513 (exit $ac_status); } &&
61514 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
61515 { (case "(($ac_try" in
61516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61517 *) ac_try_echo=$ac_try;;
61518 esac
61519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
61520 (eval "$ac_try") 2>&5
61521 ac_status=$?
61522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61523 (exit $ac_status); }; } &&
61524 { ac_try='test -s conftest$ac_exeext'
61525 { (case "(($ac_try" in
61526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61527 *) ac_try_echo=$ac_try;;
61528 esac
61529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
61530 (eval "$ac_try") 2>&5
61531 ac_status=$?
61532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61533 (exit $ac_status); }; }; then
61534 am_cv_func_iconv=yes
61535 else
61536 echo "$as_me: failed program was:" >&5
61537 sed 's/^/| /' conftest.$ac_ext >&5
61542 rm -f core conftest.err conftest.$ac_objext \
61543 conftest$ac_exeext conftest.$ac_ext
61544 if test "$am_cv_func_iconv" != yes; then
61545 am_save_LIBS="$LIBS"
61546 LIBS="$LIBS $LIBICONV"
61547 cat >conftest.$ac_ext <<_ACEOF
61548 /* confdefs.h. */
61549 _ACEOF
61550 cat confdefs.h >>conftest.$ac_ext
61551 cat >>conftest.$ac_ext <<_ACEOF
61552 /* end confdefs.h. */
61553 #include <stdlib.h>
61554 #include <iconv.h>
61556 main ()
61558 iconv_t cd = iconv_open("","");
61559 iconv(cd,NULL,NULL,NULL,NULL);
61560 iconv_close(cd);
61562 return 0;
61564 _ACEOF
61565 rm -f conftest.$ac_objext conftest$ac_exeext
61566 if { (ac_try="$ac_link"
61567 case "(($ac_try" in
61568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61569 *) ac_try_echo=$ac_try;;
61570 esac
61571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
61572 (eval "$ac_link") 2>conftest.er1
61573 ac_status=$?
61574 grep -v '^ *+' conftest.er1 >conftest.err
61575 rm -f conftest.er1
61576 cat conftest.err >&5
61577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61578 (exit $ac_status); } &&
61579 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
61580 { (case "(($ac_try" in
61581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61582 *) ac_try_echo=$ac_try;;
61583 esac
61584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
61585 (eval "$ac_try") 2>&5
61586 ac_status=$?
61587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61588 (exit $ac_status); }; } &&
61589 { ac_try='test -s conftest$ac_exeext'
61590 { (case "(($ac_try" in
61591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61592 *) ac_try_echo=$ac_try;;
61593 esac
61594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
61595 (eval "$ac_try") 2>&5
61596 ac_status=$?
61597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61598 (exit $ac_status); }; }; then
61599 am_cv_lib_iconv=yes
61600 am_cv_func_iconv=yes
61601 else
61602 echo "$as_me: failed program was:" >&5
61603 sed 's/^/| /' conftest.$ac_ext >&5
61608 rm -f core conftest.err conftest.$ac_objext \
61609 conftest$ac_exeext conftest.$ac_ext
61610 LIBS="$am_save_LIBS"
61614 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
61615 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
61616 if test "$am_cv_func_iconv" = yes; then
61618 cat >>confdefs.h <<\_ACEOF
61619 #define HAVE_ICONV 1
61620 _ACEOF
61623 if test "$am_cv_lib_iconv" = yes; then
61624 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
61625 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
61626 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
61627 echo "${ECHO_T}$LIBICONV" >&6; }
61628 else
61629 CPPFLAGS="$am_save_CPPFLAGS"
61630 LIBICONV=
61631 LTLIBICONV=
61640 use_additional=yes
61642 acl_save_prefix="$prefix"
61643 prefix="$acl_final_prefix"
61644 acl_save_exec_prefix="$exec_prefix"
61645 exec_prefix="$acl_final_exec_prefix"
61647 eval additional_includedir=\"$includedir\"
61648 eval additional_libdir=\"$libdir\"
61650 exec_prefix="$acl_save_exec_prefix"
61651 prefix="$acl_save_prefix"
61654 # Check whether --with-libintl-prefix was given.
61655 if test "${with_libintl_prefix+set}" = set; then
61656 withval=$with_libintl_prefix;
61657 if test "X$withval" = "Xno"; then
61658 use_additional=no
61659 else
61660 if test "X$withval" = "X"; then
61662 acl_save_prefix="$prefix"
61663 prefix="$acl_final_prefix"
61664 acl_save_exec_prefix="$exec_prefix"
61665 exec_prefix="$acl_final_exec_prefix"
61667 eval additional_includedir=\"$includedir\"
61668 eval additional_libdir=\"$libdir\"
61670 exec_prefix="$acl_save_exec_prefix"
61671 prefix="$acl_save_prefix"
61673 else
61674 additional_includedir="$withval/include"
61675 additional_libdir="$withval/$acl_libdirstem"
61681 LIBINTL=
61682 LTLIBINTL=
61683 INCINTL=
61684 rpathdirs=
61685 ltrpathdirs=
61686 names_already_handled=
61687 names_next_round='intl '
61688 while test -n "$names_next_round"; do
61689 names_this_round="$names_next_round"
61690 names_next_round=
61691 for name in $names_this_round; do
61692 already_handled=
61693 for n in $names_already_handled; do
61694 if test "$n" = "$name"; then
61695 already_handled=yes
61696 break
61698 done
61699 if test -z "$already_handled"; then
61700 names_already_handled="$names_already_handled $name"
61701 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
61702 eval value=\"\$HAVE_LIB$uppername\"
61703 if test -n "$value"; then
61704 if test "$value" = yes; then
61705 eval value=\"\$LIB$uppername\"
61706 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
61707 eval value=\"\$LTLIB$uppername\"
61708 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
61709 else
61712 else
61713 found_dir=
61714 found_la=
61715 found_so=
61716 found_a=
61717 if test $use_additional = yes; then
61718 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
61719 found_dir="$additional_libdir"
61720 found_so="$additional_libdir/lib$name.$shlibext"
61721 if test -f "$additional_libdir/lib$name.la"; then
61722 found_la="$additional_libdir/lib$name.la"
61724 else
61725 if test -f "$additional_libdir/lib$name.$libext"; then
61726 found_dir="$additional_libdir"
61727 found_a="$additional_libdir/lib$name.$libext"
61728 if test -f "$additional_libdir/lib$name.la"; then
61729 found_la="$additional_libdir/lib$name.la"
61734 if test "X$found_dir" = "X"; then
61735 for x in $LDFLAGS $LTLIBINTL; do
61737 acl_save_prefix="$prefix"
61738 prefix="$acl_final_prefix"
61739 acl_save_exec_prefix="$exec_prefix"
61740 exec_prefix="$acl_final_exec_prefix"
61741 eval x=\"$x\"
61742 exec_prefix="$acl_save_exec_prefix"
61743 prefix="$acl_save_prefix"
61745 case "$x" in
61746 -L*)
61747 dir=`echo "X$x" | sed -e 's/^X-L//'`
61748 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
61749 found_dir="$dir"
61750 found_so="$dir/lib$name.$shlibext"
61751 if test -f "$dir/lib$name.la"; then
61752 found_la="$dir/lib$name.la"
61754 else
61755 if test -f "$dir/lib$name.$libext"; then
61756 found_dir="$dir"
61757 found_a="$dir/lib$name.$libext"
61758 if test -f "$dir/lib$name.la"; then
61759 found_la="$dir/lib$name.la"
61764 esac
61765 if test "X$found_dir" != "X"; then
61766 break
61768 done
61770 if test "X$found_dir" != "X"; then
61771 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
61772 if test "X$found_so" != "X"; then
61773 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
61774 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
61775 else
61776 haveit=
61777 for x in $ltrpathdirs; do
61778 if test "X$x" = "X$found_dir"; then
61779 haveit=yes
61780 break
61782 done
61783 if test -z "$haveit"; then
61784 ltrpathdirs="$ltrpathdirs $found_dir"
61786 if test "$hardcode_direct" = yes; then
61787 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
61788 else
61789 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
61790 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
61791 haveit=
61792 for x in $rpathdirs; do
61793 if test "X$x" = "X$found_dir"; then
61794 haveit=yes
61795 break
61797 done
61798 if test -z "$haveit"; then
61799 rpathdirs="$rpathdirs $found_dir"
61801 else
61802 haveit=
61803 for x in $LDFLAGS $LIBINTL; do
61805 acl_save_prefix="$prefix"
61806 prefix="$acl_final_prefix"
61807 acl_save_exec_prefix="$exec_prefix"
61808 exec_prefix="$acl_final_exec_prefix"
61809 eval x=\"$x\"
61810 exec_prefix="$acl_save_exec_prefix"
61811 prefix="$acl_save_prefix"
61813 if test "X$x" = "X-L$found_dir"; then
61814 haveit=yes
61815 break
61817 done
61818 if test -z "$haveit"; then
61819 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
61821 if test "$hardcode_minus_L" != no; then
61822 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
61823 else
61824 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
61829 else
61830 if test "X$found_a" != "X"; then
61831 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
61832 else
61833 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
61836 additional_includedir=
61837 case "$found_dir" in
61838 */$acl_libdirstem | */$acl_libdirstem/)
61839 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
61840 additional_includedir="$basedir/include"
61842 esac
61843 if test "X$additional_includedir" != "X"; then
61844 if test "X$additional_includedir" != "X/usr/include"; then
61845 haveit=
61846 if test "X$additional_includedir" = "X/usr/local/include"; then
61847 if test -n "$GCC"; then
61848 case $host_os in
61849 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
61850 esac
61853 if test -z "$haveit"; then
61854 for x in $CPPFLAGS $INCINTL; do
61856 acl_save_prefix="$prefix"
61857 prefix="$acl_final_prefix"
61858 acl_save_exec_prefix="$exec_prefix"
61859 exec_prefix="$acl_final_exec_prefix"
61860 eval x=\"$x\"
61861 exec_prefix="$acl_save_exec_prefix"
61862 prefix="$acl_save_prefix"
61864 if test "X$x" = "X-I$additional_includedir"; then
61865 haveit=yes
61866 break
61868 done
61869 if test -z "$haveit"; then
61870 if test -d "$additional_includedir"; then
61871 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
61877 if test -n "$found_la"; then
61878 save_libdir="$libdir"
61879 case "$found_la" in
61880 */* | *\\*) . "$found_la" ;;
61881 *) . "./$found_la" ;;
61882 esac
61883 libdir="$save_libdir"
61884 for dep in $dependency_libs; do
61885 case "$dep" in
61886 -L*)
61887 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
61888 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
61889 haveit=
61890 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
61891 if test -n "$GCC"; then
61892 case $host_os in
61893 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
61894 esac
61897 if test -z "$haveit"; then
61898 haveit=
61899 for x in $LDFLAGS $LIBINTL; do
61901 acl_save_prefix="$prefix"
61902 prefix="$acl_final_prefix"
61903 acl_save_exec_prefix="$exec_prefix"
61904 exec_prefix="$acl_final_exec_prefix"
61905 eval x=\"$x\"
61906 exec_prefix="$acl_save_exec_prefix"
61907 prefix="$acl_save_prefix"
61909 if test "X$x" = "X-L$additional_libdir"; then
61910 haveit=yes
61911 break
61913 done
61914 if test -z "$haveit"; then
61915 if test -d "$additional_libdir"; then
61916 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
61919 haveit=
61920 for x in $LDFLAGS $LTLIBINTL; do
61922 acl_save_prefix="$prefix"
61923 prefix="$acl_final_prefix"
61924 acl_save_exec_prefix="$exec_prefix"
61925 exec_prefix="$acl_final_exec_prefix"
61926 eval x=\"$x\"
61927 exec_prefix="$acl_save_exec_prefix"
61928 prefix="$acl_save_prefix"
61930 if test "X$x" = "X-L$additional_libdir"; then
61931 haveit=yes
61932 break
61934 done
61935 if test -z "$haveit"; then
61936 if test -d "$additional_libdir"; then
61937 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
61943 -R*)
61944 dir=`echo "X$dep" | sed -e 's/^X-R//'`
61945 if test "$enable_rpath" != no; then
61946 haveit=
61947 for x in $rpathdirs; do
61948 if test "X$x" = "X$dir"; then
61949 haveit=yes
61950 break
61952 done
61953 if test -z "$haveit"; then
61954 rpathdirs="$rpathdirs $dir"
61956 haveit=
61957 for x in $ltrpathdirs; do
61958 if test "X$x" = "X$dir"; then
61959 haveit=yes
61960 break
61962 done
61963 if test -z "$haveit"; then
61964 ltrpathdirs="$ltrpathdirs $dir"
61968 -l*)
61969 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
61971 *.la)
61972 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
61975 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
61976 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
61978 esac
61979 done
61981 else
61982 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
61983 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
61987 done
61988 done
61989 if test "X$rpathdirs" != "X"; then
61990 if test -n "$hardcode_libdir_separator"; then
61991 alldirs=
61992 for found_dir in $rpathdirs; do
61993 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
61994 done
61995 acl_save_libdir="$libdir"
61996 libdir="$alldirs"
61997 eval flag=\"$hardcode_libdir_flag_spec\"
61998 libdir="$acl_save_libdir"
61999 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
62000 else
62001 for found_dir in $rpathdirs; do
62002 acl_save_libdir="$libdir"
62003 libdir="$found_dir"
62004 eval flag=\"$hardcode_libdir_flag_spec\"
62005 libdir="$acl_save_libdir"
62006 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
62007 done
62010 if test "X$ltrpathdirs" != "X"; then
62011 for found_dir in $ltrpathdirs; do
62012 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
62013 done
62016 { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
62017 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
62018 if test "${gt_cv_func_gnugettext3_libintl+set}" = set; then
62019 echo $ECHO_N "(cached) $ECHO_C" >&6
62020 else
62021 gt_save_CPPFLAGS="$CPPFLAGS"
62022 CPPFLAGS="$CPPFLAGS $INCINTL"
62023 gt_save_LIBS="$LIBS"
62024 LIBS="$LIBS $LIBINTL"
62025 cat >conftest.$ac_ext <<_ACEOF
62026 /* confdefs.h. */
62027 _ACEOF
62028 cat confdefs.h >>conftest.$ac_ext
62029 cat >>conftest.$ac_ext <<_ACEOF
62030 /* end confdefs.h. */
62031 #include <libintl.h>
62032 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
62033 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
62034 #endif
62035 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
62036 extern int _nl_msg_cat_cntr;
62037 extern
62038 #ifdef __cplusplus
62040 #endif
62041 const char *_nl_expand_alias (const char *);
62043 main ()
62045 bindtextdomain ("", "");
62046 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
62048 return 0;
62050 _ACEOF
62051 rm -f conftest.$ac_objext conftest$ac_exeext
62052 if { (ac_try="$ac_link"
62053 case "(($ac_try" in
62054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
62055 *) ac_try_echo=$ac_try;;
62056 esac
62057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
62058 (eval "$ac_link") 2>conftest.er1
62059 ac_status=$?
62060 grep -v '^ *+' conftest.er1 >conftest.err
62061 rm -f conftest.er1
62062 cat conftest.err >&5
62063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62064 (exit $ac_status); } &&
62065 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
62066 { (case "(($ac_try" in
62067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
62068 *) ac_try_echo=$ac_try;;
62069 esac
62070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
62071 (eval "$ac_try") 2>&5
62072 ac_status=$?
62073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62074 (exit $ac_status); }; } &&
62075 { ac_try='test -s conftest$ac_exeext'
62076 { (case "(($ac_try" in
62077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
62078 *) ac_try_echo=$ac_try;;
62079 esac
62080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
62081 (eval "$ac_try") 2>&5
62082 ac_status=$?
62083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62084 (exit $ac_status); }; }; then
62085 gt_cv_func_gnugettext3_libintl=yes
62086 else
62087 echo "$as_me: failed program was:" >&5
62088 sed 's/^/| /' conftest.$ac_ext >&5
62090 gt_cv_func_gnugettext3_libintl=no
62093 rm -f core conftest.err conftest.$ac_objext \
62094 conftest$ac_exeext conftest.$ac_ext
62095 if test "$gt_cv_func_gnugettext3_libintl" != yes && test -n "$LIBICONV"; then
62096 LIBS="$LIBS $LIBICONV"
62097 cat >conftest.$ac_ext <<_ACEOF
62098 /* confdefs.h. */
62099 _ACEOF
62100 cat confdefs.h >>conftest.$ac_ext
62101 cat >>conftest.$ac_ext <<_ACEOF
62102 /* end confdefs.h. */
62103 #include <libintl.h>
62104 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
62105 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
62106 #endif
62107 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
62108 extern int _nl_msg_cat_cntr;
62109 extern
62110 #ifdef __cplusplus
62112 #endif
62113 const char *_nl_expand_alias (const char *);
62115 main ()
62117 bindtextdomain ("", "");
62118 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
62120 return 0;
62122 _ACEOF
62123 rm -f conftest.$ac_objext conftest$ac_exeext
62124 if { (ac_try="$ac_link"
62125 case "(($ac_try" in
62126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
62127 *) ac_try_echo=$ac_try;;
62128 esac
62129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
62130 (eval "$ac_link") 2>conftest.er1
62131 ac_status=$?
62132 grep -v '^ *+' conftest.er1 >conftest.err
62133 rm -f conftest.er1
62134 cat conftest.err >&5
62135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62136 (exit $ac_status); } &&
62137 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
62138 { (case "(($ac_try" in
62139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
62140 *) ac_try_echo=$ac_try;;
62141 esac
62142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
62143 (eval "$ac_try") 2>&5
62144 ac_status=$?
62145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62146 (exit $ac_status); }; } &&
62147 { ac_try='test -s conftest$ac_exeext'
62148 { (case "(($ac_try" in
62149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
62150 *) ac_try_echo=$ac_try;;
62151 esac
62152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
62153 (eval "$ac_try") 2>&5
62154 ac_status=$?
62155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62156 (exit $ac_status); }; }; then
62157 LIBINTL="$LIBINTL $LIBICONV"
62158 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
62159 gt_cv_func_gnugettext3_libintl=yes
62161 else
62162 echo "$as_me: failed program was:" >&5
62163 sed 's/^/| /' conftest.$ac_ext >&5
62168 rm -f core conftest.err conftest.$ac_objext \
62169 conftest$ac_exeext conftest.$ac_ext
62171 CPPFLAGS="$gt_save_CPPFLAGS"
62172 LIBS="$gt_save_LIBS"
62174 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext3_libintl" >&5
62175 echo "${ECHO_T}$gt_cv_func_gnugettext3_libintl" >&6; }
62178 if test "$gt_cv_func_gnugettext3_libc" = "yes" \
62179 || { test "$gt_cv_func_gnugettext3_libintl" = "yes" \
62180 && test "$PACKAGE" != gettext-runtime \
62181 && test "$PACKAGE" != gettext-tools; }; then
62182 gt_use_preinstalled_gnugettext=yes
62183 else
62184 LIBINTL=
62185 LTLIBINTL=
62186 INCINTL=
62191 if test -n "$INTL_MACOSX_LIBS"; then
62192 if test "$gt_use_preinstalled_gnugettext" = "yes" \
62193 || test "$nls_cv_use_gnu_gettext" = "yes"; then
62194 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
62195 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
62199 if test "$gt_use_preinstalled_gnugettext" = "yes" \
62200 || test "$nls_cv_use_gnu_gettext" = "yes"; then
62202 cat >>confdefs.h <<\_ACEOF
62203 #define ENABLE_NLS 1
62204 _ACEOF
62206 else
62207 USE_NLS=no
62211 { echo "$as_me:$LINENO: checking whether to use NLS" >&5
62212 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
62213 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
62214 echo "${ECHO_T}$USE_NLS" >&6; }
62215 if test "$USE_NLS" = "yes"; then
62216 { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
62217 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
62218 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
62219 if test "$gt_cv_func_gnugettext3_libintl" = "yes"; then
62220 gt_source="external libintl"
62221 else
62222 gt_source="libc"
62224 else
62225 gt_source="included intl directory"
62227 { echo "$as_me:$LINENO: result: $gt_source" >&5
62228 echo "${ECHO_T}$gt_source" >&6; }
62231 if test "$USE_NLS" = "yes"; then
62233 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
62234 if test "$gt_cv_func_gnugettext3_libintl" = "yes"; then
62235 { echo "$as_me:$LINENO: checking how to link with libintl" >&5
62236 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
62237 { echo "$as_me:$LINENO: result: $LIBINTL" >&5
62238 echo "${ECHO_T}$LIBINTL" >&6; }
62240 for element in $INCINTL; do
62241 haveit=
62242 for x in $CPPFLAGS; do
62244 acl_save_prefix="$prefix"
62245 prefix="$acl_final_prefix"
62246 acl_save_exec_prefix="$exec_prefix"
62247 exec_prefix="$acl_final_exec_prefix"
62248 eval x=\"$x\"
62249 exec_prefix="$acl_save_exec_prefix"
62250 prefix="$acl_save_prefix"
62252 if test "X$x" = "X$element"; then
62253 haveit=yes
62254 break
62256 done
62257 if test -z "$haveit"; then
62258 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
62260 done
62265 cat >>confdefs.h <<\_ACEOF
62266 #define HAVE_GETTEXT 1
62267 _ACEOF
62270 cat >>confdefs.h <<\_ACEOF
62271 #define HAVE_DCGETTEXT 1
62272 _ACEOF
62276 POSUB=po
62281 INTLLIBS="$LIBINTL"
62290 ac_config_files="$ac_config_files Makefile doc/Makefile lib/Makefile man/Makefile po/Makefile.in src/Makefile tests/Makefile tests/chgrp/Makefile tests/chmod/Makefile tests/chown/Makefile tests/cp/Makefile tests/cut/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/readlink/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/tee/Makefile tests/test/Makefile tests/touch/Makefile tests/tr/Makefile tests/tsort/Makefile tests/unexpand/Makefile tests/uniq/Makefile tests/wc/Makefile"
62292 cat >confcache <<\_ACEOF
62293 # This file is a shell script that caches the results of configure
62294 # tests run on this system so they can be shared between configure
62295 # scripts and configure runs, see configure's option --config-cache.
62296 # It is not useful on other systems. If it contains results you don't
62297 # want to keep, you may remove or edit it.
62299 # config.status only pays attention to the cache file if you give it
62300 # the --recheck option to rerun configure.
62302 # `ac_cv_env_foo' variables (set or unset) will be overridden when
62303 # loading this file, other *unset* `ac_cv_foo' will be assigned the
62304 # following values.
62306 _ACEOF
62308 # The following way of writing the cache mishandles newlines in values,
62309 # but we know of no workaround that is simple, portable, and efficient.
62310 # So, we kill variables containing newlines.
62311 # Ultrix sh set writes to stderr and can't be redirected directly,
62312 # and sets the high bit in the cache file unless we assign to the vars.
62314 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
62315 eval ac_val=\$$ac_var
62316 case $ac_val in #(
62317 *${as_nl}*)
62318 case $ac_var in #(
62319 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
62320 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
62321 esac
62322 case $ac_var in #(
62323 _ | IFS | as_nl) ;; #(
62324 *) $as_unset $ac_var ;;
62325 esac ;;
62326 esac
62327 done
62329 (set) 2>&1 |
62330 case $as_nl`(ac_space=' '; set) 2>&1` in #(
62331 *${as_nl}ac_space=\ *)
62332 # `set' does not quote correctly, so add quotes (double-quote
62333 # substitution turns \\\\ into \\, and sed turns \\ into \).
62334 sed -n \
62335 "s/'/'\\\\''/g;
62336 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
62337 ;; #(
62339 # `set' quotes correctly as required by POSIX, so do not add quotes.
62340 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
62342 esac |
62343 sort
62345 sed '
62346 /^ac_cv_env_/b end
62347 t clear
62348 :clear
62349 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
62350 t end
62351 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
62352 :end' >>confcache
62353 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
62354 if test -w "$cache_file"; then
62355 test "x$cache_file" != "x/dev/null" &&
62356 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
62357 echo "$as_me: updating cache $cache_file" >&6;}
62358 cat confcache >$cache_file
62359 else
62360 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
62361 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
62364 rm -f confcache
62366 test "x$prefix" = xNONE && prefix=$ac_default_prefix
62367 # Let make expand exec_prefix.
62368 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
62370 DEFS=-DHAVE_CONFIG_H
62372 ac_libobjs=
62373 ac_ltlibobjs=
62374 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
62375 # 1. Remove the extension, and $U if already installed.
62376 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
62377 ac_i=`echo "$ac_i" | sed "$ac_script"`
62378 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
62379 # will be set to the directory where LIBOBJS objects are built.
62380 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
62381 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
62382 done
62383 LIBOBJS=$ac_libobjs
62385 LTLIBOBJS=$ac_ltlibobjs
62388 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
62389 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
62390 Usually this means the macro was only invoked conditionally." >&5
62391 echo "$as_me: error: conditional \"AMDEP\" was never defined.
62392 Usually this means the macro was only invoked conditionally." >&2;}
62393 { (exit 1); exit 1; }; }
62395 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
62396 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
62397 Usually this means the macro was only invoked conditionally." >&5
62398 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
62399 Usually this means the macro was only invoked conditionally." >&2;}
62400 { (exit 1); exit 1; }; }
62403 : ${CONFIG_STATUS=./config.status}
62404 ac_clean_files_save=$ac_clean_files
62405 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
62406 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
62407 echo "$as_me: creating $CONFIG_STATUS" >&6;}
62408 cat >$CONFIG_STATUS <<_ACEOF
62409 #! $SHELL
62410 # Generated by $as_me.
62411 # Run this file to recreate the current configuration.
62412 # Compiler output produced by configure, useful for debugging
62413 # configure, is in config.log if it exists.
62415 debug=false
62416 ac_cs_recheck=false
62417 ac_cs_silent=false
62418 SHELL=\${CONFIG_SHELL-$SHELL}
62419 _ACEOF
62421 cat >>$CONFIG_STATUS <<\_ACEOF
62422 ## --------------------- ##
62423 ## M4sh Initialization. ##
62424 ## --------------------- ##
62426 # Be Bourne compatible
62427 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
62428 emulate sh
62429 NULLCMD=:
62430 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
62431 # is contrary to our usage. Disable this feature.
62432 alias -g '${1+"$@"}'='"$@"'
62433 setopt NO_GLOB_SUBST
62434 else
62435 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
62437 BIN_SH=xpg4; export BIN_SH # for Tru64
62438 DUALCASE=1; export DUALCASE # for MKS sh
62441 # PATH needs CR
62442 # Avoid depending upon Character Ranges.
62443 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
62444 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
62445 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
62446 as_cr_digits='0123456789'
62447 as_cr_alnum=$as_cr_Letters$as_cr_digits
62449 # The user is always right.
62450 if test "${PATH_SEPARATOR+set}" != set; then
62451 echo "#! /bin/sh" >conf$$.sh
62452 echo "exit 0" >>conf$$.sh
62453 chmod +x conf$$.sh
62454 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
62455 PATH_SEPARATOR=';'
62456 else
62457 PATH_SEPARATOR=:
62459 rm -f conf$$.sh
62462 # Support unset when possible.
62463 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
62464 as_unset=unset
62465 else
62466 as_unset=false
62470 # IFS
62471 # We need space, tab and new line, in precisely that order. Quoting is
62472 # there to prevent editors from complaining about space-tab.
62473 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
62474 # splitting by setting IFS to empty value.)
62475 as_nl='
62477 IFS=" "" $as_nl"
62479 # Find who we are. Look in the path if we contain no directory separator.
62480 case $0 in
62481 *[\\/]* ) as_myself=$0 ;;
62482 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
62483 for as_dir in $PATH
62485 IFS=$as_save_IFS
62486 test -z "$as_dir" && as_dir=.
62487 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
62488 done
62489 IFS=$as_save_IFS
62492 esac
62493 # We did not find ourselves, most probably we were run as `sh COMMAND'
62494 # in which case we are not to be found in the path.
62495 if test "x$as_myself" = x; then
62496 as_myself=$0
62498 if test ! -f "$as_myself"; then
62499 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
62500 { (exit 1); exit 1; }
62503 # Work around bugs in pre-3.0 UWIN ksh.
62504 for as_var in ENV MAIL MAILPATH
62505 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
62506 done
62507 PS1='$ '
62508 PS2='> '
62509 PS4='+ '
62511 # NLS nuisances.
62512 for as_var in \
62513 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
62514 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
62515 LC_TELEPHONE LC_TIME
62517 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
62518 eval $as_var=C; export $as_var
62519 else
62520 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
62522 done
62524 # Required to use basename.
62525 if expr a : '\(a\)' >/dev/null 2>&1 &&
62526 test "X`expr 00001 : '.*\(...\)'`" = X001; then
62527 as_expr=expr
62528 else
62529 as_expr=false
62532 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
62533 as_basename=basename
62534 else
62535 as_basename=false
62539 # Name of the executable.
62540 as_me=`$as_basename -- "$0" ||
62541 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
62542 X"$0" : 'X\(//\)$' \| \
62543 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
62544 echo X/"$0" |
62545 sed '/^.*\/\([^/][^/]*\)\/*$/{
62546 s//\1/
62549 /^X\/\(\/\/\)$/{
62550 s//\1/
62553 /^X\/\(\/\).*/{
62554 s//\1/
62557 s/.*/./; q'`
62559 # CDPATH.
62560 $as_unset CDPATH
62564 as_lineno_1=$LINENO
62565 as_lineno_2=$LINENO
62566 test "x$as_lineno_1" != "x$as_lineno_2" &&
62567 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
62569 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
62570 # uniformly replaced by the line number. The first 'sed' inserts a
62571 # line-number line after each line using $LINENO; the second 'sed'
62572 # does the real work. The second script uses 'N' to pair each
62573 # line-number line with the line containing $LINENO, and appends
62574 # trailing '-' during substitution so that $LINENO is not a special
62575 # case at line end.
62576 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
62577 # scripts with optimization help from Paolo Bonzini. Blame Lee
62578 # E. McMahon (1931-1989) for sed's syntax. :-)
62579 sed -n '
62581 /[$]LINENO/=
62582 ' <$as_myself |
62583 sed '
62584 s/[$]LINENO.*/&-/
62585 t lineno
62587 :lineno
62589 :loop
62590 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
62591 t loop
62592 s/-\n.*//
62593 ' >$as_me.lineno &&
62594 chmod +x "$as_me.lineno" ||
62595 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
62596 { (exit 1); exit 1; }; }
62598 # Don't try to exec as it changes $[0], causing all sort of problems
62599 # (the dirname of $[0] is not the place where we might find the
62600 # original and so on. Autoconf is especially sensitive to this).
62601 . "./$as_me.lineno"
62602 # Exit status is that of the last command.
62603 exit
62607 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
62608 as_dirname=dirname
62609 else
62610 as_dirname=false
62613 ECHO_C= ECHO_N= ECHO_T=
62614 case `echo -n x` in
62615 -n*)
62616 case `echo 'x\c'` in
62617 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
62618 *) ECHO_C='\c';;
62619 esac;;
62621 ECHO_N='-n';;
62622 esac
62624 if expr a : '\(a\)' >/dev/null 2>&1 &&
62625 test "X`expr 00001 : '.*\(...\)'`" = X001; then
62626 as_expr=expr
62627 else
62628 as_expr=false
62631 rm -f conf$$ conf$$.exe conf$$.file
62632 if test -d conf$$.dir; then
62633 rm -f conf$$.dir/conf$$.file
62634 else
62635 rm -f conf$$.dir
62636 mkdir conf$$.dir
62638 echo >conf$$.file
62639 if ln -s conf$$.file conf$$ 2>/dev/null; then
62640 as_ln_s='ln -s'
62641 # ... but there are two gotchas:
62642 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
62643 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
62644 # In both cases, we have to default to `cp -p'.
62645 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
62646 as_ln_s='cp -p'
62647 elif ln conf$$.file conf$$ 2>/dev/null; then
62648 as_ln_s=ln
62649 else
62650 as_ln_s='cp -p'
62652 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
62653 rmdir conf$$.dir 2>/dev/null
62655 if mkdir -p . 2>/dev/null; then
62656 as_mkdir_p=:
62657 else
62658 test -d ./-p && rmdir ./-p
62659 as_mkdir_p=false
62662 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
62663 # systems may use methods other than mode bits to determine executability.
62664 cat >conf$$.file <<_ASEOF
62665 #! /bin/sh
62666 exit 0
62667 _ASEOF
62668 chmod +x conf$$.file
62669 if test -x conf$$.file >/dev/null 2>&1; then
62670 as_executable_p="test -x"
62671 else
62672 as_executable_p=:
62674 rm -f conf$$.file
62676 # Sed expression to map a string onto a valid CPP name.
62677 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
62679 # Sed expression to map a string onto a valid variable name.
62680 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
62683 exec 6>&1
62685 # Save the log message, to keep $[0] and so on meaningful, and to
62686 # report actual input values of CONFIG_FILES etc. instead of their
62687 # values after options handling.
62688 ac_log="
62689 This file was extended by GNU coreutils $as_me 6.1, which was
62690 generated by GNU Autoconf 2.60. Invocation command line was
62692 CONFIG_FILES = $CONFIG_FILES
62693 CONFIG_HEADERS = $CONFIG_HEADERS
62694 CONFIG_LINKS = $CONFIG_LINKS
62695 CONFIG_COMMANDS = $CONFIG_COMMANDS
62696 $ $0 $@
62698 on `(hostname || uname -n) 2>/dev/null | sed 1q`
62701 _ACEOF
62703 cat >>$CONFIG_STATUS <<_ACEOF
62704 # Files that config.status was made for.
62705 config_files="$ac_config_files"
62706 config_headers="$ac_config_headers"
62707 config_commands="$ac_config_commands"
62709 _ACEOF
62711 cat >>$CONFIG_STATUS <<\_ACEOF
62712 ac_cs_usage="\
62713 \`$as_me' instantiates files from templates according to the
62714 current configuration.
62716 Usage: $0 [OPTIONS] [FILE]...
62718 -h, --help print this help, then exit
62719 -V, --version print version number, then exit
62720 -q, --quiet do not print progress messages
62721 -d, --debug don't remove temporary files
62722 --recheck update $as_me by reconfiguring in the same conditions
62723 --file=FILE[:TEMPLATE]
62724 instantiate the configuration file FILE
62725 --header=FILE[:TEMPLATE]
62726 instantiate the configuration header FILE
62728 Configuration files:
62729 $config_files
62731 Configuration headers:
62732 $config_headers
62734 Configuration commands:
62735 $config_commands
62737 Report bugs to <bug-autoconf@gnu.org>."
62739 _ACEOF
62740 cat >>$CONFIG_STATUS <<_ACEOF
62741 ac_cs_version="\\
62742 GNU coreutils config.status 6.1
62743 configured by $0, generated by GNU Autoconf 2.60,
62744 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
62746 Copyright (C) 2006 Free Software Foundation, Inc.
62747 This config.status script is free software; the Free Software Foundation
62748 gives unlimited permission to copy, distribute and modify it."
62750 ac_pwd='$ac_pwd'
62751 srcdir='$srcdir'
62752 INSTALL='$INSTALL'
62753 _ACEOF
62755 cat >>$CONFIG_STATUS <<\_ACEOF
62756 # If no file are specified by the user, then we need to provide default
62757 # value. By we need to know if files were specified by the user.
62758 ac_need_defaults=:
62759 while test $# != 0
62761 case $1 in
62762 --*=*)
62763 ac_option=`expr "X$1" : 'X\([^=]*\)='`
62764 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
62765 ac_shift=:
62768 ac_option=$1
62769 ac_optarg=$2
62770 ac_shift=shift
62772 esac
62774 case $ac_option in
62775 # Handling of the options.
62776 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
62777 ac_cs_recheck=: ;;
62778 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
62779 echo "$ac_cs_version"; exit ;;
62780 --debug | --debu | --deb | --de | --d | -d )
62781 debug=: ;;
62782 --file | --fil | --fi | --f )
62783 $ac_shift
62784 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
62785 ac_need_defaults=false;;
62786 --header | --heade | --head | --hea )
62787 $ac_shift
62788 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
62789 ac_need_defaults=false;;
62790 --he | --h)
62791 # Conflict between --help and --header
62792 { echo "$as_me: error: ambiguous option: $1
62793 Try \`$0 --help' for more information." >&2
62794 { (exit 1); exit 1; }; };;
62795 --help | --hel | -h )
62796 echo "$ac_cs_usage"; exit ;;
62797 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
62798 | -silent | --silent | --silen | --sile | --sil | --si | --s)
62799 ac_cs_silent=: ;;
62801 # This is an error.
62802 -*) { echo "$as_me: error: unrecognized option: $1
62803 Try \`$0 --help' for more information." >&2
62804 { (exit 1); exit 1; }; } ;;
62806 *) ac_config_targets="$ac_config_targets $1"
62807 ac_need_defaults=false ;;
62809 esac
62810 shift
62811 done
62813 ac_configure_extra_args=
62815 if $ac_cs_silent; then
62816 exec 6>/dev/null
62817 ac_configure_extra_args="$ac_configure_extra_args --silent"
62820 _ACEOF
62821 cat >>$CONFIG_STATUS <<_ACEOF
62822 if \$ac_cs_recheck; then
62823 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
62824 CONFIG_SHELL=$SHELL
62825 export CONFIG_SHELL
62826 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
62829 _ACEOF
62830 cat >>$CONFIG_STATUS <<\_ACEOF
62831 exec 5>>config.log
62833 echo
62834 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
62835 ## Running $as_me. ##
62836 _ASBOX
62837 echo "$ac_log"
62838 } >&5
62840 _ACEOF
62841 cat >>$CONFIG_STATUS <<_ACEOF
62843 # INIT-COMMANDS
62845 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
62846 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
62847 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
62848 # from automake < 1.5.
62849 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
62850 # Capture the value of LINGUAS because we need it to compute CATALOGS.
62851 LINGUAS="${LINGUAS-%UNSET%}"
62854 _ACEOF
62856 cat >>$CONFIG_STATUS <<\_ACEOF
62858 # Handling of arguments.
62859 for ac_config_target in $ac_config_targets
62861 case $ac_config_target in
62862 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.hin" ;;
62863 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
62864 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
62865 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
62866 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
62867 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
62868 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
62869 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
62870 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
62871 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
62872 "tests/chgrp/Makefile") CONFIG_FILES="$CONFIG_FILES tests/chgrp/Makefile" ;;
62873 "tests/chmod/Makefile") CONFIG_FILES="$CONFIG_FILES tests/chmod/Makefile" ;;
62874 "tests/chown/Makefile") CONFIG_FILES="$CONFIG_FILES tests/chown/Makefile" ;;
62875 "tests/cp/Makefile") CONFIG_FILES="$CONFIG_FILES tests/cp/Makefile" ;;
62876 "tests/cut/Makefile") CONFIG_FILES="$CONFIG_FILES tests/cut/Makefile" ;;
62877 "tests/dd/Makefile") CONFIG_FILES="$CONFIG_FILES tests/dd/Makefile" ;;
62878 "tests/dircolors/Makefile") CONFIG_FILES="$CONFIG_FILES tests/dircolors/Makefile" ;;
62879 "tests/du/Makefile") CONFIG_FILES="$CONFIG_FILES tests/du/Makefile" ;;
62880 "tests/expr/Makefile") CONFIG_FILES="$CONFIG_FILES tests/expr/Makefile" ;;
62881 "tests/factor/Makefile") CONFIG_FILES="$CONFIG_FILES tests/factor/Makefile" ;;
62882 "tests/fmt/Makefile") CONFIG_FILES="$CONFIG_FILES tests/fmt/Makefile" ;;
62883 "tests/head/Makefile") CONFIG_FILES="$CONFIG_FILES tests/head/Makefile" ;;
62884 "tests/install/Makefile") CONFIG_FILES="$CONFIG_FILES tests/install/Makefile" ;;
62885 "tests/join/Makefile") CONFIG_FILES="$CONFIG_FILES tests/join/Makefile" ;;
62886 "tests/ln/Makefile") CONFIG_FILES="$CONFIG_FILES tests/ln/Makefile" ;;
62887 "tests/ls-2/Makefile") CONFIG_FILES="$CONFIG_FILES tests/ls-2/Makefile" ;;
62888 "tests/ls/Makefile") CONFIG_FILES="$CONFIG_FILES tests/ls/Makefile" ;;
62889 "tests/md5sum/Makefile") CONFIG_FILES="$CONFIG_FILES tests/md5sum/Makefile" ;;
62890 "tests/misc/Makefile") CONFIG_FILES="$CONFIG_FILES tests/misc/Makefile" ;;
62891 "tests/mkdir/Makefile") CONFIG_FILES="$CONFIG_FILES tests/mkdir/Makefile" ;;
62892 "tests/mv/Makefile") CONFIG_FILES="$CONFIG_FILES tests/mv/Makefile" ;;
62893 "tests/od/Makefile") CONFIG_FILES="$CONFIG_FILES tests/od/Makefile" ;;
62894 "tests/pr/Makefile") CONFIG_FILES="$CONFIG_FILES tests/pr/Makefile" ;;
62895 "tests/readlink/Makefile") CONFIG_FILES="$CONFIG_FILES tests/readlink/Makefile" ;;
62896 "tests/rm/Makefile") CONFIG_FILES="$CONFIG_FILES tests/rm/Makefile" ;;
62897 "tests/rmdir/Makefile") CONFIG_FILES="$CONFIG_FILES tests/rmdir/Makefile" ;;
62898 "tests/seq/Makefile") CONFIG_FILES="$CONFIG_FILES tests/seq/Makefile" ;;
62899 "tests/sha1sum/Makefile") CONFIG_FILES="$CONFIG_FILES tests/sha1sum/Makefile" ;;
62900 "tests/shred/Makefile") CONFIG_FILES="$CONFIG_FILES tests/shred/Makefile" ;;
62901 "tests/sort/Makefile") CONFIG_FILES="$CONFIG_FILES tests/sort/Makefile" ;;
62902 "tests/stty/Makefile") CONFIG_FILES="$CONFIG_FILES tests/stty/Makefile" ;;
62903 "tests/sum/Makefile") CONFIG_FILES="$CONFIG_FILES tests/sum/Makefile" ;;
62904 "tests/tac/Makefile") CONFIG_FILES="$CONFIG_FILES tests/tac/Makefile" ;;
62905 "tests/tail-2/Makefile") CONFIG_FILES="$CONFIG_FILES tests/tail-2/Makefile" ;;
62906 "tests/tail/Makefile") CONFIG_FILES="$CONFIG_FILES tests/tail/Makefile" ;;
62907 "tests/tee/Makefile") CONFIG_FILES="$CONFIG_FILES tests/tee/Makefile" ;;
62908 "tests/test/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test/Makefile" ;;
62909 "tests/touch/Makefile") CONFIG_FILES="$CONFIG_FILES tests/touch/Makefile" ;;
62910 "tests/tr/Makefile") CONFIG_FILES="$CONFIG_FILES tests/tr/Makefile" ;;
62911 "tests/tsort/Makefile") CONFIG_FILES="$CONFIG_FILES tests/tsort/Makefile" ;;
62912 "tests/unexpand/Makefile") CONFIG_FILES="$CONFIG_FILES tests/unexpand/Makefile" ;;
62913 "tests/uniq/Makefile") CONFIG_FILES="$CONFIG_FILES tests/uniq/Makefile" ;;
62914 "tests/wc/Makefile") CONFIG_FILES="$CONFIG_FILES tests/wc/Makefile" ;;
62916 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
62917 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
62918 { (exit 1); exit 1; }; };;
62919 esac
62920 done
62923 # If the user did not use the arguments to specify the items to instantiate,
62924 # then the envvar interface is used. Set only those that are not.
62925 # We use the long form for the default assignment because of an extremely
62926 # bizarre bug on SunOS 4.1.3.
62927 if $ac_need_defaults; then
62928 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
62929 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
62930 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
62933 # Have a temporary directory for convenience. Make it in the build tree
62934 # simply because there is no reason against having it here, and in addition,
62935 # creating and moving files from /tmp can sometimes cause problems.
62936 # Hook for its removal unless debugging.
62937 # Note that there is a small window in which the directory will not be cleaned:
62938 # after its creation but before its name has been assigned to `$tmp'.
62939 $debug ||
62941 tmp=
62942 trap 'exit_status=$?
62943 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
62945 trap '{ (exit 1); exit 1; }' 1 2 13 15
62947 # Create a (secure) tmp directory for tmp files.
62950 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
62951 test -n "$tmp" && test -d "$tmp"
62952 } ||
62954 tmp=./conf$$-$RANDOM
62955 (umask 077 && mkdir "$tmp")
62956 } ||
62958 echo "$me: cannot create a temporary directory in ." >&2
62959 { (exit 1); exit 1; }
62963 # Set up the sed scripts for CONFIG_FILES section.
62966 # No need to generate the scripts if there are no CONFIG_FILES.
62967 # This happens for instance when ./config.status config.h
62968 if test -n "$CONFIG_FILES"; then
62970 _ACEOF
62974 ac_delim='%!_!# '
62975 for ac_last_try in false false false false false :; do
62976 cat >conf$$subs.sed <<_ACEOF
62977 SHELL!$SHELL$ac_delim
62978 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
62979 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
62980 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
62981 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
62982 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
62983 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
62984 exec_prefix!$exec_prefix$ac_delim
62985 prefix!$prefix$ac_delim
62986 program_transform_name!$program_transform_name$ac_delim
62987 bindir!$bindir$ac_delim
62988 sbindir!$sbindir$ac_delim
62989 libexecdir!$libexecdir$ac_delim
62990 datarootdir!$datarootdir$ac_delim
62991 datadir!$datadir$ac_delim
62992 sysconfdir!$sysconfdir$ac_delim
62993 sharedstatedir!$sharedstatedir$ac_delim
62994 localstatedir!$localstatedir$ac_delim
62995 includedir!$includedir$ac_delim
62996 oldincludedir!$oldincludedir$ac_delim
62997 docdir!$docdir$ac_delim
62998 infodir!$infodir$ac_delim
62999 htmldir!$htmldir$ac_delim
63000 dvidir!$dvidir$ac_delim
63001 pdfdir!$pdfdir$ac_delim
63002 psdir!$psdir$ac_delim
63003 libdir!$libdir$ac_delim
63004 localedir!$localedir$ac_delim
63005 mandir!$mandir$ac_delim
63006 DEFS!$DEFS$ac_delim
63007 ECHO_C!$ECHO_C$ac_delim
63008 ECHO_N!$ECHO_N$ac_delim
63009 ECHO_T!$ECHO_T$ac_delim
63010 LIBS!$LIBS$ac_delim
63011 build_alias!$build_alias$ac_delim
63012 host_alias!$host_alias$ac_delim
63013 target_alias!$target_alias$ac_delim
63014 build!$build$ac_delim
63015 build_cpu!$build_cpu$ac_delim
63016 build_vendor!$build_vendor$ac_delim
63017 build_os!$build_os$ac_delim
63018 host!$host$ac_delim
63019 host_cpu!$host_cpu$ac_delim
63020 host_vendor!$host_vendor$ac_delim
63021 host_os!$host_os$ac_delim
63022 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
63023 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
63024 INSTALL_DATA!$INSTALL_DATA$ac_delim
63025 CYGPATH_W!$CYGPATH_W$ac_delim
63026 PACKAGE!$PACKAGE$ac_delim
63027 VERSION!$VERSION$ac_delim
63028 ACLOCAL!$ACLOCAL$ac_delim
63029 AUTOCONF!$AUTOCONF$ac_delim
63030 AUTOMAKE!$AUTOMAKE$ac_delim
63031 AUTOHEADER!$AUTOHEADER$ac_delim
63032 MAKEINFO!$MAKEINFO$ac_delim
63033 install_sh!$install_sh$ac_delim
63034 STRIP!$STRIP$ac_delim
63035 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
63036 mkdir_p!$mkdir_p$ac_delim
63037 AWK!$AWK$ac_delim
63038 SET_MAKE!$SET_MAKE$ac_delim
63039 am__leading_dot!$am__leading_dot$ac_delim
63040 AMTAR!$AMTAR$ac_delim
63041 am__tar!$am__tar$ac_delim
63042 am__untar!$am__untar$ac_delim
63043 DEFAULT_POSIX2_VERSION!$DEFAULT_POSIX2_VERSION$ac_delim
63044 CC!$CC$ac_delim
63045 CFLAGS!$CFLAGS$ac_delim
63046 LDFLAGS!$LDFLAGS$ac_delim
63047 CPPFLAGS!$CPPFLAGS$ac_delim
63048 ac_ct_CC!$ac_ct_CC$ac_delim
63049 EXEEXT!$EXEEXT$ac_delim
63050 OBJEXT!$OBJEXT$ac_delim
63051 DEPDIR!$DEPDIR$ac_delim
63052 am__include!$am__include$ac_delim
63053 am__quote!$am__quote$ac_delim
63054 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
63055 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
63056 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
63057 CCDEPMODE!$CCDEPMODE$ac_delim
63058 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
63059 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
63060 CPP!$CPP$ac_delim
63061 GREP!$GREP$ac_delim
63062 EGREP!$EGREP$ac_delim
63063 PERL!$PERL$ac_delim
63064 RANLIB!$RANLIB$ac_delim
63065 LN_S!$LN_S$ac_delim
63066 GNU_PACKAGE!$GNU_PACKAGE$ac_delim
63067 HELP2MAN!$HELP2MAN$ac_delim
63068 OPTIONAL_BIN_PROGS!$OPTIONAL_BIN_PROGS$ac_delim
63069 MAN!$MAN$ac_delim
63070 DF_PROG!$DF_PROG$ac_delim
63071 U!$U$ac_delim
63072 ANSI2KNR!$ANSI2KNR$ac_delim
63073 LIBOBJS!$LIBOBJS$ac_delim
63074 _ACEOF
63076 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
63077 break
63078 elif $ac_last_try; then
63079 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
63080 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
63081 { (exit 1); exit 1; }; }
63082 else
63083 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
63085 done
63087 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
63088 if test -n "$ac_eof"; then
63089 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
63090 ac_eof=`expr $ac_eof + 1`
63093 cat >>$CONFIG_STATUS <<_ACEOF
63094 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
63095 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
63096 _ACEOF
63097 sed '
63098 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
63099 s/^/s,@/; s/!/@,|#_!!_#|/
63102 s/'"$ac_delim"'$/,g/; t
63103 s/$/\\/; p
63104 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
63105 ' >>$CONFIG_STATUS <conf$$subs.sed
63106 rm -f conf$$subs.sed
63107 cat >>$CONFIG_STATUS <<_ACEOF
63108 CEOF$ac_eof
63109 _ACEOF
63112 ac_delim='%!_!# '
63113 for ac_last_try in false false false false false :; do
63114 cat >conf$$subs.sed <<_ACEOF
63115 STDBOOL_H!$STDBOOL_H$ac_delim
63116 HAVE__BOOL!$HAVE__BOOL$ac_delim
63117 ALLOCA!$ALLOCA$ac_delim
63118 ALLOCA_H!$ALLOCA_H$ac_delim
63119 SYS_SOCKET_H!$SYS_SOCKET_H$ac_delim
63120 FNMATCH_H!$FNMATCH_H$ac_delim
63121 NEED_SETGID!$NEED_SETGID$ac_delim
63122 KMEM_GROUP!$KMEM_GROUP$ac_delim
63123 GETLOADAVG_LIBS!$GETLOADAVG_LIBS$ac_delim
63124 LIB_EACCESS!$LIB_EACCESS$ac_delim
63125 POW_LIB!$POW_LIB$ac_delim
63126 EOVERFLOW!$EOVERFLOW$ac_delim
63127 YACC!$YACC$ac_delim
63128 YFLAGS!$YFLAGS$ac_delim
63129 LIB_CLOCK_GETTIME!$LIB_CLOCK_GETTIME$ac_delim
63130 LIB_GETHRXTIME!$LIB_GETHRXTIME$ac_delim
63131 GETOPT_H!$GETOPT_H$ac_delim
63132 ARPA_INET_H!$ARPA_INET_H$ac_delim
63133 NETINET_IN_H!$NETINET_IN_H$ac_delim
63134 GLIBC21!$GLIBC21$ac_delim
63135 HAVE_LONG_LONG_INT!$HAVE_LONG_LONG_INT$ac_delim
63136 HAVE_WCHAR_H!$HAVE_WCHAR_H$ac_delim
63137 HAVE_INTTYPES_H!$HAVE_INTTYPES_H$ac_delim
63138 HAVE_SYS_TYPES_H!$HAVE_SYS_TYPES_H$ac_delim
63139 ABSOLUTE_STDINT_H!$ABSOLUTE_STDINT_H$ac_delim
63140 HAVE_STDINT_H!$HAVE_STDINT_H$ac_delim
63141 HAVE_SYS_INTTYPES_H!$HAVE_SYS_INTTYPES_H$ac_delim
63142 HAVE_SYS_BITYPES_H!$HAVE_SYS_BITYPES_H$ac_delim
63143 BITSIZEOF_PTRDIFF_T!$BITSIZEOF_PTRDIFF_T$ac_delim
63144 BITSIZEOF_SIG_ATOMIC_T!$BITSIZEOF_SIG_ATOMIC_T$ac_delim
63145 BITSIZEOF_SIZE_T!$BITSIZEOF_SIZE_T$ac_delim
63146 BITSIZEOF_WCHAR_T!$BITSIZEOF_WCHAR_T$ac_delim
63147 BITSIZEOF_WINT_T!$BITSIZEOF_WINT_T$ac_delim
63148 HAVE_SIGNED_SIG_ATOMIC_T!$HAVE_SIGNED_SIG_ATOMIC_T$ac_delim
63149 HAVE_SIGNED_WCHAR_T!$HAVE_SIGNED_WCHAR_T$ac_delim
63150 HAVE_SIGNED_WINT_T!$HAVE_SIGNED_WINT_T$ac_delim
63151 PTRDIFF_T_SUFFIX!$PTRDIFF_T_SUFFIX$ac_delim
63152 SIG_ATOMIC_T_SUFFIX!$SIG_ATOMIC_T_SUFFIX$ac_delim
63153 SIZE_T_SUFFIX!$SIZE_T_SUFFIX$ac_delim
63154 WCHAR_T_SUFFIX!$WCHAR_T_SUFFIX$ac_delim
63155 WINT_T_SUFFIX!$WINT_T_SUFFIX$ac_delim
63156 STDINT_H!$STDINT_H$ac_delim
63157 LIB_NANOSLEEP!$LIB_NANOSLEEP$ac_delim
63158 LIB_ACL!$LIB_ACL$ac_delim
63159 LIB_FDATASYNC!$LIB_FDATASYNC$ac_delim
63160 SEQ_LIBM!$SEQ_LIBM$ac_delim
63161 LIBICONV!$LIBICONV$ac_delim
63162 LTLIBICONV!$LTLIBICONV$ac_delim
63163 LIB_CRYPT!$LIB_CRYPT$ac_delim
63164 USE_NLS!$USE_NLS$ac_delim
63165 MSGFMT!$MSGFMT$ac_delim
63166 GMSGFMT!$GMSGFMT$ac_delim
63167 MSGFMT_015!$MSGFMT_015$ac_delim
63168 GMSGFMT_015!$GMSGFMT_015$ac_delim
63169 XGETTEXT!$XGETTEXT$ac_delim
63170 XGETTEXT_015!$XGETTEXT_015$ac_delim
63171 MSGMERGE!$MSGMERGE$ac_delim
63172 INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
63173 INTLLIBS!$INTLLIBS$ac_delim
63174 LIBINTL!$LIBINTL$ac_delim
63175 LTLIBINTL!$LTLIBINTL$ac_delim
63176 POSUB!$POSUB$ac_delim
63177 LTLIBOBJS!$LTLIBOBJS$ac_delim
63178 _ACEOF
63180 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 63; then
63181 break
63182 elif $ac_last_try; then
63183 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
63184 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
63185 { (exit 1); exit 1; }; }
63186 else
63187 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
63189 done
63191 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
63192 if test -n "$ac_eof"; then
63193 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
63194 ac_eof=`expr $ac_eof + 1`
63197 cat >>$CONFIG_STATUS <<_ACEOF
63198 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
63199 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
63200 _ACEOF
63201 sed '
63202 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
63203 s/^/s,@/; s/!/@,|#_!!_#|/
63206 s/'"$ac_delim"'$/,g/; t
63207 s/$/\\/; p
63208 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
63209 ' >>$CONFIG_STATUS <conf$$subs.sed
63210 rm -f conf$$subs.sed
63211 cat >>$CONFIG_STATUS <<_ACEOF
63212 :end
63213 s/|#_!!_#|//g
63214 CEOF$ac_eof
63215 _ACEOF
63218 # VPATH may cause trouble with some makes, so we remove $(srcdir),
63219 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
63220 # trailing colons and then remove the whole line if VPATH becomes empty
63221 # (actually we leave an empty line to preserve line numbers).
63222 if test "x$srcdir" = x.; then
63223 ac_vpsub='/^[ ]*VPATH[ ]*=/{
63224 s/:*\$(srcdir):*/:/
63225 s/:*\${srcdir}:*/:/
63226 s/:*@srcdir@:*/:/
63227 s/^\([^=]*=[ ]*\):*/\1/
63228 s/:*$//
63229 s/^[^=]*=[ ]*$//
63233 cat >>$CONFIG_STATUS <<\_ACEOF
63234 fi # test -n "$CONFIG_FILES"
63237 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
63239 case $ac_tag in
63240 :[FHLC]) ac_mode=$ac_tag; continue;;
63241 esac
63242 case $ac_mode$ac_tag in
63243 :[FHL]*:*);;
63244 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
63245 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
63246 { (exit 1); exit 1; }; };;
63247 :[FH]-) ac_tag=-:-;;
63248 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
63249 esac
63250 ac_save_IFS=$IFS
63251 IFS=:
63252 set x $ac_tag
63253 IFS=$ac_save_IFS
63254 shift
63255 ac_file=$1
63256 shift
63258 case $ac_mode in
63259 :L) ac_source=$1;;
63260 :[FH])
63261 ac_file_inputs=
63262 for ac_f
63264 case $ac_f in
63265 -) ac_f="$tmp/stdin";;
63266 *) # Look for the file first in the build tree, then in the source tree
63267 # (if the path is not absolute). The absolute path cannot be DOS-style,
63268 # because $ac_f cannot contain `:'.
63269 test -f "$ac_f" ||
63270 case $ac_f in
63271 [\\/$]*) false;;
63272 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
63273 esac ||
63274 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
63275 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
63276 { (exit 1); exit 1; }; };;
63277 esac
63278 ac_file_inputs="$ac_file_inputs $ac_f"
63279 done
63281 # Let's still pretend it is `configure' which instantiates (i.e., don't
63282 # use $as_me), people would be surprised to read:
63283 # /* config.h. Generated by config.status. */
63284 configure_input="Generated from "`IFS=:
63285 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
63286 if test x"$ac_file" != x-; then
63287 configure_input="$ac_file. $configure_input"
63288 { echo "$as_me:$LINENO: creating $ac_file" >&5
63289 echo "$as_me: creating $ac_file" >&6;}
63292 case $ac_tag in
63293 *:-:* | *:-) cat >"$tmp/stdin";;
63294 esac
63296 esac
63298 ac_dir=`$as_dirname -- "$ac_file" ||
63299 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
63300 X"$ac_file" : 'X\(//\)[^/]' \| \
63301 X"$ac_file" : 'X\(//\)$' \| \
63302 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
63303 echo X"$ac_file" |
63304 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
63305 s//\1/
63308 /^X\(\/\/\)[^/].*/{
63309 s//\1/
63312 /^X\(\/\/\)$/{
63313 s//\1/
63316 /^X\(\/\).*/{
63317 s//\1/
63320 s/.*/./; q'`
63321 { as_dir="$ac_dir"
63322 case $as_dir in #(
63323 -*) as_dir=./$as_dir;;
63324 esac
63325 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
63326 as_dirs=
63327 while :; do
63328 case $as_dir in #(
63329 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
63330 *) as_qdir=$as_dir;;
63331 esac
63332 as_dirs="'$as_qdir' $as_dirs"
63333 as_dir=`$as_dirname -- "$as_dir" ||
63334 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
63335 X"$as_dir" : 'X\(//\)[^/]' \| \
63336 X"$as_dir" : 'X\(//\)$' \| \
63337 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
63338 echo X"$as_dir" |
63339 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
63340 s//\1/
63343 /^X\(\/\/\)[^/].*/{
63344 s//\1/
63347 /^X\(\/\/\)$/{
63348 s//\1/
63351 /^X\(\/\).*/{
63352 s//\1/
63355 s/.*/./; q'`
63356 test -d "$as_dir" && break
63357 done
63358 test -z "$as_dirs" || eval "mkdir $as_dirs"
63359 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
63360 echo "$as_me: error: cannot create directory $as_dir" >&2;}
63361 { (exit 1); exit 1; }; }; }
63362 ac_builddir=.
63364 case "$ac_dir" in
63365 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
63367 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
63368 # A ".." for each directory in $ac_dir_suffix.
63369 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
63370 case $ac_top_builddir_sub in
63371 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
63372 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
63373 esac ;;
63374 esac
63375 ac_abs_top_builddir=$ac_pwd
63376 ac_abs_builddir=$ac_pwd$ac_dir_suffix
63377 # for backward compatibility:
63378 ac_top_builddir=$ac_top_build_prefix
63380 case $srcdir in
63381 .) # We are building in place.
63382 ac_srcdir=.
63383 ac_top_srcdir=$ac_top_builddir_sub
63384 ac_abs_top_srcdir=$ac_pwd ;;
63385 [\\/]* | ?:[\\/]* ) # Absolute name.
63386 ac_srcdir=$srcdir$ac_dir_suffix;
63387 ac_top_srcdir=$srcdir
63388 ac_abs_top_srcdir=$srcdir ;;
63389 *) # Relative name.
63390 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
63391 ac_top_srcdir=$ac_top_build_prefix$srcdir
63392 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
63393 esac
63394 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
63397 case $ac_mode in
63400 # CONFIG_FILE
63403 case $INSTALL in
63404 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
63405 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
63406 esac
63407 _ACEOF
63409 cat >>$CONFIG_STATUS <<\_ACEOF
63410 # If the template does not know about datarootdir, expand it.
63411 # FIXME: This hack should be removed a few years after 2.60.
63412 ac_datarootdir_hack=; ac_datarootdir_seen=
63414 case `sed -n '/datarootdir/ {
63418 /@datadir@/p
63419 /@docdir@/p
63420 /@infodir@/p
63421 /@localedir@/p
63422 /@mandir@/p
63423 ' $ac_file_inputs` in
63424 *datarootdir*) ac_datarootdir_seen=yes;;
63425 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
63426 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
63427 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
63428 _ACEOF
63429 cat >>$CONFIG_STATUS <<_ACEOF
63430 ac_datarootdir_hack='
63431 s&@datadir@&$datadir&g
63432 s&@docdir@&$docdir&g
63433 s&@infodir@&$infodir&g
63434 s&@localedir@&$localedir&g
63435 s&@mandir@&$mandir&g
63436 s&\\\${datarootdir}&$datarootdir&g' ;;
63437 esac
63438 _ACEOF
63440 # Neutralize VPATH when `$srcdir' = `.'.
63441 # Shell code in configure.ac might set extrasub.
63442 # FIXME: do we really want to maintain this feature?
63443 cat >>$CONFIG_STATUS <<_ACEOF
63444 sed "$ac_vpsub
63445 $extrasub
63446 _ACEOF
63447 cat >>$CONFIG_STATUS <<\_ACEOF
63449 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
63450 s&@configure_input@&$configure_input&;t t
63451 s&@top_builddir@&$ac_top_builddir_sub&;t t
63452 s&@srcdir@&$ac_srcdir&;t t
63453 s&@abs_srcdir@&$ac_abs_srcdir&;t t
63454 s&@top_srcdir@&$ac_top_srcdir&;t t
63455 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
63456 s&@builddir@&$ac_builddir&;t t
63457 s&@abs_builddir@&$ac_abs_builddir&;t t
63458 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
63459 s&@INSTALL@&$ac_INSTALL&;t t
63460 $ac_datarootdir_hack
63461 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
63463 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
63464 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
63465 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
63466 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
63467 which seems to be undefined. Please make sure it is defined." >&5
63468 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
63469 which seems to be undefined. Please make sure it is defined." >&2;}
63471 rm -f "$tmp/stdin"
63472 case $ac_file in
63473 -) cat "$tmp/out"; rm -f "$tmp/out";;
63474 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
63475 esac
63479 # CONFIG_HEADER
63481 _ACEOF
63483 # Transform confdefs.h into a sed script `conftest.defines', that
63484 # substitutes the proper values into config.h.in to produce config.h.
63485 rm -f conftest.defines conftest.tail
63486 # First, append a space to every undef/define line, to ease matching.
63487 echo 's/$/ /' >conftest.defines
63488 # Then, protect against being on the right side of a sed subst, or in
63489 # an unquoted here document, in config.status. If some macros were
63490 # called several times there might be several #defines for the same
63491 # symbol, which is useless. But do not sort them, since the last
63492 # AC_DEFINE must be honored.
63493 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
63494 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
63495 # NAME is the cpp macro being defined, VALUE is the value it is being given.
63496 # PARAMS is the parameter list in the macro definition--in most cases, it's
63497 # just an empty string.
63498 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
63499 ac_dB='\\)[ (].*,\\1define\\2'
63500 ac_dC=' '
63501 ac_dD=' ,'
63503 uniq confdefs.h |
63504 sed -n '
63505 t rset
63506 :rset
63507 s/^[ ]*#[ ]*define[ ][ ]*//
63508 t ok
63511 s/[\\&,]/\\&/g
63512 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
63513 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
63514 ' >>conftest.defines
63516 # Remove the space that was appended to ease matching.
63517 # Then replace #undef with comments. This is necessary, for
63518 # example, in the case of _POSIX_SOURCE, which is predefined and required
63519 # on some systems where configure will not decide to define it.
63520 # (The regexp can be short, since the line contains either #define or #undef.)
63521 echo 's/ $//
63522 s,^[ #]*u.*,/* & */,' >>conftest.defines
63524 # Break up conftest.defines:
63525 ac_max_sed_lines=50
63527 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
63528 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
63529 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
63530 # et cetera.
63531 ac_in='$ac_file_inputs'
63532 ac_out='"$tmp/out1"'
63533 ac_nxt='"$tmp/out2"'
63535 while :
63537 # Write a here document:
63538 cat >>$CONFIG_STATUS <<_ACEOF
63539 # First, check the format of the line:
63540 cat >"\$tmp/defines.sed" <<\\CEOF
63541 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
63542 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
63544 :def
63545 _ACEOF
63546 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
63547 echo 'CEOF
63548 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
63549 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
63550 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
63551 grep . conftest.tail >/dev/null || break
63552 rm -f conftest.defines
63553 mv conftest.tail conftest.defines
63554 done
63555 rm -f conftest.defines conftest.tail
63557 echo "ac_result=$ac_in" >>$CONFIG_STATUS
63558 cat >>$CONFIG_STATUS <<\_ACEOF
63559 if test x"$ac_file" != x-; then
63560 echo "/* $configure_input */" >"$tmp/config.h"
63561 cat "$ac_result" >>"$tmp/config.h"
63562 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
63563 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
63564 echo "$as_me: $ac_file is unchanged" >&6;}
63565 else
63566 rm -f $ac_file
63567 mv "$tmp/config.h" $ac_file
63569 else
63570 echo "/* $configure_input */"
63571 cat "$ac_result"
63573 rm -f "$tmp/out12"
63574 # Compute $ac_file's index in $config_headers.
63575 _am_stamp_count=1
63576 for _am_header in $config_headers :; do
63577 case $_am_header in
63578 $ac_file | $ac_file:* )
63579 break ;;
63581 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
63582 esac
63583 done
63584 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
63585 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
63586 X$ac_file : 'X\(//\)[^/]' \| \
63587 X$ac_file : 'X\(//\)$' \| \
63588 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
63589 echo X$ac_file |
63590 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
63591 s//\1/
63594 /^X\(\/\/\)[^/].*/{
63595 s//\1/
63598 /^X\(\/\/\)$/{
63599 s//\1/
63602 /^X\(\/\).*/{
63603 s//\1/
63606 s/.*/./; q'`/stamp-h$_am_stamp_count
63609 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
63610 echo "$as_me: executing $ac_file commands" >&6;}
63612 esac
63615 case $ac_file$ac_mode in
63616 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
63617 # Strip MF so we end up with the name of the file.
63618 mf=`echo "$mf" | sed -e 's/:.*$//'`
63619 # Check whether this is an Automake generated Makefile or not.
63620 # We used to match only the files named `Makefile.in', but
63621 # some people rename them; so instead we look at the file content.
63622 # Grep'ing the first line is not enough: some people post-process
63623 # each Makefile.in and add a new line on top of each file to say so.
63624 # So let's grep whole file.
63625 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
63626 dirpart=`$as_dirname -- "$mf" ||
63627 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
63628 X"$mf" : 'X\(//\)[^/]' \| \
63629 X"$mf" : 'X\(//\)$' \| \
63630 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
63631 echo X"$mf" |
63632 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
63633 s//\1/
63636 /^X\(\/\/\)[^/].*/{
63637 s//\1/
63640 /^X\(\/\/\)$/{
63641 s//\1/
63644 /^X\(\/\).*/{
63645 s//\1/
63648 s/.*/./; q'`
63649 else
63650 continue
63652 # Extract the definition of DEPDIR, am__include, and am__quote
63653 # from the Makefile without running `make'.
63654 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
63655 test -z "$DEPDIR" && continue
63656 am__include=`sed -n 's/^am__include = //p' < "$mf"`
63657 test -z "am__include" && continue
63658 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
63659 # When using ansi2knr, U may be empty or an underscore; expand it
63660 U=`sed -n 's/^U = //p' < "$mf"`
63661 # Find all dependency output files, they are included files with
63662 # $(DEPDIR) in their names. We invoke sed twice because it is the
63663 # simplest approach to changing $(DEPDIR) to its actual value in the
63664 # expansion.
63665 for file in `sed -n "
63666 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
63667 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
63668 # Make sure the directory exists.
63669 test -f "$dirpart/$file" && continue
63670 fdir=`$as_dirname -- "$file" ||
63671 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
63672 X"$file" : 'X\(//\)[^/]' \| \
63673 X"$file" : 'X\(//\)$' \| \
63674 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
63675 echo X"$file" |
63676 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
63677 s//\1/
63680 /^X\(\/\/\)[^/].*/{
63681 s//\1/
63684 /^X\(\/\/\)$/{
63685 s//\1/
63688 /^X\(\/\).*/{
63689 s//\1/
63692 s/.*/./; q'`
63693 { as_dir=$dirpart/$fdir
63694 case $as_dir in #(
63695 -*) as_dir=./$as_dir;;
63696 esac
63697 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
63698 as_dirs=
63699 while :; do
63700 case $as_dir in #(
63701 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
63702 *) as_qdir=$as_dir;;
63703 esac
63704 as_dirs="'$as_qdir' $as_dirs"
63705 as_dir=`$as_dirname -- "$as_dir" ||
63706 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
63707 X"$as_dir" : 'X\(//\)[^/]' \| \
63708 X"$as_dir" : 'X\(//\)$' \| \
63709 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
63710 echo X"$as_dir" |
63711 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
63712 s//\1/
63715 /^X\(\/\/\)[^/].*/{
63716 s//\1/
63719 /^X\(\/\/\)$/{
63720 s//\1/
63723 /^X\(\/\).*/{
63724 s//\1/
63727 s/.*/./; q'`
63728 test -d "$as_dir" && break
63729 done
63730 test -z "$as_dirs" || eval "mkdir $as_dirs"
63731 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
63732 echo "$as_me: error: cannot create directory $as_dir" >&2;}
63733 { (exit 1); exit 1; }; }; }
63734 # echo "creating $dirpart/$file"
63735 echo '# dummy' > "$dirpart/$file"
63736 done
63737 done
63739 "po-directories":C)
63740 for ac_file in $CONFIG_FILES; do
63741 # Support "outfile[:infile[:infile...]]"
63742 case "$ac_file" in
63743 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
63744 esac
63745 # PO directories have a Makefile.in generated from Makefile.in.in.
63746 case "$ac_file" in */Makefile.in)
63747 # Adjust a relative srcdir.
63748 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
63749 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
63750 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
63751 # In autoconf-2.13 it is called $ac_given_srcdir.
63752 # In autoconf-2.50 it is called $srcdir.
63753 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
63754 case "$ac_given_srcdir" in
63755 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
63756 /*) top_srcdir="$ac_given_srcdir" ;;
63757 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
63758 esac
63759 # Treat a directory as a PO directory if and only if it has a
63760 # POTFILES.in file. This allows packages to have multiple PO
63761 # directories under different names or in different locations.
63762 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
63763 rm -f "$ac_dir/POTFILES"
63764 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
63765 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
63766 POMAKEFILEDEPS="POTFILES.in"
63767 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
63768 # on $ac_dir but don't depend on user-specified configuration
63769 # parameters.
63770 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
63771 # The LINGUAS file contains the set of available languages.
63772 if test -n "$OBSOLETE_ALL_LINGUAS"; then
63773 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
63775 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
63776 # Hide the ALL_LINGUAS assigment from automake < 1.5.
63777 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
63778 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
63779 else
63780 # The set of available languages was given in configure.in.
63781 # Hide the ALL_LINGUAS assigment from automake < 1.5.
63782 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
63784 # Compute POFILES
63785 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
63786 # Compute UPDATEPOFILES
63787 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
63788 # Compute DUMMYPOFILES
63789 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
63790 # Compute GMOFILES
63791 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
63792 case "$ac_given_srcdir" in
63793 .) srcdirpre= ;;
63794 *) srcdirpre='$(srcdir)/' ;;
63795 esac
63796 POFILES=
63797 UPDATEPOFILES=
63798 DUMMYPOFILES=
63799 GMOFILES=
63800 for lang in $ALL_LINGUAS; do
63801 POFILES="$POFILES $srcdirpre$lang.po"
63802 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
63803 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
63804 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
63805 done
63806 # CATALOGS depends on both $ac_dir and the user's LINGUAS
63807 # environment variable.
63808 INST_LINGUAS=
63809 if test -n "$ALL_LINGUAS"; then
63810 for presentlang in $ALL_LINGUAS; do
63811 useit=no
63812 if test "%UNSET%" != "$LINGUAS"; then
63813 desiredlanguages="$LINGUAS"
63814 else
63815 desiredlanguages="$ALL_LINGUAS"
63817 for desiredlang in $desiredlanguages; do
63818 # Use the presentlang catalog if desiredlang is
63819 # a. equal to presentlang, or
63820 # b. a variant of presentlang (because in this case,
63821 # presentlang can be used as a fallback for messages
63822 # which are not translated in the desiredlang catalog).
63823 case "$desiredlang" in
63824 "$presentlang"*) useit=yes;;
63825 esac
63826 done
63827 if test $useit = yes; then
63828 INST_LINGUAS="$INST_LINGUAS $presentlang"
63830 done
63832 CATALOGS=
63833 if test -n "$INST_LINGUAS"; then
63834 for lang in $INST_LINGUAS; do
63835 CATALOGS="$CATALOGS $lang.gmo"
63836 done
63838 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
63839 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
63840 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
63841 if test -f "$f"; then
63842 case "$f" in
63843 *.orig | *.bak | *~) ;;
63844 *) cat "$f" >> "$ac_dir/Makefile" ;;
63845 esac
63847 done
63850 esac
63851 done ;;
63853 esac
63854 done # for ac_tag
63857 { (exit 0); exit 0; }
63858 _ACEOF
63859 chmod +x $CONFIG_STATUS
63860 ac_clean_files=$ac_clean_files_save
63863 # configure is writing to config.log, and then calls config.status.
63864 # config.status does its own redirection, appending to config.log.
63865 # Unfortunately, on DOS this fails, as config.log is still kept open
63866 # by configure, so config.status won't be able to write to it; its
63867 # output is simply discarded. So we exec the FD to /dev/null,
63868 # effectively closing config.log, so it can be properly (re)opened and
63869 # appended to by config.status. When coming back to configure, we
63870 # need to make the FD available again.
63871 if test "$no_create" != yes; then
63872 ac_cs_success=:
63873 ac_config_status_args=
63874 test "$silent" = yes &&
63875 ac_config_status_args="$ac_config_status_args --quiet"
63876 exec 5>/dev/null
63877 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
63878 exec 5>>config.log
63879 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
63880 # would make configure fail if this is the last instruction.
63881 $ac_cs_success || { (exit 1); exit 1; }