*** empty log message ***
[platform/upstream/coreutils.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59c for GNU coreutils 6.0-cvs.
4 #
5 # Report bugs to <bug-coreutils@gnu.org>.
6 #
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 ## --------------------- ##
14
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
25 fi
26 BIN_SH=xpg4; export BIN_SH # for Tru64
27 DUALCASE=1; export DUALCASE # for MKS sh
28
29
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
37
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=:
47   fi
48   rm -f conf$$.sh
49 fi
50
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
56 fi
57
58
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='
65 '
66 IFS=" ""        $as_nl"
67
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
73 do
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
79
80      ;;
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
86 fi
87 if test ! -f "$as_myself"; then
88   { echo "$as_me: error: cannot find myself; rerun with an absolute file name" >&2
89    { (exit 1); exit 1; }; }
90 fi
91
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='+ '
99
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
105 do
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
110   fi
111 done
112
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
119 fi
120
121 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
122   as_basename=basename
123 else
124   as_basename=false
125 fi
126
127
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/
136             q
137           }
138           /^X\/\(\/\/\)$/{
139             s//\1/
140             q
141           }
142           /^X\/\(\/\).*/{
143             s//\1/
144             q
145           }
146           s/.*/./; q'`
147
148 # CDPATH.
149 $as_unset CDPATH
150
151
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
157 fi
158
159   if test $as_have_required = yes &&     (eval ":
160 (as_func_return () {
161   (exit \$1)
162 }
163 as_func_success () {
164   as_func_return 0
165 }
166 as_func_failure () {
167   as_func_return 1
168 }
169 as_func_ret_success () {
170   return 0
171 }
172 as_func_ret_failure () {
173   return 1
174 }
175
176 exitcode=0
177 if as_func_success; then
178   :
179 else
180   exitcode=1
181   echo as_func_success failed.
182 fi
183
184 if as_func_failure; then
185   exitcode=1
186   echo as_func_failure succeeded.
187 fi
188
189 if as_func_ret_success; then
190   :
191 else
192   exitcode=1
193   echo as_func_ret_success failed.
194 fi
195
196 if as_func_ret_failure; then
197   exitcode=1
198   echo as_func_ret_failure succeeded.
199 fi
200
201 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
202   :
203 else
204   exitcode=1
205   echo positional parameters were not saved.
206 fi
207
208 test \$exitcode = 0) || { (exit 1); exit 1; }
209
210 (
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
216   :
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
221 do
222   IFS=$as_save_IFS
223   test -z "$as_dir" && as_dir=.
224   case $as_dir in
225          /*)
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
232
233
234       for as_shell in $as_candidate_shells $SHELL; do
235          # Try only shells which exist, to save several forks.
236          if test -f $as_shell &&
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
248 fi
249 BIN_SH=xpg4; export BIN_SH # for Tru64
250 DUALCASE=1; export DUALCASE # for MKS sh
251
252 :
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
268 fi
269 BIN_SH=xpg4; export BIN_SH # for Tru64
270 DUALCASE=1; export DUALCASE # for MKS sh
271
272 :
273 (as_func_return () {
274   (exit $1)
275 }
276 as_func_success () {
277   as_func_return 0
278 }
279 as_func_failure () {
280   as_func_return 1
281 }
282 as_func_ret_success () {
283   return 0
284 }
285 as_func_ret_failure () {
286   return 1
287 }
288
289 exitcode=0
290 if as_func_success; then
291   :
292 else
293   exitcode=1
294   echo as_func_success failed.
295 fi
296
297 if as_func_failure; then
298   exitcode=1
299   echo as_func_failure succeeded.
300 fi
301
302 if as_func_ret_success; then
303   :
304 else
305   exitcode=1
306   echo as_func_ret_success failed.
307 fi
308
309 if as_func_ret_failure; then
310   exitcode=1
311   echo as_func_ret_failure succeeded.
312 fi
313
314 if ( set x; as_func_ret_success y && test x = "$1" ); then
315   :
316 else
317   exitcode=1
318   echo positional parameters were not saved.
319 fi
320
321 test $exitcode = 0) || { (exit 1); exit 1; }
322
323 (
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; }
328
329 _ASEOF
330 }; then
331   break
332 fi
333
334 fi
335
336       done
337
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+"$@"}
344 fi
345
346
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; }
353 fi
354
355
356 fi
357
358 fi
359
360
361
362 (eval "as_func_return () {
363   (exit \$1)
364 }
365 as_func_success () {
366   as_func_return 0
367 }
368 as_func_failure () {
369   as_func_return 1
370 }
371 as_func_ret_success () {
372   return 0
373 }
374 as_func_ret_failure () {
375   return 1
376 }
377
378 exitcode=0
379 if as_func_success; then
380   :
381 else
382   exitcode=1
383   echo as_func_success failed.
384 fi
385
386 if as_func_failure; then
387   exitcode=1
388   echo as_func_failure succeeded.
389 fi
390
391 if as_func_ret_success; then
392   :
393 else
394   exitcode=1
395   echo as_func_ret_success failed.
396 fi
397
398 if as_func_ret_failure; then
399   exitcode=1
400   echo as_func_ret_failure succeeded.
401 fi
402
403 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
404   :
405 else
406   exitcode=1
407   echo positional parameters were not saved.
408 fi
409
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
415 }
416
417
418
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" || {
423
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 '
435     p
436     /[$]LINENO/=
437   ' <$as_myself |
438     sed '
439       s/[$]LINENO.*/&-/
440       t lineno
441       b
442       :lineno
443       N
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; }; }
452
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
459 }
460
461
462 if (dirname /) >/dev/null 2>&1; then
463   as_dirname=dirname
464 else
465   as_dirname=false
466 fi
467
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;;
475 *)
476   ECHO_N='-n';;
477 esac
478
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
484 fi
485
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
492 fi
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'
506 fi
507 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
508 rmdir conf$$.dir 2>/dev/null
509
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
515 fi
516
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=:
528 fi
529 rm -f conf$$.file
530
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'"
533
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'"
536
537
538
539 exec 7<&0 </dev/null 6>&1
540
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`
545
546 #
547 # Initializations.
548 #
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}
558
559 # Identity of this package.
560 PACKAGE_NAME='GNU coreutils'
561 PACKAGE_TARNAME='coreutils'
562 PACKAGE_VERSION='6.0-cvs'
563 PACKAGE_STRING='GNU coreutils 6.0-cvs'
564 PACKAGE_BUGREPORT='bug-coreutils@gnu.org'
565
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"
602
603 gl_header_list=
604 gl_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
666 AWK
667 SET_MAKE
668 am__leading_dot
669 AMTAR
670 am__tar
671 am__untar
672 DEFAULT_POSIX2_VERSION
673 CC
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
689 CPP
690 GREP
691 EGREP
692 PERL
693 RANLIB
694 LN_S
695 GNU_PACKAGE
696 HELP2MAN
697 OPTIONAL_BIN_PROGS
698 MAN
699 DF_PROG
700 U
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 GLIBC21
721 HAVE_LONG_64BIT
722 HAVE_LONG_LONG_64BIT
723 STDINT_H
724 LIB_NANOSLEEP
725 LIB_ACL
726 LIB_FDATASYNC
727 SEQ_LIBM
728 LIBICONV
729 LTLIBICONV
730 LIB_CRYPT
731 MKINSTALLDIRS
732 USE_NLS
733 MSGFMT
734 GMSGFMT
735 XGETTEXT
736 MSGMERGE
737 INTL_MACOSX_LIBS
738 INTLLIBS
739 LIBINTL
740 LTLIBINTL
741 POSUB
742 LTLIBOBJS'
743 ac_subst_files=''
744       ac_precious_vars='build_alias
745 host_alias
746 target_alias
747 DEFAULT_POSIX2_VERSION
748 CC
749 CFLAGS
750 LDFLAGS
751 CPPFLAGS
752 CPP
753 YACC
754 YFLAGS'
755
756
757 # Initialize some variables set by options.
758 ac_init_help=
759 ac_init_version=false
760 # The variables have the same names as the options, with
761 # dashes changed to underlines.
762 cache_file=/dev/null
763 exec_prefix=NONE
764 no_create=
765 no_recursion=
766 prefix=NONE
767 program_prefix=NONE
768 program_suffix=NONE
769 program_transform_name=s,x,x,
770 silent=
771 site=
772 srcdir=
773 verbose=
774 x_includes=NONE
775 x_libraries=NONE
776
777 # Installation directory options.
778 # These are left unexpanded so users can "make install exec_prefix=/foo"
779 # and all the variables that are supposed to be based on exec_prefix
780 # by default will actually change.
781 # Use braces instead of parens because sh, perl, etc. also accept them.
782 # (The list follows the same order as the GNU Coding Standards.)
783 bindir='${exec_prefix}/bin'
784 sbindir='${exec_prefix}/sbin'
785 libexecdir='${exec_prefix}/libexec'
786 datarootdir='${prefix}/share'
787 datadir='${datarootdir}'
788 sysconfdir='${prefix}/etc'
789 sharedstatedir='${prefix}/com'
790 localstatedir='${prefix}/var'
791 includedir='${prefix}/include'
792 oldincludedir='/usr/include'
793 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
794 infodir='${datarootdir}/info'
795 htmldir='${docdir}'
796 dvidir='${docdir}'
797 pdfdir='${docdir}'
798 psdir='${docdir}'
799 libdir='${exec_prefix}/lib'
800 localedir='${datarootdir}/locale'
801 mandir='${datarootdir}/man'
802
803 ac_prev=
804 ac_dashdash=
805 for ac_option
806 do
807   # If the previous option needs an argument, assign it.
808   if test -n "$ac_prev"; then
809     eval $ac_prev=\$ac_option
810     ac_prev=
811     continue
812   fi
813
814   case $ac_option in
815   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
816   *)    ac_optarg=yes ;;
817   esac
818
819   # Accept the important Cygnus configure options, so we can diagnose typos.
820
821   case $ac_dashdash$ac_option in
822   --)
823     ac_dashdash=yes ;;
824
825   -bindir | --bindir | --bindi | --bind | --bin | --bi)
826     ac_prev=bindir ;;
827   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
828     bindir=$ac_optarg ;;
829
830   -build | --build | --buil | --bui | --bu)
831     ac_prev=build_alias ;;
832   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
833     build_alias=$ac_optarg ;;
834
835   -cache-file | --cache-file | --cache-fil | --cache-fi \
836   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
837     ac_prev=cache_file ;;
838   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
839   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
840     cache_file=$ac_optarg ;;
841
842   --config-cache | -C)
843     cache_file=config.cache ;;
844
845   -datadir | --datadir | --datadi | --datad)
846     ac_prev=datadir ;;
847   -datadir=* | --datadir=* | --datadi=* | --datad=*)
848     datadir=$ac_optarg ;;
849
850   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
851   | --dataroo | --dataro | --datar)
852     ac_prev=datarootdir ;;
853   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
854   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
855     datarootdir=$ac_optarg ;;
856
857   -disable-* | --disable-*)
858     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
859     # Reject names that are not valid shell variable names.
860     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
861       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
862    { (exit 1); exit 1; }; }
863     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
864     eval enable_$ac_feature=no ;;
865
866   -docdir | --docdir | --docdi | --doc | --do)
867     ac_prev=docdir ;;
868   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
869     docdir=$ac_optarg ;;
870
871   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
872     ac_prev=dvidir ;;
873   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
874     dvidir=$ac_optarg ;;
875
876   -enable-* | --enable-*)
877     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
878     # Reject names that are not valid shell variable names.
879     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
880       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
881    { (exit 1); exit 1; }; }
882     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
883     eval enable_$ac_feature=\$ac_optarg ;;
884
885   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
886   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
887   | --exec | --exe | --ex)
888     ac_prev=exec_prefix ;;
889   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
890   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
891   | --exec=* | --exe=* | --ex=*)
892     exec_prefix=$ac_optarg ;;
893
894   -gas | --gas | --ga | --g)
895     # Obsolete; use --with-gas.
896     with_gas=yes ;;
897
898   -help | --help | --hel | --he | -h)
899     ac_init_help=long ;;
900   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
901     ac_init_help=recursive ;;
902   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
903     ac_init_help=short ;;
904
905   -host | --host | --hos | --ho)
906     ac_prev=host_alias ;;
907   -host=* | --host=* | --hos=* | --ho=*)
908     host_alias=$ac_optarg ;;
909
910   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
911     ac_prev=htmldir ;;
912   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
913   | --ht=*)
914     htmldir=$ac_optarg ;;
915
916   -includedir | --includedir | --includedi | --included | --include \
917   | --includ | --inclu | --incl | --inc)
918     ac_prev=includedir ;;
919   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
920   | --includ=* | --inclu=* | --incl=* | --inc=*)
921     includedir=$ac_optarg ;;
922
923   -infodir | --infodir | --infodi | --infod | --info | --inf)
924     ac_prev=infodir ;;
925   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
926     infodir=$ac_optarg ;;
927
928   -libdir | --libdir | --libdi | --libd)
929     ac_prev=libdir ;;
930   -libdir=* | --libdir=* | --libdi=* | --libd=*)
931     libdir=$ac_optarg ;;
932
933   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
934   | --libexe | --libex | --libe)
935     ac_prev=libexecdir ;;
936   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
937   | --libexe=* | --libex=* | --libe=*)
938     libexecdir=$ac_optarg ;;
939
940   -localedir | --localedir | --localedi | --localed | --locale)
941     ac_prev=localedir ;;
942   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
943     localedir=$ac_optarg ;;
944
945   -localstatedir | --localstatedir | --localstatedi | --localstated \
946   | --localstate | --localstat | --localsta | --localst | --locals)
947     ac_prev=localstatedir ;;
948   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
949   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
950     localstatedir=$ac_optarg ;;
951
952   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
953     ac_prev=mandir ;;
954   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
955     mandir=$ac_optarg ;;
956
957   -nfp | --nfp | --nf)
958     # Obsolete; use --without-fp.
959     with_fp=no ;;
960
961   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
962   | --no-cr | --no-c | -n)
963     no_create=yes ;;
964
965   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
966   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
967     no_recursion=yes ;;
968
969   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
970   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
971   | --oldin | --oldi | --old | --ol | --o)
972     ac_prev=oldincludedir ;;
973   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
974   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
975   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
976     oldincludedir=$ac_optarg ;;
977
978   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
979     ac_prev=prefix ;;
980   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
981     prefix=$ac_optarg ;;
982
983   -program-prefix | --program-prefix | --program-prefi | --program-pref \
984   | --program-pre | --program-pr | --program-p)
985     ac_prev=program_prefix ;;
986   -program-prefix=* | --program-prefix=* | --program-prefi=* \
987   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
988     program_prefix=$ac_optarg ;;
989
990   -program-suffix | --program-suffix | --program-suffi | --program-suff \
991   | --program-suf | --program-su | --program-s)
992     ac_prev=program_suffix ;;
993   -program-suffix=* | --program-suffix=* | --program-suffi=* \
994   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
995     program_suffix=$ac_optarg ;;
996
997   -program-transform-name | --program-transform-name \
998   | --program-transform-nam | --program-transform-na \
999   | --program-transform-n | --program-transform- \
1000   | --program-transform | --program-transfor \
1001   | --program-transfo | --program-transf \
1002   | --program-trans | --program-tran \
1003   | --progr-tra | --program-tr | --program-t)
1004     ac_prev=program_transform_name ;;
1005   -program-transform-name=* | --program-transform-name=* \
1006   | --program-transform-nam=* | --program-transform-na=* \
1007   | --program-transform-n=* | --program-transform-=* \
1008   | --program-transform=* | --program-transfor=* \
1009   | --program-transfo=* | --program-transf=* \
1010   | --program-trans=* | --program-tran=* \
1011   | --progr-tra=* | --program-tr=* | --program-t=*)
1012     program_transform_name=$ac_optarg ;;
1013
1014   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1015     ac_prev=pdfdir ;;
1016   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1017     pdfdir=$ac_optarg ;;
1018
1019   -psdir | --psdir | --psdi | --psd | --ps)
1020     ac_prev=psdir ;;
1021   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1022     psdir=$ac_optarg ;;
1023
1024   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1025   | -silent | --silent | --silen | --sile | --sil)
1026     silent=yes ;;
1027
1028   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1029     ac_prev=sbindir ;;
1030   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1031   | --sbi=* | --sb=*)
1032     sbindir=$ac_optarg ;;
1033
1034   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1035   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1036   | --sharedst | --shareds | --shared | --share | --shar \
1037   | --sha | --sh)
1038     ac_prev=sharedstatedir ;;
1039   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1040   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1041   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1042   | --sha=* | --sh=*)
1043     sharedstatedir=$ac_optarg ;;
1044
1045   -site | --site | --sit)
1046     ac_prev=site ;;
1047   -site=* | --site=* | --sit=*)
1048     site=$ac_optarg ;;
1049
1050   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1051     ac_prev=srcdir ;;
1052   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1053     srcdir=$ac_optarg ;;
1054
1055   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1056   | --syscon | --sysco | --sysc | --sys | --sy)
1057     ac_prev=sysconfdir ;;
1058   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1059   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1060     sysconfdir=$ac_optarg ;;
1061
1062   -target | --target | --targe | --targ | --tar | --ta | --t)
1063     ac_prev=target_alias ;;
1064   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1065     target_alias=$ac_optarg ;;
1066
1067   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1068     verbose=yes ;;
1069
1070   -version | --version | --versio | --versi | --vers | -V)
1071     ac_init_version=: ;;
1072
1073   -with-* | --with-*)
1074     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1075     # Reject names that are not valid shell variable names.
1076     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1077       { echo "$as_me: error: invalid package name: $ac_package" >&2
1078    { (exit 1); exit 1; }; }
1079     ac_package=`echo $ac_package| sed 's/-/_/g'`
1080     eval with_$ac_package=\$ac_optarg ;;
1081
1082   -without-* | --without-*)
1083     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1084     # Reject names that are not valid shell variable names.
1085     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1086       { echo "$as_me: error: invalid package name: $ac_package" >&2
1087    { (exit 1); exit 1; }; }
1088     ac_package=`echo $ac_package | sed 's/-/_/g'`
1089     eval with_$ac_package=no ;;
1090
1091   --x)
1092     # Obsolete; use --with-x.
1093     with_x=yes ;;
1094
1095   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1096   | --x-incl | --x-inc | --x-in | --x-i)
1097     ac_prev=x_includes ;;
1098   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1099   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1100     x_includes=$ac_optarg ;;
1101
1102   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1103   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1104     ac_prev=x_libraries ;;
1105   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1106   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1107     x_libraries=$ac_optarg ;;
1108
1109   -*) { echo "$as_me: error: unrecognized option: $ac_option
1110 Try \`$0 --help' for more information." >&2
1111    { (exit 1); exit 1; }; }
1112     ;;
1113
1114   *=*)
1115     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1116     # Reject names that are not valid shell variable names.
1117     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1118       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1119    { (exit 1); exit 1; }; }
1120     eval $ac_envvar=\$ac_optarg
1121     export $ac_envvar ;;
1122
1123   *)
1124     # FIXME: should be removed in autoconf 3.0.
1125     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1126     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1127       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1128     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1129     ;;
1130
1131   esac
1132 done
1133
1134 if test -n "$ac_prev"; then
1135   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1136   { echo "$as_me: error: missing argument to $ac_option" >&2
1137    { (exit 1); exit 1; }; }
1138 fi
1139
1140 # Be sure to have absolute directory names.
1141 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1142                 datadir sysconfdir sharedstatedir localstatedir includedir \
1143                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1144                 libdir localedir mandir
1145 do
1146   eval ac_val=\$$ac_var
1147   case $ac_val in
1148     [\\/$]* | ?:[\\/]* )  continue;;
1149     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1150   esac
1151   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1152    { (exit 1); exit 1; }; }
1153 done
1154
1155 # There might be people who depend on the old broken behavior: `$host'
1156 # used to hold the argument of --host etc.
1157 # FIXME: To remove some day.
1158 build=$build_alias
1159 host=$host_alias
1160 target=$target_alias
1161
1162 # FIXME: To remove some day.
1163 if test "x$host_alias" != x; then
1164   if test "x$build_alias" = x; then
1165     cross_compiling=maybe
1166     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1167     If a cross compiler is detected then cross compile mode will be used." >&2
1168   elif test "x$build_alias" != "x$host_alias"; then
1169     cross_compiling=yes
1170   fi
1171 fi
1172
1173 ac_tool_prefix=
1174 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1175
1176 test "$silent" = yes && exec 6>/dev/null
1177
1178
1179 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1180 ac_ls_di=`ls -di .` &&
1181 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1182   { echo "$as_me: error: Working directory cannot be determined" >&2
1183    { (exit 1); exit 1; }; }
1184 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1185   { echo "$as_me: error: pwd does not report name of working directory" >&2
1186    { (exit 1); exit 1; }; }
1187
1188
1189 # Find the source files, if location was not specified.
1190 if test -z "$srcdir"; then
1191   ac_srcdir_defaulted=yes
1192   # Try the directory containing this script, then the parent directory.
1193   ac_confdir=`$as_dirname "$0" ||
1194 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1195          X"$0" : 'X\(//\)[^/]' \| \
1196          X"$0" : 'X\(//\)$' \| \
1197          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1198 echo X"$0" |
1199     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1200             s//\1/
1201             q
1202           }
1203           /^X\(\/\/\)[^/].*/{
1204             s//\1/
1205             q
1206           }
1207           /^X\(\/\/\)$/{
1208             s//\1/
1209             q
1210           }
1211           /^X\(\/\).*/{
1212             s//\1/
1213             q
1214           }
1215           s/.*/./; q'`
1216   srcdir=$ac_confdir
1217   if test ! -r "$srcdir/$ac_unique_file"; then
1218     srcdir=..
1219   fi
1220 else
1221   ac_srcdir_defaulted=no
1222 fi
1223 if test ! -r "$srcdir/$ac_unique_file"; then
1224   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1225   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1226    { (exit 1); exit 1; }; }
1227 fi
1228 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1229 ac_abs_confdir=`(
1230         cd $srcdir && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1231    { (exit 1); exit 1; }; }
1232         pwd)`
1233 # When building in place, set srcdir=.
1234 if test "$ac_abs_confdir" = "$ac_pwd"; then
1235   srcdir=.
1236 fi
1237 # Remove unnecessary trailing slashes from srcdir.
1238 # Double slashes in file names in object file debugging info
1239 # mess up M-x gdb in Emacs.
1240 case $srcdir in
1241 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1242 esac
1243 for ac_var in $ac_precious_vars; do
1244   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1245   eval ac_env_${ac_var}_value=\$${ac_var}
1246   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1247   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1248 done
1249
1250 #
1251 # Report the --help message.
1252 #
1253 if test "$ac_init_help" = "long"; then
1254   # Omit some internal or obsolete options to make the list less imposing.
1255   # This message is too long to be a string in the A/UX 3.1 sh.
1256   cat <<_ACEOF
1257 \`configure' configures GNU coreutils 6.0-cvs to adapt to many kinds of systems.
1258
1259 Usage: $0 [OPTION]... [VAR=VALUE]...
1260
1261 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1262 VAR=VALUE.  See below for descriptions of some of the useful variables.
1263
1264 Defaults for the options are specified in brackets.
1265
1266 Configuration:
1267   -h, --help              display this help and exit
1268       --help=short        display options specific to this package
1269       --help=recursive    display the short help of all the included packages
1270   -V, --version           display version information and exit
1271   -q, --quiet, --silent   do not print \`checking...' messages
1272       --cache-file=FILE   cache test results in FILE [disabled]
1273   -C, --config-cache      alias for \`--cache-file=config.cache'
1274   -n, --no-create         do not create output files
1275       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1276
1277 Installation directories:
1278   --prefix=PREFIX         install architecture-independent files in PREFIX
1279                           [$ac_default_prefix]
1280   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1281                           [PREFIX]
1282
1283 By default, \`make install' will install all the files in
1284 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1285 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1286 for instance \`--prefix=\$HOME'.
1287
1288 For better control, use the options below.
1289
1290 Fine tuning of the installation directories:
1291   --bindir=DIR           user executables [EPREFIX/bin]
1292   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1293   --libexecdir=DIR       program executables [EPREFIX/libexec]
1294   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1295   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1296   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1297   --libdir=DIR           object code libraries [EPREFIX/lib]
1298   --includedir=DIR       C header files [PREFIX/include]
1299   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1300   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1301   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1302   --infodir=DIR          info documentation [DATAROOTDIR/info]
1303   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1304   --mandir=DIR           man documentation [DATAROOTDIR/man]
1305   --docdir=DIR           documentation root [DATAROOTDIR/doc/coreutils]
1306   --htmldir=DIR          html documentation [DOCDIR]
1307   --dvidir=DIR           dvi documentation [DOCDIR]
1308   --pdfdir=DIR           pdf documentation [DOCDIR]
1309   --psdir=DIR            ps documentation [DOCDIR]
1310 _ACEOF
1311
1312   cat <<\_ACEOF
1313
1314 Program names:
1315   --program-prefix=PREFIX            prepend PREFIX to installed program names
1316   --program-suffix=SUFFIX            append SUFFIX to installed program names
1317   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1318
1319 System types:
1320   --build=BUILD     configure for building on BUILD [guessed]
1321   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1322 _ACEOF
1323 fi
1324
1325 if test -n "$ac_init_help"; then
1326   case $ac_init_help in
1327      short | recursive ) echo "Configuration of GNU coreutils 6.0-cvs:";;
1328    esac
1329   cat <<\_ACEOF
1330
1331 Optional Features:
1332   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1333   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1334   --disable-dependency-tracking  speeds up one-time build
1335   --enable-dependency-tracking   do not reject slow dependency extractors
1336   --disable-largefile     omit support for large files
1337   --disable-assert        turn off assertions
1338   --disable-rpath         do not hardcode runtime library paths
1339   --disable-nls           do not use Native Language Support
1340
1341 Optional Packages:
1342   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1343   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1344   --with-afs              support for the Andrew File System [default=no]
1345   --without-included-regex
1346                           don't compile regex; this is the default on systems
1347                           with recent-enough versions of the GNU C Library
1348                           (use with caution on other systems)
1349   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1350   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1351   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1352   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1353   --without-libintl-prefix     don't search for libintl in includedir and libdir
1354
1355 Some influential environment variables:
1356   DEFAULT_POSIX2_VERSION
1357               POSIX version to default to; see 'config.hin'.
1358   CC          C compiler command
1359   CFLAGS      C compiler flags
1360   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1361               nonstandard directory <lib dir>
1362   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1363               you have headers in a nonstandard directory <include dir>
1364   CPP         C preprocessor
1365   YACC        The `Yet Another C Compiler' implementation to use. Defaults to
1366               `bison -y'. Values other than `bison -y' will most likely break
1367               on most systems.
1368   YFLAGS      YFLAGS contains the list arguments that will be passed by
1369               default to Bison. This script will default YFLAGS to the empty
1370               string to avoid a default value of `-d' given by some make
1371               applications.
1372
1373 Use these variables to override the choices made by `configure' or to help
1374 it to find libraries and programs with nonstandard names/locations.
1375
1376 Report bugs to <bug-coreutils@gnu.org>.
1377 _ACEOF
1378 ac_status=$?
1379 fi
1380
1381 if test "$ac_init_help" = "recursive"; then
1382   # If there are subdirs, report their specific --help.
1383   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1384     test -d $ac_dir || continue
1385     ac_builddir=.
1386
1387 case "$ac_dir" in
1388 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1389 *)
1390   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1391   # A ".." for each directory in $ac_dir_suffix.
1392   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1393   case $ac_top_builddir_sub in
1394   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1395   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1396   esac ;;
1397 esac
1398 ac_abs_top_builddir=$ac_pwd
1399 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1400 # for backward compatibility:
1401 ac_top_builddir=$ac_top_build_prefix
1402
1403 case $srcdir in
1404   .)  # We are building in place.
1405     ac_srcdir=.
1406     ac_top_srcdir=$ac_top_builddir_sub
1407     ac_abs_top_srcdir=$ac_pwd ;;
1408   [\\/]* | ?:[\\/]* )  # Absolute name.
1409     ac_srcdir=$srcdir$ac_dir_suffix;
1410     ac_top_srcdir=$srcdir
1411     ac_abs_top_srcdir=$srcdir ;;
1412   *) # Relative name.
1413     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1414     ac_top_srcdir=$ac_top_build_prefix$srcdir
1415     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1416 esac
1417 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1418
1419     cd $ac_dir || { ac_status=$?; continue; }
1420     # Check for guested configure.
1421     if test -f $ac_srcdir/configure.gnu; then
1422       echo &&
1423       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1424     elif test -f $ac_srcdir/configure; then
1425       echo &&
1426       $SHELL $ac_srcdir/configure  --help=recursive
1427     else
1428       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1429     fi || ac_status=$?
1430     cd "$ac_pwd" || { ac_status=$?; break; }
1431   done
1432 fi
1433
1434 test -n "$ac_init_help" && exit $ac_status
1435 if $ac_init_version; then
1436   cat <<\_ACEOF
1437 GNU coreutils configure 6.0-cvs
1438 generated by GNU Autoconf 2.59c
1439
1440 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1441 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1442 This configure script is free software; the Free Software Foundation
1443 gives unlimited permission to copy, distribute and modify it.
1444 _ACEOF
1445   exit
1446 fi
1447 exec 5>config.log
1448 cat >&5 <<_ACEOF
1449 This file contains any messages produced by compilers while
1450 running configure, to aid debugging if configure makes a mistake.
1451
1452 It was created by GNU coreutils $as_me 6.0-cvs, which was
1453 generated by GNU Autoconf 2.59c.  Invocation command line was
1454
1455   $ $0 $@
1456
1457 _ACEOF
1458 {
1459 cat <<_ASUNAME
1460 ## --------- ##
1461 ## Platform. ##
1462 ## --------- ##
1463
1464 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1465 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1466 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1467 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1468 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1469
1470 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1471 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1472
1473 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1474 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1475 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1476 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1477 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1478 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1479 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1480
1481 _ASUNAME
1482
1483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1484 for as_dir in $PATH
1485 do
1486   IFS=$as_save_IFS
1487   test -z "$as_dir" && as_dir=.
1488   echo "PATH: $as_dir"
1489 done
1490 IFS=$as_save_IFS
1491
1492 } >&5
1493
1494 cat >&5 <<_ACEOF
1495
1496
1497 ## ----------- ##
1498 ## Core tests. ##
1499 ## ----------- ##
1500
1501 _ACEOF
1502
1503
1504 # Keep a trace of the command line.
1505 # Strip out --no-create and --no-recursion so they do not pile up.
1506 # Strip out --silent because we don't want to record it for future runs.
1507 # Also quote any args containing shell meta-characters.
1508 # Make two passes to allow for proper duplicate-argument suppression.
1509 ac_configure_args=
1510 ac_configure_args0=
1511 ac_configure_args1=
1512 ac_sep=
1513 ac_must_keep_next=false
1514 for ac_pass in 1 2
1515 do
1516   for ac_arg
1517   do
1518     case $ac_arg in
1519     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1520     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1521     | -silent | --silent | --silen | --sile | --sil)
1522       continue ;;
1523     *" "*|*"    "*|*[\\\[\~\#\$\^\&\*\(\)\{\}\|\;\<\>\?\"\']*|*\]*)
1524       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1525     esac
1526     case $ac_pass in
1527     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1528     2)
1529       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1530       if test $ac_must_keep_next = true; then
1531         ac_must_keep_next=false # Got value, back to normal.
1532       else
1533         case $ac_arg in
1534           *=* | --config-cache | -C | -disable-* | --disable-* \
1535           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1536           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1537           | -with-* | --with-* | -without-* | --without-* | --x)
1538             case "$ac_configure_args0 " in
1539               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1540             esac
1541             ;;
1542           -* ) ac_must_keep_next=true ;;
1543         esac
1544       fi
1545       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1546       # Get rid of the leading space.
1547       ac_sep=" "
1548       ;;
1549     esac
1550   done
1551 done
1552 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1553 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1554
1555 # When interrupted or exit'd, cleanup temporary files, and complete
1556 # config.log.  We remove comments because anyway the quotes in there
1557 # would cause problems or look ugly.
1558 # WARNING: Use '\'' to represent an apostrophe within the trap.
1559 trap '
1560   exit_status=$?
1561   # Save into config.log some information that might help in debugging.
1562   {
1563     echo
1564
1565     cat <<\_ASBOX
1566 ## ---------------- ##
1567 ## Cache variables. ##
1568 ## ---------------- ##
1569 _ASBOX
1570     echo
1571     # The following way of writing the cache mishandles newlines in values,
1572 (
1573   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1574     eval ac_val=\$$ac_var
1575     case $ac_val in #(
1576     *${as_nl}*)
1577       case $ac_var in #(
1578       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1579 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1580       esac
1581       case $ac_var in #(
1582       _ | IFS | as_nl) ;; #(
1583       *) $as_unset $ac_var ;;
1584       esac ;;
1585     esac
1586   done
1587   (set) 2>&1 |
1588     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1589     *${as_nl}ac_space=\ *)
1590       sed -n \
1591         "s/'\''/'\''\\\\'\'''\''/g;
1592           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1593       ;; #(
1594     *)
1595       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1596       ;;
1597     esac
1598 )
1599     echo
1600
1601     cat <<\_ASBOX
1602 ## ----------------- ##
1603 ## Output variables. ##
1604 ## ----------------- ##
1605 _ASBOX
1606     echo
1607     for ac_var in $ac_subst_vars
1608     do
1609       eval ac_val=\$$ac_var
1610       echo "$ac_var='\''$ac_val'\''"
1611     done | sort
1612     echo
1613
1614     if test -n "$ac_subst_files"; then
1615       cat <<\_ASBOX
1616 ## ------------------- ##
1617 ## File substitutions. ##
1618 ## ------------------- ##
1619 _ASBOX
1620       echo
1621       for ac_var in $ac_subst_files
1622       do
1623         eval ac_val=\$$ac_var
1624         echo "$ac_var='\''$ac_val'\''"
1625       done | sort
1626       echo
1627     fi
1628
1629     if test -s confdefs.h; then
1630       cat <<\_ASBOX
1631 ## ----------- ##
1632 ## confdefs.h. ##
1633 ## ----------- ##
1634 _ASBOX
1635       echo
1636       cat confdefs.h
1637       echo
1638     fi
1639     test "$ac_signal" != 0 &&
1640       echo "$as_me: caught signal $ac_signal"
1641     echo "$as_me: exit $exit_status"
1642   } >&5
1643   rm -f core *.core core.conftest.* &&
1644     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1645     exit $exit_status
1646 ' 0
1647 for ac_signal in 1 2 13 15; do
1648   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1649 done
1650 ac_signal=0
1651
1652 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1653 rm -f -r conftest* confdefs.h
1654
1655 # Predefined preprocessor variables.
1656
1657 cat >>confdefs.h <<_ACEOF
1658 #define PACKAGE_NAME "$PACKAGE_NAME"
1659 _ACEOF
1660
1661
1662 cat >>confdefs.h <<_ACEOF
1663 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1664 _ACEOF
1665
1666
1667 cat >>confdefs.h <<_ACEOF
1668 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1669 _ACEOF
1670
1671
1672 cat >>confdefs.h <<_ACEOF
1673 #define PACKAGE_STRING "$PACKAGE_STRING"
1674 _ACEOF
1675
1676
1677 cat >>confdefs.h <<_ACEOF
1678 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1679 _ACEOF
1680
1681
1682 # Let the site file select an alternate cache file if it wants to.
1683 # Prefer explicitly selected file to automatically selected ones.
1684 if test -n "$CONFIG_SITE"; then
1685   set x "$CONFIG_SITE"
1686 elif test "x$prefix" != xNONE; then
1687   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1688 else
1689   set x "$ac_default_prefix/share/config.site" \
1690         "$ac_default_prefix/etc/config.site"
1691 fi
1692 shift
1693 for ac_site_file
1694 do
1695   if test -r "$ac_site_file"; then
1696     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1697 echo "$as_me: loading site script $ac_site_file" >&6;}
1698     sed 's/^/| /' "$ac_site_file" >&5
1699     . "$ac_site_file"
1700   fi
1701 done
1702
1703 if test -r "$cache_file"; then
1704   # Some versions of bash will fail to source /dev/null (special
1705   # files actually), so we avoid doing that.
1706   if test -f "$cache_file"; then
1707     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1708 echo "$as_me: loading cache $cache_file" >&6;}
1709     case $cache_file in
1710       [\\/]* | ?:[\\/]* ) . $cache_file;;
1711       *)                      . ./$cache_file;;
1712     esac
1713   fi
1714 else
1715   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1716 echo "$as_me: creating cache $cache_file" >&6;}
1717   >$cache_file
1718 fi
1719
1720 gl_header_list="$gl_header_list hurd.h"
1721 gl_header_list="$gl_header_list paths.h"
1722 gl_header_list="$gl_header_list priv.h"
1723 gl_header_list="$gl_header_list stropts.h"
1724 gl_header_list="$gl_header_list sys/ioctl.h"
1725 gl_header_list="$gl_header_list sys/param.h"
1726 gl_header_list="$gl_header_list sys/resource.h"
1727 gl_header_list="$gl_header_list sys/statvfs.h"
1728 gl_header_list="$gl_header_list sys/systeminfo.h"
1729 gl_header_list="$gl_header_list sys/time.h"
1730 gl_header_list="$gl_header_list sys/vfs.h"
1731 gl_header_list="$gl_header_list sys/wait.h"
1732 gl_header_list="$gl_header_list syslog.h"
1733 gl_header_list="$gl_header_list termios.h"
1734 gl_header_list="$gl_header_list grp.h"
1735 gl_header_list="$gl_header_list pwd.h"
1736 gl_header_list="$gl_header_list utmp.h"
1737 gl_func_list="$gl_func_list pathconf"
1738 gl_header_list="$gl_header_list sys/socket.h"
1739 gl_header_list="$gl_header_list netinet/in.h"
1740 gl_header_list="$gl_header_list netdb.h"
1741 gl_func_list="$gl_func_list isascii"
1742 gl_func_list="$gl_func_list mempcpy"
1743 gl_header_list="$gl_header_list sys/fs_types.h"
1744 gl_header_list="$gl_header_list stdio_ext.h"
1745 gl_func_list="$gl_func_list __fsetlocking"
1746 gl_func_list="$gl_func_list tcgetattr"
1747 gl_func_list="$gl_func_list tcsetattr"
1748 gl_func_list="$gl_func_list alarm"
1749 gl_header_list="$gl_header_list libgen.h"
1750 gl_header_list="$gl_header_list unistd.h"
1751 gl_func_list="$gl_func_list microuptime"
1752 gl_func_list="$gl_func_list nanouptime"
1753 gl_func_list="$gl_func_list gettimeofday"
1754 gl_func_list="$gl_func_list nanotime"
1755 gl_header_list="$gl_header_list stddef.h"
1756 gl_header_list="$gl_header_list stdlib.h"
1757 gl_header_list="$gl_header_list string.h"
1758 gl_func_list="$gl_func_list setlocale"
1759 gl_header_list="$gl_header_list wchar.h"
1760 gl_header_list="$gl_header_list wctype.h"
1761 gl_func_list="$gl_func_list iswprint"
1762 gl_func_list="$gl_func_list mbsinit"
1763 gl_func_list="$gl_func_list lchmod"
1764 gl_header_list="$gl_header_list utmpx.h"
1765 gl_func_list="$gl_func_list utmpname"
1766 gl_func_list="$gl_func_list utmpxname"
1767 gl_header_list="$gl_header_list locale.h"
1768 gl_func_list="$gl_func_list isblank"
1769 gl_func_list="$gl_func_list mbrtowc"
1770 gl_func_list="$gl_func_list wcrtomb"
1771 gl_func_list="$gl_func_list wcscoll"
1772 gl_func_list="$gl_func_list fchdir"
1773 gl_func_list="$gl_func_list settimeofday"
1774 gl_func_list="$gl_func_list stime"
1775 gl_header_list="$gl_header_list utime.h"
1776 gl_func_list="$gl_func_list futimes"
1777 gl_func_list="$gl_func_list futimesat"
1778 gl_func_list="$gl_func_list mblen"
1779 gl_func_list="$gl_func_list mbrlen"
1780 gl_func_list="$gl_func_list tzset"
1781 gl_func_list="$gl_func_list siginterrupt"
1782 gl_func_list="$gl_func_list fdopendir"
1783 gl_func_list="$gl_func_list directio"
1784 gl_func_list="$gl_func_list endgrent"
1785 gl_func_list="$gl_func_list endpwent"
1786 gl_func_list="$gl_func_list fchmod"
1787 gl_func_list="$gl_func_list fchown"
1788 gl_func_list="$gl_func_list ftruncate"
1789 gl_func_list="$gl_func_list hasmntopt"
1790 gl_func_list="$gl_func_list iswspace"
1791 gl_func_list="$gl_func_list lchown"
1792 gl_func_list="$gl_func_list listmntent"
1793 gl_func_list="$gl_func_list mkfifo"
1794 gl_func_list="$gl_func_list realpath"
1795 gl_func_list="$gl_func_list setgroups"
1796 gl_func_list="$gl_func_list sethostname"
1797 gl_func_list="$gl_func_list sync"
1798 gl_func_list="$gl_func_list sysctl"
1799 gl_func_list="$gl_func_list sysinfo"
1800 gl_func_list="$gl_func_list tcgetpgrp"
1801 gl_header_list="$gl_header_list sys/sysmacros.h"
1802 gl_func_list="$gl_func_list statvfs"
1803 # Check that the precious variables saved in the cache have kept the same
1804 # value.
1805 ac_cache_corrupted=false
1806 for ac_var in $ac_precious_vars; do
1807   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1808   eval ac_new_set=\$ac_env_${ac_var}_set
1809   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1810   eval ac_new_val=\$ac_env_${ac_var}_value
1811   case $ac_old_set,$ac_new_set in
1812     set,)
1813       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1814 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1815       ac_cache_corrupted=: ;;
1816     ,set)
1817       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1818 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1819       ac_cache_corrupted=: ;;
1820     ,);;
1821     *)
1822       if test "x$ac_old_val" != "x$ac_new_val"; then
1823         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1824 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1825         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1826 echo "$as_me:   former value:  $ac_old_val" >&2;}
1827         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1828 echo "$as_me:   current value: $ac_new_val" >&2;}
1829         ac_cache_corrupted=:
1830       fi;;
1831   esac
1832   # Pass precious variables to config.status.
1833   if test "$ac_new_set" = set; then
1834     case $ac_new_val in
1835     *" "*|*"    "*|*[\\\[\~\#\$\^\&\*\(\)\{\}\|\;\<\>\?\"\']*|*\]*)
1836       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1837     *) ac_arg=$ac_var=$ac_new_val ;;
1838     esac
1839     case " $ac_configure_args " in
1840       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1841       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1842     esac
1843   fi
1844 done
1845 if $ac_cache_corrupted; then
1846   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1847 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1848   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1849 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1850    { (exit 1); exit 1; }; }
1851 fi
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877 ac_ext=c
1878 ac_cpp='$CPP $CPPFLAGS'
1879 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1880 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1881 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1882
1883
1884
1885
1886 ac_aux_dir=
1887 for ac_dir in build-aux $srcdir/build-aux; do
1888   if test -f $ac_dir/install-sh; then
1889     ac_aux_dir=$ac_dir
1890     ac_install_sh="$ac_aux_dir/install-sh -c"
1891     break
1892   elif test -f $ac_dir/install.sh; then
1893     ac_aux_dir=$ac_dir
1894     ac_install_sh="$ac_aux_dir/install.sh -c"
1895     break
1896   elif test -f $ac_dir/shtool; then
1897     ac_aux_dir=$ac_dir
1898     ac_install_sh="$ac_aux_dir/shtool install -c"
1899     break
1900   fi
1901 done
1902 if test -z "$ac_aux_dir"; then
1903   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build-aux $srcdir/build-aux" >&5
1904 echo "$as_me: error: cannot find install-sh or install.sh in build-aux $srcdir/build-aux" >&2;}
1905    { (exit 1); exit 1; }; }
1906 fi
1907 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1908 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1909 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1910
1911 ac_config_headers="$ac_config_headers config.h:config.hin"
1912
1913
1914 # Make sure we can run config.sub.
1915 $ac_config_sub sun4 >/dev/null 2>&1 ||
1916   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1917 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1918    { (exit 1); exit 1; }; }
1919
1920 { echo "$as_me:$LINENO: checking build system type" >&5
1921 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1922 if test "${ac_cv_build+set}" = set; then
1923   echo $ECHO_N "(cached) $ECHO_C" >&6
1924 else
1925   ac_build_alias=$build_alias
1926 test "x$ac_build_alias" = x &&
1927   ac_build_alias=`$ac_config_guess`
1928 test "x$ac_build_alias" = x &&
1929   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1930 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1931    { (exit 1); exit 1; }; }
1932 ac_cv_build=`$ac_config_sub $ac_build_alias` ||
1933   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_build_alias failed" >&5
1934 echo "$as_me: error: $ac_config_sub $ac_build_alias failed" >&2;}
1935    { (exit 1); exit 1; }; }
1936
1937 fi
1938 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1939 echo "${ECHO_T}$ac_cv_build" >&6; }
1940 case $ac_cv_build in
1941 *-*-*) ;;
1942 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1943 echo "$as_me: error: invalid value of canonical build" >&2;}
1944    { (exit 1); exit 1; }; };;
1945 esac
1946 build=$ac_cv_build
1947 ac_save_IFS=$IFS; IFS='-'
1948 set x $ac_cv_build
1949 shift
1950 build_cpu=$1
1951 build_vendor=$2
1952 shift; shift
1953 # Remember, the first character of IFS is used to create $*:
1954 build_os=$*
1955 IFS=$ac_save_IFS
1956
1957
1958 { echo "$as_me:$LINENO: checking host system type" >&5
1959 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1960 if test "${ac_cv_host+set}" = set; then
1961   echo $ECHO_N "(cached) $ECHO_C" >&6
1962 else
1963   if test "x$host_alias" = x; then
1964   ac_cv_host=$ac_cv_build
1965 else
1966   ac_cv_host=`$ac_config_sub $host_alias` ||
1967     { { echo "$as_me:$LINENO: error: $ac_config_sub $host_alias failed" >&5
1968 echo "$as_me: error: $ac_config_sub $host_alias failed" >&2;}
1969    { (exit 1); exit 1; }; }
1970 fi
1971
1972 fi
1973 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1974 echo "${ECHO_T}$ac_cv_host" >&6; }
1975 case $ac_cv_host in
1976 *-*-*) ;;
1977 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1978 echo "$as_me: error: invalid value of canonical host" >&2;}
1979    { (exit 1); exit 1; }; };;
1980 esac
1981 host=$ac_cv_host
1982 ac_save_IFS=$IFS; IFS='-'
1983 set x $ac_cv_host
1984 shift
1985 host_cpu=$1
1986 host_vendor=$2
1987 shift; shift
1988 # Remember, the first character of IFS is used to create $*:
1989 host_os=$*
1990 IFS=$ac_save_IFS
1991
1992
1993
1994
1995
1996
1997         { echo "$as_me:$LINENO: autobuild project... ${PACKAGE_NAME:-$PACKAGE}" >&5
1998 echo "$as_me: autobuild project... ${PACKAGE_NAME:-$PACKAGE}" >&6;}
1999         { echo "$as_me:$LINENO: autobuild revision... ${PACKAGE_VERSION:-$VERSION}" >&5
2000 echo "$as_me: autobuild revision... ${PACKAGE_VERSION:-$VERSION}" >&6;}
2001         hostname=`hostname`
2002         if test "$hostname"; then
2003            { echo "$as_me:$LINENO: autobuild hostname... $hostname" >&5
2004 echo "$as_me: autobuild hostname... $hostname" >&6;}
2005         fi
2006
2007         date=`date +%Y%m%d-%H%M%S`
2008         if test "$?" != 0; then
2009            date=`date`
2010         fi
2011         if test "$date"; then
2012            { echo "$as_me:$LINENO: autobuild timestamp... $date" >&5
2013 echo "$as_me: autobuild timestamp... $date" >&6;}
2014         fi
2015
2016 am__api_version="1.9"
2017 # Find a good install program.  We prefer a C program (faster),
2018 # so one script is as good as another.  But avoid the broken or
2019 # incompatible versions:
2020 # SysV /etc/install, /usr/sbin/install
2021 # SunOS /usr/etc/install
2022 # IRIX /sbin/install
2023 # AIX /bin/install
2024 # AmigaOS /C/install, which installs bootblocks on floppy discs
2025 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2026 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2027 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2028 # OS/2's system install, which has a completely different semantic
2029 # ./install, which can be erroneously created by make from ./install.sh.
2030 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2031 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2032 if test -z "$INSTALL"; then
2033 if test "${ac_cv_path_install+set}" = set; then
2034   echo $ECHO_N "(cached) $ECHO_C" >&6
2035 else
2036   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2037 for as_dir in $PATH
2038 do
2039   IFS=$as_save_IFS
2040   test -z "$as_dir" && as_dir=.
2041   # Account for people who put trailing slashes in PATH elements.
2042 case $as_dir/ in
2043   ./ | .// | /cC/* | \
2044   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2045   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2046   /usr/ucb/* ) ;;
2047   *)
2048     # OSF1 and SCO ODT 3.0 have their own names for install.
2049     # Don't use installbsd from OSF since it installs stuff as root
2050     # by default.
2051     for ac_prog in ginstall scoinst install; do
2052       for ac_exec_ext in '' $ac_executable_extensions; do
2053         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
2054           if test $ac_prog = install &&
2055             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2056             # AIX install.  It has an incompatible calling convention.
2057             :
2058           elif test $ac_prog = install &&
2059             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2060             # program-specific install script used by HP pwplus--don't use.
2061             :
2062           else
2063             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2064             break 3
2065           fi
2066         fi
2067       done
2068     done
2069     ;;
2070 esac
2071 done
2072 IFS=$as_save_IFS
2073
2074
2075 fi
2076   if test "${ac_cv_path_install+set}" = set; then
2077     INSTALL=$ac_cv_path_install
2078   else
2079     # As a last resort, use the slow shell script.  Don't cache a
2080     # value for INSTALL within a source directory, because that will
2081     # break other packages using the cache if that directory is
2082     # removed, or if the value is a relative name.
2083     INSTALL=$ac_install_sh
2084   fi
2085 fi
2086 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2087 echo "${ECHO_T}$INSTALL" >&6; }
2088
2089 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2090 # It thinks the first close brace ends the variable substitution.
2091 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2092
2093 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2094
2095 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2096
2097 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2098 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2099 # Just in case
2100 sleep 1
2101 echo timestamp > conftest.file
2102 # Do `set' in a subshell so we don't clobber the current shell's
2103 # arguments.  Must try -L first in case configure is actually a
2104 # symlink; some systems play weird games with the mod time of symlinks
2105 # (eg FreeBSD returns the mod time of the symlink's containing
2106 # directory).
2107 if (
2108    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2109    if test "$*" = "X"; then
2110       # -L didn't work.
2111       set X `ls -t $srcdir/configure conftest.file`
2112    fi
2113    rm -f conftest.file
2114    if test "$*" != "X $srcdir/configure conftest.file" \
2115       && test "$*" != "X conftest.file $srcdir/configure"; then
2116
2117       # If neither matched, then we have a broken ls.  This can happen
2118       # if, for instance, CONFIG_SHELL is bash and it inherits a
2119       # broken ls alias from the environment.  This has actually
2120       # happened.  Such a system could not be considered "sane".
2121       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2122 alias in your environment" >&5
2123 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2124 alias in your environment" >&2;}
2125    { (exit 1); exit 1; }; }
2126    fi
2127
2128    test "$2" = conftest.file
2129    )
2130 then
2131    # Ok.
2132    :
2133 else
2134    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2135 Check your system clock" >&5
2136 echo "$as_me: error: newly created file is older than distributed files!
2137 Check your system clock" >&2;}
2138    { (exit 1); exit 1; }; }
2139 fi
2140 { echo "$as_me:$LINENO: result: yes" >&5
2141 echo "${ECHO_T}yes" >&6; }
2142 test "$program_prefix" != NONE &&
2143   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2144 # Use a double $ so make ignores it.
2145 test "$program_suffix" != NONE &&
2146   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2147 # Double any \ or $.  echo might interpret backslashes.
2148 # By default was `s,x,x', remove it if useless.
2149 cat <<\_ACEOF >conftest.sed
2150 s/[\\$]/&&/g;s/;s,x,x,$//
2151 _ACEOF
2152 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2153 rm -f conftest.sed
2154
2155 # expand $ac_aux_dir to an absolute path
2156 am_aux_dir=`cd $ac_aux_dir && pwd`
2157
2158 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2159 # Use eval to expand $SHELL
2160 if eval "$MISSING --run true"; then
2161   am_missing_run="$MISSING --run "
2162 else
2163   am_missing_run=
2164   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2165 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2166 fi
2167
2168 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2169   # We used to keeping the `.' as first argument, in order to
2170   # allow $(mkdir_p) to be used without argument.  As in
2171   #   $(mkdir_p) $(somedir)
2172   # where $(somedir) is conditionally defined.  However this is wrong
2173   # for two reasons:
2174   #  1. if the package is installed by a user who cannot write `.'
2175   #     make install will fail,
2176   #  2. the above comment should most certainly read
2177   #     $(mkdir_p) $(DESTDIR)$(somedir)
2178   #     so it does not work when $(somedir) is undefined and
2179   #     $(DESTDIR) is not.
2180   #  To support the latter case, we have to write
2181   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2182   #  so the `.' trick is pointless.
2183   mkdir_p='mkdir -p --'
2184 else
2185   # On NextStep and OpenStep, the `mkdir' command does not
2186   # recognize any option.  It will interpret all options as
2187   # directories to create, and then abort because `.' already
2188   # exists.
2189   for d in ./-p ./--version;
2190   do
2191     test -d $d && rmdir $d
2192   done
2193   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2194   if test -f "$ac_aux_dir/mkinstalldirs"; then
2195     mkdir_p='$(mkinstalldirs)'
2196   else
2197     mkdir_p='$(install_sh) -d'
2198   fi
2199 fi
2200
2201 for ac_prog in gawk mawk nawk awk
2202 do
2203   # Extract the first word of "$ac_prog", so it can be a program name with args.
2204 set dummy $ac_prog; ac_word=$2
2205 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2206 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2207 if test "${ac_cv_prog_AWK+set}" = set; then
2208   echo $ECHO_N "(cached) $ECHO_C" >&6
2209 else
2210   if test -n "$AWK"; then
2211   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2212 else
2213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2214 for as_dir in $PATH
2215 do
2216   IFS=$as_save_IFS
2217   test -z "$as_dir" && as_dir=.
2218   for ac_exec_ext in '' $ac_executable_extensions; do
2219   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2220     ac_cv_prog_AWK="$ac_prog"
2221     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2222     break 2
2223   fi
2224 done
2225 done
2226 IFS=$as_save_IFS
2227
2228 fi
2229 fi
2230 AWK=$ac_cv_prog_AWK
2231 if test -n "$AWK"; then
2232   { echo "$as_me:$LINENO: result: $AWK" >&5
2233 echo "${ECHO_T}$AWK" >&6; }
2234 else
2235   { echo "$as_me:$LINENO: result: no" >&5
2236 echo "${ECHO_T}no" >&6; }
2237 fi
2238
2239
2240   test -n "$AWK" && break
2241 done
2242
2243 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2244 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2245 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2246 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2247   echo $ECHO_N "(cached) $ECHO_C" >&6
2248 else
2249   cat >conftest.make <<\_ACEOF
2250 SHELL = /bin/sh
2251 all:
2252         @echo 'ac_maketemp=X"$(MAKE)"'
2253 _ACEOF
2254 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2255 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2256 if test "$ac_maketemp" != X ; then
2257   eval ac_cv_prog_make_${ac_make}_set=yes
2258 else
2259   eval ac_cv_prog_make_${ac_make}_set=no
2260 fi
2261 rm -f conftest.make
2262 fi
2263 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2264   { echo "$as_me:$LINENO: result: yes" >&5
2265 echo "${ECHO_T}yes" >&6; }
2266   SET_MAKE=
2267 else
2268   { echo "$as_me:$LINENO: result: no" >&5
2269 echo "${ECHO_T}no" >&6; }
2270   SET_MAKE="MAKE=${MAKE-make}"
2271 fi
2272
2273 rm -rf .tst 2>/dev/null
2274 mkdir .tst 2>/dev/null
2275 if test -d .tst; then
2276   am__leading_dot=.
2277 else
2278   am__leading_dot=_
2279 fi
2280 rmdir .tst 2>/dev/null
2281
2282 # test to see if srcdir already configured
2283 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2284    test -f $srcdir/config.status; then
2285   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2286 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2287    { (exit 1); exit 1; }; }
2288 fi
2289
2290 # test whether we have cygpath
2291 if test -z "$CYGPATH_W"; then
2292   if (cygpath --version) >/dev/null 2>/dev/null; then
2293     CYGPATH_W='cygpath -w'
2294   else
2295     CYGPATH_W=echo
2296   fi
2297 fi
2298
2299
2300 # Define the identity of the package.
2301  PACKAGE='coreutils'
2302  VERSION='6.0-cvs'
2303
2304
2305 cat >>confdefs.h <<_ACEOF
2306 #define PACKAGE "$PACKAGE"
2307 _ACEOF
2308
2309
2310 cat >>confdefs.h <<_ACEOF
2311 #define VERSION "$VERSION"
2312 _ACEOF
2313
2314 # Some tools Automake needs.
2315
2316 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2317
2318
2319 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2320
2321
2322 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2323
2324
2325 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2326
2327
2328 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2329
2330 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2331
2332 # Installed binaries are usually stripped using `strip' when the user
2333 # run `make install-strip'.  However `strip' might not be the right
2334 # tool to use in cross-compilation environments, therefore Automake
2335 # will honor the `STRIP' environment variable to overrule this program.
2336 if test "$cross_compiling" != no; then
2337   if test -n "$ac_tool_prefix"; then
2338   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2339 set dummy ${ac_tool_prefix}strip; ac_word=$2
2340 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2341 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2342 if test "${ac_cv_prog_STRIP+set}" = set; then
2343   echo $ECHO_N "(cached) $ECHO_C" >&6
2344 else
2345   if test -n "$STRIP"; then
2346   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2347 else
2348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2349 for as_dir in $PATH
2350 do
2351   IFS=$as_save_IFS
2352   test -z "$as_dir" && as_dir=.
2353   for ac_exec_ext in '' $ac_executable_extensions; do
2354   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2355     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2356     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2357     break 2
2358   fi
2359 done
2360 done
2361 IFS=$as_save_IFS
2362
2363 fi
2364 fi
2365 STRIP=$ac_cv_prog_STRIP
2366 if test -n "$STRIP"; then
2367   { echo "$as_me:$LINENO: result: $STRIP" >&5
2368 echo "${ECHO_T}$STRIP" >&6; }
2369 else
2370   { echo "$as_me:$LINENO: result: no" >&5
2371 echo "${ECHO_T}no" >&6; }
2372 fi
2373
2374
2375 fi
2376 if test -z "$ac_cv_prog_STRIP"; then
2377   ac_ct_STRIP=$STRIP
2378   # Extract the first word of "strip", so it can be a program name with args.
2379 set dummy strip; ac_word=$2
2380 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2381 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2382 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2383   echo $ECHO_N "(cached) $ECHO_C" >&6
2384 else
2385   if test -n "$ac_ct_STRIP"; then
2386   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2387 else
2388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2389 for as_dir in $PATH
2390 do
2391   IFS=$as_save_IFS
2392   test -z "$as_dir" && as_dir=.
2393   for ac_exec_ext in '' $ac_executable_extensions; do
2394   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2395     ac_cv_prog_ac_ct_STRIP="strip"
2396     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2397     break 2
2398   fi
2399 done
2400 done
2401 IFS=$as_save_IFS
2402
2403 fi
2404 fi
2405 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2406 if test -n "$ac_ct_STRIP"; then
2407   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2408 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2409 else
2410   { echo "$as_me:$LINENO: result: no" >&5
2411 echo "${ECHO_T}no" >&6; }
2412 fi
2413
2414   if test "x$ac_ct_STRIP" = x; then
2415     STRIP=":"
2416   else
2417     case $cross_compiling:$ac_tool_warned in
2418 yes:)
2419 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2420 whose name does not start with the host triplet.  If you think this
2421 configuration is useful to you, please write to autoconf@gnu.org." >&5
2422 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2423 whose name does not start with the host triplet.  If you think this
2424 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2425 ac_tool_warned=yes ;;
2426 esac
2427     STRIP=$ac_ct_STRIP
2428   fi
2429 else
2430   STRIP="$ac_cv_prog_STRIP"
2431 fi
2432
2433 fi
2434 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2435
2436 # We need awk for the "check" target.  The system "awk" is bad on
2437 # some platforms.
2438 # Always define AMTAR for backward compatibility.
2439
2440 AMTAR=${AMTAR-"${am_missing_run}tar"}
2441
2442 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2443
2444
2445
2446
2447
2448
2449
2450   { echo "$as_me:$LINENO: checking for desired default level of POSIX conformance" >&5
2451 echo $ECHO_N "checking for desired default level of POSIX conformance... $ECHO_C" >&6; }
2452   gl_default_posix2_version=none-specified
2453   if test -n "$ac_cv_env_DEFAULT_POSIX2_VERSION_set"; then
2454     gl_default_posix2_version=$ac_cv_env_DEFAULT_POSIX2_VERSION_value
2455
2456 cat >>confdefs.h <<_ACEOF
2457 #define DEFAULT_POSIX2_VERSION $gl_default_posix2_version
2458 _ACEOF
2459
2460   fi
2461   { echo "$as_me:$LINENO: result: $gl_default_posix2_version" >&5
2462 echo "${ECHO_T}$gl_default_posix2_version" >&6; }
2463
2464
2465
2466 cat >>confdefs.h <<\_ACEOF
2467 #define _GNU_SOURCE 1
2468 _ACEOF
2469
2470
2471 DEPDIR="${am__leading_dot}deps"
2472
2473 ac_config_commands="$ac_config_commands depfiles"
2474
2475
2476 am_make=${MAKE-make}
2477 cat > confinc << 'END'
2478 am__doit:
2479         @echo done
2480 .PHONY: am__doit
2481 END
2482 # If we don't find an include directive, just comment out the code.
2483 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2484 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2485 am__include="#"
2486 am__quote=
2487 _am_result=none
2488 # First try GNU make style include.
2489 echo "include confinc" > confmf
2490 # We grep out `Entering directory' and `Leaving directory'
2491 # messages which can occur if `w' ends up in MAKEFLAGS.
2492 # In particular we don't look at `^make:' because GNU make might
2493 # be invoked under some other name (usually "gmake"), in which
2494 # case it prints its new name instead of `make'.
2495 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2496    am__include=include
2497    am__quote=
2498    _am_result=GNU
2499 fi
2500 # Now try BSD make style include.
2501 if test "$am__include" = "#"; then
2502    echo '.include "confinc"' > confmf
2503    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2504       am__include=.include
2505       am__quote="\""
2506       _am_result=BSD
2507    fi
2508 fi
2509
2510
2511 { echo "$as_me:$LINENO: result: $_am_result" >&5
2512 echo "${ECHO_T}$_am_result" >&6; }
2513 rm -f confinc confmf
2514
2515 # Check whether --enable-dependency-tracking was given.
2516 if test "${enable_dependency_tracking+set}" = set; then
2517   enableval=$enable_dependency_tracking;
2518 fi
2519
2520 if test "x$enable_dependency_tracking" != xno; then
2521   am_depcomp="$ac_aux_dir/depcomp"
2522   AMDEPBACKSLASH='\'
2523 fi
2524
2525
2526 if test "x$enable_dependency_tracking" != xno; then
2527   AMDEP_TRUE=
2528   AMDEP_FALSE='#'
2529 else
2530   AMDEP_TRUE='#'
2531   AMDEP_FALSE=
2532 fi
2533
2534
2535
2536 ac_ext=c
2537 ac_cpp='$CPP $CPPFLAGS'
2538 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2539 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2540 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2541 if test -n "$ac_tool_prefix"; then
2542   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2543 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2544 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2545 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2546 if test "${ac_cv_prog_CC+set}" = set; then
2547   echo $ECHO_N "(cached) $ECHO_C" >&6
2548 else
2549   if test -n "$CC"; then
2550   ac_cv_prog_CC="$CC" # Let the user override the test.
2551 else
2552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2553 for as_dir in $PATH
2554 do
2555   IFS=$as_save_IFS
2556   test -z "$as_dir" && as_dir=.
2557   for ac_exec_ext in '' $ac_executable_extensions; do
2558   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2559     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2560     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2561     break 2
2562   fi
2563 done
2564 done
2565 IFS=$as_save_IFS
2566
2567 fi
2568 fi
2569 CC=$ac_cv_prog_CC
2570 if test -n "$CC"; then
2571   { echo "$as_me:$LINENO: result: $CC" >&5
2572 echo "${ECHO_T}$CC" >&6; }
2573 else
2574   { echo "$as_me:$LINENO: result: no" >&5
2575 echo "${ECHO_T}no" >&6; }
2576 fi
2577
2578
2579 fi
2580 if test -z "$ac_cv_prog_CC"; then
2581   ac_ct_CC=$CC
2582   # Extract the first word of "gcc", so it can be a program name with args.
2583 set dummy gcc; ac_word=$2
2584 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2585 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2586 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2587   echo $ECHO_N "(cached) $ECHO_C" >&6
2588 else
2589   if test -n "$ac_ct_CC"; then
2590   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2591 else
2592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2593 for as_dir in $PATH
2594 do
2595   IFS=$as_save_IFS
2596   test -z "$as_dir" && as_dir=.
2597   for ac_exec_ext in '' $ac_executable_extensions; do
2598   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2599     ac_cv_prog_ac_ct_CC="gcc"
2600     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2601     break 2
2602   fi
2603 done
2604 done
2605 IFS=$as_save_IFS
2606
2607 fi
2608 fi
2609 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2610 if test -n "$ac_ct_CC"; then
2611   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2612 echo "${ECHO_T}$ac_ct_CC" >&6; }
2613 else
2614   { echo "$as_me:$LINENO: result: no" >&5
2615 echo "${ECHO_T}no" >&6; }
2616 fi
2617
2618   if test "x$ac_ct_CC" = x; then
2619     CC=""
2620   else
2621     case $cross_compiling:$ac_tool_warned in
2622 yes:)
2623 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2624 whose name does not start with the host triplet.  If you think this
2625 configuration is useful to you, please write to autoconf@gnu.org." >&5
2626 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2627 whose name does not start with the host triplet.  If you think this
2628 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2629 ac_tool_warned=yes ;;
2630 esac
2631     CC=$ac_ct_CC
2632   fi
2633 else
2634   CC="$ac_cv_prog_CC"
2635 fi
2636
2637 if test -z "$CC"; then
2638           if test -n "$ac_tool_prefix"; then
2639     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2640 set dummy ${ac_tool_prefix}cc; ac_word=$2
2641 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2642 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2643 if test "${ac_cv_prog_CC+set}" = set; then
2644   echo $ECHO_N "(cached) $ECHO_C" >&6
2645 else
2646   if test -n "$CC"; then
2647   ac_cv_prog_CC="$CC" # Let the user override the test.
2648 else
2649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2650 for as_dir in $PATH
2651 do
2652   IFS=$as_save_IFS
2653   test -z "$as_dir" && as_dir=.
2654   for ac_exec_ext in '' $ac_executable_extensions; do
2655   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2656     ac_cv_prog_CC="${ac_tool_prefix}cc"
2657     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2658     break 2
2659   fi
2660 done
2661 done
2662 IFS=$as_save_IFS
2663
2664 fi
2665 fi
2666 CC=$ac_cv_prog_CC
2667 if test -n "$CC"; then
2668   { echo "$as_me:$LINENO: result: $CC" >&5
2669 echo "${ECHO_T}$CC" >&6; }
2670 else
2671   { echo "$as_me:$LINENO: result: no" >&5
2672 echo "${ECHO_T}no" >&6; }
2673 fi
2674
2675
2676   fi
2677 fi
2678 if test -z "$CC"; then
2679   # Extract the first word of "cc", so it can be a program name with args.
2680 set dummy cc; ac_word=$2
2681 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2682 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2683 if test "${ac_cv_prog_CC+set}" = set; then
2684   echo $ECHO_N "(cached) $ECHO_C" >&6
2685 else
2686   if test -n "$CC"; then
2687   ac_cv_prog_CC="$CC" # Let the user override the test.
2688 else
2689   ac_prog_rejected=no
2690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2691 for as_dir in $PATH
2692 do
2693   IFS=$as_save_IFS
2694   test -z "$as_dir" && as_dir=.
2695   for ac_exec_ext in '' $ac_executable_extensions; do
2696   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2697     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2698        ac_prog_rejected=yes
2699        continue
2700      fi
2701     ac_cv_prog_CC="cc"
2702     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2703     break 2
2704   fi
2705 done
2706 done
2707 IFS=$as_save_IFS
2708
2709 if test $ac_prog_rejected = yes; then
2710   # We found a bogon in the path, so make sure we never use it.
2711   set dummy $ac_cv_prog_CC
2712   shift
2713   if test $# != 0; then
2714     # We chose a different compiler from the bogus one.
2715     # However, it has the same basename, so the bogon will be chosen
2716     # first if we set CC to just the basename; use the full file name.
2717     shift
2718     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2719   fi
2720 fi
2721 fi
2722 fi
2723 CC=$ac_cv_prog_CC
2724 if test -n "$CC"; then
2725   { echo "$as_me:$LINENO: result: $CC" >&5
2726 echo "${ECHO_T}$CC" >&6; }
2727 else
2728   { echo "$as_me:$LINENO: result: no" >&5
2729 echo "${ECHO_T}no" >&6; }
2730 fi
2731
2732
2733 fi
2734 if test -z "$CC"; then
2735   if test -n "$ac_tool_prefix"; then
2736   for ac_prog in cl.exe
2737   do
2738     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2739 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2740 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2741 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2742 if test "${ac_cv_prog_CC+set}" = set; then
2743   echo $ECHO_N "(cached) $ECHO_C" >&6
2744 else
2745   if test -n "$CC"; then
2746   ac_cv_prog_CC="$CC" # Let the user override the test.
2747 else
2748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2749 for as_dir in $PATH
2750 do
2751   IFS=$as_save_IFS
2752   test -z "$as_dir" && as_dir=.
2753   for ac_exec_ext in '' $ac_executable_extensions; do
2754   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2755     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2756     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2757     break 2
2758   fi
2759 done
2760 done
2761 IFS=$as_save_IFS
2762
2763 fi
2764 fi
2765 CC=$ac_cv_prog_CC
2766 if test -n "$CC"; then
2767   { echo "$as_me:$LINENO: result: $CC" >&5
2768 echo "${ECHO_T}$CC" >&6; }
2769 else
2770   { echo "$as_me:$LINENO: result: no" >&5
2771 echo "${ECHO_T}no" >&6; }
2772 fi
2773
2774
2775     test -n "$CC" && break
2776   done
2777 fi
2778 if test -z "$CC"; then
2779   ac_ct_CC=$CC
2780   for ac_prog in cl.exe
2781 do
2782   # Extract the first word of "$ac_prog", so it can be a program name with args.
2783 set dummy $ac_prog; ac_word=$2
2784 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2785 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2786 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2787   echo $ECHO_N "(cached) $ECHO_C" >&6
2788 else
2789   if test -n "$ac_ct_CC"; then
2790   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2791 else
2792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2793 for as_dir in $PATH
2794 do
2795   IFS=$as_save_IFS
2796   test -z "$as_dir" && as_dir=.
2797   for ac_exec_ext in '' $ac_executable_extensions; do
2798   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2799     ac_cv_prog_ac_ct_CC="$ac_prog"
2800     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2801     break 2
2802   fi
2803 done
2804 done
2805 IFS=$as_save_IFS
2806
2807 fi
2808 fi
2809 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2810 if test -n "$ac_ct_CC"; then
2811   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2812 echo "${ECHO_T}$ac_ct_CC" >&6; }
2813 else
2814   { echo "$as_me:$LINENO: result: no" >&5
2815 echo "${ECHO_T}no" >&6; }
2816 fi
2817
2818
2819   test -n "$ac_ct_CC" && break
2820 done
2821
2822   if test "x$ac_ct_CC" = x; then
2823     CC=""
2824   else
2825     case $cross_compiling:$ac_tool_warned in
2826 yes:)
2827 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2828 whose name does not start with the host triplet.  If you think this
2829 configuration is useful to you, please write to autoconf@gnu.org." >&5
2830 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2831 whose name does not start with the host triplet.  If you think this
2832 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2833 ac_tool_warned=yes ;;
2834 esac
2835     CC=$ac_ct_CC
2836   fi
2837 fi
2838
2839 fi
2840
2841
2842 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2843 See \`config.log' for more details." >&5
2844 echo "$as_me: error: no acceptable C compiler found in \$PATH
2845 See \`config.log' for more details." >&2;}
2846    { (exit 1); exit 1; }; }
2847
2848 # Provide some information about the compiler.
2849 echo "$as_me:$LINENO: checking for C compiler version" >&5
2850 ac_compiler=`set X $ac_compile; echo $2`
2851 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version >&5\"") >&5
2852   (eval $ac_compiler --version >&5) 2>&5
2853   ac_status=$?
2854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2855   (exit $ac_status); }
2856 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v >&5\"") >&5
2857   (eval $ac_compiler -v >&5) 2>&5
2858   ac_status=$?
2859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2860   (exit $ac_status); }
2861 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V >&5\"") >&5
2862   (eval $ac_compiler -V >&5) 2>&5
2863   ac_status=$?
2864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2865   (exit $ac_status); }
2866
2867
2868 # List of possible output files.  We want to start from the most likely,
2869 # but we have to check foo.exe before foo, because Cygwin `test -f' looks
2870 # also for foo.exe.  b.out is created by i960 compilers.
2871 # As a last resort, we also try wildcards: `conftest.*' and `a.*'.
2872 # But we are not allowed to rm a.*, and we do not want always remove
2873 # conftest.*, so we will list them literally, when appropriate.
2874 ac_outfiles="a_out.exe a.out conftest.exe conftest a.exe b.out"
2875
2876 # The IRIX 6 linker writes into existing files which may not be
2877 # executable, retaining their permissions.  Remove them first so a
2878 # subsequent execution test works.
2879 rm -f $ac_outfiles conftest.*
2880
2881 cat >conftest.$ac_ext <<_ACEOF
2882 /* confdefs.h.  */
2883 _ACEOF
2884 cat confdefs.h >>conftest.$ac_ext
2885 cat >>conftest.$ac_ext <<_ACEOF
2886 /* end confdefs.h.  */
2887
2888 int
2889 main ()
2890 {
2891
2892   ;
2893   return 0;
2894 }
2895 _ACEOF
2896
2897 ac_clean_files_save=$ac_clean_files
2898 ac_clean_files="$ac_clean_files $ac_outfiles"
2899
2900 # The following tests should remove their output except files matching conftest.*.
2901 # Try to create an executable without -o first, disregard a.out.
2902 # It will help us diagnose broken compilers, and finding out an intuition
2903 # of exeext.
2904 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2905 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2906 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2907
2908 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2909   (eval $ac_link_default) 2>&5
2910   ac_status=$?
2911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2912   (exit $ac_status); }; then
2913   for ac_file in $ac_outfiles a.* conftest.* NO
2914 do
2915   test -f "$ac_file" || continue
2916   case $ac_file in
2917     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2918     * ) break;;
2919   esac
2920 done
2921 if test "$ac_file" = NO; then
2922   { { echo "$as_me:$LINENO: error: no output file found
2923 See \`config.log' for more details." >&5
2924 echo "$as_me: error: no output file found
2925 See \`config.log' for more details." >&2;}
2926    { (exit 1); exit 1; }; }
2927 fi
2928
2929
2930 else
2931   echo "$as_me: failed program was:" >&5
2932 sed 's/^/| /' conftest.$ac_ext >&5
2933
2934 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2935 See \`config.log' for more details." >&5
2936 echo "$as_me: error: C compiler cannot create executables
2937 See \`config.log' for more details." >&2;}
2938    { (exit 77); exit 77; }; }
2939 fi
2940
2941 { echo "$as_me:$LINENO: result: $ac_file" >&5
2942 echo "${ECHO_T}$ac_file" >&6; }
2943 # Check that the compiler produces executables we can run.  If not, either
2944 # the compiler is broken, or we cross compile.
2945 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2946 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2947 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2948 # If not cross compiling, check that we can run a simple program.
2949 if test "$cross_compiling" != yes; then
2950   if { ac_try='./$ac_file'
2951   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2952   (eval $ac_try) 2>&5
2953   ac_status=$?
2954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2955   (exit $ac_status); }; }; then
2956     cross_compiling=no
2957   else
2958     if test "$cross_compiling" = maybe; then
2959         cross_compiling=yes
2960     else
2961         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2962 If you meant to cross compile, use \`--host'.
2963 See \`config.log' for more details." >&5
2964 echo "$as_me: error: cannot run C compiled programs.
2965 If you meant to cross compile, use \`--host'.
2966 See \`config.log' for more details." >&2;}
2967    { (exit 1); exit 1; }; }
2968     fi
2969   fi
2970 fi
2971 { echo "$as_me:$LINENO: result: yes" >&5
2972 echo "${ECHO_T}yes" >&6; }
2973
2974 # Clean up; list also $ac_file, in case it matched a wildcard entry.
2975 rm -f $ac_outfiles $ac_file
2976
2977 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2978 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2979 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2980 echo "${ECHO_T}$cross_compiling" >&6; }
2981
2982 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2983 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2984 if test "${ac_cv_exeext+set}" = set; then
2985   echo $ECHO_N "(cached) $ECHO_C" >&6
2986 else
2987   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2988   (eval $ac_link) 2>&5
2989   ac_status=$?
2990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2991   (exit $ac_status); }; then
2992   # If both `conftest.exe' and `conftest' are `present' (well, observable),
2993     # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2994     # work properly (i.e., refer to `conftest.exe'), while it won't with `rm'.
2995     for ac_file in conftest.exe conftest conftest.* NO; do
2996       test -f "$ac_file" || continue
2997       case $ac_file in
2998         *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2999         *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3000               break;;
3001         * ) break;;
3002       esac
3003     done
3004     if test "$ac_file" = NO; then
3005   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: no output file found
3006 See \`config.log' for more details." >&5
3007 echo "$as_me: error: cannot compute suffix of executables: no output file found
3008 See \`config.log' for more details." >&2;}
3009    { (exit 1); exit 1; }; }
3010 fi
3011
3012     # Clean up; list also $ac_file, in case it matched conftest.*.
3013     rm -f $ac_outfiles $ac_file
3014
3015 else
3016   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3017 See \`config.log' for more details." >&5
3018 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3019 See \`config.log' for more details." >&2;}
3020    { (exit 1); exit 1; }; }
3021
3022 fi
3023
3024
3025 fi
3026 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3027 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3028 EXEEXT=$ac_cv_exeext
3029 ac_exeext=$EXEEXT
3030
3031
3032 ac_clean_files=$ac_clean_files_save
3033
3034 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3035 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3036 if test "${ac_cv_objext+set}" = set; then
3037   echo $ECHO_N "(cached) $ECHO_C" >&6
3038 else
3039   rm -f conftest.o conftest.obj
3040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3041   (eval $ac_compile) 2>&5
3042   ac_status=$?
3043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3044   (exit $ac_status); }; then
3045   for ac_file in conftest.o conftest.obj conftest.*; do
3046   test -f "$ac_file" || continue;
3047   case $ac_file in
3048     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3049     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3050        break;;
3051   esac
3052 done
3053 else
3054   echo "$as_me: failed program was:" >&5
3055 sed 's/^/| /' conftest.$ac_ext >&5
3056
3057 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3058 See \`config.log' for more details." >&5
3059 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3060 See \`config.log' for more details." >&2;}
3061    { (exit 1); exit 1; }; }
3062 fi
3063
3064 fi
3065 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3066 echo "${ECHO_T}$ac_cv_objext" >&6; }
3067 OBJEXT=$ac_cv_objext
3068 ac_objext=$OBJEXT
3069
3070
3071 rm -f conftest.*
3072 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3073 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3074 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3075   echo $ECHO_N "(cached) $ECHO_C" >&6
3076 else
3077   cat >conftest.$ac_ext <<_ACEOF
3078 /* confdefs.h.  */
3079 _ACEOF
3080 cat confdefs.h >>conftest.$ac_ext
3081 cat >>conftest.$ac_ext <<_ACEOF
3082 /* end confdefs.h.  */
3083
3084 int
3085 main ()
3086 {
3087 #ifndef __GNUC__
3088        choke me
3089 #endif
3090
3091   ;
3092   return 0;
3093 }
3094 _ACEOF
3095 rm -f conftest.$ac_objext
3096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3097   (eval $ac_compile) 2>conftest.er1
3098   ac_status=$?
3099   grep -v '^ *+' conftest.er1 >conftest.err
3100   rm -f conftest.er1
3101   cat conftest.err >&5
3102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3103   (exit $ac_status); } &&
3104          { ac_try='test -z "$ac_c_werror_flag"
3105                          || test ! -s conftest.err'
3106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3107   (eval $ac_try) 2>&5
3108   ac_status=$?
3109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3110   (exit $ac_status); }; } &&
3111          { ac_try='test -s conftest.$ac_objext'
3112   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3113   (eval $ac_try) 2>&5
3114   ac_status=$?
3115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3116   (exit $ac_status); }; }; then
3117   ac_compiler_gnu=yes
3118 else
3119   echo "$as_me: failed program was:" >&5
3120 sed 's/^/| /' conftest.$ac_ext >&5
3121
3122         ac_compiler_gnu=no
3123 fi
3124
3125 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3126 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3127
3128 fi
3129 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3130 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3131 GCC=`test $ac_compiler_gnu = yes && echo yes`
3132 ac_test_CFLAGS=${CFLAGS+set}
3133 ac_save_CFLAGS=$CFLAGS
3134 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3135 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3136 if test "${ac_cv_prog_cc_g+set}" = set; then
3137   echo $ECHO_N "(cached) $ECHO_C" >&6
3138 else
3139   ac_save_c_werror_flag=$ac_c_werror_flag
3140    ac_c_werror_flag=yes
3141    ac_cv_prog_cc_g=no
3142    CFLAGS="-g"
3143    cat >conftest.$ac_ext <<_ACEOF
3144 /* confdefs.h.  */
3145 _ACEOF
3146 cat confdefs.h >>conftest.$ac_ext
3147 cat >>conftest.$ac_ext <<_ACEOF
3148 /* end confdefs.h.  */
3149
3150 int
3151 main ()
3152 {
3153
3154   ;
3155   return 0;
3156 }
3157 _ACEOF
3158 rm -f conftest.$ac_objext
3159 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3160   (eval $ac_compile) 2>conftest.er1
3161   ac_status=$?
3162   grep -v '^ *+' conftest.er1 >conftest.err
3163   rm -f conftest.er1
3164   cat conftest.err >&5
3165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3166   (exit $ac_status); } &&
3167          { ac_try='test -z "$ac_c_werror_flag"
3168                          || test ! -s conftest.err'
3169   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3170   (eval $ac_try) 2>&5
3171   ac_status=$?
3172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3173   (exit $ac_status); }; } &&
3174          { ac_try='test -s conftest.$ac_objext'
3175   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3176   (eval $ac_try) 2>&5
3177   ac_status=$?
3178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3179   (exit $ac_status); }; }; then
3180   ac_cv_prog_cc_g=yes
3181 else
3182   echo "$as_me: failed program was:" >&5
3183 sed 's/^/| /' conftest.$ac_ext >&5
3184
3185         CFLAGS=""
3186       cat >conftest.$ac_ext <<_ACEOF
3187 /* confdefs.h.  */
3188 _ACEOF
3189 cat confdefs.h >>conftest.$ac_ext
3190 cat >>conftest.$ac_ext <<_ACEOF
3191 /* end confdefs.h.  */
3192
3193 int
3194 main ()
3195 {
3196
3197   ;
3198   return 0;
3199 }
3200 _ACEOF
3201 rm -f conftest.$ac_objext
3202 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3203   (eval $ac_compile) 2>conftest.er1
3204   ac_status=$?
3205   grep -v '^ *+' conftest.er1 >conftest.err
3206   rm -f conftest.er1
3207   cat conftest.err >&5
3208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3209   (exit $ac_status); } &&
3210          { ac_try='test -z "$ac_c_werror_flag"
3211                          || test ! -s conftest.err'
3212   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3213   (eval $ac_try) 2>&5
3214   ac_status=$?
3215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3216   (exit $ac_status); }; } &&
3217          { ac_try='test -s conftest.$ac_objext'
3218   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3219   (eval $ac_try) 2>&5
3220   ac_status=$?
3221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3222   (exit $ac_status); }; }; then
3223   :
3224 else
3225   echo "$as_me: failed program was:" >&5
3226 sed 's/^/| /' conftest.$ac_ext >&5
3227
3228         ac_c_werror_flag=$ac_save_c_werror_flag
3229          CFLAGS="-g"
3230          cat >conftest.$ac_ext <<_ACEOF
3231 /* confdefs.h.  */
3232 _ACEOF
3233 cat confdefs.h >>conftest.$ac_ext
3234 cat >>conftest.$ac_ext <<_ACEOF
3235 /* end confdefs.h.  */
3236
3237 int
3238 main ()
3239 {
3240
3241   ;
3242   return 0;
3243 }
3244 _ACEOF
3245 rm -f conftest.$ac_objext
3246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3247   (eval $ac_compile) 2>conftest.er1
3248   ac_status=$?
3249   grep -v '^ *+' conftest.er1 >conftest.err
3250   rm -f conftest.er1
3251   cat conftest.err >&5
3252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3253   (exit $ac_status); } &&
3254          { ac_try='test -z "$ac_c_werror_flag"
3255                          || test ! -s conftest.err'
3256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3257   (eval $ac_try) 2>&5
3258   ac_status=$?
3259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3260   (exit $ac_status); }; } &&
3261          { ac_try='test -s conftest.$ac_objext'
3262   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3263   (eval $ac_try) 2>&5
3264   ac_status=$?
3265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3266   (exit $ac_status); }; }; then
3267   ac_cv_prog_cc_g=yes
3268 else
3269   echo "$as_me: failed program was:" >&5
3270 sed 's/^/| /' conftest.$ac_ext >&5
3271
3272
3273 fi
3274
3275 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3276 fi
3277
3278 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3279 fi
3280
3281 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3282    ac_c_werror_flag=$ac_save_c_werror_flag
3283 fi
3284 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3285 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3286 if test "$ac_test_CFLAGS" = set; then
3287   CFLAGS=$ac_save_CFLAGS
3288 elif test $ac_cv_prog_cc_g = yes; then
3289   if test "$GCC" = yes; then
3290     CFLAGS="-g -O2"
3291   else
3292     CFLAGS="-g"
3293   fi
3294 else
3295   if test "$GCC" = yes; then
3296     CFLAGS="-O2"
3297   else
3298     CFLAGS=
3299   fi
3300 fi
3301 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3302 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3303 if test "${ac_cv_prog_cc_c89+set}" = set; then
3304   echo $ECHO_N "(cached) $ECHO_C" >&6
3305 else
3306   ac_cv_prog_cc_c89=no
3307 ac_save_CC=$CC
3308 cat >conftest.$ac_ext <<_ACEOF
3309 /* confdefs.h.  */
3310 _ACEOF
3311 cat confdefs.h >>conftest.$ac_ext
3312 cat >>conftest.$ac_ext <<_ACEOF
3313 /* end confdefs.h.  */
3314 #include <stdarg.h>
3315 #include <stdio.h>
3316 #include <sys/types.h>
3317 #include <sys/stat.h>
3318 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3319 struct buf { int x; };
3320 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3321 static char *e (p, i)
3322      char **p;
3323      int i;
3324 {
3325   return p[i];
3326 }
3327 static char *f (char * (*g) (char **, int), char **p, ...)
3328 {
3329   char *s;
3330   va_list v;
3331   va_start (v,p);
3332   s = g (p, va_arg (v,int));
3333   va_end (v);
3334   return s;
3335 }
3336
3337 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3338    function prototypes and stuff, but not '\xHH' hex character constants.
3339    These don't provoke an error unfortunately, instead are silently treated
3340    as 'x'.  The following induces an error, until -std is added to get
3341    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3342    array size at least.  It's necessary to write '\x00'==0 to get something
3343    that's true only with -std.  */
3344 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3345
3346 int test (int i, double x);
3347 struct s1 {int (*f) (int a);};
3348 struct s2 {int (*f) (double a);};
3349 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3350 int argc;
3351 char **argv;
3352 int
3353 main ()
3354 {
3355 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3356   ;
3357   return 0;
3358 }
3359 _ACEOF
3360 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3361         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3362 do
3363   CC="$ac_save_CC $ac_arg"
3364   rm -f conftest.$ac_objext
3365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3366   (eval $ac_compile) 2>conftest.er1
3367   ac_status=$?
3368   grep -v '^ *+' conftest.er1 >conftest.err
3369   rm -f conftest.er1
3370   cat conftest.err >&5
3371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3372   (exit $ac_status); } &&
3373          { ac_try='test -z "$ac_c_werror_flag"
3374                          || test ! -s conftest.err'
3375   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3376   (eval $ac_try) 2>&5
3377   ac_status=$?
3378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3379   (exit $ac_status); }; } &&
3380          { ac_try='test -s conftest.$ac_objext'
3381   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3382   (eval $ac_try) 2>&5
3383   ac_status=$?
3384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3385   (exit $ac_status); }; }; then
3386   ac_cv_prog_cc_c89=$ac_arg
3387 else
3388   echo "$as_me: failed program was:" >&5
3389 sed 's/^/| /' conftest.$ac_ext >&5
3390
3391
3392 fi
3393
3394 rm -f conftest.err conftest.$ac_objext
3395   test "x$ac_cv_prog_cc_c89" != "xno" && break
3396 done
3397 rm -f conftest.$ac_ext
3398 CC=$ac_save_CC
3399
3400 fi
3401 # AC_CACHE_VAL
3402 case "x$ac_cv_prog_cc_c89" in
3403   x)
3404     { echo "$as_me:$LINENO: result: none needed" >&5
3405 echo "${ECHO_T}none needed" >&6; } ;;
3406   xno)
3407     { echo "$as_me:$LINENO: result: unsupported" >&5
3408 echo "${ECHO_T}unsupported" >&6; } ;;
3409   *)
3410     CC="$CC $ac_cv_prog_cc_c89"
3411     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3412 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3413 esac
3414
3415
3416 ac_ext=c
3417 ac_cpp='$CPP $CPPFLAGS'
3418 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3419 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3420 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3421
3422 depcc="$CC"   am_compiler_list=
3423
3424 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3425 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3426 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3427   echo $ECHO_N "(cached) $ECHO_C" >&6
3428 else
3429   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3430   # We make a subdir and do the tests there.  Otherwise we can end up
3431   # making bogus files that we don't know about and never remove.  For
3432   # instance it was reported that on HP-UX the gcc test will end up
3433   # making a dummy file named `D' -- because `-MD' means `put the output
3434   # in D'.
3435   mkdir conftest.dir
3436   # Copy depcomp to subdir because otherwise we won't find it if we're
3437   # using a relative directory.
3438   cp "$am_depcomp" conftest.dir
3439   cd conftest.dir
3440   # We will build objects and dependencies in a subdirectory because
3441   # it helps to detect inapplicable dependency modes.  For instance
3442   # both Tru64's cc and ICC support -MD to output dependencies as a
3443   # side effect of compilation, but ICC will put the dependencies in
3444   # the current directory while Tru64 will put them in the object
3445   # directory.
3446   mkdir sub
3447
3448   am_cv_CC_dependencies_compiler_type=none
3449   if test "$am_compiler_list" = ""; then
3450      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3451   fi
3452   for depmode in $am_compiler_list; do
3453     # Setup a source with many dependencies, because some compilers
3454     # like to wrap large dependency lists on column 80 (with \), and
3455     # we should not choose a depcomp mode which is confused by this.
3456     #
3457     # We need to recreate these files for each test, as the compiler may
3458     # overwrite some of them when testing with obscure command lines.
3459     # This happens at least with the AIX C compiler.
3460     : > sub/conftest.c
3461     for i in 1 2 3 4 5 6; do
3462       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3463       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3464       # Solaris 8's {/usr,}/bin/sh.
3465       touch sub/conftst$i.h
3466     done
3467     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3468
3469     case $depmode in
3470     nosideeffect)
3471       # after this tag, mechanisms are not by side-effect, so they'll
3472       # only be used when explicitly requested
3473       if test "x$enable_dependency_tracking" = xyes; then
3474         continue
3475       else
3476         break
3477       fi
3478       ;;
3479     none) break ;;
3480     esac
3481     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3482     # mode.  It turns out that the SunPro C++ compiler does not properly
3483     # handle `-M -o', and we need to detect this.
3484     if depmode=$depmode \
3485        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3486        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3487        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3488          >/dev/null 2>conftest.err &&
3489        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3490        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3491        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3492       # icc doesn't choke on unknown options, it will just issue warnings
3493       # or remarks (even with -Werror).  So we grep stderr for any message
3494       # that says an option was ignored or not supported.
3495       # When given -MP, icc 7.0 and 7.1 complain thusly:
3496       #   icc: Command line warning: ignoring option '-M'; no argument required
3497       # The diagnosis changed in icc 8.0:
3498       #   icc: Command line remark: option '-MP' not supported
3499       if (grep 'ignoring option' conftest.err ||
3500           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3501         am_cv_CC_dependencies_compiler_type=$depmode
3502         break
3503       fi
3504     fi
3505   done
3506
3507   cd ..
3508   rm -rf conftest.dir
3509 else
3510   am_cv_CC_dependencies_compiler_type=none
3511 fi
3512
3513 fi
3514 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3515 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3516 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3517
3518
3519
3520 if
3521   test "x$enable_dependency_tracking" != xno \
3522   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3523   am__fastdepCC_TRUE=
3524   am__fastdepCC_FALSE='#'
3525 else
3526   am__fastdepCC_TRUE='#'
3527   am__fastdepCC_FALSE=
3528 fi
3529
3530
3531
3532 ac_ext=c
3533 ac_cpp='$CPP $CPPFLAGS'
3534 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3535 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3536 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3537 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3538 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3539 # On Suns, sometimes $CPP names a directory.
3540 if test -n "$CPP" && test -d "$CPP"; then
3541   CPP=
3542 fi
3543 if test -z "$CPP"; then
3544   if test "${ac_cv_prog_CPP+set}" = set; then
3545   echo $ECHO_N "(cached) $ECHO_C" >&6
3546 else
3547       # Double quotes because CPP needs to be expanded
3548     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3549     do
3550       ac_preproc_ok=false
3551 for ac_c_preproc_warn_flag in '' yes
3552 do
3553   # Use a header file that comes with gcc, so configuring glibc
3554   # with a fresh cross-compiler works.
3555   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3556   # <limits.h> exists even on freestanding compilers.
3557   # On the NeXT, cc -E runs the code through the compiler's parser,
3558   # not just through cpp. "Syntax error" is here to catch this case.
3559   cat >conftest.$ac_ext <<_ACEOF
3560 /* confdefs.h.  */
3561 _ACEOF
3562 cat confdefs.h >>conftest.$ac_ext
3563 cat >>conftest.$ac_ext <<_ACEOF
3564 /* end confdefs.h.  */
3565 #ifdef __STDC__
3566 # include <limits.h>
3567 #else
3568 # include <assert.h>
3569 #endif
3570                      Syntax error
3571 _ACEOF
3572 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3573   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3574   ac_status=$?
3575   grep -v '^ *+' conftest.er1 >conftest.err
3576   rm -f conftest.er1
3577   cat conftest.err >&5
3578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3579   (exit $ac_status); } >/dev/null; then
3580   if test -s conftest.err; then
3581     ac_cpp_err=$ac_c_preproc_warn_flag
3582     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3583   else
3584     ac_cpp_err=
3585   fi
3586 else
3587   ac_cpp_err=yes
3588 fi
3589 if test -z "$ac_cpp_err"; then
3590   :
3591 else
3592   echo "$as_me: failed program was:" >&5
3593 sed 's/^/| /' conftest.$ac_ext >&5
3594
3595   # Broken: fails on valid input.
3596 continue
3597 fi
3598
3599 rm -f conftest.err conftest.$ac_ext
3600
3601   # OK, works on sane cases.  Now check whether nonexistent headers
3602   # can be detected and how.
3603   cat >conftest.$ac_ext <<_ACEOF
3604 /* confdefs.h.  */
3605 _ACEOF
3606 cat confdefs.h >>conftest.$ac_ext
3607 cat >>conftest.$ac_ext <<_ACEOF
3608 /* end confdefs.h.  */
3609 #include <ac_nonexistent.h>
3610 _ACEOF
3611 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3612   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3613   ac_status=$?
3614   grep -v '^ *+' conftest.er1 >conftest.err
3615   rm -f conftest.er1
3616   cat conftest.err >&5
3617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3618   (exit $ac_status); } >/dev/null; then
3619   if test -s conftest.err; then
3620     ac_cpp_err=$ac_c_preproc_warn_flag
3621     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3622   else
3623     ac_cpp_err=
3624   fi
3625 else
3626   ac_cpp_err=yes
3627 fi
3628 if test -z "$ac_cpp_err"; then
3629   # Broken: success on invalid input.
3630 continue
3631 else
3632   echo "$as_me: failed program was:" >&5
3633 sed 's/^/| /' conftest.$ac_ext >&5
3634
3635   # Passes both tests.
3636 ac_preproc_ok=:
3637 break
3638 fi
3639
3640 rm -f conftest.err conftest.$ac_ext
3641
3642 done
3643 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3644 rm -f conftest.err conftest.$ac_ext
3645 if $ac_preproc_ok; then
3646   break
3647 fi
3648
3649     done
3650     ac_cv_prog_CPP=$CPP
3651
3652 fi
3653   CPP=$ac_cv_prog_CPP
3654 else
3655   ac_cv_prog_CPP=$CPP
3656 fi
3657 { echo "$as_me:$LINENO: result: $CPP" >&5
3658 echo "${ECHO_T}$CPP" >&6; }
3659 ac_preproc_ok=false
3660 for ac_c_preproc_warn_flag in '' yes
3661 do
3662   # Use a header file that comes with gcc, so configuring glibc
3663   # with a fresh cross-compiler works.
3664   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3665   # <limits.h> exists even on freestanding compilers.
3666   # On the NeXT, cc -E runs the code through the compiler's parser,
3667   # not just through cpp. "Syntax error" is here to catch this case.
3668   cat >conftest.$ac_ext <<_ACEOF
3669 /* confdefs.h.  */
3670 _ACEOF
3671 cat confdefs.h >>conftest.$ac_ext
3672 cat >>conftest.$ac_ext <<_ACEOF
3673 /* end confdefs.h.  */
3674 #ifdef __STDC__
3675 # include <limits.h>
3676 #else
3677 # include <assert.h>
3678 #endif
3679                      Syntax error
3680 _ACEOF
3681 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3682   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3683   ac_status=$?
3684   grep -v '^ *+' conftest.er1 >conftest.err
3685   rm -f conftest.er1
3686   cat conftest.err >&5
3687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3688   (exit $ac_status); } >/dev/null; then
3689   if test -s conftest.err; then
3690     ac_cpp_err=$ac_c_preproc_warn_flag
3691     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3692   else
3693     ac_cpp_err=
3694   fi
3695 else
3696   ac_cpp_err=yes
3697 fi
3698 if test -z "$ac_cpp_err"; then
3699   :
3700 else
3701   echo "$as_me: failed program was:" >&5
3702 sed 's/^/| /' conftest.$ac_ext >&5
3703
3704   # Broken: fails on valid input.
3705 continue
3706 fi
3707
3708 rm -f conftest.err conftest.$ac_ext
3709
3710   # OK, works on sane cases.  Now check whether nonexistent headers
3711   # can be detected and how.
3712   cat >conftest.$ac_ext <<_ACEOF
3713 /* confdefs.h.  */
3714 _ACEOF
3715 cat confdefs.h >>conftest.$ac_ext
3716 cat >>conftest.$ac_ext <<_ACEOF
3717 /* end confdefs.h.  */
3718 #include <ac_nonexistent.h>
3719 _ACEOF
3720 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3721   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3722   ac_status=$?
3723   grep -v '^ *+' conftest.er1 >conftest.err
3724   rm -f conftest.er1
3725   cat conftest.err >&5
3726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3727   (exit $ac_status); } >/dev/null; then
3728   if test -s conftest.err; then
3729     ac_cpp_err=$ac_c_preproc_warn_flag
3730     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3731   else
3732     ac_cpp_err=
3733   fi
3734 else
3735   ac_cpp_err=yes
3736 fi
3737 if test -z "$ac_cpp_err"; then
3738   # Broken: success on invalid input.
3739 continue
3740 else
3741   echo "$as_me: failed program was:" >&5
3742 sed 's/^/| /' conftest.$ac_ext >&5
3743
3744   # Passes both tests.
3745 ac_preproc_ok=:
3746 break
3747 fi
3748
3749 rm -f conftest.err conftest.$ac_ext
3750
3751 done
3752 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3753 rm -f conftest.err conftest.$ac_ext
3754 if $ac_preproc_ok; then
3755   :
3756 else
3757   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3758 See \`config.log' for more details." >&5
3759 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3760 See \`config.log' for more details." >&2;}
3761    { (exit 1); exit 1; }; }
3762 fi
3763
3764 ac_ext=c
3765 ac_cpp='$CPP $CPPFLAGS'
3766 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3767 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3768 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3769
3770
3771 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3772 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3773 if test "${ac_cv_path_GREP+set}" = set; then
3774   echo $ECHO_N "(cached) $ECHO_C" >&6
3775 else
3776   # Extract the first word of "grep ggrep" to use in msg output
3777 if test -z "$GREP"; then
3778 set dummy grep ggrep; ac_prog_name=$2
3779 if test "${ac_cv_path_GREP+set}" = set; then
3780   echo $ECHO_N "(cached) $ECHO_C" >&6
3781 else
3782   ac_path_GREP_found=false
3783 # Loop through the user's path and test for each of PROGNAME-LIST
3784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3785 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3786 do
3787   IFS=$as_save_IFS
3788   test -z "$as_dir" && as_dir=.
3789   for ac_prog in grep ggrep; do
3790   for ac_exec_ext in '' $ac_executable_extensions; do
3791     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3792     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3793     # Check for GNU ac_path_GREP and select it if it is found.
3794   # Check for GNU $ac_path_GREP
3795 case `"$ac_path_GREP" --version 2>&1` in
3796 *GNU*)
3797   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3798 *)
3799   ac_count=0
3800   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3801   while :
3802   do
3803     cat "conftest.in" "conftest.in" >"conftest.tmp"
3804     mv "conftest.tmp" "conftest.in"
3805     cp "conftest.in" "conftest.nl"
3806     echo 'GREP' >> "conftest.nl"
3807     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3808     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3809     ac_count=`expr $ac_count + 1`
3810     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3811       # Best one so far, save it but keep looking for a better one
3812       ac_cv_path_GREP="$ac_path_GREP"
3813       ac_path_GREP_max=$ac_count
3814     fi
3815     # 10*(2^10) chars as input seems more than enough
3816     test $ac_count -gt 10 && break
3817   done
3818   rm -f conftest.*;;
3819 esac
3820
3821
3822     $ac_path_GREP_found && break 3
3823   done
3824 done
3825
3826 done
3827 IFS=$as_save_IFS
3828
3829
3830 fi
3831
3832 GREP="$ac_cv_path_GREP"
3833 if test -z "$GREP"; then
3834   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3835 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3836    { (exit 1); exit 1; }; }
3837 fi
3838
3839 else
3840   ac_cv_path_GREP=$GREP
3841 fi
3842
3843
3844 fi
3845 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3846 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3847  GREP="$ac_cv_path_GREP"
3848
3849
3850 { echo "$as_me:$LINENO: checking for egrep" >&5
3851 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3852 if test "${ac_cv_path_EGREP+set}" = set; then
3853   echo $ECHO_N "(cached) $ECHO_C" >&6
3854 else
3855   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3856    then ac_cv_path_EGREP="$GREP -E"
3857    else
3858      # Extract the first word of "egrep" to use in msg output
3859 if test -z "$EGREP"; then
3860 set dummy egrep; ac_prog_name=$2
3861 if test "${ac_cv_path_EGREP+set}" = set; then
3862   echo $ECHO_N "(cached) $ECHO_C" >&6
3863 else
3864   ac_path_EGREP_found=false
3865 # Loop through the user's path and test for each of PROGNAME-LIST
3866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3867 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3868 do
3869   IFS=$as_save_IFS
3870   test -z "$as_dir" && as_dir=.
3871   for ac_prog in egrep; do
3872   for ac_exec_ext in '' $ac_executable_extensions; do
3873     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3874     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3875     # Check for GNU ac_path_EGREP and select it if it is found.
3876   # Check for GNU $ac_path_EGREP
3877 case `"$ac_path_EGREP" --version 2>&1` in
3878 *GNU*)
3879   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3880 *)
3881   ac_count=0
3882   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3883   while :
3884   do
3885     cat "conftest.in" "conftest.in" >"conftest.tmp"
3886     mv "conftest.tmp" "conftest.in"
3887     cp "conftest.in" "conftest.nl"
3888     echo 'EGREP' >> "conftest.nl"
3889     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3890     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3891     ac_count=`expr $ac_count + 1`
3892     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3893       # Best one so far, save it but keep looking for a better one
3894       ac_cv_path_EGREP="$ac_path_EGREP"
3895       ac_path_EGREP_max=$ac_count
3896     fi
3897     # 10*(2^10) chars as input seems more than enough
3898     test $ac_count -gt 10 && break
3899   done
3900   rm -f conftest.*;;
3901 esac
3902
3903
3904     $ac_path_EGREP_found && break 3
3905   done
3906 done
3907
3908 done
3909 IFS=$as_save_IFS
3910
3911
3912 fi
3913
3914 EGREP="$ac_cv_path_EGREP"
3915 if test -z "$EGREP"; then
3916   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3917 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3918    { (exit 1); exit 1; }; }
3919 fi
3920
3921 else
3922   ac_cv_path_EGREP=$EGREP
3923 fi
3924
3925
3926    fi
3927 fi
3928 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3929 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3930  EGREP="$ac_cv_path_EGREP"
3931
3932
3933
3934 { echo "$as_me:$LINENO: checking for AIX" >&5
3935 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
3936 cat >conftest.$ac_ext <<_ACEOF
3937 /* confdefs.h.  */
3938 _ACEOF
3939 cat confdefs.h >>conftest.$ac_ext
3940 cat >>conftest.$ac_ext <<_ACEOF
3941 /* end confdefs.h.  */
3942 #ifdef _AIX
3943   yes
3944 #endif
3945
3946 _ACEOF
3947 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3948   $EGREP "yes" >/dev/null 2>&1; then
3949   { echo "$as_me:$LINENO: result: yes" >&5
3950 echo "${ECHO_T}yes" >&6; }
3951 cat >>confdefs.h <<\_ACEOF
3952 #define _ALL_SOURCE 1
3953 _ACEOF
3954
3955 else
3956   { echo "$as_me:$LINENO: result: no" >&5
3957 echo "${ECHO_T}no" >&6; }
3958 fi
3959 rm -f conftest*
3960
3961
3962 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3963 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3964 if test "${ac_cv_header_stdc+set}" = set; then
3965   echo $ECHO_N "(cached) $ECHO_C" >&6
3966 else
3967   cat >conftest.$ac_ext <<_ACEOF
3968 /* confdefs.h.  */
3969 _ACEOF
3970 cat confdefs.h >>conftest.$ac_ext
3971 cat >>conftest.$ac_ext <<_ACEOF
3972 /* end confdefs.h.  */
3973 #include <stdlib.h>
3974 #include <stdarg.h>
3975 #include <string.h>
3976 #include <float.h>
3977
3978 int
3979 main ()
3980 {
3981
3982   ;
3983   return 0;
3984 }
3985 _ACEOF
3986 rm -f conftest.$ac_objext
3987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3988   (eval $ac_compile) 2>conftest.er1
3989   ac_status=$?
3990   grep -v '^ *+' conftest.er1 >conftest.err
3991   rm -f conftest.er1
3992   cat conftest.err >&5
3993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3994   (exit $ac_status); } &&
3995          { ac_try='test -z "$ac_c_werror_flag"
3996                          || test ! -s conftest.err'
3997   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3998   (eval $ac_try) 2>&5
3999   ac_status=$?
4000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4001   (exit $ac_status); }; } &&
4002          { ac_try='test -s conftest.$ac_objext'
4003   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4004   (eval $ac_try) 2>&5
4005   ac_status=$?
4006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4007   (exit $ac_status); }; }; then
4008   ac_cv_header_stdc=yes
4009 else
4010   echo "$as_me: failed program was:" >&5
4011 sed 's/^/| /' conftest.$ac_ext >&5
4012
4013         ac_cv_header_stdc=no
4014 fi
4015
4016 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4017
4018 if test $ac_cv_header_stdc = yes; then
4019   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4020   cat >conftest.$ac_ext <<_ACEOF
4021 /* confdefs.h.  */
4022 _ACEOF
4023 cat confdefs.h >>conftest.$ac_ext
4024 cat >>conftest.$ac_ext <<_ACEOF
4025 /* end confdefs.h.  */
4026 #include <string.h>
4027
4028 _ACEOF
4029 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4030   $EGREP "memchr" >/dev/null 2>&1; then
4031   :
4032 else
4033   ac_cv_header_stdc=no
4034 fi
4035 rm -f conftest*
4036
4037 fi
4038
4039 if test $ac_cv_header_stdc = yes; then
4040   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4041   cat >conftest.$ac_ext <<_ACEOF
4042 /* confdefs.h.  */
4043 _ACEOF
4044 cat confdefs.h >>conftest.$ac_ext
4045 cat >>conftest.$ac_ext <<_ACEOF
4046 /* end confdefs.h.  */
4047 #include <stdlib.h>
4048
4049 _ACEOF
4050 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4051   $EGREP "free" >/dev/null 2>&1; then
4052   :
4053 else
4054   ac_cv_header_stdc=no
4055 fi
4056 rm -f conftest*
4057
4058 fi
4059
4060 if test $ac_cv_header_stdc = yes; then
4061   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4062   if test "$cross_compiling" = yes; then
4063   :
4064 else
4065   cat >conftest.$ac_ext <<_ACEOF
4066 /* confdefs.h.  */
4067 _ACEOF
4068 cat confdefs.h >>conftest.$ac_ext
4069 cat >>conftest.$ac_ext <<_ACEOF
4070 /* end confdefs.h.  */
4071 #include <ctype.h>
4072 #include <stdlib.h>
4073 #if ((' ' & 0x0FF) == 0x020)
4074 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4075 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4076 #else
4077 # define ISLOWER(c) \
4078                    (('a' <= (c) && (c) <= 'i') \
4079                      || ('j' <= (c) && (c) <= 'r') \
4080                      || ('s' <= (c) && (c) <= 'z'))
4081 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4082 #endif
4083
4084 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4085 int
4086 main ()
4087 {
4088   int i;
4089   for (i = 0; i < 256; i++)
4090     if (XOR (islower (i), ISLOWER (i))
4091         || toupper (i) != TOUPPER (i))
4092       return 2;
4093   return 0;
4094 }
4095 _ACEOF
4096 rm -f conftest$ac_exeext
4097 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4098   (eval $ac_link) 2>&5
4099   ac_status=$?
4100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4101   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4102   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4103   (eval $ac_try) 2>&5
4104   ac_status=$?
4105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4106   (exit $ac_status); }; }; then
4107   :
4108 else
4109   echo "$as_me: program exited with status $ac_status" >&5
4110 echo "$as_me: failed program was:" >&5
4111 sed 's/^/| /' conftest.$ac_ext >&5
4112
4113 ( exit $ac_status )
4114 ac_cv_header_stdc=no
4115 fi
4116 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4117 fi
4118
4119
4120 fi
4121 fi
4122 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4123 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4124 if test $ac_cv_header_stdc = yes; then
4125
4126 cat >>confdefs.h <<\_ACEOF
4127 #define STDC_HEADERS 1
4128 _ACEOF
4129
4130 fi
4131
4132 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4143                   inttypes.h stdint.h unistd.h
4144 do
4145 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4146 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4147 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4148 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4149   echo $ECHO_N "(cached) $ECHO_C" >&6
4150 else
4151   cat >conftest.$ac_ext <<_ACEOF
4152 /* confdefs.h.  */
4153 _ACEOF
4154 cat confdefs.h >>conftest.$ac_ext
4155 cat >>conftest.$ac_ext <<_ACEOF
4156 /* end confdefs.h.  */
4157 $ac_includes_default
4158
4159 #include <$ac_header>
4160 _ACEOF
4161 rm -f conftest.$ac_objext
4162 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4163   (eval $ac_compile) 2>conftest.er1
4164   ac_status=$?
4165   grep -v '^ *+' conftest.er1 >conftest.err
4166   rm -f conftest.er1
4167   cat conftest.err >&5
4168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4169   (exit $ac_status); } &&
4170          { ac_try='test -z "$ac_c_werror_flag"
4171                          || test ! -s conftest.err'
4172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4173   (eval $ac_try) 2>&5
4174   ac_status=$?
4175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4176   (exit $ac_status); }; } &&
4177          { ac_try='test -s conftest.$ac_objext'
4178   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4179   (eval $ac_try) 2>&5
4180   ac_status=$?
4181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4182   (exit $ac_status); }; }; then
4183   eval "$as_ac_Header=yes"
4184 else
4185   echo "$as_me: failed program was:" >&5
4186 sed 's/^/| /' conftest.$ac_ext >&5
4187
4188         eval "$as_ac_Header=no"
4189 fi
4190
4191 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4192 fi
4193 ac_res=`eval echo '${'$as_ac_Header'}'`
4194                { echo "$as_me:$LINENO: result: $ac_res" >&5
4195 echo "${ECHO_T}$ac_res" >&6; }
4196 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4197   cat >>confdefs.h <<_ACEOF
4198 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4199 _ACEOF
4200
4201 fi
4202
4203 done
4204
4205
4206 if test "${ac_cv_header_minix_config_h+set}" = set; then
4207   { echo "$as_me:$LINENO: checking for minix/config.h" >&5
4208 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
4209 if test "${ac_cv_header_minix_config_h+set}" = set; then
4210   echo $ECHO_N "(cached) $ECHO_C" >&6
4211 fi
4212 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4213 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
4214 else
4215   # Is the header compilable?
4216 { echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4217 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
4218 cat >conftest.$ac_ext <<_ACEOF
4219 /* confdefs.h.  */
4220 _ACEOF
4221 cat confdefs.h >>conftest.$ac_ext
4222 cat >>conftest.$ac_ext <<_ACEOF
4223 /* end confdefs.h.  */
4224 $ac_includes_default
4225 #include <minix/config.h>
4226 _ACEOF
4227 rm -f conftest.$ac_objext
4228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4229   (eval $ac_compile) 2>conftest.er1
4230   ac_status=$?
4231   grep -v '^ *+' conftest.er1 >conftest.err
4232   rm -f conftest.er1
4233   cat conftest.err >&5
4234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4235   (exit $ac_status); } &&
4236          { ac_try='test -z "$ac_c_werror_flag"
4237                          || test ! -s conftest.err'
4238   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4239   (eval $ac_try) 2>&5
4240   ac_status=$?
4241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4242   (exit $ac_status); }; } &&
4243          { ac_try='test -s conftest.$ac_objext'
4244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4245   (eval $ac_try) 2>&5
4246   ac_status=$?
4247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4248   (exit $ac_status); }; }; then
4249   ac_header_compiler=yes
4250 else
4251   echo "$as_me: failed program was:" >&5
4252 sed 's/^/| /' conftest.$ac_ext >&5
4253
4254         ac_header_compiler=no
4255 fi
4256
4257 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4258 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4259 echo "${ECHO_T}$ac_header_compiler" >&6; }
4260
4261 # Is the header present?
4262 { echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4263 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
4264 cat >conftest.$ac_ext <<_ACEOF
4265 /* confdefs.h.  */
4266 _ACEOF
4267 cat confdefs.h >>conftest.$ac_ext
4268 cat >>conftest.$ac_ext <<_ACEOF
4269 /* end confdefs.h.  */
4270 #include <minix/config.h>
4271 _ACEOF
4272 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4273   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4274   ac_status=$?
4275   grep -v '^ *+' conftest.er1 >conftest.err
4276   rm -f conftest.er1
4277   cat conftest.err >&5
4278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4279   (exit $ac_status); } >/dev/null; then
4280   if test -s conftest.err; then
4281     ac_cpp_err=$ac_c_preproc_warn_flag
4282     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4283   else
4284     ac_cpp_err=
4285   fi
4286 else
4287   ac_cpp_err=yes
4288 fi
4289 if test -z "$ac_cpp_err"; then
4290   ac_header_preproc=yes
4291 else
4292   echo "$as_me: failed program was:" >&5
4293 sed 's/^/| /' conftest.$ac_ext >&5
4294
4295   ac_header_preproc=no
4296 fi
4297
4298 rm -f conftest.err conftest.$ac_ext
4299 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4300 echo "${ECHO_T}$ac_header_preproc" >&6; }
4301
4302 # So?  What about this header?
4303 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4304   yes:no: )
4305     { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4306 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4307     { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4308 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4309     ac_header_preproc=yes
4310     ;;
4311   no:yes:* )
4312     { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4313 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4314     { echo "$as_me:$LINENO: WARNING: minix/config.h:     check for missing prerequisite headers?" >&5
4315 echo "$as_me: WARNING: minix/config.h:     check for missing prerequisite headers?" >&2;}
4316     { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4317 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4318     { echo "$as_me:$LINENO: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&5
4319 echo "$as_me: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&2;}
4320     { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4321 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4322     { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4323 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4324     ( cat <<\_ASBOX
4325 ## ------------------------------------ ##
4326 ## Report this to bug-coreutils@gnu.org ##
4327 ## ------------------------------------ ##
4328 _ASBOX
4329      ) | sed "s/^/$as_me: WARNING:     /" >&2
4330     ;;
4331 esac
4332 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
4333 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
4334 if test "${ac_cv_header_minix_config_h+set}" = set; then
4335   echo $ECHO_N "(cached) $ECHO_C" >&6
4336 else
4337   ac_cv_header_minix_config_h=$ac_header_preproc
4338 fi
4339 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4340 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
4341
4342 fi
4343 if test $ac_cv_header_minix_config_h = yes; then
4344   MINIX=yes
4345 else
4346   MINIX=
4347 fi
4348
4349
4350 if test "$MINIX" = yes; then
4351
4352 cat >>confdefs.h <<\_ACEOF
4353 #define _POSIX_SOURCE 1
4354 _ACEOF
4355
4356
4357 cat >>confdefs.h <<\_ACEOF
4358 #define _POSIX_1_SOURCE 2
4359 _ACEOF
4360
4361
4362 cat >>confdefs.h <<\_ACEOF
4363 #define _MINIX 1
4364 _ACEOF
4365
4366 fi
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378   { echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4379 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6; }
4380 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4381   echo $ECHO_N "(cached) $ECHO_C" >&6
4382 else
4383   cat >conftest.$ac_ext <<_ACEOF
4384 /* confdefs.h.  */
4385 _ACEOF
4386 cat confdefs.h >>conftest.$ac_ext
4387 cat >>conftest.$ac_ext <<_ACEOF
4388 /* end confdefs.h.  */
4389
4390           #define __EXTENSIONS__ 1
4391           $ac_includes_default
4392 int
4393 main ()
4394 {
4395
4396   ;
4397   return 0;
4398 }
4399 _ACEOF
4400 rm -f conftest.$ac_objext
4401 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4402   (eval $ac_compile) 2>conftest.er1
4403   ac_status=$?
4404   grep -v '^ *+' conftest.er1 >conftest.err
4405   rm -f conftest.er1
4406   cat conftest.err >&5
4407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4408   (exit $ac_status); } &&
4409          { ac_try='test -z "$ac_c_werror_flag"
4410                          || test ! -s conftest.err'
4411   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4412   (eval $ac_try) 2>&5
4413   ac_status=$?
4414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4415   (exit $ac_status); }; } &&
4416          { ac_try='test -s conftest.$ac_objext'
4417   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4418   (eval $ac_try) 2>&5
4419   ac_status=$?
4420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4421   (exit $ac_status); }; }; then
4422   ac_cv_safe_to_define___extensions__=yes
4423 else
4424   echo "$as_me: failed program was:" >&5
4425 sed 's/^/| /' conftest.$ac_ext >&5
4426
4427         ac_cv_safe_to_define___extensions__=no
4428 fi
4429
4430 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4431 fi
4432 { echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4433 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6; }
4434   test $ac_cv_safe_to_define___extensions__ = yes &&
4435     cat >>confdefs.h <<\_ACEOF
4436 #define __EXTENSIONS__ 1
4437 _ACEOF
4438
4439   cat >>confdefs.h <<\_ACEOF
4440 #define _POSIX_PTHREAD_SEMANTICS 1
4441 _ACEOF
4442
4443
4444
4445       { echo "$as_me:$LINENO: checking for perl5.003 or newer" >&5
4446 echo $ECHO_N "checking for perl5.003 or newer... $ECHO_C" >&6; }
4447   if test "${PERL+set}" = set; then
4448     # `PERL' is set in the user's environment.
4449     candidate_perl_names="$PERL"
4450     perl_specified=yes
4451   else
4452     candidate_perl_names='perl perl5'
4453     perl_specified=no
4454   fi
4455
4456   found=no
4457
4458   PERL="$am_missing_run perl"
4459   for perl in $candidate_perl_names; do
4460     # Run test in a subshell; some versions of sh will print an error if
4461     # an executable is not found, even if stderr is redirected.
4462     if ( $perl -e 'require 5.003; use File::Compare' ) > /dev/null 2>&1; then
4463       PERL=$perl
4464       found=yes
4465       break
4466     fi
4467   done
4468
4469   { echo "$as_me:$LINENO: result: $found" >&5
4470 echo "${ECHO_T}$found" >&6; }
4471   test $found = no && { echo "$as_me:$LINENO: WARNING:
4472 WARNING: You don't seem to have perl5.003 or newer installed, or you lack
4473          a usable version of the Perl File::Compare module.  As a result,
4474          you may be unable to run a few tests or to regenerate certain
4475          files if you modify the sources from which they are derived.
4476  " >&5
4477 echo "$as_me: WARNING:
4478 WARNING: You don't seem to have perl5.003 or newer installed, or you lack
4479          a usable version of the Perl File::Compare module.  As a result,
4480          you may be unable to run a few tests or to regenerate certain
4481          files if you modify the sources from which they are derived.
4482  " >&2;}
4483
4484    { echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5
4485 echo $ECHO_N "checking for $CC option to accept ISO C99... $ECHO_C" >&6; }
4486 if test "${ac_cv_prog_cc_c99+set}" = set; then
4487   echo $ECHO_N "(cached) $ECHO_C" >&6
4488 else
4489   ac_cv_prog_cc_c99=no
4490 ac_save_CC=$CC
4491 cat >conftest.$ac_ext <<_ACEOF
4492 /* confdefs.h.  */
4493 _ACEOF
4494 cat confdefs.h >>conftest.$ac_ext
4495 cat >>conftest.$ac_ext <<_ACEOF
4496 /* end confdefs.h.  */
4497 #include <stdarg.h>
4498 #include <stdbool.h>
4499 #include <stdlib.h>
4500 #include <wchar.h>
4501 #include <stdio.h>
4502
4503 struct incomplete_array
4504 {
4505   int datasize;
4506   double data[];
4507 };
4508
4509 struct named_init {
4510   int number;
4511   const wchar_t *name;
4512   double average;
4513 };
4514
4515 typedef const char *ccp;
4516
4517 static inline int
4518 test_restrict(ccp restrict text)
4519 {
4520   // See if C++-style comments work.
4521   // Iterate through items via the restricted pointer.
4522   // Also check for declarations in for loops.
4523   for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4524     continue;
4525   return 0;
4526 }
4527
4528 // Check varargs and va_copy work.
4529 static void
4530 test_varargs(const char *format, ...)
4531 {
4532   va_list args;
4533   va_start(args, format);
4534   va_list args_copy;
4535   va_copy(args_copy, args);
4536
4537   const char *str;
4538   int number;
4539   float fnumber;
4540
4541   while (*format)
4542     {
4543       switch (*format++)
4544         {
4545         case 's': // string
4546           str = va_arg(args_copy, const char *);
4547           break;
4548         case 'd': // int
4549           number = va_arg(args_copy, int);
4550           break;
4551         case 'f': // float
4552           fnumber = (float) va_arg(args_copy, double);
4553           break;
4554         default:
4555           break;
4556         }
4557     }
4558   va_end(args_copy);
4559   va_end(args);
4560 }
4561
4562 int
4563 main ()
4564 {
4565
4566   // Check bool and long long datatypes.
4567   _Bool success = false;
4568   long long int bignum = -1234567890LL;
4569   unsigned long long int ubignum = 1234567890uLL;
4570
4571   // Check restrict.
4572   if (test_restrict("String literal") != 0)
4573     success = true;
4574   char *restrict newvar = "Another string";
4575
4576   // Check varargs.
4577   test_varargs("s, d' f .", "string", 65, 34.234);
4578
4579   // Check incomplete arrays work.
4580   struct incomplete_array *ia =
4581     malloc(sizeof(struct incomplete_array) + (sizeof(double) * 10));
4582   ia->datasize = 10;
4583   for (int i = 0; i < ia->datasize; ++i)
4584     ia->data[i] = (double) i * 1.234;
4585
4586   // Check named initialisers.
4587   struct named_init ni = {
4588     .number = 34,
4589     .name = L"Test wide string",
4590     .average = 543.34343,
4591   };
4592
4593   ni.number = 58;
4594
4595   int dynamic_array[ni.number];
4596   dynamic_array[43] = 543;
4597
4598   // work around unused variable warnings
4599   return  bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x';
4600
4601   ;
4602   return 0;
4603 }
4604 _ACEOF
4605 for ac_arg in '' -std=gnu99 -c99 -qlanglvl=extc99
4606 do
4607   CC="$ac_save_CC $ac_arg"
4608   rm -f conftest.$ac_objext
4609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4610   (eval $ac_compile) 2>conftest.er1
4611   ac_status=$?
4612   grep -v '^ *+' conftest.er1 >conftest.err
4613   rm -f conftest.er1
4614   cat conftest.err >&5
4615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4616   (exit $ac_status); } &&
4617          { ac_try='test -z "$ac_c_werror_flag"
4618                          || test ! -s conftest.err'
4619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4620   (eval $ac_try) 2>&5
4621   ac_status=$?
4622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4623   (exit $ac_status); }; } &&
4624          { ac_try='test -s conftest.$ac_objext'
4625   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4626   (eval $ac_try) 2>&5
4627   ac_status=$?
4628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4629   (exit $ac_status); }; }; then
4630   ac_cv_prog_cc_c99=$ac_arg
4631 else
4632   echo "$as_me: failed program was:" >&5
4633 sed 's/^/| /' conftest.$ac_ext >&5
4634
4635
4636 fi
4637
4638 rm -f conftest.err conftest.$ac_objext
4639   test "x$ac_cv_prog_cc_c99" != "xno" && break
4640 done
4641 rm -f conftest.$ac_ext
4642 CC=$ac_save_CC
4643
4644 fi
4645 # AC_CACHE_VAL
4646 case "x$ac_cv_prog_cc_c99" in
4647   x)
4648     { echo "$as_me:$LINENO: result: none needed" >&5
4649 echo "${ECHO_T}none needed" >&6; } ;;
4650   xno)
4651     { echo "$as_me:$LINENO: result: unsupported" >&5
4652 echo "${ECHO_T}unsupported" >&6; } ;;
4653   *)
4654     CC="$CC $ac_cv_prog_cc_c99"
4655     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5
4656 echo "${ECHO_T}$ac_cv_prog_cc_c99" >&6; } ;;
4657 esac
4658 if test "x$ac_cv_prog_cc_c99" != xno; then
4659   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4660 else
4661   { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4662 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4663 if test "${ac_cv_prog_cc_c89+set}" = set; then
4664   echo $ECHO_N "(cached) $ECHO_C" >&6
4665 else
4666   ac_cv_prog_cc_c89=no
4667 ac_save_CC=$CC
4668 cat >conftest.$ac_ext <<_ACEOF
4669 /* confdefs.h.  */
4670 _ACEOF
4671 cat confdefs.h >>conftest.$ac_ext
4672 cat >>conftest.$ac_ext <<_ACEOF
4673 /* end confdefs.h.  */
4674 #include <stdarg.h>
4675 #include <stdio.h>
4676 #include <sys/types.h>
4677 #include <sys/stat.h>
4678 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4679 struct buf { int x; };
4680 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4681 static char *e (p, i)
4682      char **p;
4683      int i;
4684 {
4685   return p[i];
4686 }
4687 static char *f (char * (*g) (char **, int), char **p, ...)
4688 {
4689   char *s;
4690   va_list v;
4691   va_start (v,p);
4692   s = g (p, va_arg (v,int));
4693   va_end (v);
4694   return s;
4695 }
4696
4697 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4698    function prototypes and stuff, but not '\xHH' hex character constants.
4699    These don't provoke an error unfortunately, instead are silently treated
4700    as 'x'.  The following induces an error, until -std is added to get
4701    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4702    array size at least.  It's necessary to write '\x00'==0 to get something
4703    that's true only with -std.  */
4704 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4705
4706 int test (int i, double x);
4707 struct s1 {int (*f) (int a);};
4708 struct s2 {int (*f) (double a);};
4709 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4710 int argc;
4711 char **argv;
4712 int
4713 main ()
4714 {
4715 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4716   ;
4717   return 0;
4718 }
4719 _ACEOF
4720 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4721         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4722 do
4723   CC="$ac_save_CC $ac_arg"
4724   rm -f conftest.$ac_objext
4725 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4726   (eval $ac_compile) 2>conftest.er1
4727   ac_status=$?
4728   grep -v '^ *+' conftest.er1 >conftest.err
4729   rm -f conftest.er1
4730   cat conftest.err >&5
4731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4732   (exit $ac_status); } &&
4733          { ac_try='test -z "$ac_c_werror_flag"
4734                          || test ! -s conftest.err'
4735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4736   (eval $ac_try) 2>&5
4737   ac_status=$?
4738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4739   (exit $ac_status); }; } &&
4740          { ac_try='test -s conftest.$ac_objext'
4741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4742   (eval $ac_try) 2>&5
4743   ac_status=$?
4744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4745   (exit $ac_status); }; }; then
4746   ac_cv_prog_cc_c89=$ac_arg
4747 else
4748   echo "$as_me: failed program was:" >&5
4749 sed 's/^/| /' conftest.$ac_ext >&5
4750
4751
4752 fi
4753
4754 rm -f conftest.err conftest.$ac_objext
4755   test "x$ac_cv_prog_cc_c89" != "xno" && break
4756 done
4757 rm -f conftest.$ac_ext
4758 CC=$ac_save_CC
4759
4760 fi
4761 # AC_CACHE_VAL
4762 case "x$ac_cv_prog_cc_c89" in
4763   x)
4764     { echo "$as_me:$LINENO: result: none needed" >&5
4765 echo "${ECHO_T}none needed" >&6; } ;;
4766   xno)
4767     { echo "$as_me:$LINENO: result: unsupported" >&5
4768 echo "${ECHO_T}unsupported" >&6; } ;;
4769   *)
4770     CC="$CC $ac_cv_prog_cc_c89"
4771     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4772 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4773 esac
4774 if test "x$ac_cv_prog_cc_c89" != xno; then
4775   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4776 else
4777   ac_cv_prog_cc_stdc=no
4778 fi
4779
4780
4781 fi
4782
4783   { echo "$as_me:$LINENO: checking for $CC option to accept ISO Standard C" >&5
4784 echo $ECHO_N "checking for $CC option to accept ISO Standard C... $ECHO_C" >&6; }
4785   if test "${ac_cv_prog_cc_stdc+set}" = set; then
4786   echo $ECHO_N "(cached) $ECHO_C" >&6
4787 fi
4788
4789   case "x$ac_cv_prog_cc_stdc" in
4790     xno)
4791       { echo "$as_me:$LINENO: result: unsupported" >&5
4792 echo "${ECHO_T}unsupported" >&6; }
4793       ;;
4794     *)
4795       if test "x$ac_cv_prog_cc_stdc" = x; then
4796         { echo "$as_me:$LINENO: result: none needed" >&5
4797 echo "${ECHO_T}none needed" >&6; }
4798       else
4799         { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4800 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6; }
4801       fi
4802       ;;
4803   esac
4804
4805 if test "x$CC" != xcc; then
4806   { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
4807 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
4808 else
4809   { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
4810 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
4811 fi
4812 set dummy $CC; ac_cc=`echo $2 |
4813                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4814 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
4815   echo $ECHO_N "(cached) $ECHO_C" >&6
4816 else
4817   cat >conftest.$ac_ext <<_ACEOF
4818 /* confdefs.h.  */
4819 _ACEOF
4820 cat confdefs.h >>conftest.$ac_ext
4821 cat >>conftest.$ac_ext <<_ACEOF
4822 /* end confdefs.h.  */
4823
4824 int
4825 main ()
4826 {
4827
4828   ;
4829   return 0;
4830 }
4831 _ACEOF
4832 # Make sure it works both with $CC and with simple cc.
4833 # We do the test twice because some compilers refuse to overwrite an
4834 # existing .o file with -o, though they will create one.
4835 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4836 rm -f conftest2.*
4837 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4838   (eval $ac_try) 2>&5
4839   ac_status=$?
4840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4841   (exit $ac_status); } &&
4842    test -f conftest2.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4843   (eval $ac_try) 2>&5
4844   ac_status=$?
4845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4846   (exit $ac_status); };
4847 then
4848   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4849   if test "x$CC" != xcc; then
4850     # Test first that cc exists at all.
4851     if { ac_try='cc -c conftest.$ac_ext >&5'
4852   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4853   (eval $ac_try) 2>&5
4854   ac_status=$?
4855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4856   (exit $ac_status); }; }; then
4857       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4858       rm -f conftest2.*
4859       if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4860   (eval $ac_try) 2>&5
4861   ac_status=$?
4862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4863   (exit $ac_status); } &&
4864          test -f conftest2.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4865   (eval $ac_try) 2>&5
4866   ac_status=$?
4867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4868   (exit $ac_status); };
4869       then
4870         # cc works too.
4871         :
4872       else
4873         # cc exists but doesn't like -o.
4874         eval ac_cv_prog_cc_${ac_cc}_c_o=no
4875       fi
4876     fi
4877   fi
4878 else
4879   eval ac_cv_prog_cc_${ac_cc}_c_o=no
4880 fi
4881 rm -f conftest*
4882
4883 fi
4884 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
4885   { echo "$as_me:$LINENO: result: yes" >&5
4886 echo "${ECHO_T}yes" >&6; }
4887 else
4888   { echo "$as_me:$LINENO: result: no" >&5
4889 echo "${ECHO_T}no" >&6; }
4890
4891 cat >>confdefs.h <<\_ACEOF
4892 #define NO_MINUS_C_MINUS_O 1
4893 _ACEOF
4894
4895 fi
4896
4897 # FIXME: we rely on the cache variable name because
4898 # there is no other way.
4899 set dummy $CC
4900 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4901 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
4902    # Losing compiler, so override with the script.
4903    # FIXME: It is wrong to rewrite CC.
4904    # But if we don't then we get into trouble of one sort or another.
4905    # A longer-term fix would be to have automake use am__CC in this case,
4906    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4907    CC="$am_aux_dir/compile $CC"
4908 fi
4909
4910 ac_ext=c
4911 ac_cpp='$CPP $CPPFLAGS'
4912 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4913 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4914 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4915 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4916 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4917 # On Suns, sometimes $CPP names a directory.
4918 if test -n "$CPP" && test -d "$CPP"; then
4919   CPP=
4920 fi
4921 if test -z "$CPP"; then
4922   if test "${ac_cv_prog_CPP+set}" = set; then
4923   echo $ECHO_N "(cached) $ECHO_C" >&6
4924 else
4925       # Double quotes because CPP needs to be expanded
4926     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4927     do
4928       ac_preproc_ok=false
4929 for ac_c_preproc_warn_flag in '' yes
4930 do
4931   # Use a header file that comes with gcc, so configuring glibc
4932   # with a fresh cross-compiler works.
4933   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4934   # <limits.h> exists even on freestanding compilers.
4935   # On the NeXT, cc -E runs the code through the compiler's parser,
4936   # not just through cpp. "Syntax error" is here to catch this case.
4937   cat >conftest.$ac_ext <<_ACEOF
4938 /* confdefs.h.  */
4939 _ACEOF
4940 cat confdefs.h >>conftest.$ac_ext
4941 cat >>conftest.$ac_ext <<_ACEOF
4942 /* end confdefs.h.  */
4943 #ifdef __STDC__
4944 # include <limits.h>
4945 #else
4946 # include <assert.h>
4947 #endif
4948                      Syntax error
4949 _ACEOF
4950 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4951   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4952   ac_status=$?
4953   grep -v '^ *+' conftest.er1 >conftest.err
4954   rm -f conftest.er1
4955   cat conftest.err >&5
4956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4957   (exit $ac_status); } >/dev/null; then
4958   if test -s conftest.err; then
4959     ac_cpp_err=$ac_c_preproc_warn_flag
4960     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4961   else
4962     ac_cpp_err=
4963   fi
4964 else
4965   ac_cpp_err=yes
4966 fi
4967 if test -z "$ac_cpp_err"; then
4968   :
4969 else
4970   echo "$as_me: failed program was:" >&5
4971 sed 's/^/| /' conftest.$ac_ext >&5
4972
4973   # Broken: fails on valid input.
4974 continue
4975 fi
4976
4977 rm -f conftest.err conftest.$ac_ext
4978
4979   # OK, works on sane cases.  Now check whether nonexistent headers
4980   # can be detected and how.
4981   cat >conftest.$ac_ext <<_ACEOF
4982 /* confdefs.h.  */
4983 _ACEOF
4984 cat confdefs.h >>conftest.$ac_ext
4985 cat >>conftest.$ac_ext <<_ACEOF
4986 /* end confdefs.h.  */
4987 #include <ac_nonexistent.h>
4988 _ACEOF
4989 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4990   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4991   ac_status=$?
4992   grep -v '^ *+' conftest.er1 >conftest.err
4993   rm -f conftest.er1
4994   cat conftest.err >&5
4995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4996   (exit $ac_status); } >/dev/null; then
4997   if test -s conftest.err; then
4998     ac_cpp_err=$ac_c_preproc_warn_flag
4999     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5000   else
5001     ac_cpp_err=
5002   fi
5003 else
5004   ac_cpp_err=yes
5005 fi
5006 if test -z "$ac_cpp_err"; then
5007   # Broken: success on invalid input.
5008 continue
5009 else
5010   echo "$as_me: failed program was:" >&5
5011 sed 's/^/| /' conftest.$ac_ext >&5
5012
5013   # Passes both tests.
5014 ac_preproc_ok=:
5015 break
5016 fi
5017
5018 rm -f conftest.err conftest.$ac_ext
5019
5020 done
5021 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5022 rm -f conftest.err conftest.$ac_ext
5023 if $ac_preproc_ok; then
5024   break
5025 fi
5026
5027     done
5028     ac_cv_prog_CPP=$CPP
5029
5030 fi
5031   CPP=$ac_cv_prog_CPP
5032 else
5033   ac_cv_prog_CPP=$CPP
5034 fi
5035 { echo "$as_me:$LINENO: result: $CPP" >&5
5036 echo "${ECHO_T}$CPP" >&6; }
5037 ac_preproc_ok=false
5038 for ac_c_preproc_warn_flag in '' yes
5039 do
5040   # Use a header file that comes with gcc, so configuring glibc
5041   # with a fresh cross-compiler works.
5042   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5043   # <limits.h> exists even on freestanding compilers.
5044   # On the NeXT, cc -E runs the code through the compiler's parser,
5045   # not just through cpp. "Syntax error" is here to catch this case.
5046   cat >conftest.$ac_ext <<_ACEOF
5047 /* confdefs.h.  */
5048 _ACEOF
5049 cat confdefs.h >>conftest.$ac_ext
5050 cat >>conftest.$ac_ext <<_ACEOF
5051 /* end confdefs.h.  */
5052 #ifdef __STDC__
5053 # include <limits.h>
5054 #else
5055 # include <assert.h>
5056 #endif
5057                      Syntax error
5058 _ACEOF
5059 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5060   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5061   ac_status=$?
5062   grep -v '^ *+' conftest.er1 >conftest.err
5063   rm -f conftest.er1
5064   cat conftest.err >&5
5065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5066   (exit $ac_status); } >/dev/null; then
5067   if test -s conftest.err; then
5068     ac_cpp_err=$ac_c_preproc_warn_flag
5069     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5070   else
5071     ac_cpp_err=
5072   fi
5073 else
5074   ac_cpp_err=yes
5075 fi
5076 if test -z "$ac_cpp_err"; then
5077   :
5078 else
5079   echo "$as_me: failed program was:" >&5
5080 sed 's/^/| /' conftest.$ac_ext >&5
5081
5082   # Broken: fails on valid input.
5083 continue
5084 fi
5085
5086 rm -f conftest.err conftest.$ac_ext
5087
5088   # OK, works on sane cases.  Now check whether nonexistent headers
5089   # can be detected and how.
5090   cat >conftest.$ac_ext <<_ACEOF
5091 /* confdefs.h.  */
5092 _ACEOF
5093 cat confdefs.h >>conftest.$ac_ext
5094 cat >>conftest.$ac_ext <<_ACEOF
5095 /* end confdefs.h.  */
5096 #include <ac_nonexistent.h>
5097 _ACEOF
5098 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5099   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5100   ac_status=$?
5101   grep -v '^ *+' conftest.er1 >conftest.err
5102   rm -f conftest.er1
5103   cat conftest.err >&5
5104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5105   (exit $ac_status); } >/dev/null; then
5106   if test -s conftest.err; then
5107     ac_cpp_err=$ac_c_preproc_warn_flag
5108     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5109   else
5110     ac_cpp_err=
5111   fi
5112 else
5113   ac_cpp_err=yes
5114 fi
5115 if test -z "$ac_cpp_err"; then
5116   # Broken: success on invalid input.
5117 continue
5118 else
5119   echo "$as_me: failed program was:" >&5
5120 sed 's/^/| /' conftest.$ac_ext >&5
5121
5122   # Passes both tests.
5123 ac_preproc_ok=:
5124 break
5125 fi
5126
5127 rm -f conftest.err conftest.$ac_ext
5128
5129 done
5130 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5131 rm -f conftest.err conftest.$ac_ext
5132 if $ac_preproc_ok; then
5133   :
5134 else
5135   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5136 See \`config.log' for more details." >&5
5137 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5138 See \`config.log' for more details." >&2;}
5139    { (exit 1); exit 1; }; }
5140 fi
5141
5142 ac_ext=c
5143 ac_cpp='$CPP $CPPFLAGS'
5144 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5145 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5146 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5147
5148 if test $ac_cv_c_compiler_gnu = yes; then
5149     { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
5150 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
5151 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
5152   echo $ECHO_N "(cached) $ECHO_C" >&6
5153 else
5154     ac_pattern="Autoconf.*'x'"
5155   cat >conftest.$ac_ext <<_ACEOF
5156 /* confdefs.h.  */
5157 _ACEOF
5158 cat confdefs.h >>conftest.$ac_ext
5159 cat >>conftest.$ac_ext <<_ACEOF
5160 /* end confdefs.h.  */
5161 #include <sgtty.h>
5162 Autoconf TIOCGETP
5163 _ACEOF
5164 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5165   $EGREP "$ac_pattern" >/dev/null 2>&1; then
5166   ac_cv_prog_gcc_traditional=yes
5167 else
5168   ac_cv_prog_gcc_traditional=no
5169 fi
5170 rm -f conftest*
5171
5172
5173   if test $ac_cv_prog_gcc_traditional = no; then
5174     cat >conftest.$ac_ext <<_ACEOF
5175 /* confdefs.h.  */
5176 _ACEOF
5177 cat confdefs.h >>conftest.$ac_ext
5178 cat >>conftest.$ac_ext <<_ACEOF
5179 /* end confdefs.h.  */
5180 #include <termio.h>
5181 Autoconf TCGETA
5182 _ACEOF
5183 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5184   $EGREP "$ac_pattern" >/dev/null 2>&1; then
5185   ac_cv_prog_gcc_traditional=yes
5186 fi
5187 rm -f conftest*
5188
5189   fi
5190 fi
5191 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
5192 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
5193   if test $ac_cv_prog_gcc_traditional = yes; then
5194     CC="$CC -traditional"
5195   fi
5196 fi
5197
5198 if test -n "$ac_tool_prefix"; then
5199   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5200 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5201 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5202 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5203 if test "${ac_cv_prog_RANLIB+set}" = set; then
5204   echo $ECHO_N "(cached) $ECHO_C" >&6
5205 else
5206   if test -n "$RANLIB"; then
5207   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5208 else
5209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5210 for as_dir in $PATH
5211 do
5212   IFS=$as_save_IFS
5213   test -z "$as_dir" && as_dir=.
5214   for ac_exec_ext in '' $ac_executable_extensions; do
5215   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5216     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5217     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5218     break 2
5219   fi
5220 done
5221 done
5222 IFS=$as_save_IFS
5223
5224 fi
5225 fi
5226 RANLIB=$ac_cv_prog_RANLIB
5227 if test -n "$RANLIB"; then
5228   { echo "$as_me:$LINENO: result: $RANLIB" >&5
5229 echo "${ECHO_T}$RANLIB" >&6; }
5230 else
5231   { echo "$as_me:$LINENO: result: no" >&5
5232 echo "${ECHO_T}no" >&6; }
5233 fi
5234
5235
5236 fi
5237 if test -z "$ac_cv_prog_RANLIB"; then
5238   ac_ct_RANLIB=$RANLIB
5239   # Extract the first word of "ranlib", so it can be a program name with args.
5240 set dummy ranlib; ac_word=$2
5241 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5242 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5243 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5244   echo $ECHO_N "(cached) $ECHO_C" >&6
5245 else
5246   if test -n "$ac_ct_RANLIB"; then
5247   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5248 else
5249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5250 for as_dir in $PATH
5251 do
5252   IFS=$as_save_IFS
5253   test -z "$as_dir" && as_dir=.
5254   for ac_exec_ext in '' $ac_executable_extensions; do
5255   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5256     ac_cv_prog_ac_ct_RANLIB="ranlib"
5257     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5258     break 2
5259   fi
5260 done
5261 done
5262 IFS=$as_save_IFS
5263
5264 fi
5265 fi
5266 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5267 if test -n "$ac_ct_RANLIB"; then
5268   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5269 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5270 else
5271   { echo "$as_me:$LINENO: result: no" >&5
5272 echo "${ECHO_T}no" >&6; }
5273 fi
5274
5275   if test "x$ac_ct_RANLIB" = x; then
5276     RANLIB=":"
5277   else
5278     case $cross_compiling:$ac_tool_warned in
5279 yes:)
5280 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5281 whose name does not start with the host triplet.  If you think this
5282 configuration is useful to you, please write to autoconf@gnu.org." >&5
5283 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5284 whose name does not start with the host triplet.  If you think this
5285 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5286 ac_tool_warned=yes ;;
5287 esac
5288     RANLIB=$ac_ct_RANLIB
5289   fi
5290 else
5291   RANLIB="$ac_cv_prog_RANLIB"
5292 fi
5293
5294 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5295 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5296 LN_S=$as_ln_s
5297 if test "$LN_S" = "ln -s"; then
5298   { echo "$as_me:$LINENO: result: yes" >&5
5299 echo "${ECHO_T}yes" >&6; }
5300 else
5301   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5302 echo "${ECHO_T}no, using $LN_S" >&6; }
5303 fi
5304
5305
5306   { echo "$as_me:$LINENO: checking for flag to ignore unused libraries" >&5
5307 echo $ECHO_N "checking for flag to ignore unused libraries... $ECHO_C" >&6; }
5308 if test "${gl_cv_ignore_unused_libraries+set}" = set; then
5309   echo $ECHO_N "(cached) $ECHO_C" >&6
5310 else
5311   gl_cv_ignore_unused_libraries=none
5312      gl_saved_ldflags=$LDFLAGS
5313      # Use long option sequences like '-z ignore' to test for the feature,
5314      # to forestall problems with linkers that have -z, -i, -g, -n, etc. flags.
5315      for gl_flags in '-Wl,-z,ignore' '-z ignore'; do
5316        LDFLAGS="$gl_flags $LDFLAGS"
5317        cat >conftest.$ac_ext <<_ACEOF
5318 /* confdefs.h.  */
5319 _ACEOF
5320 cat confdefs.h >>conftest.$ac_ext
5321 cat >>conftest.$ac_ext <<_ACEOF
5322 /* end confdefs.h.  */
5323
5324 int
5325 main ()
5326 {
5327
5328   ;
5329   return 0;
5330 }
5331 _ACEOF
5332 rm -f conftest.$ac_objext conftest$ac_exeext
5333 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5334   (eval $ac_link) 2>conftest.er1
5335   ac_status=$?
5336   grep -v '^ *+' conftest.er1 >conftest.err
5337   rm -f conftest.er1
5338   cat conftest.err >&5
5339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5340   (exit $ac_status); } &&
5341          { ac_try='test -z "$ac_c_werror_flag"
5342                          || test ! -s conftest.err'
5343   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5344   (eval $ac_try) 2>&5
5345   ac_status=$?
5346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5347   (exit $ac_status); }; } &&
5348          { ac_try='test -s conftest$ac_exeext'
5349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5350   (eval $ac_try) 2>&5
5351   ac_status=$?
5352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5353   (exit $ac_status); }; }; then
5354   gl_cv_ignore_unused_libraries=$gl_flags
5355 else
5356   echo "$as_me: failed program was:" >&5
5357 sed 's/^/| /' conftest.$ac_ext >&5
5358
5359
5360 fi
5361
5362 rm -f conftest.err conftest.$ac_objext \
5363       conftest$ac_exeext conftest.$ac_ext
5364        LDFLAGS=$gl_saved_ldflags
5365        test "$gl_cv_ignore_unused_libraries" != none && break
5366      done
5367 fi
5368 { echo "$as_me:$LINENO: result: $gl_cv_ignore_unused_libraries" >&5
5369 echo "${ECHO_T}$gl_cv_ignore_unused_libraries" >&6; }
5370
5371   test "$gl_cv_ignore_unused_libraries" != none &&
5372     LDFLAGS="$LDFLAGS $gl_cv_ignore_unused_libraries"
5373
5374
5375
5376
5377 for ac_func in uname
5378 do
5379 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5380 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5381 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5382 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5383   echo $ECHO_N "(cached) $ECHO_C" >&6
5384 else
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 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5392    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5393 #define $ac_func innocuous_$ac_func
5394
5395 /* System header to define __stub macros and hopefully few prototypes,
5396     which can conflict with char $ac_func (); below.
5397     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5398     <limits.h> exists even on freestanding compilers.  */
5399
5400 #ifdef __STDC__
5401 # include <limits.h>
5402 #else
5403 # include <assert.h>
5404 #endif
5405
5406 #undef $ac_func
5407
5408 /* Override any GCC internal prototype to avoid an error.
5409    Use char because int might match the return type of a GCC
5410    builtin and then its argument prototype would still apply.  */
5411 #ifdef __cplusplus
5412 extern "C"
5413 #endif
5414 char $ac_func ();
5415 /* The GNU C library defines this for functions which it implements
5416     to always fail with ENOSYS.  Some functions are actually named
5417     something starting with __ and the normal name is an alias.  */
5418 #if defined __stub_$ac_func || defined __stub___$ac_func
5419 choke me
5420 #endif
5421
5422 int
5423 main ()
5424 {
5425 return $ac_func ();
5426   ;
5427   return 0;
5428 }
5429 _ACEOF
5430 rm -f conftest.$ac_objext conftest$ac_exeext
5431 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5432   (eval $ac_link) 2>conftest.er1
5433   ac_status=$?
5434   grep -v '^ *+' conftest.er1 >conftest.err
5435   rm -f conftest.er1
5436   cat conftest.err >&5
5437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5438   (exit $ac_status); } &&
5439          { ac_try='test -z "$ac_c_werror_flag"
5440                          || test ! -s conftest.err'
5441   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5442   (eval $ac_try) 2>&5
5443   ac_status=$?
5444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5445   (exit $ac_status); }; } &&
5446          { ac_try='test -s conftest$ac_exeext'
5447   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5448   (eval $ac_try) 2>&5
5449   ac_status=$?
5450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5451   (exit $ac_status); }; }; then
5452   eval "$as_ac_var=yes"
5453 else
5454   echo "$as_me: failed program was:" >&5
5455 sed 's/^/| /' conftest.$ac_ext >&5
5456
5457         eval "$as_ac_var=no"
5458 fi
5459
5460 rm -f conftest.err conftest.$ac_objext \
5461       conftest$ac_exeext conftest.$ac_ext
5462 fi
5463 ac_res=`eval echo '${'$as_ac_var'}'`
5464                { echo "$as_me:$LINENO: result: $ac_res" >&5
5465 echo "${ECHO_T}$ac_res" >&6; }
5466 if test `eval echo '${'$as_ac_var'}'` = yes; then
5467   cat >>confdefs.h <<_ACEOF
5468 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5469 _ACEOF
5470  OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS uname\$(EXEEXT)"
5471         MAN="$MAN uname.1"
5472 fi
5473 done
5474
5475
5476 for ac_func in chroot
5477 do
5478 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5479 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5480 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5481 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5482   echo $ECHO_N "(cached) $ECHO_C" >&6
5483 else
5484   cat >conftest.$ac_ext <<_ACEOF
5485 /* confdefs.h.  */
5486 _ACEOF
5487 cat confdefs.h >>conftest.$ac_ext
5488 cat >>conftest.$ac_ext <<_ACEOF
5489 /* end confdefs.h.  */
5490 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5491    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5492 #define $ac_func innocuous_$ac_func
5493
5494 /* System header to define __stub macros and hopefully few prototypes,
5495     which can conflict with char $ac_func (); below.
5496     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5497     <limits.h> exists even on freestanding compilers.  */
5498
5499 #ifdef __STDC__
5500 # include <limits.h>
5501 #else
5502 # include <assert.h>
5503 #endif
5504
5505 #undef $ac_func
5506
5507 /* Override any GCC internal prototype to avoid an error.
5508    Use char because int might match the return type of a GCC
5509    builtin and then its argument prototype would still apply.  */
5510 #ifdef __cplusplus
5511 extern "C"
5512 #endif
5513 char $ac_func ();
5514 /* The GNU C library defines this for functions which it implements
5515     to always fail with ENOSYS.  Some functions are actually named
5516     something starting with __ and the normal name is an alias.  */
5517 #if defined __stub_$ac_func || defined __stub___$ac_func
5518 choke me
5519 #endif
5520
5521 int
5522 main ()
5523 {
5524 return $ac_func ();
5525   ;
5526   return 0;
5527 }
5528 _ACEOF
5529 rm -f conftest.$ac_objext conftest$ac_exeext
5530 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5531   (eval $ac_link) 2>conftest.er1
5532   ac_status=$?
5533   grep -v '^ *+' conftest.er1 >conftest.err
5534   rm -f conftest.er1
5535   cat conftest.err >&5
5536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5537   (exit $ac_status); } &&
5538          { ac_try='test -z "$ac_c_werror_flag"
5539                          || test ! -s conftest.err'
5540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5541   (eval $ac_try) 2>&5
5542   ac_status=$?
5543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5544   (exit $ac_status); }; } &&
5545          { ac_try='test -s conftest$ac_exeext'
5546   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5547   (eval $ac_try) 2>&5
5548   ac_status=$?
5549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5550   (exit $ac_status); }; }; then
5551   eval "$as_ac_var=yes"
5552 else
5553   echo "$as_me: failed program was:" >&5
5554 sed 's/^/| /' conftest.$ac_ext >&5
5555
5556         eval "$as_ac_var=no"
5557 fi
5558
5559 rm -f conftest.err conftest.$ac_objext \
5560       conftest$ac_exeext conftest.$ac_ext
5561 fi
5562 ac_res=`eval echo '${'$as_ac_var'}'`
5563                { echo "$as_me:$LINENO: result: $ac_res" >&5
5564 echo "${ECHO_T}$ac_res" >&6; }
5565 if test `eval echo '${'$as_ac_var'}'` = yes; then
5566   cat >>confdefs.h <<_ACEOF
5567 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5568 _ACEOF
5569  OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS chroot\$(EXEEXT)"
5570         MAN="$MAN chroot.1"
5571 fi
5572 done
5573
5574
5575 for ac_func in gethostid
5576 do
5577 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5578 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5579 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5580 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5581   echo $ECHO_N "(cached) $ECHO_C" >&6
5582 else
5583   cat >conftest.$ac_ext <<_ACEOF
5584 /* confdefs.h.  */
5585 _ACEOF
5586 cat confdefs.h >>conftest.$ac_ext
5587 cat >>conftest.$ac_ext <<_ACEOF
5588 /* end confdefs.h.  */
5589 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5590    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5591 #define $ac_func innocuous_$ac_func
5592
5593 /* System header to define __stub macros and hopefully few prototypes,
5594     which can conflict with char $ac_func (); below.
5595     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5596     <limits.h> exists even on freestanding compilers.  */
5597
5598 #ifdef __STDC__
5599 # include <limits.h>
5600 #else
5601 # include <assert.h>
5602 #endif
5603
5604 #undef $ac_func
5605
5606 /* Override any GCC internal prototype to avoid an error.
5607    Use char because int might match the return type of a GCC
5608    builtin and then its argument prototype would still apply.  */
5609 #ifdef __cplusplus
5610 extern "C"
5611 #endif
5612 char $ac_func ();
5613 /* The GNU C library defines this for functions which it implements
5614     to always fail with ENOSYS.  Some functions are actually named
5615     something starting with __ and the normal name is an alias.  */
5616 #if defined __stub_$ac_func || defined __stub___$ac_func
5617 choke me
5618 #endif
5619
5620 int
5621 main ()
5622 {
5623 return $ac_func ();
5624   ;
5625   return 0;
5626 }
5627 _ACEOF
5628 rm -f conftest.$ac_objext conftest$ac_exeext
5629 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5630   (eval $ac_link) 2>conftest.er1
5631   ac_status=$?
5632   grep -v '^ *+' conftest.er1 >conftest.err
5633   rm -f conftest.er1
5634   cat conftest.err >&5
5635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5636   (exit $ac_status); } &&
5637          { ac_try='test -z "$ac_c_werror_flag"
5638                          || test ! -s conftest.err'
5639   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5640   (eval $ac_try) 2>&5
5641   ac_status=$?
5642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5643   (exit $ac_status); }; } &&
5644          { ac_try='test -s conftest$ac_exeext'
5645   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5646   (eval $ac_try) 2>&5
5647   ac_status=$?
5648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5649   (exit $ac_status); }; }; then
5650   eval "$as_ac_var=yes"
5651 else
5652   echo "$as_me: failed program was:" >&5
5653 sed 's/^/| /' conftest.$ac_ext >&5
5654
5655         eval "$as_ac_var=no"
5656 fi
5657
5658 rm -f conftest.err conftest.$ac_objext \
5659       conftest$ac_exeext conftest.$ac_ext
5660 fi
5661 ac_res=`eval echo '${'$as_ac_var'}'`
5662                { echo "$as_me:$LINENO: result: $ac_res" >&5
5663 echo "${ECHO_T}$ac_res" >&6; }
5664 if test `eval echo '${'$as_ac_var'}'` = yes; then
5665   cat >>confdefs.h <<_ACEOF
5666 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5667 _ACEOF
5668  OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS hostid\$(EXEEXT)"
5669         MAN="$MAN hostid.1"
5670 fi
5671 done
5672
5673
5674 { echo "$as_me:$LINENO: checking for library containing strerror" >&5
5675 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
5676 if test "${ac_cv_search_strerror+set}" = set; then
5677   echo $ECHO_N "(cached) $ECHO_C" >&6
5678 else
5679   ac_func_search_save_LIBS=$LIBS
5680 cat >conftest.$ac_ext <<_ACEOF
5681 /* confdefs.h.  */
5682 _ACEOF
5683 cat confdefs.h >>conftest.$ac_ext
5684 cat >>conftest.$ac_ext <<_ACEOF
5685 /* end confdefs.h.  */
5686
5687 /* Override any GCC internal prototype to avoid an error.
5688    Use char because int might match the return type of a GCC
5689    builtin and then its argument prototype would still apply.  */
5690 #ifdef __cplusplus
5691 extern "C"
5692 #endif
5693 char strerror ();
5694 int
5695 main ()
5696 {
5697 return strerror ();
5698   ;
5699   return 0;
5700 }
5701 _ACEOF
5702 for ac_lib in '' cposix; do
5703   if test -z "$ac_lib"; then
5704     ac_res="none required"
5705   else
5706     ac_res=-l$ac_lib
5707     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5708   fi
5709   rm -f conftest.$ac_objext conftest$ac_exeext
5710 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5711   (eval $ac_link) 2>conftest.er1
5712   ac_status=$?
5713   grep -v '^ *+' conftest.er1 >conftest.err
5714   rm -f conftest.er1
5715   cat conftest.err >&5
5716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5717   (exit $ac_status); } &&
5718          { ac_try='test -z "$ac_c_werror_flag"
5719                          || test ! -s conftest.err'
5720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5721   (eval $ac_try) 2>&5
5722   ac_status=$?
5723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5724   (exit $ac_status); }; } &&
5725          { ac_try='test -s conftest$ac_exeext'
5726   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5727   (eval $ac_try) 2>&5
5728   ac_status=$?
5729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5730   (exit $ac_status); }; }; then
5731   ac_cv_search_strerror=$ac_res
5732 else
5733   echo "$as_me: failed program was:" >&5
5734 sed 's/^/| /' conftest.$ac_ext >&5
5735
5736
5737 fi
5738
5739 rm -f conftest.err conftest.$ac_objext \
5740       conftest$ac_exeext
5741   if test "${ac_cv_search_strerror+set}" = set; then
5742   break
5743 fi
5744 done
5745 if test "${ac_cv_search_strerror+set}" = set; then
5746   :
5747 else
5748   ac_cv_search_strerror=no
5749 fi
5750 rm conftest.$ac_ext
5751 LIBS=$ac_func_search_save_LIBS
5752 fi
5753 { echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
5754 echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
5755 ac_res=$ac_cv_search_strerror
5756 if test "$ac_res" != no; then
5757   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5758
5759 fi
5760
5761 # Check whether --enable-largefile was given.
5762 if test "${enable_largefile+set}" = set; then
5763   enableval=$enable_largefile;
5764 fi
5765
5766 if test "$enable_largefile" != no; then
5767
5768   { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5769 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5770 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5771   echo $ECHO_N "(cached) $ECHO_C" >&6
5772 else
5773   ac_cv_sys_largefile_CC=no
5774      if test "$GCC" != yes; then
5775        ac_save_CC=$CC
5776        while :; do
5777          # IRIX 6.2 and later do not support large files by default,
5778          # so use the C compiler's -n32 option if that helps.
5779          cat >conftest.$ac_ext <<_ACEOF
5780 /* confdefs.h.  */
5781 _ACEOF
5782 cat confdefs.h >>conftest.$ac_ext
5783 cat >>conftest.$ac_ext <<_ACEOF
5784 /* end confdefs.h.  */
5785 #include <sys/types.h>
5786  /* Check that off_t can represent 2**63 - 1 correctly.
5787     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5788     since some C++ compilers masquerading as C compilers
5789     incorrectly reject 9223372036854775807.  */
5790 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5791   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5792                        && LARGE_OFF_T % 2147483647 == 1)
5793                       ? 1 : -1];
5794 int
5795 main ()
5796 {
5797
5798   ;
5799   return 0;
5800 }
5801 _ACEOF
5802          rm -f conftest.$ac_objext
5803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5804   (eval $ac_compile) 2>conftest.er1
5805   ac_status=$?
5806   grep -v '^ *+' conftest.er1 >conftest.err
5807   rm -f conftest.er1
5808   cat conftest.err >&5
5809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5810   (exit $ac_status); } &&
5811          { ac_try='test -z "$ac_c_werror_flag"
5812                          || test ! -s conftest.err'
5813   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5814   (eval $ac_try) 2>&5
5815   ac_status=$?
5816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5817   (exit $ac_status); }; } &&
5818          { ac_try='test -s conftest.$ac_objext'
5819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5820   (eval $ac_try) 2>&5
5821   ac_status=$?
5822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5823   (exit $ac_status); }; }; then
5824   break
5825 else
5826   echo "$as_me: failed program was:" >&5
5827 sed 's/^/| /' conftest.$ac_ext >&5
5828
5829
5830 fi
5831
5832 rm -f conftest.err conftest.$ac_objext
5833          CC="$CC -n32"
5834          rm -f conftest.$ac_objext
5835 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5836   (eval $ac_compile) 2>conftest.er1
5837   ac_status=$?
5838   grep -v '^ *+' conftest.er1 >conftest.err
5839   rm -f conftest.er1
5840   cat conftest.err >&5
5841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5842   (exit $ac_status); } &&
5843          { ac_try='test -z "$ac_c_werror_flag"
5844                          || test ! -s conftest.err'
5845   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5846   (eval $ac_try) 2>&5
5847   ac_status=$?
5848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5849   (exit $ac_status); }; } &&
5850          { ac_try='test -s conftest.$ac_objext'
5851   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5852   (eval $ac_try) 2>&5
5853   ac_status=$?
5854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5855   (exit $ac_status); }; }; then
5856   ac_cv_sys_largefile_CC=' -n32'; break
5857 else
5858   echo "$as_me: failed program was:" >&5
5859 sed 's/^/| /' conftest.$ac_ext >&5
5860
5861
5862 fi
5863
5864 rm -f conftest.err conftest.$ac_objext
5865          break
5866        done
5867        CC=$ac_save_CC
5868        rm -f conftest.$ac_ext
5869     fi
5870 fi
5871 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5872 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5873   if test "$ac_cv_sys_largefile_CC" != no; then
5874     CC=$CC$ac_cv_sys_largefile_CC
5875   fi
5876
5877   { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5878 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5879 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5880   echo $ECHO_N "(cached) $ECHO_C" >&6
5881 else
5882   while :; do
5883   ac_cv_sys_file_offset_bits=no
5884   cat >conftest.$ac_ext <<_ACEOF
5885 /* confdefs.h.  */
5886 _ACEOF
5887 cat confdefs.h >>conftest.$ac_ext
5888 cat >>conftest.$ac_ext <<_ACEOF
5889 /* end confdefs.h.  */
5890 #include <sys/types.h>
5891  /* Check that off_t can represent 2**63 - 1 correctly.
5892     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5893     since some C++ compilers masquerading as C compilers
5894     incorrectly reject 9223372036854775807.  */
5895 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5896   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5897                        && LARGE_OFF_T % 2147483647 == 1)
5898                       ? 1 : -1];
5899 int
5900 main ()
5901 {
5902
5903   ;
5904   return 0;
5905 }
5906 _ACEOF
5907 rm -f conftest.$ac_objext
5908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5909   (eval $ac_compile) 2>conftest.er1
5910   ac_status=$?
5911   grep -v '^ *+' conftest.er1 >conftest.err
5912   rm -f conftest.er1
5913   cat conftest.err >&5
5914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5915   (exit $ac_status); } &&
5916          { ac_try='test -z "$ac_c_werror_flag"
5917                          || test ! -s conftest.err'
5918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5919   (eval $ac_try) 2>&5
5920   ac_status=$?
5921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5922   (exit $ac_status); }; } &&
5923          { ac_try='test -s conftest.$ac_objext'
5924   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5925   (eval $ac_try) 2>&5
5926   ac_status=$?
5927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5928   (exit $ac_status); }; }; then
5929   break
5930 else
5931   echo "$as_me: failed program was:" >&5
5932 sed 's/^/| /' conftest.$ac_ext >&5
5933
5934
5935 fi
5936
5937 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5938   cat >conftest.$ac_ext <<_ACEOF
5939 /* confdefs.h.  */
5940 _ACEOF
5941 cat confdefs.h >>conftest.$ac_ext
5942 cat >>conftest.$ac_ext <<_ACEOF
5943 /* end confdefs.h.  */
5944 #define _FILE_OFFSET_BITS 64
5945 #include <sys/types.h>
5946  /* Check that off_t can represent 2**63 - 1 correctly.
5947     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5948     since some C++ compilers masquerading as C compilers
5949     incorrectly reject 9223372036854775807.  */
5950 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5951   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5952                        && LARGE_OFF_T % 2147483647 == 1)
5953                       ? 1 : -1];
5954 int
5955 main ()
5956 {
5957
5958   ;
5959   return 0;
5960 }
5961 _ACEOF
5962 rm -f conftest.$ac_objext
5963 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5964   (eval $ac_compile) 2>conftest.er1
5965   ac_status=$?
5966   grep -v '^ *+' conftest.er1 >conftest.err
5967   rm -f conftest.er1
5968   cat conftest.err >&5
5969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5970   (exit $ac_status); } &&
5971          { ac_try='test -z "$ac_c_werror_flag"
5972                          || test ! -s conftest.err'
5973   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5974   (eval $ac_try) 2>&5
5975   ac_status=$?
5976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5977   (exit $ac_status); }; } &&
5978          { ac_try='test -s conftest.$ac_objext'
5979   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5980   (eval $ac_try) 2>&5
5981   ac_status=$?
5982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5983   (exit $ac_status); }; }; then
5984   ac_cv_sys_file_offset_bits=64; break
5985 else
5986   echo "$as_me: failed program was:" >&5
5987 sed 's/^/| /' conftest.$ac_ext >&5
5988
5989
5990 fi
5991
5992 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5993   break
5994 done
5995 fi
5996 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5997 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5998 if test "$ac_cv_sys_file_offset_bits" != no; then
5999
6000 cat >>confdefs.h <<_ACEOF
6001 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6002 _ACEOF
6003
6004 fi
6005 rm -f conftest*
6006   { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
6007 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
6008 if test "${ac_cv_sys_large_files+set}" = set; then
6009   echo $ECHO_N "(cached) $ECHO_C" >&6
6010 else
6011   while :; do
6012   ac_cv_sys_large_files=no
6013   cat >conftest.$ac_ext <<_ACEOF
6014 /* confdefs.h.  */
6015 _ACEOF
6016 cat confdefs.h >>conftest.$ac_ext
6017 cat >>conftest.$ac_ext <<_ACEOF
6018 /* end confdefs.h.  */
6019 #include <sys/types.h>
6020  /* Check that off_t can represent 2**63 - 1 correctly.
6021     We can't simply define LARGE_OFF_T to be 9223372036854775807,
6022     since some C++ compilers masquerading as C compilers
6023     incorrectly reject 9223372036854775807.  */
6024 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6025   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6026                        && LARGE_OFF_T % 2147483647 == 1)
6027                       ? 1 : -1];
6028 int
6029 main ()
6030 {
6031
6032   ;
6033   return 0;
6034 }
6035 _ACEOF
6036 rm -f conftest.$ac_objext
6037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6038   (eval $ac_compile) 2>conftest.er1
6039   ac_status=$?
6040   grep -v '^ *+' conftest.er1 >conftest.err
6041   rm -f conftest.er1
6042   cat conftest.err >&5
6043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6044   (exit $ac_status); } &&
6045          { ac_try='test -z "$ac_c_werror_flag"
6046                          || test ! -s conftest.err'
6047   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6048   (eval $ac_try) 2>&5
6049   ac_status=$?
6050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6051   (exit $ac_status); }; } &&
6052          { ac_try='test -s conftest.$ac_objext'
6053   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6054   (eval $ac_try) 2>&5
6055   ac_status=$?
6056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6057   (exit $ac_status); }; }; then
6058   break
6059 else
6060   echo "$as_me: failed program was:" >&5
6061 sed 's/^/| /' conftest.$ac_ext >&5
6062
6063
6064 fi
6065
6066 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6067   cat >conftest.$ac_ext <<_ACEOF
6068 /* confdefs.h.  */
6069 _ACEOF
6070 cat confdefs.h >>conftest.$ac_ext
6071 cat >>conftest.$ac_ext <<_ACEOF
6072 /* end confdefs.h.  */
6073 #define _LARGE_FILES 1
6074 #include <sys/types.h>
6075  /* Check that off_t can represent 2**63 - 1 correctly.
6076     We can't simply define LARGE_OFF_T to be 9223372036854775807,
6077     since some C++ compilers masquerading as C compilers
6078     incorrectly reject 9223372036854775807.  */
6079 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6080   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6081                        && LARGE_OFF_T % 2147483647 == 1)
6082                       ? 1 : -1];
6083 int
6084 main ()
6085 {
6086
6087   ;
6088   return 0;
6089 }
6090 _ACEOF
6091 rm -f conftest.$ac_objext
6092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6093   (eval $ac_compile) 2>conftest.er1
6094   ac_status=$?
6095   grep -v '^ *+' conftest.er1 >conftest.err
6096   rm -f conftest.er1
6097   cat conftest.err >&5
6098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6099   (exit $ac_status); } &&
6100          { ac_try='test -z "$ac_c_werror_flag"
6101                          || test ! -s conftest.err'
6102   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6103   (eval $ac_try) 2>&5
6104   ac_status=$?
6105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6106   (exit $ac_status); }; } &&
6107          { ac_try='test -s conftest.$ac_objext'
6108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6109   (eval $ac_try) 2>&5
6110   ac_status=$?
6111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6112   (exit $ac_status); }; }; then
6113   ac_cv_sys_large_files=1; break
6114 else
6115   echo "$as_me: failed program was:" >&5
6116 sed 's/^/| /' conftest.$ac_ext >&5
6117
6118
6119 fi
6120
6121 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6122   break
6123 done
6124 fi
6125 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
6126 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
6127 if test "$ac_cv_sys_large_files" != no; then
6128
6129 cat >>confdefs.h <<_ACEOF
6130 #define _LARGE_FILES $ac_cv_sys_large_files
6131 _ACEOF
6132
6133 fi
6134 rm -f conftest*
6135 fi
6136
6137 { echo "$as_me:$LINENO: checking for function prototypes" >&5
6138 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
6139 if test "$ac_cv_prog_cc_c89" != no; then
6140   { echo "$as_me:$LINENO: result: yes" >&5
6141 echo "${ECHO_T}yes" >&6; }
6142
6143 cat >>confdefs.h <<\_ACEOF
6144 #define PROTOTYPES 1
6145 _ACEOF
6146
6147
6148 cat >>confdefs.h <<\_ACEOF
6149 #define __PROTOTYPES 1
6150 _ACEOF
6151
6152 else
6153   { echo "$as_me:$LINENO: result: no" >&5
6154 echo "${ECHO_T}no" >&6; }
6155 fi
6156
6157
6158 if test "$ac_cv_prog_cc_stdc" != no; then
6159   U= ANSI2KNR=
6160 else
6161   U=_ ANSI2KNR=./ansi2knr
6162 fi
6163 # Ensure some checks needed by ansi2knr itself.
6164
6165
6166 for ac_header in string.h
6167 do
6168 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6169 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6170   { echo "$as_me:$LINENO: checking for $ac_header" >&5
6171 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6172 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6173   echo $ECHO_N "(cached) $ECHO_C" >&6
6174 fi
6175 ac_res=`eval echo '${'$as_ac_Header'}'`
6176                { echo "$as_me:$LINENO: result: $ac_res" >&5
6177 echo "${ECHO_T}$ac_res" >&6; }
6178 else
6179   # Is the header compilable?
6180 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6181 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6182 cat >conftest.$ac_ext <<_ACEOF
6183 /* confdefs.h.  */
6184 _ACEOF
6185 cat confdefs.h >>conftest.$ac_ext
6186 cat >>conftest.$ac_ext <<_ACEOF
6187 /* end confdefs.h.  */
6188 $ac_includes_default
6189 #include <$ac_header>
6190 _ACEOF
6191 rm -f conftest.$ac_objext
6192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6193   (eval $ac_compile) 2>conftest.er1
6194   ac_status=$?
6195   grep -v '^ *+' conftest.er1 >conftest.err
6196   rm -f conftest.er1
6197   cat conftest.err >&5
6198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6199   (exit $ac_status); } &&
6200          { ac_try='test -z "$ac_c_werror_flag"
6201                          || test ! -s conftest.err'
6202   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6203   (eval $ac_try) 2>&5
6204   ac_status=$?
6205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6206   (exit $ac_status); }; } &&
6207          { ac_try='test -s conftest.$ac_objext'
6208   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6209   (eval $ac_try) 2>&5
6210   ac_status=$?
6211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6212   (exit $ac_status); }; }; then
6213   ac_header_compiler=yes
6214 else
6215   echo "$as_me: failed program was:" >&5
6216 sed 's/^/| /' conftest.$ac_ext >&5
6217
6218         ac_header_compiler=no
6219 fi
6220
6221 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6222 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6223 echo "${ECHO_T}$ac_header_compiler" >&6; }
6224
6225 # Is the header present?
6226 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6227 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6228 cat >conftest.$ac_ext <<_ACEOF
6229 /* confdefs.h.  */
6230 _ACEOF
6231 cat confdefs.h >>conftest.$ac_ext
6232 cat >>conftest.$ac_ext <<_ACEOF
6233 /* end confdefs.h.  */
6234 #include <$ac_header>
6235 _ACEOF
6236 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6237   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6238   ac_status=$?
6239   grep -v '^ *+' conftest.er1 >conftest.err
6240   rm -f conftest.er1
6241   cat conftest.err >&5
6242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6243   (exit $ac_status); } >/dev/null; then
6244   if test -s conftest.err; then
6245     ac_cpp_err=$ac_c_preproc_warn_flag
6246     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6247   else
6248     ac_cpp_err=
6249   fi
6250 else
6251   ac_cpp_err=yes
6252 fi
6253 if test -z "$ac_cpp_err"; then
6254   ac_header_preproc=yes
6255 else
6256   echo "$as_me: failed program was:" >&5
6257 sed 's/^/| /' conftest.$ac_ext >&5
6258
6259   ac_header_preproc=no
6260 fi
6261
6262 rm -f conftest.err conftest.$ac_ext
6263 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6264 echo "${ECHO_T}$ac_header_preproc" >&6; }
6265
6266 # So?  What about this header?
6267 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6268   yes:no: )
6269     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6270 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6271     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6272 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6273     ac_header_preproc=yes
6274     ;;
6275   no:yes:* )
6276     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6277 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6278     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6279 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6280     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6281 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6282     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6283 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6284     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6285 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6286     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6287 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6288     ( cat <<\_ASBOX
6289 ## ------------------------------------ ##
6290 ## Report this to bug-coreutils@gnu.org ##
6291 ## ------------------------------------ ##
6292 _ASBOX
6293      ) | sed "s/^/$as_me: WARNING:     /" >&2
6294     ;;
6295 esac
6296 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6297 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6298 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6299   echo $ECHO_N "(cached) $ECHO_C" >&6
6300 else
6301   eval "$as_ac_Header=\$ac_header_preproc"
6302 fi
6303 ac_res=`eval echo '${'$as_ac_Header'}'`
6304                { echo "$as_me:$LINENO: result: $ac_res" >&5
6305 echo "${ECHO_T}$ac_res" >&6; }
6306
6307 fi
6308 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6309   cat >>confdefs.h <<_ACEOF
6310 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6311 _ACEOF
6312
6313 fi
6314
6315 done
6316
6317
6318 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
6319 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
6320 if test "${ac_cv_c_bigendian+set}" = set; then
6321   echo $ECHO_N "(cached) $ECHO_C" >&6
6322 else
6323   # See if sys/param.h defines the BYTE_ORDER macro.
6324 cat >conftest.$ac_ext <<_ACEOF
6325 /* confdefs.h.  */
6326 _ACEOF
6327 cat confdefs.h >>conftest.$ac_ext
6328 cat >>conftest.$ac_ext <<_ACEOF
6329 /* end confdefs.h.  */
6330 #include <sys/types.h>
6331 #include <sys/param.h>
6332
6333 int
6334 main ()
6335 {
6336 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
6337  bogus endian macros
6338 #endif
6339
6340   ;
6341   return 0;
6342 }
6343 _ACEOF
6344 rm -f conftest.$ac_objext
6345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6346   (eval $ac_compile) 2>conftest.er1
6347   ac_status=$?
6348   grep -v '^ *+' conftest.er1 >conftest.err
6349   rm -f conftest.er1
6350   cat conftest.err >&5
6351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6352   (exit $ac_status); } &&
6353          { ac_try='test -z "$ac_c_werror_flag"
6354                          || test ! -s conftest.err'
6355   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6356   (eval $ac_try) 2>&5
6357   ac_status=$?
6358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6359   (exit $ac_status); }; } &&
6360          { ac_try='test -s conftest.$ac_objext'
6361   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6362   (eval $ac_try) 2>&5
6363   ac_status=$?
6364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6365   (exit $ac_status); }; }; then
6366   # It does; now see whether it defined to BIG_ENDIAN or not.
6367 cat >conftest.$ac_ext <<_ACEOF
6368 /* confdefs.h.  */
6369 _ACEOF
6370 cat confdefs.h >>conftest.$ac_ext
6371 cat >>conftest.$ac_ext <<_ACEOF
6372 /* end confdefs.h.  */
6373 #include <sys/types.h>
6374 #include <sys/param.h>
6375
6376 int
6377 main ()
6378 {
6379 #if BYTE_ORDER != BIG_ENDIAN
6380  not big endian
6381 #endif
6382
6383   ;
6384   return 0;
6385 }
6386 _ACEOF
6387 rm -f conftest.$ac_objext
6388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6389   (eval $ac_compile) 2>conftest.er1
6390   ac_status=$?
6391   grep -v '^ *+' conftest.er1 >conftest.err
6392   rm -f conftest.er1
6393   cat conftest.err >&5
6394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6395   (exit $ac_status); } &&
6396          { ac_try='test -z "$ac_c_werror_flag"
6397                          || test ! -s conftest.err'
6398   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6399   (eval $ac_try) 2>&5
6400   ac_status=$?
6401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6402   (exit $ac_status); }; } &&
6403          { ac_try='test -s conftest.$ac_objext'
6404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6405   (eval $ac_try) 2>&5
6406   ac_status=$?
6407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6408   (exit $ac_status); }; }; then
6409   ac_cv_c_bigendian=yes
6410 else
6411   echo "$as_me: failed program was:" >&5
6412 sed 's/^/| /' conftest.$ac_ext >&5
6413
6414         ac_cv_c_bigendian=no
6415 fi
6416
6417 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6418 else
6419   echo "$as_me: failed program was:" >&5
6420 sed 's/^/| /' conftest.$ac_ext >&5
6421
6422         # It does not; compile a test program.
6423 if test "$cross_compiling" = yes; then
6424   # try to guess the endianness by grepping values into an object file
6425   ac_cv_c_bigendian=unknown
6426   cat >conftest.$ac_ext <<_ACEOF
6427 /* confdefs.h.  */
6428 _ACEOF
6429 cat confdefs.h >>conftest.$ac_ext
6430 cat >>conftest.$ac_ext <<_ACEOF
6431 /* end confdefs.h.  */
6432 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6433 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6434 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
6435 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6436 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6437 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
6438 int
6439 main ()
6440 {
6441  _ascii (); _ebcdic ();
6442   ;
6443   return 0;
6444 }
6445 _ACEOF
6446 rm -f conftest.$ac_objext
6447 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6448   (eval $ac_compile) 2>conftest.er1
6449   ac_status=$?
6450   grep -v '^ *+' conftest.er1 >conftest.err
6451   rm -f conftest.er1
6452   cat conftest.err >&5
6453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6454   (exit $ac_status); } &&
6455          { ac_try='test -z "$ac_c_werror_flag"
6456                          || test ! -s conftest.err'
6457   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6458   (eval $ac_try) 2>&5
6459   ac_status=$?
6460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6461   (exit $ac_status); }; } &&
6462          { ac_try='test -s conftest.$ac_objext'
6463   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6464   (eval $ac_try) 2>&5
6465   ac_status=$?
6466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6467   (exit $ac_status); }; }; then
6468   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
6469   ac_cv_c_bigendian=yes
6470 fi
6471 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
6472   if test "$ac_cv_c_bigendian" = unknown; then
6473     ac_cv_c_bigendian=no
6474   else
6475     # finding both strings is unlikely to happen, but who knows?
6476     ac_cv_c_bigendian=unknown
6477   fi
6478 fi
6479 else
6480   echo "$as_me: failed program was:" >&5
6481 sed 's/^/| /' conftest.$ac_ext >&5
6482
6483
6484 fi
6485
6486 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6487 else
6488   cat >conftest.$ac_ext <<_ACEOF
6489 /* confdefs.h.  */
6490 _ACEOF
6491 cat confdefs.h >>conftest.$ac_ext
6492 cat >>conftest.$ac_ext <<_ACEOF
6493 /* end confdefs.h.  */
6494 $ac_includes_default
6495 int
6496 main ()
6497 {
6498
6499   /* Are we little or big endian?  From Harbison&Steele.  */
6500   union
6501   {
6502     long int l;
6503     char c[sizeof (long int)];
6504   } u;
6505   u.l = 1;
6506   return u.c[sizeof (long int) - 1] == 1;
6507
6508   ;
6509   return 0;
6510 }
6511 _ACEOF
6512 rm -f conftest$ac_exeext
6513 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6514   (eval $ac_link) 2>&5
6515   ac_status=$?
6516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6517   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6519   (eval $ac_try) 2>&5
6520   ac_status=$?
6521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6522   (exit $ac_status); }; }; then
6523   ac_cv_c_bigendian=no
6524 else
6525   echo "$as_me: program exited with status $ac_status" >&5
6526 echo "$as_me: failed program was:" >&5
6527 sed 's/^/| /' conftest.$ac_ext >&5
6528
6529 ( exit $ac_status )
6530 ac_cv_c_bigendian=yes
6531 fi
6532 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6533 fi
6534
6535
6536 fi
6537
6538 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6539 fi
6540 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
6541 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
6542 case $ac_cv_c_bigendian in
6543   yes)
6544
6545 cat >>confdefs.h <<\_ACEOF
6546 #define WORDS_BIGENDIAN 1
6547 _ACEOF
6548  ;;
6549   no)
6550      ;;
6551   *)
6552     { { echo "$as_me:$LINENO: error: unknown endianness
6553 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
6554 echo "$as_me: error: unknown endianness
6555 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
6556    { (exit 1); exit 1; }; } ;;
6557 esac
6558
6559 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
6560 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
6561 if test "${ac_cv_c_const+set}" = set; then
6562   echo $ECHO_N "(cached) $ECHO_C" >&6
6563 else
6564   cat >conftest.$ac_ext <<_ACEOF
6565 /* confdefs.h.  */
6566 _ACEOF
6567 cat confdefs.h >>conftest.$ac_ext
6568 cat >>conftest.$ac_ext <<_ACEOF
6569 /* end confdefs.h.  */
6570
6571 int
6572 main ()
6573 {
6574 /* FIXME: Include the comments suggested by Paul. */
6575 #ifndef __cplusplus
6576   /* Ultrix mips cc rejects this.  */
6577   typedef int charset[2];
6578   const charset x;
6579   /* SunOS 4.1.1 cc rejects this.  */
6580   char const *const *ccp;
6581   char **p;
6582   /* NEC SVR4.0.2 mips cc rejects this.  */
6583   struct point {int x, y;};
6584   static struct point const zero = {0,0};
6585   /* AIX XL C 1.02.0.0 rejects this.
6586      It does not let you subtract one const X* pointer from another in
6587      an arm of an if-expression whose if-part is not a constant
6588      expression */
6589   const char *g = "string";
6590   ccp = &g + (g ? g-g : 0);
6591   /* HPUX 7.0 cc rejects these. */
6592   ++ccp;
6593   p = (char**) ccp;
6594   ccp = (char const *const *) p;
6595   { /* SCO 3.2v4 cc rejects this.  */
6596     char *t;
6597     char const *s = 0 ? (char *) 0 : (char const *) 0;
6598
6599     *t++ = 0;
6600     if (s) return 0;
6601   }
6602   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
6603     int x[] = {25, 17};
6604     const int *foo = &x[0];
6605     ++foo;
6606   }
6607   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6608     typedef const int *iptr;
6609     iptr p = 0;
6610     ++p;
6611   }
6612   { /* AIX XL C 1.02.0.0 rejects this saying
6613        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6614     struct s { int j; const int *ap[3]; };
6615     struct s *b; b->j = 5;
6616   }
6617   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6618     const int foo = 10;
6619     if (!foo) return 0;
6620   }
6621   return !x[0] && !zero.x;
6622 #endif
6623
6624   ;
6625   return 0;
6626 }
6627 _ACEOF
6628 rm -f conftest.$ac_objext
6629 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6630   (eval $ac_compile) 2>conftest.er1
6631   ac_status=$?
6632   grep -v '^ *+' conftest.er1 >conftest.err
6633   rm -f conftest.er1
6634   cat conftest.err >&5
6635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6636   (exit $ac_status); } &&
6637          { ac_try='test -z "$ac_c_werror_flag"
6638                          || test ! -s conftest.err'
6639   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6640   (eval $ac_try) 2>&5
6641   ac_status=$?
6642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6643   (exit $ac_status); }; } &&
6644          { ac_try='test -s conftest.$ac_objext'
6645   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6646   (eval $ac_try) 2>&5
6647   ac_status=$?
6648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6649   (exit $ac_status); }; }; then
6650   ac_cv_c_const=yes
6651 else
6652   echo "$as_me: failed program was:" >&5
6653 sed 's/^/| /' conftest.$ac_ext >&5
6654
6655         ac_cv_c_const=no
6656 fi
6657
6658 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6659 fi
6660 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6661 echo "${ECHO_T}$ac_cv_c_const" >&6; }
6662 if test $ac_cv_c_const = no; then
6663
6664 cat >>confdefs.h <<\_ACEOF
6665 #define const
6666 _ACEOF
6667
6668 fi
6669
6670 { echo "$as_me:$LINENO: checking for working volatile" >&5
6671 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
6672 if test "${ac_cv_c_volatile+set}" = set; then
6673   echo $ECHO_N "(cached) $ECHO_C" >&6
6674 else
6675   cat >conftest.$ac_ext <<_ACEOF
6676 /* confdefs.h.  */
6677 _ACEOF
6678 cat confdefs.h >>conftest.$ac_ext
6679 cat >>conftest.$ac_ext <<_ACEOF
6680 /* end confdefs.h.  */
6681
6682 int
6683 main ()
6684 {
6685
6686 volatile int x;
6687 int * volatile y = (int *) 0;
6688 return !x && !y;
6689   ;
6690   return 0;
6691 }
6692 _ACEOF
6693 rm -f conftest.$ac_objext
6694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6695   (eval $ac_compile) 2>conftest.er1
6696   ac_status=$?
6697   grep -v '^ *+' conftest.er1 >conftest.err
6698   rm -f conftest.er1
6699   cat conftest.err >&5
6700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6701   (exit $ac_status); } &&
6702          { ac_try='test -z "$ac_c_werror_flag"
6703                          || test ! -s conftest.err'
6704   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6705   (eval $ac_try) 2>&5
6706   ac_status=$?
6707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6708   (exit $ac_status); }; } &&
6709          { ac_try='test -s conftest.$ac_objext'
6710   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6711   (eval $ac_try) 2>&5
6712   ac_status=$?
6713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6714   (exit $ac_status); }; }; then
6715   ac_cv_c_volatile=yes
6716 else
6717   echo "$as_me: failed program was:" >&5
6718 sed 's/^/| /' conftest.$ac_ext >&5
6719
6720         ac_cv_c_volatile=no
6721 fi
6722
6723 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6724 fi
6725 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
6726 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
6727 if test $ac_cv_c_volatile = no; then
6728
6729 cat >>confdefs.h <<\_ACEOF
6730 #define volatile
6731 _ACEOF
6732
6733 fi
6734
6735 { echo "$as_me:$LINENO: checking for inline" >&5
6736 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
6737 if test "${ac_cv_c_inline+set}" = set; then
6738   echo $ECHO_N "(cached) $ECHO_C" >&6
6739 else
6740   ac_cv_c_inline=no
6741 for ac_kw in inline __inline__ __inline; do
6742   cat >conftest.$ac_ext <<_ACEOF
6743 /* confdefs.h.  */
6744 _ACEOF
6745 cat confdefs.h >>conftest.$ac_ext
6746 cat >>conftest.$ac_ext <<_ACEOF
6747 /* end confdefs.h.  */
6748 #ifndef __cplusplus
6749 typedef int foo_t;
6750 static $ac_kw foo_t static_foo () {return 0; }
6751 $ac_kw foo_t foo () {return 0; }
6752 #endif
6753
6754 _ACEOF
6755 rm -f conftest.$ac_objext
6756 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6757   (eval $ac_compile) 2>conftest.er1
6758   ac_status=$?
6759   grep -v '^ *+' conftest.er1 >conftest.err
6760   rm -f conftest.er1
6761   cat conftest.err >&5
6762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6763   (exit $ac_status); } &&
6764          { ac_try='test -z "$ac_c_werror_flag"
6765                          || test ! -s conftest.err'
6766   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6767   (eval $ac_try) 2>&5
6768   ac_status=$?
6769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6770   (exit $ac_status); }; } &&
6771          { ac_try='test -s conftest.$ac_objext'
6772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6773   (eval $ac_try) 2>&5
6774   ac_status=$?
6775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6776   (exit $ac_status); }; }; then
6777   ac_cv_c_inline=$ac_kw
6778 else
6779   echo "$as_me: failed program was:" >&5
6780 sed 's/^/| /' conftest.$ac_ext >&5
6781
6782
6783 fi
6784
6785 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6786   test "$ac_cv_c_inline" != no && break
6787 done
6788
6789 fi
6790 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
6791 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
6792
6793
6794 case $ac_cv_c_inline in
6795   inline | yes) ;;
6796   *)
6797     case $ac_cv_c_inline in
6798       no) ac_val=;;
6799       *) ac_val=$ac_cv_c_inline;;
6800     esac
6801     cat >>confdefs.h <<_ACEOF
6802 #ifndef __cplusplus
6803 #define inline $ac_val
6804 #endif
6805 _ACEOF
6806     ;;
6807 esac
6808
6809
6810
6811   { echo "$as_me:$LINENO: checking for long double with more range or precision than double" >&5
6812 echo $ECHO_N "checking for long double with more range or precision than double... $ECHO_C" >&6; }
6813 if test "${ac_cv_type_long_double_wider+set}" = set; then
6814   echo $ECHO_N "(cached) $ECHO_C" >&6
6815 else
6816   cat >conftest.$ac_ext <<_ACEOF
6817 /* confdefs.h.  */
6818 _ACEOF
6819 cat confdefs.h >>conftest.$ac_ext
6820 cat >>conftest.$ac_ext <<_ACEOF
6821 /* end confdefs.h.  */
6822 #include <float.h>
6823             long double const a[] =
6824               {
6825                  0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
6826                  LDBL_MIN, LDBL_MAX, LDBL_EPSILON
6827               };
6828             long double
6829             f (long double x)
6830             {
6831                return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
6832                         + (x ? f (x) : 'c'));
6833             }
6834
6835 int
6836 main ()
6837 {
6838 static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
6839                    + (DBL_MANT_DIG < LDBL_MANT_DIG)
6840                    - (LDBL_MAX_EXP < DBL_MAX_EXP)
6841                    - (LDBL_MANT_DIG < DBL_MANT_DIG)))
6842             && (int) LDBL_EPSILON == 0
6843           )];
6844 test_array [0] = 0
6845
6846   ;
6847   return 0;
6848 }
6849 _ACEOF
6850 rm -f conftest.$ac_objext
6851 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6852   (eval $ac_compile) 2>conftest.er1
6853   ac_status=$?
6854   grep -v '^ *+' conftest.er1 >conftest.err
6855   rm -f conftest.er1
6856   cat conftest.err >&5
6857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6858   (exit $ac_status); } &&
6859          { ac_try='test -z "$ac_c_werror_flag"
6860                          || test ! -s conftest.err'
6861   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6862   (eval $ac_try) 2>&5
6863   ac_status=$?
6864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6865   (exit $ac_status); }; } &&
6866          { ac_try='test -s conftest.$ac_objext'
6867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6868   (eval $ac_try) 2>&5
6869   ac_status=$?
6870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6871   (exit $ac_status); }; }; then
6872   ac_cv_type_long_double_wider=yes
6873 else
6874   echo "$as_me: failed program was:" >&5
6875 sed 's/^/| /' conftest.$ac_ext >&5
6876
6877         ac_cv_type_long_double_wider=no
6878 fi
6879
6880 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6881 fi
6882 { echo "$as_me:$LINENO: result: $ac_cv_type_long_double_wider" >&5
6883 echo "${ECHO_T}$ac_cv_type_long_double_wider" >&6; }
6884   if test $ac_cv_type_long_double_wider = yes; then
6885
6886 cat >>confdefs.h <<\_ACEOF
6887 #define HAVE_LONG_DOUBLE_WIDER 1
6888 _ACEOF
6889
6890   fi
6891
6892     ac_cv_c_long_double=$ac_cv_type_long_double_wider
6893     if test $ac_cv_c_long_double = yes; then
6894
6895 cat >>confdefs.h <<\_ACEOF
6896 #define HAVE_LONG_DOUBLE 1
6897 _ACEOF
6898
6899     fi
6900
6901
6902
6903
6904
6905
6906 for ac_header in $gl_header_list
6907 do
6908 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6909 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6910   { echo "$as_me:$LINENO: checking for $ac_header" >&5
6911 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6912 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6913   echo $ECHO_N "(cached) $ECHO_C" >&6
6914 fi
6915 ac_res=`eval echo '${'$as_ac_Header'}'`
6916                { echo "$as_me:$LINENO: result: $ac_res" >&5
6917 echo "${ECHO_T}$ac_res" >&6; }
6918 else
6919   # Is the header compilable?
6920 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6921 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6922 cat >conftest.$ac_ext <<_ACEOF
6923 /* confdefs.h.  */
6924 _ACEOF
6925 cat confdefs.h >>conftest.$ac_ext
6926 cat >>conftest.$ac_ext <<_ACEOF
6927 /* end confdefs.h.  */
6928 $ac_includes_default
6929 #include <$ac_header>
6930 _ACEOF
6931 rm -f conftest.$ac_objext
6932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6933   (eval $ac_compile) 2>conftest.er1
6934   ac_status=$?
6935   grep -v '^ *+' conftest.er1 >conftest.err
6936   rm -f conftest.er1
6937   cat conftest.err >&5
6938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6939   (exit $ac_status); } &&
6940          { ac_try='test -z "$ac_c_werror_flag"
6941                          || test ! -s conftest.err'
6942   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6943   (eval $ac_try) 2>&5
6944   ac_status=$?
6945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6946   (exit $ac_status); }; } &&
6947          { ac_try='test -s conftest.$ac_objext'
6948   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6949   (eval $ac_try) 2>&5
6950   ac_status=$?
6951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6952   (exit $ac_status); }; }; then
6953   ac_header_compiler=yes
6954 else
6955   echo "$as_me: failed program was:" >&5
6956 sed 's/^/| /' conftest.$ac_ext >&5
6957
6958         ac_header_compiler=no
6959 fi
6960
6961 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6962 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6963 echo "${ECHO_T}$ac_header_compiler" >&6; }
6964
6965 # Is the header present?
6966 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6967 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6968 cat >conftest.$ac_ext <<_ACEOF
6969 /* confdefs.h.  */
6970 _ACEOF
6971 cat confdefs.h >>conftest.$ac_ext
6972 cat >>conftest.$ac_ext <<_ACEOF
6973 /* end confdefs.h.  */
6974 #include <$ac_header>
6975 _ACEOF
6976 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6977   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6978   ac_status=$?
6979   grep -v '^ *+' conftest.er1 >conftest.err
6980   rm -f conftest.er1
6981   cat conftest.err >&5
6982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6983   (exit $ac_status); } >/dev/null; then
6984   if test -s conftest.err; then
6985     ac_cpp_err=$ac_c_preproc_warn_flag
6986     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6987   else
6988     ac_cpp_err=
6989   fi
6990 else
6991   ac_cpp_err=yes
6992 fi
6993 if test -z "$ac_cpp_err"; then
6994   ac_header_preproc=yes
6995 else
6996   echo "$as_me: failed program was:" >&5
6997 sed 's/^/| /' conftest.$ac_ext >&5
6998
6999   ac_header_preproc=no
7000 fi
7001
7002 rm -f conftest.err conftest.$ac_ext
7003 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7004 echo "${ECHO_T}$ac_header_preproc" >&6; }
7005
7006 # So?  What about this header?
7007 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7008   yes:no: )
7009     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7010 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7011     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7012 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7013     ac_header_preproc=yes
7014     ;;
7015   no:yes:* )
7016     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7017 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7018     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7019 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7020     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7021 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7022     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7023 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7024     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7025 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7026     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7027 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7028     ( cat <<\_ASBOX
7029 ## ------------------------------------ ##
7030 ## Report this to bug-coreutils@gnu.org ##
7031 ## ------------------------------------ ##
7032 _ASBOX
7033      ) | sed "s/^/$as_me: WARNING:     /" >&2
7034     ;;
7035 esac
7036 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7037 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7038 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7039   echo $ECHO_N "(cached) $ECHO_C" >&6
7040 else
7041   eval "$as_ac_Header=\$ac_header_preproc"
7042 fi
7043 ac_res=`eval echo '${'$as_ac_Header'}'`
7044                { echo "$as_me:$LINENO: result: $ac_res" >&5
7045 echo "${ECHO_T}$ac_res" >&6; }
7046
7047 fi
7048 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7049   cat >>confdefs.h <<_ACEOF
7050 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7051 _ACEOF
7052
7053 fi
7054
7055 done
7056
7057
7058
7059
7060
7061
7062
7063
7064
7065
7066
7067
7068
7069
7070
7071
7072
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082
7083
7084
7085
7086
7087
7088
7089
7090
7091
7092
7093
7094
7095
7096
7097
7098
7099
7100
7101
7102
7103
7104
7105
7106
7107
7108
7109
7110
7111
7112
7113
7114
7115
7116
7117
7118
7119
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138
7139
7140
7141
7142   :
7143
7144
7145
7146
7147
7148
7149
7150
7151
7152
7153
7154
7155
7156
7157
7158
7159
7160
7161
7162
7163
7164
7165
7166
7167
7168
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189 for ac_header in sys/mount.h sys/sysctl.h
7190 do
7191 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7192 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7193 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7194 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7195   echo $ECHO_N "(cached) $ECHO_C" >&6
7196 else
7197   cat >conftest.$ac_ext <<_ACEOF
7198 /* confdefs.h.  */
7199 _ACEOF
7200 cat confdefs.h >>conftest.$ac_ext
7201 cat >>conftest.$ac_ext <<_ACEOF
7202 /* end confdefs.h.  */
7203 $ac_includes_default
7204      #if HAVE_SYS_PARAM_H
7205        #include <sys/param.h>
7206       #endif
7207
7208 #include <$ac_header>
7209 _ACEOF
7210 rm -f conftest.$ac_objext
7211 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7212   (eval $ac_compile) 2>conftest.er1
7213   ac_status=$?
7214   grep -v '^ *+' conftest.er1 >conftest.err
7215   rm -f conftest.er1
7216   cat conftest.err >&5
7217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7218   (exit $ac_status); } &&
7219          { ac_try='test -z "$ac_c_werror_flag"
7220                          || test ! -s conftest.err'
7221   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7222   (eval $ac_try) 2>&5
7223   ac_status=$?
7224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7225   (exit $ac_status); }; } &&
7226          { ac_try='test -s conftest.$ac_objext'
7227   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7228   (eval $ac_try) 2>&5
7229   ac_status=$?
7230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7231   (exit $ac_status); }; }; then
7232   eval "$as_ac_Header=yes"
7233 else
7234   echo "$as_me: failed program was:" >&5
7235 sed 's/^/| /' conftest.$ac_ext >&5
7236
7237         eval "$as_ac_Header=no"
7238 fi
7239
7240 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7241 fi
7242 ac_res=`eval echo '${'$as_ac_Header'}'`
7243                { echo "$as_me:$LINENO: result: $ac_res" >&5
7244 echo "${ECHO_T}$ac_res" >&6; }
7245 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7246   cat >>confdefs.h <<_ACEOF
7247 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7248 _ACEOF
7249
7250 fi
7251
7252 done
7253
7254
7255
7256
7257
7258
7259
7260 ac_header_dirent=no
7261 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
7262   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
7263 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
7264 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
7265 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7266   echo $ECHO_N "(cached) $ECHO_C" >&6
7267 else
7268   cat >conftest.$ac_ext <<_ACEOF
7269 /* confdefs.h.  */
7270 _ACEOF
7271 cat confdefs.h >>conftest.$ac_ext
7272 cat >>conftest.$ac_ext <<_ACEOF
7273 /* end confdefs.h.  */
7274 #include <sys/types.h>
7275 #include <$ac_hdr>
7276
7277 int
7278 main ()
7279 {
7280 if ((DIR *) 0)
7281 return 0;
7282   ;
7283   return 0;
7284 }
7285 _ACEOF
7286 rm -f conftest.$ac_objext
7287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7288   (eval $ac_compile) 2>conftest.er1
7289   ac_status=$?
7290   grep -v '^ *+' conftest.er1 >conftest.err
7291   rm -f conftest.er1
7292   cat conftest.err >&5
7293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7294   (exit $ac_status); } &&
7295          { ac_try='test -z "$ac_c_werror_flag"
7296                          || test ! -s conftest.err'
7297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7298   (eval $ac_try) 2>&5
7299   ac_status=$?
7300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7301   (exit $ac_status); }; } &&
7302          { ac_try='test -s conftest.$ac_objext'
7303   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7304   (eval $ac_try) 2>&5
7305   ac_status=$?
7306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7307   (exit $ac_status); }; }; then
7308   eval "$as_ac_Header=yes"
7309 else
7310   echo "$as_me: failed program was:" >&5
7311 sed 's/^/| /' conftest.$ac_ext >&5
7312
7313         eval "$as_ac_Header=no"
7314 fi
7315
7316 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7317 fi
7318 ac_res=`eval echo '${'$as_ac_Header'}'`
7319                { echo "$as_me:$LINENO: result: $ac_res" >&5
7320 echo "${ECHO_T}$ac_res" >&6; }
7321 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7322   cat >>confdefs.h <<_ACEOF
7323 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
7324 _ACEOF
7325
7326 ac_header_dirent=$ac_hdr; break
7327 fi
7328
7329 done
7330 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
7331 if test $ac_header_dirent = dirent.h; then
7332   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
7333 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
7334 if test "${ac_cv_search_opendir+set}" = set; then
7335   echo $ECHO_N "(cached) $ECHO_C" >&6
7336 else
7337   ac_func_search_save_LIBS=$LIBS
7338 cat >conftest.$ac_ext <<_ACEOF
7339 /* confdefs.h.  */
7340 _ACEOF
7341 cat confdefs.h >>conftest.$ac_ext
7342 cat >>conftest.$ac_ext <<_ACEOF
7343 /* end confdefs.h.  */
7344
7345 /* Override any GCC internal prototype to avoid an error.
7346    Use char because int might match the return type of a GCC
7347    builtin and then its argument prototype would still apply.  */
7348 #ifdef __cplusplus
7349 extern "C"
7350 #endif
7351 char opendir ();
7352 int
7353 main ()
7354 {
7355 return opendir ();
7356   ;
7357   return 0;
7358 }
7359 _ACEOF
7360 for ac_lib in '' dir; do
7361   if test -z "$ac_lib"; then
7362     ac_res="none required"
7363   else
7364     ac_res=-l$ac_lib
7365     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7366   fi
7367   rm -f conftest.$ac_objext conftest$ac_exeext
7368 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7369   (eval $ac_link) 2>conftest.er1
7370   ac_status=$?
7371   grep -v '^ *+' conftest.er1 >conftest.err
7372   rm -f conftest.er1
7373   cat conftest.err >&5
7374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7375   (exit $ac_status); } &&
7376          { ac_try='test -z "$ac_c_werror_flag"
7377                          || test ! -s conftest.err'
7378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7379   (eval $ac_try) 2>&5
7380   ac_status=$?
7381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7382   (exit $ac_status); }; } &&
7383          { ac_try='test -s conftest$ac_exeext'
7384   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7385   (eval $ac_try) 2>&5
7386   ac_status=$?
7387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7388   (exit $ac_status); }; }; then
7389   ac_cv_search_opendir=$ac_res
7390 else
7391   echo "$as_me: failed program was:" >&5
7392 sed 's/^/| /' conftest.$ac_ext >&5
7393
7394
7395 fi
7396
7397 rm -f conftest.err conftest.$ac_objext \
7398       conftest$ac_exeext
7399   if test "${ac_cv_search_opendir+set}" = set; then
7400   break
7401 fi
7402 done
7403 if test "${ac_cv_search_opendir+set}" = set; then
7404   :
7405 else
7406   ac_cv_search_opendir=no
7407 fi
7408 rm conftest.$ac_ext
7409 LIBS=$ac_func_search_save_LIBS
7410 fi
7411 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
7412 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
7413 ac_res=$ac_cv_search_opendir
7414 if test "$ac_res" != no; then
7415   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7416
7417 fi
7418
7419 else
7420   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
7421 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
7422 if test "${ac_cv_search_opendir+set}" = set; then
7423   echo $ECHO_N "(cached) $ECHO_C" >&6
7424 else
7425   ac_func_search_save_LIBS=$LIBS
7426 cat >conftest.$ac_ext <<_ACEOF
7427 /* confdefs.h.  */
7428 _ACEOF
7429 cat confdefs.h >>conftest.$ac_ext
7430 cat >>conftest.$ac_ext <<_ACEOF
7431 /* end confdefs.h.  */
7432
7433 /* Override any GCC internal prototype to avoid an error.
7434    Use char because int might match the return type of a GCC
7435    builtin and then its argument prototype would still apply.  */
7436 #ifdef __cplusplus
7437 extern "C"
7438 #endif
7439 char opendir ();
7440 int
7441 main ()
7442 {
7443 return opendir ();
7444   ;
7445   return 0;
7446 }
7447 _ACEOF
7448 for ac_lib in '' x; do
7449   if test -z "$ac_lib"; then
7450     ac_res="none required"
7451   else
7452     ac_res=-l$ac_lib
7453     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7454   fi
7455   rm -f conftest.$ac_objext conftest$ac_exeext
7456 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7457   (eval $ac_link) 2>conftest.er1
7458   ac_status=$?
7459   grep -v '^ *+' conftest.er1 >conftest.err
7460   rm -f conftest.er1
7461   cat conftest.err >&5
7462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7463   (exit $ac_status); } &&
7464          { ac_try='test -z "$ac_c_werror_flag"
7465                          || test ! -s conftest.err'
7466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7467   (eval $ac_try) 2>&5
7468   ac_status=$?
7469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7470   (exit $ac_status); }; } &&
7471          { ac_try='test -s conftest$ac_exeext'
7472   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7473   (eval $ac_try) 2>&5
7474   ac_status=$?
7475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7476   (exit $ac_status); }; }; then
7477   ac_cv_search_opendir=$ac_res
7478 else
7479   echo "$as_me: failed program was:" >&5
7480 sed 's/^/| /' conftest.$ac_ext >&5
7481
7482
7483 fi
7484
7485 rm -f conftest.err conftest.$ac_objext \
7486       conftest$ac_exeext
7487   if test "${ac_cv_search_opendir+set}" = set; then
7488   break
7489 fi
7490 done
7491 if test "${ac_cv_search_opendir+set}" = set; then
7492   :
7493 else
7494   ac_cv_search_opendir=no
7495 fi
7496 rm conftest.$ac_ext
7497 LIBS=$ac_func_search_save_LIBS
7498 fi
7499 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
7500 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
7501 ac_res=$ac_cv_search_opendir
7502 if test "$ac_res" != no; then
7503   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7504
7505 fi
7506
7507 fi
7508
7509 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
7510 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
7511 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
7512   echo $ECHO_N "(cached) $ECHO_C" >&6
7513 else
7514   cat >conftest.$ac_ext <<_ACEOF
7515 /* confdefs.h.  */
7516 _ACEOF
7517 cat confdefs.h >>conftest.$ac_ext
7518 cat >>conftest.$ac_ext <<_ACEOF
7519 /* end confdefs.h.  */
7520 $ac_includes_default
7521 int
7522 main ()
7523 {
7524 static struct stat ac_aggr;
7525 if (ac_aggr.st_blocks)
7526 return 0;
7527   ;
7528   return 0;
7529 }
7530 _ACEOF
7531 rm -f conftest.$ac_objext
7532 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7533   (eval $ac_compile) 2>conftest.er1
7534   ac_status=$?
7535   grep -v '^ *+' conftest.er1 >conftest.err
7536   rm -f conftest.er1
7537   cat conftest.err >&5
7538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7539   (exit $ac_status); } &&
7540          { ac_try='test -z "$ac_c_werror_flag"
7541                          || test ! -s conftest.err'
7542   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7543   (eval $ac_try) 2>&5
7544   ac_status=$?
7545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7546   (exit $ac_status); }; } &&
7547          { ac_try='test -s conftest.$ac_objext'
7548   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7549   (eval $ac_try) 2>&5
7550   ac_status=$?
7551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7552   (exit $ac_status); }; }; then
7553   ac_cv_member_struct_stat_st_blocks=yes
7554 else
7555   echo "$as_me: failed program was:" >&5
7556 sed 's/^/| /' conftest.$ac_ext >&5
7557
7558         cat >conftest.$ac_ext <<_ACEOF
7559 /* confdefs.h.  */
7560 _ACEOF
7561 cat confdefs.h >>conftest.$ac_ext
7562 cat >>conftest.$ac_ext <<_ACEOF
7563 /* end confdefs.h.  */
7564 $ac_includes_default
7565 int
7566 main ()
7567 {
7568 static struct stat ac_aggr;
7569 if (sizeof ac_aggr.st_blocks)
7570 return 0;
7571   ;
7572   return 0;
7573 }
7574 _ACEOF
7575 rm -f conftest.$ac_objext
7576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7577   (eval $ac_compile) 2>conftest.er1
7578   ac_status=$?
7579   grep -v '^ *+' conftest.er1 >conftest.err
7580   rm -f conftest.er1
7581   cat conftest.err >&5
7582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7583   (exit $ac_status); } &&
7584          { ac_try='test -z "$ac_c_werror_flag"
7585                          || test ! -s conftest.err'
7586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7587   (eval $ac_try) 2>&5
7588   ac_status=$?
7589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7590   (exit $ac_status); }; } &&
7591          { ac_try='test -s conftest.$ac_objext'
7592   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7593   (eval $ac_try) 2>&5
7594   ac_status=$?
7595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7596   (exit $ac_status); }; }; then
7597   ac_cv_member_struct_stat_st_blocks=yes
7598 else
7599   echo "$as_me: failed program was:" >&5
7600 sed 's/^/| /' conftest.$ac_ext >&5
7601
7602         ac_cv_member_struct_stat_st_blocks=no
7603 fi
7604
7605 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7606 fi
7607
7608 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7609 fi
7610 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
7611 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
7612 if test $ac_cv_member_struct_stat_st_blocks = yes; then
7613
7614 cat >>confdefs.h <<_ACEOF
7615 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
7616 _ACEOF
7617
7618
7619 cat >>confdefs.h <<\_ACEOF
7620 #define HAVE_ST_BLOCKS 1
7621 _ACEOF
7622
7623 else
7624   case " $LIBOBJS " in
7625   *" fileblocks.$ac_objext "* ) ;;
7626   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
7627  ;;
7628 esac
7629
7630 fi
7631
7632
7633 { echo "$as_me:$LINENO: checking for st_dm_mode in struct stat" >&5
7634 echo $ECHO_N "checking for st_dm_mode in struct stat... $ECHO_C" >&6; }
7635 if test "${ac_cv_struct_st_dm_mode+set}" = set; then
7636   echo $ECHO_N "(cached) $ECHO_C" >&6
7637 else
7638   cat >conftest.$ac_ext <<_ACEOF
7639 /* confdefs.h.  */
7640 _ACEOF
7641 cat confdefs.h >>conftest.$ac_ext
7642 cat >>conftest.$ac_ext <<_ACEOF
7643 /* end confdefs.h.  */
7644 #include <sys/types.h>
7645 #include <sys/stat.h>
7646 int
7647 main ()
7648 {
7649 struct stat s; s.st_dm_mode;
7650   ;
7651   return 0;
7652 }
7653 _ACEOF
7654 rm -f conftest.$ac_objext
7655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7656   (eval $ac_compile) 2>conftest.er1
7657   ac_status=$?
7658   grep -v '^ *+' conftest.er1 >conftest.err
7659   rm -f conftest.er1
7660   cat conftest.err >&5
7661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7662   (exit $ac_status); } &&
7663          { ac_try='test -z "$ac_c_werror_flag"
7664                          || test ! -s conftest.err'
7665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7666   (eval $ac_try) 2>&5
7667   ac_status=$?
7668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7669   (exit $ac_status); }; } &&
7670          { ac_try='test -s conftest.$ac_objext'
7671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7672   (eval $ac_try) 2>&5
7673   ac_status=$?
7674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7675   (exit $ac_status); }; }; then
7676   ac_cv_struct_st_dm_mode=yes
7677 else
7678   echo "$as_me: failed program was:" >&5
7679 sed 's/^/| /' conftest.$ac_ext >&5
7680
7681         ac_cv_struct_st_dm_mode=no
7682 fi
7683
7684 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7685 fi
7686 { echo "$as_me:$LINENO: result: $ac_cv_struct_st_dm_mode" >&5
7687 echo "${ECHO_T}$ac_cv_struct_st_dm_mode" >&6; }
7688
7689   if test $ac_cv_struct_st_dm_mode = yes; then
7690
7691 cat >>confdefs.h <<\_ACEOF
7692 #define HAVE_ST_DM_MODE 1
7693 _ACEOF
7694
7695   fi
7696
7697
7698 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
7699 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
7700 if test "${ac_cv_type_uid_t+set}" = set; then
7701   echo $ECHO_N "(cached) $ECHO_C" >&6
7702 else
7703   cat >conftest.$ac_ext <<_ACEOF
7704 /* confdefs.h.  */
7705 _ACEOF
7706 cat confdefs.h >>conftest.$ac_ext
7707 cat >>conftest.$ac_ext <<_ACEOF
7708 /* end confdefs.h.  */
7709 #include <sys/types.h>
7710
7711 _ACEOF
7712 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7713   $EGREP "uid_t" >/dev/null 2>&1; then
7714   ac_cv_type_uid_t=yes
7715 else
7716   ac_cv_type_uid_t=no
7717 fi
7718 rm -f conftest*
7719
7720 fi
7721 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
7722 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
7723 if test $ac_cv_type_uid_t = no; then
7724
7725 cat >>confdefs.h <<\_ACEOF
7726 #define uid_t int
7727 _ACEOF
7728
7729
7730 cat >>confdefs.h <<\_ACEOF
7731 #define gid_t int
7732 _ACEOF
7733
7734 fi
7735
7736 { echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
7737 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6; }
7738 if test "${ac_cv_type_getgroups+set}" = set; then
7739   echo $ECHO_N "(cached) $ECHO_C" >&6
7740 else
7741   if test "$cross_compiling" = yes; then
7742   ac_cv_type_getgroups=cross
7743 else
7744   cat >conftest.$ac_ext <<_ACEOF
7745 /* confdefs.h.  */
7746 _ACEOF
7747 cat confdefs.h >>conftest.$ac_ext
7748 cat >>conftest.$ac_ext <<_ACEOF
7749 /* end confdefs.h.  */
7750 /* Thanks to Mike Rendell for this test.  */
7751 $ac_includes_default
7752 #define NGID 256
7753 #undef MAX
7754 #define MAX(x, y) ((x) > (y) ? (x) : (y))
7755
7756 int
7757 main ()
7758 {
7759   gid_t gidset[NGID];
7760   int i, n;
7761   union { gid_t gval; long int lval; }  val;
7762
7763   val.lval = -1;
7764   for (i = 0; i < NGID; i++)
7765     gidset[i] = val.gval;
7766   n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
7767                  gidset);
7768   /* Exit non-zero if getgroups seems to require an array of ints.  This
7769      happens when gid_t is short int but getgroups modifies an array
7770      of ints.  */
7771   return n > 0 && gidset[n] != val.gval;
7772 }
7773 _ACEOF
7774 rm -f conftest$ac_exeext
7775 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7776   (eval $ac_link) 2>&5
7777   ac_status=$?
7778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7779   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7781   (eval $ac_try) 2>&5
7782   ac_status=$?
7783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7784   (exit $ac_status); }; }; then
7785   ac_cv_type_getgroups=gid_t
7786 else
7787   echo "$as_me: program exited with status $ac_status" >&5
7788 echo "$as_me: failed program was:" >&5
7789 sed 's/^/| /' conftest.$ac_ext >&5
7790
7791 ( exit $ac_status )
7792 ac_cv_type_getgroups=int
7793 fi
7794 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7795 fi
7796
7797
7798 if test $ac_cv_type_getgroups = cross; then
7799         cat >conftest.$ac_ext <<_ACEOF
7800 /* confdefs.h.  */
7801 _ACEOF
7802 cat confdefs.h >>conftest.$ac_ext
7803 cat >>conftest.$ac_ext <<_ACEOF
7804 /* end confdefs.h.  */
7805 #include <unistd.h>
7806
7807 _ACEOF
7808 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7809   $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
7810   ac_cv_type_getgroups=gid_t
7811 else
7812   ac_cv_type_getgroups=int
7813 fi
7814 rm -f conftest*
7815
7816 fi
7817 fi
7818 { echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
7819 echo "${ECHO_T}$ac_cv_type_getgroups" >&6; }
7820
7821 cat >>confdefs.h <<_ACEOF
7822 #define GETGROUPS_T $ac_cv_type_getgroups
7823 _ACEOF
7824
7825
7826 { echo "$as_me:$LINENO: checking for mbstate_t" >&5
7827 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
7828 if test "${ac_cv_type_mbstate_t+set}" = set; then
7829   echo $ECHO_N "(cached) $ECHO_C" >&6
7830 else
7831   cat >conftest.$ac_ext <<_ACEOF
7832 /* confdefs.h.  */
7833 _ACEOF
7834 cat confdefs.h >>conftest.$ac_ext
7835 cat >>conftest.$ac_ext <<_ACEOF
7836 /* end confdefs.h.  */
7837 $ac_includes_default
7838 #           include <wchar.h>
7839 int
7840 main ()
7841 {
7842 mbstate_t x; return sizeof x;
7843   ;
7844   return 0;
7845 }
7846 _ACEOF
7847 rm -f conftest.$ac_objext
7848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7849   (eval $ac_compile) 2>conftest.er1
7850   ac_status=$?
7851   grep -v '^ *+' conftest.er1 >conftest.err
7852   rm -f conftest.er1
7853   cat conftest.err >&5
7854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7855   (exit $ac_status); } &&
7856          { ac_try='test -z "$ac_c_werror_flag"
7857                          || test ! -s conftest.err'
7858   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7859   (eval $ac_try) 2>&5
7860   ac_status=$?
7861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7862   (exit $ac_status); }; } &&
7863          { ac_try='test -s conftest.$ac_objext'
7864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7865   (eval $ac_try) 2>&5
7866   ac_status=$?
7867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7868   (exit $ac_status); }; }; then
7869   ac_cv_type_mbstate_t=yes
7870 else
7871   echo "$as_me: failed program was:" >&5
7872 sed 's/^/| /' conftest.$ac_ext >&5
7873
7874         ac_cv_type_mbstate_t=no
7875 fi
7876
7877 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7878 fi
7879 { echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
7880 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
7881    if test $ac_cv_type_mbstate_t = yes; then
7882
7883 cat >>confdefs.h <<\_ACEOF
7884 #define HAVE_MBSTATE_T 1
7885 _ACEOF
7886
7887    else
7888
7889 cat >>confdefs.h <<\_ACEOF
7890 #define mbstate_t int
7891 _ACEOF
7892
7893    fi
7894 { echo "$as_me:$LINENO: checking for mode_t" >&5
7895 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
7896 if test "${ac_cv_type_mode_t+set}" = set; then
7897   echo $ECHO_N "(cached) $ECHO_C" >&6
7898 else
7899   cat >conftest.$ac_ext <<_ACEOF
7900 /* confdefs.h.  */
7901 _ACEOF
7902 cat confdefs.h >>conftest.$ac_ext
7903 cat >>conftest.$ac_ext <<_ACEOF
7904 /* end confdefs.h.  */
7905 $ac_includes_default
7906 typedef mode_t ac__type_new_;
7907 int
7908 main ()
7909 {
7910 if ((ac__type_new_ *) 0)
7911   return 0;
7912 if (sizeof (ac__type_new_))
7913   return 0;
7914   ;
7915   return 0;
7916 }
7917 _ACEOF
7918 rm -f conftest.$ac_objext
7919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7920   (eval $ac_compile) 2>conftest.er1
7921   ac_status=$?
7922   grep -v '^ *+' conftest.er1 >conftest.err
7923   rm -f conftest.er1
7924   cat conftest.err >&5
7925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7926   (exit $ac_status); } &&
7927          { ac_try='test -z "$ac_c_werror_flag"
7928                          || test ! -s conftest.err'
7929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7930   (eval $ac_try) 2>&5
7931   ac_status=$?
7932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7933   (exit $ac_status); }; } &&
7934          { ac_try='test -s conftest.$ac_objext'
7935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7936   (eval $ac_try) 2>&5
7937   ac_status=$?
7938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7939   (exit $ac_status); }; }; then
7940   ac_cv_type_mode_t=yes
7941 else
7942   echo "$as_me: failed program was:" >&5
7943 sed 's/^/| /' conftest.$ac_ext >&5
7944
7945         ac_cv_type_mode_t=no
7946 fi
7947
7948 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7949 fi
7950 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
7951 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
7952 if test $ac_cv_type_mode_t = yes; then
7953   :
7954 else
7955
7956 cat >>confdefs.h <<_ACEOF
7957 #define mode_t int
7958 _ACEOF
7959
7960 fi
7961
7962 { echo "$as_me:$LINENO: checking for off_t" >&5
7963 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
7964 if test "${ac_cv_type_off_t+set}" = set; then
7965   echo $ECHO_N "(cached) $ECHO_C" >&6
7966 else
7967   cat >conftest.$ac_ext <<_ACEOF
7968 /* confdefs.h.  */
7969 _ACEOF
7970 cat confdefs.h >>conftest.$ac_ext
7971 cat >>conftest.$ac_ext <<_ACEOF
7972 /* end confdefs.h.  */
7973 $ac_includes_default
7974 typedef off_t ac__type_new_;
7975 int
7976 main ()
7977 {
7978 if ((ac__type_new_ *) 0)
7979   return 0;
7980 if (sizeof (ac__type_new_))
7981   return 0;
7982   ;
7983   return 0;
7984 }
7985 _ACEOF
7986 rm -f conftest.$ac_objext
7987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7988   (eval $ac_compile) 2>conftest.er1
7989   ac_status=$?
7990   grep -v '^ *+' conftest.er1 >conftest.err
7991   rm -f conftest.er1
7992   cat conftest.err >&5
7993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7994   (exit $ac_status); } &&
7995          { ac_try='test -z "$ac_c_werror_flag"
7996                          || test ! -s conftest.err'
7997   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7998   (eval $ac_try) 2>&5
7999   ac_status=$?
8000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8001   (exit $ac_status); }; } &&
8002          { ac_try='test -s conftest.$ac_objext'
8003   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8004   (eval $ac_try) 2>&5
8005   ac_status=$?
8006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8007   (exit $ac_status); }; }; then
8008   ac_cv_type_off_t=yes
8009 else
8010   echo "$as_me: failed program was:" >&5
8011 sed 's/^/| /' conftest.$ac_ext >&5
8012
8013         ac_cv_type_off_t=no
8014 fi
8015
8016 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8017 fi
8018 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
8019 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
8020 if test $ac_cv_type_off_t = yes; then
8021   :
8022 else
8023
8024 cat >>confdefs.h <<_ACEOF
8025 #define off_t long int
8026 _ACEOF
8027
8028 fi
8029
8030 { echo "$as_me:$LINENO: checking for pid_t" >&5
8031 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
8032 if test "${ac_cv_type_pid_t+set}" = set; then
8033   echo $ECHO_N "(cached) $ECHO_C" >&6
8034 else
8035   cat >conftest.$ac_ext <<_ACEOF
8036 /* confdefs.h.  */
8037 _ACEOF
8038 cat confdefs.h >>conftest.$ac_ext
8039 cat >>conftest.$ac_ext <<_ACEOF
8040 /* end confdefs.h.  */
8041 $ac_includes_default
8042 typedef pid_t ac__type_new_;
8043 int
8044 main ()
8045 {
8046 if ((ac__type_new_ *) 0)
8047   return 0;
8048 if (sizeof (ac__type_new_))
8049   return 0;
8050   ;
8051   return 0;
8052 }
8053 _ACEOF
8054 rm -f conftest.$ac_objext
8055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8056   (eval $ac_compile) 2>conftest.er1
8057   ac_status=$?
8058   grep -v '^ *+' conftest.er1 >conftest.err
8059   rm -f conftest.er1
8060   cat conftest.err >&5
8061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8062   (exit $ac_status); } &&
8063          { ac_try='test -z "$ac_c_werror_flag"
8064                          || test ! -s conftest.err'
8065   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8066   (eval $ac_try) 2>&5
8067   ac_status=$?
8068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8069   (exit $ac_status); }; } &&
8070          { ac_try='test -s conftest.$ac_objext'
8071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8072   (eval $ac_try) 2>&5
8073   ac_status=$?
8074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8075   (exit $ac_status); }; }; then
8076   ac_cv_type_pid_t=yes
8077 else
8078   echo "$as_me: failed program was:" >&5
8079 sed 's/^/| /' conftest.$ac_ext >&5
8080
8081         ac_cv_type_pid_t=no
8082 fi
8083
8084 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8085 fi
8086 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
8087 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
8088 if test $ac_cv_type_pid_t = yes; then
8089   :
8090 else
8091
8092 cat >>confdefs.h <<_ACEOF
8093 #define pid_t int
8094 _ACEOF
8095
8096 fi
8097
8098 { echo "$as_me:$LINENO: checking for size_t" >&5
8099 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
8100 if test "${ac_cv_type_size_t+set}" = set; then
8101   echo $ECHO_N "(cached) $ECHO_C" >&6
8102 else
8103   cat >conftest.$ac_ext <<_ACEOF
8104 /* confdefs.h.  */
8105 _ACEOF
8106 cat confdefs.h >>conftest.$ac_ext
8107 cat >>conftest.$ac_ext <<_ACEOF
8108 /* end confdefs.h.  */
8109 $ac_includes_default
8110 typedef size_t ac__type_new_;
8111 int
8112 main ()
8113 {
8114 if ((ac__type_new_ *) 0)
8115   return 0;
8116 if (sizeof (ac__type_new_))
8117   return 0;
8118   ;
8119   return 0;
8120 }
8121 _ACEOF
8122 rm -f conftest.$ac_objext
8123 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8124   (eval $ac_compile) 2>conftest.er1
8125   ac_status=$?
8126   grep -v '^ *+' conftest.er1 >conftest.err
8127   rm -f conftest.er1
8128   cat conftest.err >&5
8129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8130   (exit $ac_status); } &&
8131          { ac_try='test -z "$ac_c_werror_flag"
8132                          || test ! -s conftest.err'
8133   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&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   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8140   (eval $ac_try) 2>&5
8141   ac_status=$?
8142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8143   (exit $ac_status); }; }; then
8144   ac_cv_type_size_t=yes
8145 else
8146   echo "$as_me: failed program was:" >&5
8147 sed 's/^/| /' conftest.$ac_ext >&5
8148
8149         ac_cv_type_size_t=no
8150 fi
8151
8152 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8153 fi
8154 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
8155 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
8156 if test $ac_cv_type_size_t = yes; then
8157   :
8158 else
8159
8160 cat >>confdefs.h <<_ACEOF
8161 #define size_t unsigned int
8162 _ACEOF
8163
8164 fi
8165
8166
8167   { echo "$as_me:$LINENO: checking for uint32_t" >&5
8168 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
8169 if test "${gl_cv_c_uint32_t+set}" = set; then
8170   echo $ECHO_N "(cached) $ECHO_C" >&6
8171 else
8172   gl_cv_c_uint32_t=no
8173      for ac_type in "uint32_t" "unsigned int" \
8174          "unsigned long int" "unsigned short int"; do
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 int
8183 main ()
8184 {
8185 static int test_array [1 - 2 * !(($ac_type) -1 == 4294967295U)];
8186 test_array [0] = 0
8187
8188   ;
8189   return 0;
8190 }
8191 _ACEOF
8192 rm -f conftest.$ac_objext
8193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8194   (eval $ac_compile) 2>conftest.er1
8195   ac_status=$?
8196   grep -v '^ *+' conftest.er1 >conftest.err
8197   rm -f conftest.er1
8198   cat conftest.err >&5
8199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8200   (exit $ac_status); } &&
8201          { ac_try='test -z "$ac_c_werror_flag"
8202                          || test ! -s conftest.err'
8203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8204   (eval $ac_try) 2>&5
8205   ac_status=$?
8206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8207   (exit $ac_status); }; } &&
8208          { ac_try='test -s conftest.$ac_objext'
8209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8210   (eval $ac_try) 2>&5
8211   ac_status=$?
8212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8213   (exit $ac_status); }; }; then
8214   gl_cv_c_uint32_t=$ac_type
8215 else
8216   echo "$as_me: failed program was:" >&5
8217 sed 's/^/| /' conftest.$ac_ext >&5
8218
8219
8220 fi
8221
8222 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8223        test "$gl_cv_c_uint32_t" != no && break
8224      done
8225 fi
8226 { echo "$as_me:$LINENO: result: $gl_cv_c_uint32_t" >&5
8227 echo "${ECHO_T}$gl_cv_c_uint32_t" >&6; }
8228   case "$gl_cv_c_uint32_t" in
8229   no|uint32_t) ;;
8230   *)
8231
8232 cat >>confdefs.h <<\_ACEOF
8233 #define _UINT32_T 1
8234 _ACEOF
8235
8236
8237 cat >>confdefs.h <<_ACEOF
8238 #define uint32_t $gl_cv_c_uint32_t
8239 _ACEOF
8240
8241     ;;
8242   esac
8243
8244   { echo "$as_me:$LINENO: checking for UINT32_MAX" >&5
8245 echo $ECHO_N "checking for UINT32_MAX... $ECHO_C" >&6; }
8246 if test "${gl_cv_c_uint32_max+set}" = set; then
8247   echo $ECHO_N "(cached) $ECHO_C" >&6
8248 else
8249   cat >conftest.$ac_ext <<_ACEOF
8250 /* confdefs.h.  */
8251 _ACEOF
8252 cat confdefs.h >>conftest.$ac_ext
8253 cat >>conftest.$ac_ext <<_ACEOF
8254 /* end confdefs.h.  */
8255 $ac_includes_default
8256 int
8257 main ()
8258 {
8259 static int test_array [1 - 2 * !(UINT32_MAX == 4294967295U)];
8260 test_array [0] = 0
8261
8262   ;
8263   return 0;
8264 }
8265 _ACEOF
8266 rm -f conftest.$ac_objext
8267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8268   (eval $ac_compile) 2>conftest.er1
8269   ac_status=$?
8270   grep -v '^ *+' conftest.er1 >conftest.err
8271   rm -f conftest.er1
8272   cat conftest.err >&5
8273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8274   (exit $ac_status); } &&
8275          { ac_try='test -z "$ac_c_werror_flag"
8276                          || test ! -s conftest.err'
8277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8278   (eval $ac_try) 2>&5
8279   ac_status=$?
8280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8281   (exit $ac_status); }; } &&
8282          { ac_try='test -s conftest.$ac_objext'
8283   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8284   (eval $ac_try) 2>&5
8285   ac_status=$?
8286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8287   (exit $ac_status); }; }; then
8288   gl_cv_c_uint32_max=yes
8289 else
8290   echo "$as_me: failed program was:" >&5
8291 sed 's/^/| /' conftest.$ac_ext >&5
8292
8293         gl_cv_c_uint32_max=no
8294 fi
8295
8296 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8297 fi
8298 { echo "$as_me:$LINENO: result: $gl_cv_c_uint32_max" >&5
8299 echo "${ECHO_T}$gl_cv_c_uint32_max" >&6; }
8300   case $gl_cv_c_uint32_max,$gl_cv_c_uint32_t in
8301   yes,*) ;;
8302   *,no) ;;
8303   *)
8304
8305 cat >>confdefs.h <<\_ACEOF
8306 #define UINT32_MAX 4294967295U
8307 _ACEOF
8308
8309     ;;
8310   esac
8311
8312
8313   { echo "$as_me:$LINENO: checking for inttypes.h" >&5
8314 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
8315 if test "${gl_cv_header_inttypes_h+set}" = set; then
8316   echo $ECHO_N "(cached) $ECHO_C" >&6
8317 else
8318   cat >conftest.$ac_ext <<_ACEOF
8319 /* confdefs.h.  */
8320 _ACEOF
8321 cat confdefs.h >>conftest.$ac_ext
8322 cat >>conftest.$ac_ext <<_ACEOF
8323 /* end confdefs.h.  */
8324 #include <sys/types.h>
8325 #include <inttypes.h>
8326 int
8327 main ()
8328 {
8329 uintmax_t i = (uintmax_t) -1;
8330   ;
8331   return 0;
8332 }
8333 _ACEOF
8334 rm -f conftest.$ac_objext
8335 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8336   (eval $ac_compile) 2>conftest.er1
8337   ac_status=$?
8338   grep -v '^ *+' conftest.er1 >conftest.err
8339   rm -f conftest.er1
8340   cat conftest.err >&5
8341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8342   (exit $ac_status); } &&
8343          { ac_try='test -z "$ac_c_werror_flag"
8344                          || test ! -s conftest.err'
8345   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8346   (eval $ac_try) 2>&5
8347   ac_status=$?
8348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8349   (exit $ac_status); }; } &&
8350          { ac_try='test -s conftest.$ac_objext'
8351   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8352   (eval $ac_try) 2>&5
8353   ac_status=$?
8354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8355   (exit $ac_status); }; }; then
8356   gl_cv_header_inttypes_h=yes
8357 else
8358   echo "$as_me: failed program was:" >&5
8359 sed 's/^/| /' conftest.$ac_ext >&5
8360
8361         gl_cv_header_inttypes_h=no
8362 fi
8363
8364 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8365 fi
8366 { echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
8367 echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6; }
8368   if test $gl_cv_header_inttypes_h = yes; then
8369
8370 cat >>confdefs.h <<_ACEOF
8371 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
8372 _ACEOF
8373
8374   fi
8375
8376
8377   { echo "$as_me:$LINENO: checking for stdint.h" >&5
8378 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
8379 if test "${gl_cv_header_stdint_h+set}" = set; then
8380   echo $ECHO_N "(cached) $ECHO_C" >&6
8381 else
8382   cat >conftest.$ac_ext <<_ACEOF
8383 /* confdefs.h.  */
8384 _ACEOF
8385 cat confdefs.h >>conftest.$ac_ext
8386 cat >>conftest.$ac_ext <<_ACEOF
8387 /* end confdefs.h.  */
8388 #include <sys/types.h>
8389 #include <stdint.h>
8390 int
8391 main ()
8392 {
8393 uintmax_t i = (uintmax_t) -1;
8394   ;
8395   return 0;
8396 }
8397 _ACEOF
8398 rm -f conftest.$ac_objext
8399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8400   (eval $ac_compile) 2>conftest.er1
8401   ac_status=$?
8402   grep -v '^ *+' conftest.er1 >conftest.err
8403   rm -f conftest.er1
8404   cat conftest.err >&5
8405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8406   (exit $ac_status); } &&
8407          { ac_try='test -z "$ac_c_werror_flag"
8408                          || test ! -s conftest.err'
8409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8410   (eval $ac_try) 2>&5
8411   ac_status=$?
8412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8413   (exit $ac_status); }; } &&
8414          { ac_try='test -s conftest.$ac_objext'
8415   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8416   (eval $ac_try) 2>&5
8417   ac_status=$?
8418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8419   (exit $ac_status); }; }; then
8420   gl_cv_header_stdint_h=yes
8421 else
8422   echo "$as_me: failed program was:" >&5
8423 sed 's/^/| /' conftest.$ac_ext >&5
8424
8425         gl_cv_header_stdint_h=no
8426 fi
8427
8428 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8429 fi
8430 { echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
8431 echo "${ECHO_T}$gl_cv_header_stdint_h" >&6; }
8432   if test $gl_cv_header_stdint_h = yes; then
8433
8434 cat >>confdefs.h <<_ACEOF
8435 #define HAVE_STDINT_H_WITH_UINTMAX 1
8436 _ACEOF
8437
8438   fi
8439
8440
8441   { echo "$as_me:$LINENO: checking for unsigned long long" >&5
8442 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
8443 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
8444   echo $ECHO_N "(cached) $ECHO_C" >&6
8445 else
8446   cat >conftest.$ac_ext <<_ACEOF
8447 /* confdefs.h.  */
8448 _ACEOF
8449 cat confdefs.h >>conftest.$ac_ext
8450 cat >>conftest.$ac_ext <<_ACEOF
8451 /* end confdefs.h.  */
8452 unsigned long long ull = 1ULL; int i = 63;
8453 int
8454 main ()
8455 {
8456 unsigned long long ullmax = (unsigned long long) -1;
8457      return ull << i | ull >> i | ullmax / ull | ullmax % ull;
8458   ;
8459   return 0;
8460 }
8461 _ACEOF
8462 rm -f conftest.$ac_objext conftest$ac_exeext
8463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8464   (eval $ac_link) 2>conftest.er1
8465   ac_status=$?
8466   grep -v '^ *+' conftest.er1 >conftest.err
8467   rm -f conftest.er1
8468   cat conftest.err >&5
8469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8470   (exit $ac_status); } &&
8471          { ac_try='test -z "$ac_c_werror_flag"
8472                          || test ! -s conftest.err'
8473   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8474   (eval $ac_try) 2>&5
8475   ac_status=$?
8476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8477   (exit $ac_status); }; } &&
8478          { ac_try='test -s conftest$ac_exeext'
8479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8480   (eval $ac_try) 2>&5
8481   ac_status=$?
8482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8483   (exit $ac_status); }; }; then
8484   ac_cv_type_unsigned_long_long=yes
8485 else
8486   echo "$as_me: failed program was:" >&5
8487 sed 's/^/| /' conftest.$ac_ext >&5
8488
8489         ac_cv_type_unsigned_long_long=no
8490 fi
8491
8492 rm -f conftest.err conftest.$ac_objext \
8493       conftest$ac_exeext conftest.$ac_ext
8494 fi
8495 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
8496 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
8497   if test $ac_cv_type_unsigned_long_long = yes; then
8498
8499 cat >>confdefs.h <<\_ACEOF
8500 #define HAVE_UNSIGNED_LONG_LONG 1
8501 _ACEOF
8502
8503   fi
8504
8505
8506
8507
8508   if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
8509
8510     test $ac_cv_type_unsigned_long_long = yes \
8511       && ac_type='unsigned long long' \
8512       || ac_type='unsigned long'
8513
8514 cat >>confdefs.h <<_ACEOF
8515 #define uintmax_t $ac_type
8516 _ACEOF
8517
8518   else
8519
8520 cat >>confdefs.h <<\_ACEOF
8521 #define HAVE_UINTMAX_T 1
8522 _ACEOF
8523
8524   fi
8525
8526
8527   { echo "$as_me:$LINENO: checking for uintptr_t" >&5
8528 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
8529 if test "${gl_cv_c_uintptr_t+set}" = set; then
8530   echo $ECHO_N "(cached) $ECHO_C" >&6
8531 else
8532   gl_cv_c_uintptr_t=no
8533      for ac_type in "uintptr_t" "unsigned int" \
8534          "unsigned long int" "unsigned long long int"; do
8535        cat >conftest.$ac_ext <<_ACEOF
8536 /* confdefs.h.  */
8537 _ACEOF
8538 cat confdefs.h >>conftest.$ac_ext
8539 cat >>conftest.$ac_ext <<_ACEOF
8540 /* end confdefs.h.  */
8541 $ac_includes_default
8542 int
8543 main ()
8544 {
8545 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof (uintptr_t))];
8546 test_array [0] = 0
8547
8548   ;
8549   return 0;
8550 }
8551 _ACEOF
8552 rm -f conftest.$ac_objext
8553 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8554   (eval $ac_compile) 2>conftest.er1
8555   ac_status=$?
8556   grep -v '^ *+' conftest.er1 >conftest.err
8557   rm -f conftest.er1
8558   cat conftest.err >&5
8559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8560   (exit $ac_status); } &&
8561          { ac_try='test -z "$ac_c_werror_flag"
8562                          || test ! -s conftest.err'
8563   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8564   (eval $ac_try) 2>&5
8565   ac_status=$?
8566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8567   (exit $ac_status); }; } &&
8568          { ac_try='test -s conftest.$ac_objext'
8569   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8570   (eval $ac_try) 2>&5
8571   ac_status=$?
8572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8573   (exit $ac_status); }; }; then
8574   gl_cv_c_uintptr_t=$ac_type
8575 else
8576   echo "$as_me: failed program was:" >&5
8577 sed 's/^/| /' conftest.$ac_ext >&5
8578
8579
8580 fi
8581
8582 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8583        test $gl_cv_c_uintptr_t != no && break
8584      done
8585 fi
8586 { echo "$as_me:$LINENO: result: $gl_cv_c_uintptr_t" >&5
8587 echo "${ECHO_T}$gl_cv_c_uintptr_t" >&6; }
8588   case $gl_cv_c_uintptr_t in
8589   no|uintptr_t) ;;
8590   *)
8591
8592 cat >>confdefs.h <<_ACEOF
8593 #define uintptr_t $gl_cv_c_uintptr_t
8594 _ACEOF
8595
8596     ;;
8597   esac
8598
8599         { echo "$as_me:$LINENO: checking for UINTPTR_MAX" >&5
8600 echo $ECHO_N "checking for UINTPTR_MAX... $ECHO_C" >&6; }
8601 if test "${gl_cv_c_uintptr_max+set}" = set; then
8602   echo $ECHO_N "(cached) $ECHO_C" >&6
8603 else
8604   cat >conftest.$ac_ext <<_ACEOF
8605 /* confdefs.h.  */
8606 _ACEOF
8607 cat confdefs.h >>conftest.$ac_ext
8608 cat >>conftest.$ac_ext <<_ACEOF
8609 /* end confdefs.h.  */
8610 $ac_includes_default
8611 int
8612 main ()
8613 {
8614 #ifndef UINTPTR_MAX
8615              error: UINTPTR_MAX is not defined.
8616             #endif
8617   ;
8618   return 0;
8619 }
8620 _ACEOF
8621 rm -f conftest.$ac_objext
8622 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8623   (eval $ac_compile) 2>conftest.er1
8624   ac_status=$?
8625   grep -v '^ *+' conftest.er1 >conftest.err
8626   rm -f conftest.er1
8627   cat conftest.err >&5
8628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8629   (exit $ac_status); } &&
8630          { ac_try='test -z "$ac_c_werror_flag"
8631                          || test ! -s conftest.err'
8632   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8633   (eval $ac_try) 2>&5
8634   ac_status=$?
8635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8636   (exit $ac_status); }; } &&
8637          { ac_try='test -s conftest.$ac_objext'
8638   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8639   (eval $ac_try) 2>&5
8640   ac_status=$?
8641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8642   (exit $ac_status); }; }; then
8643   gl_cv_c_uintptr_max=yes
8644 else
8645   echo "$as_me: failed program was:" >&5
8646 sed 's/^/| /' conftest.$ac_ext >&5
8647
8648         gl_cv_c_uintptr_max=no
8649 fi
8650
8651 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8652 fi
8653 { echo "$as_me:$LINENO: result: $gl_cv_c_uintptr_max" >&5
8654 echo "${ECHO_T}$gl_cv_c_uintptr_max" >&6; }
8655   case $gl_cv_c_uintptr_max,$gl_cv_c_uintptr_t in
8656   yes,*) ;;
8657   *,no) ;;
8658   *)
8659
8660 cat >>confdefs.h <<\_ACEOF
8661 #define UINTPTR_MAX ((uintptr_t) -1)
8662 _ACEOF
8663
8664     ;;
8665   esac
8666
8667 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
8668 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
8669 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
8670   echo $ECHO_N "(cached) $ECHO_C" >&6
8671 else
8672   cat >conftest.$ac_ext <<_ACEOF
8673 /* confdefs.h.  */
8674 _ACEOF
8675 cat confdefs.h >>conftest.$ac_ext
8676 cat >>conftest.$ac_ext <<_ACEOF
8677 /* end confdefs.h.  */
8678 #include <sys/types.h>
8679 int
8680 main ()
8681 {
8682 return makedev(0, 0);
8683   ;
8684   return 0;
8685 }
8686 _ACEOF
8687 rm -f conftest.$ac_objext conftest$ac_exeext
8688 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8689   (eval $ac_link) 2>conftest.er1
8690   ac_status=$?
8691   grep -v '^ *+' conftest.er1 >conftest.err
8692   rm -f conftest.er1
8693   cat conftest.err >&5
8694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8695   (exit $ac_status); } &&
8696          { ac_try='test -z "$ac_c_werror_flag"
8697                          || test ! -s conftest.err'
8698   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8699   (eval $ac_try) 2>&5
8700   ac_status=$?
8701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8702   (exit $ac_status); }; } &&
8703          { ac_try='test -s conftest$ac_exeext'
8704   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8705   (eval $ac_try) 2>&5
8706   ac_status=$?
8707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8708   (exit $ac_status); }; }; then
8709   ac_cv_header_sys_types_h_makedev=yes
8710 else
8711   echo "$as_me: failed program was:" >&5
8712 sed 's/^/| /' conftest.$ac_ext >&5
8713
8714         ac_cv_header_sys_types_h_makedev=no
8715 fi
8716
8717 rm -f conftest.err conftest.$ac_objext \
8718       conftest$ac_exeext conftest.$ac_ext
8719
8720 fi
8721 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
8722 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
8723
8724 if test $ac_cv_header_sys_types_h_makedev = no; then
8725 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
8726   { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
8727 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
8728 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
8729   echo $ECHO_N "(cached) $ECHO_C" >&6
8730 fi
8731 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
8732 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
8733 else
8734   # Is the header compilable?
8735 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
8736 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
8737 cat >conftest.$ac_ext <<_ACEOF
8738 /* confdefs.h.  */
8739 _ACEOF
8740 cat confdefs.h >>conftest.$ac_ext
8741 cat >>conftest.$ac_ext <<_ACEOF
8742 /* end confdefs.h.  */
8743 $ac_includes_default
8744 #include <sys/mkdev.h>
8745 _ACEOF
8746 rm -f conftest.$ac_objext
8747 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8748   (eval $ac_compile) 2>conftest.er1
8749   ac_status=$?
8750   grep -v '^ *+' conftest.er1 >conftest.err
8751   rm -f conftest.er1
8752   cat conftest.err >&5
8753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8754   (exit $ac_status); } &&
8755          { ac_try='test -z "$ac_c_werror_flag"
8756                          || test ! -s conftest.err'
8757   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8758   (eval $ac_try) 2>&5
8759   ac_status=$?
8760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8761   (exit $ac_status); }; } &&
8762          { ac_try='test -s conftest.$ac_objext'
8763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8764   (eval $ac_try) 2>&5
8765   ac_status=$?
8766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8767   (exit $ac_status); }; }; then
8768   ac_header_compiler=yes
8769 else
8770   echo "$as_me: failed program was:" >&5
8771 sed 's/^/| /' conftest.$ac_ext >&5
8772
8773         ac_header_compiler=no
8774 fi
8775
8776 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8777 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8778 echo "${ECHO_T}$ac_header_compiler" >&6; }
8779
8780 # Is the header present?
8781 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
8782 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
8783 cat >conftest.$ac_ext <<_ACEOF
8784 /* confdefs.h.  */
8785 _ACEOF
8786 cat confdefs.h >>conftest.$ac_ext
8787 cat >>conftest.$ac_ext <<_ACEOF
8788 /* end confdefs.h.  */
8789 #include <sys/mkdev.h>
8790 _ACEOF
8791 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8792   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8793   ac_status=$?
8794   grep -v '^ *+' conftest.er1 >conftest.err
8795   rm -f conftest.er1
8796   cat conftest.err >&5
8797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8798   (exit $ac_status); } >/dev/null; then
8799   if test -s conftest.err; then
8800     ac_cpp_err=$ac_c_preproc_warn_flag
8801     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8802   else
8803     ac_cpp_err=
8804   fi
8805 else
8806   ac_cpp_err=yes
8807 fi
8808 if test -z "$ac_cpp_err"; then
8809   ac_header_preproc=yes
8810 else
8811   echo "$as_me: failed program was:" >&5
8812 sed 's/^/| /' conftest.$ac_ext >&5
8813
8814   ac_header_preproc=no
8815 fi
8816
8817 rm -f conftest.err conftest.$ac_ext
8818 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8819 echo "${ECHO_T}$ac_header_preproc" >&6; }
8820
8821 # So?  What about this header?
8822 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8823   yes:no: )
8824     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
8825 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8826     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
8827 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
8828     ac_header_preproc=yes
8829     ;;
8830   no:yes:* )
8831     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
8832 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
8833     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&5
8834 echo "$as_me: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&2;}
8835     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
8836 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
8837     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&5
8838 echo "$as_me: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&2;}
8839     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
8840 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
8841     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
8842 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
8843     ( cat <<\_ASBOX
8844 ## ------------------------------------ ##
8845 ## Report this to bug-coreutils@gnu.org ##
8846 ## ------------------------------------ ##
8847 _ASBOX
8848      ) | sed "s/^/$as_me: WARNING:     /" >&2
8849     ;;
8850 esac
8851 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
8852 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
8853 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
8854   echo $ECHO_N "(cached) $ECHO_C" >&6
8855 else
8856   ac_cv_header_sys_mkdev_h=$ac_header_preproc
8857 fi
8858 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
8859 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
8860
8861 fi
8862 if test $ac_cv_header_sys_mkdev_h = yes; then
8863
8864 cat >>confdefs.h <<\_ACEOF
8865 #define MAJOR_IN_MKDEV 1
8866 _ACEOF
8867
8868 fi
8869
8870
8871
8872   if test $ac_cv_header_sys_mkdev_h = no; then
8873     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
8874   { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
8875 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
8876 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
8877   echo $ECHO_N "(cached) $ECHO_C" >&6
8878 fi
8879 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
8880 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
8881 else
8882   # Is the header compilable?
8883 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
8884 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
8885 cat >conftest.$ac_ext <<_ACEOF
8886 /* confdefs.h.  */
8887 _ACEOF
8888 cat confdefs.h >>conftest.$ac_ext
8889 cat >>conftest.$ac_ext <<_ACEOF
8890 /* end confdefs.h.  */
8891 $ac_includes_default
8892 #include <sys/sysmacros.h>
8893 _ACEOF
8894 rm -f conftest.$ac_objext
8895 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8896   (eval $ac_compile) 2>conftest.er1
8897   ac_status=$?
8898   grep -v '^ *+' conftest.er1 >conftest.err
8899   rm -f conftest.er1
8900   cat conftest.err >&5
8901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8902   (exit $ac_status); } &&
8903          { ac_try='test -z "$ac_c_werror_flag"
8904                          || test ! -s conftest.err'
8905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8906   (eval $ac_try) 2>&5
8907   ac_status=$?
8908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8909   (exit $ac_status); }; } &&
8910          { ac_try='test -s conftest.$ac_objext'
8911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8912   (eval $ac_try) 2>&5
8913   ac_status=$?
8914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8915   (exit $ac_status); }; }; then
8916   ac_header_compiler=yes
8917 else
8918   echo "$as_me: failed program was:" >&5
8919 sed 's/^/| /' conftest.$ac_ext >&5
8920
8921         ac_header_compiler=no
8922 fi
8923
8924 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8925 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8926 echo "${ECHO_T}$ac_header_compiler" >&6; }
8927
8928 # Is the header present?
8929 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
8930 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
8931 cat >conftest.$ac_ext <<_ACEOF
8932 /* confdefs.h.  */
8933 _ACEOF
8934 cat confdefs.h >>conftest.$ac_ext
8935 cat >>conftest.$ac_ext <<_ACEOF
8936 /* end confdefs.h.  */
8937 #include <sys/sysmacros.h>
8938 _ACEOF
8939 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8940   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8941   ac_status=$?
8942   grep -v '^ *+' conftest.er1 >conftest.err
8943   rm -f conftest.er1
8944   cat conftest.err >&5
8945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8946   (exit $ac_status); } >/dev/null; then
8947   if test -s conftest.err; then
8948     ac_cpp_err=$ac_c_preproc_warn_flag
8949     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8950   else
8951     ac_cpp_err=
8952   fi
8953 else
8954   ac_cpp_err=yes
8955 fi
8956 if test -z "$ac_cpp_err"; then
8957   ac_header_preproc=yes
8958 else
8959   echo "$as_me: failed program was:" >&5
8960 sed 's/^/| /' conftest.$ac_ext >&5
8961
8962   ac_header_preproc=no
8963 fi
8964
8965 rm -f conftest.err conftest.$ac_ext
8966 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8967 echo "${ECHO_T}$ac_header_preproc" >&6; }
8968
8969 # So?  What about this header?
8970 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8971   yes:no: )
8972     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
8973 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8974     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
8975 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
8976     ac_header_preproc=yes
8977     ;;
8978   no:yes:* )
8979     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
8980 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
8981     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&5
8982 echo "$as_me: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&2;}
8983     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
8984 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
8985     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&5
8986 echo "$as_me: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&2;}
8987     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
8988 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
8989     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
8990 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
8991     ( cat <<\_ASBOX
8992 ## ------------------------------------ ##
8993 ## Report this to bug-coreutils@gnu.org ##
8994 ## ------------------------------------ ##
8995 _ASBOX
8996      ) | sed "s/^/$as_me: WARNING:     /" >&2
8997     ;;
8998 esac
8999 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
9000 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
9001 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
9002   echo $ECHO_N "(cached) $ECHO_C" >&6
9003 else
9004   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
9005 fi
9006 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
9007 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
9008
9009 fi
9010 if test $ac_cv_header_sys_sysmacros_h = yes; then
9011
9012 cat >>confdefs.h <<\_ACEOF
9013 #define MAJOR_IN_SYSMACROS 1
9014 _ACEOF
9015
9016 fi
9017
9018
9019   fi
9020 fi
9021
9022
9023   { echo "$as_me:$LINENO: checking host operating system" >&5
9024 echo $ECHO_N "checking host operating system... $ECHO_C" >&6; }
9025 if test "${gl_cv_host_operating_system+set}" = set; then
9026   echo $ECHO_N "(cached) $ECHO_C" >&6
9027 else
9028   case $host_os in
9029
9030        # These operating system names do not use the default heuristic below.
9031        # They are in reverse order, so that more-specific prefixes come first.
9032        winnt*)          os='Windows NT';;
9033        vos*)            os='VOS';;
9034        sysv*)           os='Unix System V';;
9035        superux*)        os='SUPER-UX';;
9036        sunos*)          os='SunOS';;
9037        stop*)           os='STOP';;
9038        sco*)            os='SCO Unix';;
9039        riscos*)         os='RISC OS';;
9040        riscix*)         os='RISCiX';;
9041        qnx*)            os='QNX';;
9042        pw32*)           os='PW32';;
9043        ptx*)            os='ptx';;
9044        plan9*)          os='Plan 9';;
9045        osf*)            os='Tru64';;
9046        os2*)            os='OS/2';;
9047        openbsd*)        os='OpenBSD';;
9048        nsk*)            os='NonStop Kernel';;
9049        nonstopux*)      os='NonStop-UX';;
9050        netbsd*-gnu*)    os='GNU/NetBSD';; # NetBSD kernel+libc, GNU userland
9051        netbsd*)         os='NetBSD';;
9052        knetbsd*-gnu)    os='GNU/kNetBSD';; # NetBSD kernel, GNU libc+userland
9053        kfreebsd*-gnu)   os='GNU/kFreeBSD';; # FreeBSD kernel, GNU libc+userland
9054        msdosdjgpp*)     os='DJGPP';;
9055        mpeix*)          os='MPE/iX';;
9056        mint*)           os='MiNT';;
9057        mingw*)          os='MinGW';;
9058        lynxos*)         os='LynxOS';;
9059        linux*)          os='GNU/Linux';;
9060        hpux*)           os='HP-UX';;
9061        hiux*)           os='HI-UX';;
9062        gnu*)            os='GNU';;
9063        freebsd*)        os='FreeBSD';;
9064        dgux*)           os='DG/UX';;
9065        bsdi*)           os='BSD/OS';;
9066        bsd*)            os='BSD';;
9067        beos*)           os='BeOS';;
9068        aux*)            os='A/UX';;
9069        atheos*)         os='AtheOS';;
9070        amigaos*)        os='Amiga OS';;
9071        aix*)            os='AIX';;
9072
9073        # The default heuristic takes the initial alphabetic string
9074        # from $host_os, but capitalizes its first letter.
9075        [A-Za-z]*)
9076          os=`
9077            expr "X$host_os" : 'X\([A-Za-z]\)' | tr '[a-z]' '[A-Z]'
9078          ``
9079            expr "X$host_os" : 'X.\([A-Za-z]*\)'
9080          `
9081          ;;
9082
9083        # If $host_os does not start with an alphabetic string, use it unchanged.
9084        *)
9085          os=$host_os;;
9086      esac
9087      gl_cv_host_operating_system=$os
9088 fi
9089 { echo "$as_me:$LINENO: result: $gl_cv_host_operating_system" >&5
9090 echo "${ECHO_T}$gl_cv_host_operating_system" >&6; }
9091
9092 cat >>confdefs.h <<_ACEOF
9093 #define HOST_OPERATING_SYSTEM "$gl_cv_host_operating_system"
9094 _ACEOF
9095
9096
9097
9098   { echo "$as_me:$LINENO: checking whether to enable assertions" >&5
9099 echo $ECHO_N "checking whether to enable assertions... $ECHO_C" >&6; }
9100   # Check whether --enable-assert was given.
9101 if test "${enable_assert+set}" = set; then
9102   enableval=$enable_assert;  { echo "$as_me:$LINENO: result: no" >&5
9103 echo "${ECHO_T}no" >&6; }
9104
9105 cat >>confdefs.h <<\_ACEOF
9106 #define NDEBUG 1
9107 _ACEOF
9108
9109 else
9110    { echo "$as_me:$LINENO: result: yes" >&5
9111 echo "${ECHO_T}yes" >&6; }
9112
9113 fi
9114
9115
9116    { echo "$as_me:$LINENO: checking for d_type member in directory struct" >&5
9117 echo $ECHO_N "checking for d_type member in directory struct... $ECHO_C" >&6; }
9118 if test "${jm_cv_struct_dirent_d_type+set}" = set; then
9119   echo $ECHO_N "(cached) $ECHO_C" >&6
9120 else
9121   cat >conftest.$ac_ext <<_ACEOF
9122 /* confdefs.h.  */
9123 _ACEOF
9124 cat confdefs.h >>conftest.$ac_ext
9125 cat >>conftest.$ac_ext <<_ACEOF
9126 /* end confdefs.h.  */
9127
9128 #include <sys/types.h>
9129 #ifdef HAVE_DIRENT_H
9130 # include <dirent.h>
9131 #else /* not HAVE_DIRENT_H */
9132 # define dirent direct
9133 # ifdef HAVE_SYS_NDIR_H
9134 #  include <sys/ndir.h>
9135 # endif /* HAVE_SYS_NDIR_H */
9136 # ifdef HAVE_SYS_DIR_H
9137 #  include <sys/dir.h>
9138 # endif /* HAVE_SYS_DIR_H */
9139 # ifdef HAVE_NDIR_H
9140 #  include <ndir.h>
9141 # endif /* HAVE_NDIR_H */
9142 #endif /* HAVE_DIRENT_H */
9143
9144 int
9145 main ()
9146 {
9147 struct dirent dp; dp.d_type = 0;
9148   ;
9149   return 0;
9150 }
9151 _ACEOF
9152 rm -f conftest.$ac_objext conftest$ac_exeext
9153 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9154   (eval $ac_link) 2>conftest.er1
9155   ac_status=$?
9156   grep -v '^ *+' conftest.er1 >conftest.err
9157   rm -f conftest.er1
9158   cat conftest.err >&5
9159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9160   (exit $ac_status); } &&
9161          { ac_try='test -z "$ac_c_werror_flag"
9162                          || test ! -s conftest.err'
9163   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9164   (eval $ac_try) 2>&5
9165   ac_status=$?
9166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9167   (exit $ac_status); }; } &&
9168          { ac_try='test -s conftest$ac_exeext'
9169   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9170   (eval $ac_try) 2>&5
9171   ac_status=$?
9172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9173   (exit $ac_status); }; }; then
9174   jm_cv_struct_dirent_d_type=yes
9175 else
9176   echo "$as_me: failed program was:" >&5
9177 sed 's/^/| /' conftest.$ac_ext >&5
9178
9179         jm_cv_struct_dirent_d_type=no
9180 fi
9181
9182 rm -f conftest.err conftest.$ac_objext \
9183       conftest$ac_exeext conftest.$ac_ext
9184
9185
9186 fi
9187 { echo "$as_me:$LINENO: result: $jm_cv_struct_dirent_d_type" >&5
9188 echo "${ECHO_T}$jm_cv_struct_dirent_d_type" >&6; }
9189    if test $jm_cv_struct_dirent_d_type = yes; then
9190
9191 cat >>confdefs.h <<\_ACEOF
9192 #define HAVE_STRUCT_DIRENT_D_TYPE 1
9193 _ACEOF
9194
9195    fi
9196
9197
9198    { echo "$as_me:$LINENO: checking for d_ino member in directory struct" >&5
9199 echo $ECHO_N "checking for d_ino member in directory struct... $ECHO_C" >&6; }
9200 if test "${jm_cv_struct_dirent_d_ino+set}" = set; then
9201   echo $ECHO_N "(cached) $ECHO_C" >&6
9202 else
9203   cat >conftest.$ac_ext <<_ACEOF
9204 /* confdefs.h.  */
9205 _ACEOF
9206 cat confdefs.h >>conftest.$ac_ext
9207 cat >>conftest.$ac_ext <<_ACEOF
9208 /* end confdefs.h.  */
9209
9210 #include <sys/types.h>
9211 #ifdef HAVE_DIRENT_H
9212 # include <dirent.h>
9213 #else /* not HAVE_DIRENT_H */
9214 # define dirent direct
9215 # ifdef HAVE_SYS_NDIR_H
9216 #  include <sys/ndir.h>
9217 # endif /* HAVE_SYS_NDIR_H */
9218 # ifdef HAVE_SYS_DIR_H
9219 #  include <sys/dir.h>
9220 # endif /* HAVE_SYS_DIR_H */
9221 # ifdef HAVE_NDIR_H
9222 #  include <ndir.h>
9223 # endif /* HAVE_NDIR_H */
9224 #endif /* HAVE_DIRENT_H */
9225
9226 int
9227 main ()
9228 {
9229 struct dirent dp; dp.d_ino = 0;
9230   ;
9231   return 0;
9232 }
9233 _ACEOF
9234 rm -f conftest.$ac_objext conftest$ac_exeext
9235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9236   (eval $ac_link) 2>conftest.er1
9237   ac_status=$?
9238   grep -v '^ *+' conftest.er1 >conftest.err
9239   rm -f conftest.er1
9240   cat conftest.err >&5
9241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9242   (exit $ac_status); } &&
9243          { ac_try='test -z "$ac_c_werror_flag"
9244                          || test ! -s conftest.err'
9245   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9246   (eval $ac_try) 2>&5
9247   ac_status=$?
9248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9249   (exit $ac_status); }; } &&
9250          { ac_try='test -s conftest$ac_exeext'
9251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9252   (eval $ac_try) 2>&5
9253   ac_status=$?
9254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9255   (exit $ac_status); }; }; then
9256   jm_cv_struct_dirent_d_ino=yes
9257 else
9258   echo "$as_me: failed program was:" >&5
9259 sed 's/^/| /' conftest.$ac_ext >&5
9260
9261         jm_cv_struct_dirent_d_ino=no
9262 fi
9263
9264 rm -f conftest.err conftest.$ac_objext \
9265       conftest$ac_exeext conftest.$ac_ext
9266
9267
9268 fi
9269 { echo "$as_me:$LINENO: result: $jm_cv_struct_dirent_d_ino" >&5
9270 echo "${ECHO_T}$jm_cv_struct_dirent_d_ino" >&6; }
9271    if test $jm_cv_struct_dirent_d_ino = yes; then
9272
9273 cat >>confdefs.h <<\_ACEOF
9274 #define D_INO_IN_DIRENT 1
9275 _ACEOF
9276
9277    fi
9278
9279
9280
9281
9282
9283
9284
9285
9286
9287
9288
9289
9290
9291
9292
9293
9294
9295
9296
9297
9298
9299
9300   :
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311
9312
9313
9314
9315
9316 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
9317 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
9318 if test "${ac_cv_header_time+set}" = set; then
9319   echo $ECHO_N "(cached) $ECHO_C" >&6
9320 else
9321   cat >conftest.$ac_ext <<_ACEOF
9322 /* confdefs.h.  */
9323 _ACEOF
9324 cat confdefs.h >>conftest.$ac_ext
9325 cat >>conftest.$ac_ext <<_ACEOF
9326 /* end confdefs.h.  */
9327 #include <sys/types.h>
9328 #include <sys/time.h>
9329 #include <time.h>
9330
9331 int
9332 main ()
9333 {
9334 if ((struct tm *) 0)
9335 return 0;
9336   ;
9337   return 0;
9338 }
9339 _ACEOF
9340 rm -f conftest.$ac_objext
9341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9342   (eval $ac_compile) 2>conftest.er1
9343   ac_status=$?
9344   grep -v '^ *+' conftest.er1 >conftest.err
9345   rm -f conftest.er1
9346   cat conftest.err >&5
9347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9348   (exit $ac_status); } &&
9349          { ac_try='test -z "$ac_c_werror_flag"
9350                          || test ! -s conftest.err'
9351   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9352   (eval $ac_try) 2>&5
9353   ac_status=$?
9354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9355   (exit $ac_status); }; } &&
9356          { ac_try='test -s conftest.$ac_objext'
9357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9358   (eval $ac_try) 2>&5
9359   ac_status=$?
9360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9361   (exit $ac_status); }; }; then
9362   ac_cv_header_time=yes
9363 else
9364   echo "$as_me: failed program was:" >&5
9365 sed 's/^/| /' conftest.$ac_ext >&5
9366
9367         ac_cv_header_time=no
9368 fi
9369
9370 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9371 fi
9372 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
9373 echo "${ECHO_T}$ac_cv_header_time" >&6; }
9374 if test $ac_cv_header_time = yes; then
9375
9376 cat >>confdefs.h <<\_ACEOF
9377 #define TIME_WITH_SYS_TIME 1
9378 _ACEOF
9379
9380 fi
9381
9382
9383
9384
9385   headers='
9386 #include <stdio.h>
9387 #include <string.h>
9388 #include <stdlib.h>
9389
9390 #include <unistd.h>
9391
9392 #include <sys/types.h>
9393 #if TIME_WITH_SYS_TIME
9394 # include <sys/time.h>
9395 # include <time.h>
9396 #else
9397 # if HAVE_SYS_TIME_H
9398 #  include <sys/time.h>
9399 # else
9400 #  include <time.h>
9401 # endif
9402 #endif
9403
9404 #if HAVE_UTMP_H
9405 # include <utmp.h>
9406 #endif
9407
9408 #if HAVE_GRP_H
9409 # include <grp.h>
9410 #endif
9411
9412 #if HAVE_PWD_H
9413 # include <pwd.h>
9414 #endif
9415 '
9416
9417   { echo "$as_me:$LINENO: checking whether free is declared" >&5
9418 echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6; }
9419 if test "${ac_cv_have_decl_free+set}" = set; then
9420   echo $ECHO_N "(cached) $ECHO_C" >&6
9421 else
9422   cat >conftest.$ac_ext <<_ACEOF
9423 /* confdefs.h.  */
9424 _ACEOF
9425 cat confdefs.h >>conftest.$ac_ext
9426 cat >>conftest.$ac_ext <<_ACEOF
9427 /* end confdefs.h.  */
9428 $headers
9429
9430 int
9431 main ()
9432 {
9433 #ifndef free
9434   char *p = (char *) free;
9435   return !p;
9436 #endif
9437
9438   ;
9439   return 0;
9440 }
9441 _ACEOF
9442 rm -f conftest.$ac_objext
9443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9444   (eval $ac_compile) 2>conftest.er1
9445   ac_status=$?
9446   grep -v '^ *+' conftest.er1 >conftest.err
9447   rm -f conftest.er1
9448   cat conftest.err >&5
9449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9450   (exit $ac_status); } &&
9451          { ac_try='test -z "$ac_c_werror_flag"
9452                          || test ! -s conftest.err'
9453   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9454   (eval $ac_try) 2>&5
9455   ac_status=$?
9456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9457   (exit $ac_status); }; } &&
9458          { ac_try='test -s conftest.$ac_objext'
9459   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9460   (eval $ac_try) 2>&5
9461   ac_status=$?
9462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9463   (exit $ac_status); }; }; then
9464   ac_cv_have_decl_free=yes
9465 else
9466   echo "$as_me: failed program was:" >&5
9467 sed 's/^/| /' conftest.$ac_ext >&5
9468
9469         ac_cv_have_decl_free=no
9470 fi
9471
9472 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9473 fi
9474 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
9475 echo "${ECHO_T}$ac_cv_have_decl_free" >&6; }
9476 if test $ac_cv_have_decl_free = yes; then
9477
9478 cat >>confdefs.h <<_ACEOF
9479 #define HAVE_DECL_FREE 1
9480 _ACEOF
9481
9482
9483 else
9484   cat >>confdefs.h <<_ACEOF
9485 #define HAVE_DECL_FREE 0
9486 _ACEOF
9487
9488
9489 fi
9490 { echo "$as_me:$LINENO: checking whether getenv is declared" >&5
9491 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6; }
9492 if test "${ac_cv_have_decl_getenv+set}" = set; then
9493   echo $ECHO_N "(cached) $ECHO_C" >&6
9494 else
9495   cat >conftest.$ac_ext <<_ACEOF
9496 /* confdefs.h.  */
9497 _ACEOF
9498 cat confdefs.h >>conftest.$ac_ext
9499 cat >>conftest.$ac_ext <<_ACEOF
9500 /* end confdefs.h.  */
9501 $headers
9502
9503 int
9504 main ()
9505 {
9506 #ifndef getenv
9507   char *p = (char *) getenv;
9508   return !p;
9509 #endif
9510
9511   ;
9512   return 0;
9513 }
9514 _ACEOF
9515 rm -f conftest.$ac_objext
9516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9517   (eval $ac_compile) 2>conftest.er1
9518   ac_status=$?
9519   grep -v '^ *+' conftest.er1 >conftest.err
9520   rm -f conftest.er1
9521   cat conftest.err >&5
9522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9523   (exit $ac_status); } &&
9524          { ac_try='test -z "$ac_c_werror_flag"
9525                          || test ! -s conftest.err'
9526   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9527   (eval $ac_try) 2>&5
9528   ac_status=$?
9529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9530   (exit $ac_status); }; } &&
9531          { ac_try='test -s conftest.$ac_objext'
9532   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9533   (eval $ac_try) 2>&5
9534   ac_status=$?
9535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9536   (exit $ac_status); }; }; then
9537   ac_cv_have_decl_getenv=yes
9538 else
9539   echo "$as_me: failed program was:" >&5
9540 sed 's/^/| /' conftest.$ac_ext >&5
9541
9542         ac_cv_have_decl_getenv=no
9543 fi
9544
9545 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9546 fi
9547 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
9548 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6; }
9549 if test $ac_cv_have_decl_getenv = yes; then
9550
9551 cat >>confdefs.h <<_ACEOF
9552 #define HAVE_DECL_GETENV 1
9553 _ACEOF
9554
9555
9556 else
9557   cat >>confdefs.h <<_ACEOF
9558 #define HAVE_DECL_GETENV 0
9559 _ACEOF
9560
9561
9562 fi
9563 { echo "$as_me:$LINENO: checking whether geteuid is declared" >&5
9564 echo $ECHO_N "checking whether geteuid is declared... $ECHO_C" >&6; }
9565 if test "${ac_cv_have_decl_geteuid+set}" = set; then
9566   echo $ECHO_N "(cached) $ECHO_C" >&6
9567 else
9568   cat >conftest.$ac_ext <<_ACEOF
9569 /* confdefs.h.  */
9570 _ACEOF
9571 cat confdefs.h >>conftest.$ac_ext
9572 cat >>conftest.$ac_ext <<_ACEOF
9573 /* end confdefs.h.  */
9574 $headers
9575
9576 int
9577 main ()
9578 {
9579 #ifndef geteuid
9580   char *p = (char *) geteuid;
9581   return !p;
9582 #endif
9583
9584   ;
9585   return 0;
9586 }
9587 _ACEOF
9588 rm -f conftest.$ac_objext
9589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9590   (eval $ac_compile) 2>conftest.er1
9591   ac_status=$?
9592   grep -v '^ *+' conftest.er1 >conftest.err
9593   rm -f conftest.er1
9594   cat conftest.err >&5
9595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9596   (exit $ac_status); } &&
9597          { ac_try='test -z "$ac_c_werror_flag"
9598                          || test ! -s conftest.err'
9599   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9600   (eval $ac_try) 2>&5
9601   ac_status=$?
9602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9603   (exit $ac_status); }; } &&
9604          { ac_try='test -s conftest.$ac_objext'
9605   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9606   (eval $ac_try) 2>&5
9607   ac_status=$?
9608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9609   (exit $ac_status); }; }; then
9610   ac_cv_have_decl_geteuid=yes
9611 else
9612   echo "$as_me: failed program was:" >&5
9613 sed 's/^/| /' conftest.$ac_ext >&5
9614
9615         ac_cv_have_decl_geteuid=no
9616 fi
9617
9618 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9619 fi
9620 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_geteuid" >&5
9621 echo "${ECHO_T}$ac_cv_have_decl_geteuid" >&6; }
9622 if test $ac_cv_have_decl_geteuid = yes; then
9623
9624 cat >>confdefs.h <<_ACEOF
9625 #define HAVE_DECL_GETEUID 1
9626 _ACEOF
9627
9628
9629 else
9630   cat >>confdefs.h <<_ACEOF
9631 #define HAVE_DECL_GETEUID 0
9632 _ACEOF
9633
9634
9635 fi
9636 { echo "$as_me:$LINENO: checking whether getgrgid is declared" >&5
9637 echo $ECHO_N "checking whether getgrgid is declared... $ECHO_C" >&6; }
9638 if test "${ac_cv_have_decl_getgrgid+set}" = set; then
9639   echo $ECHO_N "(cached) $ECHO_C" >&6
9640 else
9641   cat >conftest.$ac_ext <<_ACEOF
9642 /* confdefs.h.  */
9643 _ACEOF
9644 cat confdefs.h >>conftest.$ac_ext
9645 cat >>conftest.$ac_ext <<_ACEOF
9646 /* end confdefs.h.  */
9647 $headers
9648
9649 int
9650 main ()
9651 {
9652 #ifndef getgrgid
9653   char *p = (char *) getgrgid;
9654   return !p;
9655 #endif
9656
9657   ;
9658   return 0;
9659 }
9660 _ACEOF
9661 rm -f conftest.$ac_objext
9662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9663   (eval $ac_compile) 2>conftest.er1
9664   ac_status=$?
9665   grep -v '^ *+' conftest.er1 >conftest.err
9666   rm -f conftest.er1
9667   cat conftest.err >&5
9668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9669   (exit $ac_status); } &&
9670          { ac_try='test -z "$ac_c_werror_flag"
9671                          || test ! -s conftest.err'
9672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9673   (eval $ac_try) 2>&5
9674   ac_status=$?
9675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9676   (exit $ac_status); }; } &&
9677          { ac_try='test -s conftest.$ac_objext'
9678   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9679   (eval $ac_try) 2>&5
9680   ac_status=$?
9681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9682   (exit $ac_status); }; }; then
9683   ac_cv_have_decl_getgrgid=yes
9684 else
9685   echo "$as_me: failed program was:" >&5
9686 sed 's/^/| /' conftest.$ac_ext >&5
9687
9688         ac_cv_have_decl_getgrgid=no
9689 fi
9690
9691 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9692 fi
9693 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getgrgid" >&5
9694 echo "${ECHO_T}$ac_cv_have_decl_getgrgid" >&6; }
9695 if test $ac_cv_have_decl_getgrgid = yes; then
9696
9697 cat >>confdefs.h <<_ACEOF
9698 #define HAVE_DECL_GETGRGID 1
9699 _ACEOF
9700
9701
9702 else
9703   cat >>confdefs.h <<_ACEOF
9704 #define HAVE_DECL_GETGRGID 0
9705 _ACEOF
9706
9707
9708 fi
9709 { echo "$as_me:$LINENO: checking whether getlogin is declared" >&5
9710 echo $ECHO_N "checking whether getlogin is declared... $ECHO_C" >&6; }
9711 if test "${ac_cv_have_decl_getlogin+set}" = set; then
9712   echo $ECHO_N "(cached) $ECHO_C" >&6
9713 else
9714   cat >conftest.$ac_ext <<_ACEOF
9715 /* confdefs.h.  */
9716 _ACEOF
9717 cat confdefs.h >>conftest.$ac_ext
9718 cat >>conftest.$ac_ext <<_ACEOF
9719 /* end confdefs.h.  */
9720 $headers
9721
9722 int
9723 main ()
9724 {
9725 #ifndef getlogin
9726   char *p = (char *) getlogin;
9727   return !p;
9728 #endif
9729
9730   ;
9731   return 0;
9732 }
9733 _ACEOF
9734 rm -f conftest.$ac_objext
9735 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9736   (eval $ac_compile) 2>conftest.er1
9737   ac_status=$?
9738   grep -v '^ *+' conftest.er1 >conftest.err
9739   rm -f conftest.er1
9740   cat conftest.err >&5
9741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9742   (exit $ac_status); } &&
9743          { ac_try='test -z "$ac_c_werror_flag"
9744                          || test ! -s conftest.err'
9745   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9746   (eval $ac_try) 2>&5
9747   ac_status=$?
9748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9749   (exit $ac_status); }; } &&
9750          { ac_try='test -s conftest.$ac_objext'
9751   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9752   (eval $ac_try) 2>&5
9753   ac_status=$?
9754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9755   (exit $ac_status); }; }; then
9756   ac_cv_have_decl_getlogin=yes
9757 else
9758   echo "$as_me: failed program was:" >&5
9759 sed 's/^/| /' conftest.$ac_ext >&5
9760
9761         ac_cv_have_decl_getlogin=no
9762 fi
9763
9764 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9765 fi
9766 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getlogin" >&5
9767 echo "${ECHO_T}$ac_cv_have_decl_getlogin" >&6; }
9768 if test $ac_cv_have_decl_getlogin = yes; then
9769
9770 cat >>confdefs.h <<_ACEOF
9771 #define HAVE_DECL_GETLOGIN 1
9772 _ACEOF
9773
9774
9775 else
9776   cat >>confdefs.h <<_ACEOF
9777 #define HAVE_DECL_GETLOGIN 0
9778 _ACEOF
9779
9780
9781 fi
9782 { echo "$as_me:$LINENO: checking whether getpwuid is declared" >&5
9783 echo $ECHO_N "checking whether getpwuid is declared... $ECHO_C" >&6; }
9784 if test "${ac_cv_have_decl_getpwuid+set}" = set; then
9785   echo $ECHO_N "(cached) $ECHO_C" >&6
9786 else
9787   cat >conftest.$ac_ext <<_ACEOF
9788 /* confdefs.h.  */
9789 _ACEOF
9790 cat confdefs.h >>conftest.$ac_ext
9791 cat >>conftest.$ac_ext <<_ACEOF
9792 /* end confdefs.h.  */
9793 $headers
9794
9795 int
9796 main ()
9797 {
9798 #ifndef getpwuid
9799   char *p = (char *) getpwuid;
9800   return !p;
9801 #endif
9802
9803   ;
9804   return 0;
9805 }
9806 _ACEOF
9807 rm -f conftest.$ac_objext
9808 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9809   (eval $ac_compile) 2>conftest.er1
9810   ac_status=$?
9811   grep -v '^ *+' conftest.er1 >conftest.err
9812   rm -f conftest.er1
9813   cat conftest.err >&5
9814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9815   (exit $ac_status); } &&
9816          { ac_try='test -z "$ac_c_werror_flag"
9817                          || test ! -s conftest.err'
9818   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9819   (eval $ac_try) 2>&5
9820   ac_status=$?
9821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9822   (exit $ac_status); }; } &&
9823          { ac_try='test -s conftest.$ac_objext'
9824   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9825   (eval $ac_try) 2>&5
9826   ac_status=$?
9827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9828   (exit $ac_status); }; }; then
9829   ac_cv_have_decl_getpwuid=yes
9830 else
9831   echo "$as_me: failed program was:" >&5
9832 sed 's/^/| /' conftest.$ac_ext >&5
9833
9834         ac_cv_have_decl_getpwuid=no
9835 fi
9836
9837 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9838 fi
9839 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getpwuid" >&5
9840 echo "${ECHO_T}$ac_cv_have_decl_getpwuid" >&6; }
9841 if test $ac_cv_have_decl_getpwuid = yes; then
9842
9843 cat >>confdefs.h <<_ACEOF
9844 #define HAVE_DECL_GETPWUID 1
9845 _ACEOF
9846
9847
9848 else
9849   cat >>confdefs.h <<_ACEOF
9850 #define HAVE_DECL_GETPWUID 0
9851 _ACEOF
9852
9853
9854 fi
9855 { echo "$as_me:$LINENO: checking whether getuid is declared" >&5
9856 echo $ECHO_N "checking whether getuid is declared... $ECHO_C" >&6; }
9857 if test "${ac_cv_have_decl_getuid+set}" = set; then
9858   echo $ECHO_N "(cached) $ECHO_C" >&6
9859 else
9860   cat >conftest.$ac_ext <<_ACEOF
9861 /* confdefs.h.  */
9862 _ACEOF
9863 cat confdefs.h >>conftest.$ac_ext
9864 cat >>conftest.$ac_ext <<_ACEOF
9865 /* end confdefs.h.  */
9866 $headers
9867
9868 int
9869 main ()
9870 {
9871 #ifndef getuid
9872   char *p = (char *) getuid;
9873   return !p;
9874 #endif
9875
9876   ;
9877   return 0;
9878 }
9879 _ACEOF
9880 rm -f conftest.$ac_objext
9881 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9882   (eval $ac_compile) 2>conftest.er1
9883   ac_status=$?
9884   grep -v '^ *+' conftest.er1 >conftest.err
9885   rm -f conftest.er1
9886   cat conftest.err >&5
9887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9888   (exit $ac_status); } &&
9889          { ac_try='test -z "$ac_c_werror_flag"
9890                          || test ! -s conftest.err'
9891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9892   (eval $ac_try) 2>&5
9893   ac_status=$?
9894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9895   (exit $ac_status); }; } &&
9896          { ac_try='test -s conftest.$ac_objext'
9897   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9898   (eval $ac_try) 2>&5
9899   ac_status=$?
9900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9901   (exit $ac_status); }; }; then
9902   ac_cv_have_decl_getuid=yes
9903 else
9904   echo "$as_me: failed program was:" >&5
9905 sed 's/^/| /' conftest.$ac_ext >&5
9906
9907         ac_cv_have_decl_getuid=no
9908 fi
9909
9910 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9911 fi
9912 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getuid" >&5
9913 echo "${ECHO_T}$ac_cv_have_decl_getuid" >&6; }
9914 if test $ac_cv_have_decl_getuid = yes; then
9915
9916 cat >>confdefs.h <<_ACEOF
9917 #define HAVE_DECL_GETUID 1
9918 _ACEOF
9919
9920
9921 else
9922   cat >>confdefs.h <<_ACEOF
9923 #define HAVE_DECL_GETUID 0
9924 _ACEOF
9925
9926
9927 fi
9928 { echo "$as_me:$LINENO: checking whether getutent is declared" >&5
9929 echo $ECHO_N "checking whether getutent is declared... $ECHO_C" >&6; }
9930 if test "${ac_cv_have_decl_getutent+set}" = set; then
9931   echo $ECHO_N "(cached) $ECHO_C" >&6
9932 else
9933   cat >conftest.$ac_ext <<_ACEOF
9934 /* confdefs.h.  */
9935 _ACEOF
9936 cat confdefs.h >>conftest.$ac_ext
9937 cat >>conftest.$ac_ext <<_ACEOF
9938 /* end confdefs.h.  */
9939 $headers
9940
9941 int
9942 main ()
9943 {
9944 #ifndef getutent
9945   char *p = (char *) getutent;
9946   return !p;
9947 #endif
9948
9949   ;
9950   return 0;
9951 }
9952 _ACEOF
9953 rm -f conftest.$ac_objext
9954 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9955   (eval $ac_compile) 2>conftest.er1
9956   ac_status=$?
9957   grep -v '^ *+' conftest.er1 >conftest.err
9958   rm -f conftest.er1
9959   cat conftest.err >&5
9960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9961   (exit $ac_status); } &&
9962          { ac_try='test -z "$ac_c_werror_flag"
9963                          || test ! -s conftest.err'
9964   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9965   (eval $ac_try) 2>&5
9966   ac_status=$?
9967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9968   (exit $ac_status); }; } &&
9969          { ac_try='test -s conftest.$ac_objext'
9970   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9971   (eval $ac_try) 2>&5
9972   ac_status=$?
9973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9974   (exit $ac_status); }; }; then
9975   ac_cv_have_decl_getutent=yes
9976 else
9977   echo "$as_me: failed program was:" >&5
9978 sed 's/^/| /' conftest.$ac_ext >&5
9979
9980         ac_cv_have_decl_getutent=no
9981 fi
9982
9983 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9984 fi
9985 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getutent" >&5
9986 echo "${ECHO_T}$ac_cv_have_decl_getutent" >&6; }
9987 if test $ac_cv_have_decl_getutent = yes; then
9988
9989 cat >>confdefs.h <<_ACEOF
9990 #define HAVE_DECL_GETUTENT 1
9991 _ACEOF
9992
9993
9994 else
9995   cat >>confdefs.h <<_ACEOF
9996 #define HAVE_DECL_GETUTENT 0
9997 _ACEOF
9998
9999
10000 fi
10001 { echo "$as_me:$LINENO: checking whether lseek is declared" >&5
10002 echo $ECHO_N "checking whether lseek is declared... $ECHO_C" >&6; }
10003 if test "${ac_cv_have_decl_lseek+set}" = set; then
10004   echo $ECHO_N "(cached) $ECHO_C" >&6
10005 else
10006   cat >conftest.$ac_ext <<_ACEOF
10007 /* confdefs.h.  */
10008 _ACEOF
10009 cat confdefs.h >>conftest.$ac_ext
10010 cat >>conftest.$ac_ext <<_ACEOF
10011 /* end confdefs.h.  */
10012 $headers
10013
10014 int
10015 main ()
10016 {
10017 #ifndef lseek
10018   char *p = (char *) lseek;
10019   return !p;
10020 #endif
10021
10022   ;
10023   return 0;
10024 }
10025 _ACEOF
10026 rm -f conftest.$ac_objext
10027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10028   (eval $ac_compile) 2>conftest.er1
10029   ac_status=$?
10030   grep -v '^ *+' conftest.er1 >conftest.err
10031   rm -f conftest.er1
10032   cat conftest.err >&5
10033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10034   (exit $ac_status); } &&
10035          { ac_try='test -z "$ac_c_werror_flag"
10036                          || test ! -s conftest.err'
10037   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10038   (eval $ac_try) 2>&5
10039   ac_status=$?
10040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10041   (exit $ac_status); }; } &&
10042          { ac_try='test -s conftest.$ac_objext'
10043   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10044   (eval $ac_try) 2>&5
10045   ac_status=$?
10046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10047   (exit $ac_status); }; }; then
10048   ac_cv_have_decl_lseek=yes
10049 else
10050   echo "$as_me: failed program was:" >&5
10051 sed 's/^/| /' conftest.$ac_ext >&5
10052
10053         ac_cv_have_decl_lseek=no
10054 fi
10055
10056 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10057 fi
10058 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_lseek" >&5
10059 echo "${ECHO_T}$ac_cv_have_decl_lseek" >&6; }
10060 if test $ac_cv_have_decl_lseek = yes; then
10061
10062 cat >>confdefs.h <<_ACEOF
10063 #define HAVE_DECL_LSEEK 1
10064 _ACEOF
10065
10066
10067 else
10068   cat >>confdefs.h <<_ACEOF
10069 #define HAVE_DECL_LSEEK 0
10070 _ACEOF
10071
10072
10073 fi
10074 { echo "$as_me:$LINENO: checking whether malloc is declared" >&5
10075 echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6; }
10076 if test "${ac_cv_have_decl_malloc+set}" = set; then
10077   echo $ECHO_N "(cached) $ECHO_C" >&6
10078 else
10079   cat >conftest.$ac_ext <<_ACEOF
10080 /* confdefs.h.  */
10081 _ACEOF
10082 cat confdefs.h >>conftest.$ac_ext
10083 cat >>conftest.$ac_ext <<_ACEOF
10084 /* end confdefs.h.  */
10085 $headers
10086
10087 int
10088 main ()
10089 {
10090 #ifndef malloc
10091   char *p = (char *) malloc;
10092   return !p;
10093 #endif
10094
10095   ;
10096   return 0;
10097 }
10098 _ACEOF
10099 rm -f conftest.$ac_objext
10100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10101   (eval $ac_compile) 2>conftest.er1
10102   ac_status=$?
10103   grep -v '^ *+' conftest.er1 >conftest.err
10104   rm -f conftest.er1
10105   cat conftest.err >&5
10106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10107   (exit $ac_status); } &&
10108          { ac_try='test -z "$ac_c_werror_flag"
10109                          || test ! -s conftest.err'
10110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10111   (eval $ac_try) 2>&5
10112   ac_status=$?
10113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10114   (exit $ac_status); }; } &&
10115          { ac_try='test -s conftest.$ac_objext'
10116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10117   (eval $ac_try) 2>&5
10118   ac_status=$?
10119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10120   (exit $ac_status); }; }; then
10121   ac_cv_have_decl_malloc=yes
10122 else
10123   echo "$as_me: failed program was:" >&5
10124 sed 's/^/| /' conftest.$ac_ext >&5
10125
10126         ac_cv_have_decl_malloc=no
10127 fi
10128
10129 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10130 fi
10131 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
10132 echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6; }
10133 if test $ac_cv_have_decl_malloc = yes; then
10134
10135 cat >>confdefs.h <<_ACEOF
10136 #define HAVE_DECL_MALLOC 1
10137 _ACEOF
10138
10139
10140 else
10141   cat >>confdefs.h <<_ACEOF
10142 #define HAVE_DECL_MALLOC 0
10143 _ACEOF
10144
10145
10146 fi
10147 { echo "$as_me:$LINENO: checking whether memchr is declared" >&5
10148 echo $ECHO_N "checking whether memchr is declared... $ECHO_C" >&6; }
10149 if test "${ac_cv_have_decl_memchr+set}" = set; then
10150   echo $ECHO_N "(cached) $ECHO_C" >&6
10151 else
10152   cat >conftest.$ac_ext <<_ACEOF
10153 /* confdefs.h.  */
10154 _ACEOF
10155 cat confdefs.h >>conftest.$ac_ext
10156 cat >>conftest.$ac_ext <<_ACEOF
10157 /* end confdefs.h.  */
10158 $headers
10159
10160 int
10161 main ()
10162 {
10163 #ifndef memchr
10164   char *p = (char *) memchr;
10165   return !p;
10166 #endif
10167
10168   ;
10169   return 0;
10170 }
10171 _ACEOF
10172 rm -f conftest.$ac_objext
10173 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10174   (eval $ac_compile) 2>conftest.er1
10175   ac_status=$?
10176   grep -v '^ *+' conftest.er1 >conftest.err
10177   rm -f conftest.er1
10178   cat conftest.err >&5
10179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10180   (exit $ac_status); } &&
10181          { ac_try='test -z "$ac_c_werror_flag"
10182                          || test ! -s conftest.err'
10183   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10184   (eval $ac_try) 2>&5
10185   ac_status=$?
10186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10187   (exit $ac_status); }; } &&
10188          { ac_try='test -s conftest.$ac_objext'
10189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10190   (eval $ac_try) 2>&5
10191   ac_status=$?
10192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10193   (exit $ac_status); }; }; then
10194   ac_cv_have_decl_memchr=yes
10195 else
10196   echo "$as_me: failed program was:" >&5
10197 sed 's/^/| /' conftest.$ac_ext >&5
10198
10199         ac_cv_have_decl_memchr=no
10200 fi
10201
10202 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10203 fi
10204 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_memchr" >&5
10205 echo "${ECHO_T}$ac_cv_have_decl_memchr" >&6; }
10206 if test $ac_cv_have_decl_memchr = yes; then
10207
10208 cat >>confdefs.h <<_ACEOF
10209 #define HAVE_DECL_MEMCHR 1
10210 _ACEOF
10211
10212
10213 else
10214   cat >>confdefs.h <<_ACEOF
10215 #define HAVE_DECL_MEMCHR 0
10216 _ACEOF
10217
10218
10219 fi
10220 { echo "$as_me:$LINENO: checking whether memrchr is declared" >&5
10221 echo $ECHO_N "checking whether memrchr is declared... $ECHO_C" >&6; }
10222 if test "${ac_cv_have_decl_memrchr+set}" = set; then
10223   echo $ECHO_N "(cached) $ECHO_C" >&6
10224 else
10225   cat >conftest.$ac_ext <<_ACEOF
10226 /* confdefs.h.  */
10227 _ACEOF
10228 cat confdefs.h >>conftest.$ac_ext
10229 cat >>conftest.$ac_ext <<_ACEOF
10230 /* end confdefs.h.  */
10231 $headers
10232
10233 int
10234 main ()
10235 {
10236 #ifndef memrchr
10237   char *p = (char *) memrchr;
10238   return !p;
10239 #endif
10240
10241   ;
10242   return 0;
10243 }
10244 _ACEOF
10245 rm -f conftest.$ac_objext
10246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10247   (eval $ac_compile) 2>conftest.er1
10248   ac_status=$?
10249   grep -v '^ *+' conftest.er1 >conftest.err
10250   rm -f conftest.er1
10251   cat conftest.err >&5
10252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10253   (exit $ac_status); } &&
10254          { ac_try='test -z "$ac_c_werror_flag"
10255                          || test ! -s conftest.err'
10256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10257   (eval $ac_try) 2>&5
10258   ac_status=$?
10259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10260   (exit $ac_status); }; } &&
10261          { ac_try='test -s conftest.$ac_objext'
10262   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10263   (eval $ac_try) 2>&5
10264   ac_status=$?
10265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10266   (exit $ac_status); }; }; then
10267   ac_cv_have_decl_memrchr=yes
10268 else
10269   echo "$as_me: failed program was:" >&5
10270 sed 's/^/| /' conftest.$ac_ext >&5
10271
10272         ac_cv_have_decl_memrchr=no
10273 fi
10274
10275 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10276 fi
10277 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_memrchr" >&5
10278 echo "${ECHO_T}$ac_cv_have_decl_memrchr" >&6; }
10279 if test $ac_cv_have_decl_memrchr = yes; then
10280
10281 cat >>confdefs.h <<_ACEOF
10282 #define HAVE_DECL_MEMRCHR 1
10283 _ACEOF
10284
10285
10286 else
10287   cat >>confdefs.h <<_ACEOF
10288 #define HAVE_DECL_MEMRCHR 0
10289 _ACEOF
10290
10291
10292 fi
10293 { echo "$as_me:$LINENO: checking whether nanosleep is declared" >&5
10294 echo $ECHO_N "checking whether nanosleep is declared... $ECHO_C" >&6; }
10295 if test "${ac_cv_have_decl_nanosleep+set}" = set; then
10296   echo $ECHO_N "(cached) $ECHO_C" >&6
10297 else
10298   cat >conftest.$ac_ext <<_ACEOF
10299 /* confdefs.h.  */
10300 _ACEOF
10301 cat confdefs.h >>conftest.$ac_ext
10302 cat >>conftest.$ac_ext <<_ACEOF
10303 /* end confdefs.h.  */
10304 $headers
10305
10306 int
10307 main ()
10308 {
10309 #ifndef nanosleep
10310   char *p = (char *) nanosleep;
10311   return !p;
10312 #endif
10313
10314   ;
10315   return 0;
10316 }
10317 _ACEOF
10318 rm -f conftest.$ac_objext
10319 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10320   (eval $ac_compile) 2>conftest.er1
10321   ac_status=$?
10322   grep -v '^ *+' conftest.er1 >conftest.err
10323   rm -f conftest.er1
10324   cat conftest.err >&5
10325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10326   (exit $ac_status); } &&
10327          { ac_try='test -z "$ac_c_werror_flag"
10328                          || test ! -s conftest.err'
10329   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10330   (eval $ac_try) 2>&5
10331   ac_status=$?
10332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10333   (exit $ac_status); }; } &&
10334          { ac_try='test -s conftest.$ac_objext'
10335   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10336   (eval $ac_try) 2>&5
10337   ac_status=$?
10338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10339   (exit $ac_status); }; }; then
10340   ac_cv_have_decl_nanosleep=yes
10341 else
10342   echo "$as_me: failed program was:" >&5
10343 sed 's/^/| /' conftest.$ac_ext >&5
10344
10345         ac_cv_have_decl_nanosleep=no
10346 fi
10347
10348 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10349 fi
10350 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_nanosleep" >&5
10351 echo "${ECHO_T}$ac_cv_have_decl_nanosleep" >&6; }
10352 if test $ac_cv_have_decl_nanosleep = yes; then
10353
10354 cat >>confdefs.h <<_ACEOF
10355 #define HAVE_DECL_NANOSLEEP 1
10356 _ACEOF
10357
10358
10359 else
10360   cat >>confdefs.h <<_ACEOF
10361 #define HAVE_DECL_NANOSLEEP 0
10362 _ACEOF
10363
10364
10365 fi
10366 { echo "$as_me:$LINENO: checking whether realloc is declared" >&5
10367 echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6; }
10368 if test "${ac_cv_have_decl_realloc+set}" = set; then
10369   echo $ECHO_N "(cached) $ECHO_C" >&6
10370 else
10371   cat >conftest.$ac_ext <<_ACEOF
10372 /* confdefs.h.  */
10373 _ACEOF
10374 cat confdefs.h >>conftest.$ac_ext
10375 cat >>conftest.$ac_ext <<_ACEOF
10376 /* end confdefs.h.  */
10377 $headers
10378
10379 int
10380 main ()
10381 {
10382 #ifndef realloc
10383   char *p = (char *) realloc;
10384   return !p;
10385 #endif
10386
10387   ;
10388   return 0;
10389 }
10390 _ACEOF
10391 rm -f conftest.$ac_objext
10392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10393   (eval $ac_compile) 2>conftest.er1
10394   ac_status=$?
10395   grep -v '^ *+' conftest.er1 >conftest.err
10396   rm -f conftest.er1
10397   cat conftest.err >&5
10398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10399   (exit $ac_status); } &&
10400          { ac_try='test -z "$ac_c_werror_flag"
10401                          || test ! -s conftest.err'
10402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10403   (eval $ac_try) 2>&5
10404   ac_status=$?
10405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10406   (exit $ac_status); }; } &&
10407          { ac_try='test -s conftest.$ac_objext'
10408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10409   (eval $ac_try) 2>&5
10410   ac_status=$?
10411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10412   (exit $ac_status); }; }; then
10413   ac_cv_have_decl_realloc=yes
10414 else
10415   echo "$as_me: failed program was:" >&5
10416 sed 's/^/| /' conftest.$ac_ext >&5
10417
10418         ac_cv_have_decl_realloc=no
10419 fi
10420
10421 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10422 fi
10423 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
10424 echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6; }
10425 if test $ac_cv_have_decl_realloc = yes; then
10426
10427 cat >>confdefs.h <<_ACEOF
10428 #define HAVE_DECL_REALLOC 1
10429 _ACEOF
10430
10431
10432 else
10433   cat >>confdefs.h <<_ACEOF
10434 #define HAVE_DECL_REALLOC 0
10435 _ACEOF
10436
10437
10438 fi
10439 { echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5
10440 echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6; }
10441 if test "${ac_cv_have_decl_stpcpy+set}" = set; then
10442   echo $ECHO_N "(cached) $ECHO_C" >&6
10443 else
10444   cat >conftest.$ac_ext <<_ACEOF
10445 /* confdefs.h.  */
10446 _ACEOF
10447 cat confdefs.h >>conftest.$ac_ext
10448 cat >>conftest.$ac_ext <<_ACEOF
10449 /* end confdefs.h.  */
10450 $headers
10451
10452 int
10453 main ()
10454 {
10455 #ifndef stpcpy
10456   char *p = (char *) stpcpy;
10457   return !p;
10458 #endif
10459
10460   ;
10461   return 0;
10462 }
10463 _ACEOF
10464 rm -f conftest.$ac_objext
10465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10466   (eval $ac_compile) 2>conftest.er1
10467   ac_status=$?
10468   grep -v '^ *+' conftest.er1 >conftest.err
10469   rm -f conftest.er1
10470   cat conftest.err >&5
10471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10472   (exit $ac_status); } &&
10473          { ac_try='test -z "$ac_c_werror_flag"
10474                          || test ! -s conftest.err'
10475   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10476   (eval $ac_try) 2>&5
10477   ac_status=$?
10478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10479   (exit $ac_status); }; } &&
10480          { ac_try='test -s conftest.$ac_objext'
10481   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10482   (eval $ac_try) 2>&5
10483   ac_status=$?
10484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10485   (exit $ac_status); }; }; then
10486   ac_cv_have_decl_stpcpy=yes
10487 else
10488   echo "$as_me: failed program was:" >&5
10489 sed 's/^/| /' conftest.$ac_ext >&5
10490
10491         ac_cv_have_decl_stpcpy=no
10492 fi
10493
10494 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10495 fi
10496 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5
10497 echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6; }
10498 if test $ac_cv_have_decl_stpcpy = yes; then
10499
10500 cat >>confdefs.h <<_ACEOF
10501 #define HAVE_DECL_STPCPY 1
10502 _ACEOF
10503
10504
10505 else
10506   cat >>confdefs.h <<_ACEOF
10507 #define HAVE_DECL_STPCPY 0
10508 _ACEOF
10509
10510
10511 fi
10512 { echo "$as_me:$LINENO: checking whether strndup is declared" >&5
10513 echo $ECHO_N "checking whether strndup is declared... $ECHO_C" >&6; }
10514 if test "${ac_cv_have_decl_strndup+set}" = set; then
10515   echo $ECHO_N "(cached) $ECHO_C" >&6
10516 else
10517   cat >conftest.$ac_ext <<_ACEOF
10518 /* confdefs.h.  */
10519 _ACEOF
10520 cat confdefs.h >>conftest.$ac_ext
10521 cat >>conftest.$ac_ext <<_ACEOF
10522 /* end confdefs.h.  */
10523 $headers
10524
10525 int
10526 main ()
10527 {
10528 #ifndef strndup
10529   char *p = (char *) strndup;
10530   return !p;
10531 #endif
10532
10533   ;
10534   return 0;
10535 }
10536 _ACEOF
10537 rm -f conftest.$ac_objext
10538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10539   (eval $ac_compile) 2>conftest.er1
10540   ac_status=$?
10541   grep -v '^ *+' conftest.er1 >conftest.err
10542   rm -f conftest.er1
10543   cat conftest.err >&5
10544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10545   (exit $ac_status); } &&
10546          { ac_try='test -z "$ac_c_werror_flag"
10547                          || test ! -s conftest.err'
10548   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10549   (eval $ac_try) 2>&5
10550   ac_status=$?
10551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10552   (exit $ac_status); }; } &&
10553          { ac_try='test -s conftest.$ac_objext'
10554   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10555   (eval $ac_try) 2>&5
10556   ac_status=$?
10557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10558   (exit $ac_status); }; }; then
10559   ac_cv_have_decl_strndup=yes
10560 else
10561   echo "$as_me: failed program was:" >&5
10562 sed 's/^/| /' conftest.$ac_ext >&5
10563
10564         ac_cv_have_decl_strndup=no
10565 fi
10566
10567 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10568 fi
10569 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strndup" >&5
10570 echo "${ECHO_T}$ac_cv_have_decl_strndup" >&6; }
10571 if test $ac_cv_have_decl_strndup = yes; then
10572
10573 cat >>confdefs.h <<_ACEOF
10574 #define HAVE_DECL_STRNDUP 1
10575 _ACEOF
10576
10577
10578 else
10579   cat >>confdefs.h <<_ACEOF
10580 #define HAVE_DECL_STRNDUP 0
10581 _ACEOF
10582
10583
10584 fi
10585 { echo "$as_me:$LINENO: checking whether strnlen is declared" >&5
10586 echo $ECHO_N "checking whether strnlen is declared... $ECHO_C" >&6; }
10587 if test "${ac_cv_have_decl_strnlen+set}" = set; then
10588   echo $ECHO_N "(cached) $ECHO_C" >&6
10589 else
10590   cat >conftest.$ac_ext <<_ACEOF
10591 /* confdefs.h.  */
10592 _ACEOF
10593 cat confdefs.h >>conftest.$ac_ext
10594 cat >>conftest.$ac_ext <<_ACEOF
10595 /* end confdefs.h.  */
10596 $headers
10597
10598 int
10599 main ()
10600 {
10601 #ifndef strnlen
10602   char *p = (char *) strnlen;
10603   return !p;
10604 #endif
10605
10606   ;
10607   return 0;
10608 }
10609 _ACEOF
10610 rm -f conftest.$ac_objext
10611 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10612   (eval $ac_compile) 2>conftest.er1
10613   ac_status=$?
10614   grep -v '^ *+' conftest.er1 >conftest.err
10615   rm -f conftest.er1
10616   cat conftest.err >&5
10617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10618   (exit $ac_status); } &&
10619          { ac_try='test -z "$ac_c_werror_flag"
10620                          || test ! -s conftest.err'
10621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10622   (eval $ac_try) 2>&5
10623   ac_status=$?
10624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10625   (exit $ac_status); }; } &&
10626          { ac_try='test -s conftest.$ac_objext'
10627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10628   (eval $ac_try) 2>&5
10629   ac_status=$?
10630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10631   (exit $ac_status); }; }; then
10632   ac_cv_have_decl_strnlen=yes
10633 else
10634   echo "$as_me: failed program was:" >&5
10635 sed 's/^/| /' conftest.$ac_ext >&5
10636
10637         ac_cv_have_decl_strnlen=no
10638 fi
10639
10640 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10641 fi
10642 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strnlen" >&5
10643 echo "${ECHO_T}$ac_cv_have_decl_strnlen" >&6; }
10644 if test $ac_cv_have_decl_strnlen = yes; then
10645
10646 cat >>confdefs.h <<_ACEOF
10647 #define HAVE_DECL_STRNLEN 1
10648 _ACEOF
10649
10650
10651 else
10652   cat >>confdefs.h <<_ACEOF
10653 #define HAVE_DECL_STRNLEN 0
10654 _ACEOF
10655
10656
10657 fi
10658 { echo "$as_me:$LINENO: checking whether strstr is declared" >&5
10659 echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6; }
10660 if test "${ac_cv_have_decl_strstr+set}" = set; then
10661   echo $ECHO_N "(cached) $ECHO_C" >&6
10662 else
10663   cat >conftest.$ac_ext <<_ACEOF
10664 /* confdefs.h.  */
10665 _ACEOF
10666 cat confdefs.h >>conftest.$ac_ext
10667 cat >>conftest.$ac_ext <<_ACEOF
10668 /* end confdefs.h.  */
10669 $headers
10670
10671 int
10672 main ()
10673 {
10674 #ifndef strstr
10675   char *p = (char *) strstr;
10676   return !p;
10677 #endif
10678
10679   ;
10680   return 0;
10681 }
10682 _ACEOF
10683 rm -f conftest.$ac_objext
10684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10685   (eval $ac_compile) 2>conftest.er1
10686   ac_status=$?
10687   grep -v '^ *+' conftest.er1 >conftest.err
10688   rm -f conftest.er1
10689   cat conftest.err >&5
10690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10691   (exit $ac_status); } &&
10692          { ac_try='test -z "$ac_c_werror_flag"
10693                          || test ! -s conftest.err'
10694   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&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   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10701   (eval $ac_try) 2>&5
10702   ac_status=$?
10703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10704   (exit $ac_status); }; }; then
10705   ac_cv_have_decl_strstr=yes
10706 else
10707   echo "$as_me: failed program was:" >&5
10708 sed 's/^/| /' conftest.$ac_ext >&5
10709
10710         ac_cv_have_decl_strstr=no
10711 fi
10712
10713 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10714 fi
10715 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
10716 echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6; }
10717 if test $ac_cv_have_decl_strstr = yes; then
10718
10719 cat >>confdefs.h <<_ACEOF
10720 #define HAVE_DECL_STRSTR 1
10721 _ACEOF
10722
10723
10724 else
10725   cat >>confdefs.h <<_ACEOF
10726 #define HAVE_DECL_STRSTR 0
10727 _ACEOF
10728
10729
10730 fi
10731 { echo "$as_me:$LINENO: checking whether strtoul is declared" >&5
10732 echo $ECHO_N "checking whether strtoul is declared... $ECHO_C" >&6; }
10733 if test "${ac_cv_have_decl_strtoul+set}" = set; then
10734   echo $ECHO_N "(cached) $ECHO_C" >&6
10735 else
10736   cat >conftest.$ac_ext <<_ACEOF
10737 /* confdefs.h.  */
10738 _ACEOF
10739 cat confdefs.h >>conftest.$ac_ext
10740 cat >>conftest.$ac_ext <<_ACEOF
10741 /* end confdefs.h.  */
10742 $headers
10743
10744 int
10745 main ()
10746 {
10747 #ifndef strtoul
10748   char *p = (char *) strtoul;
10749   return !p;
10750 #endif
10751
10752   ;
10753   return 0;
10754 }
10755 _ACEOF
10756 rm -f conftest.$ac_objext
10757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10758   (eval $ac_compile) 2>conftest.er1
10759   ac_status=$?
10760   grep -v '^ *+' conftest.er1 >conftest.err
10761   rm -f conftest.er1
10762   cat conftest.err >&5
10763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10764   (exit $ac_status); } &&
10765          { ac_try='test -z "$ac_c_werror_flag"
10766                          || test ! -s conftest.err'
10767   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10768   (eval $ac_try) 2>&5
10769   ac_status=$?
10770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10771   (exit $ac_status); }; } &&
10772          { ac_try='test -s conftest.$ac_objext'
10773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10774   (eval $ac_try) 2>&5
10775   ac_status=$?
10776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10777   (exit $ac_status); }; }; then
10778   ac_cv_have_decl_strtoul=yes
10779 else
10780   echo "$as_me: failed program was:" >&5
10781 sed 's/^/| /' conftest.$ac_ext >&5
10782
10783         ac_cv_have_decl_strtoul=no
10784 fi
10785
10786 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10787 fi
10788 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoul" >&5
10789 echo "${ECHO_T}$ac_cv_have_decl_strtoul" >&6; }
10790 if test $ac_cv_have_decl_strtoul = yes; then
10791
10792 cat >>confdefs.h <<_ACEOF
10793 #define HAVE_DECL_STRTOUL 1
10794 _ACEOF
10795
10796
10797 else
10798   cat >>confdefs.h <<_ACEOF
10799 #define HAVE_DECL_STRTOUL 0
10800 _ACEOF
10801
10802
10803 fi
10804 { echo "$as_me:$LINENO: checking whether strtoull is declared" >&5
10805 echo $ECHO_N "checking whether strtoull is declared... $ECHO_C" >&6; }
10806 if test "${ac_cv_have_decl_strtoull+set}" = set; then
10807   echo $ECHO_N "(cached) $ECHO_C" >&6
10808 else
10809   cat >conftest.$ac_ext <<_ACEOF
10810 /* confdefs.h.  */
10811 _ACEOF
10812 cat confdefs.h >>conftest.$ac_ext
10813 cat >>conftest.$ac_ext <<_ACEOF
10814 /* end confdefs.h.  */
10815 $headers
10816
10817 int
10818 main ()
10819 {
10820 #ifndef strtoull
10821   char *p = (char *) strtoull;
10822   return !p;
10823 #endif
10824
10825   ;
10826   return 0;
10827 }
10828 _ACEOF
10829 rm -f conftest.$ac_objext
10830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10831   (eval $ac_compile) 2>conftest.er1
10832   ac_status=$?
10833   grep -v '^ *+' conftest.er1 >conftest.err
10834   rm -f conftest.er1
10835   cat conftest.err >&5
10836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10837   (exit $ac_status); } &&
10838          { ac_try='test -z "$ac_c_werror_flag"
10839                          || test ! -s conftest.err'
10840   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10841   (eval $ac_try) 2>&5
10842   ac_status=$?
10843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10844   (exit $ac_status); }; } &&
10845          { ac_try='test -s conftest.$ac_objext'
10846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10847   (eval $ac_try) 2>&5
10848   ac_status=$?
10849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10850   (exit $ac_status); }; }; then
10851   ac_cv_have_decl_strtoull=yes
10852 else
10853   echo "$as_me: failed program was:" >&5
10854 sed 's/^/| /' conftest.$ac_ext >&5
10855
10856         ac_cv_have_decl_strtoull=no
10857 fi
10858
10859 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10860 fi
10861 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoull" >&5
10862 echo "${ECHO_T}$ac_cv_have_decl_strtoull" >&6; }
10863 if test $ac_cv_have_decl_strtoull = yes; then
10864
10865 cat >>confdefs.h <<_ACEOF
10866 #define HAVE_DECL_STRTOULL 1
10867 _ACEOF
10868
10869
10870 else
10871   cat >>confdefs.h <<_ACEOF
10872 #define HAVE_DECL_STRTOULL 0
10873 _ACEOF
10874
10875
10876 fi
10877 { echo "$as_me:$LINENO: checking whether ttyname is declared" >&5
10878 echo $ECHO_N "checking whether ttyname is declared... $ECHO_C" >&6; }
10879 if test "${ac_cv_have_decl_ttyname+set}" = set; then
10880   echo $ECHO_N "(cached) $ECHO_C" >&6
10881 else
10882   cat >conftest.$ac_ext <<_ACEOF
10883 /* confdefs.h.  */
10884 _ACEOF
10885 cat confdefs.h >>conftest.$ac_ext
10886 cat >>conftest.$ac_ext <<_ACEOF
10887 /* end confdefs.h.  */
10888 $headers
10889
10890 int
10891 main ()
10892 {
10893 #ifndef ttyname
10894   char *p = (char *) ttyname;
10895   return !p;
10896 #endif
10897
10898   ;
10899   return 0;
10900 }
10901 _ACEOF
10902 rm -f conftest.$ac_objext
10903 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10904   (eval $ac_compile) 2>conftest.er1
10905   ac_status=$?
10906   grep -v '^ *+' conftest.er1 >conftest.err
10907   rm -f conftest.er1
10908   cat conftest.err >&5
10909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10910   (exit $ac_status); } &&
10911          { ac_try='test -z "$ac_c_werror_flag"
10912                          || test ! -s conftest.err'
10913   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10914   (eval $ac_try) 2>&5
10915   ac_status=$?
10916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10917   (exit $ac_status); }; } &&
10918          { ac_try='test -s conftest.$ac_objext'
10919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10920   (eval $ac_try) 2>&5
10921   ac_status=$?
10922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10923   (exit $ac_status); }; }; then
10924   ac_cv_have_decl_ttyname=yes
10925 else
10926   echo "$as_me: failed program was:" >&5
10927 sed 's/^/| /' conftest.$ac_ext >&5
10928
10929         ac_cv_have_decl_ttyname=no
10930 fi
10931
10932 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10933 fi
10934 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_ttyname" >&5
10935 echo "${ECHO_T}$ac_cv_have_decl_ttyname" >&6; }
10936 if test $ac_cv_have_decl_ttyname = yes; then
10937
10938 cat >>confdefs.h <<_ACEOF
10939 #define HAVE_DECL_TTYNAME 1
10940 _ACEOF
10941
10942
10943 else
10944   cat >>confdefs.h <<_ACEOF
10945 #define HAVE_DECL_TTYNAME 0
10946 _ACEOF
10947
10948
10949 fi
10950
10951
10952
10953 { echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
10954 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6; }
10955 if test "${ac_cv_header_stdbool_h+set}" = set; then
10956   echo $ECHO_N "(cached) $ECHO_C" >&6
10957 else
10958   cat >conftest.$ac_ext <<_ACEOF
10959 /* confdefs.h.  */
10960 _ACEOF
10961 cat confdefs.h >>conftest.$ac_ext
10962 cat >>conftest.$ac_ext <<_ACEOF
10963 /* end confdefs.h.  */
10964
10965           #include <stdbool.h>
10966           #ifndef bool
10967            "error: bool is not defined"
10968           #endif
10969           #ifndef false
10970            "error: false is not defined"
10971           #endif
10972           #if false
10973            "error: false is not 0"
10974           #endif
10975           #ifndef true
10976            "error: true is not defined"
10977           #endif
10978           #if true != 1
10979            "error: true is not 1"
10980           #endif
10981           #ifndef __bool_true_false_are_defined
10982            "error: __bool_true_false_are_defined is not defined"
10983           #endif
10984
10985           struct s { _Bool s: 1; _Bool t; } s;
10986
10987           char a[true == 1 ? 1 : -1];
10988           char b[false == 0 ? 1 : -1];
10989           char c[__bool_true_false_are_defined == 1 ? 1 : -1];
10990           char d[(bool) -0.5 == true ? 1 : -1];
10991           bool e = &s;
10992           char f[(_Bool) -0.0 == false ? 1 : -1];
10993           char g[true];
10994           char h[sizeof (_Bool)];
10995           char i[sizeof s.t];
10996           enum { j = false, k = true, l = false * true, m = true * 256 };
10997           _Bool n[m];
10998           char o[sizeof n == m * sizeof n[0] ? 1 : -1];
10999           char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
11000           #if defined __xlc__ || defined __GNUC__
11001            /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
11002               reported by James Lemley on 2005-10-05; see
11003               http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
11004               This test is not quite right, since xlc is allowed to
11005               reject this program, as the initializer for xlcbug is
11006               not one of the forms that C requires support for.
11007               However, doing the test right would require a run-time
11008               test, and that would make cross-compilation harder.
11009               Let us hope that IBM fixes the xlc bug, and also adds
11010               support for this kind of constant expression.  In the
11011               meantime, this test will reject xlc, which is OK, since
11012               our stdbool.h substitute should suffice.  We also test
11013               this with GCC, where it should work, to detect more
11014               quickly whether someone messes up the test in the
11015               future.  */
11016            char digs[] = "0123456789";
11017            int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
11018           #endif
11019           /* Catch a bug in an HP-UX C compiler.  See
11020              http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
11021              http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
11022            */
11023           _Bool q = true;
11024           _Bool *pq = &q;
11025
11026 int
11027 main ()
11028 {
11029
11030           *pq |= q;
11031           *pq |= ! q;
11032           /* Refer to every declared value, to avoid compiler optimizations.  */
11033           return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
11034                   + !m + !n + !o + !p + !q + !pq);
11035
11036   ;
11037   return 0;
11038 }
11039 _ACEOF
11040 rm -f conftest.$ac_objext
11041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11042   (eval $ac_compile) 2>conftest.er1
11043   ac_status=$?
11044   grep -v '^ *+' conftest.er1 >conftest.err
11045   rm -f conftest.er1
11046   cat conftest.err >&5
11047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11048   (exit $ac_status); } &&
11049          { ac_try='test -z "$ac_c_werror_flag"
11050                          || test ! -s conftest.err'
11051   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11052   (eval $ac_try) 2>&5
11053   ac_status=$?
11054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11055   (exit $ac_status); }; } &&
11056          { ac_try='test -s conftest.$ac_objext'
11057   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11058   (eval $ac_try) 2>&5
11059   ac_status=$?
11060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11061   (exit $ac_status); }; }; then
11062   ac_cv_header_stdbool_h=yes
11063 else
11064   echo "$as_me: failed program was:" >&5
11065 sed 's/^/| /' conftest.$ac_ext >&5
11066
11067         ac_cv_header_stdbool_h=no
11068 fi
11069
11070 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11071 fi
11072 { echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
11073 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; }
11074    { echo "$as_me:$LINENO: checking for _Bool" >&5
11075 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
11076 if test "${ac_cv_type__Bool+set}" = set; then
11077   echo $ECHO_N "(cached) $ECHO_C" >&6
11078 else
11079   cat >conftest.$ac_ext <<_ACEOF
11080 /* confdefs.h.  */
11081 _ACEOF
11082 cat confdefs.h >>conftest.$ac_ext
11083 cat >>conftest.$ac_ext <<_ACEOF
11084 /* end confdefs.h.  */
11085 $ac_includes_default
11086 typedef _Bool ac__type_new_;
11087 int
11088 main ()
11089 {
11090 if ((ac__type_new_ *) 0)
11091   return 0;
11092 if (sizeof (ac__type_new_))
11093   return 0;
11094   ;
11095   return 0;
11096 }
11097 _ACEOF
11098 rm -f conftest.$ac_objext
11099 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11100   (eval $ac_compile) 2>conftest.er1
11101   ac_status=$?
11102   grep -v '^ *+' conftest.er1 >conftest.err
11103   rm -f conftest.er1
11104   cat conftest.err >&5
11105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11106   (exit $ac_status); } &&
11107          { ac_try='test -z "$ac_c_werror_flag"
11108                          || test ! -s conftest.err'
11109   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11110   (eval $ac_try) 2>&5
11111   ac_status=$?
11112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11113   (exit $ac_status); }; } &&
11114          { ac_try='test -s conftest.$ac_objext'
11115   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11116   (eval $ac_try) 2>&5
11117   ac_status=$?
11118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11119   (exit $ac_status); }; }; then
11120   ac_cv_type__Bool=yes
11121 else
11122   echo "$as_me: failed program was:" >&5
11123 sed 's/^/| /' conftest.$ac_ext >&5
11124
11125         ac_cv_type__Bool=no
11126 fi
11127
11128 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11129 fi
11130 { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
11131 echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
11132 if test $ac_cv_type__Bool = yes; then
11133
11134 cat >>confdefs.h <<_ACEOF
11135 #define HAVE__BOOL 1
11136 _ACEOF
11137
11138
11139 fi
11140
11141    if test $ac_cv_header_stdbool_h = yes; then
11142
11143 cat >>confdefs.h <<\_ACEOF
11144 #define HAVE_STDBOOL_H 1
11145 _ACEOF
11146
11147    fi
11148
11149
11150
11151   # Define two additional variables used in the Makefile substitution.
11152
11153   if test "$ac_cv_header_stdbool_h" = yes; then
11154     STDBOOL_H=''
11155   else
11156     STDBOOL_H='stdbool.h'
11157   fi
11158
11159
11160   if test "$ac_cv_type__Bool" = yes; then
11161     HAVE__BOOL=1
11162   else
11163     HAVE__BOOL=0
11164   fi
11165
11166
11167 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
11168 # for constant arguments.  Useless!
11169 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
11170 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
11171 if test "${ac_cv_working_alloca_h+set}" = set; then
11172   echo $ECHO_N "(cached) $ECHO_C" >&6
11173 else
11174   cat >conftest.$ac_ext <<_ACEOF
11175 /* confdefs.h.  */
11176 _ACEOF
11177 cat confdefs.h >>conftest.$ac_ext
11178 cat >>conftest.$ac_ext <<_ACEOF
11179 /* end confdefs.h.  */
11180 #include <alloca.h>
11181 int
11182 main ()
11183 {
11184 char *p = (char *) alloca (2 * sizeof (int));
11185   ;
11186   return 0;
11187 }
11188 _ACEOF
11189 rm -f conftest.$ac_objext conftest$ac_exeext
11190 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11191   (eval $ac_link) 2>conftest.er1
11192   ac_status=$?
11193   grep -v '^ *+' conftest.er1 >conftest.err
11194   rm -f conftest.er1
11195   cat conftest.err >&5
11196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11197   (exit $ac_status); } &&
11198          { ac_try='test -z "$ac_c_werror_flag"
11199                          || test ! -s conftest.err'
11200   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11201   (eval $ac_try) 2>&5
11202   ac_status=$?
11203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11204   (exit $ac_status); }; } &&
11205          { ac_try='test -s conftest$ac_exeext'
11206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11207   (eval $ac_try) 2>&5
11208   ac_status=$?
11209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11210   (exit $ac_status); }; }; then
11211   ac_cv_working_alloca_h=yes
11212 else
11213   echo "$as_me: failed program was:" >&5
11214 sed 's/^/| /' conftest.$ac_ext >&5
11215
11216         ac_cv_working_alloca_h=no
11217 fi
11218
11219 rm -f conftest.err conftest.$ac_objext \
11220       conftest$ac_exeext conftest.$ac_ext
11221 fi
11222 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
11223 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
11224 if test $ac_cv_working_alloca_h = yes; then
11225
11226 cat >>confdefs.h <<\_ACEOF
11227 #define HAVE_ALLOCA_H 1
11228 _ACEOF
11229
11230 fi
11231
11232 { echo "$as_me:$LINENO: checking for alloca" >&5
11233 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
11234 if test "${ac_cv_func_alloca_works+set}" = set; then
11235   echo $ECHO_N "(cached) $ECHO_C" >&6
11236 else
11237   cat >conftest.$ac_ext <<_ACEOF
11238 /* confdefs.h.  */
11239 _ACEOF
11240 cat confdefs.h >>conftest.$ac_ext
11241 cat >>conftest.$ac_ext <<_ACEOF
11242 /* end confdefs.h.  */
11243 #ifdef __GNUC__
11244 # define alloca __builtin_alloca
11245 #else
11246 # ifdef _MSC_VER
11247 #  include <malloc.h>
11248 #  define alloca _alloca
11249 # else
11250 #  if HAVE_ALLOCA_H
11251 #   include <alloca.h>
11252 #  else
11253 #   ifdef _AIX
11254  #pragma alloca
11255 #   else
11256 #    ifndef alloca /* predefined by HP cc +Olibcalls */
11257 char *alloca ();
11258 #    endif
11259 #   endif
11260 #  endif
11261 # endif
11262 #endif
11263
11264 int
11265 main ()
11266 {
11267 char *p = (char *) alloca (1);
11268   ;
11269   return 0;
11270 }
11271 _ACEOF
11272 rm -f conftest.$ac_objext conftest$ac_exeext
11273 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11274   (eval $ac_link) 2>conftest.er1
11275   ac_status=$?
11276   grep -v '^ *+' conftest.er1 >conftest.err
11277   rm -f conftest.er1
11278   cat conftest.err >&5
11279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11280   (exit $ac_status); } &&
11281          { ac_try='test -z "$ac_c_werror_flag"
11282                          || test ! -s conftest.err'
11283   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11284   (eval $ac_try) 2>&5
11285   ac_status=$?
11286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11287   (exit $ac_status); }; } &&
11288          { ac_try='test -s conftest$ac_exeext'
11289   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11290   (eval $ac_try) 2>&5
11291   ac_status=$?
11292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11293   (exit $ac_status); }; }; then
11294   ac_cv_func_alloca_works=yes
11295 else
11296   echo "$as_me: failed program was:" >&5
11297 sed 's/^/| /' conftest.$ac_ext >&5
11298
11299         ac_cv_func_alloca_works=no
11300 fi
11301
11302 rm -f conftest.err conftest.$ac_objext \
11303       conftest$ac_exeext conftest.$ac_ext
11304 fi
11305 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
11306 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
11307
11308 if test $ac_cv_func_alloca_works = yes; then
11309
11310 cat >>confdefs.h <<\_ACEOF
11311 #define HAVE_ALLOCA 1
11312 _ACEOF
11313
11314 else
11315   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
11316 # that cause trouble.  Some versions do not even contain alloca or
11317 # contain a buggy version.  If you still want to use their alloca,
11318 # use ar to extract alloca.o from them instead of compiling alloca.c.
11319
11320 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
11321
11322 cat >>confdefs.h <<\_ACEOF
11323 #define C_ALLOCA 1
11324 _ACEOF
11325
11326
11327 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
11328 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
11329 if test "${ac_cv_os_cray+set}" = set; then
11330   echo $ECHO_N "(cached) $ECHO_C" >&6
11331 else
11332   cat >conftest.$ac_ext <<_ACEOF
11333 /* confdefs.h.  */
11334 _ACEOF
11335 cat confdefs.h >>conftest.$ac_ext
11336 cat >>conftest.$ac_ext <<_ACEOF
11337 /* end confdefs.h.  */
11338 #if defined CRAY && ! defined CRAY2
11339 webecray
11340 #else
11341 wenotbecray
11342 #endif
11343
11344 _ACEOF
11345 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11346   $EGREP "webecray" >/dev/null 2>&1; then
11347   ac_cv_os_cray=yes
11348 else
11349   ac_cv_os_cray=no
11350 fi
11351 rm -f conftest*
11352
11353 fi
11354 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
11355 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
11356 if test $ac_cv_os_cray = yes; then
11357   for ac_func in _getb67 GETB67 getb67; do
11358     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11359 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11360 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11361 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11362   echo $ECHO_N "(cached) $ECHO_C" >&6
11363 else
11364   cat >conftest.$ac_ext <<_ACEOF
11365 /* confdefs.h.  */
11366 _ACEOF
11367 cat confdefs.h >>conftest.$ac_ext
11368 cat >>conftest.$ac_ext <<_ACEOF
11369 /* end confdefs.h.  */
11370 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11371    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11372 #define $ac_func innocuous_$ac_func
11373
11374 /* System header to define __stub macros and hopefully few prototypes,
11375     which can conflict with char $ac_func (); below.
11376     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11377     <limits.h> exists even on freestanding compilers.  */
11378
11379 #ifdef __STDC__
11380 # include <limits.h>
11381 #else
11382 # include <assert.h>
11383 #endif
11384
11385 #undef $ac_func
11386
11387 /* Override any GCC internal prototype to avoid an error.
11388    Use char because int might match the return type of a GCC
11389    builtin and then its argument prototype would still apply.  */
11390 #ifdef __cplusplus
11391 extern "C"
11392 #endif
11393 char $ac_func ();
11394 /* The GNU C library defines this for functions which it implements
11395     to always fail with ENOSYS.  Some functions are actually named
11396     something starting with __ and the normal name is an alias.  */
11397 #if defined __stub_$ac_func || defined __stub___$ac_func
11398 choke me
11399 #endif
11400
11401 int
11402 main ()
11403 {
11404 return $ac_func ();
11405   ;
11406   return 0;
11407 }
11408 _ACEOF
11409 rm -f conftest.$ac_objext conftest$ac_exeext
11410 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11411   (eval $ac_link) 2>conftest.er1
11412   ac_status=$?
11413   grep -v '^ *+' conftest.er1 >conftest.err
11414   rm -f conftest.er1
11415   cat conftest.err >&5
11416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11417   (exit $ac_status); } &&
11418          { ac_try='test -z "$ac_c_werror_flag"
11419                          || test ! -s conftest.err'
11420   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11421   (eval $ac_try) 2>&5
11422   ac_status=$?
11423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11424   (exit $ac_status); }; } &&
11425          { ac_try='test -s conftest$ac_exeext'
11426   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11427   (eval $ac_try) 2>&5
11428   ac_status=$?
11429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11430   (exit $ac_status); }; }; then
11431   eval "$as_ac_var=yes"
11432 else
11433   echo "$as_me: failed program was:" >&5
11434 sed 's/^/| /' conftest.$ac_ext >&5
11435
11436         eval "$as_ac_var=no"
11437 fi
11438
11439 rm -f conftest.err conftest.$ac_objext \
11440       conftest$ac_exeext conftest.$ac_ext
11441 fi
11442 ac_res=`eval echo '${'$as_ac_var'}'`
11443                { echo "$as_me:$LINENO: result: $ac_res" >&5
11444 echo "${ECHO_T}$ac_res" >&6; }
11445 if test `eval echo '${'$as_ac_var'}'` = yes; then
11446
11447 cat >>confdefs.h <<_ACEOF
11448 #define CRAY_STACKSEG_END $ac_func
11449 _ACEOF
11450
11451     break
11452 fi
11453
11454   done
11455 fi
11456
11457 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
11458 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
11459 if test "${ac_cv_c_stack_direction+set}" = set; then
11460   echo $ECHO_N "(cached) $ECHO_C" >&6
11461 else
11462   if test "$cross_compiling" = yes; then
11463   ac_cv_c_stack_direction=0
11464 else
11465   cat >conftest.$ac_ext <<_ACEOF
11466 /* confdefs.h.  */
11467 _ACEOF
11468 cat confdefs.h >>conftest.$ac_ext
11469 cat >>conftest.$ac_ext <<_ACEOF
11470 /* end confdefs.h.  */
11471 $ac_includes_default
11472 int
11473 find_stack_direction ()
11474 {
11475   static char *addr = 0;
11476   auto char dummy;
11477   if (addr == 0)
11478     {
11479       addr = &dummy;
11480       return find_stack_direction ();
11481     }
11482   else
11483     return (&dummy > addr) ? 1 : -1;
11484 }
11485
11486 int
11487 main ()
11488 {
11489   return find_stack_direction () < 0;
11490 }
11491 _ACEOF
11492 rm -f conftest$ac_exeext
11493 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11494   (eval $ac_link) 2>&5
11495   ac_status=$?
11496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11497   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11498   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11499   (eval $ac_try) 2>&5
11500   ac_status=$?
11501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11502   (exit $ac_status); }; }; then
11503   ac_cv_c_stack_direction=1
11504 else
11505   echo "$as_me: program exited with status $ac_status" >&5
11506 echo "$as_me: failed program was:" >&5
11507 sed 's/^/| /' conftest.$ac_ext >&5
11508
11509 ( exit $ac_status )
11510 ac_cv_c_stack_direction=-1
11511 fi
11512 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11513 fi
11514
11515
11516 fi
11517 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
11518 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
11519
11520 cat >>confdefs.h <<_ACEOF
11521 #define STACK_DIRECTION $ac_cv_c_stack_direction
11522 _ACEOF
11523
11524
11525 fi
11526
11527
11528
11529
11530
11531
11532   if test $ac_cv_func_alloca_works = no; then
11533     :
11534   fi
11535
11536   # Define an additional variable used in the Makefile substitution.
11537   if test $ac_cv_working_alloca_h = yes; then
11538     cat >conftest.$ac_ext <<_ACEOF
11539 /* confdefs.h.  */
11540 _ACEOF
11541 cat confdefs.h >>conftest.$ac_ext
11542 cat >>conftest.$ac_ext <<_ACEOF
11543 /* end confdefs.h.  */
11544
11545 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
11546         Need own alloca
11547 #endif
11548
11549 _ACEOF
11550 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11551   $EGREP "Need own alloca" >/dev/null 2>&1; then
11552
11553 cat >>confdefs.h <<\_ACEOF
11554 #define HAVE_ALLOCA 1
11555 _ACEOF
11556
11557        ALLOCA_H=alloca.h
11558 else
11559   ALLOCA_H=
11560 fi
11561 rm -f conftest*
11562
11563   else
11564     ALLOCA_H=alloca.h
11565   fi
11566
11567
11568
11569 cat >>confdefs.h <<\_ACEOF
11570 #define HAVE_ALLOCA_H 1
11571 _ACEOF
11572
11573
11574
11575
11576 for ac_header in stdlib.h
11577 do
11578 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11579 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11580   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11581 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11582 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11583   echo $ECHO_N "(cached) $ECHO_C" >&6
11584 fi
11585 ac_res=`eval echo '${'$as_ac_Header'}'`
11586                { echo "$as_me:$LINENO: result: $ac_res" >&5
11587 echo "${ECHO_T}$ac_res" >&6; }
11588 else
11589   # Is the header compilable?
11590 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11591 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11592 cat >conftest.$ac_ext <<_ACEOF
11593 /* confdefs.h.  */
11594 _ACEOF
11595 cat confdefs.h >>conftest.$ac_ext
11596 cat >>conftest.$ac_ext <<_ACEOF
11597 /* end confdefs.h.  */
11598 $ac_includes_default
11599 #include <$ac_header>
11600 _ACEOF
11601 rm -f conftest.$ac_objext
11602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11603   (eval $ac_compile) 2>conftest.er1
11604   ac_status=$?
11605   grep -v '^ *+' conftest.er1 >conftest.err
11606   rm -f conftest.er1
11607   cat conftest.err >&5
11608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11609   (exit $ac_status); } &&
11610          { ac_try='test -z "$ac_c_werror_flag"
11611                          || test ! -s conftest.err'
11612   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11613   (eval $ac_try) 2>&5
11614   ac_status=$?
11615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11616   (exit $ac_status); }; } &&
11617          { ac_try='test -s conftest.$ac_objext'
11618   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11619   (eval $ac_try) 2>&5
11620   ac_status=$?
11621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11622   (exit $ac_status); }; }; then
11623   ac_header_compiler=yes
11624 else
11625   echo "$as_me: failed program was:" >&5
11626 sed 's/^/| /' conftest.$ac_ext >&5
11627
11628         ac_header_compiler=no
11629 fi
11630
11631 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11632 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11633 echo "${ECHO_T}$ac_header_compiler" >&6; }
11634
11635 # Is the header present?
11636 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11637 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11638 cat >conftest.$ac_ext <<_ACEOF
11639 /* confdefs.h.  */
11640 _ACEOF
11641 cat confdefs.h >>conftest.$ac_ext
11642 cat >>conftest.$ac_ext <<_ACEOF
11643 /* end confdefs.h.  */
11644 #include <$ac_header>
11645 _ACEOF
11646 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11647   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11648   ac_status=$?
11649   grep -v '^ *+' conftest.er1 >conftest.err
11650   rm -f conftest.er1
11651   cat conftest.err >&5
11652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11653   (exit $ac_status); } >/dev/null; then
11654   if test -s conftest.err; then
11655     ac_cpp_err=$ac_c_preproc_warn_flag
11656     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11657   else
11658     ac_cpp_err=
11659   fi
11660 else
11661   ac_cpp_err=yes
11662 fi
11663 if test -z "$ac_cpp_err"; then
11664   ac_header_preproc=yes
11665 else
11666   echo "$as_me: failed program was:" >&5
11667 sed 's/^/| /' conftest.$ac_ext >&5
11668
11669   ac_header_preproc=no
11670 fi
11671
11672 rm -f conftest.err conftest.$ac_ext
11673 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11674 echo "${ECHO_T}$ac_header_preproc" >&6; }
11675
11676 # So?  What about this header?
11677 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11678   yes:no: )
11679     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11680 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11681     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11682 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11683     ac_header_preproc=yes
11684     ;;
11685   no:yes:* )
11686     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11687 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11688     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11689 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11690     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11691 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11692     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11693 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11694     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11695 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11696     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11697 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11698     ( cat <<\_ASBOX
11699 ## ------------------------------------ ##
11700 ## Report this to bug-coreutils@gnu.org ##
11701 ## ------------------------------------ ##
11702 _ASBOX
11703      ) | sed "s/^/$as_me: WARNING:     /" >&2
11704     ;;
11705 esac
11706 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11707 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11708 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11709   echo $ECHO_N "(cached) $ECHO_C" >&6
11710 else
11711   eval "$as_ac_Header=\$ac_header_preproc"
11712 fi
11713 ac_res=`eval echo '${'$as_ac_Header'}'`
11714                { echo "$as_me:$LINENO: result: $ac_res" >&5
11715 echo "${ECHO_T}$ac_res" >&6; }
11716
11717 fi
11718 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11719   cat >>confdefs.h <<_ACEOF
11720 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11721 _ACEOF
11722
11723 fi
11724
11725 done
11726
11727 { echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
11728 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; }
11729 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
11730   echo $ECHO_N "(cached) $ECHO_C" >&6
11731 else
11732   if test "$cross_compiling" = yes; then
11733   ac_cv_func_malloc_0_nonnull=no
11734 else
11735   cat >conftest.$ac_ext <<_ACEOF
11736 /* confdefs.h.  */
11737 _ACEOF
11738 cat confdefs.h >>conftest.$ac_ext
11739 cat >>conftest.$ac_ext <<_ACEOF
11740 /* end confdefs.h.  */
11741 #if STDC_HEADERS || HAVE_STDLIB_H
11742 # include <stdlib.h>
11743 #else
11744 char *malloc ();
11745 #endif
11746
11747 int
11748 main ()
11749 {
11750 return ! malloc (0);
11751   ;
11752   return 0;
11753 }
11754 _ACEOF
11755 rm -f conftest$ac_exeext
11756 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11757   (eval $ac_link) 2>&5
11758   ac_status=$?
11759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11760   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11762   (eval $ac_try) 2>&5
11763   ac_status=$?
11764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11765   (exit $ac_status); }; }; then
11766   ac_cv_func_malloc_0_nonnull=yes
11767 else
11768   echo "$as_me: program exited with status $ac_status" >&5
11769 echo "$as_me: failed program was:" >&5
11770 sed 's/^/| /' conftest.$ac_ext >&5
11771
11772 ( exit $ac_status )
11773 ac_cv_func_malloc_0_nonnull=no
11774 fi
11775 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11776 fi
11777
11778
11779 fi
11780 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
11781 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
11782 if test $ac_cv_func_malloc_0_nonnull = yes; then
11783   gl_cv_func_malloc_0_nonnull=1
11784 else
11785   gl_cv_func_malloc_0_nonnull=0
11786 fi
11787
11788
11789
11790 cat >>confdefs.h <<_ACEOF
11791 #define MALLOC_0_IS_NONNULL $gl_cv_func_malloc_0_nonnull
11792 _ACEOF
11793
11794
11795
11796   { echo "$as_me:$LINENO: checking for long long" >&5
11797 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
11798 if test "${ac_cv_type_long_long+set}" = set; then
11799   echo $ECHO_N "(cached) $ECHO_C" >&6
11800 else
11801   cat >conftest.$ac_ext <<_ACEOF
11802 /* confdefs.h.  */
11803 _ACEOF
11804 cat confdefs.h >>conftest.$ac_ext
11805 cat >>conftest.$ac_ext <<_ACEOF
11806 /* end confdefs.h.  */
11807 long long ll = 1LL; int i = 63;
11808 int
11809 main ()
11810 {
11811 long long llmax = (long long) -1;
11812      return ll << i | ll >> i | llmax / ll | llmax % ll;
11813   ;
11814   return 0;
11815 }
11816 _ACEOF
11817 rm -f conftest.$ac_objext conftest$ac_exeext
11818 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11819   (eval $ac_link) 2>conftest.er1
11820   ac_status=$?
11821   grep -v '^ *+' conftest.er1 >conftest.err
11822   rm -f conftest.er1
11823   cat conftest.err >&5
11824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11825   (exit $ac_status); } &&
11826          { ac_try='test -z "$ac_c_werror_flag"
11827                          || test ! -s conftest.err'
11828   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11829   (eval $ac_try) 2>&5
11830   ac_status=$?
11831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11832   (exit $ac_status); }; } &&
11833          { ac_try='test -s conftest$ac_exeext'
11834   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11835   (eval $ac_try) 2>&5
11836   ac_status=$?
11837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11838   (exit $ac_status); }; }; then
11839   ac_cv_type_long_long=yes
11840 else
11841   echo "$as_me: failed program was:" >&5
11842 sed 's/^/| /' conftest.$ac_ext >&5
11843
11844         ac_cv_type_long_long=no
11845 fi
11846
11847 rm -f conftest.err conftest.$ac_objext \
11848       conftest$ac_exeext conftest.$ac_ext
11849 fi
11850 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
11851 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
11852   if test $ac_cv_type_long_long = yes; then
11853
11854 cat >>confdefs.h <<\_ACEOF
11855 #define HAVE_LONG_LONG 1
11856 _ACEOF
11857
11858   fi
11859
11860
11861   { echo "$as_me:$LINENO: checking for long double" >&5
11862 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
11863 if test "${gt_cv_c_long_double+set}" = set; then
11864   echo $ECHO_N "(cached) $ECHO_C" >&6
11865 else
11866   if test "$GCC" = yes; then
11867        gt_cv_c_long_double=yes
11868      else
11869        cat >conftest.$ac_ext <<_ACEOF
11870 /* confdefs.h.  */
11871 _ACEOF
11872 cat confdefs.h >>conftest.$ac_ext
11873 cat >>conftest.$ac_ext <<_ACEOF
11874 /* end confdefs.h.  */
11875
11876          /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
11877          long double foo = 0.0;
11878          /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
11879          int array [2*(sizeof(long double) >= sizeof(double)) - 1];
11880
11881 int
11882 main ()
11883 {
11884
11885   ;
11886   return 0;
11887 }
11888 _ACEOF
11889 rm -f conftest.$ac_objext
11890 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11891   (eval $ac_compile) 2>conftest.er1
11892   ac_status=$?
11893   grep -v '^ *+' conftest.er1 >conftest.err
11894   rm -f conftest.er1
11895   cat conftest.err >&5
11896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11897   (exit $ac_status); } &&
11898          { ac_try='test -z "$ac_c_werror_flag"
11899                          || test ! -s conftest.err'
11900   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11901   (eval $ac_try) 2>&5
11902   ac_status=$?
11903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11904   (exit $ac_status); }; } &&
11905          { ac_try='test -s conftest.$ac_objext'
11906   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11907   (eval $ac_try) 2>&5
11908   ac_status=$?
11909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11910   (exit $ac_status); }; }; then
11911   gt_cv_c_long_double=yes
11912 else
11913   echo "$as_me: failed program was:" >&5
11914 sed 's/^/| /' conftest.$ac_ext >&5
11915
11916         gt_cv_c_long_double=no
11917 fi
11918
11919 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11920      fi
11921 fi
11922 { echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
11923 echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
11924   if test $gt_cv_c_long_double = yes; then
11925
11926 cat >>confdefs.h <<\_ACEOF
11927 #define HAVE_LONG_DOUBLE 1
11928 _ACEOF
11929
11930   fi
11931
11932
11933
11934
11935
11936
11937
11938
11939     { echo "$as_me:$LINENO: checking whether system is Windows or MSDOS" >&5
11940 echo $ECHO_N "checking whether system is Windows or MSDOS... $ECHO_C" >&6; }
11941 if test "${ac_cv_win_or_dos+set}" = set; then
11942   echo $ECHO_N "(cached) $ECHO_C" >&6
11943 else
11944
11945         cat >conftest.$ac_ext <<_ACEOF
11946 /* confdefs.h.  */
11947 _ACEOF
11948 cat confdefs.h >>conftest.$ac_ext
11949 cat >>conftest.$ac_ext <<_ACEOF
11950 /* end confdefs.h.  */
11951
11952 int
11953 main ()
11954 {
11955 #if !defined _WIN32 && !defined __WIN32__ && !defined __MSDOS__ && !defined __CYGWIN__
11956 neither MSDOS nor Windows
11957 #endif
11958   ;
11959   return 0;
11960 }
11961 _ACEOF
11962 rm -f conftest.$ac_objext
11963 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11964   (eval $ac_compile) 2>conftest.er1
11965   ac_status=$?
11966   grep -v '^ *+' conftest.er1 >conftest.err
11967   rm -f conftest.er1
11968   cat conftest.err >&5
11969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11970   (exit $ac_status); } &&
11971          { ac_try='test -z "$ac_c_werror_flag"
11972                          || test ! -s conftest.err'
11973   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11974   (eval $ac_try) 2>&5
11975   ac_status=$?
11976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11977   (exit $ac_status); }; } &&
11978          { ac_try='test -s conftest.$ac_objext'
11979   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11980   (eval $ac_try) 2>&5
11981   ac_status=$?
11982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11983   (exit $ac_status); }; }; then
11984   ac_cv_win_or_dos=yes
11985 else
11986   echo "$as_me: failed program was:" >&5
11987 sed 's/^/| /' conftest.$ac_ext >&5
11988
11989         ac_cv_win_or_dos=no
11990 fi
11991
11992 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11993
11994 fi
11995 { echo "$as_me:$LINENO: result: $ac_cv_win_or_dos" >&5
11996 echo "${ECHO_T}$ac_cv_win_or_dos" >&6; }
11997
11998     if test x"$ac_cv_win_or_dos" = xyes; then
11999       ac_fs_accepts_drive_letter_prefix=1
12000       ac_fs_backslash_is_file_name_separator=1
12001       { echo "$as_me:$LINENO: checking whether drive letter can start relative path" >&5
12002 echo $ECHO_N "checking whether drive letter can start relative path... $ECHO_C" >&6; }
12003 if test "${ac_cv_drive_letter_can_be_relative+set}" = set; then
12004   echo $ECHO_N "(cached) $ECHO_C" >&6
12005 else
12006
12007           cat >conftest.$ac_ext <<_ACEOF
12008 /* confdefs.h.  */
12009 _ACEOF
12010 cat confdefs.h >>conftest.$ac_ext
12011 cat >>conftest.$ac_ext <<_ACEOF
12012 /* end confdefs.h.  */
12013
12014 int
12015 main ()
12016 {
12017 #if defined __CYGWIN__
12018 drive letters are always absolute
12019 #endif
12020   ;
12021   return 0;
12022 }
12023 _ACEOF
12024 rm -f conftest.$ac_objext
12025 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12026   (eval $ac_compile) 2>conftest.er1
12027   ac_status=$?
12028   grep -v '^ *+' conftest.er1 >conftest.err
12029   rm -f conftest.er1
12030   cat conftest.err >&5
12031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12032   (exit $ac_status); } &&
12033          { ac_try='test -z "$ac_c_werror_flag"
12034                          || test ! -s conftest.err'
12035   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12036   (eval $ac_try) 2>&5
12037   ac_status=$?
12038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12039   (exit $ac_status); }; } &&
12040          { ac_try='test -s conftest.$ac_objext'
12041   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12042   (eval $ac_try) 2>&5
12043   ac_status=$?
12044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12045   (exit $ac_status); }; }; then
12046   ac_cv_drive_letter_can_be_relative=yes
12047 else
12048   echo "$as_me: failed program was:" >&5
12049 sed 's/^/| /' conftest.$ac_ext >&5
12050
12051         ac_cv_drive_letter_can_be_relative=no
12052 fi
12053
12054 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12055
12056 fi
12057 { echo "$as_me:$LINENO: result: $ac_cv_drive_letter_can_be_relative" >&5
12058 echo "${ECHO_T}$ac_cv_drive_letter_can_be_relative" >&6; }
12059       if test x"$ac_cv_drive_letter_can_be_relative" = xyes; then
12060         ac_fs_drive_letter_can_be_relative=1
12061       else
12062         ac_fs_drive_letter_can_be_relative=0
12063       fi
12064     else
12065       ac_fs_accepts_drive_letter_prefix=0
12066       ac_fs_backslash_is_file_name_separator=0
12067       ac_fs_drive_letter_can_be_relative=0
12068     fi
12069
12070
12071 cat >>confdefs.h <<_ACEOF
12072 #define FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX $ac_fs_accepts_drive_letter_prefix
12073 _ACEOF
12074
12075
12076
12077
12078
12079
12080 cat >>confdefs.h <<_ACEOF
12081 #define FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR $ac_fs_backslash_is_file_name_separator
12082 _ACEOF
12083
12084
12085
12086 cat >>confdefs.h <<_ACEOF
12087 #define FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE $ac_fs_drive_letter_can_be_relative
12088 _ACEOF
12089
12090
12091 { echo "$as_me:$LINENO: checking for long file names" >&5
12092 echo $ECHO_N "checking for long file names... $ECHO_C" >&6; }
12093 if test "${ac_cv_sys_long_file_names+set}" = set; then
12094   echo $ECHO_N "(cached) $ECHO_C" >&6
12095 else
12096   ac_cv_sys_long_file_names=yes
12097 # Test for long file names in all the places we know might matter:
12098 #      .                the current directory, where building will happen
12099 #      $prefix/lib      where we will be installing things
12100 #      $exec_prefix/lib likewise
12101 # eval it to expand exec_prefix.
12102 #      $TMPDIR          if set, where it might want to write temporary files
12103 # if $TMPDIR is not set:
12104 #      /tmp             where it might want to write temporary files
12105 #      /var/tmp         likewise
12106 #      /usr/tmp         likewise
12107 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
12108   ac_tmpdirs=$TMPDIR
12109 else
12110   ac_tmpdirs='/tmp /var/tmp /usr/tmp'
12111 fi
12112 for ac_dir in  . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
12113   test -d $ac_dir || continue
12114   test -w $ac_dir || continue # It is less confusing to not echo anything here.
12115   ac_xdir=$ac_dir/cf$$
12116   (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
12117   ac_tf1=$ac_xdir/conftest9012345
12118   ac_tf2=$ac_xdir/conftest9012346
12119   touch $ac_tf1 2>/dev/null && test -f $ac_tf1 && test ! -f $ac_tf2 ||
12120     ac_cv_sys_long_file_names=no
12121   rm -f -r $ac_xdir 2>/dev/null
12122   test $ac_cv_sys_long_file_names = no && break
12123 done
12124 fi
12125 { echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
12126 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; }
12127 if test $ac_cv_sys_long_file_names = yes; then
12128
12129 cat >>confdefs.h <<\_ACEOF
12130 #define HAVE_LONG_FILE_NAMES 1
12131 _ACEOF
12132
12133 fi
12134
12135
12136
12137
12138
12139
12140 for ac_func in $gl_func_list
12141 do
12142 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12143 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12144 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12145 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12146   echo $ECHO_N "(cached) $ECHO_C" >&6
12147 else
12148   cat >conftest.$ac_ext <<_ACEOF
12149 /* confdefs.h.  */
12150 _ACEOF
12151 cat confdefs.h >>conftest.$ac_ext
12152 cat >>conftest.$ac_ext <<_ACEOF
12153 /* end confdefs.h.  */
12154 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12155    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12156 #define $ac_func innocuous_$ac_func
12157
12158 /* System header to define __stub macros and hopefully few prototypes,
12159     which can conflict with char $ac_func (); below.
12160     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12161     <limits.h> exists even on freestanding compilers.  */
12162
12163 #ifdef __STDC__
12164 # include <limits.h>
12165 #else
12166 # include <assert.h>
12167 #endif
12168
12169 #undef $ac_func
12170
12171 /* Override any GCC internal prototype to avoid an error.
12172    Use char because int might match the return type of a GCC
12173    builtin and then its argument prototype would still apply.  */
12174 #ifdef __cplusplus
12175 extern "C"
12176 #endif
12177 char $ac_func ();
12178 /* The GNU C library defines this for functions which it implements
12179     to always fail with ENOSYS.  Some functions are actually named
12180     something starting with __ and the normal name is an alias.  */
12181 #if defined __stub_$ac_func || defined __stub___$ac_func
12182 choke me
12183 #endif
12184
12185 int
12186 main ()
12187 {
12188 return $ac_func ();
12189   ;
12190   return 0;
12191 }
12192 _ACEOF
12193 rm -f conftest.$ac_objext conftest$ac_exeext
12194 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12195   (eval $ac_link) 2>conftest.er1
12196   ac_status=$?
12197   grep -v '^ *+' conftest.er1 >conftest.err
12198   rm -f conftest.er1
12199   cat conftest.err >&5
12200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12201   (exit $ac_status); } &&
12202          { ac_try='test -z "$ac_c_werror_flag"
12203                          || test ! -s conftest.err'
12204   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12205   (eval $ac_try) 2>&5
12206   ac_status=$?
12207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12208   (exit $ac_status); }; } &&
12209          { ac_try='test -s conftest$ac_exeext'
12210   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12211   (eval $ac_try) 2>&5
12212   ac_status=$?
12213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12214   (exit $ac_status); }; }; then
12215   eval "$as_ac_var=yes"
12216 else
12217   echo "$as_me: failed program was:" >&5
12218 sed 's/^/| /' conftest.$ac_ext >&5
12219
12220         eval "$as_ac_var=no"
12221 fi
12222
12223 rm -f conftest.err conftest.$ac_objext \
12224       conftest$ac_exeext conftest.$ac_ext
12225 fi
12226 ac_res=`eval echo '${'$as_ac_var'}'`
12227                { echo "$as_me:$LINENO: result: $ac_res" >&5
12228 echo "${ECHO_T}$ac_res" >&6; }
12229 if test `eval echo '${'$as_ac_var'}'` = yes; then
12230   cat >>confdefs.h <<_ACEOF
12231 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12232 _ACEOF
12233
12234 fi
12235 done
12236
12237
12238
12239
12240
12241
12242
12243
12244   case " $LIBOBJS " in
12245   *" backupfile.$ac_objext "* ) ;;
12246   *) LIBOBJS="$LIBOBJS backupfile.$ac_objext"
12247  ;;
12248 esac
12249
12250
12251
12252
12253
12254
12255
12256   :
12257
12258
12259
12260
12261
12262
12263
12264
12265   case " $LIBOBJS " in
12266   *" basename.$ac_objext "* ) ;;
12267   *) LIBOBJS="$LIBOBJS basename.$ac_objext"
12268  ;;
12269 esac
12270
12271
12272
12273
12274
12275
12276   case " $LIBOBJS " in
12277   *" c-strtod.$ac_objext "* ) ;;
12278   *) LIBOBJS="$LIBOBJS c-strtod.$ac_objext"
12279  ;;
12280 esac
12281
12282
12283
12284   :
12285
12286
12287   { echo "$as_me:$LINENO: checking whether strtold conforms to C99" >&5
12288 echo $ECHO_N "checking whether strtold conforms to C99... $ECHO_C" >&6; }
12289 if test "${gl_cv_func_c99_strtold+set}" = set; then
12290   echo $ECHO_N "(cached) $ECHO_C" >&6
12291 else
12292   cat >conftest.$ac_ext <<_ACEOF
12293 /* confdefs.h.  */
12294 _ACEOF
12295 cat confdefs.h >>conftest.$ac_ext
12296 cat >>conftest.$ac_ext <<_ACEOF
12297 /* end confdefs.h.  */
12298 /* On HP-UX before 11.23, strtold returns a struct instead of
12299                 long double.  Reject implementations like that, by requiring
12300                 compatibility with the C99 prototype.  */
12301              #include <stdlib.h>
12302              static long double (*p) (char const *, char **) = strtold;
12303              static long double
12304              test (char const *nptr, char **endptr)
12305              {
12306                long double r;
12307                r = strtold (nptr, endptr);
12308                return r;
12309              }
12310 int
12311 main ()
12312 {
12313 return test ("1.0", NULL) != 1 || p ("1.0", NULL) != 1;
12314   ;
12315   return 0;
12316 }
12317 _ACEOF
12318 rm -f conftest.$ac_objext
12319 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12320   (eval $ac_compile) 2>conftest.er1
12321   ac_status=$?
12322   grep -v '^ *+' conftest.er1 >conftest.err
12323   rm -f conftest.er1
12324   cat conftest.err >&5
12325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12326   (exit $ac_status); } &&
12327          { ac_try='test -z "$ac_c_werror_flag"
12328                          || test ! -s conftest.err'
12329   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12330   (eval $ac_try) 2>&5
12331   ac_status=$?
12332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12333   (exit $ac_status); }; } &&
12334          { ac_try='test -s conftest.$ac_objext'
12335   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12336   (eval $ac_try) 2>&5
12337   ac_status=$?
12338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12339   (exit $ac_status); }; }; then
12340   gl_cv_func_c99_strtold=yes
12341 else
12342   echo "$as_me: failed program was:" >&5
12343 sed 's/^/| /' conftest.$ac_ext >&5
12344
12345         gl_cv_func_c99_strtold=no
12346 fi
12347
12348 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12349 fi
12350 { echo "$as_me:$LINENO: result: $gl_cv_func_c99_strtold" >&5
12351 echo "${ECHO_T}$gl_cv_func_c99_strtold" >&6; }
12352   if test $gl_cv_func_c99_strtold = yes; then
12353
12354 cat >>confdefs.h <<\_ACEOF
12355 #define HAVE_C99_STRTOLD 1
12356 _ACEOF
12357
12358   fi
12359
12360
12361
12362   case " $LIBOBJS " in
12363   *" c-strtold.$ac_objext "* ) ;;
12364   *) LIBOBJS="$LIBOBJS c-strtold.$ac_objext"
12365  ;;
12366 esac
12367
12368
12369
12370
12371   :
12372
12373 { echo "$as_me:$LINENO: checking for C/C++ restrict keyword" >&5
12374 echo $ECHO_N "checking for C/C++ restrict keyword... $ECHO_C" >&6; }
12375 if test "${gl_cv_c_restrict+set}" = set; then
12376   echo $ECHO_N "(cached) $ECHO_C" >&6
12377 else
12378   gl_cv_c_restrict=no
12379    # Try the official restrict keyword, then gcc's __restrict, and
12380    # the less common variants.
12381    for ac_kw in restrict __restrict __restrict__ _Restrict; do
12382      cat >conftest.$ac_ext <<_ACEOF
12383 /* confdefs.h.  */
12384 _ACEOF
12385 cat confdefs.h >>conftest.$ac_ext
12386 cat >>conftest.$ac_ext <<_ACEOF
12387 /* end confdefs.h.  */
12388 float * $ac_kw x;
12389 _ACEOF
12390 rm -f conftest.$ac_objext
12391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12392   (eval $ac_compile) 2>conftest.er1
12393   ac_status=$?
12394   grep -v '^ *+' conftest.er1 >conftest.err
12395   rm -f conftest.er1
12396   cat conftest.err >&5
12397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12398   (exit $ac_status); } &&
12399          { ac_try='test -z "$ac_c_werror_flag"
12400                          || test ! -s conftest.err'
12401   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12402   (eval $ac_try) 2>&5
12403   ac_status=$?
12404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12405   (exit $ac_status); }; } &&
12406          { ac_try='test -s conftest.$ac_objext'
12407   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12408   (eval $ac_try) 2>&5
12409   ac_status=$?
12410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12411   (exit $ac_status); }; }; then
12412   gl_cv_c_restrict=$ac_kw; break
12413 else
12414   echo "$as_me: failed program was:" >&5
12415 sed 's/^/| /' conftest.$ac_ext >&5
12416
12417
12418 fi
12419
12420 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12421    done
12422
12423 fi
12424 { echo "$as_me:$LINENO: result: $gl_cv_c_restrict" >&5
12425 echo "${ECHO_T}$gl_cv_c_restrict" >&6; }
12426  case $gl_cv_c_restrict in
12427    restrict) ;;
12428    no)
12429 cat >>confdefs.h <<\_ACEOF
12430 #define restrict
12431 _ACEOF
12432  ;;
12433    *)  cat >>confdefs.h <<_ACEOF
12434 #define restrict $gl_cv_c_restrict
12435 _ACEOF
12436  ;;
12437  esac
12438
12439
12440   { echo "$as_me:$LINENO: checking for IPv4 sockets" >&5
12441 echo $ECHO_N "checking for IPv4 sockets... $ECHO_C" >&6; }
12442   if test "${gl_cv_socket_ipv4+set}" = set; then
12443   echo $ECHO_N "(cached) $ECHO_C" >&6
12444 else
12445   cat >conftest.$ac_ext <<_ACEOF
12446 /* confdefs.h.  */
12447 _ACEOF
12448 cat confdefs.h >>conftest.$ac_ext
12449 cat >>conftest.$ac_ext <<_ACEOF
12450 /* end confdefs.h.  */
12451 #include <sys/types.h>
12452 #include <sys/socket.h>
12453 #include <netinet/in.h>
12454 int
12455 main ()
12456 {
12457 int x = AF_INET; struct in_addr y; struct sockaddr_in z;
12458   ;
12459   return 0;
12460 }
12461 _ACEOF
12462 rm -f conftest.$ac_objext
12463 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12464   (eval $ac_compile) 2>conftest.er1
12465   ac_status=$?
12466   grep -v '^ *+' conftest.er1 >conftest.err
12467   rm -f conftest.er1
12468   cat conftest.err >&5
12469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12470   (exit $ac_status); } &&
12471          { ac_try='test -z "$ac_c_werror_flag"
12472                          || test ! -s conftest.err'
12473   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12474   (eval $ac_try) 2>&5
12475   ac_status=$?
12476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12477   (exit $ac_status); }; } &&
12478          { ac_try='test -s conftest.$ac_objext'
12479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12480   (eval $ac_try) 2>&5
12481   ac_status=$?
12482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12483   (exit $ac_status); }; }; then
12484   gl_cv_socket_ipv4=yes
12485 else
12486   echo "$as_me: failed program was:" >&5
12487 sed 's/^/| /' conftest.$ac_ext >&5
12488
12489         gl_cv_socket_ipv4=no
12490 fi
12491
12492 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12493 fi
12494
12495   { echo "$as_me:$LINENO: result: $gl_cv_socket_ipv4" >&5
12496 echo "${ECHO_T}$gl_cv_socket_ipv4" >&6; }
12497   if test $gl_cv_socket_ipv4 = yes; then
12498
12499 cat >>confdefs.h <<\_ACEOF
12500 #define HAVE_IPV4 1
12501 _ACEOF
12502
12503   fi
12504
12505   { echo "$as_me:$LINENO: checking for IPv6 sockets" >&5
12506 echo $ECHO_N "checking for IPv6 sockets... $ECHO_C" >&6; }
12507   if test "${gl_cv_socket_ipv6+set}" = set; then
12508   echo $ECHO_N "(cached) $ECHO_C" >&6
12509 else
12510   cat >conftest.$ac_ext <<_ACEOF
12511 /* confdefs.h.  */
12512 _ACEOF
12513 cat confdefs.h >>conftest.$ac_ext
12514 cat >>conftest.$ac_ext <<_ACEOF
12515 /* end confdefs.h.  */
12516 #include <sys/types.h>
12517 #include <sys/socket.h>
12518 #include <netinet/in.h>
12519 int
12520 main ()
12521 {
12522 int x = AF_INET6; struct in6_addr y; struct sockaddr_in6 z;
12523   ;
12524   return 0;
12525 }
12526 _ACEOF
12527 rm -f conftest.$ac_objext
12528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12529   (eval $ac_compile) 2>conftest.er1
12530   ac_status=$?
12531   grep -v '^ *+' conftest.er1 >conftest.err
12532   rm -f conftest.er1
12533   cat conftest.err >&5
12534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12535   (exit $ac_status); } &&
12536          { ac_try='test -z "$ac_c_werror_flag"
12537                          || test ! -s conftest.err'
12538   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12539   (eval $ac_try) 2>&5
12540   ac_status=$?
12541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12542   (exit $ac_status); }; } &&
12543          { ac_try='test -s conftest.$ac_objext'
12544   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12545   (eval $ac_try) 2>&5
12546   ac_status=$?
12547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12548   (exit $ac_status); }; }; then
12549   gl_cv_socket_ipv6=yes
12550 else
12551   echo "$as_me: failed program was:" >&5
12552 sed 's/^/| /' conftest.$ac_ext >&5
12553
12554         gl_cv_socket_ipv6=no
12555 fi
12556
12557 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12558 fi
12559
12560   { echo "$as_me:$LINENO: result: $gl_cv_socket_ipv6" >&5
12561 echo "${ECHO_T}$gl_cv_socket_ipv6" >&6; }
12562   if test $gl_cv_socket_ipv6 = yes; then
12563
12564 cat >>confdefs.h <<\_ACEOF
12565 #define HAVE_IPV6 1
12566 _ACEOF
12567
12568   fi
12569
12570
12571
12572
12573
12574
12575
12576
12577
12578   :
12579
12580
12581
12582
12583
12584   if test $ac_cv_header_sys_socket_h = yes; then
12585     SYS_SOCKET_H=''
12586   else
12587
12588
12589 for ac_header in winsock2.h ws2tcpip.h
12590 do
12591 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12592 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12593   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12594 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12595 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12596   echo $ECHO_N "(cached) $ECHO_C" >&6
12597 fi
12598 ac_res=`eval echo '${'$as_ac_Header'}'`
12599                { echo "$as_me:$LINENO: result: $ac_res" >&5
12600 echo "${ECHO_T}$ac_res" >&6; }
12601 else
12602   # Is the header compilable?
12603 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12604 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12605 cat >conftest.$ac_ext <<_ACEOF
12606 /* confdefs.h.  */
12607 _ACEOF
12608 cat confdefs.h >>conftest.$ac_ext
12609 cat >>conftest.$ac_ext <<_ACEOF
12610 /* end confdefs.h.  */
12611 $ac_includes_default
12612 #include <$ac_header>
12613 _ACEOF
12614 rm -f conftest.$ac_objext
12615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12616   (eval $ac_compile) 2>conftest.er1
12617   ac_status=$?
12618   grep -v '^ *+' conftest.er1 >conftest.err
12619   rm -f conftest.er1
12620   cat conftest.err >&5
12621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12622   (exit $ac_status); } &&
12623          { ac_try='test -z "$ac_c_werror_flag"
12624                          || test ! -s conftest.err'
12625   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12626   (eval $ac_try) 2>&5
12627   ac_status=$?
12628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12629   (exit $ac_status); }; } &&
12630          { ac_try='test -s conftest.$ac_objext'
12631   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12632   (eval $ac_try) 2>&5
12633   ac_status=$?
12634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12635   (exit $ac_status); }; }; then
12636   ac_header_compiler=yes
12637 else
12638   echo "$as_me: failed program was:" >&5
12639 sed 's/^/| /' conftest.$ac_ext >&5
12640
12641         ac_header_compiler=no
12642 fi
12643
12644 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12645 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12646 echo "${ECHO_T}$ac_header_compiler" >&6; }
12647
12648 # Is the header present?
12649 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12650 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12651 cat >conftest.$ac_ext <<_ACEOF
12652 /* confdefs.h.  */
12653 _ACEOF
12654 cat confdefs.h >>conftest.$ac_ext
12655 cat >>conftest.$ac_ext <<_ACEOF
12656 /* end confdefs.h.  */
12657 #include <$ac_header>
12658 _ACEOF
12659 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12660   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12661   ac_status=$?
12662   grep -v '^ *+' conftest.er1 >conftest.err
12663   rm -f conftest.er1
12664   cat conftest.err >&5
12665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12666   (exit $ac_status); } >/dev/null; then
12667   if test -s conftest.err; then
12668     ac_cpp_err=$ac_c_preproc_warn_flag
12669     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12670   else
12671     ac_cpp_err=
12672   fi
12673 else
12674   ac_cpp_err=yes
12675 fi
12676 if test -z "$ac_cpp_err"; then
12677   ac_header_preproc=yes
12678 else
12679   echo "$as_me: failed program was:" >&5
12680 sed 's/^/| /' conftest.$ac_ext >&5
12681
12682   ac_header_preproc=no
12683 fi
12684
12685 rm -f conftest.err conftest.$ac_ext
12686 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12687 echo "${ECHO_T}$ac_header_preproc" >&6; }
12688
12689 # So?  What about this header?
12690 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12691   yes:no: )
12692     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12693 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12694     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12695 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12696     ac_header_preproc=yes
12697     ;;
12698   no:yes:* )
12699     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12700 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12701     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12702 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12703     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12704 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12705     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12706 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12707     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12708 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12709     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12710 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12711     ( cat <<\_ASBOX
12712 ## ------------------------------------ ##
12713 ## Report this to bug-coreutils@gnu.org ##
12714 ## ------------------------------------ ##
12715 _ASBOX
12716      ) | sed "s/^/$as_me: WARNING:     /" >&2
12717     ;;
12718 esac
12719 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12720 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12721 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12722   echo $ECHO_N "(cached) $ECHO_C" >&6
12723 else
12724   eval "$as_ac_Header=\$ac_header_preproc"
12725 fi
12726 ac_res=`eval echo '${'$as_ac_Header'}'`
12727                { echo "$as_me:$LINENO: result: $ac_res" >&5
12728 echo "${ECHO_T}$ac_res" >&6; }
12729
12730 fi
12731 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12732   cat >>confdefs.h <<_ACEOF
12733 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12734 _ACEOF
12735
12736 fi
12737
12738 done
12739
12740     SYS_SOCKET_H='sys/socket.h'
12741   fi
12742
12743
12744
12745
12746
12747
12748
12749
12750
12751
12752
12753
12754
12755
12756
12757   { echo "$as_me:$LINENO: checking how to do getaddrinfo" >&5
12758 echo "$as_me: checking how to do getaddrinfo" >&6;}
12759
12760   { echo "$as_me:$LINENO: checking for library containing getaddrinfo" >&5
12761 echo $ECHO_N "checking for library containing getaddrinfo... $ECHO_C" >&6; }
12762 if test "${ac_cv_search_getaddrinfo+set}" = set; then
12763   echo $ECHO_N "(cached) $ECHO_C" >&6
12764 else
12765   ac_func_search_save_LIBS=$LIBS
12766 cat >conftest.$ac_ext <<_ACEOF
12767 /* confdefs.h.  */
12768 _ACEOF
12769 cat confdefs.h >>conftest.$ac_ext
12770 cat >>conftest.$ac_ext <<_ACEOF
12771 /* end confdefs.h.  */
12772
12773 /* Override any GCC internal prototype to avoid an error.
12774    Use char because int might match the return type of a GCC
12775    builtin and then its argument prototype would still apply.  */
12776 #ifdef __cplusplus
12777 extern "C"
12778 #endif
12779 char getaddrinfo ();
12780 int
12781 main ()
12782 {
12783 return getaddrinfo ();
12784   ;
12785   return 0;
12786 }
12787 _ACEOF
12788 for ac_lib in '' nsl socket; do
12789   if test -z "$ac_lib"; then
12790     ac_res="none required"
12791   else
12792     ac_res=-l$ac_lib
12793     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12794   fi
12795   rm -f conftest.$ac_objext conftest$ac_exeext
12796 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12797   (eval $ac_link) 2>conftest.er1
12798   ac_status=$?
12799   grep -v '^ *+' conftest.er1 >conftest.err
12800   rm -f conftest.er1
12801   cat conftest.err >&5
12802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12803   (exit $ac_status); } &&
12804          { ac_try='test -z "$ac_c_werror_flag"
12805                          || test ! -s conftest.err'
12806   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12807   (eval $ac_try) 2>&5
12808   ac_status=$?
12809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12810   (exit $ac_status); }; } &&
12811          { ac_try='test -s conftest$ac_exeext'
12812   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12813   (eval $ac_try) 2>&5
12814   ac_status=$?
12815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12816   (exit $ac_status); }; }; then
12817   ac_cv_search_getaddrinfo=$ac_res
12818 else
12819   echo "$as_me: failed program was:" >&5
12820 sed 's/^/| /' conftest.$ac_ext >&5
12821
12822
12823 fi
12824
12825 rm -f conftest.err conftest.$ac_objext \
12826       conftest$ac_exeext
12827   if test "${ac_cv_search_getaddrinfo+set}" = set; then
12828   break
12829 fi
12830 done
12831 if test "${ac_cv_search_getaddrinfo+set}" = set; then
12832   :
12833 else
12834   ac_cv_search_getaddrinfo=no
12835 fi
12836 rm conftest.$ac_ext
12837 LIBS=$ac_func_search_save_LIBS
12838 fi
12839 { echo "$as_me:$LINENO: result: $ac_cv_search_getaddrinfo" >&5
12840 echo "${ECHO_T}$ac_cv_search_getaddrinfo" >&6; }
12841 ac_res=$ac_cv_search_getaddrinfo
12842 if test "$ac_res" != no; then
12843   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12844
12845 fi
12846
12847
12848 for ac_func in getaddrinfo
12849 do
12850 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12851 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12852 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12853 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12854   echo $ECHO_N "(cached) $ECHO_C" >&6
12855 else
12856   cat >conftest.$ac_ext <<_ACEOF
12857 /* confdefs.h.  */
12858 _ACEOF
12859 cat confdefs.h >>conftest.$ac_ext
12860 cat >>conftest.$ac_ext <<_ACEOF
12861 /* end confdefs.h.  */
12862 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12863    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12864 #define $ac_func innocuous_$ac_func
12865
12866 /* System header to define __stub macros and hopefully few prototypes,
12867     which can conflict with char $ac_func (); below.
12868     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12869     <limits.h> exists even on freestanding compilers.  */
12870
12871 #ifdef __STDC__
12872 # include <limits.h>
12873 #else
12874 # include <assert.h>
12875 #endif
12876
12877 #undef $ac_func
12878
12879 /* Override any GCC internal prototype to avoid an error.
12880    Use char because int might match the return type of a GCC
12881    builtin and then its argument prototype would still apply.  */
12882 #ifdef __cplusplus
12883 extern "C"
12884 #endif
12885 char $ac_func ();
12886 /* The GNU C library defines this for functions which it implements
12887     to always fail with ENOSYS.  Some functions are actually named
12888     something starting with __ and the normal name is an alias.  */
12889 #if defined __stub_$ac_func || defined __stub___$ac_func
12890 choke me
12891 #endif
12892
12893 int
12894 main ()
12895 {
12896 return $ac_func ();
12897   ;
12898   return 0;
12899 }
12900 _ACEOF
12901 rm -f conftest.$ac_objext conftest$ac_exeext
12902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12903   (eval $ac_link) 2>conftest.er1
12904   ac_status=$?
12905   grep -v '^ *+' conftest.er1 >conftest.err
12906   rm -f conftest.er1
12907   cat conftest.err >&5
12908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12909   (exit $ac_status); } &&
12910          { ac_try='test -z "$ac_c_werror_flag"
12911                          || test ! -s conftest.err'
12912   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12913   (eval $ac_try) 2>&5
12914   ac_status=$?
12915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12916   (exit $ac_status); }; } &&
12917          { ac_try='test -s conftest$ac_exeext'
12918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12919   (eval $ac_try) 2>&5
12920   ac_status=$?
12921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12922   (exit $ac_status); }; }; then
12923   eval "$as_ac_var=yes"
12924 else
12925   echo "$as_me: failed program was:" >&5
12926 sed 's/^/| /' conftest.$ac_ext >&5
12927
12928         eval "$as_ac_var=no"
12929 fi
12930
12931 rm -f conftest.err conftest.$ac_objext \
12932       conftest$ac_exeext conftest.$ac_ext
12933 fi
12934 ac_res=`eval echo '${'$as_ac_var'}'`
12935                { echo "$as_me:$LINENO: result: $ac_res" >&5
12936 echo "${ECHO_T}$ac_res" >&6; }
12937 if test `eval echo '${'$as_ac_var'}'` = yes; then
12938   cat >>confdefs.h <<_ACEOF
12939 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12940 _ACEOF
12941
12942 else
12943
12944     { echo "$as_me:$LINENO: checking for getaddrinfo in ws2tcpip.h and -lws2_32" >&5
12945 echo $ECHO_N "checking for getaddrinfo in ws2tcpip.h and -lws2_32... $ECHO_C" >&6; }
12946 if test "${gl_cv_w32_getaddrinfo+set}" = set; then
12947   echo $ECHO_N "(cached) $ECHO_C" >&6
12948 else
12949
12950       gl_cv_w32_getaddrinfo=no
12951       am_save_LIBS="$LIBS"
12952       LIBS="$LIBS -lws2_32"
12953       cat >conftest.$ac_ext <<_ACEOF
12954 /* confdefs.h.  */
12955 _ACEOF
12956 cat confdefs.h >>conftest.$ac_ext
12957 cat >>conftest.$ac_ext <<_ACEOF
12958 /* end confdefs.h.  */
12959
12960 #ifdef HAVE_WS2TCPIP_H
12961 #define WINVER 0x0501
12962 #include <ws2tcpip.h>
12963 #endif
12964
12965 int
12966 main ()
12967 {
12968 getaddrinfo(0, 0, 0, 0);
12969   ;
12970   return 0;
12971 }
12972 _ACEOF
12973 rm -f conftest.$ac_objext conftest$ac_exeext
12974 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12975   (eval $ac_link) 2>conftest.er1
12976   ac_status=$?
12977   grep -v '^ *+' conftest.er1 >conftest.err
12978   rm -f conftest.er1
12979   cat conftest.err >&5
12980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12981   (exit $ac_status); } &&
12982          { ac_try='test -z "$ac_c_werror_flag"
12983                          || test ! -s conftest.err'
12984   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12985   (eval $ac_try) 2>&5
12986   ac_status=$?
12987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12988   (exit $ac_status); }; } &&
12989          { ac_try='test -s conftest$ac_exeext'
12990   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12991   (eval $ac_try) 2>&5
12992   ac_status=$?
12993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12994   (exit $ac_status); }; }; then
12995   gl_cv_w32_getaddrinfo=yes
12996 else
12997   echo "$as_me: failed program was:" >&5
12998 sed 's/^/| /' conftest.$ac_ext >&5
12999
13000
13001 fi
13002
13003 rm -f conftest.err conftest.$ac_objext \
13004       conftest$ac_exeext conftest.$ac_ext
13005     LIBS="$am_save_LIBS"
13006 fi
13007 { echo "$as_me:$LINENO: result: $gl_cv_w32_getaddrinfo" >&5
13008 echo "${ECHO_T}$gl_cv_w32_getaddrinfo" >&6; }
13009     if test "$gl_cv_w32_getaddrinfo" = "yes"; then
13010       LIBS="$LIBS -lws2_32"
13011     else
13012       case " $LIBOBJS " in
13013   *" getaddrinfo.$ac_objext "* ) ;;
13014   *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
13015  ;;
13016 esac
13017
13018     fi
13019
13020 fi
13021 done
13022
13023
13024
13025 for ac_func in gai_strerror
13026 do
13027 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13028 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13029 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13030 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13031   echo $ECHO_N "(cached) $ECHO_C" >&6
13032 else
13033   cat >conftest.$ac_ext <<_ACEOF
13034 /* confdefs.h.  */
13035 _ACEOF
13036 cat confdefs.h >>conftest.$ac_ext
13037 cat >>conftest.$ac_ext <<_ACEOF
13038 /* end confdefs.h.  */
13039 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13040    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13041 #define $ac_func innocuous_$ac_func
13042
13043 /* System header to define __stub macros and hopefully few prototypes,
13044     which can conflict with char $ac_func (); below.
13045     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13046     <limits.h> exists even on freestanding compilers.  */
13047
13048 #ifdef __STDC__
13049 # include <limits.h>
13050 #else
13051 # include <assert.h>
13052 #endif
13053
13054 #undef $ac_func
13055
13056 /* Override any GCC internal prototype to avoid an error.
13057    Use char because int might match the return type of a GCC
13058    builtin and then its argument prototype would still apply.  */
13059 #ifdef __cplusplus
13060 extern "C"
13061 #endif
13062 char $ac_func ();
13063 /* The GNU C library defines this for functions which it implements
13064     to always fail with ENOSYS.  Some functions are actually named
13065     something starting with __ and the normal name is an alias.  */
13066 #if defined __stub_$ac_func || defined __stub___$ac_func
13067 choke me
13068 #endif
13069
13070 int
13071 main ()
13072 {
13073 return $ac_func ();
13074   ;
13075   return 0;
13076 }
13077 _ACEOF
13078 rm -f conftest.$ac_objext conftest$ac_exeext
13079 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13080   (eval $ac_link) 2>conftest.er1
13081   ac_status=$?
13082   grep -v '^ *+' conftest.er1 >conftest.err
13083   rm -f conftest.er1
13084   cat conftest.err >&5
13085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13086   (exit $ac_status); } &&
13087          { ac_try='test -z "$ac_c_werror_flag"
13088                          || test ! -s conftest.err'
13089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13090   (eval $ac_try) 2>&5
13091   ac_status=$?
13092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13093   (exit $ac_status); }; } &&
13094          { ac_try='test -s conftest$ac_exeext'
13095   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13096   (eval $ac_try) 2>&5
13097   ac_status=$?
13098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13099   (exit $ac_status); }; }; then
13100   eval "$as_ac_var=yes"
13101 else
13102   echo "$as_me: failed program was:" >&5
13103 sed 's/^/| /' conftest.$ac_ext >&5
13104
13105         eval "$as_ac_var=no"
13106 fi
13107
13108 rm -f conftest.err conftest.$ac_objext \
13109       conftest$ac_exeext conftest.$ac_ext
13110 fi
13111 ac_res=`eval echo '${'$as_ac_var'}'`
13112                { echo "$as_me:$LINENO: result: $ac_res" >&5
13113 echo "${ECHO_T}$ac_res" >&6; }
13114 if test `eval echo '${'$as_ac_var'}'` = yes; then
13115   cat >>confdefs.h <<_ACEOF
13116 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13117 _ACEOF
13118
13119 else
13120   case " $LIBOBJS " in
13121   *" $ac_func.$ac_objext "* ) ;;
13122   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
13123  ;;
13124 esac
13125
13126 fi
13127 done
13128
13129
13130
13131   { echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
13132 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6; }
13133 if test "${ac_cv_search_gethostbyname+set}" = set; then
13134   echo $ECHO_N "(cached) $ECHO_C" >&6
13135 else
13136   ac_func_search_save_LIBS=$LIBS
13137 cat >conftest.$ac_ext <<_ACEOF
13138 /* confdefs.h.  */
13139 _ACEOF
13140 cat confdefs.h >>conftest.$ac_ext
13141 cat >>conftest.$ac_ext <<_ACEOF
13142 /* end confdefs.h.  */
13143
13144 /* Override any GCC internal prototype to avoid an error.
13145    Use char because int might match the return type of a GCC
13146    builtin and then its argument prototype would still apply.  */
13147 #ifdef __cplusplus
13148 extern "C"
13149 #endif
13150 char gethostbyname ();
13151 int
13152 main ()
13153 {
13154 return gethostbyname ();
13155   ;
13156   return 0;
13157 }
13158 _ACEOF
13159 for ac_lib in '' inet nsl; do
13160   if test -z "$ac_lib"; then
13161     ac_res="none required"
13162   else
13163     ac_res=-l$ac_lib
13164     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13165   fi
13166   rm -f conftest.$ac_objext conftest$ac_exeext
13167 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13168   (eval $ac_link) 2>conftest.er1
13169   ac_status=$?
13170   grep -v '^ *+' conftest.er1 >conftest.err
13171   rm -f conftest.er1
13172   cat conftest.err >&5
13173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13174   (exit $ac_status); } &&
13175          { ac_try='test -z "$ac_c_werror_flag"
13176                          || test ! -s conftest.err'
13177   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13178   (eval $ac_try) 2>&5
13179   ac_status=$?
13180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13181   (exit $ac_status); }; } &&
13182          { ac_try='test -s conftest$ac_exeext'
13183   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13184   (eval $ac_try) 2>&5
13185   ac_status=$?
13186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13187   (exit $ac_status); }; }; then
13188   ac_cv_search_gethostbyname=$ac_res
13189 else
13190   echo "$as_me: failed program was:" >&5
13191 sed 's/^/| /' conftest.$ac_ext >&5
13192
13193
13194 fi
13195
13196 rm -f conftest.err conftest.$ac_objext \
13197       conftest$ac_exeext
13198   if test "${ac_cv_search_gethostbyname+set}" = set; then
13199   break
13200 fi
13201 done
13202 if test "${ac_cv_search_gethostbyname+set}" = set; then
13203   :
13204 else
13205   ac_cv_search_gethostbyname=no
13206 fi
13207 rm conftest.$ac_ext
13208 LIBS=$ac_func_search_save_LIBS
13209 fi
13210 { echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
13211 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6; }
13212 ac_res=$ac_cv_search_gethostbyname
13213 if test "$ac_res" != no; then
13214   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13215
13216 fi
13217
13218   { echo "$as_me:$LINENO: checking for library containing getservbyname" >&5
13219 echo $ECHO_N "checking for library containing getservbyname... $ECHO_C" >&6; }
13220 if test "${ac_cv_search_getservbyname+set}" = set; then
13221   echo $ECHO_N "(cached) $ECHO_C" >&6
13222 else
13223   ac_func_search_save_LIBS=$LIBS
13224 cat >conftest.$ac_ext <<_ACEOF
13225 /* confdefs.h.  */
13226 _ACEOF
13227 cat confdefs.h >>conftest.$ac_ext
13228 cat >>conftest.$ac_ext <<_ACEOF
13229 /* end confdefs.h.  */
13230
13231 /* Override any GCC internal prototype to avoid an error.
13232    Use char because int might match the return type of a GCC
13233    builtin and then its argument prototype would still apply.  */
13234 #ifdef __cplusplus
13235 extern "C"
13236 #endif
13237 char getservbyname ();
13238 int
13239 main ()
13240 {
13241 return getservbyname ();
13242   ;
13243   return 0;
13244 }
13245 _ACEOF
13246 for ac_lib in '' inet nsl socket xnet; do
13247   if test -z "$ac_lib"; then
13248     ac_res="none required"
13249   else
13250     ac_res=-l$ac_lib
13251     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13252   fi
13253   rm -f conftest.$ac_objext conftest$ac_exeext
13254 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13255   (eval $ac_link) 2>conftest.er1
13256   ac_status=$?
13257   grep -v '^ *+' conftest.er1 >conftest.err
13258   rm -f conftest.er1
13259   cat conftest.err >&5
13260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13261   (exit $ac_status); } &&
13262          { ac_try='test -z "$ac_c_werror_flag"
13263                          || test ! -s conftest.err'
13264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13265   (eval $ac_try) 2>&5
13266   ac_status=$?
13267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13268   (exit $ac_status); }; } &&
13269          { ac_try='test -s conftest$ac_exeext'
13270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13271   (eval $ac_try) 2>&5
13272   ac_status=$?
13273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13274   (exit $ac_status); }; }; then
13275   ac_cv_search_getservbyname=$ac_res
13276 else
13277   echo "$as_me: failed program was:" >&5
13278 sed 's/^/| /' conftest.$ac_ext >&5
13279
13280
13281 fi
13282
13283 rm -f conftest.err conftest.$ac_objext \
13284       conftest$ac_exeext
13285   if test "${ac_cv_search_getservbyname+set}" = set; then
13286   break
13287 fi
13288 done
13289 if test "${ac_cv_search_getservbyname+set}" = set; then
13290   :
13291 else
13292   ac_cv_search_getservbyname=no
13293 fi
13294 rm conftest.$ac_ext
13295 LIBS=$ac_func_search_save_LIBS
13296 fi
13297 { echo "$as_me:$LINENO: result: $ac_cv_search_getservbyname" >&5
13298 echo "${ECHO_T}$ac_cv_search_getservbyname" >&6; }
13299 ac_res=$ac_cv_search_getservbyname
13300 if test "$ac_res" != no; then
13301   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13302
13303 fi
13304
13305
13306
13307
13308
13309
13310
13311   :
13312
13313
13314
13315
13316
13317
13318
13319
13320   { echo "$as_me:$LINENO: checking whether getaddrinfo is declared" >&5
13321 echo $ECHO_N "checking whether getaddrinfo is declared... $ECHO_C" >&6; }
13322 if test "${ac_cv_have_decl_getaddrinfo+set}" = set; then
13323   echo $ECHO_N "(cached) $ECHO_C" >&6
13324 else
13325   cat >conftest.$ac_ext <<_ACEOF
13326 /* confdefs.h.  */
13327 _ACEOF
13328 cat confdefs.h >>conftest.$ac_ext
13329 cat >>conftest.$ac_ext <<_ACEOF
13330 /* end confdefs.h.  */
13331
13332   /* sys/types.h is not needed according to POSIX, but the
13333      sys/socket.h in i386-unknown-freebsd4.10 and
13334      powerpc-apple-darwin5.5 required it. */
13335 #include <sys/types.h>
13336 #ifdef HAVE_SYS_SOCKET_H
13337 #include <sys/socket.h>
13338 #endif
13339 #ifdef HAVE_NETDB_H
13340 #include <netdb.h>
13341 #endif
13342 #ifdef HAVE_WS2TCPIP_H
13343 #define WINVER 0x0501
13344 #include <ws2tcpip.h>
13345 #endif
13346
13347
13348 int
13349 main ()
13350 {
13351 #ifndef getaddrinfo
13352   char *p = (char *) getaddrinfo;
13353   return !p;
13354 #endif
13355
13356   ;
13357   return 0;
13358 }
13359 _ACEOF
13360 rm -f conftest.$ac_objext
13361 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13362   (eval $ac_compile) 2>conftest.er1
13363   ac_status=$?
13364   grep -v '^ *+' conftest.er1 >conftest.err
13365   rm -f conftest.er1
13366   cat conftest.err >&5
13367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13368   (exit $ac_status); } &&
13369          { ac_try='test -z "$ac_c_werror_flag"
13370                          || test ! -s conftest.err'
13371   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13372   (eval $ac_try) 2>&5
13373   ac_status=$?
13374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13375   (exit $ac_status); }; } &&
13376          { ac_try='test -s conftest.$ac_objext'
13377   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13378   (eval $ac_try) 2>&5
13379   ac_status=$?
13380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13381   (exit $ac_status); }; }; then
13382   ac_cv_have_decl_getaddrinfo=yes
13383 else
13384   echo "$as_me: failed program was:" >&5
13385 sed 's/^/| /' conftest.$ac_ext >&5
13386
13387         ac_cv_have_decl_getaddrinfo=no
13388 fi
13389
13390 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13391 fi
13392 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getaddrinfo" >&5
13393 echo "${ECHO_T}$ac_cv_have_decl_getaddrinfo" >&6; }
13394 if test $ac_cv_have_decl_getaddrinfo = yes; then
13395
13396 cat >>confdefs.h <<_ACEOF
13397 #define HAVE_DECL_GETADDRINFO 1
13398 _ACEOF
13399
13400
13401 else
13402   cat >>confdefs.h <<_ACEOF
13403 #define HAVE_DECL_GETADDRINFO 0
13404 _ACEOF
13405
13406
13407 fi
13408 { echo "$as_me:$LINENO: checking whether freeaddrinfo is declared" >&5
13409 echo $ECHO_N "checking whether freeaddrinfo is declared... $ECHO_C" >&6; }
13410 if test "${ac_cv_have_decl_freeaddrinfo+set}" = set; then
13411   echo $ECHO_N "(cached) $ECHO_C" >&6
13412 else
13413   cat >conftest.$ac_ext <<_ACEOF
13414 /* confdefs.h.  */
13415 _ACEOF
13416 cat confdefs.h >>conftest.$ac_ext
13417 cat >>conftest.$ac_ext <<_ACEOF
13418 /* end confdefs.h.  */
13419
13420   /* sys/types.h is not needed according to POSIX, but the
13421      sys/socket.h in i386-unknown-freebsd4.10 and
13422      powerpc-apple-darwin5.5 required it. */
13423 #include <sys/types.h>
13424 #ifdef HAVE_SYS_SOCKET_H
13425 #include <sys/socket.h>
13426 #endif
13427 #ifdef HAVE_NETDB_H
13428 #include <netdb.h>
13429 #endif
13430 #ifdef HAVE_WS2TCPIP_H
13431 #define WINVER 0x0501
13432 #include <ws2tcpip.h>
13433 #endif
13434
13435
13436 int
13437 main ()
13438 {
13439 #ifndef freeaddrinfo
13440   char *p = (char *) freeaddrinfo;
13441   return !p;
13442 #endif
13443
13444   ;
13445   return 0;
13446 }
13447 _ACEOF
13448 rm -f conftest.$ac_objext
13449 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13450   (eval $ac_compile) 2>conftest.er1
13451   ac_status=$?
13452   grep -v '^ *+' conftest.er1 >conftest.err
13453   rm -f conftest.er1
13454   cat conftest.err >&5
13455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13456   (exit $ac_status); } &&
13457          { ac_try='test -z "$ac_c_werror_flag"
13458                          || test ! -s conftest.err'
13459   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13460   (eval $ac_try) 2>&5
13461   ac_status=$?
13462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13463   (exit $ac_status); }; } &&
13464          { ac_try='test -s conftest.$ac_objext'
13465   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13466   (eval $ac_try) 2>&5
13467   ac_status=$?
13468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13469   (exit $ac_status); }; }; then
13470   ac_cv_have_decl_freeaddrinfo=yes
13471 else
13472   echo "$as_me: failed program was:" >&5
13473 sed 's/^/| /' conftest.$ac_ext >&5
13474
13475         ac_cv_have_decl_freeaddrinfo=no
13476 fi
13477
13478 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13479 fi
13480 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_freeaddrinfo" >&5
13481 echo "${ECHO_T}$ac_cv_have_decl_freeaddrinfo" >&6; }
13482 if test $ac_cv_have_decl_freeaddrinfo = yes; then
13483
13484 cat >>confdefs.h <<_ACEOF
13485 #define HAVE_DECL_FREEADDRINFO 1
13486 _ACEOF
13487
13488
13489 else
13490   cat >>confdefs.h <<_ACEOF
13491 #define HAVE_DECL_FREEADDRINFO 0
13492 _ACEOF
13493
13494
13495 fi
13496 { echo "$as_me:$LINENO: checking whether gai_strerror is declared" >&5
13497 echo $ECHO_N "checking whether gai_strerror is declared... $ECHO_C" >&6; }
13498 if test "${ac_cv_have_decl_gai_strerror+set}" = set; then
13499   echo $ECHO_N "(cached) $ECHO_C" >&6
13500 else
13501   cat >conftest.$ac_ext <<_ACEOF
13502 /* confdefs.h.  */
13503 _ACEOF
13504 cat confdefs.h >>conftest.$ac_ext
13505 cat >>conftest.$ac_ext <<_ACEOF
13506 /* end confdefs.h.  */
13507
13508   /* sys/types.h is not needed according to POSIX, but the
13509      sys/socket.h in i386-unknown-freebsd4.10 and
13510      powerpc-apple-darwin5.5 required it. */
13511 #include <sys/types.h>
13512 #ifdef HAVE_SYS_SOCKET_H
13513 #include <sys/socket.h>
13514 #endif
13515 #ifdef HAVE_NETDB_H
13516 #include <netdb.h>
13517 #endif
13518 #ifdef HAVE_WS2TCPIP_H
13519 #define WINVER 0x0501
13520 #include <ws2tcpip.h>
13521 #endif
13522
13523
13524 int
13525 main ()
13526 {
13527 #ifndef gai_strerror
13528   char *p = (char *) gai_strerror;
13529   return !p;
13530 #endif
13531
13532   ;
13533   return 0;
13534 }
13535 _ACEOF
13536 rm -f conftest.$ac_objext
13537 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13538   (eval $ac_compile) 2>conftest.er1
13539   ac_status=$?
13540   grep -v '^ *+' conftest.er1 >conftest.err
13541   rm -f conftest.er1
13542   cat conftest.err >&5
13543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13544   (exit $ac_status); } &&
13545          { ac_try='test -z "$ac_c_werror_flag"
13546                          || test ! -s conftest.err'
13547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13548   (eval $ac_try) 2>&5
13549   ac_status=$?
13550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13551   (exit $ac_status); }; } &&
13552          { ac_try='test -s conftest.$ac_objext'
13553   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13554   (eval $ac_try) 2>&5
13555   ac_status=$?
13556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13557   (exit $ac_status); }; }; then
13558   ac_cv_have_decl_gai_strerror=yes
13559 else
13560   echo "$as_me: failed program was:" >&5
13561 sed 's/^/| /' conftest.$ac_ext >&5
13562
13563         ac_cv_have_decl_gai_strerror=no
13564 fi
13565
13566 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13567 fi
13568 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_gai_strerror" >&5
13569 echo "${ECHO_T}$ac_cv_have_decl_gai_strerror" >&6; }
13570 if test $ac_cv_have_decl_gai_strerror = yes; then
13571
13572 cat >>confdefs.h <<_ACEOF
13573 #define HAVE_DECL_GAI_STRERROR 1
13574 _ACEOF
13575
13576
13577 else
13578   cat >>confdefs.h <<_ACEOF
13579 #define HAVE_DECL_GAI_STRERROR 0
13580 _ACEOF
13581
13582
13583 fi
13584
13585
13586   { echo "$as_me:$LINENO: checking for struct addrinfo" >&5
13587 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6; }
13588 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
13589   echo $ECHO_N "(cached) $ECHO_C" >&6
13590 else
13591   cat >conftest.$ac_ext <<_ACEOF
13592 /* confdefs.h.  */
13593 _ACEOF
13594 cat confdefs.h >>conftest.$ac_ext
13595 cat >>conftest.$ac_ext <<_ACEOF
13596 /* end confdefs.h.  */
13597
13598 #include <sys/types.h>
13599 #ifdef HAVE_SYS_SOCKET_H
13600 #include <sys/socket.h>
13601 #endif
13602 #ifdef HAVE_NETDB_H
13603 #include <netdb.h>
13604 #endif
13605 #ifdef HAVE_WS2TCPIP_H
13606 #define WINVER 0x0501
13607 #include <ws2tcpip.h>
13608 #endif
13609
13610
13611 typedef struct addrinfo ac__type_new_;
13612 int
13613 main ()
13614 {
13615 if ((ac__type_new_ *) 0)
13616   return 0;
13617 if (sizeof (ac__type_new_))
13618   return 0;
13619   ;
13620   return 0;
13621 }
13622 _ACEOF
13623 rm -f conftest.$ac_objext
13624 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13625   (eval $ac_compile) 2>conftest.er1
13626   ac_status=$?
13627   grep -v '^ *+' conftest.er1 >conftest.err
13628   rm -f conftest.er1
13629   cat conftest.err >&5
13630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13631   (exit $ac_status); } &&
13632          { ac_try='test -z "$ac_c_werror_flag"
13633                          || test ! -s conftest.err'
13634   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13635   (eval $ac_try) 2>&5
13636   ac_status=$?
13637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13638   (exit $ac_status); }; } &&
13639          { ac_try='test -s conftest.$ac_objext'
13640   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13641   (eval $ac_try) 2>&5
13642   ac_status=$?
13643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13644   (exit $ac_status); }; }; then
13645   ac_cv_type_struct_addrinfo=yes
13646 else
13647   echo "$as_me: failed program was:" >&5
13648 sed 's/^/| /' conftest.$ac_ext >&5
13649
13650         ac_cv_type_struct_addrinfo=no
13651 fi
13652
13653 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13654 fi
13655 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
13656 echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6; }
13657 if test $ac_cv_type_struct_addrinfo = yes; then
13658
13659 cat >>confdefs.h <<_ACEOF
13660 #define HAVE_STRUCT_ADDRINFO 1
13661 _ACEOF
13662
13663
13664 fi
13665
13666
13667
13668
13669
13670   case " $LIBOBJS " in
13671   *" canon-host.$ac_objext "* ) ;;
13672   *) LIBOBJS="$LIBOBJS canon-host.$ac_objext"
13673  ;;
13674 esac
13675
13676
13677
13678
13679
13680
13681
13682   case " $LIBOBJS " in
13683   *" cloexec.$ac_objext "* ) ;;
13684   *) LIBOBJS="$LIBOBJS cloexec.$ac_objext"
13685  ;;
13686 esac
13687
13688
13689
13690
13691   case " $LIBOBJS " in
13692   *" closeout.$ac_objext "* ) ;;
13693   *) LIBOBJS="$LIBOBJS closeout.$ac_objext"
13694  ;;
13695 esac
13696
13697
13698     :
13699
13700
13701
13702   { echo "$as_me:$LINENO: checking whether // is distinct from /" >&5
13703 echo $ECHO_N "checking whether // is distinct from /... $ECHO_C" >&6; }
13704 if test "${ac_cv_double_slash_root+set}" = set; then
13705   echo $ECHO_N "(cached) $ECHO_C" >&6
13706 else
13707    if test x"$cross_compiling" = xyes ; then
13708         # When cross-compiling, there is no way to tell whether // is special
13709         # short of a list of hosts.  However, the only known hosts to date
13710         # that have a distinct // are Apollo DomainOS (too old to port to)
13711         # and Cygwin.  If anyone knows of another system for which // has
13712         # special semantics and is distinct from /, please report it to
13713         # <bug-coreutils@gnu.org>.
13714         case $host in
13715           *-cygwin)
13716             ac_cv_double_slash_root=yes ;;
13717           *)
13718             # Be optimistic and assume that / and // are the same when we
13719             # don't know.
13720             ac_cv_double_slash_root='unknown, assuming no' ;;
13721         esac
13722       else
13723         set x `ls -di / //`
13724         if test $2 = $4; then
13725           ac_cv_double_slash_root=no
13726         else
13727           ac_cv_double_slash_root=yes
13728         fi
13729       fi
13730 fi
13731 { echo "$as_me:$LINENO: result: $ac_cv_double_slash_root" >&5
13732 echo "${ECHO_T}$ac_cv_double_slash_root" >&6; }
13733   if test x"$ac_cv_double_slash_root" = xyes; then
13734     ac_double_slash_root=1
13735   else
13736     ac_double_slash_root=0
13737   fi
13738
13739
13740 cat >>confdefs.h <<_ACEOF
13741 #define DOUBLE_SLASH_IS_DISTINCT_ROOT $ac_double_slash_root
13742 _ACEOF
13743
13744
13745
13746
13747   case " $LIBOBJS " in
13748   *" dirname.$ac_objext "* ) ;;
13749   *) LIBOBJS="$LIBOBJS dirname.$ac_objext"
13750  ;;
13751 esac
13752
13753
13754
13755
13756
13757
13758 { echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
13759 echo $ECHO_N "checking whether strerror_r is declared... $ECHO_C" >&6; }
13760 if test "${ac_cv_have_decl_strerror_r+set}" = set; then
13761   echo $ECHO_N "(cached) $ECHO_C" >&6
13762 else
13763   cat >conftest.$ac_ext <<_ACEOF
13764 /* confdefs.h.  */
13765 _ACEOF
13766 cat confdefs.h >>conftest.$ac_ext
13767 cat >>conftest.$ac_ext <<_ACEOF
13768 /* end confdefs.h.  */
13769 $ac_includes_default
13770 int
13771 main ()
13772 {
13773 #ifndef strerror_r
13774   char *p = (char *) strerror_r;
13775   return !p;
13776 #endif
13777
13778   ;
13779   return 0;
13780 }
13781 _ACEOF
13782 rm -f conftest.$ac_objext
13783 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13784   (eval $ac_compile) 2>conftest.er1
13785   ac_status=$?
13786   grep -v '^ *+' conftest.er1 >conftest.err
13787   rm -f conftest.er1
13788   cat conftest.err >&5
13789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13790   (exit $ac_status); } &&
13791          { ac_try='test -z "$ac_c_werror_flag"
13792                          || test ! -s conftest.err'
13793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13794   (eval $ac_try) 2>&5
13795   ac_status=$?
13796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13797   (exit $ac_status); }; } &&
13798          { ac_try='test -s conftest.$ac_objext'
13799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13800   (eval $ac_try) 2>&5
13801   ac_status=$?
13802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13803   (exit $ac_status); }; }; then
13804   ac_cv_have_decl_strerror_r=yes
13805 else
13806   echo "$as_me: failed program was:" >&5
13807 sed 's/^/| /' conftest.$ac_ext >&5
13808
13809         ac_cv_have_decl_strerror_r=no
13810 fi
13811
13812 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13813 fi
13814 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5
13815 echo "${ECHO_T}$ac_cv_have_decl_strerror_r" >&6; }
13816 if test $ac_cv_have_decl_strerror_r = yes; then
13817
13818 cat >>confdefs.h <<_ACEOF
13819 #define HAVE_DECL_STRERROR_R 1
13820 _ACEOF
13821
13822
13823 else
13824   cat >>confdefs.h <<_ACEOF
13825 #define HAVE_DECL_STRERROR_R 0
13826 _ACEOF
13827
13828
13829 fi
13830
13831
13832
13833 for ac_func in strerror_r
13834 do
13835 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13836 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13837 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13838 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13839   echo $ECHO_N "(cached) $ECHO_C" >&6
13840 else
13841   cat >conftest.$ac_ext <<_ACEOF
13842 /* confdefs.h.  */
13843 _ACEOF
13844 cat confdefs.h >>conftest.$ac_ext
13845 cat >>conftest.$ac_ext <<_ACEOF
13846 /* end confdefs.h.  */
13847 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13848    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13849 #define $ac_func innocuous_$ac_func
13850
13851 /* System header to define __stub macros and hopefully few prototypes,
13852     which can conflict with char $ac_func (); below.
13853     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13854     <limits.h> exists even on freestanding compilers.  */
13855
13856 #ifdef __STDC__
13857 # include <limits.h>
13858 #else
13859 # include <assert.h>
13860 #endif
13861
13862 #undef $ac_func
13863
13864 /* Override any GCC internal prototype to avoid an error.
13865    Use char because int might match the return type of a GCC
13866    builtin and then its argument prototype would still apply.  */
13867 #ifdef __cplusplus
13868 extern "C"
13869 #endif
13870 char $ac_func ();
13871 /* The GNU C library defines this for functions which it implements
13872     to always fail with ENOSYS.  Some functions are actually named
13873     something starting with __ and the normal name is an alias.  */
13874 #if defined __stub_$ac_func || defined __stub___$ac_func
13875 choke me
13876 #endif
13877
13878 int
13879 main ()
13880 {
13881 return $ac_func ();
13882   ;
13883   return 0;
13884 }
13885 _ACEOF
13886 rm -f conftest.$ac_objext conftest$ac_exeext
13887 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13888   (eval $ac_link) 2>conftest.er1
13889   ac_status=$?
13890   grep -v '^ *+' conftest.er1 >conftest.err
13891   rm -f conftest.er1
13892   cat conftest.err >&5
13893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13894   (exit $ac_status); } &&
13895          { ac_try='test -z "$ac_c_werror_flag"
13896                          || test ! -s conftest.err'
13897   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13898   (eval $ac_try) 2>&5
13899   ac_status=$?
13900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13901   (exit $ac_status); }; } &&
13902          { ac_try='test -s conftest$ac_exeext'
13903   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13904   (eval $ac_try) 2>&5
13905   ac_status=$?
13906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13907   (exit $ac_status); }; }; then
13908   eval "$as_ac_var=yes"
13909 else
13910   echo "$as_me: failed program was:" >&5
13911 sed 's/^/| /' conftest.$ac_ext >&5
13912
13913         eval "$as_ac_var=no"
13914 fi
13915
13916 rm -f conftest.err conftest.$ac_objext \
13917       conftest$ac_exeext conftest.$ac_ext
13918 fi
13919 ac_res=`eval echo '${'$as_ac_var'}'`
13920                { echo "$as_me:$LINENO: result: $ac_res" >&5
13921 echo "${ECHO_T}$ac_res" >&6; }
13922 if test `eval echo '${'$as_ac_var'}'` = yes; then
13923   cat >>confdefs.h <<_ACEOF
13924 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13925 _ACEOF
13926
13927 fi
13928 done
13929
13930 { echo "$as_me:$LINENO: checking whether strerror_r returns char *" >&5
13931 echo $ECHO_N "checking whether strerror_r returns char *... $ECHO_C" >&6; }
13932 if test "${ac_cv_func_strerror_r_char_p+set}" = set; then
13933   echo $ECHO_N "(cached) $ECHO_C" >&6
13934 else
13935
13936     ac_cv_func_strerror_r_char_p=no
13937     if test $ac_cv_have_decl_strerror_r = yes; then
13938       cat >conftest.$ac_ext <<_ACEOF
13939 /* confdefs.h.  */
13940 _ACEOF
13941 cat confdefs.h >>conftest.$ac_ext
13942 cat >>conftest.$ac_ext <<_ACEOF
13943 /* end confdefs.h.  */
13944 $ac_includes_default
13945 int
13946 main ()
13947 {
13948
13949           char buf[100];
13950           char x = *strerror_r (0, buf, sizeof buf);
13951           char *p = strerror_r (0, buf, sizeof buf);
13952           return !p || x;
13953
13954   ;
13955   return 0;
13956 }
13957 _ACEOF
13958 rm -f conftest.$ac_objext
13959 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13960   (eval $ac_compile) 2>conftest.er1
13961   ac_status=$?
13962   grep -v '^ *+' conftest.er1 >conftest.err
13963   rm -f conftest.er1
13964   cat conftest.err >&5
13965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13966   (exit $ac_status); } &&
13967          { ac_try='test -z "$ac_c_werror_flag"
13968                          || test ! -s conftest.err'
13969   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13970   (eval $ac_try) 2>&5
13971   ac_status=$?
13972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13973   (exit $ac_status); }; } &&
13974          { ac_try='test -s conftest.$ac_objext'
13975   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13976   (eval $ac_try) 2>&5
13977   ac_status=$?
13978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13979   (exit $ac_status); }; }; then
13980   ac_cv_func_strerror_r_char_p=yes
13981 else
13982   echo "$as_me: failed program was:" >&5
13983 sed 's/^/| /' conftest.$ac_ext >&5
13984
13985
13986 fi
13987
13988 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13989     else
13990       # strerror_r is not declared.  Choose between
13991       # systems that have relatively inaccessible declarations for the
13992       # function.  BeOS and DEC UNIX 4.0 fall in this category, but the
13993       # former has a strerror_r that returns char*, while the latter
13994       # has a strerror_r that returns `int'.
13995       # This test should segfault on the DEC system.
13996       if test "$cross_compiling" = yes; then
13997   :
13998 else
13999   cat >conftest.$ac_ext <<_ACEOF
14000 /* confdefs.h.  */
14001 _ACEOF
14002 cat confdefs.h >>conftest.$ac_ext
14003 cat >>conftest.$ac_ext <<_ACEOF
14004 /* end confdefs.h.  */
14005 $ac_includes_default
14006         extern char *strerror_r ();
14007 int
14008 main ()
14009 {
14010 char buf[100];
14011           char x = *strerror_r (0, buf, sizeof buf);
14012           return ! isalpha (x);
14013   ;
14014   return 0;
14015 }
14016 _ACEOF
14017 rm -f conftest$ac_exeext
14018 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14019   (eval $ac_link) 2>&5
14020   ac_status=$?
14021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14022   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14023   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14024   (eval $ac_try) 2>&5
14025   ac_status=$?
14026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14027   (exit $ac_status); }; }; then
14028   ac_cv_func_strerror_r_char_p=yes
14029 else
14030   echo "$as_me: program exited with status $ac_status" >&5
14031 echo "$as_me: failed program was:" >&5
14032 sed 's/^/| /' conftest.$ac_ext >&5
14033
14034 fi
14035 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14036 fi
14037
14038
14039     fi
14040
14041 fi
14042 { echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_char_p" >&5
14043 echo "${ECHO_T}$ac_cv_func_strerror_r_char_p" >&6; }
14044 if test $ac_cv_func_strerror_r_char_p = yes; then
14045
14046 cat >>confdefs.h <<\_ACEOF
14047 #define STRERROR_R_CHAR_P 1
14048 _ACEOF
14049
14050 fi
14051
14052
14053   { echo "$as_me:$LINENO: checking for error_at_line" >&5
14054 echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6; }
14055 if test "${ac_cv_lib_error_at_line+set}" = set; then
14056   echo $ECHO_N "(cached) $ECHO_C" >&6
14057 else
14058   cat >conftest.$ac_ext <<_ACEOF
14059 /* confdefs.h.  */
14060 _ACEOF
14061 cat confdefs.h >>conftest.$ac_ext
14062 cat >>conftest.$ac_ext <<_ACEOF
14063 /* end confdefs.h.  */
14064 $ac_includes_default
14065 int
14066 main ()
14067 {
14068 error_at_line (0, 0, "", 0, "");
14069   ;
14070   return 0;
14071 }
14072 _ACEOF
14073 rm -f conftest.$ac_objext conftest$ac_exeext
14074 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14075   (eval $ac_link) 2>conftest.er1
14076   ac_status=$?
14077   grep -v '^ *+' conftest.er1 >conftest.err
14078   rm -f conftest.er1
14079   cat conftest.err >&5
14080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14081   (exit $ac_status); } &&
14082          { ac_try='test -z "$ac_c_werror_flag"
14083                          || test ! -s conftest.err'
14084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14085   (eval $ac_try) 2>&5
14086   ac_status=$?
14087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14088   (exit $ac_status); }; } &&
14089          { ac_try='test -s conftest$ac_exeext'
14090   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14091   (eval $ac_try) 2>&5
14092   ac_status=$?
14093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14094   (exit $ac_status); }; }; then
14095   ac_cv_lib_error_at_line=yes
14096 else
14097   echo "$as_me: failed program was:" >&5
14098 sed 's/^/| /' conftest.$ac_ext >&5
14099
14100         ac_cv_lib_error_at_line=no
14101 fi
14102
14103 rm -f conftest.err conftest.$ac_objext \
14104       conftest$ac_exeext conftest.$ac_ext
14105 fi
14106 { echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
14107 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6; }
14108 if test $ac_cv_lib_error_at_line = no; then
14109   case " $LIBOBJS " in
14110   *" error.$ac_objext "* ) ;;
14111   *) LIBOBJS="$LIBOBJS error.$ac_objext"
14112  ;;
14113 esac
14114
14115 fi
14116
14117
14118
14119   :
14120
14121
14122
14123
14124
14125
14126
14127
14128
14129
14130   case " $LIBOBJS " in
14131   *" exclude.$ac_objext "* ) ;;
14132   *) LIBOBJS="$LIBOBJS exclude.$ac_objext"
14133  ;;
14134 esac
14135
14136
14137
14138
14139
14140   :
14141
14142
14143
14144
14145
14146
14147
14148
14149   case " $LIBOBJS " in
14150   *" exitfail.$ac_objext "* ) ;;
14151   *) LIBOBJS="$LIBOBJS exitfail.$ac_objext"
14152  ;;
14153 esac
14154
14155
14156     :
14157
14158
14159
14160   case " $LIBOBJS " in
14161   *" open-safer.$ac_objext "* ) ;;
14162   *) LIBOBJS="$LIBOBJS open-safer.$ac_objext"
14163  ;;
14164 esac
14165
14166   case " $LIBOBJS " in
14167   *" creat-safer.$ac_objext "* ) ;;
14168   *) LIBOBJS="$LIBOBJS creat-safer.$ac_objext"
14169  ;;
14170 esac
14171
14172
14173
14174
14175   case " $LIBOBJS " in
14176   *" fd-reopen.$ac_objext "* ) ;;
14177   *) LIBOBJS="$LIBOBJS fd-reopen.$ac_objext"
14178  ;;
14179 esac
14180
14181
14182
14183   { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
14184 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
14185 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
14186   echo $ECHO_N "(cached) $ECHO_C" >&6
14187 else
14188   cat >conftest.$ac_ext <<_ACEOF
14189 /* confdefs.h.  */
14190 _ACEOF
14191 cat confdefs.h >>conftest.$ac_ext
14192 cat >>conftest.$ac_ext <<_ACEOF
14193 /* end confdefs.h.  */
14194 $ac_includes_default
14195 int
14196 main ()
14197 {
14198 static struct stat ac_aggr;
14199 if (ac_aggr.st_blocks)
14200 return 0;
14201   ;
14202   return 0;
14203 }
14204 _ACEOF
14205 rm -f conftest.$ac_objext
14206 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14207   (eval $ac_compile) 2>conftest.er1
14208   ac_status=$?
14209   grep -v '^ *+' conftest.er1 >conftest.err
14210   rm -f conftest.er1
14211   cat conftest.err >&5
14212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14213   (exit $ac_status); } &&
14214          { ac_try='test -z "$ac_c_werror_flag"
14215                          || test ! -s conftest.err'
14216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14217   (eval $ac_try) 2>&5
14218   ac_status=$?
14219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14220   (exit $ac_status); }; } &&
14221          { ac_try='test -s conftest.$ac_objext'
14222   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14223   (eval $ac_try) 2>&5
14224   ac_status=$?
14225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14226   (exit $ac_status); }; }; then
14227   ac_cv_member_struct_stat_st_blocks=yes
14228 else
14229   echo "$as_me: failed program was:" >&5
14230 sed 's/^/| /' conftest.$ac_ext >&5
14231
14232         cat >conftest.$ac_ext <<_ACEOF
14233 /* confdefs.h.  */
14234 _ACEOF
14235 cat confdefs.h >>conftest.$ac_ext
14236 cat >>conftest.$ac_ext <<_ACEOF
14237 /* end confdefs.h.  */
14238 $ac_includes_default
14239 int
14240 main ()
14241 {
14242 static struct stat ac_aggr;
14243 if (sizeof ac_aggr.st_blocks)
14244 return 0;
14245   ;
14246   return 0;
14247 }
14248 _ACEOF
14249 rm -f conftest.$ac_objext
14250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14251   (eval $ac_compile) 2>conftest.er1
14252   ac_status=$?
14253   grep -v '^ *+' conftest.er1 >conftest.err
14254   rm -f conftest.er1
14255   cat conftest.err >&5
14256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14257   (exit $ac_status); } &&
14258          { ac_try='test -z "$ac_c_werror_flag"
14259                          || test ! -s conftest.err'
14260   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14261   (eval $ac_try) 2>&5
14262   ac_status=$?
14263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14264   (exit $ac_status); }; } &&
14265          { ac_try='test -s conftest.$ac_objext'
14266   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14267   (eval $ac_try) 2>&5
14268   ac_status=$?
14269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14270   (exit $ac_status); }; }; then
14271   ac_cv_member_struct_stat_st_blocks=yes
14272 else
14273   echo "$as_me: failed program was:" >&5
14274 sed 's/^/| /' conftest.$ac_ext >&5
14275
14276         ac_cv_member_struct_stat_st_blocks=no
14277 fi
14278
14279 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14280 fi
14281
14282 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14283 fi
14284 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
14285 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
14286 if test $ac_cv_member_struct_stat_st_blocks = yes; then
14287
14288 cat >>confdefs.h <<_ACEOF
14289 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
14290 _ACEOF
14291
14292
14293 cat >>confdefs.h <<\_ACEOF
14294 #define HAVE_ST_BLOCKS 1
14295 _ACEOF
14296
14297 else
14298   case " $LIBOBJS " in
14299   *" fileblocks.$ac_objext "* ) ;;
14300   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
14301  ;;
14302 esac
14303
14304 fi
14305
14306
14307     if test $ac_cv_member_struct_stat_st_blocks = no; then
14308
14309
14310   :
14311
14312
14313
14314
14315
14316
14317   fi
14318
14319
14320       { echo "$as_me:$LINENO: checking whether strmode is declared" >&5
14321 echo $ECHO_N "checking whether strmode is declared... $ECHO_C" >&6; }
14322 if test "${ac_cv_have_decl_strmode+set}" = set; then
14323   echo $ECHO_N "(cached) $ECHO_C" >&6
14324 else
14325   cat >conftest.$ac_ext <<_ACEOF
14326 /* confdefs.h.  */
14327 _ACEOF
14328 cat confdefs.h >>conftest.$ac_ext
14329 cat >>conftest.$ac_ext <<_ACEOF
14330 /* end confdefs.h.  */
14331 $ac_includes_default
14332 int
14333 main ()
14334 {
14335 #ifndef strmode
14336   char *p = (char *) strmode;
14337   return !p;
14338 #endif
14339
14340   ;
14341   return 0;
14342 }
14343 _ACEOF
14344 rm -f conftest.$ac_objext
14345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14346   (eval $ac_compile) 2>conftest.er1
14347   ac_status=$?
14348   grep -v '^ *+' conftest.er1 >conftest.err
14349   rm -f conftest.er1
14350   cat conftest.err >&5
14351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14352   (exit $ac_status); } &&
14353          { ac_try='test -z "$ac_c_werror_flag"
14354                          || test ! -s conftest.err'
14355   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14356   (eval $ac_try) 2>&5
14357   ac_status=$?
14358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14359   (exit $ac_status); }; } &&
14360          { ac_try='test -s conftest.$ac_objext'
14361   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14362   (eval $ac_try) 2>&5
14363   ac_status=$?
14364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14365   (exit $ac_status); }; }; then
14366   ac_cv_have_decl_strmode=yes
14367 else
14368   echo "$as_me: failed program was:" >&5
14369 sed 's/^/| /' conftest.$ac_ext >&5
14370
14371         ac_cv_have_decl_strmode=no
14372 fi
14373
14374 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14375 fi
14376 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strmode" >&5
14377 echo "${ECHO_T}$ac_cv_have_decl_strmode" >&6; }
14378 if test $ac_cv_have_decl_strmode = yes; then
14379
14380 cat >>confdefs.h <<_ACEOF
14381 #define HAVE_DECL_STRMODE 1
14382 _ACEOF
14383
14384
14385 else
14386   cat >>confdefs.h <<_ACEOF
14387 #define HAVE_DECL_STRMODE 0
14388 _ACEOF
14389
14390
14391 fi
14392
14393
14394
14395
14396
14397   case " $LIBOBJS " in
14398   *" filemode.$ac_objext "* ) ;;
14399   *) LIBOBJS="$LIBOBJS filemode.$ac_objext"
14400  ;;
14401 esac
14402
14403
14404   :
14405
14406
14407
14408
14409
14410
14411
14412
14413
14414
14415
14416
14417
14418
14419   case " $LIBOBJS " in
14420   *" filenamecat.$ac_objext "* ) ;;
14421   *) LIBOBJS="$LIBOBJS filenamecat.$ac_objext"
14422  ;;
14423 esac
14424
14425
14426
14427   :
14428
14429
14430
14431
14432
14433
14434
14435
14436   case " $LIBOBJS " in
14437   *" file-type.$ac_objext "* ) ;;
14438   *) LIBOBJS="$LIBOBJS file-type.$ac_objext"
14439  ;;
14440 esac
14441
14442
14443
14444
14445
14446
14447
14448
14449
14450
14451
14452
14453   :
14454
14455
14456
14457
14458
14459
14460   :
14461
14462
14463
14464
14465
14466
14467
14468
14469
14470 for ac_header in sys/mount.h
14471 do
14472 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14473 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14474 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14475 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14476   echo $ECHO_N "(cached) $ECHO_C" >&6
14477 else
14478   cat >conftest.$ac_ext <<_ACEOF
14479 /* confdefs.h.  */
14480 _ACEOF
14481 cat confdefs.h >>conftest.$ac_ext
14482 cat >>conftest.$ac_ext <<_ACEOF
14483 /* end confdefs.h.  */
14484 $ac_includes_default
14485      #if HAVE_SYS_PARAM_H
14486        #include <sys/param.h>
14487       #endif
14488
14489 #include <$ac_header>
14490 _ACEOF
14491 rm -f conftest.$ac_objext
14492 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14493   (eval $ac_compile) 2>conftest.er1
14494   ac_status=$?
14495   grep -v '^ *+' conftest.er1 >conftest.err
14496   rm -f conftest.er1
14497   cat conftest.err >&5
14498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14499   (exit $ac_status); } &&
14500          { ac_try='test -z "$ac_c_werror_flag"
14501                          || test ! -s conftest.err'
14502   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14503   (eval $ac_try) 2>&5
14504   ac_status=$?
14505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14506   (exit $ac_status); }; } &&
14507          { ac_try='test -s conftest.$ac_objext'
14508   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14509   (eval $ac_try) 2>&5
14510   ac_status=$?
14511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14512   (exit $ac_status); }; }; then
14513   eval "$as_ac_Header=yes"
14514 else
14515   echo "$as_me: failed program was:" >&5
14516 sed 's/^/| /' conftest.$ac_ext >&5
14517
14518         eval "$as_ac_Header=no"
14519 fi
14520
14521 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14522 fi
14523 ac_res=`eval echo '${'$as_ac_Header'}'`
14524                { echo "$as_me:$LINENO: result: $ac_res" >&5
14525 echo "${ECHO_T}$ac_res" >&6; }
14526 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14527   cat >>confdefs.h <<_ACEOF
14528 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14529 _ACEOF
14530
14531 fi
14532
14533 done
14534
14535
14536
14537 echo "checking how to get file system space usage..."
14538 ac_fsusage_space=no
14539
14540 # Perform only the link test since it seems there are no variants of the
14541 # statvfs function.  This check is more than just AC_CHECK_FUNCS(statvfs)
14542 # because that got a false positive on SCO OSR5.  Adding the declaration
14543 # of a `struct statvfs' causes this test to fail (as it should) on such
14544 # systems.  That system is reported to work fine with STAT_STATFS4 which
14545 # is what it gets when this test fails.
14546 if test $ac_fsusage_space = no; then
14547   # SVR4
14548   { echo "$as_me:$LINENO: checking for statvfs function (SVR4)" >&5
14549 echo $ECHO_N "checking for statvfs function (SVR4)... $ECHO_C" >&6; }
14550 if test "${fu_cv_sys_stat_statvfs+set}" = set; then
14551   echo $ECHO_N "(cached) $ECHO_C" >&6
14552 else
14553   cat >conftest.$ac_ext <<_ACEOF
14554 /* confdefs.h.  */
14555 _ACEOF
14556 cat confdefs.h >>conftest.$ac_ext
14557 cat >>conftest.$ac_ext <<_ACEOF
14558 /* end confdefs.h.  */
14559 #include <sys/types.h>
14560 #ifdef __GLIBC__
14561 Do not use statvfs on systems with GNU libc, because that function stats
14562 all preceding entries in /proc/mounts, and that makes df hang if even
14563 one of the corresponding file systems is hard-mounted, but not available.
14564 #endif
14565 #include <sys/statvfs.h>
14566 int
14567 main ()
14568 {
14569 struct statvfs fsd; statvfs (0, &fsd);
14570   ;
14571   return 0;
14572 }
14573 _ACEOF
14574 rm -f conftest.$ac_objext conftest$ac_exeext
14575 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14576   (eval $ac_link) 2>conftest.er1
14577   ac_status=$?
14578   grep -v '^ *+' conftest.er1 >conftest.err
14579   rm -f conftest.er1
14580   cat conftest.err >&5
14581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14582   (exit $ac_status); } &&
14583          { ac_try='test -z "$ac_c_werror_flag"
14584                          || test ! -s conftest.err'
14585   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14586   (eval $ac_try) 2>&5
14587   ac_status=$?
14588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14589   (exit $ac_status); }; } &&
14590          { ac_try='test -s conftest$ac_exeext'
14591   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14592   (eval $ac_try) 2>&5
14593   ac_status=$?
14594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14595   (exit $ac_status); }; }; then
14596   fu_cv_sys_stat_statvfs=yes
14597 else
14598   echo "$as_me: failed program was:" >&5
14599 sed 's/^/| /' conftest.$ac_ext >&5
14600
14601         fu_cv_sys_stat_statvfs=no
14602 fi
14603
14604 rm -f conftest.err conftest.$ac_objext \
14605       conftest$ac_exeext conftest.$ac_ext
14606 fi
14607 { echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statvfs" >&5
14608 echo "${ECHO_T}$fu_cv_sys_stat_statvfs" >&6; }
14609   if test $fu_cv_sys_stat_statvfs = yes; then
14610     ac_fsusage_space=yes
14611
14612 cat >>confdefs.h <<\_ACEOF
14613 #define STAT_STATVFS 1
14614 _ACEOF
14615
14616   fi
14617 fi
14618
14619 if test $ac_fsusage_space = no; then
14620   # DEC Alpha running OSF/1
14621   { echo "$as_me:$LINENO: checking for 3-argument statfs function (DEC OSF/1)" >&5
14622 echo $ECHO_N "checking for 3-argument statfs function (DEC OSF/1)... $ECHO_C" >&6; }
14623   if test "${fu_cv_sys_stat_statfs3_osf1+set}" = set; then
14624   echo $ECHO_N "(cached) $ECHO_C" >&6
14625 else
14626   if test "$cross_compiling" = yes; then
14627   fu_cv_sys_stat_statfs3_osf1=no
14628 else
14629   cat >conftest.$ac_ext <<_ACEOF
14630 /* confdefs.h.  */
14631 _ACEOF
14632 cat confdefs.h >>conftest.$ac_ext
14633 cat >>conftest.$ac_ext <<_ACEOF
14634 /* end confdefs.h.  */
14635
14636 #include <sys/param.h>
14637 #include <sys/types.h>
14638 #include <sys/mount.h>
14639   int
14640   main ()
14641   {
14642     struct statfs fsd;
14643     fsd.f_fsize = 0;
14644     return statfs (".", &fsd, sizeof (struct statfs)) != 0;
14645   }
14646 _ACEOF
14647 rm -f conftest$ac_exeext
14648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14649   (eval $ac_link) 2>&5
14650   ac_status=$?
14651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14652   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14653   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14654   (eval $ac_try) 2>&5
14655   ac_status=$?
14656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14657   (exit $ac_status); }; }; then
14658   fu_cv_sys_stat_statfs3_osf1=yes
14659 else
14660   echo "$as_me: program exited with status $ac_status" >&5
14661 echo "$as_me: failed program was:" >&5
14662 sed 's/^/| /' conftest.$ac_ext >&5
14663
14664 ( exit $ac_status )
14665 fu_cv_sys_stat_statfs3_osf1=no
14666 fi
14667 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14668 fi
14669
14670
14671 fi
14672
14673   { echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs3_osf1" >&5
14674 echo "${ECHO_T}$fu_cv_sys_stat_statfs3_osf1" >&6; }
14675   if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
14676     ac_fsusage_space=yes
14677
14678 cat >>confdefs.h <<\_ACEOF
14679 #define STAT_STATFS3_OSF1 1
14680 _ACEOF
14681
14682   fi
14683 fi
14684
14685 if test $ac_fsusage_space = no; then
14686 # AIX
14687   { echo "$as_me:$LINENO: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
14688 echo $ECHO_N "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)... $ECHO_C" >&6; }
14689   if test "${fu_cv_sys_stat_statfs2_bsize+set}" = set; then
14690   echo $ECHO_N "(cached) $ECHO_C" >&6
14691 else
14692   if test "$cross_compiling" = yes; then
14693   fu_cv_sys_stat_statfs2_bsize=no
14694 else
14695   cat >conftest.$ac_ext <<_ACEOF
14696 /* confdefs.h.  */
14697 _ACEOF
14698 cat confdefs.h >>conftest.$ac_ext
14699 cat >>conftest.$ac_ext <<_ACEOF
14700 /* end confdefs.h.  */
14701
14702 #ifdef HAVE_SYS_PARAM_H
14703 #include <sys/param.h>
14704 #endif
14705 #ifdef HAVE_SYS_MOUNT_H
14706 #include <sys/mount.h>
14707 #endif
14708 #ifdef HAVE_SYS_VFS_H
14709 #include <sys/vfs.h>
14710 #endif
14711   int
14712   main ()
14713   {
14714   struct statfs fsd;
14715   fsd.f_bsize = 0;
14716   return statfs (".", &fsd) != 0;
14717   }
14718 _ACEOF
14719 rm -f conftest$ac_exeext
14720 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14721   (eval $ac_link) 2>&5
14722   ac_status=$?
14723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14724   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14726   (eval $ac_try) 2>&5
14727   ac_status=$?
14728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14729   (exit $ac_status); }; }; then
14730   fu_cv_sys_stat_statfs2_bsize=yes
14731 else
14732   echo "$as_me: program exited with status $ac_status" >&5
14733 echo "$as_me: failed program was:" >&5
14734 sed 's/^/| /' conftest.$ac_ext >&5
14735
14736 ( exit $ac_status )
14737 fu_cv_sys_stat_statfs2_bsize=no
14738 fi
14739 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14740 fi
14741
14742
14743 fi
14744
14745   { echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs2_bsize" >&5
14746 echo "${ECHO_T}$fu_cv_sys_stat_statfs2_bsize" >&6; }
14747   if test $fu_cv_sys_stat_statfs2_bsize = yes; then
14748     ac_fsusage_space=yes
14749
14750 cat >>confdefs.h <<\_ACEOF
14751 #define STAT_STATFS2_BSIZE 1
14752 _ACEOF
14753
14754   fi
14755 fi
14756
14757 if test $ac_fsusage_space = no; then
14758 # SVR3
14759   { echo "$as_me:$LINENO: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
14760 echo $ECHO_N "checking for four-argument statfs (AIX-3.2.5, SVR3)... $ECHO_C" >&6; }
14761   if test "${fu_cv_sys_stat_statfs4+set}" = set; then
14762   echo $ECHO_N "(cached) $ECHO_C" >&6
14763 else
14764   if test "$cross_compiling" = yes; then
14765   fu_cv_sys_stat_statfs4=no
14766 else
14767   cat >conftest.$ac_ext <<_ACEOF
14768 /* confdefs.h.  */
14769 _ACEOF
14770 cat confdefs.h >>conftest.$ac_ext
14771 cat >>conftest.$ac_ext <<_ACEOF
14772 /* end confdefs.h.  */
14773 #include <sys/types.h>
14774 #include <sys/statfs.h>
14775   int
14776   main ()
14777   {
14778   struct statfs fsd;
14779   return statfs (".", &fsd, sizeof fsd, 0) != 0;
14780   }
14781 _ACEOF
14782 rm -f conftest$ac_exeext
14783 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14784   (eval $ac_link) 2>&5
14785   ac_status=$?
14786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14787   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14789   (eval $ac_try) 2>&5
14790   ac_status=$?
14791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14792   (exit $ac_status); }; }; then
14793   fu_cv_sys_stat_statfs4=yes
14794 else
14795   echo "$as_me: program exited with status $ac_status" >&5
14796 echo "$as_me: failed program was:" >&5
14797 sed 's/^/| /' conftest.$ac_ext >&5
14798
14799 ( exit $ac_status )
14800 fu_cv_sys_stat_statfs4=no
14801 fi
14802 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14803 fi
14804
14805
14806 fi
14807
14808   { echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs4" >&5
14809 echo "${ECHO_T}$fu_cv_sys_stat_statfs4" >&6; }
14810   if test $fu_cv_sys_stat_statfs4 = yes; then
14811     ac_fsusage_space=yes
14812
14813 cat >>confdefs.h <<\_ACEOF
14814 #define STAT_STATFS4 1
14815 _ACEOF
14816
14817   fi
14818 fi
14819
14820 if test $ac_fsusage_space = no; then
14821 # 4.4BSD and NetBSD
14822   { echo "$as_me:$LINENO: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
14823 echo $ECHO_N "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)... $ECHO_C" >&6; }
14824   if test "${fu_cv_sys_stat_statfs2_fsize+set}" = set; then
14825   echo $ECHO_N "(cached) $ECHO_C" >&6
14826 else
14827   if test "$cross_compiling" = yes; then
14828   fu_cv_sys_stat_statfs2_fsize=no
14829 else
14830   cat >conftest.$ac_ext <<_ACEOF
14831 /* confdefs.h.  */
14832 _ACEOF
14833 cat confdefs.h >>conftest.$ac_ext
14834 cat >>conftest.$ac_ext <<_ACEOF
14835 /* end confdefs.h.  */
14836 #include <sys/types.h>
14837 #ifdef HAVE_SYS_PARAM_H
14838 #include <sys/param.h>
14839 #endif
14840 #ifdef HAVE_SYS_MOUNT_H
14841 #include <sys/mount.h>
14842 #endif
14843   int
14844   main ()
14845   {
14846   struct statfs fsd;
14847   fsd.f_fsize = 0;
14848   return statfs (".", &fsd) != 0;
14849   }
14850 _ACEOF
14851 rm -f conftest$ac_exeext
14852 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14853   (eval $ac_link) 2>&5
14854   ac_status=$?
14855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14856   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14857   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14858   (eval $ac_try) 2>&5
14859   ac_status=$?
14860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14861   (exit $ac_status); }; }; then
14862   fu_cv_sys_stat_statfs2_fsize=yes
14863 else
14864   echo "$as_me: program exited with status $ac_status" >&5
14865 echo "$as_me: failed program was:" >&5
14866 sed 's/^/| /' conftest.$ac_ext >&5
14867
14868 ( exit $ac_status )
14869 fu_cv_sys_stat_statfs2_fsize=no
14870 fi
14871 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14872 fi
14873
14874
14875 fi
14876
14877   { echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs2_fsize" >&5
14878 echo "${ECHO_T}$fu_cv_sys_stat_statfs2_fsize" >&6; }
14879   if test $fu_cv_sys_stat_statfs2_fsize = yes; then
14880     ac_fsusage_space=yes
14881
14882 cat >>confdefs.h <<\_ACEOF
14883 #define STAT_STATFS2_FSIZE 1
14884 _ACEOF
14885
14886   fi
14887 fi
14888
14889 if test $ac_fsusage_space = no; then
14890   # Ultrix
14891   { echo "$as_me:$LINENO: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
14892 echo $ECHO_N "checking for two-argument statfs with struct fs_data (Ultrix)... $ECHO_C" >&6; }
14893   if test "${fu_cv_sys_stat_fs_data+set}" = set; then
14894   echo $ECHO_N "(cached) $ECHO_C" >&6
14895 else
14896   if test "$cross_compiling" = yes; then
14897   fu_cv_sys_stat_fs_data=no
14898 else
14899   cat >conftest.$ac_ext <<_ACEOF
14900 /* confdefs.h.  */
14901 _ACEOF
14902 cat confdefs.h >>conftest.$ac_ext
14903 cat >>conftest.$ac_ext <<_ACEOF
14904 /* end confdefs.h.  */
14905 #include <sys/types.h>
14906 #ifdef HAVE_SYS_PARAM_H
14907 #include <sys/param.h>
14908 #endif
14909 #ifdef HAVE_SYS_MOUNT_H
14910 #include <sys/mount.h>
14911 #endif
14912 #ifdef HAVE_SYS_FS_TYPES_H
14913 #include <sys/fs_types.h>
14914 #endif
14915   int
14916   main ()
14917   {
14918   struct fs_data fsd;
14919   /* Ultrix's statfs returns 1 for success,
14920      0 for not mounted, -1 for failure.  */
14921   return statfs (".", &fsd) != 1;
14922   }
14923 _ACEOF
14924 rm -f conftest$ac_exeext
14925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14926   (eval $ac_link) 2>&5
14927   ac_status=$?
14928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14929   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14930   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14931   (eval $ac_try) 2>&5
14932   ac_status=$?
14933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14934   (exit $ac_status); }; }; then
14935   fu_cv_sys_stat_fs_data=yes
14936 else
14937   echo "$as_me: program exited with status $ac_status" >&5
14938 echo "$as_me: failed program was:" >&5
14939 sed 's/^/| /' conftest.$ac_ext >&5
14940
14941 ( exit $ac_status )
14942 fu_cv_sys_stat_fs_data=no
14943 fi
14944 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14945 fi
14946
14947
14948 fi
14949
14950   { echo "$as_me:$LINENO: result: $fu_cv_sys_stat_fs_data" >&5
14951 echo "${ECHO_T}$fu_cv_sys_stat_fs_data" >&6; }
14952   if test $fu_cv_sys_stat_fs_data = yes; then
14953     ac_fsusage_space=yes
14954
14955 cat >>confdefs.h <<\_ACEOF
14956 #define STAT_STATFS2_FS_DATA 1
14957 _ACEOF
14958
14959   fi
14960 fi
14961
14962 if test $ac_fsusage_space = no; then
14963   # SVR2
14964   cat >conftest.$ac_ext <<_ACEOF
14965 /* confdefs.h.  */
14966 _ACEOF
14967 cat confdefs.h >>conftest.$ac_ext
14968 cat >>conftest.$ac_ext <<_ACEOF
14969 /* end confdefs.h.  */
14970 #include <sys/filsys.h>
14971
14972 _ACEOF
14973 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14974   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14975   ac_status=$?
14976   grep -v '^ *+' conftest.er1 >conftest.err
14977   rm -f conftest.er1
14978   cat conftest.err >&5
14979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14980   (exit $ac_status); } >/dev/null; then
14981   if test -s conftest.err; then
14982     ac_cpp_err=$ac_c_preproc_warn_flag
14983     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14984   else
14985     ac_cpp_err=
14986   fi
14987 else
14988   ac_cpp_err=yes
14989 fi
14990 if test -z "$ac_cpp_err"; then
14991
14992 cat >>confdefs.h <<\_ACEOF
14993 #define STAT_READ_FILSYS 1
14994 _ACEOF
14995
14996     ac_fsusage_space=yes
14997 else
14998   echo "$as_me: failed program was:" >&5
14999 sed 's/^/| /' conftest.$ac_ext >&5
15000
15001
15002 fi
15003
15004 rm -f conftest.err conftest.$ac_ext
15005 fi
15006
15007 if test $ac_fsusage_space = yes; then
15008   gl_cv_fs_space=yes
15009 else
15010   gl_cv_fs_space=no
15011 fi
15012
15013
15014
15015   if test $gl_cv_fs_space = yes; then
15016     case " $LIBOBJS " in
15017   *" fsusage.$ac_objext "* ) ;;
15018   *) LIBOBJS="$LIBOBJS fsusage.$ac_objext"
15019  ;;
15020 esac
15021
15022
15023
15024
15025
15026
15027
15028
15029 for ac_header in dustat.h sys/fs/s5param.h sys/filsys.h sys/statfs.h sys/statvfs.h
15030 do
15031 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15032 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15033   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15034 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15035 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15036   echo $ECHO_N "(cached) $ECHO_C" >&6
15037 fi
15038 ac_res=`eval echo '${'$as_ac_Header'}'`
15039                { echo "$as_me:$LINENO: result: $ac_res" >&5
15040 echo "${ECHO_T}$ac_res" >&6; }
15041 else
15042   # Is the header compilable?
15043 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15044 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15045 cat >conftest.$ac_ext <<_ACEOF
15046 /* confdefs.h.  */
15047 _ACEOF
15048 cat confdefs.h >>conftest.$ac_ext
15049 cat >>conftest.$ac_ext <<_ACEOF
15050 /* end confdefs.h.  */
15051 $ac_includes_default
15052 #include <$ac_header>
15053 _ACEOF
15054 rm -f conftest.$ac_objext
15055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15056   (eval $ac_compile) 2>conftest.er1
15057   ac_status=$?
15058   grep -v '^ *+' conftest.er1 >conftest.err
15059   rm -f conftest.er1
15060   cat conftest.err >&5
15061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15062   (exit $ac_status); } &&
15063          { ac_try='test -z "$ac_c_werror_flag"
15064                          || test ! -s conftest.err'
15065   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15066   (eval $ac_try) 2>&5
15067   ac_status=$?
15068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15069   (exit $ac_status); }; } &&
15070          { ac_try='test -s conftest.$ac_objext'
15071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15072   (eval $ac_try) 2>&5
15073   ac_status=$?
15074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15075   (exit $ac_status); }; }; then
15076   ac_header_compiler=yes
15077 else
15078   echo "$as_me: failed program was:" >&5
15079 sed 's/^/| /' conftest.$ac_ext >&5
15080
15081         ac_header_compiler=no
15082 fi
15083
15084 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15085 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15086 echo "${ECHO_T}$ac_header_compiler" >&6; }
15087
15088 # Is the header present?
15089 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15090 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15091 cat >conftest.$ac_ext <<_ACEOF
15092 /* confdefs.h.  */
15093 _ACEOF
15094 cat confdefs.h >>conftest.$ac_ext
15095 cat >>conftest.$ac_ext <<_ACEOF
15096 /* end confdefs.h.  */
15097 #include <$ac_header>
15098 _ACEOF
15099 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15100   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15101   ac_status=$?
15102   grep -v '^ *+' conftest.er1 >conftest.err
15103   rm -f conftest.er1
15104   cat conftest.err >&5
15105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15106   (exit $ac_status); } >/dev/null; then
15107   if test -s conftest.err; then
15108     ac_cpp_err=$ac_c_preproc_warn_flag
15109     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15110   else
15111     ac_cpp_err=
15112   fi
15113 else
15114   ac_cpp_err=yes
15115 fi
15116 if test -z "$ac_cpp_err"; then
15117   ac_header_preproc=yes
15118 else
15119   echo "$as_me: failed program was:" >&5
15120 sed 's/^/| /' conftest.$ac_ext >&5
15121
15122   ac_header_preproc=no
15123 fi
15124
15125 rm -f conftest.err conftest.$ac_ext
15126 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15127 echo "${ECHO_T}$ac_header_preproc" >&6; }
15128
15129 # So?  What about this header?
15130 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15131   yes:no: )
15132     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15133 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15134     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15135 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15136     ac_header_preproc=yes
15137     ;;
15138   no:yes:* )
15139     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15140 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15141     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15142 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15143     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15144 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15145     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15146 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15147     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15148 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15149     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15150 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15151     ( cat <<\_ASBOX
15152 ## ------------------------------------ ##
15153 ## Report this to bug-coreutils@gnu.org ##
15154 ## ------------------------------------ ##
15155 _ASBOX
15156      ) | sed "s/^/$as_me: WARNING:     /" >&2
15157     ;;
15158 esac
15159 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15160 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15161 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15162   echo $ECHO_N "(cached) $ECHO_C" >&6
15163 else
15164   eval "$as_ac_Header=\$ac_header_preproc"
15165 fi
15166 ac_res=`eval echo '${'$as_ac_Header'}'`
15167                { echo "$as_me:$LINENO: result: $ac_res" >&5
15168 echo "${ECHO_T}$ac_res" >&6; }
15169
15170 fi
15171 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15172   cat >>confdefs.h <<_ACEOF
15173 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15174 _ACEOF
15175
15176 fi
15177
15178 done
15179
15180
15181   { echo "$as_me:$LINENO: checking for statfs that truncates block counts" >&5
15182 echo $ECHO_N "checking for statfs that truncates block counts... $ECHO_C" >&6; }
15183   if test "${fu_cv_sys_truncating_statfs+set}" = set; then
15184   echo $ECHO_N "(cached) $ECHO_C" >&6
15185 else
15186   cat >conftest.$ac_ext <<_ACEOF
15187 /* confdefs.h.  */
15188 _ACEOF
15189 cat confdefs.h >>conftest.$ac_ext
15190 cat >>conftest.$ac_ext <<_ACEOF
15191 /* end confdefs.h.  */
15192
15193 #if !defined(sun) && !defined(__sun)
15194 choke -- this is a workaround for a Sun-specific problem
15195 #endif
15196 #include <sys/types.h>
15197 #include <sys/vfs.h>
15198 int
15199 main ()
15200 {
15201 struct statfs t; long c = *(t.f_spare);
15202   ;
15203   return 0;
15204 }
15205 _ACEOF
15206 rm -f conftest.$ac_objext
15207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15208   (eval $ac_compile) 2>conftest.er1
15209   ac_status=$?
15210   grep -v '^ *+' conftest.er1 >conftest.err
15211   rm -f conftest.er1
15212   cat conftest.err >&5
15213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15214   (exit $ac_status); } &&
15215          { ac_try='test -z "$ac_c_werror_flag"
15216                          || test ! -s conftest.err'
15217   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15218   (eval $ac_try) 2>&5
15219   ac_status=$?
15220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15221   (exit $ac_status); }; } &&
15222          { ac_try='test -s conftest.$ac_objext'
15223   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15224   (eval $ac_try) 2>&5
15225   ac_status=$?
15226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15227   (exit $ac_status); }; }; then
15228   fu_cv_sys_truncating_statfs=yes
15229 else
15230   echo "$as_me: failed program was:" >&5
15231 sed 's/^/| /' conftest.$ac_ext >&5
15232
15233         fu_cv_sys_truncating_statfs=no
15234 fi
15235
15236 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15237 fi
15238
15239   if test $fu_cv_sys_truncating_statfs = yes; then
15240
15241 cat >>confdefs.h <<\_ACEOF
15242 #define STATFS_TRUNCATES_BLOCK_COUNTS 1
15243 _ACEOF
15244
15245   fi
15246   { echo "$as_me:$LINENO: result: $fu_cv_sys_truncating_statfs" >&5
15247 echo "${ECHO_T}$fu_cv_sys_truncating_statfs" >&6; }
15248
15249
15250   fi
15251
15252
15253
15254 for ac_func in atexit
15255 do
15256 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15257 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15258 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15259 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15260   echo $ECHO_N "(cached) $ECHO_C" >&6
15261 else
15262   cat >conftest.$ac_ext <<_ACEOF
15263 /* confdefs.h.  */
15264 _ACEOF
15265 cat confdefs.h >>conftest.$ac_ext
15266 cat >>conftest.$ac_ext <<_ACEOF
15267 /* end confdefs.h.  */
15268 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15269    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15270 #define $ac_func innocuous_$ac_func
15271
15272 /* System header to define __stub macros and hopefully few prototypes,
15273     which can conflict with char $ac_func (); below.
15274     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15275     <limits.h> exists even on freestanding compilers.  */
15276
15277 #ifdef __STDC__
15278 # include <limits.h>
15279 #else
15280 # include <assert.h>
15281 #endif
15282
15283 #undef $ac_func
15284
15285 /* Override any GCC internal prototype to avoid an error.
15286    Use char because int might match the return type of a GCC
15287    builtin and then its argument prototype would still apply.  */
15288 #ifdef __cplusplus
15289 extern "C"
15290 #endif
15291 char $ac_func ();
15292 /* The GNU C library defines this for functions which it implements
15293     to always fail with ENOSYS.  Some functions are actually named
15294     something starting with __ and the normal name is an alias.  */
15295 #if defined __stub_$ac_func || defined __stub___$ac_func
15296 choke me
15297 #endif
15298
15299 int
15300 main ()
15301 {
15302 return $ac_func ();
15303   ;
15304   return 0;
15305 }
15306 _ACEOF
15307 rm -f conftest.$ac_objext conftest$ac_exeext
15308 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15309   (eval $ac_link) 2>conftest.er1
15310   ac_status=$?
15311   grep -v '^ *+' conftest.er1 >conftest.err
15312   rm -f conftest.er1
15313   cat conftest.err >&5
15314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15315   (exit $ac_status); } &&
15316          { ac_try='test -z "$ac_c_werror_flag"
15317                          || test ! -s conftest.err'
15318   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15319   (eval $ac_try) 2>&5
15320   ac_status=$?
15321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15322   (exit $ac_status); }; } &&
15323          { ac_try='test -s conftest$ac_exeext'
15324   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15325   (eval $ac_try) 2>&5
15326   ac_status=$?
15327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15328   (exit $ac_status); }; }; then
15329   eval "$as_ac_var=yes"
15330 else
15331   echo "$as_me: failed program was:" >&5
15332 sed 's/^/| /' conftest.$ac_ext >&5
15333
15334         eval "$as_ac_var=no"
15335 fi
15336
15337 rm -f conftest.err conftest.$ac_objext \
15338       conftest$ac_exeext conftest.$ac_ext
15339 fi
15340 ac_res=`eval echo '${'$as_ac_var'}'`
15341                { echo "$as_me:$LINENO: result: $ac_res" >&5
15342 echo "${ECHO_T}$ac_res" >&6; }
15343 if test `eval echo '${'$as_ac_var'}'` = yes; then
15344   cat >>confdefs.h <<_ACEOF
15345 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15346 _ACEOF
15347
15348 else
15349   case " $LIBOBJS " in
15350   *" $ac_func.$ac_objext "* ) ;;
15351   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
15352  ;;
15353 esac
15354
15355 fi
15356 done
15357
15358
15359   if test $ac_cv_func_atexit = no; then
15360
15361   :
15362
15363   fi
15364
15365
15366
15367 for ac_func in dup2
15368 do
15369 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15370 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15371 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15372 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15373   echo $ECHO_N "(cached) $ECHO_C" >&6
15374 else
15375   cat >conftest.$ac_ext <<_ACEOF
15376 /* confdefs.h.  */
15377 _ACEOF
15378 cat confdefs.h >>conftest.$ac_ext
15379 cat >>conftest.$ac_ext <<_ACEOF
15380 /* end confdefs.h.  */
15381 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15382    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15383 #define $ac_func innocuous_$ac_func
15384
15385 /* System header to define __stub macros and hopefully few prototypes,
15386     which can conflict with char $ac_func (); below.
15387     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15388     <limits.h> exists even on freestanding compilers.  */
15389
15390 #ifdef __STDC__
15391 # include <limits.h>
15392 #else
15393 # include <assert.h>
15394 #endif
15395
15396 #undef $ac_func
15397
15398 /* Override any GCC internal prototype to avoid an error.
15399    Use char because int might match the return type of a GCC
15400    builtin and then its argument prototype would still apply.  */
15401 #ifdef __cplusplus
15402 extern "C"
15403 #endif
15404 char $ac_func ();
15405 /* The GNU C library defines this for functions which it implements
15406     to always fail with ENOSYS.  Some functions are actually named
15407     something starting with __ and the normal name is an alias.  */
15408 #if defined __stub_$ac_func || defined __stub___$ac_func
15409 choke me
15410 #endif
15411
15412 int
15413 main ()
15414 {
15415 return $ac_func ();
15416   ;
15417   return 0;
15418 }
15419 _ACEOF
15420 rm -f conftest.$ac_objext conftest$ac_exeext
15421 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15422   (eval $ac_link) 2>conftest.er1
15423   ac_status=$?
15424   grep -v '^ *+' conftest.er1 >conftest.err
15425   rm -f conftest.er1
15426   cat conftest.err >&5
15427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15428   (exit $ac_status); } &&
15429          { ac_try='test -z "$ac_c_werror_flag"
15430                          || test ! -s conftest.err'
15431   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15432   (eval $ac_try) 2>&5
15433   ac_status=$?
15434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15435   (exit $ac_status); }; } &&
15436          { ac_try='test -s conftest$ac_exeext'
15437   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15438   (eval $ac_try) 2>&5
15439   ac_status=$?
15440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15441   (exit $ac_status); }; }; then
15442   eval "$as_ac_var=yes"
15443 else
15444   echo "$as_me: failed program was:" >&5
15445 sed 's/^/| /' conftest.$ac_ext >&5
15446
15447         eval "$as_ac_var=no"
15448 fi
15449
15450 rm -f conftest.err conftest.$ac_objext \
15451       conftest$ac_exeext conftest.$ac_ext
15452 fi
15453 ac_res=`eval echo '${'$as_ac_var'}'`
15454                { echo "$as_me:$LINENO: result: $ac_res" >&5
15455 echo "${ECHO_T}$ac_res" >&6; }
15456 if test `eval echo '${'$as_ac_var'}'` = yes; then
15457   cat >>confdefs.h <<_ACEOF
15458 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15459 _ACEOF
15460
15461 else
15462   case " $LIBOBJS " in
15463   *" $ac_func.$ac_objext "* ) ;;
15464   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
15465  ;;
15466 esac
15467
15468 fi
15469 done
15470
15471
15472
15473
15474
15475
15476   FNMATCH_H=
15477   { echo "$as_me:$LINENO: checking for working GNU fnmatch" >&5
15478 echo $ECHO_N "checking for working GNU fnmatch... $ECHO_C" >&6; }
15479 if test "${ac_cv_func_fnmatch_gnu+set}" = set; then
15480   echo $ECHO_N "(cached) $ECHO_C" >&6
15481 else
15482               if test "$cross_compiling" = yes; then
15483   ac_cv_func_fnmatch_gnu=cross
15484 else
15485   cat >conftest.$ac_ext <<_ACEOF
15486 /* confdefs.h.  */
15487 _ACEOF
15488 cat confdefs.h >>conftest.$ac_ext
15489 cat >>conftest.$ac_ext <<_ACEOF
15490 /* end confdefs.h.  */
15491
15492 #          include <stdlib.h>
15493 #          include <fnmatch.h>
15494 #          define y(a, b, c) (fnmatch (a, b, c) == 0)
15495 #          define n(a, b, c) (fnmatch (a, b, c) == FNM_NOMATCH)
15496            static int
15497            fnm (char const *pattern, char const *string, int flags)
15498            {
15499              return fnmatch (pattern, string, flags);
15500            }
15501
15502 int
15503 main ()
15504 {
15505 exit
15506            (!((fnm ? fnm : fnmatch) ("a*", "", 0) == FNM_NOMATCH
15507               && y ("a*", "abc", 0)
15508               && n ("d*/*1", "d/s/1", FNM_PATHNAME)
15509               && y ("a\\\\bc", "abc", 0)
15510               && n ("a\\\\bc", "abc", FNM_NOESCAPE)
15511               && y ("*x", ".x", 0)
15512               && n ("*x", ".x", FNM_PERIOD)
15513               && y ("xxXX", "xXxX", FNM_CASEFOLD)
15514                     && y ("a++(x|yy)b", "a+xyyyyxb", FNM_EXTMATCH)
15515                     && n ("d*/*1", "d/s/1", FNM_FILE_NAME)
15516                     && y ("*", "x", FNM_FILE_NAME | FNM_LEADING_DIR)
15517                     && y ("x*", "x/y/z", FNM_FILE_NAME | FNM_LEADING_DIR)
15518                     && y ("*c*", "c/x", FNM_FILE_NAME | FNM_LEADING_DIR)));
15519   ;
15520   return 0;
15521 }
15522 _ACEOF
15523 rm -f conftest$ac_exeext
15524 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15525   (eval $ac_link) 2>&5
15526   ac_status=$?
15527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15528   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15529   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15530   (eval $ac_try) 2>&5
15531   ac_status=$?
15532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15533   (exit $ac_status); }; }; then
15534   ac_cv_func_fnmatch_gnu=yes
15535 else
15536   echo "$as_me: program exited with status $ac_status" >&5
15537 echo "$as_me: failed program was:" >&5
15538 sed 's/^/| /' conftest.$ac_ext >&5
15539
15540 ( exit $ac_status )
15541 ac_cv_func_fnmatch_gnu=no
15542 fi
15543 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15544 fi
15545
15546
15547 fi
15548 { echo "$as_me:$LINENO: result: $ac_cv_func_fnmatch_gnu" >&5
15549 echo "${ECHO_T}$ac_cv_func_fnmatch_gnu" >&6; }
15550 if test $ac_cv_func_fnmatch_gnu = yes; then
15551   rm -f lib/fnmatch.h
15552 else
15553   { echo "$as_me:$LINENO: checking whether getenv is declared" >&5
15554 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6; }
15555 if test "${ac_cv_have_decl_getenv+set}" = set; then
15556   echo $ECHO_N "(cached) $ECHO_C" >&6
15557 else
15558   cat >conftest.$ac_ext <<_ACEOF
15559 /* confdefs.h.  */
15560 _ACEOF
15561 cat confdefs.h >>conftest.$ac_ext
15562 cat >>conftest.$ac_ext <<_ACEOF
15563 /* end confdefs.h.  */
15564 $ac_includes_default
15565 int
15566 main ()
15567 {
15568 #ifndef getenv
15569   char *p = (char *) getenv;
15570   return !p;
15571 #endif
15572
15573   ;
15574   return 0;
15575 }
15576 _ACEOF
15577 rm -f conftest.$ac_objext
15578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15579   (eval $ac_compile) 2>conftest.er1
15580   ac_status=$?
15581   grep -v '^ *+' conftest.er1 >conftest.err
15582   rm -f conftest.er1
15583   cat conftest.err >&5
15584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15585   (exit $ac_status); } &&
15586          { ac_try='test -z "$ac_c_werror_flag"
15587                          || test ! -s conftest.err'
15588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15589   (eval $ac_try) 2>&5
15590   ac_status=$?
15591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15592   (exit $ac_status); }; } &&
15593          { ac_try='test -s conftest.$ac_objext'
15594   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15595   (eval $ac_try) 2>&5
15596   ac_status=$?
15597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15598   (exit $ac_status); }; }; then
15599   ac_cv_have_decl_getenv=yes
15600 else
15601   echo "$as_me: failed program was:" >&5
15602 sed 's/^/| /' conftest.$ac_ext >&5
15603
15604         ac_cv_have_decl_getenv=no
15605 fi
15606
15607 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15608 fi
15609 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
15610 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6; }
15611 if test $ac_cv_have_decl_getenv = yes; then
15612
15613 cat >>confdefs.h <<_ACEOF
15614 #define HAVE_DECL_GETENV 1
15615 _ACEOF
15616
15617
15618 else
15619   cat >>confdefs.h <<_ACEOF
15620 #define HAVE_DECL_GETENV 0
15621 _ACEOF
15622
15623
15624 fi
15625
15626
15627
15628
15629
15630
15631
15632
15633 for ac_func in btowc mbsrtowcs mempcpy wmemchr wmemcpy wmempcpy
15634 do
15635 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15636 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15637 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15638 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15639   echo $ECHO_N "(cached) $ECHO_C" >&6
15640 else
15641   cat >conftest.$ac_ext <<_ACEOF
15642 /* confdefs.h.  */
15643 _ACEOF
15644 cat confdefs.h >>conftest.$ac_ext
15645 cat >>conftest.$ac_ext <<_ACEOF
15646 /* end confdefs.h.  */
15647 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15648    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15649 #define $ac_func innocuous_$ac_func
15650
15651 /* System header to define __stub macros and hopefully few prototypes,
15652     which can conflict with char $ac_func (); below.
15653     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15654     <limits.h> exists even on freestanding compilers.  */
15655
15656 #ifdef __STDC__
15657 # include <limits.h>
15658 #else
15659 # include <assert.h>
15660 #endif
15661
15662 #undef $ac_func
15663
15664 /* Override any GCC internal prototype to avoid an error.
15665    Use char because int might match the return type of a GCC
15666    builtin and then its argument prototype would still apply.  */
15667 #ifdef __cplusplus
15668 extern "C"
15669 #endif
15670 char $ac_func ();
15671 /* The GNU C library defines this for functions which it implements
15672     to always fail with ENOSYS.  Some functions are actually named
15673     something starting with __ and the normal name is an alias.  */
15674 #if defined __stub_$ac_func || defined __stub___$ac_func
15675 choke me
15676 #endif
15677
15678 int
15679 main ()
15680 {
15681 return $ac_func ();
15682   ;
15683   return 0;
15684 }
15685 _ACEOF
15686 rm -f conftest.$ac_objext conftest$ac_exeext
15687 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15688   (eval $ac_link) 2>conftest.er1
15689   ac_status=$?
15690   grep -v '^ *+' conftest.er1 >conftest.err
15691   rm -f conftest.er1
15692   cat conftest.err >&5
15693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15694   (exit $ac_status); } &&
15695          { ac_try='test -z "$ac_c_werror_flag"
15696                          || test ! -s conftest.err'
15697   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15698   (eval $ac_try) 2>&5
15699   ac_status=$?
15700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15701   (exit $ac_status); }; } &&
15702          { ac_try='test -s conftest$ac_exeext'
15703   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15704   (eval $ac_try) 2>&5
15705   ac_status=$?
15706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15707   (exit $ac_status); }; }; then
15708   eval "$as_ac_var=yes"
15709 else
15710   echo "$as_me: failed program was:" >&5
15711 sed 's/^/| /' conftest.$ac_ext >&5
15712
15713         eval "$as_ac_var=no"
15714 fi
15715
15716 rm -f conftest.err conftest.$ac_objext \
15717       conftest$ac_exeext conftest.$ac_ext
15718 fi
15719 ac_res=`eval echo '${'$as_ac_var'}'`
15720                { echo "$as_me:$LINENO: result: $ac_res" >&5
15721 echo "${ECHO_T}$ac_res" >&6; }
15722 if test `eval echo '${'$as_ac_var'}'` = yes; then
15723   cat >>confdefs.h <<_ACEOF
15724 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15725 _ACEOF
15726
15727 fi
15728 done
15729
15730
15731
15732 for ac_header in wchar.h wctype.h
15733 do
15734 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15735 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15736   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15737 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15738 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15739   echo $ECHO_N "(cached) $ECHO_C" >&6
15740 fi
15741 ac_res=`eval echo '${'$as_ac_Header'}'`
15742                { echo "$as_me:$LINENO: result: $ac_res" >&5
15743 echo "${ECHO_T}$ac_res" >&6; }
15744 else
15745   # Is the header compilable?
15746 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15747 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15748 cat >conftest.$ac_ext <<_ACEOF
15749 /* confdefs.h.  */
15750 _ACEOF
15751 cat confdefs.h >>conftest.$ac_ext
15752 cat >>conftest.$ac_ext <<_ACEOF
15753 /* end confdefs.h.  */
15754 $ac_includes_default
15755 #include <$ac_header>
15756 _ACEOF
15757 rm -f conftest.$ac_objext
15758 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15759   (eval $ac_compile) 2>conftest.er1
15760   ac_status=$?
15761   grep -v '^ *+' conftest.er1 >conftest.err
15762   rm -f conftest.er1
15763   cat conftest.err >&5
15764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15765   (exit $ac_status); } &&
15766          { ac_try='test -z "$ac_c_werror_flag"
15767                          || test ! -s conftest.err'
15768   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15769   (eval $ac_try) 2>&5
15770   ac_status=$?
15771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15772   (exit $ac_status); }; } &&
15773          { ac_try='test -s conftest.$ac_objext'
15774   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15775   (eval $ac_try) 2>&5
15776   ac_status=$?
15777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15778   (exit $ac_status); }; }; then
15779   ac_header_compiler=yes
15780 else
15781   echo "$as_me: failed program was:" >&5
15782 sed 's/^/| /' conftest.$ac_ext >&5
15783
15784         ac_header_compiler=no
15785 fi
15786
15787 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15788 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15789 echo "${ECHO_T}$ac_header_compiler" >&6; }
15790
15791 # Is the header present?
15792 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15793 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15794 cat >conftest.$ac_ext <<_ACEOF
15795 /* confdefs.h.  */
15796 _ACEOF
15797 cat confdefs.h >>conftest.$ac_ext
15798 cat >>conftest.$ac_ext <<_ACEOF
15799 /* end confdefs.h.  */
15800 #include <$ac_header>
15801 _ACEOF
15802 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15803   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15804   ac_status=$?
15805   grep -v '^ *+' conftest.er1 >conftest.err
15806   rm -f conftest.er1
15807   cat conftest.err >&5
15808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15809   (exit $ac_status); } >/dev/null; then
15810   if test -s conftest.err; then
15811     ac_cpp_err=$ac_c_preproc_warn_flag
15812     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15813   else
15814     ac_cpp_err=
15815   fi
15816 else
15817   ac_cpp_err=yes
15818 fi
15819 if test -z "$ac_cpp_err"; then
15820   ac_header_preproc=yes
15821 else
15822   echo "$as_me: failed program was:" >&5
15823 sed 's/^/| /' conftest.$ac_ext >&5
15824
15825   ac_header_preproc=no
15826 fi
15827
15828 rm -f conftest.err conftest.$ac_ext
15829 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15830 echo "${ECHO_T}$ac_header_preproc" >&6; }
15831
15832 # So?  What about this header?
15833 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15834   yes:no: )
15835     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15836 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15837     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15838 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15839     ac_header_preproc=yes
15840     ;;
15841   no:yes:* )
15842     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15843 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15844     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15845 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15846     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15847 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15848     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15849 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15850     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15851 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15852     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15853 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15854     ( cat <<\_ASBOX
15855 ## ------------------------------------ ##
15856 ## Report this to bug-coreutils@gnu.org ##
15857 ## ------------------------------------ ##
15858 _ASBOX
15859      ) | sed "s/^/$as_me: WARNING:     /" >&2
15860     ;;
15861 esac
15862 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15863 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15864 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15865   echo $ECHO_N "(cached) $ECHO_C" >&6
15866 else
15867   eval "$as_ac_Header=\$ac_header_preproc"
15868 fi
15869 ac_res=`eval echo '${'$as_ac_Header'}'`
15870                { echo "$as_me:$LINENO: result: $ac_res" >&5
15871 echo "${ECHO_T}$ac_res" >&6; }
15872
15873 fi
15874 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15875   cat >>confdefs.h <<_ACEOF
15876 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15877 _ACEOF
15878
15879 fi
15880
15881 done
15882
15883 case " $LIBOBJS " in
15884   *" fnmatch.$ac_objext "* ) ;;
15885   *) LIBOBJS="$LIBOBJS fnmatch.$ac_objext"
15886  ;;
15887 esac
15888
15889 FNMATCH_H=fnmatch.h
15890
15891 fi
15892
15893
15894   if test $ac_cv_func_fnmatch_gnu != yes; then
15895
15896 cat >>confdefs.h <<\_ACEOF
15897 #define fnmatch gnu_fnmatch
15898 _ACEOF
15899
15900   fi
15901
15902
15903
15904
15905 for ac_func in gethostname
15906 do
15907 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15908 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15909 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15910 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15911   echo $ECHO_N "(cached) $ECHO_C" >&6
15912 else
15913   cat >conftest.$ac_ext <<_ACEOF
15914 /* confdefs.h.  */
15915 _ACEOF
15916 cat confdefs.h >>conftest.$ac_ext
15917 cat >>conftest.$ac_ext <<_ACEOF
15918 /* end confdefs.h.  */
15919 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15920    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15921 #define $ac_func innocuous_$ac_func
15922
15923 /* System header to define __stub macros and hopefully few prototypes,
15924     which can conflict with char $ac_func (); below.
15925     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15926     <limits.h> exists even on freestanding compilers.  */
15927
15928 #ifdef __STDC__
15929 # include <limits.h>
15930 #else
15931 # include <assert.h>
15932 #endif
15933
15934 #undef $ac_func
15935
15936 /* Override any GCC internal prototype to avoid an error.
15937    Use char because int might match the return type of a GCC
15938    builtin and then its argument prototype would still apply.  */
15939 #ifdef __cplusplus
15940 extern "C"
15941 #endif
15942 char $ac_func ();
15943 /* The GNU C library defines this for functions which it implements
15944     to always fail with ENOSYS.  Some functions are actually named
15945     something starting with __ and the normal name is an alias.  */
15946 #if defined __stub_$ac_func || defined __stub___$ac_func
15947 choke me
15948 #endif
15949
15950 int
15951 main ()
15952 {
15953 return $ac_func ();
15954   ;
15955   return 0;
15956 }
15957 _ACEOF
15958 rm -f conftest.$ac_objext conftest$ac_exeext
15959 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15960   (eval $ac_link) 2>conftest.er1
15961   ac_status=$?
15962   grep -v '^ *+' conftest.er1 >conftest.err
15963   rm -f conftest.er1
15964   cat conftest.err >&5
15965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15966   (exit $ac_status); } &&
15967          { ac_try='test -z "$ac_c_werror_flag"
15968                          || test ! -s conftest.err'
15969   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15970   (eval $ac_try) 2>&5
15971   ac_status=$?
15972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15973   (exit $ac_status); }; } &&
15974          { ac_try='test -s conftest$ac_exeext'
15975   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15976   (eval $ac_try) 2>&5
15977   ac_status=$?
15978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15979   (exit $ac_status); }; }; then
15980   eval "$as_ac_var=yes"
15981 else
15982   echo "$as_me: failed program was:" >&5
15983 sed 's/^/| /' conftest.$ac_ext >&5
15984
15985         eval "$as_ac_var=no"
15986 fi
15987
15988 rm -f conftest.err conftest.$ac_objext \
15989       conftest$ac_exeext conftest.$ac_ext
15990 fi
15991 ac_res=`eval echo '${'$as_ac_var'}'`
15992                { echo "$as_me:$LINENO: result: $ac_res" >&5
15993 echo "${ECHO_T}$ac_res" >&6; }
15994 if test `eval echo '${'$as_ac_var'}'` = yes; then
15995   cat >>confdefs.h <<_ACEOF
15996 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15997 _ACEOF
15998
15999 else
16000   case " $LIBOBJS " in
16001   *" $ac_func.$ac_objext "* ) ;;
16002   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
16003  ;;
16004 esac
16005
16006 fi
16007 done
16008
16009
16010   if test $ac_cv_func_gethostname = no; then
16011
16012
16013 for ac_func in uname
16014 do
16015 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16016 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16017 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16018 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16019   echo $ECHO_N "(cached) $ECHO_C" >&6
16020 else
16021   cat >conftest.$ac_ext <<_ACEOF
16022 /* confdefs.h.  */
16023 _ACEOF
16024 cat confdefs.h >>conftest.$ac_ext
16025 cat >>conftest.$ac_ext <<_ACEOF
16026 /* end confdefs.h.  */
16027 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16028    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16029 #define $ac_func innocuous_$ac_func
16030
16031 /* System header to define __stub macros and hopefully few prototypes,
16032     which can conflict with char $ac_func (); below.
16033     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16034     <limits.h> exists even on freestanding compilers.  */
16035
16036 #ifdef __STDC__
16037 # include <limits.h>
16038 #else
16039 # include <assert.h>
16040 #endif
16041
16042 #undef $ac_func
16043
16044 /* Override any GCC internal prototype to avoid an error.
16045    Use char because int might match the return type of a GCC
16046    builtin and then its argument prototype would still apply.  */
16047 #ifdef __cplusplus
16048 extern "C"
16049 #endif
16050 char $ac_func ();
16051 /* The GNU C library defines this for functions which it implements
16052     to always fail with ENOSYS.  Some functions are actually named
16053     something starting with __ and the normal name is an alias.  */
16054 #if defined __stub_$ac_func || defined __stub___$ac_func
16055 choke me
16056 #endif
16057
16058 int
16059 main ()
16060 {
16061 return $ac_func ();
16062   ;
16063   return 0;
16064 }
16065 _ACEOF
16066 rm -f conftest.$ac_objext conftest$ac_exeext
16067 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16068   (eval $ac_link) 2>conftest.er1
16069   ac_status=$?
16070   grep -v '^ *+' conftest.er1 >conftest.err
16071   rm -f conftest.er1
16072   cat conftest.err >&5
16073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16074   (exit $ac_status); } &&
16075          { ac_try='test -z "$ac_c_werror_flag"
16076                          || test ! -s conftest.err'
16077   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16078   (eval $ac_try) 2>&5
16079   ac_status=$?
16080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16081   (exit $ac_status); }; } &&
16082          { ac_try='test -s conftest$ac_exeext'
16083   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16084   (eval $ac_try) 2>&5
16085   ac_status=$?
16086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16087   (exit $ac_status); }; }; then
16088   eval "$as_ac_var=yes"
16089 else
16090   echo "$as_me: failed program was:" >&5
16091 sed 's/^/| /' conftest.$ac_ext >&5
16092
16093         eval "$as_ac_var=no"
16094 fi
16095
16096 rm -f conftest.err conftest.$ac_objext \
16097       conftest$ac_exeext conftest.$ac_ext
16098 fi
16099 ac_res=`eval echo '${'$as_ac_var'}'`
16100                { echo "$as_me:$LINENO: result: $ac_res" >&5
16101 echo "${ECHO_T}$ac_res" >&6; }
16102 if test `eval echo '${'$as_ac_var'}'` = yes; then
16103   cat >>confdefs.h <<_ACEOF
16104 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16105 _ACEOF
16106
16107 fi
16108 done
16109
16110
16111   fi
16112
16113
16114       { echo "$as_me:$LINENO: checking whether getdelim is declared" >&5
16115 echo $ECHO_N "checking whether getdelim is declared... $ECHO_C" >&6; }
16116 if test "${ac_cv_have_decl_getdelim+set}" = set; then
16117   echo $ECHO_N "(cached) $ECHO_C" >&6
16118 else
16119   cat >conftest.$ac_ext <<_ACEOF
16120 /* confdefs.h.  */
16121 _ACEOF
16122 cat confdefs.h >>conftest.$ac_ext
16123 cat >>conftest.$ac_ext <<_ACEOF
16124 /* end confdefs.h.  */
16125 $ac_includes_default
16126 int
16127 main ()
16128 {
16129 #ifndef getdelim
16130   char *p = (char *) getdelim;
16131   return !p;
16132 #endif
16133
16134   ;
16135   return 0;
16136 }
16137 _ACEOF
16138 rm -f conftest.$ac_objext
16139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16140   (eval $ac_compile) 2>conftest.er1
16141   ac_status=$?
16142   grep -v '^ *+' conftest.er1 >conftest.err
16143   rm -f conftest.er1
16144   cat conftest.err >&5
16145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16146   (exit $ac_status); } &&
16147          { ac_try='test -z "$ac_c_werror_flag"
16148                          || test ! -s conftest.err'
16149   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16150   (eval $ac_try) 2>&5
16151   ac_status=$?
16152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16153   (exit $ac_status); }; } &&
16154          { ac_try='test -s conftest.$ac_objext'
16155   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16156   (eval $ac_try) 2>&5
16157   ac_status=$?
16158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16159   (exit $ac_status); }; }; then
16160   ac_cv_have_decl_getdelim=yes
16161 else
16162   echo "$as_me: failed program was:" >&5
16163 sed 's/^/| /' conftest.$ac_ext >&5
16164
16165         ac_cv_have_decl_getdelim=no
16166 fi
16167
16168 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16169 fi
16170 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getdelim" >&5
16171 echo "${ECHO_T}$ac_cv_have_decl_getdelim" >&6; }
16172 if test $ac_cv_have_decl_getdelim = yes; then
16173
16174 cat >>confdefs.h <<_ACEOF
16175 #define HAVE_DECL_GETDELIM 1
16176 _ACEOF
16177
16178
16179 else
16180   cat >>confdefs.h <<_ACEOF
16181 #define HAVE_DECL_GETDELIM 0
16182 _ACEOF
16183
16184
16185 fi
16186
16187
16188
16189
16190
16191
16192
16193
16194   { echo "$as_me:$LINENO: checking whether getline is declared" >&5
16195 echo $ECHO_N "checking whether getline is declared... $ECHO_C" >&6; }
16196 if test "${ac_cv_have_decl_getline+set}" = set; then
16197   echo $ECHO_N "(cached) $ECHO_C" >&6
16198 else
16199   cat >conftest.$ac_ext <<_ACEOF
16200 /* confdefs.h.  */
16201 _ACEOF
16202 cat confdefs.h >>conftest.$ac_ext
16203 cat >>conftest.$ac_ext <<_ACEOF
16204 /* end confdefs.h.  */
16205 $ac_includes_default
16206 int
16207 main ()
16208 {
16209 #ifndef getline
16210   char *p = (char *) getline;
16211   return !p;
16212 #endif
16213
16214   ;
16215   return 0;
16216 }
16217 _ACEOF
16218 rm -f conftest.$ac_objext
16219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16220   (eval $ac_compile) 2>conftest.er1
16221   ac_status=$?
16222   grep -v '^ *+' conftest.er1 >conftest.err
16223   rm -f conftest.er1
16224   cat conftest.err >&5
16225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16226   (exit $ac_status); } &&
16227          { ac_try='test -z "$ac_c_werror_flag"
16228                          || test ! -s conftest.err'
16229   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16230   (eval $ac_try) 2>&5
16231   ac_status=$?
16232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16233   (exit $ac_status); }; } &&
16234          { ac_try='test -s conftest.$ac_objext'
16235   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16236   (eval $ac_try) 2>&5
16237   ac_status=$?
16238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16239   (exit $ac_status); }; }; then
16240   ac_cv_have_decl_getline=yes
16241 else
16242   echo "$as_me: failed program was:" >&5
16243 sed 's/^/| /' conftest.$ac_ext >&5
16244
16245         ac_cv_have_decl_getline=no
16246 fi
16247
16248 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16249 fi
16250 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getline" >&5
16251 echo "${ECHO_T}$ac_cv_have_decl_getline" >&6; }
16252 if test $ac_cv_have_decl_getline = yes; then
16253
16254 cat >>confdefs.h <<_ACEOF
16255 #define HAVE_DECL_GETLINE 1
16256 _ACEOF
16257
16258
16259 else
16260   cat >>confdefs.h <<_ACEOF
16261 #define HAVE_DECL_GETLINE 0
16262 _ACEOF
16263
16264
16265 fi
16266
16267
16268
16269   gl_getline_needs_run_time_check=no
16270   { echo "$as_me:$LINENO: checking for getline" >&5
16271 echo $ECHO_N "checking for getline... $ECHO_C" >&6; }
16272 if test "${ac_cv_func_getline+set}" = set; then
16273   echo $ECHO_N "(cached) $ECHO_C" >&6
16274 else
16275   cat >conftest.$ac_ext <<_ACEOF
16276 /* confdefs.h.  */
16277 _ACEOF
16278 cat confdefs.h >>conftest.$ac_ext
16279 cat >>conftest.$ac_ext <<_ACEOF
16280 /* end confdefs.h.  */
16281 /* Define getline to an innocuous variant, in case <limits.h> declares getline.
16282    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16283 #define getline innocuous_getline
16284
16285 /* System header to define __stub macros and hopefully few prototypes,
16286     which can conflict with char getline (); below.
16287     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16288     <limits.h> exists even on freestanding compilers.  */
16289
16290 #ifdef __STDC__
16291 # include <limits.h>
16292 #else
16293 # include <assert.h>
16294 #endif
16295
16296 #undef getline
16297
16298 /* Override any GCC internal prototype to avoid an error.
16299    Use char because int might match the return type of a GCC
16300    builtin and then its argument prototype would still apply.  */
16301 #ifdef __cplusplus
16302 extern "C"
16303 #endif
16304 char getline ();
16305 /* The GNU C library defines this for functions which it implements
16306     to always fail with ENOSYS.  Some functions are actually named
16307     something starting with __ and the normal name is an alias.  */
16308 #if defined __stub_getline || defined __stub___getline
16309 choke me
16310 #endif
16311
16312 int
16313 main ()
16314 {
16315 return getline ();
16316   ;
16317   return 0;
16318 }
16319 _ACEOF
16320 rm -f conftest.$ac_objext conftest$ac_exeext
16321 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16322   (eval $ac_link) 2>conftest.er1
16323   ac_status=$?
16324   grep -v '^ *+' conftest.er1 >conftest.err
16325   rm -f conftest.er1
16326   cat conftest.err >&5
16327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16328   (exit $ac_status); } &&
16329          { ac_try='test -z "$ac_c_werror_flag"
16330                          || test ! -s conftest.err'
16331   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16332   (eval $ac_try) 2>&5
16333   ac_status=$?
16334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16335   (exit $ac_status); }; } &&
16336          { ac_try='test -s conftest$ac_exeext'
16337   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16338   (eval $ac_try) 2>&5
16339   ac_status=$?
16340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16341   (exit $ac_status); }; }; then
16342   ac_cv_func_getline=yes
16343 else
16344   echo "$as_me: failed program was:" >&5
16345 sed 's/^/| /' conftest.$ac_ext >&5
16346
16347         ac_cv_func_getline=no
16348 fi
16349
16350 rm -f conftest.err conftest.$ac_objext \
16351       conftest$ac_exeext conftest.$ac_ext
16352 fi
16353 { echo "$as_me:$LINENO: result: $ac_cv_func_getline" >&5
16354 echo "${ECHO_T}$ac_cv_func_getline" >&6; }
16355 if test $ac_cv_func_getline = yes; then
16356                 gl_getline_needs_run_time_check=yes
16357 else
16358   am_cv_func_working_getline=no
16359 fi
16360
16361   if test $gl_getline_needs_run_time_check = yes; then
16362     { echo "$as_me:$LINENO: checking for working getline function" >&5
16363 echo $ECHO_N "checking for working getline function... $ECHO_C" >&6; }
16364 if test "${am_cv_func_working_getline+set}" = set; then
16365   echo $ECHO_N "(cached) $ECHO_C" >&6
16366 else
16367   echo fooN |tr -d '\012'|tr N '\012' > conftest.data
16368     if test "$cross_compiling" = yes; then
16369   am_cv_func_working_getline=no
16370 else
16371   cat >conftest.$ac_ext <<_ACEOF
16372 /* confdefs.h.  */
16373 _ACEOF
16374 cat confdefs.h >>conftest.$ac_ext
16375 cat >>conftest.$ac_ext <<_ACEOF
16376 /* end confdefs.h.  */
16377
16378 #    include <stdio.h>
16379 #    include <stdlib.h>
16380 #    include <string.h>
16381     int main ()
16382     { /* Based on a test program from Karl Heuer.  */
16383       char *line = NULL;
16384       size_t siz = 0;
16385       int len;
16386       FILE *in = fopen ("./conftest.data", "r");
16387       if (!in)
16388         return 1;
16389       len = getline (&line, &siz, in);
16390       exit ((len == 4 && line && strcmp (line, "foo\n") == 0) ? 0 : 1);
16391     }
16392
16393 _ACEOF
16394 rm -f conftest$ac_exeext
16395 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16396   (eval $ac_link) 2>&5
16397   ac_status=$?
16398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16399   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16400   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16401   (eval $ac_try) 2>&5
16402   ac_status=$?
16403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16404   (exit $ac_status); }; }; then
16405   am_cv_func_working_getline=yes
16406 else
16407   echo "$as_me: program exited with status $ac_status" >&5
16408 echo "$as_me: failed program was:" >&5
16409 sed 's/^/| /' conftest.$ac_ext >&5
16410
16411 ( exit $ac_status )
16412 am_cv_func_working_getline=no
16413 fi
16414 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16415 fi
16416
16417
16418 fi
16419 { echo "$as_me:$LINENO: result: $am_cv_func_working_getline" >&5
16420 echo "${ECHO_T}$am_cv_func_working_getline" >&6; }
16421   fi
16422
16423   if test $am_cv_func_working_getline = no; then
16424
16425 cat >>confdefs.h <<\_ACEOF
16426 #define getline gnu_getline
16427 _ACEOF
16428
16429     case " $LIBOBJS " in
16430   *" getline.$ac_objext "* ) ;;
16431   *) LIBOBJS="$LIBOBJS getline.$ac_objext"
16432  ;;
16433 esac
16434
16435
16436
16437
16438
16439
16440
16441
16442
16443 for ac_func in getdelim
16444 do
16445 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16446 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16447 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16448 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16449   echo $ECHO_N "(cached) $ECHO_C" >&6
16450 else
16451   cat >conftest.$ac_ext <<_ACEOF
16452 /* confdefs.h.  */
16453 _ACEOF
16454 cat confdefs.h >>conftest.$ac_ext
16455 cat >>conftest.$ac_ext <<_ACEOF
16456 /* end confdefs.h.  */
16457 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16458    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16459 #define $ac_func innocuous_$ac_func
16460
16461 /* System header to define __stub macros and hopefully few prototypes,
16462     which can conflict with char $ac_func (); below.
16463     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16464     <limits.h> exists even on freestanding compilers.  */
16465
16466 #ifdef __STDC__
16467 # include <limits.h>
16468 #else
16469 # include <assert.h>
16470 #endif
16471
16472 #undef $ac_func
16473
16474 /* Override any GCC internal prototype to avoid an error.
16475    Use char because int might match the return type of a GCC
16476    builtin and then its argument prototype would still apply.  */
16477 #ifdef __cplusplus
16478 extern "C"
16479 #endif
16480 char $ac_func ();
16481 /* The GNU C library defines this for functions which it implements
16482     to always fail with ENOSYS.  Some functions are actually named
16483     something starting with __ and the normal name is an alias.  */
16484 #if defined __stub_$ac_func || defined __stub___$ac_func
16485 choke me
16486 #endif
16487
16488 int
16489 main ()
16490 {
16491 return $ac_func ();
16492   ;
16493   return 0;
16494 }
16495 _ACEOF
16496 rm -f conftest.$ac_objext conftest$ac_exeext
16497 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16498   (eval $ac_link) 2>conftest.er1
16499   ac_status=$?
16500   grep -v '^ *+' conftest.er1 >conftest.err
16501   rm -f conftest.er1
16502   cat conftest.err >&5
16503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16504   (exit $ac_status); } &&
16505          { ac_try='test -z "$ac_c_werror_flag"
16506                          || test ! -s conftest.err'
16507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16508   (eval $ac_try) 2>&5
16509   ac_status=$?
16510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16511   (exit $ac_status); }; } &&
16512          { ac_try='test -s conftest$ac_exeext'
16513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16514   (eval $ac_try) 2>&5
16515   ac_status=$?
16516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16517   (exit $ac_status); }; }; then
16518   eval "$as_ac_var=yes"
16519 else
16520   echo "$as_me: failed program was:" >&5
16521 sed 's/^/| /' conftest.$ac_ext >&5
16522
16523         eval "$as_ac_var=no"
16524 fi
16525
16526 rm -f conftest.err conftest.$ac_objext \
16527       conftest$ac_exeext conftest.$ac_ext
16528 fi
16529 ac_res=`eval echo '${'$as_ac_var'}'`
16530                { echo "$as_me:$LINENO: result: $ac_res" >&5
16531 echo "${ECHO_T}$ac_res" >&6; }
16532 if test `eval echo '${'$as_ac_var'}'` = yes; then
16533   cat >>confdefs.h <<_ACEOF
16534 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16535 _ACEOF
16536
16537 else
16538   case " $LIBOBJS " in
16539   *" $ac_func.$ac_objext "* ) ;;
16540   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
16541  ;;
16542 esac
16543
16544 fi
16545 done
16546
16547
16548
16549   :
16550
16551
16552
16553
16554
16555
16556   if test $ac_cv_func_getdelim = no; then
16557
16558
16559
16560 for ac_func in flockfile funlockfile
16561 do
16562 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16563 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16564 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16565 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16566   echo $ECHO_N "(cached) $ECHO_C" >&6
16567 else
16568   cat >conftest.$ac_ext <<_ACEOF
16569 /* confdefs.h.  */
16570 _ACEOF
16571 cat confdefs.h >>conftest.$ac_ext
16572 cat >>conftest.$ac_ext <<_ACEOF
16573 /* end confdefs.h.  */
16574 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16575    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16576 #define $ac_func innocuous_$ac_func
16577
16578 /* System header to define __stub macros and hopefully few prototypes,
16579     which can conflict with char $ac_func (); below.
16580     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16581     <limits.h> exists even on freestanding compilers.  */
16582
16583 #ifdef __STDC__
16584 # include <limits.h>
16585 #else
16586 # include <assert.h>
16587 #endif
16588
16589 #undef $ac_func
16590
16591 /* Override any GCC internal prototype to avoid an error.
16592    Use char because int might match the return type of a GCC
16593    builtin and then its argument prototype would still apply.  */
16594 #ifdef __cplusplus
16595 extern "C"
16596 #endif
16597 char $ac_func ();
16598 /* The GNU C library defines this for functions which it implements
16599     to always fail with ENOSYS.  Some functions are actually named
16600     something starting with __ and the normal name is an alias.  */
16601 #if defined __stub_$ac_func || defined __stub___$ac_func
16602 choke me
16603 #endif
16604
16605 int
16606 main ()
16607 {
16608 return $ac_func ();
16609   ;
16610   return 0;
16611 }
16612 _ACEOF
16613 rm -f conftest.$ac_objext conftest$ac_exeext
16614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16615   (eval $ac_link) 2>conftest.er1
16616   ac_status=$?
16617   grep -v '^ *+' conftest.er1 >conftest.err
16618   rm -f conftest.er1
16619   cat conftest.err >&5
16620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16621   (exit $ac_status); } &&
16622          { ac_try='test -z "$ac_c_werror_flag"
16623                          || test ! -s conftest.err'
16624   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16625   (eval $ac_try) 2>&5
16626   ac_status=$?
16627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16628   (exit $ac_status); }; } &&
16629          { ac_try='test -s conftest$ac_exeext'
16630   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16631   (eval $ac_try) 2>&5
16632   ac_status=$?
16633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16634   (exit $ac_status); }; }; then
16635   eval "$as_ac_var=yes"
16636 else
16637   echo "$as_me: failed program was:" >&5
16638 sed 's/^/| /' conftest.$ac_ext >&5
16639
16640         eval "$as_ac_var=no"
16641 fi
16642
16643 rm -f conftest.err conftest.$ac_objext \
16644       conftest$ac_exeext conftest.$ac_ext
16645 fi
16646 ac_res=`eval echo '${'$as_ac_var'}'`
16647                { echo "$as_me:$LINENO: result: $ac_res" >&5
16648 echo "${ECHO_T}$ac_res" >&6; }
16649 if test `eval echo '${'$as_ac_var'}'` = yes; then
16650   cat >>confdefs.h <<_ACEOF
16651 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16652 _ACEOF
16653
16654 fi
16655 done
16656
16657
16658   fi
16659
16660
16661   fi
16662
16663 ac_have_func=no # yes means we've found a way to get the load average.
16664
16665 # Make sure getloadavg.c is where it belongs, at configure-time.
16666 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
16667   { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
16668 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
16669    { (exit 1); exit 1; }; }
16670
16671 ac_save_LIBS=$LIBS
16672
16673 # Check for getloadavg, but be sure not to touch the cache variable.
16674 ({ echo "$as_me:$LINENO: checking for getloadavg" >&5
16675 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6; }
16676 if test "${ac_cv_func_getloadavg+set}" = set; then
16677   echo $ECHO_N "(cached) $ECHO_C" >&6
16678 else
16679   cat >conftest.$ac_ext <<_ACEOF
16680 /* confdefs.h.  */
16681 _ACEOF
16682 cat confdefs.h >>conftest.$ac_ext
16683 cat >>conftest.$ac_ext <<_ACEOF
16684 /* end confdefs.h.  */
16685 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
16686    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16687 #define getloadavg innocuous_getloadavg
16688
16689 /* System header to define __stub macros and hopefully few prototypes,
16690     which can conflict with char getloadavg (); below.
16691     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16692     <limits.h> exists even on freestanding compilers.  */
16693
16694 #ifdef __STDC__
16695 # include <limits.h>
16696 #else
16697 # include <assert.h>
16698 #endif
16699
16700 #undef getloadavg
16701
16702 /* Override any GCC internal prototype to avoid an error.
16703    Use char because int might match the return type of a GCC
16704    builtin and then its argument prototype would still apply.  */
16705 #ifdef __cplusplus
16706 extern "C"
16707 #endif
16708 char getloadavg ();
16709 /* The GNU C library defines this for functions which it implements
16710     to always fail with ENOSYS.  Some functions are actually named
16711     something starting with __ and the normal name is an alias.  */
16712 #if defined __stub_getloadavg || defined __stub___getloadavg
16713 choke me
16714 #endif
16715
16716 int
16717 main ()
16718 {
16719 return getloadavg ();
16720   ;
16721   return 0;
16722 }
16723 _ACEOF
16724 rm -f conftest.$ac_objext conftest$ac_exeext
16725 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16726   (eval $ac_link) 2>conftest.er1
16727   ac_status=$?
16728   grep -v '^ *+' conftest.er1 >conftest.err
16729   rm -f conftest.er1
16730   cat conftest.err >&5
16731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16732   (exit $ac_status); } &&
16733          { ac_try='test -z "$ac_c_werror_flag"
16734                          || test ! -s conftest.err'
16735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16736   (eval $ac_try) 2>&5
16737   ac_status=$?
16738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16739   (exit $ac_status); }; } &&
16740          { ac_try='test -s conftest$ac_exeext'
16741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16742   (eval $ac_try) 2>&5
16743   ac_status=$?
16744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16745   (exit $ac_status); }; }; then
16746   ac_cv_func_getloadavg=yes
16747 else
16748   echo "$as_me: failed program was:" >&5
16749 sed 's/^/| /' conftest.$ac_ext >&5
16750
16751         ac_cv_func_getloadavg=no
16752 fi
16753
16754 rm -f conftest.err conftest.$ac_objext \
16755       conftest$ac_exeext conftest.$ac_ext
16756 fi
16757 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
16758 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6; }
16759 if test $ac_cv_func_getloadavg = yes; then
16760   exit 0
16761 else
16762   exit 1
16763 fi
16764 ) && ac_have_func=yes
16765
16766 # On HPUX9, an unprivileged user can get load averages through this function.
16767
16768 for ac_func in pstat_getdynamic
16769 do
16770 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16771 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16772 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16773 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16774   echo $ECHO_N "(cached) $ECHO_C" >&6
16775 else
16776   cat >conftest.$ac_ext <<_ACEOF
16777 /* confdefs.h.  */
16778 _ACEOF
16779 cat confdefs.h >>conftest.$ac_ext
16780 cat >>conftest.$ac_ext <<_ACEOF
16781 /* end confdefs.h.  */
16782 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16783    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16784 #define $ac_func innocuous_$ac_func
16785
16786 /* System header to define __stub macros and hopefully few prototypes,
16787     which can conflict with char $ac_func (); below.
16788     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16789     <limits.h> exists even on freestanding compilers.  */
16790
16791 #ifdef __STDC__
16792 # include <limits.h>
16793 #else
16794 # include <assert.h>
16795 #endif
16796
16797 #undef $ac_func
16798
16799 /* Override any GCC internal prototype to avoid an error.
16800    Use char because int might match the return type of a GCC
16801    builtin and then its argument prototype would still apply.  */
16802 #ifdef __cplusplus
16803 extern "C"
16804 #endif
16805 char $ac_func ();
16806 /* The GNU C library defines this for functions which it implements
16807     to always fail with ENOSYS.  Some functions are actually named
16808     something starting with __ and the normal name is an alias.  */
16809 #if defined __stub_$ac_func || defined __stub___$ac_func
16810 choke me
16811 #endif
16812
16813 int
16814 main ()
16815 {
16816 return $ac_func ();
16817   ;
16818   return 0;
16819 }
16820 _ACEOF
16821 rm -f conftest.$ac_objext conftest$ac_exeext
16822 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16823   (eval $ac_link) 2>conftest.er1
16824   ac_status=$?
16825   grep -v '^ *+' conftest.er1 >conftest.err
16826   rm -f conftest.er1
16827   cat conftest.err >&5
16828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16829   (exit $ac_status); } &&
16830          { ac_try='test -z "$ac_c_werror_flag"
16831                          || test ! -s conftest.err'
16832   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16833   (eval $ac_try) 2>&5
16834   ac_status=$?
16835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16836   (exit $ac_status); }; } &&
16837          { ac_try='test -s conftest$ac_exeext'
16838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16839   (eval $ac_try) 2>&5
16840   ac_status=$?
16841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16842   (exit $ac_status); }; }; then
16843   eval "$as_ac_var=yes"
16844 else
16845   echo "$as_me: failed program was:" >&5
16846 sed 's/^/| /' conftest.$ac_ext >&5
16847
16848         eval "$as_ac_var=no"
16849 fi
16850
16851 rm -f conftest.err conftest.$ac_objext \
16852       conftest$ac_exeext conftest.$ac_ext
16853 fi
16854 ac_res=`eval echo '${'$as_ac_var'}'`
16855                { echo "$as_me:$LINENO: result: $ac_res" >&5
16856 echo "${ECHO_T}$ac_res" >&6; }
16857 if test `eval echo '${'$as_ac_var'}'` = yes; then
16858   cat >>confdefs.h <<_ACEOF
16859 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16860 _ACEOF
16861
16862 fi
16863 done
16864
16865
16866 # Solaris has libkstat which does not require root.
16867
16868 { echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
16869 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6; }
16870 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
16871   echo $ECHO_N "(cached) $ECHO_C" >&6
16872 else
16873   ac_check_lib_save_LIBS=$LIBS
16874 LIBS="-lkstat  $LIBS"
16875 cat >conftest.$ac_ext <<_ACEOF
16876 /* confdefs.h.  */
16877 _ACEOF
16878 cat confdefs.h >>conftest.$ac_ext
16879 cat >>conftest.$ac_ext <<_ACEOF
16880 /* end confdefs.h.  */
16881
16882 /* Override any GCC internal prototype to avoid an error.
16883    Use char because int might match the return type of a GCC
16884    builtin and then its argument prototype would still apply.  */
16885 #ifdef __cplusplus
16886 extern "C"
16887 #endif
16888 char kstat_open ();
16889 int
16890 main ()
16891 {
16892 return kstat_open ();
16893   ;
16894   return 0;
16895 }
16896 _ACEOF
16897 rm -f conftest.$ac_objext conftest$ac_exeext
16898 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16899   (eval $ac_link) 2>conftest.er1
16900   ac_status=$?
16901   grep -v '^ *+' conftest.er1 >conftest.err
16902   rm -f conftest.er1
16903   cat conftest.err >&5
16904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16905   (exit $ac_status); } &&
16906          { ac_try='test -z "$ac_c_werror_flag"
16907                          || test ! -s conftest.err'
16908   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16909   (eval $ac_try) 2>&5
16910   ac_status=$?
16911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16912   (exit $ac_status); }; } &&
16913          { ac_try='test -s conftest$ac_exeext'
16914   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16915   (eval $ac_try) 2>&5
16916   ac_status=$?
16917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16918   (exit $ac_status); }; }; then
16919   ac_cv_lib_kstat_kstat_open=yes
16920 else
16921   echo "$as_me: failed program was:" >&5
16922 sed 's/^/| /' conftest.$ac_ext >&5
16923
16924         ac_cv_lib_kstat_kstat_open=no
16925 fi
16926
16927 rm -f conftest.err conftest.$ac_objext \
16928       conftest$ac_exeext conftest.$ac_ext
16929 LIBS=$ac_check_lib_save_LIBS
16930 fi
16931 { echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
16932 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; }
16933 if test $ac_cv_lib_kstat_kstat_open = yes; then
16934   cat >>confdefs.h <<_ACEOF
16935 #define HAVE_LIBKSTAT 1
16936 _ACEOF
16937
16938   LIBS="-lkstat $LIBS"
16939
16940 fi
16941
16942 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
16943
16944 # Some systems with -lutil have (and need) -lkvm as well, some do not.
16945 # On Solaris, -lkvm requires nlist from -lelf, so check that first
16946 # to get the right answer into the cache.
16947 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
16948 if test $ac_have_func = no; then
16949   { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
16950 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
16951 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
16952   echo $ECHO_N "(cached) $ECHO_C" >&6
16953 else
16954   ac_check_lib_save_LIBS=$LIBS
16955 LIBS="-lelf  $LIBS"
16956 cat >conftest.$ac_ext <<_ACEOF
16957 /* confdefs.h.  */
16958 _ACEOF
16959 cat confdefs.h >>conftest.$ac_ext
16960 cat >>conftest.$ac_ext <<_ACEOF
16961 /* end confdefs.h.  */
16962
16963 /* Override any GCC internal prototype to avoid an error.
16964    Use char because int might match the return type of a GCC
16965    builtin and then its argument prototype would still apply.  */
16966 #ifdef __cplusplus
16967 extern "C"
16968 #endif
16969 char elf_begin ();
16970 int
16971 main ()
16972 {
16973 return elf_begin ();
16974   ;
16975   return 0;
16976 }
16977 _ACEOF
16978 rm -f conftest.$ac_objext conftest$ac_exeext
16979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16980   (eval $ac_link) 2>conftest.er1
16981   ac_status=$?
16982   grep -v '^ *+' conftest.er1 >conftest.err
16983   rm -f conftest.er1
16984   cat conftest.err >&5
16985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16986   (exit $ac_status); } &&
16987          { ac_try='test -z "$ac_c_werror_flag"
16988                          || test ! -s conftest.err'
16989   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16990   (eval $ac_try) 2>&5
16991   ac_status=$?
16992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16993   (exit $ac_status); }; } &&
16994          { ac_try='test -s conftest$ac_exeext'
16995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16996   (eval $ac_try) 2>&5
16997   ac_status=$?
16998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16999   (exit $ac_status); }; }; then
17000   ac_cv_lib_elf_elf_begin=yes
17001 else
17002   echo "$as_me: failed program was:" >&5
17003 sed 's/^/| /' conftest.$ac_ext >&5
17004
17005         ac_cv_lib_elf_elf_begin=no
17006 fi
17007
17008 rm -f conftest.err conftest.$ac_objext \
17009       conftest$ac_exeext conftest.$ac_ext
17010 LIBS=$ac_check_lib_save_LIBS
17011 fi
17012 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
17013 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
17014 if test $ac_cv_lib_elf_elf_begin = yes; then
17015   LIBS="-lelf $LIBS"
17016 fi
17017
17018 fi
17019 if test $ac_have_func = no; then
17020   { echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
17021 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6; }
17022 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
17023   echo $ECHO_N "(cached) $ECHO_C" >&6
17024 else
17025   ac_check_lib_save_LIBS=$LIBS
17026 LIBS="-lkvm  $LIBS"
17027 cat >conftest.$ac_ext <<_ACEOF
17028 /* confdefs.h.  */
17029 _ACEOF
17030 cat confdefs.h >>conftest.$ac_ext
17031 cat >>conftest.$ac_ext <<_ACEOF
17032 /* end confdefs.h.  */
17033
17034 /* Override any GCC internal prototype to avoid an error.
17035    Use char because int might match the return type of a GCC
17036    builtin and then its argument prototype would still apply.  */
17037 #ifdef __cplusplus
17038 extern "C"
17039 #endif
17040 char kvm_open ();
17041 int
17042 main ()
17043 {
17044 return kvm_open ();
17045   ;
17046   return 0;
17047 }
17048 _ACEOF
17049 rm -f conftest.$ac_objext conftest$ac_exeext
17050 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17051   (eval $ac_link) 2>conftest.er1
17052   ac_status=$?
17053   grep -v '^ *+' conftest.er1 >conftest.err
17054   rm -f conftest.er1
17055   cat conftest.err >&5
17056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17057   (exit $ac_status); } &&
17058          { ac_try='test -z "$ac_c_werror_flag"
17059                          || test ! -s conftest.err'
17060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17061   (eval $ac_try) 2>&5
17062   ac_status=$?
17063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17064   (exit $ac_status); }; } &&
17065          { ac_try='test -s conftest$ac_exeext'
17066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17067   (eval $ac_try) 2>&5
17068   ac_status=$?
17069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17070   (exit $ac_status); }; }; then
17071   ac_cv_lib_kvm_kvm_open=yes
17072 else
17073   echo "$as_me: failed program was:" >&5
17074 sed 's/^/| /' conftest.$ac_ext >&5
17075
17076         ac_cv_lib_kvm_kvm_open=no
17077 fi
17078
17079 rm -f conftest.err conftest.$ac_objext \
17080       conftest$ac_exeext conftest.$ac_ext
17081 LIBS=$ac_check_lib_save_LIBS
17082 fi
17083 { echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
17084 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; }
17085 if test $ac_cv_lib_kvm_kvm_open = yes; then
17086   LIBS="-lkvm $LIBS"
17087 fi
17088
17089   # Check for the 4.4BSD definition of getloadavg.
17090   { echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
17091 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6; }
17092 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
17093   echo $ECHO_N "(cached) $ECHO_C" >&6
17094 else
17095   ac_check_lib_save_LIBS=$LIBS
17096 LIBS="-lutil  $LIBS"
17097 cat >conftest.$ac_ext <<_ACEOF
17098 /* confdefs.h.  */
17099 _ACEOF
17100 cat confdefs.h >>conftest.$ac_ext
17101 cat >>conftest.$ac_ext <<_ACEOF
17102 /* end confdefs.h.  */
17103
17104 /* Override any GCC internal prototype to avoid an error.
17105    Use char because int might match the return type of a GCC
17106    builtin and then its argument prototype would still apply.  */
17107 #ifdef __cplusplus
17108 extern "C"
17109 #endif
17110 char getloadavg ();
17111 int
17112 main ()
17113 {
17114 return getloadavg ();
17115   ;
17116   return 0;
17117 }
17118 _ACEOF
17119 rm -f conftest.$ac_objext conftest$ac_exeext
17120 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17121   (eval $ac_link) 2>conftest.er1
17122   ac_status=$?
17123   grep -v '^ *+' conftest.er1 >conftest.err
17124   rm -f conftest.er1
17125   cat conftest.err >&5
17126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17127   (exit $ac_status); } &&
17128          { ac_try='test -z "$ac_c_werror_flag"
17129                          || test ! -s conftest.err'
17130   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17131   (eval $ac_try) 2>&5
17132   ac_status=$?
17133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17134   (exit $ac_status); }; } &&
17135          { ac_try='test -s conftest$ac_exeext'
17136   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17137   (eval $ac_try) 2>&5
17138   ac_status=$?
17139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17140   (exit $ac_status); }; }; then
17141   ac_cv_lib_util_getloadavg=yes
17142 else
17143   echo "$as_me: failed program was:" >&5
17144 sed 's/^/| /' conftest.$ac_ext >&5
17145
17146         ac_cv_lib_util_getloadavg=no
17147 fi
17148
17149 rm -f conftest.err conftest.$ac_objext \
17150       conftest$ac_exeext conftest.$ac_ext
17151 LIBS=$ac_check_lib_save_LIBS
17152 fi
17153 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
17154 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6; }
17155 if test $ac_cv_lib_util_getloadavg = yes; then
17156   LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
17157 fi
17158
17159 fi
17160
17161 if test $ac_have_func = no; then
17162   # There is a commonly available library for RS/6000 AIX.
17163   # Since it is not a standard part of AIX, it might be installed locally.
17164   ac_getloadavg_LIBS=$LIBS
17165   LIBS="-L/usr/local/lib $LIBS"
17166   { echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
17167 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6; }
17168 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
17169   echo $ECHO_N "(cached) $ECHO_C" >&6
17170 else
17171   ac_check_lib_save_LIBS=$LIBS
17172 LIBS="-lgetloadavg  $LIBS"
17173 cat >conftest.$ac_ext <<_ACEOF
17174 /* confdefs.h.  */
17175 _ACEOF
17176 cat confdefs.h >>conftest.$ac_ext
17177 cat >>conftest.$ac_ext <<_ACEOF
17178 /* end confdefs.h.  */
17179
17180 /* Override any GCC internal prototype to avoid an error.
17181    Use char because int might match the return type of a GCC
17182    builtin and then its argument prototype would still apply.  */
17183 #ifdef __cplusplus
17184 extern "C"
17185 #endif
17186 char getloadavg ();
17187 int
17188 main ()
17189 {
17190 return getloadavg ();
17191   ;
17192   return 0;
17193 }
17194 _ACEOF
17195 rm -f conftest.$ac_objext conftest$ac_exeext
17196 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17197   (eval $ac_link) 2>conftest.er1
17198   ac_status=$?
17199   grep -v '^ *+' conftest.er1 >conftest.err
17200   rm -f conftest.er1
17201   cat conftest.err >&5
17202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17203   (exit $ac_status); } &&
17204          { ac_try='test -z "$ac_c_werror_flag"
17205                          || test ! -s conftest.err'
17206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17207   (eval $ac_try) 2>&5
17208   ac_status=$?
17209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17210   (exit $ac_status); }; } &&
17211          { ac_try='test -s conftest$ac_exeext'
17212   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17213   (eval $ac_try) 2>&5
17214   ac_status=$?
17215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17216   (exit $ac_status); }; }; then
17217   ac_cv_lib_getloadavg_getloadavg=yes
17218 else
17219   echo "$as_me: failed program was:" >&5
17220 sed 's/^/| /' conftest.$ac_ext >&5
17221
17222         ac_cv_lib_getloadavg_getloadavg=no
17223 fi
17224
17225 rm -f conftest.err conftest.$ac_objext \
17226       conftest$ac_exeext conftest.$ac_ext
17227 LIBS=$ac_check_lib_save_LIBS
17228 fi
17229 { echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
17230 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6; }
17231 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
17232   LIBS="-lgetloadavg $LIBS"
17233 else
17234   LIBS=$ac_getloadavg_LIBS
17235 fi
17236
17237 fi
17238
17239 # Make sure it is really in the library, if we think we found it,
17240 # otherwise set up the replacement function.
17241
17242 for ac_func in getloadavg
17243 do
17244 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17245 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17246 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17247 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17248   echo $ECHO_N "(cached) $ECHO_C" >&6
17249 else
17250   cat >conftest.$ac_ext <<_ACEOF
17251 /* confdefs.h.  */
17252 _ACEOF
17253 cat confdefs.h >>conftest.$ac_ext
17254 cat >>conftest.$ac_ext <<_ACEOF
17255 /* end confdefs.h.  */
17256 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17257    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17258 #define $ac_func innocuous_$ac_func
17259
17260 /* System header to define __stub macros and hopefully few prototypes,
17261     which can conflict with char $ac_func (); below.
17262     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17263     <limits.h> exists even on freestanding compilers.  */
17264
17265 #ifdef __STDC__
17266 # include <limits.h>
17267 #else
17268 # include <assert.h>
17269 #endif
17270
17271 #undef $ac_func
17272
17273 /* Override any GCC internal prototype to avoid an error.
17274    Use char because int might match the return type of a GCC
17275    builtin and then its argument prototype would still apply.  */
17276 #ifdef __cplusplus
17277 extern "C"
17278 #endif
17279 char $ac_func ();
17280 /* The GNU C library defines this for functions which it implements
17281     to always fail with ENOSYS.  Some functions are actually named
17282     something starting with __ and the normal name is an alias.  */
17283 #if defined __stub_$ac_func || defined __stub___$ac_func
17284 choke me
17285 #endif
17286
17287 int
17288 main ()
17289 {
17290 return $ac_func ();
17291   ;
17292   return 0;
17293 }
17294 _ACEOF
17295 rm -f conftest.$ac_objext conftest$ac_exeext
17296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17297   (eval $ac_link) 2>conftest.er1
17298   ac_status=$?
17299   grep -v '^ *+' conftest.er1 >conftest.err
17300   rm -f conftest.er1
17301   cat conftest.err >&5
17302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17303   (exit $ac_status); } &&
17304          { ac_try='test -z "$ac_c_werror_flag"
17305                          || test ! -s conftest.err'
17306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17307   (eval $ac_try) 2>&5
17308   ac_status=$?
17309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17310   (exit $ac_status); }; } &&
17311          { ac_try='test -s conftest$ac_exeext'
17312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17313   (eval $ac_try) 2>&5
17314   ac_status=$?
17315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17316   (exit $ac_status); }; }; then
17317   eval "$as_ac_var=yes"
17318 else
17319   echo "$as_me: failed program was:" >&5
17320 sed 's/^/| /' conftest.$ac_ext >&5
17321
17322         eval "$as_ac_var=no"
17323 fi
17324
17325 rm -f conftest.err conftest.$ac_objext \
17326       conftest$ac_exeext conftest.$ac_ext
17327 fi
17328 ac_res=`eval echo '${'$as_ac_var'}'`
17329                { echo "$as_me:$LINENO: result: $ac_res" >&5
17330 echo "${ECHO_T}$ac_res" >&6; }
17331 if test `eval echo '${'$as_ac_var'}'` = yes; then
17332   cat >>confdefs.h <<_ACEOF
17333 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17334 _ACEOF
17335
17336 else
17337   case " $LIBOBJS " in
17338   *" getloadavg.$ac_objext "* ) ;;
17339   *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
17340  ;;
17341 esac
17342
17343
17344 cat >>confdefs.h <<\_ACEOF
17345 #define C_GETLOADAVG 1
17346 _ACEOF
17347
17348 # Figure out what our getloadavg.c needs.
17349 ac_have_func=no
17350 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17351   { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
17352 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
17353 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17354   echo $ECHO_N "(cached) $ECHO_C" >&6
17355 fi
17356 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
17357 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17358 else
17359   # Is the header compilable?
17360 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
17361 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6; }
17362 cat >conftest.$ac_ext <<_ACEOF
17363 /* confdefs.h.  */
17364 _ACEOF
17365 cat confdefs.h >>conftest.$ac_ext
17366 cat >>conftest.$ac_ext <<_ACEOF
17367 /* end confdefs.h.  */
17368 $ac_includes_default
17369 #include <sys/dg_sys_info.h>
17370 _ACEOF
17371 rm -f conftest.$ac_objext
17372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17373   (eval $ac_compile) 2>conftest.er1
17374   ac_status=$?
17375   grep -v '^ *+' conftest.er1 >conftest.err
17376   rm -f conftest.er1
17377   cat conftest.err >&5
17378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17379   (exit $ac_status); } &&
17380          { ac_try='test -z "$ac_c_werror_flag"
17381                          || test ! -s conftest.err'
17382   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17383   (eval $ac_try) 2>&5
17384   ac_status=$?
17385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17386   (exit $ac_status); }; } &&
17387          { ac_try='test -s conftest.$ac_objext'
17388   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17389   (eval $ac_try) 2>&5
17390   ac_status=$?
17391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17392   (exit $ac_status); }; }; then
17393   ac_header_compiler=yes
17394 else
17395   echo "$as_me: failed program was:" >&5
17396 sed 's/^/| /' conftest.$ac_ext >&5
17397
17398         ac_header_compiler=no
17399 fi
17400
17401 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17402 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17403 echo "${ECHO_T}$ac_header_compiler" >&6; }
17404
17405 # Is the header present?
17406 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
17407 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6; }
17408 cat >conftest.$ac_ext <<_ACEOF
17409 /* confdefs.h.  */
17410 _ACEOF
17411 cat confdefs.h >>conftest.$ac_ext
17412 cat >>conftest.$ac_ext <<_ACEOF
17413 /* end confdefs.h.  */
17414 #include <sys/dg_sys_info.h>
17415 _ACEOF
17416 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17417   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17418   ac_status=$?
17419   grep -v '^ *+' conftest.er1 >conftest.err
17420   rm -f conftest.er1
17421   cat conftest.err >&5
17422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17423   (exit $ac_status); } >/dev/null; then
17424   if test -s conftest.err; then
17425     ac_cpp_err=$ac_c_preproc_warn_flag
17426     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17427   else
17428     ac_cpp_err=
17429   fi
17430 else
17431   ac_cpp_err=yes
17432 fi
17433 if test -z "$ac_cpp_err"; then
17434   ac_header_preproc=yes
17435 else
17436   echo "$as_me: failed program was:" >&5
17437 sed 's/^/| /' conftest.$ac_ext >&5
17438
17439   ac_header_preproc=no
17440 fi
17441
17442 rm -f conftest.err conftest.$ac_ext
17443 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17444 echo "${ECHO_T}$ac_header_preproc" >&6; }
17445
17446 # So?  What about this header?
17447 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17448   yes:no: )
17449     { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
17450 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17451     { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
17452 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
17453     ac_header_preproc=yes
17454     ;;
17455   no:yes:* )
17456     { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
17457 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
17458     { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h:     check for missing prerequisite headers?" >&5
17459 echo "$as_me: WARNING: sys/dg_sys_info.h:     check for missing prerequisite headers?" >&2;}
17460     { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
17461 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
17462     { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h:     section \"Present But Cannot Be Compiled\"" >&5
17463 echo "$as_me: WARNING: sys/dg_sys_info.h:     section \"Present But Cannot Be Compiled\"" >&2;}
17464     { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
17465 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
17466     { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
17467 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
17468     ( cat <<\_ASBOX
17469 ## ------------------------------------ ##
17470 ## Report this to bug-coreutils@gnu.org ##
17471 ## ------------------------------------ ##
17472 _ASBOX
17473      ) | sed "s/^/$as_me: WARNING:     /" >&2
17474     ;;
17475 esac
17476 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
17477 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
17478 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17479   echo $ECHO_N "(cached) $ECHO_C" >&6
17480 else
17481   ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
17482 fi
17483 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
17484 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17485
17486 fi
17487 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
17488   ac_have_func=yes
17489
17490 cat >>confdefs.h <<\_ACEOF
17491 #define DGUX 1
17492 _ACEOF
17493
17494
17495 { echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
17496 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6; }
17497 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
17498   echo $ECHO_N "(cached) $ECHO_C" >&6
17499 else
17500   ac_check_lib_save_LIBS=$LIBS
17501 LIBS="-ldgc  $LIBS"
17502 cat >conftest.$ac_ext <<_ACEOF
17503 /* confdefs.h.  */
17504 _ACEOF
17505 cat confdefs.h >>conftest.$ac_ext
17506 cat >>conftest.$ac_ext <<_ACEOF
17507 /* end confdefs.h.  */
17508
17509 /* Override any GCC internal prototype to avoid an error.
17510    Use char because int might match the return type of a GCC
17511    builtin and then its argument prototype would still apply.  */
17512 #ifdef __cplusplus
17513 extern "C"
17514 #endif
17515 char dg_sys_info ();
17516 int
17517 main ()
17518 {
17519 return dg_sys_info ();
17520   ;
17521   return 0;
17522 }
17523 _ACEOF
17524 rm -f conftest.$ac_objext conftest$ac_exeext
17525 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17526   (eval $ac_link) 2>conftest.er1
17527   ac_status=$?
17528   grep -v '^ *+' conftest.er1 >conftest.err
17529   rm -f conftest.er1
17530   cat conftest.err >&5
17531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17532   (exit $ac_status); } &&
17533          { ac_try='test -z "$ac_c_werror_flag"
17534                          || test ! -s conftest.err'
17535   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17536   (eval $ac_try) 2>&5
17537   ac_status=$?
17538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17539   (exit $ac_status); }; } &&
17540          { ac_try='test -s conftest$ac_exeext'
17541   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17542   (eval $ac_try) 2>&5
17543   ac_status=$?
17544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17545   (exit $ac_status); }; }; then
17546   ac_cv_lib_dgc_dg_sys_info=yes
17547 else
17548   echo "$as_me: failed program was:" >&5
17549 sed 's/^/| /' conftest.$ac_ext >&5
17550
17551         ac_cv_lib_dgc_dg_sys_info=no
17552 fi
17553
17554 rm -f conftest.err conftest.$ac_objext \
17555       conftest$ac_exeext conftest.$ac_ext
17556 LIBS=$ac_check_lib_save_LIBS
17557 fi
17558 { echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
17559 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6; }
17560 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
17561   cat >>confdefs.h <<_ACEOF
17562 #define HAVE_LIBDGC 1
17563 _ACEOF
17564
17565   LIBS="-ldgc $LIBS"
17566
17567 fi
17568
17569 fi
17570
17571
17572
17573 if test "${ac_cv_header_locale_h+set}" = set; then
17574   { echo "$as_me:$LINENO: checking for locale.h" >&5
17575 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
17576 if test "${ac_cv_header_locale_h+set}" = set; then
17577   echo $ECHO_N "(cached) $ECHO_C" >&6
17578 fi
17579 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
17580 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17581 else
17582   # Is the header compilable?
17583 { echo "$as_me:$LINENO: checking locale.h usability" >&5
17584 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6; }
17585 cat >conftest.$ac_ext <<_ACEOF
17586 /* confdefs.h.  */
17587 _ACEOF
17588 cat confdefs.h >>conftest.$ac_ext
17589 cat >>conftest.$ac_ext <<_ACEOF
17590 /* end confdefs.h.  */
17591 $ac_includes_default
17592 #include <locale.h>
17593 _ACEOF
17594 rm -f conftest.$ac_objext
17595 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17596   (eval $ac_compile) 2>conftest.er1
17597   ac_status=$?
17598   grep -v '^ *+' conftest.er1 >conftest.err
17599   rm -f conftest.er1
17600   cat conftest.err >&5
17601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17602   (exit $ac_status); } &&
17603          { ac_try='test -z "$ac_c_werror_flag"
17604                          || test ! -s conftest.err'
17605   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17606   (eval $ac_try) 2>&5
17607   ac_status=$?
17608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17609   (exit $ac_status); }; } &&
17610          { ac_try='test -s conftest.$ac_objext'
17611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17612   (eval $ac_try) 2>&5
17613   ac_status=$?
17614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17615   (exit $ac_status); }; }; then
17616   ac_header_compiler=yes
17617 else
17618   echo "$as_me: failed program was:" >&5
17619 sed 's/^/| /' conftest.$ac_ext >&5
17620
17621         ac_header_compiler=no
17622 fi
17623
17624 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17625 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17626 echo "${ECHO_T}$ac_header_compiler" >&6; }
17627
17628 # Is the header present?
17629 { echo "$as_me:$LINENO: checking locale.h presence" >&5
17630 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6; }
17631 cat >conftest.$ac_ext <<_ACEOF
17632 /* confdefs.h.  */
17633 _ACEOF
17634 cat confdefs.h >>conftest.$ac_ext
17635 cat >>conftest.$ac_ext <<_ACEOF
17636 /* end confdefs.h.  */
17637 #include <locale.h>
17638 _ACEOF
17639 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17640   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17641   ac_status=$?
17642   grep -v '^ *+' conftest.er1 >conftest.err
17643   rm -f conftest.er1
17644   cat conftest.err >&5
17645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17646   (exit $ac_status); } >/dev/null; then
17647   if test -s conftest.err; then
17648     ac_cpp_err=$ac_c_preproc_warn_flag
17649     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17650   else
17651     ac_cpp_err=
17652   fi
17653 else
17654   ac_cpp_err=yes
17655 fi
17656 if test -z "$ac_cpp_err"; then
17657   ac_header_preproc=yes
17658 else
17659   echo "$as_me: failed program was:" >&5
17660 sed 's/^/| /' conftest.$ac_ext >&5
17661
17662   ac_header_preproc=no
17663 fi
17664
17665 rm -f conftest.err conftest.$ac_ext
17666 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17667 echo "${ECHO_T}$ac_header_preproc" >&6; }
17668
17669 # So?  What about this header?
17670 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17671   yes:no: )
17672     { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
17673 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17674     { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
17675 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
17676     ac_header_preproc=yes
17677     ;;
17678   no:yes:* )
17679     { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
17680 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
17681     { echo "$as_me:$LINENO: WARNING: locale.h:     check for missing prerequisite headers?" >&5
17682 echo "$as_me: WARNING: locale.h:     check for missing prerequisite headers?" >&2;}
17683     { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
17684 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
17685     { echo "$as_me:$LINENO: WARNING: locale.h:     section \"Present But Cannot Be Compiled\"" >&5
17686 echo "$as_me: WARNING: locale.h:     section \"Present But Cannot Be Compiled\"" >&2;}
17687     { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
17688 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
17689     { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
17690 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
17691     ( cat <<\_ASBOX
17692 ## ------------------------------------ ##
17693 ## Report this to bug-coreutils@gnu.org ##
17694 ## ------------------------------------ ##
17695 _ASBOX
17696      ) | sed "s/^/$as_me: WARNING:     /" >&2
17697     ;;
17698 esac
17699 { echo "$as_me:$LINENO: checking for locale.h" >&5
17700 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
17701 if test "${ac_cv_header_locale_h+set}" = set; then
17702   echo $ECHO_N "(cached) $ECHO_C" >&6
17703 else
17704   ac_cv_header_locale_h=$ac_header_preproc
17705 fi
17706 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
17707 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17708
17709 fi
17710
17711
17712
17713 for ac_func in setlocale
17714 do
17715 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17716 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17717 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17718 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17719   echo $ECHO_N "(cached) $ECHO_C" >&6
17720 else
17721   cat >conftest.$ac_ext <<_ACEOF
17722 /* confdefs.h.  */
17723 _ACEOF
17724 cat confdefs.h >>conftest.$ac_ext
17725 cat >>conftest.$ac_ext <<_ACEOF
17726 /* end confdefs.h.  */
17727 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17728    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17729 #define $ac_func innocuous_$ac_func
17730
17731 /* System header to define __stub macros and hopefully few prototypes,
17732     which can conflict with char $ac_func (); below.
17733     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17734     <limits.h> exists even on freestanding compilers.  */
17735
17736 #ifdef __STDC__
17737 # include <limits.h>
17738 #else
17739 # include <assert.h>
17740 #endif
17741
17742 #undef $ac_func
17743
17744 /* Override any GCC internal prototype to avoid an error.
17745    Use char because int might match the return type of a GCC
17746    builtin and then its argument prototype would still apply.  */
17747 #ifdef __cplusplus
17748 extern "C"
17749 #endif
17750 char $ac_func ();
17751 /* The GNU C library defines this for functions which it implements
17752     to always fail with ENOSYS.  Some functions are actually named
17753     something starting with __ and the normal name is an alias.  */
17754 #if defined __stub_$ac_func || defined __stub___$ac_func
17755 choke me
17756 #endif
17757
17758 int
17759 main ()
17760 {
17761 return $ac_func ();
17762   ;
17763   return 0;
17764 }
17765 _ACEOF
17766 rm -f conftest.$ac_objext conftest$ac_exeext
17767 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17768   (eval $ac_link) 2>conftest.er1
17769   ac_status=$?
17770   grep -v '^ *+' conftest.er1 >conftest.err
17771   rm -f conftest.er1
17772   cat conftest.err >&5
17773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17774   (exit $ac_status); } &&
17775          { ac_try='test -z "$ac_c_werror_flag"
17776                          || test ! -s conftest.err'
17777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17778   (eval $ac_try) 2>&5
17779   ac_status=$?
17780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17781   (exit $ac_status); }; } &&
17782          { ac_try='test -s conftest$ac_exeext'
17783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17784   (eval $ac_try) 2>&5
17785   ac_status=$?
17786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17787   (exit $ac_status); }; }; then
17788   eval "$as_ac_var=yes"
17789 else
17790   echo "$as_me: failed program was:" >&5
17791 sed 's/^/| /' conftest.$ac_ext >&5
17792
17793         eval "$as_ac_var=no"
17794 fi
17795
17796 rm -f conftest.err conftest.$ac_objext \
17797       conftest$ac_exeext conftest.$ac_ext
17798 fi
17799 ac_res=`eval echo '${'$as_ac_var'}'`
17800                { echo "$as_me:$LINENO: result: $ac_res" >&5
17801 echo "${ECHO_T}$ac_res" >&6; }
17802 if test `eval echo '${'$as_ac_var'}'` = yes; then
17803   cat >>confdefs.h <<_ACEOF
17804 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17805 _ACEOF
17806
17807 fi
17808 done
17809
17810
17811 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
17812 # uses stabs), but it is still SVR4.  We cannot check for <elf.h> because
17813 # Irix 4.0.5F has the header but not the library.
17814 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
17815   ac_have_func=yes
17816
17817 cat >>confdefs.h <<\_ACEOF
17818 #define SVR4 1
17819 _ACEOF
17820
17821 fi
17822
17823 if test $ac_have_func = no; then
17824   if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17825   { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
17826 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
17827 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17828   echo $ECHO_N "(cached) $ECHO_C" >&6
17829 fi
17830 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
17831 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17832 else
17833   # Is the header compilable?
17834 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
17835 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6; }
17836 cat >conftest.$ac_ext <<_ACEOF
17837 /* confdefs.h.  */
17838 _ACEOF
17839 cat confdefs.h >>conftest.$ac_ext
17840 cat >>conftest.$ac_ext <<_ACEOF
17841 /* end confdefs.h.  */
17842 $ac_includes_default
17843 #include <inq_stats/cpustats.h>
17844 _ACEOF
17845 rm -f conftest.$ac_objext
17846 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17847   (eval $ac_compile) 2>conftest.er1
17848   ac_status=$?
17849   grep -v '^ *+' conftest.er1 >conftest.err
17850   rm -f conftest.er1
17851   cat conftest.err >&5
17852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17853   (exit $ac_status); } &&
17854          { ac_try='test -z "$ac_c_werror_flag"
17855                          || test ! -s conftest.err'
17856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17857   (eval $ac_try) 2>&5
17858   ac_status=$?
17859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17860   (exit $ac_status); }; } &&
17861          { ac_try='test -s conftest.$ac_objext'
17862   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17863   (eval $ac_try) 2>&5
17864   ac_status=$?
17865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17866   (exit $ac_status); }; }; then
17867   ac_header_compiler=yes
17868 else
17869   echo "$as_me: failed program was:" >&5
17870 sed 's/^/| /' conftest.$ac_ext >&5
17871
17872         ac_header_compiler=no
17873 fi
17874
17875 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17876 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17877 echo "${ECHO_T}$ac_header_compiler" >&6; }
17878
17879 # Is the header present?
17880 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
17881 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6; }
17882 cat >conftest.$ac_ext <<_ACEOF
17883 /* confdefs.h.  */
17884 _ACEOF
17885 cat confdefs.h >>conftest.$ac_ext
17886 cat >>conftest.$ac_ext <<_ACEOF
17887 /* end confdefs.h.  */
17888 #include <inq_stats/cpustats.h>
17889 _ACEOF
17890 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17891   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17892   ac_status=$?
17893   grep -v '^ *+' conftest.er1 >conftest.err
17894   rm -f conftest.er1
17895   cat conftest.err >&5
17896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17897   (exit $ac_status); } >/dev/null; then
17898   if test -s conftest.err; then
17899     ac_cpp_err=$ac_c_preproc_warn_flag
17900     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17901   else
17902     ac_cpp_err=
17903   fi
17904 else
17905   ac_cpp_err=yes
17906 fi
17907 if test -z "$ac_cpp_err"; then
17908   ac_header_preproc=yes
17909 else
17910   echo "$as_me: failed program was:" >&5
17911 sed 's/^/| /' conftest.$ac_ext >&5
17912
17913   ac_header_preproc=no
17914 fi
17915
17916 rm -f conftest.err conftest.$ac_ext
17917 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17918 echo "${ECHO_T}$ac_header_preproc" >&6; }
17919
17920 # So?  What about this header?
17921 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17922   yes:no: )
17923     { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
17924 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17925     { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
17926 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
17927     ac_header_preproc=yes
17928     ;;
17929   no:yes:* )
17930     { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
17931 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
17932     { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h:     check for missing prerequisite headers?" >&5
17933 echo "$as_me: WARNING: inq_stats/cpustats.h:     check for missing prerequisite headers?" >&2;}
17934     { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
17935 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
17936     { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h:     section \"Present But Cannot Be Compiled\"" >&5
17937 echo "$as_me: WARNING: inq_stats/cpustats.h:     section \"Present But Cannot Be Compiled\"" >&2;}
17938     { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
17939 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
17940     { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
17941 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
17942     ( cat <<\_ASBOX
17943 ## ------------------------------------ ##
17944 ## Report this to bug-coreutils@gnu.org ##
17945 ## ------------------------------------ ##
17946 _ASBOX
17947      ) | sed "s/^/$as_me: WARNING:     /" >&2
17948     ;;
17949 esac
17950 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
17951 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
17952 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17953   echo $ECHO_N "(cached) $ECHO_C" >&6
17954 else
17955   ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
17956 fi
17957 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
17958 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17959
17960 fi
17961 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
17962   ac_have_func=yes
17963
17964 cat >>confdefs.h <<\_ACEOF
17965 #define UMAX 1
17966 _ACEOF
17967
17968
17969 cat >>confdefs.h <<\_ACEOF
17970 #define UMAX4_3 1
17971 _ACEOF
17972
17973 fi
17974
17975
17976 fi
17977
17978 if test $ac_have_func = no; then
17979   if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17980   { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
17981 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
17982 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17983   echo $ECHO_N "(cached) $ECHO_C" >&6
17984 fi
17985 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
17986 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
17987 else
17988   # Is the header compilable?
17989 { echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
17990 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6; }
17991 cat >conftest.$ac_ext <<_ACEOF
17992 /* confdefs.h.  */
17993 _ACEOF
17994 cat confdefs.h >>conftest.$ac_ext
17995 cat >>conftest.$ac_ext <<_ACEOF
17996 /* end confdefs.h.  */
17997 $ac_includes_default
17998 #include <sys/cpustats.h>
17999 _ACEOF
18000 rm -f conftest.$ac_objext
18001 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18002   (eval $ac_compile) 2>conftest.er1
18003   ac_status=$?
18004   grep -v '^ *+' conftest.er1 >conftest.err
18005   rm -f conftest.er1
18006   cat conftest.err >&5
18007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18008   (exit $ac_status); } &&
18009          { ac_try='test -z "$ac_c_werror_flag"
18010                          || test ! -s conftest.err'
18011   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18012   (eval $ac_try) 2>&5
18013   ac_status=$?
18014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18015   (exit $ac_status); }; } &&
18016          { ac_try='test -s conftest.$ac_objext'
18017   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18018   (eval $ac_try) 2>&5
18019   ac_status=$?
18020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18021   (exit $ac_status); }; }; then
18022   ac_header_compiler=yes
18023 else
18024   echo "$as_me: failed program was:" >&5
18025 sed 's/^/| /' conftest.$ac_ext >&5
18026
18027         ac_header_compiler=no
18028 fi
18029
18030 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18031 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18032 echo "${ECHO_T}$ac_header_compiler" >&6; }
18033
18034 # Is the header present?
18035 { echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
18036 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6; }
18037 cat >conftest.$ac_ext <<_ACEOF
18038 /* confdefs.h.  */
18039 _ACEOF
18040 cat confdefs.h >>conftest.$ac_ext
18041 cat >>conftest.$ac_ext <<_ACEOF
18042 /* end confdefs.h.  */
18043 #include <sys/cpustats.h>
18044 _ACEOF
18045 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18046   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18047   ac_status=$?
18048   grep -v '^ *+' conftest.er1 >conftest.err
18049   rm -f conftest.er1
18050   cat conftest.err >&5
18051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18052   (exit $ac_status); } >/dev/null; then
18053   if test -s conftest.err; then
18054     ac_cpp_err=$ac_c_preproc_warn_flag
18055     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18056   else
18057     ac_cpp_err=
18058   fi
18059 else
18060   ac_cpp_err=yes
18061 fi
18062 if test -z "$ac_cpp_err"; then
18063   ac_header_preproc=yes
18064 else
18065   echo "$as_me: failed program was:" >&5
18066 sed 's/^/| /' conftest.$ac_ext >&5
18067
18068   ac_header_preproc=no
18069 fi
18070
18071 rm -f conftest.err conftest.$ac_ext
18072 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18073 echo "${ECHO_T}$ac_header_preproc" >&6; }
18074
18075 # So?  What about this header?
18076 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18077   yes:no: )
18078     { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
18079 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18080     { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
18081 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
18082     ac_header_preproc=yes
18083     ;;
18084   no:yes:* )
18085     { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
18086 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
18087     { echo "$as_me:$LINENO: WARNING: sys/cpustats.h:     check for missing prerequisite headers?" >&5
18088 echo "$as_me: WARNING: sys/cpustats.h:     check for missing prerequisite headers?" >&2;}
18089     { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
18090 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
18091     { echo "$as_me:$LINENO: WARNING: sys/cpustats.h:     section \"Present But Cannot Be Compiled\"" >&5
18092 echo "$as_me: WARNING: sys/cpustats.h:     section \"Present But Cannot Be Compiled\"" >&2;}
18093     { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
18094 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
18095     { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
18096 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
18097     ( cat <<\_ASBOX
18098 ## ------------------------------------ ##
18099 ## Report this to bug-coreutils@gnu.org ##
18100 ## ------------------------------------ ##
18101 _ASBOX
18102      ) | sed "s/^/$as_me: WARNING:     /" >&2
18103     ;;
18104 esac
18105 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
18106 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
18107 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18108   echo $ECHO_N "(cached) $ECHO_C" >&6
18109 else
18110   ac_cv_header_sys_cpustats_h=$ac_header_preproc
18111 fi
18112 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
18113 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
18114
18115 fi
18116 if test $ac_cv_header_sys_cpustats_h = yes; then
18117   ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
18118 #define UMAX 1
18119 _ACEOF
18120
18121 fi
18122
18123
18124 fi
18125
18126 if test $ac_have_func = no; then
18127
18128 for ac_header in mach/mach.h
18129 do
18130 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18131 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18132   { echo "$as_me:$LINENO: checking for $ac_header" >&5
18133 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18134 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18135   echo $ECHO_N "(cached) $ECHO_C" >&6
18136 fi
18137 ac_res=`eval echo '${'$as_ac_Header'}'`
18138                { echo "$as_me:$LINENO: result: $ac_res" >&5
18139 echo "${ECHO_T}$ac_res" >&6; }
18140 else
18141   # Is the header compilable?
18142 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18143 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18144 cat >conftest.$ac_ext <<_ACEOF
18145 /* confdefs.h.  */
18146 _ACEOF
18147 cat confdefs.h >>conftest.$ac_ext
18148 cat >>conftest.$ac_ext <<_ACEOF
18149 /* end confdefs.h.  */
18150 $ac_includes_default
18151 #include <$ac_header>
18152 _ACEOF
18153 rm -f conftest.$ac_objext
18154 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18155   (eval $ac_compile) 2>conftest.er1
18156   ac_status=$?
18157   grep -v '^ *+' conftest.er1 >conftest.err
18158   rm -f conftest.er1
18159   cat conftest.err >&5
18160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18161   (exit $ac_status); } &&
18162          { ac_try='test -z "$ac_c_werror_flag"
18163                          || test ! -s conftest.err'
18164   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18165   (eval $ac_try) 2>&5
18166   ac_status=$?
18167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18168   (exit $ac_status); }; } &&
18169          { ac_try='test -s conftest.$ac_objext'
18170   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18171   (eval $ac_try) 2>&5
18172   ac_status=$?
18173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18174   (exit $ac_status); }; }; then
18175   ac_header_compiler=yes
18176 else
18177   echo "$as_me: failed program was:" >&5
18178 sed 's/^/| /' conftest.$ac_ext >&5
18179
18180         ac_header_compiler=no
18181 fi
18182
18183 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18184 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18185 echo "${ECHO_T}$ac_header_compiler" >&6; }
18186
18187 # Is the header present?
18188 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18189 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18190 cat >conftest.$ac_ext <<_ACEOF
18191 /* confdefs.h.  */
18192 _ACEOF
18193 cat confdefs.h >>conftest.$ac_ext
18194 cat >>conftest.$ac_ext <<_ACEOF
18195 /* end confdefs.h.  */
18196 #include <$ac_header>
18197 _ACEOF
18198 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18199   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18200   ac_status=$?
18201   grep -v '^ *+' conftest.er1 >conftest.err
18202   rm -f conftest.er1
18203   cat conftest.err >&5
18204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18205   (exit $ac_status); } >/dev/null; then
18206   if test -s conftest.err; then
18207     ac_cpp_err=$ac_c_preproc_warn_flag
18208     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18209   else
18210     ac_cpp_err=
18211   fi
18212 else
18213   ac_cpp_err=yes
18214 fi
18215 if test -z "$ac_cpp_err"; then
18216   ac_header_preproc=yes
18217 else
18218   echo "$as_me: failed program was:" >&5
18219 sed 's/^/| /' conftest.$ac_ext >&5
18220
18221   ac_header_preproc=no
18222 fi
18223
18224 rm -f conftest.err conftest.$ac_ext
18225 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18226 echo "${ECHO_T}$ac_header_preproc" >&6; }
18227
18228 # So?  What about this header?
18229 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18230   yes:no: )
18231     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18232 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18233     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18234 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18235     ac_header_preproc=yes
18236     ;;
18237   no:yes:* )
18238     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18239 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18240     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18241 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18242     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18243 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18244     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18245 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18246     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18247 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18248     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18249 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18250     ( cat <<\_ASBOX
18251 ## ------------------------------------ ##
18252 ## Report this to bug-coreutils@gnu.org ##
18253 ## ------------------------------------ ##
18254 _ASBOX
18255      ) | sed "s/^/$as_me: WARNING:     /" >&2
18256     ;;
18257 esac
18258 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18259 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18260 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18261   echo $ECHO_N "(cached) $ECHO_C" >&6
18262 else
18263   eval "$as_ac_Header=\$ac_header_preproc"
18264 fi
18265 ac_res=`eval echo '${'$as_ac_Header'}'`
18266                { echo "$as_me:$LINENO: result: $ac_res" >&5
18267 echo "${ECHO_T}$ac_res" >&6; }
18268
18269 fi
18270 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18271   cat >>confdefs.h <<_ACEOF
18272 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18273 _ACEOF
18274
18275 fi
18276
18277 done
18278
18279 fi
18280
18281
18282 for ac_header in nlist.h
18283 do
18284 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18285 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18286   { echo "$as_me:$LINENO: checking for $ac_header" >&5
18287 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18288 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18289   echo $ECHO_N "(cached) $ECHO_C" >&6
18290 fi
18291 ac_res=`eval echo '${'$as_ac_Header'}'`
18292                { echo "$as_me:$LINENO: result: $ac_res" >&5
18293 echo "${ECHO_T}$ac_res" >&6; }
18294 else
18295   # Is the header compilable?
18296 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18297 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18298 cat >conftest.$ac_ext <<_ACEOF
18299 /* confdefs.h.  */
18300 _ACEOF
18301 cat confdefs.h >>conftest.$ac_ext
18302 cat >>conftest.$ac_ext <<_ACEOF
18303 /* end confdefs.h.  */
18304 $ac_includes_default
18305 #include <$ac_header>
18306 _ACEOF
18307 rm -f conftest.$ac_objext
18308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18309   (eval $ac_compile) 2>conftest.er1
18310   ac_status=$?
18311   grep -v '^ *+' conftest.er1 >conftest.err
18312   rm -f conftest.er1
18313   cat conftest.err >&5
18314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18315   (exit $ac_status); } &&
18316          { ac_try='test -z "$ac_c_werror_flag"
18317                          || test ! -s conftest.err'
18318   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18319   (eval $ac_try) 2>&5
18320   ac_status=$?
18321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18322   (exit $ac_status); }; } &&
18323          { ac_try='test -s conftest.$ac_objext'
18324   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18325   (eval $ac_try) 2>&5
18326   ac_status=$?
18327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18328   (exit $ac_status); }; }; then
18329   ac_header_compiler=yes
18330 else
18331   echo "$as_me: failed program was:" >&5
18332 sed 's/^/| /' conftest.$ac_ext >&5
18333
18334         ac_header_compiler=no
18335 fi
18336
18337 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18338 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18339 echo "${ECHO_T}$ac_header_compiler" >&6; }
18340
18341 # Is the header present?
18342 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18343 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18344 cat >conftest.$ac_ext <<_ACEOF
18345 /* confdefs.h.  */
18346 _ACEOF
18347 cat confdefs.h >>conftest.$ac_ext
18348 cat >>conftest.$ac_ext <<_ACEOF
18349 /* end confdefs.h.  */
18350 #include <$ac_header>
18351 _ACEOF
18352 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18353   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18354   ac_status=$?
18355   grep -v '^ *+' conftest.er1 >conftest.err
18356   rm -f conftest.er1
18357   cat conftest.err >&5
18358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18359   (exit $ac_status); } >/dev/null; then
18360   if test -s conftest.err; then
18361     ac_cpp_err=$ac_c_preproc_warn_flag
18362     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18363   else
18364     ac_cpp_err=
18365   fi
18366 else
18367   ac_cpp_err=yes
18368 fi
18369 if test -z "$ac_cpp_err"; then
18370   ac_header_preproc=yes
18371 else
18372   echo "$as_me: failed program was:" >&5
18373 sed 's/^/| /' conftest.$ac_ext >&5
18374
18375   ac_header_preproc=no
18376 fi
18377
18378 rm -f conftest.err conftest.$ac_ext
18379 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18380 echo "${ECHO_T}$ac_header_preproc" >&6; }
18381
18382 # So?  What about this header?
18383 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18384   yes:no: )
18385     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18386 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18387     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18388 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18389     ac_header_preproc=yes
18390     ;;
18391   no:yes:* )
18392     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18393 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18394     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18395 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18396     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18397 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18398     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18399 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18400     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18401 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18402     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18403 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18404     ( cat <<\_ASBOX
18405 ## ------------------------------------ ##
18406 ## Report this to bug-coreutils@gnu.org ##
18407 ## ------------------------------------ ##
18408 _ASBOX
18409      ) | sed "s/^/$as_me: WARNING:     /" >&2
18410     ;;
18411 esac
18412 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18413 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18414 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18415   echo $ECHO_N "(cached) $ECHO_C" >&6
18416 else
18417   eval "$as_ac_Header=\$ac_header_preproc"
18418 fi
18419 ac_res=`eval echo '${'$as_ac_Header'}'`
18420                { echo "$as_me:$LINENO: result: $ac_res" >&5
18421 echo "${ECHO_T}$ac_res" >&6; }
18422
18423 fi
18424 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18425   cat >>confdefs.h <<_ACEOF
18426 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18427 _ACEOF
18428  { echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
18429 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6; }
18430 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
18431   echo $ECHO_N "(cached) $ECHO_C" >&6
18432 else
18433   cat >conftest.$ac_ext <<_ACEOF
18434 /* confdefs.h.  */
18435 _ACEOF
18436 cat confdefs.h >>conftest.$ac_ext
18437 cat >>conftest.$ac_ext <<_ACEOF
18438 /* end confdefs.h.  */
18439 #include <nlist.h>
18440
18441 int
18442 main ()
18443 {
18444 static struct nlist ac_aggr;
18445 if (ac_aggr.n_un.n_name)
18446 return 0;
18447   ;
18448   return 0;
18449 }
18450 _ACEOF
18451 rm -f conftest.$ac_objext
18452 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18453   (eval $ac_compile) 2>conftest.er1
18454   ac_status=$?
18455   grep -v '^ *+' conftest.er1 >conftest.err
18456   rm -f conftest.er1
18457   cat conftest.err >&5
18458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18459   (exit $ac_status); } &&
18460          { ac_try='test -z "$ac_c_werror_flag"
18461                          || test ! -s conftest.err'
18462   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18463   (eval $ac_try) 2>&5
18464   ac_status=$?
18465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18466   (exit $ac_status); }; } &&
18467          { ac_try='test -s conftest.$ac_objext'
18468   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18469   (eval $ac_try) 2>&5
18470   ac_status=$?
18471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18472   (exit $ac_status); }; }; then
18473   ac_cv_member_struct_nlist_n_un_n_name=yes
18474 else
18475   echo "$as_me: failed program was:" >&5
18476 sed 's/^/| /' conftest.$ac_ext >&5
18477
18478         cat >conftest.$ac_ext <<_ACEOF
18479 /* confdefs.h.  */
18480 _ACEOF
18481 cat confdefs.h >>conftest.$ac_ext
18482 cat >>conftest.$ac_ext <<_ACEOF
18483 /* end confdefs.h.  */
18484 #include <nlist.h>
18485
18486 int
18487 main ()
18488 {
18489 static struct nlist ac_aggr;
18490 if (sizeof ac_aggr.n_un.n_name)
18491 return 0;
18492   ;
18493   return 0;
18494 }
18495 _ACEOF
18496 rm -f conftest.$ac_objext
18497 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18498   (eval $ac_compile) 2>conftest.er1
18499   ac_status=$?
18500   grep -v '^ *+' conftest.er1 >conftest.err
18501   rm -f conftest.er1
18502   cat conftest.err >&5
18503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18504   (exit $ac_status); } &&
18505          { ac_try='test -z "$ac_c_werror_flag"
18506                          || test ! -s conftest.err'
18507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18508   (eval $ac_try) 2>&5
18509   ac_status=$?
18510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18511   (exit $ac_status); }; } &&
18512          { ac_try='test -s conftest.$ac_objext'
18513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18514   (eval $ac_try) 2>&5
18515   ac_status=$?
18516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18517   (exit $ac_status); }; }; then
18518   ac_cv_member_struct_nlist_n_un_n_name=yes
18519 else
18520   echo "$as_me: failed program was:" >&5
18521 sed 's/^/| /' conftest.$ac_ext >&5
18522
18523         ac_cv_member_struct_nlist_n_un_n_name=no
18524 fi
18525
18526 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18527 fi
18528
18529 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18530 fi
18531 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
18532 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
18533 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
18534
18535 cat >>confdefs.h <<_ACEOF
18536 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
18537 _ACEOF
18538
18539
18540 cat >>confdefs.h <<\_ACEOF
18541 #define NLIST_NAME_UNION 1
18542 _ACEOF
18543
18544 fi
18545
18546
18547 fi
18548
18549 done
18550
18551 fi
18552 done
18553
18554
18555 # Some definitions of getloadavg require that the program be installed setgid.
18556 { echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
18557 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6; }
18558 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
18559   echo $ECHO_N "(cached) $ECHO_C" >&6
18560 else
18561   cat >conftest.$ac_ext <<_ACEOF
18562 /* confdefs.h.  */
18563 _ACEOF
18564 cat confdefs.h >>conftest.$ac_ext
18565 cat >>conftest.$ac_ext <<_ACEOF
18566 /* end confdefs.h.  */
18567 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
18568 #ifdef LDAV_PRIVILEGED
18569 Yowza Am I SETGID yet
18570 #endif
18571 _ACEOF
18572 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18573   $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
18574   ac_cv_func_getloadavg_setgid=yes
18575 else
18576   ac_cv_func_getloadavg_setgid=no
18577 fi
18578 rm -f conftest*
18579
18580 fi
18581 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
18582 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6; }
18583 if test $ac_cv_func_getloadavg_setgid = yes; then
18584   NEED_SETGID=true
18585
18586 cat >>confdefs.h <<\_ACEOF
18587 #define GETLOADAVG_PRIVILEGED 1
18588 _ACEOF
18589
18590 else
18591   NEED_SETGID=false
18592 fi
18593
18594 if test $ac_cv_func_getloadavg_setgid = yes; then
18595   { echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
18596 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6; }
18597 if test "${ac_cv_group_kmem+set}" = set; then
18598   echo $ECHO_N "(cached) $ECHO_C" >&6
18599 else
18600    # On Solaris, /dev/kmem is a symlink.  Get info on the real file.
18601   ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
18602   # If we got an error (system does not support symlinks), try without -L.
18603   test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
18604   ac_cv_group_kmem=`echo $ac_ls_output \
18605     | sed -ne 's/[       ][      ]*/ /g;
18606                s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\)  *.*/\1/;
18607                / /s/.* //;p;'`
18608
18609 fi
18610 { echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
18611 echo "${ECHO_T}$ac_cv_group_kmem" >&6; }
18612   KMEM_GROUP=$ac_cv_group_kmem
18613 fi
18614 if test "x$ac_save_LIBS" = x; then
18615   GETLOADAVG_LIBS=$LIBS
18616 else
18617   GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
18618 fi
18619 LIBS=$ac_save_LIBS
18620
18621
18622
18623       { echo "$as_me:$LINENO: checking whether getpass is declared" >&5
18624 echo $ECHO_N "checking whether getpass is declared... $ECHO_C" >&6; }
18625 if test "${ac_cv_have_decl_getpass+set}" = set; then
18626   echo $ECHO_N "(cached) $ECHO_C" >&6
18627 else
18628   cat >conftest.$ac_ext <<_ACEOF
18629 /* confdefs.h.  */
18630 _ACEOF
18631 cat confdefs.h >>conftest.$ac_ext
18632 cat >>conftest.$ac_ext <<_ACEOF
18633 /* end confdefs.h.  */
18634 $ac_includes_default
18635 int
18636 main ()
18637 {
18638 #ifndef getpass
18639   char *p = (char *) getpass;
18640   return !p;
18641 #endif
18642
18643   ;
18644   return 0;
18645 }
18646 _ACEOF
18647 rm -f conftest.$ac_objext
18648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18649   (eval $ac_compile) 2>conftest.er1
18650   ac_status=$?
18651   grep -v '^ *+' conftest.er1 >conftest.err
18652   rm -f conftest.er1
18653   cat conftest.err >&5
18654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18655   (exit $ac_status); } &&
18656          { ac_try='test -z "$ac_c_werror_flag"
18657                          || test ! -s conftest.err'
18658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18659   (eval $ac_try) 2>&5
18660   ac_status=$?
18661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18662   (exit $ac_status); }; } &&
18663          { ac_try='test -s conftest.$ac_objext'
18664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18665   (eval $ac_try) 2>&5
18666   ac_status=$?
18667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18668   (exit $ac_status); }; }; then
18669   ac_cv_have_decl_getpass=yes
18670 else
18671   echo "$as_me: failed program was:" >&5
18672 sed 's/^/| /' conftest.$ac_ext >&5
18673
18674         ac_cv_have_decl_getpass=no
18675 fi
18676
18677 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18678 fi
18679 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getpass" >&5
18680 echo "${ECHO_T}$ac_cv_have_decl_getpass" >&6; }
18681 if test $ac_cv_have_decl_getpass = yes; then
18682
18683 cat >>confdefs.h <<_ACEOF
18684 #define HAVE_DECL_GETPASS 1
18685 _ACEOF
18686
18687
18688 else
18689   cat >>confdefs.h <<_ACEOF
18690 #define HAVE_DECL_GETPASS 0
18691 _ACEOF
18692
18693
18694 fi
18695
18696
18697
18698
18699
18700
18701
18702
18703
18704
18705
18706
18707
18708
18709
18710
18711
18712
18713
18714
18715
18716
18717
18718
18719
18720
18721
18722
18723       { echo "$as_me:$LINENO: checking whether fflush_unlocked is declared" >&5
18724 echo $ECHO_N "checking whether fflush_unlocked is declared... $ECHO_C" >&6; }
18725 if test "${ac_cv_have_decl_fflush_unlocked+set}" = set; then
18726   echo $ECHO_N "(cached) $ECHO_C" >&6
18727 else
18728   cat >conftest.$ac_ext <<_ACEOF
18729 /* confdefs.h.  */
18730 _ACEOF
18731 cat confdefs.h >>conftest.$ac_ext
18732 cat >>conftest.$ac_ext <<_ACEOF
18733 /* end confdefs.h.  */
18734 $ac_includes_default
18735 int
18736 main ()
18737 {
18738 #ifndef fflush_unlocked
18739   char *p = (char *) fflush_unlocked;
18740   return !p;
18741 #endif
18742
18743   ;
18744   return 0;
18745 }
18746 _ACEOF
18747 rm -f conftest.$ac_objext
18748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18749   (eval $ac_compile) 2>conftest.er1
18750   ac_status=$?
18751   grep -v '^ *+' conftest.er1 >conftest.err
18752   rm -f conftest.er1
18753   cat conftest.err >&5
18754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18755   (exit $ac_status); } &&
18756          { ac_try='test -z "$ac_c_werror_flag"
18757                          || test ! -s conftest.err'
18758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18759   (eval $ac_try) 2>&5
18760   ac_status=$?
18761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18762   (exit $ac_status); }; } &&
18763          { ac_try='test -s conftest.$ac_objext'
18764   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18765   (eval $ac_try) 2>&5
18766   ac_status=$?
18767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18768   (exit $ac_status); }; }; then
18769   ac_cv_have_decl_fflush_unlocked=yes
18770 else
18771   echo "$as_me: failed program was:" >&5
18772 sed 's/^/| /' conftest.$ac_ext >&5
18773
18774         ac_cv_have_decl_fflush_unlocked=no
18775 fi
18776
18777 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18778 fi
18779 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fflush_unlocked" >&5
18780 echo "${ECHO_T}$ac_cv_have_decl_fflush_unlocked" >&6; }
18781 if test $ac_cv_have_decl_fflush_unlocked = yes; then
18782
18783 cat >>confdefs.h <<_ACEOF
18784 #define HAVE_DECL_FFLUSH_UNLOCKED 1
18785 _ACEOF
18786
18787
18788 else
18789   cat >>confdefs.h <<_ACEOF
18790 #define HAVE_DECL_FFLUSH_UNLOCKED 0
18791 _ACEOF
18792
18793
18794 fi
18795
18796
18797
18798
18799       { echo "$as_me:$LINENO: checking whether flockfile is declared" >&5
18800 echo $ECHO_N "checking whether flockfile is declared... $ECHO_C" >&6; }
18801 if test "${ac_cv_have_decl_flockfile+set}" = set; then
18802   echo $ECHO_N "(cached) $ECHO_C" >&6
18803 else
18804   cat >conftest.$ac_ext <<_ACEOF
18805 /* confdefs.h.  */
18806 _ACEOF
18807 cat confdefs.h >>conftest.$ac_ext
18808 cat >>conftest.$ac_ext <<_ACEOF
18809 /* end confdefs.h.  */
18810 $ac_includes_default
18811 int
18812 main ()
18813 {
18814 #ifndef flockfile
18815   char *p = (char *) flockfile;
18816   return !p;
18817 #endif
18818
18819   ;
18820   return 0;
18821 }
18822 _ACEOF
18823 rm -f conftest.$ac_objext
18824 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18825   (eval $ac_compile) 2>conftest.er1
18826   ac_status=$?
18827   grep -v '^ *+' conftest.er1 >conftest.err
18828   rm -f conftest.er1
18829   cat conftest.err >&5
18830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18831   (exit $ac_status); } &&
18832          { ac_try='test -z "$ac_c_werror_flag"
18833                          || test ! -s conftest.err'
18834   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18835   (eval $ac_try) 2>&5
18836   ac_status=$?
18837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18838   (exit $ac_status); }; } &&
18839          { ac_try='test -s conftest.$ac_objext'
18840   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18841   (eval $ac_try) 2>&5
18842   ac_status=$?
18843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18844   (exit $ac_status); }; }; then
18845   ac_cv_have_decl_flockfile=yes
18846 else
18847   echo "$as_me: failed program was:" >&5
18848 sed 's/^/| /' conftest.$ac_ext >&5
18849
18850         ac_cv_have_decl_flockfile=no
18851 fi
18852
18853 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18854 fi
18855 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_flockfile" >&5
18856 echo "${ECHO_T}$ac_cv_have_decl_flockfile" >&6; }
18857 if test $ac_cv_have_decl_flockfile = yes; then
18858
18859 cat >>confdefs.h <<_ACEOF
18860 #define HAVE_DECL_FLOCKFILE 1
18861 _ACEOF
18862
18863
18864 else
18865   cat >>confdefs.h <<_ACEOF
18866 #define HAVE_DECL_FLOCKFILE 0
18867 _ACEOF
18868
18869
18870 fi
18871
18872
18873
18874
18875       { echo "$as_me:$LINENO: checking whether fputs_unlocked is declared" >&5
18876 echo $ECHO_N "checking whether fputs_unlocked is declared... $ECHO_C" >&6; }
18877 if test "${ac_cv_have_decl_fputs_unlocked+set}" = set; then
18878   echo $ECHO_N "(cached) $ECHO_C" >&6
18879 else
18880   cat >conftest.$ac_ext <<_ACEOF
18881 /* confdefs.h.  */
18882 _ACEOF
18883 cat confdefs.h >>conftest.$ac_ext
18884 cat >>conftest.$ac_ext <<_ACEOF
18885 /* end confdefs.h.  */
18886 $ac_includes_default
18887 int
18888 main ()
18889 {
18890 #ifndef fputs_unlocked
18891   char *p = (char *) fputs_unlocked;
18892   return !p;
18893 #endif
18894
18895   ;
18896   return 0;
18897 }
18898 _ACEOF
18899 rm -f conftest.$ac_objext
18900 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18901   (eval $ac_compile) 2>conftest.er1
18902   ac_status=$?
18903   grep -v '^ *+' conftest.er1 >conftest.err
18904   rm -f conftest.er1
18905   cat conftest.err >&5
18906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18907   (exit $ac_status); } &&
18908          { ac_try='test -z "$ac_c_werror_flag"
18909                          || test ! -s conftest.err'
18910   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18911   (eval $ac_try) 2>&5
18912   ac_status=$?
18913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18914   (exit $ac_status); }; } &&
18915          { ac_try='test -s conftest.$ac_objext'
18916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18917   (eval $ac_try) 2>&5
18918   ac_status=$?
18919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18920   (exit $ac_status); }; }; then
18921   ac_cv_have_decl_fputs_unlocked=yes
18922 else
18923   echo "$as_me: failed program was:" >&5
18924 sed 's/^/| /' conftest.$ac_ext >&5
18925
18926         ac_cv_have_decl_fputs_unlocked=no
18927 fi
18928
18929 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18930 fi
18931 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputs_unlocked" >&5
18932 echo "${ECHO_T}$ac_cv_have_decl_fputs_unlocked" >&6; }
18933 if test $ac_cv_have_decl_fputs_unlocked = yes; then
18934
18935 cat >>confdefs.h <<_ACEOF
18936 #define HAVE_DECL_FPUTS_UNLOCKED 1
18937 _ACEOF
18938
18939
18940 else
18941   cat >>confdefs.h <<_ACEOF
18942 #define HAVE_DECL_FPUTS_UNLOCKED 0
18943 _ACEOF
18944
18945
18946 fi
18947
18948
18949
18950
18951       { echo "$as_me:$LINENO: checking whether funlockfile is declared" >&5
18952 echo $ECHO_N "checking whether funlockfile is declared... $ECHO_C" >&6; }
18953 if test "${ac_cv_have_decl_funlockfile+set}" = set; then
18954   echo $ECHO_N "(cached) $ECHO_C" >&6
18955 else
18956   cat >conftest.$ac_ext <<_ACEOF
18957 /* confdefs.h.  */
18958 _ACEOF
18959 cat confdefs.h >>conftest.$ac_ext
18960 cat >>conftest.$ac_ext <<_ACEOF
18961 /* end confdefs.h.  */
18962 $ac_includes_default
18963 int
18964 main ()
18965 {
18966 #ifndef funlockfile
18967   char *p = (char *) funlockfile;
18968   return !p;
18969 #endif
18970
18971   ;
18972   return 0;
18973 }
18974 _ACEOF
18975 rm -f conftest.$ac_objext
18976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18977   (eval $ac_compile) 2>conftest.er1
18978   ac_status=$?
18979   grep -v '^ *+' conftest.er1 >conftest.err
18980   rm -f conftest.er1
18981   cat conftest.err >&5
18982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18983   (exit $ac_status); } &&
18984          { ac_try='test -z "$ac_c_werror_flag"
18985                          || test ! -s conftest.err'
18986   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18987   (eval $ac_try) 2>&5
18988   ac_status=$?
18989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18990   (exit $ac_status); }; } &&
18991          { ac_try='test -s conftest.$ac_objext'
18992   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18993   (eval $ac_try) 2>&5
18994   ac_status=$?
18995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18996   (exit $ac_status); }; }; then
18997   ac_cv_have_decl_funlockfile=yes
18998 else
18999   echo "$as_me: failed program was:" >&5
19000 sed 's/^/| /' conftest.$ac_ext >&5
19001
19002         ac_cv_have_decl_funlockfile=no
19003 fi
19004
19005 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19006 fi
19007 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_funlockfile" >&5
19008 echo "${ECHO_T}$ac_cv_have_decl_funlockfile" >&6; }
19009 if test $ac_cv_have_decl_funlockfile = yes; then
19010
19011 cat >>confdefs.h <<_ACEOF
19012 #define HAVE_DECL_FUNLOCKFILE 1
19013 _ACEOF
19014
19015
19016 else
19017   cat >>confdefs.h <<_ACEOF
19018 #define HAVE_DECL_FUNLOCKFILE 0
19019 _ACEOF
19020
19021
19022 fi
19023
19024
19025
19026
19027       { echo "$as_me:$LINENO: checking whether putc_unlocked is declared" >&5
19028 echo $ECHO_N "checking whether putc_unlocked is declared... $ECHO_C" >&6; }
19029 if test "${ac_cv_have_decl_putc_unlocked+set}" = set; then
19030   echo $ECHO_N "(cached) $ECHO_C" >&6
19031 else
19032   cat >conftest.$ac_ext <<_ACEOF
19033 /* confdefs.h.  */
19034 _ACEOF
19035 cat confdefs.h >>conftest.$ac_ext
19036 cat >>conftest.$ac_ext <<_ACEOF
19037 /* end confdefs.h.  */
19038 $ac_includes_default
19039 int
19040 main ()
19041 {
19042 #ifndef putc_unlocked
19043   char *p = (char *) putc_unlocked;
19044   return !p;
19045 #endif
19046
19047   ;
19048   return 0;
19049 }
19050 _ACEOF
19051 rm -f conftest.$ac_objext
19052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19053   (eval $ac_compile) 2>conftest.er1
19054   ac_status=$?
19055   grep -v '^ *+' conftest.er1 >conftest.err
19056   rm -f conftest.er1
19057   cat conftest.err >&5
19058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19059   (exit $ac_status); } &&
19060          { ac_try='test -z "$ac_c_werror_flag"
19061                          || test ! -s conftest.err'
19062   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19063   (eval $ac_try) 2>&5
19064   ac_status=$?
19065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19066   (exit $ac_status); }; } &&
19067          { ac_try='test -s conftest.$ac_objext'
19068   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19069   (eval $ac_try) 2>&5
19070   ac_status=$?
19071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19072   (exit $ac_status); }; }; then
19073   ac_cv_have_decl_putc_unlocked=yes
19074 else
19075   echo "$as_me: failed program was:" >&5
19076 sed 's/^/| /' conftest.$ac_ext >&5
19077
19078         ac_cv_have_decl_putc_unlocked=no
19079 fi
19080
19081 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19082 fi
19083 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_putc_unlocked" >&5
19084 echo "${ECHO_T}$ac_cv_have_decl_putc_unlocked" >&6; }
19085 if test $ac_cv_have_decl_putc_unlocked = yes; then
19086
19087 cat >>confdefs.h <<_ACEOF
19088 #define HAVE_DECL_PUTC_UNLOCKED 1
19089 _ACEOF
19090
19091
19092 else
19093   cat >>confdefs.h <<_ACEOF
19094 #define HAVE_DECL_PUTC_UNLOCKED 0
19095 _ACEOF
19096
19097
19098 fi
19099
19100
19101
19102
19103
19104
19105
19106   :
19107
19108
19109
19110
19111
19112     case " $LIBOBJS " in
19113   *" getpass.$ac_objext "* ) ;;
19114   *) LIBOBJS="$LIBOBJS getpass.$ac_objext"
19115  ;;
19116 esac
19117
19118
19119
19120   :
19121
19122
19123
19124
19125
19126
19127
19128
19129
19130   :
19131
19132
19133
19134
19135
19136
19137
19138
19139
19140
19141
19142
19143   :
19144
19145
19146
19147
19148
19149
19150
19151
19152
19153
19154
19155
19156
19157
19158
19159
19160
19161
19162
19163 cat >>confdefs.h <<\_ACEOF
19164 #define getpass gnu_getpass
19165 _ACEOF
19166
19167
19168
19169
19170 for ac_func in getusershell
19171 do
19172 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19173 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19174 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19175 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19176   echo $ECHO_N "(cached) $ECHO_C" >&6
19177 else
19178   cat >conftest.$ac_ext <<_ACEOF
19179 /* confdefs.h.  */
19180 _ACEOF
19181 cat confdefs.h >>conftest.$ac_ext
19182 cat >>conftest.$ac_ext <<_ACEOF
19183 /* end confdefs.h.  */
19184 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19185    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19186 #define $ac_func innocuous_$ac_func
19187
19188 /* System header to define __stub macros and hopefully few prototypes,
19189     which can conflict with char $ac_func (); below.
19190     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19191     <limits.h> exists even on freestanding compilers.  */
19192
19193 #ifdef __STDC__
19194 # include <limits.h>
19195 #else
19196 # include <assert.h>
19197 #endif
19198
19199 #undef $ac_func
19200
19201 /* Override any GCC internal prototype to avoid an error.
19202    Use char because int might match the return type of a GCC
19203    builtin and then its argument prototype would still apply.  */
19204 #ifdef __cplusplus
19205 extern "C"
19206 #endif
19207 char $ac_func ();
19208 /* The GNU C library defines this for functions which it implements
19209     to always fail with ENOSYS.  Some functions are actually named
19210     something starting with __ and the normal name is an alias.  */
19211 #if defined __stub_$ac_func || defined __stub___$ac_func
19212 choke me
19213 #endif
19214
19215 int
19216 main ()
19217 {
19218 return $ac_func ();
19219   ;
19220   return 0;
19221 }
19222 _ACEOF
19223 rm -f conftest.$ac_objext conftest$ac_exeext
19224 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19225   (eval $ac_link) 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"
19233                          || test ! -s conftest.err'
19234   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19235   (eval $ac_try) 2>&5
19236   ac_status=$?
19237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19238   (exit $ac_status); }; } &&
19239          { ac_try='test -s conftest$ac_exeext'
19240   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19241   (eval $ac_try) 2>&5
19242   ac_status=$?
19243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19244   (exit $ac_status); }; }; then
19245   eval "$as_ac_var=yes"
19246 else
19247   echo "$as_me: failed program was:" >&5
19248 sed 's/^/| /' conftest.$ac_ext >&5
19249
19250         eval "$as_ac_var=no"
19251 fi
19252
19253 rm -f conftest.err conftest.$ac_objext \
19254       conftest$ac_exeext conftest.$ac_ext
19255 fi
19256 ac_res=`eval echo '${'$as_ac_var'}'`
19257                { echo "$as_me:$LINENO: result: $ac_res" >&5
19258 echo "${ECHO_T}$ac_res" >&6; }
19259 if test `eval echo '${'$as_ac_var'}'` = yes; then
19260   cat >>confdefs.h <<_ACEOF
19261 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19262 _ACEOF
19263
19264 else
19265   case " $LIBOBJS " in
19266   *" $ac_func.$ac_objext "* ) ;;
19267   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
19268  ;;
19269 esac
19270
19271 fi
19272 done
19273
19274
19275   if test $ac_cv_func_getusershell = no; then
19276
19277
19278
19279   :
19280
19281
19282
19283
19284
19285
19286   fi
19287
19288 { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
19289 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
19290 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
19291   echo $ECHO_N "(cached) $ECHO_C" >&6
19292 else
19293   rm -f conftest.sym conftest.file
19294 echo >conftest.file
19295 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
19296   if test "$cross_compiling" = yes; then
19297   ac_cv_func_lstat_dereferences_slashed_symlink=no
19298 else
19299   cat >conftest.$ac_ext <<_ACEOF
19300 /* confdefs.h.  */
19301 _ACEOF
19302 cat confdefs.h >>conftest.$ac_ext
19303 cat >>conftest.$ac_ext <<_ACEOF
19304 /* end confdefs.h.  */
19305 $ac_includes_default
19306 int
19307 main ()
19308 {
19309 struct stat sbuf;
19310      /* Linux will dereference the symlink and fail.
19311         That is better in the sense that it means we will not
19312         have to compile and use the lstat wrapper.  */
19313      return lstat ("conftest.sym/", &sbuf) != 0;
19314   ;
19315   return 0;
19316 }
19317 _ACEOF
19318 rm -f conftest$ac_exeext
19319 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19320   (eval $ac_link) 2>&5
19321   ac_status=$?
19322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19323   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19324   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19325   (eval $ac_try) 2>&5
19326   ac_status=$?
19327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19328   (exit $ac_status); }; }; then
19329   ac_cv_func_lstat_dereferences_slashed_symlink=yes
19330 else
19331   echo "$as_me: program exited with status $ac_status" >&5
19332 echo "$as_me: failed program was:" >&5
19333 sed 's/^/| /' conftest.$ac_ext >&5
19334
19335 ( exit $ac_status )
19336 ac_cv_func_lstat_dereferences_slashed_symlink=no
19337 fi
19338 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19339 fi
19340
19341
19342 else
19343   # If the `ln -s' command failed, then we probably don't even
19344   # have an lstat function.
19345   ac_cv_func_lstat_dereferences_slashed_symlink=no
19346 fi
19347 rm -f conftest.sym conftest.file
19348
19349 fi
19350 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
19351 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
19352
19353 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
19354
19355 cat >>confdefs.h <<_ACEOF
19356 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
19357 _ACEOF
19358
19359
19360 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
19361   case " $LIBOBJS " in
19362   *" lstat.$ac_objext "* ) ;;
19363   *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
19364  ;;
19365 esac
19366
19367 fi
19368
19369
19370
19371
19372
19373     :
19374
19375
19376
19377 for ac_func in memchr
19378 do
19379 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19380 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19381 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19382 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19383   echo $ECHO_N "(cached) $ECHO_C" >&6
19384 else
19385   cat >conftest.$ac_ext <<_ACEOF
19386 /* confdefs.h.  */
19387 _ACEOF
19388 cat confdefs.h >>conftest.$ac_ext
19389 cat >>conftest.$ac_ext <<_ACEOF
19390 /* end confdefs.h.  */
19391 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19392    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19393 #define $ac_func innocuous_$ac_func
19394
19395 /* System header to define __stub macros and hopefully few prototypes,
19396     which can conflict with char $ac_func (); below.
19397     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19398     <limits.h> exists even on freestanding compilers.  */
19399
19400 #ifdef __STDC__
19401 # include <limits.h>
19402 #else
19403 # include <assert.h>
19404 #endif
19405
19406 #undef $ac_func
19407
19408 /* Override any GCC internal prototype to avoid an error.
19409    Use char because int might match the return type of a GCC
19410    builtin and then its argument prototype would still apply.  */
19411 #ifdef __cplusplus
19412 extern "C"
19413 #endif
19414 char $ac_func ();
19415 /* The GNU C library defines this for functions which it implements
19416     to always fail with ENOSYS.  Some functions are actually named
19417     something starting with __ and the normal name is an alias.  */
19418 #if defined __stub_$ac_func || defined __stub___$ac_func
19419 choke me
19420 #endif
19421
19422 int
19423 main ()
19424 {
19425 return $ac_func ();
19426   ;
19427   return 0;
19428 }
19429 _ACEOF
19430 rm -f conftest.$ac_objext conftest$ac_exeext
19431 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19432   (eval $ac_link) 2>conftest.er1
19433   ac_status=$?
19434   grep -v '^ *+' conftest.er1 >conftest.err
19435   rm -f conftest.er1
19436   cat conftest.err >&5
19437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19438   (exit $ac_status); } &&
19439          { ac_try='test -z "$ac_c_werror_flag"
19440                          || test ! -s conftest.err'
19441   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19442   (eval $ac_try) 2>&5
19443   ac_status=$?
19444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19445   (exit $ac_status); }; } &&
19446          { ac_try='test -s conftest$ac_exeext'
19447   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19448   (eval $ac_try) 2>&5
19449   ac_status=$?
19450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19451   (exit $ac_status); }; }; then
19452   eval "$as_ac_var=yes"
19453 else
19454   echo "$as_me: failed program was:" >&5
19455 sed 's/^/| /' conftest.$ac_ext >&5
19456
19457         eval "$as_ac_var=no"
19458 fi
19459
19460 rm -f conftest.err conftest.$ac_objext \
19461       conftest$ac_exeext conftest.$ac_ext
19462 fi
19463 ac_res=`eval echo '${'$as_ac_var'}'`
19464                { echo "$as_me:$LINENO: result: $ac_res" >&5
19465 echo "${ECHO_T}$ac_res" >&6; }
19466 if test `eval echo '${'$as_ac_var'}'` = yes; then
19467   cat >>confdefs.h <<_ACEOF
19468 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19469 _ACEOF
19470
19471 else
19472   case " $LIBOBJS " in
19473   *" $ac_func.$ac_objext "* ) ;;
19474   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
19475  ;;
19476 esac
19477
19478 fi
19479 done
19480
19481
19482   if test $ac_cv_func_memchr = no; then
19483
19484
19485 for ac_header in bp-sym.h
19486 do
19487 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19488 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19489   { echo "$as_me:$LINENO: checking for $ac_header" >&5
19490 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19491 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19492   echo $ECHO_N "(cached) $ECHO_C" >&6
19493 fi
19494 ac_res=`eval echo '${'$as_ac_Header'}'`
19495                { echo "$as_me:$LINENO: result: $ac_res" >&5
19496 echo "${ECHO_T}$ac_res" >&6; }
19497 else
19498   # Is the header compilable?
19499 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19500 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19501 cat >conftest.$ac_ext <<_ACEOF
19502 /* confdefs.h.  */
19503 _ACEOF
19504 cat confdefs.h >>conftest.$ac_ext
19505 cat >>conftest.$ac_ext <<_ACEOF
19506 /* end confdefs.h.  */
19507 $ac_includes_default
19508 #include <$ac_header>
19509 _ACEOF
19510 rm -f conftest.$ac_objext
19511 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19512   (eval $ac_compile) 2>conftest.er1
19513   ac_status=$?
19514   grep -v '^ *+' conftest.er1 >conftest.err
19515   rm -f conftest.er1
19516   cat conftest.err >&5
19517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19518   (exit $ac_status); } &&
19519          { ac_try='test -z "$ac_c_werror_flag"
19520                          || test ! -s conftest.err'
19521   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19522   (eval $ac_try) 2>&5
19523   ac_status=$?
19524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19525   (exit $ac_status); }; } &&
19526          { ac_try='test -s conftest.$ac_objext'
19527   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19528   (eval $ac_try) 2>&5
19529   ac_status=$?
19530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19531   (exit $ac_status); }; }; then
19532   ac_header_compiler=yes
19533 else
19534   echo "$as_me: failed program was:" >&5
19535 sed 's/^/| /' conftest.$ac_ext >&5
19536
19537         ac_header_compiler=no
19538 fi
19539
19540 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19541 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19542 echo "${ECHO_T}$ac_header_compiler" >&6; }
19543
19544 # Is the header present?
19545 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19546 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19547 cat >conftest.$ac_ext <<_ACEOF
19548 /* confdefs.h.  */
19549 _ACEOF
19550 cat confdefs.h >>conftest.$ac_ext
19551 cat >>conftest.$ac_ext <<_ACEOF
19552 /* end confdefs.h.  */
19553 #include <$ac_header>
19554 _ACEOF
19555 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19556   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19557   ac_status=$?
19558   grep -v '^ *+' conftest.er1 >conftest.err
19559   rm -f conftest.er1
19560   cat conftest.err >&5
19561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19562   (exit $ac_status); } >/dev/null; then
19563   if test -s conftest.err; then
19564     ac_cpp_err=$ac_c_preproc_warn_flag
19565     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19566   else
19567     ac_cpp_err=
19568   fi
19569 else
19570   ac_cpp_err=yes
19571 fi
19572 if test -z "$ac_cpp_err"; then
19573   ac_header_preproc=yes
19574 else
19575   echo "$as_me: failed program was:" >&5
19576 sed 's/^/| /' conftest.$ac_ext >&5
19577
19578   ac_header_preproc=no
19579 fi
19580
19581 rm -f conftest.err conftest.$ac_ext
19582 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19583 echo "${ECHO_T}$ac_header_preproc" >&6; }
19584
19585 # So?  What about this header?
19586 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19587   yes:no: )
19588     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19589 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19590     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19591 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19592     ac_header_preproc=yes
19593     ;;
19594   no:yes:* )
19595     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19596 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19597     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19598 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19599     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19600 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19601     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19602 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19603     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19604 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19605     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19606 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19607     ( cat <<\_ASBOX
19608 ## ------------------------------------ ##
19609 ## Report this to bug-coreutils@gnu.org ##
19610 ## ------------------------------------ ##
19611 _ASBOX
19612      ) | sed "s/^/$as_me: WARNING:     /" >&2
19613     ;;
19614 esac
19615 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19616 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19617 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19618   echo $ECHO_N "(cached) $ECHO_C" >&6
19619 else
19620   eval "$as_ac_Header=\$ac_header_preproc"
19621 fi
19622 ac_res=`eval echo '${'$as_ac_Header'}'`
19623                { echo "$as_me:$LINENO: result: $ac_res" >&5
19624 echo "${ECHO_T}$ac_res" >&6; }
19625
19626 fi
19627 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19628   cat >>confdefs.h <<_ACEOF
19629 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19630 _ACEOF
19631
19632 fi
19633
19634 done
19635
19636
19637   fi
19638
19639
19640
19641 for ac_func in memcpy
19642 do
19643 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19644 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19645 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19646 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19647   echo $ECHO_N "(cached) $ECHO_C" >&6
19648 else
19649   cat >conftest.$ac_ext <<_ACEOF
19650 /* confdefs.h.  */
19651 _ACEOF
19652 cat confdefs.h >>conftest.$ac_ext
19653 cat >>conftest.$ac_ext <<_ACEOF
19654 /* end confdefs.h.  */
19655 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19656    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19657 #define $ac_func innocuous_$ac_func
19658
19659 /* System header to define __stub macros and hopefully few prototypes,
19660     which can conflict with char $ac_func (); below.
19661     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19662     <limits.h> exists even on freestanding compilers.  */
19663
19664 #ifdef __STDC__
19665 # include <limits.h>
19666 #else
19667 # include <assert.h>
19668 #endif
19669
19670 #undef $ac_func
19671
19672 /* Override any GCC internal prototype to avoid an error.
19673    Use char because int might match the return type of a GCC
19674    builtin and then its argument prototype would still apply.  */
19675 #ifdef __cplusplus
19676 extern "C"
19677 #endif
19678 char $ac_func ();
19679 /* The GNU C library defines this for functions which it implements
19680     to always fail with ENOSYS.  Some functions are actually named
19681     something starting with __ and the normal name is an alias.  */
19682 #if defined __stub_$ac_func || defined __stub___$ac_func
19683 choke me
19684 #endif
19685
19686 int
19687 main ()
19688 {
19689 return $ac_func ();
19690   ;
19691   return 0;
19692 }
19693 _ACEOF
19694 rm -f conftest.$ac_objext conftest$ac_exeext
19695 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19696   (eval $ac_link) 2>conftest.er1
19697   ac_status=$?
19698   grep -v '^ *+' conftest.er1 >conftest.err
19699   rm -f conftest.er1
19700   cat conftest.err >&5
19701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19702   (exit $ac_status); } &&
19703          { ac_try='test -z "$ac_c_werror_flag"
19704                          || test ! -s conftest.err'
19705   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19706   (eval $ac_try) 2>&5
19707   ac_status=$?
19708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19709   (exit $ac_status); }; } &&
19710          { ac_try='test -s conftest$ac_exeext'
19711   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19712   (eval $ac_try) 2>&5
19713   ac_status=$?
19714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19715   (exit $ac_status); }; }; then
19716   eval "$as_ac_var=yes"
19717 else
19718   echo "$as_me: failed program was:" >&5
19719 sed 's/^/| /' conftest.$ac_ext >&5
19720
19721         eval "$as_ac_var=no"
19722 fi
19723
19724 rm -f conftest.err conftest.$ac_objext \
19725       conftest$ac_exeext conftest.$ac_ext
19726 fi
19727 ac_res=`eval echo '${'$as_ac_var'}'`
19728                { echo "$as_me:$LINENO: result: $ac_res" >&5
19729 echo "${ECHO_T}$ac_res" >&6; }
19730 if test `eval echo '${'$as_ac_var'}'` = yes; then
19731   cat >>confdefs.h <<_ACEOF
19732 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19733 _ACEOF
19734
19735 else
19736   case " $LIBOBJS " in
19737   *" $ac_func.$ac_objext "* ) ;;
19738   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
19739  ;;
19740 esac
19741
19742 fi
19743 done
19744
19745
19746   if test $ac_cv_func_memcpy = no; then
19747
19748   :
19749
19750   fi
19751
19752
19753
19754 for ac_func in memmove
19755 do
19756 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19757 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19758 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19759 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19760   echo $ECHO_N "(cached) $ECHO_C" >&6
19761 else
19762   cat >conftest.$ac_ext <<_ACEOF
19763 /* confdefs.h.  */
19764 _ACEOF
19765 cat confdefs.h >>conftest.$ac_ext
19766 cat >>conftest.$ac_ext <<_ACEOF
19767 /* end confdefs.h.  */
19768 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19769    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19770 #define $ac_func innocuous_$ac_func
19771
19772 /* System header to define __stub macros and hopefully few prototypes,
19773     which can conflict with char $ac_func (); below.
19774     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19775     <limits.h> exists even on freestanding compilers.  */
19776
19777 #ifdef __STDC__
19778 # include <limits.h>
19779 #else
19780 # include <assert.h>
19781 #endif
19782
19783 #undef $ac_func
19784
19785 /* Override any GCC internal prototype to avoid an error.
19786    Use char because int might match the return type of a GCC
19787    builtin and then its argument prototype would still apply.  */
19788 #ifdef __cplusplus
19789 extern "C"
19790 #endif
19791 char $ac_func ();
19792 /* The GNU C library defines this for functions which it implements
19793     to always fail with ENOSYS.  Some functions are actually named
19794     something starting with __ and the normal name is an alias.  */
19795 #if defined __stub_$ac_func || defined __stub___$ac_func
19796 choke me
19797 #endif
19798
19799 int
19800 main ()
19801 {
19802 return $ac_func ();
19803   ;
19804   return 0;
19805 }
19806 _ACEOF
19807 rm -f conftest.$ac_objext conftest$ac_exeext
19808 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19809   (eval $ac_link) 2>conftest.er1
19810   ac_status=$?
19811   grep -v '^ *+' conftest.er1 >conftest.err
19812   rm -f conftest.er1
19813   cat conftest.err >&5
19814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19815   (exit $ac_status); } &&
19816          { ac_try='test -z "$ac_c_werror_flag"
19817                          || test ! -s conftest.err'
19818   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19819   (eval $ac_try) 2>&5
19820   ac_status=$?
19821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19822   (exit $ac_status); }; } &&
19823          { ac_try='test -s conftest$ac_exeext'
19824   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19825   (eval $ac_try) 2>&5
19826   ac_status=$?
19827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19828   (exit $ac_status); }; }; then
19829   eval "$as_ac_var=yes"
19830 else
19831   echo "$as_me: failed program was:" >&5
19832 sed 's/^/| /' conftest.$ac_ext >&5
19833
19834         eval "$as_ac_var=no"
19835 fi
19836
19837 rm -f conftest.err conftest.$ac_objext \
19838       conftest$ac_exeext conftest.$ac_ext
19839 fi
19840 ac_res=`eval echo '${'$as_ac_var'}'`
19841                { echo "$as_me:$LINENO: result: $ac_res" >&5
19842 echo "${ECHO_T}$ac_res" >&6; }
19843 if test `eval echo '${'$as_ac_var'}'` = yes; then
19844   cat >>confdefs.h <<_ACEOF
19845 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19846 _ACEOF
19847
19848 else
19849   case " $LIBOBJS " in
19850   *" $ac_func.$ac_objext "* ) ;;
19851   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
19852  ;;
19853 esac
19854
19855 fi
19856 done
19857
19858
19859   if test $ac_cv_func_memmove = no; then
19860
19861   :
19862
19863   fi
19864
19865
19866
19867
19868
19869
19870
19871 for ac_func in mempcpy
19872 do
19873 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19874 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19875 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19876 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19877   echo $ECHO_N "(cached) $ECHO_C" >&6
19878 else
19879   cat >conftest.$ac_ext <<_ACEOF
19880 /* confdefs.h.  */
19881 _ACEOF
19882 cat confdefs.h >>conftest.$ac_ext
19883 cat >>conftest.$ac_ext <<_ACEOF
19884 /* end confdefs.h.  */
19885 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19886    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19887 #define $ac_func innocuous_$ac_func
19888
19889 /* System header to define __stub macros and hopefully few prototypes,
19890     which can conflict with char $ac_func (); below.
19891     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19892     <limits.h> exists even on freestanding compilers.  */
19893
19894 #ifdef __STDC__
19895 # include <limits.h>
19896 #else
19897 # include <assert.h>
19898 #endif
19899
19900 #undef $ac_func
19901
19902 /* Override any GCC internal prototype to avoid an error.
19903    Use char because int might match the return type of a GCC
19904    builtin and then its argument prototype would still apply.  */
19905 #ifdef __cplusplus
19906 extern "C"
19907 #endif
19908 char $ac_func ();
19909 /* The GNU C library defines this for functions which it implements
19910     to always fail with ENOSYS.  Some functions are actually named
19911     something starting with __ and the normal name is an alias.  */
19912 #if defined __stub_$ac_func || defined __stub___$ac_func
19913 choke me
19914 #endif
19915
19916 int
19917 main ()
19918 {
19919 return $ac_func ();
19920   ;
19921   return 0;
19922 }
19923 _ACEOF
19924 rm -f conftest.$ac_objext conftest$ac_exeext
19925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19926   (eval $ac_link) 2>conftest.er1
19927   ac_status=$?
19928   grep -v '^ *+' conftest.er1 >conftest.err
19929   rm -f conftest.er1
19930   cat conftest.err >&5
19931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19932   (exit $ac_status); } &&
19933          { ac_try='test -z "$ac_c_werror_flag"
19934                          || test ! -s conftest.err'
19935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19936   (eval $ac_try) 2>&5
19937   ac_status=$?
19938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19939   (exit $ac_status); }; } &&
19940          { ac_try='test -s conftest$ac_exeext'
19941   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19942   (eval $ac_try) 2>&5
19943   ac_status=$?
19944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19945   (exit $ac_status); }; }; then
19946   eval "$as_ac_var=yes"
19947 else
19948   echo "$as_me: failed program was:" >&5
19949 sed 's/^/| /' conftest.$ac_ext >&5
19950
19951         eval "$as_ac_var=no"
19952 fi
19953
19954 rm -f conftest.err conftest.$ac_objext \
19955       conftest$ac_exeext conftest.$ac_ext
19956 fi
19957 ac_res=`eval echo '${'$as_ac_var'}'`
19958                { echo "$as_me:$LINENO: result: $ac_res" >&5
19959 echo "${ECHO_T}$ac_res" >&6; }
19960 if test `eval echo '${'$as_ac_var'}'` = yes; then
19961   cat >>confdefs.h <<_ACEOF
19962 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19963 _ACEOF
19964
19965 else
19966   case " $LIBOBJS " in
19967   *" $ac_func.$ac_objext "* ) ;;
19968   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
19969  ;;
19970 esac
19971
19972 fi
19973 done
19974
19975
19976   if test $ac_cv_func_mempcpy = no; then
19977
19978   :
19979
19980   fi
19981
19982
19983       { echo "$as_me:$LINENO: checking whether memrchr is declared" >&5
19984 echo $ECHO_N "checking whether memrchr is declared... $ECHO_C" >&6; }
19985 if test "${ac_cv_have_decl_memrchr+set}" = set; then
19986   echo $ECHO_N "(cached) $ECHO_C" >&6
19987 else
19988   cat >conftest.$ac_ext <<_ACEOF
19989 /* confdefs.h.  */
19990 _ACEOF
19991 cat confdefs.h >>conftest.$ac_ext
19992 cat >>conftest.$ac_ext <<_ACEOF
19993 /* end confdefs.h.  */
19994 $ac_includes_default
19995 int
19996 main ()
19997 {
19998 #ifndef memrchr
19999   char *p = (char *) memrchr;
20000   return !p;
20001 #endif
20002
20003   ;
20004   return 0;
20005 }
20006 _ACEOF
20007 rm -f conftest.$ac_objext
20008 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20009   (eval $ac_compile) 2>conftest.er1
20010   ac_status=$?
20011   grep -v '^ *+' conftest.er1 >conftest.err
20012   rm -f conftest.er1
20013   cat conftest.err >&5
20014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20015   (exit $ac_status); } &&
20016          { ac_try='test -z "$ac_c_werror_flag"
20017                          || test ! -s conftest.err'
20018   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20019   (eval $ac_try) 2>&5
20020   ac_status=$?
20021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20022   (exit $ac_status); }; } &&
20023          { ac_try='test -s conftest.$ac_objext'
20024   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20025   (eval $ac_try) 2>&5
20026   ac_status=$?
20027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20028   (exit $ac_status); }; }; then
20029   ac_cv_have_decl_memrchr=yes
20030 else
20031   echo "$as_me: failed program was:" >&5
20032 sed 's/^/| /' conftest.$ac_ext >&5
20033
20034         ac_cv_have_decl_memrchr=no
20035 fi
20036
20037 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20038 fi
20039 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_memrchr" >&5
20040 echo "${ECHO_T}$ac_cv_have_decl_memrchr" >&6; }
20041 if test $ac_cv_have_decl_memrchr = yes; then
20042
20043 cat >>confdefs.h <<_ACEOF
20044 #define HAVE_DECL_MEMRCHR 1
20045 _ACEOF
20046
20047
20048 else
20049   cat >>confdefs.h <<_ACEOF
20050 #define HAVE_DECL_MEMRCHR 0
20051 _ACEOF
20052
20053
20054 fi
20055
20056
20057
20058
20059
20060
20061
20062
20063
20064   :
20065
20066
20067
20068
20069
20070
20071
20072 for ac_func in memrchr
20073 do
20074 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20075 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20076 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20077 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20078   echo $ECHO_N "(cached) $ECHO_C" >&6
20079 else
20080   cat >conftest.$ac_ext <<_ACEOF
20081 /* confdefs.h.  */
20082 _ACEOF
20083 cat confdefs.h >>conftest.$ac_ext
20084 cat >>conftest.$ac_ext <<_ACEOF
20085 /* end confdefs.h.  */
20086 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20087    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20088 #define $ac_func innocuous_$ac_func
20089
20090 /* System header to define __stub macros and hopefully few prototypes,
20091     which can conflict with char $ac_func (); below.
20092     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20093     <limits.h> exists even on freestanding compilers.  */
20094
20095 #ifdef __STDC__
20096 # include <limits.h>
20097 #else
20098 # include <assert.h>
20099 #endif
20100
20101 #undef $ac_func
20102
20103 /* Override any GCC internal prototype to avoid an error.
20104    Use char because int might match the return type of a GCC
20105    builtin and then its argument prototype would still apply.  */
20106 #ifdef __cplusplus
20107 extern "C"
20108 #endif
20109 char $ac_func ();
20110 /* The GNU C library defines this for functions which it implements
20111     to always fail with ENOSYS.  Some functions are actually named
20112     something starting with __ and the normal name is an alias.  */
20113 #if defined __stub_$ac_func || defined __stub___$ac_func
20114 choke me
20115 #endif
20116
20117 int
20118 main ()
20119 {
20120 return $ac_func ();
20121   ;
20122   return 0;
20123 }
20124 _ACEOF
20125 rm -f conftest.$ac_objext conftest$ac_exeext
20126 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20127   (eval $ac_link) 2>conftest.er1
20128   ac_status=$?
20129   grep -v '^ *+' conftest.er1 >conftest.err
20130   rm -f conftest.er1
20131   cat conftest.err >&5
20132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20133   (exit $ac_status); } &&
20134          { ac_try='test -z "$ac_c_werror_flag"
20135                          || test ! -s conftest.err'
20136   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20137   (eval $ac_try) 2>&5
20138   ac_status=$?
20139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20140   (exit $ac_status); }; } &&
20141          { ac_try='test -s conftest$ac_exeext'
20142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20143   (eval $ac_try) 2>&5
20144   ac_status=$?
20145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20146   (exit $ac_status); }; }; then
20147   eval "$as_ac_var=yes"
20148 else
20149   echo "$as_me: failed program was:" >&5
20150 sed 's/^/| /' conftest.$ac_ext >&5
20151
20152         eval "$as_ac_var=no"
20153 fi
20154
20155 rm -f conftest.err conftest.$ac_objext \
20156       conftest$ac_exeext conftest.$ac_ext
20157 fi
20158 ac_res=`eval echo '${'$as_ac_var'}'`
20159                { echo "$as_me:$LINENO: result: $ac_res" >&5
20160 echo "${ECHO_T}$ac_res" >&6; }
20161 if test `eval echo '${'$as_ac_var'}'` = yes; then
20162   cat >>confdefs.h <<_ACEOF
20163 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20164 _ACEOF
20165
20166 else
20167   case " $LIBOBJS " in
20168   *" $ac_func.$ac_objext "* ) ;;
20169   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
20170  ;;
20171 esac
20172
20173 fi
20174 done
20175
20176
20177   if test $ac_cv_func_memrchr = no; then
20178     :
20179   fi
20180
20181
20182
20183 for ac_func in memset
20184 do
20185 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20186 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20187 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20188 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20189   echo $ECHO_N "(cached) $ECHO_C" >&6
20190 else
20191   cat >conftest.$ac_ext <<_ACEOF
20192 /* confdefs.h.  */
20193 _ACEOF
20194 cat confdefs.h >>conftest.$ac_ext
20195 cat >>conftest.$ac_ext <<_ACEOF
20196 /* end confdefs.h.  */
20197 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20198    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20199 #define $ac_func innocuous_$ac_func
20200
20201 /* System header to define __stub macros and hopefully few prototypes,
20202     which can conflict with char $ac_func (); below.
20203     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20204     <limits.h> exists even on freestanding compilers.  */
20205
20206 #ifdef __STDC__
20207 # include <limits.h>
20208 #else
20209 # include <assert.h>
20210 #endif
20211
20212 #undef $ac_func
20213
20214 /* Override any GCC internal prototype to avoid an error.
20215    Use char because int might match the return type of a GCC
20216    builtin and then its argument prototype would still apply.  */
20217 #ifdef __cplusplus
20218 extern "C"
20219 #endif
20220 char $ac_func ();
20221 /* The GNU C library defines this for functions which it implements
20222     to always fail with ENOSYS.  Some functions are actually named
20223     something starting with __ and the normal name is an alias.  */
20224 #if defined __stub_$ac_func || defined __stub___$ac_func
20225 choke me
20226 #endif
20227
20228 int
20229 main ()
20230 {
20231 return $ac_func ();
20232   ;
20233   return 0;
20234 }
20235 _ACEOF
20236 rm -f conftest.$ac_objext conftest$ac_exeext
20237 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20238   (eval $ac_link) 2>conftest.er1
20239   ac_status=$?
20240   grep -v '^ *+' conftest.er1 >conftest.err
20241   rm -f conftest.er1
20242   cat conftest.err >&5
20243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20244   (exit $ac_status); } &&
20245          { ac_try='test -z "$ac_c_werror_flag"
20246                          || test ! -s conftest.err'
20247   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20248   (eval $ac_try) 2>&5
20249   ac_status=$?
20250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20251   (exit $ac_status); }; } &&
20252          { ac_try='test -s conftest$ac_exeext'
20253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20254   (eval $ac_try) 2>&5
20255   ac_status=$?
20256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20257   (exit $ac_status); }; }; then
20258   eval "$as_ac_var=yes"
20259 else
20260   echo "$as_me: failed program was:" >&5
20261 sed 's/^/| /' conftest.$ac_ext >&5
20262
20263         eval "$as_ac_var=no"
20264 fi
20265
20266 rm -f conftest.err conftest.$ac_objext \
20267       conftest$ac_exeext conftest.$ac_ext
20268 fi
20269 ac_res=`eval echo '${'$as_ac_var'}'`
20270                { echo "$as_me:$LINENO: result: $ac_res" >&5
20271 echo "${ECHO_T}$ac_res" >&6; }
20272 if test `eval echo '${'$as_ac_var'}'` = yes; then
20273   cat >>confdefs.h <<_ACEOF
20274 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20275 _ACEOF
20276
20277 else
20278   case " $LIBOBJS " in
20279   *" $ac_func.$ac_objext "* ) ;;
20280   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
20281  ;;
20282 esac
20283
20284 fi
20285 done
20286
20287
20288   if test $ac_cv_func_memset = no; then
20289
20290   :
20291
20292   fi
20293
20294   { echo "$as_me:$LINENO: checking whether mkdir fails due to a trailing slash" >&5
20295 echo $ECHO_N "checking whether mkdir fails due to a trailing slash... $ECHO_C" >&6; }
20296 if test "${gl_cv_func_mkdir_trailing_slash_bug+set}" = set; then
20297   echo $ECHO_N "(cached) $ECHO_C" >&6
20298 else
20299
20300       # Arrange for deletion of the temporary directory this test might create.
20301       ac_clean_files="$ac_clean_files confdir-slash"
20302       if test "$cross_compiling" = yes; then
20303   gl_cv_func_mkdir_trailing_slash_bug=yes
20304
20305 else
20306   cat >conftest.$ac_ext <<_ACEOF
20307 /* confdefs.h.  */
20308 _ACEOF
20309 cat confdefs.h >>conftest.$ac_ext
20310 cat >>conftest.$ac_ext <<_ACEOF
20311 /* end confdefs.h.  */
20312
20313 #       include <sys/types.h>
20314 #       include <sys/stat.h>
20315 #       include <stdlib.h>
20316         int main ()
20317         {
20318           rmdir ("confdir-slash");
20319           exit (mkdir ("confdir-slash/", 0700));
20320         }
20321
20322 _ACEOF
20323 rm -f conftest$ac_exeext
20324 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20325   (eval $ac_link) 2>&5
20326   ac_status=$?
20327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20328   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20329   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20330   (eval $ac_try) 2>&5
20331   ac_status=$?
20332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20333   (exit $ac_status); }; }; then
20334   gl_cv_func_mkdir_trailing_slash_bug=no
20335 else
20336   echo "$as_me: program exited with status $ac_status" >&5
20337 echo "$as_me: failed program was:" >&5
20338 sed 's/^/| /' conftest.$ac_ext >&5
20339
20340 ( exit $ac_status )
20341 gl_cv_func_mkdir_trailing_slash_bug=yes
20342 fi
20343 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20344 fi
20345
20346
20347
20348
20349 fi
20350 { echo "$as_me:$LINENO: result: $gl_cv_func_mkdir_trailing_slash_bug" >&5
20351 echo "${ECHO_T}$gl_cv_func_mkdir_trailing_slash_bug" >&6; }
20352
20353   if test $gl_cv_func_mkdir_trailing_slash_bug = yes; then
20354     case " $LIBOBJS " in
20355   *" mkdir.$ac_objext "* ) ;;
20356   *) LIBOBJS="$LIBOBJS mkdir.$ac_objext"
20357  ;;
20358 esac
20359
20360
20361 cat >>confdefs.h <<\_ACEOF
20362 #define mkdir rpl_mkdir
20363 _ACEOF
20364
20365     :
20366   fi
20367
20368
20369
20370
20371
20372
20373
20374
20375   :
20376
20377
20378
20379
20380
20381
20382   :
20383
20384
20385
20386
20387
20388 { echo "$as_me:$LINENO: checking for working mktime" >&5
20389 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6; }
20390 if test "${ac_cv_func_working_mktime+set}" = set; then
20391   echo $ECHO_N "(cached) $ECHO_C" >&6
20392 else
20393   if test "$cross_compiling" = yes; then
20394   ac_cv_func_working_mktime=no
20395 else
20396   cat >conftest.$ac_ext <<_ACEOF
20397 /* confdefs.h.  */
20398 _ACEOF
20399 cat confdefs.h >>conftest.$ac_ext
20400 cat >>conftest.$ac_ext <<_ACEOF
20401 /* end confdefs.h.  */
20402 /* Test program from Paul Eggert and Tony Leneis.  */
20403 #if TIME_WITH_SYS_TIME
20404 # include <sys/time.h>
20405 # include <time.h>
20406 #else
20407 # if HAVE_SYS_TIME_H
20408 #  include <sys/time.h>
20409 # else
20410 #  include <time.h>
20411 # endif
20412 #endif
20413
20414 #include <stdlib.h>
20415 #include <unistd.h>
20416
20417 #if !HAVE_ALARM
20418 # define alarm(X) /* empty */
20419 #endif
20420
20421 /* Work around redefinition to rpl_putenv by other config tests.  */
20422 #undef putenv
20423
20424 static time_t time_t_max;
20425 static time_t time_t_min;
20426
20427 /* Values we'll use to set the TZ environment variable.  */
20428 static char *tz_strings[] = {
20429   (char *) 0, "TZ=GMT0", "TZ=JST-9",
20430   "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
20431 };
20432 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
20433
20434 /* Fail if mktime fails to convert a date in the spring-forward gap.
20435    Based on a problem report from Andreas Jaeger.  */
20436 static void
20437 spring_forward_gap ()
20438 {
20439   /* glibc (up to about 1998-10-07) failed this test. */
20440   struct tm tm;
20441
20442   /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
20443      instead of "TZ=America/Vancouver" in order to detect the bug even
20444      on systems that don't support the Olson extension, or don't have the
20445      full zoneinfo tables installed.  */
20446   putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
20447
20448   tm.tm_year = 98;
20449   tm.tm_mon = 3;
20450   tm.tm_mday = 5;
20451   tm.tm_hour = 2;
20452   tm.tm_min = 0;
20453   tm.tm_sec = 0;
20454   tm.tm_isdst = -1;
20455   if (mktime (&tm) == (time_t)-1)
20456     exit (1);
20457 }
20458
20459 static void
20460 mktime_test1 (now)
20461      time_t now;
20462 {
20463   struct tm *lt;
20464   if ((lt = localtime (&now)) && mktime (lt) != now)
20465     exit (1);
20466 }
20467
20468 static void
20469 mktime_test (now)
20470      time_t now;
20471 {
20472   mktime_test1 (now);
20473   mktime_test1 ((time_t) (time_t_max - now));
20474   mktime_test1 ((time_t) (time_t_min + now));
20475 }
20476
20477 static void
20478 irix_6_4_bug ()
20479 {
20480   /* Based on code from Ariel Faigon.  */
20481   struct tm tm;
20482   tm.tm_year = 96;
20483   tm.tm_mon = 3;
20484   tm.tm_mday = 0;
20485   tm.tm_hour = 0;
20486   tm.tm_min = 0;
20487   tm.tm_sec = 0;
20488   tm.tm_isdst = -1;
20489   mktime (&tm);
20490   if (tm.tm_mon != 2 || tm.tm_mday != 31)
20491     exit (1);
20492 }
20493
20494 static void
20495 bigtime_test (j)
20496      int j;
20497 {
20498   struct tm tm;
20499   time_t now;
20500   tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
20501   now = mktime (&tm);
20502   if (now != (time_t) -1)
20503     {
20504       struct tm *lt = localtime (&now);
20505       if (! (lt
20506              && lt->tm_year == tm.tm_year
20507              && lt->tm_mon == tm.tm_mon
20508              && lt->tm_mday == tm.tm_mday
20509              && lt->tm_hour == tm.tm_hour
20510              && lt->tm_min == tm.tm_min
20511              && lt->tm_sec == tm.tm_sec
20512              && lt->tm_yday == tm.tm_yday
20513              && lt->tm_wday == tm.tm_wday
20514              && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
20515                   == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
20516         exit (1);
20517     }
20518 }
20519
20520 int
20521 main ()
20522 {
20523   time_t t, delta;
20524   int i, j;
20525
20526   /* This test makes some buggy mktime implementations loop.
20527      Give up after 60 seconds; a mktime slower than that
20528      isn't worth using anyway.  */
20529   alarm (60);
20530
20531   for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
20532     continue;
20533   time_t_max--;
20534   if ((time_t) -1 < 0)
20535     for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
20536       continue;
20537   delta = time_t_max / 997; /* a suitable prime number */
20538   for (i = 0; i < N_STRINGS; i++)
20539     {
20540       if (tz_strings[i])
20541         putenv (tz_strings[i]);
20542
20543       for (t = 0; t <= time_t_max - delta; t += delta)
20544         mktime_test (t);
20545       mktime_test ((time_t) 1);
20546       mktime_test ((time_t) (60 * 60));
20547       mktime_test ((time_t) (60 * 60 * 24));
20548
20549       for (j = 1; 0 < j; j *= 2)
20550         bigtime_test (j);
20551       bigtime_test (j - 1);
20552     }
20553   irix_6_4_bug ();
20554   spring_forward_gap ();
20555   exit (0);
20556 }
20557 _ACEOF
20558 rm -f conftest$ac_exeext
20559 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20560   (eval $ac_link) 2>&5
20561   ac_status=$?
20562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20563   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20564   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20565   (eval $ac_try) 2>&5
20566   ac_status=$?
20567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20568   (exit $ac_status); }; }; then
20569   ac_cv_func_working_mktime=yes
20570 else
20571   echo "$as_me: program exited with status $ac_status" >&5
20572 echo "$as_me: failed program was:" >&5
20573 sed 's/^/| /' conftest.$ac_ext >&5
20574
20575 ( exit $ac_status )
20576 ac_cv_func_working_mktime=no
20577 fi
20578 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20579 fi
20580
20581
20582 fi
20583 { echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
20584 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
20585 if test $ac_cv_func_working_mktime = no; then
20586   case " $LIBOBJS " in
20587   *" mktime.$ac_objext "* ) ;;
20588   *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
20589  ;;
20590 esac
20591
20592 fi
20593
20594
20595
20596   if test $ac_cv_func_working_mktime = no; then
20597
20598 cat >>confdefs.h <<\_ACEOF
20599 #define mktime rpl_mktime
20600 _ACEOF
20601
20602     :
20603   fi
20604
20605
20606       { echo "$as_me:$LINENO: checking whether getenv is declared" >&5
20607 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6; }
20608 if test "${ac_cv_have_decl_getenv+set}" = set; then
20609   echo $ECHO_N "(cached) $ECHO_C" >&6
20610 else
20611   cat >conftest.$ac_ext <<_ACEOF
20612 /* confdefs.h.  */
20613 _ACEOF
20614 cat confdefs.h >>conftest.$ac_ext
20615 cat >>conftest.$ac_ext <<_ACEOF
20616 /* end confdefs.h.  */
20617 $ac_includes_default
20618 int
20619 main ()
20620 {
20621 #ifndef getenv
20622   char *p = (char *) getenv;
20623   return !p;
20624 #endif
20625
20626   ;
20627   return 0;
20628 }
20629 _ACEOF
20630 rm -f conftest.$ac_objext
20631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20632   (eval $ac_compile) 2>conftest.er1
20633   ac_status=$?
20634   grep -v '^ *+' conftest.er1 >conftest.err
20635   rm -f conftest.er1
20636   cat conftest.err >&5
20637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20638   (exit $ac_status); } &&
20639          { ac_try='test -z "$ac_c_werror_flag"
20640                          || test ! -s conftest.err'
20641   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20642   (eval $ac_try) 2>&5
20643   ac_status=$?
20644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20645   (exit $ac_status); }; } &&
20646          { ac_try='test -s conftest.$ac_objext'
20647   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20648   (eval $ac_try) 2>&5
20649   ac_status=$?
20650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20651   (exit $ac_status); }; }; then
20652   ac_cv_have_decl_getenv=yes
20653 else
20654   echo "$as_me: failed program was:" >&5
20655 sed 's/^/| /' conftest.$ac_ext >&5
20656
20657         ac_cv_have_decl_getenv=no
20658 fi
20659
20660 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20661 fi
20662 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
20663 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6; }
20664 if test $ac_cv_have_decl_getenv = yes; then
20665
20666 cat >>confdefs.h <<_ACEOF
20667 #define HAVE_DECL_GETENV 1
20668 _ACEOF
20669
20670
20671 else
20672   cat >>confdefs.h <<_ACEOF
20673 #define HAVE_DECL_GETENV 0
20674 _ACEOF
20675
20676
20677 fi
20678
20679
20680
20681
20682 for ac_func in mkstemp
20683 do
20684 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20685 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20686 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20687 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20688   echo $ECHO_N "(cached) $ECHO_C" >&6
20689 else
20690   cat >conftest.$ac_ext <<_ACEOF
20691 /* confdefs.h.  */
20692 _ACEOF
20693 cat confdefs.h >>conftest.$ac_ext
20694 cat >>conftest.$ac_ext <<_ACEOF
20695 /* end confdefs.h.  */
20696 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20697    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20698 #define $ac_func innocuous_$ac_func
20699
20700 /* System header to define __stub macros and hopefully few prototypes,
20701     which can conflict with char $ac_func (); below.
20702     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20703     <limits.h> exists even on freestanding compilers.  */
20704
20705 #ifdef __STDC__
20706 # include <limits.h>
20707 #else
20708 # include <assert.h>
20709 #endif
20710
20711 #undef $ac_func
20712
20713 /* Override any GCC internal prototype to avoid an error.
20714    Use char because int might match the return type of a GCC
20715    builtin and then its argument prototype would still apply.  */
20716 #ifdef __cplusplus
20717 extern "C"
20718 #endif
20719 char $ac_func ();
20720 /* The GNU C library defines this for functions which it implements
20721     to always fail with ENOSYS.  Some functions are actually named
20722     something starting with __ and the normal name is an alias.  */
20723 #if defined __stub_$ac_func || defined __stub___$ac_func
20724 choke me
20725 #endif
20726
20727 int
20728 main ()
20729 {
20730 return $ac_func ();
20731   ;
20732   return 0;
20733 }
20734 _ACEOF
20735 rm -f conftest.$ac_objext conftest$ac_exeext
20736 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20737   (eval $ac_link) 2>conftest.er1
20738   ac_status=$?
20739   grep -v '^ *+' conftest.er1 >conftest.err
20740   rm -f conftest.er1
20741   cat conftest.err >&5
20742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20743   (exit $ac_status); } &&
20744          { ac_try='test -z "$ac_c_werror_flag"
20745                          || test ! -s conftest.err'
20746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20747   (eval $ac_try) 2>&5
20748   ac_status=$?
20749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20750   (exit $ac_status); }; } &&
20751          { ac_try='test -s conftest$ac_exeext'
20752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20753   (eval $ac_try) 2>&5
20754   ac_status=$?
20755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20756   (exit $ac_status); }; }; then
20757   eval "$as_ac_var=yes"
20758 else
20759   echo "$as_me: failed program was:" >&5
20760 sed 's/^/| /' conftest.$ac_ext >&5
20761
20762         eval "$as_ac_var=no"
20763 fi
20764
20765 rm -f conftest.err conftest.$ac_objext \
20766       conftest$ac_exeext conftest.$ac_ext
20767 fi
20768 ac_res=`eval echo '${'$as_ac_var'}'`
20769                { echo "$as_me:$LINENO: result: $ac_res" >&5
20770 echo "${ECHO_T}$ac_res" >&6; }
20771 if test `eval echo '${'$as_ac_var'}'` = yes; then
20772   cat >>confdefs.h <<_ACEOF
20773 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20774 _ACEOF
20775
20776 else
20777   case " $LIBOBJS " in
20778   *" $ac_func.$ac_objext "* ) ;;
20779   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
20780  ;;
20781 esac
20782
20783 fi
20784 done
20785
20786
20787   if test $ac_cv_func_mkstemp = no; then
20788     gl_cv_func_mkstemp_limitations=yes
20789   else
20790     { echo "$as_me:$LINENO: checking for mkstemp limitations" >&5
20791 echo $ECHO_N "checking for mkstemp limitations... $ECHO_C" >&6; }
20792 if test "${gl_cv_func_mkstemp_limitations+set}" = set; then
20793   echo $ECHO_N "(cached) $ECHO_C" >&6
20794 else
20795
20796         mkdir conftest.mkstemp
20797         if test "$cross_compiling" = yes; then
20798   gl_cv_func_mkstemp_limitations=yes
20799
20800 else
20801   cat >conftest.$ac_ext <<_ACEOF
20802 /* confdefs.h.  */
20803 _ACEOF
20804 cat confdefs.h >>conftest.$ac_ext
20805 cat >>conftest.$ac_ext <<_ACEOF
20806 /* end confdefs.h.  */
20807
20808 #           include <stdlib.h>
20809 #           include <unistd.h>
20810             int main ()
20811             {
20812               int i;
20813               for (i = 0; i < 70; i++)
20814                 {
20815                   char template[] = "conftest.mkstemp/coXXXXXX";
20816                   int fd = mkstemp (template);
20817                   if (fd == -1)
20818                     exit (1);
20819                   close (fd);
20820                 }
20821               exit (0);
20822             }
20823
20824 _ACEOF
20825 rm -f conftest$ac_exeext
20826 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20827   (eval $ac_link) 2>&5
20828   ac_status=$?
20829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20830   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20832   (eval $ac_try) 2>&5
20833   ac_status=$?
20834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20835   (exit $ac_status); }; }; then
20836   gl_cv_func_mkstemp_limitations=no
20837 else
20838   echo "$as_me: program exited with status $ac_status" >&5
20839 echo "$as_me: failed program was:" >&5
20840 sed 's/^/| /' conftest.$ac_ext >&5
20841
20842 ( exit $ac_status )
20843 gl_cv_func_mkstemp_limitations=yes
20844 fi
20845 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20846 fi
20847
20848
20849         rm -rf conftest.mkstemp
20850
20851
20852 fi
20853 { echo "$as_me:$LINENO: result: $gl_cv_func_mkstemp_limitations" >&5
20854 echo "${ECHO_T}$gl_cv_func_mkstemp_limitations" >&6; }
20855   fi
20856
20857   if test $gl_cv_func_mkstemp_limitations = yes; then
20858     case " $LIBOBJS " in
20859   *" mkstemp.$ac_objext "* ) ;;
20860   *) LIBOBJS="$LIBOBJS mkstemp.$ac_objext"
20861  ;;
20862 esac
20863
20864     case " $LIBOBJS " in
20865   *" tempname.$ac_objext "* ) ;;
20866   *) LIBOBJS="$LIBOBJS tempname.$ac_objext"
20867  ;;
20868 esac
20869
20870
20871 cat >>confdefs.h <<\_ACEOF
20872 #define mkstemp rpl_mkstemp
20873 _ACEOF
20874
20875
20876
20877
20878
20879   :
20880
20881
20882
20883
20884
20885
20886
20887 for ac_func in __secure_getenv gettimeofday
20888 do
20889 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20890 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20891 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20892 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20893   echo $ECHO_N "(cached) $ECHO_C" >&6
20894 else
20895   cat >conftest.$ac_ext <<_ACEOF
20896 /* confdefs.h.  */
20897 _ACEOF
20898 cat confdefs.h >>conftest.$ac_ext
20899 cat >>conftest.$ac_ext <<_ACEOF
20900 /* end confdefs.h.  */
20901 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20902    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20903 #define $ac_func innocuous_$ac_func
20904
20905 /* System header to define __stub macros and hopefully few prototypes,
20906     which can conflict with char $ac_func (); below.
20907     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20908     <limits.h> exists even on freestanding compilers.  */
20909
20910 #ifdef __STDC__
20911 # include <limits.h>
20912 #else
20913 # include <assert.h>
20914 #endif
20915
20916 #undef $ac_func
20917
20918 /* Override any GCC internal prototype to avoid an error.
20919    Use char because int might match the return type of a GCC
20920    builtin and then its argument prototype would still apply.  */
20921 #ifdef __cplusplus
20922 extern "C"
20923 #endif
20924 char $ac_func ();
20925 /* The GNU C library defines this for functions which it implements
20926     to always fail with ENOSYS.  Some functions are actually named
20927     something starting with __ and the normal name is an alias.  */
20928 #if defined __stub_$ac_func || defined __stub___$ac_func
20929 choke me
20930 #endif
20931
20932 int
20933 main ()
20934 {
20935 return $ac_func ();
20936   ;
20937   return 0;
20938 }
20939 _ACEOF
20940 rm -f conftest.$ac_objext conftest$ac_exeext
20941 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20942   (eval $ac_link) 2>conftest.er1
20943   ac_status=$?
20944   grep -v '^ *+' conftest.er1 >conftest.err
20945   rm -f conftest.er1
20946   cat conftest.err >&5
20947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20948   (exit $ac_status); } &&
20949          { ac_try='test -z "$ac_c_werror_flag"
20950                          || test ! -s conftest.err'
20951   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20952   (eval $ac_try) 2>&5
20953   ac_status=$?
20954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20955   (exit $ac_status); }; } &&
20956          { ac_try='test -s conftest$ac_exeext'
20957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20958   (eval $ac_try) 2>&5
20959   ac_status=$?
20960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20961   (exit $ac_status); }; }; then
20962   eval "$as_ac_var=yes"
20963 else
20964   echo "$as_me: failed program was:" >&5
20965 sed 's/^/| /' conftest.$ac_ext >&5
20966
20967         eval "$as_ac_var=no"
20968 fi
20969
20970 rm -f conftest.err conftest.$ac_objext \
20971       conftest$ac_exeext conftest.$ac_ext
20972 fi
20973 ac_res=`eval echo '${'$as_ac_var'}'`
20974                { echo "$as_me:$LINENO: result: $ac_res" >&5
20975 echo "${ECHO_T}$ac_res" >&6; }
20976 if test `eval echo '${'$as_ac_var'}'` = yes; then
20977   cat >>confdefs.h <<_ACEOF
20978 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20979 _ACEOF
20980
20981 fi
20982 done
20983
20984
20985   :
20986
20987
20988
20989
20990
20991
20992
20993   fi
20994
20995
20996       { echo "$as_me:$LINENO: checking whether euidaccess is declared" >&5
20997 echo $ECHO_N "checking whether euidaccess is declared... $ECHO_C" >&6; }
20998 if test "${ac_cv_have_decl_euidaccess+set}" = set; then
20999   echo $ECHO_N "(cached) $ECHO_C" >&6
21000 else
21001   cat >conftest.$ac_ext <<_ACEOF
21002 /* confdefs.h.  */
21003 _ACEOF
21004 cat confdefs.h >>conftest.$ac_ext
21005 cat >>conftest.$ac_ext <<_ACEOF
21006 /* end confdefs.h.  */
21007 $ac_includes_default
21008 int
21009 main ()
21010 {
21011 #ifndef euidaccess
21012   char *p = (char *) euidaccess;
21013   return !p;
21014 #endif
21015
21016   ;
21017   return 0;
21018 }
21019 _ACEOF
21020 rm -f conftest.$ac_objext
21021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21022   (eval $ac_compile) 2>conftest.er1
21023   ac_status=$?
21024   grep -v '^ *+' conftest.er1 >conftest.err
21025   rm -f conftest.er1
21026   cat conftest.err >&5
21027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21028   (exit $ac_status); } &&
21029          { ac_try='test -z "$ac_c_werror_flag"
21030                          || test ! -s conftest.err'
21031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21032   (eval $ac_try) 2>&5
21033   ac_status=$?
21034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21035   (exit $ac_status); }; } &&
21036          { ac_try='test -s conftest.$ac_objext'
21037   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21038   (eval $ac_try) 2>&5
21039   ac_status=$?
21040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21041   (exit $ac_status); }; }; then
21042   ac_cv_have_decl_euidaccess=yes
21043 else
21044   echo "$as_me: failed program was:" >&5
21045 sed 's/^/| /' conftest.$ac_ext >&5
21046
21047         ac_cv_have_decl_euidaccess=no
21048 fi
21049
21050 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21051 fi
21052 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_euidaccess" >&5
21053 echo "${ECHO_T}$ac_cv_have_decl_euidaccess" >&6; }
21054 if test $ac_cv_have_decl_euidaccess = yes; then
21055
21056 cat >>confdefs.h <<_ACEOF
21057 #define HAVE_DECL_EUIDACCESS 1
21058 _ACEOF
21059
21060
21061 else
21062   cat >>confdefs.h <<_ACEOF
21063 #define HAVE_DECL_EUIDACCESS 0
21064 _ACEOF
21065
21066
21067 fi
21068
21069
21070
21071
21072
21073
21074
21075
21076
21077
21078       { echo "$as_me:$LINENO: checking whether setregid is declared" >&5
21079 echo $ECHO_N "checking whether setregid is declared... $ECHO_C" >&6; }
21080 if test "${ac_cv_have_decl_setregid+set}" = set; then
21081   echo $ECHO_N "(cached) $ECHO_C" >&6
21082 else
21083   cat >conftest.$ac_ext <<_ACEOF
21084 /* confdefs.h.  */
21085 _ACEOF
21086 cat confdefs.h >>conftest.$ac_ext
21087 cat >>conftest.$ac_ext <<_ACEOF
21088 /* end confdefs.h.  */
21089 $ac_includes_default
21090 int
21091 main ()
21092 {
21093 #ifndef setregid
21094   char *p = (char *) setregid;
21095   return !p;
21096 #endif
21097
21098   ;
21099   return 0;
21100 }
21101 _ACEOF
21102 rm -f conftest.$ac_objext
21103 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21104   (eval $ac_compile) 2>conftest.er1
21105   ac_status=$?
21106   grep -v '^ *+' conftest.er1 >conftest.err
21107   rm -f conftest.er1
21108   cat conftest.err >&5
21109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21110   (exit $ac_status); } &&
21111          { ac_try='test -z "$ac_c_werror_flag"
21112                          || test ! -s conftest.err'
21113   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21114   (eval $ac_try) 2>&5
21115   ac_status=$?
21116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21117   (exit $ac_status); }; } &&
21118          { ac_try='test -s conftest.$ac_objext'
21119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21120   (eval $ac_try) 2>&5
21121   ac_status=$?
21122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21123   (exit $ac_status); }; }; then
21124   ac_cv_have_decl_setregid=yes
21125 else
21126   echo "$as_me: failed program was:" >&5
21127 sed 's/^/| /' conftest.$ac_ext >&5
21128
21129         ac_cv_have_decl_setregid=no
21130 fi
21131
21132 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21133 fi
21134 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_setregid" >&5
21135 echo "${ECHO_T}$ac_cv_have_decl_setregid" >&6; }
21136 if test $ac_cv_have_decl_setregid = yes; then
21137
21138 cat >>confdefs.h <<_ACEOF
21139 #define HAVE_DECL_SETREGID 1
21140 _ACEOF
21141
21142
21143 else
21144   cat >>confdefs.h <<_ACEOF
21145 #define HAVE_DECL_SETREGID 0
21146 _ACEOF
21147
21148
21149 fi
21150
21151
21152
21153 { echo "$as_me:$LINENO: checking for getgroups" >&5
21154 echo $ECHO_N "checking for getgroups... $ECHO_C" >&6; }
21155 if test "${ac_cv_func_getgroups+set}" = set; then
21156   echo $ECHO_N "(cached) $ECHO_C" >&6
21157 else
21158   cat >conftest.$ac_ext <<_ACEOF
21159 /* confdefs.h.  */
21160 _ACEOF
21161 cat confdefs.h >>conftest.$ac_ext
21162 cat >>conftest.$ac_ext <<_ACEOF
21163 /* end confdefs.h.  */
21164 /* Define getgroups to an innocuous variant, in case <limits.h> declares getgroups.
21165    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21166 #define getgroups innocuous_getgroups
21167
21168 /* System header to define __stub macros and hopefully few prototypes,
21169     which can conflict with char getgroups (); below.
21170     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21171     <limits.h> exists even on freestanding compilers.  */
21172
21173 #ifdef __STDC__
21174 # include <limits.h>
21175 #else
21176 # include <assert.h>
21177 #endif
21178
21179 #undef getgroups
21180
21181 /* Override any GCC internal prototype to avoid an error.
21182    Use char because int might match the return type of a GCC
21183    builtin and then its argument prototype would still apply.  */
21184 #ifdef __cplusplus
21185 extern "C"
21186 #endif
21187 char getgroups ();
21188 /* The GNU C library defines this for functions which it implements
21189     to always fail with ENOSYS.  Some functions are actually named
21190     something starting with __ and the normal name is an alias.  */
21191 #if defined __stub_getgroups || defined __stub___getgroups
21192 choke me
21193 #endif
21194
21195 int
21196 main ()
21197 {
21198 return getgroups ();
21199   ;
21200   return 0;
21201 }
21202 _ACEOF
21203 rm -f conftest.$ac_objext conftest$ac_exeext
21204 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21205   (eval $ac_link) 2>conftest.er1
21206   ac_status=$?
21207   grep -v '^ *+' conftest.er1 >conftest.err
21208   rm -f conftest.er1
21209   cat conftest.err >&5
21210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21211   (exit $ac_status); } &&
21212          { ac_try='test -z "$ac_c_werror_flag"
21213                          || test ! -s conftest.err'
21214   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21215   (eval $ac_try) 2>&5
21216   ac_status=$?
21217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21218   (exit $ac_status); }; } &&
21219          { ac_try='test -s conftest$ac_exeext'
21220   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21221   (eval $ac_try) 2>&5
21222   ac_status=$?
21223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21224   (exit $ac_status); }; }; then
21225   ac_cv_func_getgroups=yes
21226 else
21227   echo "$as_me: failed program was:" >&5
21228 sed 's/^/| /' conftest.$ac_ext >&5
21229
21230         ac_cv_func_getgroups=no
21231 fi
21232
21233 rm -f conftest.err conftest.$ac_objext \
21234       conftest$ac_exeext conftest.$ac_ext
21235 fi
21236 { echo "$as_me:$LINENO: result: $ac_cv_func_getgroups" >&5
21237 echo "${ECHO_T}$ac_cv_func_getgroups" >&6; }
21238
21239
21240 # If we don't yet have getgroups, see if it's in -lbsd.
21241 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
21242 ac_save_LIBS=$LIBS
21243 if test $ac_cv_func_getgroups = no; then
21244   { echo "$as_me:$LINENO: checking for getgroups in -lbsd" >&5
21245 echo $ECHO_N "checking for getgroups in -lbsd... $ECHO_C" >&6; }
21246 if test "${ac_cv_lib_bsd_getgroups+set}" = set; then
21247   echo $ECHO_N "(cached) $ECHO_C" >&6
21248 else
21249   ac_check_lib_save_LIBS=$LIBS
21250 LIBS="-lbsd  $LIBS"
21251 cat >conftest.$ac_ext <<_ACEOF
21252 /* confdefs.h.  */
21253 _ACEOF
21254 cat confdefs.h >>conftest.$ac_ext
21255 cat >>conftest.$ac_ext <<_ACEOF
21256 /* end confdefs.h.  */
21257
21258 /* Override any GCC internal prototype to avoid an error.
21259    Use char because int might match the return type of a GCC
21260    builtin and then its argument prototype would still apply.  */
21261 #ifdef __cplusplus
21262 extern "C"
21263 #endif
21264 char getgroups ();
21265 int
21266 main ()
21267 {
21268 return getgroups ();
21269   ;
21270   return 0;
21271 }
21272 _ACEOF
21273 rm -f conftest.$ac_objext conftest$ac_exeext
21274 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21275   (eval $ac_link) 2>conftest.er1
21276   ac_status=$?
21277   grep -v '^ *+' conftest.er1 >conftest.err
21278   rm -f conftest.er1
21279   cat conftest.err >&5
21280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21281   (exit $ac_status); } &&
21282          { ac_try='test -z "$ac_c_werror_flag"
21283                          || test ! -s conftest.err'
21284   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21285   (eval $ac_try) 2>&5
21286   ac_status=$?
21287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21288   (exit $ac_status); }; } &&
21289          { ac_try='test -s conftest$ac_exeext'
21290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21291   (eval $ac_try) 2>&5
21292   ac_status=$?
21293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21294   (exit $ac_status); }; }; then
21295   ac_cv_lib_bsd_getgroups=yes
21296 else
21297   echo "$as_me: failed program was:" >&5
21298 sed 's/^/| /' conftest.$ac_ext >&5
21299
21300         ac_cv_lib_bsd_getgroups=no
21301 fi
21302
21303 rm -f conftest.err conftest.$ac_objext \
21304       conftest$ac_exeext conftest.$ac_ext
21305 LIBS=$ac_check_lib_save_LIBS
21306 fi
21307 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_getgroups" >&5
21308 echo "${ECHO_T}$ac_cv_lib_bsd_getgroups" >&6; }
21309 if test $ac_cv_lib_bsd_getgroups = yes; then
21310   GETGROUPS_LIB=-lbsd
21311 fi
21312
21313 fi
21314
21315 # Run the program to test the functionality of the system-supplied
21316 # getgroups function only if there is such a function.
21317 if test $ac_cv_func_getgroups = yes; then
21318   { echo "$as_me:$LINENO: checking for working getgroups" >&5
21319 echo $ECHO_N "checking for working getgroups... $ECHO_C" >&6; }
21320 if test "${ac_cv_func_getgroups_works+set}" = set; then
21321   echo $ECHO_N "(cached) $ECHO_C" >&6
21322 else
21323   if test "$cross_compiling" = yes; then
21324   ac_cv_func_getgroups_works=no
21325 else
21326   cat >conftest.$ac_ext <<_ACEOF
21327 /* confdefs.h.  */
21328 _ACEOF
21329 cat confdefs.h >>conftest.$ac_ext
21330 cat >>conftest.$ac_ext <<_ACEOF
21331 /* end confdefs.h.  */
21332 $ac_includes_default
21333 int
21334 main ()
21335 {
21336 /* On Ultrix 4.3, getgroups (0, 0) always fails.  */
21337        return getgroups (0, 0) == -1;
21338   ;
21339   return 0;
21340 }
21341 _ACEOF
21342 rm -f conftest$ac_exeext
21343 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21344   (eval $ac_link) 2>&5
21345   ac_status=$?
21346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21347   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21348   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21349   (eval $ac_try) 2>&5
21350   ac_status=$?
21351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21352   (exit $ac_status); }; }; then
21353   ac_cv_func_getgroups_works=yes
21354 else
21355   echo "$as_me: program exited with status $ac_status" >&5
21356 echo "$as_me: failed program was:" >&5
21357 sed 's/^/| /' conftest.$ac_ext >&5
21358
21359 ( exit $ac_status )
21360 ac_cv_func_getgroups_works=no
21361 fi
21362 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21363 fi
21364
21365
21366
21367 fi
21368 { echo "$as_me:$LINENO: result: $ac_cv_func_getgroups_works" >&5
21369 echo "${ECHO_T}$ac_cv_func_getgroups_works" >&6; }
21370   if test $ac_cv_func_getgroups_works = yes; then
21371
21372 cat >>confdefs.h <<\_ACEOF
21373 #define HAVE_GETGROUPS 1
21374 _ACEOF
21375
21376   fi
21377 fi
21378 LIBS=$ac_save_LIBS
21379
21380
21381
21382
21383
21384   :
21385
21386
21387
21388
21389
21390
21391 for ac_func in euidaccess
21392 do
21393 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21394 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21395 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21396 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21397   echo $ECHO_N "(cached) $ECHO_C" >&6
21398 else
21399   cat >conftest.$ac_ext <<_ACEOF
21400 /* confdefs.h.  */
21401 _ACEOF
21402 cat confdefs.h >>conftest.$ac_ext
21403 cat >>conftest.$ac_ext <<_ACEOF
21404 /* end confdefs.h.  */
21405 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21406    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21407 #define $ac_func innocuous_$ac_func
21408
21409 /* System header to define __stub macros and hopefully few prototypes,
21410     which can conflict with char $ac_func (); below.
21411     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21412     <limits.h> exists even on freestanding compilers.  */
21413
21414 #ifdef __STDC__
21415 # include <limits.h>
21416 #else
21417 # include <assert.h>
21418 #endif
21419
21420 #undef $ac_func
21421
21422 /* Override any GCC internal prototype to avoid an error.
21423    Use char because int might match the return type of a GCC
21424    builtin and then its argument prototype would still apply.  */
21425 #ifdef __cplusplus
21426 extern "C"
21427 #endif
21428 char $ac_func ();
21429 /* The GNU C library defines this for functions which it implements
21430     to always fail with ENOSYS.  Some functions are actually named
21431     something starting with __ and the normal name is an alias.  */
21432 #if defined __stub_$ac_func || defined __stub___$ac_func
21433 choke me
21434 #endif
21435
21436 int
21437 main ()
21438 {
21439 return $ac_func ();
21440   ;
21441   return 0;
21442 }
21443 _ACEOF
21444 rm -f conftest.$ac_objext conftest$ac_exeext
21445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21446   (eval $ac_link) 2>conftest.er1
21447   ac_status=$?
21448   grep -v '^ *+' conftest.er1 >conftest.err
21449   rm -f conftest.er1
21450   cat conftest.err >&5
21451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21452   (exit $ac_status); } &&
21453          { ac_try='test -z "$ac_c_werror_flag"
21454                          || test ! -s conftest.err'
21455   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21456   (eval $ac_try) 2>&5
21457   ac_status=$?
21458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21459   (exit $ac_status); }; } &&
21460          { ac_try='test -s conftest$ac_exeext'
21461   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21462   (eval $ac_try) 2>&5
21463   ac_status=$?
21464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21465   (exit $ac_status); }; }; then
21466   eval "$as_ac_var=yes"
21467 else
21468   echo "$as_me: failed program was:" >&5
21469 sed 's/^/| /' conftest.$ac_ext >&5
21470
21471         eval "$as_ac_var=no"
21472 fi
21473
21474 rm -f conftest.err conftest.$ac_objext \
21475       conftest$ac_exeext conftest.$ac_ext
21476 fi
21477 ac_res=`eval echo '${'$as_ac_var'}'`
21478                { echo "$as_me:$LINENO: result: $ac_res" >&5
21479 echo "${ECHO_T}$ac_res" >&6; }
21480 if test `eval echo '${'$as_ac_var'}'` = yes; then
21481   cat >>confdefs.h <<_ACEOF
21482 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21483 _ACEOF
21484
21485 else
21486   case " $LIBOBJS " in
21487   *" $ac_func.$ac_objext "* ) ;;
21488   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
21489  ;;
21490 esac
21491
21492 fi
21493 done
21494
21495
21496   if test $ac_cv_func_euidaccess = no; then
21497
21498
21499   :
21500
21501
21502
21503
21504
21505
21506   :
21507
21508
21509
21510
21511
21512
21513
21514   # Solaris 9 needs -lgen to get the eaccess function.
21515   # Save and restore LIBS so -lgen isn't added to it.  Otherwise, *all*
21516   # programs in the package would end up linked with that potentially-shared
21517   # library, inducing unnecessary run-time overhead.
21518   gl_saved_libs=$LIBS
21519     { echo "$as_me:$LINENO: checking for library containing eaccess" >&5
21520 echo $ECHO_N "checking for library containing eaccess... $ECHO_C" >&6; }
21521 if test "${ac_cv_search_eaccess+set}" = set; then
21522   echo $ECHO_N "(cached) $ECHO_C" >&6
21523 else
21524   ac_func_search_save_LIBS=$LIBS
21525 cat >conftest.$ac_ext <<_ACEOF
21526 /* confdefs.h.  */
21527 _ACEOF
21528 cat confdefs.h >>conftest.$ac_ext
21529 cat >>conftest.$ac_ext <<_ACEOF
21530 /* end confdefs.h.  */
21531
21532 /* Override any GCC internal prototype to avoid an error.
21533    Use char because int might match the return type of a GCC
21534    builtin and then its argument prototype would still apply.  */
21535 #ifdef __cplusplus
21536 extern "C"
21537 #endif
21538 char eaccess ();
21539 int
21540 main ()
21541 {
21542 return eaccess ();
21543   ;
21544   return 0;
21545 }
21546 _ACEOF
21547 for ac_lib in '' gen; do
21548   if test -z "$ac_lib"; then
21549     ac_res="none required"
21550   else
21551     ac_res=-l$ac_lib
21552     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21553   fi
21554   rm -f conftest.$ac_objext conftest$ac_exeext
21555 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21556   (eval $ac_link) 2>conftest.er1
21557   ac_status=$?
21558   grep -v '^ *+' conftest.er1 >conftest.err
21559   rm -f conftest.er1
21560   cat conftest.err >&5
21561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21562   (exit $ac_status); } &&
21563          { ac_try='test -z "$ac_c_werror_flag"
21564                          || test ! -s conftest.err'
21565   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21566   (eval $ac_try) 2>&5
21567   ac_status=$?
21568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21569   (exit $ac_status); }; } &&
21570          { ac_try='test -s conftest$ac_exeext'
21571   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21572   (eval $ac_try) 2>&5
21573   ac_status=$?
21574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21575   (exit $ac_status); }; }; then
21576   ac_cv_search_eaccess=$ac_res
21577 else
21578   echo "$as_me: failed program was:" >&5
21579 sed 's/^/| /' conftest.$ac_ext >&5
21580
21581
21582 fi
21583
21584 rm -f conftest.err conftest.$ac_objext \
21585       conftest$ac_exeext
21586   if test "${ac_cv_search_eaccess+set}" = set; then
21587   break
21588 fi
21589 done
21590 if test "${ac_cv_search_eaccess+set}" = set; then
21591   :
21592 else
21593   ac_cv_search_eaccess=no
21594 fi
21595 rm conftest.$ac_ext
21596 LIBS=$ac_func_search_save_LIBS
21597 fi
21598 { echo "$as_me:$LINENO: result: $ac_cv_search_eaccess" >&5
21599 echo "${ECHO_T}$ac_cv_search_eaccess" >&6; }
21600 ac_res=$ac_cv_search_eaccess
21601 if test "$ac_res" != no; then
21602   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21603   test "$ac_cv_search_eaccess" = "none required" ||
21604                     LIB_EACCESS=$ac_cv_search_eaccess
21605 fi
21606
21607
21608
21609 for ac_func in eaccess
21610 do
21611 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21612 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21613 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21614 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21615   echo $ECHO_N "(cached) $ECHO_C" >&6
21616 else
21617   cat >conftest.$ac_ext <<_ACEOF
21618 /* confdefs.h.  */
21619 _ACEOF
21620 cat confdefs.h >>conftest.$ac_ext
21621 cat >>conftest.$ac_ext <<_ACEOF
21622 /* end confdefs.h.  */
21623 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21624    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21625 #define $ac_func innocuous_$ac_func
21626
21627 /* System header to define __stub macros and hopefully few prototypes,
21628     which can conflict with char $ac_func (); below.
21629     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21630     <limits.h> exists even on freestanding compilers.  */
21631
21632 #ifdef __STDC__
21633 # include <limits.h>
21634 #else
21635 # include <assert.h>
21636 #endif
21637
21638 #undef $ac_func
21639
21640 /* Override any GCC internal prototype to avoid an error.
21641    Use char because int might match the return type of a GCC
21642    builtin and then its argument prototype would still apply.  */
21643 #ifdef __cplusplus
21644 extern "C"
21645 #endif
21646 char $ac_func ();
21647 /* The GNU C library defines this for functions which it implements
21648     to always fail with ENOSYS.  Some functions are actually named
21649     something starting with __ and the normal name is an alias.  */
21650 #if defined __stub_$ac_func || defined __stub___$ac_func
21651 choke me
21652 #endif
21653
21654 int
21655 main ()
21656 {
21657 return $ac_func ();
21658   ;
21659   return 0;
21660 }
21661 _ACEOF
21662 rm -f conftest.$ac_objext conftest$ac_exeext
21663 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21664   (eval $ac_link) 2>conftest.er1
21665   ac_status=$?
21666   grep -v '^ *+' conftest.er1 >conftest.err
21667   rm -f conftest.er1
21668   cat conftest.err >&5
21669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21670   (exit $ac_status); } &&
21671          { ac_try='test -z "$ac_c_werror_flag"
21672                          || test ! -s conftest.err'
21673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21674   (eval $ac_try) 2>&5
21675   ac_status=$?
21676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21677   (exit $ac_status); }; } &&
21678          { ac_try='test -s conftest$ac_exeext'
21679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21680   (eval $ac_try) 2>&5
21681   ac_status=$?
21682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21683   (exit $ac_status); }; }; then
21684   eval "$as_ac_var=yes"
21685 else
21686   echo "$as_me: failed program was:" >&5
21687 sed 's/^/| /' conftest.$ac_ext >&5
21688
21689         eval "$as_ac_var=no"
21690 fi
21691
21692 rm -f conftest.err conftest.$ac_objext \
21693       conftest$ac_exeext conftest.$ac_ext
21694 fi
21695 ac_res=`eval echo '${'$as_ac_var'}'`
21696                { echo "$as_me:$LINENO: result: $ac_res" >&5
21697 echo "${ECHO_T}$ac_res" >&6; }
21698 if test `eval echo '${'$as_ac_var'}'` = yes; then
21699   cat >>confdefs.h <<_ACEOF
21700 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21701 _ACEOF
21702
21703 fi
21704 done
21705
21706   LIBS=$gl_saved_libs
21707
21708   fi
21709
21710
21711
21712
21713 cat >>confdefs.h <<\_ACEOF
21714 #define PREFER_NONREENTRANT_EUIDACCESS 1
21715 _ACEOF
21716
21717
21718
21719
21720 for ac_func in readlink
21721 do
21722 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21723 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21724 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21725 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21726   echo $ECHO_N "(cached) $ECHO_C" >&6
21727 else
21728   cat >conftest.$ac_ext <<_ACEOF
21729 /* confdefs.h.  */
21730 _ACEOF
21731 cat confdefs.h >>conftest.$ac_ext
21732 cat >>conftest.$ac_ext <<_ACEOF
21733 /* end confdefs.h.  */
21734 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21735    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21736 #define $ac_func innocuous_$ac_func
21737
21738 /* System header to define __stub macros and hopefully few prototypes,
21739     which can conflict with char $ac_func (); below.
21740     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21741     <limits.h> exists even on freestanding compilers.  */
21742
21743 #ifdef __STDC__
21744 # include <limits.h>
21745 #else
21746 # include <assert.h>
21747 #endif
21748
21749 #undef $ac_func
21750
21751 /* Override any GCC internal prototype to avoid an error.
21752    Use char because int might match the return type of a GCC
21753    builtin and then its argument prototype would still apply.  */
21754 #ifdef __cplusplus
21755 extern "C"
21756 #endif
21757 char $ac_func ();
21758 /* The GNU C library defines this for functions which it implements
21759     to always fail with ENOSYS.  Some functions are actually named
21760     something starting with __ and the normal name is an alias.  */
21761 #if defined __stub_$ac_func || defined __stub___$ac_func
21762 choke me
21763 #endif
21764
21765 int
21766 main ()
21767 {
21768 return $ac_func ();
21769   ;
21770   return 0;
21771 }
21772 _ACEOF
21773 rm -f conftest.$ac_objext conftest$ac_exeext
21774 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21775   (eval $ac_link) 2>conftest.er1
21776   ac_status=$?
21777   grep -v '^ *+' conftest.er1 >conftest.err
21778   rm -f conftest.er1
21779   cat conftest.err >&5
21780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21781   (exit $ac_status); } &&
21782          { ac_try='test -z "$ac_c_werror_flag"
21783                          || test ! -s conftest.err'
21784   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21785   (eval $ac_try) 2>&5
21786   ac_status=$?
21787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21788   (exit $ac_status); }; } &&
21789          { ac_try='test -s conftest$ac_exeext'
21790   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21791   (eval $ac_try) 2>&5
21792   ac_status=$?
21793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21794   (exit $ac_status); }; }; then
21795   eval "$as_ac_var=yes"
21796 else
21797   echo "$as_me: failed program was:" >&5
21798 sed 's/^/| /' conftest.$ac_ext >&5
21799
21800         eval "$as_ac_var=no"
21801 fi
21802
21803 rm -f conftest.err conftest.$ac_objext \
21804       conftest$ac_exeext conftest.$ac_ext
21805 fi
21806 ac_res=`eval echo '${'$as_ac_var'}'`
21807                { echo "$as_me:$LINENO: result: $ac_res" >&5
21808 echo "${ECHO_T}$ac_res" >&6; }
21809 if test `eval echo '${'$as_ac_var'}'` = yes; then
21810   cat >>confdefs.h <<_ACEOF
21811 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21812 _ACEOF
21813
21814 fi
21815 done
21816
21817   if test $ac_cv_func_readlink = no; then
21818     case " $LIBOBJS " in
21819   *" readlink.$ac_objext "* ) ;;
21820   *) LIBOBJS="$LIBOBJS readlink.$ac_objext"
21821  ;;
21822 esac
21823
21824
21825   :
21826
21827   fi
21828
21829
21830
21831 for ac_func in rmdir
21832 do
21833 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21834 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21835 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21836 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21837   echo $ECHO_N "(cached) $ECHO_C" >&6
21838 else
21839   cat >conftest.$ac_ext <<_ACEOF
21840 /* confdefs.h.  */
21841 _ACEOF
21842 cat confdefs.h >>conftest.$ac_ext
21843 cat >>conftest.$ac_ext <<_ACEOF
21844 /* end confdefs.h.  */
21845 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21846    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21847 #define $ac_func innocuous_$ac_func
21848
21849 /* System header to define __stub macros and hopefully few prototypes,
21850     which can conflict with char $ac_func (); below.
21851     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21852     <limits.h> exists even on freestanding compilers.  */
21853
21854 #ifdef __STDC__
21855 # include <limits.h>
21856 #else
21857 # include <assert.h>
21858 #endif
21859
21860 #undef $ac_func
21861
21862 /* Override any GCC internal prototype to avoid an error.
21863    Use char because int might match the return type of a GCC
21864    builtin and then its argument prototype would still apply.  */
21865 #ifdef __cplusplus
21866 extern "C"
21867 #endif
21868 char $ac_func ();
21869 /* The GNU C library defines this for functions which it implements
21870     to always fail with ENOSYS.  Some functions are actually named
21871     something starting with __ and the normal name is an alias.  */
21872 #if defined __stub_$ac_func || defined __stub___$ac_func
21873 choke me
21874 #endif
21875
21876 int
21877 main ()
21878 {
21879 return $ac_func ();
21880   ;
21881   return 0;
21882 }
21883 _ACEOF
21884 rm -f conftest.$ac_objext conftest$ac_exeext
21885 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21886   (eval $ac_link) 2>conftest.er1
21887   ac_status=$?
21888   grep -v '^ *+' conftest.er1 >conftest.err
21889   rm -f conftest.er1
21890   cat conftest.err >&5
21891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21892   (exit $ac_status); } &&
21893          { ac_try='test -z "$ac_c_werror_flag"
21894                          || test ! -s conftest.err'
21895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21896   (eval $ac_try) 2>&5
21897   ac_status=$?
21898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21899   (exit $ac_status); }; } &&
21900          { ac_try='test -s conftest$ac_exeext'
21901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21902   (eval $ac_try) 2>&5
21903   ac_status=$?
21904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21905   (exit $ac_status); }; }; then
21906   eval "$as_ac_var=yes"
21907 else
21908   echo "$as_me: failed program was:" >&5
21909 sed 's/^/| /' conftest.$ac_ext >&5
21910
21911         eval "$as_ac_var=no"
21912 fi
21913
21914 rm -f conftest.err conftest.$ac_objext \
21915       conftest$ac_exeext conftest.$ac_ext
21916 fi
21917 ac_res=`eval echo '${'$as_ac_var'}'`
21918                { echo "$as_me:$LINENO: result: $ac_res" >&5
21919 echo "${ECHO_T}$ac_res" >&6; }
21920 if test `eval echo '${'$as_ac_var'}'` = yes; then
21921   cat >>confdefs.h <<_ACEOF
21922 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21923 _ACEOF
21924
21925 else
21926   case " $LIBOBJS " in
21927   *" $ac_func.$ac_objext "* ) ;;
21928   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
21929  ;;
21930 esac
21931
21932 fi
21933 done
21934
21935
21936
21937
21938
21939 for ac_func in rpmatch
21940 do
21941 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21942 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21943 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21944 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21945   echo $ECHO_N "(cached) $ECHO_C" >&6
21946 else
21947   cat >conftest.$ac_ext <<_ACEOF
21948 /* confdefs.h.  */
21949 _ACEOF
21950 cat confdefs.h >>conftest.$ac_ext
21951 cat >>conftest.$ac_ext <<_ACEOF
21952 /* end confdefs.h.  */
21953 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21954    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21955 #define $ac_func innocuous_$ac_func
21956
21957 /* System header to define __stub macros and hopefully few prototypes,
21958     which can conflict with char $ac_func (); below.
21959     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21960     <limits.h> exists even on freestanding compilers.  */
21961
21962 #ifdef __STDC__
21963 # include <limits.h>
21964 #else
21965 # include <assert.h>
21966 #endif
21967
21968 #undef $ac_func
21969
21970 /* Override any GCC internal prototype to avoid an error.
21971    Use char because int might match the return type of a GCC
21972    builtin and then its argument prototype would still apply.  */
21973 #ifdef __cplusplus
21974 extern "C"
21975 #endif
21976 char $ac_func ();
21977 /* The GNU C library defines this for functions which it implements
21978     to always fail with ENOSYS.  Some functions are actually named
21979     something starting with __ and the normal name is an alias.  */
21980 #if defined __stub_$ac_func || defined __stub___$ac_func
21981 choke me
21982 #endif
21983
21984 int
21985 main ()
21986 {
21987 return $ac_func ();
21988   ;
21989   return 0;
21990 }
21991 _ACEOF
21992 rm -f conftest.$ac_objext conftest$ac_exeext
21993 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21994   (eval $ac_link) 2>conftest.er1
21995   ac_status=$?
21996   grep -v '^ *+' conftest.er1 >conftest.err
21997   rm -f conftest.er1
21998   cat conftest.err >&5
21999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22000   (exit $ac_status); } &&
22001          { ac_try='test -z "$ac_c_werror_flag"
22002                          || test ! -s conftest.err'
22003   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22004   (eval $ac_try) 2>&5
22005   ac_status=$?
22006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22007   (exit $ac_status); }; } &&
22008          { ac_try='test -s conftest$ac_exeext'
22009   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22010   (eval $ac_try) 2>&5
22011   ac_status=$?
22012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22013   (exit $ac_status); }; }; then
22014   eval "$as_ac_var=yes"
22015 else
22016   echo "$as_me: failed program was:" >&5
22017 sed 's/^/| /' conftest.$ac_ext >&5
22018
22019         eval "$as_ac_var=no"
22020 fi
22021
22022 rm -f conftest.err conftest.$ac_objext \
22023       conftest$ac_exeext conftest.$ac_ext
22024 fi
22025 ac_res=`eval echo '${'$as_ac_var'}'`
22026                { echo "$as_me:$LINENO: result: $ac_res" >&5
22027 echo "${ECHO_T}$ac_res" >&6; }
22028 if test `eval echo '${'$as_ac_var'}'` = yes; then
22029   cat >>confdefs.h <<_ACEOF
22030 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22031 _ACEOF
22032
22033 else
22034   case " $LIBOBJS " in
22035   *" $ac_func.$ac_objext "* ) ;;
22036   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
22037  ;;
22038 esac
22039
22040 fi
22041 done
22042
22043
22044   if test $ac_cv_func_rpmatch = no; then
22045     :
22046   fi
22047
22048
22049
22050
22051
22052
22053
22054
22055
22056
22057
22058
22059 for ac_func in setenv unsetenv
22060 do
22061 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22062 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22063 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22064 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22065   echo $ECHO_N "(cached) $ECHO_C" >&6
22066 else
22067   cat >conftest.$ac_ext <<_ACEOF
22068 /* confdefs.h.  */
22069 _ACEOF
22070 cat confdefs.h >>conftest.$ac_ext
22071 cat >>conftest.$ac_ext <<_ACEOF
22072 /* end confdefs.h.  */
22073 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22074    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22075 #define $ac_func innocuous_$ac_func
22076
22077 /* System header to define __stub macros and hopefully few prototypes,
22078     which can conflict with char $ac_func (); below.
22079     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22080     <limits.h> exists even on freestanding compilers.  */
22081
22082 #ifdef __STDC__
22083 # include <limits.h>
22084 #else
22085 # include <assert.h>
22086 #endif
22087
22088 #undef $ac_func
22089
22090 /* Override any GCC internal prototype to avoid an error.
22091    Use char because int might match the return type of a GCC
22092    builtin and then its argument prototype would still apply.  */
22093 #ifdef __cplusplus
22094 extern "C"
22095 #endif
22096 char $ac_func ();
22097 /* The GNU C library defines this for functions which it implements
22098     to always fail with ENOSYS.  Some functions are actually named
22099     something starting with __ and the normal name is an alias.  */
22100 #if defined __stub_$ac_func || defined __stub___$ac_func
22101 choke me
22102 #endif
22103
22104 int
22105 main ()
22106 {
22107 return $ac_func ();
22108   ;
22109   return 0;
22110 }
22111 _ACEOF
22112 rm -f conftest.$ac_objext conftest$ac_exeext
22113 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22114   (eval $ac_link) 2>conftest.er1
22115   ac_status=$?
22116   grep -v '^ *+' conftest.er1 >conftest.err
22117   rm -f conftest.er1
22118   cat conftest.err >&5
22119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22120   (exit $ac_status); } &&
22121          { ac_try='test -z "$ac_c_werror_flag"
22122                          || test ! -s conftest.err'
22123   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22124   (eval $ac_try) 2>&5
22125   ac_status=$?
22126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22127   (exit $ac_status); }; } &&
22128          { ac_try='test -s conftest$ac_exeext'
22129   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22130   (eval $ac_try) 2>&5
22131   ac_status=$?
22132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22133   (exit $ac_status); }; }; then
22134   eval "$as_ac_var=yes"
22135 else
22136   echo "$as_me: failed program was:" >&5
22137 sed 's/^/| /' conftest.$ac_ext >&5
22138
22139         eval "$as_ac_var=no"
22140 fi
22141
22142 rm -f conftest.err conftest.$ac_objext \
22143       conftest$ac_exeext conftest.$ac_ext
22144 fi
22145 ac_res=`eval echo '${'$as_ac_var'}'`
22146                { echo "$as_me:$LINENO: result: $ac_res" >&5
22147 echo "${ECHO_T}$ac_res" >&6; }
22148 if test `eval echo '${'$as_ac_var'}'` = yes; then
22149   cat >>confdefs.h <<_ACEOF
22150 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22151 _ACEOF
22152
22153 else
22154   case " $LIBOBJS " in
22155   *" $ac_func.$ac_objext "* ) ;;
22156   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
22157  ;;
22158 esac
22159
22160 fi
22161 done
22162
22163
22164   if test $ac_cv_func_setenv = no; then
22165
22166
22167
22168   :
22169
22170
22171
22172
22173
22174
22175 for ac_header in search.h
22176 do
22177 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22178 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22179   { echo "$as_me:$LINENO: checking for $ac_header" >&5
22180 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22181 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22182   echo $ECHO_N "(cached) $ECHO_C" >&6
22183 fi
22184 ac_res=`eval echo '${'$as_ac_Header'}'`
22185                { echo "$as_me:$LINENO: result: $ac_res" >&5
22186 echo "${ECHO_T}$ac_res" >&6; }
22187 else
22188   # Is the header compilable?
22189 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22190 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22191 cat >conftest.$ac_ext <<_ACEOF
22192 /* confdefs.h.  */
22193 _ACEOF
22194 cat confdefs.h >>conftest.$ac_ext
22195 cat >>conftest.$ac_ext <<_ACEOF
22196 /* end confdefs.h.  */
22197 $ac_includes_default
22198 #include <$ac_header>
22199 _ACEOF
22200 rm -f conftest.$ac_objext
22201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22202   (eval $ac_compile) 2>conftest.er1
22203   ac_status=$?
22204   grep -v '^ *+' conftest.er1 >conftest.err
22205   rm -f conftest.er1
22206   cat conftest.err >&5
22207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22208   (exit $ac_status); } &&
22209          { ac_try='test -z "$ac_c_werror_flag"
22210                          || test ! -s conftest.err'
22211   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22212   (eval $ac_try) 2>&5
22213   ac_status=$?
22214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22215   (exit $ac_status); }; } &&
22216          { ac_try='test -s conftest.$ac_objext'
22217   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22218   (eval $ac_try) 2>&5
22219   ac_status=$?
22220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22221   (exit $ac_status); }; }; then
22222   ac_header_compiler=yes
22223 else
22224   echo "$as_me: failed program was:" >&5
22225 sed 's/^/| /' conftest.$ac_ext >&5
22226
22227         ac_header_compiler=no
22228 fi
22229
22230 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22231 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22232 echo "${ECHO_T}$ac_header_compiler" >&6; }
22233
22234 # Is the header present?
22235 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22236 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22237 cat >conftest.$ac_ext <<_ACEOF
22238 /* confdefs.h.  */
22239 _ACEOF
22240 cat confdefs.h >>conftest.$ac_ext
22241 cat >>conftest.$ac_ext <<_ACEOF
22242 /* end confdefs.h.  */
22243 #include <$ac_header>
22244 _ACEOF
22245 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22246   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22247   ac_status=$?
22248   grep -v '^ *+' conftest.er1 >conftest.err
22249   rm -f conftest.er1
22250   cat conftest.err >&5
22251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22252   (exit $ac_status); } >/dev/null; then
22253   if test -s conftest.err; then
22254     ac_cpp_err=$ac_c_preproc_warn_flag
22255     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22256   else
22257     ac_cpp_err=
22258   fi
22259 else
22260   ac_cpp_err=yes
22261 fi
22262 if test -z "$ac_cpp_err"; then
22263   ac_header_preproc=yes
22264 else
22265   echo "$as_me: failed program was:" >&5
22266 sed 's/^/| /' conftest.$ac_ext >&5
22267
22268   ac_header_preproc=no
22269 fi
22270
22271 rm -f conftest.err conftest.$ac_ext
22272 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22273 echo "${ECHO_T}$ac_header_preproc" >&6; }
22274
22275 # So?  What about this header?
22276 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22277   yes:no: )
22278     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22279 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22280     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22281 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22282     ac_header_preproc=yes
22283     ;;
22284   no:yes:* )
22285     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22286 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22287     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22288 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22289     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22290 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22291     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22292 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22293     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22294 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22295     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22296 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22297     ( cat <<\_ASBOX
22298 ## ------------------------------------ ##
22299 ## Report this to bug-coreutils@gnu.org ##
22300 ## ------------------------------------ ##
22301 _ASBOX
22302      ) | sed "s/^/$as_me: WARNING:     /" >&2
22303     ;;
22304 esac
22305 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22306 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22307 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22308   echo $ECHO_N "(cached) $ECHO_C" >&6
22309 else
22310   eval "$as_ac_Header=\$ac_header_preproc"
22311 fi
22312 ac_res=`eval echo '${'$as_ac_Header'}'`
22313                { echo "$as_me:$LINENO: result: $ac_res" >&5
22314 echo "${ECHO_T}$ac_res" >&6; }
22315
22316 fi
22317 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22318   cat >>confdefs.h <<_ACEOF
22319 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22320 _ACEOF
22321
22322 fi
22323
22324 done
22325
22326
22327 for ac_func in tsearch
22328 do
22329 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22330 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22331 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22332 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22333   echo $ECHO_N "(cached) $ECHO_C" >&6
22334 else
22335   cat >conftest.$ac_ext <<_ACEOF
22336 /* confdefs.h.  */
22337 _ACEOF
22338 cat confdefs.h >>conftest.$ac_ext
22339 cat >>conftest.$ac_ext <<_ACEOF
22340 /* end confdefs.h.  */
22341 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22342    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22343 #define $ac_func innocuous_$ac_func
22344
22345 /* System header to define __stub macros and hopefully few prototypes,
22346     which can conflict with char $ac_func (); below.
22347     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22348     <limits.h> exists even on freestanding compilers.  */
22349
22350 #ifdef __STDC__
22351 # include <limits.h>
22352 #else
22353 # include <assert.h>
22354 #endif
22355
22356 #undef $ac_func
22357
22358 /* Override any GCC internal prototype to avoid an error.
22359    Use char because int might match the return type of a GCC
22360    builtin and then its argument prototype would still apply.  */
22361 #ifdef __cplusplus
22362 extern "C"
22363 #endif
22364 char $ac_func ();
22365 /* The GNU C library defines this for functions which it implements
22366     to always fail with ENOSYS.  Some functions are actually named
22367     something starting with __ and the normal name is an alias.  */
22368 #if defined __stub_$ac_func || defined __stub___$ac_func
22369 choke me
22370 #endif
22371
22372 int
22373 main ()
22374 {
22375 return $ac_func ();
22376   ;
22377   return 0;
22378 }
22379 _ACEOF
22380 rm -f conftest.$ac_objext conftest$ac_exeext
22381 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22382   (eval $ac_link) 2>conftest.er1
22383   ac_status=$?
22384   grep -v '^ *+' conftest.er1 >conftest.err
22385   rm -f conftest.er1
22386   cat conftest.err >&5
22387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22388   (exit $ac_status); } &&
22389          { ac_try='test -z "$ac_c_werror_flag"
22390                          || test ! -s conftest.err'
22391   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22392   (eval $ac_try) 2>&5
22393   ac_status=$?
22394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22395   (exit $ac_status); }; } &&
22396          { ac_try='test -s conftest$ac_exeext'
22397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22398   (eval $ac_try) 2>&5
22399   ac_status=$?
22400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22401   (exit $ac_status); }; }; then
22402   eval "$as_ac_var=yes"
22403 else
22404   echo "$as_me: failed program was:" >&5
22405 sed 's/^/| /' conftest.$ac_ext >&5
22406
22407         eval "$as_ac_var=no"
22408 fi
22409
22410 rm -f conftest.err conftest.$ac_objext \
22411       conftest$ac_exeext conftest.$ac_ext
22412 fi
22413 ac_res=`eval echo '${'$as_ac_var'}'`
22414                { echo "$as_me:$LINENO: result: $ac_res" >&5
22415 echo "${ECHO_T}$ac_res" >&6; }
22416 if test `eval echo '${'$as_ac_var'}'` = yes; then
22417   cat >>confdefs.h <<_ACEOF
22418 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22419 _ACEOF
22420
22421 fi
22422 done
22423
22424
22425
22426   { echo "$as_me:$LINENO: checking if errno is properly declared" >&5
22427 echo $ECHO_N "checking if errno is properly declared... $ECHO_C" >&6; }
22428   if test "${gt_cv_var_errno_declaration+set}" = set; then
22429   echo $ECHO_N "(cached) $ECHO_C" >&6
22430 else
22431
22432     cat >conftest.$ac_ext <<_ACEOF
22433 /* confdefs.h.  */
22434 _ACEOF
22435 cat confdefs.h >>conftest.$ac_ext
22436 cat >>conftest.$ac_ext <<_ACEOF
22437 /* end confdefs.h.  */
22438 #include <errno.h>
22439       extern struct { int foo; } errno;
22440 int
22441 main ()
22442 {
22443 errno.foo = 1;
22444   ;
22445   return 0;
22446 }
22447 _ACEOF
22448 rm -f conftest.$ac_objext
22449 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22450   (eval $ac_compile) 2>conftest.er1
22451   ac_status=$?
22452   grep -v '^ *+' conftest.er1 >conftest.err
22453   rm -f conftest.er1
22454   cat conftest.err >&5
22455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22456   (exit $ac_status); } &&
22457          { ac_try='test -z "$ac_c_werror_flag"
22458                          || test ! -s conftest.err'
22459   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22460   (eval $ac_try) 2>&5
22461   ac_status=$?
22462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22463   (exit $ac_status); }; } &&
22464          { ac_try='test -s conftest.$ac_objext'
22465   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22466   (eval $ac_try) 2>&5
22467   ac_status=$?
22468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22469   (exit $ac_status); }; }; then
22470   gt_cv_var_errno_declaration=no
22471 else
22472   echo "$as_me: failed program was:" >&5
22473 sed 's/^/| /' conftest.$ac_ext >&5
22474
22475         gt_cv_var_errno_declaration=yes
22476 fi
22477
22478 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22479 fi
22480
22481   { echo "$as_me:$LINENO: result: $gt_cv_var_errno_declaration" >&5
22482 echo "${ECHO_T}$gt_cv_var_errno_declaration" >&6; }
22483   if test $gt_cv_var_errno_declaration = yes; then
22484
22485 cat >>confdefs.h <<\_ACEOF
22486 #define HAVE_ERRNO_DECL 1
22487 _ACEOF
22488
22489   fi
22490
22491
22492
22493   { echo "$as_me:$LINENO: checking if environ is properly declared" >&5
22494 echo $ECHO_N "checking if environ is properly declared... $ECHO_C" >&6; }
22495   if test "${gt_cv_var_environ_declaration+set}" = set; then
22496   echo $ECHO_N "(cached) $ECHO_C" >&6
22497 else
22498
22499     cat >conftest.$ac_ext <<_ACEOF
22500 /* confdefs.h.  */
22501 _ACEOF
22502 cat confdefs.h >>conftest.$ac_ext
22503 cat >>conftest.$ac_ext <<_ACEOF
22504 /* end confdefs.h.  */
22505 #include <unistd.h>
22506       extern struct { int foo; } environ;
22507 int
22508 main ()
22509 {
22510 environ.foo = 1;
22511   ;
22512   return 0;
22513 }
22514 _ACEOF
22515 rm -f conftest.$ac_objext
22516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22517   (eval $ac_compile) 2>conftest.er1
22518   ac_status=$?
22519   grep -v '^ *+' conftest.er1 >conftest.err
22520   rm -f conftest.er1
22521   cat conftest.err >&5
22522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22523   (exit $ac_status); } &&
22524          { ac_try='test -z "$ac_c_werror_flag"
22525                          || test ! -s conftest.err'
22526   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22527   (eval $ac_try) 2>&5
22528   ac_status=$?
22529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22530   (exit $ac_status); }; } &&
22531          { ac_try='test -s conftest.$ac_objext'
22532   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22533   (eval $ac_try) 2>&5
22534   ac_status=$?
22535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22536   (exit $ac_status); }; }; then
22537   gt_cv_var_environ_declaration=no
22538 else
22539   echo "$as_me: failed program was:" >&5
22540 sed 's/^/| /' conftest.$ac_ext >&5
22541
22542         gt_cv_var_environ_declaration=yes
22543 fi
22544
22545 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22546 fi
22547
22548   { echo "$as_me:$LINENO: result: $gt_cv_var_environ_declaration" >&5
22549 echo "${ECHO_T}$gt_cv_var_environ_declaration" >&6; }
22550   if test $gt_cv_var_environ_declaration = yes; then
22551
22552 cat >>confdefs.h <<\_ACEOF
22553 #define HAVE_ENVIRON_DECL 1
22554 _ACEOF
22555
22556   fi
22557
22558
22559   fi
22560   if test $ac_cv_func_unsetenv = no; then
22561
22562
22563   :
22564
22565
22566
22567
22568
22569
22570
22571   { echo "$as_me:$LINENO: checking if errno is properly declared" >&5
22572 echo $ECHO_N "checking if errno is properly declared... $ECHO_C" >&6; }
22573   if test "${gt_cv_var_errno_declaration+set}" = set; then
22574   echo $ECHO_N "(cached) $ECHO_C" >&6
22575 else
22576
22577     cat >conftest.$ac_ext <<_ACEOF
22578 /* confdefs.h.  */
22579 _ACEOF
22580 cat confdefs.h >>conftest.$ac_ext
22581 cat >>conftest.$ac_ext <<_ACEOF
22582 /* end confdefs.h.  */
22583 #include <errno.h>
22584       extern struct { int foo; } errno;
22585 int
22586 main ()
22587 {
22588 errno.foo = 1;
22589   ;
22590   return 0;
22591 }
22592 _ACEOF
22593 rm -f conftest.$ac_objext
22594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22595   (eval $ac_compile) 2>conftest.er1
22596   ac_status=$?
22597   grep -v '^ *+' conftest.er1 >conftest.err
22598   rm -f conftest.er1
22599   cat conftest.err >&5
22600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22601   (exit $ac_status); } &&
22602          { ac_try='test -z "$ac_c_werror_flag"
22603                          || test ! -s conftest.err'
22604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22605   (eval $ac_try) 2>&5
22606   ac_status=$?
22607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22608   (exit $ac_status); }; } &&
22609          { ac_try='test -s conftest.$ac_objext'
22610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22611   (eval $ac_try) 2>&5
22612   ac_status=$?
22613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22614   (exit $ac_status); }; }; then
22615   gt_cv_var_errno_declaration=no
22616 else
22617   echo "$as_me: failed program was:" >&5
22618 sed 's/^/| /' conftest.$ac_ext >&5
22619
22620         gt_cv_var_errno_declaration=yes
22621 fi
22622
22623 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22624 fi
22625
22626   { echo "$as_me:$LINENO: result: $gt_cv_var_errno_declaration" >&5
22627 echo "${ECHO_T}$gt_cv_var_errno_declaration" >&6; }
22628   if test $gt_cv_var_errno_declaration = yes; then
22629
22630 cat >>confdefs.h <<\_ACEOF
22631 #define HAVE_ERRNO_DECL 1
22632 _ACEOF
22633
22634   fi
22635
22636
22637
22638   { echo "$as_me:$LINENO: checking if environ is properly declared" >&5
22639 echo $ECHO_N "checking if environ is properly declared... $ECHO_C" >&6; }
22640   if test "${gt_cv_var_environ_declaration+set}" = set; then
22641   echo $ECHO_N "(cached) $ECHO_C" >&6
22642 else
22643
22644     cat >conftest.$ac_ext <<_ACEOF
22645 /* confdefs.h.  */
22646 _ACEOF
22647 cat confdefs.h >>conftest.$ac_ext
22648 cat >>conftest.$ac_ext <<_ACEOF
22649 /* end confdefs.h.  */
22650 #include <unistd.h>
22651       extern struct { int foo; } environ;
22652 int
22653 main ()
22654 {
22655 environ.foo = 1;
22656   ;
22657   return 0;
22658 }
22659 _ACEOF
22660 rm -f conftest.$ac_objext
22661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22662   (eval $ac_compile) 2>conftest.er1
22663   ac_status=$?
22664   grep -v '^ *+' conftest.er1 >conftest.err
22665   rm -f conftest.er1
22666   cat conftest.err >&5
22667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22668   (exit $ac_status); } &&
22669          { ac_try='test -z "$ac_c_werror_flag"
22670                          || test ! -s conftest.err'
22671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22672   (eval $ac_try) 2>&5
22673   ac_status=$?
22674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22675   (exit $ac_status); }; } &&
22676          { ac_try='test -s conftest.$ac_objext'
22677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22678   (eval $ac_try) 2>&5
22679   ac_status=$?
22680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22681   (exit $ac_status); }; }; then
22682   gt_cv_var_environ_declaration=no
22683 else
22684   echo "$as_me: failed program was:" >&5
22685 sed 's/^/| /' conftest.$ac_ext >&5
22686
22687         gt_cv_var_environ_declaration=yes
22688 fi
22689
22690 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22691 fi
22692
22693   { echo "$as_me:$LINENO: result: $gt_cv_var_environ_declaration" >&5
22694 echo "${ECHO_T}$gt_cv_var_environ_declaration" >&6; }
22695   if test $gt_cv_var_environ_declaration = yes; then
22696
22697 cat >>confdefs.h <<\_ACEOF
22698 #define HAVE_ENVIRON_DECL 1
22699 _ACEOF
22700
22701   fi
22702
22703
22704   else
22705     { echo "$as_me:$LINENO: checking for unsetenv() return type" >&5
22706 echo $ECHO_N "checking for unsetenv() return type... $ECHO_C" >&6; }
22707 if test "${gt_cv_func_unsetenv_ret+set}" = set; then
22708   echo $ECHO_N "(cached) $ECHO_C" >&6
22709 else
22710   cat >conftest.$ac_ext <<_ACEOF
22711 /* confdefs.h.  */
22712 _ACEOF
22713 cat confdefs.h >>conftest.$ac_ext
22714 cat >>conftest.$ac_ext <<_ACEOF
22715 /* end confdefs.h.  */
22716 #include <stdlib.h>
22717 extern
22718 #ifdef __cplusplus
22719 "C"
22720 #endif
22721 #if defined(__STDC__) || defined(__cplusplus)
22722 int unsetenv (const char *name);
22723 #else
22724 int unsetenv();
22725 #endif
22726
22727 int
22728 main ()
22729 {
22730
22731   ;
22732   return 0;
22733 }
22734 _ACEOF
22735 rm -f conftest.$ac_objext
22736 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22737   (eval $ac_compile) 2>conftest.er1
22738   ac_status=$?
22739   grep -v '^ *+' conftest.er1 >conftest.err
22740   rm -f conftest.er1
22741   cat conftest.err >&5
22742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22743   (exit $ac_status); } &&
22744          { ac_try='test -z "$ac_c_werror_flag"
22745                          || test ! -s conftest.err'
22746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22747   (eval $ac_try) 2>&5
22748   ac_status=$?
22749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22750   (exit $ac_status); }; } &&
22751          { ac_try='test -s conftest.$ac_objext'
22752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22753   (eval $ac_try) 2>&5
22754   ac_status=$?
22755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22756   (exit $ac_status); }; }; then
22757   gt_cv_func_unsetenv_ret='int'
22758 else
22759   echo "$as_me: failed program was:" >&5
22760 sed 's/^/| /' conftest.$ac_ext >&5
22761
22762         gt_cv_func_unsetenv_ret='void'
22763 fi
22764
22765 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22766 fi
22767 { echo "$as_me:$LINENO: result: $gt_cv_func_unsetenv_ret" >&5
22768 echo "${ECHO_T}$gt_cv_func_unsetenv_ret" >&6; }
22769     if test $gt_cv_func_unsetenv_ret = 'void'; then
22770
22771 cat >>confdefs.h <<\_ACEOF
22772 #define VOID_UNSETENV 1
22773 _ACEOF
22774
22775     fi
22776   fi
22777
22778
22779
22780
22781
22782 for ac_func in sig2str
22783 do
22784 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22785 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22786 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22787 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22788   echo $ECHO_N "(cached) $ECHO_C" >&6
22789 else
22790   cat >conftest.$ac_ext <<_ACEOF
22791 /* confdefs.h.  */
22792 _ACEOF
22793 cat confdefs.h >>conftest.$ac_ext
22794 cat >>conftest.$ac_ext <<_ACEOF
22795 /* end confdefs.h.  */
22796 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22797    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22798 #define $ac_func innocuous_$ac_func
22799
22800 /* System header to define __stub macros and hopefully few prototypes,
22801     which can conflict with char $ac_func (); below.
22802     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22803     <limits.h> exists even on freestanding compilers.  */
22804
22805 #ifdef __STDC__
22806 # include <limits.h>
22807 #else
22808 # include <assert.h>
22809 #endif
22810
22811 #undef $ac_func
22812
22813 /* Override any GCC internal prototype to avoid an error.
22814    Use char because int might match the return type of a GCC
22815    builtin and then its argument prototype would still apply.  */
22816 #ifdef __cplusplus
22817 extern "C"
22818 #endif
22819 char $ac_func ();
22820 /* The GNU C library defines this for functions which it implements
22821     to always fail with ENOSYS.  Some functions are actually named
22822     something starting with __ and the normal name is an alias.  */
22823 #if defined __stub_$ac_func || defined __stub___$ac_func
22824 choke me
22825 #endif
22826
22827 int
22828 main ()
22829 {
22830 return $ac_func ();
22831   ;
22832   return 0;
22833 }
22834 _ACEOF
22835 rm -f conftest.$ac_objext conftest$ac_exeext
22836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22837   (eval $ac_link) 2>conftest.er1
22838   ac_status=$?
22839   grep -v '^ *+' conftest.er1 >conftest.err
22840   rm -f conftest.er1
22841   cat conftest.err >&5
22842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22843   (exit $ac_status); } &&
22844          { ac_try='test -z "$ac_c_werror_flag"
22845                          || test ! -s conftest.err'
22846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22847   (eval $ac_try) 2>&5
22848   ac_status=$?
22849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22850   (exit $ac_status); }; } &&
22851          { ac_try='test -s conftest$ac_exeext'
22852   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22853   (eval $ac_try) 2>&5
22854   ac_status=$?
22855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22856   (exit $ac_status); }; }; then
22857   eval "$as_ac_var=yes"
22858 else
22859   echo "$as_me: failed program was:" >&5
22860 sed 's/^/| /' conftest.$ac_ext >&5
22861
22862         eval "$as_ac_var=no"
22863 fi
22864
22865 rm -f conftest.err conftest.$ac_objext \
22866       conftest$ac_exeext conftest.$ac_ext
22867 fi
22868 ac_res=`eval echo '${'$as_ac_var'}'`
22869                { echo "$as_me:$LINENO: result: $ac_res" >&5
22870 echo "${ECHO_T}$ac_res" >&6; }
22871 if test `eval echo '${'$as_ac_var'}'` = yes; then
22872   cat >>confdefs.h <<_ACEOF
22873 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22874 _ACEOF
22875
22876 else
22877   case " $LIBOBJS " in
22878   *" $ac_func.$ac_objext "* ) ;;
22879   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
22880  ;;
22881 esac
22882
22883 fi
22884 done
22885
22886
22887   if test $ac_cv_func_sig2str = no; then
22888
22889   :
22890
22891   fi
22892
22893
22894
22895
22896
22897 for ac_func in stpcpy
22898 do
22899 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22900 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22901 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22902 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22903   echo $ECHO_N "(cached) $ECHO_C" >&6
22904 else
22905   cat >conftest.$ac_ext <<_ACEOF
22906 /* confdefs.h.  */
22907 _ACEOF
22908 cat confdefs.h >>conftest.$ac_ext
22909 cat >>conftest.$ac_ext <<_ACEOF
22910 /* end confdefs.h.  */
22911 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22912    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22913 #define $ac_func innocuous_$ac_func
22914
22915 /* System header to define __stub macros and hopefully few prototypes,
22916     which can conflict with char $ac_func (); below.
22917     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22918     <limits.h> exists even on freestanding compilers.  */
22919
22920 #ifdef __STDC__
22921 # include <limits.h>
22922 #else
22923 # include <assert.h>
22924 #endif
22925
22926 #undef $ac_func
22927
22928 /* Override any GCC internal prototype to avoid an error.
22929    Use char because int might match the return type of a GCC
22930    builtin and then its argument prototype would still apply.  */
22931 #ifdef __cplusplus
22932 extern "C"
22933 #endif
22934 char $ac_func ();
22935 /* The GNU C library defines this for functions which it implements
22936     to always fail with ENOSYS.  Some functions are actually named
22937     something starting with __ and the normal name is an alias.  */
22938 #if defined __stub_$ac_func || defined __stub___$ac_func
22939 choke me
22940 #endif
22941
22942 int
22943 main ()
22944 {
22945 return $ac_func ();
22946   ;
22947   return 0;
22948 }
22949 _ACEOF
22950 rm -f conftest.$ac_objext conftest$ac_exeext
22951 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22952   (eval $ac_link) 2>conftest.er1
22953   ac_status=$?
22954   grep -v '^ *+' conftest.er1 >conftest.err
22955   rm -f conftest.er1
22956   cat conftest.err >&5
22957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22958   (exit $ac_status); } &&
22959          { ac_try='test -z "$ac_c_werror_flag"
22960                          || test ! -s conftest.err'
22961   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22962   (eval $ac_try) 2>&5
22963   ac_status=$?
22964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22965   (exit $ac_status); }; } &&
22966          { ac_try='test -s conftest$ac_exeext'
22967   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22968   (eval $ac_try) 2>&5
22969   ac_status=$?
22970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22971   (exit $ac_status); }; }; then
22972   eval "$as_ac_var=yes"
22973 else
22974   echo "$as_me: failed program was:" >&5
22975 sed 's/^/| /' conftest.$ac_ext >&5
22976
22977         eval "$as_ac_var=no"
22978 fi
22979
22980 rm -f conftest.err conftest.$ac_objext \
22981       conftest$ac_exeext conftest.$ac_ext
22982 fi
22983 ac_res=`eval echo '${'$as_ac_var'}'`
22984                { echo "$as_me:$LINENO: result: $ac_res" >&5
22985 echo "${ECHO_T}$ac_res" >&6; }
22986 if test `eval echo '${'$as_ac_var'}'` = yes; then
22987   cat >>confdefs.h <<_ACEOF
22988 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22989 _ACEOF
22990
22991 else
22992   case " $LIBOBJS " in
22993   *" $ac_func.$ac_objext "* ) ;;
22994   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
22995  ;;
22996 esac
22997
22998 fi
22999 done
23000
23001
23002   if test $ac_cv_func_stpcpy = no; then
23003
23004   :
23005
23006   fi
23007
23008
23009
23010 for ac_func in strcspn
23011 do
23012 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23013 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23014 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23015 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23016   echo $ECHO_N "(cached) $ECHO_C" >&6
23017 else
23018   cat >conftest.$ac_ext <<_ACEOF
23019 /* confdefs.h.  */
23020 _ACEOF
23021 cat confdefs.h >>conftest.$ac_ext
23022 cat >>conftest.$ac_ext <<_ACEOF
23023 /* end confdefs.h.  */
23024 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23025    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23026 #define $ac_func innocuous_$ac_func
23027
23028 /* System header to define __stub macros and hopefully few prototypes,
23029     which can conflict with char $ac_func (); below.
23030     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23031     <limits.h> exists even on freestanding compilers.  */
23032
23033 #ifdef __STDC__
23034 # include <limits.h>
23035 #else
23036 # include <assert.h>
23037 #endif
23038
23039 #undef $ac_func
23040
23041 /* Override any GCC internal prototype to avoid an error.
23042    Use char because int might match the return type of a GCC
23043    builtin and then its argument prototype would still apply.  */
23044 #ifdef __cplusplus
23045 extern "C"
23046 #endif
23047 char $ac_func ();
23048 /* The GNU C library defines this for functions which it implements
23049     to always fail with ENOSYS.  Some functions are actually named
23050     something starting with __ and the normal name is an alias.  */
23051 #if defined __stub_$ac_func || defined __stub___$ac_func
23052 choke me
23053 #endif
23054
23055 int
23056 main ()
23057 {
23058 return $ac_func ();
23059   ;
23060   return 0;
23061 }
23062 _ACEOF
23063 rm -f conftest.$ac_objext conftest$ac_exeext
23064 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23065   (eval $ac_link) 2>conftest.er1
23066   ac_status=$?
23067   grep -v '^ *+' conftest.er1 >conftest.err
23068   rm -f conftest.er1
23069   cat conftest.err >&5
23070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23071   (exit $ac_status); } &&
23072          { ac_try='test -z "$ac_c_werror_flag"
23073                          || test ! -s conftest.err'
23074   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23075   (eval $ac_try) 2>&5
23076   ac_status=$?
23077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23078   (exit $ac_status); }; } &&
23079          { ac_try='test -s conftest$ac_exeext'
23080   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23081   (eval $ac_try) 2>&5
23082   ac_status=$?
23083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23084   (exit $ac_status); }; }; then
23085   eval "$as_ac_var=yes"
23086 else
23087   echo "$as_me: failed program was:" >&5
23088 sed 's/^/| /' conftest.$ac_ext >&5
23089
23090         eval "$as_ac_var=no"
23091 fi
23092
23093 rm -f conftest.err conftest.$ac_objext \
23094       conftest$ac_exeext conftest.$ac_ext
23095 fi
23096 ac_res=`eval echo '${'$as_ac_var'}'`
23097                { echo "$as_me:$LINENO: result: $ac_res" >&5
23098 echo "${ECHO_T}$ac_res" >&6; }
23099 if test `eval echo '${'$as_ac_var'}'` = yes; then
23100   cat >>confdefs.h <<_ACEOF
23101 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23102 _ACEOF
23103
23104 else
23105   case " $LIBOBJS " in
23106   *" $ac_func.$ac_objext "* ) ;;
23107   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
23108  ;;
23109 esac
23110
23111 fi
23112 done
23113
23114
23115   if test $ac_cv_func_strcspn = no; then
23116     :
23117   fi
23118
23119
23120       { echo "$as_me:$LINENO: checking whether strdup is declared" >&5
23121 echo $ECHO_N "checking whether strdup is declared... $ECHO_C" >&6; }
23122 if test "${ac_cv_have_decl_strdup+set}" = set; then
23123   echo $ECHO_N "(cached) $ECHO_C" >&6
23124 else
23125   cat >conftest.$ac_ext <<_ACEOF
23126 /* confdefs.h.  */
23127 _ACEOF
23128 cat confdefs.h >>conftest.$ac_ext
23129 cat >>conftest.$ac_ext <<_ACEOF
23130 /* end confdefs.h.  */
23131 $ac_includes_default
23132 int
23133 main ()
23134 {
23135 #ifndef strdup
23136   char *p = (char *) strdup;
23137   return !p;
23138 #endif
23139
23140   ;
23141   return 0;
23142 }
23143 _ACEOF
23144 rm -f conftest.$ac_objext
23145 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23146   (eval $ac_compile) 2>conftest.er1
23147   ac_status=$?
23148   grep -v '^ *+' conftest.er1 >conftest.err
23149   rm -f conftest.er1
23150   cat conftest.err >&5
23151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23152   (exit $ac_status); } &&
23153          { ac_try='test -z "$ac_c_werror_flag"
23154                          || test ! -s conftest.err'
23155   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23156   (eval $ac_try) 2>&5
23157   ac_status=$?
23158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23159   (exit $ac_status); }; } &&
23160          { ac_try='test -s conftest.$ac_objext'
23161   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23162   (eval $ac_try) 2>&5
23163   ac_status=$?
23164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23165   (exit $ac_status); }; }; then
23166   ac_cv_have_decl_strdup=yes
23167 else
23168   echo "$as_me: failed program was:" >&5
23169 sed 's/^/| /' conftest.$ac_ext >&5
23170
23171         ac_cv_have_decl_strdup=no
23172 fi
23173
23174 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23175 fi
23176 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strdup" >&5
23177 echo "${ECHO_T}$ac_cv_have_decl_strdup" >&6; }
23178 if test $ac_cv_have_decl_strdup = yes; then
23179
23180 cat >>confdefs.h <<_ACEOF
23181 #define HAVE_DECL_STRDUP 1
23182 _ACEOF
23183
23184
23185 else
23186   cat >>confdefs.h <<_ACEOF
23187 #define HAVE_DECL_STRDUP 0
23188 _ACEOF
23189
23190
23191 fi
23192
23193
23194
23195
23196
23197
23198
23199 for ac_func in strdup
23200 do
23201 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23202 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23203 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23204 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23205   echo $ECHO_N "(cached) $ECHO_C" >&6
23206 else
23207   cat >conftest.$ac_ext <<_ACEOF
23208 /* confdefs.h.  */
23209 _ACEOF
23210 cat confdefs.h >>conftest.$ac_ext
23211 cat >>conftest.$ac_ext <<_ACEOF
23212 /* end confdefs.h.  */
23213 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23214    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23215 #define $ac_func innocuous_$ac_func
23216
23217 /* System header to define __stub macros and hopefully few prototypes,
23218     which can conflict with char $ac_func (); below.
23219     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23220     <limits.h> exists even on freestanding compilers.  */
23221
23222 #ifdef __STDC__
23223 # include <limits.h>
23224 #else
23225 # include <assert.h>
23226 #endif
23227
23228 #undef $ac_func
23229
23230 /* Override any GCC internal prototype to avoid an error.
23231    Use char because int might match the return type of a GCC
23232    builtin and then its argument prototype would still apply.  */
23233 #ifdef __cplusplus
23234 extern "C"
23235 #endif
23236 char $ac_func ();
23237 /* The GNU C library defines this for functions which it implements
23238     to always fail with ENOSYS.  Some functions are actually named
23239     something starting with __ and the normal name is an alias.  */
23240 #if defined __stub_$ac_func || defined __stub___$ac_func
23241 choke me
23242 #endif
23243
23244 int
23245 main ()
23246 {
23247 return $ac_func ();
23248   ;
23249   return 0;
23250 }
23251 _ACEOF
23252 rm -f conftest.$ac_objext conftest$ac_exeext
23253 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23254   (eval $ac_link) 2>conftest.er1
23255   ac_status=$?
23256   grep -v '^ *+' conftest.er1 >conftest.err
23257   rm -f conftest.er1
23258   cat conftest.err >&5
23259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23260   (exit $ac_status); } &&
23261          { ac_try='test -z "$ac_c_werror_flag"
23262                          || test ! -s conftest.err'
23263   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23264   (eval $ac_try) 2>&5
23265   ac_status=$?
23266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23267   (exit $ac_status); }; } &&
23268          { ac_try='test -s conftest$ac_exeext'
23269   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23270   (eval $ac_try) 2>&5
23271   ac_status=$?
23272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23273   (exit $ac_status); }; }; then
23274   eval "$as_ac_var=yes"
23275 else
23276   echo "$as_me: failed program was:" >&5
23277 sed 's/^/| /' conftest.$ac_ext >&5
23278
23279         eval "$as_ac_var=no"
23280 fi
23281
23282 rm -f conftest.err conftest.$ac_objext \
23283       conftest$ac_exeext conftest.$ac_ext
23284 fi
23285 ac_res=`eval echo '${'$as_ac_var'}'`
23286                { echo "$as_me:$LINENO: result: $ac_res" >&5
23287 echo "${ECHO_T}$ac_res" >&6; }
23288 if test `eval echo '${'$as_ac_var'}'` = yes; then
23289   cat >>confdefs.h <<_ACEOF
23290 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23291 _ACEOF
23292
23293 else
23294   case " $LIBOBJS " in
23295   *" $ac_func.$ac_objext "* ) ;;
23296   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
23297  ;;
23298 esac
23299
23300 fi
23301 done
23302
23303
23304
23305   :
23306
23307
23308
23309
23310
23311   :
23312
23313
23314
23315
23316
23317
23318
23319 for ac_func in strndup
23320 do
23321 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23322 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23323 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23324 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23325   echo $ECHO_N "(cached) $ECHO_C" >&6
23326 else
23327   cat >conftest.$ac_ext <<_ACEOF
23328 /* confdefs.h.  */
23329 _ACEOF
23330 cat confdefs.h >>conftest.$ac_ext
23331 cat >>conftest.$ac_ext <<_ACEOF
23332 /* end confdefs.h.  */
23333 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23334    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23335 #define $ac_func innocuous_$ac_func
23336
23337 /* System header to define __stub macros and hopefully few prototypes,
23338     which can conflict with char $ac_func (); below.
23339     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23340     <limits.h> exists even on freestanding compilers.  */
23341
23342 #ifdef __STDC__
23343 # include <limits.h>
23344 #else
23345 # include <assert.h>
23346 #endif
23347
23348 #undef $ac_func
23349
23350 /* Override any GCC internal prototype to avoid an error.
23351    Use char because int might match the return type of a GCC
23352    builtin and then its argument prototype would still apply.  */
23353 #ifdef __cplusplus
23354 extern "C"
23355 #endif
23356 char $ac_func ();
23357 /* The GNU C library defines this for functions which it implements
23358     to always fail with ENOSYS.  Some functions are actually named
23359     something starting with __ and the normal name is an alias.  */
23360 #if defined __stub_$ac_func || defined __stub___$ac_func
23361 choke me
23362 #endif
23363
23364 int
23365 main ()
23366 {
23367 return $ac_func ();
23368   ;
23369   return 0;
23370 }
23371 _ACEOF
23372 rm -f conftest.$ac_objext conftest$ac_exeext
23373 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23374   (eval $ac_link) 2>conftest.er1
23375   ac_status=$?
23376   grep -v '^ *+' conftest.er1 >conftest.err
23377   rm -f conftest.er1
23378   cat conftest.err >&5
23379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23380   (exit $ac_status); } &&
23381          { ac_try='test -z "$ac_c_werror_flag"
23382                          || test ! -s conftest.err'
23383   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23384   (eval $ac_try) 2>&5
23385   ac_status=$?
23386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23387   (exit $ac_status); }; } &&
23388          { ac_try='test -s conftest$ac_exeext'
23389   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23390   (eval $ac_try) 2>&5
23391   ac_status=$?
23392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23393   (exit $ac_status); }; }; then
23394   eval "$as_ac_var=yes"
23395 else
23396   echo "$as_me: failed program was:" >&5
23397 sed 's/^/| /' conftest.$ac_ext >&5
23398
23399         eval "$as_ac_var=no"
23400 fi
23401
23402 rm -f conftest.err conftest.$ac_objext \
23403       conftest$ac_exeext conftest.$ac_ext
23404 fi
23405 ac_res=`eval echo '${'$as_ac_var'}'`
23406                { echo "$as_me:$LINENO: result: $ac_res" >&5
23407 echo "${ECHO_T}$ac_res" >&6; }
23408 if test `eval echo '${'$as_ac_var'}'` = yes; then
23409   cat >>confdefs.h <<_ACEOF
23410 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23411 _ACEOF
23412
23413 else
23414   case " $LIBOBJS " in
23415   *" $ac_func.$ac_objext "* ) ;;
23416   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
23417  ;;
23418 esac
23419
23420 fi
23421 done
23422
23423
23424   if test $ac_cv_func_strndup = no; then
23425     :
23426   fi
23427
23428
23429       { echo "$as_me:$LINENO: checking whether strnlen is declared" >&5
23430 echo $ECHO_N "checking whether strnlen is declared... $ECHO_C" >&6; }
23431 if test "${ac_cv_have_decl_strnlen+set}" = set; then
23432   echo $ECHO_N "(cached) $ECHO_C" >&6
23433 else
23434   cat >conftest.$ac_ext <<_ACEOF
23435 /* confdefs.h.  */
23436 _ACEOF
23437 cat confdefs.h >>conftest.$ac_ext
23438 cat >>conftest.$ac_ext <<_ACEOF
23439 /* end confdefs.h.  */
23440 $ac_includes_default
23441 int
23442 main ()
23443 {
23444 #ifndef strnlen
23445   char *p = (char *) strnlen;
23446   return !p;
23447 #endif
23448
23449   ;
23450   return 0;
23451 }
23452 _ACEOF
23453 rm -f conftest.$ac_objext
23454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23455   (eval $ac_compile) 2>conftest.er1
23456   ac_status=$?
23457   grep -v '^ *+' conftest.er1 >conftest.err
23458   rm -f conftest.er1
23459   cat conftest.err >&5
23460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23461   (exit $ac_status); } &&
23462          { ac_try='test -z "$ac_c_werror_flag"
23463                          || test ! -s conftest.err'
23464   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23465   (eval $ac_try) 2>&5
23466   ac_status=$?
23467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23468   (exit $ac_status); }; } &&
23469          { ac_try='test -s conftest.$ac_objext'
23470   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23471   (eval $ac_try) 2>&5
23472   ac_status=$?
23473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23474   (exit $ac_status); }; }; then
23475   ac_cv_have_decl_strnlen=yes
23476 else
23477   echo "$as_me: failed program was:" >&5
23478 sed 's/^/| /' conftest.$ac_ext >&5
23479
23480         ac_cv_have_decl_strnlen=no
23481 fi
23482
23483 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23484 fi
23485 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strnlen" >&5
23486 echo "${ECHO_T}$ac_cv_have_decl_strnlen" >&6; }
23487 if test $ac_cv_have_decl_strnlen = yes; then
23488
23489 cat >>confdefs.h <<_ACEOF
23490 #define HAVE_DECL_STRNLEN 1
23491 _ACEOF
23492
23493
23494 else
23495   cat >>confdefs.h <<_ACEOF
23496 #define HAVE_DECL_STRNLEN 0
23497 _ACEOF
23498
23499
23500 fi
23501
23502
23503
23504
23505
23506
23507
23508
23509   { echo "$as_me:$LINENO: checking for working strnlen" >&5
23510 echo $ECHO_N "checking for working strnlen... $ECHO_C" >&6; }
23511 if test "${ac_cv_func_strnlen_working+set}" = set; then
23512   echo $ECHO_N "(cached) $ECHO_C" >&6
23513 else
23514   if test "$cross_compiling" = yes; then
23515   ac_cv_func_strnlen_working=no
23516 else
23517   cat >conftest.$ac_ext <<_ACEOF
23518 /* confdefs.h.  */
23519 _ACEOF
23520 cat confdefs.h >>conftest.$ac_ext
23521 cat >>conftest.$ac_ext <<_ACEOF
23522 /* end confdefs.h.  */
23523 $ac_includes_default
23524 int
23525 main ()
23526 {
23527
23528 #define S "foobar"
23529 #define S_LEN (sizeof S - 1)
23530
23531   /* At least one implementation is buggy: that of AIX 4.3 would
23532      give strnlen (S, 1) == 3.  */
23533
23534   int i;
23535   for (i = 0; i < S_LEN + 1; ++i)
23536     {
23537       int expected = i <= S_LEN ? i : S_LEN;
23538       if (strnlen (S, i) != expected)
23539         return 1;
23540     }
23541   return 0;
23542
23543   ;
23544   return 0;
23545 }
23546 _ACEOF
23547 rm -f conftest$ac_exeext
23548 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23549   (eval $ac_link) 2>&5
23550   ac_status=$?
23551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23552   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23553   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23554   (eval $ac_try) 2>&5
23555   ac_status=$?
23556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23557   (exit $ac_status); }; }; then
23558   ac_cv_func_strnlen_working=yes
23559 else
23560   echo "$as_me: program exited with status $ac_status" >&5
23561 echo "$as_me: failed program was:" >&5
23562 sed 's/^/| /' conftest.$ac_ext >&5
23563
23564 ( exit $ac_status )
23565 ac_cv_func_strnlen_working=no
23566 fi
23567 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23568 fi
23569
23570
23571 fi
23572 { echo "$as_me:$LINENO: result: $ac_cv_func_strnlen_working" >&5
23573 echo "${ECHO_T}$ac_cv_func_strnlen_working" >&6; }
23574 test $ac_cv_func_strnlen_working = no && case " $LIBOBJS " in
23575   *" strnlen.$ac_objext "* ) ;;
23576   *) LIBOBJS="$LIBOBJS strnlen.$ac_objext"
23577  ;;
23578 esac
23579
23580
23581   if test $ac_cv_func_strnlen_working = no; then
23582     # This is necessary because automake-1.6.1 doens't understand
23583     # that the above use of AC_FUNC_STRNLEN means we may have to use
23584     # lib/strnlen.c.
23585     #AC_LIBOBJ(strnlen)
23586
23587 cat >>confdefs.h <<\_ACEOF
23588 #define strnlen rpl_strnlen
23589 _ACEOF
23590
23591
23592
23593   :
23594
23595
23596
23597
23598
23599
23600   fi
23601
23602
23603
23604 for ac_func in strpbrk
23605 do
23606 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23607 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23608 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23609 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23610   echo $ECHO_N "(cached) $ECHO_C" >&6
23611 else
23612   cat >conftest.$ac_ext <<_ACEOF
23613 /* confdefs.h.  */
23614 _ACEOF
23615 cat confdefs.h >>conftest.$ac_ext
23616 cat >>conftest.$ac_ext <<_ACEOF
23617 /* end confdefs.h.  */
23618 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23619    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23620 #define $ac_func innocuous_$ac_func
23621
23622 /* System header to define __stub macros and hopefully few prototypes,
23623     which can conflict with char $ac_func (); below.
23624     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23625     <limits.h> exists even on freestanding compilers.  */
23626
23627 #ifdef __STDC__
23628 # include <limits.h>
23629 #else
23630 # include <assert.h>
23631 #endif
23632
23633 #undef $ac_func
23634
23635 /* Override any GCC internal prototype to avoid an error.
23636    Use char because int might match the return type of a GCC
23637    builtin and then its argument prototype would still apply.  */
23638 #ifdef __cplusplus
23639 extern "C"
23640 #endif
23641 char $ac_func ();
23642 /* The GNU C library defines this for functions which it implements
23643     to always fail with ENOSYS.  Some functions are actually named
23644     something starting with __ and the normal name is an alias.  */
23645 #if defined __stub_$ac_func || defined __stub___$ac_func
23646 choke me
23647 #endif
23648
23649 int
23650 main ()
23651 {
23652 return $ac_func ();
23653   ;
23654   return 0;
23655 }
23656 _ACEOF
23657 rm -f conftest.$ac_objext conftest$ac_exeext
23658 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23659   (eval $ac_link) 2>conftest.er1
23660   ac_status=$?
23661   grep -v '^ *+' conftest.er1 >conftest.err
23662   rm -f conftest.er1
23663   cat conftest.err >&5
23664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23665   (exit $ac_status); } &&
23666          { ac_try='test -z "$ac_c_werror_flag"
23667                          || test ! -s conftest.err'
23668   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23669   (eval $ac_try) 2>&5
23670   ac_status=$?
23671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23672   (exit $ac_status); }; } &&
23673          { ac_try='test -s conftest$ac_exeext'
23674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23675   (eval $ac_try) 2>&5
23676   ac_status=$?
23677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23678   (exit $ac_status); }; }; then
23679   eval "$as_ac_var=yes"
23680 else
23681   echo "$as_me: failed program was:" >&5
23682 sed 's/^/| /' conftest.$ac_ext >&5
23683
23684         eval "$as_ac_var=no"
23685 fi
23686
23687 rm -f conftest.err conftest.$ac_objext \
23688       conftest$ac_exeext conftest.$ac_ext
23689 fi
23690 ac_res=`eval echo '${'$as_ac_var'}'`
23691                { echo "$as_me:$LINENO: result: $ac_res" >&5
23692 echo "${ECHO_T}$ac_res" >&6; }
23693 if test `eval echo '${'$as_ac_var'}'` = yes; then
23694   cat >>confdefs.h <<_ACEOF
23695 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23696 _ACEOF
23697
23698 else
23699   case " $LIBOBJS " in
23700   *" $ac_func.$ac_objext "* ) ;;
23701   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
23702  ;;
23703 esac
23704
23705 fi
23706 done
23707
23708
23709   if test $ac_cv_func_strpbrk = no; then
23710     :
23711   fi
23712
23713
23714     { echo "$as_me:$LINENO: checking whether mbrtowc and mbstate_t are properly declared" >&5
23715 echo $ECHO_N "checking whether mbrtowc and mbstate_t are properly declared... $ECHO_C" >&6; }
23716 if test "${gl_cv_func_mbrtowc+set}" = set; then
23717   echo $ECHO_N "(cached) $ECHO_C" >&6
23718 else
23719   cat >conftest.$ac_ext <<_ACEOF
23720 /* confdefs.h.  */
23721 _ACEOF
23722 cat confdefs.h >>conftest.$ac_ext
23723 cat >>conftest.$ac_ext <<_ACEOF
23724 /* end confdefs.h.  */
23725 #include <wchar.h>
23726 int
23727 main ()
23728 {
23729 wchar_t wc;
23730               char const s[] = "";
23731               size_t n = 1;
23732               mbstate_t state;
23733               return ! (sizeof state && (mbrtowc) (&wc, s, n, &state));
23734   ;
23735   return 0;
23736 }
23737 _ACEOF
23738 rm -f conftest.$ac_objext conftest$ac_exeext
23739 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23740   (eval $ac_link) 2>conftest.er1
23741   ac_status=$?
23742   grep -v '^ *+' conftest.er1 >conftest.err
23743   rm -f conftest.er1
23744   cat conftest.err >&5
23745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23746   (exit $ac_status); } &&
23747          { ac_try='test -z "$ac_c_werror_flag"
23748                          || test ! -s conftest.err'
23749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23750   (eval $ac_try) 2>&5
23751   ac_status=$?
23752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23753   (exit $ac_status); }; } &&
23754          { ac_try='test -s conftest$ac_exeext'
23755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23756   (eval $ac_try) 2>&5
23757   ac_status=$?
23758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23759   (exit $ac_status); }; }; then
23760   gl_cv_func_mbrtowc=yes
23761 else
23762   echo "$as_me: failed program was:" >&5
23763 sed 's/^/| /' conftest.$ac_ext >&5
23764
23765         gl_cv_func_mbrtowc=no
23766 fi
23767
23768 rm -f conftest.err conftest.$ac_objext \
23769       conftest$ac_exeext conftest.$ac_ext
23770 fi
23771 { echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc" >&5
23772 echo "${ECHO_T}$gl_cv_func_mbrtowc" >&6; }
23773   if test $gl_cv_func_mbrtowc = yes; then
23774
23775 cat >>confdefs.h <<\_ACEOF
23776 #define HAVE_MBRTOWC 1
23777 _ACEOF
23778
23779   fi
23780
23781
23782       case " $LIBOBJS " in
23783   *" strstr.$ac_objext "* ) ;;
23784   *) LIBOBJS="$LIBOBJS strstr.$ac_objext"
23785  ;;
23786 esac
23787
23788
23789
23790   :
23791
23792
23793 { echo "$as_me:$LINENO: checking for working strtod" >&5
23794 echo $ECHO_N "checking for working strtod... $ECHO_C" >&6; }
23795 if test "${ac_cv_func_strtod+set}" = set; then
23796   echo $ECHO_N "(cached) $ECHO_C" >&6
23797 else
23798   if test "$cross_compiling" = yes; then
23799   ac_cv_func_strtod=no
23800 else
23801   cat >conftest.$ac_ext <<_ACEOF
23802 /* confdefs.h.  */
23803 _ACEOF
23804 cat confdefs.h >>conftest.$ac_ext
23805 cat >>conftest.$ac_ext <<_ACEOF
23806 /* end confdefs.h.  */
23807
23808 $ac_includes_default
23809 #ifndef strtod
23810 double strtod ();
23811 #endif
23812 int
23813 main()
23814 {
23815   {
23816     /* Some versions of Linux strtod mis-parse strings with leading '+'.  */
23817     char *string = " +69";
23818     char *term;
23819     double value;
23820     value = strtod (string, &term);
23821     if (value != 69 || term != (string + 4))
23822       return 1;
23823   }
23824
23825   {
23826     /* Under Solaris 2.4, strtod returns the wrong value for the
23827        terminating character under some conditions.  */
23828     char *string = "NaN";
23829     char *term;
23830     strtod (string, &term);
23831     if (term != string && *(term - 1) == 0)
23832       return 1;
23833   }
23834   return 0;
23835 }
23836
23837 _ACEOF
23838 rm -f conftest$ac_exeext
23839 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23840   (eval $ac_link) 2>&5
23841   ac_status=$?
23842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23843   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23844   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23845   (eval $ac_try) 2>&5
23846   ac_status=$?
23847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23848   (exit $ac_status); }; }; then
23849   ac_cv_func_strtod=yes
23850 else
23851   echo "$as_me: program exited with status $ac_status" >&5
23852 echo "$as_me: failed program was:" >&5
23853 sed 's/^/| /' conftest.$ac_ext >&5
23854
23855 ( exit $ac_status )
23856 ac_cv_func_strtod=no
23857 fi
23858 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23859 fi
23860
23861
23862 fi
23863 { echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
23864 echo "${ECHO_T}$ac_cv_func_strtod" >&6; }
23865 if test $ac_cv_func_strtod = no; then
23866   case " $LIBOBJS " in
23867   *" strtod.$ac_objext "* ) ;;
23868   *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
23869  ;;
23870 esac
23871
23872 { echo "$as_me:$LINENO: checking for pow" >&5
23873 echo $ECHO_N "checking for pow... $ECHO_C" >&6; }
23874 if test "${ac_cv_func_pow+set}" = set; then
23875   echo $ECHO_N "(cached) $ECHO_C" >&6
23876 else
23877   cat >conftest.$ac_ext <<_ACEOF
23878 /* confdefs.h.  */
23879 _ACEOF
23880 cat confdefs.h >>conftest.$ac_ext
23881 cat >>conftest.$ac_ext <<_ACEOF
23882 /* end confdefs.h.  */
23883 /* Define pow to an innocuous variant, in case <limits.h> declares pow.
23884    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23885 #define pow innocuous_pow
23886
23887 /* System header to define __stub macros and hopefully few prototypes,
23888     which can conflict with char pow (); below.
23889     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23890     <limits.h> exists even on freestanding compilers.  */
23891
23892 #ifdef __STDC__
23893 # include <limits.h>
23894 #else
23895 # include <assert.h>
23896 #endif
23897
23898 #undef pow
23899
23900 /* Override any GCC internal prototype to avoid an error.
23901    Use char because int might match the return type of a GCC
23902    builtin and then its argument prototype would still apply.  */
23903 #ifdef __cplusplus
23904 extern "C"
23905 #endif
23906 char pow ();
23907 /* The GNU C library defines this for functions which it implements
23908     to always fail with ENOSYS.  Some functions are actually named
23909     something starting with __ and the normal name is an alias.  */
23910 #if defined __stub_pow || defined __stub___pow
23911 choke me
23912 #endif
23913
23914 int
23915 main ()
23916 {
23917 return pow ();
23918   ;
23919   return 0;
23920 }
23921 _ACEOF
23922 rm -f conftest.$ac_objext conftest$ac_exeext
23923 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23924   (eval $ac_link) 2>conftest.er1
23925   ac_status=$?
23926   grep -v '^ *+' conftest.er1 >conftest.err
23927   rm -f conftest.er1
23928   cat conftest.err >&5
23929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23930   (exit $ac_status); } &&
23931          { ac_try='test -z "$ac_c_werror_flag"
23932                          || test ! -s conftest.err'
23933   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23934   (eval $ac_try) 2>&5
23935   ac_status=$?
23936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23937   (exit $ac_status); }; } &&
23938          { ac_try='test -s conftest$ac_exeext'
23939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23940   (eval $ac_try) 2>&5
23941   ac_status=$?
23942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23943   (exit $ac_status); }; }; then
23944   ac_cv_func_pow=yes
23945 else
23946   echo "$as_me: failed program was:" >&5
23947 sed 's/^/| /' conftest.$ac_ext >&5
23948
23949         ac_cv_func_pow=no
23950 fi
23951
23952 rm -f conftest.err conftest.$ac_objext \
23953       conftest$ac_exeext conftest.$ac_ext
23954 fi
23955 { echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
23956 echo "${ECHO_T}$ac_cv_func_pow" >&6; }
23957
23958 if test $ac_cv_func_pow = no; then
23959   { echo "$as_me:$LINENO: checking for pow in -lm" >&5
23960 echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6; }
23961 if test "${ac_cv_lib_m_pow+set}" = set; then
23962   echo $ECHO_N "(cached) $ECHO_C" >&6
23963 else
23964   ac_check_lib_save_LIBS=$LIBS
23965 LIBS="-lm  $LIBS"
23966 cat >conftest.$ac_ext <<_ACEOF
23967 /* confdefs.h.  */
23968 _ACEOF
23969 cat confdefs.h >>conftest.$ac_ext
23970 cat >>conftest.$ac_ext <<_ACEOF
23971 /* end confdefs.h.  */
23972
23973 /* Override any GCC internal prototype to avoid an error.
23974    Use char because int might match the return type of a GCC
23975    builtin and then its argument prototype would still apply.  */
23976 #ifdef __cplusplus
23977 extern "C"
23978 #endif
23979 char pow ();
23980 int
23981 main ()
23982 {
23983 return pow ();
23984   ;
23985   return 0;
23986 }
23987 _ACEOF
23988 rm -f conftest.$ac_objext conftest$ac_exeext
23989 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23990   (eval $ac_link) 2>conftest.er1
23991   ac_status=$?
23992   grep -v '^ *+' conftest.er1 >conftest.err
23993   rm -f conftest.er1
23994   cat conftest.err >&5
23995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23996   (exit $ac_status); } &&
23997          { ac_try='test -z "$ac_c_werror_flag"
23998                          || test ! -s conftest.err'
23999   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24000   (eval $ac_try) 2>&5
24001   ac_status=$?
24002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24003   (exit $ac_status); }; } &&
24004          { ac_try='test -s conftest$ac_exeext'
24005   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24006   (eval $ac_try) 2>&5
24007   ac_status=$?
24008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24009   (exit $ac_status); }; }; then
24010   ac_cv_lib_m_pow=yes
24011 else
24012   echo "$as_me: failed program was:" >&5
24013 sed 's/^/| /' conftest.$ac_ext >&5
24014
24015         ac_cv_lib_m_pow=no
24016 fi
24017
24018 rm -f conftest.err conftest.$ac_objext \
24019       conftest$ac_exeext conftest.$ac_ext
24020 LIBS=$ac_check_lib_save_LIBS
24021 fi
24022 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
24023 echo "${ECHO_T}$ac_cv_lib_m_pow" >&6; }
24024 if test $ac_cv_lib_m_pow = yes; then
24025   POW_LIB=-lm
24026 else
24027   { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
24028 echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
24029 fi
24030
24031 fi
24032
24033 fi
24034
24035
24036
24037   if test $ac_cv_func_strtod = no; then
24038
24039 cat >>confdefs.h <<\_ACEOF
24040 #define strtod rpl_strtod
24041 _ACEOF
24042
24043
24044
24045
24046   :
24047
24048
24049
24050
24051
24052
24053   fi
24054
24055
24056
24057
24058
24059   { echo "$as_me:$LINENO: checking whether <inttypes.h> defines strtoimax as a macro" >&5
24060 echo $ECHO_N "checking whether <inttypes.h> defines strtoimax as a macro... $ECHO_C" >&6; }
24061 if test "${jm_cv_func_strtoimax_macro+set}" = set; then
24062   echo $ECHO_N "(cached) $ECHO_C" >&6
24063 else
24064   cat >conftest.$ac_ext <<_ACEOF
24065 /* confdefs.h.  */
24066 _ACEOF
24067 cat confdefs.h >>conftest.$ac_ext
24068 cat >>conftest.$ac_ext <<_ACEOF
24069 /* end confdefs.h.  */
24070 #include <inttypes.h>
24071 #ifdef strtoimax
24072  inttypes_h_defines_strtoimax
24073 #endif
24074 _ACEOF
24075 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24076   $EGREP "inttypes_h_defines_strtoimax" >/dev/null 2>&1; then
24077   jm_cv_func_strtoimax_macro=yes
24078 else
24079   jm_cv_func_strtoimax_macro=no
24080 fi
24081 rm -f conftest*
24082
24083 fi
24084 { echo "$as_me:$LINENO: result: $jm_cv_func_strtoimax_macro" >&5
24085 echo "${ECHO_T}$jm_cv_func_strtoimax_macro" >&6; }
24086
24087   if test "$jm_cv_func_strtoimax_macro" != yes; then
24088
24089 for ac_func in strtoimax
24090 do
24091 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24092 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24093 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24094 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24095   echo $ECHO_N "(cached) $ECHO_C" >&6
24096 else
24097   cat >conftest.$ac_ext <<_ACEOF
24098 /* confdefs.h.  */
24099 _ACEOF
24100 cat confdefs.h >>conftest.$ac_ext
24101 cat >>conftest.$ac_ext <<_ACEOF
24102 /* end confdefs.h.  */
24103 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24104    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24105 #define $ac_func innocuous_$ac_func
24106
24107 /* System header to define __stub macros and hopefully few prototypes,
24108     which can conflict with char $ac_func (); below.
24109     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24110     <limits.h> exists even on freestanding compilers.  */
24111
24112 #ifdef __STDC__
24113 # include <limits.h>
24114 #else
24115 # include <assert.h>
24116 #endif
24117
24118 #undef $ac_func
24119
24120 /* Override any GCC internal prototype to avoid an error.
24121    Use char because int might match the return type of a GCC
24122    builtin and then its argument prototype would still apply.  */
24123 #ifdef __cplusplus
24124 extern "C"
24125 #endif
24126 char $ac_func ();
24127 /* The GNU C library defines this for functions which it implements
24128     to always fail with ENOSYS.  Some functions are actually named
24129     something starting with __ and the normal name is an alias.  */
24130 #if defined __stub_$ac_func || defined __stub___$ac_func
24131 choke me
24132 #endif
24133
24134 int
24135 main ()
24136 {
24137 return $ac_func ();
24138   ;
24139   return 0;
24140 }
24141 _ACEOF
24142 rm -f conftest.$ac_objext conftest$ac_exeext
24143 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24144   (eval $ac_link) 2>conftest.er1
24145   ac_status=$?
24146   grep -v '^ *+' conftest.er1 >conftest.err
24147   rm -f conftest.er1
24148   cat conftest.err >&5
24149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24150   (exit $ac_status); } &&
24151          { ac_try='test -z "$ac_c_werror_flag"
24152                          || test ! -s conftest.err'
24153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24154   (eval $ac_try) 2>&5
24155   ac_status=$?
24156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24157   (exit $ac_status); }; } &&
24158          { ac_try='test -s conftest$ac_exeext'
24159   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24160   (eval $ac_try) 2>&5
24161   ac_status=$?
24162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24163   (exit $ac_status); }; }; then
24164   eval "$as_ac_var=yes"
24165 else
24166   echo "$as_me: failed program was:" >&5
24167 sed 's/^/| /' conftest.$ac_ext >&5
24168
24169         eval "$as_ac_var=no"
24170 fi
24171
24172 rm -f conftest.err conftest.$ac_objext \
24173       conftest$ac_exeext conftest.$ac_ext
24174 fi
24175 ac_res=`eval echo '${'$as_ac_var'}'`
24176                { echo "$as_me:$LINENO: result: $ac_res" >&5
24177 echo "${ECHO_T}$ac_res" >&6; }
24178 if test `eval echo '${'$as_ac_var'}'` = yes; then
24179   cat >>confdefs.h <<_ACEOF
24180 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24181 _ACEOF
24182
24183 else
24184   case " $LIBOBJS " in
24185   *" $ac_func.$ac_objext "* ) ;;
24186   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
24187  ;;
24188 esac
24189
24190 fi
24191 done
24192
24193
24194     if test $ac_cv_func_strtoimax = no; then
24195
24196
24197
24198
24199   if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
24200
24201     test $ac_cv_type_long_long = yes \
24202       && ac_type='long long' \
24203       || ac_type='long'
24204
24205 cat >>confdefs.h <<_ACEOF
24206 #define intmax_t $ac_type
24207 _ACEOF
24208
24209   else
24210
24211 cat >>confdefs.h <<\_ACEOF
24212 #define HAVE_INTMAX_T 1
24213 _ACEOF
24214
24215   fi
24216
24217   { echo "$as_me:$LINENO: checking whether strtoll is declared" >&5
24218 echo $ECHO_N "checking whether strtoll is declared... $ECHO_C" >&6; }
24219 if test "${ac_cv_have_decl_strtoll+set}" = set; then
24220   echo $ECHO_N "(cached) $ECHO_C" >&6
24221 else
24222   cat >conftest.$ac_ext <<_ACEOF
24223 /* confdefs.h.  */
24224 _ACEOF
24225 cat confdefs.h >>conftest.$ac_ext
24226 cat >>conftest.$ac_ext <<_ACEOF
24227 /* end confdefs.h.  */
24228 $ac_includes_default
24229 int
24230 main ()
24231 {
24232 #ifndef strtoll
24233   char *p = (char *) strtoll;
24234   return !p;
24235 #endif
24236
24237   ;
24238   return 0;
24239 }
24240 _ACEOF
24241 rm -f conftest.$ac_objext
24242 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24243   (eval $ac_compile) 2>conftest.er1
24244   ac_status=$?
24245   grep -v '^ *+' conftest.er1 >conftest.err
24246   rm -f conftest.er1
24247   cat conftest.err >&5
24248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24249   (exit $ac_status); } &&
24250          { ac_try='test -z "$ac_c_werror_flag"
24251                          || test ! -s conftest.err'
24252   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24253   (eval $ac_try) 2>&5
24254   ac_status=$?
24255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24256   (exit $ac_status); }; } &&
24257          { ac_try='test -s conftest.$ac_objext'
24258   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24259   (eval $ac_try) 2>&5
24260   ac_status=$?
24261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24262   (exit $ac_status); }; }; then
24263   ac_cv_have_decl_strtoll=yes
24264 else
24265   echo "$as_me: failed program was:" >&5
24266 sed 's/^/| /' conftest.$ac_ext >&5
24267
24268         ac_cv_have_decl_strtoll=no
24269 fi
24270
24271 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24272 fi
24273 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoll" >&5
24274 echo "${ECHO_T}$ac_cv_have_decl_strtoll" >&6; }
24275 if test $ac_cv_have_decl_strtoll = yes; then
24276
24277 cat >>confdefs.h <<_ACEOF
24278 #define HAVE_DECL_STRTOLL 1
24279 _ACEOF
24280
24281
24282 else
24283   cat >>confdefs.h <<_ACEOF
24284 #define HAVE_DECL_STRTOLL 0
24285 _ACEOF
24286
24287
24288 fi
24289
24290
24291
24292
24293     fi
24294   fi
24295
24296
24297
24298   if test "$ac_cv_type_long_long" = yes; then
24299
24300 for ac_func in strtoll
24301 do
24302 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24303 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24304 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24305 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24306   echo $ECHO_N "(cached) $ECHO_C" >&6
24307 else
24308   cat >conftest.$ac_ext <<_ACEOF
24309 /* confdefs.h.  */
24310 _ACEOF
24311 cat confdefs.h >>conftest.$ac_ext
24312 cat >>conftest.$ac_ext <<_ACEOF
24313 /* end confdefs.h.  */
24314 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24315    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24316 #define $ac_func innocuous_$ac_func
24317
24318 /* System header to define __stub macros and hopefully few prototypes,
24319     which can conflict with char $ac_func (); below.
24320     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24321     <limits.h> exists even on freestanding compilers.  */
24322
24323 #ifdef __STDC__
24324 # include <limits.h>
24325 #else
24326 # include <assert.h>
24327 #endif
24328
24329 #undef $ac_func
24330
24331 /* Override any GCC internal prototype to avoid an error.
24332    Use char because int might match the return type of a GCC
24333    builtin and then its argument prototype would still apply.  */
24334 #ifdef __cplusplus
24335 extern "C"
24336 #endif
24337 char $ac_func ();
24338 /* The GNU C library defines this for functions which it implements
24339     to always fail with ENOSYS.  Some functions are actually named
24340     something starting with __ and the normal name is an alias.  */
24341 #if defined __stub_$ac_func || defined __stub___$ac_func
24342 choke me
24343 #endif
24344
24345 int
24346 main ()
24347 {
24348 return $ac_func ();
24349   ;
24350   return 0;
24351 }
24352 _ACEOF
24353 rm -f conftest.$ac_objext conftest$ac_exeext
24354 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24355   (eval $ac_link) 2>conftest.er1
24356   ac_status=$?
24357   grep -v '^ *+' conftest.er1 >conftest.err
24358   rm -f conftest.er1
24359   cat conftest.err >&5
24360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24361   (exit $ac_status); } &&
24362          { ac_try='test -z "$ac_c_werror_flag"
24363                          || test ! -s conftest.err'
24364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24365   (eval $ac_try) 2>&5
24366   ac_status=$?
24367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24368   (exit $ac_status); }; } &&
24369          { ac_try='test -s conftest$ac_exeext'
24370   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24371   (eval $ac_try) 2>&5
24372   ac_status=$?
24373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24374   (exit $ac_status); }; }; then
24375   eval "$as_ac_var=yes"
24376 else
24377   echo "$as_me: failed program was:" >&5
24378 sed 's/^/| /' conftest.$ac_ext >&5
24379
24380         eval "$as_ac_var=no"
24381 fi
24382
24383 rm -f conftest.err conftest.$ac_objext \
24384       conftest$ac_exeext conftest.$ac_ext
24385 fi
24386 ac_res=`eval echo '${'$as_ac_var'}'`
24387                { echo "$as_me:$LINENO: result: $ac_res" >&5
24388 echo "${ECHO_T}$ac_res" >&6; }
24389 if test `eval echo '${'$as_ac_var'}'` = yes; then
24390   cat >>confdefs.h <<_ACEOF
24391 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24392 _ACEOF
24393
24394 else
24395   case " $LIBOBJS " in
24396   *" $ac_func.$ac_objext "* ) ;;
24397   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
24398  ;;
24399 esac
24400
24401 fi
24402 done
24403
24404
24405     if test $ac_cv_func_strtoll = no; then
24406
24407   :
24408
24409     fi
24410   fi
24411
24412
24413
24414 for ac_func in strtol
24415 do
24416 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24417 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24418 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24419 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24420   echo $ECHO_N "(cached) $ECHO_C" >&6
24421 else
24422   cat >conftest.$ac_ext <<_ACEOF
24423 /* confdefs.h.  */
24424 _ACEOF
24425 cat confdefs.h >>conftest.$ac_ext
24426 cat >>conftest.$ac_ext <<_ACEOF
24427 /* end confdefs.h.  */
24428 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24429    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24430 #define $ac_func innocuous_$ac_func
24431
24432 /* System header to define __stub macros and hopefully few prototypes,
24433     which can conflict with char $ac_func (); below.
24434     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24435     <limits.h> exists even on freestanding compilers.  */
24436
24437 #ifdef __STDC__
24438 # include <limits.h>
24439 #else
24440 # include <assert.h>
24441 #endif
24442
24443 #undef $ac_func
24444
24445 /* Override any GCC internal prototype to avoid an error.
24446    Use char because int might match the return type of a GCC
24447    builtin and then its argument prototype would still apply.  */
24448 #ifdef __cplusplus
24449 extern "C"
24450 #endif
24451 char $ac_func ();
24452 /* The GNU C library defines this for functions which it implements
24453     to always fail with ENOSYS.  Some functions are actually named
24454     something starting with __ and the normal name is an alias.  */
24455 #if defined __stub_$ac_func || defined __stub___$ac_func
24456 choke me
24457 #endif
24458
24459 int
24460 main ()
24461 {
24462 return $ac_func ();
24463   ;
24464   return 0;
24465 }
24466 _ACEOF
24467 rm -f conftest.$ac_objext conftest$ac_exeext
24468 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24469   (eval $ac_link) 2>conftest.er1
24470   ac_status=$?
24471   grep -v '^ *+' conftest.er1 >conftest.err
24472   rm -f conftest.er1
24473   cat conftest.err >&5
24474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24475   (exit $ac_status); } &&
24476          { ac_try='test -z "$ac_c_werror_flag"
24477                          || test ! -s conftest.err'
24478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24479   (eval $ac_try) 2>&5
24480   ac_status=$?
24481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24482   (exit $ac_status); }; } &&
24483          { ac_try='test -s conftest$ac_exeext'
24484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24485   (eval $ac_try) 2>&5
24486   ac_status=$?
24487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24488   (exit $ac_status); }; }; then
24489   eval "$as_ac_var=yes"
24490 else
24491   echo "$as_me: failed program was:" >&5
24492 sed 's/^/| /' conftest.$ac_ext >&5
24493
24494         eval "$as_ac_var=no"
24495 fi
24496
24497 rm -f conftest.err conftest.$ac_objext \
24498       conftest$ac_exeext conftest.$ac_ext
24499 fi
24500 ac_res=`eval echo '${'$as_ac_var'}'`
24501                { echo "$as_me:$LINENO: result: $ac_res" >&5
24502 echo "${ECHO_T}$ac_res" >&6; }
24503 if test `eval echo '${'$as_ac_var'}'` = yes; then
24504   cat >>confdefs.h <<_ACEOF
24505 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24506 _ACEOF
24507
24508 else
24509   case " $LIBOBJS " in
24510   *" $ac_func.$ac_objext "* ) ;;
24511   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
24512  ;;
24513 esac
24514
24515 fi
24516 done
24517
24518
24519   if test $ac_cv_func_strtol = no; then
24520
24521
24522
24523   :
24524
24525
24526
24527
24528
24529
24530   fi
24531
24532
24533
24534   if test "$ac_cv_type_unsigned_long_long" = yes; then
24535
24536 for ac_func in strtoull
24537 do
24538 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24539 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24540 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24541 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24542   echo $ECHO_N "(cached) $ECHO_C" >&6
24543 else
24544   cat >conftest.$ac_ext <<_ACEOF
24545 /* confdefs.h.  */
24546 _ACEOF
24547 cat confdefs.h >>conftest.$ac_ext
24548 cat >>conftest.$ac_ext <<_ACEOF
24549 /* end confdefs.h.  */
24550 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24551    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24552 #define $ac_func innocuous_$ac_func
24553
24554 /* System header to define __stub macros and hopefully few prototypes,
24555     which can conflict with char $ac_func (); below.
24556     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24557     <limits.h> exists even on freestanding compilers.  */
24558
24559 #ifdef __STDC__
24560 # include <limits.h>
24561 #else
24562 # include <assert.h>
24563 #endif
24564
24565 #undef $ac_func
24566
24567 /* Override any GCC internal prototype to avoid an error.
24568    Use char because int might match the return type of a GCC
24569    builtin and then its argument prototype would still apply.  */
24570 #ifdef __cplusplus
24571 extern "C"
24572 #endif
24573 char $ac_func ();
24574 /* The GNU C library defines this for functions which it implements
24575     to always fail with ENOSYS.  Some functions are actually named
24576     something starting with __ and the normal name is an alias.  */
24577 #if defined __stub_$ac_func || defined __stub___$ac_func
24578 choke me
24579 #endif
24580
24581 int
24582 main ()
24583 {
24584 return $ac_func ();
24585   ;
24586   return 0;
24587 }
24588 _ACEOF
24589 rm -f conftest.$ac_objext conftest$ac_exeext
24590 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24591   (eval $ac_link) 2>conftest.er1
24592   ac_status=$?
24593   grep -v '^ *+' conftest.er1 >conftest.err
24594   rm -f conftest.er1
24595   cat conftest.err >&5
24596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24597   (exit $ac_status); } &&
24598          { ac_try='test -z "$ac_c_werror_flag"
24599                          || test ! -s conftest.err'
24600   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24601   (eval $ac_try) 2>&5
24602   ac_status=$?
24603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24604   (exit $ac_status); }; } &&
24605          { ac_try='test -s conftest$ac_exeext'
24606   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24607   (eval $ac_try) 2>&5
24608   ac_status=$?
24609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24610   (exit $ac_status); }; }; then
24611   eval "$as_ac_var=yes"
24612 else
24613   echo "$as_me: failed program was:" >&5
24614 sed 's/^/| /' conftest.$ac_ext >&5
24615
24616         eval "$as_ac_var=no"
24617 fi
24618
24619 rm -f conftest.err conftest.$ac_objext \
24620       conftest$ac_exeext conftest.$ac_ext
24621 fi
24622 ac_res=`eval echo '${'$as_ac_var'}'`
24623                { echo "$as_me:$LINENO: result: $ac_res" >&5
24624 echo "${ECHO_T}$ac_res" >&6; }
24625 if test `eval echo '${'$as_ac_var'}'` = yes; then
24626   cat >>confdefs.h <<_ACEOF
24627 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24628 _ACEOF
24629
24630 else
24631   case " $LIBOBJS " in
24632   *" $ac_func.$ac_objext "* ) ;;
24633   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
24634  ;;
24635 esac
24636
24637 fi
24638 done
24639
24640
24641     if test $ac_cv_func_strtoull = no; then
24642
24643   :
24644
24645     fi
24646   fi
24647
24648
24649
24650 for ac_func in strtoul
24651 do
24652 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24653 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24654 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24655 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24656   echo $ECHO_N "(cached) $ECHO_C" >&6
24657 else
24658   cat >conftest.$ac_ext <<_ACEOF
24659 /* confdefs.h.  */
24660 _ACEOF
24661 cat confdefs.h >>conftest.$ac_ext
24662 cat >>conftest.$ac_ext <<_ACEOF
24663 /* end confdefs.h.  */
24664 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24665    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24666 #define $ac_func innocuous_$ac_func
24667
24668 /* System header to define __stub macros and hopefully few prototypes,
24669     which can conflict with char $ac_func (); below.
24670     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24671     <limits.h> exists even on freestanding compilers.  */
24672
24673 #ifdef __STDC__
24674 # include <limits.h>
24675 #else
24676 # include <assert.h>
24677 #endif
24678
24679 #undef $ac_func
24680
24681 /* Override any GCC internal prototype to avoid an error.
24682    Use char because int might match the return type of a GCC
24683    builtin and then its argument prototype would still apply.  */
24684 #ifdef __cplusplus
24685 extern "C"
24686 #endif
24687 char $ac_func ();
24688 /* The GNU C library defines this for functions which it implements
24689     to always fail with ENOSYS.  Some functions are actually named
24690     something starting with __ and the normal name is an alias.  */
24691 #if defined __stub_$ac_func || defined __stub___$ac_func
24692 choke me
24693 #endif
24694
24695 int
24696 main ()
24697 {
24698 return $ac_func ();
24699   ;
24700   return 0;
24701 }
24702 _ACEOF
24703 rm -f conftest.$ac_objext conftest$ac_exeext
24704 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24705   (eval $ac_link) 2>conftest.er1
24706   ac_status=$?
24707   grep -v '^ *+' conftest.er1 >conftest.err
24708   rm -f conftest.er1
24709   cat conftest.err >&5
24710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24711   (exit $ac_status); } &&
24712          { ac_try='test -z "$ac_c_werror_flag"
24713                          || test ! -s conftest.err'
24714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24715   (eval $ac_try) 2>&5
24716   ac_status=$?
24717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24718   (exit $ac_status); }; } &&
24719          { ac_try='test -s conftest$ac_exeext'
24720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24721   (eval $ac_try) 2>&5
24722   ac_status=$?
24723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24724   (exit $ac_status); }; }; then
24725   eval "$as_ac_var=yes"
24726 else
24727   echo "$as_me: failed program was:" >&5
24728 sed 's/^/| /' conftest.$ac_ext >&5
24729
24730         eval "$as_ac_var=no"
24731 fi
24732
24733 rm -f conftest.err conftest.$ac_objext \
24734       conftest$ac_exeext conftest.$ac_ext
24735 fi
24736 ac_res=`eval echo '${'$as_ac_var'}'`
24737                { echo "$as_me:$LINENO: result: $ac_res" >&5
24738 echo "${ECHO_T}$ac_res" >&6; }
24739 if test `eval echo '${'$as_ac_var'}'` = yes; then
24740   cat >>confdefs.h <<_ACEOF
24741 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24742 _ACEOF
24743
24744 else
24745   case " $LIBOBJS " in
24746   *" $ac_func.$ac_objext "* ) ;;
24747   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
24748  ;;
24749 esac
24750
24751 fi
24752 done
24753
24754
24755   if test $ac_cv_func_strtoul = no; then
24756
24757
24758
24759
24760   :
24761
24762
24763
24764
24765
24766
24767
24768   fi
24769
24770
24771
24772
24773
24774   { echo "$as_me:$LINENO: checking whether <inttypes.h> defines strtoumax as a macro" >&5
24775 echo $ECHO_N "checking whether <inttypes.h> defines strtoumax as a macro... $ECHO_C" >&6; }
24776 if test "${jm_cv_func_strtoumax_macro+set}" = set; then
24777   echo $ECHO_N "(cached) $ECHO_C" >&6
24778 else
24779   cat >conftest.$ac_ext <<_ACEOF
24780 /* confdefs.h.  */
24781 _ACEOF
24782 cat confdefs.h >>conftest.$ac_ext
24783 cat >>conftest.$ac_ext <<_ACEOF
24784 /* end confdefs.h.  */
24785 #include <inttypes.h>
24786 #ifdef strtoumax
24787  inttypes_h_defines_strtoumax
24788 #endif
24789 _ACEOF
24790 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24791   $EGREP "inttypes_h_defines_strtoumax" >/dev/null 2>&1; then
24792   jm_cv_func_strtoumax_macro=yes
24793 else
24794   jm_cv_func_strtoumax_macro=no
24795 fi
24796 rm -f conftest*
24797
24798 fi
24799 { echo "$as_me:$LINENO: result: $jm_cv_func_strtoumax_macro" >&5
24800 echo "${ECHO_T}$jm_cv_func_strtoumax_macro" >&6; }
24801
24802   if test "$jm_cv_func_strtoumax_macro" != yes; then
24803
24804 for ac_func in strtoumax
24805 do
24806 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24807 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24808 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24809 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24810   echo $ECHO_N "(cached) $ECHO_C" >&6
24811 else
24812   cat >conftest.$ac_ext <<_ACEOF
24813 /* confdefs.h.  */
24814 _ACEOF
24815 cat confdefs.h >>conftest.$ac_ext
24816 cat >>conftest.$ac_ext <<_ACEOF
24817 /* end confdefs.h.  */
24818 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24819    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24820 #define $ac_func innocuous_$ac_func
24821
24822 /* System header to define __stub macros and hopefully few prototypes,
24823     which can conflict with char $ac_func (); below.
24824     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24825     <limits.h> exists even on freestanding compilers.  */
24826
24827 #ifdef __STDC__
24828 # include <limits.h>
24829 #else
24830 # include <assert.h>
24831 #endif
24832
24833 #undef $ac_func
24834
24835 /* Override any GCC internal prototype to avoid an error.
24836    Use char because int might match the return type of a GCC
24837    builtin and then its argument prototype would still apply.  */
24838 #ifdef __cplusplus
24839 extern "C"
24840 #endif
24841 char $ac_func ();
24842 /* The GNU C library defines this for functions which it implements
24843     to always fail with ENOSYS.  Some functions are actually named
24844     something starting with __ and the normal name is an alias.  */
24845 #if defined __stub_$ac_func || defined __stub___$ac_func
24846 choke me
24847 #endif
24848
24849 int
24850 main ()
24851 {
24852 return $ac_func ();
24853   ;
24854   return 0;
24855 }
24856 _ACEOF
24857 rm -f conftest.$ac_objext conftest$ac_exeext
24858 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24859   (eval $ac_link) 2>conftest.er1
24860   ac_status=$?
24861   grep -v '^ *+' conftest.er1 >conftest.err
24862   rm -f conftest.er1
24863   cat conftest.err >&5
24864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24865   (exit $ac_status); } &&
24866          { ac_try='test -z "$ac_c_werror_flag"
24867                          || test ! -s conftest.err'
24868   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24869   (eval $ac_try) 2>&5
24870   ac_status=$?
24871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24872   (exit $ac_status); }; } &&
24873          { ac_try='test -s conftest$ac_exeext'
24874   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24875   (eval $ac_try) 2>&5
24876   ac_status=$?
24877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24878   (exit $ac_status); }; }; then
24879   eval "$as_ac_var=yes"
24880 else
24881   echo "$as_me: failed program was:" >&5
24882 sed 's/^/| /' conftest.$ac_ext >&5
24883
24884         eval "$as_ac_var=no"
24885 fi
24886
24887 rm -f conftest.err conftest.$ac_objext \
24888       conftest$ac_exeext conftest.$ac_ext
24889 fi
24890 ac_res=`eval echo '${'$as_ac_var'}'`
24891                { echo "$as_me:$LINENO: result: $ac_res" >&5
24892 echo "${ECHO_T}$ac_res" >&6; }
24893 if test `eval echo '${'$as_ac_var'}'` = yes; then
24894   cat >>confdefs.h <<_ACEOF
24895 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24896 _ACEOF
24897
24898 else
24899   case " $LIBOBJS " in
24900   *" $ac_func.$ac_objext "* ) ;;
24901   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
24902  ;;
24903 esac
24904
24905 fi
24906 done
24907
24908
24909     if test $ac_cv_func_strtoumax = no; then
24910
24911
24912
24913
24914   if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
24915
24916     test $ac_cv_type_unsigned_long_long = yes \
24917       && ac_type='unsigned long long' \
24918       || ac_type='unsigned long'
24919
24920 cat >>confdefs.h <<_ACEOF
24921 #define uintmax_t $ac_type
24922 _ACEOF
24923
24924   else
24925
24926 cat >>confdefs.h <<\_ACEOF
24927 #define HAVE_UINTMAX_T 1
24928 _ACEOF
24929
24930   fi
24931
24932   { echo "$as_me:$LINENO: checking whether strtoull is declared" >&5
24933 echo $ECHO_N "checking whether strtoull is declared... $ECHO_C" >&6; }
24934 if test "${ac_cv_have_decl_strtoull+set}" = set; then
24935   echo $ECHO_N "(cached) $ECHO_C" >&6
24936 else
24937   cat >conftest.$ac_ext <<_ACEOF
24938 /* confdefs.h.  */
24939 _ACEOF
24940 cat confdefs.h >>conftest.$ac_ext
24941 cat >>conftest.$ac_ext <<_ACEOF
24942 /* end confdefs.h.  */
24943 $ac_includes_default
24944 int
24945 main ()
24946 {
24947 #ifndef strtoull
24948   char *p = (char *) strtoull;
24949   return !p;
24950 #endif
24951
24952   ;
24953   return 0;
24954 }
24955 _ACEOF
24956 rm -f conftest.$ac_objext
24957 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24958   (eval $ac_compile) 2>conftest.er1
24959   ac_status=$?
24960   grep -v '^ *+' conftest.er1 >conftest.err
24961   rm -f conftest.er1
24962   cat conftest.err >&5
24963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24964   (exit $ac_status); } &&
24965          { ac_try='test -z "$ac_c_werror_flag"
24966                          || test ! -s conftest.err'
24967   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24968   (eval $ac_try) 2>&5
24969   ac_status=$?
24970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24971   (exit $ac_status); }; } &&
24972          { ac_try='test -s conftest.$ac_objext'
24973   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24974   (eval $ac_try) 2>&5
24975   ac_status=$?
24976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24977   (exit $ac_status); }; }; then
24978   ac_cv_have_decl_strtoull=yes
24979 else
24980   echo "$as_me: failed program was:" >&5
24981 sed 's/^/| /' conftest.$ac_ext >&5
24982
24983         ac_cv_have_decl_strtoull=no
24984 fi
24985
24986 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24987 fi
24988 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoull" >&5
24989 echo "${ECHO_T}$ac_cv_have_decl_strtoull" >&6; }
24990 if test $ac_cv_have_decl_strtoull = yes; then
24991
24992 cat >>confdefs.h <<_ACEOF
24993 #define HAVE_DECL_STRTOULL 1
24994 _ACEOF
24995
24996
24997 else
24998   cat >>confdefs.h <<_ACEOF
24999 #define HAVE_DECL_STRTOULL 0
25000 _ACEOF
25001
25002
25003 fi
25004
25005
25006
25007
25008     fi
25009   fi
25010
25011
25012
25013
25014
25015
25016
25017 for ac_func in strverscmp
25018 do
25019 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25020 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25021 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25022 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25023   echo $ECHO_N "(cached) $ECHO_C" >&6
25024 else
25025   cat >conftest.$ac_ext <<_ACEOF
25026 /* confdefs.h.  */
25027 _ACEOF
25028 cat confdefs.h >>conftest.$ac_ext
25029 cat >>conftest.$ac_ext <<_ACEOF
25030 /* end confdefs.h.  */
25031 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25032    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25033 #define $ac_func innocuous_$ac_func
25034
25035 /* System header to define __stub macros and hopefully few prototypes,
25036     which can conflict with char $ac_func (); below.
25037     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25038     <limits.h> exists even on freestanding compilers.  */
25039
25040 #ifdef __STDC__
25041 # include <limits.h>
25042 #else
25043 # include <assert.h>
25044 #endif
25045
25046 #undef $ac_func
25047
25048 /* Override any GCC internal prototype to avoid an error.
25049    Use char because int might match the return type of a GCC
25050    builtin and then its argument prototype would still apply.  */
25051 #ifdef __cplusplus
25052 extern "C"
25053 #endif
25054 char $ac_func ();
25055 /* The GNU C library defines this for functions which it implements
25056     to always fail with ENOSYS.  Some functions are actually named
25057     something starting with __ and the normal name is an alias.  */
25058 #if defined __stub_$ac_func || defined __stub___$ac_func
25059 choke me
25060 #endif
25061
25062 int
25063 main ()
25064 {
25065 return $ac_func ();
25066   ;
25067   return 0;
25068 }
25069 _ACEOF
25070 rm -f conftest.$ac_objext conftest$ac_exeext
25071 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25072   (eval $ac_link) 2>conftest.er1
25073   ac_status=$?
25074   grep -v '^ *+' conftest.er1 >conftest.err
25075   rm -f conftest.er1
25076   cat conftest.err >&5
25077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25078   (exit $ac_status); } &&
25079          { ac_try='test -z "$ac_c_werror_flag"
25080                          || test ! -s conftest.err'
25081   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25082   (eval $ac_try) 2>&5
25083   ac_status=$?
25084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25085   (exit $ac_status); }; } &&
25086          { ac_try='test -s conftest$ac_exeext'
25087   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25088   (eval $ac_try) 2>&5
25089   ac_status=$?
25090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25091   (exit $ac_status); }; }; then
25092   eval "$as_ac_var=yes"
25093 else
25094   echo "$as_me: failed program was:" >&5
25095 sed 's/^/| /' conftest.$ac_ext >&5
25096
25097         eval "$as_ac_var=no"
25098 fi
25099
25100 rm -f conftest.err conftest.$ac_objext \
25101       conftest$ac_exeext conftest.$ac_ext
25102 fi
25103 ac_res=`eval echo '${'$as_ac_var'}'`
25104                { echo "$as_me:$LINENO: result: $ac_res" >&5
25105 echo "${ECHO_T}$ac_res" >&6; }
25106 if test `eval echo '${'$as_ac_var'}'` = yes; then
25107   cat >>confdefs.h <<_ACEOF
25108 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25109 _ACEOF
25110
25111 else
25112   case " $LIBOBJS " in
25113   *" $ac_func.$ac_objext "* ) ;;
25114   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
25115  ;;
25116 esac
25117
25118 fi
25119 done
25120
25121
25122   if test $ac_cv_func_strverscmp = no; then
25123
25124   :
25125
25126   fi
25127
25128
25129
25130   { echo "$as_me:$LINENO: checking whether tzset clobbers localtime buffer" >&5
25131 echo $ECHO_N "checking whether tzset clobbers localtime buffer... $ECHO_C" >&6; }
25132 if test "${gl_cv_func_tzset_clobber+set}" = set; then
25133   echo $ECHO_N "(cached) $ECHO_C" >&6
25134 else
25135
25136   if test "$cross_compiling" = yes; then
25137   gl_cv_func_tzset_clobber=yes
25138 else
25139   cat >conftest.$ac_ext <<_ACEOF
25140 /* confdefs.h.  */
25141 _ACEOF
25142 cat confdefs.h >>conftest.$ac_ext
25143 cat >>conftest.$ac_ext <<_ACEOF
25144 /* end confdefs.h.  */
25145
25146 #if TIME_WITH_SYS_TIME
25147 # include <sys/time.h>
25148 # include <time.h>
25149 #else
25150 # if HAVE_SYS_TIME_H
25151 #  include <sys/time.h>
25152 # else
25153 #  include <time.h>
25154 # endif
25155 #endif
25156 #include <stdlib.h>
25157
25158 int
25159 main ()
25160 {
25161   time_t t1 = 853958121;
25162   struct tm *p, s;
25163   putenv ("TZ=GMT0");
25164   p = localtime (&t1);
25165   s = *p;
25166   putenv ("TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00");
25167   tzset ();
25168   exit (p->tm_year != s.tm_year
25169         || p->tm_mon != s.tm_mon
25170         || p->tm_mday != s.tm_mday
25171         || p->tm_hour != s.tm_hour
25172         || p->tm_min != s.tm_min
25173         || p->tm_sec != s.tm_sec);
25174 }
25175
25176 _ACEOF
25177 rm -f conftest$ac_exeext
25178 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25179   (eval $ac_link) 2>&5
25180   ac_status=$?
25181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25182   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25183   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25184   (eval $ac_try) 2>&5
25185   ac_status=$?
25186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25187   (exit $ac_status); }; }; then
25188   gl_cv_func_tzset_clobber=no
25189 else
25190   echo "$as_me: program exited with status $ac_status" >&5
25191 echo "$as_me: failed program was:" >&5
25192 sed 's/^/| /' conftest.$ac_ext >&5
25193
25194 ( exit $ac_status )
25195 gl_cv_func_tzset_clobber=yes
25196 fi
25197 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25198 fi
25199
25200
25201 fi
25202 { echo "$as_me:$LINENO: result: $gl_cv_func_tzset_clobber" >&5
25203 echo "${ECHO_T}$gl_cv_func_tzset_clobber" >&6; }
25204
25205
25206 cat >>confdefs.h <<\_ACEOF
25207 #define HAVE_RUN_TZSET_TEST 1
25208 _ACEOF
25209
25210
25211   if test $gl_cv_func_tzset_clobber = yes; then
25212
25213   case " $LIBOBJS " in
25214   *" gettimeofday.$ac_objext "* ) ;;
25215   *) LIBOBJS="$LIBOBJS gettimeofday.$ac_objext"
25216  ;;
25217 esac
25218
25219
25220 cat >>confdefs.h <<\_ACEOF
25221 #define gmtime rpl_gmtime
25222 _ACEOF
25223
25224
25225 cat >>confdefs.h <<\_ACEOF
25226 #define localtime rpl_localtime
25227 _ACEOF
25228
25229
25230
25231
25232 cat >>confdefs.h <<\_ACEOF
25233 #define tzset rpl_tzset
25234 _ACEOF
25235
25236
25237 cat >>confdefs.h <<\_ACEOF
25238 #define TZSET_CLOBBERS_LOCALTIME_BUFFER 1
25239 _ACEOF
25240
25241   fi
25242
25243
25244
25245   { echo "$as_me:$LINENO: checking for EOVERFLOW" >&5
25246 echo $ECHO_N "checking for EOVERFLOW... $ECHO_C" >&6; }
25247 if test "${ac_cv_decl_EOVERFLOW+set}" = set; then
25248   echo $ECHO_N "(cached) $ECHO_C" >&6
25249 else
25250
25251     cat >conftest.$ac_ext <<_ACEOF
25252 /* confdefs.h.  */
25253 _ACEOF
25254 cat confdefs.h >>conftest.$ac_ext
25255 cat >>conftest.$ac_ext <<_ACEOF
25256 /* end confdefs.h.  */
25257
25258 #include <errno.h>
25259 #ifdef EOVERFLOW
25260 yes
25261 #endif
25262
25263 _ACEOF
25264 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25265   $EGREP "yes" >/dev/null 2>&1; then
25266   have_eoverflow=1
25267 fi
25268 rm -f conftest*
25269
25270     if test -n "$have_eoverflow"; then
25271             ac_cv_decl_EOVERFLOW=yes
25272     else
25273       cat >conftest.$ac_ext <<_ACEOF
25274 /* confdefs.h.  */
25275 _ACEOF
25276 cat confdefs.h >>conftest.$ac_ext
25277 cat >>conftest.$ac_ext <<_ACEOF
25278 /* end confdefs.h.  */
25279
25280 #define _XOPEN_SOURCE_EXTENDED 1
25281 #include <errno.h>
25282 #ifdef EOVERFLOW
25283 yes
25284 #endif
25285
25286 _ACEOF
25287 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25288   $EGREP "yes" >/dev/null 2>&1; then
25289   have_eoverflow=1
25290 fi
25291 rm -f conftest*
25292
25293       if test -n "$have_eoverflow"; then
25294                         if test "$cross_compiling" = yes; then
25295   # Depending upon the size, compute the lo and hi bounds.
25296 cat >conftest.$ac_ext <<_ACEOF
25297 /* confdefs.h.  */
25298 _ACEOF
25299 cat confdefs.h >>conftest.$ac_ext
25300 cat >>conftest.$ac_ext <<_ACEOF
25301 /* end confdefs.h.  */
25302
25303 #define _XOPEN_SOURCE_EXTENDED 1
25304 #include <errno.h>
25305 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
25306 #include <stdio.h>
25307 #include <stdlib.h>
25308
25309 int
25310 main ()
25311 {
25312 static int test_array [1 - 2 * !((EOVERFLOW) >= 0)];
25313 test_array [0] = 0
25314
25315   ;
25316   return 0;
25317 }
25318 _ACEOF
25319 rm -f conftest.$ac_objext
25320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25321   (eval $ac_compile) 2>conftest.er1
25322   ac_status=$?
25323   grep -v '^ *+' conftest.er1 >conftest.err
25324   rm -f conftest.er1
25325   cat conftest.err >&5
25326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25327   (exit $ac_status); } &&
25328          { ac_try='test -z "$ac_c_werror_flag"
25329                          || test ! -s conftest.err'
25330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25331   (eval $ac_try) 2>&5
25332   ac_status=$?
25333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25334   (exit $ac_status); }; } &&
25335          { ac_try='test -s conftest.$ac_objext'
25336   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25337   (eval $ac_try) 2>&5
25338   ac_status=$?
25339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25340   (exit $ac_status); }; }; then
25341   ac_lo=0 ac_mid=0
25342   while :; do
25343     cat >conftest.$ac_ext <<_ACEOF
25344 /* confdefs.h.  */
25345 _ACEOF
25346 cat confdefs.h >>conftest.$ac_ext
25347 cat >>conftest.$ac_ext <<_ACEOF
25348 /* end confdefs.h.  */
25349
25350 #define _XOPEN_SOURCE_EXTENDED 1
25351 #include <errno.h>
25352 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
25353 #include <stdio.h>
25354 #include <stdlib.h>
25355
25356 int
25357 main ()
25358 {
25359 static int test_array [1 - 2 * !((EOVERFLOW) <= $ac_mid)];
25360 test_array [0] = 0
25361
25362   ;
25363   return 0;
25364 }
25365 _ACEOF
25366 rm -f conftest.$ac_objext
25367 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25368   (eval $ac_compile) 2>conftest.er1
25369   ac_status=$?
25370   grep -v '^ *+' conftest.er1 >conftest.err
25371   rm -f conftest.er1
25372   cat conftest.err >&5
25373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25374   (exit $ac_status); } &&
25375          { ac_try='test -z "$ac_c_werror_flag"
25376                          || test ! -s conftest.err'
25377   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25378   (eval $ac_try) 2>&5
25379   ac_status=$?
25380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25381   (exit $ac_status); }; } &&
25382          { ac_try='test -s conftest.$ac_objext'
25383   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25384   (eval $ac_try) 2>&5
25385   ac_status=$?
25386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25387   (exit $ac_status); }; }; then
25388   ac_hi=$ac_mid; break
25389 else
25390   echo "$as_me: failed program was:" >&5
25391 sed 's/^/| /' conftest.$ac_ext >&5
25392
25393         ac_lo=`expr $ac_mid + 1`
25394                         if test $ac_lo -le $ac_mid; then
25395                           ac_lo= ac_hi=
25396                           break
25397                         fi
25398                         ac_mid=`expr 2 '*' $ac_mid + 1`
25399 fi
25400
25401 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25402   done
25403 else
25404   echo "$as_me: failed program was:" >&5
25405 sed 's/^/| /' conftest.$ac_ext >&5
25406
25407         cat >conftest.$ac_ext <<_ACEOF
25408 /* confdefs.h.  */
25409 _ACEOF
25410 cat confdefs.h >>conftest.$ac_ext
25411 cat >>conftest.$ac_ext <<_ACEOF
25412 /* end confdefs.h.  */
25413
25414 #define _XOPEN_SOURCE_EXTENDED 1
25415 #include <errno.h>
25416 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
25417 #include <stdio.h>
25418 #include <stdlib.h>
25419
25420 int
25421 main ()
25422 {
25423 static int test_array [1 - 2 * !((EOVERFLOW) < 0)];
25424 test_array [0] = 0
25425
25426   ;
25427   return 0;
25428 }
25429 _ACEOF
25430 rm -f conftest.$ac_objext
25431 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25432   (eval $ac_compile) 2>conftest.er1
25433   ac_status=$?
25434   grep -v '^ *+' conftest.er1 >conftest.err
25435   rm -f conftest.er1
25436   cat conftest.err >&5
25437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25438   (exit $ac_status); } &&
25439          { ac_try='test -z "$ac_c_werror_flag"
25440                          || test ! -s conftest.err'
25441   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25442   (eval $ac_try) 2>&5
25443   ac_status=$?
25444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25445   (exit $ac_status); }; } &&
25446          { ac_try='test -s conftest.$ac_objext'
25447   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25448   (eval $ac_try) 2>&5
25449   ac_status=$?
25450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25451   (exit $ac_status); }; }; then
25452   ac_hi=-1 ac_mid=-1
25453   while :; do
25454     cat >conftest.$ac_ext <<_ACEOF
25455 /* confdefs.h.  */
25456 _ACEOF
25457 cat confdefs.h >>conftest.$ac_ext
25458 cat >>conftest.$ac_ext <<_ACEOF
25459 /* end confdefs.h.  */
25460
25461 #define _XOPEN_SOURCE_EXTENDED 1
25462 #include <errno.h>
25463 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
25464 #include <stdio.h>
25465 #include <stdlib.h>
25466
25467 int
25468 main ()
25469 {
25470 static int test_array [1 - 2 * !((EOVERFLOW) >= $ac_mid)];
25471 test_array [0] = 0
25472
25473   ;
25474   return 0;
25475 }
25476 _ACEOF
25477 rm -f conftest.$ac_objext
25478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25479   (eval $ac_compile) 2>conftest.er1
25480   ac_status=$?
25481   grep -v '^ *+' conftest.er1 >conftest.err
25482   rm -f conftest.er1
25483   cat conftest.err >&5
25484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25485   (exit $ac_status); } &&
25486          { ac_try='test -z "$ac_c_werror_flag"
25487                          || test ! -s conftest.err'
25488   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25489   (eval $ac_try) 2>&5
25490   ac_status=$?
25491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25492   (exit $ac_status); }; } &&
25493          { ac_try='test -s conftest.$ac_objext'
25494   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25495   (eval $ac_try) 2>&5
25496   ac_status=$?
25497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25498   (exit $ac_status); }; }; then
25499   ac_lo=$ac_mid; break
25500 else
25501   echo "$as_me: failed program was:" >&5
25502 sed 's/^/| /' conftest.$ac_ext >&5
25503
25504         ac_hi=`expr '(' $ac_mid ')' - 1`
25505                         if test $ac_mid -le $ac_hi; then
25506                           ac_lo= ac_hi=
25507                           break
25508                         fi
25509                         ac_mid=`expr 2 '*' $ac_mid`
25510 fi
25511
25512 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25513   done
25514 else
25515   echo "$as_me: failed program was:" >&5
25516 sed 's/^/| /' conftest.$ac_ext >&5
25517
25518         ac_lo= ac_hi=
25519 fi
25520
25521 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25522 fi
25523
25524 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25525 # Binary search between lo and hi bounds.
25526 while test "x$ac_lo" != "x$ac_hi"; do
25527   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25528   cat >conftest.$ac_ext <<_ACEOF
25529 /* confdefs.h.  */
25530 _ACEOF
25531 cat confdefs.h >>conftest.$ac_ext
25532 cat >>conftest.$ac_ext <<_ACEOF
25533 /* end confdefs.h.  */
25534
25535 #define _XOPEN_SOURCE_EXTENDED 1
25536 #include <errno.h>
25537 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
25538 #include <stdio.h>
25539 #include <stdlib.h>
25540
25541 int
25542 main ()
25543 {
25544 static int test_array [1 - 2 * !((EOVERFLOW) <= $ac_mid)];
25545 test_array [0] = 0
25546
25547   ;
25548   return 0;
25549 }
25550 _ACEOF
25551 rm -f conftest.$ac_objext
25552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25553   (eval $ac_compile) 2>conftest.er1
25554   ac_status=$?
25555   grep -v '^ *+' conftest.er1 >conftest.err
25556   rm -f conftest.er1
25557   cat conftest.err >&5
25558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25559   (exit $ac_status); } &&
25560          { ac_try='test -z "$ac_c_werror_flag"
25561                          || test ! -s conftest.err'
25562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25563   (eval $ac_try) 2>&5
25564   ac_status=$?
25565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25566   (exit $ac_status); }; } &&
25567          { ac_try='test -s conftest.$ac_objext'
25568   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25569   (eval $ac_try) 2>&5
25570   ac_status=$?
25571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25572   (exit $ac_status); }; }; then
25573   ac_hi=$ac_mid
25574 else
25575   echo "$as_me: failed program was:" >&5
25576 sed 's/^/| /' conftest.$ac_ext >&5
25577
25578         ac_lo=`expr '(' $ac_mid ')' + 1`
25579 fi
25580
25581 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25582 done
25583 case $ac_lo in
25584 ?*) ac_cv_decl_EOVERFLOW=$ac_lo;;
25585 '')  ;;
25586 esac
25587 else
25588   cat >conftest.$ac_ext <<_ACEOF
25589 /* confdefs.h.  */
25590 _ACEOF
25591 cat confdefs.h >>conftest.$ac_ext
25592 cat >>conftest.$ac_ext <<_ACEOF
25593 /* end confdefs.h.  */
25594
25595 #define _XOPEN_SOURCE_EXTENDED 1
25596 #include <errno.h>
25597 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
25598 #include <stdio.h>
25599 #include <stdlib.h>
25600
25601 static long int longval () { return EOVERFLOW; }
25602 static unsigned long int ulongval () { return EOVERFLOW; }
25603 #include <stdio.h>
25604 #include <stdlib.h>
25605 int
25606 main ()
25607 {
25608
25609   FILE *f = fopen ("conftest.val", "w");
25610   if (! f)
25611     return 1;
25612   if ((EOVERFLOW) < 0)
25613     {
25614       long int i = longval ();
25615       if (i != (EOVERFLOW))
25616         return 1;
25617       fprintf (f, "%ld\n", i);
25618     }
25619   else
25620     {
25621       unsigned long int i = ulongval ();
25622       if (i != (EOVERFLOW))
25623         return 1;
25624       fprintf (f, "%lu\n", i);
25625     }
25626   return ferror (f) || fclose (f) != 0;
25627
25628   ;
25629   return 0;
25630 }
25631 _ACEOF
25632 rm -f conftest$ac_exeext
25633 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25634   (eval $ac_link) 2>&5
25635   ac_status=$?
25636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25637   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25638   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25639   (eval $ac_try) 2>&5
25640   ac_status=$?
25641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25642   (exit $ac_status); }; }; then
25643   ac_cv_decl_EOVERFLOW=`cat conftest.val`
25644 else
25645   echo "$as_me: program exited with status $ac_status" >&5
25646 echo "$as_me: failed program was:" >&5
25647 sed 's/^/| /' conftest.$ac_ext >&5
25648
25649 fi
25650 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25651 fi
25652 rm -f conftest.val
25653       else
25654                                 ac_cv_decl_EOVERFLOW=E2BIG
25655       fi
25656     fi
25657
25658 fi
25659 { echo "$as_me:$LINENO: result: $ac_cv_decl_EOVERFLOW" >&5
25660 echo "${ECHO_T}$ac_cv_decl_EOVERFLOW" >&6; }
25661   if test "$ac_cv_decl_EOVERFLOW" != yes; then
25662
25663 cat >>confdefs.h <<_ACEOF
25664 #define EOVERFLOW $ac_cv_decl_EOVERFLOW
25665 _ACEOF
25666
25667     EOVERFLOW="$ac_cv_decl_EOVERFLOW"
25668
25669   fi
25670
25671
25672   { echo "$as_me:$LINENO: checking for signed" >&5
25673 echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
25674 if test "${bh_cv_c_signed+set}" = set; then
25675   echo $ECHO_N "(cached) $ECHO_C" >&6
25676 else
25677   cat >conftest.$ac_ext <<_ACEOF
25678 /* confdefs.h.  */
25679 _ACEOF
25680 cat confdefs.h >>conftest.$ac_ext
25681 cat >>conftest.$ac_ext <<_ACEOF
25682 /* end confdefs.h.  */
25683
25684 int
25685 main ()
25686 {
25687 signed char x;
25688   ;
25689   return 0;
25690 }
25691 _ACEOF
25692 rm -f conftest.$ac_objext
25693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25694   (eval $ac_compile) 2>conftest.er1
25695   ac_status=$?
25696   grep -v '^ *+' conftest.er1 >conftest.err
25697   rm -f conftest.er1
25698   cat conftest.err >&5
25699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25700   (exit $ac_status); } &&
25701          { ac_try='test -z "$ac_c_werror_flag"
25702                          || test ! -s conftest.err'
25703   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25704   (eval $ac_try) 2>&5
25705   ac_status=$?
25706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25707   (exit $ac_status); }; } &&
25708          { ac_try='test -s conftest.$ac_objext'
25709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25710   (eval $ac_try) 2>&5
25711   ac_status=$?
25712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25713   (exit $ac_status); }; }; then
25714   bh_cv_c_signed=yes
25715 else
25716   echo "$as_me: failed program was:" >&5
25717 sed 's/^/| /' conftest.$ac_ext >&5
25718
25719         bh_cv_c_signed=no
25720 fi
25721
25722 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25723 fi
25724 { echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
25725 echo "${ECHO_T}$bh_cv_c_signed" >&6; }
25726   if test $bh_cv_c_signed = no; then
25727
25728 cat >>confdefs.h <<\_ACEOF
25729 #define signed
25730 _ACEOF
25731
25732   fi
25733
25734
25735   { echo "$as_me:$LINENO: checking for wchar_t" >&5
25736 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
25737 if test "${gt_cv_c_wchar_t+set}" = set; then
25738   echo $ECHO_N "(cached) $ECHO_C" >&6
25739 else
25740   cat >conftest.$ac_ext <<_ACEOF
25741 /* confdefs.h.  */
25742 _ACEOF
25743 cat confdefs.h >>conftest.$ac_ext
25744 cat >>conftest.$ac_ext <<_ACEOF
25745 /* end confdefs.h.  */
25746 #include <stddef.h>
25747        wchar_t foo = (wchar_t)'\0';
25748 int
25749 main ()
25750 {
25751
25752   ;
25753   return 0;
25754 }
25755 _ACEOF
25756 rm -f conftest.$ac_objext
25757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25758   (eval $ac_compile) 2>conftest.er1
25759   ac_status=$?
25760   grep -v '^ *+' conftest.er1 >conftest.err
25761   rm -f conftest.er1
25762   cat conftest.err >&5
25763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25764   (exit $ac_status); } &&
25765          { ac_try='test -z "$ac_c_werror_flag"
25766                          || test ! -s conftest.err'
25767   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25768   (eval $ac_try) 2>&5
25769   ac_status=$?
25770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25771   (exit $ac_status); }; } &&
25772          { ac_try='test -s conftest.$ac_objext'
25773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25774   (eval $ac_try) 2>&5
25775   ac_status=$?
25776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25777   (exit $ac_status); }; }; then
25778   gt_cv_c_wchar_t=yes
25779 else
25780   echo "$as_me: failed program was:" >&5
25781 sed 's/^/| /' conftest.$ac_ext >&5
25782
25783         gt_cv_c_wchar_t=no
25784 fi
25785
25786 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25787 fi
25788 { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
25789 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
25790   if test $gt_cv_c_wchar_t = yes; then
25791
25792 cat >>confdefs.h <<\_ACEOF
25793 #define HAVE_WCHAR_T 1
25794 _ACEOF
25795
25796   fi
25797
25798
25799   { echo "$as_me:$LINENO: checking for wint_t" >&5
25800 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
25801 if test "${gt_cv_c_wint_t+set}" = set; then
25802   echo $ECHO_N "(cached) $ECHO_C" >&6
25803 else
25804   cat >conftest.$ac_ext <<_ACEOF
25805 /* confdefs.h.  */
25806 _ACEOF
25807 cat confdefs.h >>conftest.$ac_ext
25808 cat >>conftest.$ac_ext <<_ACEOF
25809 /* end confdefs.h.  */
25810 #include <wchar.h>
25811        wint_t foo = (wchar_t)'\0';
25812 int
25813 main ()
25814 {
25815
25816   ;
25817   return 0;
25818 }
25819 _ACEOF
25820 rm -f conftest.$ac_objext
25821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25822   (eval $ac_compile) 2>conftest.er1
25823   ac_status=$?
25824   grep -v '^ *+' conftest.er1 >conftest.err
25825   rm -f conftest.er1
25826   cat conftest.err >&5
25827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25828   (exit $ac_status); } &&
25829          { ac_try='test -z "$ac_c_werror_flag"
25830                          || test ! -s conftest.err'
25831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25832   (eval $ac_try) 2>&5
25833   ac_status=$?
25834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25835   (exit $ac_status); }; } &&
25836          { ac_try='test -s conftest.$ac_objext'
25837   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25838   (eval $ac_try) 2>&5
25839   ac_status=$?
25840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25841   (exit $ac_status); }; }; then
25842   gt_cv_c_wint_t=yes
25843 else
25844   echo "$as_me: failed program was:" >&5
25845 sed 's/^/| /' conftest.$ac_ext >&5
25846
25847         gt_cv_c_wint_t=no
25848 fi
25849
25850 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25851 fi
25852 { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
25853 echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
25854   if test $gt_cv_c_wint_t = yes; then
25855
25856 cat >>confdefs.h <<\_ACEOF
25857 #define HAVE_WINT_T 1
25858 _ACEOF
25859
25860   fi
25861
25862
25863
25864
25865   { echo "$as_me:$LINENO: checking for intmax_t" >&5
25866 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
25867 if test "${gt_cv_c_intmax_t+set}" = set; then
25868   echo $ECHO_N "(cached) $ECHO_C" >&6
25869 else
25870   cat >conftest.$ac_ext <<_ACEOF
25871 /* confdefs.h.  */
25872 _ACEOF
25873 cat confdefs.h >>conftest.$ac_ext
25874 cat >>conftest.$ac_ext <<_ACEOF
25875 /* end confdefs.h.  */
25876
25877 #include <stddef.h>
25878 #include <stdlib.h>
25879 #if HAVE_STDINT_H_WITH_UINTMAX
25880 #include <stdint.h>
25881 #endif
25882 #if HAVE_INTTYPES_H_WITH_UINTMAX
25883 #include <inttypes.h>
25884 #endif
25885
25886 int
25887 main ()
25888 {
25889 intmax_t x = -1;
25890   ;
25891   return 0;
25892 }
25893 _ACEOF
25894 rm -f conftest.$ac_objext
25895 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25896   (eval $ac_compile) 2>conftest.er1
25897   ac_status=$?
25898   grep -v '^ *+' conftest.er1 >conftest.err
25899   rm -f conftest.er1
25900   cat conftest.err >&5
25901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25902   (exit $ac_status); } &&
25903          { ac_try='test -z "$ac_c_werror_flag"
25904                          || test ! -s conftest.err'
25905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25906   (eval $ac_try) 2>&5
25907   ac_status=$?
25908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25909   (exit $ac_status); }; } &&
25910          { ac_try='test -s conftest.$ac_objext'
25911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25912   (eval $ac_try) 2>&5
25913   ac_status=$?
25914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25915   (exit $ac_status); }; }; then
25916   gt_cv_c_intmax_t=yes
25917 else
25918   echo "$as_me: failed program was:" >&5
25919 sed 's/^/| /' conftest.$ac_ext >&5
25920
25921         gt_cv_c_intmax_t=no
25922 fi
25923
25924 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25925 fi
25926 { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
25927 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
25928   if test $gt_cv_c_intmax_t = yes; then
25929
25930 cat >>confdefs.h <<\_ACEOF
25931 #define HAVE_INTMAX_T 1
25932 _ACEOF
25933
25934   else
25935
25936     test $ac_cv_type_long_long = yes \
25937       && ac_type='long long' \
25938       || ac_type='long'
25939
25940 cat >>confdefs.h <<_ACEOF
25941 #define intmax_t $ac_type
25942 _ACEOF
25943
25944   fi
25945
25946
25947
25948
25949 for ac_func in vasnprintf
25950 do
25951 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25952 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25953 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25954 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25955   echo $ECHO_N "(cached) $ECHO_C" >&6
25956 else
25957   cat >conftest.$ac_ext <<_ACEOF
25958 /* confdefs.h.  */
25959 _ACEOF
25960 cat confdefs.h >>conftest.$ac_ext
25961 cat >>conftest.$ac_ext <<_ACEOF
25962 /* end confdefs.h.  */
25963 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25964    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25965 #define $ac_func innocuous_$ac_func
25966
25967 /* System header to define __stub macros and hopefully few prototypes,
25968     which can conflict with char $ac_func (); below.
25969     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25970     <limits.h> exists even on freestanding compilers.  */
25971
25972 #ifdef __STDC__
25973 # include <limits.h>
25974 #else
25975 # include <assert.h>
25976 #endif
25977
25978 #undef $ac_func
25979
25980 /* Override any GCC internal prototype to avoid an error.
25981    Use char because int might match the return type of a GCC
25982    builtin and then its argument prototype would still apply.  */
25983 #ifdef __cplusplus
25984 extern "C"
25985 #endif
25986 char $ac_func ();
25987 /* The GNU C library defines this for functions which it implements
25988     to always fail with ENOSYS.  Some functions are actually named
25989     something starting with __ and the normal name is an alias.  */
25990 #if defined __stub_$ac_func || defined __stub___$ac_func
25991 choke me
25992 #endif
25993
25994 int
25995 main ()
25996 {
25997 return $ac_func ();
25998   ;
25999   return 0;
26000 }
26001 _ACEOF
26002 rm -f conftest.$ac_objext conftest$ac_exeext
26003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26004   (eval $ac_link) 2>conftest.er1
26005   ac_status=$?
26006   grep -v '^ *+' conftest.er1 >conftest.err
26007   rm -f conftest.er1
26008   cat conftest.err >&5
26009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26010   (exit $ac_status); } &&
26011          { ac_try='test -z "$ac_c_werror_flag"
26012                          || test ! -s conftest.err'
26013   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26014   (eval $ac_try) 2>&5
26015   ac_status=$?
26016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26017   (exit $ac_status); }; } &&
26018          { ac_try='test -s conftest$ac_exeext'
26019   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26020   (eval $ac_try) 2>&5
26021   ac_status=$?
26022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26023   (exit $ac_status); }; }; then
26024   eval "$as_ac_var=yes"
26025 else
26026   echo "$as_me: failed program was:" >&5
26027 sed 's/^/| /' conftest.$ac_ext >&5
26028
26029         eval "$as_ac_var=no"
26030 fi
26031
26032 rm -f conftest.err conftest.$ac_objext \
26033       conftest$ac_exeext conftest.$ac_ext
26034 fi
26035 ac_res=`eval echo '${'$as_ac_var'}'`
26036                { echo "$as_me:$LINENO: result: $ac_res" >&5
26037 echo "${ECHO_T}$ac_res" >&6; }
26038 if test `eval echo '${'$as_ac_var'}'` = yes; then
26039   cat >>confdefs.h <<_ACEOF
26040 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26041 _ACEOF
26042
26043 else
26044   case " $LIBOBJS " in
26045   *" $ac_func.$ac_objext "* ) ;;
26046   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
26047  ;;
26048 esac
26049
26050 fi
26051 done
26052
26053
26054   if test $ac_cv_func_vasnprintf = no; then
26055     case " $LIBOBJS " in
26056   *" printf-args.$ac_objext "* ) ;;
26057   *) LIBOBJS="$LIBOBJS printf-args.$ac_objext"
26058  ;;
26059 esac
26060
26061     case " $LIBOBJS " in
26062   *" printf-parse.$ac_objext "* ) ;;
26063   *) LIBOBJS="$LIBOBJS printf-parse.$ac_objext"
26064  ;;
26065 esac
26066
26067     case " $LIBOBJS " in
26068   *" asnprintf.$ac_objext "* ) ;;
26069   *) LIBOBJS="$LIBOBJS asnprintf.$ac_objext"
26070  ;;
26071 esac
26072
26073
26074
26075
26076
26077
26078
26079
26080
26081
26082
26083
26084
26085
26086   { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
26087 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
26088 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
26089   echo $ECHO_N "(cached) $ECHO_C" >&6
26090 else
26091   cat >conftest.$ac_ext <<_ACEOF
26092 /* confdefs.h.  */
26093 _ACEOF
26094 cat confdefs.h >>conftest.$ac_ext
26095 cat >>conftest.$ac_ext <<_ACEOF
26096 /* end confdefs.h.  */
26097 $ac_includes_default
26098 typedef ptrdiff_t ac__type_new_;
26099 int
26100 main ()
26101 {
26102 if ((ac__type_new_ *) 0)
26103   return 0;
26104 if (sizeof (ac__type_new_))
26105   return 0;
26106   ;
26107   return 0;
26108 }
26109 _ACEOF
26110 rm -f conftest.$ac_objext
26111 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26112   (eval $ac_compile) 2>conftest.er1
26113   ac_status=$?
26114   grep -v '^ *+' conftest.er1 >conftest.err
26115   rm -f conftest.er1
26116   cat conftest.err >&5
26117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26118   (exit $ac_status); } &&
26119          { ac_try='test -z "$ac_c_werror_flag"
26120                          || test ! -s conftest.err'
26121   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26122   (eval $ac_try) 2>&5
26123   ac_status=$?
26124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26125   (exit $ac_status); }; } &&
26126          { ac_try='test -s conftest.$ac_objext'
26127   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26128   (eval $ac_try) 2>&5
26129   ac_status=$?
26130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26131   (exit $ac_status); }; }; then
26132   ac_cv_type_ptrdiff_t=yes
26133 else
26134   echo "$as_me: failed program was:" >&5
26135 sed 's/^/| /' conftest.$ac_ext >&5
26136
26137         ac_cv_type_ptrdiff_t=no
26138 fi
26139
26140 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26141 fi
26142 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
26143 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
26144 if test $ac_cv_type_ptrdiff_t = yes; then
26145
26146 cat >>confdefs.h <<_ACEOF
26147 #define HAVE_PTRDIFF_T 1
26148 _ACEOF
26149
26150
26151 fi
26152
26153
26154
26155
26156
26157
26158
26159
26160
26161
26162
26163 for ac_func in snprintf wcslen
26164 do
26165 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26166 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26167 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26168 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26169   echo $ECHO_N "(cached) $ECHO_C" >&6
26170 else
26171   cat >conftest.$ac_ext <<_ACEOF
26172 /* confdefs.h.  */
26173 _ACEOF
26174 cat confdefs.h >>conftest.$ac_ext
26175 cat >>conftest.$ac_ext <<_ACEOF
26176 /* end confdefs.h.  */
26177 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26178    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26179 #define $ac_func innocuous_$ac_func
26180
26181 /* System header to define __stub macros and hopefully few prototypes,
26182     which can conflict with char $ac_func (); below.
26183     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26184     <limits.h> exists even on freestanding compilers.  */
26185
26186 #ifdef __STDC__
26187 # include <limits.h>
26188 #else
26189 # include <assert.h>
26190 #endif
26191
26192 #undef $ac_func
26193
26194 /* Override any GCC internal prototype to avoid an error.
26195    Use char because int might match the return type of a GCC
26196    builtin and then its argument prototype would still apply.  */
26197 #ifdef __cplusplus
26198 extern "C"
26199 #endif
26200 char $ac_func ();
26201 /* The GNU C library defines this for functions which it implements
26202     to always fail with ENOSYS.  Some functions are actually named
26203     something starting with __ and the normal name is an alias.  */
26204 #if defined __stub_$ac_func || defined __stub___$ac_func
26205 choke me
26206 #endif
26207
26208 int
26209 main ()
26210 {
26211 return $ac_func ();
26212   ;
26213   return 0;
26214 }
26215 _ACEOF
26216 rm -f conftest.$ac_objext conftest$ac_exeext
26217 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26218   (eval $ac_link) 2>conftest.er1
26219   ac_status=$?
26220   grep -v '^ *+' conftest.er1 >conftest.err
26221   rm -f conftest.er1
26222   cat conftest.err >&5
26223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26224   (exit $ac_status); } &&
26225          { ac_try='test -z "$ac_c_werror_flag"
26226                          || test ! -s conftest.err'
26227   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26228   (eval $ac_try) 2>&5
26229   ac_status=$?
26230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26231   (exit $ac_status); }; } &&
26232          { ac_try='test -s conftest$ac_exeext'
26233   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26234   (eval $ac_try) 2>&5
26235   ac_status=$?
26236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26237   (exit $ac_status); }; }; then
26238   eval "$as_ac_var=yes"
26239 else
26240   echo "$as_me: failed program was:" >&5
26241 sed 's/^/| /' conftest.$ac_ext >&5
26242
26243         eval "$as_ac_var=no"
26244 fi
26245
26246 rm -f conftest.err conftest.$ac_objext \
26247       conftest$ac_exeext conftest.$ac_ext
26248 fi
26249 ac_res=`eval echo '${'$as_ac_var'}'`
26250                { echo "$as_me:$LINENO: result: $ac_res" >&5
26251 echo "${ECHO_T}$ac_res" >&6; }
26252 if test `eval echo '${'$as_ac_var'}'` = yes; then
26253   cat >>confdefs.h <<_ACEOF
26254 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26255 _ACEOF
26256
26257 fi
26258 done
26259
26260
26261
26262
26263   fi
26264
26265
26266
26267 for ac_func in vasprintf
26268 do
26269 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26270 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26271 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26272 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26273   echo $ECHO_N "(cached) $ECHO_C" >&6
26274 else
26275   cat >conftest.$ac_ext <<_ACEOF
26276 /* confdefs.h.  */
26277 _ACEOF
26278 cat confdefs.h >>conftest.$ac_ext
26279 cat >>conftest.$ac_ext <<_ACEOF
26280 /* end confdefs.h.  */
26281 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26282    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26283 #define $ac_func innocuous_$ac_func
26284
26285 /* System header to define __stub macros and hopefully few prototypes,
26286     which can conflict with char $ac_func (); below.
26287     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26288     <limits.h> exists even on freestanding compilers.  */
26289
26290 #ifdef __STDC__
26291 # include <limits.h>
26292 #else
26293 # include <assert.h>
26294 #endif
26295
26296 #undef $ac_func
26297
26298 /* Override any GCC internal prototype to avoid an error.
26299    Use char because int might match the return type of a GCC
26300    builtin and then its argument prototype would still apply.  */
26301 #ifdef __cplusplus
26302 extern "C"
26303 #endif
26304 char $ac_func ();
26305 /* The GNU C library defines this for functions which it implements
26306     to always fail with ENOSYS.  Some functions are actually named
26307     something starting with __ and the normal name is an alias.  */
26308 #if defined __stub_$ac_func || defined __stub___$ac_func
26309 choke me
26310 #endif
26311
26312 int
26313 main ()
26314 {
26315 return $ac_func ();
26316   ;
26317   return 0;
26318 }
26319 _ACEOF
26320 rm -f conftest.$ac_objext conftest$ac_exeext
26321 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26322   (eval $ac_link) 2>conftest.er1
26323   ac_status=$?
26324   grep -v '^ *+' conftest.er1 >conftest.err
26325   rm -f conftest.er1
26326   cat conftest.err >&5
26327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26328   (exit $ac_status); } &&
26329          { ac_try='test -z "$ac_c_werror_flag"
26330                          || test ! -s conftest.err'
26331   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26332   (eval $ac_try) 2>&5
26333   ac_status=$?
26334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26335   (exit $ac_status); }; } &&
26336          { ac_try='test -s conftest$ac_exeext'
26337   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26338   (eval $ac_try) 2>&5
26339   ac_status=$?
26340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26341   (exit $ac_status); }; }; then
26342   eval "$as_ac_var=yes"
26343 else
26344   echo "$as_me: failed program was:" >&5
26345 sed 's/^/| /' conftest.$ac_ext >&5
26346
26347         eval "$as_ac_var=no"
26348 fi
26349
26350 rm -f conftest.err conftest.$ac_objext \
26351       conftest$ac_exeext conftest.$ac_ext
26352 fi
26353 ac_res=`eval echo '${'$as_ac_var'}'`
26354                { echo "$as_me:$LINENO: result: $ac_res" >&5
26355 echo "${ECHO_T}$ac_res" >&6; }
26356 if test `eval echo '${'$as_ac_var'}'` = yes; then
26357   cat >>confdefs.h <<_ACEOF
26358 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26359 _ACEOF
26360
26361 else
26362   case " $LIBOBJS " in
26363   *" $ac_func.$ac_objext "* ) ;;
26364   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
26365  ;;
26366 esac
26367
26368 fi
26369 done
26370
26371
26372   if test $ac_cv_func_vasprintf = no; then
26373     case " $LIBOBJS " in
26374   *" asprintf.$ac_objext "* ) ;;
26375   *) LIBOBJS="$LIBOBJS asprintf.$ac_objext"
26376  ;;
26377 esac
26378
26379
26380
26381
26382
26383   fi
26384
26385
26386
26387
26388
26389
26390
26391   :
26392
26393
26394
26395
26396
26397
26398
26399
26400
26401
26402   :
26403
26404
26405
26406
26407
26408   { echo "$as_me:$LINENO: checking for struct timespec" >&5
26409 echo $ECHO_N "checking for struct timespec... $ECHO_C" >&6; }
26410 if test "${fu_cv_sys_struct_timespec+set}" = set; then
26411   echo $ECHO_N "(cached) $ECHO_C" >&6
26412 else
26413   cat >conftest.$ac_ext <<_ACEOF
26414 /* confdefs.h.  */
26415 _ACEOF
26416 cat confdefs.h >>conftest.$ac_ext
26417 cat >>conftest.$ac_ext <<_ACEOF
26418 /* end confdefs.h.  */
26419
26420 #      if TIME_WITH_SYS_TIME
26421 #       include <sys/time.h>
26422 #       include <time.h>
26423 #      else
26424 #       if HAVE_SYS_TIME_H
26425 #        include <sys/time.h>
26426 #       else
26427 #        include <time.h>
26428 #       endif
26429 #      endif
26430
26431 int
26432 main ()
26433 {
26434 static struct timespec x; x.tv_sec = x.tv_nsec;
26435   ;
26436   return 0;
26437 }
26438 _ACEOF
26439 rm -f conftest.$ac_objext
26440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26441   (eval $ac_compile) 2>conftest.er1
26442   ac_status=$?
26443   grep -v '^ *+' conftest.er1 >conftest.err
26444   rm -f conftest.er1
26445   cat conftest.err >&5
26446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26447   (exit $ac_status); } &&
26448          { ac_try='test -z "$ac_c_werror_flag"
26449                          || test ! -s conftest.err'
26450   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26451   (eval $ac_try) 2>&5
26452   ac_status=$?
26453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26454   (exit $ac_status); }; } &&
26455          { ac_try='test -s conftest.$ac_objext'
26456   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26457   (eval $ac_try) 2>&5
26458   ac_status=$?
26459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26460   (exit $ac_status); }; }; then
26461   fu_cv_sys_struct_timespec=yes
26462 else
26463   echo "$as_me: failed program was:" >&5
26464 sed 's/^/| /' conftest.$ac_ext >&5
26465
26466         fu_cv_sys_struct_timespec=no
26467 fi
26468
26469 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26470
26471 fi
26472 { echo "$as_me:$LINENO: result: $fu_cv_sys_struct_timespec" >&5
26473 echo "${ECHO_T}$fu_cv_sys_struct_timespec" >&6; }
26474
26475   if test $fu_cv_sys_struct_timespec = yes; then
26476
26477 cat >>confdefs.h <<\_ACEOF
26478 #define HAVE_STRUCT_TIMESPEC 1
26479 _ACEOF
26480
26481   fi
26482
26483
26484
26485
26486   { echo "$as_me:$LINENO: checking whether nanosleep is declared" >&5
26487 echo $ECHO_N "checking whether nanosleep is declared... $ECHO_C" >&6; }
26488 if test "${ac_cv_have_decl_nanosleep+set}" = set; then
26489   echo $ECHO_N "(cached) $ECHO_C" >&6
26490 else
26491   cat >conftest.$ac_ext <<_ACEOF
26492 /* confdefs.h.  */
26493 _ACEOF
26494 cat confdefs.h >>conftest.$ac_ext
26495 cat >>conftest.$ac_ext <<_ACEOF
26496 /* end confdefs.h.  */
26497 #include <time.h>
26498
26499 int
26500 main ()
26501 {
26502 #ifndef nanosleep
26503   char *p = (char *) nanosleep;
26504   return !p;
26505 #endif
26506
26507   ;
26508   return 0;
26509 }
26510 _ACEOF
26511 rm -f conftest.$ac_objext
26512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26513   (eval $ac_compile) 2>conftest.er1
26514   ac_status=$?
26515   grep -v '^ *+' conftest.er1 >conftest.err
26516   rm -f conftest.er1
26517   cat conftest.err >&5
26518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26519   (exit $ac_status); } &&
26520          { ac_try='test -z "$ac_c_werror_flag"
26521                          || test ! -s conftest.err'
26522   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26523   (eval $ac_try) 2>&5
26524   ac_status=$?
26525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26526   (exit $ac_status); }; } &&
26527          { ac_try='test -s conftest.$ac_objext'
26528   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26529   (eval $ac_try) 2>&5
26530   ac_status=$?
26531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26532   (exit $ac_status); }; }; then
26533   ac_cv_have_decl_nanosleep=yes
26534 else
26535   echo "$as_me: failed program was:" >&5
26536 sed 's/^/| /' conftest.$ac_ext >&5
26537
26538         ac_cv_have_decl_nanosleep=no
26539 fi
26540
26541 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26542 fi
26543 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_nanosleep" >&5
26544 echo "${ECHO_T}$ac_cv_have_decl_nanosleep" >&6; }
26545 if test $ac_cv_have_decl_nanosleep = yes; then
26546
26547 cat >>confdefs.h <<_ACEOF
26548 #define HAVE_DECL_NANOSLEEP 1
26549 _ACEOF
26550
26551
26552 else
26553   cat >>confdefs.h <<_ACEOF
26554 #define HAVE_DECL_NANOSLEEP 0
26555 _ACEOF
26556
26557
26558 fi
26559
26560
26561
26562
26563   # getdate.y works with bison only.
26564   : ${YACC='bison -y'}
26565
26566
26567   { echo "$as_me:$LINENO: checking for compound literals" >&5
26568 echo $ECHO_N "checking for compound literals... $ECHO_C" >&6; }
26569 if test "${gl_cv_compound_literals+set}" = set; then
26570   echo $ECHO_N "(cached) $ECHO_C" >&6
26571 else
26572   cat >conftest.$ac_ext <<_ACEOF
26573 /* confdefs.h.  */
26574 _ACEOF
26575 cat confdefs.h >>conftest.$ac_ext
26576 cat >>conftest.$ac_ext <<_ACEOF
26577 /* end confdefs.h.  */
26578 struct s { int i, j; }; struct s s = (struct s) { 1, 2 };
26579 int
26580 main ()
26581 {
26582 struct s t = (struct s) { 3, 4 };
26583   ;
26584   return 0;
26585 }
26586 _ACEOF
26587 rm -f conftest.$ac_objext
26588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26589   (eval $ac_compile) 2>conftest.er1
26590   ac_status=$?
26591   grep -v '^ *+' conftest.er1 >conftest.err
26592   rm -f conftest.er1
26593   cat conftest.err >&5
26594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26595   (exit $ac_status); } &&
26596          { ac_try='test -z "$ac_c_werror_flag"
26597                          || test ! -s conftest.err'
26598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&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_objext'
26604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26605   (eval $ac_try) 2>&5
26606   ac_status=$?
26607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26608   (exit $ac_status); }; }; then
26609   gl_cv_compound_literals=yes
26610 else
26611   echo "$as_me: failed program was:" >&5
26612 sed 's/^/| /' conftest.$ac_ext >&5
26613
26614         gl_cv_compound_literals=no
26615 fi
26616
26617 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26618 fi
26619 { echo "$as_me:$LINENO: result: $gl_cv_compound_literals" >&5
26620 echo "${ECHO_T}$gl_cv_compound_literals" >&6; }
26621   if test $gl_cv_compound_literals = yes; then
26622
26623 cat >>confdefs.h <<\_ACEOF
26624 #define HAVE_COMPOUND_LITERALS 1
26625 _ACEOF
26626
26627   fi
26628
26629 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
26630 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
26631 if test "${ac_cv_struct_tm+set}" = set; then
26632   echo $ECHO_N "(cached) $ECHO_C" >&6
26633 else
26634   cat >conftest.$ac_ext <<_ACEOF
26635 /* confdefs.h.  */
26636 _ACEOF
26637 cat confdefs.h >>conftest.$ac_ext
26638 cat >>conftest.$ac_ext <<_ACEOF
26639 /* end confdefs.h.  */
26640 #include <sys/types.h>
26641 #include <time.h>
26642
26643 int
26644 main ()
26645 {
26646 struct tm *tp; tp->tm_sec;
26647   ;
26648   return 0;
26649 }
26650 _ACEOF
26651 rm -f conftest.$ac_objext
26652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26653   (eval $ac_compile) 2>conftest.er1
26654   ac_status=$?
26655   grep -v '^ *+' conftest.er1 >conftest.err
26656   rm -f conftest.er1
26657   cat conftest.err >&5
26658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26659   (exit $ac_status); } &&
26660          { ac_try='test -z "$ac_c_werror_flag"
26661                          || test ! -s conftest.err'
26662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26663   (eval $ac_try) 2>&5
26664   ac_status=$?
26665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26666   (exit $ac_status); }; } &&
26667          { ac_try='test -s conftest.$ac_objext'
26668   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26669   (eval $ac_try) 2>&5
26670   ac_status=$?
26671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26672   (exit $ac_status); }; }; then
26673   ac_cv_struct_tm=time.h
26674 else
26675   echo "$as_me: failed program was:" >&5
26676 sed 's/^/| /' conftest.$ac_ext >&5
26677
26678         ac_cv_struct_tm=sys/time.h
26679 fi
26680
26681 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26682 fi
26683 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
26684 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
26685 if test $ac_cv_struct_tm = sys/time.h; then
26686
26687 cat >>confdefs.h <<\_ACEOF
26688 #define TM_IN_SYS_TIME 1
26689 _ACEOF
26690
26691 fi
26692
26693
26694
26695
26696   # Solaris 2.5.1 needs -lposix4 to get the clock_gettime function.
26697   # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
26698
26699   # Save and restore LIBS so e.g., -lrt, isn't added to it.  Otherwise, *all*
26700   # programs in the package would end up linked with that potentially-shared
26701   # library, inducing unnecessary run-time overhead.
26702   gl_saved_libs=$LIBS
26703     { echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
26704 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
26705 if test "${ac_cv_search_clock_gettime+set}" = set; then
26706   echo $ECHO_N "(cached) $ECHO_C" >&6
26707 else
26708   ac_func_search_save_LIBS=$LIBS
26709 cat >conftest.$ac_ext <<_ACEOF
26710 /* confdefs.h.  */
26711 _ACEOF
26712 cat confdefs.h >>conftest.$ac_ext
26713 cat >>conftest.$ac_ext <<_ACEOF
26714 /* end confdefs.h.  */
26715
26716 /* Override any GCC internal prototype to avoid an error.
26717    Use char because int might match the return type of a GCC
26718    builtin and then its argument prototype would still apply.  */
26719 #ifdef __cplusplus
26720 extern "C"
26721 #endif
26722 char clock_gettime ();
26723 int
26724 main ()
26725 {
26726 return clock_gettime ();
26727   ;
26728   return 0;
26729 }
26730 _ACEOF
26731 for ac_lib in '' rt posix4; do
26732   if test -z "$ac_lib"; then
26733     ac_res="none required"
26734   else
26735     ac_res=-l$ac_lib
26736     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26737   fi
26738   rm -f conftest.$ac_objext conftest$ac_exeext
26739 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26740   (eval $ac_link) 2>conftest.er1
26741   ac_status=$?
26742   grep -v '^ *+' conftest.er1 >conftest.err
26743   rm -f conftest.er1
26744   cat conftest.err >&5
26745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26746   (exit $ac_status); } &&
26747          { ac_try='test -z "$ac_c_werror_flag"
26748                          || test ! -s conftest.err'
26749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26750   (eval $ac_try) 2>&5
26751   ac_status=$?
26752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26753   (exit $ac_status); }; } &&
26754          { ac_try='test -s conftest$ac_exeext'
26755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26756   (eval $ac_try) 2>&5
26757   ac_status=$?
26758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26759   (exit $ac_status); }; }; then
26760   ac_cv_search_clock_gettime=$ac_res
26761 else
26762   echo "$as_me: failed program was:" >&5
26763 sed 's/^/| /' conftest.$ac_ext >&5
26764
26765
26766 fi
26767
26768 rm -f conftest.err conftest.$ac_objext \
26769       conftest$ac_exeext
26770   if test "${ac_cv_search_clock_gettime+set}" = set; then
26771   break
26772 fi
26773 done
26774 if test "${ac_cv_search_clock_gettime+set}" = set; then
26775   :
26776 else
26777   ac_cv_search_clock_gettime=no
26778 fi
26779 rm conftest.$ac_ext
26780 LIBS=$ac_func_search_save_LIBS
26781 fi
26782 { echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
26783 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
26784 ac_res=$ac_cv_search_clock_gettime
26785 if test "$ac_res" != no; then
26786   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26787   test "$ac_cv_search_clock_gettime" = "none required" ||
26788                     LIB_CLOCK_GETTIME=$ac_cv_search_clock_gettime
26789 fi
26790
26791
26792
26793
26794 for ac_func in clock_gettime clock_settime
26795 do
26796 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26797 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26798 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26799 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26800   echo $ECHO_N "(cached) $ECHO_C" >&6
26801 else
26802   cat >conftest.$ac_ext <<_ACEOF
26803 /* confdefs.h.  */
26804 _ACEOF
26805 cat confdefs.h >>conftest.$ac_ext
26806 cat >>conftest.$ac_ext <<_ACEOF
26807 /* end confdefs.h.  */
26808 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26809    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26810 #define $ac_func innocuous_$ac_func
26811
26812 /* System header to define __stub macros and hopefully few prototypes,
26813     which can conflict with char $ac_func (); below.
26814     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26815     <limits.h> exists even on freestanding compilers.  */
26816
26817 #ifdef __STDC__
26818 # include <limits.h>
26819 #else
26820 # include <assert.h>
26821 #endif
26822
26823 #undef $ac_func
26824
26825 /* Override any GCC internal prototype to avoid an error.
26826    Use char because int might match the return type of a GCC
26827    builtin and then its argument prototype would still apply.  */
26828 #ifdef __cplusplus
26829 extern "C"
26830 #endif
26831 char $ac_func ();
26832 /* The GNU C library defines this for functions which it implements
26833     to always fail with ENOSYS.  Some functions are actually named
26834     something starting with __ and the normal name is an alias.  */
26835 #if defined __stub_$ac_func || defined __stub___$ac_func
26836 choke me
26837 #endif
26838
26839 int
26840 main ()
26841 {
26842 return $ac_func ();
26843   ;
26844   return 0;
26845 }
26846 _ACEOF
26847 rm -f conftest.$ac_objext conftest$ac_exeext
26848 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26849   (eval $ac_link) 2>conftest.er1
26850   ac_status=$?
26851   grep -v '^ *+' conftest.er1 >conftest.err
26852   rm -f conftest.er1
26853   cat conftest.err >&5
26854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26855   (exit $ac_status); } &&
26856          { ac_try='test -z "$ac_c_werror_flag"
26857                          || test ! -s conftest.err'
26858   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26859   (eval $ac_try) 2>&5
26860   ac_status=$?
26861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26862   (exit $ac_status); }; } &&
26863          { ac_try='test -s conftest$ac_exeext'
26864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26865   (eval $ac_try) 2>&5
26866   ac_status=$?
26867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26868   (exit $ac_status); }; }; then
26869   eval "$as_ac_var=yes"
26870 else
26871   echo "$as_me: failed program was:" >&5
26872 sed 's/^/| /' conftest.$ac_ext >&5
26873
26874         eval "$as_ac_var=no"
26875 fi
26876
26877 rm -f conftest.err conftest.$ac_objext \
26878       conftest$ac_exeext conftest.$ac_ext
26879 fi
26880 ac_res=`eval echo '${'$as_ac_var'}'`
26881                { echo "$as_me:$LINENO: result: $ac_res" >&5
26882 echo "${ECHO_T}$ac_res" >&6; }
26883 if test `eval echo '${'$as_ac_var'}'` = yes; then
26884   cat >>confdefs.h <<_ACEOF
26885 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26886 _ACEOF
26887
26888 fi
26889 done
26890
26891   LIBS=$gl_saved_libs
26892
26893
26894  { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
26895 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
26896 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
26897   echo $ECHO_N "(cached) $ECHO_C" >&6
26898 else
26899   cat >conftest.$ac_ext <<_ACEOF
26900 /* confdefs.h.  */
26901 _ACEOF
26902 cat confdefs.h >>conftest.$ac_ext
26903 cat >>conftest.$ac_ext <<_ACEOF
26904 /* end confdefs.h.  */
26905 #include <time.h>
26906
26907 int
26908 main ()
26909 {
26910 static struct tm ac_aggr;
26911 if (ac_aggr.tm_gmtoff)
26912 return 0;
26913   ;
26914   return 0;
26915 }
26916 _ACEOF
26917 rm -f conftest.$ac_objext
26918 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26919   (eval $ac_compile) 2>conftest.er1
26920   ac_status=$?
26921   grep -v '^ *+' conftest.er1 >conftest.err
26922   rm -f conftest.er1
26923   cat conftest.err >&5
26924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26925   (exit $ac_status); } &&
26926          { ac_try='test -z "$ac_c_werror_flag"
26927                          || test ! -s conftest.err'
26928   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26929   (eval $ac_try) 2>&5
26930   ac_status=$?
26931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26932   (exit $ac_status); }; } &&
26933          { ac_try='test -s conftest.$ac_objext'
26934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26935   (eval $ac_try) 2>&5
26936   ac_status=$?
26937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26938   (exit $ac_status); }; }; then
26939   ac_cv_member_struct_tm_tm_gmtoff=yes
26940 else
26941   echo "$as_me: failed program was:" >&5
26942 sed 's/^/| /' conftest.$ac_ext >&5
26943
26944         cat >conftest.$ac_ext <<_ACEOF
26945 /* confdefs.h.  */
26946 _ACEOF
26947 cat confdefs.h >>conftest.$ac_ext
26948 cat >>conftest.$ac_ext <<_ACEOF
26949 /* end confdefs.h.  */
26950 #include <time.h>
26951
26952 int
26953 main ()
26954 {
26955 static struct tm ac_aggr;
26956 if (sizeof ac_aggr.tm_gmtoff)
26957 return 0;
26958   ;
26959   return 0;
26960 }
26961 _ACEOF
26962 rm -f conftest.$ac_objext
26963 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26964   (eval $ac_compile) 2>conftest.er1
26965   ac_status=$?
26966   grep -v '^ *+' conftest.er1 >conftest.err
26967   rm -f conftest.er1
26968   cat conftest.err >&5
26969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26970   (exit $ac_status); } &&
26971          { ac_try='test -z "$ac_c_werror_flag"
26972                          || test ! -s conftest.err'
26973   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26974   (eval $ac_try) 2>&5
26975   ac_status=$?
26976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26977   (exit $ac_status); }; } &&
26978          { ac_try='test -s conftest.$ac_objext'
26979   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26980   (eval $ac_try) 2>&5
26981   ac_status=$?
26982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26983   (exit $ac_status); }; }; then
26984   ac_cv_member_struct_tm_tm_gmtoff=yes
26985 else
26986   echo "$as_me: failed program was:" >&5
26987 sed 's/^/| /' conftest.$ac_ext >&5
26988
26989         ac_cv_member_struct_tm_tm_gmtoff=no
26990 fi
26991
26992 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26993 fi
26994
26995 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26996 fi
26997 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
26998 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
26999 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
27000
27001 cat >>confdefs.h <<\_ACEOF
27002 #define HAVE_TM_GMTOFF 1
27003 _ACEOF
27004
27005 fi
27006
27007
27008
27009
27010   case " $LIBOBJS " in
27011   *" getdate.$ac_objext "* ) ;;
27012   *) LIBOBJS="$LIBOBJS getdate.$ac_objext"
27013  ;;
27014 esac
27015
27016
27017
27018
27019
27020
27021
27022
27023
27024   :
27025
27026
27027
27028
27029
27030   { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
27031 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
27032 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
27033   echo $ECHO_N "(cached) $ECHO_C" >&6
27034 else
27035   cat >conftest.$ac_ext <<_ACEOF
27036 /* confdefs.h.  */
27037 _ACEOF
27038 cat confdefs.h >>conftest.$ac_ext
27039 cat >>conftest.$ac_ext <<_ACEOF
27040 /* end confdefs.h.  */
27041 #include <sys/types.h>
27042 #include <$ac_cv_struct_tm>
27043
27044
27045 int
27046 main ()
27047 {
27048 static struct tm ac_aggr;
27049 if (ac_aggr.tm_zone)
27050 return 0;
27051   ;
27052   return 0;
27053 }
27054 _ACEOF
27055 rm -f conftest.$ac_objext
27056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27057   (eval $ac_compile) 2>conftest.er1
27058   ac_status=$?
27059   grep -v '^ *+' conftest.er1 >conftest.err
27060   rm -f conftest.er1
27061   cat conftest.err >&5
27062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27063   (exit $ac_status); } &&
27064          { ac_try='test -z "$ac_c_werror_flag"
27065                          || test ! -s conftest.err'
27066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27067   (eval $ac_try) 2>&5
27068   ac_status=$?
27069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27070   (exit $ac_status); }; } &&
27071          { ac_try='test -s conftest.$ac_objext'
27072   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27073   (eval $ac_try) 2>&5
27074   ac_status=$?
27075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27076   (exit $ac_status); }; }; then
27077   ac_cv_member_struct_tm_tm_zone=yes
27078 else
27079   echo "$as_me: failed program was:" >&5
27080 sed 's/^/| /' conftest.$ac_ext >&5
27081
27082         cat >conftest.$ac_ext <<_ACEOF
27083 /* confdefs.h.  */
27084 _ACEOF
27085 cat confdefs.h >>conftest.$ac_ext
27086 cat >>conftest.$ac_ext <<_ACEOF
27087 /* end confdefs.h.  */
27088 #include <sys/types.h>
27089 #include <$ac_cv_struct_tm>
27090
27091
27092 int
27093 main ()
27094 {
27095 static struct tm ac_aggr;
27096 if (sizeof ac_aggr.tm_zone)
27097 return 0;
27098   ;
27099   return 0;
27100 }
27101 _ACEOF
27102 rm -f conftest.$ac_objext
27103 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27104   (eval $ac_compile) 2>conftest.er1
27105   ac_status=$?
27106   grep -v '^ *+' conftest.er1 >conftest.err
27107   rm -f conftest.er1
27108   cat conftest.err >&5
27109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27110   (exit $ac_status); } &&
27111          { ac_try='test -z "$ac_c_werror_flag"
27112                          || test ! -s conftest.err'
27113   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27114   (eval $ac_try) 2>&5
27115   ac_status=$?
27116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27117   (exit $ac_status); }; } &&
27118          { ac_try='test -s conftest.$ac_objext'
27119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27120   (eval $ac_try) 2>&5
27121   ac_status=$?
27122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27123   (exit $ac_status); }; }; then
27124   ac_cv_member_struct_tm_tm_zone=yes
27125 else
27126   echo "$as_me: failed program was:" >&5
27127 sed 's/^/| /' conftest.$ac_ext >&5
27128
27129         ac_cv_member_struct_tm_tm_zone=no
27130 fi
27131
27132 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27133 fi
27134
27135 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27136 fi
27137 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
27138 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
27139 if test $ac_cv_member_struct_tm_tm_zone = yes; then
27140
27141 cat >>confdefs.h <<_ACEOF
27142 #define HAVE_STRUCT_TM_TM_ZONE 1
27143 _ACEOF
27144
27145
27146 fi
27147
27148 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
27149
27150 cat >>confdefs.h <<\_ACEOF
27151 #define HAVE_TM_ZONE 1
27152 _ACEOF
27153
27154 else
27155   { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
27156 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
27157 if test "${ac_cv_have_decl_tzname+set}" = set; then
27158   echo $ECHO_N "(cached) $ECHO_C" >&6
27159 else
27160   cat >conftest.$ac_ext <<_ACEOF
27161 /* confdefs.h.  */
27162 _ACEOF
27163 cat confdefs.h >>conftest.$ac_ext
27164 cat >>conftest.$ac_ext <<_ACEOF
27165 /* end confdefs.h.  */
27166 #include <time.h>
27167
27168 int
27169 main ()
27170 {
27171 #ifndef tzname
27172   char *p = (char *) tzname;
27173   return !p;
27174 #endif
27175
27176   ;
27177   return 0;
27178 }
27179 _ACEOF
27180 rm -f conftest.$ac_objext
27181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27182   (eval $ac_compile) 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"
27190                          || test ! -s conftest.err'
27191   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27192   (eval $ac_try) 2>&5
27193   ac_status=$?
27194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27195   (exit $ac_status); }; } &&
27196          { ac_try='test -s conftest.$ac_objext'
27197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27198   (eval $ac_try) 2>&5
27199   ac_status=$?
27200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27201   (exit $ac_status); }; }; then
27202   ac_cv_have_decl_tzname=yes
27203 else
27204   echo "$as_me: failed program was:" >&5
27205 sed 's/^/| /' conftest.$ac_ext >&5
27206
27207         ac_cv_have_decl_tzname=no
27208 fi
27209
27210 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27211 fi
27212 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
27213 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
27214 if test $ac_cv_have_decl_tzname = yes; then
27215
27216 cat >>confdefs.h <<_ACEOF
27217 #define HAVE_DECL_TZNAME 1
27218 _ACEOF
27219
27220
27221 else
27222   cat >>confdefs.h <<_ACEOF
27223 #define HAVE_DECL_TZNAME 0
27224 _ACEOF
27225
27226
27227 fi
27228
27229
27230   { echo "$as_me:$LINENO: checking for tzname" >&5
27231 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
27232 if test "${ac_cv_var_tzname+set}" = set; then
27233   echo $ECHO_N "(cached) $ECHO_C" >&6
27234 else
27235   cat >conftest.$ac_ext <<_ACEOF
27236 /* confdefs.h.  */
27237 _ACEOF
27238 cat confdefs.h >>conftest.$ac_ext
27239 cat >>conftest.$ac_ext <<_ACEOF
27240 /* end confdefs.h.  */
27241 #include <time.h>
27242 #if !HAVE_DECL_TZNAME
27243 extern char *tzname[];
27244 #endif
27245
27246 int
27247 main ()
27248 {
27249 return tzname[0][0];
27250   ;
27251   return 0;
27252 }
27253 _ACEOF
27254 rm -f conftest.$ac_objext conftest$ac_exeext
27255 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27256   (eval $ac_link) 2>conftest.er1
27257   ac_status=$?
27258   grep -v '^ *+' conftest.er1 >conftest.err
27259   rm -f conftest.er1
27260   cat conftest.err >&5
27261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27262   (exit $ac_status); } &&
27263          { ac_try='test -z "$ac_c_werror_flag"
27264                          || test ! -s conftest.err'
27265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27266   (eval $ac_try) 2>&5
27267   ac_status=$?
27268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27269   (exit $ac_status); }; } &&
27270          { ac_try='test -s conftest$ac_exeext'
27271   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27272   (eval $ac_try) 2>&5
27273   ac_status=$?
27274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27275   (exit $ac_status); }; }; then
27276   ac_cv_var_tzname=yes
27277 else
27278   echo "$as_me: failed program was:" >&5
27279 sed 's/^/| /' conftest.$ac_ext >&5
27280
27281         ac_cv_var_tzname=no
27282 fi
27283
27284 rm -f conftest.err conftest.$ac_objext \
27285       conftest$ac_exeext conftest.$ac_ext
27286 fi
27287 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
27288 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
27289   if test $ac_cv_var_tzname = yes; then
27290
27291 cat >>confdefs.h <<\_ACEOF
27292 #define HAVE_TZNAME 1
27293 _ACEOF
27294
27295   fi
27296 fi
27297
27298
27299
27300
27301
27302
27303   { echo "$as_me:$LINENO: checking for arithmetic hrtime_t" >&5
27304 echo $ECHO_N "checking for arithmetic hrtime_t... $ECHO_C" >&6; }
27305 if test "${gl_cv_arithmetic_hrtime_t+set}" = set; then
27306   echo $ECHO_N "(cached) $ECHO_C" >&6
27307 else
27308   cat >conftest.$ac_ext <<_ACEOF
27309 /* confdefs.h.  */
27310 _ACEOF
27311 cat confdefs.h >>conftest.$ac_ext
27312 cat >>conftest.$ac_ext <<_ACEOF
27313 /* end confdefs.h.  */
27314 #include <time.h>
27315 int
27316 main ()
27317 {
27318 hrtime_t x = 0; return x/x;
27319   ;
27320   return 0;
27321 }
27322 _ACEOF
27323 rm -f conftest.$ac_objext
27324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27325   (eval $ac_compile) 2>conftest.er1
27326   ac_status=$?
27327   grep -v '^ *+' conftest.er1 >conftest.err
27328   rm -f conftest.er1
27329   cat conftest.err >&5
27330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27331   (exit $ac_status); } &&
27332          { ac_try='test -z "$ac_c_werror_flag"
27333                          || test ! -s conftest.err'
27334   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27335   (eval $ac_try) 2>&5
27336   ac_status=$?
27337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27338   (exit $ac_status); }; } &&
27339          { ac_try='test -s conftest.$ac_objext'
27340   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27341   (eval $ac_try) 2>&5
27342   ac_status=$?
27343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27344   (exit $ac_status); }; }; then
27345   gl_cv_arithmetic_hrtime_t=yes
27346 else
27347   echo "$as_me: failed program was:" >&5
27348 sed 's/^/| /' conftest.$ac_ext >&5
27349
27350         gl_cv_arithmetic_hrtime_t=no
27351 fi
27352
27353 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27354 fi
27355 { echo "$as_me:$LINENO: result: $gl_cv_arithmetic_hrtime_t" >&5
27356 echo "${ECHO_T}$gl_cv_arithmetic_hrtime_t" >&6; }
27357   if test $gl_cv_arithmetic_hrtime_t = yes; then
27358
27359 cat >>confdefs.h <<\_ACEOF
27360 #define HAVE_ARITHMETIC_HRTIME_T 1
27361 _ACEOF
27362
27363   fi
27364
27365
27366
27367
27368   :
27369
27370
27371
27372
27373
27374
27375
27376
27377
27378
27379
27380
27381
27382
27383
27384
27385
27386
27387   { echo "$as_me:$LINENO: checking whether gethrtime is declared" >&5
27388 echo $ECHO_N "checking whether gethrtime is declared... $ECHO_C" >&6; }
27389 if test "${ac_cv_have_decl_gethrtime+set}" = set; then
27390   echo $ECHO_N "(cached) $ECHO_C" >&6
27391 else
27392   cat >conftest.$ac_ext <<_ACEOF
27393 /* confdefs.h.  */
27394 _ACEOF
27395 cat confdefs.h >>conftest.$ac_ext
27396 cat >>conftest.$ac_ext <<_ACEOF
27397 /* end confdefs.h.  */
27398 #include <time.h>
27399
27400 int
27401 main ()
27402 {
27403 #ifndef gethrtime
27404   char *p = (char *) gethrtime;
27405   return !p;
27406 #endif
27407
27408   ;
27409   return 0;
27410 }
27411 _ACEOF
27412 rm -f conftest.$ac_objext
27413 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27414   (eval $ac_compile) 2>conftest.er1
27415   ac_status=$?
27416   grep -v '^ *+' conftest.er1 >conftest.err
27417   rm -f conftest.er1
27418   cat conftest.err >&5
27419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27420   (exit $ac_status); } &&
27421          { ac_try='test -z "$ac_c_werror_flag"
27422                          || test ! -s conftest.err'
27423   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27424   (eval $ac_try) 2>&5
27425   ac_status=$?
27426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27427   (exit $ac_status); }; } &&
27428          { ac_try='test -s conftest.$ac_objext'
27429   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27430   (eval $ac_try) 2>&5
27431   ac_status=$?
27432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27433   (exit $ac_status); }; }; then
27434   ac_cv_have_decl_gethrtime=yes
27435 else
27436   echo "$as_me: failed program was:" >&5
27437 sed 's/^/| /' conftest.$ac_ext >&5
27438
27439         ac_cv_have_decl_gethrtime=no
27440 fi
27441
27442 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27443 fi
27444 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_gethrtime" >&5
27445 echo "${ECHO_T}$ac_cv_have_decl_gethrtime" >&6; }
27446 if test $ac_cv_have_decl_gethrtime = yes; then
27447
27448 cat >>confdefs.h <<_ACEOF
27449 #define HAVE_DECL_GETHRTIME 1
27450 _ACEOF
27451
27452
27453 else
27454   cat >>confdefs.h <<_ACEOF
27455 #define HAVE_DECL_GETHRTIME 0
27456 _ACEOF
27457
27458
27459 fi
27460
27461
27462   case $ac_cv_have_decl_gethrtime,$gl_cv_arithmetic_hrtime_t in
27463   yes,yes) ;;
27464   *)
27465     case " $LIBOBJS " in
27466   *" gethrxtime.$ac_objext "* ) ;;
27467   *) LIBOBJS="$LIBOBJS gethrxtime.$ac_objext"
27468  ;;
27469 esac
27470
27471
27472
27473
27474
27475   :
27476
27477
27478
27479
27480
27481
27482
27483
27484
27485   if test $ac_cv_func_nanouptime != yes; then
27486     LIB_GETHRXTIME=
27487     { echo "$as_me:$LINENO: checking whether CLOCK_MONOTONIC is defined" >&5
27488 echo $ECHO_N "checking whether CLOCK_MONOTONIC is defined... $ECHO_C" >&6; }
27489 if test "${gl_cv_have_CLOCK_MONOTONIC+set}" = set; then
27490   echo $ECHO_N "(cached) $ECHO_C" >&6
27491 else
27492   cat >conftest.$ac_ext <<_ACEOF
27493 /* confdefs.h.  */
27494 _ACEOF
27495 cat confdefs.h >>conftest.$ac_ext
27496 cat >>conftest.$ac_ext <<_ACEOF
27497 /* end confdefs.h.  */
27498
27499 #        include <time.h>
27500 #        ifdef CLOCK_MONOTONIC
27501           have_CLOCK_MONOTONIC
27502 #        endif
27503
27504 _ACEOF
27505 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27506   $EGREP "have_CLOCK_MONOTONIC" >/dev/null 2>&1; then
27507   gl_cv_have_CLOCK_MONOTONIC=yes
27508 else
27509   gl_cv_have_CLOCK_MONOTONIC=no
27510 fi
27511 rm -f conftest*
27512
27513 fi
27514 { echo "$as_me:$LINENO: result: $gl_cv_have_CLOCK_MONOTONIC" >&5
27515 echo "${ECHO_T}$gl_cv_have_CLOCK_MONOTONIC" >&6; }
27516     if test $gl_cv_have_CLOCK_MONOTONIC = yes; then
27517       LIB_GETHRXTIME=$LIB_CLOCK_GETTIME
27518     fi
27519
27520   fi
27521 ;;
27522   esac
27523
27524
27525   # Avoid multiple inclusions of getndelim2.o into LIBOBJS.
27526   # This hack won't be needed after gnulib requires Autoconf 2.58 or later.
27527   case " $LIBOBJS " in
27528   *" getndelim2.$ac_objext "* ) ;;
27529   *) case " $LIBOBJS " in
27530   *" getndelim2.$ac_objext "* ) ;;
27531   *) LIBOBJS="$LIBOBJS getndelim2.$ac_objext"
27532  ;;
27533 esac
27534 ;;
27535   esac
27536
27537
27538
27539
27540
27541
27542   if test -z "$GETOPT_H"; then
27543
27544 for ac_header in getopt.h
27545 do
27546 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27547 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27548   { echo "$as_me:$LINENO: checking for $ac_header" >&5
27549 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27550 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27551   echo $ECHO_N "(cached) $ECHO_C" >&6
27552 fi
27553 ac_res=`eval echo '${'$as_ac_Header'}'`
27554                { echo "$as_me:$LINENO: result: $ac_res" >&5
27555 echo "${ECHO_T}$ac_res" >&6; }
27556 else
27557   # Is the header compilable?
27558 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27559 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27560 cat >conftest.$ac_ext <<_ACEOF
27561 /* confdefs.h.  */
27562 _ACEOF
27563 cat confdefs.h >>conftest.$ac_ext
27564 cat >>conftest.$ac_ext <<_ACEOF
27565 /* end confdefs.h.  */
27566 $ac_includes_default
27567 #include <$ac_header>
27568 _ACEOF
27569 rm -f conftest.$ac_objext
27570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27571   (eval $ac_compile) 2>conftest.er1
27572   ac_status=$?
27573   grep -v '^ *+' conftest.er1 >conftest.err
27574   rm -f conftest.er1
27575   cat conftest.err >&5
27576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27577   (exit $ac_status); } &&
27578          { ac_try='test -z "$ac_c_werror_flag"
27579                          || test ! -s conftest.err'
27580   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27581   (eval $ac_try) 2>&5
27582   ac_status=$?
27583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27584   (exit $ac_status); }; } &&
27585          { ac_try='test -s conftest.$ac_objext'
27586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27587   (eval $ac_try) 2>&5
27588   ac_status=$?
27589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27590   (exit $ac_status); }; }; then
27591   ac_header_compiler=yes
27592 else
27593   echo "$as_me: failed program was:" >&5
27594 sed 's/^/| /' conftest.$ac_ext >&5
27595
27596         ac_header_compiler=no
27597 fi
27598
27599 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27600 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27601 echo "${ECHO_T}$ac_header_compiler" >&6; }
27602
27603 # Is the header present?
27604 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27605 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27606 cat >conftest.$ac_ext <<_ACEOF
27607 /* confdefs.h.  */
27608 _ACEOF
27609 cat confdefs.h >>conftest.$ac_ext
27610 cat >>conftest.$ac_ext <<_ACEOF
27611 /* end confdefs.h.  */
27612 #include <$ac_header>
27613 _ACEOF
27614 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27615   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27616   ac_status=$?
27617   grep -v '^ *+' conftest.er1 >conftest.err
27618   rm -f conftest.er1
27619   cat conftest.err >&5
27620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27621   (exit $ac_status); } >/dev/null; then
27622   if test -s conftest.err; then
27623     ac_cpp_err=$ac_c_preproc_warn_flag
27624     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27625   else
27626     ac_cpp_err=
27627   fi
27628 else
27629   ac_cpp_err=yes
27630 fi
27631 if test -z "$ac_cpp_err"; then
27632   ac_header_preproc=yes
27633 else
27634   echo "$as_me: failed program was:" >&5
27635 sed 's/^/| /' conftest.$ac_ext >&5
27636
27637   ac_header_preproc=no
27638 fi
27639
27640 rm -f conftest.err conftest.$ac_ext
27641 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27642 echo "${ECHO_T}$ac_header_preproc" >&6; }
27643
27644 # So?  What about this header?
27645 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27646   yes:no: )
27647     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27648 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27649     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27650 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27651     ac_header_preproc=yes
27652     ;;
27653   no:yes:* )
27654     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27655 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27656     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27657 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27658     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27659 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27660     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27661 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27662     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27663 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27664     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27665 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27666     ( cat <<\_ASBOX
27667 ## ------------------------------------ ##
27668 ## Report this to bug-coreutils@gnu.org ##
27669 ## ------------------------------------ ##
27670 _ASBOX
27671      ) | sed "s/^/$as_me: WARNING:     /" >&2
27672     ;;
27673 esac
27674 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27675 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27676 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27677   echo $ECHO_N "(cached) $ECHO_C" >&6
27678 else
27679   eval "$as_ac_Header=\$ac_header_preproc"
27680 fi
27681 ac_res=`eval echo '${'$as_ac_Header'}'`
27682                { echo "$as_me:$LINENO: result: $ac_res" >&5
27683 echo "${ECHO_T}$ac_res" >&6; }
27684
27685 fi
27686 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27687   cat >>confdefs.h <<_ACEOF
27688 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27689 _ACEOF
27690
27691 else
27692   GETOPT_H=getopt.h
27693 fi
27694
27695 done
27696
27697   fi
27698
27699   if test -z "$GETOPT_H"; then
27700
27701 for ac_func in getopt_long_only
27702 do
27703 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27704 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27705 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27706 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27707   echo $ECHO_N "(cached) $ECHO_C" >&6
27708 else
27709   cat >conftest.$ac_ext <<_ACEOF
27710 /* confdefs.h.  */
27711 _ACEOF
27712 cat confdefs.h >>conftest.$ac_ext
27713 cat >>conftest.$ac_ext <<_ACEOF
27714 /* end confdefs.h.  */
27715 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27716    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27717 #define $ac_func innocuous_$ac_func
27718
27719 /* System header to define __stub macros and hopefully few prototypes,
27720     which can conflict with char $ac_func (); below.
27721     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27722     <limits.h> exists even on freestanding compilers.  */
27723
27724 #ifdef __STDC__
27725 # include <limits.h>
27726 #else
27727 # include <assert.h>
27728 #endif
27729
27730 #undef $ac_func
27731
27732 /* Override any GCC internal prototype to avoid an error.
27733    Use char because int might match the return type of a GCC
27734    builtin and then its argument prototype would still apply.  */
27735 #ifdef __cplusplus
27736 extern "C"
27737 #endif
27738 char $ac_func ();
27739 /* The GNU C library defines this for functions which it implements
27740     to always fail with ENOSYS.  Some functions are actually named
27741     something starting with __ and the normal name is an alias.  */
27742 #if defined __stub_$ac_func || defined __stub___$ac_func
27743 choke me
27744 #endif
27745
27746 int
27747 main ()
27748 {
27749 return $ac_func ();
27750   ;
27751   return 0;
27752 }
27753 _ACEOF
27754 rm -f conftest.$ac_objext conftest$ac_exeext
27755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27756   (eval $ac_link) 2>conftest.er1
27757   ac_status=$?
27758   grep -v '^ *+' conftest.er1 >conftest.err
27759   rm -f conftest.er1
27760   cat conftest.err >&5
27761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27762   (exit $ac_status); } &&
27763          { ac_try='test -z "$ac_c_werror_flag"
27764                          || test ! -s conftest.err'
27765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27766   (eval $ac_try) 2>&5
27767   ac_status=$?
27768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27769   (exit $ac_status); }; } &&
27770          { ac_try='test -s conftest$ac_exeext'
27771   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27772   (eval $ac_try) 2>&5
27773   ac_status=$?
27774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27775   (exit $ac_status); }; }; then
27776   eval "$as_ac_var=yes"
27777 else
27778   echo "$as_me: failed program was:" >&5
27779 sed 's/^/| /' conftest.$ac_ext >&5
27780
27781         eval "$as_ac_var=no"
27782 fi
27783
27784 rm -f conftest.err conftest.$ac_objext \
27785       conftest$ac_exeext conftest.$ac_ext
27786 fi
27787 ac_res=`eval echo '${'$as_ac_var'}'`
27788                { echo "$as_me:$LINENO: result: $ac_res" >&5
27789 echo "${ECHO_T}$ac_res" >&6; }
27790 if test `eval echo '${'$as_ac_var'}'` = yes; then
27791   cat >>confdefs.h <<_ACEOF
27792 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27793 _ACEOF
27794
27795 else
27796   GETOPT_H=getopt.h
27797 fi
27798 done
27799
27800   fi
27801
27802       if test -z "$GETOPT_H"; then
27803     { echo "$as_me:$LINENO: checking whether optreset is declared" >&5
27804 echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6; }
27805 if test "${ac_cv_have_decl_optreset+set}" = set; then
27806   echo $ECHO_N "(cached) $ECHO_C" >&6
27807 else
27808   cat >conftest.$ac_ext <<_ACEOF
27809 /* confdefs.h.  */
27810 _ACEOF
27811 cat confdefs.h >>conftest.$ac_ext
27812 cat >>conftest.$ac_ext <<_ACEOF
27813 /* end confdefs.h.  */
27814 #include <getopt.h>
27815
27816 int
27817 main ()
27818 {
27819 #ifndef optreset
27820   char *p = (char *) optreset;
27821   return !p;
27822 #endif
27823
27824   ;
27825   return 0;
27826 }
27827 _ACEOF
27828 rm -f conftest.$ac_objext
27829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27830   (eval $ac_compile) 2>conftest.er1
27831   ac_status=$?
27832   grep -v '^ *+' conftest.er1 >conftest.err
27833   rm -f conftest.er1
27834   cat conftest.err >&5
27835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27836   (exit $ac_status); } &&
27837          { ac_try='test -z "$ac_c_werror_flag"
27838                          || test ! -s conftest.err'
27839   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27840   (eval $ac_try) 2>&5
27841   ac_status=$?
27842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27843   (exit $ac_status); }; } &&
27844          { ac_try='test -s conftest.$ac_objext'
27845   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27846   (eval $ac_try) 2>&5
27847   ac_status=$?
27848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27849   (exit $ac_status); }; }; then
27850   ac_cv_have_decl_optreset=yes
27851 else
27852   echo "$as_me: failed program was:" >&5
27853 sed 's/^/| /' conftest.$ac_ext >&5
27854
27855         ac_cv_have_decl_optreset=no
27856 fi
27857
27858 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27859 fi
27860 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
27861 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
27862 if test $ac_cv_have_decl_optreset = yes; then
27863   GETOPT_H=getopt.h
27864 fi
27865
27866   fi
27867
27868       if test -z "$GETOPT_H"; then
27869     { echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
27870 echo $ECHO_N "checking for working GNU getopt function... $ECHO_C" >&6; }
27871 if test "${gl_cv_func_gnu_getopt+set}" = set; then
27872   echo $ECHO_N "(cached) $ECHO_C" >&6
27873 else
27874   if test "$cross_compiling" = yes; then
27875                          { echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
27876 echo $ECHO_N "checking whether getopt_clip is declared... $ECHO_C" >&6; }
27877 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
27878   echo $ECHO_N "(cached) $ECHO_C" >&6
27879 else
27880   cat >conftest.$ac_ext <<_ACEOF
27881 /* confdefs.h.  */
27882 _ACEOF
27883 cat confdefs.h >>conftest.$ac_ext
27884 cat >>conftest.$ac_ext <<_ACEOF
27885 /* end confdefs.h.  */
27886 #include <getopt.h>
27887
27888 int
27889 main ()
27890 {
27891 #ifndef getopt_clip
27892   char *p = (char *) getopt_clip;
27893   return !p;
27894 #endif
27895
27896   ;
27897   return 0;
27898 }
27899 _ACEOF
27900 rm -f conftest.$ac_objext
27901 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27902   (eval $ac_compile) 2>conftest.er1
27903   ac_status=$?
27904   grep -v '^ *+' conftest.er1 >conftest.err
27905   rm -f conftest.er1
27906   cat conftest.err >&5
27907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27908   (exit $ac_status); } &&
27909          { ac_try='test -z "$ac_c_werror_flag"
27910                          || test ! -s conftest.err'
27911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27912   (eval $ac_try) 2>&5
27913   ac_status=$?
27914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27915   (exit $ac_status); }; } &&
27916          { ac_try='test -s conftest.$ac_objext'
27917   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27918   (eval $ac_try) 2>&5
27919   ac_status=$?
27920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27921   (exit $ac_status); }; }; then
27922   ac_cv_have_decl_getopt_clip=yes
27923 else
27924   echo "$as_me: failed program was:" >&5
27925 sed 's/^/| /' conftest.$ac_ext >&5
27926
27927         ac_cv_have_decl_getopt_clip=no
27928 fi
27929
27930 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27931 fi
27932 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
27933 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
27934 if test $ac_cv_have_decl_getopt_clip = yes; then
27935   gl_cv_func_gnu_getopt=no
27936 else
27937   gl_cv_func_gnu_getopt=yes
27938 fi
27939
27940 else
27941   cat >conftest.$ac_ext <<_ACEOF
27942 /* confdefs.h.  */
27943 _ACEOF
27944 cat confdefs.h >>conftest.$ac_ext
27945 cat >>conftest.$ac_ext <<_ACEOF
27946 /* end confdefs.h.  */
27947 #include <getopt.h>
27948 int
27949 main ()
27950 {
27951
27952              char *myargv[3];
27953              myargv[0] = "conftest";
27954              myargv[1] = "-+";
27955              myargv[2] = 0;
27956              return getopt (2, myargv, "+a") != '?';
27957
27958   ;
27959   return 0;
27960 }
27961 _ACEOF
27962 rm -f conftest$ac_exeext
27963 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27964   (eval $ac_link) 2>&5
27965   ac_status=$?
27966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27967   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27968   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27969   (eval $ac_try) 2>&5
27970   ac_status=$?
27971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27972   (exit $ac_status); }; }; then
27973   gl_cv_func_gnu_getopt=yes
27974 else
27975   echo "$as_me: program exited with status $ac_status" >&5
27976 echo "$as_me: failed program was:" >&5
27977 sed 's/^/| /' conftest.$ac_ext >&5
27978
27979 ( exit $ac_status )
27980 gl_cv_func_gnu_getopt=no
27981 fi
27982 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27983 fi
27984
27985
27986 fi
27987 { echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
27988 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
27989     if test "$gl_cv_func_gnu_getopt" = "no"; then
27990       GETOPT_H=getopt.h
27991     fi
27992   fi
27993
27994
27995
27996   if test -n "$GETOPT_H"; then
27997
27998   case " $LIBOBJS " in
27999   *" getopt.$ac_objext "* ) ;;
28000   *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
28001  ;;
28002 esac
28003
28004   case " $LIBOBJS " in
28005   *" getopt1.$ac_objext "* ) ;;
28006   *) LIBOBJS="$LIBOBJS getopt1.$ac_objext"
28007  ;;
28008 esac
28009
28010
28011   GETOPT_H=getopt.h
28012
28013 cat >>confdefs.h <<\_ACEOF
28014 #define __GETOPT_PREFIX rpl_
28015 _ACEOF
28016
28017
28018
28019
28020
28021   :
28022
28023
28024
28025
28026
28027
28028
28029 fi
28030
28031
28032
28033
28034
28035
28036   :
28037
28038
28039
28040
28041
28042
28043 for ac_header in OS.h
28044 do
28045 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28046 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28047   { echo "$as_me:$LINENO: checking for $ac_header" >&5
28048 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28049 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28050   echo $ECHO_N "(cached) $ECHO_C" >&6
28051 fi
28052 ac_res=`eval echo '${'$as_ac_Header'}'`
28053                { echo "$as_me:$LINENO: result: $ac_res" >&5
28054 echo "${ECHO_T}$ac_res" >&6; }
28055 else
28056   # Is the header compilable?
28057 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28058 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
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.  */
28065 $ac_includes_default
28066 #include <$ac_header>
28067 _ACEOF
28068 rm -f conftest.$ac_objext
28069 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28070   (eval $ac_compile) 2>conftest.er1
28071   ac_status=$?
28072   grep -v '^ *+' conftest.er1 >conftest.err
28073   rm -f conftest.er1
28074   cat conftest.err >&5
28075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28076   (exit $ac_status); } &&
28077          { ac_try='test -z "$ac_c_werror_flag"
28078                          || test ! -s conftest.err'
28079   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28080   (eval $ac_try) 2>&5
28081   ac_status=$?
28082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28083   (exit $ac_status); }; } &&
28084          { ac_try='test -s conftest.$ac_objext'
28085   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28086   (eval $ac_try) 2>&5
28087   ac_status=$?
28088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28089   (exit $ac_status); }; }; then
28090   ac_header_compiler=yes
28091 else
28092   echo "$as_me: failed program was:" >&5
28093 sed 's/^/| /' conftest.$ac_ext >&5
28094
28095         ac_header_compiler=no
28096 fi
28097
28098 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28099 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28100 echo "${ECHO_T}$ac_header_compiler" >&6; }
28101
28102 # Is the header present?
28103 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28104 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28105 cat >conftest.$ac_ext <<_ACEOF
28106 /* confdefs.h.  */
28107 _ACEOF
28108 cat confdefs.h >>conftest.$ac_ext
28109 cat >>conftest.$ac_ext <<_ACEOF
28110 /* end confdefs.h.  */
28111 #include <$ac_header>
28112 _ACEOF
28113 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28114   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28115   ac_status=$?
28116   grep -v '^ *+' conftest.er1 >conftest.err
28117   rm -f conftest.er1
28118   cat conftest.err >&5
28119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28120   (exit $ac_status); } >/dev/null; then
28121   if test -s conftest.err; then
28122     ac_cpp_err=$ac_c_preproc_warn_flag
28123     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28124   else
28125     ac_cpp_err=
28126   fi
28127 else
28128   ac_cpp_err=yes
28129 fi
28130 if test -z "$ac_cpp_err"; then
28131   ac_header_preproc=yes
28132 else
28133   echo "$as_me: failed program was:" >&5
28134 sed 's/^/| /' conftest.$ac_ext >&5
28135
28136   ac_header_preproc=no
28137 fi
28138
28139 rm -f conftest.err conftest.$ac_ext
28140 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28141 echo "${ECHO_T}$ac_header_preproc" >&6; }
28142
28143 # So?  What about this header?
28144 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28145   yes:no: )
28146     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28147 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28148     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28149 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28150     ac_header_preproc=yes
28151     ;;
28152   no:yes:* )
28153     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28154 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28155     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28156 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28157     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28158 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28159     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28160 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28161     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28162 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28163     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28164 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28165     ( cat <<\_ASBOX
28166 ## ------------------------------------ ##
28167 ## Report this to bug-coreutils@gnu.org ##
28168 ## ------------------------------------ ##
28169 _ASBOX
28170      ) | sed "s/^/$as_me: WARNING:     /" >&2
28171     ;;
28172 esac
28173 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28174 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28175 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28176   echo $ECHO_N "(cached) $ECHO_C" >&6
28177 else
28178   eval "$as_ac_Header=\$ac_header_preproc"
28179 fi
28180 ac_res=`eval echo '${'$as_ac_Header'}'`
28181                { echo "$as_me:$LINENO: result: $ac_res" >&5
28182 echo "${ECHO_T}$ac_res" >&6; }
28183
28184 fi
28185 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28186   cat >>confdefs.h <<_ACEOF
28187 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28188 _ACEOF
28189
28190 fi
28191
28192 done
28193
28194
28195 for ac_func in getpagesize
28196 do
28197 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28198 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28199 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28200 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28201   echo $ECHO_N "(cached) $ECHO_C" >&6
28202 else
28203   cat >conftest.$ac_ext <<_ACEOF
28204 /* confdefs.h.  */
28205 _ACEOF
28206 cat confdefs.h >>conftest.$ac_ext
28207 cat >>conftest.$ac_ext <<_ACEOF
28208 /* end confdefs.h.  */
28209 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28210    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28211 #define $ac_func innocuous_$ac_func
28212
28213 /* System header to define __stub macros and hopefully few prototypes,
28214     which can conflict with char $ac_func (); below.
28215     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28216     <limits.h> exists even on freestanding compilers.  */
28217
28218 #ifdef __STDC__
28219 # include <limits.h>
28220 #else
28221 # include <assert.h>
28222 #endif
28223
28224 #undef $ac_func
28225
28226 /* Override any GCC internal prototype to avoid an error.
28227    Use char because int might match the return type of a GCC
28228    builtin and then its argument prototype would still apply.  */
28229 #ifdef __cplusplus
28230 extern "C"
28231 #endif
28232 char $ac_func ();
28233 /* The GNU C library defines this for functions which it implements
28234     to always fail with ENOSYS.  Some functions are actually named
28235     something starting with __ and the normal name is an alias.  */
28236 #if defined __stub_$ac_func || defined __stub___$ac_func
28237 choke me
28238 #endif
28239
28240 int
28241 main ()
28242 {
28243 return $ac_func ();
28244   ;
28245   return 0;
28246 }
28247 _ACEOF
28248 rm -f conftest.$ac_objext conftest$ac_exeext
28249 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28250   (eval $ac_link) 2>conftest.er1
28251   ac_status=$?
28252   grep -v '^ *+' conftest.er1 >conftest.err
28253   rm -f conftest.er1
28254   cat conftest.err >&5
28255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28256   (exit $ac_status); } &&
28257          { ac_try='test -z "$ac_c_werror_flag"
28258                          || test ! -s conftest.err'
28259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28260   (eval $ac_try) 2>&5
28261   ac_status=$?
28262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28263   (exit $ac_status); }; } &&
28264          { ac_try='test -s conftest$ac_exeext'
28265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28266   (eval $ac_try) 2>&5
28267   ac_status=$?
28268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28269   (exit $ac_status); }; }; then
28270   eval "$as_ac_var=yes"
28271 else
28272   echo "$as_me: failed program was:" >&5
28273 sed 's/^/| /' conftest.$ac_ext >&5
28274
28275         eval "$as_ac_var=no"
28276 fi
28277
28278 rm -f conftest.err conftest.$ac_objext \
28279       conftest$ac_exeext conftest.$ac_ext
28280 fi
28281 ac_res=`eval echo '${'$as_ac_var'}'`
28282                { echo "$as_me:$LINENO: result: $ac_res" >&5
28283 echo "${ECHO_T}$ac_res" >&6; }
28284 if test `eval echo '${'$as_ac_var'}'` = yes; then
28285   cat >>confdefs.h <<_ACEOF
28286 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28287 _ACEOF
28288
28289 fi
28290 done
28291
28292
28293
28294
28295
28296
28297
28298
28299
28300
28301
28302
28303
28304
28305
28306
28307   case " $LIBOBJS " in
28308   *" gettime.$ac_objext "* ) ;;
28309   *) LIBOBJS="$LIBOBJS gettime.$ac_objext"
28310  ;;
28311 esac
28312
28313
28314
28315
28316
28317   :
28318
28319
28320
28321
28322
28323
28324
28325
28326
28327
28328
28329   case " $LIBOBJS " in
28330   *" getugroups.$ac_objext "* ) ;;
28331   *) LIBOBJS="$LIBOBJS getugroups.$ac_objext"
28332  ;;
28333 esac
28334
28335
28336     { echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
28337 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6; }
28338 if test "${ac_cv_type_getgroups+set}" = set; then
28339   echo $ECHO_N "(cached) $ECHO_C" >&6
28340 else
28341   if test "$cross_compiling" = yes; then
28342   ac_cv_type_getgroups=cross
28343 else
28344   cat >conftest.$ac_ext <<_ACEOF
28345 /* confdefs.h.  */
28346 _ACEOF
28347 cat confdefs.h >>conftest.$ac_ext
28348 cat >>conftest.$ac_ext <<_ACEOF
28349 /* end confdefs.h.  */
28350 /* Thanks to Mike Rendell for this test.  */
28351 $ac_includes_default
28352 #define NGID 256
28353 #undef MAX
28354 #define MAX(x, y) ((x) > (y) ? (x) : (y))
28355
28356 int
28357 main ()
28358 {
28359   gid_t gidset[NGID];
28360   int i, n;
28361   union { gid_t gval; long int lval; }  val;
28362
28363   val.lval = -1;
28364   for (i = 0; i < NGID; i++)
28365     gidset[i] = val.gval;
28366   n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
28367                  gidset);
28368   /* Exit non-zero if getgroups seems to require an array of ints.  This
28369      happens when gid_t is short int but getgroups modifies an array
28370      of ints.  */
28371   return n > 0 && gidset[n] != val.gval;
28372 }
28373 _ACEOF
28374 rm -f conftest$ac_exeext
28375 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28376   (eval $ac_link) 2>&5
28377   ac_status=$?
28378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28379   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28381   (eval $ac_try) 2>&5
28382   ac_status=$?
28383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28384   (exit $ac_status); }; }; then
28385   ac_cv_type_getgroups=gid_t
28386 else
28387   echo "$as_me: program exited with status $ac_status" >&5
28388 echo "$as_me: failed program was:" >&5
28389 sed 's/^/| /' conftest.$ac_ext >&5
28390
28391 ( exit $ac_status )
28392 ac_cv_type_getgroups=int
28393 fi
28394 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28395 fi
28396
28397
28398 if test $ac_cv_type_getgroups = cross; then
28399         cat >conftest.$ac_ext <<_ACEOF
28400 /* confdefs.h.  */
28401 _ACEOF
28402 cat confdefs.h >>conftest.$ac_ext
28403 cat >>conftest.$ac_ext <<_ACEOF
28404 /* end confdefs.h.  */
28405 #include <unistd.h>
28406
28407 _ACEOF
28408 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28409   $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
28410   ac_cv_type_getgroups=gid_t
28411 else
28412   ac_cv_type_getgroups=int
28413 fi
28414 rm -f conftest*
28415
28416 fi
28417 fi
28418 { echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
28419 echo "${ECHO_T}$ac_cv_type_getgroups" >&6; }
28420
28421 cat >>confdefs.h <<_ACEOF
28422 #define GETGROUPS_T $ac_cv_type_getgroups
28423 _ACEOF
28424
28425
28426
28427
28428
28429   case " $LIBOBJS " in
28430   *" hard-locale.$ac_objext "* ) ;;
28431   *) LIBOBJS="$LIBOBJS hard-locale.$ac_objext"
28432  ;;
28433 esac
28434
28435
28436
28437
28438   case " $LIBOBJS " in
28439   *" hash.$ac_objext "* ) ;;
28440   *) LIBOBJS="$LIBOBJS hash.$ac_objext"
28441  ;;
28442 esac
28443
28444
28445
28446
28447
28448
28449   case " $LIBOBJS " in
28450   *" hash-pjw.$ac_objext "* ) ;;
28451   *) LIBOBJS="$LIBOBJS hash-pjw.$ac_objext"
28452  ;;
28453 esac
28454
28455
28456
28457
28458
28459   case " $LIBOBJS " in
28460   *" human.$ac_objext "* ) ;;
28461   *) LIBOBJS="$LIBOBJS human.$ac_objext"
28462  ;;
28463 esac
28464
28465
28466
28467
28468
28469     :
28470
28471
28472
28473   case " $LIBOBJS " in
28474   *" idcache.$ac_objext "* ) ;;
28475   *) LIBOBJS="$LIBOBJS idcache.$ac_objext"
28476  ;;
28477 esac
28478
28479
28480
28481
28482
28483
28484
28485   case " $LIBOBJS " in
28486   *" imaxtostr.$ac_objext "* ) ;;
28487   *) LIBOBJS="$LIBOBJS imaxtostr.$ac_objext"
28488  ;;
28489 esac
28490
28491   case " $LIBOBJS " in
28492   *" offtostr.$ac_objext "* ) ;;
28493   *) LIBOBJS="$LIBOBJS offtostr.$ac_objext"
28494  ;;
28495 esac
28496
28497   case " $LIBOBJS " in
28498   *" umaxtostr.$ac_objext "* ) ;;
28499   *) LIBOBJS="$LIBOBJS umaxtostr.$ac_objext"
28500  ;;
28501 esac
28502
28503
28504
28505
28506
28507
28508   :
28509
28510   :
28511   :
28512   :
28513
28514
28515
28516   case " $LIBOBJS " in
28517   *" linebuffer.$ac_objext "* ) ;;
28518   *) LIBOBJS="$LIBOBJS linebuffer.$ac_objext"
28519  ;;
28520 esac
28521
28522
28523
28524
28525
28526
28527
28528
28529
28530
28531
28532
28533
28534
28535
28536
28537
28538
28539
28540
28541
28542
28543
28544
28545   { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
28546 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
28547 if test "${am_cv_langinfo_codeset+set}" = set; then
28548   echo $ECHO_N "(cached) $ECHO_C" >&6
28549 else
28550   cat >conftest.$ac_ext <<_ACEOF
28551 /* confdefs.h.  */
28552 _ACEOF
28553 cat confdefs.h >>conftest.$ac_ext
28554 cat >>conftest.$ac_ext <<_ACEOF
28555 /* end confdefs.h.  */
28556 #include <langinfo.h>
28557 int
28558 main ()
28559 {
28560 char* cs = nl_langinfo(CODESET);
28561   ;
28562   return 0;
28563 }
28564 _ACEOF
28565 rm -f conftest.$ac_objext conftest$ac_exeext
28566 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28567   (eval $ac_link) 2>conftest.er1
28568   ac_status=$?
28569   grep -v '^ *+' conftest.er1 >conftest.err
28570   rm -f conftest.er1
28571   cat conftest.err >&5
28572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28573   (exit $ac_status); } &&
28574          { ac_try='test -z "$ac_c_werror_flag"
28575                          || test ! -s conftest.err'
28576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28577   (eval $ac_try) 2>&5
28578   ac_status=$?
28579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28580   (exit $ac_status); }; } &&
28581          { ac_try='test -s conftest$ac_exeext'
28582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28583   (eval $ac_try) 2>&5
28584   ac_status=$?
28585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28586   (exit $ac_status); }; }; then
28587   am_cv_langinfo_codeset=yes
28588 else
28589   echo "$as_me: failed program was:" >&5
28590 sed 's/^/| /' conftest.$ac_ext >&5
28591
28592         am_cv_langinfo_codeset=no
28593 fi
28594
28595 rm -f conftest.err conftest.$ac_objext \
28596       conftest$ac_exeext conftest.$ac_ext
28597
28598 fi
28599 { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
28600 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
28601   if test $am_cv_langinfo_codeset = yes; then
28602
28603 cat >>confdefs.h <<\_ACEOF
28604 #define HAVE_LANGINFO_CODESET 1
28605 _ACEOF
28606
28607   fi
28608
28609
28610       { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
28611 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
28612 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
28613   echo $ECHO_N "(cached) $ECHO_C" >&6
28614 else
28615   cat >conftest.$ac_ext <<_ACEOF
28616 /* confdefs.h.  */
28617 _ACEOF
28618 cat confdefs.h >>conftest.$ac_ext
28619 cat >>conftest.$ac_ext <<_ACEOF
28620 /* end confdefs.h.  */
28621 $ac_includes_default
28622 int
28623 main ()
28624 {
28625 #ifndef getc_unlocked
28626   char *p = (char *) getc_unlocked;
28627   return !p;
28628 #endif
28629
28630   ;
28631   return 0;
28632 }
28633 _ACEOF
28634 rm -f conftest.$ac_objext
28635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28636   (eval $ac_compile) 2>conftest.er1
28637   ac_status=$?
28638   grep -v '^ *+' conftest.er1 >conftest.err
28639   rm -f conftest.er1
28640   cat conftest.err >&5
28641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28642   (exit $ac_status); } &&
28643          { ac_try='test -z "$ac_c_werror_flag"
28644                          || test ! -s conftest.err'
28645   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28646   (eval $ac_try) 2>&5
28647   ac_status=$?
28648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28649   (exit $ac_status); }; } &&
28650          { ac_try='test -s conftest.$ac_objext'
28651   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28652   (eval $ac_try) 2>&5
28653   ac_status=$?
28654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28655   (exit $ac_status); }; }; then
28656   ac_cv_have_decl_getc_unlocked=yes
28657 else
28658   echo "$as_me: failed program was:" >&5
28659 sed 's/^/| /' conftest.$ac_ext >&5
28660
28661         ac_cv_have_decl_getc_unlocked=no
28662 fi
28663
28664 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28665 fi
28666 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
28667 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
28668 if test $ac_cv_have_decl_getc_unlocked = yes; then
28669
28670 cat >>confdefs.h <<_ACEOF
28671 #define HAVE_DECL_GETC_UNLOCKED 1
28672 _ACEOF
28673
28674
28675 else
28676   cat >>confdefs.h <<_ACEOF
28677 #define HAVE_DECL_GETC_UNLOCKED 0
28678 _ACEOF
28679
28680
28681 fi
28682
28683
28684
28685
28686
28687
28688
28689
28690
28691
28692     { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
28693 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
28694 if test "${ac_cv_gnu_library_2_1+set}" = set; then
28695   echo $ECHO_N "(cached) $ECHO_C" >&6
28696 else
28697   cat >conftest.$ac_ext <<_ACEOF
28698 /* confdefs.h.  */
28699 _ACEOF
28700 cat confdefs.h >>conftest.$ac_ext
28701 cat >>conftest.$ac_ext <<_ACEOF
28702 /* end confdefs.h.  */
28703
28704 #include <features.h>
28705 #ifdef __GNU_LIBRARY__
28706  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
28707   Lucky GNU user
28708  #endif
28709 #endif
28710
28711 _ACEOF
28712 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28713   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
28714   ac_cv_gnu_library_2_1=yes
28715 else
28716   ac_cv_gnu_library_2_1=no
28717 fi
28718 rm -f conftest*
28719
28720
28721
28722 fi
28723 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
28724 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
28725
28726     GLIBC21="$ac_cv_gnu_library_2_1"
28727
28728
28729
28730
28731   :
28732
28733
28734
28735
28736
28737
28738
28739
28740
28741
28742
28743
28744
28745   :
28746
28747
28748
28749
28750
28751
28752   :
28753
28754
28755
28756
28757
28758
28759
28760
28761
28762
28763
28764   case " $LIBOBJS " in
28765   *" long-options.$ac_objext "* ) ;;
28766   *) LIBOBJS="$LIBOBJS long-options.$ac_objext"
28767  ;;
28768 esac
28769
28770
28771
28772
28773
28774
28775
28776
28777
28778
28779
28780
28781
28782
28783
28784
28785
28786
28787   :
28788
28789
28790
28791
28792
28793
28794
28795
28796     if test $ac_cv_header_wchar_h = yes && test $ac_cv_header_wctype_h = yes; then
28797     case " $LIBOBJS " in
28798   *" mbchar.$ac_objext "* ) ;;
28799   *) LIBOBJS="$LIBOBJS mbchar.$ac_objext"
28800  ;;
28801 esac
28802
28803   fi
28804
28805
28806
28807
28808   :
28809
28810
28811
28812
28813
28814
28815
28816
28817
28818
28819
28820
28821
28822
28823
28824   :
28825
28826
28827
28828
28829
28830
28831
28832
28833
28834   :
28835
28836
28837
28838
28839
28840
28841
28842
28843
28844
28845
28846
28847
28848 for ac_func in iswcntrl wcwidth
28849 do
28850 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28851 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28852 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28853 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28854   echo $ECHO_N "(cached) $ECHO_C" >&6
28855 else
28856   cat >conftest.$ac_ext <<_ACEOF
28857 /* confdefs.h.  */
28858 _ACEOF
28859 cat confdefs.h >>conftest.$ac_ext
28860 cat >>conftest.$ac_ext <<_ACEOF
28861 /* end confdefs.h.  */
28862 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28863    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28864 #define $ac_func innocuous_$ac_func
28865
28866 /* System header to define __stub macros and hopefully few prototypes,
28867     which can conflict with char $ac_func (); below.
28868     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28869     <limits.h> exists even on freestanding compilers.  */
28870
28871 #ifdef __STDC__
28872 # include <limits.h>
28873 #else
28874 # include <assert.h>
28875 #endif
28876
28877 #undef $ac_func
28878
28879 /* Override any GCC internal prototype to avoid an error.
28880    Use char because int might match the return type of a GCC
28881    builtin and then its argument prototype would still apply.  */
28882 #ifdef __cplusplus
28883 extern "C"
28884 #endif
28885 char $ac_func ();
28886 /* The GNU C library defines this for functions which it implements
28887     to always fail with ENOSYS.  Some functions are actually named
28888     something starting with __ and the normal name is an alias.  */
28889 #if defined __stub_$ac_func || defined __stub___$ac_func
28890 choke me
28891 #endif
28892
28893 int
28894 main ()
28895 {
28896 return $ac_func ();
28897   ;
28898   return 0;
28899 }
28900 _ACEOF
28901 rm -f conftest.$ac_objext conftest$ac_exeext
28902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28903   (eval $ac_link) 2>conftest.er1
28904   ac_status=$?
28905   grep -v '^ *+' conftest.er1 >conftest.err
28906   rm -f conftest.er1
28907   cat conftest.err >&5
28908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28909   (exit $ac_status); } &&
28910          { ac_try='test -z "$ac_c_werror_flag"
28911                          || test ! -s conftest.err'
28912   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28913   (eval $ac_try) 2>&5
28914   ac_status=$?
28915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28916   (exit $ac_status); }; } &&
28917          { ac_try='test -s conftest$ac_exeext'
28918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28919   (eval $ac_try) 2>&5
28920   ac_status=$?
28921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28922   (exit $ac_status); }; }; then
28923   eval "$as_ac_var=yes"
28924 else
28925   echo "$as_me: failed program was:" >&5
28926 sed 's/^/| /' conftest.$ac_ext >&5
28927
28928         eval "$as_ac_var=no"
28929 fi
28930
28931 rm -f conftest.err conftest.$ac_objext \
28932       conftest$ac_exeext conftest.$ac_ext
28933 fi
28934 ac_res=`eval echo '${'$as_ac_var'}'`
28935                { echo "$as_me:$LINENO: result: $ac_res" >&5
28936 echo "${ECHO_T}$ac_res" >&6; }
28937 if test `eval echo '${'$as_ac_var'}'` = yes; then
28938   cat >>confdefs.h <<_ACEOF
28939 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28940 _ACEOF
28941
28942 fi
28943 done
28944
28945
28946     { echo "$as_me:$LINENO: checking whether mbrtowc and mbstate_t are properly declared" >&5
28947 echo $ECHO_N "checking whether mbrtowc and mbstate_t are properly declared... $ECHO_C" >&6; }
28948 if test "${gl_cv_func_mbrtowc+set}" = set; then
28949   echo $ECHO_N "(cached) $ECHO_C" >&6
28950 else
28951   cat >conftest.$ac_ext <<_ACEOF
28952 /* confdefs.h.  */
28953 _ACEOF
28954 cat confdefs.h >>conftest.$ac_ext
28955 cat >>conftest.$ac_ext <<_ACEOF
28956 /* end confdefs.h.  */
28957 #include <wchar.h>
28958 int
28959 main ()
28960 {
28961 wchar_t wc;
28962               char const s[] = "";
28963               size_t n = 1;
28964               mbstate_t state;
28965               return ! (sizeof state && (mbrtowc) (&wc, s, n, &state));
28966   ;
28967   return 0;
28968 }
28969 _ACEOF
28970 rm -f conftest.$ac_objext conftest$ac_exeext
28971 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28972   (eval $ac_link) 2>conftest.er1
28973   ac_status=$?
28974   grep -v '^ *+' conftest.er1 >conftest.err
28975   rm -f conftest.er1
28976   cat conftest.err >&5
28977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28978   (exit $ac_status); } &&
28979          { ac_try='test -z "$ac_c_werror_flag"
28980                          || test ! -s conftest.err'
28981   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28982   (eval $ac_try) 2>&5
28983   ac_status=$?
28984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28985   (exit $ac_status); }; } &&
28986          { ac_try='test -s conftest$ac_exeext'
28987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28988   (eval $ac_try) 2>&5
28989   ac_status=$?
28990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28991   (exit $ac_status); }; }; then
28992   gl_cv_func_mbrtowc=yes
28993 else
28994   echo "$as_me: failed program was:" >&5
28995 sed 's/^/| /' conftest.$ac_ext >&5
28996
28997         gl_cv_func_mbrtowc=no
28998 fi
28999
29000 rm -f conftest.err conftest.$ac_objext \
29001       conftest$ac_exeext conftest.$ac_ext
29002 fi
29003 { echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc" >&5
29004 echo "${ECHO_T}$gl_cv_func_mbrtowc" >&6; }
29005   if test $gl_cv_func_mbrtowc = yes; then
29006
29007 cat >>confdefs.h <<\_ACEOF
29008 #define HAVE_MBRTOWC 1
29009 _ACEOF
29010
29011   fi
29012
29013
29014   { echo "$as_me:$LINENO: checking whether wcwidth is declared" >&5
29015 echo $ECHO_N "checking whether wcwidth is declared... $ECHO_C" >&6; }
29016 if test "${ac_cv_have_decl_wcwidth+set}" = set; then
29017   echo $ECHO_N "(cached) $ECHO_C" >&6
29018 else
29019   cat >conftest.$ac_ext <<_ACEOF
29020 /* confdefs.h.  */
29021 _ACEOF
29022 cat confdefs.h >>conftest.$ac_ext
29023 cat >>conftest.$ac_ext <<_ACEOF
29024 /* end confdefs.h.  */
29025
29026 /* AIX 3.2.5 declares wcwidth in <string.h>. */
29027 #if HAVE_STRING_H
29028 # include <string.h>
29029 #endif
29030 #if HAVE_WCHAR_H
29031 # include <wchar.h>
29032 #endif
29033
29034 int
29035 main ()
29036 {
29037
29038 #ifndef wcwidth
29039   char *p = (char *) wcwidth;
29040 #endif
29041
29042   ;
29043   return 0;
29044 }
29045 _ACEOF
29046 rm -f conftest.$ac_objext
29047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29048   (eval $ac_compile) 2>conftest.er1
29049   ac_status=$?
29050   grep -v '^ *+' conftest.er1 >conftest.err
29051   rm -f conftest.er1
29052   cat conftest.err >&5
29053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29054   (exit $ac_status); } &&
29055          { ac_try='test -z "$ac_c_werror_flag"
29056                          || test ! -s conftest.err'
29057   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29058   (eval $ac_try) 2>&5
29059   ac_status=$?
29060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29061   (exit $ac_status); }; } &&
29062          { ac_try='test -s conftest.$ac_objext'
29063   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29064   (eval $ac_try) 2>&5
29065   ac_status=$?
29066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29067   (exit $ac_status); }; }; then
29068   ac_cv_have_decl_wcwidth=yes
29069 else
29070   echo "$as_me: failed program was:" >&5
29071 sed 's/^/| /' conftest.$ac_ext >&5
29072
29073         ac_cv_have_decl_wcwidth=no
29074 fi
29075
29076 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29077 fi
29078 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_wcwidth" >&5
29079 echo "${ECHO_T}$ac_cv_have_decl_wcwidth" >&6; }
29080   if test $ac_cv_have_decl_wcwidth = yes; then
29081     ac_val=1
29082   else
29083     ac_val=0
29084   fi
29085
29086 cat >>confdefs.h <<_ACEOF
29087 #define HAVE_DECL_WCWIDTH $ac_val
29088 _ACEOF
29089
29090
29091       { echo "$as_me:$LINENO: checking whether mbswidth is declared in <wchar.h>" >&5
29092 echo $ECHO_N "checking whether mbswidth is declared in <wchar.h>... $ECHO_C" >&6; }
29093 if test "${ac_cv_have_decl_mbswidth+set}" = set; then
29094   echo $ECHO_N "(cached) $ECHO_C" >&6
29095 else
29096   cat >conftest.$ac_ext <<_ACEOF
29097 /* confdefs.h.  */
29098 _ACEOF
29099 cat confdefs.h >>conftest.$ac_ext
29100 cat >>conftest.$ac_ext <<_ACEOF
29101 /* end confdefs.h.  */
29102
29103 #if HAVE_WCHAR_H
29104 # include <wchar.h>
29105 #endif
29106
29107 int
29108 main ()
29109 {
29110
29111   char *p = (char *) mbswidth;
29112
29113   ;
29114   return 0;
29115 }
29116 _ACEOF
29117 rm -f conftest.$ac_objext
29118 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29119   (eval $ac_compile) 2>conftest.er1
29120   ac_status=$?
29121   grep -v '^ *+' conftest.er1 >conftest.err
29122   rm -f conftest.er1
29123   cat conftest.err >&5
29124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29125   (exit $ac_status); } &&
29126          { ac_try='test -z "$ac_c_werror_flag"
29127                          || test ! -s conftest.err'
29128   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29129   (eval $ac_try) 2>&5
29130   ac_status=$?
29131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29132   (exit $ac_status); }; } &&
29133          { ac_try='test -s conftest.$ac_objext'
29134   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29135   (eval $ac_try) 2>&5
29136   ac_status=$?
29137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29138   (exit $ac_status); }; }; then
29139   ac_cv_have_decl_mbswidth=yes
29140 else
29141   echo "$as_me: failed program was:" >&5
29142 sed 's/^/| /' conftest.$ac_ext >&5
29143
29144         ac_cv_have_decl_mbswidth=no
29145 fi
29146
29147 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29148 fi
29149 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_mbswidth" >&5
29150 echo "${ECHO_T}$ac_cv_have_decl_mbswidth" >&6; }
29151   if test $ac_cv_have_decl_mbswidth = yes; then
29152     ac_val=1
29153   else
29154     ac_val=0
29155   fi
29156
29157 cat >>confdefs.h <<_ACEOF
29158 #define HAVE_DECL_MBSWIDTH_IN_WCHAR_H $ac_val
29159 _ACEOF
29160
29161
29162   { echo "$as_me:$LINENO: checking for mbstate_t" >&5
29163 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
29164 if test "${ac_cv_type_mbstate_t+set}" = set; then
29165   echo $ECHO_N "(cached) $ECHO_C" >&6
29166 else
29167   cat >conftest.$ac_ext <<_ACEOF
29168 /* confdefs.h.  */
29169 _ACEOF
29170 cat confdefs.h >>conftest.$ac_ext
29171 cat >>conftest.$ac_ext <<_ACEOF
29172 /* end confdefs.h.  */
29173 $ac_includes_default
29174 #           include <wchar.h>
29175 int
29176 main ()
29177 {
29178 mbstate_t x; return sizeof x;
29179   ;
29180   return 0;
29181 }
29182 _ACEOF
29183 rm -f conftest.$ac_objext
29184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29185   (eval $ac_compile) 2>conftest.er1
29186   ac_status=$?
29187   grep -v '^ *+' conftest.er1 >conftest.err
29188   rm -f conftest.er1
29189   cat conftest.err >&5
29190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29191   (exit $ac_status); } &&
29192          { ac_try='test -z "$ac_c_werror_flag"
29193                          || test ! -s conftest.err'
29194   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29195   (eval $ac_try) 2>&5
29196   ac_status=$?
29197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29198   (exit $ac_status); }; } &&
29199          { ac_try='test -s conftest.$ac_objext'
29200   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29201   (eval $ac_try) 2>&5
29202   ac_status=$?
29203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29204   (exit $ac_status); }; }; then
29205   ac_cv_type_mbstate_t=yes
29206 else
29207   echo "$as_me: failed program was:" >&5
29208 sed 's/^/| /' conftest.$ac_ext >&5
29209
29210         ac_cv_type_mbstate_t=no
29211 fi
29212
29213 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29214 fi
29215 { echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
29216 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
29217    if test $ac_cv_type_mbstate_t = yes; then
29218
29219 cat >>confdefs.h <<\_ACEOF
29220 #define HAVE_MBSTATE_T 1
29221 _ACEOF
29222
29223    else
29224
29225 cat >>confdefs.h <<\_ACEOF
29226 #define mbstate_t int
29227 _ACEOF
29228
29229    fi
29230
29231
29232
29233   case " $LIBOBJS " in
29234   *" md5.$ac_objext "* ) ;;
29235   *) LIBOBJS="$LIBOBJS md5.$ac_objext"
29236  ;;
29237 esac
29238
29239
29240
29241   :
29242
29243
29244
29245   case " $LIBOBJS " in
29246   *" memcoll.$ac_objext "* ) ;;
29247   *) LIBOBJS="$LIBOBJS memcoll.$ac_objext"
29248  ;;
29249 esac
29250
29251
29252     { echo "$as_me:$LINENO: checking for working strcoll" >&5
29253 echo $ECHO_N "checking for working strcoll... $ECHO_C" >&6; }
29254 if test "${ac_cv_func_strcoll_works+set}" = set; then
29255   echo $ECHO_N "(cached) $ECHO_C" >&6
29256 else
29257   if test "$cross_compiling" = yes; then
29258   ac_cv_func_strcoll_works=no
29259 else
29260   cat >conftest.$ac_ext <<_ACEOF
29261 /* confdefs.h.  */
29262 _ACEOF
29263 cat confdefs.h >>conftest.$ac_ext
29264 cat >>conftest.$ac_ext <<_ACEOF
29265 /* end confdefs.h.  */
29266 $ac_includes_default
29267 int
29268 main ()
29269 {
29270 return (strcoll ("abc", "def") >= 0 ||
29271          strcoll ("ABC", "DEF") >= 0 ||
29272          strcoll ("123", "456") >= 0)
29273   ;
29274   return 0;
29275 }
29276 _ACEOF
29277 rm -f conftest$ac_exeext
29278 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29279   (eval $ac_link) 2>&5
29280   ac_status=$?
29281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29282   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29283   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29284   (eval $ac_try) 2>&5
29285   ac_status=$?
29286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29287   (exit $ac_status); }; }; then
29288   ac_cv_func_strcoll_works=yes
29289 else
29290   echo "$as_me: program exited with status $ac_status" >&5
29291 echo "$as_me: failed program was:" >&5
29292 sed 's/^/| /' conftest.$ac_ext >&5
29293
29294 ( exit $ac_status )
29295 ac_cv_func_strcoll_works=no
29296 fi
29297 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29298 fi
29299
29300
29301 fi
29302 { echo "$as_me:$LINENO: result: $ac_cv_func_strcoll_works" >&5
29303 echo "${ECHO_T}$ac_cv_func_strcoll_works" >&6; }
29304 if test $ac_cv_func_strcoll_works = yes; then
29305
29306 cat >>confdefs.h <<\_ACEOF
29307 #define HAVE_STRCOLL 1
29308 _ACEOF
29309
29310 fi
29311
29312
29313
29314
29315 # Check whether --with-afs was given.
29316 if test "${with_afs+set}" = set; then
29317   withval=$with_afs; test "$withval" = no || with_afs=yes
29318 else
29319   with_afs=no
29320 fi
29321
29322     if test "$with_afs" = yes; then
29323
29324 cat >>confdefs.h <<\_ACEOF
29325 #define AFS 1
29326 _ACEOF
29327
29328     fi
29329
29330
29331
29332
29333
29334
29335
29336
29337
29338
29339   :
29340
29341
29342
29343
29344
29345
29346
29347
29348   case " $LIBOBJS " in
29349   *" chdir-safer.$ac_objext "* ) ;;
29350   *) LIBOBJS="$LIBOBJS chdir-safer.$ac_objext"
29351  ;;
29352 esac
29353
29354
29355
29356
29357   case " $LIBOBJS " in
29358   *" mkdir-p.$ac_objext "* ) ;;
29359   *) LIBOBJS="$LIBOBJS mkdir-p.$ac_objext"
29360  ;;
29361 esac
29362
29363
29364
29365
29366
29367
29368
29369
29370
29371   case " $LIBOBJS " in
29372   *" modechange.$ac_objext "* ) ;;
29373   *) LIBOBJS="$LIBOBJS modechange.$ac_objext"
29374  ;;
29375 esac
29376
29377
29378
29379
29380
29381
29382
29383
29384 for ac_func in listmntent getmntinfo
29385 do
29386 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29387 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29388 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29389 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29390   echo $ECHO_N "(cached) $ECHO_C" >&6
29391 else
29392   cat >conftest.$ac_ext <<_ACEOF
29393 /* confdefs.h.  */
29394 _ACEOF
29395 cat confdefs.h >>conftest.$ac_ext
29396 cat >>conftest.$ac_ext <<_ACEOF
29397 /* end confdefs.h.  */
29398 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29399    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29400 #define $ac_func innocuous_$ac_func
29401
29402 /* System header to define __stub macros and hopefully few prototypes,
29403     which can conflict with char $ac_func (); below.
29404     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29405     <limits.h> exists even on freestanding compilers.  */
29406
29407 #ifdef __STDC__
29408 # include <limits.h>
29409 #else
29410 # include <assert.h>
29411 #endif
29412
29413 #undef $ac_func
29414
29415 /* Override any GCC internal prototype to avoid an error.
29416    Use char because int might match the return type of a GCC
29417    builtin and then its argument prototype would still apply.  */
29418 #ifdef __cplusplus
29419 extern "C"
29420 #endif
29421 char $ac_func ();
29422 /* The GNU C library defines this for functions which it implements
29423     to always fail with ENOSYS.  Some functions are actually named
29424     something starting with __ and the normal name is an alias.  */
29425 #if defined __stub_$ac_func || defined __stub___$ac_func
29426 choke me
29427 #endif
29428
29429 int
29430 main ()
29431 {
29432 return $ac_func ();
29433   ;
29434   return 0;
29435 }
29436 _ACEOF
29437 rm -f conftest.$ac_objext conftest$ac_exeext
29438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29439   (eval $ac_link) 2>conftest.er1
29440   ac_status=$?
29441   grep -v '^ *+' conftest.er1 >conftest.err
29442   rm -f conftest.er1
29443   cat conftest.err >&5
29444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29445   (exit $ac_status); } &&
29446          { ac_try='test -z "$ac_c_werror_flag"
29447                          || test ! -s conftest.err'
29448   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29449   (eval $ac_try) 2>&5
29450   ac_status=$?
29451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29452   (exit $ac_status); }; } &&
29453          { ac_try='test -s conftest$ac_exeext'
29454   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29455   (eval $ac_try) 2>&5
29456   ac_status=$?
29457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29458   (exit $ac_status); }; }; then
29459   eval "$as_ac_var=yes"
29460 else
29461   echo "$as_me: failed program was:" >&5
29462 sed 's/^/| /' conftest.$ac_ext >&5
29463
29464         eval "$as_ac_var=no"
29465 fi
29466
29467 rm -f conftest.err conftest.$ac_objext \
29468       conftest$ac_exeext conftest.$ac_ext
29469 fi
29470 ac_res=`eval echo '${'$as_ac_var'}'`
29471                { echo "$as_me:$LINENO: result: $ac_res" >&5
29472 echo "${ECHO_T}$ac_res" >&6; }
29473 if test `eval echo '${'$as_ac_var'}'` = yes; then
29474   cat >>confdefs.h <<_ACEOF
29475 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29476 _ACEOF
29477
29478 fi
29479 done
29480
29481
29482   :
29483
29484
29485
29486
29487
29488
29489 # We must include grp.h before ucred.h on OSF V4.0, since ucred.h uses
29490 # NGROUPS (as the array dimension for a struct member) without a definition.
29491
29492 for ac_header in sys/ucred.h
29493 do
29494 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29495 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29496 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29497 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29498   echo $ECHO_N "(cached) $ECHO_C" >&6
29499 else
29500   cat >conftest.$ac_ext <<_ACEOF
29501 /* confdefs.h.  */
29502 _ACEOF
29503 cat confdefs.h >>conftest.$ac_ext
29504 cat >>conftest.$ac_ext <<_ACEOF
29505 /* end confdefs.h.  */
29506 #include <grp.h>
29507
29508 #include <$ac_header>
29509 _ACEOF
29510 rm -f conftest.$ac_objext
29511 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29512   (eval $ac_compile) 2>conftest.er1
29513   ac_status=$?
29514   grep -v '^ *+' conftest.er1 >conftest.err
29515   rm -f conftest.er1
29516   cat conftest.err >&5
29517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29518   (exit $ac_status); } &&
29519          { ac_try='test -z "$ac_c_werror_flag"
29520                          || test ! -s conftest.err'
29521   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29522   (eval $ac_try) 2>&5
29523   ac_status=$?
29524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29525   (exit $ac_status); }; } &&
29526          { ac_try='test -s conftest.$ac_objext'
29527   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29528   (eval $ac_try) 2>&5
29529   ac_status=$?
29530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29531   (exit $ac_status); }; }; then
29532   eval "$as_ac_Header=yes"
29533 else
29534   echo "$as_me: failed program was:" >&5
29535 sed 's/^/| /' conftest.$ac_ext >&5
29536
29537         eval "$as_ac_Header=no"
29538 fi
29539
29540 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29541 fi
29542 ac_res=`eval echo '${'$as_ac_Header'}'`
29543                { echo "$as_me:$LINENO: result: $ac_res" >&5
29544 echo "${ECHO_T}$ac_res" >&6; }
29545 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29546   cat >>confdefs.h <<_ACEOF
29547 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29548 _ACEOF
29549
29550 fi
29551
29552 done
29553
29554
29555
29556 for ac_header in sys/mount.h
29557 do
29558 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29559 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29560 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29561 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29562   echo $ECHO_N "(cached) $ECHO_C" >&6
29563 else
29564   cat >conftest.$ac_ext <<_ACEOF
29565 /* confdefs.h.  */
29566 _ACEOF
29567 cat confdefs.h >>conftest.$ac_ext
29568 cat >>conftest.$ac_ext <<_ACEOF
29569 /* end confdefs.h.  */
29570 $ac_includes_default
29571    #if HAVE_SYS_PARAM_H
29572      #include <sys/param.h>
29573     #endif
29574
29575 #include <$ac_header>
29576 _ACEOF
29577 rm -f conftest.$ac_objext
29578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29579   (eval $ac_compile) 2>conftest.er1
29580   ac_status=$?
29581   grep -v '^ *+' conftest.er1 >conftest.err
29582   rm -f conftest.er1
29583   cat conftest.err >&5
29584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29585   (exit $ac_status); } &&
29586          { ac_try='test -z "$ac_c_werror_flag"
29587                          || test ! -s conftest.err'
29588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29589   (eval $ac_try) 2>&5
29590   ac_status=$?
29591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29592   (exit $ac_status); }; } &&
29593          { ac_try='test -s conftest.$ac_objext'
29594   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29595   (eval $ac_try) 2>&5
29596   ac_status=$?
29597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29598   (exit $ac_status); }; }; then
29599   eval "$as_ac_Header=yes"
29600 else
29601   echo "$as_me: failed program was:" >&5
29602 sed 's/^/| /' conftest.$ac_ext >&5
29603
29604         eval "$as_ac_Header=no"
29605 fi
29606
29607 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29608 fi
29609 ac_res=`eval echo '${'$as_ac_Header'}'`
29610                { echo "$as_me:$LINENO: result: $ac_res" >&5
29611 echo "${ECHO_T}$ac_res" >&6; }
29612 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29613   cat >>confdefs.h <<_ACEOF
29614 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29615 _ACEOF
29616
29617 fi
29618
29619 done
29620
29621
29622
29623
29624 for ac_header in mntent.h sys/fs_types.h
29625 do
29626 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29627 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29628   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29629 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29630 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29631   echo $ECHO_N "(cached) $ECHO_C" >&6
29632 fi
29633 ac_res=`eval echo '${'$as_ac_Header'}'`
29634                { echo "$as_me:$LINENO: result: $ac_res" >&5
29635 echo "${ECHO_T}$ac_res" >&6; }
29636 else
29637   # Is the header compilable?
29638 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29639 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29640 cat >conftest.$ac_ext <<_ACEOF
29641 /* confdefs.h.  */
29642 _ACEOF
29643 cat confdefs.h >>conftest.$ac_ext
29644 cat >>conftest.$ac_ext <<_ACEOF
29645 /* end confdefs.h.  */
29646 $ac_includes_default
29647 #include <$ac_header>
29648 _ACEOF
29649 rm -f conftest.$ac_objext
29650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29651   (eval $ac_compile) 2>conftest.er1
29652   ac_status=$?
29653   grep -v '^ *+' conftest.er1 >conftest.err
29654   rm -f conftest.er1
29655   cat conftest.err >&5
29656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29657   (exit $ac_status); } &&
29658          { ac_try='test -z "$ac_c_werror_flag"
29659                          || test ! -s conftest.err'
29660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29661   (eval $ac_try) 2>&5
29662   ac_status=$?
29663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29664   (exit $ac_status); }; } &&
29665          { ac_try='test -s conftest.$ac_objext'
29666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29667   (eval $ac_try) 2>&5
29668   ac_status=$?
29669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29670   (exit $ac_status); }; }; then
29671   ac_header_compiler=yes
29672 else
29673   echo "$as_me: failed program was:" >&5
29674 sed 's/^/| /' conftest.$ac_ext >&5
29675
29676         ac_header_compiler=no
29677 fi
29678
29679 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29680 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29681 echo "${ECHO_T}$ac_header_compiler" >&6; }
29682
29683 # Is the header present?
29684 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29685 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29686 cat >conftest.$ac_ext <<_ACEOF
29687 /* confdefs.h.  */
29688 _ACEOF
29689 cat confdefs.h >>conftest.$ac_ext
29690 cat >>conftest.$ac_ext <<_ACEOF
29691 /* end confdefs.h.  */
29692 #include <$ac_header>
29693 _ACEOF
29694 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29695   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29696   ac_status=$?
29697   grep -v '^ *+' conftest.er1 >conftest.err
29698   rm -f conftest.er1
29699   cat conftest.err >&5
29700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29701   (exit $ac_status); } >/dev/null; then
29702   if test -s conftest.err; then
29703     ac_cpp_err=$ac_c_preproc_warn_flag
29704     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29705   else
29706     ac_cpp_err=
29707   fi
29708 else
29709   ac_cpp_err=yes
29710 fi
29711 if test -z "$ac_cpp_err"; then
29712   ac_header_preproc=yes
29713 else
29714   echo "$as_me: failed program was:" >&5
29715 sed 's/^/| /' conftest.$ac_ext >&5
29716
29717   ac_header_preproc=no
29718 fi
29719
29720 rm -f conftest.err conftest.$ac_ext
29721 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29722 echo "${ECHO_T}$ac_header_preproc" >&6; }
29723
29724 # So?  What about this header?
29725 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29726   yes:no: )
29727     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29728 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29729     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29730 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29731     ac_header_preproc=yes
29732     ;;
29733   no:yes:* )
29734     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29735 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29736     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29737 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29738     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29739 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29740     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29741 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29742     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29743 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29744     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29745 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29746     ( cat <<\_ASBOX
29747 ## ------------------------------------ ##
29748 ## Report this to bug-coreutils@gnu.org ##
29749 ## ------------------------------------ ##
29750 _ASBOX
29751      ) | sed "s/^/$as_me: WARNING:     /" >&2
29752     ;;
29753 esac
29754 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29755 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29756 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29757   echo $ECHO_N "(cached) $ECHO_C" >&6
29758 else
29759   eval "$as_ac_Header=\$ac_header_preproc"
29760 fi
29761 ac_res=`eval echo '${'$as_ac_Header'}'`
29762                { echo "$as_me:$LINENO: result: $ac_res" >&5
29763 echo "${ECHO_T}$ac_res" >&6; }
29764
29765 fi
29766 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29767   cat >>confdefs.h <<_ACEOF
29768 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29769 _ACEOF
29770
29771 fi
29772
29773 done
29774
29775     getfsstat_includes="\
29776 $ac_includes_default
29777 #if HAVE_SYS_PARAM_H
29778 # include <sys/param.h> /* needed by powerpc-apple-darwin1.3.7 */
29779 #endif
29780 #if HAVE_SYS_UCRED_H
29781 # include <grp.h> /* needed for definition of NGROUPS */
29782 # include <sys/ucred.h> /* needed by powerpc-apple-darwin1.3.7 */
29783 #endif
29784 #if HAVE_SYS_MOUNT_H
29785 # include <sys/mount.h>
29786 #endif
29787 #if HAVE_SYS_FS_TYPES_H
29788 # include <sys/fs_types.h> /* needed by powerpc-apple-darwin1.3.7 */
29789 #endif
29790 "
29791 { echo "$as_me:$LINENO: checking for struct fsstat.f_fstypename" >&5
29792 echo $ECHO_N "checking for struct fsstat.f_fstypename... $ECHO_C" >&6; }
29793 if test "${ac_cv_member_struct_fsstat_f_fstypename+set}" = set; then
29794   echo $ECHO_N "(cached) $ECHO_C" >&6
29795 else
29796   cat >conftest.$ac_ext <<_ACEOF
29797 /* confdefs.h.  */
29798 _ACEOF
29799 cat confdefs.h >>conftest.$ac_ext
29800 cat >>conftest.$ac_ext <<_ACEOF
29801 /* end confdefs.h.  */
29802 $getfsstat_includes
29803
29804 int
29805 main ()
29806 {
29807 static struct fsstat ac_aggr;
29808 if (ac_aggr.f_fstypename)
29809 return 0;
29810   ;
29811   return 0;
29812 }
29813 _ACEOF
29814 rm -f conftest.$ac_objext
29815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29816   (eval $ac_compile) 2>conftest.er1
29817   ac_status=$?
29818   grep -v '^ *+' conftest.er1 >conftest.err
29819   rm -f conftest.er1
29820   cat conftest.err >&5
29821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29822   (exit $ac_status); } &&
29823          { ac_try='test -z "$ac_c_werror_flag"
29824                          || test ! -s conftest.err'
29825   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29826   (eval $ac_try) 2>&5
29827   ac_status=$?
29828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29829   (exit $ac_status); }; } &&
29830          { ac_try='test -s conftest.$ac_objext'
29831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29832   (eval $ac_try) 2>&5
29833   ac_status=$?
29834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29835   (exit $ac_status); }; }; then
29836   ac_cv_member_struct_fsstat_f_fstypename=yes
29837 else
29838   echo "$as_me: failed program was:" >&5
29839 sed 's/^/| /' conftest.$ac_ext >&5
29840
29841         cat >conftest.$ac_ext <<_ACEOF
29842 /* confdefs.h.  */
29843 _ACEOF
29844 cat confdefs.h >>conftest.$ac_ext
29845 cat >>conftest.$ac_ext <<_ACEOF
29846 /* end confdefs.h.  */
29847 $getfsstat_includes
29848
29849 int
29850 main ()
29851 {
29852 static struct fsstat ac_aggr;
29853 if (sizeof ac_aggr.f_fstypename)
29854 return 0;
29855   ;
29856   return 0;
29857 }
29858 _ACEOF
29859 rm -f conftest.$ac_objext
29860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29861   (eval $ac_compile) 2>conftest.er1
29862   ac_status=$?
29863   grep -v '^ *+' conftest.er1 >conftest.err
29864   rm -f conftest.er1
29865   cat conftest.err >&5
29866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29867   (exit $ac_status); } &&
29868          { ac_try='test -z "$ac_c_werror_flag"
29869                          || test ! -s conftest.err'
29870   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29871   (eval $ac_try) 2>&5
29872   ac_status=$?
29873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29874   (exit $ac_status); }; } &&
29875          { ac_try='test -s conftest.$ac_objext'
29876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29877   (eval $ac_try) 2>&5
29878   ac_status=$?
29879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29880   (exit $ac_status); }; }; then
29881   ac_cv_member_struct_fsstat_f_fstypename=yes
29882 else
29883   echo "$as_me: failed program was:" >&5
29884 sed 's/^/| /' conftest.$ac_ext >&5
29885
29886         ac_cv_member_struct_fsstat_f_fstypename=no
29887 fi
29888
29889 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29890 fi
29891
29892 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29893 fi
29894 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_fsstat_f_fstypename" >&5
29895 echo "${ECHO_T}$ac_cv_member_struct_fsstat_f_fstypename" >&6; }
29896 if test $ac_cv_member_struct_fsstat_f_fstypename = yes; then
29897
29898 cat >>confdefs.h <<_ACEOF
29899 #define HAVE_STRUCT_FSSTAT_F_FSTYPENAME 1
29900 _ACEOF
29901
29902
29903 fi
29904
29905
29906 # Determine how to get the list of mounted file systems.
29907 ac_list_mounted_fs=
29908
29909 # If the getmntent function is available but not in the standard library,
29910 # make sure LIBS contains the appropriate -l option.
29911 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
29912 # -lseq on Dynix/PTX, -lgen on Unixware.
29913 { echo "$as_me:$LINENO: checking for library containing getmntent" >&5
29914 echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; }
29915 if test "${ac_cv_search_getmntent+set}" = set; then
29916   echo $ECHO_N "(cached) $ECHO_C" >&6
29917 else
29918   ac_func_search_save_LIBS=$LIBS
29919 cat >conftest.$ac_ext <<_ACEOF
29920 /* confdefs.h.  */
29921 _ACEOF
29922 cat confdefs.h >>conftest.$ac_ext
29923 cat >>conftest.$ac_ext <<_ACEOF
29924 /* end confdefs.h.  */
29925
29926 /* Override any GCC internal prototype to avoid an error.
29927    Use char because int might match the return type of a GCC
29928    builtin and then its argument prototype would still apply.  */
29929 #ifdef __cplusplus
29930 extern "C"
29931 #endif
29932 char getmntent ();
29933 int
29934 main ()
29935 {
29936 return getmntent ();
29937   ;
29938   return 0;
29939 }
29940 _ACEOF
29941 for ac_lib in '' sun seq gen; do
29942   if test -z "$ac_lib"; then
29943     ac_res="none required"
29944   else
29945     ac_res=-l$ac_lib
29946     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
29947   fi
29948   rm -f conftest.$ac_objext conftest$ac_exeext
29949 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29950   (eval $ac_link) 2>conftest.er1
29951   ac_status=$?
29952   grep -v '^ *+' conftest.er1 >conftest.err
29953   rm -f conftest.er1
29954   cat conftest.err >&5
29955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29956   (exit $ac_status); } &&
29957          { ac_try='test -z "$ac_c_werror_flag"
29958                          || test ! -s conftest.err'
29959   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29960   (eval $ac_try) 2>&5
29961   ac_status=$?
29962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29963   (exit $ac_status); }; } &&
29964          { ac_try='test -s conftest$ac_exeext'
29965   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29966   (eval $ac_try) 2>&5
29967   ac_status=$?
29968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29969   (exit $ac_status); }; }; then
29970   ac_cv_search_getmntent=$ac_res
29971 else
29972   echo "$as_me: failed program was:" >&5
29973 sed 's/^/| /' conftest.$ac_ext >&5
29974
29975
29976 fi
29977
29978 rm -f conftest.err conftest.$ac_objext \
29979       conftest$ac_exeext
29980   if test "${ac_cv_search_getmntent+set}" = set; then
29981   break
29982 fi
29983 done
29984 if test "${ac_cv_search_getmntent+set}" = set; then
29985   :
29986 else
29987   ac_cv_search_getmntent=no
29988 fi
29989 rm conftest.$ac_ext
29990 LIBS=$ac_func_search_save_LIBS
29991 fi
29992 { echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
29993 echo "${ECHO_T}$ac_cv_search_getmntent" >&6; }
29994 ac_res=$ac_cv_search_getmntent
29995 if test "$ac_res" != no; then
29996   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29997
29998 fi
29999
30000
30001 for ac_func in getmntent
30002 do
30003 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30004 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30005 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30006 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30007   echo $ECHO_N "(cached) $ECHO_C" >&6
30008 else
30009   cat >conftest.$ac_ext <<_ACEOF
30010 /* confdefs.h.  */
30011 _ACEOF
30012 cat confdefs.h >>conftest.$ac_ext
30013 cat >>conftest.$ac_ext <<_ACEOF
30014 /* end confdefs.h.  */
30015 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30016    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30017 #define $ac_func innocuous_$ac_func
30018
30019 /* System header to define __stub macros and hopefully few prototypes,
30020     which can conflict with char $ac_func (); below.
30021     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30022     <limits.h> exists even on freestanding compilers.  */
30023
30024 #ifdef __STDC__
30025 # include <limits.h>
30026 #else
30027 # include <assert.h>
30028 #endif
30029
30030 #undef $ac_func
30031
30032 /* Override any GCC internal prototype to avoid an error.
30033    Use char because int might match the return type of a GCC
30034    builtin and then its argument prototype would still apply.  */
30035 #ifdef __cplusplus
30036 extern "C"
30037 #endif
30038 char $ac_func ();
30039 /* The GNU C library defines this for functions which it implements
30040     to always fail with ENOSYS.  Some functions are actually named
30041     something starting with __ and the normal name is an alias.  */
30042 #if defined __stub_$ac_func || defined __stub___$ac_func
30043 choke me
30044 #endif
30045
30046 int
30047 main ()
30048 {
30049 return $ac_func ();
30050   ;
30051   return 0;
30052 }
30053 _ACEOF
30054 rm -f conftest.$ac_objext conftest$ac_exeext
30055 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30056   (eval $ac_link) 2>conftest.er1
30057   ac_status=$?
30058   grep -v '^ *+' conftest.er1 >conftest.err
30059   rm -f conftest.er1
30060   cat conftest.err >&5
30061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30062   (exit $ac_status); } &&
30063          { ac_try='test -z "$ac_c_werror_flag"
30064                          || test ! -s conftest.err'
30065   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30066   (eval $ac_try) 2>&5
30067   ac_status=$?
30068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30069   (exit $ac_status); }; } &&
30070          { ac_try='test -s conftest$ac_exeext'
30071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30072   (eval $ac_try) 2>&5
30073   ac_status=$?
30074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30075   (exit $ac_status); }; }; then
30076   eval "$as_ac_var=yes"
30077 else
30078   echo "$as_me: failed program was:" >&5
30079 sed 's/^/| /' conftest.$ac_ext >&5
30080
30081         eval "$as_ac_var=no"
30082 fi
30083
30084 rm -f conftest.err conftest.$ac_objext \
30085       conftest$ac_exeext conftest.$ac_ext
30086 fi
30087 ac_res=`eval echo '${'$as_ac_var'}'`
30088                { echo "$as_me:$LINENO: result: $ac_res" >&5
30089 echo "${ECHO_T}$ac_res" >&6; }
30090 if test `eval echo '${'$as_ac_var'}'` = yes; then
30091   cat >>confdefs.h <<_ACEOF
30092 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30093 _ACEOF
30094
30095 fi
30096 done
30097
30098
30099
30100 # This test must precede the ones for getmntent because Unicos-9 is
30101 # reported to have the getmntent function, but its support is incompatible
30102 # with other getmntent implementations.
30103
30104 # NOTE: Normally, I wouldn't use a check for system type as I've done for
30105 # `CRAY' below since that goes against the whole autoconf philosophy.  But
30106 # I think there is too great a chance that some non-Cray system has a
30107 # function named listmntent to risk the false positive.
30108
30109 if test -z "$ac_list_mounted_fs"; then
30110   # Cray UNICOS 9
30111   { echo "$as_me:$LINENO: checking for listmntent of Cray/Unicos-9" >&5
30112 echo $ECHO_N "checking for listmntent of Cray/Unicos-9... $ECHO_C" >&6; }
30113   if test "${fu_cv_sys_mounted_cray_listmntent+set}" = set; then
30114   echo $ECHO_N "(cached) $ECHO_C" >&6
30115 else
30116   fu_cv_sys_mounted_cray_listmntent=no
30117       cat >conftest.$ac_ext <<_ACEOF
30118 /* confdefs.h.  */
30119 _ACEOF
30120 cat confdefs.h >>conftest.$ac_ext
30121 cat >>conftest.$ac_ext <<_ACEOF
30122 /* end confdefs.h.  */
30123 #ifdef _CRAY
30124 yes
30125 #endif
30126
30127 _ACEOF
30128 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30129   $EGREP "yes" >/dev/null 2>&1; then
30130   test $ac_cv_func_listmntent = yes \
30131             && fu_cv_sys_mounted_cray_listmntent=yes
30132
30133 fi
30134 rm -f conftest*
30135
30136
30137
30138 fi
30139
30140   { echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_cray_listmntent" >&5
30141 echo "${ECHO_T}$fu_cv_sys_mounted_cray_listmntent" >&6; }
30142   if test $fu_cv_sys_mounted_cray_listmntent = yes; then
30143     ac_list_mounted_fs=found
30144
30145 cat >>confdefs.h <<\_ACEOF
30146 #define MOUNTED_LISTMNTENT 1
30147 _ACEOF
30148
30149   fi
30150 fi
30151
30152 if test -z "$ac_list_mounted_fs"; then
30153   # AIX.
30154   { echo "$as_me:$LINENO: checking for mntctl function and struct vmount" >&5
30155 echo $ECHO_N "checking for mntctl function and struct vmount... $ECHO_C" >&6; }
30156   if test "${fu_cv_sys_mounted_vmount+set}" = set; then
30157   echo $ECHO_N "(cached) $ECHO_C" >&6
30158 else
30159   cat >conftest.$ac_ext <<_ACEOF
30160 /* confdefs.h.  */
30161 _ACEOF
30162 cat confdefs.h >>conftest.$ac_ext
30163 cat >>conftest.$ac_ext <<_ACEOF
30164 /* end confdefs.h.  */
30165 #include <fshelp.h>
30166 _ACEOF
30167 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30168   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30169   ac_status=$?
30170   grep -v '^ *+' conftest.er1 >conftest.err
30171   rm -f conftest.er1
30172   cat conftest.err >&5
30173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30174   (exit $ac_status); } >/dev/null; then
30175   if test -s conftest.err; then
30176     ac_cpp_err=$ac_c_preproc_warn_flag
30177     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30178   else
30179     ac_cpp_err=
30180   fi
30181 else
30182   ac_cpp_err=yes
30183 fi
30184 if test -z "$ac_cpp_err"; then
30185   fu_cv_sys_mounted_vmount=yes
30186 else
30187   echo "$as_me: failed program was:" >&5
30188 sed 's/^/| /' conftest.$ac_ext >&5
30189
30190   fu_cv_sys_mounted_vmount=no
30191 fi
30192
30193 rm -f conftest.err conftest.$ac_ext
30194 fi
30195
30196   { echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_vmount" >&5
30197 echo "${ECHO_T}$fu_cv_sys_mounted_vmount" >&6; }
30198   if test $fu_cv_sys_mounted_vmount = yes; then
30199     ac_list_mounted_fs=found
30200
30201 cat >>confdefs.h <<\_ACEOF
30202 #define MOUNTED_VMOUNT 1
30203 _ACEOF
30204
30205   fi
30206 fi
30207
30208 if test $ac_cv_func_getmntent = yes; then
30209
30210   # This system has the getmntent function.
30211   # Determine whether it's the one-argument variant or the two-argument one.
30212
30213   if test -z "$ac_list_mounted_fs"; then
30214     # 4.3BSD, SunOS, HP-UX, Dynix, Irix
30215     { echo "$as_me:$LINENO: checking for one-argument getmntent function" >&5
30216 echo $ECHO_N "checking for one-argument getmntent function... $ECHO_C" >&6; }
30217     if test "${fu_cv_sys_mounted_getmntent1+set}" = set; then
30218   echo $ECHO_N "(cached) $ECHO_C" >&6
30219 else
30220   cat >conftest.$ac_ext <<_ACEOF
30221 /* confdefs.h.  */
30222 _ACEOF
30223 cat confdefs.h >>conftest.$ac_ext
30224 cat >>conftest.$ac_ext <<_ACEOF
30225 /* end confdefs.h.  */
30226
30227 /* SunOS 4.1.x /usr/include/mntent.h needs this for FILE */
30228 #include <stdio.h>
30229
30230 #include <mntent.h>
30231 #if !defined MOUNTED
30232 # if defined _PATH_MOUNTED      /* GNU libc  */
30233 #  define MOUNTED _PATH_MOUNTED
30234 # endif
30235 # if defined MNT_MNTTAB /* HP-UX.  */
30236 #  define MOUNTED MNT_MNTTAB
30237 # endif
30238 # if defined MNTTABNAME /* Dynix.  */
30239 #  define MOUNTED MNTTABNAME
30240 # endif
30241 #endif
30242
30243 int
30244 main ()
30245 {
30246  struct mntent *mnt = 0; char *table = MOUNTED;
30247   ;
30248   return 0;
30249 }
30250 _ACEOF
30251 rm -f conftest.$ac_objext
30252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30253   (eval $ac_compile) 2>conftest.er1
30254   ac_status=$?
30255   grep -v '^ *+' conftest.er1 >conftest.err
30256   rm -f conftest.er1
30257   cat conftest.err >&5
30258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30259   (exit $ac_status); } &&
30260          { ac_try='test -z "$ac_c_werror_flag"
30261                          || test ! -s conftest.err'
30262   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30263   (eval $ac_try) 2>&5
30264   ac_status=$?
30265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30266   (exit $ac_status); }; } &&
30267          { ac_try='test -s conftest.$ac_objext'
30268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30269   (eval $ac_try) 2>&5
30270   ac_status=$?
30271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30272   (exit $ac_status); }; }; then
30273   fu_cv_sys_mounted_getmntent1=yes
30274 else
30275   echo "$as_me: failed program was:" >&5
30276 sed 's/^/| /' conftest.$ac_ext >&5
30277
30278         fu_cv_sys_mounted_getmntent1=no
30279 fi
30280
30281 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30282 fi
30283
30284     { echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_getmntent1" >&5
30285 echo "${ECHO_T}$fu_cv_sys_mounted_getmntent1" >&6; }
30286     if test $fu_cv_sys_mounted_getmntent1 = yes; then
30287       ac_list_mounted_fs=found
30288
30289 cat >>confdefs.h <<\_ACEOF
30290 #define MOUNTED_GETMNTENT1 1
30291 _ACEOF
30292
30293     fi
30294   fi
30295
30296   if test -z "$ac_list_mounted_fs"; then
30297     # SVR4
30298     { echo "$as_me:$LINENO: checking for two-argument getmntent function" >&5
30299 echo $ECHO_N "checking for two-argument getmntent function... $ECHO_C" >&6; }
30300     if test "${fu_cv_sys_mounted_getmntent2+set}" = set; then
30301   echo $ECHO_N "(cached) $ECHO_C" >&6
30302 else
30303   cat >conftest.$ac_ext <<_ACEOF
30304 /* confdefs.h.  */
30305 _ACEOF
30306 cat confdefs.h >>conftest.$ac_ext
30307 cat >>conftest.$ac_ext <<_ACEOF
30308 /* end confdefs.h.  */
30309 #include <sys/mnttab.h>
30310
30311 _ACEOF
30312 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30313   $EGREP "getmntent" >/dev/null 2>&1; then
30314   fu_cv_sys_mounted_getmntent2=yes
30315 else
30316   fu_cv_sys_mounted_getmntent2=no
30317 fi
30318 rm -f conftest*
30319
30320 fi
30321
30322     { echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_getmntent2" >&5
30323 echo "${ECHO_T}$fu_cv_sys_mounted_getmntent2" >&6; }
30324     if test $fu_cv_sys_mounted_getmntent2 = yes; then
30325       ac_list_mounted_fs=found
30326
30327 cat >>confdefs.h <<\_ACEOF
30328 #define MOUNTED_GETMNTENT2 1
30329 _ACEOF
30330
30331     fi
30332   fi
30333
30334 fi
30335
30336 if test -z "$ac_list_mounted_fs"; then
30337   # DEC Alpha running OSF/1, and Apple Darwin 1.3.
30338   # powerpc-apple-darwin1.3.7 needs sys/param.h sys/ucred.h sys/fs_types.h
30339
30340   { echo "$as_me:$LINENO: checking for getfsstat function" >&5
30341 echo $ECHO_N "checking for getfsstat function... $ECHO_C" >&6; }
30342   if test "${fu_cv_sys_mounted_getfsstat+set}" = set; then
30343   echo $ECHO_N "(cached) $ECHO_C" >&6
30344 else
30345   cat >conftest.$ac_ext <<_ACEOF
30346 /* confdefs.h.  */
30347 _ACEOF
30348 cat confdefs.h >>conftest.$ac_ext
30349 cat >>conftest.$ac_ext <<_ACEOF
30350 /* end confdefs.h.  */
30351
30352 #include <sys/types.h>
30353 #if HAVE_STRUCT_FSSTAT_F_FSTYPENAME
30354 # define FS_TYPE(Ent) ((Ent).f_fstypename)
30355 #else
30356 # define FS_TYPE(Ent) mnt_names[(Ent).f_type]
30357 #endif
30358 $getfsstat_includes
30359
30360 int
30361 main ()
30362 {
30363 struct statfs *stats;
30364    int numsys = getfsstat ((struct statfs *)0, 0L, MNT_WAIT);
30365    char *t = FS_TYPE (*stats);
30366   ;
30367   return 0;
30368 }
30369 _ACEOF
30370 rm -f conftest.$ac_objext conftest$ac_exeext
30371 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30372   (eval $ac_link) 2>conftest.er1
30373   ac_status=$?
30374   grep -v '^ *+' conftest.er1 >conftest.err
30375   rm -f conftest.er1
30376   cat conftest.err >&5
30377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30378   (exit $ac_status); } &&
30379          { ac_try='test -z "$ac_c_werror_flag"
30380                          || test ! -s conftest.err'
30381   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30382   (eval $ac_try) 2>&5
30383   ac_status=$?
30384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30385   (exit $ac_status); }; } &&
30386          { ac_try='test -s conftest$ac_exeext'
30387   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30388   (eval $ac_try) 2>&5
30389   ac_status=$?
30390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30391   (exit $ac_status); }; }; then
30392   fu_cv_sys_mounted_getfsstat=yes
30393 else
30394   echo "$as_me: failed program was:" >&5
30395 sed 's/^/| /' conftest.$ac_ext >&5
30396
30397         fu_cv_sys_mounted_getfsstat=no
30398 fi
30399
30400 rm -f conftest.err conftest.$ac_objext \
30401       conftest$ac_exeext conftest.$ac_ext
30402 fi
30403
30404   { echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_getfsstat" >&5
30405 echo "${ECHO_T}$fu_cv_sys_mounted_getfsstat" >&6; }
30406   if test $fu_cv_sys_mounted_getfsstat = yes; then
30407     ac_list_mounted_fs=found
30408
30409 cat >>confdefs.h <<\_ACEOF
30410 #define MOUNTED_GETFSSTAT 1
30411 _ACEOF
30412
30413   fi
30414 fi
30415
30416 if test -z "$ac_list_mounted_fs"; then
30417   # SVR3
30418   { echo "$as_me:$LINENO: checking for FIXME existence of three headers" >&5
30419 echo $ECHO_N "checking for FIXME existence of three headers... $ECHO_C" >&6; }
30420   if test "${fu_cv_sys_mounted_fread_fstyp+set}" = set; then
30421   echo $ECHO_N "(cached) $ECHO_C" >&6
30422 else
30423   cat >conftest.$ac_ext <<_ACEOF
30424 /* confdefs.h.  */
30425 _ACEOF
30426 cat confdefs.h >>conftest.$ac_ext
30427 cat >>conftest.$ac_ext <<_ACEOF
30428 /* end confdefs.h.  */
30429
30430 #include <sys/statfs.h>
30431 #include <sys/fstyp.h>
30432 #include <mnttab.h>
30433 _ACEOF
30434 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30435   (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then
30442   if test -s conftest.err; then
30443     ac_cpp_err=$ac_c_preproc_warn_flag
30444     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30445   else
30446     ac_cpp_err=
30447   fi
30448 else
30449   ac_cpp_err=yes
30450 fi
30451 if test -z "$ac_cpp_err"; then
30452   fu_cv_sys_mounted_fread_fstyp=yes
30453 else
30454   echo "$as_me: failed program was:" >&5
30455 sed 's/^/| /' conftest.$ac_ext >&5
30456
30457   fu_cv_sys_mounted_fread_fstyp=no
30458 fi
30459
30460 rm -f conftest.err conftest.$ac_ext
30461 fi
30462
30463   { echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_fread_fstyp" >&5
30464 echo "${ECHO_T}$fu_cv_sys_mounted_fread_fstyp" >&6; }
30465   if test $fu_cv_sys_mounted_fread_fstyp = yes; then
30466     ac_list_mounted_fs=found
30467
30468 cat >>confdefs.h <<\_ACEOF
30469 #define MOUNTED_FREAD_FSTYP 1
30470 _ACEOF
30471
30472   fi
30473 fi
30474
30475 if test -z "$ac_list_mounted_fs"; then
30476   # 4.4BSD and DEC OSF/1.
30477   { echo "$as_me:$LINENO: checking for getmntinfo function" >&5
30478 echo $ECHO_N "checking for getmntinfo function... $ECHO_C" >&6; }
30479   if test "${fu_cv_sys_mounted_getmntinfo+set}" = set; then
30480   echo $ECHO_N "(cached) $ECHO_C" >&6
30481 else
30482
30483       test "$ac_cv_func_getmntinfo" = yes \
30484           && fu_cv_sys_mounted_getmntinfo=yes \
30485           || fu_cv_sys_mounted_getmntinfo=no
30486
30487 fi
30488
30489   { echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_getmntinfo" >&5
30490 echo "${ECHO_T}$fu_cv_sys_mounted_getmntinfo" >&6; }
30491   if test $fu_cv_sys_mounted_getmntinfo = yes; then
30492     ac_list_mounted_fs=found
30493
30494 cat >>confdefs.h <<\_ACEOF
30495 #define MOUNTED_GETMNTINFO 1
30496 _ACEOF
30497
30498   fi
30499 fi
30500
30501 if test -z "$ac_list_mounted_fs"; then
30502   # Ultrix
30503   { echo "$as_me:$LINENO: checking for getmnt function" >&5
30504 echo $ECHO_N "checking for getmnt function... $ECHO_C" >&6; }
30505   if test "${fu_cv_sys_mounted_getmnt+set}" = set; then
30506   echo $ECHO_N "(cached) $ECHO_C" >&6
30507 else
30508   cat >conftest.$ac_ext <<_ACEOF
30509 /* confdefs.h.  */
30510 _ACEOF
30511 cat confdefs.h >>conftest.$ac_ext
30512 cat >>conftest.$ac_ext <<_ACEOF
30513 /* end confdefs.h.  */
30514
30515 #include <sys/fs_types.h>
30516 #include <sys/mount.h>
30517 _ACEOF
30518 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30519   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30520   ac_status=$?
30521   grep -v '^ *+' conftest.er1 >conftest.err
30522   rm -f conftest.er1
30523   cat conftest.err >&5
30524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30525   (exit $ac_status); } >/dev/null; then
30526   if test -s conftest.err; then
30527     ac_cpp_err=$ac_c_preproc_warn_flag
30528     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30529   else
30530     ac_cpp_err=
30531   fi
30532 else
30533   ac_cpp_err=yes
30534 fi
30535 if test -z "$ac_cpp_err"; then
30536   fu_cv_sys_mounted_getmnt=yes
30537 else
30538   echo "$as_me: failed program was:" >&5
30539 sed 's/^/| /' conftest.$ac_ext >&5
30540
30541   fu_cv_sys_mounted_getmnt=no
30542 fi
30543
30544 rm -f conftest.err conftest.$ac_ext
30545 fi
30546
30547   { echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_getmnt" >&5
30548 echo "${ECHO_T}$fu_cv_sys_mounted_getmnt" >&6; }
30549   if test $fu_cv_sys_mounted_getmnt = yes; then
30550     ac_list_mounted_fs=found
30551
30552 cat >>confdefs.h <<\_ACEOF
30553 #define MOUNTED_GETMNT 1
30554 _ACEOF
30555
30556   fi
30557 fi
30558
30559 if test -z "$ac_list_mounted_fs"; then
30560   # BeOS
30561
30562
30563 for ac_func in next_dev fs_stat_dev
30564 do
30565 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30566 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30567 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30568 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30569   echo $ECHO_N "(cached) $ECHO_C" >&6
30570 else
30571   cat >conftest.$ac_ext <<_ACEOF
30572 /* confdefs.h.  */
30573 _ACEOF
30574 cat confdefs.h >>conftest.$ac_ext
30575 cat >>conftest.$ac_ext <<_ACEOF
30576 /* end confdefs.h.  */
30577 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30578    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30579 #define $ac_func innocuous_$ac_func
30580
30581 /* System header to define __stub macros and hopefully few prototypes,
30582     which can conflict with char $ac_func (); below.
30583     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30584     <limits.h> exists even on freestanding compilers.  */
30585
30586 #ifdef __STDC__
30587 # include <limits.h>
30588 #else
30589 # include <assert.h>
30590 #endif
30591
30592 #undef $ac_func
30593
30594 /* Override any GCC internal prototype to avoid an error.
30595    Use char because int might match the return type of a GCC
30596    builtin and then its argument prototype would still apply.  */
30597 #ifdef __cplusplus
30598 extern "C"
30599 #endif
30600 char $ac_func ();
30601 /* The GNU C library defines this for functions which it implements
30602     to always fail with ENOSYS.  Some functions are actually named
30603     something starting with __ and the normal name is an alias.  */
30604 #if defined __stub_$ac_func || defined __stub___$ac_func
30605 choke me
30606 #endif
30607
30608 int
30609 main ()
30610 {
30611 return $ac_func ();
30612   ;
30613   return 0;
30614 }
30615 _ACEOF
30616 rm -f conftest.$ac_objext conftest$ac_exeext
30617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30618   (eval $ac_link) 2>conftest.er1
30619   ac_status=$?
30620   grep -v '^ *+' conftest.er1 >conftest.err
30621   rm -f conftest.er1
30622   cat conftest.err >&5
30623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30624   (exit $ac_status); } &&
30625          { ac_try='test -z "$ac_c_werror_flag"
30626                          || test ! -s conftest.err'
30627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30628   (eval $ac_try) 2>&5
30629   ac_status=$?
30630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30631   (exit $ac_status); }; } &&
30632          { ac_try='test -s conftest$ac_exeext'
30633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30634   (eval $ac_try) 2>&5
30635   ac_status=$?
30636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30637   (exit $ac_status); }; }; then
30638   eval "$as_ac_var=yes"
30639 else
30640   echo "$as_me: failed program was:" >&5
30641 sed 's/^/| /' conftest.$ac_ext >&5
30642
30643         eval "$as_ac_var=no"
30644 fi
30645
30646 rm -f conftest.err conftest.$ac_objext \
30647       conftest$ac_exeext conftest.$ac_ext
30648 fi
30649 ac_res=`eval echo '${'$as_ac_var'}'`
30650                { echo "$as_me:$LINENO: result: $ac_res" >&5
30651 echo "${ECHO_T}$ac_res" >&6; }
30652 if test `eval echo '${'$as_ac_var'}'` = yes; then
30653   cat >>confdefs.h <<_ACEOF
30654 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30655 _ACEOF
30656
30657 fi
30658 done
30659
30660
30661 for ac_header in fs_info.h
30662 do
30663 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30664 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30665   { echo "$as_me:$LINENO: checking for $ac_header" >&5
30666 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30667 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30668   echo $ECHO_N "(cached) $ECHO_C" >&6
30669 fi
30670 ac_res=`eval echo '${'$as_ac_Header'}'`
30671                { echo "$as_me:$LINENO: result: $ac_res" >&5
30672 echo "${ECHO_T}$ac_res" >&6; }
30673 else
30674   # Is the header compilable?
30675 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30676 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30677 cat >conftest.$ac_ext <<_ACEOF
30678 /* confdefs.h.  */
30679 _ACEOF
30680 cat confdefs.h >>conftest.$ac_ext
30681 cat >>conftest.$ac_ext <<_ACEOF
30682 /* end confdefs.h.  */
30683 $ac_includes_default
30684 #include <$ac_header>
30685 _ACEOF
30686 rm -f conftest.$ac_objext
30687 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30688   (eval $ac_compile) 2>conftest.er1
30689   ac_status=$?
30690   grep -v '^ *+' conftest.er1 >conftest.err
30691   rm -f conftest.er1
30692   cat conftest.err >&5
30693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30694   (exit $ac_status); } &&
30695          { ac_try='test -z "$ac_c_werror_flag"
30696                          || test ! -s conftest.err'
30697   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30698   (eval $ac_try) 2>&5
30699   ac_status=$?
30700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30701   (exit $ac_status); }; } &&
30702          { ac_try='test -s conftest.$ac_objext'
30703   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30704   (eval $ac_try) 2>&5
30705   ac_status=$?
30706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30707   (exit $ac_status); }; }; then
30708   ac_header_compiler=yes
30709 else
30710   echo "$as_me: failed program was:" >&5
30711 sed 's/^/| /' conftest.$ac_ext >&5
30712
30713         ac_header_compiler=no
30714 fi
30715
30716 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30717 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30718 echo "${ECHO_T}$ac_header_compiler" >&6; }
30719
30720 # Is the header present?
30721 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30722 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30723 cat >conftest.$ac_ext <<_ACEOF
30724 /* confdefs.h.  */
30725 _ACEOF
30726 cat confdefs.h >>conftest.$ac_ext
30727 cat >>conftest.$ac_ext <<_ACEOF
30728 /* end confdefs.h.  */
30729 #include <$ac_header>
30730 _ACEOF
30731 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30732   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30733   ac_status=$?
30734   grep -v '^ *+' conftest.er1 >conftest.err
30735   rm -f conftest.er1
30736   cat conftest.err >&5
30737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30738   (exit $ac_status); } >/dev/null; then
30739   if test -s conftest.err; then
30740     ac_cpp_err=$ac_c_preproc_warn_flag
30741     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30742   else
30743     ac_cpp_err=
30744   fi
30745 else
30746   ac_cpp_err=yes
30747 fi
30748 if test -z "$ac_cpp_err"; then
30749   ac_header_preproc=yes
30750 else
30751   echo "$as_me: failed program was:" >&5
30752 sed 's/^/| /' conftest.$ac_ext >&5
30753
30754   ac_header_preproc=no
30755 fi
30756
30757 rm -f conftest.err conftest.$ac_ext
30758 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30759 echo "${ECHO_T}$ac_header_preproc" >&6; }
30760
30761 # So?  What about this header?
30762 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30763   yes:no: )
30764     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30765 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30766     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30767 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30768     ac_header_preproc=yes
30769     ;;
30770   no:yes:* )
30771     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30772 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30773     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30774 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30775     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30776 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30777     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30778 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30779     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30780 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30781     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30782 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30783     ( cat <<\_ASBOX
30784 ## ------------------------------------ ##
30785 ## Report this to bug-coreutils@gnu.org ##
30786 ## ------------------------------------ ##
30787 _ASBOX
30788      ) | sed "s/^/$as_me: WARNING:     /" >&2
30789     ;;
30790 esac
30791 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30792 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30793 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30794   echo $ECHO_N "(cached) $ECHO_C" >&6
30795 else
30796   eval "$as_ac_Header=\$ac_header_preproc"
30797 fi
30798 ac_res=`eval echo '${'$as_ac_Header'}'`
30799                { echo "$as_me:$LINENO: result: $ac_res" >&5
30800 echo "${ECHO_T}$ac_res" >&6; }
30801
30802 fi
30803 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30804   cat >>confdefs.h <<_ACEOF
30805 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30806 _ACEOF
30807
30808 fi
30809
30810 done
30811
30812   { echo "$as_me:$LINENO: checking for BEOS mounted file system support functions" >&5
30813 echo $ECHO_N "checking for BEOS mounted file system support functions... $ECHO_C" >&6; }
30814   if test $ac_cv_header_fs_info_h = yes \
30815       && test $ac_cv_func_next_dev = yes \
30816         && test $ac_cv_func_fs_stat_dev = yes; then
30817     fu_result=yes
30818   else
30819     fu_result=no
30820   fi
30821   { echo "$as_me:$LINENO: result: $fu_result" >&5
30822 echo "${ECHO_T}$fu_result" >&6; }
30823   if test $fu_result = yes; then
30824     ac_list_mounted_fs=found
30825
30826 cat >>confdefs.h <<\_ACEOF
30827 #define MOUNTED_FS_STAT_DEV 1
30828 _ACEOF
30829
30830   fi
30831 fi
30832
30833 if test -z "$ac_list_mounted_fs"; then
30834   # SVR2
30835   { echo "$as_me:$LINENO: checking whether it is possible to resort to fread on /etc/mnttab" >&5
30836 echo $ECHO_N "checking whether it is possible to resort to fread on /etc/mnttab... $ECHO_C" >&6; }
30837   if test "${fu_cv_sys_mounted_fread+set}" = set; then
30838   echo $ECHO_N "(cached) $ECHO_C" >&6
30839 else
30840   cat >conftest.$ac_ext <<_ACEOF
30841 /* confdefs.h.  */
30842 _ACEOF
30843 cat confdefs.h >>conftest.$ac_ext
30844 cat >>conftest.$ac_ext <<_ACEOF
30845 /* end confdefs.h.  */
30846 #include <mnttab.h>
30847 _ACEOF
30848 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30849   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30850   ac_status=$?
30851   grep -v '^ *+' conftest.er1 >conftest.err
30852   rm -f conftest.er1
30853   cat conftest.err >&5
30854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30855   (exit $ac_status); } >/dev/null; then
30856   if test -s conftest.err; then
30857     ac_cpp_err=$ac_c_preproc_warn_flag
30858     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30859   else
30860     ac_cpp_err=
30861   fi
30862 else
30863   ac_cpp_err=yes
30864 fi
30865 if test -z "$ac_cpp_err"; then
30866   fu_cv_sys_mounted_fread=yes
30867 else
30868   echo "$as_me: failed program was:" >&5
30869 sed 's/^/| /' conftest.$ac_ext >&5
30870
30871   fu_cv_sys_mounted_fread=no
30872 fi
30873
30874 rm -f conftest.err conftest.$ac_ext
30875 fi
30876
30877   { echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_fread" >&5
30878 echo "${ECHO_T}$fu_cv_sys_mounted_fread" >&6; }
30879   if test $fu_cv_sys_mounted_fread = yes; then
30880     ac_list_mounted_fs=found
30881
30882 cat >>confdefs.h <<\_ACEOF
30883 #define MOUNTED_FREAD 1
30884 _ACEOF
30885
30886   fi
30887 fi
30888
30889 if test -z "$ac_list_mounted_fs"; then
30890   { { echo "$as_me:$LINENO: error: could not determine how to read list of mounted file systems" >&5
30891 echo "$as_me: error: could not determine how to read list of mounted file systems" >&2;}
30892    { (exit 1); exit 1; }; }
30893   # FIXME -- no need to abort building the whole package
30894   # Can't build mountlist.c or anything that needs its functions
30895 fi
30896
30897 if test $ac_list_mounted_fs = found; then
30898   gl_cv_list_mounted_fs=yes
30899 else
30900   gl_cv_list_mounted_fs=no
30901 fi
30902
30903
30904
30905   if test $gl_cv_list_mounted_fs = yes; then
30906     case " $LIBOBJS " in
30907   *" mountlist.$ac_objext "* ) ;;
30908   *) LIBOBJS="$LIBOBJS mountlist.$ac_objext"
30909  ;;
30910 esac
30911
30912
30913
30914 for ac_header in sys/mntent.h
30915 do
30916 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30917 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30918   { echo "$as_me:$LINENO: checking for $ac_header" >&5
30919 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30920 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30921   echo $ECHO_N "(cached) $ECHO_C" >&6
30922 fi
30923 ac_res=`eval echo '${'$as_ac_Header'}'`
30924                { echo "$as_me:$LINENO: result: $ac_res" >&5
30925 echo "${ECHO_T}$ac_res" >&6; }
30926 else
30927   # Is the header compilable?
30928 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30929 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30930 cat >conftest.$ac_ext <<_ACEOF
30931 /* confdefs.h.  */
30932 _ACEOF
30933 cat confdefs.h >>conftest.$ac_ext
30934 cat >>conftest.$ac_ext <<_ACEOF
30935 /* end confdefs.h.  */
30936 $ac_includes_default
30937 #include <$ac_header>
30938 _ACEOF
30939 rm -f conftest.$ac_objext
30940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30941   (eval $ac_compile) 2>conftest.er1
30942   ac_status=$?
30943   grep -v '^ *+' conftest.er1 >conftest.err
30944   rm -f conftest.er1
30945   cat conftest.err >&5
30946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30947   (exit $ac_status); } &&
30948          { ac_try='test -z "$ac_c_werror_flag"
30949                          || test ! -s conftest.err'
30950   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30951   (eval $ac_try) 2>&5
30952   ac_status=$?
30953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30954   (exit $ac_status); }; } &&
30955          { ac_try='test -s conftest.$ac_objext'
30956   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30957   (eval $ac_try) 2>&5
30958   ac_status=$?
30959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30960   (exit $ac_status); }; }; then
30961   ac_header_compiler=yes
30962 else
30963   echo "$as_me: failed program was:" >&5
30964 sed 's/^/| /' conftest.$ac_ext >&5
30965
30966         ac_header_compiler=no
30967 fi
30968
30969 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30970 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30971 echo "${ECHO_T}$ac_header_compiler" >&6; }
30972
30973 # Is the header present?
30974 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30975 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30976 cat >conftest.$ac_ext <<_ACEOF
30977 /* confdefs.h.  */
30978 _ACEOF
30979 cat confdefs.h >>conftest.$ac_ext
30980 cat >>conftest.$ac_ext <<_ACEOF
30981 /* end confdefs.h.  */
30982 #include <$ac_header>
30983 _ACEOF
30984 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30985   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30986   ac_status=$?
30987   grep -v '^ *+' conftest.er1 >conftest.err
30988   rm -f conftest.er1
30989   cat conftest.err >&5
30990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30991   (exit $ac_status); } >/dev/null; then
30992   if test -s conftest.err; then
30993     ac_cpp_err=$ac_c_preproc_warn_flag
30994     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30995   else
30996     ac_cpp_err=
30997   fi
30998 else
30999   ac_cpp_err=yes
31000 fi
31001 if test -z "$ac_cpp_err"; then
31002   ac_header_preproc=yes
31003 else
31004   echo "$as_me: failed program was:" >&5
31005 sed 's/^/| /' conftest.$ac_ext >&5
31006
31007   ac_header_preproc=no
31008 fi
31009
31010 rm -f conftest.err conftest.$ac_ext
31011 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31012 echo "${ECHO_T}$ac_header_preproc" >&6; }
31013
31014 # So?  What about this header?
31015 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31016   yes:no: )
31017     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31018 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31019     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31020 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31021     ac_header_preproc=yes
31022     ;;
31023   no:yes:* )
31024     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31025 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31026     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
31027 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
31028     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31029 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31030     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
31031 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
31032     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31033 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31034     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31035 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31036     ( cat <<\_ASBOX
31037 ## ------------------------------------ ##
31038 ## Report this to bug-coreutils@gnu.org ##
31039 ## ------------------------------------ ##
31040 _ASBOX
31041      ) | sed "s/^/$as_me: WARNING:     /" >&2
31042     ;;
31043 esac
31044 { echo "$as_me:$LINENO: checking for $ac_header" >&5
31045 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31046 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31047   echo $ECHO_N "(cached) $ECHO_C" >&6
31048 else
31049   eval "$as_ac_Header=\$ac_header_preproc"
31050 fi
31051 ac_res=`eval echo '${'$as_ac_Header'}'`
31052                { echo "$as_me:$LINENO: result: $ac_res" >&5
31053 echo "${ECHO_T}$ac_res" >&6; }
31054
31055 fi
31056 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31057   cat >>confdefs.h <<_ACEOF
31058 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31059 _ACEOF
31060
31061 fi
31062
31063 done
31064
31065
31066     { echo "$as_me:$LINENO: checking for f_fstypename in struct statfs" >&5
31067 echo $ECHO_N "checking for f_fstypename in struct statfs... $ECHO_C" >&6; }
31068 if test "${fu_cv_sys_f_fstypename_in_statfs+set}" = set; then
31069   echo $ECHO_N "(cached) $ECHO_C" >&6
31070 else
31071
31072         cat >conftest.$ac_ext <<_ACEOF
31073 /* confdefs.h.  */
31074 _ACEOF
31075 cat confdefs.h >>conftest.$ac_ext
31076 cat >>conftest.$ac_ext <<_ACEOF
31077 /* end confdefs.h.  */
31078
31079 #include <sys/param.h>
31080 #include <sys/types.h>
31081 #include <sys/mount.h>
31082
31083 int
31084 main ()
31085 {
31086 struct statfs s; int i = sizeof s.f_fstypename;
31087   ;
31088   return 0;
31089 }
31090 _ACEOF
31091 rm -f conftest.$ac_objext
31092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31093   (eval $ac_compile) 2>conftest.er1
31094   ac_status=$?
31095   grep -v '^ *+' conftest.er1 >conftest.err
31096   rm -f conftest.er1
31097   cat conftest.err >&5
31098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31099   (exit $ac_status); } &&
31100          { ac_try='test -z "$ac_c_werror_flag"
31101                          || test ! -s conftest.err'
31102   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31103   (eval $ac_try) 2>&5
31104   ac_status=$?
31105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31106   (exit $ac_status); }; } &&
31107          { ac_try='test -s conftest.$ac_objext'
31108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31109   (eval $ac_try) 2>&5
31110   ac_status=$?
31111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31112   (exit $ac_status); }; }; then
31113   fu_cv_sys_f_fstypename_in_statfs=yes
31114 else
31115   echo "$as_me: failed program was:" >&5
31116 sed 's/^/| /' conftest.$ac_ext >&5
31117
31118         fu_cv_sys_f_fstypename_in_statfs=no
31119
31120 fi
31121
31122 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31123
31124
31125 fi
31126 { echo "$as_me:$LINENO: result: $fu_cv_sys_f_fstypename_in_statfs" >&5
31127 echo "${ECHO_T}$fu_cv_sys_f_fstypename_in_statfs" >&6; }
31128
31129     if test $fu_cv_sys_f_fstypename_in_statfs = yes; then
31130
31131 cat >>confdefs.h <<\_ACEOF
31132 #define HAVE_F_FSTYPENAME_IN_STATFS 1
31133 _ACEOF
31134
31135     fi
31136
31137
31138
31139   fi
31140
31141
31142   { echo "$as_me:$LINENO: checking for obstacks" >&5
31143 echo $ECHO_N "checking for obstacks... $ECHO_C" >&6; }
31144 if test "${ac_cv_func_obstack+set}" = set; then
31145   echo $ECHO_N "(cached) $ECHO_C" >&6
31146 else
31147   cat >conftest.$ac_ext <<_ACEOF
31148 /* confdefs.h.  */
31149 _ACEOF
31150 cat confdefs.h >>conftest.$ac_ext
31151 cat >>conftest.$ac_ext <<_ACEOF
31152 /* end confdefs.h.  */
31153 #include "obstack.h"
31154 int
31155 main ()
31156 {
31157 struct obstack *mem; obstack_free(mem,(char *) 0)
31158   ;
31159   return 0;
31160 }
31161 _ACEOF
31162 rm -f conftest.$ac_objext conftest$ac_exeext
31163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31164   (eval $ac_link) 2>conftest.er1
31165   ac_status=$?
31166   grep -v '^ *+' conftest.er1 >conftest.err
31167   rm -f conftest.er1
31168   cat conftest.err >&5
31169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31170   (exit $ac_status); } &&
31171          { ac_try='test -z "$ac_c_werror_flag"
31172                          || test ! -s conftest.err'
31173   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31174   (eval $ac_try) 2>&5
31175   ac_status=$?
31176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31177   (exit $ac_status); }; } &&
31178          { ac_try='test -s conftest$ac_exeext'
31179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31180   (eval $ac_try) 2>&5
31181   ac_status=$?
31182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31183   (exit $ac_status); }; }; then
31184   ac_cv_func_obstack=yes
31185 else
31186   echo "$as_me: failed program was:" >&5
31187 sed 's/^/| /' conftest.$ac_ext >&5
31188
31189         ac_cv_func_obstack=no
31190 fi
31191
31192 rm -f conftest.err conftest.$ac_objext \
31193       conftest$ac_exeext conftest.$ac_ext
31194 fi
31195 { echo "$as_me:$LINENO: result: $ac_cv_func_obstack" >&5
31196 echo "${ECHO_T}$ac_cv_func_obstack" >&6; }
31197 if test $ac_cv_func_obstack = yes; then
31198
31199 cat >>confdefs.h <<\_ACEOF
31200 #define HAVE_OBSTACK 1
31201 _ACEOF
31202
31203 else
31204   case " $LIBOBJS " in
31205   *" obstack.$ac_objext "* ) ;;
31206   *) LIBOBJS="$LIBOBJS obstack.$ac_objext"
31207  ;;
31208 esac
31209
31210 fi
31211
31212     if test $ac_cv_func_obstack = no; then
31213
31214
31215
31216
31217   :
31218
31219   fi
31220
31221
31222
31223
31224
31225   :
31226
31227
31228
31229
31230
31231
31232 { echo "$as_me:$LINENO: checking for external symbol _system_configuration" >&5
31233 echo $ECHO_N "checking for external symbol _system_configuration... $ECHO_C" >&6; }
31234 if test "${gl_cv_var__system_configuration+set}" = set; then
31235   echo $ECHO_N "(cached) $ECHO_C" >&6
31236 else
31237   cat >conftest.$ac_ext <<_ACEOF
31238 /* confdefs.h.  */
31239 _ACEOF
31240 cat confdefs.h >>conftest.$ac_ext
31241 cat >>conftest.$ac_ext <<_ACEOF
31242 /* end confdefs.h.  */
31243 #include <sys/systemcfg.h>
31244
31245 int
31246 main ()
31247 {
31248 double x = _system_configuration.physmem;
31249   ;
31250   return 0;
31251 }
31252 _ACEOF
31253 rm -f conftest.$ac_objext conftest$ac_exeext
31254 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31255   (eval $ac_link) 2>conftest.er1
31256   ac_status=$?
31257   grep -v '^ *+' conftest.er1 >conftest.err
31258   rm -f conftest.er1
31259   cat conftest.err >&5
31260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31261   (exit $ac_status); } &&
31262          { ac_try='test -z "$ac_c_werror_flag"
31263                          || test ! -s conftest.err'
31264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31265   (eval $ac_try) 2>&5
31266   ac_status=$?
31267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31268   (exit $ac_status); }; } &&
31269          { ac_try='test -s conftest$ac_exeext'
31270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31271   (eval $ac_try) 2>&5
31272   ac_status=$?
31273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31274   (exit $ac_status); }; }; then
31275   gl_cv_var__system_configuration=yes
31276 else
31277   echo "$as_me: failed program was:" >&5
31278 sed 's/^/| /' conftest.$ac_ext >&5
31279
31280         gl_cv_var__system_configuration=no
31281 fi
31282
31283 rm -f conftest.err conftest.$ac_objext \
31284       conftest$ac_exeext conftest.$ac_ext
31285 fi
31286 { echo "$as_me:$LINENO: result: $gl_cv_var__system_configuration" >&5
31287 echo "${ECHO_T}$gl_cv_var__system_configuration" >&6; }
31288
31289     if test $gl_cv_var__system_configuration = yes; then
31290
31291 cat >>confdefs.h <<\_ACEOF
31292 #define HAVE__SYSTEM_CONFIGURATION 1
31293 _ACEOF
31294
31295     fi
31296
31297
31298
31299
31300   case " $LIBOBJS " in
31301   *" physmem.$ac_objext "* ) ;;
31302   *) LIBOBJS="$LIBOBJS physmem.$ac_objext"
31303  ;;
31304 esac
31305
31306
31307   # Prerequisites of lib/physmem.c.
31308
31309
31310
31311
31312
31313
31314
31315
31316 for ac_header in sys/pstat.h sys/sysmp.h sys/sysinfo.h \
31317     machine/hal_sysinfo.h sys/table.h sys/param.h sys/sysctl.h \
31318     sys/systemcfg.h
31319 do
31320 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31321 { echo "$as_me:$LINENO: checking for $ac_header" >&5
31322 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31323 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31324   echo $ECHO_N "(cached) $ECHO_C" >&6
31325 else
31326   cat >conftest.$ac_ext <<_ACEOF
31327 /* confdefs.h.  */
31328 _ACEOF
31329 cat confdefs.h >>conftest.$ac_ext
31330 cat >>conftest.$ac_ext <<_ACEOF
31331 /* end confdefs.h.  */
31332 $ac_includes_default
31333
31334 #include <$ac_header>
31335 _ACEOF
31336 rm -f conftest.$ac_objext
31337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31338   (eval $ac_compile) 2>conftest.er1
31339   ac_status=$?
31340   grep -v '^ *+' conftest.er1 >conftest.err
31341   rm -f conftest.er1
31342   cat conftest.err >&5
31343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31344   (exit $ac_status); } &&
31345          { ac_try='test -z "$ac_c_werror_flag"
31346                          || test ! -s conftest.err'
31347   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31348   (eval $ac_try) 2>&5
31349   ac_status=$?
31350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31351   (exit $ac_status); }; } &&
31352          { ac_try='test -s conftest.$ac_objext'
31353   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31354   (eval $ac_try) 2>&5
31355   ac_status=$?
31356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31357   (exit $ac_status); }; }; then
31358   eval "$as_ac_Header=yes"
31359 else
31360   echo "$as_me: failed program was:" >&5
31361 sed 's/^/| /' conftest.$ac_ext >&5
31362
31363         eval "$as_ac_Header=no"
31364 fi
31365
31366 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31367 fi
31368 ac_res=`eval echo '${'$as_ac_Header'}'`
31369                { echo "$as_me:$LINENO: result: $ac_res" >&5
31370 echo "${ECHO_T}$ac_res" >&6; }
31371 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31372   cat >>confdefs.h <<_ACEOF
31373 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31374 _ACEOF
31375
31376 fi
31377
31378 done
31379
31380
31381
31382
31383
31384
31385
31386
31387 for ac_func in pstat_getstatic pstat_getdynamic sysmp getsysinfo sysctl table
31388 do
31389 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31390 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31391 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31392 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31393   echo $ECHO_N "(cached) $ECHO_C" >&6
31394 else
31395   cat >conftest.$ac_ext <<_ACEOF
31396 /* confdefs.h.  */
31397 _ACEOF
31398 cat confdefs.h >>conftest.$ac_ext
31399 cat >>conftest.$ac_ext <<_ACEOF
31400 /* end confdefs.h.  */
31401 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31402    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31403 #define $ac_func innocuous_$ac_func
31404
31405 /* System header to define __stub macros and hopefully few prototypes,
31406     which can conflict with char $ac_func (); below.
31407     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31408     <limits.h> exists even on freestanding compilers.  */
31409
31410 #ifdef __STDC__
31411 # include <limits.h>
31412 #else
31413 # include <assert.h>
31414 #endif
31415
31416 #undef $ac_func
31417
31418 /* Override any GCC internal prototype to avoid an error.
31419    Use char because int might match the return type of a GCC
31420    builtin and then its argument prototype would still apply.  */
31421 #ifdef __cplusplus
31422 extern "C"
31423 #endif
31424 char $ac_func ();
31425 /* The GNU C library defines this for functions which it implements
31426     to always fail with ENOSYS.  Some functions are actually named
31427     something starting with __ and the normal name is an alias.  */
31428 #if defined __stub_$ac_func || defined __stub___$ac_func
31429 choke me
31430 #endif
31431
31432 int
31433 main ()
31434 {
31435 return $ac_func ();
31436   ;
31437   return 0;
31438 }
31439 _ACEOF
31440 rm -f conftest.$ac_objext conftest$ac_exeext
31441 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31442   (eval $ac_link) 2>conftest.er1
31443   ac_status=$?
31444   grep -v '^ *+' conftest.er1 >conftest.err
31445   rm -f conftest.er1
31446   cat conftest.err >&5
31447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31448   (exit $ac_status); } &&
31449          { ac_try='test -z "$ac_c_werror_flag"
31450                          || test ! -s conftest.err'
31451   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31452   (eval $ac_try) 2>&5
31453   ac_status=$?
31454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31455   (exit $ac_status); }; } &&
31456          { ac_try='test -s conftest$ac_exeext'
31457   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31458   (eval $ac_try) 2>&5
31459   ac_status=$?
31460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31461   (exit $ac_status); }; }; then
31462   eval "$as_ac_var=yes"
31463 else
31464   echo "$as_me: failed program was:" >&5
31465 sed 's/^/| /' conftest.$ac_ext >&5
31466
31467         eval "$as_ac_var=no"
31468 fi
31469
31470 rm -f conftest.err conftest.$ac_objext \
31471       conftest$ac_exeext conftest.$ac_ext
31472 fi
31473 ac_res=`eval echo '${'$as_ac_var'}'`
31474                { echo "$as_me:$LINENO: result: $ac_res" >&5
31475 echo "${ECHO_T}$ac_res" >&6; }
31476 if test `eval echo '${'$as_ac_var'}'` = yes; then
31477   cat >>confdefs.h <<_ACEOF
31478 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31479 _ACEOF
31480
31481 fi
31482 done
31483
31484
31485
31486
31487
31488   case " $LIBOBJS " in
31489   *" posixtm.$ac_objext "* ) ;;
31490   *) LIBOBJS="$LIBOBJS posixtm.$ac_objext"
31491  ;;
31492 esac
31493
31494
31495     { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
31496 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
31497 if test "${ac_cv_struct_tm+set}" = set; then
31498   echo $ECHO_N "(cached) $ECHO_C" >&6
31499 else
31500   cat >conftest.$ac_ext <<_ACEOF
31501 /* confdefs.h.  */
31502 _ACEOF
31503 cat confdefs.h >>conftest.$ac_ext
31504 cat >>conftest.$ac_ext <<_ACEOF
31505 /* end confdefs.h.  */
31506 #include <sys/types.h>
31507 #include <time.h>
31508
31509 int
31510 main ()
31511 {
31512 struct tm *tp; tp->tm_sec;
31513   ;
31514   return 0;
31515 }
31516 _ACEOF
31517 rm -f conftest.$ac_objext
31518 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31519   (eval $ac_compile) 2>conftest.er1
31520   ac_status=$?
31521   grep -v '^ *+' conftest.er1 >conftest.err
31522   rm -f conftest.er1
31523   cat conftest.err >&5
31524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31525   (exit $ac_status); } &&
31526          { ac_try='test -z "$ac_c_werror_flag"
31527                          || test ! -s conftest.err'
31528   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31529   (eval $ac_try) 2>&5
31530   ac_status=$?
31531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31532   (exit $ac_status); }; } &&
31533          { ac_try='test -s conftest.$ac_objext'
31534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31535   (eval $ac_try) 2>&5
31536   ac_status=$?
31537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31538   (exit $ac_status); }; }; then
31539   ac_cv_struct_tm=time.h
31540 else
31541   echo "$as_me: failed program was:" >&5
31542 sed 's/^/| /' conftest.$ac_ext >&5
31543
31544         ac_cv_struct_tm=sys/time.h
31545 fi
31546
31547 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31548 fi
31549 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
31550 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
31551 if test $ac_cv_struct_tm = sys/time.h; then
31552
31553 cat >>confdefs.h <<\_ACEOF
31554 #define TM_IN_SYS_TIME 1
31555 _ACEOF
31556
31557 fi
31558
31559
31560
31561
31562   case " $LIBOBJS " in
31563   *" posixver.$ac_objext "* ) ;;
31564   *) LIBOBJS="$LIBOBJS posixver.$ac_objext"
31565  ;;
31566 esac
31567
31568
31569
31570
31571
31572
31573   case " $LIBOBJS " in
31574   *" quotearg.$ac_objext "* ) ;;
31575   *) LIBOBJS="$LIBOBJS quotearg.$ac_objext"
31576  ;;
31577 esac
31578
31579
31580
31581   :
31582
31583
31584
31585
31586
31587
31588
31589
31590
31591   :
31592
31593
31594
31595
31596
31597
31598
31599
31600   { echo "$as_me:$LINENO: checking for mbstate_t" >&5
31601 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
31602 if test "${ac_cv_type_mbstate_t+set}" = set; then
31603   echo $ECHO_N "(cached) $ECHO_C" >&6
31604 else
31605   cat >conftest.$ac_ext <<_ACEOF
31606 /* confdefs.h.  */
31607 _ACEOF
31608 cat confdefs.h >>conftest.$ac_ext
31609 cat >>conftest.$ac_ext <<_ACEOF
31610 /* end confdefs.h.  */
31611 $ac_includes_default
31612 #           include <wchar.h>
31613 int
31614 main ()
31615 {
31616 mbstate_t x; return sizeof x;
31617   ;
31618   return 0;
31619 }
31620 _ACEOF
31621 rm -f conftest.$ac_objext
31622 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31623   (eval $ac_compile) 2>conftest.er1
31624   ac_status=$?
31625   grep -v '^ *+' conftest.er1 >conftest.err
31626   rm -f conftest.er1
31627   cat conftest.err >&5
31628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31629   (exit $ac_status); } &&
31630          { ac_try='test -z "$ac_c_werror_flag"
31631                          || test ! -s conftest.err'
31632   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31633   (eval $ac_try) 2>&5
31634   ac_status=$?
31635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31636   (exit $ac_status); }; } &&
31637          { ac_try='test -s conftest.$ac_objext'
31638   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31639   (eval $ac_try) 2>&5
31640   ac_status=$?
31641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31642   (exit $ac_status); }; }; then
31643   ac_cv_type_mbstate_t=yes
31644 else
31645   echo "$as_me: failed program was:" >&5
31646 sed 's/^/| /' conftest.$ac_ext >&5
31647
31648         ac_cv_type_mbstate_t=no
31649 fi
31650
31651 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31652 fi
31653 { echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
31654 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
31655    if test $ac_cv_type_mbstate_t = yes; then
31656
31657 cat >>confdefs.h <<\_ACEOF
31658 #define HAVE_MBSTATE_T 1
31659 _ACEOF
31660
31661    else
31662
31663 cat >>confdefs.h <<\_ACEOF
31664 #define mbstate_t int
31665 _ACEOF
31666
31667    fi
31668
31669     { echo "$as_me:$LINENO: checking whether mbrtowc and mbstate_t are properly declared" >&5
31670 echo $ECHO_N "checking whether mbrtowc and mbstate_t are properly declared... $ECHO_C" >&6; }
31671 if test "${gl_cv_func_mbrtowc+set}" = set; then
31672   echo $ECHO_N "(cached) $ECHO_C" >&6
31673 else
31674   cat >conftest.$ac_ext <<_ACEOF
31675 /* confdefs.h.  */
31676 _ACEOF
31677 cat confdefs.h >>conftest.$ac_ext
31678 cat >>conftest.$ac_ext <<_ACEOF
31679 /* end confdefs.h.  */
31680 #include <wchar.h>
31681 int
31682 main ()
31683 {
31684 wchar_t wc;
31685               char const s[] = "";
31686               size_t n = 1;
31687               mbstate_t state;
31688               return ! (sizeof state && (mbrtowc) (&wc, s, n, &state));
31689   ;
31690   return 0;
31691 }
31692 _ACEOF
31693 rm -f conftest.$ac_objext conftest$ac_exeext
31694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31695   (eval $ac_link) 2>conftest.er1
31696   ac_status=$?
31697   grep -v '^ *+' conftest.er1 >conftest.err
31698   rm -f conftest.er1
31699   cat conftest.err >&5
31700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31701   (exit $ac_status); } &&
31702          { ac_try='test -z "$ac_c_werror_flag"
31703                          || test ! -s conftest.err'
31704   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31705   (eval $ac_try) 2>&5
31706   ac_status=$?
31707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31708   (exit $ac_status); }; } &&
31709          { ac_try='test -s conftest$ac_exeext'
31710   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31711   (eval $ac_try) 2>&5
31712   ac_status=$?
31713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31714   (exit $ac_status); }; }; then
31715   gl_cv_func_mbrtowc=yes
31716 else
31717   echo "$as_me: failed program was:" >&5
31718 sed 's/^/| /' conftest.$ac_ext >&5
31719
31720         gl_cv_func_mbrtowc=no
31721 fi
31722
31723 rm -f conftest.err conftest.$ac_objext \
31724       conftest$ac_exeext conftest.$ac_ext
31725 fi
31726 { echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc" >&5
31727 echo "${ECHO_T}$gl_cv_func_mbrtowc" >&6; }
31728   if test $gl_cv_func_mbrtowc = yes; then
31729
31730 cat >>confdefs.h <<\_ACEOF
31731 #define HAVE_MBRTOWC 1
31732 _ACEOF
31733
31734   fi
31735
31736
31737
31738
31739   case " $LIBOBJS " in
31740   *" quote.$ac_objext "* ) ;;
31741   *) LIBOBJS="$LIBOBJS quote.$ac_objext"
31742  ;;
31743 esac
31744
31745
31746
31747
31748
31749   case " $LIBOBJS " in
31750   *" readtokens.$ac_objext "* ) ;;
31751   *) LIBOBJS="$LIBOBJS readtokens.$ac_objext"
31752  ;;
31753 esac
31754
31755
31756     :
31757
31758
31759   { echo "$as_me:$LINENO: checking whether free (NULL) is known to work" >&5
31760 echo $ECHO_N "checking whether free (NULL) is known to work... $ECHO_C" >&6; }
31761 if test "${gl_cv_func_free+set}" = set; then
31762   echo $ECHO_N "(cached) $ECHO_C" >&6
31763 else
31764   cat >conftest.$ac_ext <<_ACEOF
31765 /* confdefs.h.  */
31766 _ACEOF
31767 cat confdefs.h >>conftest.$ac_ext
31768 cat >>conftest.$ac_ext <<_ACEOF
31769 /* end confdefs.h.  */
31770 #include <unistd.h>
31771 int
31772 main ()
31773 {
31774 #if _POSIX_VERSION < 199009L && \
31775                 (defined unix || defined _unix || defined _unix_ \
31776                  || defined __unix || defined __unix__)
31777               #error "'free (NULL)' is not known to work"
31778             #endif
31779   ;
31780   return 0;
31781 }
31782 _ACEOF
31783 rm -f conftest.$ac_objext
31784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31785   (eval $ac_compile) 2>conftest.er1
31786   ac_status=$?
31787   grep -v '^ *+' conftest.er1 >conftest.err
31788   rm -f conftest.er1
31789   cat conftest.err >&5
31790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31791   (exit $ac_status); } &&
31792          { ac_try='test -z "$ac_c_werror_flag"
31793                          || test ! -s conftest.err'
31794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31795   (eval $ac_try) 2>&5
31796   ac_status=$?
31797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31798   (exit $ac_status); }; } &&
31799          { ac_try='test -s conftest.$ac_objext'
31800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31801   (eval $ac_try) 2>&5
31802   ac_status=$?
31803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31804   (exit $ac_status); }; }; then
31805   gl_cv_func_free=yes
31806 else
31807   echo "$as_me: failed program was:" >&5
31808 sed 's/^/| /' conftest.$ac_ext >&5
31809
31810         gl_cv_func_free=no
31811 fi
31812
31813 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31814 fi
31815 { echo "$as_me:$LINENO: result: $gl_cv_func_free" >&5
31816 echo "${ECHO_T}$gl_cv_func_free" >&6; }
31817
31818   if test $gl_cv_func_free = no; then
31819     case " $LIBOBJS " in
31820   *" free.$ac_objext "* ) ;;
31821   *) LIBOBJS="$LIBOBJS free.$ac_objext"
31822  ;;
31823 esac
31824
31825
31826 cat >>confdefs.h <<\_ACEOF
31827 #define free rpl_free
31828 _ACEOF
31829
31830   fi
31831
31832
31833
31834
31835
31836
31837
31838
31839
31840
31841
31842
31843
31844
31845
31846
31847
31848
31849
31850
31851
31852   case " $LIBOBJS " in
31853   *" readutmp.$ac_objext "* ) ;;
31854   *) LIBOBJS="$LIBOBJS readutmp.$ac_objext"
31855  ;;
31856 esac
31857
31858
31859
31860
31861
31862   :
31863
31864
31865
31866
31867
31868
31869
31870
31871
31872   :
31873
31874
31875
31876
31877
31878
31879
31880
31881   { echo "$as_me:$LINENO: checking whether getutent is declared" >&5
31882 echo $ECHO_N "checking whether getutent is declared... $ECHO_C" >&6; }
31883 if test "${ac_cv_have_decl_getutent+set}" = set; then
31884   echo $ECHO_N "(cached) $ECHO_C" >&6
31885 else
31886   cat >conftest.$ac_ext <<_ACEOF
31887 /* confdefs.h.  */
31888 _ACEOF
31889 cat confdefs.h >>conftest.$ac_ext
31890 cat >>conftest.$ac_ext <<_ACEOF
31891 /* end confdefs.h.  */
31892
31893 #ifdef HAVE_UTMP_H
31894 # include <utmp.h>
31895 #endif
31896
31897
31898 int
31899 main ()
31900 {
31901 #ifndef getutent
31902   char *p = (char *) getutent;
31903   return !p;
31904 #endif
31905
31906   ;
31907   return 0;
31908 }
31909 _ACEOF
31910 rm -f conftest.$ac_objext
31911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31912   (eval $ac_compile) 2>conftest.er1
31913   ac_status=$?
31914   grep -v '^ *+' conftest.er1 >conftest.err
31915   rm -f conftest.er1
31916   cat conftest.err >&5
31917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31918   (exit $ac_status); } &&
31919          { ac_try='test -z "$ac_c_werror_flag"
31920                          || test ! -s conftest.err'
31921   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31922   (eval $ac_try) 2>&5
31923   ac_status=$?
31924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31925   (exit $ac_status); }; } &&
31926          { ac_try='test -s conftest.$ac_objext'
31927   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31928   (eval $ac_try) 2>&5
31929   ac_status=$?
31930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31931   (exit $ac_status); }; }; then
31932   ac_cv_have_decl_getutent=yes
31933 else
31934   echo "$as_me: failed program was:" >&5
31935 sed 's/^/| /' conftest.$ac_ext >&5
31936
31937         ac_cv_have_decl_getutent=no
31938 fi
31939
31940 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31941 fi
31942 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getutent" >&5
31943 echo "${ECHO_T}$ac_cv_have_decl_getutent" >&6; }
31944 if test $ac_cv_have_decl_getutent = yes; then
31945
31946 cat >>confdefs.h <<_ACEOF
31947 #define HAVE_DECL_GETUTENT 1
31948 _ACEOF
31949
31950
31951 else
31952   cat >>confdefs.h <<_ACEOF
31953 #define HAVE_DECL_GETUTENT 0
31954 _ACEOF
31955
31956
31957 fi
31958
31959
31960   if test $ac_cv_header_utmp_h = yes || test $ac_cv_header_utmpx_h = yes; then
31961     utmp_includes="\
31962 $ac_includes_default
31963 #ifdef HAVE_UTMPX_H
31964 # include <utmpx.h>
31965 #endif
31966 #ifdef HAVE_UTMP_H
31967 # include <utmp.h>
31968 #endif
31969 "
31970     { echo "$as_me:$LINENO: checking for struct utmpx.ut_user" >&5
31971 echo $ECHO_N "checking for struct utmpx.ut_user... $ECHO_C" >&6; }
31972 if test "${ac_cv_member_struct_utmpx_ut_user+set}" = set; then
31973   echo $ECHO_N "(cached) $ECHO_C" >&6
31974 else
31975   cat >conftest.$ac_ext <<_ACEOF
31976 /* confdefs.h.  */
31977 _ACEOF
31978 cat confdefs.h >>conftest.$ac_ext
31979 cat >>conftest.$ac_ext <<_ACEOF
31980 /* end confdefs.h.  */
31981 $utmp_includes
31982
31983 int
31984 main ()
31985 {
31986 static struct utmpx ac_aggr;
31987 if (ac_aggr.ut_user)
31988 return 0;
31989   ;
31990   return 0;
31991 }
31992 _ACEOF
31993 rm -f conftest.$ac_objext
31994 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31995   (eval $ac_compile) 2>conftest.er1
31996   ac_status=$?
31997   grep -v '^ *+' conftest.er1 >conftest.err
31998   rm -f conftest.er1
31999   cat conftest.err >&5
32000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32001   (exit $ac_status); } &&
32002          { ac_try='test -z "$ac_c_werror_flag"
32003                          || test ! -s conftest.err'
32004   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32005   (eval $ac_try) 2>&5
32006   ac_status=$?
32007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32008   (exit $ac_status); }; } &&
32009          { ac_try='test -s conftest.$ac_objext'
32010   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32011   (eval $ac_try) 2>&5
32012   ac_status=$?
32013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32014   (exit $ac_status); }; }; then
32015   ac_cv_member_struct_utmpx_ut_user=yes
32016 else
32017   echo "$as_me: failed program was:" >&5
32018 sed 's/^/| /' conftest.$ac_ext >&5
32019
32020         cat >conftest.$ac_ext <<_ACEOF
32021 /* confdefs.h.  */
32022 _ACEOF
32023 cat confdefs.h >>conftest.$ac_ext
32024 cat >>conftest.$ac_ext <<_ACEOF
32025 /* end confdefs.h.  */
32026 $utmp_includes
32027
32028 int
32029 main ()
32030 {
32031 static struct utmpx ac_aggr;
32032 if (sizeof ac_aggr.ut_user)
32033 return 0;
32034   ;
32035   return 0;
32036 }
32037 _ACEOF
32038 rm -f conftest.$ac_objext
32039 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32040   (eval $ac_compile) 2>conftest.er1
32041   ac_status=$?
32042   grep -v '^ *+' conftest.er1 >conftest.err
32043   rm -f conftest.er1
32044   cat conftest.err >&5
32045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32046   (exit $ac_status); } &&
32047          { ac_try='test -z "$ac_c_werror_flag"
32048                          || test ! -s conftest.err'
32049   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32050   (eval $ac_try) 2>&5
32051   ac_status=$?
32052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32053   (exit $ac_status); }; } &&
32054          { ac_try='test -s conftest.$ac_objext'
32055   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32056   (eval $ac_try) 2>&5
32057   ac_status=$?
32058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32059   (exit $ac_status); }; }; then
32060   ac_cv_member_struct_utmpx_ut_user=yes
32061 else
32062   echo "$as_me: failed program was:" >&5
32063 sed 's/^/| /' conftest.$ac_ext >&5
32064
32065         ac_cv_member_struct_utmpx_ut_user=no
32066 fi
32067
32068 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32069 fi
32070
32071 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32072 fi
32073 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_user" >&5
32074 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_user" >&6; }
32075 if test $ac_cv_member_struct_utmpx_ut_user = yes; then
32076
32077 cat >>confdefs.h <<_ACEOF
32078 #define HAVE_STRUCT_UTMPX_UT_USER 1
32079 _ACEOF
32080
32081
32082 fi
32083
32084     { echo "$as_me:$LINENO: checking for struct utmp.ut_user" >&5
32085 echo $ECHO_N "checking for struct utmp.ut_user... $ECHO_C" >&6; }
32086 if test "${ac_cv_member_struct_utmp_ut_user+set}" = set; then
32087   echo $ECHO_N "(cached) $ECHO_C" >&6
32088 else
32089   cat >conftest.$ac_ext <<_ACEOF
32090 /* confdefs.h.  */
32091 _ACEOF
32092 cat confdefs.h >>conftest.$ac_ext
32093 cat >>conftest.$ac_ext <<_ACEOF
32094 /* end confdefs.h.  */
32095 $utmp_includes
32096
32097 int
32098 main ()
32099 {
32100 static struct utmp ac_aggr;
32101 if (ac_aggr.ut_user)
32102 return 0;
32103   ;
32104   return 0;
32105 }
32106 _ACEOF
32107 rm -f conftest.$ac_objext
32108 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32109   (eval $ac_compile) 2>conftest.er1
32110   ac_status=$?
32111   grep -v '^ *+' conftest.er1 >conftest.err
32112   rm -f conftest.er1
32113   cat conftest.err >&5
32114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32115   (exit $ac_status); } &&
32116          { ac_try='test -z "$ac_c_werror_flag"
32117                          || test ! -s conftest.err'
32118   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32119   (eval $ac_try) 2>&5
32120   ac_status=$?
32121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32122   (exit $ac_status); }; } &&
32123          { ac_try='test -s conftest.$ac_objext'
32124   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32125   (eval $ac_try) 2>&5
32126   ac_status=$?
32127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32128   (exit $ac_status); }; }; then
32129   ac_cv_member_struct_utmp_ut_user=yes
32130 else
32131   echo "$as_me: failed program was:" >&5
32132 sed 's/^/| /' conftest.$ac_ext >&5
32133
32134         cat >conftest.$ac_ext <<_ACEOF
32135 /* confdefs.h.  */
32136 _ACEOF
32137 cat confdefs.h >>conftest.$ac_ext
32138 cat >>conftest.$ac_ext <<_ACEOF
32139 /* end confdefs.h.  */
32140 $utmp_includes
32141
32142 int
32143 main ()
32144 {
32145 static struct utmp ac_aggr;
32146 if (sizeof ac_aggr.ut_user)
32147 return 0;
32148   ;
32149   return 0;
32150 }
32151 _ACEOF
32152 rm -f conftest.$ac_objext
32153 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32154   (eval $ac_compile) 2>conftest.er1
32155   ac_status=$?
32156   grep -v '^ *+' conftest.er1 >conftest.err
32157   rm -f conftest.er1
32158   cat conftest.err >&5
32159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32160   (exit $ac_status); } &&
32161          { ac_try='test -z "$ac_c_werror_flag"
32162                          || test ! -s conftest.err'
32163   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32164   (eval $ac_try) 2>&5
32165   ac_status=$?
32166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32167   (exit $ac_status); }; } &&
32168          { ac_try='test -s conftest.$ac_objext'
32169   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32170   (eval $ac_try) 2>&5
32171   ac_status=$?
32172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32173   (exit $ac_status); }; }; then
32174   ac_cv_member_struct_utmp_ut_user=yes
32175 else
32176   echo "$as_me: failed program was:" >&5
32177 sed 's/^/| /' conftest.$ac_ext >&5
32178
32179         ac_cv_member_struct_utmp_ut_user=no
32180 fi
32181
32182 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32183 fi
32184
32185 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32186 fi
32187 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_user" >&5
32188 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_user" >&6; }
32189 if test $ac_cv_member_struct_utmp_ut_user = yes; then
32190
32191 cat >>confdefs.h <<_ACEOF
32192 #define HAVE_STRUCT_UTMP_UT_USER 1
32193 _ACEOF
32194
32195
32196 fi
32197
32198     { echo "$as_me:$LINENO: checking for struct utmpx.ut_name" >&5
32199 echo $ECHO_N "checking for struct utmpx.ut_name... $ECHO_C" >&6; }
32200 if test "${ac_cv_member_struct_utmpx_ut_name+set}" = set; then
32201   echo $ECHO_N "(cached) $ECHO_C" >&6
32202 else
32203   cat >conftest.$ac_ext <<_ACEOF
32204 /* confdefs.h.  */
32205 _ACEOF
32206 cat confdefs.h >>conftest.$ac_ext
32207 cat >>conftest.$ac_ext <<_ACEOF
32208 /* end confdefs.h.  */
32209 $utmp_includes
32210
32211 int
32212 main ()
32213 {
32214 static struct utmpx ac_aggr;
32215 if (ac_aggr.ut_name)
32216 return 0;
32217   ;
32218   return 0;
32219 }
32220 _ACEOF
32221 rm -f conftest.$ac_objext
32222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32223   (eval $ac_compile) 2>conftest.er1
32224   ac_status=$?
32225   grep -v '^ *+' conftest.er1 >conftest.err
32226   rm -f conftest.er1
32227   cat conftest.err >&5
32228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32229   (exit $ac_status); } &&
32230          { ac_try='test -z "$ac_c_werror_flag"
32231                          || test ! -s conftest.err'
32232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32233   (eval $ac_try) 2>&5
32234   ac_status=$?
32235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32236   (exit $ac_status); }; } &&
32237          { ac_try='test -s conftest.$ac_objext'
32238   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32239   (eval $ac_try) 2>&5
32240   ac_status=$?
32241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32242   (exit $ac_status); }; }; then
32243   ac_cv_member_struct_utmpx_ut_name=yes
32244 else
32245   echo "$as_me: failed program was:" >&5
32246 sed 's/^/| /' conftest.$ac_ext >&5
32247
32248         cat >conftest.$ac_ext <<_ACEOF
32249 /* confdefs.h.  */
32250 _ACEOF
32251 cat confdefs.h >>conftest.$ac_ext
32252 cat >>conftest.$ac_ext <<_ACEOF
32253 /* end confdefs.h.  */
32254 $utmp_includes
32255
32256 int
32257 main ()
32258 {
32259 static struct utmpx ac_aggr;
32260 if (sizeof ac_aggr.ut_name)
32261 return 0;
32262   ;
32263   return 0;
32264 }
32265 _ACEOF
32266 rm -f conftest.$ac_objext
32267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32268   (eval $ac_compile) 2>conftest.er1
32269   ac_status=$?
32270   grep -v '^ *+' conftest.er1 >conftest.err
32271   rm -f conftest.er1
32272   cat conftest.err >&5
32273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32274   (exit $ac_status); } &&
32275          { ac_try='test -z "$ac_c_werror_flag"
32276                          || test ! -s conftest.err'
32277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32278   (eval $ac_try) 2>&5
32279   ac_status=$?
32280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32281   (exit $ac_status); }; } &&
32282          { ac_try='test -s conftest.$ac_objext'
32283   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32284   (eval $ac_try) 2>&5
32285   ac_status=$?
32286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32287   (exit $ac_status); }; }; then
32288   ac_cv_member_struct_utmpx_ut_name=yes
32289 else
32290   echo "$as_me: failed program was:" >&5
32291 sed 's/^/| /' conftest.$ac_ext >&5
32292
32293         ac_cv_member_struct_utmpx_ut_name=no
32294 fi
32295
32296 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32297 fi
32298
32299 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32300 fi
32301 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_name" >&5
32302 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_name" >&6; }
32303 if test $ac_cv_member_struct_utmpx_ut_name = yes; then
32304
32305 cat >>confdefs.h <<_ACEOF
32306 #define HAVE_STRUCT_UTMPX_UT_NAME 1
32307 _ACEOF
32308
32309
32310 fi
32311
32312     { echo "$as_me:$LINENO: checking for struct utmp.ut_name" >&5
32313 echo $ECHO_N "checking for struct utmp.ut_name... $ECHO_C" >&6; }
32314 if test "${ac_cv_member_struct_utmp_ut_name+set}" = set; then
32315   echo $ECHO_N "(cached) $ECHO_C" >&6
32316 else
32317   cat >conftest.$ac_ext <<_ACEOF
32318 /* confdefs.h.  */
32319 _ACEOF
32320 cat confdefs.h >>conftest.$ac_ext
32321 cat >>conftest.$ac_ext <<_ACEOF
32322 /* end confdefs.h.  */
32323 $utmp_includes
32324
32325 int
32326 main ()
32327 {
32328 static struct utmp ac_aggr;
32329 if (ac_aggr.ut_name)
32330 return 0;
32331   ;
32332   return 0;
32333 }
32334 _ACEOF
32335 rm -f conftest.$ac_objext
32336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32337   (eval $ac_compile) 2>conftest.er1
32338   ac_status=$?
32339   grep -v '^ *+' conftest.er1 >conftest.err
32340   rm -f conftest.er1
32341   cat conftest.err >&5
32342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32343   (exit $ac_status); } &&
32344          { ac_try='test -z "$ac_c_werror_flag"
32345                          || test ! -s conftest.err'
32346   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32347   (eval $ac_try) 2>&5
32348   ac_status=$?
32349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32350   (exit $ac_status); }; } &&
32351          { ac_try='test -s conftest.$ac_objext'
32352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32353   (eval $ac_try) 2>&5
32354   ac_status=$?
32355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32356   (exit $ac_status); }; }; then
32357   ac_cv_member_struct_utmp_ut_name=yes
32358 else
32359   echo "$as_me: failed program was:" >&5
32360 sed 's/^/| /' conftest.$ac_ext >&5
32361
32362         cat >conftest.$ac_ext <<_ACEOF
32363 /* confdefs.h.  */
32364 _ACEOF
32365 cat confdefs.h >>conftest.$ac_ext
32366 cat >>conftest.$ac_ext <<_ACEOF
32367 /* end confdefs.h.  */
32368 $utmp_includes
32369
32370 int
32371 main ()
32372 {
32373 static struct utmp ac_aggr;
32374 if (sizeof ac_aggr.ut_name)
32375 return 0;
32376   ;
32377   return 0;
32378 }
32379 _ACEOF
32380 rm -f conftest.$ac_objext
32381 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32382   (eval $ac_compile) 2>conftest.er1
32383   ac_status=$?
32384   grep -v '^ *+' conftest.er1 >conftest.err
32385   rm -f conftest.er1
32386   cat conftest.err >&5
32387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32388   (exit $ac_status); } &&
32389          { ac_try='test -z "$ac_c_werror_flag"
32390                          || test ! -s conftest.err'
32391   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32392   (eval $ac_try) 2>&5
32393   ac_status=$?
32394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32395   (exit $ac_status); }; } &&
32396          { ac_try='test -s conftest.$ac_objext'
32397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32398   (eval $ac_try) 2>&5
32399   ac_status=$?
32400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32401   (exit $ac_status); }; }; then
32402   ac_cv_member_struct_utmp_ut_name=yes
32403 else
32404   echo "$as_me: failed program was:" >&5
32405 sed 's/^/| /' conftest.$ac_ext >&5
32406
32407         ac_cv_member_struct_utmp_ut_name=no
32408 fi
32409
32410 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32411 fi
32412
32413 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32414 fi
32415 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_name" >&5
32416 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_name" >&6; }
32417 if test $ac_cv_member_struct_utmp_ut_name = yes; then
32418
32419 cat >>confdefs.h <<_ACEOF
32420 #define HAVE_STRUCT_UTMP_UT_NAME 1
32421 _ACEOF
32422
32423
32424 fi
32425
32426     { echo "$as_me:$LINENO: checking for struct utmpx.ut_type" >&5
32427 echo $ECHO_N "checking for struct utmpx.ut_type... $ECHO_C" >&6; }
32428 if test "${ac_cv_member_struct_utmpx_ut_type+set}" = set; then
32429   echo $ECHO_N "(cached) $ECHO_C" >&6
32430 else
32431   cat >conftest.$ac_ext <<_ACEOF
32432 /* confdefs.h.  */
32433 _ACEOF
32434 cat confdefs.h >>conftest.$ac_ext
32435 cat >>conftest.$ac_ext <<_ACEOF
32436 /* end confdefs.h.  */
32437 $utmp_includes
32438
32439 int
32440 main ()
32441 {
32442 static struct utmpx ac_aggr;
32443 if (ac_aggr.ut_type)
32444 return 0;
32445   ;
32446   return 0;
32447 }
32448 _ACEOF
32449 rm -f conftest.$ac_objext
32450 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32451   (eval $ac_compile) 2>conftest.er1
32452   ac_status=$?
32453   grep -v '^ *+' conftest.er1 >conftest.err
32454   rm -f conftest.er1
32455   cat conftest.err >&5
32456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32457   (exit $ac_status); } &&
32458          { ac_try='test -z "$ac_c_werror_flag"
32459                          || test ! -s conftest.err'
32460   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32461   (eval $ac_try) 2>&5
32462   ac_status=$?
32463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32464   (exit $ac_status); }; } &&
32465          { ac_try='test -s conftest.$ac_objext'
32466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32467   (eval $ac_try) 2>&5
32468   ac_status=$?
32469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32470   (exit $ac_status); }; }; then
32471   ac_cv_member_struct_utmpx_ut_type=yes
32472 else
32473   echo "$as_me: failed program was:" >&5
32474 sed 's/^/| /' conftest.$ac_ext >&5
32475
32476         cat >conftest.$ac_ext <<_ACEOF
32477 /* confdefs.h.  */
32478 _ACEOF
32479 cat confdefs.h >>conftest.$ac_ext
32480 cat >>conftest.$ac_ext <<_ACEOF
32481 /* end confdefs.h.  */
32482 $utmp_includes
32483
32484 int
32485 main ()
32486 {
32487 static struct utmpx ac_aggr;
32488 if (sizeof ac_aggr.ut_type)
32489 return 0;
32490   ;
32491   return 0;
32492 }
32493 _ACEOF
32494 rm -f conftest.$ac_objext
32495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32496   (eval $ac_compile) 2>conftest.er1
32497   ac_status=$?
32498   grep -v '^ *+' conftest.er1 >conftest.err
32499   rm -f conftest.er1
32500   cat conftest.err >&5
32501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32502   (exit $ac_status); } &&
32503          { ac_try='test -z "$ac_c_werror_flag"
32504                          || test ! -s conftest.err'
32505   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32506   (eval $ac_try) 2>&5
32507   ac_status=$?
32508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32509   (exit $ac_status); }; } &&
32510          { ac_try='test -s conftest.$ac_objext'
32511   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32512   (eval $ac_try) 2>&5
32513   ac_status=$?
32514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32515   (exit $ac_status); }; }; then
32516   ac_cv_member_struct_utmpx_ut_type=yes
32517 else
32518   echo "$as_me: failed program was:" >&5
32519 sed 's/^/| /' conftest.$ac_ext >&5
32520
32521         ac_cv_member_struct_utmpx_ut_type=no
32522 fi
32523
32524 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32525 fi
32526
32527 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32528 fi
32529 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_type" >&5
32530 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_type" >&6; }
32531 if test $ac_cv_member_struct_utmpx_ut_type = yes; then
32532
32533 cat >>confdefs.h <<_ACEOF
32534 #define HAVE_STRUCT_UTMPX_UT_TYPE 1
32535 _ACEOF
32536
32537
32538 fi
32539
32540     { echo "$as_me:$LINENO: checking for struct utmp.ut_type" >&5
32541 echo $ECHO_N "checking for struct utmp.ut_type... $ECHO_C" >&6; }
32542 if test "${ac_cv_member_struct_utmp_ut_type+set}" = set; then
32543   echo $ECHO_N "(cached) $ECHO_C" >&6
32544 else
32545   cat >conftest.$ac_ext <<_ACEOF
32546 /* confdefs.h.  */
32547 _ACEOF
32548 cat confdefs.h >>conftest.$ac_ext
32549 cat >>conftest.$ac_ext <<_ACEOF
32550 /* end confdefs.h.  */
32551 $utmp_includes
32552
32553 int
32554 main ()
32555 {
32556 static struct utmp ac_aggr;
32557 if (ac_aggr.ut_type)
32558 return 0;
32559   ;
32560   return 0;
32561 }
32562 _ACEOF
32563 rm -f conftest.$ac_objext
32564 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32565   (eval $ac_compile) 2>conftest.er1
32566   ac_status=$?
32567   grep -v '^ *+' conftest.er1 >conftest.err
32568   rm -f conftest.er1
32569   cat conftest.err >&5
32570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32571   (exit $ac_status); } &&
32572          { ac_try='test -z "$ac_c_werror_flag"
32573                          || test ! -s conftest.err'
32574   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32575   (eval $ac_try) 2>&5
32576   ac_status=$?
32577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32578   (exit $ac_status); }; } &&
32579          { ac_try='test -s conftest.$ac_objext'
32580   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32581   (eval $ac_try) 2>&5
32582   ac_status=$?
32583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32584   (exit $ac_status); }; }; then
32585   ac_cv_member_struct_utmp_ut_type=yes
32586 else
32587   echo "$as_me: failed program was:" >&5
32588 sed 's/^/| /' conftest.$ac_ext >&5
32589
32590         cat >conftest.$ac_ext <<_ACEOF
32591 /* confdefs.h.  */
32592 _ACEOF
32593 cat confdefs.h >>conftest.$ac_ext
32594 cat >>conftest.$ac_ext <<_ACEOF
32595 /* end confdefs.h.  */
32596 $utmp_includes
32597
32598 int
32599 main ()
32600 {
32601 static struct utmp ac_aggr;
32602 if (sizeof ac_aggr.ut_type)
32603 return 0;
32604   ;
32605   return 0;
32606 }
32607 _ACEOF
32608 rm -f conftest.$ac_objext
32609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32610   (eval $ac_compile) 2>conftest.er1
32611   ac_status=$?
32612   grep -v '^ *+' conftest.er1 >conftest.err
32613   rm -f conftest.er1
32614   cat conftest.err >&5
32615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32616   (exit $ac_status); } &&
32617          { ac_try='test -z "$ac_c_werror_flag"
32618                          || test ! -s conftest.err'
32619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32620   (eval $ac_try) 2>&5
32621   ac_status=$?
32622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32623   (exit $ac_status); }; } &&
32624          { ac_try='test -s conftest.$ac_objext'
32625   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32626   (eval $ac_try) 2>&5
32627   ac_status=$?
32628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32629   (exit $ac_status); }; }; then
32630   ac_cv_member_struct_utmp_ut_type=yes
32631 else
32632   echo "$as_me: failed program was:" >&5
32633 sed 's/^/| /' conftest.$ac_ext >&5
32634
32635         ac_cv_member_struct_utmp_ut_type=no
32636 fi
32637
32638 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32639 fi
32640
32641 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32642 fi
32643 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_type" >&5
32644 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_type" >&6; }
32645 if test $ac_cv_member_struct_utmp_ut_type = yes; then
32646
32647 cat >>confdefs.h <<_ACEOF
32648 #define HAVE_STRUCT_UTMP_UT_TYPE 1
32649 _ACEOF
32650
32651
32652 fi
32653
32654     { echo "$as_me:$LINENO: checking for struct utmpx.ut_pid" >&5
32655 echo $ECHO_N "checking for struct utmpx.ut_pid... $ECHO_C" >&6; }
32656 if test "${ac_cv_member_struct_utmpx_ut_pid+set}" = set; then
32657   echo $ECHO_N "(cached) $ECHO_C" >&6
32658 else
32659   cat >conftest.$ac_ext <<_ACEOF
32660 /* confdefs.h.  */
32661 _ACEOF
32662 cat confdefs.h >>conftest.$ac_ext
32663 cat >>conftest.$ac_ext <<_ACEOF
32664 /* end confdefs.h.  */
32665 $utmp_includes
32666
32667 int
32668 main ()
32669 {
32670 static struct utmpx ac_aggr;
32671 if (ac_aggr.ut_pid)
32672 return 0;
32673   ;
32674   return 0;
32675 }
32676 _ACEOF
32677 rm -f conftest.$ac_objext
32678 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32679   (eval $ac_compile) 2>conftest.er1
32680   ac_status=$?
32681   grep -v '^ *+' conftest.er1 >conftest.err
32682   rm -f conftest.er1
32683   cat conftest.err >&5
32684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32685   (exit $ac_status); } &&
32686          { ac_try='test -z "$ac_c_werror_flag"
32687                          || test ! -s conftest.err'
32688   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32689   (eval $ac_try) 2>&5
32690   ac_status=$?
32691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32692   (exit $ac_status); }; } &&
32693          { ac_try='test -s conftest.$ac_objext'
32694   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32695   (eval $ac_try) 2>&5
32696   ac_status=$?
32697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32698   (exit $ac_status); }; }; then
32699   ac_cv_member_struct_utmpx_ut_pid=yes
32700 else
32701   echo "$as_me: failed program was:" >&5
32702 sed 's/^/| /' conftest.$ac_ext >&5
32703
32704         cat >conftest.$ac_ext <<_ACEOF
32705 /* confdefs.h.  */
32706 _ACEOF
32707 cat confdefs.h >>conftest.$ac_ext
32708 cat >>conftest.$ac_ext <<_ACEOF
32709 /* end confdefs.h.  */
32710 $utmp_includes
32711
32712 int
32713 main ()
32714 {
32715 static struct utmpx ac_aggr;
32716 if (sizeof ac_aggr.ut_pid)
32717 return 0;
32718   ;
32719   return 0;
32720 }
32721 _ACEOF
32722 rm -f conftest.$ac_objext
32723 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32724   (eval $ac_compile) 2>conftest.er1
32725   ac_status=$?
32726   grep -v '^ *+' conftest.er1 >conftest.err
32727   rm -f conftest.er1
32728   cat conftest.err >&5
32729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32730   (exit $ac_status); } &&
32731          { ac_try='test -z "$ac_c_werror_flag"
32732                          || test ! -s conftest.err'
32733   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32734   (eval $ac_try) 2>&5
32735   ac_status=$?
32736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32737   (exit $ac_status); }; } &&
32738          { ac_try='test -s conftest.$ac_objext'
32739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32740   (eval $ac_try) 2>&5
32741   ac_status=$?
32742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32743   (exit $ac_status); }; }; then
32744   ac_cv_member_struct_utmpx_ut_pid=yes
32745 else
32746   echo "$as_me: failed program was:" >&5
32747 sed 's/^/| /' conftest.$ac_ext >&5
32748
32749         ac_cv_member_struct_utmpx_ut_pid=no
32750 fi
32751
32752 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32753 fi
32754
32755 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32756 fi
32757 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_pid" >&5
32758 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_pid" >&6; }
32759 if test $ac_cv_member_struct_utmpx_ut_pid = yes; then
32760
32761 cat >>confdefs.h <<_ACEOF
32762 #define HAVE_STRUCT_UTMPX_UT_PID 1
32763 _ACEOF
32764
32765
32766 fi
32767
32768     { echo "$as_me:$LINENO: checking for struct utmp.ut_pid" >&5
32769 echo $ECHO_N "checking for struct utmp.ut_pid... $ECHO_C" >&6; }
32770 if test "${ac_cv_member_struct_utmp_ut_pid+set}" = set; then
32771   echo $ECHO_N "(cached) $ECHO_C" >&6
32772 else
32773   cat >conftest.$ac_ext <<_ACEOF
32774 /* confdefs.h.  */
32775 _ACEOF
32776 cat confdefs.h >>conftest.$ac_ext
32777 cat >>conftest.$ac_ext <<_ACEOF
32778 /* end confdefs.h.  */
32779 $utmp_includes
32780
32781 int
32782 main ()
32783 {
32784 static struct utmp ac_aggr;
32785 if (ac_aggr.ut_pid)
32786 return 0;
32787   ;
32788   return 0;
32789 }
32790 _ACEOF
32791 rm -f conftest.$ac_objext
32792 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32793   (eval $ac_compile) 2>conftest.er1
32794   ac_status=$?
32795   grep -v '^ *+' conftest.er1 >conftest.err
32796   rm -f conftest.er1
32797   cat conftest.err >&5
32798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32799   (exit $ac_status); } &&
32800          { ac_try='test -z "$ac_c_werror_flag"
32801                          || test ! -s conftest.err'
32802   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32803   (eval $ac_try) 2>&5
32804   ac_status=$?
32805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32806   (exit $ac_status); }; } &&
32807          { ac_try='test -s conftest.$ac_objext'
32808   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32809   (eval $ac_try) 2>&5
32810   ac_status=$?
32811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32812   (exit $ac_status); }; }; then
32813   ac_cv_member_struct_utmp_ut_pid=yes
32814 else
32815   echo "$as_me: failed program was:" >&5
32816 sed 's/^/| /' conftest.$ac_ext >&5
32817
32818         cat >conftest.$ac_ext <<_ACEOF
32819 /* confdefs.h.  */
32820 _ACEOF
32821 cat confdefs.h >>conftest.$ac_ext
32822 cat >>conftest.$ac_ext <<_ACEOF
32823 /* end confdefs.h.  */
32824 $utmp_includes
32825
32826 int
32827 main ()
32828 {
32829 static struct utmp ac_aggr;
32830 if (sizeof ac_aggr.ut_pid)
32831 return 0;
32832   ;
32833   return 0;
32834 }
32835 _ACEOF
32836 rm -f conftest.$ac_objext
32837 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32838   (eval $ac_compile) 2>conftest.er1
32839   ac_status=$?
32840   grep -v '^ *+' conftest.er1 >conftest.err
32841   rm -f conftest.er1
32842   cat conftest.err >&5
32843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32844   (exit $ac_status); } &&
32845          { ac_try='test -z "$ac_c_werror_flag"
32846                          || test ! -s conftest.err'
32847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32848   (eval $ac_try) 2>&5
32849   ac_status=$?
32850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32851   (exit $ac_status); }; } &&
32852          { ac_try='test -s conftest.$ac_objext'
32853   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32854   (eval $ac_try) 2>&5
32855   ac_status=$?
32856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32857   (exit $ac_status); }; }; then
32858   ac_cv_member_struct_utmp_ut_pid=yes
32859 else
32860   echo "$as_me: failed program was:" >&5
32861 sed 's/^/| /' conftest.$ac_ext >&5
32862
32863         ac_cv_member_struct_utmp_ut_pid=no
32864 fi
32865
32866 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32867 fi
32868
32869 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32870 fi
32871 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_pid" >&5
32872 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_pid" >&6; }
32873 if test $ac_cv_member_struct_utmp_ut_pid = yes; then
32874
32875 cat >>confdefs.h <<_ACEOF
32876 #define HAVE_STRUCT_UTMP_UT_PID 1
32877 _ACEOF
32878
32879
32880 fi
32881
32882     { echo "$as_me:$LINENO: checking for struct utmpx.ut_id" >&5
32883 echo $ECHO_N "checking for struct utmpx.ut_id... $ECHO_C" >&6; }
32884 if test "${ac_cv_member_struct_utmpx_ut_id+set}" = set; then
32885   echo $ECHO_N "(cached) $ECHO_C" >&6
32886 else
32887   cat >conftest.$ac_ext <<_ACEOF
32888 /* confdefs.h.  */
32889 _ACEOF
32890 cat confdefs.h >>conftest.$ac_ext
32891 cat >>conftest.$ac_ext <<_ACEOF
32892 /* end confdefs.h.  */
32893 $utmp_includes
32894
32895 int
32896 main ()
32897 {
32898 static struct utmpx ac_aggr;
32899 if (ac_aggr.ut_id)
32900 return 0;
32901   ;
32902   return 0;
32903 }
32904 _ACEOF
32905 rm -f conftest.$ac_objext
32906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32907   (eval $ac_compile) 2>conftest.er1
32908   ac_status=$?
32909   grep -v '^ *+' conftest.er1 >conftest.err
32910   rm -f conftest.er1
32911   cat conftest.err >&5
32912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32913   (exit $ac_status); } &&
32914          { ac_try='test -z "$ac_c_werror_flag"
32915                          || test ! -s conftest.err'
32916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32917   (eval $ac_try) 2>&5
32918   ac_status=$?
32919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32920   (exit $ac_status); }; } &&
32921          { ac_try='test -s conftest.$ac_objext'
32922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32923   (eval $ac_try) 2>&5
32924   ac_status=$?
32925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32926   (exit $ac_status); }; }; then
32927   ac_cv_member_struct_utmpx_ut_id=yes
32928 else
32929   echo "$as_me: failed program was:" >&5
32930 sed 's/^/| /' conftest.$ac_ext >&5
32931
32932         cat >conftest.$ac_ext <<_ACEOF
32933 /* confdefs.h.  */
32934 _ACEOF
32935 cat confdefs.h >>conftest.$ac_ext
32936 cat >>conftest.$ac_ext <<_ACEOF
32937 /* end confdefs.h.  */
32938 $utmp_includes
32939
32940 int
32941 main ()
32942 {
32943 static struct utmpx ac_aggr;
32944 if (sizeof ac_aggr.ut_id)
32945 return 0;
32946   ;
32947   return 0;
32948 }
32949 _ACEOF
32950 rm -f conftest.$ac_objext
32951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32952   (eval $ac_compile) 2>conftest.er1
32953   ac_status=$?
32954   grep -v '^ *+' conftest.er1 >conftest.err
32955   rm -f conftest.er1
32956   cat conftest.err >&5
32957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32958   (exit $ac_status); } &&
32959          { ac_try='test -z "$ac_c_werror_flag"
32960                          || test ! -s conftest.err'
32961   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32962   (eval $ac_try) 2>&5
32963   ac_status=$?
32964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32965   (exit $ac_status); }; } &&
32966          { ac_try='test -s conftest.$ac_objext'
32967   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32968   (eval $ac_try) 2>&5
32969   ac_status=$?
32970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32971   (exit $ac_status); }; }; then
32972   ac_cv_member_struct_utmpx_ut_id=yes
32973 else
32974   echo "$as_me: failed program was:" >&5
32975 sed 's/^/| /' conftest.$ac_ext >&5
32976
32977         ac_cv_member_struct_utmpx_ut_id=no
32978 fi
32979
32980 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32981 fi
32982
32983 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32984 fi
32985 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_id" >&5
32986 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_id" >&6; }
32987 if test $ac_cv_member_struct_utmpx_ut_id = yes; then
32988
32989 cat >>confdefs.h <<_ACEOF
32990 #define HAVE_STRUCT_UTMPX_UT_ID 1
32991 _ACEOF
32992
32993
32994 fi
32995
32996     { echo "$as_me:$LINENO: checking for struct utmp.ut_id" >&5
32997 echo $ECHO_N "checking for struct utmp.ut_id... $ECHO_C" >&6; }
32998 if test "${ac_cv_member_struct_utmp_ut_id+set}" = set; then
32999   echo $ECHO_N "(cached) $ECHO_C" >&6
33000 else
33001   cat >conftest.$ac_ext <<_ACEOF
33002 /* confdefs.h.  */
33003 _ACEOF
33004 cat confdefs.h >>conftest.$ac_ext
33005 cat >>conftest.$ac_ext <<_ACEOF
33006 /* end confdefs.h.  */
33007 $utmp_includes
33008
33009 int
33010 main ()
33011 {
33012 static struct utmp ac_aggr;
33013 if (ac_aggr.ut_id)
33014 return 0;
33015   ;
33016   return 0;
33017 }
33018 _ACEOF
33019 rm -f conftest.$ac_objext
33020 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33021   (eval $ac_compile) 2>conftest.er1
33022   ac_status=$?
33023   grep -v '^ *+' conftest.er1 >conftest.err
33024   rm -f conftest.er1
33025   cat conftest.err >&5
33026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33027   (exit $ac_status); } &&
33028          { ac_try='test -z "$ac_c_werror_flag"
33029                          || test ! -s conftest.err'
33030   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33031   (eval $ac_try) 2>&5
33032   ac_status=$?
33033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33034   (exit $ac_status); }; } &&
33035          { ac_try='test -s conftest.$ac_objext'
33036   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33037   (eval $ac_try) 2>&5
33038   ac_status=$?
33039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33040   (exit $ac_status); }; }; then
33041   ac_cv_member_struct_utmp_ut_id=yes
33042 else
33043   echo "$as_me: failed program was:" >&5
33044 sed 's/^/| /' conftest.$ac_ext >&5
33045
33046         cat >conftest.$ac_ext <<_ACEOF
33047 /* confdefs.h.  */
33048 _ACEOF
33049 cat confdefs.h >>conftest.$ac_ext
33050 cat >>conftest.$ac_ext <<_ACEOF
33051 /* end confdefs.h.  */
33052 $utmp_includes
33053
33054 int
33055 main ()
33056 {
33057 static struct utmp ac_aggr;
33058 if (sizeof ac_aggr.ut_id)
33059 return 0;
33060   ;
33061   return 0;
33062 }
33063 _ACEOF
33064 rm -f conftest.$ac_objext
33065 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33066   (eval $ac_compile) 2>conftest.er1
33067   ac_status=$?
33068   grep -v '^ *+' conftest.er1 >conftest.err
33069   rm -f conftest.er1
33070   cat conftest.err >&5
33071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33072   (exit $ac_status); } &&
33073          { ac_try='test -z "$ac_c_werror_flag"
33074                          || test ! -s conftest.err'
33075   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33076   (eval $ac_try) 2>&5
33077   ac_status=$?
33078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33079   (exit $ac_status); }; } &&
33080          { ac_try='test -s conftest.$ac_objext'
33081   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33082   (eval $ac_try) 2>&5
33083   ac_status=$?
33084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33085   (exit $ac_status); }; }; then
33086   ac_cv_member_struct_utmp_ut_id=yes
33087 else
33088   echo "$as_me: failed program was:" >&5
33089 sed 's/^/| /' conftest.$ac_ext >&5
33090
33091         ac_cv_member_struct_utmp_ut_id=no
33092 fi
33093
33094 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33095 fi
33096
33097 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33098 fi
33099 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_id" >&5
33100 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_id" >&6; }
33101 if test $ac_cv_member_struct_utmp_ut_id = yes; then
33102
33103 cat >>confdefs.h <<_ACEOF
33104 #define HAVE_STRUCT_UTMP_UT_ID 1
33105 _ACEOF
33106
33107
33108 fi
33109
33110     { echo "$as_me:$LINENO: checking for struct utmpx.ut_exit" >&5
33111 echo $ECHO_N "checking for struct utmpx.ut_exit... $ECHO_C" >&6; }
33112 if test "${ac_cv_member_struct_utmpx_ut_exit+set}" = set; then
33113   echo $ECHO_N "(cached) $ECHO_C" >&6
33114 else
33115   cat >conftest.$ac_ext <<_ACEOF
33116 /* confdefs.h.  */
33117 _ACEOF
33118 cat confdefs.h >>conftest.$ac_ext
33119 cat >>conftest.$ac_ext <<_ACEOF
33120 /* end confdefs.h.  */
33121 $utmp_includes
33122
33123 int
33124 main ()
33125 {
33126 static struct utmpx ac_aggr;
33127 if (ac_aggr.ut_exit)
33128 return 0;
33129   ;
33130   return 0;
33131 }
33132 _ACEOF
33133 rm -f conftest.$ac_objext
33134 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33135   (eval $ac_compile) 2>conftest.er1
33136   ac_status=$?
33137   grep -v '^ *+' conftest.er1 >conftest.err
33138   rm -f conftest.er1
33139   cat conftest.err >&5
33140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33141   (exit $ac_status); } &&
33142          { ac_try='test -z "$ac_c_werror_flag"
33143                          || test ! -s conftest.err'
33144   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33145   (eval $ac_try) 2>&5
33146   ac_status=$?
33147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33148   (exit $ac_status); }; } &&
33149          { ac_try='test -s conftest.$ac_objext'
33150   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33151   (eval $ac_try) 2>&5
33152   ac_status=$?
33153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33154   (exit $ac_status); }; }; then
33155   ac_cv_member_struct_utmpx_ut_exit=yes
33156 else
33157   echo "$as_me: failed program was:" >&5
33158 sed 's/^/| /' conftest.$ac_ext >&5
33159
33160         cat >conftest.$ac_ext <<_ACEOF
33161 /* confdefs.h.  */
33162 _ACEOF
33163 cat confdefs.h >>conftest.$ac_ext
33164 cat >>conftest.$ac_ext <<_ACEOF
33165 /* end confdefs.h.  */
33166 $utmp_includes
33167
33168 int
33169 main ()
33170 {
33171 static struct utmpx ac_aggr;
33172 if (sizeof ac_aggr.ut_exit)
33173 return 0;
33174   ;
33175   return 0;
33176 }
33177 _ACEOF
33178 rm -f conftest.$ac_objext
33179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33180   (eval $ac_compile) 2>conftest.er1
33181   ac_status=$?
33182   grep -v '^ *+' conftest.er1 >conftest.err
33183   rm -f conftest.er1
33184   cat conftest.err >&5
33185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33186   (exit $ac_status); } &&
33187          { ac_try='test -z "$ac_c_werror_flag"
33188                          || test ! -s conftest.err'
33189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33190   (eval $ac_try) 2>&5
33191   ac_status=$?
33192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33193   (exit $ac_status); }; } &&
33194          { ac_try='test -s conftest.$ac_objext'
33195   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33196   (eval $ac_try) 2>&5
33197   ac_status=$?
33198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33199   (exit $ac_status); }; }; then
33200   ac_cv_member_struct_utmpx_ut_exit=yes
33201 else
33202   echo "$as_me: failed program was:" >&5
33203 sed 's/^/| /' conftest.$ac_ext >&5
33204
33205         ac_cv_member_struct_utmpx_ut_exit=no
33206 fi
33207
33208 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33209 fi
33210
33211 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33212 fi
33213 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_exit" >&5
33214 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_exit" >&6; }
33215 if test $ac_cv_member_struct_utmpx_ut_exit = yes; then
33216
33217 cat >>confdefs.h <<_ACEOF
33218 #define HAVE_STRUCT_UTMPX_UT_EXIT 1
33219 _ACEOF
33220
33221
33222 fi
33223
33224     { echo "$as_me:$LINENO: checking for struct utmp.ut_exit" >&5
33225 echo $ECHO_N "checking for struct utmp.ut_exit... $ECHO_C" >&6; }
33226 if test "${ac_cv_member_struct_utmp_ut_exit+set}" = set; then
33227   echo $ECHO_N "(cached) $ECHO_C" >&6
33228 else
33229   cat >conftest.$ac_ext <<_ACEOF
33230 /* confdefs.h.  */
33231 _ACEOF
33232 cat confdefs.h >>conftest.$ac_ext
33233 cat >>conftest.$ac_ext <<_ACEOF
33234 /* end confdefs.h.  */
33235 $utmp_includes
33236
33237 int
33238 main ()
33239 {
33240 static struct utmp ac_aggr;
33241 if (ac_aggr.ut_exit)
33242 return 0;
33243   ;
33244   return 0;
33245 }
33246 _ACEOF
33247 rm -f conftest.$ac_objext
33248 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33249   (eval $ac_compile) 2>conftest.er1
33250   ac_status=$?
33251   grep -v '^ *+' conftest.er1 >conftest.err
33252   rm -f conftest.er1
33253   cat conftest.err >&5
33254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33255   (exit $ac_status); } &&
33256          { ac_try='test -z "$ac_c_werror_flag"
33257                          || test ! -s conftest.err'
33258   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33259   (eval $ac_try) 2>&5
33260   ac_status=$?
33261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33262   (exit $ac_status); }; } &&
33263          { ac_try='test -s conftest.$ac_objext'
33264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33265   (eval $ac_try) 2>&5
33266   ac_status=$?
33267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33268   (exit $ac_status); }; }; then
33269   ac_cv_member_struct_utmp_ut_exit=yes
33270 else
33271   echo "$as_me: failed program was:" >&5
33272 sed 's/^/| /' conftest.$ac_ext >&5
33273
33274         cat >conftest.$ac_ext <<_ACEOF
33275 /* confdefs.h.  */
33276 _ACEOF
33277 cat confdefs.h >>conftest.$ac_ext
33278 cat >>conftest.$ac_ext <<_ACEOF
33279 /* end confdefs.h.  */
33280 $utmp_includes
33281
33282 int
33283 main ()
33284 {
33285 static struct utmp ac_aggr;
33286 if (sizeof ac_aggr.ut_exit)
33287 return 0;
33288   ;
33289   return 0;
33290 }
33291 _ACEOF
33292 rm -f conftest.$ac_objext
33293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33294   (eval $ac_compile) 2>conftest.er1
33295   ac_status=$?
33296   grep -v '^ *+' conftest.er1 >conftest.err
33297   rm -f conftest.er1
33298   cat conftest.err >&5
33299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33300   (exit $ac_status); } &&
33301          { ac_try='test -z "$ac_c_werror_flag"
33302                          || test ! -s conftest.err'
33303   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33304   (eval $ac_try) 2>&5
33305   ac_status=$?
33306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33307   (exit $ac_status); }; } &&
33308          { ac_try='test -s conftest.$ac_objext'
33309   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33310   (eval $ac_try) 2>&5
33311   ac_status=$?
33312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33313   (exit $ac_status); }; }; then
33314   ac_cv_member_struct_utmp_ut_exit=yes
33315 else
33316   echo "$as_me: failed program was:" >&5
33317 sed 's/^/| /' conftest.$ac_ext >&5
33318
33319         ac_cv_member_struct_utmp_ut_exit=no
33320 fi
33321
33322 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33323 fi
33324
33325 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33326 fi
33327 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_exit" >&5
33328 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_exit" >&6; }
33329 if test $ac_cv_member_struct_utmp_ut_exit = yes; then
33330
33331 cat >>confdefs.h <<_ACEOF
33332 #define HAVE_STRUCT_UTMP_UT_EXIT 1
33333 _ACEOF
33334
33335
33336 fi
33337
33338
33339     { echo "$as_me:$LINENO: checking for struct utmpx.ut_exit.ut_exit" >&5
33340 echo $ECHO_N "checking for struct utmpx.ut_exit.ut_exit... $ECHO_C" >&6; }
33341 if test "${ac_cv_member_struct_utmpx_ut_exit_ut_exit+set}" = set; then
33342   echo $ECHO_N "(cached) $ECHO_C" >&6
33343 else
33344   cat >conftest.$ac_ext <<_ACEOF
33345 /* confdefs.h.  */
33346 _ACEOF
33347 cat confdefs.h >>conftest.$ac_ext
33348 cat >>conftest.$ac_ext <<_ACEOF
33349 /* end confdefs.h.  */
33350 $utmp_includes
33351
33352 int
33353 main ()
33354 {
33355 static struct utmpx ac_aggr;
33356 if (ac_aggr.ut_exit.ut_exit)
33357 return 0;
33358   ;
33359   return 0;
33360 }
33361 _ACEOF
33362 rm -f conftest.$ac_objext
33363 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33364   (eval $ac_compile) 2>conftest.er1
33365   ac_status=$?
33366   grep -v '^ *+' conftest.er1 >conftest.err
33367   rm -f conftest.er1
33368   cat conftest.err >&5
33369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33370   (exit $ac_status); } &&
33371          { ac_try='test -z "$ac_c_werror_flag"
33372                          || test ! -s conftest.err'
33373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33374   (eval $ac_try) 2>&5
33375   ac_status=$?
33376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33377   (exit $ac_status); }; } &&
33378          { ac_try='test -s conftest.$ac_objext'
33379   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33380   (eval $ac_try) 2>&5
33381   ac_status=$?
33382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33383   (exit $ac_status); }; }; then
33384   ac_cv_member_struct_utmpx_ut_exit_ut_exit=yes
33385 else
33386   echo "$as_me: failed program was:" >&5
33387 sed 's/^/| /' conftest.$ac_ext >&5
33388
33389         cat >conftest.$ac_ext <<_ACEOF
33390 /* confdefs.h.  */
33391 _ACEOF
33392 cat confdefs.h >>conftest.$ac_ext
33393 cat >>conftest.$ac_ext <<_ACEOF
33394 /* end confdefs.h.  */
33395 $utmp_includes
33396
33397 int
33398 main ()
33399 {
33400 static struct utmpx ac_aggr;
33401 if (sizeof ac_aggr.ut_exit.ut_exit)
33402 return 0;
33403   ;
33404   return 0;
33405 }
33406 _ACEOF
33407 rm -f conftest.$ac_objext
33408 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33409   (eval $ac_compile) 2>conftest.er1
33410   ac_status=$?
33411   grep -v '^ *+' conftest.er1 >conftest.err
33412   rm -f conftest.er1
33413   cat conftest.err >&5
33414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33415   (exit $ac_status); } &&
33416          { ac_try='test -z "$ac_c_werror_flag"
33417                          || test ! -s conftest.err'
33418   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33419   (eval $ac_try) 2>&5
33420   ac_status=$?
33421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33422   (exit $ac_status); }; } &&
33423          { ac_try='test -s conftest.$ac_objext'
33424   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33425   (eval $ac_try) 2>&5
33426   ac_status=$?
33427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33428   (exit $ac_status); }; }; then
33429   ac_cv_member_struct_utmpx_ut_exit_ut_exit=yes
33430 else
33431   echo "$as_me: failed program was:" >&5
33432 sed 's/^/| /' conftest.$ac_ext >&5
33433
33434         ac_cv_member_struct_utmpx_ut_exit_ut_exit=no
33435 fi
33436
33437 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33438 fi
33439
33440 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33441 fi
33442 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_exit_ut_exit" >&5
33443 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_exit_ut_exit" >&6; }
33444 if test $ac_cv_member_struct_utmpx_ut_exit_ut_exit = yes; then
33445
33446 cat >>confdefs.h <<_ACEOF
33447 #define HAVE_STRUCT_UTMPX_UT_EXIT_UT_EXIT 1
33448 _ACEOF
33449
33450
33451 fi
33452
33453     { echo "$as_me:$LINENO: checking for struct utmp.ut_exit.ut_exit" >&5
33454 echo $ECHO_N "checking for struct utmp.ut_exit.ut_exit... $ECHO_C" >&6; }
33455 if test "${ac_cv_member_struct_utmp_ut_exit_ut_exit+set}" = set; then
33456   echo $ECHO_N "(cached) $ECHO_C" >&6
33457 else
33458   cat >conftest.$ac_ext <<_ACEOF
33459 /* confdefs.h.  */
33460 _ACEOF
33461 cat confdefs.h >>conftest.$ac_ext
33462 cat >>conftest.$ac_ext <<_ACEOF
33463 /* end confdefs.h.  */
33464 $utmp_includes
33465
33466 int
33467 main ()
33468 {
33469 static struct utmp ac_aggr;
33470 if (ac_aggr.ut_exit.ut_exit)
33471 return 0;
33472   ;
33473   return 0;
33474 }
33475 _ACEOF
33476 rm -f conftest.$ac_objext
33477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33478   (eval $ac_compile) 2>conftest.er1
33479   ac_status=$?
33480   grep -v '^ *+' conftest.er1 >conftest.err
33481   rm -f conftest.er1
33482   cat conftest.err >&5
33483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33484   (exit $ac_status); } &&
33485          { ac_try='test -z "$ac_c_werror_flag"
33486                          || test ! -s conftest.err'
33487   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33488   (eval $ac_try) 2>&5
33489   ac_status=$?
33490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33491   (exit $ac_status); }; } &&
33492          { ac_try='test -s conftest.$ac_objext'
33493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33494   (eval $ac_try) 2>&5
33495   ac_status=$?
33496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33497   (exit $ac_status); }; }; then
33498   ac_cv_member_struct_utmp_ut_exit_ut_exit=yes
33499 else
33500   echo "$as_me: failed program was:" >&5
33501 sed 's/^/| /' conftest.$ac_ext >&5
33502
33503         cat >conftest.$ac_ext <<_ACEOF
33504 /* confdefs.h.  */
33505 _ACEOF
33506 cat confdefs.h >>conftest.$ac_ext
33507 cat >>conftest.$ac_ext <<_ACEOF
33508 /* end confdefs.h.  */
33509 $utmp_includes
33510
33511 int
33512 main ()
33513 {
33514 static struct utmp ac_aggr;
33515 if (sizeof ac_aggr.ut_exit.ut_exit)
33516 return 0;
33517   ;
33518   return 0;
33519 }
33520 _ACEOF
33521 rm -f conftest.$ac_objext
33522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33523   (eval $ac_compile) 2>conftest.er1
33524   ac_status=$?
33525   grep -v '^ *+' conftest.er1 >conftest.err
33526   rm -f conftest.er1
33527   cat conftest.err >&5
33528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33529   (exit $ac_status); } &&
33530          { ac_try='test -z "$ac_c_werror_flag"
33531                          || test ! -s conftest.err'
33532   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33533   (eval $ac_try) 2>&5
33534   ac_status=$?
33535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33536   (exit $ac_status); }; } &&
33537          { ac_try='test -s conftest.$ac_objext'
33538   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33539   (eval $ac_try) 2>&5
33540   ac_status=$?
33541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33542   (exit $ac_status); }; }; then
33543   ac_cv_member_struct_utmp_ut_exit_ut_exit=yes
33544 else
33545   echo "$as_me: failed program was:" >&5
33546 sed 's/^/| /' conftest.$ac_ext >&5
33547
33548         ac_cv_member_struct_utmp_ut_exit_ut_exit=no
33549 fi
33550
33551 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33552 fi
33553
33554 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33555 fi
33556 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_exit_ut_exit" >&5
33557 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_exit_ut_exit" >&6; }
33558 if test $ac_cv_member_struct_utmp_ut_exit_ut_exit = yes; then
33559
33560 cat >>confdefs.h <<_ACEOF
33561 #define HAVE_STRUCT_UTMP_UT_EXIT_UT_EXIT 1
33562 _ACEOF
33563
33564
33565 fi
33566
33567     { echo "$as_me:$LINENO: checking for struct utmpx.ut_exit.e_exit" >&5
33568 echo $ECHO_N "checking for struct utmpx.ut_exit.e_exit... $ECHO_C" >&6; }
33569 if test "${ac_cv_member_struct_utmpx_ut_exit_e_exit+set}" = set; then
33570   echo $ECHO_N "(cached) $ECHO_C" >&6
33571 else
33572   cat >conftest.$ac_ext <<_ACEOF
33573 /* confdefs.h.  */
33574 _ACEOF
33575 cat confdefs.h >>conftest.$ac_ext
33576 cat >>conftest.$ac_ext <<_ACEOF
33577 /* end confdefs.h.  */
33578 $utmp_includes
33579
33580 int
33581 main ()
33582 {
33583 static struct utmpx ac_aggr;
33584 if (ac_aggr.ut_exit.e_exit)
33585 return 0;
33586   ;
33587   return 0;
33588 }
33589 _ACEOF
33590 rm -f conftest.$ac_objext
33591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33592   (eval $ac_compile) 2>conftest.er1
33593   ac_status=$?
33594   grep -v '^ *+' conftest.er1 >conftest.err
33595   rm -f conftest.er1
33596   cat conftest.err >&5
33597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33598   (exit $ac_status); } &&
33599          { ac_try='test -z "$ac_c_werror_flag"
33600                          || test ! -s conftest.err'
33601   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33602   (eval $ac_try) 2>&5
33603   ac_status=$?
33604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33605   (exit $ac_status); }; } &&
33606          { ac_try='test -s conftest.$ac_objext'
33607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33608   (eval $ac_try) 2>&5
33609   ac_status=$?
33610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33611   (exit $ac_status); }; }; then
33612   ac_cv_member_struct_utmpx_ut_exit_e_exit=yes
33613 else
33614   echo "$as_me: failed program was:" >&5
33615 sed 's/^/| /' conftest.$ac_ext >&5
33616
33617         cat >conftest.$ac_ext <<_ACEOF
33618 /* confdefs.h.  */
33619 _ACEOF
33620 cat confdefs.h >>conftest.$ac_ext
33621 cat >>conftest.$ac_ext <<_ACEOF
33622 /* end confdefs.h.  */
33623 $utmp_includes
33624
33625 int
33626 main ()
33627 {
33628 static struct utmpx ac_aggr;
33629 if (sizeof ac_aggr.ut_exit.e_exit)
33630 return 0;
33631   ;
33632   return 0;
33633 }
33634 _ACEOF
33635 rm -f conftest.$ac_objext
33636 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33637   (eval $ac_compile) 2>conftest.er1
33638   ac_status=$?
33639   grep -v '^ *+' conftest.er1 >conftest.err
33640   rm -f conftest.er1
33641   cat conftest.err >&5
33642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33643   (exit $ac_status); } &&
33644          { ac_try='test -z "$ac_c_werror_flag"
33645                          || test ! -s conftest.err'
33646   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33647   (eval $ac_try) 2>&5
33648   ac_status=$?
33649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33650   (exit $ac_status); }; } &&
33651          { ac_try='test -s conftest.$ac_objext'
33652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33653   (eval $ac_try) 2>&5
33654   ac_status=$?
33655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33656   (exit $ac_status); }; }; then
33657   ac_cv_member_struct_utmpx_ut_exit_e_exit=yes
33658 else
33659   echo "$as_me: failed program was:" >&5
33660 sed 's/^/| /' conftest.$ac_ext >&5
33661
33662         ac_cv_member_struct_utmpx_ut_exit_e_exit=no
33663 fi
33664
33665 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33666 fi
33667
33668 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33669 fi
33670 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_exit_e_exit" >&5
33671 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_exit_e_exit" >&6; }
33672 if test $ac_cv_member_struct_utmpx_ut_exit_e_exit = yes; then
33673
33674 cat >>confdefs.h <<_ACEOF
33675 #define HAVE_STRUCT_UTMPX_UT_EXIT_E_EXIT 1
33676 _ACEOF
33677
33678
33679 fi
33680
33681     { echo "$as_me:$LINENO: checking for struct utmp.ut_exit.e_exit" >&5
33682 echo $ECHO_N "checking for struct utmp.ut_exit.e_exit... $ECHO_C" >&6; }
33683 if test "${ac_cv_member_struct_utmp_ut_exit_e_exit+set}" = set; then
33684   echo $ECHO_N "(cached) $ECHO_C" >&6
33685 else
33686   cat >conftest.$ac_ext <<_ACEOF
33687 /* confdefs.h.  */
33688 _ACEOF
33689 cat confdefs.h >>conftest.$ac_ext
33690 cat >>conftest.$ac_ext <<_ACEOF
33691 /* end confdefs.h.  */
33692 $utmp_includes
33693
33694 int
33695 main ()
33696 {
33697 static struct utmp ac_aggr;
33698 if (ac_aggr.ut_exit.e_exit)
33699 return 0;
33700   ;
33701   return 0;
33702 }
33703 _ACEOF
33704 rm -f conftest.$ac_objext
33705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33706   (eval $ac_compile) 2>conftest.er1
33707   ac_status=$?
33708   grep -v '^ *+' conftest.er1 >conftest.err
33709   rm -f conftest.er1
33710   cat conftest.err >&5
33711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33712   (exit $ac_status); } &&
33713          { ac_try='test -z "$ac_c_werror_flag"
33714                          || test ! -s conftest.err'
33715   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33716   (eval $ac_try) 2>&5
33717   ac_status=$?
33718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33719   (exit $ac_status); }; } &&
33720          { ac_try='test -s conftest.$ac_objext'
33721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33722   (eval $ac_try) 2>&5
33723   ac_status=$?
33724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33725   (exit $ac_status); }; }; then
33726   ac_cv_member_struct_utmp_ut_exit_e_exit=yes
33727 else
33728   echo "$as_me: failed program was:" >&5
33729 sed 's/^/| /' conftest.$ac_ext >&5
33730
33731         cat >conftest.$ac_ext <<_ACEOF
33732 /* confdefs.h.  */
33733 _ACEOF
33734 cat confdefs.h >>conftest.$ac_ext
33735 cat >>conftest.$ac_ext <<_ACEOF
33736 /* end confdefs.h.  */
33737 $utmp_includes
33738
33739 int
33740 main ()
33741 {
33742 static struct utmp ac_aggr;
33743 if (sizeof ac_aggr.ut_exit.e_exit)
33744 return 0;
33745   ;
33746   return 0;
33747 }
33748 _ACEOF
33749 rm -f conftest.$ac_objext
33750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33751   (eval $ac_compile) 2>conftest.er1
33752   ac_status=$?
33753   grep -v '^ *+' conftest.er1 >conftest.err
33754   rm -f conftest.er1
33755   cat conftest.err >&5
33756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33757   (exit $ac_status); } &&
33758          { ac_try='test -z "$ac_c_werror_flag"
33759                          || test ! -s conftest.err'
33760   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33761   (eval $ac_try) 2>&5
33762   ac_status=$?
33763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33764   (exit $ac_status); }; } &&
33765          { ac_try='test -s conftest.$ac_objext'
33766   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33767   (eval $ac_try) 2>&5
33768   ac_status=$?
33769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33770   (exit $ac_status); }; }; then
33771   ac_cv_member_struct_utmp_ut_exit_e_exit=yes
33772 else
33773   echo "$as_me: failed program was:" >&5
33774 sed 's/^/| /' conftest.$ac_ext >&5
33775
33776         ac_cv_member_struct_utmp_ut_exit_e_exit=no
33777 fi
33778
33779 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33780 fi
33781
33782 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33783 fi
33784 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_exit_e_exit" >&5
33785 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_exit_e_exit" >&6; }
33786 if test $ac_cv_member_struct_utmp_ut_exit_e_exit = yes; then
33787
33788 cat >>confdefs.h <<_ACEOF
33789 #define HAVE_STRUCT_UTMP_UT_EXIT_E_EXIT 1
33790 _ACEOF
33791
33792
33793 fi
33794
33795
33796     { echo "$as_me:$LINENO: checking for struct utmpx.ut_exit.ut_termination" >&5
33797 echo $ECHO_N "checking for struct utmpx.ut_exit.ut_termination... $ECHO_C" >&6; }
33798 if test "${ac_cv_member_struct_utmpx_ut_exit_ut_termination+set}" = set; then
33799   echo $ECHO_N "(cached) $ECHO_C" >&6
33800 else
33801   cat >conftest.$ac_ext <<_ACEOF
33802 /* confdefs.h.  */
33803 _ACEOF
33804 cat confdefs.h >>conftest.$ac_ext
33805 cat >>conftest.$ac_ext <<_ACEOF
33806 /* end confdefs.h.  */
33807 $utmp_includes
33808
33809 int
33810 main ()
33811 {
33812 static struct utmpx ac_aggr;
33813 if (ac_aggr.ut_exit.ut_termination)
33814 return 0;
33815   ;
33816   return 0;
33817 }
33818 _ACEOF
33819 rm -f conftest.$ac_objext
33820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33821   (eval $ac_compile) 2>conftest.er1
33822   ac_status=$?
33823   grep -v '^ *+' conftest.er1 >conftest.err
33824   rm -f conftest.er1
33825   cat conftest.err >&5
33826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33827   (exit $ac_status); } &&
33828          { ac_try='test -z "$ac_c_werror_flag"
33829                          || test ! -s conftest.err'
33830   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33831   (eval $ac_try) 2>&5
33832   ac_status=$?
33833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33834   (exit $ac_status); }; } &&
33835          { ac_try='test -s conftest.$ac_objext'
33836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33837   (eval $ac_try) 2>&5
33838   ac_status=$?
33839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33840   (exit $ac_status); }; }; then
33841   ac_cv_member_struct_utmpx_ut_exit_ut_termination=yes
33842 else
33843   echo "$as_me: failed program was:" >&5
33844 sed 's/^/| /' conftest.$ac_ext >&5
33845
33846         cat >conftest.$ac_ext <<_ACEOF
33847 /* confdefs.h.  */
33848 _ACEOF
33849 cat confdefs.h >>conftest.$ac_ext
33850 cat >>conftest.$ac_ext <<_ACEOF
33851 /* end confdefs.h.  */
33852 $utmp_includes
33853
33854 int
33855 main ()
33856 {
33857 static struct utmpx ac_aggr;
33858 if (sizeof ac_aggr.ut_exit.ut_termination)
33859 return 0;
33860   ;
33861   return 0;
33862 }
33863 _ACEOF
33864 rm -f conftest.$ac_objext
33865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33866   (eval $ac_compile) 2>conftest.er1
33867   ac_status=$?
33868   grep -v '^ *+' conftest.er1 >conftest.err
33869   rm -f conftest.er1
33870   cat conftest.err >&5
33871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33872   (exit $ac_status); } &&
33873          { ac_try='test -z "$ac_c_werror_flag"
33874                          || test ! -s conftest.err'
33875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33876   (eval $ac_try) 2>&5
33877   ac_status=$?
33878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33879   (exit $ac_status); }; } &&
33880          { ac_try='test -s conftest.$ac_objext'
33881   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33882   (eval $ac_try) 2>&5
33883   ac_status=$?
33884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33885   (exit $ac_status); }; }; then
33886   ac_cv_member_struct_utmpx_ut_exit_ut_termination=yes
33887 else
33888   echo "$as_me: failed program was:" >&5
33889 sed 's/^/| /' conftest.$ac_ext >&5
33890
33891         ac_cv_member_struct_utmpx_ut_exit_ut_termination=no
33892 fi
33893
33894 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33895 fi
33896
33897 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33898 fi
33899 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_exit_ut_termination" >&5
33900 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_exit_ut_termination" >&6; }
33901 if test $ac_cv_member_struct_utmpx_ut_exit_ut_termination = yes; then
33902
33903 cat >>confdefs.h <<_ACEOF
33904 #define HAVE_STRUCT_UTMPX_UT_EXIT_UT_TERMINATION 1
33905 _ACEOF
33906
33907
33908 fi
33909
33910     { echo "$as_me:$LINENO: checking for struct utmp.ut_exit.ut_termination" >&5
33911 echo $ECHO_N "checking for struct utmp.ut_exit.ut_termination... $ECHO_C" >&6; }
33912 if test "${ac_cv_member_struct_utmp_ut_exit_ut_termination+set}" = set; then
33913   echo $ECHO_N "(cached) $ECHO_C" >&6
33914 else
33915   cat >conftest.$ac_ext <<_ACEOF
33916 /* confdefs.h.  */
33917 _ACEOF
33918 cat confdefs.h >>conftest.$ac_ext
33919 cat >>conftest.$ac_ext <<_ACEOF
33920 /* end confdefs.h.  */
33921 $utmp_includes
33922
33923 int
33924 main ()
33925 {
33926 static struct utmp ac_aggr;
33927 if (ac_aggr.ut_exit.ut_termination)
33928 return 0;
33929   ;
33930   return 0;
33931 }
33932 _ACEOF
33933 rm -f conftest.$ac_objext
33934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33935   (eval $ac_compile) 2>conftest.er1
33936   ac_status=$?
33937   grep -v '^ *+' conftest.er1 >conftest.err
33938   rm -f conftest.er1
33939   cat conftest.err >&5
33940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33941   (exit $ac_status); } &&
33942          { ac_try='test -z "$ac_c_werror_flag"
33943                          || test ! -s conftest.err'
33944   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33945   (eval $ac_try) 2>&5
33946   ac_status=$?
33947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33948   (exit $ac_status); }; } &&
33949          { ac_try='test -s conftest.$ac_objext'
33950   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33951   (eval $ac_try) 2>&5
33952   ac_status=$?
33953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33954   (exit $ac_status); }; }; then
33955   ac_cv_member_struct_utmp_ut_exit_ut_termination=yes
33956 else
33957   echo "$as_me: failed program was:" >&5
33958 sed 's/^/| /' conftest.$ac_ext >&5
33959
33960         cat >conftest.$ac_ext <<_ACEOF
33961 /* confdefs.h.  */
33962 _ACEOF
33963 cat confdefs.h >>conftest.$ac_ext
33964 cat >>conftest.$ac_ext <<_ACEOF
33965 /* end confdefs.h.  */
33966 $utmp_includes
33967
33968 int
33969 main ()
33970 {
33971 static struct utmp ac_aggr;
33972 if (sizeof ac_aggr.ut_exit.ut_termination)
33973 return 0;
33974   ;
33975   return 0;
33976 }
33977 _ACEOF
33978 rm -f conftest.$ac_objext
33979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33980   (eval $ac_compile) 2>conftest.er1
33981   ac_status=$?
33982   grep -v '^ *+' conftest.er1 >conftest.err
33983   rm -f conftest.er1
33984   cat conftest.err >&5
33985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33986   (exit $ac_status); } &&
33987          { ac_try='test -z "$ac_c_werror_flag"
33988                          || test ! -s conftest.err'
33989   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33990   (eval $ac_try) 2>&5
33991   ac_status=$?
33992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33993   (exit $ac_status); }; } &&
33994          { ac_try='test -s conftest.$ac_objext'
33995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33996   (eval $ac_try) 2>&5
33997   ac_status=$?
33998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33999   (exit $ac_status); }; }; then
34000   ac_cv_member_struct_utmp_ut_exit_ut_termination=yes
34001 else
34002   echo "$as_me: failed program was:" >&5
34003 sed 's/^/| /' conftest.$ac_ext >&5
34004
34005         ac_cv_member_struct_utmp_ut_exit_ut_termination=no
34006 fi
34007
34008 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34009 fi
34010
34011 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34012 fi
34013 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_exit_ut_termination" >&5
34014 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_exit_ut_termination" >&6; }
34015 if test $ac_cv_member_struct_utmp_ut_exit_ut_termination = yes; then
34016
34017 cat >>confdefs.h <<_ACEOF
34018 #define HAVE_STRUCT_UTMP_UT_EXIT_UT_TERMINATION 1
34019 _ACEOF
34020
34021
34022 fi
34023
34024     { echo "$as_me:$LINENO: checking for struct utmpx.ut_exit.e_termination" >&5
34025 echo $ECHO_N "checking for struct utmpx.ut_exit.e_termination... $ECHO_C" >&6; }
34026 if test "${ac_cv_member_struct_utmpx_ut_exit_e_termination+set}" = set; then
34027   echo $ECHO_N "(cached) $ECHO_C" >&6
34028 else
34029   cat >conftest.$ac_ext <<_ACEOF
34030 /* confdefs.h.  */
34031 _ACEOF
34032 cat confdefs.h >>conftest.$ac_ext
34033 cat >>conftest.$ac_ext <<_ACEOF
34034 /* end confdefs.h.  */
34035 $utmp_includes
34036
34037 int
34038 main ()
34039 {
34040 static struct utmpx ac_aggr;
34041 if (ac_aggr.ut_exit.e_termination)
34042 return 0;
34043   ;
34044   return 0;
34045 }
34046 _ACEOF
34047 rm -f conftest.$ac_objext
34048 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34049   (eval $ac_compile) 2>conftest.er1
34050   ac_status=$?
34051   grep -v '^ *+' conftest.er1 >conftest.err
34052   rm -f conftest.er1
34053   cat conftest.err >&5
34054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34055   (exit $ac_status); } &&
34056          { ac_try='test -z "$ac_c_werror_flag"
34057                          || test ! -s conftest.err'
34058   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34059   (eval $ac_try) 2>&5
34060   ac_status=$?
34061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34062   (exit $ac_status); }; } &&
34063          { ac_try='test -s conftest.$ac_objext'
34064   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34065   (eval $ac_try) 2>&5
34066   ac_status=$?
34067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34068   (exit $ac_status); }; }; then
34069   ac_cv_member_struct_utmpx_ut_exit_e_termination=yes
34070 else
34071   echo "$as_me: failed program was:" >&5
34072 sed 's/^/| /' conftest.$ac_ext >&5
34073
34074         cat >conftest.$ac_ext <<_ACEOF
34075 /* confdefs.h.  */
34076 _ACEOF
34077 cat confdefs.h >>conftest.$ac_ext
34078 cat >>conftest.$ac_ext <<_ACEOF
34079 /* end confdefs.h.  */
34080 $utmp_includes
34081
34082 int
34083 main ()
34084 {
34085 static struct utmpx ac_aggr;
34086 if (sizeof ac_aggr.ut_exit.e_termination)
34087 return 0;
34088   ;
34089   return 0;
34090 }
34091 _ACEOF
34092 rm -f conftest.$ac_objext
34093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34094   (eval $ac_compile) 2>conftest.er1
34095   ac_status=$?
34096   grep -v '^ *+' conftest.er1 >conftest.err
34097   rm -f conftest.er1
34098   cat conftest.err >&5
34099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34100   (exit $ac_status); } &&
34101          { ac_try='test -z "$ac_c_werror_flag"
34102                          || test ! -s conftest.err'
34103   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34104   (eval $ac_try) 2>&5
34105   ac_status=$?
34106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34107   (exit $ac_status); }; } &&
34108          { ac_try='test -s conftest.$ac_objext'
34109   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34110   (eval $ac_try) 2>&5
34111   ac_status=$?
34112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34113   (exit $ac_status); }; }; then
34114   ac_cv_member_struct_utmpx_ut_exit_e_termination=yes
34115 else
34116   echo "$as_me: failed program was:" >&5
34117 sed 's/^/| /' conftest.$ac_ext >&5
34118
34119         ac_cv_member_struct_utmpx_ut_exit_e_termination=no
34120 fi
34121
34122 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34123 fi
34124
34125 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34126 fi
34127 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_exit_e_termination" >&5
34128 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_exit_e_termination" >&6; }
34129 if test $ac_cv_member_struct_utmpx_ut_exit_e_termination = yes; then
34130
34131 cat >>confdefs.h <<_ACEOF
34132 #define HAVE_STRUCT_UTMPX_UT_EXIT_E_TERMINATION 1
34133 _ACEOF
34134
34135
34136 fi
34137
34138     { echo "$as_me:$LINENO: checking for struct utmp.ut_exit.e_termination" >&5
34139 echo $ECHO_N "checking for struct utmp.ut_exit.e_termination... $ECHO_C" >&6; }
34140 if test "${ac_cv_member_struct_utmp_ut_exit_e_termination+set}" = set; then
34141   echo $ECHO_N "(cached) $ECHO_C" >&6
34142 else
34143   cat >conftest.$ac_ext <<_ACEOF
34144 /* confdefs.h.  */
34145 _ACEOF
34146 cat confdefs.h >>conftest.$ac_ext
34147 cat >>conftest.$ac_ext <<_ACEOF
34148 /* end confdefs.h.  */
34149 $utmp_includes
34150
34151 int
34152 main ()
34153 {
34154 static struct utmp ac_aggr;
34155 if (ac_aggr.ut_exit.e_termination)
34156 return 0;
34157   ;
34158   return 0;
34159 }
34160 _ACEOF
34161 rm -f conftest.$ac_objext
34162 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34163   (eval $ac_compile) 2>conftest.er1
34164   ac_status=$?
34165   grep -v '^ *+' conftest.er1 >conftest.err
34166   rm -f conftest.er1
34167   cat conftest.err >&5
34168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34169   (exit $ac_status); } &&
34170          { ac_try='test -z "$ac_c_werror_flag"
34171                          || test ! -s conftest.err'
34172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34173   (eval $ac_try) 2>&5
34174   ac_status=$?
34175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34176   (exit $ac_status); }; } &&
34177          { ac_try='test -s conftest.$ac_objext'
34178   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34179   (eval $ac_try) 2>&5
34180   ac_status=$?
34181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34182   (exit $ac_status); }; }; then
34183   ac_cv_member_struct_utmp_ut_exit_e_termination=yes
34184 else
34185   echo "$as_me: failed program was:" >&5
34186 sed 's/^/| /' conftest.$ac_ext >&5
34187
34188         cat >conftest.$ac_ext <<_ACEOF
34189 /* confdefs.h.  */
34190 _ACEOF
34191 cat confdefs.h >>conftest.$ac_ext
34192 cat >>conftest.$ac_ext <<_ACEOF
34193 /* end confdefs.h.  */
34194 $utmp_includes
34195
34196 int
34197 main ()
34198 {
34199 static struct utmp ac_aggr;
34200 if (sizeof ac_aggr.ut_exit.e_termination)
34201 return 0;
34202   ;
34203   return 0;
34204 }
34205 _ACEOF
34206 rm -f conftest.$ac_objext
34207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34208   (eval $ac_compile) 2>conftest.er1
34209   ac_status=$?
34210   grep -v '^ *+' conftest.er1 >conftest.err
34211   rm -f conftest.er1
34212   cat conftest.err >&5
34213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34214   (exit $ac_status); } &&
34215          { ac_try='test -z "$ac_c_werror_flag"
34216                          || test ! -s conftest.err'
34217   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&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   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34224   (eval $ac_try) 2>&5
34225   ac_status=$?
34226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34227   (exit $ac_status); }; }; then
34228   ac_cv_member_struct_utmp_ut_exit_e_termination=yes
34229 else
34230   echo "$as_me: failed program was:" >&5
34231 sed 's/^/| /' conftest.$ac_ext >&5
34232
34233         ac_cv_member_struct_utmp_ut_exit_e_termination=no
34234 fi
34235
34236 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34237 fi
34238
34239 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34240 fi
34241 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_exit_e_termination" >&5
34242 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_exit_e_termination" >&6; }
34243 if test $ac_cv_member_struct_utmp_ut_exit_e_termination = yes; then
34244
34245 cat >>confdefs.h <<_ACEOF
34246 #define HAVE_STRUCT_UTMP_UT_EXIT_E_TERMINATION 1
34247 _ACEOF
34248
34249
34250 fi
34251
34252   fi
34253
34254
34255
34256
34257
34258
34259
34260
34261
34262
34263
34264
34265
34266
34267
34268
34269
34270
34271
34272
34273
34274
34275
34276
34277
34278
34279
34280
34281
34282
34283
34284
34285
34286
34287
34288 # Check whether --with-included-regex was given.
34289 if test "${with_included_regex+set}" = set; then
34290   withval=$with_included_regex;
34291 fi
34292
34293
34294   case $with_included_regex in #(
34295   yes|no) ac_use_included_regex=$with_included_regex
34296         ;;
34297   '')
34298     # If the system regex support is good enough that it passes the the
34299     # following run test, then default to *not* using the included regex.c.
34300     # If cross compiling, assume the test would fail and use the included
34301     # regex.c.  The first failing regular expression is from `Spencer ere
34302     # test #75' in grep-2.3.
34303     { echo "$as_me:$LINENO: checking for working re_compile_pattern" >&5
34304 echo $ECHO_N "checking for working re_compile_pattern... $ECHO_C" >&6; }
34305 if test "${gl_cv_func_re_compile_pattern_working+set}" = set; then
34306   echo $ECHO_N "(cached) $ECHO_C" >&6
34307 else
34308   if test "$cross_compiling" = yes; then
34309          gl_cv_func_re_compile_pattern_working=no
34310 else
34311   cat >conftest.$ac_ext <<_ACEOF
34312 /* confdefs.h.  */
34313 _ACEOF
34314 cat confdefs.h >>conftest.$ac_ext
34315 cat >>conftest.$ac_ext <<_ACEOF
34316 /* end confdefs.h.  */
34317 $ac_includes_default
34318            #include <limits.h>
34319            #include <regex.h>
34320
34321 int
34322 main ()
34323 {
34324 static struct re_pattern_buffer regex;
34325             unsigned char folded_chars[UCHAR_MAX + 1];
34326             int i;
34327             const char *s;
34328             struct re_registers regs;
34329             re_set_syntax (RE_SYNTAX_POSIX_EGREP);
34330             memset (&regex, 0, sizeof (regex));
34331             for (i = 0; i <= UCHAR_MAX; i++)
34332               folded_chars[i] = i;
34333             regex.translate = folded_chars;
34334             s = re_compile_pattern ("a[[:]:]]b\n", 11, &regex);
34335             /* This should fail with _Invalid character class name_ error.  */
34336             if (!s)
34337               exit (1);
34338
34339             /* This should succeed, but does not for e.g. glibc-2.1.3.  */
34340             memset (&regex, 0, sizeof (regex));
34341             s = re_compile_pattern ("{1", 2, &regex);
34342
34343             if (s)
34344               exit (1);
34345
34346             /* The following example is derived from a problem report
34347                against gawk from Jorge Stolfi <stolfi@ic.unicamp.br>.  */
34348             memset (&regex, 0, sizeof (regex));
34349             s = re_compile_pattern ("[an\371]*n", 7, &regex);
34350             if (s)
34351               exit (1);
34352
34353             /* This should match, but does not for e.g. glibc-2.2.1.  */
34354             if (re_match (&regex, "an", 2, 0, &regs) != 2)
34355               exit (1);
34356
34357             memset (&regex, 0, sizeof (regex));
34358             s = re_compile_pattern ("x", 1, &regex);
34359             if (s)
34360               exit (1);
34361
34362             /* The version of regex.c in e.g. GNU libc-2.2.93 did not
34363                work with a negative RANGE argument.  */
34364             if (re_search (&regex, "wxy", 3, 2, -2, &regs) != 1)
34365               exit (1);
34366
34367             /* The version of regex.c in older versions of gnulib
34368                ignored RE_ICASE.  Detect that problem too.  */
34369             memset (&regex, 0, sizeof (regex));
34370             re_set_syntax (RE_SYNTAX_EMACS | RE_ICASE);
34371             s = re_compile_pattern ("x", 1, &regex);
34372             if (s)
34373               exit (1);
34374
34375             if (re_search (&regex, "WXY", 3, 0, 3, &regs) < 0)
34376               exit (1);
34377
34378             /* REG_STARTEND was added to glibc on 2004-01-15.
34379                Reject older versions.  */
34380             if (! REG_STARTEND)
34381               exit (1);
34382
34383             /* Reject hosts whose regoff_t values are too narrow.
34384                These include glibc 2.3.5 on hosts with 64-bit ptrdiff_t
34385                and 32-bit int.  */
34386             if (sizeof (regoff_t) < sizeof (ptrdiff_t)
34387                 || sizeof (regoff_t) < sizeof (ssize_t))
34388               exit (1);
34389
34390             exit (0);
34391   ;
34392   return 0;
34393 }
34394 _ACEOF
34395 rm -f conftest$ac_exeext
34396 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34397   (eval $ac_link) 2>&5
34398   ac_status=$?
34399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34400   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34401   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34402   (eval $ac_try) 2>&5
34403   ac_status=$?
34404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34405   (exit $ac_status); }; }; then
34406   gl_cv_func_re_compile_pattern_working=yes
34407 else
34408   echo "$as_me: program exited with status $ac_status" >&5
34409 echo "$as_me: failed program was:" >&5
34410 sed 's/^/| /' conftest.$ac_ext >&5
34411
34412 ( exit $ac_status )
34413 gl_cv_func_re_compile_pattern_working=no
34414 fi
34415 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34416 fi
34417
34418
34419 fi
34420 { echo "$as_me:$LINENO: result: $gl_cv_func_re_compile_pattern_working" >&5
34421 echo "${ECHO_T}$gl_cv_func_re_compile_pattern_working" >&6; }
34422     case $gl_cv_func_re_compile_pattern_working in #(
34423     yes) ac_use_included_regex=no;; #(
34424     no) ac_use_included_regex=yes;;
34425     esac
34426     ;;
34427   *) { { echo "$as_me:$LINENO: error: Invalid value for --with-included-regex: $with_included_regex" >&5
34428 echo "$as_me: error: Invalid value for --with-included-regex: $with_included_regex" >&2;}
34429    { (exit 1); exit 1; }; }
34430     ;;
34431   esac
34432
34433   if test $ac_use_included_regex = yes; then
34434
34435 cat >>confdefs.h <<\_ACEOF
34436 #define _REGEX_LARGE_OFFSETS 1
34437 _ACEOF
34438
34439
34440 cat >>confdefs.h <<\_ACEOF
34441 #define re_syntax_options rpl_re_syntax_options
34442 _ACEOF
34443
34444
34445 cat >>confdefs.h <<\_ACEOF
34446 #define re_set_syntax rpl_re_set_syntax
34447 _ACEOF
34448
34449
34450 cat >>confdefs.h <<\_ACEOF
34451 #define re_compile_pattern rpl_re_compile_pattern
34452 _ACEOF
34453
34454
34455 cat >>confdefs.h <<\_ACEOF
34456 #define re_compile_fastmap rpl_re_compile_fastmap
34457 _ACEOF
34458
34459
34460 cat >>confdefs.h <<\_ACEOF
34461 #define re_search rpl_re_search
34462 _ACEOF
34463
34464
34465 cat >>confdefs.h <<\_ACEOF
34466 #define re_search_2 rpl_re_search_2
34467 _ACEOF
34468
34469
34470 cat >>confdefs.h <<\_ACEOF
34471 #define re_match rpl_re_match
34472 _ACEOF
34473
34474
34475 cat >>confdefs.h <<\_ACEOF
34476 #define re_match_2 rpl_re_match_2
34477 _ACEOF
34478
34479
34480 cat >>confdefs.h <<\_ACEOF
34481 #define re_set_registers rpl_re_set_registers
34482 _ACEOF
34483
34484
34485 cat >>confdefs.h <<\_ACEOF
34486 #define re_comp rpl_re_comp
34487 _ACEOF
34488
34489
34490 cat >>confdefs.h <<\_ACEOF
34491 #define re_exec rpl_re_exec
34492 _ACEOF
34493
34494
34495 cat >>confdefs.h <<\_ACEOF
34496 #define regcomp rpl_regcomp
34497 _ACEOF
34498
34499
34500 cat >>confdefs.h <<\_ACEOF
34501 #define regexec rpl_regexec
34502 _ACEOF
34503
34504
34505 cat >>confdefs.h <<\_ACEOF
34506 #define regerror rpl_regerror
34507 _ACEOF
34508
34509
34510 cat >>confdefs.h <<\_ACEOF
34511 #define regfree rpl_regfree
34512 _ACEOF
34513
34514     case " $LIBOBJS " in
34515   *" regex.$ac_objext "* ) ;;
34516   *) LIBOBJS="$LIBOBJS regex.$ac_objext"
34517  ;;
34518 esac
34519
34520
34521
34522
34523
34524
34525   :
34526
34527
34528
34529
34530
34531
34532
34533
34534
34535
34536
34537
34538   :
34539
34540
34541
34542
34543
34544
34545
34546
34547
34548
34549
34550
34551
34552
34553
34554
34555
34556
34557   fi
34558
34559
34560
34561   case " $LIBOBJS " in
34562   *" safe-read.$ac_objext "* ) ;;
34563   *) LIBOBJS="$LIBOBJS safe-read.$ac_objext"
34564  ;;
34565 esac
34566
34567
34568
34569
34570
34571
34572
34573
34574   case " $LIBOBJS " in
34575   *" safe-write.$ac_objext "* ) ;;
34576   *) LIBOBJS="$LIBOBJS safe-write.$ac_objext"
34577  ;;
34578 esac
34579
34580
34581
34582
34583
34584
34585
34586
34587
34588
34589   case " $LIBOBJS " in
34590   *" same.$ac_objext "* ) ;;
34591   *) LIBOBJS="$LIBOBJS same.$ac_objext"
34592  ;;
34593 esac
34594
34595
34596
34597
34598   :
34599
34600
34601
34602
34603
34604
34605 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
34606 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
34607 if test "${ac_cv_func_closedir_void+set}" = set; then
34608   echo $ECHO_N "(cached) $ECHO_C" >&6
34609 else
34610   if test "$cross_compiling" = yes; then
34611   ac_cv_func_closedir_void=yes
34612 else
34613   cat >conftest.$ac_ext <<_ACEOF
34614 /* confdefs.h.  */
34615 _ACEOF
34616 cat confdefs.h >>conftest.$ac_ext
34617 cat >>conftest.$ac_ext <<_ACEOF
34618 /* end confdefs.h.  */
34619 $ac_includes_default
34620 #include <$ac_header_dirent>
34621 #ifndef __cplusplus
34622 int closedir ();
34623 #endif
34624
34625 int
34626 main ()
34627 {
34628 return closedir (opendir (".")) != 0;
34629   ;
34630   return 0;
34631 }
34632 _ACEOF
34633 rm -f conftest$ac_exeext
34634 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34635   (eval $ac_link) 2>&5
34636   ac_status=$?
34637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34638   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34639   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34640   (eval $ac_try) 2>&5
34641   ac_status=$?
34642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34643   (exit $ac_status); }; }; then
34644   ac_cv_func_closedir_void=no
34645 else
34646   echo "$as_me: program exited with status $ac_status" >&5
34647 echo "$as_me: failed program was:" >&5
34648 sed 's/^/| /' conftest.$ac_ext >&5
34649
34650 ( exit $ac_status )
34651 ac_cv_func_closedir_void=yes
34652 fi
34653 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34654 fi
34655
34656
34657 fi
34658 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
34659 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
34660 if test $ac_cv_func_closedir_void = yes; then
34661
34662 cat >>confdefs.h <<\_ACEOF
34663 #define CLOSEDIR_VOID 1
34664 _ACEOF
34665
34666 fi
34667
34668
34669
34670   case " $LIBOBJS " in
34671   *" savedir.$ac_objext "* ) ;;
34672   *) LIBOBJS="$LIBOBJS savedir.$ac_objext"
34673  ;;
34674 esac
34675
34676
34677
34678
34679
34680
34681
34682
34683
34684
34685
34686
34687
34688   case " $LIBOBJS " in
34689   *" save-cwd.$ac_objext "* ) ;;
34690   *) LIBOBJS="$LIBOBJS save-cwd.$ac_objext"
34691  ;;
34692 esac
34693
34694
34695   :
34696
34697
34698
34699
34700
34701
34702
34703
34704
34705
34706
34707
34708
34709
34710
34711
34712
34713
34714
34715
34716   case " $LIBOBJS " in
34717   *" settime.$ac_objext "* ) ;;
34718   *) LIBOBJS="$LIBOBJS settime.$ac_objext"
34719  ;;
34720 esac
34721
34722
34723
34724
34725
34726   :
34727
34728
34729
34730
34731
34732
34733
34734
34735
34736
34737
34738   case " $LIBOBJS " in
34739   *" sha1.$ac_objext "* ) ;;
34740   *) LIBOBJS="$LIBOBJS sha1.$ac_objext"
34741  ;;
34742 esac
34743
34744
34745
34746   :
34747
34748
34749
34750   case " $LIBOBJS " in
34751   *" sha256.$ac_objext "* ) ;;
34752   *) LIBOBJS="$LIBOBJS sha256.$ac_objext"
34753  ;;
34754 esac
34755
34756
34757
34758   :
34759
34760
34761
34762   case " $LIBOBJS " in
34763   *" sha512.$ac_objext "* ) ;;
34764   *) LIBOBJS="$LIBOBJS sha512.$ac_objext"
34765  ;;
34766 esac
34767
34768
34769
34770   :
34771
34772 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
34773 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
34774 if test "${ac_cv_header_stat_broken+set}" = set; then
34775   echo $ECHO_N "(cached) $ECHO_C" >&6
34776 else
34777   cat >conftest.$ac_ext <<_ACEOF
34778 /* confdefs.h.  */
34779 _ACEOF
34780 cat confdefs.h >>conftest.$ac_ext
34781 cat >>conftest.$ac_ext <<_ACEOF
34782 /* end confdefs.h.  */
34783 #include <sys/types.h>
34784 #include <sys/stat.h>
34785
34786 #if defined S_ISBLK && defined S_IFDIR
34787 # if S_ISBLK (S_IFDIR)
34788 You lose.
34789 # endif
34790 #endif
34791
34792 #if defined S_ISBLK && defined S_IFCHR
34793 # if S_ISBLK (S_IFCHR)
34794 You lose.
34795 # endif
34796 #endif
34797
34798 #if defined S_ISLNK && defined S_IFREG
34799 # if S_ISLNK (S_IFREG)
34800 You lose.
34801 # endif
34802 #endif
34803
34804 #if defined S_ISSOCK && defined S_IFREG
34805 # if S_ISSOCK (S_IFREG)
34806 You lose.
34807 # endif
34808 #endif
34809
34810 _ACEOF
34811 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34812   $EGREP "You lose" >/dev/null 2>&1; then
34813   ac_cv_header_stat_broken=yes
34814 else
34815   ac_cv_header_stat_broken=no
34816 fi
34817 rm -f conftest*
34818
34819 fi
34820 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
34821 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
34822 if test $ac_cv_header_stat_broken = yes; then
34823
34824 cat >>confdefs.h <<\_ACEOF
34825 #define STAT_MACROS_BROKEN 1
34826 _ACEOF
34827
34828 fi
34829
34830
34831
34832
34833
34834
34835
34836
34837
34838
34839
34840
34841   { echo "$as_me:$LINENO: checking for struct stat.st_atim.tv_nsec" >&5
34842 echo $ECHO_N "checking for struct stat.st_atim.tv_nsec... $ECHO_C" >&6; }
34843 if test "${ac_cv_member_struct_stat_st_atim_tv_nsec+set}" = set; then
34844   echo $ECHO_N "(cached) $ECHO_C" >&6
34845 else
34846   cat >conftest.$ac_ext <<_ACEOF
34847 /* confdefs.h.  */
34848 _ACEOF
34849 cat confdefs.h >>conftest.$ac_ext
34850 cat >>conftest.$ac_ext <<_ACEOF
34851 /* end confdefs.h.  */
34852 #include <sys/types.h>
34853      #include <sys/stat.h>
34854
34855 int
34856 main ()
34857 {
34858 static struct stat ac_aggr;
34859 if (ac_aggr.st_atim.tv_nsec)
34860 return 0;
34861   ;
34862   return 0;
34863 }
34864 _ACEOF
34865 rm -f conftest.$ac_objext
34866 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34867   (eval $ac_compile) 2>conftest.er1
34868   ac_status=$?
34869   grep -v '^ *+' conftest.er1 >conftest.err
34870   rm -f conftest.er1
34871   cat conftest.err >&5
34872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34873   (exit $ac_status); } &&
34874          { ac_try='test -z "$ac_c_werror_flag"
34875                          || test ! -s conftest.err'
34876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34877   (eval $ac_try) 2>&5
34878   ac_status=$?
34879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34880   (exit $ac_status); }; } &&
34881          { ac_try='test -s conftest.$ac_objext'
34882   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34883   (eval $ac_try) 2>&5
34884   ac_status=$?
34885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34886   (exit $ac_status); }; }; then
34887   ac_cv_member_struct_stat_st_atim_tv_nsec=yes
34888 else
34889   echo "$as_me: failed program was:" >&5
34890 sed 's/^/| /' conftest.$ac_ext >&5
34891
34892         cat >conftest.$ac_ext <<_ACEOF
34893 /* confdefs.h.  */
34894 _ACEOF
34895 cat confdefs.h >>conftest.$ac_ext
34896 cat >>conftest.$ac_ext <<_ACEOF
34897 /* end confdefs.h.  */
34898 #include <sys/types.h>
34899      #include <sys/stat.h>
34900
34901 int
34902 main ()
34903 {
34904 static struct stat ac_aggr;
34905 if (sizeof ac_aggr.st_atim.tv_nsec)
34906 return 0;
34907   ;
34908   return 0;
34909 }
34910 _ACEOF
34911 rm -f conftest.$ac_objext
34912 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34913   (eval $ac_compile) 2>conftest.er1
34914   ac_status=$?
34915   grep -v '^ *+' conftest.er1 >conftest.err
34916   rm -f conftest.er1
34917   cat conftest.err >&5
34918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34919   (exit $ac_status); } &&
34920          { ac_try='test -z "$ac_c_werror_flag"
34921                          || test ! -s conftest.err'
34922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34923   (eval $ac_try) 2>&5
34924   ac_status=$?
34925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34926   (exit $ac_status); }; } &&
34927          { ac_try='test -s conftest.$ac_objext'
34928   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34929   (eval $ac_try) 2>&5
34930   ac_status=$?
34931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34932   (exit $ac_status); }; }; then
34933   ac_cv_member_struct_stat_st_atim_tv_nsec=yes
34934 else
34935   echo "$as_me: failed program was:" >&5
34936 sed 's/^/| /' conftest.$ac_ext >&5
34937
34938         ac_cv_member_struct_stat_st_atim_tv_nsec=no
34939 fi
34940
34941 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34942 fi
34943
34944 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34945 fi
34946 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_atim_tv_nsec" >&5
34947 echo "${ECHO_T}$ac_cv_member_struct_stat_st_atim_tv_nsec" >&6; }
34948 if test $ac_cv_member_struct_stat_st_atim_tv_nsec = yes; then
34949
34950 cat >>confdefs.h <<_ACEOF
34951 #define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1
34952 _ACEOF
34953
34954 { echo "$as_me:$LINENO: checking whether struct stat.st_atim is of type struct timespec" >&5
34955 echo $ECHO_N "checking whether struct stat.st_atim is of type struct timespec... $ECHO_C" >&6; }
34956 if test "${ac_cv_typeof_struct_stat_st_atim_is_struct_timespec+set}" = set; then
34957   echo $ECHO_N "(cached) $ECHO_C" >&6
34958 else
34959   cat >conftest.$ac_ext <<_ACEOF
34960 /* confdefs.h.  */
34961 _ACEOF
34962 cat confdefs.h >>conftest.$ac_ext
34963 cat >>conftest.$ac_ext <<_ACEOF
34964 /* end confdefs.h.  */
34965
34966             #include <sys/types.h>
34967             #if TIME_WITH_SYS_TIME
34968             # include <sys/time.h>
34969             # include <time.h>
34970             #else
34971             # if HAVE_SYS_TIME_H
34972             #  include <sys/time.h>
34973             # else
34974             #  include <time.h>
34975             # endif
34976             #endif
34977             #include <sys/stat.h>
34978             struct timespec ts;
34979             struct stat st;
34980
34981 int
34982 main ()
34983 {
34984
34985             st.st_atim = ts;
34986
34987   ;
34988   return 0;
34989 }
34990 _ACEOF
34991 rm -f conftest.$ac_objext
34992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34993   (eval $ac_compile) 2>conftest.er1
34994   ac_status=$?
34995   grep -v '^ *+' conftest.er1 >conftest.err
34996   rm -f conftest.er1
34997   cat conftest.err >&5
34998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34999   (exit $ac_status); } &&
35000          { ac_try='test -z "$ac_c_werror_flag"
35001                          || test ! -s conftest.err'
35002   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35003   (eval $ac_try) 2>&5
35004   ac_status=$?
35005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35006   (exit $ac_status); }; } &&
35007          { ac_try='test -s conftest.$ac_objext'
35008   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35009   (eval $ac_try) 2>&5
35010   ac_status=$?
35011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35012   (exit $ac_status); }; }; then
35013   ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=yes
35014 else
35015   echo "$as_me: failed program was:" >&5
35016 sed 's/^/| /' conftest.$ac_ext >&5
35017
35018         ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=no
35019 fi
35020
35021 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35022 fi
35023 { echo "$as_me:$LINENO: result: $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&5
35024 echo "${ECHO_T}$ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&6; }
35025      if test $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec = yes; then
35026
35027 cat >>confdefs.h <<\_ACEOF
35028 #define TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC 1
35029 _ACEOF
35030
35031      fi
35032 else
35033   { echo "$as_me:$LINENO: checking for struct stat.st_atimespec.tv_nsec" >&5
35034 echo $ECHO_N "checking for struct stat.st_atimespec.tv_nsec... $ECHO_C" >&6; }
35035 if test "${ac_cv_member_struct_stat_st_atimespec_tv_nsec+set}" = set; then
35036   echo $ECHO_N "(cached) $ECHO_C" >&6
35037 else
35038   cat >conftest.$ac_ext <<_ACEOF
35039 /* confdefs.h.  */
35040 _ACEOF
35041 cat confdefs.h >>conftest.$ac_ext
35042 cat >>conftest.$ac_ext <<_ACEOF
35043 /* end confdefs.h.  */
35044 #include <sys/types.h>
35045         #include <sys/stat.h>
35046
35047 int
35048 main ()
35049 {
35050 static struct stat ac_aggr;
35051 if (ac_aggr.st_atimespec.tv_nsec)
35052 return 0;
35053   ;
35054   return 0;
35055 }
35056 _ACEOF
35057 rm -f conftest.$ac_objext
35058 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35059   (eval $ac_compile) 2>conftest.er1
35060   ac_status=$?
35061   grep -v '^ *+' conftest.er1 >conftest.err
35062   rm -f conftest.er1
35063   cat conftest.err >&5
35064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35065   (exit $ac_status); } &&
35066          { ac_try='test -z "$ac_c_werror_flag"
35067                          || test ! -s conftest.err'
35068   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35069   (eval $ac_try) 2>&5
35070   ac_status=$?
35071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35072   (exit $ac_status); }; } &&
35073          { ac_try='test -s conftest.$ac_objext'
35074   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35075   (eval $ac_try) 2>&5
35076   ac_status=$?
35077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35078   (exit $ac_status); }; }; then
35079   ac_cv_member_struct_stat_st_atimespec_tv_nsec=yes
35080 else
35081   echo "$as_me: failed program was:" >&5
35082 sed 's/^/| /' conftest.$ac_ext >&5
35083
35084         cat >conftest.$ac_ext <<_ACEOF
35085 /* confdefs.h.  */
35086 _ACEOF
35087 cat confdefs.h >>conftest.$ac_ext
35088 cat >>conftest.$ac_ext <<_ACEOF
35089 /* end confdefs.h.  */
35090 #include <sys/types.h>
35091         #include <sys/stat.h>
35092
35093 int
35094 main ()
35095 {
35096 static struct stat ac_aggr;
35097 if (sizeof ac_aggr.st_atimespec.tv_nsec)
35098 return 0;
35099   ;
35100   return 0;
35101 }
35102 _ACEOF
35103 rm -f conftest.$ac_objext
35104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35105   (eval $ac_compile) 2>conftest.er1
35106   ac_status=$?
35107   grep -v '^ *+' conftest.er1 >conftest.err
35108   rm -f conftest.er1
35109   cat conftest.err >&5
35110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35111   (exit $ac_status); } &&
35112          { ac_try='test -z "$ac_c_werror_flag"
35113                          || test ! -s conftest.err'
35114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35115   (eval $ac_try) 2>&5
35116   ac_status=$?
35117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35118   (exit $ac_status); }; } &&
35119          { ac_try='test -s conftest.$ac_objext'
35120   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35121   (eval $ac_try) 2>&5
35122   ac_status=$?
35123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35124   (exit $ac_status); }; }; then
35125   ac_cv_member_struct_stat_st_atimespec_tv_nsec=yes
35126 else
35127   echo "$as_me: failed program was:" >&5
35128 sed 's/^/| /' conftest.$ac_ext >&5
35129
35130         ac_cv_member_struct_stat_st_atimespec_tv_nsec=no
35131 fi
35132
35133 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35134 fi
35135
35136 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35137 fi
35138 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_atimespec_tv_nsec" >&5
35139 echo "${ECHO_T}$ac_cv_member_struct_stat_st_atimespec_tv_nsec" >&6; }
35140 if test $ac_cv_member_struct_stat_st_atimespec_tv_nsec = yes; then
35141
35142 cat >>confdefs.h <<_ACEOF
35143 #define HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC 1
35144 _ACEOF
35145
35146
35147 else
35148   { echo "$as_me:$LINENO: checking for struct stat.st_atimensec" >&5
35149 echo $ECHO_N "checking for struct stat.st_atimensec... $ECHO_C" >&6; }
35150 if test "${ac_cv_member_struct_stat_st_atimensec+set}" = set; then
35151   echo $ECHO_N "(cached) $ECHO_C" >&6
35152 else
35153   cat >conftest.$ac_ext <<_ACEOF
35154 /* confdefs.h.  */
35155 _ACEOF
35156 cat confdefs.h >>conftest.$ac_ext
35157 cat >>conftest.$ac_ext <<_ACEOF
35158 /* end confdefs.h.  */
35159 #include <sys/types.h>
35160            #include <sys/stat.h>
35161
35162 int
35163 main ()
35164 {
35165 static struct stat ac_aggr;
35166 if (ac_aggr.st_atimensec)
35167 return 0;
35168   ;
35169   return 0;
35170 }
35171 _ACEOF
35172 rm -f conftest.$ac_objext
35173 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35174   (eval $ac_compile) 2>conftest.er1
35175   ac_status=$?
35176   grep -v '^ *+' conftest.er1 >conftest.err
35177   rm -f conftest.er1
35178   cat conftest.err >&5
35179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35180   (exit $ac_status); } &&
35181          { ac_try='test -z "$ac_c_werror_flag"
35182                          || test ! -s conftest.err'
35183   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35184   (eval $ac_try) 2>&5
35185   ac_status=$?
35186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35187   (exit $ac_status); }; } &&
35188          { ac_try='test -s conftest.$ac_objext'
35189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35190   (eval $ac_try) 2>&5
35191   ac_status=$?
35192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35193   (exit $ac_status); }; }; then
35194   ac_cv_member_struct_stat_st_atimensec=yes
35195 else
35196   echo "$as_me: failed program was:" >&5
35197 sed 's/^/| /' conftest.$ac_ext >&5
35198
35199         cat >conftest.$ac_ext <<_ACEOF
35200 /* confdefs.h.  */
35201 _ACEOF
35202 cat confdefs.h >>conftest.$ac_ext
35203 cat >>conftest.$ac_ext <<_ACEOF
35204 /* end confdefs.h.  */
35205 #include <sys/types.h>
35206            #include <sys/stat.h>
35207
35208 int
35209 main ()
35210 {
35211 static struct stat ac_aggr;
35212 if (sizeof ac_aggr.st_atimensec)
35213 return 0;
35214   ;
35215   return 0;
35216 }
35217 _ACEOF
35218 rm -f conftest.$ac_objext
35219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35220   (eval $ac_compile) 2>conftest.er1
35221   ac_status=$?
35222   grep -v '^ *+' conftest.er1 >conftest.err
35223   rm -f conftest.er1
35224   cat conftest.err >&5
35225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35226   (exit $ac_status); } &&
35227          { ac_try='test -z "$ac_c_werror_flag"
35228                          || test ! -s conftest.err'
35229   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35230   (eval $ac_try) 2>&5
35231   ac_status=$?
35232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35233   (exit $ac_status); }; } &&
35234          { ac_try='test -s conftest.$ac_objext'
35235   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35236   (eval $ac_try) 2>&5
35237   ac_status=$?
35238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35239   (exit $ac_status); }; }; then
35240   ac_cv_member_struct_stat_st_atimensec=yes
35241 else
35242   echo "$as_me: failed program was:" >&5
35243 sed 's/^/| /' conftest.$ac_ext >&5
35244
35245         ac_cv_member_struct_stat_st_atimensec=no
35246 fi
35247
35248 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35249 fi
35250
35251 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35252 fi
35253 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_atimensec" >&5
35254 echo "${ECHO_T}$ac_cv_member_struct_stat_st_atimensec" >&6; }
35255 if test $ac_cv_member_struct_stat_st_atimensec = yes; then
35256
35257 cat >>confdefs.h <<_ACEOF
35258 #define HAVE_STRUCT_STAT_ST_ATIMENSEC 1
35259 _ACEOF
35260
35261
35262 else
35263   { echo "$as_me:$LINENO: checking for struct stat.st_atim.st__tim.tv_nsec" >&5
35264 echo $ECHO_N "checking for struct stat.st_atim.st__tim.tv_nsec... $ECHO_C" >&6; }
35265 if test "${ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec+set}" = set; then
35266   echo $ECHO_N "(cached) $ECHO_C" >&6
35267 else
35268   cat >conftest.$ac_ext <<_ACEOF
35269 /* confdefs.h.  */
35270 _ACEOF
35271 cat confdefs.h >>conftest.$ac_ext
35272 cat >>conftest.$ac_ext <<_ACEOF
35273 /* end confdefs.h.  */
35274 #include <sys/types.h>
35275               #include <sys/stat.h>
35276
35277 int
35278 main ()
35279 {
35280 static struct stat ac_aggr;
35281 if (ac_aggr.st_atim.st__tim.tv_nsec)
35282 return 0;
35283   ;
35284   return 0;
35285 }
35286 _ACEOF
35287 rm -f conftest.$ac_objext
35288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35289   (eval $ac_compile) 2>conftest.er1
35290   ac_status=$?
35291   grep -v '^ *+' conftest.er1 >conftest.err
35292   rm -f conftest.er1
35293   cat conftest.err >&5
35294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35295   (exit $ac_status); } &&
35296          { ac_try='test -z "$ac_c_werror_flag"
35297                          || test ! -s conftest.err'
35298   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35299   (eval $ac_try) 2>&5
35300   ac_status=$?
35301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35302   (exit $ac_status); }; } &&
35303          { ac_try='test -s conftest.$ac_objext'
35304   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35305   (eval $ac_try) 2>&5
35306   ac_status=$?
35307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35308   (exit $ac_status); }; }; then
35309   ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec=yes
35310 else
35311   echo "$as_me: failed program was:" >&5
35312 sed 's/^/| /' conftest.$ac_ext >&5
35313
35314         cat >conftest.$ac_ext <<_ACEOF
35315 /* confdefs.h.  */
35316 _ACEOF
35317 cat confdefs.h >>conftest.$ac_ext
35318 cat >>conftest.$ac_ext <<_ACEOF
35319 /* end confdefs.h.  */
35320 #include <sys/types.h>
35321               #include <sys/stat.h>
35322
35323 int
35324 main ()
35325 {
35326 static struct stat ac_aggr;
35327 if (sizeof ac_aggr.st_atim.st__tim.tv_nsec)
35328 return 0;
35329   ;
35330   return 0;
35331 }
35332 _ACEOF
35333 rm -f conftest.$ac_objext
35334 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35335   (eval $ac_compile) 2>conftest.er1
35336   ac_status=$?
35337   grep -v '^ *+' conftest.er1 >conftest.err
35338   rm -f conftest.er1
35339   cat conftest.err >&5
35340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35341   (exit $ac_status); } &&
35342          { ac_try='test -z "$ac_c_werror_flag"
35343                          || test ! -s conftest.err'
35344   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35345   (eval $ac_try) 2>&5
35346   ac_status=$?
35347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35348   (exit $ac_status); }; } &&
35349          { ac_try='test -s conftest.$ac_objext'
35350   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35351   (eval $ac_try) 2>&5
35352   ac_status=$?
35353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35354   (exit $ac_status); }; }; then
35355   ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec=yes
35356 else
35357   echo "$as_me: failed program was:" >&5
35358 sed 's/^/| /' conftest.$ac_ext >&5
35359
35360         ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec=no
35361 fi
35362
35363 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35364 fi
35365
35366 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35367 fi
35368 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" >&5
35369 echo "${ECHO_T}$ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" >&6; }
35370 if test $ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec = yes; then
35371
35372 cat >>confdefs.h <<_ACEOF
35373 #define HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC 1
35374 _ACEOF
35375
35376
35377 else
35378   { echo "$as_me:$LINENO: checking for struct stat.st_spare1" >&5
35379 echo $ECHO_N "checking for struct stat.st_spare1... $ECHO_C" >&6; }
35380 if test "${ac_cv_member_struct_stat_st_spare1+set}" = set; then
35381   echo $ECHO_N "(cached) $ECHO_C" >&6
35382 else
35383   cat >conftest.$ac_ext <<_ACEOF
35384 /* confdefs.h.  */
35385 _ACEOF
35386 cat confdefs.h >>conftest.$ac_ext
35387 cat >>conftest.$ac_ext <<_ACEOF
35388 /* end confdefs.h.  */
35389 #include <sys/types.h>
35390                  #include <sys/stat.h>
35391
35392 int
35393 main ()
35394 {
35395 static struct stat ac_aggr;
35396 if (ac_aggr.st_spare1)
35397 return 0;
35398   ;
35399   return 0;
35400 }
35401 _ACEOF
35402 rm -f conftest.$ac_objext
35403 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35404   (eval $ac_compile) 2>conftest.er1
35405   ac_status=$?
35406   grep -v '^ *+' conftest.er1 >conftest.err
35407   rm -f conftest.er1
35408   cat conftest.err >&5
35409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35410   (exit $ac_status); } &&
35411          { ac_try='test -z "$ac_c_werror_flag"
35412                          || test ! -s conftest.err'
35413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35414   (eval $ac_try) 2>&5
35415   ac_status=$?
35416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35417   (exit $ac_status); }; } &&
35418          { ac_try='test -s conftest.$ac_objext'
35419   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35420   (eval $ac_try) 2>&5
35421   ac_status=$?
35422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35423   (exit $ac_status); }; }; then
35424   ac_cv_member_struct_stat_st_spare1=yes
35425 else
35426   echo "$as_me: failed program was:" >&5
35427 sed 's/^/| /' conftest.$ac_ext >&5
35428
35429         cat >conftest.$ac_ext <<_ACEOF
35430 /* confdefs.h.  */
35431 _ACEOF
35432 cat confdefs.h >>conftest.$ac_ext
35433 cat >>conftest.$ac_ext <<_ACEOF
35434 /* end confdefs.h.  */
35435 #include <sys/types.h>
35436                  #include <sys/stat.h>
35437
35438 int
35439 main ()
35440 {
35441 static struct stat ac_aggr;
35442 if (sizeof ac_aggr.st_spare1)
35443 return 0;
35444   ;
35445   return 0;
35446 }
35447 _ACEOF
35448 rm -f conftest.$ac_objext
35449 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35450   (eval $ac_compile) 2>conftest.er1
35451   ac_status=$?
35452   grep -v '^ *+' conftest.er1 >conftest.err
35453   rm -f conftest.er1
35454   cat conftest.err >&5
35455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35456   (exit $ac_status); } &&
35457          { ac_try='test -z "$ac_c_werror_flag"
35458                          || test ! -s conftest.err'
35459   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35460   (eval $ac_try) 2>&5
35461   ac_status=$?
35462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35463   (exit $ac_status); }; } &&
35464          { ac_try='test -s conftest.$ac_objext'
35465   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35466   (eval $ac_try) 2>&5
35467   ac_status=$?
35468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35469   (exit $ac_status); }; }; then
35470   ac_cv_member_struct_stat_st_spare1=yes
35471 else
35472   echo "$as_me: failed program was:" >&5
35473 sed 's/^/| /' conftest.$ac_ext >&5
35474
35475         ac_cv_member_struct_stat_st_spare1=no
35476 fi
35477
35478 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35479 fi
35480
35481 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35482 fi
35483 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_spare1" >&5
35484 echo "${ECHO_T}$ac_cv_member_struct_stat_st_spare1" >&6; }
35485 if test $ac_cv_member_struct_stat_st_spare1 = yes; then
35486
35487 cat >>confdefs.h <<_ACEOF
35488 #define HAVE_STRUCT_STAT_ST_SPARE1 1
35489 _ACEOF
35490
35491
35492 fi
35493
35494 fi
35495
35496 fi
35497
35498 fi
35499
35500 fi
35501
35502
35503
35504   { echo "$as_me:$LINENO: checking for inttypes.h" >&5
35505 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
35506 if test "${gt_cv_header_inttypes_h+set}" = set; then
35507   echo $ECHO_N "(cached) $ECHO_C" >&6
35508 else
35509
35510     cat >conftest.$ac_ext <<_ACEOF
35511 /* confdefs.h.  */
35512 _ACEOF
35513 cat confdefs.h >>conftest.$ac_ext
35514 cat >>conftest.$ac_ext <<_ACEOF
35515 /* end confdefs.h.  */
35516 #include <sys/types.h>
35517 #include <inttypes.h>
35518 int
35519 main ()
35520 {
35521
35522   ;
35523   return 0;
35524 }
35525 _ACEOF
35526 rm -f conftest.$ac_objext
35527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35528   (eval $ac_compile) 2>conftest.er1
35529   ac_status=$?
35530   grep -v '^ *+' conftest.er1 >conftest.err
35531   rm -f conftest.er1
35532   cat conftest.err >&5
35533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35534   (exit $ac_status); } &&
35535          { ac_try='test -z "$ac_c_werror_flag"
35536                          || test ! -s conftest.err'
35537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35538   (eval $ac_try) 2>&5
35539   ac_status=$?
35540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35541   (exit $ac_status); }; } &&
35542          { ac_try='test -s conftest.$ac_objext'
35543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35544   (eval $ac_try) 2>&5
35545   ac_status=$?
35546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35547   (exit $ac_status); }; }; then
35548   gt_cv_header_inttypes_h=yes
35549 else
35550   echo "$as_me: failed program was:" >&5
35551 sed 's/^/| /' conftest.$ac_ext >&5
35552
35553         gt_cv_header_inttypes_h=no
35554 fi
35555
35556 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35557
35558 fi
35559 { echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
35560 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
35561   if test $gt_cv_header_inttypes_h = yes; then
35562
35563 cat >>confdefs.h <<_ACEOF
35564 #define HAVE_INTTYPES_H 1
35565 _ACEOF
35566
35567   fi
35568
35569
35570
35571 for ac_header in sys/inttypes.h
35572 do
35573 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35574 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35575   { echo "$as_me:$LINENO: checking for $ac_header" >&5
35576 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35577 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35578   echo $ECHO_N "(cached) $ECHO_C" >&6
35579 fi
35580 ac_res=`eval echo '${'$as_ac_Header'}'`
35581                { echo "$as_me:$LINENO: result: $ac_res" >&5
35582 echo "${ECHO_T}$ac_res" >&6; }
35583 else
35584   # Is the header compilable?
35585 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
35586 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
35587 cat >conftest.$ac_ext <<_ACEOF
35588 /* confdefs.h.  */
35589 _ACEOF
35590 cat confdefs.h >>conftest.$ac_ext
35591 cat >>conftest.$ac_ext <<_ACEOF
35592 /* end confdefs.h.  */
35593 $ac_includes_default
35594 #include <$ac_header>
35595 _ACEOF
35596 rm -f conftest.$ac_objext
35597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35598   (eval $ac_compile) 2>conftest.er1
35599   ac_status=$?
35600   grep -v '^ *+' conftest.er1 >conftest.err
35601   rm -f conftest.er1
35602   cat conftest.err >&5
35603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35604   (exit $ac_status); } &&
35605          { ac_try='test -z "$ac_c_werror_flag"
35606                          || test ! -s conftest.err'
35607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35608   (eval $ac_try) 2>&5
35609   ac_status=$?
35610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35611   (exit $ac_status); }; } &&
35612          { ac_try='test -s conftest.$ac_objext'
35613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35614   (eval $ac_try) 2>&5
35615   ac_status=$?
35616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35617   (exit $ac_status); }; }; then
35618   ac_header_compiler=yes
35619 else
35620   echo "$as_me: failed program was:" >&5
35621 sed 's/^/| /' conftest.$ac_ext >&5
35622
35623         ac_header_compiler=no
35624 fi
35625
35626 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35627 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35628 echo "${ECHO_T}$ac_header_compiler" >&6; }
35629
35630 # Is the header present?
35631 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
35632 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
35633 cat >conftest.$ac_ext <<_ACEOF
35634 /* confdefs.h.  */
35635 _ACEOF
35636 cat confdefs.h >>conftest.$ac_ext
35637 cat >>conftest.$ac_ext <<_ACEOF
35638 /* end confdefs.h.  */
35639 #include <$ac_header>
35640 _ACEOF
35641 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35642   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35643   ac_status=$?
35644   grep -v '^ *+' conftest.er1 >conftest.err
35645   rm -f conftest.er1
35646   cat conftest.err >&5
35647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35648   (exit $ac_status); } >/dev/null; then
35649   if test -s conftest.err; then
35650     ac_cpp_err=$ac_c_preproc_warn_flag
35651     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35652   else
35653     ac_cpp_err=
35654   fi
35655 else
35656   ac_cpp_err=yes
35657 fi
35658 if test -z "$ac_cpp_err"; then
35659   ac_header_preproc=yes
35660 else
35661   echo "$as_me: failed program was:" >&5
35662 sed 's/^/| /' conftest.$ac_ext >&5
35663
35664   ac_header_preproc=no
35665 fi
35666
35667 rm -f conftest.err conftest.$ac_ext
35668 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35669 echo "${ECHO_T}$ac_header_preproc" >&6; }
35670
35671 # So?  What about this header?
35672 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35673   yes:no: )
35674     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35675 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35676     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35677 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35678     ac_header_preproc=yes
35679     ;;
35680   no:yes:* )
35681     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35682 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35683     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
35684 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
35685     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35686 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35687     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
35688 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
35689     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35690 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35691     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35692 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35693     ( cat <<\_ASBOX
35694 ## ------------------------------------ ##
35695 ## Report this to bug-coreutils@gnu.org ##
35696 ## ------------------------------------ ##
35697 _ASBOX
35698      ) | sed "s/^/$as_me: WARNING:     /" >&2
35699     ;;
35700 esac
35701 { echo "$as_me:$LINENO: checking for $ac_header" >&5
35702 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35703 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35704   echo $ECHO_N "(cached) $ECHO_C" >&6
35705 else
35706   eval "$as_ac_Header=\$ac_header_preproc"
35707 fi
35708 ac_res=`eval echo '${'$as_ac_Header'}'`
35709                { echo "$as_me:$LINENO: result: $ac_res" >&5
35710 echo "${ECHO_T}$ac_res" >&6; }
35711
35712 fi
35713 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35714   cat >>confdefs.h <<_ACEOF
35715 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35716 _ACEOF
35717
35718 fi
35719
35720 done
35721
35722
35723 for ac_header in sys/bitypes.h
35724 do
35725 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35726 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35727   { echo "$as_me:$LINENO: checking for $ac_header" >&5
35728 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35729 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35730   echo $ECHO_N "(cached) $ECHO_C" >&6
35731 fi
35732 ac_res=`eval echo '${'$as_ac_Header'}'`
35733                { echo "$as_me:$LINENO: result: $ac_res" >&5
35734 echo "${ECHO_T}$ac_res" >&6; }
35735 else
35736   # Is the header compilable?
35737 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
35738 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
35739 cat >conftest.$ac_ext <<_ACEOF
35740 /* confdefs.h.  */
35741 _ACEOF
35742 cat confdefs.h >>conftest.$ac_ext
35743 cat >>conftest.$ac_ext <<_ACEOF
35744 /* end confdefs.h.  */
35745 $ac_includes_default
35746 #include <$ac_header>
35747 _ACEOF
35748 rm -f conftest.$ac_objext
35749 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35750   (eval $ac_compile) 2>conftest.er1
35751   ac_status=$?
35752   grep -v '^ *+' conftest.er1 >conftest.err
35753   rm -f conftest.er1
35754   cat conftest.err >&5
35755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35756   (exit $ac_status); } &&
35757          { ac_try='test -z "$ac_c_werror_flag"
35758                          || test ! -s conftest.err'
35759   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35760   (eval $ac_try) 2>&5
35761   ac_status=$?
35762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35763   (exit $ac_status); }; } &&
35764          { ac_try='test -s conftest.$ac_objext'
35765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35766   (eval $ac_try) 2>&5
35767   ac_status=$?
35768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35769   (exit $ac_status); }; }; then
35770   ac_header_compiler=yes
35771 else
35772   echo "$as_me: failed program was:" >&5
35773 sed 's/^/| /' conftest.$ac_ext >&5
35774
35775         ac_header_compiler=no
35776 fi
35777
35778 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35779 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35780 echo "${ECHO_T}$ac_header_compiler" >&6; }
35781
35782 # Is the header present?
35783 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
35784 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
35785 cat >conftest.$ac_ext <<_ACEOF
35786 /* confdefs.h.  */
35787 _ACEOF
35788 cat confdefs.h >>conftest.$ac_ext
35789 cat >>conftest.$ac_ext <<_ACEOF
35790 /* end confdefs.h.  */
35791 #include <$ac_header>
35792 _ACEOF
35793 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35794   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35795   ac_status=$?
35796   grep -v '^ *+' conftest.er1 >conftest.err
35797   rm -f conftest.er1
35798   cat conftest.err >&5
35799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35800   (exit $ac_status); } >/dev/null; then
35801   if test -s conftest.err; then
35802     ac_cpp_err=$ac_c_preproc_warn_flag
35803     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35804   else
35805     ac_cpp_err=
35806   fi
35807 else
35808   ac_cpp_err=yes
35809 fi
35810 if test -z "$ac_cpp_err"; then
35811   ac_header_preproc=yes
35812 else
35813   echo "$as_me: failed program was:" >&5
35814 sed 's/^/| /' conftest.$ac_ext >&5
35815
35816   ac_header_preproc=no
35817 fi
35818
35819 rm -f conftest.err conftest.$ac_ext
35820 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35821 echo "${ECHO_T}$ac_header_preproc" >&6; }
35822
35823 # So?  What about this header?
35824 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35825   yes:no: )
35826     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35827 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35828     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35829 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35830     ac_header_preproc=yes
35831     ;;
35832   no:yes:* )
35833     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35834 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35835     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
35836 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
35837     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35838 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35839     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
35840 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
35841     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35842 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35843     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35844 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35845     ( cat <<\_ASBOX
35846 ## ------------------------------------ ##
35847 ## Report this to bug-coreutils@gnu.org ##
35848 ## ------------------------------------ ##
35849 _ASBOX
35850      ) | sed "s/^/$as_me: WARNING:     /" >&2
35851     ;;
35852 esac
35853 { echo "$as_me:$LINENO: checking for $ac_header" >&5
35854 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35855 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35856   echo $ECHO_N "(cached) $ECHO_C" >&6
35857 else
35858   eval "$as_ac_Header=\$ac_header_preproc"
35859 fi
35860 ac_res=`eval echo '${'$as_ac_Header'}'`
35861                { echo "$as_me:$LINENO: result: $ac_res" >&5
35862 echo "${ECHO_T}$ac_res" >&6; }
35863
35864 fi
35865 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35866   cat >>confdefs.h <<_ACEOF
35867 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35868 _ACEOF
35869
35870 fi
35871
35872 done
35873
35874
35875 { echo "$as_me:$LINENO: checking for stdint.h" >&5
35876 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
35877 if test "${gl_cv_header_stdint_h+set}" = set; then
35878   echo $ECHO_N "(cached) $ECHO_C" >&6
35879 else
35880
35881   cat >conftest.$ac_ext <<_ACEOF
35882 /* confdefs.h.  */
35883 _ACEOF
35884 cat confdefs.h >>conftest.$ac_ext
35885 cat >>conftest.$ac_ext <<_ACEOF
35886 /* end confdefs.h.  */
35887 #include <stdint.h>
35888 int
35889 main ()
35890 {
35891
35892   ;
35893   return 0;
35894 }
35895 _ACEOF
35896 rm -f conftest.$ac_objext
35897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35898   (eval $ac_compile) 2>conftest.er1
35899   ac_status=$?
35900   grep -v '^ *+' conftest.er1 >conftest.err
35901   rm -f conftest.er1
35902   cat conftest.err >&5
35903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35904   (exit $ac_status); } &&
35905          { ac_try='test -z "$ac_c_werror_flag"
35906                          || test ! -s conftest.err'
35907   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35908   (eval $ac_try) 2>&5
35909   ac_status=$?
35910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35911   (exit $ac_status); }; } &&
35912          { ac_try='test -s conftest.$ac_objext'
35913   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35914   (eval $ac_try) 2>&5
35915   ac_status=$?
35916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35917   (exit $ac_status); }; }; then
35918   gl_cv_header_stdint_h=yes
35919 else
35920   echo "$as_me: failed program was:" >&5
35921 sed 's/^/| /' conftest.$ac_ext >&5
35922
35923         gl_cv_header_stdint_h=no
35924 fi
35925
35926 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35927 fi
35928
35929 { echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
35930 echo "${ECHO_T}$gl_cv_header_stdint_h" >&6; }
35931 if test $gl_cv_header_stdint_h = yes; then
35932
35933 cat >>confdefs.h <<\_ACEOF
35934 #define HAVE_STDINT_H 1
35935 _ACEOF
35936
35937   STDINT_H=''
35938 else
35939   STDINT_H='stdint.h'
35940
35941     { echo "$as_me:$LINENO: checking whether 'long' is 64 bit wide" >&5
35942 echo $ECHO_N "checking whether 'long' is 64 bit wide... $ECHO_C" >&6; }
35943 if test "${gl_cv_long_bitsize_64+set}" = set; then
35944   echo $ECHO_N "(cached) $ECHO_C" >&6
35945 else
35946
35947     cat >conftest.$ac_ext <<_ACEOF
35948 /* confdefs.h.  */
35949 _ACEOF
35950 cat confdefs.h >>conftest.$ac_ext
35951 cat >>conftest.$ac_ext <<_ACEOF
35952 /* end confdefs.h.  */
35953
35954 #define POW63  ((((((long) 1 << 15) << 15) << 15) << 15) << 3)
35955 #define POW64  ((((((long) 1 << 15) << 15) << 15) << 15) << 4)
35956 typedef int array [2 * (POW63 != 0 && POW64 == 0) - 1];
35957
35958 int
35959 main ()
35960 {
35961
35962   ;
35963   return 0;
35964 }
35965 _ACEOF
35966 rm -f conftest.$ac_objext
35967 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35968   (eval $ac_compile) 2>conftest.er1
35969   ac_status=$?
35970   grep -v '^ *+' conftest.er1 >conftest.err
35971   rm -f conftest.er1
35972   cat conftest.err >&5
35973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35974   (exit $ac_status); } &&
35975          { ac_try='test -z "$ac_c_werror_flag"
35976                          || test ! -s conftest.err'
35977   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35978   (eval $ac_try) 2>&5
35979   ac_status=$?
35980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35981   (exit $ac_status); }; } &&
35982          { ac_try='test -s conftest.$ac_objext'
35983   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35984   (eval $ac_try) 2>&5
35985   ac_status=$?
35986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35987   (exit $ac_status); }; }; then
35988   gl_cv_long_bitsize_64=yes
35989 else
35990   echo "$as_me: failed program was:" >&5
35991 sed 's/^/| /' conftest.$ac_ext >&5
35992
35993         gl_cv_long_bitsize_64=no
35994 fi
35995
35996 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35997 fi
35998 { echo "$as_me:$LINENO: result: $gl_cv_long_bitsize_64" >&5
35999 echo "${ECHO_T}$gl_cv_long_bitsize_64" >&6; }
36000   if test $gl_cv_long_bitsize_64 = yes; then
36001     HAVE_LONG_64BIT=1
36002   else
36003     HAVE_LONG_64BIT=0
36004   fi
36005
36006
36007     { echo "$as_me:$LINENO: checking whether 'long long' is 64 bit wide" >&5
36008 echo $ECHO_N "checking whether 'long long' is 64 bit wide... $ECHO_C" >&6; }
36009 if test "${gl_cv_longlong_bitsize_64+set}" = set; then
36010   echo $ECHO_N "(cached) $ECHO_C" >&6
36011 else
36012
36013     cat >conftest.$ac_ext <<_ACEOF
36014 /* confdefs.h.  */
36015 _ACEOF
36016 cat confdefs.h >>conftest.$ac_ext
36017 cat >>conftest.$ac_ext <<_ACEOF
36018 /* end confdefs.h.  */
36019
36020 #define POW63  ((((((long long) 1 << 15) << 15) << 15) << 15) << 3)
36021 #define POW64  ((((((long long) 1 << 15) << 15) << 15) << 15) << 4)
36022 typedef int array [2 * (POW63 != 0 && POW64 == 0) - 1];
36023
36024 int
36025 main ()
36026 {
36027
36028   ;
36029   return 0;
36030 }
36031 _ACEOF
36032 rm -f conftest.$ac_objext
36033 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36034   (eval $ac_compile) 2>conftest.er1
36035   ac_status=$?
36036   grep -v '^ *+' conftest.er1 >conftest.err
36037   rm -f conftest.er1
36038   cat conftest.err >&5
36039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36040   (exit $ac_status); } &&
36041          { ac_try='test -z "$ac_c_werror_flag"
36042                          || test ! -s conftest.err'
36043   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36044   (eval $ac_try) 2>&5
36045   ac_status=$?
36046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36047   (exit $ac_status); }; } &&
36048          { ac_try='test -s conftest.$ac_objext'
36049   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36050   (eval $ac_try) 2>&5
36051   ac_status=$?
36052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36053   (exit $ac_status); }; }; then
36054   gl_cv_longlong_bitsize_64=yes
36055 else
36056   echo "$as_me: failed program was:" >&5
36057 sed 's/^/| /' conftest.$ac_ext >&5
36058
36059         gl_cv_longlong_bitsize_64=no
36060 fi
36061
36062 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36063 fi
36064 { echo "$as_me:$LINENO: result: $gl_cv_longlong_bitsize_64" >&5
36065 echo "${ECHO_T}$gl_cv_longlong_bitsize_64" >&6; }
36066   if test $gl_cv_longlong_bitsize_64 = yes; then
36067     HAVE_LONG_LONG_64BIT=1
36068   else
36069     HAVE_LONG_LONG_64BIT=0
36070   fi
36071
36072
36073 fi
36074
36075
36076
36077
36078   case " $LIBOBJS " in
36079   *" fopen-safer.$ac_objext "* ) ;;
36080   *) LIBOBJS="$LIBOBJS fopen-safer.$ac_objext"
36081  ;;
36082 esac
36083
36084
36085
36086
36087   case " $LIBOBJS " in
36088   *" mkstemp-safer.$ac_objext "* ) ;;
36089   *) LIBOBJS="$LIBOBJS mkstemp-safer.$ac_objext"
36090  ;;
36091 esac
36092
36093
36094
36095
36096       case " $LIBOBJS " in
36097   *" strcasecmp.$ac_objext "* ) ;;
36098   *) LIBOBJS="$LIBOBJS strcasecmp.$ac_objext"
36099  ;;
36100 esac
36101
36102
36103 cat >>confdefs.h <<\_ACEOF
36104 #define strcasecmp rpl_strcasecmp
36105 _ACEOF
36106
36107
36108
36109   :
36110
36111
36112
36113
36114 for ac_func in strncasecmp
36115 do
36116 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36117 { echo "$as_me:$LINENO: checking for $ac_func" >&5
36118 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36119 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36120   echo $ECHO_N "(cached) $ECHO_C" >&6
36121 else
36122   cat >conftest.$ac_ext <<_ACEOF
36123 /* confdefs.h.  */
36124 _ACEOF
36125 cat confdefs.h >>conftest.$ac_ext
36126 cat >>conftest.$ac_ext <<_ACEOF
36127 /* end confdefs.h.  */
36128 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36129    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36130 #define $ac_func innocuous_$ac_func
36131
36132 /* System header to define __stub macros and hopefully few prototypes,
36133     which can conflict with char $ac_func (); below.
36134     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36135     <limits.h> exists even on freestanding compilers.  */
36136
36137 #ifdef __STDC__
36138 # include <limits.h>
36139 #else
36140 # include <assert.h>
36141 #endif
36142
36143 #undef $ac_func
36144
36145 /* Override any GCC internal prototype to avoid an error.
36146    Use char because int might match the return type of a GCC
36147    builtin and then its argument prototype would still apply.  */
36148 #ifdef __cplusplus
36149 extern "C"
36150 #endif
36151 char $ac_func ();
36152 /* The GNU C library defines this for functions which it implements
36153     to always fail with ENOSYS.  Some functions are actually named
36154     something starting with __ and the normal name is an alias.  */
36155 #if defined __stub_$ac_func || defined __stub___$ac_func
36156 choke me
36157 #endif
36158
36159 int
36160 main ()
36161 {
36162 return $ac_func ();
36163   ;
36164   return 0;
36165 }
36166 _ACEOF
36167 rm -f conftest.$ac_objext conftest$ac_exeext
36168 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36169   (eval $ac_link) 2>conftest.er1
36170   ac_status=$?
36171   grep -v '^ *+' conftest.er1 >conftest.err
36172   rm -f conftest.er1
36173   cat conftest.err >&5
36174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36175   (exit $ac_status); } &&
36176          { ac_try='test -z "$ac_c_werror_flag"
36177                          || test ! -s conftest.err'
36178   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36179   (eval $ac_try) 2>&5
36180   ac_status=$?
36181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36182   (exit $ac_status); }; } &&
36183          { ac_try='test -s conftest$ac_exeext'
36184   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36185   (eval $ac_try) 2>&5
36186   ac_status=$?
36187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36188   (exit $ac_status); }; }; then
36189   eval "$as_ac_var=yes"
36190 else
36191   echo "$as_me: failed program was:" >&5
36192 sed 's/^/| /' conftest.$ac_ext >&5
36193
36194         eval "$as_ac_var=no"
36195 fi
36196
36197 rm -f conftest.err conftest.$ac_objext \
36198       conftest$ac_exeext conftest.$ac_ext
36199 fi
36200 ac_res=`eval echo '${'$as_ac_var'}'`
36201                { echo "$as_me:$LINENO: result: $ac_res" >&5
36202 echo "${ECHO_T}$ac_res" >&6; }
36203 if test `eval echo '${'$as_ac_var'}'` = yes; then
36204   cat >>confdefs.h <<_ACEOF
36205 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36206 _ACEOF
36207
36208 else
36209   case " $LIBOBJS " in
36210   *" $ac_func.$ac_objext "* ) ;;
36211   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
36212  ;;
36213 esac
36214
36215 fi
36216 done
36217
36218
36219   if test $ac_cv_func_strncasecmp = no; then
36220
36221   :
36222
36223   fi
36224
36225
36226 { echo "$as_me:$LINENO: checking for inline" >&5
36227 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
36228 if test "${ac_cv_c_inline+set}" = set; then
36229   echo $ECHO_N "(cached) $ECHO_C" >&6
36230 else
36231   ac_cv_c_inline=no
36232 for ac_kw in inline __inline__ __inline; do
36233   cat >conftest.$ac_ext <<_ACEOF
36234 /* confdefs.h.  */
36235 _ACEOF
36236 cat confdefs.h >>conftest.$ac_ext
36237 cat >>conftest.$ac_ext <<_ACEOF
36238 /* end confdefs.h.  */
36239 #ifndef __cplusplus
36240 typedef int foo_t;
36241 static $ac_kw foo_t static_foo () {return 0; }
36242 $ac_kw foo_t foo () {return 0; }
36243 #endif
36244
36245 _ACEOF
36246 rm -f conftest.$ac_objext
36247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36248   (eval $ac_compile) 2>conftest.er1
36249   ac_status=$?
36250   grep -v '^ *+' conftest.er1 >conftest.err
36251   rm -f conftest.er1
36252   cat conftest.err >&5
36253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36254   (exit $ac_status); } &&
36255          { ac_try='test -z "$ac_c_werror_flag"
36256                          || test ! -s conftest.err'
36257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36258   (eval $ac_try) 2>&5
36259   ac_status=$?
36260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36261   (exit $ac_status); }; } &&
36262          { ac_try='test -s conftest.$ac_objext'
36263   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36264   (eval $ac_try) 2>&5
36265   ac_status=$?
36266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36267   (exit $ac_status); }; }; then
36268   ac_cv_c_inline=$ac_kw
36269 else
36270   echo "$as_me: failed program was:" >&5
36271 sed 's/^/| /' conftest.$ac_ext >&5
36272
36273
36274 fi
36275
36276 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36277   test "$ac_cv_c_inline" != no && break
36278 done
36279
36280 fi
36281 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
36282 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
36283
36284
36285 case $ac_cv_c_inline in
36286   inline | yes) ;;
36287   *)
36288     case $ac_cv_c_inline in
36289       no) ac_val=;;
36290       *) ac_val=$ac_cv_c_inline;;
36291     esac
36292     cat >>confdefs.h <<_ACEOF
36293 #ifndef __cplusplus
36294 #define inline $ac_val
36295 #endif
36296 _ACEOF
36297     ;;
36298 esac
36299
36300
36301
36302   case " $LIBOBJS " in
36303   *" strintcmp.$ac_objext "* ) ;;
36304   *) LIBOBJS="$LIBOBJS strintcmp.$ac_objext"
36305  ;;
36306 esac
36307
36308
36309
36310
36311
36312
36313   case " $LIBOBJS " in
36314   *" strnumcmp.$ac_objext "* ) ;;
36315   *) LIBOBJS="$LIBOBJS strnumcmp.$ac_objext"
36316  ;;
36317 esac
36318
36319
36320
36321
36322
36323
36324   case " $LIBOBJS " in
36325   *" stripslash.$ac_objext "* ) ;;
36326   *) LIBOBJS="$LIBOBJS stripslash.$ac_objext"
36327  ;;
36328 esac
36329
36330
36331
36332
36333
36334
36335
36336
36337
36338   { echo "$as_me:$LINENO: checking whether localtime_r is compatible with its POSIX signature" >&5
36339 echo $ECHO_N "checking whether localtime_r is compatible with its POSIX signature... $ECHO_C" >&6; }
36340 if test "${gl_cv_time_r_posix+set}" = set; then
36341   echo $ECHO_N "(cached) $ECHO_C" >&6
36342 else
36343   cat >conftest.$ac_ext <<_ACEOF
36344 /* confdefs.h.  */
36345 _ACEOF
36346 cat confdefs.h >>conftest.$ac_ext
36347 cat >>conftest.$ac_ext <<_ACEOF
36348 /* end confdefs.h.  */
36349 #include <time.h>
36350 int
36351 main ()
36352 {
36353 /* We don't need to append 'restrict's to the argument types,
36354            even though the POSIX signature has the 'restrict's,
36355            since C99 says they can't affect type compatibility.  */
36356         struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
36357   ;
36358   return 0;
36359 }
36360 _ACEOF
36361 rm -f conftest.$ac_objext
36362 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36363   (eval $ac_compile) 2>conftest.er1
36364   ac_status=$?
36365   grep -v '^ *+' conftest.er1 >conftest.err
36366   rm -f conftest.er1
36367   cat conftest.err >&5
36368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36369   (exit $ac_status); } &&
36370          { ac_try='test -z "$ac_c_werror_flag"
36371                          || test ! -s conftest.err'
36372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36373   (eval $ac_try) 2>&5
36374   ac_status=$?
36375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36376   (exit $ac_status); }; } &&
36377          { ac_try='test -s conftest.$ac_objext'
36378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36379   (eval $ac_try) 2>&5
36380   ac_status=$?
36381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36382   (exit $ac_status); }; }; then
36383   gl_cv_time_r_posix=yes
36384 else
36385   echo "$as_me: failed program was:" >&5
36386 sed 's/^/| /' conftest.$ac_ext >&5
36387
36388         gl_cv_time_r_posix=no
36389 fi
36390
36391 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36392 fi
36393 { echo "$as_me:$LINENO: result: $gl_cv_time_r_posix" >&5
36394 echo "${ECHO_T}$gl_cv_time_r_posix" >&6; }
36395   if test $gl_cv_time_r_posix = yes; then
36396
36397 cat >>confdefs.h <<\_ACEOF
36398 #define HAVE_TIME_R_POSIX 1
36399 _ACEOF
36400
36401   else
36402     case " $LIBOBJS " in
36403   *" time_r.$ac_objext "* ) ;;
36404   *) LIBOBJS="$LIBOBJS time_r.$ac_objext"
36405  ;;
36406 esac
36407
36408
36409   :
36410
36411   fi
36412
36413
36414     :
36415
36416
36417
36418   case " $LIBOBJS " in
36419   *" dup-safer.$ac_objext "* ) ;;
36420   *) LIBOBJS="$LIBOBJS dup-safer.$ac_objext"
36421  ;;
36422 esac
36423
36424   case " $LIBOBJS " in
36425   *" fd-safer.$ac_objext "* ) ;;
36426   *) LIBOBJS="$LIBOBJS fd-safer.$ac_objext"
36427  ;;
36428 esac
36429
36430   case " $LIBOBJS " in
36431   *" pipe-safer.$ac_objext "* ) ;;
36432   *) LIBOBJS="$LIBOBJS pipe-safer.$ac_objext"
36433  ;;
36434 esac
36435
36436
36437
36438
36439
36440   :
36441
36442
36443
36444
36445
36446
36447
36448   case " $LIBOBJS " in
36449   *" unlinkdir.$ac_objext "* ) ;;
36450   *) LIBOBJS="$LIBOBJS unlinkdir.$ac_objext"
36451  ;;
36452 esac
36453
36454
36455   # The Hurd, the Linux kernel, the FreeBSD kernel version 2.2 and later,
36456   # and Cygwin never let anyone (even root) unlink directories.
36457   # If anyone knows of another system for which unlink can never
36458   # remove a directory, please report it to <bug-coreutils@gnu.org>.
36459   # Unfortunately this is difficult to test for, since it requires root access
36460   # and might create garbage in the file system,
36461   # so the code below simply relies on the kernel name and version number.
36462   case $host in
36463   *-*-gnu0-9* | \
36464   *-*-linux-* | *-*-linux | \
36465   *-*-freebsd2.2* | *-*-freebsd3-9* | *-*-freebsd1-90-9* | \
36466   *-cygwin)
36467
36468 cat >>confdefs.h <<\_ACEOF
36469 #define UNLINK_CANNOT_UNLINK_DIR 1
36470 _ACEOF
36471 ;;
36472   esac
36473
36474
36475
36476   case " $LIBOBJS " in
36477   *" userspec.$ac_objext "* ) ;;
36478   *) LIBOBJS="$LIBOBJS userspec.$ac_objext"
36479  ;;
36480 esac
36481
36482
36483
36484   :
36485
36486
36487
36488
36489
36490
36491
36492   { echo "$as_me:$LINENO: checking determine whether the utimes function works" >&5
36493 echo $ECHO_N "checking determine whether the utimes function works... $ECHO_C" >&6; }
36494 if test "${gl_cv_func_working_utimes+set}" = set; then
36495   echo $ECHO_N "(cached) $ECHO_C" >&6
36496 else
36497
36498   if test "$cross_compiling" = yes; then
36499   gl_cv_func_working_utimes=no
36500 else
36501   cat >conftest.$ac_ext <<_ACEOF
36502 /* confdefs.h.  */
36503 _ACEOF
36504 cat confdefs.h >>conftest.$ac_ext
36505 cat >>conftest.$ac_ext <<_ACEOF
36506 /* end confdefs.h.  */
36507
36508 #include <sys/types.h>
36509 #include <sys/stat.h>
36510 #include <fcntl.h>
36511 #include <sys/time.h>
36512 #include <time.h>
36513 #include <unistd.h>
36514 #include <stdlib.h>
36515 #include <stdio.h>
36516 #include <utime.h>
36517
36518 int
36519 main ()
36520 {
36521   static struct timeval timeval[2] = {{9, 10}, {999999, 999999}};
36522   struct stat sbuf;
36523   char const *file = "conftest.utimes";
36524   FILE *f;
36525   time_t now;
36526   int fd;
36527
36528   int ok = ((f = fopen (file, "w"))
36529             && fclose (f) == 0
36530             && utimes (file, timeval) == 0
36531             && lstat (file, &sbuf) == 0
36532             && sbuf.st_atime == timeval[0].tv_sec
36533             && sbuf.st_mtime == timeval[1].tv_sec);
36534   unlink (file);
36535   if (!ok)
36536     exit (1);
36537
36538   ok =
36539     ((f = fopen (file, "w"))
36540      && fclose (f) == 0
36541      && time (&now) != (time_t)-1
36542      && utimes (file, NULL) == 0
36543      && lstat (file, &sbuf) == 0
36544      && now - sbuf.st_atime <= 2
36545      && now - sbuf.st_mtime <= 2);
36546   unlink (file);
36547   if (!ok)
36548     exit (1);
36549
36550   ok = (0 <= (fd = open (file, O_WRONLY|O_CREAT, 0444))
36551               && close (fd) == 0
36552               && utimes (file, NULL) == 0);
36553   unlink (file);
36554
36555   exit (!ok);
36556 }
36557
36558 _ACEOF
36559 rm -f conftest$ac_exeext
36560 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36561   (eval $ac_link) 2>&5
36562   ac_status=$?
36563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36564   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36565   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36566   (eval $ac_try) 2>&5
36567   ac_status=$?
36568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36569   (exit $ac_status); }; }; then
36570   gl_cv_func_working_utimes=yes
36571 else
36572   echo "$as_me: program exited with status $ac_status" >&5
36573 echo "$as_me: failed program was:" >&5
36574 sed 's/^/| /' conftest.$ac_ext >&5
36575
36576 ( exit $ac_status )
36577 gl_cv_func_working_utimes=no
36578 fi
36579 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36580 fi
36581
36582
36583 fi
36584 { echo "$as_me:$LINENO: result: $gl_cv_func_working_utimes" >&5
36585 echo "${ECHO_T}$gl_cv_func_working_utimes" >&6; }
36586
36587   if test $gl_cv_func_working_utimes = yes; then
36588
36589 cat >>confdefs.h <<\_ACEOF
36590 #define HAVE_WORKING_UTIMES 1
36591 _ACEOF
36592
36593   fi
36594
36595
36596
36597   case " $LIBOBJS " in
36598   *" utimecmp.$ac_objext "* ) ;;
36599   *) LIBOBJS="$LIBOBJS utimecmp.$ac_objext"
36600  ;;
36601 esac
36602
36603
36604
36605
36606   :
36607
36608
36609
36610
36611
36612
36613
36614
36615
36616   :
36617
36618
36619
36620
36621
36622
36623
36624
36625
36626   { echo "$as_me:$LINENO: checking for struct utimbuf" >&5
36627 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; }
36628 if test "${fu_cv_sys_struct_utimbuf+set}" = set; then
36629   echo $ECHO_N "(cached) $ECHO_C" >&6
36630 else
36631   cat >conftest.$ac_ext <<_ACEOF
36632 /* confdefs.h.  */
36633 _ACEOF
36634 cat confdefs.h >>conftest.$ac_ext
36635 cat >>conftest.$ac_ext <<_ACEOF
36636 /* end confdefs.h.  */
36637
36638 #ifdef TIME_WITH_SYS_TIME
36639 # include <sys/time.h>
36640 # include <time.h>
36641 #else
36642 # ifdef HAVE_SYS_TIME_H
36643 #  include <sys/time.h>
36644 # else
36645 #  include <time.h>
36646 # endif
36647 #endif
36648 #ifdef HAVE_UTIME_H
36649 # include <utime.h>
36650 #endif
36651
36652 int
36653 main ()
36654 {
36655 static struct utimbuf x; x.actime = x.modtime;
36656   ;
36657   return 0;
36658 }
36659 _ACEOF
36660 rm -f conftest.$ac_objext
36661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36662   (eval $ac_compile) 2>conftest.er1
36663   ac_status=$?
36664   grep -v '^ *+' conftest.er1 >conftest.err
36665   rm -f conftest.er1
36666   cat conftest.err >&5
36667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36668   (exit $ac_status); } &&
36669          { ac_try='test -z "$ac_c_werror_flag"
36670                          || test ! -s conftest.err'
36671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36672   (eval $ac_try) 2>&5
36673   ac_status=$?
36674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36675   (exit $ac_status); }; } &&
36676          { ac_try='test -s conftest.$ac_objext'
36677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36678   (eval $ac_try) 2>&5
36679   ac_status=$?
36680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36681   (exit $ac_status); }; }; then
36682   fu_cv_sys_struct_utimbuf=yes
36683 else
36684   echo "$as_me: failed program was:" >&5
36685 sed 's/^/| /' conftest.$ac_ext >&5
36686
36687         fu_cv_sys_struct_utimbuf=no
36688 fi
36689
36690 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36691
36692 fi
36693 { echo "$as_me:$LINENO: result: $fu_cv_sys_struct_utimbuf" >&5
36694 echo "${ECHO_T}$fu_cv_sys_struct_utimbuf" >&6; }
36695
36696   if test $fu_cv_sys_struct_utimbuf = yes; then
36697
36698 cat >>confdefs.h <<\_ACEOF
36699 #define HAVE_STRUCT_UTIMBUF 1
36700 _ACEOF
36701
36702   fi
36703
36704
36705
36706
36707
36708
36709
36710
36711
36712
36713
36714
36715
36716
36717
36718   case " $LIBOBJS " in
36719   *" utimens.$ac_objext "* ) ;;
36720   *) LIBOBJS="$LIBOBJS utimens.$ac_objext"
36721  ;;
36722 esac
36723
36724
36725
36726
36727
36728
36729
36730   :
36731
36732
36733
36734
36735
36736
36737
36738
36739
36740
36741
36742   case " $LIBOBJS " in
36743   *" xmalloc.$ac_objext "* ) ;;
36744   *) LIBOBJS="$LIBOBJS xmalloc.$ac_objext"
36745  ;;
36746 esac
36747
36748
36749
36750   :
36751
36752
36753
36754   :
36755
36756
36757
36758
36759
36760    { echo "$as_me:$LINENO: checking whether getcwd (NULL, 0) allocates memory for result" >&5
36761 echo $ECHO_N "checking whether getcwd (NULL, 0) allocates memory for result... $ECHO_C" >&6; }
36762 if test "${gl_cv_func_getcwd_null+set}" = set; then
36763   echo $ECHO_N "(cached) $ECHO_C" >&6
36764 else
36765   if test "$cross_compiling" = yes; then
36766   gl_cv_func_getcwd_null=no
36767 else
36768   cat >conftest.$ac_ext <<_ACEOF
36769 /* confdefs.h.  */
36770 _ACEOF
36771 cat confdefs.h >>conftest.$ac_ext
36772 cat >>conftest.$ac_ext <<_ACEOF
36773 /* end confdefs.h.  */
36774
36775 #        include <stdlib.h>
36776 #        include <unistd.h>
36777 #        ifndef getcwd
36778          char *getcwd ();
36779 #        endif
36780          int
36781          main ()
36782          {
36783            if (chdir ("/") != 0)
36784              exit (1);
36785            else
36786              {
36787                char *f = getcwd (NULL, 0);
36788                exit (! (f && f[0] == '/' && !f[1]));
36789              }
36790          }
36791 _ACEOF
36792 rm -f conftest$ac_exeext
36793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36794   (eval $ac_link) 2>&5
36795   ac_status=$?
36796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36797   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36799   (eval $ac_try) 2>&5
36800   ac_status=$?
36801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36802   (exit $ac_status); }; }; then
36803   gl_cv_func_getcwd_null=yes
36804 else
36805   echo "$as_me: program exited with status $ac_status" >&5
36806 echo "$as_me: failed program was:" >&5
36807 sed 's/^/| /' conftest.$ac_ext >&5
36808
36809 ( exit $ac_status )
36810 gl_cv_func_getcwd_null=no
36811 fi
36812 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36813 fi
36814
36815
36816 fi
36817 { echo "$as_me:$LINENO: result: $gl_cv_func_getcwd_null" >&5
36818 echo "${ECHO_T}$gl_cv_func_getcwd_null" >&6; }
36819
36820
36821       { echo "$as_me:$LINENO: checking whether getcwd is declared" >&5
36822 echo $ECHO_N "checking whether getcwd is declared... $ECHO_C" >&6; }
36823 if test "${ac_cv_have_decl_getcwd+set}" = set; then
36824   echo $ECHO_N "(cached) $ECHO_C" >&6
36825 else
36826   cat >conftest.$ac_ext <<_ACEOF
36827 /* confdefs.h.  */
36828 _ACEOF
36829 cat confdefs.h >>conftest.$ac_ext
36830 cat >>conftest.$ac_ext <<_ACEOF
36831 /* end confdefs.h.  */
36832 $ac_includes_default
36833 int
36834 main ()
36835 {
36836 #ifndef getcwd
36837   char *p = (char *) getcwd;
36838   return !p;
36839 #endif
36840
36841   ;
36842   return 0;
36843 }
36844 _ACEOF
36845 rm -f conftest.$ac_objext
36846 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36847   (eval $ac_compile) 2>conftest.er1
36848   ac_status=$?
36849   grep -v '^ *+' conftest.er1 >conftest.err
36850   rm -f conftest.er1
36851   cat conftest.err >&5
36852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36853   (exit $ac_status); } &&
36854          { ac_try='test -z "$ac_c_werror_flag"
36855                          || test ! -s conftest.err'
36856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36857   (eval $ac_try) 2>&5
36858   ac_status=$?
36859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36860   (exit $ac_status); }; } &&
36861          { ac_try='test -s conftest.$ac_objext'
36862   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36863   (eval $ac_try) 2>&5
36864   ac_status=$?
36865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36866   (exit $ac_status); }; }; then
36867   ac_cv_have_decl_getcwd=yes
36868 else
36869   echo "$as_me: failed program was:" >&5
36870 sed 's/^/| /' conftest.$ac_ext >&5
36871
36872         ac_cv_have_decl_getcwd=no
36873 fi
36874
36875 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36876 fi
36877 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getcwd" >&5
36878 echo "${ECHO_T}$ac_cv_have_decl_getcwd" >&6; }
36879 if test $ac_cv_have_decl_getcwd = yes; then
36880
36881 cat >>confdefs.h <<_ACEOF
36882 #define HAVE_DECL_GETCWD 1
36883 _ACEOF
36884
36885
36886 else
36887   cat >>confdefs.h <<_ACEOF
36888 #define HAVE_DECL_GETCWD 0
36889 _ACEOF
36890
36891
36892 fi
36893
36894
36895
36896
36897
36898
36899   case $gl_cv_func_getcwd_null in
36900   yes)
36901
36902   :
36903
36904
36905
36906
36907
36908
36909   { echo "$as_me:$LINENO: checking whether getcwd handles long file names properly" >&5
36910 echo $ECHO_N "checking whether getcwd handles long file names properly... $ECHO_C" >&6; }
36911 if test "${gl_cv_func_getcwd_path_max+set}" = set; then
36912   echo $ECHO_N "(cached) $ECHO_C" >&6
36913 else
36914   # Arrange for deletion of the temporary directory this test creates.
36915      ac_clean_files="$ac_clean_files confdir3"
36916      if test "$cross_compiling" = yes; then
36917   gl_cv_func_getcwd_path_max=no
36918 else
36919   cat >conftest.$ac_ext <<_ACEOF
36920 /* confdefs.h.  */
36921 _ACEOF
36922 cat confdefs.h >>conftest.$ac_ext
36923 cat >>conftest.$ac_ext <<_ACEOF
36924 /* end confdefs.h.  */
36925
36926 #include <errno.h>
36927 #include <stdlib.h>
36928 #include <unistd.h>
36929 #include <string.h>
36930 #include <limits.h>
36931 #include <sys/stat.h>
36932 #include <sys/types.h>
36933 #include <fcntl.h>
36934
36935 #ifndef AT_FDCWD
36936 # define AT_FDCWD 0
36937 #endif
36938 #ifdef ENAMETOOLONG
36939 # define is_ENAMETOOLONG(x) ((x) == ENAMETOOLONG)
36940 #else
36941 # define is_ENAMETOOLONG(x) 0
36942 #endif
36943
36944 /* Don't get link errors because mkdir is redefined to rpl_mkdir.  */
36945 #undef mkdir
36946
36947 #ifndef S_IRWXU
36948 # define S_IRWXU 0700
36949 #endif
36950
36951 /* The length of this name must be 8.  */
36952 #define DIR_NAME "confdir3"
36953 #define DIR_NAME_LEN 8
36954 #define DIR_NAME_SIZE (DIR_NAME_LEN + 1)
36955
36956 /* The length of "../".  */
36957 #define DOTDOTSLASH_LEN 3
36958
36959 /* Leftover bytes in the buffer, to work around library or OS bugs.  */
36960 #define BUF_SLOP 20
36961
36962 int
36963 main ()
36964 {
36965 #ifndef PATH_MAX
36966   /* The Hurd doesn't define this, so getcwd can't exhibit the bug --
36967      at least not on a local file system.  And if we were to start worrying
36968      about remote file systems, we'd have to enable the wrapper function
36969      all of the time, just to be safe.  That's not worth the cost.  */
36970   exit (0);
36971 #elif ((INT_MAX / (DIR_NAME_SIZE / DOTDOTSLASH_LEN + 1) \
36972         - DIR_NAME_SIZE - BUF_SLOP) \
36973        <= PATH_MAX)
36974   /* FIXME: Assuming there's a system for which this is true,
36975      this should be done in a compile test.  */
36976   exit (0);
36977 #else
36978   char buf[PATH_MAX * (DIR_NAME_SIZE / DOTDOTSLASH_LEN + 1)
36979            + DIR_NAME_SIZE + BUF_SLOP];
36980   char *cwd = getcwd (buf, PATH_MAX);
36981   size_t initial_cwd_len;
36982   size_t cwd_len;
36983   int fail = 0;
36984   size_t n_chdirs = 0;
36985
36986   if (cwd == NULL)
36987     exit (1);
36988
36989   cwd_len = initial_cwd_len = strlen (cwd);
36990
36991   while (1)
36992     {
36993       size_t dotdot_max = PATH_MAX * (DIR_NAME_SIZE / DOTDOTSLASH_LEN);
36994       char *c = NULL;
36995
36996       cwd_len += DIR_NAME_SIZE;
36997       /* If mkdir or chdir fails, it could be that this system cannot create
36998          any file with an absolute name longer than PATH_MAX, such as cygwin.
36999          If so, leave fail as 0, because the current working directory can't
37000          be too long for getcwd if it can't even be created.  For other
37001          errors, be pessimistic and consider that as a failure, too.  */
37002       if (mkdir (DIR_NAME, S_IRWXU) < 0 || chdir (DIR_NAME) < 0)
37003         {
37004           if (! (errno == ERANGE || is_ENAMETOOLONG (errno)))
37005             fail = 2;
37006           break;
37007         }
37008
37009       if (PATH_MAX <= cwd_len && cwd_len < PATH_MAX + DIR_NAME_SIZE)
37010         {
37011           c = getcwd (buf, PATH_MAX);
37012           if (!c && errno == ENOENT)
37013             {
37014               fail = 1;
37015               break;
37016             }
37017           if (c || ! (errno == ERANGE || is_ENAMETOOLONG (errno)))
37018             {
37019               fail = 2;
37020               break;
37021             }
37022         }
37023
37024       if (dotdot_max <= cwd_len - initial_cwd_len)
37025         {
37026           if (dotdot_max + DIR_NAME_SIZE < cwd_len - initial_cwd_len)
37027             break;
37028           c = getcwd (buf, cwd_len + 1);
37029           if (!c)
37030             {
37031               if (! (errno == ERANGE || errno == ENOENT
37032                      || is_ENAMETOOLONG (errno)))
37033                 {
37034                   fail = 2;
37035                   break;
37036                 }
37037               if (AT_FDCWD || errno == ERANGE || errno == ENOENT)
37038                 {
37039                   fail = 1;
37040                   break;
37041                 }
37042             }
37043         }
37044
37045       if (c && strlen (c) != cwd_len)
37046         {
37047           fail = 2;
37048           break;
37049         }
37050       ++n_chdirs;
37051     }
37052
37053   /* Leaving behind such a deep directory is not polite.
37054      So clean up here, right away, even though the driving
37055      shell script would also clean up.  */
37056   {
37057     size_t i;
37058
37059     /* Unlink first, in case the chdir failed.  */
37060     unlink (DIR_NAME);
37061     for (i = 0; i <= n_chdirs; i++)
37062       {
37063         if (chdir ("..") < 0)
37064           break;
37065         rmdir (DIR_NAME);
37066       }
37067   }
37068
37069   exit (fail);
37070 #endif
37071 }
37072
37073 _ACEOF
37074 rm -f conftest$ac_exeext
37075 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37076   (eval $ac_link) 2>&5
37077   ac_status=$?
37078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37079   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
37080   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37081   (eval $ac_try) 2>&5
37082   ac_status=$?
37083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37084   (exit $ac_status); }; }; then
37085   gl_cv_func_getcwd_path_max=yes
37086 else
37087   echo "$as_me: program exited with status $ac_status" >&5
37088 echo "$as_me: failed program was:" >&5
37089 sed 's/^/| /' conftest.$ac_ext >&5
37090
37091 ( exit $ac_status )
37092 case $? in
37093      1) gl_cv_func_getcwd_path_max='no, but it is partly working';;
37094      *) gl_cv_func_getcwd_path_max=no;;
37095      esac
37096 fi
37097 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
37098 fi
37099
37100
37101
37102 fi
37103 { echo "$as_me:$LINENO: result: $gl_cv_func_getcwd_path_max" >&5
37104 echo "${ECHO_T}$gl_cv_func_getcwd_path_max" >&6; }
37105   case $gl_cv_func_getcwd_path_max in
37106   no,*)
37107
37108 cat >>confdefs.h <<\_ACEOF
37109 #define HAVE_PARTLY_WORKING_GETCWD 1
37110 _ACEOF
37111 ;;
37112   esac
37113 ;;
37114   esac
37115
37116   case $gl_cv_func_getcwd_null,$gl_cv_func_getcwd_path_max in
37117   yes,yes) ;;
37118   *)
37119     case " $LIBOBJS " in
37120   *" getcwd.$ac_objext "* ) ;;
37121   *) LIBOBJS="$LIBOBJS getcwd.$ac_objext"
37122  ;;
37123 esac
37124
37125
37126 cat >>confdefs.h <<\_ACEOF
37127 #define __GETCWD_PREFIX rpl_
37128 _ACEOF
37129
37130
37131
37132
37133
37134   :
37135 ;;
37136   esac
37137
37138
37139
37140   case " $LIBOBJS " in
37141   *" xgetcwd.$ac_objext "* ) ;;
37142   *) LIBOBJS="$LIBOBJS xgetcwd.$ac_objext"
37143  ;;
37144 esac
37145
37146
37147
37148
37149
37150
37151   case " $LIBOBJS " in
37152   *" xnanosleep.$ac_objext "* ) ;;
37153   *) LIBOBJS="$LIBOBJS xnanosleep.$ac_objext"
37154  ;;
37155 esac
37156
37157
37158
37159
37160   case " $LIBOBJS " in
37161   *" xreadlink.$ac_objext "* ) ;;
37162   *) LIBOBJS="$LIBOBJS xreadlink.$ac_objext"
37163  ;;
37164 esac
37165
37166
37167
37168
37169
37170
37171   case " $LIBOBJS " in
37172   *" xstrtod.$ac_objext "* ) ;;
37173   *) LIBOBJS="$LIBOBJS xstrtod.$ac_objext"
37174  ;;
37175 esac
37176
37177
37178
37179
37180
37181
37182
37183
37184
37185
37186   :
37187
37188
37189
37190
37191
37192   { echo "$as_me:$LINENO: checking whether strtoimax is declared" >&5
37193 echo $ECHO_N "checking whether strtoimax is declared... $ECHO_C" >&6; }
37194 if test "${ac_cv_have_decl_strtoimax+set}" = set; then
37195   echo $ECHO_N "(cached) $ECHO_C" >&6
37196 else
37197   cat >conftest.$ac_ext <<_ACEOF
37198 /* confdefs.h.  */
37199 _ACEOF
37200 cat confdefs.h >>conftest.$ac_ext
37201 cat >>conftest.$ac_ext <<_ACEOF
37202 /* end confdefs.h.  */
37203 $ac_includes_default
37204 int
37205 main ()
37206 {
37207 #ifndef strtoimax
37208   char *p = (char *) strtoimax;
37209   return !p;
37210 #endif
37211
37212   ;
37213   return 0;
37214 }
37215 _ACEOF
37216 rm -f conftest.$ac_objext
37217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37218   (eval $ac_compile) 2>conftest.er1
37219   ac_status=$?
37220   grep -v '^ *+' conftest.er1 >conftest.err
37221   rm -f conftest.er1
37222   cat conftest.err >&5
37223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37224   (exit $ac_status); } &&
37225          { ac_try='test -z "$ac_c_werror_flag"
37226                          || test ! -s conftest.err'
37227   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37228   (eval $ac_try) 2>&5
37229   ac_status=$?
37230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37231   (exit $ac_status); }; } &&
37232          { ac_try='test -s conftest.$ac_objext'
37233   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37234   (eval $ac_try) 2>&5
37235   ac_status=$?
37236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37237   (exit $ac_status); }; }; then
37238   ac_cv_have_decl_strtoimax=yes
37239 else
37240   echo "$as_me: failed program was:" >&5
37241 sed 's/^/| /' conftest.$ac_ext >&5
37242
37243         ac_cv_have_decl_strtoimax=no
37244 fi
37245
37246 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37247 fi
37248 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoimax" >&5
37249 echo "${ECHO_T}$ac_cv_have_decl_strtoimax" >&6; }
37250 if test $ac_cv_have_decl_strtoimax = yes; then
37251
37252 cat >>confdefs.h <<_ACEOF
37253 #define HAVE_DECL_STRTOIMAX 1
37254 _ACEOF
37255
37256
37257 else
37258   cat >>confdefs.h <<_ACEOF
37259 #define HAVE_DECL_STRTOIMAX 0
37260 _ACEOF
37261
37262
37263 fi
37264 { echo "$as_me:$LINENO: checking whether strtoumax is declared" >&5
37265 echo $ECHO_N "checking whether strtoumax is declared... $ECHO_C" >&6; }
37266 if test "${ac_cv_have_decl_strtoumax+set}" = set; then
37267   echo $ECHO_N "(cached) $ECHO_C" >&6
37268 else
37269   cat >conftest.$ac_ext <<_ACEOF
37270 /* confdefs.h.  */
37271 _ACEOF
37272 cat confdefs.h >>conftest.$ac_ext
37273 cat >>conftest.$ac_ext <<_ACEOF
37274 /* end confdefs.h.  */
37275 $ac_includes_default
37276 int
37277 main ()
37278 {
37279 #ifndef strtoumax
37280   char *p = (char *) strtoumax;
37281   return !p;
37282 #endif
37283
37284   ;
37285   return 0;
37286 }
37287 _ACEOF
37288 rm -f conftest.$ac_objext
37289 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37290   (eval $ac_compile) 2>conftest.er1
37291   ac_status=$?
37292   grep -v '^ *+' conftest.er1 >conftest.err
37293   rm -f conftest.er1
37294   cat conftest.err >&5
37295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37296   (exit $ac_status); } &&
37297          { ac_try='test -z "$ac_c_werror_flag"
37298                          || test ! -s conftest.err'
37299   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37300   (eval $ac_try) 2>&5
37301   ac_status=$?
37302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37303   (exit $ac_status); }; } &&
37304          { ac_try='test -s conftest.$ac_objext'
37305   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37306   (eval $ac_try) 2>&5
37307   ac_status=$?
37308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37309   (exit $ac_status); }; }; then
37310   ac_cv_have_decl_strtoumax=yes
37311 else
37312   echo "$as_me: failed program was:" >&5
37313 sed 's/^/| /' conftest.$ac_ext >&5
37314
37315         ac_cv_have_decl_strtoumax=no
37316 fi
37317
37318 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37319 fi
37320 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoumax" >&5
37321 echo "${ECHO_T}$ac_cv_have_decl_strtoumax" >&6; }
37322 if test $ac_cv_have_decl_strtoumax = yes; then
37323
37324 cat >>confdefs.h <<_ACEOF
37325 #define HAVE_DECL_STRTOUMAX 1
37326 _ACEOF
37327
37328
37329 else
37330   cat >>confdefs.h <<_ACEOF
37331 #define HAVE_DECL_STRTOUMAX 0
37332 _ACEOF
37333
37334
37335 fi
37336
37337
37338
37339
37340
37341
37342
37343
37344   case " $LIBOBJS " in
37345   *" xstrtol.$ac_objext "* ) ;;
37346   *) LIBOBJS="$LIBOBJS xstrtol.$ac_objext"
37347  ;;
37348 esac
37349
37350   case " $LIBOBJS " in
37351   *" xstrtoul.$ac_objext "* ) ;;
37352   *) LIBOBJS="$LIBOBJS xstrtoul.$ac_objext"
37353  ;;
37354 esac
37355
37356
37357
37358
37359
37360
37361
37362   case " $LIBOBJS " in
37363   *" yesno.$ac_objext "* ) ;;
37364   *) LIBOBJS="$LIBOBJS yesno.$ac_objext"
37365  ;;
37366 esac
37367
37368
37369     :
37370
37371 { echo "$as_me:$LINENO: checking for GNU libc compatible calloc" >&5
37372 echo $ECHO_N "checking for GNU libc compatible calloc... $ECHO_C" >&6; }
37373 if test "${ac_cv_func_calloc_0_nonnull+set}" = set; then
37374   echo $ECHO_N "(cached) $ECHO_C" >&6
37375 else
37376   if test "$cross_compiling" = yes; then
37377   ac_cv_func_calloc_0_nonnull=no
37378 else
37379   cat >conftest.$ac_ext <<_ACEOF
37380 /* confdefs.h.  */
37381 _ACEOF
37382 cat confdefs.h >>conftest.$ac_ext
37383 cat >>conftest.$ac_ext <<_ACEOF
37384 /* end confdefs.h.  */
37385 $ac_includes_default
37386 int
37387 main ()
37388 {
37389 exit (!calloc (0, 0) || calloc ((size_t) -1 / 8 + 1, 8));
37390   ;
37391   return 0;
37392 }
37393 _ACEOF
37394 rm -f conftest$ac_exeext
37395 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37396   (eval $ac_link) 2>&5
37397   ac_status=$?
37398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37399   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
37400   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37401   (eval $ac_try) 2>&5
37402   ac_status=$?
37403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37404   (exit $ac_status); }; }; then
37405   ac_cv_func_calloc_0_nonnull=yes
37406 else
37407   echo "$as_me: program exited with status $ac_status" >&5
37408 echo "$as_me: failed program was:" >&5
37409 sed 's/^/| /' conftest.$ac_ext >&5
37410
37411 ( exit $ac_status )
37412 ac_cv_func_calloc_0_nonnull=no
37413 fi
37414 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
37415 fi
37416
37417
37418 fi
37419 { echo "$as_me:$LINENO: result: $ac_cv_func_calloc_0_nonnull" >&5
37420 echo "${ECHO_T}$ac_cv_func_calloc_0_nonnull" >&6; }
37421 if test $ac_cv_func_calloc_0_nonnull = yes; then
37422
37423 cat >>confdefs.h <<\_ACEOF
37424 #define HAVE_CALLOC 1
37425 _ACEOF
37426
37427 else
37428   cat >>confdefs.h <<\_ACEOF
37429 #define HAVE_CALLOC 0
37430 _ACEOF
37431
37432    case " $LIBOBJS " in
37433   *" calloc.$ac_objext "* ) ;;
37434   *) LIBOBJS="$LIBOBJS calloc.$ac_objext"
37435  ;;
37436 esac
37437
37438
37439 cat >>confdefs.h <<\_ACEOF
37440 #define calloc rpl_calloc
37441 _ACEOF
37442
37443 fi
37444
37445
37446
37447
37448       { echo "$as_me:$LINENO: checking whether clearerr_unlocked is declared" >&5
37449 echo $ECHO_N "checking whether clearerr_unlocked is declared... $ECHO_C" >&6; }
37450 if test "${ac_cv_have_decl_clearerr_unlocked+set}" = set; then
37451   echo $ECHO_N "(cached) $ECHO_C" >&6
37452 else
37453   cat >conftest.$ac_ext <<_ACEOF
37454 /* confdefs.h.  */
37455 _ACEOF
37456 cat confdefs.h >>conftest.$ac_ext
37457 cat >>conftest.$ac_ext <<_ACEOF
37458 /* end confdefs.h.  */
37459 $ac_includes_default
37460 int
37461 main ()
37462 {
37463 #ifndef clearerr_unlocked
37464   char *p = (char *) clearerr_unlocked;
37465   return !p;
37466 #endif
37467
37468   ;
37469   return 0;
37470 }
37471 _ACEOF
37472 rm -f conftest.$ac_objext
37473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37474   (eval $ac_compile) 2>conftest.er1
37475   ac_status=$?
37476   grep -v '^ *+' conftest.er1 >conftest.err
37477   rm -f conftest.er1
37478   cat conftest.err >&5
37479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37480   (exit $ac_status); } &&
37481          { ac_try='test -z "$ac_c_werror_flag"
37482                          || test ! -s conftest.err'
37483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37484   (eval $ac_try) 2>&5
37485   ac_status=$?
37486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37487   (exit $ac_status); }; } &&
37488          { ac_try='test -s conftest.$ac_objext'
37489   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37490   (eval $ac_try) 2>&5
37491   ac_status=$?
37492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37493   (exit $ac_status); }; }; then
37494   ac_cv_have_decl_clearerr_unlocked=yes
37495 else
37496   echo "$as_me: failed program was:" >&5
37497 sed 's/^/| /' conftest.$ac_ext >&5
37498
37499         ac_cv_have_decl_clearerr_unlocked=no
37500 fi
37501
37502 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37503 fi
37504 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_clearerr_unlocked" >&5
37505 echo "${ECHO_T}$ac_cv_have_decl_clearerr_unlocked" >&6; }
37506 if test $ac_cv_have_decl_clearerr_unlocked = yes; then
37507
37508 cat >>confdefs.h <<_ACEOF
37509 #define HAVE_DECL_CLEARERR_UNLOCKED 1
37510 _ACEOF
37511
37512
37513 else
37514   cat >>confdefs.h <<_ACEOF
37515 #define HAVE_DECL_CLEARERR_UNLOCKED 0
37516 _ACEOF
37517
37518
37519 fi
37520
37521
37522
37523
37524       { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
37525 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
37526 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
37527   echo $ECHO_N "(cached) $ECHO_C" >&6
37528 else
37529   cat >conftest.$ac_ext <<_ACEOF
37530 /* confdefs.h.  */
37531 _ACEOF
37532 cat confdefs.h >>conftest.$ac_ext
37533 cat >>conftest.$ac_ext <<_ACEOF
37534 /* end confdefs.h.  */
37535 $ac_includes_default
37536 int
37537 main ()
37538 {
37539 #ifndef feof_unlocked
37540   char *p = (char *) feof_unlocked;
37541   return !p;
37542 #endif
37543
37544   ;
37545   return 0;
37546 }
37547 _ACEOF
37548 rm -f conftest.$ac_objext
37549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37550   (eval $ac_compile) 2>conftest.er1
37551   ac_status=$?
37552   grep -v '^ *+' conftest.er1 >conftest.err
37553   rm -f conftest.er1
37554   cat conftest.err >&5
37555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37556   (exit $ac_status); } &&
37557          { ac_try='test -z "$ac_c_werror_flag"
37558                          || test ! -s conftest.err'
37559   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37560   (eval $ac_try) 2>&5
37561   ac_status=$?
37562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37563   (exit $ac_status); }; } &&
37564          { ac_try='test -s conftest.$ac_objext'
37565   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37566   (eval $ac_try) 2>&5
37567   ac_status=$?
37568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37569   (exit $ac_status); }; }; then
37570   ac_cv_have_decl_feof_unlocked=yes
37571 else
37572   echo "$as_me: failed program was:" >&5
37573 sed 's/^/| /' conftest.$ac_ext >&5
37574
37575         ac_cv_have_decl_feof_unlocked=no
37576 fi
37577
37578 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37579 fi
37580 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
37581 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
37582 if test $ac_cv_have_decl_feof_unlocked = yes; then
37583
37584 cat >>confdefs.h <<_ACEOF
37585 #define HAVE_DECL_FEOF_UNLOCKED 1
37586 _ACEOF
37587
37588
37589 else
37590   cat >>confdefs.h <<_ACEOF
37591 #define HAVE_DECL_FEOF_UNLOCKED 0
37592 _ACEOF
37593
37594
37595 fi
37596
37597
37598
37599
37600       { echo "$as_me:$LINENO: checking whether ferror_unlocked is declared" >&5
37601 echo $ECHO_N "checking whether ferror_unlocked is declared... $ECHO_C" >&6; }
37602 if test "${ac_cv_have_decl_ferror_unlocked+set}" = set; then
37603   echo $ECHO_N "(cached) $ECHO_C" >&6
37604 else
37605   cat >conftest.$ac_ext <<_ACEOF
37606 /* confdefs.h.  */
37607 _ACEOF
37608 cat confdefs.h >>conftest.$ac_ext
37609 cat >>conftest.$ac_ext <<_ACEOF
37610 /* end confdefs.h.  */
37611 $ac_includes_default
37612 int
37613 main ()
37614 {
37615 #ifndef ferror_unlocked
37616   char *p = (char *) ferror_unlocked;
37617   return !p;
37618 #endif
37619
37620   ;
37621   return 0;
37622 }
37623 _ACEOF
37624 rm -f conftest.$ac_objext
37625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37626   (eval $ac_compile) 2>conftest.er1
37627   ac_status=$?
37628   grep -v '^ *+' conftest.er1 >conftest.err
37629   rm -f conftest.er1
37630   cat conftest.err >&5
37631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37632   (exit $ac_status); } &&
37633          { ac_try='test -z "$ac_c_werror_flag"
37634                          || test ! -s conftest.err'
37635   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37636   (eval $ac_try) 2>&5
37637   ac_status=$?
37638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37639   (exit $ac_status); }; } &&
37640          { ac_try='test -s conftest.$ac_objext'
37641   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37642   (eval $ac_try) 2>&5
37643   ac_status=$?
37644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37645   (exit $ac_status); }; }; then
37646   ac_cv_have_decl_ferror_unlocked=yes
37647 else
37648   echo "$as_me: failed program was:" >&5
37649 sed 's/^/| /' conftest.$ac_ext >&5
37650
37651         ac_cv_have_decl_ferror_unlocked=no
37652 fi
37653
37654 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37655 fi
37656 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_ferror_unlocked" >&5
37657 echo "${ECHO_T}$ac_cv_have_decl_ferror_unlocked" >&6; }
37658 if test $ac_cv_have_decl_ferror_unlocked = yes; then
37659
37660 cat >>confdefs.h <<_ACEOF
37661 #define HAVE_DECL_FERROR_UNLOCKED 1
37662 _ACEOF
37663
37664
37665 else
37666   cat >>confdefs.h <<_ACEOF
37667 #define HAVE_DECL_FERROR_UNLOCKED 0
37668 _ACEOF
37669
37670
37671 fi
37672
37673
37674
37675
37676       { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
37677 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
37678 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
37679   echo $ECHO_N "(cached) $ECHO_C" >&6
37680 else
37681   cat >conftest.$ac_ext <<_ACEOF
37682 /* confdefs.h.  */
37683 _ACEOF
37684 cat confdefs.h >>conftest.$ac_ext
37685 cat >>conftest.$ac_ext <<_ACEOF
37686 /* end confdefs.h.  */
37687 $ac_includes_default
37688 int
37689 main ()
37690 {
37691 #ifndef fgets_unlocked
37692   char *p = (char *) fgets_unlocked;
37693   return !p;
37694 #endif
37695
37696   ;
37697   return 0;
37698 }
37699 _ACEOF
37700 rm -f conftest.$ac_objext
37701 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37702   (eval $ac_compile) 2>conftest.er1
37703   ac_status=$?
37704   grep -v '^ *+' conftest.er1 >conftest.err
37705   rm -f conftest.er1
37706   cat conftest.err >&5
37707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37708   (exit $ac_status); } &&
37709          { ac_try='test -z "$ac_c_werror_flag"
37710                          || test ! -s conftest.err'
37711   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37712   (eval $ac_try) 2>&5
37713   ac_status=$?
37714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37715   (exit $ac_status); }; } &&
37716          { ac_try='test -s conftest.$ac_objext'
37717   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37718   (eval $ac_try) 2>&5
37719   ac_status=$?
37720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37721   (exit $ac_status); }; }; then
37722   ac_cv_have_decl_fgets_unlocked=yes
37723 else
37724   echo "$as_me: failed program was:" >&5
37725 sed 's/^/| /' conftest.$ac_ext >&5
37726
37727         ac_cv_have_decl_fgets_unlocked=no
37728 fi
37729
37730 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37731 fi
37732 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
37733 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
37734 if test $ac_cv_have_decl_fgets_unlocked = yes; then
37735
37736 cat >>confdefs.h <<_ACEOF
37737 #define HAVE_DECL_FGETS_UNLOCKED 1
37738 _ACEOF
37739
37740
37741 else
37742   cat >>confdefs.h <<_ACEOF
37743 #define HAVE_DECL_FGETS_UNLOCKED 0
37744 _ACEOF
37745
37746
37747 fi
37748
37749
37750
37751
37752       { echo "$as_me:$LINENO: checking whether fputc_unlocked is declared" >&5
37753 echo $ECHO_N "checking whether fputc_unlocked is declared... $ECHO_C" >&6; }
37754 if test "${ac_cv_have_decl_fputc_unlocked+set}" = set; then
37755   echo $ECHO_N "(cached) $ECHO_C" >&6
37756 else
37757   cat >conftest.$ac_ext <<_ACEOF
37758 /* confdefs.h.  */
37759 _ACEOF
37760 cat confdefs.h >>conftest.$ac_ext
37761 cat >>conftest.$ac_ext <<_ACEOF
37762 /* end confdefs.h.  */
37763 $ac_includes_default
37764 int
37765 main ()
37766 {
37767 #ifndef fputc_unlocked
37768   char *p = (char *) fputc_unlocked;
37769   return !p;
37770 #endif
37771
37772   ;
37773   return 0;
37774 }
37775 _ACEOF
37776 rm -f conftest.$ac_objext
37777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37778   (eval $ac_compile) 2>conftest.er1
37779   ac_status=$?
37780   grep -v '^ *+' conftest.er1 >conftest.err
37781   rm -f conftest.er1
37782   cat conftest.err >&5
37783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37784   (exit $ac_status); } &&
37785          { ac_try='test -z "$ac_c_werror_flag"
37786                          || test ! -s conftest.err'
37787   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37788   (eval $ac_try) 2>&5
37789   ac_status=$?
37790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37791   (exit $ac_status); }; } &&
37792          { ac_try='test -s conftest.$ac_objext'
37793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37794   (eval $ac_try) 2>&5
37795   ac_status=$?
37796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37797   (exit $ac_status); }; }; then
37798   ac_cv_have_decl_fputc_unlocked=yes
37799 else
37800   echo "$as_me: failed program was:" >&5
37801 sed 's/^/| /' conftest.$ac_ext >&5
37802
37803         ac_cv_have_decl_fputc_unlocked=no
37804 fi
37805
37806 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37807 fi
37808 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputc_unlocked" >&5
37809 echo "${ECHO_T}$ac_cv_have_decl_fputc_unlocked" >&6; }
37810 if test $ac_cv_have_decl_fputc_unlocked = yes; then
37811
37812 cat >>confdefs.h <<_ACEOF
37813 #define HAVE_DECL_FPUTC_UNLOCKED 1
37814 _ACEOF
37815
37816
37817 else
37818   cat >>confdefs.h <<_ACEOF
37819 #define HAVE_DECL_FPUTC_UNLOCKED 0
37820 _ACEOF
37821
37822
37823 fi
37824
37825
37826
37827
37828       { echo "$as_me:$LINENO: checking whether fread_unlocked is declared" >&5
37829 echo $ECHO_N "checking whether fread_unlocked is declared... $ECHO_C" >&6; }
37830 if test "${ac_cv_have_decl_fread_unlocked+set}" = set; then
37831   echo $ECHO_N "(cached) $ECHO_C" >&6
37832 else
37833   cat >conftest.$ac_ext <<_ACEOF
37834 /* confdefs.h.  */
37835 _ACEOF
37836 cat confdefs.h >>conftest.$ac_ext
37837 cat >>conftest.$ac_ext <<_ACEOF
37838 /* end confdefs.h.  */
37839 $ac_includes_default
37840 int
37841 main ()
37842 {
37843 #ifndef fread_unlocked
37844   char *p = (char *) fread_unlocked;
37845   return !p;
37846 #endif
37847
37848   ;
37849   return 0;
37850 }
37851 _ACEOF
37852 rm -f conftest.$ac_objext
37853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37854   (eval $ac_compile) 2>conftest.er1
37855   ac_status=$?
37856   grep -v '^ *+' conftest.er1 >conftest.err
37857   rm -f conftest.er1
37858   cat conftest.err >&5
37859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37860   (exit $ac_status); } &&
37861          { ac_try='test -z "$ac_c_werror_flag"
37862                          || test ! -s conftest.err'
37863   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37864   (eval $ac_try) 2>&5
37865   ac_status=$?
37866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37867   (exit $ac_status); }; } &&
37868          { ac_try='test -s conftest.$ac_objext'
37869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&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_have_decl_fread_unlocked=yes
37875 else
37876   echo "$as_me: failed program was:" >&5
37877 sed 's/^/| /' conftest.$ac_ext >&5
37878
37879         ac_cv_have_decl_fread_unlocked=no
37880 fi
37881
37882 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37883 fi
37884 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fread_unlocked" >&5
37885 echo "${ECHO_T}$ac_cv_have_decl_fread_unlocked" >&6; }
37886 if test $ac_cv_have_decl_fread_unlocked = yes; then
37887
37888 cat >>confdefs.h <<_ACEOF
37889 #define HAVE_DECL_FREAD_UNLOCKED 1
37890 _ACEOF
37891
37892
37893 else
37894   cat >>confdefs.h <<_ACEOF
37895 #define HAVE_DECL_FREAD_UNLOCKED 0
37896 _ACEOF
37897
37898
37899 fi
37900
37901
37902
37903
37904       { echo "$as_me:$LINENO: checking whether fwrite_unlocked is declared" >&5
37905 echo $ECHO_N "checking whether fwrite_unlocked is declared... $ECHO_C" >&6; }
37906 if test "${ac_cv_have_decl_fwrite_unlocked+set}" = set; then
37907   echo $ECHO_N "(cached) $ECHO_C" >&6
37908 else
37909   cat >conftest.$ac_ext <<_ACEOF
37910 /* confdefs.h.  */
37911 _ACEOF
37912 cat confdefs.h >>conftest.$ac_ext
37913 cat >>conftest.$ac_ext <<_ACEOF
37914 /* end confdefs.h.  */
37915 $ac_includes_default
37916 int
37917 main ()
37918 {
37919 #ifndef fwrite_unlocked
37920   char *p = (char *) fwrite_unlocked;
37921   return !p;
37922 #endif
37923
37924   ;
37925   return 0;
37926 }
37927 _ACEOF
37928 rm -f conftest.$ac_objext
37929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37930   (eval $ac_compile) 2>conftest.er1
37931   ac_status=$?
37932   grep -v '^ *+' conftest.er1 >conftest.err
37933   rm -f conftest.er1
37934   cat conftest.err >&5
37935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37936   (exit $ac_status); } &&
37937          { ac_try='test -z "$ac_c_werror_flag"
37938                          || test ! -s conftest.err'
37939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37940   (eval $ac_try) 2>&5
37941   ac_status=$?
37942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37943   (exit $ac_status); }; } &&
37944          { ac_try='test -s conftest.$ac_objext'
37945   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37946   (eval $ac_try) 2>&5
37947   ac_status=$?
37948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37949   (exit $ac_status); }; }; then
37950   ac_cv_have_decl_fwrite_unlocked=yes
37951 else
37952   echo "$as_me: failed program was:" >&5
37953 sed 's/^/| /' conftest.$ac_ext >&5
37954
37955         ac_cv_have_decl_fwrite_unlocked=no
37956 fi
37957
37958 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37959 fi
37960 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fwrite_unlocked" >&5
37961 echo "${ECHO_T}$ac_cv_have_decl_fwrite_unlocked" >&6; }
37962 if test $ac_cv_have_decl_fwrite_unlocked = yes; then
37963
37964 cat >>confdefs.h <<_ACEOF
37965 #define HAVE_DECL_FWRITE_UNLOCKED 1
37966 _ACEOF
37967
37968
37969 else
37970   cat >>confdefs.h <<_ACEOF
37971 #define HAVE_DECL_FWRITE_UNLOCKED 0
37972 _ACEOF
37973
37974
37975 fi
37976
37977
37978
37979
37980       { echo "$as_me:$LINENO: checking whether getchar_unlocked is declared" >&5
37981 echo $ECHO_N "checking whether getchar_unlocked is declared... $ECHO_C" >&6; }
37982 if test "${ac_cv_have_decl_getchar_unlocked+set}" = set; then
37983   echo $ECHO_N "(cached) $ECHO_C" >&6
37984 else
37985   cat >conftest.$ac_ext <<_ACEOF
37986 /* confdefs.h.  */
37987 _ACEOF
37988 cat confdefs.h >>conftest.$ac_ext
37989 cat >>conftest.$ac_ext <<_ACEOF
37990 /* end confdefs.h.  */
37991 $ac_includes_default
37992 int
37993 main ()
37994 {
37995 #ifndef getchar_unlocked
37996   char *p = (char *) getchar_unlocked;
37997   return !p;
37998 #endif
37999
38000   ;
38001   return 0;
38002 }
38003 _ACEOF
38004 rm -f conftest.$ac_objext
38005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38006   (eval $ac_compile) 2>conftest.er1
38007   ac_status=$?
38008   grep -v '^ *+' conftest.er1 >conftest.err
38009   rm -f conftest.er1
38010   cat conftest.err >&5
38011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38012   (exit $ac_status); } &&
38013          { ac_try='test -z "$ac_c_werror_flag"
38014                          || test ! -s conftest.err'
38015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38016   (eval $ac_try) 2>&5
38017   ac_status=$?
38018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38019   (exit $ac_status); }; } &&
38020          { ac_try='test -s conftest.$ac_objext'
38021   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38022   (eval $ac_try) 2>&5
38023   ac_status=$?
38024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38025   (exit $ac_status); }; }; then
38026   ac_cv_have_decl_getchar_unlocked=yes
38027 else
38028   echo "$as_me: failed program was:" >&5
38029 sed 's/^/| /' conftest.$ac_ext >&5
38030
38031         ac_cv_have_decl_getchar_unlocked=no
38032 fi
38033
38034 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38035 fi
38036 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getchar_unlocked" >&5
38037 echo "${ECHO_T}$ac_cv_have_decl_getchar_unlocked" >&6; }
38038 if test $ac_cv_have_decl_getchar_unlocked = yes; then
38039
38040 cat >>confdefs.h <<_ACEOF
38041 #define HAVE_DECL_GETCHAR_UNLOCKED 1
38042 _ACEOF
38043
38044
38045 else
38046   cat >>confdefs.h <<_ACEOF
38047 #define HAVE_DECL_GETCHAR_UNLOCKED 0
38048 _ACEOF
38049
38050
38051 fi
38052
38053
38054
38055
38056       { echo "$as_me:$LINENO: checking whether putchar_unlocked is declared" >&5
38057 echo $ECHO_N "checking whether putchar_unlocked is declared... $ECHO_C" >&6; }
38058 if test "${ac_cv_have_decl_putchar_unlocked+set}" = set; then
38059   echo $ECHO_N "(cached) $ECHO_C" >&6
38060 else
38061   cat >conftest.$ac_ext <<_ACEOF
38062 /* confdefs.h.  */
38063 _ACEOF
38064 cat confdefs.h >>conftest.$ac_ext
38065 cat >>conftest.$ac_ext <<_ACEOF
38066 /* end confdefs.h.  */
38067 $ac_includes_default
38068 int
38069 main ()
38070 {
38071 #ifndef putchar_unlocked
38072   char *p = (char *) putchar_unlocked;
38073   return !p;
38074 #endif
38075
38076   ;
38077   return 0;
38078 }
38079 _ACEOF
38080 rm -f conftest.$ac_objext
38081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38082   (eval $ac_compile) 2>conftest.er1
38083   ac_status=$?
38084   grep -v '^ *+' conftest.er1 >conftest.err
38085   rm -f conftest.er1
38086   cat conftest.err >&5
38087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38088   (exit $ac_status); } &&
38089          { ac_try='test -z "$ac_c_werror_flag"
38090                          || test ! -s conftest.err'
38091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38092   (eval $ac_try) 2>&5
38093   ac_status=$?
38094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38095   (exit $ac_status); }; } &&
38096          { ac_try='test -s conftest.$ac_objext'
38097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38098   (eval $ac_try) 2>&5
38099   ac_status=$?
38100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38101   (exit $ac_status); }; }; then
38102   ac_cv_have_decl_putchar_unlocked=yes
38103 else
38104   echo "$as_me: failed program was:" >&5
38105 sed 's/^/| /' conftest.$ac_ext >&5
38106
38107         ac_cv_have_decl_putchar_unlocked=no
38108 fi
38109
38110 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38111 fi
38112 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_putchar_unlocked" >&5
38113 echo "${ECHO_T}$ac_cv_have_decl_putchar_unlocked" >&6; }
38114 if test $ac_cv_have_decl_putchar_unlocked = yes; then
38115
38116 cat >>confdefs.h <<_ACEOF
38117 #define HAVE_DECL_PUTCHAR_UNLOCKED 1
38118 _ACEOF
38119
38120
38121 else
38122   cat >>confdefs.h <<_ACEOF
38123 #define HAVE_DECL_PUTCHAR_UNLOCKED 0
38124 _ACEOF
38125
38126
38127 fi
38128
38129
38130
38131
38132
38133
38134
38135 cat >>confdefs.h <<\_ACEOF
38136 #define USE_UNLOCKED_IO 1
38137 _ACEOF
38138
38139
38140
38141
38142
38143   :
38144
38145
38146
38147
38148
38149
38150
38151
38152
38153
38154
38155
38156
38157
38158
38159
38160
38161
38162
38163
38164
38165
38166
38167
38168
38169
38170
38171
38172
38173
38174
38175
38176
38177
38178
38179
38180
38181
38182
38183
38184
38185
38186
38187 for ac_func in strftime
38188 do
38189 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38190 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38191 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38192 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38193   echo $ECHO_N "(cached) $ECHO_C" >&6
38194 else
38195   cat >conftest.$ac_ext <<_ACEOF
38196 /* confdefs.h.  */
38197 _ACEOF
38198 cat confdefs.h >>conftest.$ac_ext
38199 cat >>conftest.$ac_ext <<_ACEOF
38200 /* end confdefs.h.  */
38201 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38202    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38203 #define $ac_func innocuous_$ac_func
38204
38205 /* System header to define __stub macros and hopefully few prototypes,
38206     which can conflict with char $ac_func (); below.
38207     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38208     <limits.h> exists even on freestanding compilers.  */
38209
38210 #ifdef __STDC__
38211 # include <limits.h>
38212 #else
38213 # include <assert.h>
38214 #endif
38215
38216 #undef $ac_func
38217
38218 /* Override any GCC internal prototype to avoid an error.
38219    Use char because int might match the return type of a GCC
38220    builtin and then its argument prototype would still apply.  */
38221 #ifdef __cplusplus
38222 extern "C"
38223 #endif
38224 char $ac_func ();
38225 /* The GNU C library defines this for functions which it implements
38226     to always fail with ENOSYS.  Some functions are actually named
38227     something starting with __ and the normal name is an alias.  */
38228 #if defined __stub_$ac_func || defined __stub___$ac_func
38229 choke me
38230 #endif
38231
38232 int
38233 main ()
38234 {
38235 return $ac_func ();
38236   ;
38237   return 0;
38238 }
38239 _ACEOF
38240 rm -f conftest.$ac_objext conftest$ac_exeext
38241 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38242   (eval $ac_link) 2>conftest.er1
38243   ac_status=$?
38244   grep -v '^ *+' conftest.er1 >conftest.err
38245   rm -f conftest.er1
38246   cat conftest.err >&5
38247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38248   (exit $ac_status); } &&
38249          { ac_try='test -z "$ac_c_werror_flag"
38250                          || test ! -s conftest.err'
38251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38252   (eval $ac_try) 2>&5
38253   ac_status=$?
38254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38255   (exit $ac_status); }; } &&
38256          { ac_try='test -s conftest$ac_exeext'
38257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38258   (eval $ac_try) 2>&5
38259   ac_status=$?
38260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38261   (exit $ac_status); }; }; then
38262   eval "$as_ac_var=yes"
38263 else
38264   echo "$as_me: failed program was:" >&5
38265 sed 's/^/| /' conftest.$ac_ext >&5
38266
38267         eval "$as_ac_var=no"
38268 fi
38269
38270 rm -f conftest.err conftest.$ac_objext \
38271       conftest$ac_exeext conftest.$ac_ext
38272 fi
38273 ac_res=`eval echo '${'$as_ac_var'}'`
38274                { echo "$as_me:$LINENO: result: $ac_res" >&5
38275 echo "${ECHO_T}$ac_res" >&6; }
38276 if test `eval echo '${'$as_ac_var'}'` = yes; then
38277   cat >>confdefs.h <<_ACEOF
38278 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38279 _ACEOF
38280
38281 else
38282   # strftime is in -lintl on SCO UNIX.
38283 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
38284 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
38285 if test "${ac_cv_lib_intl_strftime+set}" = set; then
38286   echo $ECHO_N "(cached) $ECHO_C" >&6
38287 else
38288   ac_check_lib_save_LIBS=$LIBS
38289 LIBS="-lintl  $LIBS"
38290 cat >conftest.$ac_ext <<_ACEOF
38291 /* confdefs.h.  */
38292 _ACEOF
38293 cat confdefs.h >>conftest.$ac_ext
38294 cat >>conftest.$ac_ext <<_ACEOF
38295 /* end confdefs.h.  */
38296
38297 /* Override any GCC internal prototype to avoid an error.
38298    Use char because int might match the return type of a GCC
38299    builtin and then its argument prototype would still apply.  */
38300 #ifdef __cplusplus
38301 extern "C"
38302 #endif
38303 char strftime ();
38304 int
38305 main ()
38306 {
38307 return strftime ();
38308   ;
38309   return 0;
38310 }
38311 _ACEOF
38312 rm -f conftest.$ac_objext conftest$ac_exeext
38313 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38314   (eval $ac_link) 2>conftest.er1
38315   ac_status=$?
38316   grep -v '^ *+' conftest.er1 >conftest.err
38317   rm -f conftest.er1
38318   cat conftest.err >&5
38319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38320   (exit $ac_status); } &&
38321          { ac_try='test -z "$ac_c_werror_flag"
38322                          || test ! -s conftest.err'
38323   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38324   (eval $ac_try) 2>&5
38325   ac_status=$?
38326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38327   (exit $ac_status); }; } &&
38328          { ac_try='test -s conftest$ac_exeext'
38329   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38330   (eval $ac_try) 2>&5
38331   ac_status=$?
38332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38333   (exit $ac_status); }; }; then
38334   ac_cv_lib_intl_strftime=yes
38335 else
38336   echo "$as_me: failed program was:" >&5
38337 sed 's/^/| /' conftest.$ac_ext >&5
38338
38339         ac_cv_lib_intl_strftime=no
38340 fi
38341
38342 rm -f conftest.err conftest.$ac_objext \
38343       conftest$ac_exeext conftest.$ac_ext
38344 LIBS=$ac_check_lib_save_LIBS
38345 fi
38346 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
38347 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
38348 if test $ac_cv_lib_intl_strftime = yes; then
38349   cat >>confdefs.h <<\_ACEOF
38350 #define HAVE_STRFTIME 1
38351 _ACEOF
38352
38353 LIBS="-lintl $LIBS"
38354 fi
38355
38356 fi
38357 done
38358
38359
38360
38361
38362
38363
38364
38365
38366
38367
38368
38369
38370
38371
38372
38373
38374
38375
38376
38377
38378
38379  case " $LIBOBJS " in
38380   *" strftime.$ac_objext "* ) ;;
38381   *) LIBOBJS="$LIBOBJS strftime.$ac_objext"
38382  ;;
38383 esac
38384
38385
38386  # strftime.c uses the underyling system strftime if it exists.
38387
38388
38389  # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
38390
38391
38392
38393
38394
38395
38396
38397   :
38398
38399
38400
38401
38402
38403
38404
38405
38406
38407
38408
38409
38410
38411
38412
38413   :
38414
38415
38416
38417
38418
38419
38420
38421
38422
38423
38424 cat >>confdefs.h <<\_ACEOF
38425 #define my_strftime nstrftime
38426 _ACEOF
38427
38428
38429
38430
38431 for ac_header in stdlib.h
38432 do
38433 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38434 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
38435   { echo "$as_me:$LINENO: checking for $ac_header" >&5
38436 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
38437 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
38438   echo $ECHO_N "(cached) $ECHO_C" >&6
38439 fi
38440 ac_res=`eval echo '${'$as_ac_Header'}'`
38441                { echo "$as_me:$LINENO: result: $ac_res" >&5
38442 echo "${ECHO_T}$ac_res" >&6; }
38443 else
38444   # Is the header compilable?
38445 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
38446 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
38447 cat >conftest.$ac_ext <<_ACEOF
38448 /* confdefs.h.  */
38449 _ACEOF
38450 cat confdefs.h >>conftest.$ac_ext
38451 cat >>conftest.$ac_ext <<_ACEOF
38452 /* end confdefs.h.  */
38453 $ac_includes_default
38454 #include <$ac_header>
38455 _ACEOF
38456 rm -f conftest.$ac_objext
38457 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38458   (eval $ac_compile) 2>conftest.er1
38459   ac_status=$?
38460   grep -v '^ *+' conftest.er1 >conftest.err
38461   rm -f conftest.er1
38462   cat conftest.err >&5
38463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38464   (exit $ac_status); } &&
38465          { ac_try='test -z "$ac_c_werror_flag"
38466                          || test ! -s conftest.err'
38467   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38468   (eval $ac_try) 2>&5
38469   ac_status=$?
38470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38471   (exit $ac_status); }; } &&
38472          { ac_try='test -s conftest.$ac_objext'
38473   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38474   (eval $ac_try) 2>&5
38475   ac_status=$?
38476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38477   (exit $ac_status); }; }; then
38478   ac_header_compiler=yes
38479 else
38480   echo "$as_me: failed program was:" >&5
38481 sed 's/^/| /' conftest.$ac_ext >&5
38482
38483         ac_header_compiler=no
38484 fi
38485
38486 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38487 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38488 echo "${ECHO_T}$ac_header_compiler" >&6; }
38489
38490 # Is the header present?
38491 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
38492 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
38493 cat >conftest.$ac_ext <<_ACEOF
38494 /* confdefs.h.  */
38495 _ACEOF
38496 cat confdefs.h >>conftest.$ac_ext
38497 cat >>conftest.$ac_ext <<_ACEOF
38498 /* end confdefs.h.  */
38499 #include <$ac_header>
38500 _ACEOF
38501 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38502   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
38503   ac_status=$?
38504   grep -v '^ *+' conftest.er1 >conftest.err
38505   rm -f conftest.er1
38506   cat conftest.err >&5
38507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38508   (exit $ac_status); } >/dev/null; then
38509   if test -s conftest.err; then
38510     ac_cpp_err=$ac_c_preproc_warn_flag
38511     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
38512   else
38513     ac_cpp_err=
38514   fi
38515 else
38516   ac_cpp_err=yes
38517 fi
38518 if test -z "$ac_cpp_err"; then
38519   ac_header_preproc=yes
38520 else
38521   echo "$as_me: failed program was:" >&5
38522 sed 's/^/| /' conftest.$ac_ext >&5
38523
38524   ac_header_preproc=no
38525 fi
38526
38527 rm -f conftest.err conftest.$ac_ext
38528 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38529 echo "${ECHO_T}$ac_header_preproc" >&6; }
38530
38531 # So?  What about this header?
38532 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38533   yes:no: )
38534     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38535 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
38536     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38537 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38538     ac_header_preproc=yes
38539     ;;
38540   no:yes:* )
38541     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38542 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
38543     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
38544 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
38545     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38546 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38547     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
38548 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
38549     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38550 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
38551     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38552 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
38553     ( cat <<\_ASBOX
38554 ## ------------------------------------ ##
38555 ## Report this to bug-coreutils@gnu.org ##
38556 ## ------------------------------------ ##
38557 _ASBOX
38558      ) | sed "s/^/$as_me: WARNING:     /" >&2
38559     ;;
38560 esac
38561 { echo "$as_me:$LINENO: checking for $ac_header" >&5
38562 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
38563 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
38564   echo $ECHO_N "(cached) $ECHO_C" >&6
38565 else
38566   eval "$as_ac_Header=\$ac_header_preproc"
38567 fi
38568 ac_res=`eval echo '${'$as_ac_Header'}'`
38569                { echo "$as_me:$LINENO: result: $ac_res" >&5
38570 echo "${ECHO_T}$ac_res" >&6; }
38571
38572 fi
38573 if test `eval echo '${'$as_ac_Header'}'` = yes; then
38574   cat >>confdefs.h <<_ACEOF
38575 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38576 _ACEOF
38577
38578 fi
38579
38580 done
38581
38582 { echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
38583 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; }
38584 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
38585   echo $ECHO_N "(cached) $ECHO_C" >&6
38586 else
38587   if test "$cross_compiling" = yes; then
38588   ac_cv_func_malloc_0_nonnull=no
38589 else
38590   cat >conftest.$ac_ext <<_ACEOF
38591 /* confdefs.h.  */
38592 _ACEOF
38593 cat confdefs.h >>conftest.$ac_ext
38594 cat >>conftest.$ac_ext <<_ACEOF
38595 /* end confdefs.h.  */
38596 #if STDC_HEADERS || HAVE_STDLIB_H
38597 # include <stdlib.h>
38598 #else
38599 char *malloc ();
38600 #endif
38601
38602 int
38603 main ()
38604 {
38605 return ! malloc (0);
38606   ;
38607   return 0;
38608 }
38609 _ACEOF
38610 rm -f conftest$ac_exeext
38611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38612   (eval $ac_link) 2>&5
38613   ac_status=$?
38614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38615   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
38616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38617   (eval $ac_try) 2>&5
38618   ac_status=$?
38619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38620   (exit $ac_status); }; }; then
38621   ac_cv_func_malloc_0_nonnull=yes
38622 else
38623   echo "$as_me: program exited with status $ac_status" >&5
38624 echo "$as_me: failed program was:" >&5
38625 sed 's/^/| /' conftest.$ac_ext >&5
38626
38627 ( exit $ac_status )
38628 ac_cv_func_malloc_0_nonnull=no
38629 fi
38630 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
38631 fi
38632
38633
38634 fi
38635 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
38636 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
38637 if test $ac_cv_func_malloc_0_nonnull = yes; then
38638
38639 cat >>confdefs.h <<\_ACEOF
38640 #define HAVE_MALLOC 1
38641 _ACEOF
38642
38643 else
38644   cat >>confdefs.h <<\_ACEOF
38645 #define HAVE_MALLOC 0
38646 _ACEOF
38647
38648    case " $LIBOBJS " in
38649   *" malloc.$ac_objext "* ) ;;
38650   *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
38651  ;;
38652 esac
38653
38654
38655 cat >>confdefs.h <<\_ACEOF
38656 #define malloc rpl_malloc
38657 _ACEOF
38658
38659 fi
38660
38661
38662
38663 { echo "$as_me:$LINENO: checking for working memcmp" >&5
38664 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
38665 if test "${ac_cv_func_memcmp_working+set}" = set; then
38666   echo $ECHO_N "(cached) $ECHO_C" >&6
38667 else
38668   if test "$cross_compiling" = yes; then
38669   ac_cv_func_memcmp_working=no
38670 else
38671   cat >conftest.$ac_ext <<_ACEOF
38672 /* confdefs.h.  */
38673 _ACEOF
38674 cat confdefs.h >>conftest.$ac_ext
38675 cat >>conftest.$ac_ext <<_ACEOF
38676 /* end confdefs.h.  */
38677 $ac_includes_default
38678 int
38679 main ()
38680 {
38681
38682   /* Some versions of memcmp are not 8-bit clean.  */
38683   char c0 = '\100', c1 = '\200', c2 = '\201';
38684   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
38685     return 1;
38686
38687   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
38688      or more and with at least one buffer not starting on a 4-byte boundary.
38689      William Lewis provided this test program.   */
38690   {
38691     char foo[21];
38692     char bar[21];
38693     int i;
38694     for (i = 0; i < 4; i++)
38695       {
38696         char *a = foo + i;
38697         char *b = bar + i;
38698         strcpy (a, "--------01111111");
38699         strcpy (b, "--------10000000");
38700         if (memcmp (a, b, 16) >= 0)
38701           return 1;
38702       }
38703     return 0;
38704   }
38705
38706   ;
38707   return 0;
38708 }
38709 _ACEOF
38710 rm -f conftest$ac_exeext
38711 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38712   (eval $ac_link) 2>&5
38713   ac_status=$?
38714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38715   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
38716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38717   (eval $ac_try) 2>&5
38718   ac_status=$?
38719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38720   (exit $ac_status); }; }; then
38721   ac_cv_func_memcmp_working=yes
38722 else
38723   echo "$as_me: program exited with status $ac_status" >&5
38724 echo "$as_me: failed program was:" >&5
38725 sed 's/^/| /' conftest.$ac_ext >&5
38726
38727 ( exit $ac_status )
38728 ac_cv_func_memcmp_working=no
38729 fi
38730 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
38731 fi
38732
38733
38734 fi
38735 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
38736 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
38737 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
38738   *" memcmp.$ac_objext "* ) ;;
38739   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
38740  ;;
38741 esac
38742
38743
38744
38745
38746   if test $ac_cv_func_memcmp_working = no; then
38747
38748 cat >>confdefs.h <<\_ACEOF
38749 #define memcmp rpl_memcmp
38750 _ACEOF
38751
38752     :
38753   fi
38754
38755
38756
38757
38758
38759
38760
38761
38762
38763
38764  nanosleep_save_libs=$LIBS
38765
38766  # Solaris 2.5.1 needs -lposix4 to get the nanosleep function.
38767  # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
38768  { echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
38769 echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6; }
38770 if test "${ac_cv_search_nanosleep+set}" = set; then
38771   echo $ECHO_N "(cached) $ECHO_C" >&6
38772 else
38773   ac_func_search_save_LIBS=$LIBS
38774 cat >conftest.$ac_ext <<_ACEOF
38775 /* confdefs.h.  */
38776 _ACEOF
38777 cat confdefs.h >>conftest.$ac_ext
38778 cat >>conftest.$ac_ext <<_ACEOF
38779 /* end confdefs.h.  */
38780
38781 /* Override any GCC internal prototype to avoid an error.
38782    Use char because int might match the return type of a GCC
38783    builtin and then its argument prototype would still apply.  */
38784 #ifdef __cplusplus
38785 extern "C"
38786 #endif
38787 char nanosleep ();
38788 int
38789 main ()
38790 {
38791 return nanosleep ();
38792   ;
38793   return 0;
38794 }
38795 _ACEOF
38796 for ac_lib in '' rt posix4; do
38797   if test -z "$ac_lib"; then
38798     ac_res="none required"
38799   else
38800     ac_res=-l$ac_lib
38801     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
38802   fi
38803   rm -f conftest.$ac_objext conftest$ac_exeext
38804 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38805   (eval $ac_link) 2>conftest.er1
38806   ac_status=$?
38807   grep -v '^ *+' conftest.er1 >conftest.err
38808   rm -f conftest.er1
38809   cat conftest.err >&5
38810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38811   (exit $ac_status); } &&
38812          { ac_try='test -z "$ac_c_werror_flag"
38813                          || test ! -s conftest.err'
38814   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38815   (eval $ac_try) 2>&5
38816   ac_status=$?
38817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38818   (exit $ac_status); }; } &&
38819          { ac_try='test -s conftest$ac_exeext'
38820   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38821   (eval $ac_try) 2>&5
38822   ac_status=$?
38823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38824   (exit $ac_status); }; }; then
38825   ac_cv_search_nanosleep=$ac_res
38826 else
38827   echo "$as_me: failed program was:" >&5
38828 sed 's/^/| /' conftest.$ac_ext >&5
38829
38830
38831 fi
38832
38833 rm -f conftest.err conftest.$ac_objext \
38834       conftest$ac_exeext
38835   if test "${ac_cv_search_nanosleep+set}" = set; then
38836   break
38837 fi
38838 done
38839 if test "${ac_cv_search_nanosleep+set}" = set; then
38840   :
38841 else
38842   ac_cv_search_nanosleep=no
38843 fi
38844 rm conftest.$ac_ext
38845 LIBS=$ac_func_search_save_LIBS
38846 fi
38847 { echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
38848 echo "${ECHO_T}$ac_cv_search_nanosleep" >&6; }
38849 ac_res=$ac_cv_search_nanosleep
38850 if test "$ac_res" != no; then
38851   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
38852   test "$ac_cv_search_nanosleep" = "none required" ||
38853                  LIB_NANOSLEEP=$ac_cv_search_nanosleep
38854 fi
38855
38856
38857
38858  { echo "$as_me:$LINENO: checking whether nanosleep works" >&5
38859 echo $ECHO_N "checking whether nanosleep works... $ECHO_C" >&6; }
38860 if test "${jm_cv_func_nanosleep_works+set}" = set; then
38861   echo $ECHO_N "(cached) $ECHO_C" >&6
38862 else
38863
38864
38865
38866
38867
38868   :
38869
38870
38871
38872
38873
38874    if test "$cross_compiling" = yes; then
38875          jm_cv_func_nanosleep_works=no
38876 else
38877   cat >conftest.$ac_ext <<_ACEOF
38878 /* confdefs.h.  */
38879 _ACEOF
38880 cat confdefs.h >>conftest.$ac_ext
38881 cat >>conftest.$ac_ext <<_ACEOF
38882 /* end confdefs.h.  */
38883
38884 #   if TIME_WITH_SYS_TIME
38885 #    include <sys/time.h>
38886 #    include <time.h>
38887 #   else
38888 #    if HAVE_SYS_TIME_H
38889 #     include <sys/time.h>
38890 #    else
38891 #     include <time.h>
38892 #    endif
38893 #   endif
38894
38895     int
38896     main ()
38897     {
38898       struct timespec ts_sleep, ts_remaining;
38899       ts_sleep.tv_sec = 0;
38900       ts_sleep.tv_nsec = 1;
38901       return nanosleep (&ts_sleep, &ts_remaining) != 0;
38902     }
38903
38904 _ACEOF
38905 rm -f conftest$ac_exeext
38906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38907   (eval $ac_link) 2>&5
38908   ac_status=$?
38909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38910   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
38911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38912   (eval $ac_try) 2>&5
38913   ac_status=$?
38914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38915   (exit $ac_status); }; }; then
38916   jm_cv_func_nanosleep_works=yes
38917 else
38918   echo "$as_me: program exited with status $ac_status" >&5
38919 echo "$as_me: failed program was:" >&5
38920 sed 's/^/| /' conftest.$ac_ext >&5
38921
38922 ( exit $ac_status )
38923 jm_cv_func_nanosleep_works=no
38924 fi
38925 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
38926 fi
38927
38928
38929
38930 fi
38931 { echo "$as_me:$LINENO: result: $jm_cv_func_nanosleep_works" >&5
38932 echo "${ECHO_T}$jm_cv_func_nanosleep_works" >&6; }
38933   if test $jm_cv_func_nanosleep_works = no; then
38934     case " $LIBOBJS " in
38935   *" nanosleep.$ac_objext "* ) ;;
38936   *) LIBOBJS="$LIBOBJS nanosleep.$ac_objext"
38937  ;;
38938 esac
38939
38940
38941 cat >>confdefs.h <<\_ACEOF
38942 #define nanosleep rpl_nanosleep
38943 _ACEOF
38944
38945
38946
38947   :
38948
38949
38950
38951
38952
38953
38954   fi
38955
38956  LIBS=$nanosleep_save_libs
38957
38958 { echo "$as_me:$LINENO: checking for SVID conformant putenv" >&5
38959 echo $ECHO_N "checking for SVID conformant putenv... $ECHO_C" >&6; }
38960 if test "${jm_cv_func_svid_putenv+set}" = set; then
38961   echo $ECHO_N "(cached) $ECHO_C" >&6
38962 else
38963   if test "$cross_compiling" = yes; then
38964              jm_cv_func_svid_putenv=no
38965 else
38966   cat >conftest.$ac_ext <<_ACEOF
38967 /* confdefs.h.  */
38968 _ACEOF
38969 cat confdefs.h >>conftest.$ac_ext
38970 cat >>conftest.$ac_ext <<_ACEOF
38971 /* end confdefs.h.  */
38972
38973     int
38974     main ()
38975     {
38976       /* Put it in env.  */
38977       if (putenv ("CONFTEST_putenv=val"))
38978         return 1;
38979
38980       /* Try to remove it.  */
38981       if (putenv ("CONFTEST_putenv"))
38982         return 1;
38983
38984       /* Make sure it was deleted.  */
38985       if (getenv ("CONFTEST_putenv") != 0)
38986         return 1;
38987
38988       return 0;
38989     }
38990
38991 _ACEOF
38992 rm -f conftest$ac_exeext
38993 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38994   (eval $ac_link) 2>&5
38995   ac_status=$?
38996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38997   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
38998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38999   (eval $ac_try) 2>&5
39000   ac_status=$?
39001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39002   (exit $ac_status); }; }; then
39003   jm_cv_func_svid_putenv=yes
39004 else
39005   echo "$as_me: program exited with status $ac_status" >&5
39006 echo "$as_me: failed program was:" >&5
39007 sed 's/^/| /' conftest.$ac_ext >&5
39008
39009 ( exit $ac_status )
39010 jm_cv_func_svid_putenv=no
39011 fi
39012 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39013 fi
39014
39015
39016
39017 fi
39018 { echo "$as_me:$LINENO: result: $jm_cv_func_svid_putenv" >&5
39019 echo "${ECHO_T}$jm_cv_func_svid_putenv" >&6; }
39020   if test $jm_cv_func_svid_putenv = no; then
39021     case " $LIBOBJS " in
39022   *" putenv.$ac_objext "* ) ;;
39023   *) LIBOBJS="$LIBOBJS putenv.$ac_objext"
39024  ;;
39025 esac
39026
39027
39028 cat >>confdefs.h <<\_ACEOF
39029 #define putenv rpl_putenv
39030 _ACEOF
39031
39032   fi
39033
39034
39035 for ac_header in stdlib.h
39036 do
39037 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
39038 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
39039   { echo "$as_me:$LINENO: checking for $ac_header" >&5
39040 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
39041 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
39042   echo $ECHO_N "(cached) $ECHO_C" >&6
39043 fi
39044 ac_res=`eval echo '${'$as_ac_Header'}'`
39045                { echo "$as_me:$LINENO: result: $ac_res" >&5
39046 echo "${ECHO_T}$ac_res" >&6; }
39047 else
39048   # Is the header compilable?
39049 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
39050 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
39051 cat >conftest.$ac_ext <<_ACEOF
39052 /* confdefs.h.  */
39053 _ACEOF
39054 cat confdefs.h >>conftest.$ac_ext
39055 cat >>conftest.$ac_ext <<_ACEOF
39056 /* end confdefs.h.  */
39057 $ac_includes_default
39058 #include <$ac_header>
39059 _ACEOF
39060 rm -f conftest.$ac_objext
39061 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39062   (eval $ac_compile) 2>conftest.er1
39063   ac_status=$?
39064   grep -v '^ *+' conftest.er1 >conftest.err
39065   rm -f conftest.er1
39066   cat conftest.err >&5
39067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39068   (exit $ac_status); } &&
39069          { ac_try='test -z "$ac_c_werror_flag"
39070                          || test ! -s conftest.err'
39071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39072   (eval $ac_try) 2>&5
39073   ac_status=$?
39074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39075   (exit $ac_status); }; } &&
39076          { ac_try='test -s conftest.$ac_objext'
39077   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39078   (eval $ac_try) 2>&5
39079   ac_status=$?
39080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39081   (exit $ac_status); }; }; then
39082   ac_header_compiler=yes
39083 else
39084   echo "$as_me: failed program was:" >&5
39085 sed 's/^/| /' conftest.$ac_ext >&5
39086
39087         ac_header_compiler=no
39088 fi
39089
39090 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39091 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39092 echo "${ECHO_T}$ac_header_compiler" >&6; }
39093
39094 # Is the header present?
39095 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
39096 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
39097 cat >conftest.$ac_ext <<_ACEOF
39098 /* confdefs.h.  */
39099 _ACEOF
39100 cat confdefs.h >>conftest.$ac_ext
39101 cat >>conftest.$ac_ext <<_ACEOF
39102 /* end confdefs.h.  */
39103 #include <$ac_header>
39104 _ACEOF
39105 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
39106   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
39107   ac_status=$?
39108   grep -v '^ *+' conftest.er1 >conftest.err
39109   rm -f conftest.er1
39110   cat conftest.err >&5
39111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39112   (exit $ac_status); } >/dev/null; then
39113   if test -s conftest.err; then
39114     ac_cpp_err=$ac_c_preproc_warn_flag
39115     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
39116   else
39117     ac_cpp_err=
39118   fi
39119 else
39120   ac_cpp_err=yes
39121 fi
39122 if test -z "$ac_cpp_err"; then
39123   ac_header_preproc=yes
39124 else
39125   echo "$as_me: failed program was:" >&5
39126 sed 's/^/| /' conftest.$ac_ext >&5
39127
39128   ac_header_preproc=no
39129 fi
39130
39131 rm -f conftest.err conftest.$ac_ext
39132 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
39133 echo "${ECHO_T}$ac_header_preproc" >&6; }
39134
39135 # So?  What about this header?
39136 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
39137   yes:no: )
39138     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
39139 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
39140     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
39141 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
39142     ac_header_preproc=yes
39143     ;;
39144   no:yes:* )
39145     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
39146 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
39147     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
39148 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
39149     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
39150 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
39151     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
39152 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
39153     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
39154 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
39155     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
39156 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
39157     ( cat <<\_ASBOX
39158 ## ------------------------------------ ##
39159 ## Report this to bug-coreutils@gnu.org ##
39160 ## ------------------------------------ ##
39161 _ASBOX
39162      ) | sed "s/^/$as_me: WARNING:     /" >&2
39163     ;;
39164 esac
39165 { echo "$as_me:$LINENO: checking for $ac_header" >&5
39166 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
39167 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
39168   echo $ECHO_N "(cached) $ECHO_C" >&6
39169 else
39170   eval "$as_ac_Header=\$ac_header_preproc"
39171 fi
39172 ac_res=`eval echo '${'$as_ac_Header'}'`
39173                { echo "$as_me:$LINENO: result: $ac_res" >&5
39174 echo "${ECHO_T}$ac_res" >&6; }
39175
39176 fi
39177 if test `eval echo '${'$as_ac_Header'}'` = yes; then
39178   cat >>confdefs.h <<_ACEOF
39179 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
39180 _ACEOF
39181
39182 fi
39183
39184 done
39185
39186 { echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
39187 echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6; }
39188 if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
39189   echo $ECHO_N "(cached) $ECHO_C" >&6
39190 else
39191   if test "$cross_compiling" = yes; then
39192   ac_cv_func_realloc_0_nonnull=no
39193 else
39194   cat >conftest.$ac_ext <<_ACEOF
39195 /* confdefs.h.  */
39196 _ACEOF
39197 cat confdefs.h >>conftest.$ac_ext
39198 cat >>conftest.$ac_ext <<_ACEOF
39199 /* end confdefs.h.  */
39200 #if STDC_HEADERS || HAVE_STDLIB_H
39201 # include <stdlib.h>
39202 #else
39203 char *realloc ();
39204 #endif
39205
39206 int
39207 main ()
39208 {
39209 return ! realloc (0, 0);
39210   ;
39211   return 0;
39212 }
39213 _ACEOF
39214 rm -f conftest$ac_exeext
39215 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39216   (eval $ac_link) 2>&5
39217   ac_status=$?
39218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39219   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39220   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39221   (eval $ac_try) 2>&5
39222   ac_status=$?
39223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39224   (exit $ac_status); }; }; then
39225   ac_cv_func_realloc_0_nonnull=yes
39226 else
39227   echo "$as_me: program exited with status $ac_status" >&5
39228 echo "$as_me: failed program was:" >&5
39229 sed 's/^/| /' conftest.$ac_ext >&5
39230
39231 ( exit $ac_status )
39232 ac_cv_func_realloc_0_nonnull=no
39233 fi
39234 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39235 fi
39236
39237
39238 fi
39239 { echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
39240 echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6; }
39241 if test $ac_cv_func_realloc_0_nonnull = yes; then
39242
39243 cat >>confdefs.h <<\_ACEOF
39244 #define HAVE_REALLOC 1
39245 _ACEOF
39246
39247 else
39248   cat >>confdefs.h <<\_ACEOF
39249 #define HAVE_REALLOC 0
39250 _ACEOF
39251
39252    case " $LIBOBJS " in
39253   *" realloc.$ac_objext "* ) ;;
39254   *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
39255  ;;
39256 esac
39257
39258
39259 cat >>confdefs.h <<\_ACEOF
39260 #define realloc rpl_realloc
39261 _ACEOF
39262
39263 fi
39264
39265
39266
39267 { echo "$as_me:$LINENO: checking whether utime accepts a null argument" >&5
39268 echo $ECHO_N "checking whether utime accepts a null argument... $ECHO_C" >&6; }
39269 if test "${ac_cv_func_utime_null+set}" = set; then
39270   echo $ECHO_N "(cached) $ECHO_C" >&6
39271 else
39272   rm -f conftest.data; >conftest.data
39273 # Sequent interprets utime(file, 0) to mean use start of epoch.  Wrong.
39274 if test "$cross_compiling" = yes; then
39275   ac_cv_func_utime_null=no
39276 else
39277   cat >conftest.$ac_ext <<_ACEOF
39278 /* confdefs.h.  */
39279 _ACEOF
39280 cat confdefs.h >>conftest.$ac_ext
39281 cat >>conftest.$ac_ext <<_ACEOF
39282 /* end confdefs.h.  */
39283 $ac_includes_default
39284 int
39285 main ()
39286 {
39287 struct stat s, t;
39288   return ! (stat ("conftest.data", &s) == 0
39289             && utime ("conftest.data", 0) == 0
39290             && stat ("conftest.data", &t) == 0
39291             && t.st_mtime >= s.st_mtime
39292             && t.st_mtime - s.st_mtime < 120);
39293   ;
39294   return 0;
39295 }
39296 _ACEOF
39297 rm -f conftest$ac_exeext
39298 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39299   (eval $ac_link) 2>&5
39300   ac_status=$?
39301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39302   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39303   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39304   (eval $ac_try) 2>&5
39305   ac_status=$?
39306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39307   (exit $ac_status); }; }; then
39308   ac_cv_func_utime_null=yes
39309 else
39310   echo "$as_me: program exited with status $ac_status" >&5
39311 echo "$as_me: failed program was:" >&5
39312 sed 's/^/| /' conftest.$ac_ext >&5
39313
39314 ( exit $ac_status )
39315 ac_cv_func_utime_null=no
39316 fi
39317 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39318 fi
39319
39320
39321 fi
39322 { echo "$as_me:$LINENO: result: $ac_cv_func_utime_null" >&5
39323 echo "${ECHO_T}$ac_cv_func_utime_null" >&6; }
39324 if test $ac_cv_func_utime_null = yes; then
39325
39326 cat >>confdefs.h <<\_ACEOF
39327 #define HAVE_UTIME_NULL 1
39328 _ACEOF
39329
39330 fi
39331 rm -f conftest.data
39332
39333
39334
39335   if test $ac_cv_func_utime_null = no; then
39336     case " $LIBOBJS " in
39337   *" utime.$ac_objext "* ) ;;
39338   *) LIBOBJS="$LIBOBJS utime.$ac_objext"
39339  ;;
39340 esac
39341
39342
39343 cat >>confdefs.h <<\_ACEOF
39344 #define utime rpl_utime
39345 _ACEOF
39346
39347
39348
39349   :
39350
39351
39352
39353
39354
39355
39356   { echo "$as_me:$LINENO: checking whether utimes accepts a null argument" >&5
39357 echo $ECHO_N "checking whether utimes accepts a null argument... $ECHO_C" >&6; }
39358 if test "${ac_cv_func_utimes_null+set}" = set; then
39359   echo $ECHO_N "(cached) $ECHO_C" >&6
39360 else
39361   rm -f conftest.data; > conftest.data
39362 if test "$cross_compiling" = yes; then
39363   ac_cv_func_utimes_null=no
39364 else
39365   cat >conftest.$ac_ext <<_ACEOF
39366 /* confdefs.h.  */
39367 _ACEOF
39368 cat confdefs.h >>conftest.$ac_ext
39369 cat >>conftest.$ac_ext <<_ACEOF
39370 /* end confdefs.h.  */
39371
39372 /* In case stat has been defined to rpl_stat, undef it here.  */
39373 #undef stat
39374 #include <sys/types.h>
39375 #include <sys/stat.h>
39376 #include <sys/time.h>
39377 int
39378 main () {
39379 struct stat s, t;
39380 return ! (stat ("conftest.data", &s) == 0
39381           && utimes ("conftest.data", 0) == 0
39382           && stat ("conftest.data", &t) == 0
39383           && t.st_mtime >= s.st_mtime
39384           && t.st_mtime - s.st_mtime < 120));
39385 }
39386 _ACEOF
39387 rm -f conftest$ac_exeext
39388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39389   (eval $ac_link) 2>&5
39390   ac_status=$?
39391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39392   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39394   (eval $ac_try) 2>&5
39395   ac_status=$?
39396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39397   (exit $ac_status); }; }; then
39398   ac_cv_func_utimes_null=yes
39399 else
39400   echo "$as_me: program exited with status $ac_status" >&5
39401 echo "$as_me: failed program was:" >&5
39402 sed 's/^/| /' conftest.$ac_ext >&5
39403
39404 ( exit $ac_status )
39405 ac_cv_func_utimes_null=no
39406 fi
39407 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39408 fi
39409
39410
39411 rm -f core core.* *.core
39412 fi
39413 { echo "$as_me:$LINENO: result: $ac_cv_func_utimes_null" >&5
39414 echo "${ECHO_T}$ac_cv_func_utimes_null" >&6; }
39415
39416     if test $ac_cv_func_utimes_null = yes; then
39417
39418 cat >>confdefs.h <<\_ACEOF
39419 #define HAVE_UTIMES_NULL 1
39420 _ACEOF
39421
39422     fi
39423
39424
39425
39426   fi
39427
39428
39429
39430
39431
39432
39433
39434
39435
39436
39437  { echo "$as_me:$LINENO: checking whether rename is broken" >&5
39438 echo $ECHO_N "checking whether rename is broken... $ECHO_C" >&6; }
39439 if test "${vb_cv_func_rename_trailing_slash_bug+set}" = set; then
39440   echo $ECHO_N "(cached) $ECHO_C" >&6
39441 else
39442
39443     rm -rf conftest.d1 conftest.d2
39444     mkdir conftest.d1 ||
39445       { { echo "$as_me:$LINENO: error: cannot create temporary directory" >&5
39446 echo "$as_me: error: cannot create temporary directory" >&2;}
39447    { (exit 1); exit 1; }; }
39448     if test "$cross_compiling" = yes; then
39449         vb_cv_func_rename_trailing_slash_bug=yes
39450 else
39451   cat >conftest.$ac_ext <<_ACEOF
39452 /* confdefs.h.  */
39453 _ACEOF
39454 cat confdefs.h >>conftest.$ac_ext
39455 cat >>conftest.$ac_ext <<_ACEOF
39456 /* end confdefs.h.  */
39457
39458 #       include <stdio.h>
39459 #       include <stdlib.h>
39460         int
39461         main ()
39462         {
39463           exit (rename ("conftest.d1/", "conftest.d2") ? 1 : 0);
39464         }
39465
39466 _ACEOF
39467 rm -f conftest$ac_exeext
39468 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39469   (eval $ac_link) 2>&5
39470   ac_status=$?
39471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39472   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39473   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39474   (eval $ac_try) 2>&5
39475   ac_status=$?
39476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39477   (exit $ac_status); }; }; then
39478   vb_cv_func_rename_trailing_slash_bug=no
39479 else
39480   echo "$as_me: program exited with status $ac_status" >&5
39481 echo "$as_me: failed program was:" >&5
39482 sed 's/^/| /' conftest.$ac_ext >&5
39483
39484 ( exit $ac_status )
39485 vb_cv_func_rename_trailing_slash_bug=yes
39486 fi
39487 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39488 fi
39489
39490
39491
39492       rm -rf conftest.d1 conftest.d2
39493
39494 fi
39495 { echo "$as_me:$LINENO: result: $vb_cv_func_rename_trailing_slash_bug" >&5
39496 echo "${ECHO_T}$vb_cv_func_rename_trailing_slash_bug" >&6; }
39497   if test $vb_cv_func_rename_trailing_slash_bug = yes; then
39498     case " $LIBOBJS " in
39499   *" rename.$ac_objext "* ) ;;
39500   *) LIBOBJS="$LIBOBJS rename.$ac_objext"
39501  ;;
39502 esac
39503
39504
39505 cat >>confdefs.h <<\_ACEOF
39506 #define rename rpl_rename
39507 _ACEOF
39508
39509
39510 cat >>confdefs.h <<\_ACEOF
39511 #define RENAME_TRAILING_SLASH_BUG 1
39512 _ACEOF
39513
39514     :
39515   fi
39516
39517
39518
39519
39520
39521
39522
39523
39524
39525
39526
39527
39528
39529   # No system provides these functions; compile them unconditionally.
39530   case " $LIBOBJS " in
39531   *" mkdirat.$ac_objext "* ) ;;
39532   *) LIBOBJS="$LIBOBJS mkdirat.$ac_objext"
39533  ;;
39534 esac
39535
39536   case " $LIBOBJS " in
39537   *" fchmodat.$ac_objext "* ) ;;
39538   *) LIBOBJS="$LIBOBJS fchmodat.$ac_objext"
39539  ;;
39540 esac
39541
39542
39543   case " $LIBOBJS " in
39544   *" openat-die.$ac_objext "* ) ;;
39545   *) LIBOBJS="$LIBOBJS openat-die.$ac_objext"
39546  ;;
39547 esac
39548
39549
39550
39551   :
39552
39553
39554
39555
39556
39557
39558   :
39559
39560
39561
39562
39563
39564
39565 for ac_func in openat
39566 do
39567 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39568 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39569 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39570 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39571   echo $ECHO_N "(cached) $ECHO_C" >&6
39572 else
39573   cat >conftest.$ac_ext <<_ACEOF
39574 /* confdefs.h.  */
39575 _ACEOF
39576 cat confdefs.h >>conftest.$ac_ext
39577 cat >>conftest.$ac_ext <<_ACEOF
39578 /* end confdefs.h.  */
39579 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39580    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39581 #define $ac_func innocuous_$ac_func
39582
39583 /* System header to define __stub macros and hopefully few prototypes,
39584     which can conflict with char $ac_func (); below.
39585     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39586     <limits.h> exists even on freestanding compilers.  */
39587
39588 #ifdef __STDC__
39589 # include <limits.h>
39590 #else
39591 # include <assert.h>
39592 #endif
39593
39594 #undef $ac_func
39595
39596 /* Override any GCC internal prototype to avoid an error.
39597    Use char because int might match the return type of a GCC
39598    builtin and then its argument prototype would still apply.  */
39599 #ifdef __cplusplus
39600 extern "C"
39601 #endif
39602 char $ac_func ();
39603 /* The GNU C library defines this for functions which it implements
39604     to always fail with ENOSYS.  Some functions are actually named
39605     something starting with __ and the normal name is an alias.  */
39606 #if defined __stub_$ac_func || defined __stub___$ac_func
39607 choke me
39608 #endif
39609
39610 int
39611 main ()
39612 {
39613 return $ac_func ();
39614   ;
39615   return 0;
39616 }
39617 _ACEOF
39618 rm -f conftest.$ac_objext conftest$ac_exeext
39619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39620   (eval $ac_link) 2>conftest.er1
39621   ac_status=$?
39622   grep -v '^ *+' conftest.er1 >conftest.err
39623   rm -f conftest.er1
39624   cat conftest.err >&5
39625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39626   (exit $ac_status); } &&
39627          { ac_try='test -z "$ac_c_werror_flag"
39628                          || test ! -s conftest.err'
39629   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39630   (eval $ac_try) 2>&5
39631   ac_status=$?
39632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39633   (exit $ac_status); }; } &&
39634          { ac_try='test -s conftest$ac_exeext'
39635   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39636   (eval $ac_try) 2>&5
39637   ac_status=$?
39638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39639   (exit $ac_status); }; }; then
39640   eval "$as_ac_var=yes"
39641 else
39642   echo "$as_me: failed program was:" >&5
39643 sed 's/^/| /' conftest.$ac_ext >&5
39644
39645         eval "$as_ac_var=no"
39646 fi
39647
39648 rm -f conftest.err conftest.$ac_objext \
39649       conftest$ac_exeext conftest.$ac_ext
39650 fi
39651 ac_res=`eval echo '${'$as_ac_var'}'`
39652                { echo "$as_me:$LINENO: result: $ac_res" >&5
39653 echo "${ECHO_T}$ac_res" >&6; }
39654 if test `eval echo '${'$as_ac_var'}'` = yes; then
39655   cat >>confdefs.h <<_ACEOF
39656 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39657 _ACEOF
39658
39659 else
39660   case " $LIBOBJS " in
39661   *" $ac_func.$ac_objext "* ) ;;
39662   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
39663  ;;
39664 esac
39665
39666 fi
39667 done
39668
39669
39670   case $ac_cv_func_openat in
39671   yes) ;;
39672   *)
39673
39674 cat >>confdefs.h <<\_ACEOF
39675 #define __OPENAT_PREFIX rpl_
39676 _ACEOF
39677
39678
39679
39680 ;;
39681   esac
39682
39683
39684
39685
39686       case " $LIBOBJS " in
39687   *" fts.$ac_objext "* ) ;;
39688   *) LIBOBJS="$LIBOBJS fts.$ac_objext"
39689  ;;
39690 esac
39691
39692
39693
39694
39695   # Checks for header files.
39696
39697
39698   :
39699
39700
39701
39702
39703
39704
39705
39706
39707
39708
39709
39710
39711   case " $LIBOBJS " in
39712   *" memcasecmp.$ac_objext "* ) ;;
39713   *) LIBOBJS="$LIBOBJS memcasecmp.$ac_objext"
39714  ;;
39715 esac
39716
39717
39718
39719
39720   :
39721
39722
39723
39724
39725
39726
39727
39728
39729   case " $LIBOBJS " in
39730   *" argmatch.$ac_objext "* ) ;;
39731   *) LIBOBJS="$LIBOBJS argmatch.$ac_objext"
39732  ;;
39733 esac
39734
39735
39736
39737
39738   case " $LIBOBJS " in
39739   *" cycle-check.$ac_objext "* ) ;;
39740   *) LIBOBJS="$LIBOBJS cycle-check.$ac_objext"
39741  ;;
39742 esac
39743
39744
39745
39746
39747
39748
39749   case " $LIBOBJS " in
39750   *" euidaccess-stat.$ac_objext "* ) ;;
39751   *) LIBOBJS="$LIBOBJS euidaccess-stat.$ac_objext"
39752  ;;
39753 esac
39754
39755
39756
39757   # We don't yet use c-stack.c.
39758   # AC_REQUIRE([gl_C_STACK])
39759
39760
39761
39762
39763
39764
39765
39766
39767
39768
39769
39770
39771
39772
39773
39774
39775
39776
39777
39778
39779
39780
39781
39782
39783
39784
39785
39786
39787
39788
39789
39790
39791
39792
39793
39794
39795
39796
39797
39798
39799
39800
39801
39802
39803
39804
39805
39806
39807
39808
39809
39810
39811
39812
39813
39814
39815
39816
39817
39818
39819
39820
39821
39822
39823
39824
39825
39826
39827
39828
39829
39830
39831
39832
39833
39834
39835
39836
39837
39838
39839
39840
39841
39842
39843
39844
39845
39846
39847
39848
39849
39850
39851
39852
39853
39854
39855
39856
39857
39858
39859
39860
39861
39862
39863
39864
39865
39866
39867
39868
39869
39870
39871
39872
39873
39874
39875
39876
39877
39878
39879
39880
39881
39882
39883
39884
39885
39886
39887
39888
39889
39890
39891
39892
39893
39894
39895
39896
39897
39898
39899
39900
39901
39902
39903
39904
39905
39906
39907
39908
39909
39910
39911
39912
39913
39914
39915
39916
39917
39918
39919
39920 ac_header_dirent=no
39921 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
39922   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
39923 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
39924 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
39925 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
39926   echo $ECHO_N "(cached) $ECHO_C" >&6
39927 else
39928   cat >conftest.$ac_ext <<_ACEOF
39929 /* confdefs.h.  */
39930 _ACEOF
39931 cat confdefs.h >>conftest.$ac_ext
39932 cat >>conftest.$ac_ext <<_ACEOF
39933 /* end confdefs.h.  */
39934 #include <sys/types.h>
39935 #include <$ac_hdr>
39936
39937 int
39938 main ()
39939 {
39940 if ((DIR *) 0)
39941 return 0;
39942   ;
39943   return 0;
39944 }
39945 _ACEOF
39946 rm -f conftest.$ac_objext
39947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39948   (eval $ac_compile) 2>conftest.er1
39949   ac_status=$?
39950   grep -v '^ *+' conftest.er1 >conftest.err
39951   rm -f conftest.er1
39952   cat conftest.err >&5
39953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39954   (exit $ac_status); } &&
39955          { ac_try='test -z "$ac_c_werror_flag"
39956                          || test ! -s conftest.err'
39957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39958   (eval $ac_try) 2>&5
39959   ac_status=$?
39960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39961   (exit $ac_status); }; } &&
39962          { ac_try='test -s conftest.$ac_objext'
39963   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39964   (eval $ac_try) 2>&5
39965   ac_status=$?
39966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39967   (exit $ac_status); }; }; then
39968   eval "$as_ac_Header=yes"
39969 else
39970   echo "$as_me: failed program was:" >&5
39971 sed 's/^/| /' conftest.$ac_ext >&5
39972
39973         eval "$as_ac_Header=no"
39974 fi
39975
39976 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39977 fi
39978 ac_res=`eval echo '${'$as_ac_Header'}'`
39979                { echo "$as_me:$LINENO: result: $ac_res" >&5
39980 echo "${ECHO_T}$ac_res" >&6; }
39981 if test `eval echo '${'$as_ac_Header'}'` = yes; then
39982   cat >>confdefs.h <<_ACEOF
39983 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
39984 _ACEOF
39985
39986 ac_header_dirent=$ac_hdr; break
39987 fi
39988
39989 done
39990 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
39991 if test $ac_header_dirent = dirent.h; then
39992   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
39993 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
39994 if test "${ac_cv_search_opendir+set}" = set; then
39995   echo $ECHO_N "(cached) $ECHO_C" >&6
39996 else
39997   ac_func_search_save_LIBS=$LIBS
39998 cat >conftest.$ac_ext <<_ACEOF
39999 /* confdefs.h.  */
40000 _ACEOF
40001 cat confdefs.h >>conftest.$ac_ext
40002 cat >>conftest.$ac_ext <<_ACEOF
40003 /* end confdefs.h.  */
40004
40005 /* Override any GCC internal prototype to avoid an error.
40006    Use char because int might match the return type of a GCC
40007    builtin and then its argument prototype would still apply.  */
40008 #ifdef __cplusplus
40009 extern "C"
40010 #endif
40011 char opendir ();
40012 int
40013 main ()
40014 {
40015 return opendir ();
40016   ;
40017   return 0;
40018 }
40019 _ACEOF
40020 for ac_lib in '' dir; do
40021   if test -z "$ac_lib"; then
40022     ac_res="none required"
40023   else
40024     ac_res=-l$ac_lib
40025     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
40026   fi
40027   rm -f conftest.$ac_objext conftest$ac_exeext
40028 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40029   (eval $ac_link) 2>conftest.er1
40030   ac_status=$?
40031   grep -v '^ *+' conftest.er1 >conftest.err
40032   rm -f conftest.er1
40033   cat conftest.err >&5
40034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40035   (exit $ac_status); } &&
40036          { ac_try='test -z "$ac_c_werror_flag"
40037                          || test ! -s conftest.err'
40038   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40039   (eval $ac_try) 2>&5
40040   ac_status=$?
40041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40042   (exit $ac_status); }; } &&
40043          { ac_try='test -s conftest$ac_exeext'
40044   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40045   (eval $ac_try) 2>&5
40046   ac_status=$?
40047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40048   (exit $ac_status); }; }; then
40049   ac_cv_search_opendir=$ac_res
40050 else
40051   echo "$as_me: failed program was:" >&5
40052 sed 's/^/| /' conftest.$ac_ext >&5
40053
40054
40055 fi
40056
40057 rm -f conftest.err conftest.$ac_objext \
40058       conftest$ac_exeext
40059   if test "${ac_cv_search_opendir+set}" = set; then
40060   break
40061 fi
40062 done
40063 if test "${ac_cv_search_opendir+set}" = set; then
40064   :
40065 else
40066   ac_cv_search_opendir=no
40067 fi
40068 rm conftest.$ac_ext
40069 LIBS=$ac_func_search_save_LIBS
40070 fi
40071 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
40072 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
40073 ac_res=$ac_cv_search_opendir
40074 if test "$ac_res" != no; then
40075   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
40076
40077 fi
40078
40079 else
40080   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
40081 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
40082 if test "${ac_cv_search_opendir+set}" = set; then
40083   echo $ECHO_N "(cached) $ECHO_C" >&6
40084 else
40085   ac_func_search_save_LIBS=$LIBS
40086 cat >conftest.$ac_ext <<_ACEOF
40087 /* confdefs.h.  */
40088 _ACEOF
40089 cat confdefs.h >>conftest.$ac_ext
40090 cat >>conftest.$ac_ext <<_ACEOF
40091 /* end confdefs.h.  */
40092
40093 /* Override any GCC internal prototype to avoid an error.
40094    Use char because int might match the return type of a GCC
40095    builtin and then its argument prototype would still apply.  */
40096 #ifdef __cplusplus
40097 extern "C"
40098 #endif
40099 char opendir ();
40100 int
40101 main ()
40102 {
40103 return opendir ();
40104   ;
40105   return 0;
40106 }
40107 _ACEOF
40108 for ac_lib in '' x; do
40109   if test -z "$ac_lib"; then
40110     ac_res="none required"
40111   else
40112     ac_res=-l$ac_lib
40113     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
40114   fi
40115   rm -f conftest.$ac_objext conftest$ac_exeext
40116 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40117   (eval $ac_link) 2>conftest.er1
40118   ac_status=$?
40119   grep -v '^ *+' conftest.er1 >conftest.err
40120   rm -f conftest.er1
40121   cat conftest.err >&5
40122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40123   (exit $ac_status); } &&
40124          { ac_try='test -z "$ac_c_werror_flag"
40125                          || test ! -s conftest.err'
40126   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40127   (eval $ac_try) 2>&5
40128   ac_status=$?
40129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40130   (exit $ac_status); }; } &&
40131          { ac_try='test -s conftest$ac_exeext'
40132   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40133   (eval $ac_try) 2>&5
40134   ac_status=$?
40135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40136   (exit $ac_status); }; }; then
40137   ac_cv_search_opendir=$ac_res
40138 else
40139   echo "$as_me: failed program was:" >&5
40140 sed 's/^/| /' conftest.$ac_ext >&5
40141
40142
40143 fi
40144
40145 rm -f conftest.err conftest.$ac_objext \
40146       conftest$ac_exeext
40147   if test "${ac_cv_search_opendir+set}" = set; then
40148   break
40149 fi
40150 done
40151 if test "${ac_cv_search_opendir+set}" = set; then
40152   :
40153 else
40154   ac_cv_search_opendir=no
40155 fi
40156 rm conftest.$ac_ext
40157 LIBS=$ac_func_search_save_LIBS
40158 fi
40159 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
40160 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
40161 ac_res=$ac_cv_search_opendir
40162 if test "$ac_res" != no; then
40163   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
40164
40165 fi
40166
40167 fi
40168
40169   dirfd_headers='
40170 #if HAVE_DIRENT_H
40171 # include <dirent.h>
40172 #else /* not HAVE_DIRENT_H */
40173 # define dirent direct
40174 # if HAVE_SYS_NDIR_H
40175 #  include <sys/ndir.h>
40176 # endif /* HAVE_SYS_NDIR_H */
40177 # if HAVE_SYS_DIR_H
40178 #  include <sys/dir.h>
40179 # endif /* HAVE_SYS_DIR_H */
40180 # if HAVE_NDIR_H
40181 #  include <ndir.h>
40182 # endif /* HAVE_NDIR_H */
40183 #endif /* HAVE_DIRENT_H */
40184 '
40185
40186 for ac_func in dirfd
40187 do
40188 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40189 { echo "$as_me:$LINENO: checking for $ac_func" >&5
40190 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
40191 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
40192   echo $ECHO_N "(cached) $ECHO_C" >&6
40193 else
40194   cat >conftest.$ac_ext <<_ACEOF
40195 /* confdefs.h.  */
40196 _ACEOF
40197 cat confdefs.h >>conftest.$ac_ext
40198 cat >>conftest.$ac_ext <<_ACEOF
40199 /* end confdefs.h.  */
40200 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40201    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40202 #define $ac_func innocuous_$ac_func
40203
40204 /* System header to define __stub macros and hopefully few prototypes,
40205     which can conflict with char $ac_func (); below.
40206     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40207     <limits.h> exists even on freestanding compilers.  */
40208
40209 #ifdef __STDC__
40210 # include <limits.h>
40211 #else
40212 # include <assert.h>
40213 #endif
40214
40215 #undef $ac_func
40216
40217 /* Override any GCC internal prototype to avoid an error.
40218    Use char because int might match the return type of a GCC
40219    builtin and then its argument prototype would still apply.  */
40220 #ifdef __cplusplus
40221 extern "C"
40222 #endif
40223 char $ac_func ();
40224 /* The GNU C library defines this for functions which it implements
40225     to always fail with ENOSYS.  Some functions are actually named
40226     something starting with __ and the normal name is an alias.  */
40227 #if defined __stub_$ac_func || defined __stub___$ac_func
40228 choke me
40229 #endif
40230
40231 int
40232 main ()
40233 {
40234 return $ac_func ();
40235   ;
40236   return 0;
40237 }
40238 _ACEOF
40239 rm -f conftest.$ac_objext conftest$ac_exeext
40240 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40241   (eval $ac_link) 2>conftest.er1
40242   ac_status=$?
40243   grep -v '^ *+' conftest.er1 >conftest.err
40244   rm -f conftest.er1
40245   cat conftest.err >&5
40246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40247   (exit $ac_status); } &&
40248          { ac_try='test -z "$ac_c_werror_flag"
40249                          || test ! -s conftest.err'
40250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40251   (eval $ac_try) 2>&5
40252   ac_status=$?
40253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40254   (exit $ac_status); }; } &&
40255          { ac_try='test -s conftest$ac_exeext'
40256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40257   (eval $ac_try) 2>&5
40258   ac_status=$?
40259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40260   (exit $ac_status); }; }; then
40261   eval "$as_ac_var=yes"
40262 else
40263   echo "$as_me: failed program was:" >&5
40264 sed 's/^/| /' conftest.$ac_ext >&5
40265
40266         eval "$as_ac_var=no"
40267 fi
40268
40269 rm -f conftest.err conftest.$ac_objext \
40270       conftest$ac_exeext conftest.$ac_ext
40271 fi
40272 ac_res=`eval echo '${'$as_ac_var'}'`
40273                { echo "$as_me:$LINENO: result: $ac_res" >&5
40274 echo "${ECHO_T}$ac_res" >&6; }
40275 if test `eval echo '${'$as_ac_var'}'` = yes; then
40276   cat >>confdefs.h <<_ACEOF
40277 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40278 _ACEOF
40279
40280 fi
40281 done
40282
40283   { echo "$as_me:$LINENO: checking whether dirfd is declared" >&5
40284 echo $ECHO_N "checking whether dirfd is declared... $ECHO_C" >&6; }
40285 if test "${ac_cv_have_decl_dirfd+set}" = set; then
40286   echo $ECHO_N "(cached) $ECHO_C" >&6
40287 else
40288   cat >conftest.$ac_ext <<_ACEOF
40289 /* confdefs.h.  */
40290 _ACEOF
40291 cat confdefs.h >>conftest.$ac_ext
40292 cat >>conftest.$ac_ext <<_ACEOF
40293 /* end confdefs.h.  */
40294 $dirfd_headers
40295
40296 int
40297 main ()
40298 {
40299 #ifndef dirfd
40300   char *p = (char *) dirfd;
40301   return !p;
40302 #endif
40303
40304   ;
40305   return 0;
40306 }
40307 _ACEOF
40308 rm -f conftest.$ac_objext
40309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40310   (eval $ac_compile) 2>conftest.er1
40311   ac_status=$?
40312   grep -v '^ *+' conftest.er1 >conftest.err
40313   rm -f conftest.er1
40314   cat conftest.err >&5
40315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40316   (exit $ac_status); } &&
40317          { ac_try='test -z "$ac_c_werror_flag"
40318                          || test ! -s conftest.err'
40319   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40320   (eval $ac_try) 2>&5
40321   ac_status=$?
40322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40323   (exit $ac_status); }; } &&
40324          { ac_try='test -s conftest.$ac_objext'
40325   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40326   (eval $ac_try) 2>&5
40327   ac_status=$?
40328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40329   (exit $ac_status); }; }; then
40330   ac_cv_have_decl_dirfd=yes
40331 else
40332   echo "$as_me: failed program was:" >&5
40333 sed 's/^/| /' conftest.$ac_ext >&5
40334
40335         ac_cv_have_decl_dirfd=no
40336 fi
40337
40338 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40339 fi
40340 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_dirfd" >&5
40341 echo "${ECHO_T}$ac_cv_have_decl_dirfd" >&6; }
40342 if test $ac_cv_have_decl_dirfd = yes; then
40343
40344 cat >>confdefs.h <<_ACEOF
40345 #define HAVE_DECL_DIRFD 1
40346 _ACEOF
40347
40348
40349 else
40350   cat >>confdefs.h <<_ACEOF
40351 #define HAVE_DECL_DIRFD 0
40352 _ACEOF
40353
40354
40355 fi
40356
40357
40358
40359   { echo "$as_me:$LINENO: checking whether dirfd is a macro" >&5
40360 echo $ECHO_N "checking whether dirfd is a macro... $ECHO_C" >&6; }
40361 if test "${gl_cv_func_dirfd_macro+set}" = set; then
40362   echo $ECHO_N "(cached) $ECHO_C" >&6
40363 else
40364   cat >conftest.$ac_ext <<_ACEOF
40365 /* confdefs.h.  */
40366 _ACEOF
40367 cat confdefs.h >>conftest.$ac_ext
40368 cat >>conftest.$ac_ext <<_ACEOF
40369 /* end confdefs.h.  */
40370 $dirfd_headers
40371 #ifdef dirfd
40372  dirent_header_defines_dirfd
40373 #endif
40374 _ACEOF
40375 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40376   $EGREP "dirent_header_defines_dirfd" >/dev/null 2>&1; then
40377   gl_cv_func_dirfd_macro=yes
40378 else
40379   gl_cv_func_dirfd_macro=no
40380 fi
40381 rm -f conftest*
40382
40383 fi
40384 { echo "$as_me:$LINENO: result: $gl_cv_func_dirfd_macro" >&5
40385 echo "${ECHO_T}$gl_cv_func_dirfd_macro" >&6; }
40386
40387   # Use the replacement only if we have no function, macro,
40388   # or declaration with that name.
40389   if test $ac_cv_func_dirfd,$ac_cv_have_decl_dirfd,$gl_cv_func_dirfd_macro \
40390       = no,no,no; then
40391
40392 for ac_func in dirfd
40393 do
40394 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40395 { echo "$as_me:$LINENO: checking for $ac_func" >&5
40396 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
40397 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
40398   echo $ECHO_N "(cached) $ECHO_C" >&6
40399 else
40400   cat >conftest.$ac_ext <<_ACEOF
40401 /* confdefs.h.  */
40402 _ACEOF
40403 cat confdefs.h >>conftest.$ac_ext
40404 cat >>conftest.$ac_ext <<_ACEOF
40405 /* end confdefs.h.  */
40406 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40407    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40408 #define $ac_func innocuous_$ac_func
40409
40410 /* System header to define __stub macros and hopefully few prototypes,
40411     which can conflict with char $ac_func (); below.
40412     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40413     <limits.h> exists even on freestanding compilers.  */
40414
40415 #ifdef __STDC__
40416 # include <limits.h>
40417 #else
40418 # include <assert.h>
40419 #endif
40420
40421 #undef $ac_func
40422
40423 /* Override any GCC internal prototype to avoid an error.
40424    Use char because int might match the return type of a GCC
40425    builtin and then its argument prototype would still apply.  */
40426 #ifdef __cplusplus
40427 extern "C"
40428 #endif
40429 char $ac_func ();
40430 /* The GNU C library defines this for functions which it implements
40431     to always fail with ENOSYS.  Some functions are actually named
40432     something starting with __ and the normal name is an alias.  */
40433 #if defined __stub_$ac_func || defined __stub___$ac_func
40434 choke me
40435 #endif
40436
40437 int
40438 main ()
40439 {
40440 return $ac_func ();
40441   ;
40442   return 0;
40443 }
40444 _ACEOF
40445 rm -f conftest.$ac_objext conftest$ac_exeext
40446 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40447   (eval $ac_link) 2>conftest.er1
40448   ac_status=$?
40449   grep -v '^ *+' conftest.er1 >conftest.err
40450   rm -f conftest.er1
40451   cat conftest.err >&5
40452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40453   (exit $ac_status); } &&
40454          { ac_try='test -z "$ac_c_werror_flag"
40455                          || test ! -s conftest.err'
40456   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40457   (eval $ac_try) 2>&5
40458   ac_status=$?
40459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40460   (exit $ac_status); }; } &&
40461          { ac_try='test -s conftest$ac_exeext'
40462   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40463   (eval $ac_try) 2>&5
40464   ac_status=$?
40465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40466   (exit $ac_status); }; }; then
40467   eval "$as_ac_var=yes"
40468 else
40469   echo "$as_me: failed program was:" >&5
40470 sed 's/^/| /' conftest.$ac_ext >&5
40471
40472         eval "$as_ac_var=no"
40473 fi
40474
40475 rm -f conftest.err conftest.$ac_objext \
40476       conftest$ac_exeext conftest.$ac_ext
40477 fi
40478 ac_res=`eval echo '${'$as_ac_var'}'`
40479                { echo "$as_me:$LINENO: result: $ac_res" >&5
40480 echo "${ECHO_T}$ac_res" >&6; }
40481 if test `eval echo '${'$as_ac_var'}'` = yes; then
40482   cat >>confdefs.h <<_ACEOF
40483 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40484 _ACEOF
40485
40486 else
40487   case " $LIBOBJS " in
40488   *" $ac_func.$ac_objext "* ) ;;
40489   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
40490  ;;
40491 esac
40492
40493 fi
40494 done
40495
40496
40497     { echo "$as_me:$LINENO: checking how to get the file descriptor associated with an open DIR*" >&5
40498 echo $ECHO_N "checking how to get the file descriptor associated with an open DIR*... $ECHO_C" >&6; }
40499 if test "${gl_cv_sys_dir_fd_member_name+set}" = set; then
40500   echo $ECHO_N "(cached) $ECHO_C" >&6
40501 else
40502
40503         dirfd_save_CFLAGS=$CFLAGS
40504         for ac_expr in d_fd dd_fd; do
40505
40506           CFLAGS="$CFLAGS -DDIR_FD_MEMBER_NAME=$ac_expr"
40507           cat >conftest.$ac_ext <<_ACEOF
40508 /* confdefs.h.  */
40509 _ACEOF
40510 cat confdefs.h >>conftest.$ac_ext
40511 cat >>conftest.$ac_ext <<_ACEOF
40512 /* end confdefs.h.  */
40513 $dirfd_headers
40514
40515 int
40516 main ()
40517 {
40518 DIR *dir_p = opendir("."); (void) dir_p->DIR_FD_MEMBER_NAME;
40519   ;
40520   return 0;
40521 }
40522 _ACEOF
40523 rm -f conftest.$ac_objext
40524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40525   (eval $ac_compile) 2>conftest.er1
40526   ac_status=$?
40527   grep -v '^ *+' conftest.er1 >conftest.err
40528   rm -f conftest.er1
40529   cat conftest.err >&5
40530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40531   (exit $ac_status); } &&
40532          { ac_try='test -z "$ac_c_werror_flag"
40533                          || test ! -s conftest.err'
40534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40535   (eval $ac_try) 2>&5
40536   ac_status=$?
40537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40538   (exit $ac_status); }; } &&
40539          { ac_try='test -s conftest.$ac_objext'
40540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40541   (eval $ac_try) 2>&5
40542   ac_status=$?
40543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40544   (exit $ac_status); }; }; then
40545   dir_fd_found=yes
40546
40547 else
40548   echo "$as_me: failed program was:" >&5
40549 sed 's/^/| /' conftest.$ac_ext >&5
40550
40551
40552 fi
40553
40554 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40555           CFLAGS=$dirfd_save_CFLAGS
40556           test "$dir_fd_found" = yes && break
40557         done
40558         test "$dir_fd_found" = yes || ac_expr=no_such_member
40559
40560         gl_cv_sys_dir_fd_member_name=$ac_expr
40561
40562
40563 fi
40564 { echo "$as_me:$LINENO: result: $gl_cv_sys_dir_fd_member_name" >&5
40565 echo "${ECHO_T}$gl_cv_sys_dir_fd_member_name" >&6; }
40566     if test $gl_cv_sys_dir_fd_member_name != no_such_member; then
40567
40568 cat >>confdefs.h <<_ACEOF
40569 #define DIR_FD_MEMBER_NAME $gl_cv_sys_dir_fd_member_name
40570 _ACEOF
40571
40572     fi
40573
40574
40575   fi
40576
40577
40578
40579   case " $LIBOBJS " in
40580   *" acl.$ac_objext "* ) ;;
40581   *) LIBOBJS="$LIBOBJS acl.$ac_objext"
40582  ;;
40583 esac
40584
40585
40586
40587 for ac_header in sys/acl.h
40588 do
40589 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
40590 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40591   { echo "$as_me:$LINENO: checking for $ac_header" >&5
40592 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
40593 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40594   echo $ECHO_N "(cached) $ECHO_C" >&6
40595 fi
40596 ac_res=`eval echo '${'$as_ac_Header'}'`
40597                { echo "$as_me:$LINENO: result: $ac_res" >&5
40598 echo "${ECHO_T}$ac_res" >&6; }
40599 else
40600   # Is the header compilable?
40601 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
40602 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
40603 cat >conftest.$ac_ext <<_ACEOF
40604 /* confdefs.h.  */
40605 _ACEOF
40606 cat confdefs.h >>conftest.$ac_ext
40607 cat >>conftest.$ac_ext <<_ACEOF
40608 /* end confdefs.h.  */
40609 $ac_includes_default
40610 #include <$ac_header>
40611 _ACEOF
40612 rm -f conftest.$ac_objext
40613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40614   (eval $ac_compile) 2>conftest.er1
40615   ac_status=$?
40616   grep -v '^ *+' conftest.er1 >conftest.err
40617   rm -f conftest.er1
40618   cat conftest.err >&5
40619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40620   (exit $ac_status); } &&
40621          { ac_try='test -z "$ac_c_werror_flag"
40622                          || test ! -s conftest.err'
40623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40624   (eval $ac_try) 2>&5
40625   ac_status=$?
40626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40627   (exit $ac_status); }; } &&
40628          { ac_try='test -s conftest.$ac_objext'
40629   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40630   (eval $ac_try) 2>&5
40631   ac_status=$?
40632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40633   (exit $ac_status); }; }; then
40634   ac_header_compiler=yes
40635 else
40636   echo "$as_me: failed program was:" >&5
40637 sed 's/^/| /' conftest.$ac_ext >&5
40638
40639         ac_header_compiler=no
40640 fi
40641
40642 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40643 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40644 echo "${ECHO_T}$ac_header_compiler" >&6; }
40645
40646 # Is the header present?
40647 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
40648 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
40649 cat >conftest.$ac_ext <<_ACEOF
40650 /* confdefs.h.  */
40651 _ACEOF
40652 cat confdefs.h >>conftest.$ac_ext
40653 cat >>conftest.$ac_ext <<_ACEOF
40654 /* end confdefs.h.  */
40655 #include <$ac_header>
40656 _ACEOF
40657 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
40658   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
40659   ac_status=$?
40660   grep -v '^ *+' conftest.er1 >conftest.err
40661   rm -f conftest.er1
40662   cat conftest.err >&5
40663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40664   (exit $ac_status); } >/dev/null; then
40665   if test -s conftest.err; then
40666     ac_cpp_err=$ac_c_preproc_warn_flag
40667     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
40668   else
40669     ac_cpp_err=
40670   fi
40671 else
40672   ac_cpp_err=yes
40673 fi
40674 if test -z "$ac_cpp_err"; then
40675   ac_header_preproc=yes
40676 else
40677   echo "$as_me: failed program was:" >&5
40678 sed 's/^/| /' conftest.$ac_ext >&5
40679
40680   ac_header_preproc=no
40681 fi
40682
40683 rm -f conftest.err conftest.$ac_ext
40684 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40685 echo "${ECHO_T}$ac_header_preproc" >&6; }
40686
40687 # So?  What about this header?
40688 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40689   yes:no: )
40690     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
40691 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
40692     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
40693 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
40694     ac_header_preproc=yes
40695     ;;
40696   no:yes:* )
40697     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
40698 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
40699     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
40700 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
40701     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
40702 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
40703     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
40704 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
40705     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
40706 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
40707     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
40708 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
40709     ( cat <<\_ASBOX
40710 ## ------------------------------------ ##
40711 ## Report this to bug-coreutils@gnu.org ##
40712 ## ------------------------------------ ##
40713 _ASBOX
40714      ) | sed "s/^/$as_me: WARNING:     /" >&2
40715     ;;
40716 esac
40717 { echo "$as_me:$LINENO: checking for $ac_header" >&5
40718 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
40719 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40720   echo $ECHO_N "(cached) $ECHO_C" >&6
40721 else
40722   eval "$as_ac_Header=\$ac_header_preproc"
40723 fi
40724 ac_res=`eval echo '${'$as_ac_Header'}'`
40725                { echo "$as_me:$LINENO: result: $ac_res" >&5
40726 echo "${ECHO_T}$ac_res" >&6; }
40727
40728 fi
40729 if test `eval echo '${'$as_ac_Header'}'` = yes; then
40730   cat >>confdefs.h <<_ACEOF
40731 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
40732 _ACEOF
40733
40734 fi
40735
40736 done
40737
40738   if test "$ac_cv_header_sys_acl_h" = yes; then
40739     use_acl=1
40740   else
40741     use_acl=0
40742   fi
40743
40744 cat >>confdefs.h <<_ACEOF
40745 #define USE_ACL $use_acl
40746 _ACEOF
40747
40748
40749 for ac_func in acl
40750 do
40751 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40752 { echo "$as_me:$LINENO: checking for $ac_func" >&5
40753 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
40754 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
40755   echo $ECHO_N "(cached) $ECHO_C" >&6
40756 else
40757   cat >conftest.$ac_ext <<_ACEOF
40758 /* confdefs.h.  */
40759 _ACEOF
40760 cat confdefs.h >>conftest.$ac_ext
40761 cat >>conftest.$ac_ext <<_ACEOF
40762 /* end confdefs.h.  */
40763 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40764    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40765 #define $ac_func innocuous_$ac_func
40766
40767 /* System header to define __stub macros and hopefully few prototypes,
40768     which can conflict with char $ac_func (); below.
40769     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40770     <limits.h> exists even on freestanding compilers.  */
40771
40772 #ifdef __STDC__
40773 # include <limits.h>
40774 #else
40775 # include <assert.h>
40776 #endif
40777
40778 #undef $ac_func
40779
40780 /* Override any GCC internal prototype to avoid an error.
40781    Use char because int might match the return type of a GCC
40782    builtin and then its argument prototype would still apply.  */
40783 #ifdef __cplusplus
40784 extern "C"
40785 #endif
40786 char $ac_func ();
40787 /* The GNU C library defines this for functions which it implements
40788     to always fail with ENOSYS.  Some functions are actually named
40789     something starting with __ and the normal name is an alias.  */
40790 #if defined __stub_$ac_func || defined __stub___$ac_func
40791 choke me
40792 #endif
40793
40794 int
40795 main ()
40796 {
40797 return $ac_func ();
40798   ;
40799   return 0;
40800 }
40801 _ACEOF
40802 rm -f conftest.$ac_objext conftest$ac_exeext
40803 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40804   (eval $ac_link) 2>conftest.er1
40805   ac_status=$?
40806   grep -v '^ *+' conftest.er1 >conftest.err
40807   rm -f conftest.er1
40808   cat conftest.err >&5
40809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40810   (exit $ac_status); } &&
40811          { ac_try='test -z "$ac_c_werror_flag"
40812                          || test ! -s conftest.err'
40813   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40814   (eval $ac_try) 2>&5
40815   ac_status=$?
40816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40817   (exit $ac_status); }; } &&
40818          { ac_try='test -s conftest$ac_exeext'
40819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40820   (eval $ac_try) 2>&5
40821   ac_status=$?
40822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40823   (exit $ac_status); }; }; then
40824   eval "$as_ac_var=yes"
40825 else
40826   echo "$as_me: failed program was:" >&5
40827 sed 's/^/| /' conftest.$ac_ext >&5
40828
40829         eval "$as_ac_var=no"
40830 fi
40831
40832 rm -f conftest.err conftest.$ac_objext \
40833       conftest$ac_exeext conftest.$ac_ext
40834 fi
40835 ac_res=`eval echo '${'$as_ac_var'}'`
40836                { echo "$as_me:$LINENO: result: $ac_res" >&5
40837 echo "${ECHO_T}$ac_res" >&6; }
40838 if test `eval echo '${'$as_ac_var'}'` = yes; then
40839   cat >>confdefs.h <<_ACEOF
40840 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40841 _ACEOF
40842
40843 fi
40844 done
40845
40846   ac_save_LIBS="$LIBS"
40847   { echo "$as_me:$LINENO: checking for library containing acl_get_file" >&5
40848 echo $ECHO_N "checking for library containing acl_get_file... $ECHO_C" >&6; }
40849 if test "${ac_cv_search_acl_get_file+set}" = set; then
40850   echo $ECHO_N "(cached) $ECHO_C" >&6
40851 else
40852   ac_func_search_save_LIBS=$LIBS
40853 cat >conftest.$ac_ext <<_ACEOF
40854 /* confdefs.h.  */
40855 _ACEOF
40856 cat confdefs.h >>conftest.$ac_ext
40857 cat >>conftest.$ac_ext <<_ACEOF
40858 /* end confdefs.h.  */
40859
40860 /* Override any GCC internal prototype to avoid an error.
40861    Use char because int might match the return type of a GCC
40862    builtin and then its argument prototype would still apply.  */
40863 #ifdef __cplusplus
40864 extern "C"
40865 #endif
40866 char acl_get_file ();
40867 int
40868 main ()
40869 {
40870 return acl_get_file ();
40871   ;
40872   return 0;
40873 }
40874 _ACEOF
40875 for ac_lib in '' acl; do
40876   if test -z "$ac_lib"; then
40877     ac_res="none required"
40878   else
40879     ac_res=-l$ac_lib
40880     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
40881   fi
40882   rm -f conftest.$ac_objext conftest$ac_exeext
40883 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40884   (eval $ac_link) 2>conftest.er1
40885   ac_status=$?
40886   grep -v '^ *+' conftest.er1 >conftest.err
40887   rm -f conftest.er1
40888   cat conftest.err >&5
40889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40890   (exit $ac_status); } &&
40891          { ac_try='test -z "$ac_c_werror_flag"
40892                          || test ! -s conftest.err'
40893   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40894   (eval $ac_try) 2>&5
40895   ac_status=$?
40896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40897   (exit $ac_status); }; } &&
40898          { ac_try='test -s conftest$ac_exeext'
40899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40900   (eval $ac_try) 2>&5
40901   ac_status=$?
40902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40903   (exit $ac_status); }; }; then
40904   ac_cv_search_acl_get_file=$ac_res
40905 else
40906   echo "$as_me: failed program was:" >&5
40907 sed 's/^/| /' conftest.$ac_ext >&5
40908
40909
40910 fi
40911
40912 rm -f conftest.err conftest.$ac_objext \
40913       conftest$ac_exeext
40914   if test "${ac_cv_search_acl_get_file+set}" = set; then
40915   break
40916 fi
40917 done
40918 if test "${ac_cv_search_acl_get_file+set}" = set; then
40919   :
40920 else
40921   ac_cv_search_acl_get_file=no
40922 fi
40923 rm conftest.$ac_ext
40924 LIBS=$ac_func_search_save_LIBS
40925 fi
40926 { echo "$as_me:$LINENO: result: $ac_cv_search_acl_get_file" >&5
40927 echo "${ECHO_T}$ac_cv_search_acl_get_file" >&6; }
40928 ac_res=$ac_cv_search_acl_get_file
40929 if test "$ac_res" != no; then
40930   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
40931   test "$ac_cv_search_acl_get_file" = "none required" ||
40932                   LIB_ACL=$ac_cv_search_acl_get_file
40933 fi
40934
40935
40936
40937 for ac_header in acl/libacl.h
40938 do
40939 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
40940 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40941   { echo "$as_me:$LINENO: checking for $ac_header" >&5
40942 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
40943 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40944   echo $ECHO_N "(cached) $ECHO_C" >&6
40945 fi
40946 ac_res=`eval echo '${'$as_ac_Header'}'`
40947                { echo "$as_me:$LINENO: result: $ac_res" >&5
40948 echo "${ECHO_T}$ac_res" >&6; }
40949 else
40950   # Is the header compilable?
40951 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
40952 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
40953 cat >conftest.$ac_ext <<_ACEOF
40954 /* confdefs.h.  */
40955 _ACEOF
40956 cat confdefs.h >>conftest.$ac_ext
40957 cat >>conftest.$ac_ext <<_ACEOF
40958 /* end confdefs.h.  */
40959 $ac_includes_default
40960 #include <$ac_header>
40961 _ACEOF
40962 rm -f conftest.$ac_objext
40963 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40964   (eval $ac_compile) 2>conftest.er1
40965   ac_status=$?
40966   grep -v '^ *+' conftest.er1 >conftest.err
40967   rm -f conftest.er1
40968   cat conftest.err >&5
40969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40970   (exit $ac_status); } &&
40971          { ac_try='test -z "$ac_c_werror_flag"
40972                          || test ! -s conftest.err'
40973   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40974   (eval $ac_try) 2>&5
40975   ac_status=$?
40976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40977   (exit $ac_status); }; } &&
40978          { ac_try='test -s conftest.$ac_objext'
40979   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40980   (eval $ac_try) 2>&5
40981   ac_status=$?
40982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40983   (exit $ac_status); }; }; then
40984   ac_header_compiler=yes
40985 else
40986   echo "$as_me: failed program was:" >&5
40987 sed 's/^/| /' conftest.$ac_ext >&5
40988
40989         ac_header_compiler=no
40990 fi
40991
40992 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40993 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40994 echo "${ECHO_T}$ac_header_compiler" >&6; }
40995
40996 # Is the header present?
40997 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
40998 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
40999 cat >conftest.$ac_ext <<_ACEOF
41000 /* confdefs.h.  */
41001 _ACEOF
41002 cat confdefs.h >>conftest.$ac_ext
41003 cat >>conftest.$ac_ext <<_ACEOF
41004 /* end confdefs.h.  */
41005 #include <$ac_header>
41006 _ACEOF
41007 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
41008   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
41009   ac_status=$?
41010   grep -v '^ *+' conftest.er1 >conftest.err
41011   rm -f conftest.er1
41012   cat conftest.err >&5
41013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41014   (exit $ac_status); } >/dev/null; then
41015   if test -s conftest.err; then
41016     ac_cpp_err=$ac_c_preproc_warn_flag
41017     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
41018   else
41019     ac_cpp_err=
41020   fi
41021 else
41022   ac_cpp_err=yes
41023 fi
41024 if test -z "$ac_cpp_err"; then
41025   ac_header_preproc=yes
41026 else
41027   echo "$as_me: failed program was:" >&5
41028 sed 's/^/| /' conftest.$ac_ext >&5
41029
41030   ac_header_preproc=no
41031 fi
41032
41033 rm -f conftest.err conftest.$ac_ext
41034 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41035 echo "${ECHO_T}$ac_header_preproc" >&6; }
41036
41037 # So?  What about this header?
41038 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41039   yes:no: )
41040     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
41041 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
41042     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
41043 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
41044     ac_header_preproc=yes
41045     ;;
41046   no:yes:* )
41047     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
41048 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
41049     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
41050 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
41051     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
41052 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
41053     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
41054 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
41055     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
41056 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
41057     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
41058 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
41059     ( cat <<\_ASBOX
41060 ## ------------------------------------ ##
41061 ## Report this to bug-coreutils@gnu.org ##
41062 ## ------------------------------------ ##
41063 _ASBOX
41064      ) | sed "s/^/$as_me: WARNING:     /" >&2
41065     ;;
41066 esac
41067 { echo "$as_me:$LINENO: checking for $ac_header" >&5
41068 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
41069 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
41070   echo $ECHO_N "(cached) $ECHO_C" >&6
41071 else
41072   eval "$as_ac_Header=\$ac_header_preproc"
41073 fi
41074 ac_res=`eval echo '${'$as_ac_Header'}'`
41075                { echo "$as_me:$LINENO: result: $ac_res" >&5
41076 echo "${ECHO_T}$ac_res" >&6; }
41077
41078 fi
41079 if test `eval echo '${'$as_ac_Header'}'` = yes; then
41080   cat >>confdefs.h <<_ACEOF
41081 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
41082 _ACEOF
41083
41084 fi
41085
41086 done
41087
41088
41089
41090
41091
41092
41093
41094
41095
41096
41097
41098
41099 for ac_func in acl_get_file acl_get_fd acl_set_file acl_set_fd \
41100                  acl_free acl_from_mode acl_from_text acl_to_text \
41101                  acl_delete_def_file acl_entries acl_extended_file
41102 do
41103 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41104 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41105 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41106 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41107   echo $ECHO_N "(cached) $ECHO_C" >&6
41108 else
41109   cat >conftest.$ac_ext <<_ACEOF
41110 /* confdefs.h.  */
41111 _ACEOF
41112 cat confdefs.h >>conftest.$ac_ext
41113 cat >>conftest.$ac_ext <<_ACEOF
41114 /* end confdefs.h.  */
41115 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41116    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41117 #define $ac_func innocuous_$ac_func
41118
41119 /* System header to define __stub macros and hopefully few prototypes,
41120     which can conflict with char $ac_func (); below.
41121     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41122     <limits.h> exists even on freestanding compilers.  */
41123
41124 #ifdef __STDC__
41125 # include <limits.h>
41126 #else
41127 # include <assert.h>
41128 #endif
41129
41130 #undef $ac_func
41131
41132 /* Override any GCC internal prototype to avoid an error.
41133    Use char because int might match the return type of a GCC
41134    builtin and then its argument prototype would still apply.  */
41135 #ifdef __cplusplus
41136 extern "C"
41137 #endif
41138 char $ac_func ();
41139 /* The GNU C library defines this for functions which it implements
41140     to always fail with ENOSYS.  Some functions are actually named
41141     something starting with __ and the normal name is an alias.  */
41142 #if defined __stub_$ac_func || defined __stub___$ac_func
41143 choke me
41144 #endif
41145
41146 int
41147 main ()
41148 {
41149 return $ac_func ();
41150   ;
41151   return 0;
41152 }
41153 _ACEOF
41154 rm -f conftest.$ac_objext conftest$ac_exeext
41155 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41156   (eval $ac_link) 2>conftest.er1
41157   ac_status=$?
41158   grep -v '^ *+' conftest.er1 >conftest.err
41159   rm -f conftest.er1
41160   cat conftest.err >&5
41161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41162   (exit $ac_status); } &&
41163          { ac_try='test -z "$ac_c_werror_flag"
41164                          || test ! -s conftest.err'
41165   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41166   (eval $ac_try) 2>&5
41167   ac_status=$?
41168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41169   (exit $ac_status); }; } &&
41170          { ac_try='test -s conftest$ac_exeext'
41171   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41172   (eval $ac_try) 2>&5
41173   ac_status=$?
41174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41175   (exit $ac_status); }; }; then
41176   eval "$as_ac_var=yes"
41177 else
41178   echo "$as_me: failed program was:" >&5
41179 sed 's/^/| /' conftest.$ac_ext >&5
41180
41181         eval "$as_ac_var=no"
41182 fi
41183
41184 rm -f conftest.err conftest.$ac_objext \
41185       conftest$ac_exeext conftest.$ac_ext
41186 fi
41187 ac_res=`eval echo '${'$as_ac_var'}'`
41188                { echo "$as_me:$LINENO: result: $ac_res" >&5
41189 echo "${ECHO_T}$ac_res" >&6; }
41190 if test `eval echo '${'$as_ac_var'}'` = yes; then
41191   cat >>confdefs.h <<_ACEOF
41192 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41193 _ACEOF
41194
41195 fi
41196 done
41197
41198   LIBS="$ac_save_LIBS"
41199
41200
41201 for ac_header in unistd.h
41202 do
41203 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
41204 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
41205   { echo "$as_me:$LINENO: checking for $ac_header" >&5
41206 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
41207 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
41208   echo $ECHO_N "(cached) $ECHO_C" >&6
41209 fi
41210 ac_res=`eval echo '${'$as_ac_Header'}'`
41211                { echo "$as_me:$LINENO: result: $ac_res" >&5
41212 echo "${ECHO_T}$ac_res" >&6; }
41213 else
41214   # Is the header compilable?
41215 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
41216 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
41217 cat >conftest.$ac_ext <<_ACEOF
41218 /* confdefs.h.  */
41219 _ACEOF
41220 cat confdefs.h >>conftest.$ac_ext
41221 cat >>conftest.$ac_ext <<_ACEOF
41222 /* end confdefs.h.  */
41223 $ac_includes_default
41224 #include <$ac_header>
41225 _ACEOF
41226 rm -f conftest.$ac_objext
41227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41228   (eval $ac_compile) 2>conftest.er1
41229   ac_status=$?
41230   grep -v '^ *+' conftest.er1 >conftest.err
41231   rm -f conftest.er1
41232   cat conftest.err >&5
41233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41234   (exit $ac_status); } &&
41235          { ac_try='test -z "$ac_c_werror_flag"
41236                          || test ! -s conftest.err'
41237   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41238   (eval $ac_try) 2>&5
41239   ac_status=$?
41240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41241   (exit $ac_status); }; } &&
41242          { ac_try='test -s conftest.$ac_objext'
41243   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41244   (eval $ac_try) 2>&5
41245   ac_status=$?
41246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41247   (exit $ac_status); }; }; then
41248   ac_header_compiler=yes
41249 else
41250   echo "$as_me: failed program was:" >&5
41251 sed 's/^/| /' conftest.$ac_ext >&5
41252
41253         ac_header_compiler=no
41254 fi
41255
41256 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41257 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41258 echo "${ECHO_T}$ac_header_compiler" >&6; }
41259
41260 # Is the header present?
41261 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
41262 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
41263 cat >conftest.$ac_ext <<_ACEOF
41264 /* confdefs.h.  */
41265 _ACEOF
41266 cat confdefs.h >>conftest.$ac_ext
41267 cat >>conftest.$ac_ext <<_ACEOF
41268 /* end confdefs.h.  */
41269 #include <$ac_header>
41270 _ACEOF
41271 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
41272   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
41273   ac_status=$?
41274   grep -v '^ *+' conftest.er1 >conftest.err
41275   rm -f conftest.er1
41276   cat conftest.err >&5
41277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41278   (exit $ac_status); } >/dev/null; then
41279   if test -s conftest.err; then
41280     ac_cpp_err=$ac_c_preproc_warn_flag
41281     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
41282   else
41283     ac_cpp_err=
41284   fi
41285 else
41286   ac_cpp_err=yes
41287 fi
41288 if test -z "$ac_cpp_err"; then
41289   ac_header_preproc=yes
41290 else
41291   echo "$as_me: failed program was:" >&5
41292 sed 's/^/| /' conftest.$ac_ext >&5
41293
41294   ac_header_preproc=no
41295 fi
41296
41297 rm -f conftest.err conftest.$ac_ext
41298 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41299 echo "${ECHO_T}$ac_header_preproc" >&6; }
41300
41301 # So?  What about this header?
41302 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41303   yes:no: )
41304     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
41305 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
41306     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
41307 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
41308     ac_header_preproc=yes
41309     ;;
41310   no:yes:* )
41311     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
41312 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
41313     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
41314 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
41315     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
41316 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
41317     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
41318 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
41319     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
41320 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
41321     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
41322 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
41323     ( cat <<\_ASBOX
41324 ## ------------------------------------ ##
41325 ## Report this to bug-coreutils@gnu.org ##
41326 ## ------------------------------------ ##
41327 _ASBOX
41328      ) | sed "s/^/$as_me: WARNING:     /" >&2
41329     ;;
41330 esac
41331 { echo "$as_me:$LINENO: checking for $ac_header" >&5
41332 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
41333 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
41334   echo $ECHO_N "(cached) $ECHO_C" >&6
41335 else
41336   eval "$as_ac_Header=\$ac_header_preproc"
41337 fi
41338 ac_res=`eval echo '${'$as_ac_Header'}'`
41339                { echo "$as_me:$LINENO: result: $ac_res" >&5
41340 echo "${ECHO_T}$ac_res" >&6; }
41341
41342 fi
41343 if test `eval echo '${'$as_ac_Header'}'` = yes; then
41344   cat >>confdefs.h <<_ACEOF
41345 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
41346 _ACEOF
41347
41348 fi
41349
41350 done
41351
41352 { echo "$as_me:$LINENO: checking for working chown" >&5
41353 echo $ECHO_N "checking for working chown... $ECHO_C" >&6; }
41354 if test "${ac_cv_func_chown_works+set}" = set; then
41355   echo $ECHO_N "(cached) $ECHO_C" >&6
41356 else
41357   if test "$cross_compiling" = yes; then
41358   ac_cv_func_chown_works=no
41359 else
41360   cat >conftest.$ac_ext <<_ACEOF
41361 /* confdefs.h.  */
41362 _ACEOF
41363 cat confdefs.h >>conftest.$ac_ext
41364 cat >>conftest.$ac_ext <<_ACEOF
41365 /* end confdefs.h.  */
41366 $ac_includes_default
41367 #include <fcntl.h>
41368
41369 int
41370 main ()
41371 {
41372   char *f = "conftest.chown";
41373   struct stat before, after;
41374
41375   if (creat (f, 0600) < 0)
41376     return 1;
41377   if (stat (f, &before) < 0)
41378     return 1;
41379   if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
41380     return 1;
41381   if (stat (f, &after) < 0)
41382     return 1;
41383   return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
41384
41385   ;
41386   return 0;
41387 }
41388 _ACEOF
41389 rm -f conftest$ac_exeext
41390 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41391   (eval $ac_link) 2>&5
41392   ac_status=$?
41393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41394   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
41395   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41396   (eval $ac_try) 2>&5
41397   ac_status=$?
41398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41399   (exit $ac_status); }; }; then
41400   ac_cv_func_chown_works=yes
41401 else
41402   echo "$as_me: program exited with status $ac_status" >&5
41403 echo "$as_me: failed program was:" >&5
41404 sed 's/^/| /' conftest.$ac_ext >&5
41405
41406 ( exit $ac_status )
41407 ac_cv_func_chown_works=no
41408 fi
41409 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
41410 fi
41411
41412
41413 rm -f conftest.chown
41414
41415 fi
41416 { echo "$as_me:$LINENO: result: $ac_cv_func_chown_works" >&5
41417 echo "${ECHO_T}$ac_cv_func_chown_works" >&6; }
41418 if test $ac_cv_func_chown_works = yes; then
41419
41420 cat >>confdefs.h <<\_ACEOF
41421 #define HAVE_CHOWN 1
41422 _ACEOF
41423
41424 fi
41425
41426
41427   { echo "$as_me:$LINENO: checking whether chown(2) dereferences symlinks" >&5
41428 echo $ECHO_N "checking whether chown(2) dereferences symlinks... $ECHO_C" >&6; }
41429 if test "${gl_cv_func_chown_follows_symlink+set}" = set; then
41430   echo $ECHO_N "(cached) $ECHO_C" >&6
41431 else
41432
41433       if test "$cross_compiling" = yes; then
41434   gl_cv_func_chown_follows_symlink=yes
41435
41436 else
41437   cat >conftest.$ac_ext <<_ACEOF
41438 /* confdefs.h.  */
41439 _ACEOF
41440 cat confdefs.h >>conftest.$ac_ext
41441 cat >>conftest.$ac_ext <<_ACEOF
41442 /* end confdefs.h.  */
41443
41444 #include <unistd.h>
41445 #include <stdlib.h>
41446 #include <errno.h>
41447
41448         int
41449         main ()
41450         {
41451           char const *dangling_symlink = "conftest.dangle";
41452
41453           unlink (dangling_symlink);
41454           if (symlink ("conftest.no-such", dangling_symlink))
41455             abort ();
41456
41457           /* Exit successfully on a conforming system,
41458              i.e., where chown must fail with ENOENT.  */
41459           exit ( ! (chown (dangling_symlink, getuid (), getgid ()) != 0
41460                     && errno == ENOENT));
41461         }
41462
41463 _ACEOF
41464 rm -f conftest$ac_exeext
41465 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41466   (eval $ac_link) 2>&5
41467   ac_status=$?
41468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41469   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
41470   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41471   (eval $ac_try) 2>&5
41472   ac_status=$?
41473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41474   (exit $ac_status); }; }; then
41475   gl_cv_func_chown_follows_symlink=yes
41476 else
41477   echo "$as_me: program exited with status $ac_status" >&5
41478 echo "$as_me: failed program was:" >&5
41479 sed 's/^/| /' conftest.$ac_ext >&5
41480
41481 ( exit $ac_status )
41482 gl_cv_func_chown_follows_symlink=no
41483 fi
41484 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
41485 fi
41486
41487
41488
41489
41490 fi
41491 { echo "$as_me:$LINENO: result: $gl_cv_func_chown_follows_symlink" >&5
41492 echo "${ECHO_T}$gl_cv_func_chown_follows_symlink" >&6; }
41493
41494   if test $gl_cv_func_chown_follows_symlink = no; then
41495
41496 cat >>confdefs.h <<\_ACEOF
41497 #define CHOWN_MODIFIES_SYMLINK 1
41498 _ACEOF
41499
41500   fi
41501
41502
41503
41504
41505
41506
41507   if test $ac_cv_func_chown_works = no; then
41508
41509 cat >>confdefs.h <<\_ACEOF
41510 #define CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE 1
41511 _ACEOF
41512
41513   fi
41514
41515   # If chown has either of the above problems, then we need the wrapper.
41516   if test $ac_cv_func_chown_works$gl_cv_func_chown_follows_symlink = yesyes; then
41517     : # no wrapper needed
41518   else
41519     case " $LIBOBJS " in
41520   *" chown.$ac_objext "* ) ;;
41521   *) LIBOBJS="$LIBOBJS chown.$ac_objext"
41522  ;;
41523 esac
41524
41525
41526 cat >>confdefs.h <<\_ACEOF
41527 #define chown rpl_chown
41528 _ACEOF
41529
41530
41531   { echo "$as_me:$LINENO: checking for fchown" >&5
41532 echo $ECHO_N "checking for fchown... $ECHO_C" >&6; }
41533 if test "${ac_cv_func_fchown+set}" = set; then
41534   echo $ECHO_N "(cached) $ECHO_C" >&6
41535 else
41536   cat >conftest.$ac_ext <<_ACEOF
41537 /* confdefs.h.  */
41538 _ACEOF
41539 cat confdefs.h >>conftest.$ac_ext
41540 cat >>conftest.$ac_ext <<_ACEOF
41541 /* end confdefs.h.  */
41542 /* Define fchown to an innocuous variant, in case <limits.h> declares fchown.
41543    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41544 #define fchown innocuous_fchown
41545
41546 /* System header to define __stub macros and hopefully few prototypes,
41547     which can conflict with char fchown (); below.
41548     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41549     <limits.h> exists even on freestanding compilers.  */
41550
41551 #ifdef __STDC__
41552 # include <limits.h>
41553 #else
41554 # include <assert.h>
41555 #endif
41556
41557 #undef fchown
41558
41559 /* Override any GCC internal prototype to avoid an error.
41560    Use char because int might match the return type of a GCC
41561    builtin and then its argument prototype would still apply.  */
41562 #ifdef __cplusplus
41563 extern "C"
41564 #endif
41565 char fchown ();
41566 /* The GNU C library defines this for functions which it implements
41567     to always fail with ENOSYS.  Some functions are actually named
41568     something starting with __ and the normal name is an alias.  */
41569 #if defined __stub_fchown || defined __stub___fchown
41570 choke me
41571 #endif
41572
41573 int
41574 main ()
41575 {
41576 return fchown ();
41577   ;
41578   return 0;
41579 }
41580 _ACEOF
41581 rm -f conftest.$ac_objext conftest$ac_exeext
41582 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41583   (eval $ac_link) 2>conftest.er1
41584   ac_status=$?
41585   grep -v '^ *+' conftest.er1 >conftest.err
41586   rm -f conftest.er1
41587   cat conftest.err >&5
41588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41589   (exit $ac_status); } &&
41590          { ac_try='test -z "$ac_c_werror_flag"
41591                          || test ! -s conftest.err'
41592   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41593   (eval $ac_try) 2>&5
41594   ac_status=$?
41595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41596   (exit $ac_status); }; } &&
41597          { ac_try='test -s conftest$ac_exeext'
41598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41599   (eval $ac_try) 2>&5
41600   ac_status=$?
41601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41602   (exit $ac_status); }; }; then
41603   ac_cv_func_fchown=yes
41604 else
41605   echo "$as_me: failed program was:" >&5
41606 sed 's/^/| /' conftest.$ac_ext >&5
41607
41608         ac_cv_func_fchown=no
41609 fi
41610
41611 rm -f conftest.err conftest.$ac_objext \
41612       conftest$ac_exeext conftest.$ac_ext
41613 fi
41614 { echo "$as_me:$LINENO: result: $ac_cv_func_fchown" >&5
41615 echo "${ECHO_T}$ac_cv_func_fchown" >&6; }
41616 if test $ac_cv_func_fchown = yes; then
41617   :
41618 else
41619   case " $LIBOBJS " in
41620   *" fchown-stub.$ac_objext "* ) ;;
41621   *) LIBOBJS="$LIBOBJS fchown-stub.$ac_objext"
41622  ;;
41623 esac
41624
41625 fi
41626
41627
41628   fi
41629
41630
41631
41632
41633
41634
41635
41636 for ac_func in lchown
41637 do
41638 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41639 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41640 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41641 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41642   echo $ECHO_N "(cached) $ECHO_C" >&6
41643 else
41644   cat >conftest.$ac_ext <<_ACEOF
41645 /* confdefs.h.  */
41646 _ACEOF
41647 cat confdefs.h >>conftest.$ac_ext
41648 cat >>conftest.$ac_ext <<_ACEOF
41649 /* end confdefs.h.  */
41650 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41651    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41652 #define $ac_func innocuous_$ac_func
41653
41654 /* System header to define __stub macros and hopefully few prototypes,
41655     which can conflict with char $ac_func (); below.
41656     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41657     <limits.h> exists even on freestanding compilers.  */
41658
41659 #ifdef __STDC__
41660 # include <limits.h>
41661 #else
41662 # include <assert.h>
41663 #endif
41664
41665 #undef $ac_func
41666
41667 /* Override any GCC internal prototype to avoid an error.
41668    Use char because int might match the return type of a GCC
41669    builtin and then its argument prototype would still apply.  */
41670 #ifdef __cplusplus
41671 extern "C"
41672 #endif
41673 char $ac_func ();
41674 /* The GNU C library defines this for functions which it implements
41675     to always fail with ENOSYS.  Some functions are actually named
41676     something starting with __ and the normal name is an alias.  */
41677 #if defined __stub_$ac_func || defined __stub___$ac_func
41678 choke me
41679 #endif
41680
41681 int
41682 main ()
41683 {
41684 return $ac_func ();
41685   ;
41686   return 0;
41687 }
41688 _ACEOF
41689 rm -f conftest.$ac_objext conftest$ac_exeext
41690 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41691   (eval $ac_link) 2>conftest.er1
41692   ac_status=$?
41693   grep -v '^ *+' conftest.er1 >conftest.err
41694   rm -f conftest.er1
41695   cat conftest.err >&5
41696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41697   (exit $ac_status); } &&
41698          { ac_try='test -z "$ac_c_werror_flag"
41699                          || test ! -s conftest.err'
41700   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41701   (eval $ac_try) 2>&5
41702   ac_status=$?
41703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41704   (exit $ac_status); }; } &&
41705          { ac_try='test -s conftest$ac_exeext'
41706   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41707   (eval $ac_try) 2>&5
41708   ac_status=$?
41709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41710   (exit $ac_status); }; }; then
41711   eval "$as_ac_var=yes"
41712 else
41713   echo "$as_me: failed program was:" >&5
41714 sed 's/^/| /' conftest.$ac_ext >&5
41715
41716         eval "$as_ac_var=no"
41717 fi
41718
41719 rm -f conftest.err conftest.$ac_objext \
41720       conftest$ac_exeext conftest.$ac_ext
41721 fi
41722 ac_res=`eval echo '${'$as_ac_var'}'`
41723                { echo "$as_me:$LINENO: result: $ac_res" >&5
41724 echo "${ECHO_T}$ac_res" >&6; }
41725 if test `eval echo '${'$as_ac_var'}'` = yes; then
41726   cat >>confdefs.h <<_ACEOF
41727 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41728 _ACEOF
41729
41730 else
41731   case " $LIBOBJS " in
41732   *" $ac_func.$ac_objext "* ) ;;
41733   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
41734  ;;
41735 esac
41736
41737 fi
41738 done
41739
41740
41741
41742   { echo "$as_me:$LINENO: checking for rmdir-not-empty errno value" >&5
41743 echo $ECHO_N "checking for rmdir-not-empty errno value... $ECHO_C" >&6; }
41744 if test "${gl_cv_func_rmdir_errno_not_empty+set}" = set; then
41745   echo $ECHO_N "(cached) $ECHO_C" >&6
41746 else
41747
41748       # Arrange for deletion of the temporary directory this test creates.
41749       ac_clean_files="$ac_clean_files confdir2"
41750       mkdir confdir2; : > confdir2/file
41751       if test "$cross_compiling" = yes; then
41752   gl_cv_func_rmdir_errno_not_empty=ENOTEMPTY
41753
41754 else
41755   cat >conftest.$ac_ext <<_ACEOF
41756 /* confdefs.h.  */
41757 _ACEOF
41758 cat confdefs.h >>conftest.$ac_ext
41759 cat >>conftest.$ac_ext <<_ACEOF
41760 /* end confdefs.h.  */
41761
41762 #include <stdio.h>
41763 #include <errno.h>
41764 #ifndef errno
41765 extern int errno;
41766 #endif
41767         int main ()
41768         {
41769           FILE *s;
41770           int val;
41771           rmdir ("confdir2");
41772           val = errno;
41773           s = fopen ("confdir2/errno", "w");
41774           fprintf (s, "%d\n", val);
41775           return 0;
41776         }
41777
41778 _ACEOF
41779 rm -f conftest$ac_exeext
41780 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41781   (eval $ac_link) 2>&5
41782   ac_status=$?
41783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41784   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
41785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41786   (eval $ac_try) 2>&5
41787   ac_status=$?
41788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41789   (exit $ac_status); }; }; then
41790   gl_cv_func_rmdir_errno_not_empty=`cat confdir2/errno`
41791 else
41792   echo "$as_me: program exited with status $ac_status" >&5
41793 echo "$as_me: failed program was:" >&5
41794 sed 's/^/| /' conftest.$ac_ext >&5
41795
41796 ( exit $ac_status )
41797 gl_cv_func_rmdir_errno_not_empty='configure error in rmdir-errno.m4'
41798 fi
41799 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
41800 fi
41801
41802
41803
41804
41805 fi
41806 { echo "$as_me:$LINENO: result: $gl_cv_func_rmdir_errno_not_empty" >&5
41807 echo "${ECHO_T}$gl_cv_func_rmdir_errno_not_empty" >&6; }
41808
41809
41810 cat >>confdefs.h <<_ACEOF
41811 #define RMDIR_ERRNO_NOT_EMPTY $gl_cv_func_rmdir_errno_not_empty
41812 _ACEOF
41813
41814
41815 { echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
41816 echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6; }
41817 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
41818   echo $ECHO_N "(cached) $ECHO_C" >&6
41819 else
41820   if test "$cross_compiling" = yes; then
41821   ac_cv_func_lstat_empty_string_bug=yes
41822 else
41823   cat >conftest.$ac_ext <<_ACEOF
41824 /* confdefs.h.  */
41825 _ACEOF
41826 cat confdefs.h >>conftest.$ac_ext
41827 cat >>conftest.$ac_ext <<_ACEOF
41828 /* end confdefs.h.  */
41829 $ac_includes_default
41830 int
41831 main ()
41832 {
41833 struct stat sbuf;
41834   return lstat ("", &sbuf) == 0;
41835   ;
41836   return 0;
41837 }
41838 _ACEOF
41839 rm -f conftest$ac_exeext
41840 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41841   (eval $ac_link) 2>&5
41842   ac_status=$?
41843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41844   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
41845   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41846   (eval $ac_try) 2>&5
41847   ac_status=$?
41848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41849   (exit $ac_status); }; }; then
41850   ac_cv_func_lstat_empty_string_bug=no
41851 else
41852   echo "$as_me: program exited with status $ac_status" >&5
41853 echo "$as_me: failed program was:" >&5
41854 sed 's/^/| /' conftest.$ac_ext >&5
41855
41856 ( exit $ac_status )
41857 ac_cv_func_lstat_empty_string_bug=yes
41858 fi
41859 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
41860 fi
41861
41862
41863 fi
41864 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
41865 echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6; }
41866 if test $ac_cv_func_lstat_empty_string_bug = yes; then
41867   case " $LIBOBJS " in
41868   *" lstat.$ac_objext "* ) ;;
41869   *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
41870  ;;
41871 esac
41872
41873
41874 cat >>confdefs.h <<_ACEOF
41875 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
41876 _ACEOF
41877
41878 fi
41879
41880
41881
41882
41883
41884
41885       { echo "$as_me:$LINENO: checking for group_member" >&5
41886 echo $ECHO_N "checking for group_member... $ECHO_C" >&6; }
41887 if test "${ac_cv_func_group_member+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.  */
41896 /* Define group_member to an innocuous variant, in case <limits.h> declares group_member.
41897    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41898 #define group_member innocuous_group_member
41899
41900 /* System header to define __stub macros and hopefully few prototypes,
41901     which can conflict with char group_member (); below.
41902     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41903     <limits.h> exists even on freestanding compilers.  */
41904
41905 #ifdef __STDC__
41906 # include <limits.h>
41907 #else
41908 # include <assert.h>
41909 #endif
41910
41911 #undef group_member
41912
41913 /* Override any GCC internal prototype to avoid an error.
41914    Use char because int might match the return type of a GCC
41915    builtin and then its argument prototype would still apply.  */
41916 #ifdef __cplusplus
41917 extern "C"
41918 #endif
41919 char group_member ();
41920 /* The GNU C library defines this for functions which it implements
41921     to always fail with ENOSYS.  Some functions are actually named
41922     something starting with __ and the normal name is an alias.  */
41923 #if defined __stub_group_member || defined __stub___group_member
41924 choke me
41925 #endif
41926
41927 int
41928 main ()
41929 {
41930 return group_member ();
41931   ;
41932   return 0;
41933 }
41934 _ACEOF
41935 rm -f conftest.$ac_objext conftest$ac_exeext
41936 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41937   (eval $ac_link) 2>conftest.er1
41938   ac_status=$?
41939   grep -v '^ *+' conftest.er1 >conftest.err
41940   rm -f conftest.er1
41941   cat conftest.err >&5
41942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41943   (exit $ac_status); } &&
41944          { ac_try='test -z "$ac_c_werror_flag"
41945                          || test ! -s conftest.err'
41946   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41947   (eval $ac_try) 2>&5
41948   ac_status=$?
41949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41950   (exit $ac_status); }; } &&
41951          { ac_try='test -s conftest$ac_exeext'
41952   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41953   (eval $ac_try) 2>&5
41954   ac_status=$?
41955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41956   (exit $ac_status); }; }; then
41957   ac_cv_func_group_member=yes
41958 else
41959   echo "$as_me: failed program was:" >&5
41960 sed 's/^/| /' conftest.$ac_ext >&5
41961
41962         ac_cv_func_group_member=no
41963 fi
41964
41965 rm -f conftest.err conftest.$ac_objext \
41966       conftest$ac_exeext conftest.$ac_ext
41967 fi
41968 { echo "$as_me:$LINENO: result: $ac_cv_func_group_member" >&5
41969 echo "${ECHO_T}$ac_cv_func_group_member" >&6; }
41970 if test $ac_cv_func_group_member = yes; then
41971   :
41972 else
41973
41974     case " $LIBOBJS " in
41975   *" group-member.$ac_objext "* ) ;;
41976   *) LIBOBJS="$LIBOBJS group-member.$ac_objext"
41977  ;;
41978 esac
41979
41980
41981
41982
41983
41984 fi
41985
41986
41987   { echo "$as_me:$LINENO: checking whether link(2) dereferences a symlink specified with a trailing slash" >&5
41988 echo $ECHO_N "checking whether link(2) dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
41989 if test "${jm_ac_cv_func_link_follows_symlink+set}" = set; then
41990   echo $ECHO_N "(cached) $ECHO_C" >&6
41991 else
41992
41993     # Create a regular file.
41994     echo > conftest.file
41995     if test "$cross_compiling" = yes; then
41996   jm_ac_cv_func_link_follows_symlink=yes
41997 else
41998   cat >conftest.$ac_ext <<_ACEOF
41999 /* confdefs.h.  */
42000 _ACEOF
42001 cat confdefs.h >>conftest.$ac_ext
42002 cat >>conftest.$ac_ext <<_ACEOF
42003 /* end confdefs.h.  */
42004
42005 #       include <sys/types.h>
42006 #       include <sys/stat.h>
42007 #       include <unistd.h>
42008
42009 #       define SAME_INODE(Stat_buf_1, Stat_buf_2) \
42010           ((Stat_buf_1).st_ino == (Stat_buf_2).st_ino \
42011            && (Stat_buf_1).st_dev == (Stat_buf_2).st_dev)
42012
42013         int
42014         main ()
42015         {
42016           const char *file = "conftest.file";
42017           const char *sym = "conftest.sym";
42018           const char *hard = "conftest.hard";
42019           struct stat sb_file, sb_hard;
42020
42021           /* Create a symlink to the regular file. */
42022           if (symlink (file, sym))
42023             abort ();
42024
42025           /* Create a hard link to that symlink.  */
42026           if (link (sym, hard))
42027             abort ();
42028
42029           if (lstat (hard, &sb_hard))
42030             abort ();
42031           if (lstat (file, &sb_file))
42032             abort ();
42033
42034           /* If the dev/inode of hard and file are the same, then
42035              the link call followed the symlink.  */
42036           return SAME_INODE (sb_hard, sb_file) ? 0 : 1;
42037         }
42038
42039 _ACEOF
42040 rm -f conftest$ac_exeext
42041 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42042   (eval $ac_link) 2>&5
42043   ac_status=$?
42044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42045   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
42046   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42047   (eval $ac_try) 2>&5
42048   ac_status=$?
42049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42050   (exit $ac_status); }; }; then
42051   jm_ac_cv_func_link_follows_symlink=yes
42052 else
42053   echo "$as_me: program exited with status $ac_status" >&5
42054 echo "$as_me: failed program was:" >&5
42055 sed 's/^/| /' conftest.$ac_ext >&5
42056
42057 ( exit $ac_status )
42058 jm_ac_cv_func_link_follows_symlink=no
42059 fi
42060 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
42061 fi
42062
42063
42064
42065 fi
42066 { echo "$as_me:$LINENO: result: $jm_ac_cv_func_link_follows_symlink" >&5
42067 echo "${ECHO_T}$jm_ac_cv_func_link_follows_symlink" >&6; }
42068   if test $jm_ac_cv_func_link_follows_symlink = yes; then
42069
42070 cat >>confdefs.h <<\_ACEOF
42071 #define LINK_FOLLOWS_SYMLINKS 1
42072 _ACEOF
42073
42074   fi
42075
42076
42077
42078
42079
42080 for ac_header in stdio_ext.h
42081 do
42082 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
42083 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
42084   { echo "$as_me:$LINENO: checking for $ac_header" >&5
42085 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
42086 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
42087   echo $ECHO_N "(cached) $ECHO_C" >&6
42088 fi
42089 ac_res=`eval echo '${'$as_ac_Header'}'`
42090                { echo "$as_me:$LINENO: result: $ac_res" >&5
42091 echo "${ECHO_T}$ac_res" >&6; }
42092 else
42093   # Is the header compilable?
42094 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
42095 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
42096 cat >conftest.$ac_ext <<_ACEOF
42097 /* confdefs.h.  */
42098 _ACEOF
42099 cat confdefs.h >>conftest.$ac_ext
42100 cat >>conftest.$ac_ext <<_ACEOF
42101 /* end confdefs.h.  */
42102 $ac_includes_default
42103 #include <$ac_header>
42104 _ACEOF
42105 rm -f conftest.$ac_objext
42106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42107   (eval $ac_compile) 2>conftest.er1
42108   ac_status=$?
42109   grep -v '^ *+' conftest.er1 >conftest.err
42110   rm -f conftest.er1
42111   cat conftest.err >&5
42112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42113   (exit $ac_status); } &&
42114          { ac_try='test -z "$ac_c_werror_flag"
42115                          || test ! -s conftest.err'
42116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42117   (eval $ac_try) 2>&5
42118   ac_status=$?
42119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42120   (exit $ac_status); }; } &&
42121          { ac_try='test -s conftest.$ac_objext'
42122   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42123   (eval $ac_try) 2>&5
42124   ac_status=$?
42125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42126   (exit $ac_status); }; }; then
42127   ac_header_compiler=yes
42128 else
42129   echo "$as_me: failed program was:" >&5
42130 sed 's/^/| /' conftest.$ac_ext >&5
42131
42132         ac_header_compiler=no
42133 fi
42134
42135 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42136 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42137 echo "${ECHO_T}$ac_header_compiler" >&6; }
42138
42139 # Is the header present?
42140 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
42141 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
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 #include <$ac_header>
42149 _ACEOF
42150 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
42151   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
42152   ac_status=$?
42153   grep -v '^ *+' conftest.er1 >conftest.err
42154   rm -f conftest.er1
42155   cat conftest.err >&5
42156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42157   (exit $ac_status); } >/dev/null; then
42158   if test -s conftest.err; then
42159     ac_cpp_err=$ac_c_preproc_warn_flag
42160     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
42161   else
42162     ac_cpp_err=
42163   fi
42164 else
42165   ac_cpp_err=yes
42166 fi
42167 if test -z "$ac_cpp_err"; then
42168   ac_header_preproc=yes
42169 else
42170   echo "$as_me: failed program was:" >&5
42171 sed 's/^/| /' conftest.$ac_ext >&5
42172
42173   ac_header_preproc=no
42174 fi
42175
42176 rm -f conftest.err conftest.$ac_ext
42177 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42178 echo "${ECHO_T}$ac_header_preproc" >&6; }
42179
42180 # So?  What about this header?
42181 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
42182   yes:no: )
42183     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
42184 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
42185     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
42186 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
42187     ac_header_preproc=yes
42188     ;;
42189   no:yes:* )
42190     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
42191 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
42192     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
42193 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
42194     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
42195 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
42196     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
42197 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
42198     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
42199 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
42200     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
42201 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
42202     ( cat <<\_ASBOX
42203 ## ------------------------------------ ##
42204 ## Report this to bug-coreutils@gnu.org ##
42205 ## ------------------------------------ ##
42206 _ASBOX
42207      ) | sed "s/^/$as_me: WARNING:     /" >&2
42208     ;;
42209 esac
42210 { echo "$as_me:$LINENO: checking for $ac_header" >&5
42211 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
42212 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
42213   echo $ECHO_N "(cached) $ECHO_C" >&6
42214 else
42215   eval "$as_ac_Header=\$ac_header_preproc"
42216 fi
42217 ac_res=`eval echo '${'$as_ac_Header'}'`
42218                { echo "$as_me:$LINENO: result: $ac_res" >&5
42219 echo "${ECHO_T}$ac_res" >&6; }
42220
42221 fi
42222 if test `eval echo '${'$as_ac_Header'}'` = yes; then
42223   cat >>confdefs.h <<_ACEOF
42224 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
42225 _ACEOF
42226
42227 fi
42228
42229 done
42230
42231
42232 for ac_func in __fpending
42233 do
42234 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42235 { echo "$as_me:$LINENO: checking for $ac_func" >&5
42236 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
42237 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
42238   echo $ECHO_N "(cached) $ECHO_C" >&6
42239 else
42240   cat >conftest.$ac_ext <<_ACEOF
42241 /* confdefs.h.  */
42242 _ACEOF
42243 cat confdefs.h >>conftest.$ac_ext
42244 cat >>conftest.$ac_ext <<_ACEOF
42245 /* end confdefs.h.  */
42246 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42247    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42248 #define $ac_func innocuous_$ac_func
42249
42250 /* System header to define __stub macros and hopefully few prototypes,
42251     which can conflict with char $ac_func (); below.
42252     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42253     <limits.h> exists even on freestanding compilers.  */
42254
42255 #ifdef __STDC__
42256 # include <limits.h>
42257 #else
42258 # include <assert.h>
42259 #endif
42260
42261 #undef $ac_func
42262
42263 /* Override any GCC internal prototype to avoid an error.
42264    Use char because int might match the return type of a GCC
42265    builtin and then its argument prototype would still apply.  */
42266 #ifdef __cplusplus
42267 extern "C"
42268 #endif
42269 char $ac_func ();
42270 /* The GNU C library defines this for functions which it implements
42271     to always fail with ENOSYS.  Some functions are actually named
42272     something starting with __ and the normal name is an alias.  */
42273 #if defined __stub_$ac_func || defined __stub___$ac_func
42274 choke me
42275 #endif
42276
42277 int
42278 main ()
42279 {
42280 return $ac_func ();
42281   ;
42282   return 0;
42283 }
42284 _ACEOF
42285 rm -f conftest.$ac_objext conftest$ac_exeext
42286 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42287   (eval $ac_link) 2>conftest.er1
42288   ac_status=$?
42289   grep -v '^ *+' conftest.er1 >conftest.err
42290   rm -f conftest.er1
42291   cat conftest.err >&5
42292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42293   (exit $ac_status); } &&
42294          { ac_try='test -z "$ac_c_werror_flag"
42295                          || test ! -s conftest.err'
42296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42297   (eval $ac_try) 2>&5
42298   ac_status=$?
42299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42300   (exit $ac_status); }; } &&
42301          { ac_try='test -s conftest$ac_exeext'
42302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42303   (eval $ac_try) 2>&5
42304   ac_status=$?
42305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42306   (exit $ac_status); }; }; then
42307   eval "$as_ac_var=yes"
42308 else
42309   echo "$as_me: failed program was:" >&5
42310 sed 's/^/| /' conftest.$ac_ext >&5
42311
42312         eval "$as_ac_var=no"
42313 fi
42314
42315 rm -f conftest.err conftest.$ac_objext \
42316       conftest$ac_exeext conftest.$ac_ext
42317 fi
42318 ac_res=`eval echo '${'$as_ac_var'}'`
42319                { echo "$as_me:$LINENO: result: $ac_res" >&5
42320 echo "${ECHO_T}$ac_res" >&6; }
42321 if test `eval echo '${'$as_ac_var'}'` = yes; then
42322   cat >>confdefs.h <<_ACEOF
42323 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42324 _ACEOF
42325
42326 else
42327   case " $LIBOBJS " in
42328   *" $ac_func.$ac_objext "* ) ;;
42329   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
42330  ;;
42331 esac
42332
42333 fi
42334 done
42335
42336
42337   fp_headers='
42338 #     include <stdio.h>
42339 #     if HAVE_STDIO_EXT_H
42340 #      include <stdio_ext.h>
42341 #     endif
42342 '
42343   { echo "$as_me:$LINENO: checking whether __fpending is declared" >&5
42344 echo $ECHO_N "checking whether __fpending is declared... $ECHO_C" >&6; }
42345 if test "${ac_cv_have_decl___fpending+set}" = set; then
42346   echo $ECHO_N "(cached) $ECHO_C" >&6
42347 else
42348   cat >conftest.$ac_ext <<_ACEOF
42349 /* confdefs.h.  */
42350 _ACEOF
42351 cat confdefs.h >>conftest.$ac_ext
42352 cat >>conftest.$ac_ext <<_ACEOF
42353 /* end confdefs.h.  */
42354 $fp_headers
42355
42356 int
42357 main ()
42358 {
42359 #ifndef __fpending
42360   char *p = (char *) __fpending;
42361   return !p;
42362 #endif
42363
42364   ;
42365   return 0;
42366 }
42367 _ACEOF
42368 rm -f conftest.$ac_objext
42369 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42370   (eval $ac_compile) 2>conftest.er1
42371   ac_status=$?
42372   grep -v '^ *+' conftest.er1 >conftest.err
42373   rm -f conftest.er1
42374   cat conftest.err >&5
42375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42376   (exit $ac_status); } &&
42377          { ac_try='test -z "$ac_c_werror_flag"
42378                          || test ! -s conftest.err'
42379   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42380   (eval $ac_try) 2>&5
42381   ac_status=$?
42382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42383   (exit $ac_status); }; } &&
42384          { ac_try='test -s conftest.$ac_objext'
42385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42386   (eval $ac_try) 2>&5
42387   ac_status=$?
42388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42389   (exit $ac_status); }; }; then
42390   ac_cv_have_decl___fpending=yes
42391 else
42392   echo "$as_me: failed program was:" >&5
42393 sed 's/^/| /' conftest.$ac_ext >&5
42394
42395         ac_cv_have_decl___fpending=no
42396 fi
42397
42398 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42399 fi
42400 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___fpending" >&5
42401 echo "${ECHO_T}$ac_cv_have_decl___fpending" >&6; }
42402 if test $ac_cv_have_decl___fpending = yes; then
42403
42404 cat >>confdefs.h <<_ACEOF
42405 #define HAVE_DECL___FPENDING 1
42406 _ACEOF
42407
42408
42409 else
42410   cat >>confdefs.h <<_ACEOF
42411 #define HAVE_DECL___FPENDING 0
42412 _ACEOF
42413
42414
42415 fi
42416
42417
42418   if test $ac_cv_func___fpending = no; then
42419     { echo "$as_me:$LINENO: checking how to determine the number of pending output bytes on a stream" >&5
42420 echo $ECHO_N "checking how to determine the number of pending output bytes on a stream... $ECHO_C" >&6; }
42421 if test "${ac_cv_sys_pending_output_n_bytes+set}" = set; then
42422   echo $ECHO_N "(cached) $ECHO_C" >&6
42423 else
42424
42425         for ac_expr in                                          \
42426                                                                 \
42427             '# glibc2'                                          \
42428             'fp->_IO_write_ptr - fp->_IO_write_base'            \
42429                                                                 \
42430             '# traditional Unix'                                \
42431             'fp->_ptr - fp->_base'                              \
42432                                                                 \
42433             '# BSD'                                             \
42434             'fp->_p - fp->_bf._base'                            \
42435                                                                 \
42436             '# SCO, Unixware'                                   \
42437             '(fp->__ptr ? fp->__ptr - fp->__base : 0)'          \
42438                                                                 \
42439             '# old glibc?'                                      \
42440             'fp->__bufp - fp->__buffer'                         \
42441                                                                 \
42442             '# old glibc iostream?'                             \
42443             'fp->_pptr - fp->_pbase'                            \
42444                                                                 \
42445             '# VMS'                                             \
42446             '(*fp)->_ptr - (*fp)->_base'                        \
42447                                                                 \
42448             '# e.g., DGUX R4.11; the info is not available'     \
42449             1                                                   \
42450             ; do
42451
42452           # Skip each embedded comment.
42453           case "$ac_expr" in '#'*) continue;; esac
42454
42455           cat >conftest.$ac_ext <<_ACEOF
42456 /* confdefs.h.  */
42457 _ACEOF
42458 cat confdefs.h >>conftest.$ac_ext
42459 cat >>conftest.$ac_ext <<_ACEOF
42460 /* end confdefs.h.  */
42461 #include <stdio.h>
42462
42463 int
42464 main ()
42465 {
42466 FILE *fp = stdin; (void) ($ac_expr);
42467   ;
42468   return 0;
42469 }
42470 _ACEOF
42471 rm -f conftest.$ac_objext
42472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42473   (eval $ac_compile) 2>conftest.er1
42474   ac_status=$?
42475   grep -v '^ *+' conftest.er1 >conftest.err
42476   rm -f conftest.er1
42477   cat conftest.err >&5
42478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42479   (exit $ac_status); } &&
42480          { ac_try='test -z "$ac_c_werror_flag"
42481                          || test ! -s conftest.err'
42482   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42483   (eval $ac_try) 2>&5
42484   ac_status=$?
42485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42486   (exit $ac_status); }; } &&
42487          { ac_try='test -s conftest.$ac_objext'
42488   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42489   (eval $ac_try) 2>&5
42490   ac_status=$?
42491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42492   (exit $ac_status); }; }; then
42493   fp_done=yes
42494
42495 else
42496   echo "$as_me: failed program was:" >&5
42497 sed 's/^/| /' conftest.$ac_ext >&5
42498
42499
42500 fi
42501
42502 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42503           test "$fp_done" = yes && break
42504         done
42505
42506         ac_cv_sys_pending_output_n_bytes=$ac_expr
42507
42508
42509 fi
42510 { echo "$as_me:$LINENO: result: $ac_cv_sys_pending_output_n_bytes" >&5
42511 echo "${ECHO_T}$ac_cv_sys_pending_output_n_bytes" >&6; }
42512
42513 cat >>confdefs.h <<_ACEOF
42514 #define PENDING_OUTPUT_N_BYTES $ac_cv_sys_pending_output_n_bytes
42515 _ACEOF
42516
42517   fi
42518
42519
42520
42521   if test $gt_cv_header_inttypes_h = yes; then
42522     { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
42523 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
42524 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
42525   echo $ECHO_N "(cached) $ECHO_C" >&6
42526 else
42527
42528         cat >conftest.$ac_ext <<_ACEOF
42529 /* confdefs.h.  */
42530 _ACEOF
42531 cat confdefs.h >>conftest.$ac_ext
42532 cat >>conftest.$ac_ext <<_ACEOF
42533 /* end confdefs.h.  */
42534 #include <inttypes.h>
42535 #ifdef PRId32
42536 char *p = PRId32;
42537 #endif
42538
42539 int
42540 main ()
42541 {
42542
42543   ;
42544   return 0;
42545 }
42546 _ACEOF
42547 rm -f conftest.$ac_objext
42548 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42549   (eval $ac_compile) 2>conftest.er1
42550   ac_status=$?
42551   grep -v '^ *+' conftest.er1 >conftest.err
42552   rm -f conftest.er1
42553   cat conftest.err >&5
42554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42555   (exit $ac_status); } &&
42556          { ac_try='test -z "$ac_c_werror_flag"
42557                          || test ! -s conftest.err'
42558   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42559   (eval $ac_try) 2>&5
42560   ac_status=$?
42561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42562   (exit $ac_status); }; } &&
42563          { ac_try='test -s conftest.$ac_objext'
42564   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42565   (eval $ac_try) 2>&5
42566   ac_status=$?
42567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42568   (exit $ac_status); }; }; then
42569   gt_cv_inttypes_pri_broken=no
42570 else
42571   echo "$as_me: failed program was:" >&5
42572 sed 's/^/| /' conftest.$ac_ext >&5
42573
42574         gt_cv_inttypes_pri_broken=yes
42575 fi
42576
42577 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42578
42579 fi
42580 { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
42581 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
42582   fi
42583   if test "$gt_cv_inttypes_pri_broken" = yes; then
42584
42585 cat >>confdefs.h <<_ACEOF
42586 #define PRI_MACROS_BROKEN 1
42587 _ACEOF
42588
42589   fi
42590
42591
42592       { echo "$as_me:$LINENO: checking whether ULONG_MAX < ULLONG_MAX" >&5
42593 echo $ECHO_N "checking whether ULONG_MAX < ULLONG_MAX... $ECHO_C" >&6; }
42594 if test "${gl_cv_ulong_max_lt_ullong_max+set}" = set; then
42595   echo $ECHO_N "(cached) $ECHO_C" >&6
42596 else
42597   cat >conftest.$ac_ext <<_ACEOF
42598 /* confdefs.h.  */
42599 _ACEOF
42600 cat confdefs.h >>conftest.$ac_ext
42601 cat >>conftest.$ac_ext <<_ACEOF
42602 /* end confdefs.h.  */
42603 $ac_includes_default
42604 int
42605 main ()
42606 {
42607 static int test_array [1 - 2 * !((unsigned long int) -1 < (unsigned long long int) -1)];
42608 test_array [0] = 0
42609
42610   ;
42611   return 0;
42612 }
42613 _ACEOF
42614 rm -f conftest.$ac_objext
42615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42616   (eval $ac_compile) 2>conftest.er1
42617   ac_status=$?
42618   grep -v '^ *+' conftest.er1 >conftest.err
42619   rm -f conftest.er1
42620   cat conftest.err >&5
42621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42622   (exit $ac_status); } &&
42623          { ac_try='test -z "$ac_c_werror_flag"
42624                          || test ! -s conftest.err'
42625   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42626   (eval $ac_try) 2>&5
42627   ac_status=$?
42628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42629   (exit $ac_status); }; } &&
42630          { ac_try='test -s conftest.$ac_objext'
42631   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42632   (eval $ac_try) 2>&5
42633   ac_status=$?
42634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42635   (exit $ac_status); }; }; then
42636   gl_cv_ulong_max_lt_ullong_max=yes
42637 else
42638   echo "$as_me: failed program was:" >&5
42639 sed 's/^/| /' conftest.$ac_ext >&5
42640
42641         gl_cv_ulong_max_lt_ullong_max=no
42642 fi
42643
42644 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42645 fi
42646 { echo "$as_me:$LINENO: result: $gl_cv_ulong_max_lt_ullong_max" >&5
42647 echo "${ECHO_T}$gl_cv_ulong_max_lt_ullong_max" >&6; }
42648   if test $gl_cv_ulong_max_lt_ullong_max = yes; then
42649
42650 cat >>confdefs.h <<\_ACEOF
42651 #define ULONG_MAX_LT_ULLONG_MAX 1
42652 _ACEOF
42653
42654   fi
42655
42656
42657
42658   if test $ac_cv_func_getgroups_works = no; then
42659     case " $LIBOBJS " in
42660   *" getgroups.$ac_objext "* ) ;;
42661   *) LIBOBJS="$LIBOBJS getgroups.$ac_objext"
42662  ;;
42663 esac
42664
42665
42666 cat >>confdefs.h <<\_ACEOF
42667 #define getgroups rpl_getgroups
42668 _ACEOF
42669
42670
42671
42672
42673   fi
42674   test -n "$GETGROUPS_LIB" && LIBS="$GETGROUPS_LIB $LIBS"
42675
42676 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
42677 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
42678 if test "${ac_cv_sys_largefile_source+set}" = set; then
42679   echo $ECHO_N "(cached) $ECHO_C" >&6
42680 else
42681   while :; do
42682   ac_cv_sys_largefile_source=no
42683   cat >conftest.$ac_ext <<_ACEOF
42684 /* confdefs.h.  */
42685 _ACEOF
42686 cat confdefs.h >>conftest.$ac_ext
42687 cat >>conftest.$ac_ext <<_ACEOF
42688 /* end confdefs.h.  */
42689 #include <stdio.h>
42690 int
42691 main ()
42692 {
42693 return !fseeko;
42694   ;
42695   return 0;
42696 }
42697 _ACEOF
42698 rm -f conftest.$ac_objext
42699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42700   (eval $ac_compile) 2>conftest.er1
42701   ac_status=$?
42702   grep -v '^ *+' conftest.er1 >conftest.err
42703   rm -f conftest.er1
42704   cat conftest.err >&5
42705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42706   (exit $ac_status); } &&
42707          { ac_try='test -z "$ac_c_werror_flag"
42708                          || test ! -s conftest.err'
42709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42710   (eval $ac_try) 2>&5
42711   ac_status=$?
42712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42713   (exit $ac_status); }; } &&
42714          { ac_try='test -s conftest.$ac_objext'
42715   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42716   (eval $ac_try) 2>&5
42717   ac_status=$?
42718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42719   (exit $ac_status); }; }; then
42720   break
42721 else
42722   echo "$as_me: failed program was:" >&5
42723 sed 's/^/| /' conftest.$ac_ext >&5
42724
42725
42726 fi
42727
42728 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42729   cat >conftest.$ac_ext <<_ACEOF
42730 /* confdefs.h.  */
42731 _ACEOF
42732 cat confdefs.h >>conftest.$ac_ext
42733 cat >>conftest.$ac_ext <<_ACEOF
42734 /* end confdefs.h.  */
42735 #define _LARGEFILE_SOURCE 1
42736 #include <stdio.h>
42737 int
42738 main ()
42739 {
42740 return !fseeko;
42741   ;
42742   return 0;
42743 }
42744 _ACEOF
42745 rm -f conftest.$ac_objext
42746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42747   (eval $ac_compile) 2>conftest.er1
42748   ac_status=$?
42749   grep -v '^ *+' conftest.er1 >conftest.err
42750   rm -f conftest.er1
42751   cat conftest.err >&5
42752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42753   (exit $ac_status); } &&
42754          { ac_try='test -z "$ac_c_werror_flag"
42755                          || test ! -s conftest.err'
42756   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42757   (eval $ac_try) 2>&5
42758   ac_status=$?
42759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42760   (exit $ac_status); }; } &&
42761          { ac_try='test -s conftest.$ac_objext'
42762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42763   (eval $ac_try) 2>&5
42764   ac_status=$?
42765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42766   (exit $ac_status); }; }; then
42767   ac_cv_sys_largefile_source=1; break
42768 else
42769   echo "$as_me: failed program was:" >&5
42770 sed 's/^/| /' conftest.$ac_ext >&5
42771
42772
42773 fi
42774
42775 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42776   break
42777 done
42778 fi
42779 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
42780 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
42781 if test "$ac_cv_sys_largefile_source" != no; then
42782
42783 cat >>confdefs.h <<_ACEOF
42784 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
42785 _ACEOF
42786
42787 fi
42788 rm -f conftest*
42789
42790 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
42791 # in glibc 2.1.3, but that breaks too many other things.
42792 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
42793 { echo "$as_me:$LINENO: checking for fseeko" >&5
42794 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6; }
42795 if test "${ac_cv_func_fseeko+set}" = set; then
42796   echo $ECHO_N "(cached) $ECHO_C" >&6
42797 else
42798   cat >conftest.$ac_ext <<_ACEOF
42799 /* confdefs.h.  */
42800 _ACEOF
42801 cat confdefs.h >>conftest.$ac_ext
42802 cat >>conftest.$ac_ext <<_ACEOF
42803 /* end confdefs.h.  */
42804 #include <stdio.h>
42805 int
42806 main ()
42807 {
42808 return fseeko && fseeko (stdin, 0, 0);
42809   ;
42810   return 0;
42811 }
42812 _ACEOF
42813 rm -f conftest.$ac_objext conftest$ac_exeext
42814 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42815   (eval $ac_link) 2>conftest.er1
42816   ac_status=$?
42817   grep -v '^ *+' conftest.er1 >conftest.err
42818   rm -f conftest.er1
42819   cat conftest.err >&5
42820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42821   (exit $ac_status); } &&
42822          { ac_try='test -z "$ac_c_werror_flag"
42823                          || test ! -s conftest.err'
42824   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42825   (eval $ac_try) 2>&5
42826   ac_status=$?
42827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42828   (exit $ac_status); }; } &&
42829          { ac_try='test -s conftest$ac_exeext'
42830   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42831   (eval $ac_try) 2>&5
42832   ac_status=$?
42833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42834   (exit $ac_status); }; }; then
42835   ac_cv_func_fseeko=yes
42836 else
42837   echo "$as_me: failed program was:" >&5
42838 sed 's/^/| /' conftest.$ac_ext >&5
42839
42840         ac_cv_func_fseeko=no
42841 fi
42842
42843 rm -f conftest.err conftest.$ac_objext \
42844       conftest$ac_exeext conftest.$ac_ext
42845 fi
42846 { echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
42847 echo "${ECHO_T}$ac_cv_func_fseeko" >&6; }
42848 if test $ac_cv_func_fseeko = yes; then
42849
42850 cat >>confdefs.h <<\_ACEOF
42851 #define HAVE_FSEEKO 1
42852 _ACEOF
42853
42854 fi
42855
42856
42857   { echo "$as_me:$LINENO: checking for /proc/uptime" >&5
42858 echo $ECHO_N "checking for /proc/uptime... $ECHO_C" >&6; }
42859 if test "${jm_cv_have_proc_uptime+set}" = set; then
42860   echo $ECHO_N "(cached) $ECHO_C" >&6
42861 else
42862   jm_cv_have_proc_uptime=no
42863     test -f /proc/uptime \
42864       && test "$cross_compiling" = no \
42865       && cat < /proc/uptime >/dev/null 2>/dev/null \
42866       && jm_cv_have_proc_uptime=yes
42867 fi
42868 { echo "$as_me:$LINENO: result: $jm_cv_have_proc_uptime" >&5
42869 echo "${ECHO_T}$jm_cv_have_proc_uptime" >&6; }
42870   if test $jm_cv_have_proc_uptime = yes; then
42871
42872 cat >>confdefs.h <<\_ACEOF
42873 #define HAVE_PROC_UPTIME 1
42874 _ACEOF
42875
42876   fi
42877
42878
42879
42880 for ac_func in ftruncate
42881 do
42882 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42883 { echo "$as_me:$LINENO: checking for $ac_func" >&5
42884 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
42885 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
42886   echo $ECHO_N "(cached) $ECHO_C" >&6
42887 else
42888   cat >conftest.$ac_ext <<_ACEOF
42889 /* confdefs.h.  */
42890 _ACEOF
42891 cat confdefs.h >>conftest.$ac_ext
42892 cat >>conftest.$ac_ext <<_ACEOF
42893 /* end confdefs.h.  */
42894 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42895    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42896 #define $ac_func innocuous_$ac_func
42897
42898 /* System header to define __stub macros and hopefully few prototypes,
42899     which can conflict with char $ac_func (); below.
42900     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42901     <limits.h> exists even on freestanding compilers.  */
42902
42903 #ifdef __STDC__
42904 # include <limits.h>
42905 #else
42906 # include <assert.h>
42907 #endif
42908
42909 #undef $ac_func
42910
42911 /* Override any GCC internal prototype to avoid an error.
42912    Use char because int might match the return type of a GCC
42913    builtin and then its argument prototype would still apply.  */
42914 #ifdef __cplusplus
42915 extern "C"
42916 #endif
42917 char $ac_func ();
42918 /* The GNU C library defines this for functions which it implements
42919     to always fail with ENOSYS.  Some functions are actually named
42920     something starting with __ and the normal name is an alias.  */
42921 #if defined __stub_$ac_func || defined __stub___$ac_func
42922 choke me
42923 #endif
42924
42925 int
42926 main ()
42927 {
42928 return $ac_func ();
42929   ;
42930   return 0;
42931 }
42932 _ACEOF
42933 rm -f conftest.$ac_objext conftest$ac_exeext
42934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42935   (eval $ac_link) 2>conftest.er1
42936   ac_status=$?
42937   grep -v '^ *+' conftest.er1 >conftest.err
42938   rm -f conftest.er1
42939   cat conftest.err >&5
42940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42941   (exit $ac_status); } &&
42942          { ac_try='test -z "$ac_c_werror_flag"
42943                          || test ! -s conftest.err'
42944   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42945   (eval $ac_try) 2>&5
42946   ac_status=$?
42947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42948   (exit $ac_status); }; } &&
42949          { ac_try='test -s conftest$ac_exeext'
42950   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42951   (eval $ac_try) 2>&5
42952   ac_status=$?
42953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42954   (exit $ac_status); }; }; then
42955   eval "$as_ac_var=yes"
42956 else
42957   echo "$as_me: failed program was:" >&5
42958 sed 's/^/| /' conftest.$ac_ext >&5
42959
42960         eval "$as_ac_var=no"
42961 fi
42962
42963 rm -f conftest.err conftest.$ac_objext \
42964       conftest$ac_exeext conftest.$ac_ext
42965 fi
42966 ac_res=`eval echo '${'$as_ac_var'}'`
42967                { echo "$as_me:$LINENO: result: $ac_res" >&5
42968 echo "${ECHO_T}$ac_res" >&6; }
42969 if test `eval echo '${'$as_ac_var'}'` = yes; then
42970   cat >>confdefs.h <<_ACEOF
42971 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42972 _ACEOF
42973
42974 else
42975   case " $LIBOBJS " in
42976   *" $ac_func.$ac_objext "* ) ;;
42977   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
42978  ;;
42979 esac
42980
42981 fi
42982 done
42983
42984
42985   if test $ac_cv_func_ftruncate = no; then
42986
42987
42988 for ac_func in chsize
42989 do
42990 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42991 { echo "$as_me:$LINENO: checking for $ac_func" >&5
42992 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
42993 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
42994   echo $ECHO_N "(cached) $ECHO_C" >&6
42995 else
42996   cat >conftest.$ac_ext <<_ACEOF
42997 /* confdefs.h.  */
42998 _ACEOF
42999 cat confdefs.h >>conftest.$ac_ext
43000 cat >>conftest.$ac_ext <<_ACEOF
43001 /* end confdefs.h.  */
43002 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43003    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43004 #define $ac_func innocuous_$ac_func
43005
43006 /* System header to define __stub macros and hopefully few prototypes,
43007     which can conflict with char $ac_func (); below.
43008     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43009     <limits.h> exists even on freestanding compilers.  */
43010
43011 #ifdef __STDC__
43012 # include <limits.h>
43013 #else
43014 # include <assert.h>
43015 #endif
43016
43017 #undef $ac_func
43018
43019 /* Override any GCC internal prototype to avoid an error.
43020    Use char because int might match the return type of a GCC
43021    builtin and then its argument prototype would still apply.  */
43022 #ifdef __cplusplus
43023 extern "C"
43024 #endif
43025 char $ac_func ();
43026 /* The GNU C library defines this for functions which it implements
43027     to always fail with ENOSYS.  Some functions are actually named
43028     something starting with __ and the normal name is an alias.  */
43029 #if defined __stub_$ac_func || defined __stub___$ac_func
43030 choke me
43031 #endif
43032
43033 int
43034 main ()
43035 {
43036 return $ac_func ();
43037   ;
43038   return 0;
43039 }
43040 _ACEOF
43041 rm -f conftest.$ac_objext conftest$ac_exeext
43042 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43043   (eval $ac_link) 2>conftest.er1
43044   ac_status=$?
43045   grep -v '^ *+' conftest.er1 >conftest.err
43046   rm -f conftest.er1
43047   cat conftest.err >&5
43048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43049   (exit $ac_status); } &&
43050          { ac_try='test -z "$ac_c_werror_flag"
43051                          || test ! -s conftest.err'
43052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43053   (eval $ac_try) 2>&5
43054   ac_status=$?
43055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43056   (exit $ac_status); }; } &&
43057          { ac_try='test -s conftest$ac_exeext'
43058   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43059   (eval $ac_try) 2>&5
43060   ac_status=$?
43061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43062   (exit $ac_status); }; }; then
43063   eval "$as_ac_var=yes"
43064 else
43065   echo "$as_me: failed program was:" >&5
43066 sed 's/^/| /' conftest.$ac_ext >&5
43067
43068         eval "$as_ac_var=no"
43069 fi
43070
43071 rm -f conftest.err conftest.$ac_objext \
43072       conftest$ac_exeext conftest.$ac_ext
43073 fi
43074 ac_res=`eval echo '${'$as_ac_var'}'`
43075                { echo "$as_me:$LINENO: result: $ac_res" >&5
43076 echo "${ECHO_T}$ac_res" >&6; }
43077 if test `eval echo '${'$as_ac_var'}'` = yes; then
43078   cat >>confdefs.h <<_ACEOF
43079 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43080 _ACEOF
43081
43082 fi
43083 done
43084
43085
43086   fi
43087
43088
43089
43090
43091
43092
43093
43094
43095
43096
43097
43098
43099
43100
43101
43102
43103
43104
43105
43106
43107
43108
43109
43110
43111
43112
43113
43114
43115
43116
43117
43118
43119
43120
43121
43122
43123
43124
43125
43126
43127
43128
43129
43130
43131
43132
43133
43134
43135
43136
43137
43138
43139
43140
43141
43142
43143
43144
43145
43146
43147
43148
43149
43150
43151
43152
43153
43154
43155
43156
43157
43158
43159
43160
43161
43162
43163
43164
43165
43166
43167
43168
43169
43170
43171
43172
43173
43174
43175
43176
43177
43178
43179
43180
43181
43182
43183
43184
43185
43186
43187
43188
43189
43190
43191
43192
43193
43194
43195
43196
43197
43198
43199
43200
43201
43202
43203
43204
43205
43206
43207
43208
43209
43210   :
43211
43212
43213
43214
43215
43216
43217
43218
43219
43220
43221
43222
43223
43224
43225
43226 for ac_header in sys/mount.h
43227 do
43228 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
43229 { echo "$as_me:$LINENO: checking for $ac_header" >&5
43230 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
43231 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
43232   echo $ECHO_N "(cached) $ECHO_C" >&6
43233 else
43234   cat >conftest.$ac_ext <<_ACEOF
43235 /* confdefs.h.  */
43236 _ACEOF
43237 cat confdefs.h >>conftest.$ac_ext
43238 cat >>conftest.$ac_ext <<_ACEOF
43239 /* end confdefs.h.  */
43240 $ac_includes_default
43241      #if HAVE_SYS_PARAM_H
43242        #include <sys/param.h>
43243       #endif
43244
43245 #include <$ac_header>
43246 _ACEOF
43247 rm -f conftest.$ac_objext
43248 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43249   (eval $ac_compile) 2>conftest.er1
43250   ac_status=$?
43251   grep -v '^ *+' conftest.er1 >conftest.err
43252   rm -f conftest.er1
43253   cat conftest.err >&5
43254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43255   (exit $ac_status); } &&
43256          { ac_try='test -z "$ac_c_werror_flag"
43257                          || test ! -s conftest.err'
43258   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43259   (eval $ac_try) 2>&5
43260   ac_status=$?
43261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43262   (exit $ac_status); }; } &&
43263          { ac_try='test -s conftest.$ac_objext'
43264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43265   (eval $ac_try) 2>&5
43266   ac_status=$?
43267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43268   (exit $ac_status); }; }; then
43269   eval "$as_ac_Header=yes"
43270 else
43271   echo "$as_me: failed program was:" >&5
43272 sed 's/^/| /' conftest.$ac_ext >&5
43273
43274         eval "$as_ac_Header=no"
43275 fi
43276
43277 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43278 fi
43279 ac_res=`eval echo '${'$as_ac_Header'}'`
43280                { echo "$as_me:$LINENO: result: $ac_res" >&5
43281 echo "${ECHO_T}$ac_res" >&6; }
43282 if test `eval echo '${'$as_ac_Header'}'` = yes; then
43283   cat >>confdefs.h <<_ACEOF
43284 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
43285 _ACEOF
43286
43287 fi
43288
43289 done
43290
43291
43292   :
43293
43294
43295
43296
43297
43298
43299   # For `struct statfs' on Ultrix 4.4.
43300
43301
43302
43303 for ac_header in netinet/in.h nfs/nfs_clnt.h nfs/vfs.h
43304 do
43305 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
43306 { echo "$as_me:$LINENO: checking for $ac_header" >&5
43307 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
43308 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
43309   echo $ECHO_N "(cached) $ECHO_C" >&6
43310 else
43311   cat >conftest.$ac_ext <<_ACEOF
43312 /* confdefs.h.  */
43313 _ACEOF
43314 cat confdefs.h >>conftest.$ac_ext
43315 cat >>conftest.$ac_ext <<_ACEOF
43316 /* end confdefs.h.  */
43317 $ac_includes_default
43318
43319 #include <$ac_header>
43320 _ACEOF
43321 rm -f conftest.$ac_objext
43322 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43323   (eval $ac_compile) 2>conftest.er1
43324   ac_status=$?
43325   grep -v '^ *+' conftest.er1 >conftest.err
43326   rm -f conftest.er1
43327   cat conftest.err >&5
43328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43329   (exit $ac_status); } &&
43330          { ac_try='test -z "$ac_c_werror_flag"
43331                          || test ! -s conftest.err'
43332   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43333   (eval $ac_try) 2>&5
43334   ac_status=$?
43335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43336   (exit $ac_status); }; } &&
43337          { ac_try='test -s conftest.$ac_objext'
43338   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43339   (eval $ac_try) 2>&5
43340   ac_status=$?
43341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43342   (exit $ac_status); }; }; then
43343   eval "$as_ac_Header=yes"
43344 else
43345   echo "$as_me: failed program was:" >&5
43346 sed 's/^/| /' conftest.$ac_ext >&5
43347
43348         eval "$as_ac_Header=no"
43349 fi
43350
43351 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43352 fi
43353 ac_res=`eval echo '${'$as_ac_Header'}'`
43354                { echo "$as_me:$LINENO: result: $ac_res" >&5
43355 echo "${ECHO_T}$ac_res" >&6; }
43356 if test `eval echo '${'$as_ac_Header'}'` = yes; then
43357   cat >>confdefs.h <<_ACEOF
43358 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
43359 _ACEOF
43360
43361 fi
43362
43363 done
43364
43365
43366
43367
43368
43369   statxfs_includes="\
43370 $ac_includes_default
43371 #if HAVE_SYS_STATVFS_H
43372 # include <sys/statvfs.h>
43373 #endif
43374 #if HAVE_SYS_VFS_H
43375 # include <sys/vfs.h>
43376 #endif
43377 #if !HAVE_SYS_STATVFS_H && !HAVE_SYS_VFS_H
43378 # if HAVE_SYS_MOUNT_H && HAVE_SYS_PARAM_H
43379 /* NetBSD 1.5.2 needs these, for the declaration of struct statfs. */
43380 #  include <sys/param.h>
43381 #  include <sys/mount.h>
43382 # elif HAVE_NETINET_IN_H && HAVE_NFS_NFS_CLNT_H && HAVE_NFS_VFS_H
43383 /* Ultrix 4.4 needs these for the declaration of struct statfs.  */
43384 #  include <netinet/in.h>
43385 #  include <nfs/nfs_clnt.h>
43386 #  include <nfs/vfs.h>
43387 # endif
43388 #endif
43389 "
43390   { echo "$as_me:$LINENO: checking for struct statfs.f_basetype" >&5
43391 echo $ECHO_N "checking for struct statfs.f_basetype... $ECHO_C" >&6; }
43392 if test "${ac_cv_member_struct_statfs_f_basetype+set}" = set; then
43393   echo $ECHO_N "(cached) $ECHO_C" >&6
43394 else
43395   cat >conftest.$ac_ext <<_ACEOF
43396 /* confdefs.h.  */
43397 _ACEOF
43398 cat confdefs.h >>conftest.$ac_ext
43399 cat >>conftest.$ac_ext <<_ACEOF
43400 /* end confdefs.h.  */
43401 $statxfs_includes
43402
43403 int
43404 main ()
43405 {
43406 static struct statfs ac_aggr;
43407 if (ac_aggr.f_basetype)
43408 return 0;
43409   ;
43410   return 0;
43411 }
43412 _ACEOF
43413 rm -f conftest.$ac_objext
43414 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43415   (eval $ac_compile) 2>conftest.er1
43416   ac_status=$?
43417   grep -v '^ *+' conftest.er1 >conftest.err
43418   rm -f conftest.er1
43419   cat conftest.err >&5
43420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43421   (exit $ac_status); } &&
43422          { ac_try='test -z "$ac_c_werror_flag"
43423                          || test ! -s conftest.err'
43424   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43425   (eval $ac_try) 2>&5
43426   ac_status=$?
43427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43428   (exit $ac_status); }; } &&
43429          { ac_try='test -s conftest.$ac_objext'
43430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43431   (eval $ac_try) 2>&5
43432   ac_status=$?
43433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43434   (exit $ac_status); }; }; then
43435   ac_cv_member_struct_statfs_f_basetype=yes
43436 else
43437   echo "$as_me: failed program was:" >&5
43438 sed 's/^/| /' conftest.$ac_ext >&5
43439
43440         cat >conftest.$ac_ext <<_ACEOF
43441 /* confdefs.h.  */
43442 _ACEOF
43443 cat confdefs.h >>conftest.$ac_ext
43444 cat >>conftest.$ac_ext <<_ACEOF
43445 /* end confdefs.h.  */
43446 $statxfs_includes
43447
43448 int
43449 main ()
43450 {
43451 static struct statfs ac_aggr;
43452 if (sizeof ac_aggr.f_basetype)
43453 return 0;
43454   ;
43455   return 0;
43456 }
43457 _ACEOF
43458 rm -f conftest.$ac_objext
43459 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43460   (eval $ac_compile) 2>conftest.er1
43461   ac_status=$?
43462   grep -v '^ *+' conftest.er1 >conftest.err
43463   rm -f conftest.er1
43464   cat conftest.err >&5
43465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43466   (exit $ac_status); } &&
43467          { ac_try='test -z "$ac_c_werror_flag"
43468                          || test ! -s conftest.err'
43469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43470   (eval $ac_try) 2>&5
43471   ac_status=$?
43472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43473   (exit $ac_status); }; } &&
43474          { ac_try='test -s conftest.$ac_objext'
43475   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43476   (eval $ac_try) 2>&5
43477   ac_status=$?
43478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43479   (exit $ac_status); }; }; then
43480   ac_cv_member_struct_statfs_f_basetype=yes
43481 else
43482   echo "$as_me: failed program was:" >&5
43483 sed 's/^/| /' conftest.$ac_ext >&5
43484
43485         ac_cv_member_struct_statfs_f_basetype=no
43486 fi
43487
43488 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43489 fi
43490
43491 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43492 fi
43493 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_basetype" >&5
43494 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_basetype" >&6; }
43495 if test $ac_cv_member_struct_statfs_f_basetype = yes; then
43496
43497 cat >>confdefs.h <<_ACEOF
43498 #define HAVE_STRUCT_STATFS_F_BASETYPE 1
43499 _ACEOF
43500
43501
43502 fi
43503
43504   { echo "$as_me:$LINENO: checking for struct statvfs.f_basetype" >&5
43505 echo $ECHO_N "checking for struct statvfs.f_basetype... $ECHO_C" >&6; }
43506 if test "${ac_cv_member_struct_statvfs_f_basetype+set}" = set; then
43507   echo $ECHO_N "(cached) $ECHO_C" >&6
43508 else
43509   cat >conftest.$ac_ext <<_ACEOF
43510 /* confdefs.h.  */
43511 _ACEOF
43512 cat confdefs.h >>conftest.$ac_ext
43513 cat >>conftest.$ac_ext <<_ACEOF
43514 /* end confdefs.h.  */
43515 $statxfs_includes
43516
43517 int
43518 main ()
43519 {
43520 static struct statvfs ac_aggr;
43521 if (ac_aggr.f_basetype)
43522 return 0;
43523   ;
43524   return 0;
43525 }
43526 _ACEOF
43527 rm -f conftest.$ac_objext
43528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43529   (eval $ac_compile) 2>conftest.er1
43530   ac_status=$?
43531   grep -v '^ *+' conftest.er1 >conftest.err
43532   rm -f conftest.er1
43533   cat conftest.err >&5
43534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43535   (exit $ac_status); } &&
43536          { ac_try='test -z "$ac_c_werror_flag"
43537                          || test ! -s conftest.err'
43538   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43539   (eval $ac_try) 2>&5
43540   ac_status=$?
43541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43542   (exit $ac_status); }; } &&
43543          { ac_try='test -s conftest.$ac_objext'
43544   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43545   (eval $ac_try) 2>&5
43546   ac_status=$?
43547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43548   (exit $ac_status); }; }; then
43549   ac_cv_member_struct_statvfs_f_basetype=yes
43550 else
43551   echo "$as_me: failed program was:" >&5
43552 sed 's/^/| /' conftest.$ac_ext >&5
43553
43554         cat >conftest.$ac_ext <<_ACEOF
43555 /* confdefs.h.  */
43556 _ACEOF
43557 cat confdefs.h >>conftest.$ac_ext
43558 cat >>conftest.$ac_ext <<_ACEOF
43559 /* end confdefs.h.  */
43560 $statxfs_includes
43561
43562 int
43563 main ()
43564 {
43565 static struct statvfs ac_aggr;
43566 if (sizeof ac_aggr.f_basetype)
43567 return 0;
43568   ;
43569   return 0;
43570 }
43571 _ACEOF
43572 rm -f conftest.$ac_objext
43573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43574   (eval $ac_compile) 2>conftest.er1
43575   ac_status=$?
43576   grep -v '^ *+' conftest.er1 >conftest.err
43577   rm -f conftest.er1
43578   cat conftest.err >&5
43579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43580   (exit $ac_status); } &&
43581          { ac_try='test -z "$ac_c_werror_flag"
43582                          || test ! -s conftest.err'
43583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43584   (eval $ac_try) 2>&5
43585   ac_status=$?
43586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43587   (exit $ac_status); }; } &&
43588          { ac_try='test -s conftest.$ac_objext'
43589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43590   (eval $ac_try) 2>&5
43591   ac_status=$?
43592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43593   (exit $ac_status); }; }; then
43594   ac_cv_member_struct_statvfs_f_basetype=yes
43595 else
43596   echo "$as_me: failed program was:" >&5
43597 sed 's/^/| /' conftest.$ac_ext >&5
43598
43599         ac_cv_member_struct_statvfs_f_basetype=no
43600 fi
43601
43602 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43603 fi
43604
43605 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43606 fi
43607 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_basetype" >&5
43608 echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_basetype" >&6; }
43609 if test $ac_cv_member_struct_statvfs_f_basetype = yes; then
43610
43611 cat >>confdefs.h <<_ACEOF
43612 #define HAVE_STRUCT_STATVFS_F_BASETYPE 1
43613 _ACEOF
43614
43615
43616 fi
43617
43618   { echo "$as_me:$LINENO: checking for struct statfs.f_fstypename" >&5
43619 echo $ECHO_N "checking for struct statfs.f_fstypename... $ECHO_C" >&6; }
43620 if test "${ac_cv_member_struct_statfs_f_fstypename+set}" = set; then
43621   echo $ECHO_N "(cached) $ECHO_C" >&6
43622 else
43623   cat >conftest.$ac_ext <<_ACEOF
43624 /* confdefs.h.  */
43625 _ACEOF
43626 cat confdefs.h >>conftest.$ac_ext
43627 cat >>conftest.$ac_ext <<_ACEOF
43628 /* end confdefs.h.  */
43629 $statxfs_includes
43630
43631 int
43632 main ()
43633 {
43634 static struct statfs ac_aggr;
43635 if (ac_aggr.f_fstypename)
43636 return 0;
43637   ;
43638   return 0;
43639 }
43640 _ACEOF
43641 rm -f conftest.$ac_objext
43642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43643   (eval $ac_compile) 2>conftest.er1
43644   ac_status=$?
43645   grep -v '^ *+' conftest.er1 >conftest.err
43646   rm -f conftest.er1
43647   cat conftest.err >&5
43648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43649   (exit $ac_status); } &&
43650          { ac_try='test -z "$ac_c_werror_flag"
43651                          || test ! -s conftest.err'
43652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43653   (eval $ac_try) 2>&5
43654   ac_status=$?
43655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43656   (exit $ac_status); }; } &&
43657          { ac_try='test -s conftest.$ac_objext'
43658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43659   (eval $ac_try) 2>&5
43660   ac_status=$?
43661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43662   (exit $ac_status); }; }; then
43663   ac_cv_member_struct_statfs_f_fstypename=yes
43664 else
43665   echo "$as_me: failed program was:" >&5
43666 sed 's/^/| /' conftest.$ac_ext >&5
43667
43668         cat >conftest.$ac_ext <<_ACEOF
43669 /* confdefs.h.  */
43670 _ACEOF
43671 cat confdefs.h >>conftest.$ac_ext
43672 cat >>conftest.$ac_ext <<_ACEOF
43673 /* end confdefs.h.  */
43674 $statxfs_includes
43675
43676 int
43677 main ()
43678 {
43679 static struct statfs ac_aggr;
43680 if (sizeof ac_aggr.f_fstypename)
43681 return 0;
43682   ;
43683   return 0;
43684 }
43685 _ACEOF
43686 rm -f conftest.$ac_objext
43687 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43688   (eval $ac_compile) 2>conftest.er1
43689   ac_status=$?
43690   grep -v '^ *+' conftest.er1 >conftest.err
43691   rm -f conftest.er1
43692   cat conftest.err >&5
43693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43694   (exit $ac_status); } &&
43695          { ac_try='test -z "$ac_c_werror_flag"
43696                          || test ! -s conftest.err'
43697   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43698   (eval $ac_try) 2>&5
43699   ac_status=$?
43700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43701   (exit $ac_status); }; } &&
43702          { ac_try='test -s conftest.$ac_objext'
43703   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43704   (eval $ac_try) 2>&5
43705   ac_status=$?
43706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43707   (exit $ac_status); }; }; then
43708   ac_cv_member_struct_statfs_f_fstypename=yes
43709 else
43710   echo "$as_me: failed program was:" >&5
43711 sed 's/^/| /' conftest.$ac_ext >&5
43712
43713         ac_cv_member_struct_statfs_f_fstypename=no
43714 fi
43715
43716 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43717 fi
43718
43719 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43720 fi
43721 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_fstypename" >&5
43722 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_fstypename" >&6; }
43723 if test $ac_cv_member_struct_statfs_f_fstypename = yes; then
43724
43725 cat >>confdefs.h <<_ACEOF
43726 #define HAVE_STRUCT_STATFS_F_FSTYPENAME 1
43727 _ACEOF
43728
43729
43730 fi
43731
43732   { echo "$as_me:$LINENO: checking for struct statfs.f_type" >&5
43733 echo $ECHO_N "checking for struct statfs.f_type... $ECHO_C" >&6; }
43734 if test "${ac_cv_member_struct_statfs_f_type+set}" = set; then
43735   echo $ECHO_N "(cached) $ECHO_C" >&6
43736 else
43737   cat >conftest.$ac_ext <<_ACEOF
43738 /* confdefs.h.  */
43739 _ACEOF
43740 cat confdefs.h >>conftest.$ac_ext
43741 cat >>conftest.$ac_ext <<_ACEOF
43742 /* end confdefs.h.  */
43743 $statxfs_includes
43744
43745 int
43746 main ()
43747 {
43748 static struct statfs ac_aggr;
43749 if (ac_aggr.f_type)
43750 return 0;
43751   ;
43752   return 0;
43753 }
43754 _ACEOF
43755 rm -f conftest.$ac_objext
43756 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43757   (eval $ac_compile) 2>conftest.er1
43758   ac_status=$?
43759   grep -v '^ *+' conftest.er1 >conftest.err
43760   rm -f conftest.er1
43761   cat conftest.err >&5
43762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43763   (exit $ac_status); } &&
43764          { ac_try='test -z "$ac_c_werror_flag"
43765                          || test ! -s conftest.err'
43766   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43767   (eval $ac_try) 2>&5
43768   ac_status=$?
43769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43770   (exit $ac_status); }; } &&
43771          { ac_try='test -s conftest.$ac_objext'
43772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43773   (eval $ac_try) 2>&5
43774   ac_status=$?
43775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43776   (exit $ac_status); }; }; then
43777   ac_cv_member_struct_statfs_f_type=yes
43778 else
43779   echo "$as_me: failed program was:" >&5
43780 sed 's/^/| /' conftest.$ac_ext >&5
43781
43782         cat >conftest.$ac_ext <<_ACEOF
43783 /* confdefs.h.  */
43784 _ACEOF
43785 cat confdefs.h >>conftest.$ac_ext
43786 cat >>conftest.$ac_ext <<_ACEOF
43787 /* end confdefs.h.  */
43788 $statxfs_includes
43789
43790 int
43791 main ()
43792 {
43793 static struct statfs ac_aggr;
43794 if (sizeof ac_aggr.f_type)
43795 return 0;
43796   ;
43797   return 0;
43798 }
43799 _ACEOF
43800 rm -f conftest.$ac_objext
43801 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43802   (eval $ac_compile) 2>conftest.er1
43803   ac_status=$?
43804   grep -v '^ *+' conftest.er1 >conftest.err
43805   rm -f conftest.er1
43806   cat conftest.err >&5
43807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43808   (exit $ac_status); } &&
43809          { ac_try='test -z "$ac_c_werror_flag"
43810                          || test ! -s conftest.err'
43811   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43812   (eval $ac_try) 2>&5
43813   ac_status=$?
43814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43815   (exit $ac_status); }; } &&
43816          { ac_try='test -s conftest.$ac_objext'
43817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43818   (eval $ac_try) 2>&5
43819   ac_status=$?
43820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43821   (exit $ac_status); }; }; then
43822   ac_cv_member_struct_statfs_f_type=yes
43823 else
43824   echo "$as_me: failed program was:" >&5
43825 sed 's/^/| /' conftest.$ac_ext >&5
43826
43827         ac_cv_member_struct_statfs_f_type=no
43828 fi
43829
43830 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43831 fi
43832
43833 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43834 fi
43835 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_type" >&5
43836 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_type" >&6; }
43837 if test $ac_cv_member_struct_statfs_f_type = yes; then
43838
43839 cat >>confdefs.h <<_ACEOF
43840 #define HAVE_STRUCT_STATFS_F_TYPE 1
43841 _ACEOF
43842
43843
43844 fi
43845
43846   { echo "$as_me:$LINENO: checking for struct statvfs.f_type" >&5
43847 echo $ECHO_N "checking for struct statvfs.f_type... $ECHO_C" >&6; }
43848 if test "${ac_cv_member_struct_statvfs_f_type+set}" = set; then
43849   echo $ECHO_N "(cached) $ECHO_C" >&6
43850 else
43851   cat >conftest.$ac_ext <<_ACEOF
43852 /* confdefs.h.  */
43853 _ACEOF
43854 cat confdefs.h >>conftest.$ac_ext
43855 cat >>conftest.$ac_ext <<_ACEOF
43856 /* end confdefs.h.  */
43857 $statxfs_includes
43858
43859 int
43860 main ()
43861 {
43862 static struct statvfs ac_aggr;
43863 if (ac_aggr.f_type)
43864 return 0;
43865   ;
43866   return 0;
43867 }
43868 _ACEOF
43869 rm -f conftest.$ac_objext
43870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43871   (eval $ac_compile) 2>conftest.er1
43872   ac_status=$?
43873   grep -v '^ *+' conftest.er1 >conftest.err
43874   rm -f conftest.er1
43875   cat conftest.err >&5
43876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43877   (exit $ac_status); } &&
43878          { ac_try='test -z "$ac_c_werror_flag"
43879                          || test ! -s conftest.err'
43880   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43881   (eval $ac_try) 2>&5
43882   ac_status=$?
43883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43884   (exit $ac_status); }; } &&
43885          { ac_try='test -s conftest.$ac_objext'
43886   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43887   (eval $ac_try) 2>&5
43888   ac_status=$?
43889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43890   (exit $ac_status); }; }; then
43891   ac_cv_member_struct_statvfs_f_type=yes
43892 else
43893   echo "$as_me: failed program was:" >&5
43894 sed 's/^/| /' conftest.$ac_ext >&5
43895
43896         cat >conftest.$ac_ext <<_ACEOF
43897 /* confdefs.h.  */
43898 _ACEOF
43899 cat confdefs.h >>conftest.$ac_ext
43900 cat >>conftest.$ac_ext <<_ACEOF
43901 /* end confdefs.h.  */
43902 $statxfs_includes
43903
43904 int
43905 main ()
43906 {
43907 static struct statvfs ac_aggr;
43908 if (sizeof ac_aggr.f_type)
43909 return 0;
43910   ;
43911   return 0;
43912 }
43913 _ACEOF
43914 rm -f conftest.$ac_objext
43915 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43916   (eval $ac_compile) 2>conftest.er1
43917   ac_status=$?
43918   grep -v '^ *+' conftest.er1 >conftest.err
43919   rm -f conftest.er1
43920   cat conftest.err >&5
43921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43922   (exit $ac_status); } &&
43923          { ac_try='test -z "$ac_c_werror_flag"
43924                          || test ! -s conftest.err'
43925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43926   (eval $ac_try) 2>&5
43927   ac_status=$?
43928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43929   (exit $ac_status); }; } &&
43930          { ac_try='test -s conftest.$ac_objext'
43931   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43932   (eval $ac_try) 2>&5
43933   ac_status=$?
43934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43935   (exit $ac_status); }; }; then
43936   ac_cv_member_struct_statvfs_f_type=yes
43937 else
43938   echo "$as_me: failed program was:" >&5
43939 sed 's/^/| /' conftest.$ac_ext >&5
43940
43941         ac_cv_member_struct_statvfs_f_type=no
43942 fi
43943
43944 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43945 fi
43946
43947 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43948 fi
43949 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_type" >&5
43950 echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_type" >&6; }
43951 if test $ac_cv_member_struct_statvfs_f_type = yes; then
43952
43953 cat >>confdefs.h <<_ACEOF
43954 #define HAVE_STRUCT_STATVFS_F_TYPE 1
43955 _ACEOF
43956
43957
43958 fi
43959
43960   { echo "$as_me:$LINENO: checking for struct statfs.f_fsid.__val" >&5
43961 echo $ECHO_N "checking for struct statfs.f_fsid.__val... $ECHO_C" >&6; }
43962 if test "${ac_cv_member_struct_statfs_f_fsid___val+set}" = set; then
43963   echo $ECHO_N "(cached) $ECHO_C" >&6
43964 else
43965   cat >conftest.$ac_ext <<_ACEOF
43966 /* confdefs.h.  */
43967 _ACEOF
43968 cat confdefs.h >>conftest.$ac_ext
43969 cat >>conftest.$ac_ext <<_ACEOF
43970 /* end confdefs.h.  */
43971 $statxfs_includes
43972
43973 int
43974 main ()
43975 {
43976 static struct statfs ac_aggr;
43977 if (ac_aggr.f_fsid.__val)
43978 return 0;
43979   ;
43980   return 0;
43981 }
43982 _ACEOF
43983 rm -f conftest.$ac_objext
43984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43985   (eval $ac_compile) 2>conftest.er1
43986   ac_status=$?
43987   grep -v '^ *+' conftest.er1 >conftest.err
43988   rm -f conftest.er1
43989   cat conftest.err >&5
43990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43991   (exit $ac_status); } &&
43992          { ac_try='test -z "$ac_c_werror_flag"
43993                          || test ! -s conftest.err'
43994   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43995   (eval $ac_try) 2>&5
43996   ac_status=$?
43997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43998   (exit $ac_status); }; } &&
43999          { ac_try='test -s conftest.$ac_objext'
44000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44001   (eval $ac_try) 2>&5
44002   ac_status=$?
44003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44004   (exit $ac_status); }; }; then
44005   ac_cv_member_struct_statfs_f_fsid___val=yes
44006 else
44007   echo "$as_me: failed program was:" >&5
44008 sed 's/^/| /' conftest.$ac_ext >&5
44009
44010         cat >conftest.$ac_ext <<_ACEOF
44011 /* confdefs.h.  */
44012 _ACEOF
44013 cat confdefs.h >>conftest.$ac_ext
44014 cat >>conftest.$ac_ext <<_ACEOF
44015 /* end confdefs.h.  */
44016 $statxfs_includes
44017
44018 int
44019 main ()
44020 {
44021 static struct statfs ac_aggr;
44022 if (sizeof ac_aggr.f_fsid.__val)
44023 return 0;
44024   ;
44025   return 0;
44026 }
44027 _ACEOF
44028 rm -f conftest.$ac_objext
44029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44030   (eval $ac_compile) 2>conftest.er1
44031   ac_status=$?
44032   grep -v '^ *+' conftest.er1 >conftest.err
44033   rm -f conftest.er1
44034   cat conftest.err >&5
44035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44036   (exit $ac_status); } &&
44037          { ac_try='test -z "$ac_c_werror_flag"
44038                          || test ! -s conftest.err'
44039   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44040   (eval $ac_try) 2>&5
44041   ac_status=$?
44042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44043   (exit $ac_status); }; } &&
44044          { ac_try='test -s conftest.$ac_objext'
44045   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44046   (eval $ac_try) 2>&5
44047   ac_status=$?
44048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44049   (exit $ac_status); }; }; then
44050   ac_cv_member_struct_statfs_f_fsid___val=yes
44051 else
44052   echo "$as_me: failed program was:" >&5
44053 sed 's/^/| /' conftest.$ac_ext >&5
44054
44055         ac_cv_member_struct_statfs_f_fsid___val=no
44056 fi
44057
44058 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44059 fi
44060
44061 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44062 fi
44063 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_fsid___val" >&5
44064 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_fsid___val" >&6; }
44065 if test $ac_cv_member_struct_statfs_f_fsid___val = yes; then
44066
44067 cat >>confdefs.h <<_ACEOF
44068 #define HAVE_STRUCT_STATFS_F_FSID___VAL 1
44069 _ACEOF
44070
44071
44072 fi
44073
44074   { echo "$as_me:$LINENO: checking for struct statvfs.f_fsid.__val" >&5
44075 echo $ECHO_N "checking for struct statvfs.f_fsid.__val... $ECHO_C" >&6; }
44076 if test "${ac_cv_member_struct_statvfs_f_fsid___val+set}" = set; then
44077   echo $ECHO_N "(cached) $ECHO_C" >&6
44078 else
44079   cat >conftest.$ac_ext <<_ACEOF
44080 /* confdefs.h.  */
44081 _ACEOF
44082 cat confdefs.h >>conftest.$ac_ext
44083 cat >>conftest.$ac_ext <<_ACEOF
44084 /* end confdefs.h.  */
44085 $statxfs_includes
44086
44087 int
44088 main ()
44089 {
44090 static struct statvfs ac_aggr;
44091 if (ac_aggr.f_fsid.__val)
44092 return 0;
44093   ;
44094   return 0;
44095 }
44096 _ACEOF
44097 rm -f conftest.$ac_objext
44098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44099   (eval $ac_compile) 2>conftest.er1
44100   ac_status=$?
44101   grep -v '^ *+' conftest.er1 >conftest.err
44102   rm -f conftest.er1
44103   cat conftest.err >&5
44104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44105   (exit $ac_status); } &&
44106          { ac_try='test -z "$ac_c_werror_flag"
44107                          || test ! -s conftest.err'
44108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44109   (eval $ac_try) 2>&5
44110   ac_status=$?
44111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44112   (exit $ac_status); }; } &&
44113          { ac_try='test -s conftest.$ac_objext'
44114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44115   (eval $ac_try) 2>&5
44116   ac_status=$?
44117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44118   (exit $ac_status); }; }; then
44119   ac_cv_member_struct_statvfs_f_fsid___val=yes
44120 else
44121   echo "$as_me: failed program was:" >&5
44122 sed 's/^/| /' conftest.$ac_ext >&5
44123
44124         cat >conftest.$ac_ext <<_ACEOF
44125 /* confdefs.h.  */
44126 _ACEOF
44127 cat confdefs.h >>conftest.$ac_ext
44128 cat >>conftest.$ac_ext <<_ACEOF
44129 /* end confdefs.h.  */
44130 $statxfs_includes
44131
44132 int
44133 main ()
44134 {
44135 static struct statvfs ac_aggr;
44136 if (sizeof ac_aggr.f_fsid.__val)
44137 return 0;
44138   ;
44139   return 0;
44140 }
44141 _ACEOF
44142 rm -f conftest.$ac_objext
44143 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44144   (eval $ac_compile) 2>conftest.er1
44145   ac_status=$?
44146   grep -v '^ *+' conftest.er1 >conftest.err
44147   rm -f conftest.er1
44148   cat conftest.err >&5
44149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44150   (exit $ac_status); } &&
44151          { ac_try='test -z "$ac_c_werror_flag"
44152                          || test ! -s conftest.err'
44153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44154   (eval $ac_try) 2>&5
44155   ac_status=$?
44156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44157   (exit $ac_status); }; } &&
44158          { ac_try='test -s conftest.$ac_objext'
44159   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44160   (eval $ac_try) 2>&5
44161   ac_status=$?
44162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44163   (exit $ac_status); }; }; then
44164   ac_cv_member_struct_statvfs_f_fsid___val=yes
44165 else
44166   echo "$as_me: failed program was:" >&5
44167 sed 's/^/| /' conftest.$ac_ext >&5
44168
44169         ac_cv_member_struct_statvfs_f_fsid___val=no
44170 fi
44171
44172 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44173 fi
44174
44175 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44176 fi
44177 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_fsid___val" >&5
44178 echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_fsid___val" >&6; }
44179 if test $ac_cv_member_struct_statvfs_f_fsid___val = yes; then
44180
44181 cat >>confdefs.h <<_ACEOF
44182 #define HAVE_STRUCT_STATVFS_F_FSID___VAL 1
44183 _ACEOF
44184
44185
44186 fi
44187
44188   { echo "$as_me:$LINENO: checking for struct statfs.f_namemax" >&5
44189 echo $ECHO_N "checking for struct statfs.f_namemax... $ECHO_C" >&6; }
44190 if test "${ac_cv_member_struct_statfs_f_namemax+set}" = set; then
44191   echo $ECHO_N "(cached) $ECHO_C" >&6
44192 else
44193   cat >conftest.$ac_ext <<_ACEOF
44194 /* confdefs.h.  */
44195 _ACEOF
44196 cat confdefs.h >>conftest.$ac_ext
44197 cat >>conftest.$ac_ext <<_ACEOF
44198 /* end confdefs.h.  */
44199 $statxfs_includes
44200
44201 int
44202 main ()
44203 {
44204 static struct statfs ac_aggr;
44205 if (ac_aggr.f_namemax)
44206 return 0;
44207   ;
44208   return 0;
44209 }
44210 _ACEOF
44211 rm -f conftest.$ac_objext
44212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44213   (eval $ac_compile) 2>conftest.er1
44214   ac_status=$?
44215   grep -v '^ *+' conftest.er1 >conftest.err
44216   rm -f conftest.er1
44217   cat conftest.err >&5
44218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44219   (exit $ac_status); } &&
44220          { ac_try='test -z "$ac_c_werror_flag"
44221                          || test ! -s conftest.err'
44222   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&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   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44229   (eval $ac_try) 2>&5
44230   ac_status=$?
44231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44232   (exit $ac_status); }; }; then
44233   ac_cv_member_struct_statfs_f_namemax=yes
44234 else
44235   echo "$as_me: failed program was:" >&5
44236 sed 's/^/| /' conftest.$ac_ext >&5
44237
44238         cat >conftest.$ac_ext <<_ACEOF
44239 /* confdefs.h.  */
44240 _ACEOF
44241 cat confdefs.h >>conftest.$ac_ext
44242 cat >>conftest.$ac_ext <<_ACEOF
44243 /* end confdefs.h.  */
44244 $statxfs_includes
44245
44246 int
44247 main ()
44248 {
44249 static struct statfs ac_aggr;
44250 if (sizeof ac_aggr.f_namemax)
44251 return 0;
44252   ;
44253   return 0;
44254 }
44255 _ACEOF
44256 rm -f conftest.$ac_objext
44257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44258   (eval $ac_compile) 2>conftest.er1
44259   ac_status=$?
44260   grep -v '^ *+' conftest.er1 >conftest.err
44261   rm -f conftest.er1
44262   cat conftest.err >&5
44263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44264   (exit $ac_status); } &&
44265          { ac_try='test -z "$ac_c_werror_flag"
44266                          || test ! -s conftest.err'
44267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44268   (eval $ac_try) 2>&5
44269   ac_status=$?
44270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44271   (exit $ac_status); }; } &&
44272          { ac_try='test -s conftest.$ac_objext'
44273   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44274   (eval $ac_try) 2>&5
44275   ac_status=$?
44276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44277   (exit $ac_status); }; }; then
44278   ac_cv_member_struct_statfs_f_namemax=yes
44279 else
44280   echo "$as_me: failed program was:" >&5
44281 sed 's/^/| /' conftest.$ac_ext >&5
44282
44283         ac_cv_member_struct_statfs_f_namemax=no
44284 fi
44285
44286 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44287 fi
44288
44289 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44290 fi
44291 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_namemax" >&5
44292 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_namemax" >&6; }
44293 if test $ac_cv_member_struct_statfs_f_namemax = yes; then
44294
44295 cat >>confdefs.h <<_ACEOF
44296 #define HAVE_STRUCT_STATFS_F_NAMEMAX 1
44297 _ACEOF
44298
44299
44300 fi
44301
44302   { echo "$as_me:$LINENO: checking for struct statvfs.f_namemax" >&5
44303 echo $ECHO_N "checking for struct statvfs.f_namemax... $ECHO_C" >&6; }
44304 if test "${ac_cv_member_struct_statvfs_f_namemax+set}" = set; then
44305   echo $ECHO_N "(cached) $ECHO_C" >&6
44306 else
44307   cat >conftest.$ac_ext <<_ACEOF
44308 /* confdefs.h.  */
44309 _ACEOF
44310 cat confdefs.h >>conftest.$ac_ext
44311 cat >>conftest.$ac_ext <<_ACEOF
44312 /* end confdefs.h.  */
44313 $statxfs_includes
44314
44315 int
44316 main ()
44317 {
44318 static struct statvfs ac_aggr;
44319 if (ac_aggr.f_namemax)
44320 return 0;
44321   ;
44322   return 0;
44323 }
44324 _ACEOF
44325 rm -f conftest.$ac_objext
44326 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44327   (eval $ac_compile) 2>conftest.er1
44328   ac_status=$?
44329   grep -v '^ *+' conftest.er1 >conftest.err
44330   rm -f conftest.er1
44331   cat conftest.err >&5
44332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44333   (exit $ac_status); } &&
44334          { ac_try='test -z "$ac_c_werror_flag"
44335                          || test ! -s conftest.err'
44336   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44337   (eval $ac_try) 2>&5
44338   ac_status=$?
44339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44340   (exit $ac_status); }; } &&
44341          { ac_try='test -s conftest.$ac_objext'
44342   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44343   (eval $ac_try) 2>&5
44344   ac_status=$?
44345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44346   (exit $ac_status); }; }; then
44347   ac_cv_member_struct_statvfs_f_namemax=yes
44348 else
44349   echo "$as_me: failed program was:" >&5
44350 sed 's/^/| /' conftest.$ac_ext >&5
44351
44352         cat >conftest.$ac_ext <<_ACEOF
44353 /* confdefs.h.  */
44354 _ACEOF
44355 cat confdefs.h >>conftest.$ac_ext
44356 cat >>conftest.$ac_ext <<_ACEOF
44357 /* end confdefs.h.  */
44358 $statxfs_includes
44359
44360 int
44361 main ()
44362 {
44363 static struct statvfs ac_aggr;
44364 if (sizeof ac_aggr.f_namemax)
44365 return 0;
44366   ;
44367   return 0;
44368 }
44369 _ACEOF
44370 rm -f conftest.$ac_objext
44371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44372   (eval $ac_compile) 2>conftest.er1
44373   ac_status=$?
44374   grep -v '^ *+' conftest.er1 >conftest.err
44375   rm -f conftest.er1
44376   cat conftest.err >&5
44377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44378   (exit $ac_status); } &&
44379          { ac_try='test -z "$ac_c_werror_flag"
44380                          || test ! -s conftest.err'
44381   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44382   (eval $ac_try) 2>&5
44383   ac_status=$?
44384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44385   (exit $ac_status); }; } &&
44386          { ac_try='test -s conftest.$ac_objext'
44387   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44388   (eval $ac_try) 2>&5
44389   ac_status=$?
44390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44391   (exit $ac_status); }; }; then
44392   ac_cv_member_struct_statvfs_f_namemax=yes
44393 else
44394   echo "$as_me: failed program was:" >&5
44395 sed 's/^/| /' conftest.$ac_ext >&5
44396
44397         ac_cv_member_struct_statvfs_f_namemax=no
44398 fi
44399
44400 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44401 fi
44402
44403 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44404 fi
44405 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_namemax" >&5
44406 echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_namemax" >&6; }
44407 if test $ac_cv_member_struct_statvfs_f_namemax = yes; then
44408
44409 cat >>confdefs.h <<_ACEOF
44410 #define HAVE_STRUCT_STATVFS_F_NAMEMAX 1
44411 _ACEOF
44412
44413
44414 fi
44415
44416   { echo "$as_me:$LINENO: checking for struct statfs.f_namelen" >&5
44417 echo $ECHO_N "checking for struct statfs.f_namelen... $ECHO_C" >&6; }
44418 if test "${ac_cv_member_struct_statfs_f_namelen+set}" = set; then
44419   echo $ECHO_N "(cached) $ECHO_C" >&6
44420 else
44421   cat >conftest.$ac_ext <<_ACEOF
44422 /* confdefs.h.  */
44423 _ACEOF
44424 cat confdefs.h >>conftest.$ac_ext
44425 cat >>conftest.$ac_ext <<_ACEOF
44426 /* end confdefs.h.  */
44427 $statxfs_includes
44428
44429 int
44430 main ()
44431 {
44432 static struct statfs ac_aggr;
44433 if (ac_aggr.f_namelen)
44434 return 0;
44435   ;
44436   return 0;
44437 }
44438 _ACEOF
44439 rm -f conftest.$ac_objext
44440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44441   (eval $ac_compile) 2>conftest.er1
44442   ac_status=$?
44443   grep -v '^ *+' conftest.er1 >conftest.err
44444   rm -f conftest.er1
44445   cat conftest.err >&5
44446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44447   (exit $ac_status); } &&
44448          { ac_try='test -z "$ac_c_werror_flag"
44449                          || test ! -s conftest.err'
44450   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44451   (eval $ac_try) 2>&5
44452   ac_status=$?
44453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44454   (exit $ac_status); }; } &&
44455          { ac_try='test -s conftest.$ac_objext'
44456   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44457   (eval $ac_try) 2>&5
44458   ac_status=$?
44459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44460   (exit $ac_status); }; }; then
44461   ac_cv_member_struct_statfs_f_namelen=yes
44462 else
44463   echo "$as_me: failed program was:" >&5
44464 sed 's/^/| /' conftest.$ac_ext >&5
44465
44466         cat >conftest.$ac_ext <<_ACEOF
44467 /* confdefs.h.  */
44468 _ACEOF
44469 cat confdefs.h >>conftest.$ac_ext
44470 cat >>conftest.$ac_ext <<_ACEOF
44471 /* end confdefs.h.  */
44472 $statxfs_includes
44473
44474 int
44475 main ()
44476 {
44477 static struct statfs ac_aggr;
44478 if (sizeof ac_aggr.f_namelen)
44479 return 0;
44480   ;
44481   return 0;
44482 }
44483 _ACEOF
44484 rm -f conftest.$ac_objext
44485 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44486   (eval $ac_compile) 2>conftest.er1
44487   ac_status=$?
44488   grep -v '^ *+' conftest.er1 >conftest.err
44489   rm -f conftest.er1
44490   cat conftest.err >&5
44491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44492   (exit $ac_status); } &&
44493          { ac_try='test -z "$ac_c_werror_flag"
44494                          || test ! -s conftest.err'
44495   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44496   (eval $ac_try) 2>&5
44497   ac_status=$?
44498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44499   (exit $ac_status); }; } &&
44500          { ac_try='test -s conftest.$ac_objext'
44501   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44502   (eval $ac_try) 2>&5
44503   ac_status=$?
44504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44505   (exit $ac_status); }; }; then
44506   ac_cv_member_struct_statfs_f_namelen=yes
44507 else
44508   echo "$as_me: failed program was:" >&5
44509 sed 's/^/| /' conftest.$ac_ext >&5
44510
44511         ac_cv_member_struct_statfs_f_namelen=no
44512 fi
44513
44514 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44515 fi
44516
44517 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44518 fi
44519 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_namelen" >&5
44520 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_namelen" >&6; }
44521 if test $ac_cv_member_struct_statfs_f_namelen = yes; then
44522
44523 cat >>confdefs.h <<_ACEOF
44524 #define HAVE_STRUCT_STATFS_F_NAMELEN 1
44525 _ACEOF
44526
44527
44528 fi
44529
44530   { echo "$as_me:$LINENO: checking for struct statvfs.f_namelen" >&5
44531 echo $ECHO_N "checking for struct statvfs.f_namelen... $ECHO_C" >&6; }
44532 if test "${ac_cv_member_struct_statvfs_f_namelen+set}" = set; then
44533   echo $ECHO_N "(cached) $ECHO_C" >&6
44534 else
44535   cat >conftest.$ac_ext <<_ACEOF
44536 /* confdefs.h.  */
44537 _ACEOF
44538 cat confdefs.h >>conftest.$ac_ext
44539 cat >>conftest.$ac_ext <<_ACEOF
44540 /* end confdefs.h.  */
44541 $statxfs_includes
44542
44543 int
44544 main ()
44545 {
44546 static struct statvfs ac_aggr;
44547 if (ac_aggr.f_namelen)
44548 return 0;
44549   ;
44550   return 0;
44551 }
44552 _ACEOF
44553 rm -f conftest.$ac_objext
44554 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44555   (eval $ac_compile) 2>conftest.er1
44556   ac_status=$?
44557   grep -v '^ *+' conftest.er1 >conftest.err
44558   rm -f conftest.er1
44559   cat conftest.err >&5
44560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44561   (exit $ac_status); } &&
44562          { ac_try='test -z "$ac_c_werror_flag"
44563                          || test ! -s conftest.err'
44564   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44565   (eval $ac_try) 2>&5
44566   ac_status=$?
44567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44568   (exit $ac_status); }; } &&
44569          { ac_try='test -s conftest.$ac_objext'
44570   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44571   (eval $ac_try) 2>&5
44572   ac_status=$?
44573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44574   (exit $ac_status); }; }; then
44575   ac_cv_member_struct_statvfs_f_namelen=yes
44576 else
44577   echo "$as_me: failed program was:" >&5
44578 sed 's/^/| /' conftest.$ac_ext >&5
44579
44580         cat >conftest.$ac_ext <<_ACEOF
44581 /* confdefs.h.  */
44582 _ACEOF
44583 cat confdefs.h >>conftest.$ac_ext
44584 cat >>conftest.$ac_ext <<_ACEOF
44585 /* end confdefs.h.  */
44586 $statxfs_includes
44587
44588 int
44589 main ()
44590 {
44591 static struct statvfs ac_aggr;
44592 if (sizeof ac_aggr.f_namelen)
44593 return 0;
44594   ;
44595   return 0;
44596 }
44597 _ACEOF
44598 rm -f conftest.$ac_objext
44599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44600   (eval $ac_compile) 2>conftest.er1
44601   ac_status=$?
44602   grep -v '^ *+' conftest.er1 >conftest.err
44603   rm -f conftest.er1
44604   cat conftest.err >&5
44605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44606   (exit $ac_status); } &&
44607          { ac_try='test -z "$ac_c_werror_flag"
44608                          || test ! -s conftest.err'
44609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44610   (eval $ac_try) 2>&5
44611   ac_status=$?
44612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44613   (exit $ac_status); }; } &&
44614          { ac_try='test -s conftest.$ac_objext'
44615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44616   (eval $ac_try) 2>&5
44617   ac_status=$?
44618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44619   (exit $ac_status); }; }; then
44620   ac_cv_member_struct_statvfs_f_namelen=yes
44621 else
44622   echo "$as_me: failed program was:" >&5
44623 sed 's/^/| /' conftest.$ac_ext >&5
44624
44625         ac_cv_member_struct_statvfs_f_namelen=no
44626 fi
44627
44628 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44629 fi
44630
44631 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44632 fi
44633 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_namelen" >&5
44634 echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_namelen" >&6; }
44635 if test $ac_cv_member_struct_statvfs_f_namelen = yes; then
44636
44637 cat >>confdefs.h <<_ACEOF
44638 #define HAVE_STRUCT_STATVFS_F_NAMELEN 1
44639 _ACEOF
44640
44641
44642 fi
44643
44644
44645
44646       if test "X$prefix" = "XNONE"; then
44647     acl_final_prefix="$ac_default_prefix"
44648   else
44649     acl_final_prefix="$prefix"
44650   fi
44651   if test "X$exec_prefix" = "XNONE"; then
44652     acl_final_exec_prefix='${prefix}'
44653   else
44654     acl_final_exec_prefix="$exec_prefix"
44655   fi
44656   acl_save_prefix="$prefix"
44657   prefix="$acl_final_prefix"
44658   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
44659   prefix="$acl_save_prefix"
44660
44661
44662 # Check whether --with-gnu-ld was given.
44663 if test "${with_gnu_ld+set}" = set; then
44664   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
44665 else
44666   with_gnu_ld=no
44667 fi
44668
44669 # Prepare PATH_SEPARATOR.
44670 # The user is always right.
44671 if test "${PATH_SEPARATOR+set}" != set; then
44672   echo "#! /bin/sh" >conf$$.sh
44673   echo  "exit 0"   >>conf$$.sh
44674   chmod +x conf$$.sh
44675   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
44676     PATH_SEPARATOR=';'
44677   else
44678     PATH_SEPARATOR=:
44679   fi
44680   rm -f conf$$.sh
44681 fi
44682 ac_prog=ld
44683 if test "$GCC" = yes; then
44684   # Check if gcc -print-prog-name=ld gives a path.
44685   { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
44686 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
44687   case $host in
44688   *-*-mingw*)
44689     # gcc leaves a trailing carriage return which upsets mingw
44690     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
44691   *)
44692     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
44693   esac
44694   case $ac_prog in
44695     # Accept absolute paths.
44696     [\\/]* | [A-Za-z]:[\\/]*)
44697       re_direlt='/[^/][^/]*/\.\./'
44698       # Canonicalize the path of ld
44699       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
44700       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
44701         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
44702       done
44703       test -z "$LD" && LD="$ac_prog"
44704       ;;
44705   "")
44706     # If it fails, then pretend we aren't using GCC.
44707     ac_prog=ld
44708     ;;
44709   *)
44710     # If it is relative, then search for the first ld in PATH.
44711     with_gnu_ld=unknown
44712     ;;
44713   esac
44714 elif test "$with_gnu_ld" = yes; then
44715   { echo "$as_me:$LINENO: checking for GNU ld" >&5
44716 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
44717 else
44718   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
44719 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
44720 fi
44721 if test "${acl_cv_path_LD+set}" = set; then
44722   echo $ECHO_N "(cached) $ECHO_C" >&6
44723 else
44724   if test -z "$LD"; then
44725   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
44726   for ac_dir in $PATH; do
44727     test -z "$ac_dir" && ac_dir=.
44728     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
44729       acl_cv_path_LD="$ac_dir/$ac_prog"
44730       # Check to see if the program is GNU ld.  I'd rather use --version,
44731       # but apparently some GNU ld's only accept -v.
44732       # Break only if it was the GNU/non-GNU ld that we prefer.
44733       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
44734       *GNU* | *'with BFD'*)
44735         test "$with_gnu_ld" != no && break ;;
44736       *)
44737         test "$with_gnu_ld" != yes && break ;;
44738       esac
44739     fi
44740   done
44741   IFS="$ac_save_ifs"
44742 else
44743   acl_cv_path_LD="$LD" # Let the user override the test with a path.
44744 fi
44745 fi
44746
44747 LD="$acl_cv_path_LD"
44748 if test -n "$LD"; then
44749   { echo "$as_me:$LINENO: result: $LD" >&5
44750 echo "${ECHO_T}$LD" >&6; }
44751 else
44752   { echo "$as_me:$LINENO: result: no" >&5
44753 echo "${ECHO_T}no" >&6; }
44754 fi
44755 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
44756 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
44757    { (exit 1); exit 1; }; }
44758 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
44759 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
44760 if test "${acl_cv_prog_gnu_ld+set}" = set; then
44761   echo $ECHO_N "(cached) $ECHO_C" >&6
44762 else
44763   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
44764 case `$LD -v 2>&1 </dev/null` in
44765 *GNU* | *'with BFD'*)
44766   acl_cv_prog_gnu_ld=yes ;;
44767 *)
44768   acl_cv_prog_gnu_ld=no ;;
44769 esac
44770 fi
44771 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
44772 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
44773 with_gnu_ld=$acl_cv_prog_gnu_ld
44774
44775
44776
44777
44778                                                 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
44779 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
44780 if test "${acl_cv_rpath+set}" = set; then
44781   echo $ECHO_N "(cached) $ECHO_C" >&6
44782 else
44783
44784     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
44785     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
44786     . ./conftest.sh
44787     rm -f ./conftest.sh
44788     acl_cv_rpath=done
44789
44790 fi
44791 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
44792 echo "${ECHO_T}$acl_cv_rpath" >&6; }
44793   wl="$acl_cv_wl"
44794   libext="$acl_cv_libext"
44795   shlibext="$acl_cv_shlibext"
44796   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
44797   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
44798   hardcode_direct="$acl_cv_hardcode_direct"
44799   hardcode_minus_L="$acl_cv_hardcode_minus_L"
44800     # Check whether --enable-rpath was given.
44801 if test "${enable_rpath+set}" = set; then
44802   enableval=$enable_rpath; :
44803 else
44804   enable_rpath=yes
44805 fi
44806
44807
44808
44809                   acl_libdirstem=lib
44810   searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
44811   if test -n "$searchpath"; then
44812     acl_save_IFS="${IFS=        }"; IFS=":"
44813     for searchdir in $searchpath; do
44814       if test -d "$searchdir"; then
44815         case "$searchdir" in
44816           */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
44817           *) searchdir=`cd "$searchdir" && pwd`
44818              case "$searchdir" in
44819                */lib64 ) acl_libdirstem=lib64 ;;
44820              esac ;;
44821         esac
44822       fi
44823     done
44824     IFS="$acl_save_IFS"
44825   fi
44826
44827
44828
44829
44830
44831
44832
44833
44834     use_additional=yes
44835
44836   acl_save_prefix="$prefix"
44837   prefix="$acl_final_prefix"
44838   acl_save_exec_prefix="$exec_prefix"
44839   exec_prefix="$acl_final_exec_prefix"
44840
44841     eval additional_includedir=\"$includedir\"
44842     eval additional_libdir=\"$libdir\"
44843
44844   exec_prefix="$acl_save_exec_prefix"
44845   prefix="$acl_save_prefix"
44846
44847
44848 # Check whether --with-libiconv-prefix was given.
44849 if test "${with_libiconv_prefix+set}" = set; then
44850   withval=$with_libiconv_prefix;
44851     if test "X$withval" = "Xno"; then
44852       use_additional=no
44853     else
44854       if test "X$withval" = "X"; then
44855
44856   acl_save_prefix="$prefix"
44857   prefix="$acl_final_prefix"
44858   acl_save_exec_prefix="$exec_prefix"
44859   exec_prefix="$acl_final_exec_prefix"
44860
44861           eval additional_includedir=\"$includedir\"
44862           eval additional_libdir=\"$libdir\"
44863
44864   exec_prefix="$acl_save_exec_prefix"
44865   prefix="$acl_save_prefix"
44866
44867       else
44868         additional_includedir="$withval/include"
44869         additional_libdir="$withval/$acl_libdirstem"
44870       fi
44871     fi
44872
44873 fi
44874
44875       LIBICONV=
44876   LTLIBICONV=
44877   INCICONV=
44878   rpathdirs=
44879   ltrpathdirs=
44880   names_already_handled=
44881   names_next_round='iconv '
44882   while test -n "$names_next_round"; do
44883     names_this_round="$names_next_round"
44884     names_next_round=
44885     for name in $names_this_round; do
44886       already_handled=
44887       for n in $names_already_handled; do
44888         if test "$n" = "$name"; then
44889           already_handled=yes
44890           break
44891         fi
44892       done
44893       if test -z "$already_handled"; then
44894         names_already_handled="$names_already_handled $name"
44895                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
44896         eval value=\"\$HAVE_LIB$uppername\"
44897         if test -n "$value"; then
44898           if test "$value" = yes; then
44899             eval value=\"\$LIB$uppername\"
44900             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
44901             eval value=\"\$LTLIB$uppername\"
44902             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
44903           else
44904                                     :
44905           fi
44906         else
44907                               found_dir=
44908           found_la=
44909           found_so=
44910           found_a=
44911           if test $use_additional = yes; then
44912             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
44913               found_dir="$additional_libdir"
44914               found_so="$additional_libdir/lib$name.$shlibext"
44915               if test -f "$additional_libdir/lib$name.la"; then
44916                 found_la="$additional_libdir/lib$name.la"
44917               fi
44918             else
44919               if test -f "$additional_libdir/lib$name.$libext"; then
44920                 found_dir="$additional_libdir"
44921                 found_a="$additional_libdir/lib$name.$libext"
44922                 if test -f "$additional_libdir/lib$name.la"; then
44923                   found_la="$additional_libdir/lib$name.la"
44924                 fi
44925               fi
44926             fi
44927           fi
44928           if test "X$found_dir" = "X"; then
44929             for x in $LDFLAGS $LTLIBICONV; do
44930
44931   acl_save_prefix="$prefix"
44932   prefix="$acl_final_prefix"
44933   acl_save_exec_prefix="$exec_prefix"
44934   exec_prefix="$acl_final_exec_prefix"
44935   eval x=\"$x\"
44936   exec_prefix="$acl_save_exec_prefix"
44937   prefix="$acl_save_prefix"
44938
44939               case "$x" in
44940                 -L*)
44941                   dir=`echo "X$x" | sed -e 's/^X-L//'`
44942                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
44943                     found_dir="$dir"
44944                     found_so="$dir/lib$name.$shlibext"
44945                     if test -f "$dir/lib$name.la"; then
44946                       found_la="$dir/lib$name.la"
44947                     fi
44948                   else
44949                     if test -f "$dir/lib$name.$libext"; then
44950                       found_dir="$dir"
44951                       found_a="$dir/lib$name.$libext"
44952                       if test -f "$dir/lib$name.la"; then
44953                         found_la="$dir/lib$name.la"
44954                       fi
44955                     fi
44956                   fi
44957                   ;;
44958               esac
44959               if test "X$found_dir" != "X"; then
44960                 break
44961               fi
44962             done
44963           fi
44964           if test "X$found_dir" != "X"; then
44965                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
44966             if test "X$found_so" != "X"; then
44967                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
44968                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
44969               else
44970                                                                                 haveit=
44971                 for x in $ltrpathdirs; do
44972                   if test "X$x" = "X$found_dir"; then
44973                     haveit=yes
44974                     break
44975                   fi
44976                 done
44977                 if test -z "$haveit"; then
44978                   ltrpathdirs="$ltrpathdirs $found_dir"
44979                 fi
44980                                 if test "$hardcode_direct" = yes; then
44981                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
44982                 else
44983                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
44984                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
44985                                                             haveit=
44986                     for x in $rpathdirs; do
44987                       if test "X$x" = "X$found_dir"; then
44988                         haveit=yes
44989                         break
44990                       fi
44991                     done
44992                     if test -z "$haveit"; then
44993                       rpathdirs="$rpathdirs $found_dir"
44994                     fi
44995                   else
44996                                                                                 haveit=
44997                     for x in $LDFLAGS $LIBICONV; do
44998
44999   acl_save_prefix="$prefix"
45000   prefix="$acl_final_prefix"
45001   acl_save_exec_prefix="$exec_prefix"
45002   exec_prefix="$acl_final_exec_prefix"
45003   eval x=\"$x\"
45004   exec_prefix="$acl_save_exec_prefix"
45005   prefix="$acl_save_prefix"
45006
45007                       if test "X$x" = "X-L$found_dir"; then
45008                         haveit=yes
45009                         break
45010                       fi
45011                     done
45012                     if test -z "$haveit"; then
45013                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
45014                     fi
45015                     if test "$hardcode_minus_L" != no; then
45016                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
45017                     else
45018                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
45019                     fi
45020                   fi
45021                 fi
45022               fi
45023             else
45024               if test "X$found_a" != "X"; then
45025                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
45026               else
45027                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
45028               fi
45029             fi
45030                         additional_includedir=
45031             case "$found_dir" in
45032               */$acl_libdirstem | */$acl_libdirstem/)
45033                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
45034                 additional_includedir="$basedir/include"
45035                 ;;
45036             esac
45037             if test "X$additional_includedir" != "X"; then
45038                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
45039                 haveit=
45040                 if test "X$additional_includedir" = "X/usr/local/include"; then
45041                   if test -n "$GCC"; then
45042                     case $host_os in
45043                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
45044                     esac
45045                   fi
45046                 fi
45047                 if test -z "$haveit"; then
45048                   for x in $CPPFLAGS $INCICONV; do
45049
45050   acl_save_prefix="$prefix"
45051   prefix="$acl_final_prefix"
45052   acl_save_exec_prefix="$exec_prefix"
45053   exec_prefix="$acl_final_exec_prefix"
45054   eval x=\"$x\"
45055   exec_prefix="$acl_save_exec_prefix"
45056   prefix="$acl_save_prefix"
45057
45058                     if test "X$x" = "X-I$additional_includedir"; then
45059                       haveit=yes
45060                       break
45061                     fi
45062                   done
45063                   if test -z "$haveit"; then
45064                     if test -d "$additional_includedir"; then
45065                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
45066                     fi
45067                   fi
45068                 fi
45069               fi
45070             fi
45071                         if test -n "$found_la"; then
45072                                                         save_libdir="$libdir"
45073               case "$found_la" in
45074                 */* | *\\*) . "$found_la" ;;
45075                 *) . "./$found_la" ;;
45076               esac
45077               libdir="$save_libdir"
45078                             for dep in $dependency_libs; do
45079                 case "$dep" in
45080                   -L*)
45081                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
45082                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
45083                       haveit=
45084                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
45085                         if test -n "$GCC"; then
45086                           case $host_os in
45087                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
45088                           esac
45089                         fi
45090                       fi
45091                       if test -z "$haveit"; then
45092                         haveit=
45093                         for x in $LDFLAGS $LIBICONV; do
45094
45095   acl_save_prefix="$prefix"
45096   prefix="$acl_final_prefix"
45097   acl_save_exec_prefix="$exec_prefix"
45098   exec_prefix="$acl_final_exec_prefix"
45099   eval x=\"$x\"
45100   exec_prefix="$acl_save_exec_prefix"
45101   prefix="$acl_save_prefix"
45102
45103                           if test "X$x" = "X-L$additional_libdir"; then
45104                             haveit=yes
45105                             break
45106                           fi
45107                         done
45108                         if test -z "$haveit"; then
45109                           if test -d "$additional_libdir"; then
45110                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
45111                           fi
45112                         fi
45113                         haveit=
45114                         for x in $LDFLAGS $LTLIBICONV; do
45115
45116   acl_save_prefix="$prefix"
45117   prefix="$acl_final_prefix"
45118   acl_save_exec_prefix="$exec_prefix"
45119   exec_prefix="$acl_final_exec_prefix"
45120   eval x=\"$x\"
45121   exec_prefix="$acl_save_exec_prefix"
45122   prefix="$acl_save_prefix"
45123
45124                           if test "X$x" = "X-L$additional_libdir"; then
45125                             haveit=yes
45126                             break
45127                           fi
45128                         done
45129                         if test -z "$haveit"; then
45130                           if test -d "$additional_libdir"; then
45131                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
45132                           fi
45133                         fi
45134                       fi
45135                     fi
45136                     ;;
45137                   -R*)
45138                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
45139                     if test "$enable_rpath" != no; then
45140                                                                   haveit=
45141                       for x in $rpathdirs; do
45142                         if test "X$x" = "X$dir"; then
45143                           haveit=yes
45144                           break
45145                         fi
45146                       done
45147                       if test -z "$haveit"; then
45148                         rpathdirs="$rpathdirs $dir"
45149                       fi
45150                                                                   haveit=
45151                       for x in $ltrpathdirs; do
45152                         if test "X$x" = "X$dir"; then
45153                           haveit=yes
45154                           break
45155                         fi
45156                       done
45157                       if test -z "$haveit"; then
45158                         ltrpathdirs="$ltrpathdirs $dir"
45159                       fi
45160                     fi
45161                     ;;
45162                   -l*)
45163                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
45164                     ;;
45165                   *.la)
45166                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
45167                     ;;
45168                   *)
45169                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
45170                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
45171                     ;;
45172                 esac
45173               done
45174             fi
45175           else
45176                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
45177             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
45178           fi
45179         fi
45180       fi
45181     done
45182   done
45183   if test "X$rpathdirs" != "X"; then
45184     if test -n "$hardcode_libdir_separator"; then
45185                         alldirs=
45186       for found_dir in $rpathdirs; do
45187         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
45188       done
45189             acl_save_libdir="$libdir"
45190       libdir="$alldirs"
45191       eval flag=\"$hardcode_libdir_flag_spec\"
45192       libdir="$acl_save_libdir"
45193       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
45194     else
45195             for found_dir in $rpathdirs; do
45196         acl_save_libdir="$libdir"
45197         libdir="$found_dir"
45198         eval flag=\"$hardcode_libdir_flag_spec\"
45199         libdir="$acl_save_libdir"
45200         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
45201       done
45202     fi
45203   fi
45204   if test "X$ltrpathdirs" != "X"; then
45205             for found_dir in $ltrpathdirs; do
45206       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
45207     done
45208   fi
45209
45210
45211
45212
45213     case " $LIBOBJS " in
45214   *" canonicalize.$ac_objext "* ) ;;
45215   *) LIBOBJS="$LIBOBJS canonicalize.$ac_objext"
45216  ;;
45217 esac
45218
45219
45220
45221 for ac_header in sys/param.h
45222 do
45223 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
45224 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
45225   { echo "$as_me:$LINENO: checking for $ac_header" >&5
45226 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
45227 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
45228   echo $ECHO_N "(cached) $ECHO_C" >&6
45229 fi
45230 ac_res=`eval echo '${'$as_ac_Header'}'`
45231                { echo "$as_me:$LINENO: result: $ac_res" >&5
45232 echo "${ECHO_T}$ac_res" >&6; }
45233 else
45234   # Is the header compilable?
45235 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
45236 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
45237 cat >conftest.$ac_ext <<_ACEOF
45238 /* confdefs.h.  */
45239 _ACEOF
45240 cat confdefs.h >>conftest.$ac_ext
45241 cat >>conftest.$ac_ext <<_ACEOF
45242 /* end confdefs.h.  */
45243 $ac_includes_default
45244 #include <$ac_header>
45245 _ACEOF
45246 rm -f conftest.$ac_objext
45247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45248   (eval $ac_compile) 2>conftest.er1
45249   ac_status=$?
45250   grep -v '^ *+' conftest.er1 >conftest.err
45251   rm -f conftest.er1
45252   cat conftest.err >&5
45253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45254   (exit $ac_status); } &&
45255          { ac_try='test -z "$ac_c_werror_flag"
45256                          || test ! -s conftest.err'
45257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45258   (eval $ac_try) 2>&5
45259   ac_status=$?
45260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45261   (exit $ac_status); }; } &&
45262          { ac_try='test -s conftest.$ac_objext'
45263   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45264   (eval $ac_try) 2>&5
45265   ac_status=$?
45266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45267   (exit $ac_status); }; }; then
45268   ac_header_compiler=yes
45269 else
45270   echo "$as_me: failed program was:" >&5
45271 sed 's/^/| /' conftest.$ac_ext >&5
45272
45273         ac_header_compiler=no
45274 fi
45275
45276 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
45277 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
45278 echo "${ECHO_T}$ac_header_compiler" >&6; }
45279
45280 # Is the header present?
45281 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
45282 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
45283 cat >conftest.$ac_ext <<_ACEOF
45284 /* confdefs.h.  */
45285 _ACEOF
45286 cat confdefs.h >>conftest.$ac_ext
45287 cat >>conftest.$ac_ext <<_ACEOF
45288 /* end confdefs.h.  */
45289 #include <$ac_header>
45290 _ACEOF
45291 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
45292   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
45293   ac_status=$?
45294   grep -v '^ *+' conftest.er1 >conftest.err
45295   rm -f conftest.er1
45296   cat conftest.err >&5
45297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45298   (exit $ac_status); } >/dev/null; then
45299   if test -s conftest.err; then
45300     ac_cpp_err=$ac_c_preproc_warn_flag
45301     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
45302   else
45303     ac_cpp_err=
45304   fi
45305 else
45306   ac_cpp_err=yes
45307 fi
45308 if test -z "$ac_cpp_err"; then
45309   ac_header_preproc=yes
45310 else
45311   echo "$as_me: failed program was:" >&5
45312 sed 's/^/| /' conftest.$ac_ext >&5
45313
45314   ac_header_preproc=no
45315 fi
45316
45317 rm -f conftest.err conftest.$ac_ext
45318 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
45319 echo "${ECHO_T}$ac_header_preproc" >&6; }
45320
45321 # So?  What about this header?
45322 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
45323   yes:no: )
45324     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
45325 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
45326     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
45327 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
45328     ac_header_preproc=yes
45329     ;;
45330   no:yes:* )
45331     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
45332 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
45333     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
45334 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
45335     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
45336 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
45337     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
45338 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
45339     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
45340 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
45341     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
45342 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
45343     ( cat <<\_ASBOX
45344 ## ------------------------------------ ##
45345 ## Report this to bug-coreutils@gnu.org ##
45346 ## ------------------------------------ ##
45347 _ASBOX
45348      ) | sed "s/^/$as_me: WARNING:     /" >&2
45349     ;;
45350 esac
45351 { echo "$as_me:$LINENO: checking for $ac_header" >&5
45352 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
45353 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
45354   echo $ECHO_N "(cached) $ECHO_C" >&6
45355 else
45356   eval "$as_ac_Header=\$ac_header_preproc"
45357 fi
45358 ac_res=`eval echo '${'$as_ac_Header'}'`
45359                { echo "$as_me:$LINENO: result: $ac_res" >&5
45360 echo "${ECHO_T}$ac_res" >&6; }
45361
45362 fi
45363 if test `eval echo '${'$as_ac_Header'}'` = yes; then
45364   cat >>confdefs.h <<_ACEOF
45365 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
45366 _ACEOF
45367
45368 fi
45369
45370 done
45371
45372
45373
45374 for ac_func in resolvepath canonicalize_file_name
45375 do
45376 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45377 { echo "$as_me:$LINENO: checking for $ac_func" >&5
45378 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
45379 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
45380   echo $ECHO_N "(cached) $ECHO_C" >&6
45381 else
45382   cat >conftest.$ac_ext <<_ACEOF
45383 /* confdefs.h.  */
45384 _ACEOF
45385 cat confdefs.h >>conftest.$ac_ext
45386 cat >>conftest.$ac_ext <<_ACEOF
45387 /* end confdefs.h.  */
45388 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45389    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45390 #define $ac_func innocuous_$ac_func
45391
45392 /* System header to define __stub macros and hopefully few prototypes,
45393     which can conflict with char $ac_func (); below.
45394     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45395     <limits.h> exists even on freestanding compilers.  */
45396
45397 #ifdef __STDC__
45398 # include <limits.h>
45399 #else
45400 # include <assert.h>
45401 #endif
45402
45403 #undef $ac_func
45404
45405 /* Override any GCC internal prototype to avoid an error.
45406    Use char because int might match the return type of a GCC
45407    builtin and then its argument prototype would still apply.  */
45408 #ifdef __cplusplus
45409 extern "C"
45410 #endif
45411 char $ac_func ();
45412 /* The GNU C library defines this for functions which it implements
45413     to always fail with ENOSYS.  Some functions are actually named
45414     something starting with __ and the normal name is an alias.  */
45415 #if defined __stub_$ac_func || defined __stub___$ac_func
45416 choke me
45417 #endif
45418
45419 int
45420 main ()
45421 {
45422 return $ac_func ();
45423   ;
45424   return 0;
45425 }
45426 _ACEOF
45427 rm -f conftest.$ac_objext conftest$ac_exeext
45428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45429   (eval $ac_link) 2>conftest.er1
45430   ac_status=$?
45431   grep -v '^ *+' conftest.er1 >conftest.err
45432   rm -f conftest.er1
45433   cat conftest.err >&5
45434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45435   (exit $ac_status); } &&
45436          { ac_try='test -z "$ac_c_werror_flag"
45437                          || test ! -s conftest.err'
45438   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45439   (eval $ac_try) 2>&5
45440   ac_status=$?
45441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45442   (exit $ac_status); }; } &&
45443          { ac_try='test -s conftest$ac_exeext'
45444   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45445   (eval $ac_try) 2>&5
45446   ac_status=$?
45447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45448   (exit $ac_status); }; }; then
45449   eval "$as_ac_var=yes"
45450 else
45451   echo "$as_me: failed program was:" >&5
45452 sed 's/^/| /' conftest.$ac_ext >&5
45453
45454         eval "$as_ac_var=no"
45455 fi
45456
45457 rm -f conftest.err conftest.$ac_objext \
45458       conftest$ac_exeext conftest.$ac_ext
45459 fi
45460 ac_res=`eval echo '${'$as_ac_var'}'`
45461                { echo "$as_me:$LINENO: result: $ac_res" >&5
45462 echo "${ECHO_T}$ac_res" >&6; }
45463 if test `eval echo '${'$as_ac_var'}'` = yes; then
45464   cat >>confdefs.h <<_ACEOF
45465 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45466 _ACEOF
45467
45468 fi
45469 done
45470
45471
45472
45473
45474   { echo "$as_me:$LINENO: checking whether this system has an arbitrary file name length limit" >&5
45475 echo $ECHO_N "checking whether this system has an arbitrary file name length limit... $ECHO_C" >&6; }
45476 if test "${gl_have_arbitrary_file_name_length_limit+set}" = set; then
45477   echo $ECHO_N "(cached) $ECHO_C" >&6
45478 else
45479   cat >conftest.$ac_ext <<_ACEOF
45480 /* confdefs.h.  */
45481 _ACEOF
45482 cat confdefs.h >>conftest.$ac_ext
45483 cat >>conftest.$ac_ext <<_ACEOF
45484 /* end confdefs.h.  */
45485 #include <unistd.h>
45486 #include <limits.h>
45487 #if defined PATH_MAX || defined MAXPATHLEN
45488 have_arbitrary_file_name_length_limit
45489 #endif
45490 _ACEOF
45491 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45492   $EGREP "have_arbitrary_file_name_length_limit" >/dev/null 2>&1; then
45493   gl_have_arbitrary_file_name_length_limit=yes
45494 else
45495   gl_have_arbitrary_file_name_length_limit=no
45496 fi
45497 rm -f conftest*
45498
45499 fi
45500 { echo "$as_me:$LINENO: result: $gl_have_arbitrary_file_name_length_limit" >&5
45501 echo "${ECHO_T}$gl_have_arbitrary_file_name_length_limit" >&6; }
45502
45503   if test $gl_have_arbitrary_file_name_length_limit = yes; then
45504     case " $LIBOBJS " in
45505   *" chdir-long.$ac_objext "* ) ;;
45506   *) LIBOBJS="$LIBOBJS chdir-long.$ac_objext"
45507  ;;
45508 esac
45509
45510
45511
45512
45513
45514   # Define two additional variables used in the Makefile substitution.
45515
45516   if test "$ac_cv_header_stdbool_h" = yes; then
45517     STDBOOL_H=''
45518   else
45519     STDBOOL_H='stdbool.h'
45520   fi
45521
45522
45523   if test "$ac_cv_type__Bool" = yes; then
45524     HAVE__BOOL=1
45525   else
45526     HAVE__BOOL=0
45527   fi
45528
45529
45530
45531
45532
45533
45534
45535
45536 for ac_func in mempcpy
45537 do
45538 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45539 { echo "$as_me:$LINENO: checking for $ac_func" >&5
45540 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
45541 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
45542   echo $ECHO_N "(cached) $ECHO_C" >&6
45543 else
45544   cat >conftest.$ac_ext <<_ACEOF
45545 /* confdefs.h.  */
45546 _ACEOF
45547 cat confdefs.h >>conftest.$ac_ext
45548 cat >>conftest.$ac_ext <<_ACEOF
45549 /* end confdefs.h.  */
45550 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45551    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45552 #define $ac_func innocuous_$ac_func
45553
45554 /* System header to define __stub macros and hopefully few prototypes,
45555     which can conflict with char $ac_func (); below.
45556     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45557     <limits.h> exists even on freestanding compilers.  */
45558
45559 #ifdef __STDC__
45560 # include <limits.h>
45561 #else
45562 # include <assert.h>
45563 #endif
45564
45565 #undef $ac_func
45566
45567 /* Override any GCC internal prototype to avoid an error.
45568    Use char because int might match the return type of a GCC
45569    builtin and then its argument prototype would still apply.  */
45570 #ifdef __cplusplus
45571 extern "C"
45572 #endif
45573 char $ac_func ();
45574 /* The GNU C library defines this for functions which it implements
45575     to always fail with ENOSYS.  Some functions are actually named
45576     something starting with __ and the normal name is an alias.  */
45577 #if defined __stub_$ac_func || defined __stub___$ac_func
45578 choke me
45579 #endif
45580
45581 int
45582 main ()
45583 {
45584 return $ac_func ();
45585   ;
45586   return 0;
45587 }
45588 _ACEOF
45589 rm -f conftest.$ac_objext conftest$ac_exeext
45590 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45591   (eval $ac_link) 2>conftest.er1
45592   ac_status=$?
45593   grep -v '^ *+' conftest.er1 >conftest.err
45594   rm -f conftest.er1
45595   cat conftest.err >&5
45596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45597   (exit $ac_status); } &&
45598          { ac_try='test -z "$ac_c_werror_flag"
45599                          || test ! -s conftest.err'
45600   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45601   (eval $ac_try) 2>&5
45602   ac_status=$?
45603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45604   (exit $ac_status); }; } &&
45605          { ac_try='test -s conftest$ac_exeext'
45606   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45607   (eval $ac_try) 2>&5
45608   ac_status=$?
45609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45610   (exit $ac_status); }; }; then
45611   eval "$as_ac_var=yes"
45612 else
45613   echo "$as_me: failed program was:" >&5
45614 sed 's/^/| /' conftest.$ac_ext >&5
45615
45616         eval "$as_ac_var=no"
45617 fi
45618
45619 rm -f conftest.err conftest.$ac_objext \
45620       conftest$ac_exeext conftest.$ac_ext
45621 fi
45622 ac_res=`eval echo '${'$as_ac_var'}'`
45623                { echo "$as_me:$LINENO: result: $ac_res" >&5
45624 echo "${ECHO_T}$ac_res" >&6; }
45625 if test `eval echo '${'$as_ac_var'}'` = yes; then
45626   cat >>confdefs.h <<_ACEOF
45627 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45628 _ACEOF
45629
45630 else
45631   case " $LIBOBJS " in
45632   *" $ac_func.$ac_objext "* ) ;;
45633   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
45634  ;;
45635 esac
45636
45637 fi
45638 done
45639
45640
45641   if test $ac_cv_func_mempcpy = no; then
45642
45643   :
45644
45645   fi
45646
45647
45648
45649
45650
45651
45652
45653   # No system provides these functions; compile them unconditionally.
45654   case " $LIBOBJS " in
45655   *" mkdirat.$ac_objext "* ) ;;
45656   *) LIBOBJS="$LIBOBJS mkdirat.$ac_objext"
45657  ;;
45658 esac
45659
45660   case " $LIBOBJS " in
45661   *" fchmodat.$ac_objext "* ) ;;
45662   *) LIBOBJS="$LIBOBJS fchmodat.$ac_objext"
45663  ;;
45664 esac
45665
45666
45667   case " $LIBOBJS " in
45668   *" openat-die.$ac_objext "* ) ;;
45669   *) LIBOBJS="$LIBOBJS openat-die.$ac_objext"
45670  ;;
45671 esac
45672
45673
45674
45675   :
45676
45677
45678
45679
45680
45681
45682   :
45683
45684
45685
45686
45687
45688
45689 for ac_func in openat
45690 do
45691 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45692 { echo "$as_me:$LINENO: checking for $ac_func" >&5
45693 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
45694 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
45695   echo $ECHO_N "(cached) $ECHO_C" >&6
45696 else
45697   cat >conftest.$ac_ext <<_ACEOF
45698 /* confdefs.h.  */
45699 _ACEOF
45700 cat confdefs.h >>conftest.$ac_ext
45701 cat >>conftest.$ac_ext <<_ACEOF
45702 /* end confdefs.h.  */
45703 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45704    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45705 #define $ac_func innocuous_$ac_func
45706
45707 /* System header to define __stub macros and hopefully few prototypes,
45708     which can conflict with char $ac_func (); below.
45709     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45710     <limits.h> exists even on freestanding compilers.  */
45711
45712 #ifdef __STDC__
45713 # include <limits.h>
45714 #else
45715 # include <assert.h>
45716 #endif
45717
45718 #undef $ac_func
45719
45720 /* Override any GCC internal prototype to avoid an error.
45721    Use char because int might match the return type of a GCC
45722    builtin and then its argument prototype would still apply.  */
45723 #ifdef __cplusplus
45724 extern "C"
45725 #endif
45726 char $ac_func ();
45727 /* The GNU C library defines this for functions which it implements
45728     to always fail with ENOSYS.  Some functions are actually named
45729     something starting with __ and the normal name is an alias.  */
45730 #if defined __stub_$ac_func || defined __stub___$ac_func
45731 choke me
45732 #endif
45733
45734 int
45735 main ()
45736 {
45737 return $ac_func ();
45738   ;
45739   return 0;
45740 }
45741 _ACEOF
45742 rm -f conftest.$ac_objext conftest$ac_exeext
45743 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45744   (eval $ac_link) 2>conftest.er1
45745   ac_status=$?
45746   grep -v '^ *+' conftest.er1 >conftest.err
45747   rm -f conftest.er1
45748   cat conftest.err >&5
45749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45750   (exit $ac_status); } &&
45751          { ac_try='test -z "$ac_c_werror_flag"
45752                          || test ! -s conftest.err'
45753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45754   (eval $ac_try) 2>&5
45755   ac_status=$?
45756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45757   (exit $ac_status); }; } &&
45758          { ac_try='test -s conftest$ac_exeext'
45759   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45760   (eval $ac_try) 2>&5
45761   ac_status=$?
45762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45763   (exit $ac_status); }; }; then
45764   eval "$as_ac_var=yes"
45765 else
45766   echo "$as_me: failed program was:" >&5
45767 sed 's/^/| /' conftest.$ac_ext >&5
45768
45769         eval "$as_ac_var=no"
45770 fi
45771
45772 rm -f conftest.err conftest.$ac_objext \
45773       conftest$ac_exeext conftest.$ac_ext
45774 fi
45775 ac_res=`eval echo '${'$as_ac_var'}'`
45776                { echo "$as_me:$LINENO: result: $ac_res" >&5
45777 echo "${ECHO_T}$ac_res" >&6; }
45778 if test `eval echo '${'$as_ac_var'}'` = yes; then
45779   cat >>confdefs.h <<_ACEOF
45780 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45781 _ACEOF
45782
45783 else
45784   case " $LIBOBJS " in
45785   *" $ac_func.$ac_objext "* ) ;;
45786   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
45787  ;;
45788 esac
45789
45790 fi
45791 done
45792
45793
45794   case $ac_cv_func_openat in
45795   yes) ;;
45796   *)
45797
45798 cat >>confdefs.h <<\_ACEOF
45799 #define __OPENAT_PREFIX rpl_
45800 _ACEOF
45801
45802
45803
45804 ;;
45805   esac
45806
45807
45808
45809
45810
45811
45812
45813   :
45814
45815
45816
45817
45818
45819
45820
45821 for ac_func in memrchr
45822 do
45823 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45824 { echo "$as_me:$LINENO: checking for $ac_func" >&5
45825 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
45826 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
45827   echo $ECHO_N "(cached) $ECHO_C" >&6
45828 else
45829   cat >conftest.$ac_ext <<_ACEOF
45830 /* confdefs.h.  */
45831 _ACEOF
45832 cat confdefs.h >>conftest.$ac_ext
45833 cat >>conftest.$ac_ext <<_ACEOF
45834 /* end confdefs.h.  */
45835 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45836    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45837 #define $ac_func innocuous_$ac_func
45838
45839 /* System header to define __stub macros and hopefully few prototypes,
45840     which can conflict with char $ac_func (); below.
45841     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45842     <limits.h> exists even on freestanding compilers.  */
45843
45844 #ifdef __STDC__
45845 # include <limits.h>
45846 #else
45847 # include <assert.h>
45848 #endif
45849
45850 #undef $ac_func
45851
45852 /* Override any GCC internal prototype to avoid an error.
45853    Use char because int might match the return type of a GCC
45854    builtin and then its argument prototype would still apply.  */
45855 #ifdef __cplusplus
45856 extern "C"
45857 #endif
45858 char $ac_func ();
45859 /* The GNU C library defines this for functions which it implements
45860     to always fail with ENOSYS.  Some functions are actually named
45861     something starting with __ and the normal name is an alias.  */
45862 #if defined __stub_$ac_func || defined __stub___$ac_func
45863 choke me
45864 #endif
45865
45866 int
45867 main ()
45868 {
45869 return $ac_func ();
45870   ;
45871   return 0;
45872 }
45873 _ACEOF
45874 rm -f conftest.$ac_objext conftest$ac_exeext
45875 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45876   (eval $ac_link) 2>conftest.er1
45877   ac_status=$?
45878   grep -v '^ *+' conftest.er1 >conftest.err
45879   rm -f conftest.er1
45880   cat conftest.err >&5
45881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45882   (exit $ac_status); } &&
45883          { ac_try='test -z "$ac_c_werror_flag"
45884                          || test ! -s conftest.err'
45885   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45886   (eval $ac_try) 2>&5
45887   ac_status=$?
45888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45889   (exit $ac_status); }; } &&
45890          { ac_try='test -s conftest$ac_exeext'
45891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45892   (eval $ac_try) 2>&5
45893   ac_status=$?
45894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45895   (exit $ac_status); }; }; then
45896   eval "$as_ac_var=yes"
45897 else
45898   echo "$as_me: failed program was:" >&5
45899 sed 's/^/| /' conftest.$ac_ext >&5
45900
45901         eval "$as_ac_var=no"
45902 fi
45903
45904 rm -f conftest.err conftest.$ac_objext \
45905       conftest$ac_exeext conftest.$ac_ext
45906 fi
45907 ac_res=`eval echo '${'$as_ac_var'}'`
45908                { echo "$as_me:$LINENO: result: $ac_res" >&5
45909 echo "${ECHO_T}$ac_res" >&6; }
45910 if test `eval echo '${'$as_ac_var'}'` = yes; then
45911   cat >>confdefs.h <<_ACEOF
45912 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45913 _ACEOF
45914
45915 else
45916   case " $LIBOBJS " in
45917   *" $ac_func.$ac_objext "* ) ;;
45918   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
45919  ;;
45920 esac
45921
45922 fi
45923 done
45924
45925
45926   if test $ac_cv_func_memrchr = no; then
45927     :
45928   fi
45929
45930
45931   fi
45932
45933
45934
45935   case " $LIBOBJS " in
45936   *" xfts.$ac_objext "* ) ;;
45937   *) LIBOBJS="$LIBOBJS xfts.$ac_objext"
45938  ;;
45939 esac
45940
45941
45942     :
45943
45944
45945
45946   case " $LIBOBJS " in
45947   *" root-dev-ino.$ac_objext "* ) ;;
45948   *) LIBOBJS="$LIBOBJS root-dev-ino.$ac_objext"
45949  ;;
45950 esac
45951
45952
45953
45954   :
45955
45956
45957
45958   case " $LIBOBJS " in
45959   *" version-etc-fsf.$ac_objext "* ) ;;
45960   *) LIBOBJS="$LIBOBJS version-etc-fsf.$ac_objext"
45961  ;;
45962 esac
45963
45964   case " $LIBOBJS " in
45965   *" version-etc.$ac_objext "* ) ;;
45966   *) LIBOBJS="$LIBOBJS version-etc.$ac_objext"
45967  ;;
45968 esac
45969
45970
45971     :
45972
45973
45974
45975   case " $LIBOBJS " in
45976   *" diacrit.$ac_objext "* ) ;;
45977   *) LIBOBJS="$LIBOBJS diacrit.$ac_objext"
45978  ;;
45979 esac
45980
45981
45982     :
45983
45984    { echo "$as_me:$LINENO: checking for socklen_t" >&5
45985 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
45986 if test "${ac_cv_type_socklen_t+set}" = set; then
45987   echo $ECHO_N "(cached) $ECHO_C" >&6
45988 else
45989   cat >conftest.$ac_ext <<_ACEOF
45990 /* confdefs.h.  */
45991 _ACEOF
45992 cat confdefs.h >>conftest.$ac_ext
45993 cat >>conftest.$ac_ext <<_ACEOF
45994 /* end confdefs.h.  */
45995 #include <sys/types.h>
45996       #if HAVE_SYS_SOCKET_H
45997       # include <sys/socket.h>
45998       #elif HAVE_WS2TCPIP_H
45999       # include <ws2tcpip.h>
46000       #endif
46001
46002 typedef socklen_t ac__type_new_;
46003 int
46004 main ()
46005 {
46006 if ((ac__type_new_ *) 0)
46007   return 0;
46008 if (sizeof (ac__type_new_))
46009   return 0;
46010   ;
46011   return 0;
46012 }
46013 _ACEOF
46014 rm -f conftest.$ac_objext
46015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46016   (eval $ac_compile) 2>conftest.er1
46017   ac_status=$?
46018   grep -v '^ *+' conftest.er1 >conftest.err
46019   rm -f conftest.er1
46020   cat conftest.err >&5
46021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46022   (exit $ac_status); } &&
46023          { ac_try='test -z "$ac_c_werror_flag"
46024                          || test ! -s conftest.err'
46025   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46026   (eval $ac_try) 2>&5
46027   ac_status=$?
46028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46029   (exit $ac_status); }; } &&
46030          { ac_try='test -s conftest.$ac_objext'
46031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46032   (eval $ac_try) 2>&5
46033   ac_status=$?
46034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46035   (exit $ac_status); }; }; then
46036   ac_cv_type_socklen_t=yes
46037 else
46038   echo "$as_me: failed program was:" >&5
46039 sed 's/^/| /' conftest.$ac_ext >&5
46040
46041         ac_cv_type_socklen_t=no
46042 fi
46043
46044 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46045 fi
46046 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
46047 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
46048 if test $ac_cv_type_socklen_t = yes; then
46049   :
46050 else
46051   { echo "$as_me:$LINENO: checking for socklen_t equivalent" >&5
46052 echo $ECHO_N "checking for socklen_t equivalent... $ECHO_C" >&6; }
46053       if test "${gl_cv_gl_cv_socklen_t_equiv+set}" = set; then
46054   echo $ECHO_N "(cached) $ECHO_C" >&6
46055 else
46056   # Systems have either "struct sockaddr *" or
46057          # "void *" as the second argument to getpeername
46058          gl_cv_socklen_t_equiv=
46059          for arg2 in "struct sockaddr" void; do
46060            for t in int size_t "unsigned int" "long int" "unsigned long int"; do
46061              cat >conftest.$ac_ext <<_ACEOF
46062 /* confdefs.h.  */
46063 _ACEOF
46064 cat confdefs.h >>conftest.$ac_ext
46065 cat >>conftest.$ac_ext <<_ACEOF
46066 /* end confdefs.h.  */
46067 #include <sys/types.h>
46068                 #include <sys/socket.h>
46069
46070                 int getpeername (int, $arg2 *, $t *);
46071 int
46072 main ()
46073 {
46074 $t len;
46075                 getpeername (0, 0, &len);
46076   ;
46077   return 0;
46078 }
46079 _ACEOF
46080 rm -f conftest.$ac_objext
46081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46082   (eval $ac_compile) 2>conftest.er1
46083   ac_status=$?
46084   grep -v '^ *+' conftest.er1 >conftest.err
46085   rm -f conftest.er1
46086   cat conftest.err >&5
46087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46088   (exit $ac_status); } &&
46089          { ac_try='test -z "$ac_c_werror_flag"
46090                          || test ! -s conftest.err'
46091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46092   (eval $ac_try) 2>&5
46093   ac_status=$?
46094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46095   (exit $ac_status); }; } &&
46096          { ac_try='test -s conftest.$ac_objext'
46097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46098   (eval $ac_try) 2>&5
46099   ac_status=$?
46100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46101   (exit $ac_status); }; }; then
46102   gl_cv_socklen_t_equiv="$t"
46103 else
46104   echo "$as_me: failed program was:" >&5
46105 sed 's/^/| /' conftest.$ac_ext >&5
46106
46107
46108 fi
46109
46110 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46111              test "$gl_cv_socklen_t_equiv" != "" && break
46112            done
46113            test "$gl_cv_socklen_t_equiv" != "" && break
46114          done
46115
46116 fi
46117
46118       if test "$gl_cv_socklen_t_equiv" = ""; then
46119         { { echo "$as_me:$LINENO: error: Cannot find a type to use in place of socklen_t" >&5
46120 echo "$as_me: error: Cannot find a type to use in place of socklen_t" >&2;}
46121    { (exit 1); exit 1; }; }
46122       fi
46123       { echo "$as_me:$LINENO: result: $gl_cv_socklen_t_equiv" >&5
46124 echo "${ECHO_T}$gl_cv_socklen_t_equiv" >&6; }
46125
46126 cat >>confdefs.h <<_ACEOF
46127 #define socklen_t $gl_cv_socklen_t_equiv
46128 _ACEOF
46129
46130 fi
46131
46132
46133
46134   case " $LIBOBJS " in
46135   *" fprintftime.$ac_objext "* ) ;;
46136   *) LIBOBJS="$LIBOBJS fprintftime.$ac_objext"
46137  ;;
46138 esac
46139
46140
46141
46142
46143
46144   GNU_PACKAGE="GNU $PACKAGE"
46145
46146 cat >>confdefs.h <<_ACEOF
46147 #define GNU_PACKAGE "$GNU_PACKAGE"
46148 _ACEOF
46149
46150
46151
46152
46153 HELP2MAN=${HELP2MAN-"${am_missing_run}help2man"}
46154
46155
46156
46157
46158
46159
46160
46161
46162
46163
46164
46165
46166
46167
46168
46169
46170
46171
46172
46173
46174   { echo "$as_me:$LINENO: checking for struct stat.st_author" >&5
46175 echo $ECHO_N "checking for struct stat.st_author... $ECHO_C" >&6; }
46176 if test "${ac_cv_member_struct_stat_st_author+set}" = set; then
46177   echo $ECHO_N "(cached) $ECHO_C" >&6
46178 else
46179   cat >conftest.$ac_ext <<_ACEOF
46180 /* confdefs.h.  */
46181 _ACEOF
46182 cat confdefs.h >>conftest.$ac_ext
46183 cat >>conftest.$ac_ext <<_ACEOF
46184 /* end confdefs.h.  */
46185 $ac_includes_default
46186 #include <sys/stat.h>
46187
46188
46189 int
46190 main ()
46191 {
46192 static struct stat ac_aggr;
46193 if (ac_aggr.st_author)
46194 return 0;
46195   ;
46196   return 0;
46197 }
46198 _ACEOF
46199 rm -f conftest.$ac_objext
46200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46201   (eval $ac_compile) 2>conftest.er1
46202   ac_status=$?
46203   grep -v '^ *+' conftest.er1 >conftest.err
46204   rm -f conftest.er1
46205   cat conftest.err >&5
46206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46207   (exit $ac_status); } &&
46208          { ac_try='test -z "$ac_c_werror_flag"
46209                          || test ! -s conftest.err'
46210   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46211   (eval $ac_try) 2>&5
46212   ac_status=$?
46213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46214   (exit $ac_status); }; } &&
46215          { ac_try='test -s conftest.$ac_objext'
46216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46217   (eval $ac_try) 2>&5
46218   ac_status=$?
46219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46220   (exit $ac_status); }; }; then
46221   ac_cv_member_struct_stat_st_author=yes
46222 else
46223   echo "$as_me: failed program was:" >&5
46224 sed 's/^/| /' conftest.$ac_ext >&5
46225
46226         cat >conftest.$ac_ext <<_ACEOF
46227 /* confdefs.h.  */
46228 _ACEOF
46229 cat confdefs.h >>conftest.$ac_ext
46230 cat >>conftest.$ac_ext <<_ACEOF
46231 /* end confdefs.h.  */
46232 $ac_includes_default
46233 #include <sys/stat.h>
46234
46235
46236 int
46237 main ()
46238 {
46239 static struct stat ac_aggr;
46240 if (sizeof ac_aggr.st_author)
46241 return 0;
46242   ;
46243   return 0;
46244 }
46245 _ACEOF
46246 rm -f conftest.$ac_objext
46247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46248   (eval $ac_compile) 2>conftest.er1
46249   ac_status=$?
46250   grep -v '^ *+' conftest.er1 >conftest.err
46251   rm -f conftest.er1
46252   cat conftest.err >&5
46253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46254   (exit $ac_status); } &&
46255          { ac_try='test -z "$ac_c_werror_flag"
46256                          || test ! -s conftest.err'
46257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46258   (eval $ac_try) 2>&5
46259   ac_status=$?
46260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46261   (exit $ac_status); }; } &&
46262          { ac_try='test -s conftest.$ac_objext'
46263   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46264   (eval $ac_try) 2>&5
46265   ac_status=$?
46266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46267   (exit $ac_status); }; }; then
46268   ac_cv_member_struct_stat_st_author=yes
46269 else
46270   echo "$as_me: failed program was:" >&5
46271 sed 's/^/| /' conftest.$ac_ext >&5
46272
46273         ac_cv_member_struct_stat_st_author=no
46274 fi
46275
46276 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46277 fi
46278
46279 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46280 fi
46281 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_author" >&5
46282 echo "${ECHO_T}$ac_cv_member_struct_stat_st_author" >&6; }
46283 if test $ac_cv_member_struct_stat_st_author = yes; then
46284
46285 cat >>confdefs.h <<_ACEOF
46286 #define HAVE_STRUCT_STAT_ST_AUTHOR 1
46287 _ACEOF
46288
46289
46290 fi
46291 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
46292 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
46293 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
46294   echo $ECHO_N "(cached) $ECHO_C" >&6
46295 else
46296   cat >conftest.$ac_ext <<_ACEOF
46297 /* confdefs.h.  */
46298 _ACEOF
46299 cat confdefs.h >>conftest.$ac_ext
46300 cat >>conftest.$ac_ext <<_ACEOF
46301 /* end confdefs.h.  */
46302 $ac_includes_default
46303 #include <sys/stat.h>
46304
46305
46306 int
46307 main ()
46308 {
46309 static struct stat ac_aggr;
46310 if (ac_aggr.st_blksize)
46311 return 0;
46312   ;
46313   return 0;
46314 }
46315 _ACEOF
46316 rm -f conftest.$ac_objext
46317 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46318   (eval $ac_compile) 2>conftest.er1
46319   ac_status=$?
46320   grep -v '^ *+' conftest.er1 >conftest.err
46321   rm -f conftest.er1
46322   cat conftest.err >&5
46323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46324   (exit $ac_status); } &&
46325          { ac_try='test -z "$ac_c_werror_flag"
46326                          || test ! -s conftest.err'
46327   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46328   (eval $ac_try) 2>&5
46329   ac_status=$?
46330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46331   (exit $ac_status); }; } &&
46332          { ac_try='test -s conftest.$ac_objext'
46333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46334   (eval $ac_try) 2>&5
46335   ac_status=$?
46336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46337   (exit $ac_status); }; }; then
46338   ac_cv_member_struct_stat_st_blksize=yes
46339 else
46340   echo "$as_me: failed program was:" >&5
46341 sed 's/^/| /' conftest.$ac_ext >&5
46342
46343         cat >conftest.$ac_ext <<_ACEOF
46344 /* confdefs.h.  */
46345 _ACEOF
46346 cat confdefs.h >>conftest.$ac_ext
46347 cat >>conftest.$ac_ext <<_ACEOF
46348 /* end confdefs.h.  */
46349 $ac_includes_default
46350 #include <sys/stat.h>
46351
46352
46353 int
46354 main ()
46355 {
46356 static struct stat ac_aggr;
46357 if (sizeof ac_aggr.st_blksize)
46358 return 0;
46359   ;
46360   return 0;
46361 }
46362 _ACEOF
46363 rm -f conftest.$ac_objext
46364 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46365   (eval $ac_compile) 2>conftest.er1
46366   ac_status=$?
46367   grep -v '^ *+' conftest.er1 >conftest.err
46368   rm -f conftest.er1
46369   cat conftest.err >&5
46370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46371   (exit $ac_status); } &&
46372          { ac_try='test -z "$ac_c_werror_flag"
46373                          || test ! -s conftest.err'
46374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46375   (eval $ac_try) 2>&5
46376   ac_status=$?
46377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46378   (exit $ac_status); }; } &&
46379          { ac_try='test -s conftest.$ac_objext'
46380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46381   (eval $ac_try) 2>&5
46382   ac_status=$?
46383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46384   (exit $ac_status); }; }; then
46385   ac_cv_member_struct_stat_st_blksize=yes
46386 else
46387   echo "$as_me: failed program was:" >&5
46388 sed 's/^/| /' conftest.$ac_ext >&5
46389
46390         ac_cv_member_struct_stat_st_blksize=no
46391 fi
46392
46393 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46394 fi
46395
46396 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46397 fi
46398 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
46399 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
46400 if test $ac_cv_member_struct_stat_st_blksize = yes; then
46401
46402 cat >>confdefs.h <<_ACEOF
46403 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
46404 _ACEOF
46405
46406
46407 fi
46408
46409
46410
46411
46412
46413
46414
46415
46416
46417
46418
46419
46420   { echo "$as_me:$LINENO: checking for ino_t" >&5
46421 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6; }
46422 if test "${ac_cv_type_ino_t+set}" = set; then
46423   echo $ECHO_N "(cached) $ECHO_C" >&6
46424 else
46425   cat >conftest.$ac_ext <<_ACEOF
46426 /* confdefs.h.  */
46427 _ACEOF
46428 cat confdefs.h >>conftest.$ac_ext
46429 cat >>conftest.$ac_ext <<_ACEOF
46430 /* end confdefs.h.  */
46431 $ac_includes_default
46432 typedef ino_t ac__type_new_;
46433 int
46434 main ()
46435 {
46436 if ((ac__type_new_ *) 0)
46437   return 0;
46438 if (sizeof (ac__type_new_))
46439   return 0;
46440   ;
46441   return 0;
46442 }
46443 _ACEOF
46444 rm -f conftest.$ac_objext
46445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46446   (eval $ac_compile) 2>conftest.er1
46447   ac_status=$?
46448   grep -v '^ *+' conftest.er1 >conftest.err
46449   rm -f conftest.er1
46450   cat conftest.err >&5
46451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46452   (exit $ac_status); } &&
46453          { ac_try='test -z "$ac_c_werror_flag"
46454                          || test ! -s conftest.err'
46455   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46456   (eval $ac_try) 2>&5
46457   ac_status=$?
46458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46459   (exit $ac_status); }; } &&
46460          { ac_try='test -s conftest.$ac_objext'
46461   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46462   (eval $ac_try) 2>&5
46463   ac_status=$?
46464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46465   (exit $ac_status); }; }; then
46466   ac_cv_type_ino_t=yes
46467 else
46468   echo "$as_me: failed program was:" >&5
46469 sed 's/^/| /' conftest.$ac_ext >&5
46470
46471         ac_cv_type_ino_t=no
46472 fi
46473
46474 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46475 fi
46476 { echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
46477 echo "${ECHO_T}$ac_cv_type_ino_t" >&6; }
46478 if test $ac_cv_type_ino_t = yes; then
46479   :
46480 else
46481
46482 cat >>confdefs.h <<_ACEOF
46483 #define ino_t unsigned long int
46484 _ACEOF
46485
46486 fi
46487
46488
46489
46490   { echo "$as_me:$LINENO: checking for ssize_t" >&5
46491 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
46492 if test "${gt_cv_ssize_t+set}" = set; then
46493   echo $ECHO_N "(cached) $ECHO_C" >&6
46494 else
46495   cat >conftest.$ac_ext <<_ACEOF
46496 /* confdefs.h.  */
46497 _ACEOF
46498 cat confdefs.h >>conftest.$ac_ext
46499 cat >>conftest.$ac_ext <<_ACEOF
46500 /* end confdefs.h.  */
46501 #include <sys/types.h>
46502 int
46503 main ()
46504 {
46505 int x = sizeof (ssize_t *) + sizeof (ssize_t);
46506   ;
46507   return 0;
46508 }
46509 _ACEOF
46510 rm -f conftest.$ac_objext
46511 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46512   (eval $ac_compile) 2>conftest.er1
46513   ac_status=$?
46514   grep -v '^ *+' conftest.er1 >conftest.err
46515   rm -f conftest.er1
46516   cat conftest.err >&5
46517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46518   (exit $ac_status); } &&
46519          { ac_try='test -z "$ac_c_werror_flag"
46520                          || test ! -s conftest.err'
46521   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46522   (eval $ac_try) 2>&5
46523   ac_status=$?
46524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46525   (exit $ac_status); }; } &&
46526          { ac_try='test -s conftest.$ac_objext'
46527   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46528   (eval $ac_try) 2>&5
46529   ac_status=$?
46530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46531   (exit $ac_status); }; }; then
46532   gt_cv_ssize_t=yes
46533 else
46534   echo "$as_me: failed program was:" >&5
46535 sed 's/^/| /' conftest.$ac_ext >&5
46536
46537         gt_cv_ssize_t=no
46538 fi
46539
46540 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46541 fi
46542 { echo "$as_me:$LINENO: result: $gt_cv_ssize_t" >&5
46543 echo "${ECHO_T}$gt_cv_ssize_t" >&6; }
46544   if test $gt_cv_ssize_t = no; then
46545
46546 cat >>confdefs.h <<\_ACEOF
46547 #define ssize_t int
46548 _ACEOF
46549
46550   fi
46551
46552
46553       { echo "$as_me:$LINENO: checking for major_t" >&5
46554 echo $ECHO_N "checking for major_t... $ECHO_C" >&6; }
46555 if test "${ac_cv_type_major_t+set}" = set; then
46556   echo $ECHO_N "(cached) $ECHO_C" >&6
46557 else
46558   cat >conftest.$ac_ext <<_ACEOF
46559 /* confdefs.h.  */
46560 _ACEOF
46561 cat confdefs.h >>conftest.$ac_ext
46562 cat >>conftest.$ac_ext <<_ACEOF
46563 /* end confdefs.h.  */
46564 $ac_includes_default
46565 typedef major_t ac__type_new_;
46566 int
46567 main ()
46568 {
46569 if ((ac__type_new_ *) 0)
46570   return 0;
46571 if (sizeof (ac__type_new_))
46572   return 0;
46573   ;
46574   return 0;
46575 }
46576 _ACEOF
46577 rm -f conftest.$ac_objext
46578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46579   (eval $ac_compile) 2>conftest.er1
46580   ac_status=$?
46581   grep -v '^ *+' conftest.er1 >conftest.err
46582   rm -f conftest.er1
46583   cat conftest.err >&5
46584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46585   (exit $ac_status); } &&
46586          { ac_try='test -z "$ac_c_werror_flag"
46587                          || test ! -s conftest.err'
46588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46589   (eval $ac_try) 2>&5
46590   ac_status=$?
46591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46592   (exit $ac_status); }; } &&
46593          { ac_try='test -s conftest.$ac_objext'
46594   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46595   (eval $ac_try) 2>&5
46596   ac_status=$?
46597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46598   (exit $ac_status); }; }; then
46599   ac_cv_type_major_t=yes
46600 else
46601   echo "$as_me: failed program was:" >&5
46602 sed 's/^/| /' conftest.$ac_ext >&5
46603
46604         ac_cv_type_major_t=no
46605 fi
46606
46607 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46608 fi
46609 { echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
46610 echo "${ECHO_T}$ac_cv_type_major_t" >&6; }
46611 if test $ac_cv_type_major_t = yes; then
46612   :
46613 else
46614
46615 cat >>confdefs.h <<_ACEOF
46616 #define major_t unsigned int
46617 _ACEOF
46618
46619 fi
46620
46621   { echo "$as_me:$LINENO: checking for minor_t" >&5
46622 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6; }
46623 if test "${ac_cv_type_minor_t+set}" = set; then
46624   echo $ECHO_N "(cached) $ECHO_C" >&6
46625 else
46626   cat >conftest.$ac_ext <<_ACEOF
46627 /* confdefs.h.  */
46628 _ACEOF
46629 cat confdefs.h >>conftest.$ac_ext
46630 cat >>conftest.$ac_ext <<_ACEOF
46631 /* end confdefs.h.  */
46632 $ac_includes_default
46633 typedef minor_t ac__type_new_;
46634 int
46635 main ()
46636 {
46637 if ((ac__type_new_ *) 0)
46638   return 0;
46639 if (sizeof (ac__type_new_))
46640   return 0;
46641   ;
46642   return 0;
46643 }
46644 _ACEOF
46645 rm -f conftest.$ac_objext
46646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46647   (eval $ac_compile) 2>conftest.er1
46648   ac_status=$?
46649   grep -v '^ *+' conftest.er1 >conftest.err
46650   rm -f conftest.er1
46651   cat conftest.err >&5
46652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46653   (exit $ac_status); } &&
46654          { ac_try='test -z "$ac_c_werror_flag"
46655                          || test ! -s conftest.err'
46656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46657   (eval $ac_try) 2>&5
46658   ac_status=$?
46659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46660   (exit $ac_status); }; } &&
46661          { ac_try='test -s conftest.$ac_objext'
46662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46663   (eval $ac_try) 2>&5
46664   ac_status=$?
46665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46666   (exit $ac_status); }; }; then
46667   ac_cv_type_minor_t=yes
46668 else
46669   echo "$as_me: failed program was:" >&5
46670 sed 's/^/| /' conftest.$ac_ext >&5
46671
46672         ac_cv_type_minor_t=no
46673 fi
46674
46675 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46676 fi
46677 { echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
46678 echo "${ECHO_T}$ac_cv_type_minor_t" >&6; }
46679 if test $ac_cv_type_minor_t = yes; then
46680   :
46681 else
46682
46683 cat >>confdefs.h <<_ACEOF
46684 #define minor_t unsigned int
46685 _ACEOF
46686
46687 fi
46688
46689
46690
46691
46692
46693
46694
46695
46696
46697
46698
46699
46700
46701
46702
46703
46704
46705
46706
46707
46708
46709
46710
46711
46712
46713
46714
46715
46716
46717
46718
46719
46720
46721   # This is for od and stat, and any other program that
46722   # uses the PRI.MAX macros from inttypes.h.
46723
46724
46725
46726
46727
46728
46729
46730
46731
46732   ac_have_func=no # yes means we've found a way to get the load average.
46733
46734 # Make sure getloadavg.c is where it belongs, at configure-time.
46735 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
46736   { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
46737 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
46738    { (exit 1); exit 1; }; }
46739
46740 ac_save_LIBS=$LIBS
46741
46742 # Check for getloadavg, but be sure not to touch the cache variable.
46743 ({ echo "$as_me:$LINENO: checking for getloadavg" >&5
46744 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6; }
46745 if test "${ac_cv_func_getloadavg+set}" = set; then
46746   echo $ECHO_N "(cached) $ECHO_C" >&6
46747 else
46748   cat >conftest.$ac_ext <<_ACEOF
46749 /* confdefs.h.  */
46750 _ACEOF
46751 cat confdefs.h >>conftest.$ac_ext
46752 cat >>conftest.$ac_ext <<_ACEOF
46753 /* end confdefs.h.  */
46754 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
46755    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
46756 #define getloadavg innocuous_getloadavg
46757
46758 /* System header to define __stub macros and hopefully few prototypes,
46759     which can conflict with char getloadavg (); below.
46760     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46761     <limits.h> exists even on freestanding compilers.  */
46762
46763 #ifdef __STDC__
46764 # include <limits.h>
46765 #else
46766 # include <assert.h>
46767 #endif
46768
46769 #undef getloadavg
46770
46771 /* Override any GCC internal prototype to avoid an error.
46772    Use char because int might match the return type of a GCC
46773    builtin and then its argument prototype would still apply.  */
46774 #ifdef __cplusplus
46775 extern "C"
46776 #endif
46777 char getloadavg ();
46778 /* The GNU C library defines this for functions which it implements
46779     to always fail with ENOSYS.  Some functions are actually named
46780     something starting with __ and the normal name is an alias.  */
46781 #if defined __stub_getloadavg || defined __stub___getloadavg
46782 choke me
46783 #endif
46784
46785 int
46786 main ()
46787 {
46788 return getloadavg ();
46789   ;
46790   return 0;
46791 }
46792 _ACEOF
46793 rm -f conftest.$ac_objext conftest$ac_exeext
46794 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46795   (eval $ac_link) 2>conftest.er1
46796   ac_status=$?
46797   grep -v '^ *+' conftest.er1 >conftest.err
46798   rm -f conftest.er1
46799   cat conftest.err >&5
46800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46801   (exit $ac_status); } &&
46802          { ac_try='test -z "$ac_c_werror_flag"
46803                          || test ! -s conftest.err'
46804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46805   (eval $ac_try) 2>&5
46806   ac_status=$?
46807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46808   (exit $ac_status); }; } &&
46809          { ac_try='test -s conftest$ac_exeext'
46810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46811   (eval $ac_try) 2>&5
46812   ac_status=$?
46813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46814   (exit $ac_status); }; }; then
46815   ac_cv_func_getloadavg=yes
46816 else
46817   echo "$as_me: failed program was:" >&5
46818 sed 's/^/| /' conftest.$ac_ext >&5
46819
46820         ac_cv_func_getloadavg=no
46821 fi
46822
46823 rm -f conftest.err conftest.$ac_objext \
46824       conftest$ac_exeext conftest.$ac_ext
46825 fi
46826 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
46827 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6; }
46828 if test $ac_cv_func_getloadavg = yes; then
46829   exit 0
46830 else
46831   exit 1
46832 fi
46833 ) && ac_have_func=yes
46834
46835 # On HPUX9, an unprivileged user can get load averages through this function.
46836
46837 for ac_func in pstat_getdynamic
46838 do
46839 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46840 { echo "$as_me:$LINENO: checking for $ac_func" >&5
46841 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
46842 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
46843   echo $ECHO_N "(cached) $ECHO_C" >&6
46844 else
46845   cat >conftest.$ac_ext <<_ACEOF
46846 /* confdefs.h.  */
46847 _ACEOF
46848 cat confdefs.h >>conftest.$ac_ext
46849 cat >>conftest.$ac_ext <<_ACEOF
46850 /* end confdefs.h.  */
46851 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46852    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
46853 #define $ac_func innocuous_$ac_func
46854
46855 /* System header to define __stub macros and hopefully few prototypes,
46856     which can conflict with char $ac_func (); below.
46857     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46858     <limits.h> exists even on freestanding compilers.  */
46859
46860 #ifdef __STDC__
46861 # include <limits.h>
46862 #else
46863 # include <assert.h>
46864 #endif
46865
46866 #undef $ac_func
46867
46868 /* Override any GCC internal prototype to avoid an error.
46869    Use char because int might match the return type of a GCC
46870    builtin and then its argument prototype would still apply.  */
46871 #ifdef __cplusplus
46872 extern "C"
46873 #endif
46874 char $ac_func ();
46875 /* The GNU C library defines this for functions which it implements
46876     to always fail with ENOSYS.  Some functions are actually named
46877     something starting with __ and the normal name is an alias.  */
46878 #if defined __stub_$ac_func || defined __stub___$ac_func
46879 choke me
46880 #endif
46881
46882 int
46883 main ()
46884 {
46885 return $ac_func ();
46886   ;
46887   return 0;
46888 }
46889 _ACEOF
46890 rm -f conftest.$ac_objext conftest$ac_exeext
46891 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46892   (eval $ac_link) 2>conftest.er1
46893   ac_status=$?
46894   grep -v '^ *+' conftest.er1 >conftest.err
46895   rm -f conftest.er1
46896   cat conftest.err >&5
46897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46898   (exit $ac_status); } &&
46899          { ac_try='test -z "$ac_c_werror_flag"
46900                          || test ! -s conftest.err'
46901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46902   (eval $ac_try) 2>&5
46903   ac_status=$?
46904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46905   (exit $ac_status); }; } &&
46906          { ac_try='test -s conftest$ac_exeext'
46907   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46908   (eval $ac_try) 2>&5
46909   ac_status=$?
46910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46911   (exit $ac_status); }; }; then
46912   eval "$as_ac_var=yes"
46913 else
46914   echo "$as_me: failed program was:" >&5
46915 sed 's/^/| /' conftest.$ac_ext >&5
46916
46917         eval "$as_ac_var=no"
46918 fi
46919
46920 rm -f conftest.err conftest.$ac_objext \
46921       conftest$ac_exeext conftest.$ac_ext
46922 fi
46923 ac_res=`eval echo '${'$as_ac_var'}'`
46924                { echo "$as_me:$LINENO: result: $ac_res" >&5
46925 echo "${ECHO_T}$ac_res" >&6; }
46926 if test `eval echo '${'$as_ac_var'}'` = yes; then
46927   cat >>confdefs.h <<_ACEOF
46928 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46929 _ACEOF
46930
46931 fi
46932 done
46933
46934
46935 # Solaris has libkstat which does not require root.
46936
46937 { echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
46938 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6; }
46939 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
46940   echo $ECHO_N "(cached) $ECHO_C" >&6
46941 else
46942   ac_check_lib_save_LIBS=$LIBS
46943 LIBS="-lkstat  $LIBS"
46944 cat >conftest.$ac_ext <<_ACEOF
46945 /* confdefs.h.  */
46946 _ACEOF
46947 cat confdefs.h >>conftest.$ac_ext
46948 cat >>conftest.$ac_ext <<_ACEOF
46949 /* end confdefs.h.  */
46950
46951 /* Override any GCC internal prototype to avoid an error.
46952    Use char because int might match the return type of a GCC
46953    builtin and then its argument prototype would still apply.  */
46954 #ifdef __cplusplus
46955 extern "C"
46956 #endif
46957 char kstat_open ();
46958 int
46959 main ()
46960 {
46961 return kstat_open ();
46962   ;
46963   return 0;
46964 }
46965 _ACEOF
46966 rm -f conftest.$ac_objext conftest$ac_exeext
46967 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46968   (eval $ac_link) 2>conftest.er1
46969   ac_status=$?
46970   grep -v '^ *+' conftest.er1 >conftest.err
46971   rm -f conftest.er1
46972   cat conftest.err >&5
46973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46974   (exit $ac_status); } &&
46975          { ac_try='test -z "$ac_c_werror_flag"
46976                          || test ! -s conftest.err'
46977   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46978   (eval $ac_try) 2>&5
46979   ac_status=$?
46980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46981   (exit $ac_status); }; } &&
46982          { ac_try='test -s conftest$ac_exeext'
46983   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46984   (eval $ac_try) 2>&5
46985   ac_status=$?
46986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46987   (exit $ac_status); }; }; then
46988   ac_cv_lib_kstat_kstat_open=yes
46989 else
46990   echo "$as_me: failed program was:" >&5
46991 sed 's/^/| /' conftest.$ac_ext >&5
46992
46993         ac_cv_lib_kstat_kstat_open=no
46994 fi
46995
46996 rm -f conftest.err conftest.$ac_objext \
46997       conftest$ac_exeext conftest.$ac_ext
46998 LIBS=$ac_check_lib_save_LIBS
46999 fi
47000 { echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
47001 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; }
47002 if test $ac_cv_lib_kstat_kstat_open = yes; then
47003   cat >>confdefs.h <<_ACEOF
47004 #define HAVE_LIBKSTAT 1
47005 _ACEOF
47006
47007   LIBS="-lkstat $LIBS"
47008
47009 fi
47010
47011 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
47012
47013 # Some systems with -lutil have (and need) -lkvm as well, some do not.
47014 # On Solaris, -lkvm requires nlist from -lelf, so check that first
47015 # to get the right answer into the cache.
47016 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
47017 if test $ac_have_func = no; then
47018   { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
47019 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
47020 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
47021   echo $ECHO_N "(cached) $ECHO_C" >&6
47022 else
47023   ac_check_lib_save_LIBS=$LIBS
47024 LIBS="-lelf  $LIBS"
47025 cat >conftest.$ac_ext <<_ACEOF
47026 /* confdefs.h.  */
47027 _ACEOF
47028 cat confdefs.h >>conftest.$ac_ext
47029 cat >>conftest.$ac_ext <<_ACEOF
47030 /* end confdefs.h.  */
47031
47032 /* Override any GCC internal prototype to avoid an error.
47033    Use char because int might match the return type of a GCC
47034    builtin and then its argument prototype would still apply.  */
47035 #ifdef __cplusplus
47036 extern "C"
47037 #endif
47038 char elf_begin ();
47039 int
47040 main ()
47041 {
47042 return elf_begin ();
47043   ;
47044   return 0;
47045 }
47046 _ACEOF
47047 rm -f conftest.$ac_objext conftest$ac_exeext
47048 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47049   (eval $ac_link) 2>conftest.er1
47050   ac_status=$?
47051   grep -v '^ *+' conftest.er1 >conftest.err
47052   rm -f conftest.er1
47053   cat conftest.err >&5
47054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47055   (exit $ac_status); } &&
47056          { ac_try='test -z "$ac_c_werror_flag"
47057                          || test ! -s conftest.err'
47058   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47059   (eval $ac_try) 2>&5
47060   ac_status=$?
47061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47062   (exit $ac_status); }; } &&
47063          { ac_try='test -s conftest$ac_exeext'
47064   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47065   (eval $ac_try) 2>&5
47066   ac_status=$?
47067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47068   (exit $ac_status); }; }; then
47069   ac_cv_lib_elf_elf_begin=yes
47070 else
47071   echo "$as_me: failed program was:" >&5
47072 sed 's/^/| /' conftest.$ac_ext >&5
47073
47074         ac_cv_lib_elf_elf_begin=no
47075 fi
47076
47077 rm -f conftest.err conftest.$ac_objext \
47078       conftest$ac_exeext conftest.$ac_ext
47079 LIBS=$ac_check_lib_save_LIBS
47080 fi
47081 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
47082 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
47083 if test $ac_cv_lib_elf_elf_begin = yes; then
47084   LIBS="-lelf $LIBS"
47085 fi
47086
47087 fi
47088 if test $ac_have_func = no; then
47089   { echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
47090 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6; }
47091 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
47092   echo $ECHO_N "(cached) $ECHO_C" >&6
47093 else
47094   ac_check_lib_save_LIBS=$LIBS
47095 LIBS="-lkvm  $LIBS"
47096 cat >conftest.$ac_ext <<_ACEOF
47097 /* confdefs.h.  */
47098 _ACEOF
47099 cat confdefs.h >>conftest.$ac_ext
47100 cat >>conftest.$ac_ext <<_ACEOF
47101 /* end confdefs.h.  */
47102
47103 /* Override any GCC internal prototype to avoid an error.
47104    Use char because int might match the return type of a GCC
47105    builtin and then its argument prototype would still apply.  */
47106 #ifdef __cplusplus
47107 extern "C"
47108 #endif
47109 char kvm_open ();
47110 int
47111 main ()
47112 {
47113 return kvm_open ();
47114   ;
47115   return 0;
47116 }
47117 _ACEOF
47118 rm -f conftest.$ac_objext conftest$ac_exeext
47119 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47120   (eval $ac_link) 2>conftest.er1
47121   ac_status=$?
47122   grep -v '^ *+' conftest.er1 >conftest.err
47123   rm -f conftest.er1
47124   cat conftest.err >&5
47125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47126   (exit $ac_status); } &&
47127          { ac_try='test -z "$ac_c_werror_flag"
47128                          || test ! -s conftest.err'
47129   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47130   (eval $ac_try) 2>&5
47131   ac_status=$?
47132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47133   (exit $ac_status); }; } &&
47134          { ac_try='test -s conftest$ac_exeext'
47135   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47136   (eval $ac_try) 2>&5
47137   ac_status=$?
47138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47139   (exit $ac_status); }; }; then
47140   ac_cv_lib_kvm_kvm_open=yes
47141 else
47142   echo "$as_me: failed program was:" >&5
47143 sed 's/^/| /' conftest.$ac_ext >&5
47144
47145         ac_cv_lib_kvm_kvm_open=no
47146 fi
47147
47148 rm -f conftest.err conftest.$ac_objext \
47149       conftest$ac_exeext conftest.$ac_ext
47150 LIBS=$ac_check_lib_save_LIBS
47151 fi
47152 { echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
47153 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; }
47154 if test $ac_cv_lib_kvm_kvm_open = yes; then
47155   LIBS="-lkvm $LIBS"
47156 fi
47157
47158   # Check for the 4.4BSD definition of getloadavg.
47159   { echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
47160 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6; }
47161 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
47162   echo $ECHO_N "(cached) $ECHO_C" >&6
47163 else
47164   ac_check_lib_save_LIBS=$LIBS
47165 LIBS="-lutil  $LIBS"
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
47173 /* Override any GCC internal prototype to avoid an error.
47174    Use char because int might match the return type of a GCC
47175    builtin and then its argument prototype would still apply.  */
47176 #ifdef __cplusplus
47177 extern "C"
47178 #endif
47179 char getloadavg ();
47180 int
47181 main ()
47182 {
47183 return getloadavg ();
47184   ;
47185   return 0;
47186 }
47187 _ACEOF
47188 rm -f conftest.$ac_objext conftest$ac_exeext
47189 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47190   (eval $ac_link) 2>conftest.er1
47191   ac_status=$?
47192   grep -v '^ *+' conftest.er1 >conftest.err
47193   rm -f conftest.er1
47194   cat conftest.err >&5
47195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47196   (exit $ac_status); } &&
47197          { ac_try='test -z "$ac_c_werror_flag"
47198                          || test ! -s conftest.err'
47199   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47200   (eval $ac_try) 2>&5
47201   ac_status=$?
47202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47203   (exit $ac_status); }; } &&
47204          { ac_try='test -s conftest$ac_exeext'
47205   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47206   (eval $ac_try) 2>&5
47207   ac_status=$?
47208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47209   (exit $ac_status); }; }; then
47210   ac_cv_lib_util_getloadavg=yes
47211 else
47212   echo "$as_me: failed program was:" >&5
47213 sed 's/^/| /' conftest.$ac_ext >&5
47214
47215         ac_cv_lib_util_getloadavg=no
47216 fi
47217
47218 rm -f conftest.err conftest.$ac_objext \
47219       conftest$ac_exeext conftest.$ac_ext
47220 LIBS=$ac_check_lib_save_LIBS
47221 fi
47222 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
47223 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6; }
47224 if test $ac_cv_lib_util_getloadavg = yes; then
47225   LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
47226 fi
47227
47228 fi
47229
47230 if test $ac_have_func = no; then
47231   # There is a commonly available library for RS/6000 AIX.
47232   # Since it is not a standard part of AIX, it might be installed locally.
47233   ac_getloadavg_LIBS=$LIBS
47234   LIBS="-L/usr/local/lib $LIBS"
47235   { echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
47236 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6; }
47237 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
47238   echo $ECHO_N "(cached) $ECHO_C" >&6
47239 else
47240   ac_check_lib_save_LIBS=$LIBS
47241 LIBS="-lgetloadavg  $LIBS"
47242 cat >conftest.$ac_ext <<_ACEOF
47243 /* confdefs.h.  */
47244 _ACEOF
47245 cat confdefs.h >>conftest.$ac_ext
47246 cat >>conftest.$ac_ext <<_ACEOF
47247 /* end confdefs.h.  */
47248
47249 /* Override any GCC internal prototype to avoid an error.
47250    Use char because int might match the return type of a GCC
47251    builtin and then its argument prototype would still apply.  */
47252 #ifdef __cplusplus
47253 extern "C"
47254 #endif
47255 char getloadavg ();
47256 int
47257 main ()
47258 {
47259 return getloadavg ();
47260   ;
47261   return 0;
47262 }
47263 _ACEOF
47264 rm -f conftest.$ac_objext conftest$ac_exeext
47265 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47266   (eval $ac_link) 2>conftest.er1
47267   ac_status=$?
47268   grep -v '^ *+' conftest.er1 >conftest.err
47269   rm -f conftest.er1
47270   cat conftest.err >&5
47271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47272   (exit $ac_status); } &&
47273          { ac_try='test -z "$ac_c_werror_flag"
47274                          || test ! -s conftest.err'
47275   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47276   (eval $ac_try) 2>&5
47277   ac_status=$?
47278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47279   (exit $ac_status); }; } &&
47280          { ac_try='test -s conftest$ac_exeext'
47281   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47282   (eval $ac_try) 2>&5
47283   ac_status=$?
47284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47285   (exit $ac_status); }; }; then
47286   ac_cv_lib_getloadavg_getloadavg=yes
47287 else
47288   echo "$as_me: failed program was:" >&5
47289 sed 's/^/| /' conftest.$ac_ext >&5
47290
47291         ac_cv_lib_getloadavg_getloadavg=no
47292 fi
47293
47294 rm -f conftest.err conftest.$ac_objext \
47295       conftest$ac_exeext conftest.$ac_ext
47296 LIBS=$ac_check_lib_save_LIBS
47297 fi
47298 { echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
47299 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6; }
47300 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
47301   LIBS="-lgetloadavg $LIBS"
47302 else
47303   LIBS=$ac_getloadavg_LIBS
47304 fi
47305
47306 fi
47307
47308 # Make sure it is really in the library, if we think we found it,
47309 # otherwise set up the replacement function.
47310
47311 for ac_func in getloadavg
47312 do
47313 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47314 { echo "$as_me:$LINENO: checking for $ac_func" >&5
47315 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
47316 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
47317   echo $ECHO_N "(cached) $ECHO_C" >&6
47318 else
47319   cat >conftest.$ac_ext <<_ACEOF
47320 /* confdefs.h.  */
47321 _ACEOF
47322 cat confdefs.h >>conftest.$ac_ext
47323 cat >>conftest.$ac_ext <<_ACEOF
47324 /* end confdefs.h.  */
47325 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47326    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
47327 #define $ac_func innocuous_$ac_func
47328
47329 /* System header to define __stub macros and hopefully few prototypes,
47330     which can conflict with char $ac_func (); below.
47331     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47332     <limits.h> exists even on freestanding compilers.  */
47333
47334 #ifdef __STDC__
47335 # include <limits.h>
47336 #else
47337 # include <assert.h>
47338 #endif
47339
47340 #undef $ac_func
47341
47342 /* Override any GCC internal prototype to avoid an error.
47343    Use char because int might match the return type of a GCC
47344    builtin and then its argument prototype would still apply.  */
47345 #ifdef __cplusplus
47346 extern "C"
47347 #endif
47348 char $ac_func ();
47349 /* The GNU C library defines this for functions which it implements
47350     to always fail with ENOSYS.  Some functions are actually named
47351     something starting with __ and the normal name is an alias.  */
47352 #if defined __stub_$ac_func || defined __stub___$ac_func
47353 choke me
47354 #endif
47355
47356 int
47357 main ()
47358 {
47359 return $ac_func ();
47360   ;
47361   return 0;
47362 }
47363 _ACEOF
47364 rm -f conftest.$ac_objext conftest$ac_exeext
47365 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47366   (eval $ac_link) 2>conftest.er1
47367   ac_status=$?
47368   grep -v '^ *+' conftest.er1 >conftest.err
47369   rm -f conftest.er1
47370   cat conftest.err >&5
47371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47372   (exit $ac_status); } &&
47373          { ac_try='test -z "$ac_c_werror_flag"
47374                          || test ! -s conftest.err'
47375   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47376   (eval $ac_try) 2>&5
47377   ac_status=$?
47378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47379   (exit $ac_status); }; } &&
47380          { ac_try='test -s conftest$ac_exeext'
47381   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47382   (eval $ac_try) 2>&5
47383   ac_status=$?
47384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47385   (exit $ac_status); }; }; then
47386   eval "$as_ac_var=yes"
47387 else
47388   echo "$as_me: failed program was:" >&5
47389 sed 's/^/| /' conftest.$ac_ext >&5
47390
47391         eval "$as_ac_var=no"
47392 fi
47393
47394 rm -f conftest.err conftest.$ac_objext \
47395       conftest$ac_exeext conftest.$ac_ext
47396 fi
47397 ac_res=`eval echo '${'$as_ac_var'}'`
47398                { echo "$as_me:$LINENO: result: $ac_res" >&5
47399 echo "${ECHO_T}$ac_res" >&6; }
47400 if test `eval echo '${'$as_ac_var'}'` = yes; then
47401   cat >>confdefs.h <<_ACEOF
47402 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47403 _ACEOF
47404
47405 else
47406   case " $LIBOBJS " in
47407   *" getloadavg.$ac_objext "* ) ;;
47408   *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
47409  ;;
47410 esac
47411
47412
47413 cat >>confdefs.h <<\_ACEOF
47414 #define C_GETLOADAVG 1
47415 _ACEOF
47416
47417 # Figure out what our getloadavg.c needs.
47418 ac_have_func=no
47419 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
47420   { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
47421 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
47422 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
47423   echo $ECHO_N "(cached) $ECHO_C" >&6
47424 fi
47425 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
47426 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
47427 else
47428   # Is the header compilable?
47429 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
47430 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6; }
47431 cat >conftest.$ac_ext <<_ACEOF
47432 /* confdefs.h.  */
47433 _ACEOF
47434 cat confdefs.h >>conftest.$ac_ext
47435 cat >>conftest.$ac_ext <<_ACEOF
47436 /* end confdefs.h.  */
47437 $ac_includes_default
47438 #include <sys/dg_sys_info.h>
47439 _ACEOF
47440 rm -f conftest.$ac_objext
47441 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47442   (eval $ac_compile) 2>conftest.er1
47443   ac_status=$?
47444   grep -v '^ *+' conftest.er1 >conftest.err
47445   rm -f conftest.er1
47446   cat conftest.err >&5
47447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47448   (exit $ac_status); } &&
47449          { ac_try='test -z "$ac_c_werror_flag"
47450                          || test ! -s conftest.err'
47451   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47452   (eval $ac_try) 2>&5
47453   ac_status=$?
47454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47455   (exit $ac_status); }; } &&
47456          { ac_try='test -s conftest.$ac_objext'
47457   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47458   (eval $ac_try) 2>&5
47459   ac_status=$?
47460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47461   (exit $ac_status); }; }; then
47462   ac_header_compiler=yes
47463 else
47464   echo "$as_me: failed program was:" >&5
47465 sed 's/^/| /' conftest.$ac_ext >&5
47466
47467         ac_header_compiler=no
47468 fi
47469
47470 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47471 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
47472 echo "${ECHO_T}$ac_header_compiler" >&6; }
47473
47474 # Is the header present?
47475 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
47476 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6; }
47477 cat >conftest.$ac_ext <<_ACEOF
47478 /* confdefs.h.  */
47479 _ACEOF
47480 cat confdefs.h >>conftest.$ac_ext
47481 cat >>conftest.$ac_ext <<_ACEOF
47482 /* end confdefs.h.  */
47483 #include <sys/dg_sys_info.h>
47484 _ACEOF
47485 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
47486   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
47487   ac_status=$?
47488   grep -v '^ *+' conftest.er1 >conftest.err
47489   rm -f conftest.er1
47490   cat conftest.err >&5
47491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47492   (exit $ac_status); } >/dev/null; then
47493   if test -s conftest.err; then
47494     ac_cpp_err=$ac_c_preproc_warn_flag
47495     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
47496   else
47497     ac_cpp_err=
47498   fi
47499 else
47500   ac_cpp_err=yes
47501 fi
47502 if test -z "$ac_cpp_err"; then
47503   ac_header_preproc=yes
47504 else
47505   echo "$as_me: failed program was:" >&5
47506 sed 's/^/| /' conftest.$ac_ext >&5
47507
47508   ac_header_preproc=no
47509 fi
47510
47511 rm -f conftest.err conftest.$ac_ext
47512 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
47513 echo "${ECHO_T}$ac_header_preproc" >&6; }
47514
47515 # So?  What about this header?
47516 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
47517   yes:no: )
47518     { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
47519 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
47520     { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
47521 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
47522     ac_header_preproc=yes
47523     ;;
47524   no:yes:* )
47525     { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
47526 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
47527     { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h:     check for missing prerequisite headers?" >&5
47528 echo "$as_me: WARNING: sys/dg_sys_info.h:     check for missing prerequisite headers?" >&2;}
47529     { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
47530 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
47531     { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h:     section \"Present But Cannot Be Compiled\"" >&5
47532 echo "$as_me: WARNING: sys/dg_sys_info.h:     section \"Present But Cannot Be Compiled\"" >&2;}
47533     { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
47534 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
47535     { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
47536 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
47537     ( cat <<\_ASBOX
47538 ## ------------------------------------ ##
47539 ## Report this to bug-coreutils@gnu.org ##
47540 ## ------------------------------------ ##
47541 _ASBOX
47542      ) | sed "s/^/$as_me: WARNING:     /" >&2
47543     ;;
47544 esac
47545 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
47546 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
47547 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
47548   echo $ECHO_N "(cached) $ECHO_C" >&6
47549 else
47550   ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
47551 fi
47552 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
47553 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
47554
47555 fi
47556 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
47557   ac_have_func=yes
47558
47559 cat >>confdefs.h <<\_ACEOF
47560 #define DGUX 1
47561 _ACEOF
47562
47563
47564 { echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
47565 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6; }
47566 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
47567   echo $ECHO_N "(cached) $ECHO_C" >&6
47568 else
47569   ac_check_lib_save_LIBS=$LIBS
47570 LIBS="-ldgc  $LIBS"
47571 cat >conftest.$ac_ext <<_ACEOF
47572 /* confdefs.h.  */
47573 _ACEOF
47574 cat confdefs.h >>conftest.$ac_ext
47575 cat >>conftest.$ac_ext <<_ACEOF
47576 /* end confdefs.h.  */
47577
47578 /* Override any GCC internal prototype to avoid an error.
47579    Use char because int might match the return type of a GCC
47580    builtin and then its argument prototype would still apply.  */
47581 #ifdef __cplusplus
47582 extern "C"
47583 #endif
47584 char dg_sys_info ();
47585 int
47586 main ()
47587 {
47588 return dg_sys_info ();
47589   ;
47590   return 0;
47591 }
47592 _ACEOF
47593 rm -f conftest.$ac_objext conftest$ac_exeext
47594 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47595   (eval $ac_link) 2>conftest.er1
47596   ac_status=$?
47597   grep -v '^ *+' conftest.er1 >conftest.err
47598   rm -f conftest.er1
47599   cat conftest.err >&5
47600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47601   (exit $ac_status); } &&
47602          { ac_try='test -z "$ac_c_werror_flag"
47603                          || test ! -s conftest.err'
47604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47605   (eval $ac_try) 2>&5
47606   ac_status=$?
47607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47608   (exit $ac_status); }; } &&
47609          { ac_try='test -s conftest$ac_exeext'
47610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47611   (eval $ac_try) 2>&5
47612   ac_status=$?
47613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47614   (exit $ac_status); }; }; then
47615   ac_cv_lib_dgc_dg_sys_info=yes
47616 else
47617   echo "$as_me: failed program was:" >&5
47618 sed 's/^/| /' conftest.$ac_ext >&5
47619
47620         ac_cv_lib_dgc_dg_sys_info=no
47621 fi
47622
47623 rm -f conftest.err conftest.$ac_objext \
47624       conftest$ac_exeext conftest.$ac_ext
47625 LIBS=$ac_check_lib_save_LIBS
47626 fi
47627 { echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
47628 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6; }
47629 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
47630   cat >>confdefs.h <<_ACEOF
47631 #define HAVE_LIBDGC 1
47632 _ACEOF
47633
47634   LIBS="-ldgc $LIBS"
47635
47636 fi
47637
47638 fi
47639
47640
47641
47642 if test "${ac_cv_header_locale_h+set}" = set; then
47643   { echo "$as_me:$LINENO: checking for locale.h" >&5
47644 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
47645 if test "${ac_cv_header_locale_h+set}" = set; then
47646   echo $ECHO_N "(cached) $ECHO_C" >&6
47647 fi
47648 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
47649 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
47650 else
47651   # Is the header compilable?
47652 { echo "$as_me:$LINENO: checking locale.h usability" >&5
47653 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6; }
47654 cat >conftest.$ac_ext <<_ACEOF
47655 /* confdefs.h.  */
47656 _ACEOF
47657 cat confdefs.h >>conftest.$ac_ext
47658 cat >>conftest.$ac_ext <<_ACEOF
47659 /* end confdefs.h.  */
47660 $ac_includes_default
47661 #include <locale.h>
47662 _ACEOF
47663 rm -f conftest.$ac_objext
47664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47665   (eval $ac_compile) 2>conftest.er1
47666   ac_status=$?
47667   grep -v '^ *+' conftest.er1 >conftest.err
47668   rm -f conftest.er1
47669   cat conftest.err >&5
47670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47671   (exit $ac_status); } &&
47672          { ac_try='test -z "$ac_c_werror_flag"
47673                          || test ! -s conftest.err'
47674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47675   (eval $ac_try) 2>&5
47676   ac_status=$?
47677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47678   (exit $ac_status); }; } &&
47679          { ac_try='test -s conftest.$ac_objext'
47680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47681   (eval $ac_try) 2>&5
47682   ac_status=$?
47683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47684   (exit $ac_status); }; }; then
47685   ac_header_compiler=yes
47686 else
47687   echo "$as_me: failed program was:" >&5
47688 sed 's/^/| /' conftest.$ac_ext >&5
47689
47690         ac_header_compiler=no
47691 fi
47692
47693 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47694 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
47695 echo "${ECHO_T}$ac_header_compiler" >&6; }
47696
47697 # Is the header present?
47698 { echo "$as_me:$LINENO: checking locale.h presence" >&5
47699 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6; }
47700 cat >conftest.$ac_ext <<_ACEOF
47701 /* confdefs.h.  */
47702 _ACEOF
47703 cat confdefs.h >>conftest.$ac_ext
47704 cat >>conftest.$ac_ext <<_ACEOF
47705 /* end confdefs.h.  */
47706 #include <locale.h>
47707 _ACEOF
47708 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
47709   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
47710   ac_status=$?
47711   grep -v '^ *+' conftest.er1 >conftest.err
47712   rm -f conftest.er1
47713   cat conftest.err >&5
47714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47715   (exit $ac_status); } >/dev/null; then
47716   if test -s conftest.err; then
47717     ac_cpp_err=$ac_c_preproc_warn_flag
47718     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
47719   else
47720     ac_cpp_err=
47721   fi
47722 else
47723   ac_cpp_err=yes
47724 fi
47725 if test -z "$ac_cpp_err"; then
47726   ac_header_preproc=yes
47727 else
47728   echo "$as_me: failed program was:" >&5
47729 sed 's/^/| /' conftest.$ac_ext >&5
47730
47731   ac_header_preproc=no
47732 fi
47733
47734 rm -f conftest.err conftest.$ac_ext
47735 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
47736 echo "${ECHO_T}$ac_header_preproc" >&6; }
47737
47738 # So?  What about this header?
47739 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
47740   yes:no: )
47741     { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
47742 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
47743     { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
47744 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
47745     ac_header_preproc=yes
47746     ;;
47747   no:yes:* )
47748     { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
47749 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
47750     { echo "$as_me:$LINENO: WARNING: locale.h:     check for missing prerequisite headers?" >&5
47751 echo "$as_me: WARNING: locale.h:     check for missing prerequisite headers?" >&2;}
47752     { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
47753 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
47754     { echo "$as_me:$LINENO: WARNING: locale.h:     section \"Present But Cannot Be Compiled\"" >&5
47755 echo "$as_me: WARNING: locale.h:     section \"Present But Cannot Be Compiled\"" >&2;}
47756     { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
47757 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
47758     { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
47759 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
47760     ( cat <<\_ASBOX
47761 ## ------------------------------------ ##
47762 ## Report this to bug-coreutils@gnu.org ##
47763 ## ------------------------------------ ##
47764 _ASBOX
47765      ) | sed "s/^/$as_me: WARNING:     /" >&2
47766     ;;
47767 esac
47768 { echo "$as_me:$LINENO: checking for locale.h" >&5
47769 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
47770 if test "${ac_cv_header_locale_h+set}" = set; then
47771   echo $ECHO_N "(cached) $ECHO_C" >&6
47772 else
47773   ac_cv_header_locale_h=$ac_header_preproc
47774 fi
47775 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
47776 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
47777
47778 fi
47779
47780
47781
47782 for ac_func in setlocale
47783 do
47784 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47785 { echo "$as_me:$LINENO: checking for $ac_func" >&5
47786 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
47787 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
47788   echo $ECHO_N "(cached) $ECHO_C" >&6
47789 else
47790   cat >conftest.$ac_ext <<_ACEOF
47791 /* confdefs.h.  */
47792 _ACEOF
47793 cat confdefs.h >>conftest.$ac_ext
47794 cat >>conftest.$ac_ext <<_ACEOF
47795 /* end confdefs.h.  */
47796 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47797    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
47798 #define $ac_func innocuous_$ac_func
47799
47800 /* System header to define __stub macros and hopefully few prototypes,
47801     which can conflict with char $ac_func (); below.
47802     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47803     <limits.h> exists even on freestanding compilers.  */
47804
47805 #ifdef __STDC__
47806 # include <limits.h>
47807 #else
47808 # include <assert.h>
47809 #endif
47810
47811 #undef $ac_func
47812
47813 /* Override any GCC internal prototype to avoid an error.
47814    Use char because int might match the return type of a GCC
47815    builtin and then its argument prototype would still apply.  */
47816 #ifdef __cplusplus
47817 extern "C"
47818 #endif
47819 char $ac_func ();
47820 /* The GNU C library defines this for functions which it implements
47821     to always fail with ENOSYS.  Some functions are actually named
47822     something starting with __ and the normal name is an alias.  */
47823 #if defined __stub_$ac_func || defined __stub___$ac_func
47824 choke me
47825 #endif
47826
47827 int
47828 main ()
47829 {
47830 return $ac_func ();
47831   ;
47832   return 0;
47833 }
47834 _ACEOF
47835 rm -f conftest.$ac_objext conftest$ac_exeext
47836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47837   (eval $ac_link) 2>conftest.er1
47838   ac_status=$?
47839   grep -v '^ *+' conftest.er1 >conftest.err
47840   rm -f conftest.er1
47841   cat conftest.err >&5
47842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47843   (exit $ac_status); } &&
47844          { ac_try='test -z "$ac_c_werror_flag"
47845                          || test ! -s conftest.err'
47846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47847   (eval $ac_try) 2>&5
47848   ac_status=$?
47849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47850   (exit $ac_status); }; } &&
47851          { ac_try='test -s conftest$ac_exeext'
47852   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47853   (eval $ac_try) 2>&5
47854   ac_status=$?
47855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47856   (exit $ac_status); }; }; then
47857   eval "$as_ac_var=yes"
47858 else
47859   echo "$as_me: failed program was:" >&5
47860 sed 's/^/| /' conftest.$ac_ext >&5
47861
47862         eval "$as_ac_var=no"
47863 fi
47864
47865 rm -f conftest.err conftest.$ac_objext \
47866       conftest$ac_exeext conftest.$ac_ext
47867 fi
47868 ac_res=`eval echo '${'$as_ac_var'}'`
47869                { echo "$as_me:$LINENO: result: $ac_res" >&5
47870 echo "${ECHO_T}$ac_res" >&6; }
47871 if test `eval echo '${'$as_ac_var'}'` = yes; then
47872   cat >>confdefs.h <<_ACEOF
47873 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47874 _ACEOF
47875
47876 fi
47877 done
47878
47879
47880 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
47881 # uses stabs), but it is still SVR4.  We cannot check for <elf.h> because
47882 # Irix 4.0.5F has the header but not the library.
47883 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
47884   ac_have_func=yes
47885
47886 cat >>confdefs.h <<\_ACEOF
47887 #define SVR4 1
47888 _ACEOF
47889
47890 fi
47891
47892 if test $ac_have_func = no; then
47893   if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
47894   { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
47895 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
47896 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
47897   echo $ECHO_N "(cached) $ECHO_C" >&6
47898 fi
47899 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
47900 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
47901 else
47902   # Is the header compilable?
47903 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
47904 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6; }
47905 cat >conftest.$ac_ext <<_ACEOF
47906 /* confdefs.h.  */
47907 _ACEOF
47908 cat confdefs.h >>conftest.$ac_ext
47909 cat >>conftest.$ac_ext <<_ACEOF
47910 /* end confdefs.h.  */
47911 $ac_includes_default
47912 #include <inq_stats/cpustats.h>
47913 _ACEOF
47914 rm -f conftest.$ac_objext
47915 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47916   (eval $ac_compile) 2>conftest.er1
47917   ac_status=$?
47918   grep -v '^ *+' conftest.er1 >conftest.err
47919   rm -f conftest.er1
47920   cat conftest.err >&5
47921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47922   (exit $ac_status); } &&
47923          { ac_try='test -z "$ac_c_werror_flag"
47924                          || test ! -s conftest.err'
47925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47926   (eval $ac_try) 2>&5
47927   ac_status=$?
47928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47929   (exit $ac_status); }; } &&
47930          { ac_try='test -s conftest.$ac_objext'
47931   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47932   (eval $ac_try) 2>&5
47933   ac_status=$?
47934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47935   (exit $ac_status); }; }; then
47936   ac_header_compiler=yes
47937 else
47938   echo "$as_me: failed program was:" >&5
47939 sed 's/^/| /' conftest.$ac_ext >&5
47940
47941         ac_header_compiler=no
47942 fi
47943
47944 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47945 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
47946 echo "${ECHO_T}$ac_header_compiler" >&6; }
47947
47948 # Is the header present?
47949 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
47950 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6; }
47951 cat >conftest.$ac_ext <<_ACEOF
47952 /* confdefs.h.  */
47953 _ACEOF
47954 cat confdefs.h >>conftest.$ac_ext
47955 cat >>conftest.$ac_ext <<_ACEOF
47956 /* end confdefs.h.  */
47957 #include <inq_stats/cpustats.h>
47958 _ACEOF
47959 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
47960   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
47961   ac_status=$?
47962   grep -v '^ *+' conftest.er1 >conftest.err
47963   rm -f conftest.er1
47964   cat conftest.err >&5
47965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47966   (exit $ac_status); } >/dev/null; then
47967   if test -s conftest.err; then
47968     ac_cpp_err=$ac_c_preproc_warn_flag
47969     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
47970   else
47971     ac_cpp_err=
47972   fi
47973 else
47974   ac_cpp_err=yes
47975 fi
47976 if test -z "$ac_cpp_err"; then
47977   ac_header_preproc=yes
47978 else
47979   echo "$as_me: failed program was:" >&5
47980 sed 's/^/| /' conftest.$ac_ext >&5
47981
47982   ac_header_preproc=no
47983 fi
47984
47985 rm -f conftest.err conftest.$ac_ext
47986 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
47987 echo "${ECHO_T}$ac_header_preproc" >&6; }
47988
47989 # So?  What about this header?
47990 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
47991   yes:no: )
47992     { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
47993 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
47994     { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
47995 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
47996     ac_header_preproc=yes
47997     ;;
47998   no:yes:* )
47999     { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
48000 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
48001     { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h:     check for missing prerequisite headers?" >&5
48002 echo "$as_me: WARNING: inq_stats/cpustats.h:     check for missing prerequisite headers?" >&2;}
48003     { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
48004 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
48005     { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h:     section \"Present But Cannot Be Compiled\"" >&5
48006 echo "$as_me: WARNING: inq_stats/cpustats.h:     section \"Present But Cannot Be Compiled\"" >&2;}
48007     { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
48008 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
48009     { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
48010 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
48011     ( cat <<\_ASBOX
48012 ## ------------------------------------ ##
48013 ## Report this to bug-coreutils@gnu.org ##
48014 ## ------------------------------------ ##
48015 _ASBOX
48016      ) | sed "s/^/$as_me: WARNING:     /" >&2
48017     ;;
48018 esac
48019 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
48020 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
48021 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
48022   echo $ECHO_N "(cached) $ECHO_C" >&6
48023 else
48024   ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
48025 fi
48026 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
48027 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
48028
48029 fi
48030 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
48031   ac_have_func=yes
48032
48033 cat >>confdefs.h <<\_ACEOF
48034 #define UMAX 1
48035 _ACEOF
48036
48037
48038 cat >>confdefs.h <<\_ACEOF
48039 #define UMAX4_3 1
48040 _ACEOF
48041
48042 fi
48043
48044
48045 fi
48046
48047 if test $ac_have_func = no; then
48048   if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
48049   { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
48050 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
48051 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
48052   echo $ECHO_N "(cached) $ECHO_C" >&6
48053 fi
48054 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
48055 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
48056 else
48057   # Is the header compilable?
48058 { echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
48059 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6; }
48060 cat >conftest.$ac_ext <<_ACEOF
48061 /* confdefs.h.  */
48062 _ACEOF
48063 cat confdefs.h >>conftest.$ac_ext
48064 cat >>conftest.$ac_ext <<_ACEOF
48065 /* end confdefs.h.  */
48066 $ac_includes_default
48067 #include <sys/cpustats.h>
48068 _ACEOF
48069 rm -f conftest.$ac_objext
48070 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48071   (eval $ac_compile) 2>conftest.er1
48072   ac_status=$?
48073   grep -v '^ *+' conftest.er1 >conftest.err
48074   rm -f conftest.er1
48075   cat conftest.err >&5
48076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48077   (exit $ac_status); } &&
48078          { ac_try='test -z "$ac_c_werror_flag"
48079                          || test ! -s conftest.err'
48080   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&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   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48087   (eval $ac_try) 2>&5
48088   ac_status=$?
48089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48090   (exit $ac_status); }; }; then
48091   ac_header_compiler=yes
48092 else
48093   echo "$as_me: failed program was:" >&5
48094 sed 's/^/| /' conftest.$ac_ext >&5
48095
48096         ac_header_compiler=no
48097 fi
48098
48099 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48100 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
48101 echo "${ECHO_T}$ac_header_compiler" >&6; }
48102
48103 # Is the header present?
48104 { echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
48105 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6; }
48106 cat >conftest.$ac_ext <<_ACEOF
48107 /* confdefs.h.  */
48108 _ACEOF
48109 cat confdefs.h >>conftest.$ac_ext
48110 cat >>conftest.$ac_ext <<_ACEOF
48111 /* end confdefs.h.  */
48112 #include <sys/cpustats.h>
48113 _ACEOF
48114 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
48115   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
48116   ac_status=$?
48117   grep -v '^ *+' conftest.er1 >conftest.err
48118   rm -f conftest.er1
48119   cat conftest.err >&5
48120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48121   (exit $ac_status); } >/dev/null; then
48122   if test -s conftest.err; then
48123     ac_cpp_err=$ac_c_preproc_warn_flag
48124     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
48125   else
48126     ac_cpp_err=
48127   fi
48128 else
48129   ac_cpp_err=yes
48130 fi
48131 if test -z "$ac_cpp_err"; then
48132   ac_header_preproc=yes
48133 else
48134   echo "$as_me: failed program was:" >&5
48135 sed 's/^/| /' conftest.$ac_ext >&5
48136
48137   ac_header_preproc=no
48138 fi
48139
48140 rm -f conftest.err conftest.$ac_ext
48141 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
48142 echo "${ECHO_T}$ac_header_preproc" >&6; }
48143
48144 # So?  What about this header?
48145 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
48146   yes:no: )
48147     { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
48148 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
48149     { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
48150 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
48151     ac_header_preproc=yes
48152     ;;
48153   no:yes:* )
48154     { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
48155 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
48156     { echo "$as_me:$LINENO: WARNING: sys/cpustats.h:     check for missing prerequisite headers?" >&5
48157 echo "$as_me: WARNING: sys/cpustats.h:     check for missing prerequisite headers?" >&2;}
48158     { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
48159 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
48160     { echo "$as_me:$LINENO: WARNING: sys/cpustats.h:     section \"Present But Cannot Be Compiled\"" >&5
48161 echo "$as_me: WARNING: sys/cpustats.h:     section \"Present But Cannot Be Compiled\"" >&2;}
48162     { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
48163 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
48164     { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
48165 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
48166     ( cat <<\_ASBOX
48167 ## ------------------------------------ ##
48168 ## Report this to bug-coreutils@gnu.org ##
48169 ## ------------------------------------ ##
48170 _ASBOX
48171      ) | sed "s/^/$as_me: WARNING:     /" >&2
48172     ;;
48173 esac
48174 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
48175 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
48176 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
48177   echo $ECHO_N "(cached) $ECHO_C" >&6
48178 else
48179   ac_cv_header_sys_cpustats_h=$ac_header_preproc
48180 fi
48181 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
48182 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
48183
48184 fi
48185 if test $ac_cv_header_sys_cpustats_h = yes; then
48186   ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
48187 #define UMAX 1
48188 _ACEOF
48189
48190 fi
48191
48192
48193 fi
48194
48195 if test $ac_have_func = no; then
48196
48197 for ac_header in mach/mach.h
48198 do
48199 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
48200 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
48201   { echo "$as_me:$LINENO: checking for $ac_header" >&5
48202 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
48203 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
48204   echo $ECHO_N "(cached) $ECHO_C" >&6
48205 fi
48206 ac_res=`eval echo '${'$as_ac_Header'}'`
48207                { echo "$as_me:$LINENO: result: $ac_res" >&5
48208 echo "${ECHO_T}$ac_res" >&6; }
48209 else
48210   # Is the header compilable?
48211 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
48212 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
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 $ac_includes_default
48220 #include <$ac_header>
48221 _ACEOF
48222 rm -f conftest.$ac_objext
48223 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48224   (eval $ac_compile) 2>conftest.er1
48225   ac_status=$?
48226   grep -v '^ *+' conftest.er1 >conftest.err
48227   rm -f conftest.er1
48228   cat conftest.err >&5
48229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48230   (exit $ac_status); } &&
48231          { ac_try='test -z "$ac_c_werror_flag"
48232                          || test ! -s conftest.err'
48233   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48234   (eval $ac_try) 2>&5
48235   ac_status=$?
48236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48237   (exit $ac_status); }; } &&
48238          { ac_try='test -s conftest.$ac_objext'
48239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48240   (eval $ac_try) 2>&5
48241   ac_status=$?
48242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48243   (exit $ac_status); }; }; then
48244   ac_header_compiler=yes
48245 else
48246   echo "$as_me: failed program was:" >&5
48247 sed 's/^/| /' conftest.$ac_ext >&5
48248
48249         ac_header_compiler=no
48250 fi
48251
48252 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48253 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
48254 echo "${ECHO_T}$ac_header_compiler" >&6; }
48255
48256 # Is the header present?
48257 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
48258 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
48259 cat >conftest.$ac_ext <<_ACEOF
48260 /* confdefs.h.  */
48261 _ACEOF
48262 cat confdefs.h >>conftest.$ac_ext
48263 cat >>conftest.$ac_ext <<_ACEOF
48264 /* end confdefs.h.  */
48265 #include <$ac_header>
48266 _ACEOF
48267 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
48268   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
48269   ac_status=$?
48270   grep -v '^ *+' conftest.er1 >conftest.err
48271   rm -f conftest.er1
48272   cat conftest.err >&5
48273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48274   (exit $ac_status); } >/dev/null; then
48275   if test -s conftest.err; then
48276     ac_cpp_err=$ac_c_preproc_warn_flag
48277     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
48278   else
48279     ac_cpp_err=
48280   fi
48281 else
48282   ac_cpp_err=yes
48283 fi
48284 if test -z "$ac_cpp_err"; then
48285   ac_header_preproc=yes
48286 else
48287   echo "$as_me: failed program was:" >&5
48288 sed 's/^/| /' conftest.$ac_ext >&5
48289
48290   ac_header_preproc=no
48291 fi
48292
48293 rm -f conftest.err conftest.$ac_ext
48294 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
48295 echo "${ECHO_T}$ac_header_preproc" >&6; }
48296
48297 # So?  What about this header?
48298 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
48299   yes:no: )
48300     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
48301 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
48302     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
48303 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
48304     ac_header_preproc=yes
48305     ;;
48306   no:yes:* )
48307     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
48308 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
48309     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
48310 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
48311     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
48312 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
48313     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
48314 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
48315     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
48316 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
48317     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
48318 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
48319     ( cat <<\_ASBOX
48320 ## ------------------------------------ ##
48321 ## Report this to bug-coreutils@gnu.org ##
48322 ## ------------------------------------ ##
48323 _ASBOX
48324      ) | sed "s/^/$as_me: WARNING:     /" >&2
48325     ;;
48326 esac
48327 { echo "$as_me:$LINENO: checking for $ac_header" >&5
48328 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
48329 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
48330   echo $ECHO_N "(cached) $ECHO_C" >&6
48331 else
48332   eval "$as_ac_Header=\$ac_header_preproc"
48333 fi
48334 ac_res=`eval echo '${'$as_ac_Header'}'`
48335                { echo "$as_me:$LINENO: result: $ac_res" >&5
48336 echo "${ECHO_T}$ac_res" >&6; }
48337
48338 fi
48339 if test `eval echo '${'$as_ac_Header'}'` = yes; then
48340   cat >>confdefs.h <<_ACEOF
48341 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
48342 _ACEOF
48343
48344 fi
48345
48346 done
48347
48348 fi
48349
48350
48351 for ac_header in nlist.h
48352 do
48353 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
48354 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
48355   { echo "$as_me:$LINENO: checking for $ac_header" >&5
48356 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
48357 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
48358   echo $ECHO_N "(cached) $ECHO_C" >&6
48359 fi
48360 ac_res=`eval echo '${'$as_ac_Header'}'`
48361                { echo "$as_me:$LINENO: result: $ac_res" >&5
48362 echo "${ECHO_T}$ac_res" >&6; }
48363 else
48364   # Is the header compilable?
48365 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
48366 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
48367 cat >conftest.$ac_ext <<_ACEOF
48368 /* confdefs.h.  */
48369 _ACEOF
48370 cat confdefs.h >>conftest.$ac_ext
48371 cat >>conftest.$ac_ext <<_ACEOF
48372 /* end confdefs.h.  */
48373 $ac_includes_default
48374 #include <$ac_header>
48375 _ACEOF
48376 rm -f conftest.$ac_objext
48377 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48378   (eval $ac_compile) 2>conftest.er1
48379   ac_status=$?
48380   grep -v '^ *+' conftest.er1 >conftest.err
48381   rm -f conftest.er1
48382   cat conftest.err >&5
48383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48384   (exit $ac_status); } &&
48385          { ac_try='test -z "$ac_c_werror_flag"
48386                          || test ! -s conftest.err'
48387   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48388   (eval $ac_try) 2>&5
48389   ac_status=$?
48390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48391   (exit $ac_status); }; } &&
48392          { ac_try='test -s conftest.$ac_objext'
48393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48394   (eval $ac_try) 2>&5
48395   ac_status=$?
48396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48397   (exit $ac_status); }; }; then
48398   ac_header_compiler=yes
48399 else
48400   echo "$as_me: failed program was:" >&5
48401 sed 's/^/| /' conftest.$ac_ext >&5
48402
48403         ac_header_compiler=no
48404 fi
48405
48406 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48407 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
48408 echo "${ECHO_T}$ac_header_compiler" >&6; }
48409
48410 # Is the header present?
48411 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
48412 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
48413 cat >conftest.$ac_ext <<_ACEOF
48414 /* confdefs.h.  */
48415 _ACEOF
48416 cat confdefs.h >>conftest.$ac_ext
48417 cat >>conftest.$ac_ext <<_ACEOF
48418 /* end confdefs.h.  */
48419 #include <$ac_header>
48420 _ACEOF
48421 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
48422   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
48423   ac_status=$?
48424   grep -v '^ *+' conftest.er1 >conftest.err
48425   rm -f conftest.er1
48426   cat conftest.err >&5
48427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48428   (exit $ac_status); } >/dev/null; then
48429   if test -s conftest.err; then
48430     ac_cpp_err=$ac_c_preproc_warn_flag
48431     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
48432   else
48433     ac_cpp_err=
48434   fi
48435 else
48436   ac_cpp_err=yes
48437 fi
48438 if test -z "$ac_cpp_err"; then
48439   ac_header_preproc=yes
48440 else
48441   echo "$as_me: failed program was:" >&5
48442 sed 's/^/| /' conftest.$ac_ext >&5
48443
48444   ac_header_preproc=no
48445 fi
48446
48447 rm -f conftest.err conftest.$ac_ext
48448 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
48449 echo "${ECHO_T}$ac_header_preproc" >&6; }
48450
48451 # So?  What about this header?
48452 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
48453   yes:no: )
48454     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
48455 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
48456     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
48457 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
48458     ac_header_preproc=yes
48459     ;;
48460   no:yes:* )
48461     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
48462 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
48463     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
48464 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
48465     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
48466 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
48467     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
48468 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
48469     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
48470 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
48471     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
48472 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
48473     ( cat <<\_ASBOX
48474 ## ------------------------------------ ##
48475 ## Report this to bug-coreutils@gnu.org ##
48476 ## ------------------------------------ ##
48477 _ASBOX
48478      ) | sed "s/^/$as_me: WARNING:     /" >&2
48479     ;;
48480 esac
48481 { echo "$as_me:$LINENO: checking for $ac_header" >&5
48482 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
48483 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
48484   echo $ECHO_N "(cached) $ECHO_C" >&6
48485 else
48486   eval "$as_ac_Header=\$ac_header_preproc"
48487 fi
48488 ac_res=`eval echo '${'$as_ac_Header'}'`
48489                { echo "$as_me:$LINENO: result: $ac_res" >&5
48490 echo "${ECHO_T}$ac_res" >&6; }
48491
48492 fi
48493 if test `eval echo '${'$as_ac_Header'}'` = yes; then
48494   cat >>confdefs.h <<_ACEOF
48495 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
48496 _ACEOF
48497  { echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
48498 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6; }
48499 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
48500   echo $ECHO_N "(cached) $ECHO_C" >&6
48501 else
48502   cat >conftest.$ac_ext <<_ACEOF
48503 /* confdefs.h.  */
48504 _ACEOF
48505 cat confdefs.h >>conftest.$ac_ext
48506 cat >>conftest.$ac_ext <<_ACEOF
48507 /* end confdefs.h.  */
48508 #include <nlist.h>
48509
48510 int
48511 main ()
48512 {
48513 static struct nlist ac_aggr;
48514 if (ac_aggr.n_un.n_name)
48515 return 0;
48516   ;
48517   return 0;
48518 }
48519 _ACEOF
48520 rm -f conftest.$ac_objext
48521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48522   (eval $ac_compile) 2>conftest.er1
48523   ac_status=$?
48524   grep -v '^ *+' conftest.er1 >conftest.err
48525   rm -f conftest.er1
48526   cat conftest.err >&5
48527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48528   (exit $ac_status); } &&
48529          { ac_try='test -z "$ac_c_werror_flag"
48530                          || test ! -s conftest.err'
48531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48532   (eval $ac_try) 2>&5
48533   ac_status=$?
48534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48535   (exit $ac_status); }; } &&
48536          { ac_try='test -s conftest.$ac_objext'
48537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48538   (eval $ac_try) 2>&5
48539   ac_status=$?
48540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48541   (exit $ac_status); }; }; then
48542   ac_cv_member_struct_nlist_n_un_n_name=yes
48543 else
48544   echo "$as_me: failed program was:" >&5
48545 sed 's/^/| /' conftest.$ac_ext >&5
48546
48547         cat >conftest.$ac_ext <<_ACEOF
48548 /* confdefs.h.  */
48549 _ACEOF
48550 cat confdefs.h >>conftest.$ac_ext
48551 cat >>conftest.$ac_ext <<_ACEOF
48552 /* end confdefs.h.  */
48553 #include <nlist.h>
48554
48555 int
48556 main ()
48557 {
48558 static struct nlist ac_aggr;
48559 if (sizeof ac_aggr.n_un.n_name)
48560 return 0;
48561   ;
48562   return 0;
48563 }
48564 _ACEOF
48565 rm -f conftest.$ac_objext
48566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48567   (eval $ac_compile) 2>conftest.er1
48568   ac_status=$?
48569   grep -v '^ *+' conftest.er1 >conftest.err
48570   rm -f conftest.er1
48571   cat conftest.err >&5
48572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48573   (exit $ac_status); } &&
48574          { ac_try='test -z "$ac_c_werror_flag"
48575                          || test ! -s conftest.err'
48576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48577   (eval $ac_try) 2>&5
48578   ac_status=$?
48579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48580   (exit $ac_status); }; } &&
48581          { ac_try='test -s conftest.$ac_objext'
48582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48583   (eval $ac_try) 2>&5
48584   ac_status=$?
48585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48586   (exit $ac_status); }; }; then
48587   ac_cv_member_struct_nlist_n_un_n_name=yes
48588 else
48589   echo "$as_me: failed program was:" >&5
48590 sed 's/^/| /' conftest.$ac_ext >&5
48591
48592         ac_cv_member_struct_nlist_n_un_n_name=no
48593 fi
48594
48595 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48596 fi
48597
48598 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48599 fi
48600 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
48601 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
48602 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
48603
48604 cat >>confdefs.h <<_ACEOF
48605 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
48606 _ACEOF
48607
48608
48609 cat >>confdefs.h <<\_ACEOF
48610 #define NLIST_NAME_UNION 1
48611 _ACEOF
48612
48613 fi
48614
48615
48616 fi
48617
48618 done
48619
48620 fi
48621 done
48622
48623
48624 # Some definitions of getloadavg require that the program be installed setgid.
48625 { echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
48626 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6; }
48627 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
48628   echo $ECHO_N "(cached) $ECHO_C" >&6
48629 else
48630   cat >conftest.$ac_ext <<_ACEOF
48631 /* confdefs.h.  */
48632 _ACEOF
48633 cat confdefs.h >>conftest.$ac_ext
48634 cat >>conftest.$ac_ext <<_ACEOF
48635 /* end confdefs.h.  */
48636 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
48637 #ifdef LDAV_PRIVILEGED
48638 Yowza Am I SETGID yet
48639 #endif
48640 _ACEOF
48641 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
48642   $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
48643   ac_cv_func_getloadavg_setgid=yes
48644 else
48645   ac_cv_func_getloadavg_setgid=no
48646 fi
48647 rm -f conftest*
48648
48649 fi
48650 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
48651 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6; }
48652 if test $ac_cv_func_getloadavg_setgid = yes; then
48653   NEED_SETGID=true
48654
48655 cat >>confdefs.h <<\_ACEOF
48656 #define GETLOADAVG_PRIVILEGED 1
48657 _ACEOF
48658
48659 else
48660   NEED_SETGID=false
48661 fi
48662
48663 if test $ac_cv_func_getloadavg_setgid = yes; then
48664   { echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
48665 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6; }
48666 if test "${ac_cv_group_kmem+set}" = set; then
48667   echo $ECHO_N "(cached) $ECHO_C" >&6
48668 else
48669    # On Solaris, /dev/kmem is a symlink.  Get info on the real file.
48670   ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
48671   # If we got an error (system does not support symlinks), try without -L.
48672   test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
48673   ac_cv_group_kmem=`echo $ac_ls_output \
48674     | sed -ne 's/[       ][      ]*/ /g;
48675                s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\)  *.*/\1/;
48676                / /s/.* //;p;'`
48677
48678 fi
48679 { echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
48680 echo "${ECHO_T}$ac_cv_group_kmem" >&6; }
48681   KMEM_GROUP=$ac_cv_group_kmem
48682 fi
48683 if test "x$ac_save_LIBS" = x; then
48684   GETLOADAVG_LIBS=$LIBS
48685 else
48686   GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
48687 fi
48688 LIBS=$ac_save_LIBS
48689
48690
48691
48692
48693
48694
48695   # raise is used by at least sort and ls.
48696
48697 for ac_func in raise
48698 do
48699 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
48700 { echo "$as_me:$LINENO: checking for $ac_func" >&5
48701 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
48702 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
48703   echo $ECHO_N "(cached) $ECHO_C" >&6
48704 else
48705   cat >conftest.$ac_ext <<_ACEOF
48706 /* confdefs.h.  */
48707 _ACEOF
48708 cat confdefs.h >>conftest.$ac_ext
48709 cat >>conftest.$ac_ext <<_ACEOF
48710 /* end confdefs.h.  */
48711 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
48712    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
48713 #define $ac_func innocuous_$ac_func
48714
48715 /* System header to define __stub macros and hopefully few prototypes,
48716     which can conflict with char $ac_func (); below.
48717     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48718     <limits.h> exists even on freestanding compilers.  */
48719
48720 #ifdef __STDC__
48721 # include <limits.h>
48722 #else
48723 # include <assert.h>
48724 #endif
48725
48726 #undef $ac_func
48727
48728 /* Override any GCC internal prototype to avoid an error.
48729    Use char because int might match the return type of a GCC
48730    builtin and then its argument prototype would still apply.  */
48731 #ifdef __cplusplus
48732 extern "C"
48733 #endif
48734 char $ac_func ();
48735 /* The GNU C library defines this for functions which it implements
48736     to always fail with ENOSYS.  Some functions are actually named
48737     something starting with __ and the normal name is an alias.  */
48738 #if defined __stub_$ac_func || defined __stub___$ac_func
48739 choke me
48740 #endif
48741
48742 int
48743 main ()
48744 {
48745 return $ac_func ();
48746   ;
48747   return 0;
48748 }
48749 _ACEOF
48750 rm -f conftest.$ac_objext conftest$ac_exeext
48751 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48752   (eval $ac_link) 2>conftest.er1
48753   ac_status=$?
48754   grep -v '^ *+' conftest.er1 >conftest.err
48755   rm -f conftest.er1
48756   cat conftest.err >&5
48757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48758   (exit $ac_status); } &&
48759          { ac_try='test -z "$ac_c_werror_flag"
48760                          || test ! -s conftest.err'
48761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48762   (eval $ac_try) 2>&5
48763   ac_status=$?
48764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48765   (exit $ac_status); }; } &&
48766          { ac_try='test -s conftest$ac_exeext'
48767   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48768   (eval $ac_try) 2>&5
48769   ac_status=$?
48770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48771   (exit $ac_status); }; }; then
48772   eval "$as_ac_var=yes"
48773 else
48774   echo "$as_me: failed program was:" >&5
48775 sed 's/^/| /' conftest.$ac_ext >&5
48776
48777         eval "$as_ac_var=no"
48778 fi
48779
48780 rm -f conftest.err conftest.$ac_objext \
48781       conftest$ac_exeext conftest.$ac_ext
48782 fi
48783 ac_res=`eval echo '${'$as_ac_var'}'`
48784                { echo "$as_me:$LINENO: result: $ac_res" >&5
48785 echo "${ECHO_T}$ac_res" >&6; }
48786 if test `eval echo '${'$as_ac_var'}'` = yes; then
48787   cat >>confdefs.h <<_ACEOF
48788 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
48789 _ACEOF
48790
48791 else
48792   case " $LIBOBJS " in
48793   *" $ac_func.$ac_objext "* ) ;;
48794   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
48795  ;;
48796 esac
48797
48798 fi
48799 done
48800
48801
48802
48803   # By default, argmatch should fail calling usage (1).
48804
48805 cat >>confdefs.h <<\_ACEOF
48806 #define ARGMATCH_DIE usage (1)
48807 _ACEOF
48808
48809
48810 cat >>confdefs.h <<\_ACEOF
48811 #define ARGMATCH_DIE_DECL extern void usage ()
48812 _ACEOF
48813
48814
48815         { echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed" >&5
48816 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6; }
48817 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
48818   echo $ECHO_N "(cached) $ECHO_C" >&6
48819 else
48820   ac_cv_func_setvbuf_reversed=no
48821    cat >conftest.$ac_ext <<_ACEOF
48822 /* confdefs.h.  */
48823 _ACEOF
48824 cat confdefs.h >>conftest.$ac_ext
48825 cat >>conftest.$ac_ext <<_ACEOF
48826 /* end confdefs.h.  */
48827 #include <stdio.h>
48828 #         if PROTOTYPES
48829            int (setvbuf) (FILE *, int, char *, size_t);
48830 #         endif
48831 int
48832 main ()
48833 {
48834 char buf; return setvbuf (stdout, _IOLBF, &buf, 1);
48835   ;
48836   return 0;
48837 }
48838 _ACEOF
48839 rm -f conftest.$ac_objext conftest$ac_exeext
48840 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48841   (eval $ac_link) 2>conftest.er1
48842   ac_status=$?
48843   grep -v '^ *+' conftest.er1 >conftest.err
48844   rm -f conftest.er1
48845   cat conftest.err >&5
48846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48847   (exit $ac_status); } &&
48848          { ac_try='test -z "$ac_c_werror_flag"
48849                          || test ! -s conftest.err'
48850   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48851   (eval $ac_try) 2>&5
48852   ac_status=$?
48853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48854   (exit $ac_status); }; } &&
48855          { ac_try='test -s conftest$ac_exeext'
48856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48857   (eval $ac_try) 2>&5
48858   ac_status=$?
48859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48860   (exit $ac_status); }; }; then
48861   cat >conftest.$ac_ext <<_ACEOF
48862 /* confdefs.h.  */
48863 _ACEOF
48864 cat confdefs.h >>conftest.$ac_ext
48865 cat >>conftest.$ac_ext <<_ACEOF
48866 /* end confdefs.h.  */
48867 #include <stdio.h>
48868 #            if PROTOTYPES
48869               int (setvbuf) (FILE *, int, char *, size_t);
48870 #            endif
48871 int
48872 main ()
48873 {
48874 char buf; return setvbuf (stdout, &buf, _IOLBF, 1);
48875   ;
48876   return 0;
48877 }
48878 _ACEOF
48879 rm -f conftest.$ac_objext conftest$ac_exeext
48880 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48881   (eval $ac_link) 2>conftest.er1
48882   ac_status=$?
48883   grep -v '^ *+' conftest.er1 >conftest.err
48884   rm -f conftest.er1
48885   cat conftest.err >&5
48886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48887   (exit $ac_status); } &&
48888          { ac_try='test -z "$ac_c_werror_flag"
48889                          || test ! -s conftest.err'
48890   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48891   (eval $ac_try) 2>&5
48892   ac_status=$?
48893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48894   (exit $ac_status); }; } &&
48895          { ac_try='test -s conftest$ac_exeext'
48896   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48897   (eval $ac_try) 2>&5
48898   ac_status=$?
48899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48900   (exit $ac_status); }; }; then
48901   # It compiles and links either way, so it must not be declared
48902          # with a prototype and most likely this is a K&R C compiler.
48903          # Try running it.
48904          if test "$cross_compiling" = yes; then
48905   : # Assume setvbuf is not reversed when cross-compiling.
48906 else
48907   cat >conftest.$ac_ext <<_ACEOF
48908 /* confdefs.h.  */
48909 _ACEOF
48910 cat confdefs.h >>conftest.$ac_ext
48911 cat >>conftest.$ac_ext <<_ACEOF
48912 /* end confdefs.h.  */
48913 $ac_includes_default
48914 int
48915 main ()
48916 {
48917 /* This call has the arguments reversed.
48918                    A reversed system may check and see that the address of buf
48919                    is not _IOLBF, _IONBF, or _IOFBF, and return nonzero.  */
48920                 char buf;
48921                 if (setvbuf (stdout, _IOLBF, &buf, 1) != 0)
48922                   return 1;
48923                 putchar ('\r');
48924                 return 0; /* Non-reversed systems SEGV here.  */
48925   ;
48926   return 0;
48927 }
48928 _ACEOF
48929 rm -f conftest$ac_exeext
48930 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48931   (eval $ac_link) 2>&5
48932   ac_status=$?
48933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48934   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
48935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48936   (eval $ac_try) 2>&5
48937   ac_status=$?
48938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48939   (exit $ac_status); }; }; then
48940   ac_cv_func_setvbuf_reversed=yes
48941 else
48942   echo "$as_me: program exited with status $ac_status" >&5
48943 echo "$as_me: failed program was:" >&5
48944 sed 's/^/| /' conftest.$ac_ext >&5
48945
48946 fi
48947 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
48948 fi
48949
48950
48951         ac_cv_func_setvbuf_reversed=yes
48952 else
48953   echo "$as_me: failed program was:" >&5
48954 sed 's/^/| /' conftest.$ac_ext >&5
48955
48956
48957 fi
48958
48959 rm -f conftest.err conftest.$ac_objext \
48960       conftest$ac_exeext conftest.$ac_ext
48961 else
48962   echo "$as_me: failed program was:" >&5
48963 sed 's/^/| /' conftest.$ac_ext >&5
48964
48965
48966 fi
48967
48968 rm -f conftest.err conftest.$ac_objext \
48969       conftest$ac_exeext conftest.$ac_ext
48970 fi
48971 { echo "$as_me:$LINENO: result: $ac_cv_func_setvbuf_reversed" >&5
48972 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6; }
48973 if test $ac_cv_func_setvbuf_reversed = yes; then
48974
48975 cat >>confdefs.h <<\_ACEOF
48976 #define SETVBUF_REVERSED 1
48977 _ACEOF
48978
48979 fi
48980
48981
48982   # used by sleep and shred
48983
48984
48985   :
48986
48987
48988
48989
48990
48991
48992
48993  { echo "$as_me:$LINENO: checking whether gettimeofday clobbers localtime buffer" >&5
48994 echo $ECHO_N "checking whether gettimeofday clobbers localtime buffer... $ECHO_C" >&6; }
48995 if test "${jm_cv_func_gettimeofday_clobber+set}" = set; then
48996   echo $ECHO_N "(cached) $ECHO_C" >&6
48997 else
48998   if test "$cross_compiling" = yes; then
48999          jm_cv_func_gettimeofday_clobber=yes
49000 else
49001   cat >conftest.$ac_ext <<_ACEOF
49002 /* confdefs.h.  */
49003 _ACEOF
49004 cat confdefs.h >>conftest.$ac_ext
49005 cat >>conftest.$ac_ext <<_ACEOF
49006 /* end confdefs.h.  */
49007
49008 #include <stdio.h>
49009 #include <string.h>
49010
49011 #if TIME_WITH_SYS_TIME
49012 # include <sys/time.h>
49013 # include <time.h>
49014 #else
49015 # if HAVE_SYS_TIME_H
49016 #  include <sys/time.h>
49017 # else
49018 #  include <time.h>
49019 # endif
49020 #endif
49021
49022 #include <stdlib.h>
49023
49024 int
49025 main ()
49026 {
49027   time_t t = 0;
49028   struct tm *lt;
49029   struct tm saved_lt;
49030   struct timeval tv;
49031   lt = localtime (&t);
49032   saved_lt = *lt;
49033   gettimeofday (&tv, NULL);
49034   if (memcmp (lt, &saved_lt, sizeof (struct tm)) != 0)
49035     exit (1);
49036
49037   exit (0);
49038 }
49039
49040 _ACEOF
49041 rm -f conftest$ac_exeext
49042 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49043   (eval $ac_link) 2>&5
49044   ac_status=$?
49045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49046   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
49047   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49048   (eval $ac_try) 2>&5
49049   ac_status=$?
49050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49051   (exit $ac_status); }; }; then
49052   jm_cv_func_gettimeofday_clobber=no
49053 else
49054   echo "$as_me: program exited with status $ac_status" >&5
49055 echo "$as_me: failed program was:" >&5
49056 sed 's/^/| /' conftest.$ac_ext >&5
49057
49058 ( exit $ac_status )
49059 jm_cv_func_gettimeofday_clobber=yes
49060 fi
49061 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
49062 fi
49063
49064
49065
49066 fi
49067 { echo "$as_me:$LINENO: result: $jm_cv_func_gettimeofday_clobber" >&5
49068 echo "${ECHO_T}$jm_cv_func_gettimeofday_clobber" >&6; }
49069   if test $jm_cv_func_gettimeofday_clobber = yes; then
49070
49071   case " $LIBOBJS " in
49072   *" gettimeofday.$ac_objext "* ) ;;
49073   *) LIBOBJS="$LIBOBJS gettimeofday.$ac_objext"
49074  ;;
49075 esac
49076
49077
49078 cat >>confdefs.h <<\_ACEOF
49079 #define gmtime rpl_gmtime
49080 _ACEOF
49081
49082
49083 cat >>confdefs.h <<\_ACEOF
49084 #define localtime rpl_localtime
49085 _ACEOF
49086
49087
49088
49089
49090 cat >>confdefs.h <<\_ACEOF
49091 #define gettimeofday rpl_gettimeofday
49092 _ACEOF
49093
49094
49095
49096
49097   fi
49098
49099   # used by shred
49100
49101   :
49102
49103
49104
49105
49106
49107
49108
49109
49110
49111   :
49112
49113
49114
49115
49116
49117
49118
49119
49120
49121
49122
49123
49124
49125
49126
49127
49128
49129
49130
49131
49132
49133
49134
49135
49136
49137
49138
49139
49140
49141
49142
49143
49144
49145
49146
49147
49148
49149
49150
49151
49152
49153
49154
49155
49156
49157
49158
49159
49160
49161
49162
49163
49164
49165
49166
49167
49168
49169
49170
49171
49172
49173
49174
49175
49176
49177
49178
49179
49180
49181
49182
49183
49184   { echo "$as_me:$LINENO: checking for working strtod" >&5
49185 echo $ECHO_N "checking for working strtod... $ECHO_C" >&6; }
49186 if test "${ac_cv_func_strtod+set}" = set; then
49187   echo $ECHO_N "(cached) $ECHO_C" >&6
49188 else
49189   if test "$cross_compiling" = yes; then
49190   ac_cv_func_strtod=no
49191 else
49192   cat >conftest.$ac_ext <<_ACEOF
49193 /* confdefs.h.  */
49194 _ACEOF
49195 cat confdefs.h >>conftest.$ac_ext
49196 cat >>conftest.$ac_ext <<_ACEOF
49197 /* end confdefs.h.  */
49198
49199 $ac_includes_default
49200 #ifndef strtod
49201 double strtod ();
49202 #endif
49203 int
49204 main()
49205 {
49206   {
49207     /* Some versions of Linux strtod mis-parse strings with leading '+'.  */
49208     char *string = " +69";
49209     char *term;
49210     double value;
49211     value = strtod (string, &term);
49212     if (value != 69 || term != (string + 4))
49213       return 1;
49214   }
49215
49216   {
49217     /* Under Solaris 2.4, strtod returns the wrong value for the
49218        terminating character under some conditions.  */
49219     char *string = "NaN";
49220     char *term;
49221     strtod (string, &term);
49222     if (term != string && *(term - 1) == 0)
49223       return 1;
49224   }
49225   return 0;
49226 }
49227
49228 _ACEOF
49229 rm -f conftest$ac_exeext
49230 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49231   (eval $ac_link) 2>&5
49232   ac_status=$?
49233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49234   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
49235   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49236   (eval $ac_try) 2>&5
49237   ac_status=$?
49238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49239   (exit $ac_status); }; }; then
49240   ac_cv_func_strtod=yes
49241 else
49242   echo "$as_me: program exited with status $ac_status" >&5
49243 echo "$as_me: failed program was:" >&5
49244 sed 's/^/| /' conftest.$ac_ext >&5
49245
49246 ( exit $ac_status )
49247 ac_cv_func_strtod=no
49248 fi
49249 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
49250 fi
49251
49252
49253 fi
49254 { echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
49255 echo "${ECHO_T}$ac_cv_func_strtod" >&6; }
49256 if test $ac_cv_func_strtod = no; then
49257   case " $LIBOBJS " in
49258   *" strtod.$ac_objext "* ) ;;
49259   *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
49260  ;;
49261 esac
49262
49263 { echo "$as_me:$LINENO: checking for pow" >&5
49264 echo $ECHO_N "checking for pow... $ECHO_C" >&6; }
49265 if test "${ac_cv_func_pow+set}" = set; then
49266   echo $ECHO_N "(cached) $ECHO_C" >&6
49267 else
49268   cat >conftest.$ac_ext <<_ACEOF
49269 /* confdefs.h.  */
49270 _ACEOF
49271 cat confdefs.h >>conftest.$ac_ext
49272 cat >>conftest.$ac_ext <<_ACEOF
49273 /* end confdefs.h.  */
49274 /* Define pow to an innocuous variant, in case <limits.h> declares pow.
49275    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
49276 #define pow innocuous_pow
49277
49278 /* System header to define __stub macros and hopefully few prototypes,
49279     which can conflict with char pow (); below.
49280     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49281     <limits.h> exists even on freestanding compilers.  */
49282
49283 #ifdef __STDC__
49284 # include <limits.h>
49285 #else
49286 # include <assert.h>
49287 #endif
49288
49289 #undef pow
49290
49291 /* Override any GCC internal prototype to avoid an error.
49292    Use char because int might match the return type of a GCC
49293    builtin and then its argument prototype would still apply.  */
49294 #ifdef __cplusplus
49295 extern "C"
49296 #endif
49297 char pow ();
49298 /* The GNU C library defines this for functions which it implements
49299     to always fail with ENOSYS.  Some functions are actually named
49300     something starting with __ and the normal name is an alias.  */
49301 #if defined __stub_pow || defined __stub___pow
49302 choke me
49303 #endif
49304
49305 int
49306 main ()
49307 {
49308 return pow ();
49309   ;
49310   return 0;
49311 }
49312 _ACEOF
49313 rm -f conftest.$ac_objext conftest$ac_exeext
49314 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49315   (eval $ac_link) 2>conftest.er1
49316   ac_status=$?
49317   grep -v '^ *+' conftest.er1 >conftest.err
49318   rm -f conftest.er1
49319   cat conftest.err >&5
49320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49321   (exit $ac_status); } &&
49322          { ac_try='test -z "$ac_c_werror_flag"
49323                          || test ! -s conftest.err'
49324   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49325   (eval $ac_try) 2>&5
49326   ac_status=$?
49327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49328   (exit $ac_status); }; } &&
49329          { ac_try='test -s conftest$ac_exeext'
49330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49331   (eval $ac_try) 2>&5
49332   ac_status=$?
49333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49334   (exit $ac_status); }; }; then
49335   ac_cv_func_pow=yes
49336 else
49337   echo "$as_me: failed program was:" >&5
49338 sed 's/^/| /' conftest.$ac_ext >&5
49339
49340         ac_cv_func_pow=no
49341 fi
49342
49343 rm -f conftest.err conftest.$ac_objext \
49344       conftest$ac_exeext conftest.$ac_ext
49345 fi
49346 { echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
49347 echo "${ECHO_T}$ac_cv_func_pow" >&6; }
49348
49349 if test $ac_cv_func_pow = no; then
49350   { echo "$as_me:$LINENO: checking for pow in -lm" >&5
49351 echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6; }
49352 if test "${ac_cv_lib_m_pow+set}" = set; then
49353   echo $ECHO_N "(cached) $ECHO_C" >&6
49354 else
49355   ac_check_lib_save_LIBS=$LIBS
49356 LIBS="-lm  $LIBS"
49357 cat >conftest.$ac_ext <<_ACEOF
49358 /* confdefs.h.  */
49359 _ACEOF
49360 cat confdefs.h >>conftest.$ac_ext
49361 cat >>conftest.$ac_ext <<_ACEOF
49362 /* end confdefs.h.  */
49363
49364 /* Override any GCC internal prototype to avoid an error.
49365    Use char because int might match the return type of a GCC
49366    builtin and then its argument prototype would still apply.  */
49367 #ifdef __cplusplus
49368 extern "C"
49369 #endif
49370 char pow ();
49371 int
49372 main ()
49373 {
49374 return pow ();
49375   ;
49376   return 0;
49377 }
49378 _ACEOF
49379 rm -f conftest.$ac_objext conftest$ac_exeext
49380 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49381   (eval $ac_link) 2>conftest.er1
49382   ac_status=$?
49383   grep -v '^ *+' conftest.er1 >conftest.err
49384   rm -f conftest.er1
49385   cat conftest.err >&5
49386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49387   (exit $ac_status); } &&
49388          { ac_try='test -z "$ac_c_werror_flag"
49389                          || test ! -s conftest.err'
49390   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49391   (eval $ac_try) 2>&5
49392   ac_status=$?
49393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49394   (exit $ac_status); }; } &&
49395          { ac_try='test -s conftest$ac_exeext'
49396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49397   (eval $ac_try) 2>&5
49398   ac_status=$?
49399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49400   (exit $ac_status); }; }; then
49401   ac_cv_lib_m_pow=yes
49402 else
49403   echo "$as_me: failed program was:" >&5
49404 sed 's/^/| /' conftest.$ac_ext >&5
49405
49406         ac_cv_lib_m_pow=no
49407 fi
49408
49409 rm -f conftest.err conftest.$ac_objext \
49410       conftest$ac_exeext conftest.$ac_ext
49411 LIBS=$ac_check_lib_save_LIBS
49412 fi
49413 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
49414 echo "${ECHO_T}$ac_cv_lib_m_pow" >&6; }
49415 if test $ac_cv_lib_m_pow = yes; then
49416   POW_LIB=-lm
49417 else
49418   { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
49419 echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
49420 fi
49421
49422 fi
49423
49424 fi
49425
49426
49427
49428
49429   # for dd.c and shred.c
49430   coreutils_saved_libs=$LIBS
49431     { echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
49432 echo $ECHO_N "checking for library containing fdatasync... $ECHO_C" >&6; }
49433 if test "${ac_cv_search_fdatasync+set}" = set; then
49434   echo $ECHO_N "(cached) $ECHO_C" >&6
49435 else
49436   ac_func_search_save_LIBS=$LIBS
49437 cat >conftest.$ac_ext <<_ACEOF
49438 /* confdefs.h.  */
49439 _ACEOF
49440 cat confdefs.h >>conftest.$ac_ext
49441 cat >>conftest.$ac_ext <<_ACEOF
49442 /* end confdefs.h.  */
49443
49444 /* Override any GCC internal prototype to avoid an error.
49445    Use char because int might match the return type of a GCC
49446    builtin and then its argument prototype would still apply.  */
49447 #ifdef __cplusplus
49448 extern "C"
49449 #endif
49450 char fdatasync ();
49451 int
49452 main ()
49453 {
49454 return fdatasync ();
49455   ;
49456   return 0;
49457 }
49458 _ACEOF
49459 for ac_lib in '' rt posix4; do
49460   if test -z "$ac_lib"; then
49461     ac_res="none required"
49462   else
49463     ac_res=-l$ac_lib
49464     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
49465   fi
49466   rm -f conftest.$ac_objext conftest$ac_exeext
49467 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49468   (eval $ac_link) 2>conftest.er1
49469   ac_status=$?
49470   grep -v '^ *+' conftest.er1 >conftest.err
49471   rm -f conftest.er1
49472   cat conftest.err >&5
49473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49474   (exit $ac_status); } &&
49475          { ac_try='test -z "$ac_c_werror_flag"
49476                          || test ! -s conftest.err'
49477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49478   (eval $ac_try) 2>&5
49479   ac_status=$?
49480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49481   (exit $ac_status); }; } &&
49482          { ac_try='test -s conftest$ac_exeext'
49483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49484   (eval $ac_try) 2>&5
49485   ac_status=$?
49486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49487   (exit $ac_status); }; }; then
49488   ac_cv_search_fdatasync=$ac_res
49489 else
49490   echo "$as_me: failed program was:" >&5
49491 sed 's/^/| /' conftest.$ac_ext >&5
49492
49493
49494 fi
49495
49496 rm -f conftest.err conftest.$ac_objext \
49497       conftest$ac_exeext
49498   if test "${ac_cv_search_fdatasync+set}" = set; then
49499   break
49500 fi
49501 done
49502 if test "${ac_cv_search_fdatasync+set}" = set; then
49503   :
49504 else
49505   ac_cv_search_fdatasync=no
49506 fi
49507 rm conftest.$ac_ext
49508 LIBS=$ac_func_search_save_LIBS
49509 fi
49510 { echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
49511 echo "${ECHO_T}$ac_cv_search_fdatasync" >&6; }
49512 ac_res=$ac_cv_search_fdatasync
49513 if test "$ac_res" != no; then
49514   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
49515   test "$ac_cv_search_fdatasync" = "none required" ||
49516                     LIB_FDATASYNC=$ac_cv_search_fdatasync
49517 fi
49518
49519
49520
49521 for ac_func in fdatasync
49522 do
49523 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
49524 { echo "$as_me:$LINENO: checking for $ac_func" >&5
49525 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
49526 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
49527   echo $ECHO_N "(cached) $ECHO_C" >&6
49528 else
49529   cat >conftest.$ac_ext <<_ACEOF
49530 /* confdefs.h.  */
49531 _ACEOF
49532 cat confdefs.h >>conftest.$ac_ext
49533 cat >>conftest.$ac_ext <<_ACEOF
49534 /* end confdefs.h.  */
49535 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
49536    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
49537 #define $ac_func innocuous_$ac_func
49538
49539 /* System header to define __stub macros and hopefully few prototypes,
49540     which can conflict with char $ac_func (); below.
49541     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49542     <limits.h> exists even on freestanding compilers.  */
49543
49544 #ifdef __STDC__
49545 # include <limits.h>
49546 #else
49547 # include <assert.h>
49548 #endif
49549
49550 #undef $ac_func
49551
49552 /* Override any GCC internal prototype to avoid an error.
49553    Use char because int might match the return type of a GCC
49554    builtin and then its argument prototype would still apply.  */
49555 #ifdef __cplusplus
49556 extern "C"
49557 #endif
49558 char $ac_func ();
49559 /* The GNU C library defines this for functions which it implements
49560     to always fail with ENOSYS.  Some functions are actually named
49561     something starting with __ and the normal name is an alias.  */
49562 #if defined __stub_$ac_func || defined __stub___$ac_func
49563 choke me
49564 #endif
49565
49566 int
49567 main ()
49568 {
49569 return $ac_func ();
49570   ;
49571   return 0;
49572 }
49573 _ACEOF
49574 rm -f conftest.$ac_objext conftest$ac_exeext
49575 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49576   (eval $ac_link) 2>conftest.er1
49577   ac_status=$?
49578   grep -v '^ *+' conftest.er1 >conftest.err
49579   rm -f conftest.er1
49580   cat conftest.err >&5
49581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49582   (exit $ac_status); } &&
49583          { ac_try='test -z "$ac_c_werror_flag"
49584                          || test ! -s conftest.err'
49585   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49586   (eval $ac_try) 2>&5
49587   ac_status=$?
49588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49589   (exit $ac_status); }; } &&
49590          { ac_try='test -s conftest$ac_exeext'
49591   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49592   (eval $ac_try) 2>&5
49593   ac_status=$?
49594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49595   (exit $ac_status); }; }; then
49596   eval "$as_ac_var=yes"
49597 else
49598   echo "$as_me: failed program was:" >&5
49599 sed 's/^/| /' conftest.$ac_ext >&5
49600
49601         eval "$as_ac_var=no"
49602 fi
49603
49604 rm -f conftest.err conftest.$ac_objext \
49605       conftest$ac_exeext conftest.$ac_ext
49606 fi
49607 ac_res=`eval echo '${'$as_ac_var'}'`
49608                { echo "$as_me:$LINENO: result: $ac_res" >&5
49609 echo "${ECHO_T}$ac_res" >&6; }
49610 if test `eval echo '${'$as_ac_var'}'` = yes; then
49611   cat >>confdefs.h <<_ACEOF
49612 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
49613 _ACEOF
49614
49615 fi
49616 done
49617
49618   LIBS=$coreutils_saved_libs
49619
49620   # See if linking `seq' requires -lm.
49621   # It does on nearly every system.  The single exception (so far) is
49622   # BeOS which has all the math functions in the normal runtime library
49623   # and doesn't have a separate math library.
49624
49625
49626   ac_seq_body='
49627      static double x, y;
49628      x = floor (x);
49629      x = rint (x);
49630      x = modf (x, &y);'
49631   cat >conftest.$ac_ext <<_ACEOF
49632 /* confdefs.h.  */
49633 _ACEOF
49634 cat confdefs.h >>conftest.$ac_ext
49635 cat >>conftest.$ac_ext <<_ACEOF
49636 /* end confdefs.h.  */
49637 #include <math.h>
49638 int
49639 main ()
49640 {
49641 $ac_seq_body
49642   ;
49643   return 0;
49644 }
49645 _ACEOF
49646 rm -f conftest.$ac_objext conftest$ac_exeext
49647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49648   (eval $ac_link) 2>conftest.er1
49649   ac_status=$?
49650   grep -v '^ *+' conftest.er1 >conftest.err
49651   rm -f conftest.er1
49652   cat conftest.err >&5
49653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49654   (exit $ac_status); } &&
49655          { ac_try='test -z "$ac_c_werror_flag"
49656                          || test ! -s conftest.err'
49657   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49658   (eval $ac_try) 2>&5
49659   ac_status=$?
49660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49661   (exit $ac_status); }; } &&
49662          { ac_try='test -s conftest$ac_exeext'
49663   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49664   (eval $ac_try) 2>&5
49665   ac_status=$?
49666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49667   (exit $ac_status); }; }; then
49668   :
49669 else
49670   echo "$as_me: failed program was:" >&5
49671 sed 's/^/| /' conftest.$ac_ext >&5
49672
49673         ac_seq_save_LIBS="$LIBS"
49674      LIBS="$LIBS -lm"
49675      cat >conftest.$ac_ext <<_ACEOF
49676 /* confdefs.h.  */
49677 _ACEOF
49678 cat confdefs.h >>conftest.$ac_ext
49679 cat >>conftest.$ac_ext <<_ACEOF
49680 /* end confdefs.h.  */
49681 #include <math.h>
49682 int
49683 main ()
49684 {
49685 $ac_seq_body
49686   ;
49687   return 0;
49688 }
49689 _ACEOF
49690 rm -f conftest.$ac_objext conftest$ac_exeext
49691 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49692   (eval $ac_link) 2>conftest.er1
49693   ac_status=$?
49694   grep -v '^ *+' conftest.er1 >conftest.err
49695   rm -f conftest.er1
49696   cat conftest.err >&5
49697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49698   (exit $ac_status); } &&
49699          { ac_try='test -z "$ac_c_werror_flag"
49700                          || test ! -s conftest.err'
49701   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49702   (eval $ac_try) 2>&5
49703   ac_status=$?
49704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49705   (exit $ac_status); }; } &&
49706          { ac_try='test -s conftest$ac_exeext'
49707   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49708   (eval $ac_try) 2>&5
49709   ac_status=$?
49710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49711   (exit $ac_status); }; }; then
49712   SEQ_LIBM=-lm
49713 else
49714   echo "$as_me: failed program was:" >&5
49715 sed 's/^/| /' conftest.$ac_ext >&5
49716
49717
49718 fi
49719
49720 rm -f conftest.err conftest.$ac_objext \
49721       conftest$ac_exeext conftest.$ac_ext
49722      LIBS="$ac_seq_save_LIBS"
49723
49724 fi
49725
49726 rm -f conftest.err conftest.$ac_objext \
49727       conftest$ac_exeext conftest.$ac_ext
49728
49729
49730
49731
49732
49733
49734
49735
49736           am_save_CPPFLAGS="$CPPFLAGS"
49737
49738   for element in $INCICONV; do
49739     haveit=
49740     for x in $CPPFLAGS; do
49741
49742   acl_save_prefix="$prefix"
49743   prefix="$acl_final_prefix"
49744   acl_save_exec_prefix="$exec_prefix"
49745   exec_prefix="$acl_final_exec_prefix"
49746   eval x=\"$x\"
49747   exec_prefix="$acl_save_exec_prefix"
49748   prefix="$acl_save_prefix"
49749
49750       if test "X$x" = "X$element"; then
49751         haveit=yes
49752         break
49753       fi
49754     done
49755     if test -z "$haveit"; then
49756       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
49757     fi
49758   done
49759
49760
49761   { echo "$as_me:$LINENO: checking for iconv" >&5
49762 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
49763 if test "${am_cv_func_iconv+set}" = set; then
49764   echo $ECHO_N "(cached) $ECHO_C" >&6
49765 else
49766
49767     am_cv_func_iconv="no, consider installing GNU libiconv"
49768     am_cv_lib_iconv=no
49769     cat >conftest.$ac_ext <<_ACEOF
49770 /* confdefs.h.  */
49771 _ACEOF
49772 cat confdefs.h >>conftest.$ac_ext
49773 cat >>conftest.$ac_ext <<_ACEOF
49774 /* end confdefs.h.  */
49775 #include <stdlib.h>
49776 #include <iconv.h>
49777 int
49778 main ()
49779 {
49780 iconv_t cd = iconv_open("","");
49781        iconv(cd,NULL,NULL,NULL,NULL);
49782        iconv_close(cd);
49783   ;
49784   return 0;
49785 }
49786 _ACEOF
49787 rm -f conftest.$ac_objext conftest$ac_exeext
49788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49789   (eval $ac_link) 2>conftest.er1
49790   ac_status=$?
49791   grep -v '^ *+' conftest.er1 >conftest.err
49792   rm -f conftest.er1
49793   cat conftest.err >&5
49794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49795   (exit $ac_status); } &&
49796          { ac_try='test -z "$ac_c_werror_flag"
49797                          || test ! -s conftest.err'
49798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49799   (eval $ac_try) 2>&5
49800   ac_status=$?
49801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49802   (exit $ac_status); }; } &&
49803          { ac_try='test -s conftest$ac_exeext'
49804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49805   (eval $ac_try) 2>&5
49806   ac_status=$?
49807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49808   (exit $ac_status); }; }; then
49809   am_cv_func_iconv=yes
49810 else
49811   echo "$as_me: failed program was:" >&5
49812 sed 's/^/| /' conftest.$ac_ext >&5
49813
49814
49815 fi
49816
49817 rm -f conftest.err conftest.$ac_objext \
49818       conftest$ac_exeext conftest.$ac_ext
49819     if test "$am_cv_func_iconv" != yes; then
49820       am_save_LIBS="$LIBS"
49821       LIBS="$LIBS $LIBICONV"
49822       cat >conftest.$ac_ext <<_ACEOF
49823 /* confdefs.h.  */
49824 _ACEOF
49825 cat confdefs.h >>conftest.$ac_ext
49826 cat >>conftest.$ac_ext <<_ACEOF
49827 /* end confdefs.h.  */
49828 #include <stdlib.h>
49829 #include <iconv.h>
49830 int
49831 main ()
49832 {
49833 iconv_t cd = iconv_open("","");
49834          iconv(cd,NULL,NULL,NULL,NULL);
49835          iconv_close(cd);
49836   ;
49837   return 0;
49838 }
49839 _ACEOF
49840 rm -f conftest.$ac_objext conftest$ac_exeext
49841 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49842   (eval $ac_link) 2>conftest.er1
49843   ac_status=$?
49844   grep -v '^ *+' conftest.er1 >conftest.err
49845   rm -f conftest.er1
49846   cat conftest.err >&5
49847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49848   (exit $ac_status); } &&
49849          { ac_try='test -z "$ac_c_werror_flag"
49850                          || test ! -s conftest.err'
49851   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49852   (eval $ac_try) 2>&5
49853   ac_status=$?
49854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49855   (exit $ac_status); }; } &&
49856          { ac_try='test -s conftest$ac_exeext'
49857   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49858   (eval $ac_try) 2>&5
49859   ac_status=$?
49860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49861   (exit $ac_status); }; }; then
49862   am_cv_lib_iconv=yes
49863         am_cv_func_iconv=yes
49864 else
49865   echo "$as_me: failed program was:" >&5
49866 sed 's/^/| /' conftest.$ac_ext >&5
49867
49868
49869 fi
49870
49871 rm -f conftest.err conftest.$ac_objext \
49872       conftest$ac_exeext conftest.$ac_ext
49873       LIBS="$am_save_LIBS"
49874     fi
49875
49876 fi
49877 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
49878 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
49879   if test "$am_cv_func_iconv" = yes; then
49880
49881 cat >>confdefs.h <<\_ACEOF
49882 #define HAVE_ICONV 1
49883 _ACEOF
49884
49885   fi
49886   if test "$am_cv_lib_iconv" = yes; then
49887     { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
49888 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
49889     { echo "$as_me:$LINENO: result: $LIBICONV" >&5
49890 echo "${ECHO_T}$LIBICONV" >&6; }
49891   else
49892             CPPFLAGS="$am_save_CPPFLAGS"
49893     LIBICONV=
49894     LTLIBICONV=
49895   fi
49896
49897
49898
49899   if test "$am_cv_func_iconv" = yes; then
49900     { echo "$as_me:$LINENO: checking for iconv declaration" >&5
49901 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
49902     if test "${am_cv_proto_iconv+set}" = set; then
49903   echo $ECHO_N "(cached) $ECHO_C" >&6
49904 else
49905
49906       cat >conftest.$ac_ext <<_ACEOF
49907 /* confdefs.h.  */
49908 _ACEOF
49909 cat confdefs.h >>conftest.$ac_ext
49910 cat >>conftest.$ac_ext <<_ACEOF
49911 /* end confdefs.h.  */
49912
49913 #include <stdlib.h>
49914 #include <iconv.h>
49915 extern
49916 #ifdef __cplusplus
49917 "C"
49918 #endif
49919 #if defined(__STDC__) || defined(__cplusplus)
49920 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
49921 #else
49922 size_t iconv();
49923 #endif
49924
49925 int
49926 main ()
49927 {
49928
49929   ;
49930   return 0;
49931 }
49932 _ACEOF
49933 rm -f conftest.$ac_objext
49934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49935   (eval $ac_compile) 2>conftest.er1
49936   ac_status=$?
49937   grep -v '^ *+' conftest.er1 >conftest.err
49938   rm -f conftest.er1
49939   cat conftest.err >&5
49940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49941   (exit $ac_status); } &&
49942          { ac_try='test -z "$ac_c_werror_flag"
49943                          || test ! -s conftest.err'
49944   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49945   (eval $ac_try) 2>&5
49946   ac_status=$?
49947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49948   (exit $ac_status); }; } &&
49949          { ac_try='test -s conftest.$ac_objext'
49950   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49951   (eval $ac_try) 2>&5
49952   ac_status=$?
49953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49954   (exit $ac_status); }; }; then
49955   am_cv_proto_iconv_arg1=""
49956 else
49957   echo "$as_me: failed program was:" >&5
49958 sed 's/^/| /' conftest.$ac_ext >&5
49959
49960         am_cv_proto_iconv_arg1="const"
49961 fi
49962
49963 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49964       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);"
49965 fi
49966
49967     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
49968     { echo "$as_me:$LINENO: result: ${ac_t:-
49969          }$am_cv_proto_iconv" >&5
49970 echo "${ECHO_T}${ac_t:-
49971          }$am_cv_proto_iconv" >&6; }
49972
49973 cat >>confdefs.h <<_ACEOF
49974 #define ICONV_CONST $am_cv_proto_iconv_arg1
49975 _ACEOF
49976
49977   fi
49978
49979     { echo "$as_me:$LINENO: checking whether a running program can be unlinked" >&5
49980 echo $ECHO_N "checking whether a running program can be unlinked... $ECHO_C" >&6; }
49981 if test "${jm_cv_func_unlink_busy_text+set}" = set; then
49982   echo $ECHO_N "(cached) $ECHO_C" >&6
49983 else
49984
49985       if test "$cross_compiling" = yes; then
49986   jm_cv_func_unlink_busy_text=no
49987
49988 else
49989   cat >conftest.$ac_ext <<_ACEOF
49990 /* confdefs.h.  */
49991 _ACEOF
49992 cat confdefs.h >>conftest.$ac_ext
49993 cat >>conftest.$ac_ext <<_ACEOF
49994 /* end confdefs.h.  */
49995 $ac_includes_default
49996             int
49997             main (int argc, char **argv)
49998             {
49999               return !argc || unlink (argv0) != 0;
50000             }
50001 _ACEOF
50002 rm -f conftest$ac_exeext
50003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50004   (eval $ac_link) 2>&5
50005   ac_status=$?
50006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50007   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
50008   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50009   (eval $ac_try) 2>&5
50010   ac_status=$?
50011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50012   (exit $ac_status); }; }; then
50013   jm_cv_func_unlink_busy_text=yes
50014 else
50015   echo "$as_me: program exited with status $ac_status" >&5
50016 echo "$as_me: failed program was:" >&5
50017 sed 's/^/| /' conftest.$ac_ext >&5
50018
50019 ( exit $ac_status )
50020 jm_cv_func_unlink_busy_text=no
50021 fi
50022 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
50023 fi
50024
50025
50026
50027
50028 fi
50029 { echo "$as_me:$LINENO: result: $jm_cv_func_unlink_busy_text" >&5
50030 echo "${ECHO_T}$jm_cv_func_unlink_busy_text" >&6; }
50031
50032   if test $jm_cv_func_unlink_busy_text = no; then
50033     INSTALL=$ac_install_sh
50034   fi
50035
50036
50037   # These tests are for df.
50038
50039
50040   if test $gl_cv_list_mounted_fs = yes && test $gl_cv_fs_space = yes; then
50041     DF_PROG='df$(EXEEXT)'
50042   fi
50043
50044
50045
50046   # If any of these functions don't exist (e.g. DJGPP 2.03),
50047   # use the corresponding stub.
50048   { echo "$as_me:$LINENO: checking for fchdir" >&5
50049 echo $ECHO_N "checking for fchdir... $ECHO_C" >&6; }
50050 if test "${ac_cv_func_fchdir+set}" = set; then
50051   echo $ECHO_N "(cached) $ECHO_C" >&6
50052 else
50053   cat >conftest.$ac_ext <<_ACEOF
50054 /* confdefs.h.  */
50055 _ACEOF
50056 cat confdefs.h >>conftest.$ac_ext
50057 cat >>conftest.$ac_ext <<_ACEOF
50058 /* end confdefs.h.  */
50059 /* Define fchdir to an innocuous variant, in case <limits.h> declares fchdir.
50060    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
50061 #define fchdir innocuous_fchdir
50062
50063 /* System header to define __stub macros and hopefully few prototypes,
50064     which can conflict with char fchdir (); below.
50065     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50066     <limits.h> exists even on freestanding compilers.  */
50067
50068 #ifdef __STDC__
50069 # include <limits.h>
50070 #else
50071 # include <assert.h>
50072 #endif
50073
50074 #undef fchdir
50075
50076 /* Override any GCC internal prototype to avoid an error.
50077    Use char because int might match the return type of a GCC
50078    builtin and then its argument prototype would still apply.  */
50079 #ifdef __cplusplus
50080 extern "C"
50081 #endif
50082 char fchdir ();
50083 /* The GNU C library defines this for functions which it implements
50084     to always fail with ENOSYS.  Some functions are actually named
50085     something starting with __ and the normal name is an alias.  */
50086 #if defined __stub_fchdir || defined __stub___fchdir
50087 choke me
50088 #endif
50089
50090 int
50091 main ()
50092 {
50093 return fchdir ();
50094   ;
50095   return 0;
50096 }
50097 _ACEOF
50098 rm -f conftest.$ac_objext conftest$ac_exeext
50099 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50100   (eval $ac_link) 2>conftest.er1
50101   ac_status=$?
50102   grep -v '^ *+' conftest.er1 >conftest.err
50103   rm -f conftest.er1
50104   cat conftest.err >&5
50105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50106   (exit $ac_status); } &&
50107          { ac_try='test -z "$ac_c_werror_flag"
50108                          || test ! -s conftest.err'
50109   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50110   (eval $ac_try) 2>&5
50111   ac_status=$?
50112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50113   (exit $ac_status); }; } &&
50114          { ac_try='test -s conftest$ac_exeext'
50115   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50116   (eval $ac_try) 2>&5
50117   ac_status=$?
50118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50119   (exit $ac_status); }; }; then
50120   ac_cv_func_fchdir=yes
50121 else
50122   echo "$as_me: failed program was:" >&5
50123 sed 's/^/| /' conftest.$ac_ext >&5
50124
50125         ac_cv_func_fchdir=no
50126 fi
50127
50128 rm -f conftest.err conftest.$ac_objext \
50129       conftest$ac_exeext conftest.$ac_ext
50130 fi
50131 { echo "$as_me:$LINENO: result: $ac_cv_func_fchdir" >&5
50132 echo "${ECHO_T}$ac_cv_func_fchdir" >&6; }
50133 if test $ac_cv_func_fchdir = yes; then
50134   :
50135 else
50136   case " $LIBOBJS " in
50137   *" fchdir-stub.$ac_objext "* ) ;;
50138   *) LIBOBJS="$LIBOBJS fchdir-stub.$ac_objext"
50139  ;;
50140 esac
50141
50142 fi
50143
50144
50145
50146
50147
50148
50149
50150
50151
50152
50153
50154
50155
50156 { echo "$as_me:$LINENO: checking POSIX termios" >&5
50157 echo $ECHO_N "checking POSIX termios... $ECHO_C" >&6; }
50158 if test "${ac_cv_sys_posix_termios+set}" = set; then
50159   echo $ECHO_N "(cached) $ECHO_C" >&6
50160 else
50161   cat >conftest.$ac_ext <<_ACEOF
50162 /* confdefs.h.  */
50163 _ACEOF
50164 cat confdefs.h >>conftest.$ac_ext
50165 cat >>conftest.$ac_ext <<_ACEOF
50166 /* end confdefs.h.  */
50167 #include <sys/types.h>
50168 #include <unistd.h>
50169 #include <termios.h>
50170
50171 int
50172 main ()
50173 {
50174 /* SunOS 4.0.3 has termios.h but not the library calls.  */
50175    tcgetattr(0, 0);
50176   ;
50177   return 0;
50178 }
50179 _ACEOF
50180 rm -f conftest.$ac_objext conftest$ac_exeext
50181 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50182   (eval $ac_link) 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"
50190                          || test ! -s conftest.err'
50191   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50192   (eval $ac_try) 2>&5
50193   ac_status=$?
50194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50195   (exit $ac_status); }; } &&
50196          { ac_try='test -s conftest$ac_exeext'
50197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50198   (eval $ac_try) 2>&5
50199   ac_status=$?
50200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50201   (exit $ac_status); }; }; then
50202   ac_cv_sys_posix_termios=yes
50203 else
50204   echo "$as_me: failed program was:" >&5
50205 sed 's/^/| /' conftest.$ac_ext >&5
50206
50207         ac_cv_sys_posix_termios=no
50208 fi
50209
50210 rm -f conftest.err conftest.$ac_objext \
50211       conftest$ac_exeext conftest.$ac_ext
50212 fi
50213 { echo "$as_me:$LINENO: result: $ac_cv_sys_posix_termios" >&5
50214 echo "${ECHO_T}$ac_cv_sys_posix_termios" >&6; }
50215
50216
50217    { echo "$as_me:$LINENO: checking whether use of struct winsize requires sys/ptem.h" >&5
50218 echo $ECHO_N "checking whether use of struct winsize requires sys/ptem.h... $ECHO_C" >&6; }
50219 if test "${jm_cv_sys_struct_winsize_needs_sys_ptem_h+set}" = set; then
50220   echo $ECHO_N "(cached) $ECHO_C" >&6
50221 else
50222   jm_cv_sys_struct_winsize_needs_sys_ptem_h=yes
50223       if test $ac_cv_sys_posix_termios = yes; then
50224         cat >conftest.$ac_ext <<_ACEOF
50225 /* confdefs.h.  */
50226 _ACEOF
50227 cat confdefs.h >>conftest.$ac_ext
50228 cat >>conftest.$ac_ext <<_ACEOF
50229 /* end confdefs.h.  */
50230 #include <termios.h>
50231           struct winsize x;
50232 int
50233 main ()
50234 {
50235 jm_cv_sys_struct_winsize_needs_sys_ptem_h=no
50236   ;
50237   return 0;
50238 }
50239 _ACEOF
50240 rm -f conftest.$ac_objext
50241 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50242   (eval $ac_compile) 2>conftest.er1
50243   ac_status=$?
50244   grep -v '^ *+' conftest.er1 >conftest.err
50245   rm -f conftest.er1
50246   cat conftest.err >&5
50247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50248   (exit $ac_status); } &&
50249          { ac_try='test -z "$ac_c_werror_flag"
50250                          || test ! -s conftest.err'
50251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50252   (eval $ac_try) 2>&5
50253   ac_status=$?
50254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50255   (exit $ac_status); }; } &&
50256          { ac_try='test -s conftest.$ac_objext'
50257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50258   (eval $ac_try) 2>&5
50259   ac_status=$?
50260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50261   (exit $ac_status); }; }; then
50262   :
50263 else
50264   echo "$as_me: failed program was:" >&5
50265 sed 's/^/| /' conftest.$ac_ext >&5
50266
50267
50268 fi
50269
50270 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50271       fi
50272       if test $jm_cv_sys_struct_winsize_needs_sys_ptem_h = yes; then
50273         cat >conftest.$ac_ext <<_ACEOF
50274 /* confdefs.h.  */
50275 _ACEOF
50276 cat confdefs.h >>conftest.$ac_ext
50277 cat >>conftest.$ac_ext <<_ACEOF
50278 /* end confdefs.h.  */
50279 #include <sys/ptem.h>
50280 int
50281 main ()
50282 {
50283 struct winsize x;
50284   ;
50285   return 0;
50286 }
50287 _ACEOF
50288 rm -f conftest.$ac_objext
50289 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50290   (eval $ac_compile) 2>conftest.er1
50291   ac_status=$?
50292   grep -v '^ *+' conftest.er1 >conftest.err
50293   rm -f conftest.er1
50294   cat conftest.err >&5
50295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50296   (exit $ac_status); } &&
50297          { ac_try='test -z "$ac_c_werror_flag"
50298                          || test ! -s conftest.err'
50299   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50300   (eval $ac_try) 2>&5
50301   ac_status=$?
50302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50303   (exit $ac_status); }; } &&
50304          { ac_try='test -s conftest.$ac_objext'
50305   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50306   (eval $ac_try) 2>&5
50307   ac_status=$?
50308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50309   (exit $ac_status); }; }; then
50310   :
50311 else
50312   echo "$as_me: failed program was:" >&5
50313 sed 's/^/| /' conftest.$ac_ext >&5
50314
50315         jm_cv_sys_struct_winsize_needs_sys_ptem_h=no
50316 fi
50317
50318 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50319       fi
50320 fi
50321 { echo "$as_me:$LINENO: result: $jm_cv_sys_struct_winsize_needs_sys_ptem_h" >&5
50322 echo "${ECHO_T}$jm_cv_sys_struct_winsize_needs_sys_ptem_h" >&6; }
50323    if test $jm_cv_sys_struct_winsize_needs_sys_ptem_h = yes; then
50324
50325 cat >>confdefs.h <<\_ACEOF
50326 #define WINSIZE_IN_PTEM 1
50327 _ACEOF
50328
50329    fi
50330
50331 { echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
50332 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6; }
50333 if test "${utils_cv_localtime_cache+set}" = set; then
50334   echo $ECHO_N "(cached) $ECHO_C" >&6
50335 else
50336   if test x$ac_cv_func_tzset = xyes; then
50337 if test "$cross_compiling" = yes; then
50338   # If we have tzset, assume the worst when cross-compiling.
50339 utils_cv_localtime_cache=yes
50340 else
50341   cat >conftest.$ac_ext <<_ACEOF
50342 /* confdefs.h.  */
50343 _ACEOF
50344 cat confdefs.h >>conftest.$ac_ext
50345 cat >>conftest.$ac_ext <<_ACEOF
50346 /* end confdefs.h.  */
50347 #include <time.h>
50348 #if STDC_HEADERS
50349 # include <stdlib.h>
50350 #endif
50351 extern char **environ;
50352 unset_TZ ()
50353 {
50354   char **from, **to;
50355   for (to = from = environ; (*to = *from); from++)
50356     if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
50357       to++;
50358 }
50359 main()
50360 {
50361   time_t now = time ((time_t *) 0);
50362   int hour_GMT0, hour_unset;
50363   if (putenv ("TZ=GMT0") != 0)
50364     exit (1);
50365   hour_GMT0 = localtime (&now)->tm_hour;
50366   unset_TZ ();
50367   hour_unset = localtime (&now)->tm_hour;
50368   if (putenv ("TZ=PST8") != 0)
50369     exit (1);
50370   if (localtime (&now)->tm_hour == hour_GMT0)
50371     exit (1);
50372   unset_TZ ();
50373   if (localtime (&now)->tm_hour != hour_unset)
50374     exit (1);
50375   exit (0);
50376 }
50377 _ACEOF
50378 rm -f conftest$ac_exeext
50379 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50380   (eval $ac_link) 2>&5
50381   ac_status=$?
50382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50383   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
50384   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50385   (eval $ac_try) 2>&5
50386   ac_status=$?
50387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50388   (exit $ac_status); }; }; then
50389   utils_cv_localtime_cache=no
50390 else
50391   echo "$as_me: program exited with status $ac_status" >&5
50392 echo "$as_me: failed program was:" >&5
50393 sed 's/^/| /' conftest.$ac_ext >&5
50394
50395 ( exit $ac_status )
50396 utils_cv_localtime_cache=yes
50397 fi
50398 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
50399 fi
50400
50401
50402 else
50403         # If we lack tzset, report that localtime does not cache TZ,
50404         # since we can't invalidate the cache if we don't have tzset.
50405         utils_cv_localtime_cache=no
50406 fi
50407 fi
50408 { echo "$as_me:$LINENO: result: $utils_cv_localtime_cache" >&5
50409 echo "${ECHO_T}$utils_cv_localtime_cache" >&6; }
50410 if test $utils_cv_localtime_cache = yes; then
50411
50412 cat >>confdefs.h <<\_ACEOF
50413 #define LOCALTIME_CACHE 1
50414 _ACEOF
50415
50416 fi
50417
50418 # SCO-ODT-3.0 is reported to need -los to link programs using initgroups
50419
50420 for ac_func in initgroups
50421 do
50422 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
50423 { echo "$as_me:$LINENO: checking for $ac_func" >&5
50424 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
50425 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
50426   echo $ECHO_N "(cached) $ECHO_C" >&6
50427 else
50428   cat >conftest.$ac_ext <<_ACEOF
50429 /* confdefs.h.  */
50430 _ACEOF
50431 cat confdefs.h >>conftest.$ac_ext
50432 cat >>conftest.$ac_ext <<_ACEOF
50433 /* end confdefs.h.  */
50434 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
50435    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
50436 #define $ac_func innocuous_$ac_func
50437
50438 /* System header to define __stub macros and hopefully few prototypes,
50439     which can conflict with char $ac_func (); below.
50440     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50441     <limits.h> exists even on freestanding compilers.  */
50442
50443 #ifdef __STDC__
50444 # include <limits.h>
50445 #else
50446 # include <assert.h>
50447 #endif
50448
50449 #undef $ac_func
50450
50451 /* Override any GCC internal prototype to avoid an error.
50452    Use char because int might match the return type of a GCC
50453    builtin and then its argument prototype would still apply.  */
50454 #ifdef __cplusplus
50455 extern "C"
50456 #endif
50457 char $ac_func ();
50458 /* The GNU C library defines this for functions which it implements
50459     to always fail with ENOSYS.  Some functions are actually named
50460     something starting with __ and the normal name is an alias.  */
50461 #if defined __stub_$ac_func || defined __stub___$ac_func
50462 choke me
50463 #endif
50464
50465 int
50466 main ()
50467 {
50468 return $ac_func ();
50469   ;
50470   return 0;
50471 }
50472 _ACEOF
50473 rm -f conftest.$ac_objext conftest$ac_exeext
50474 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50475   (eval $ac_link) 2>conftest.er1
50476   ac_status=$?
50477   grep -v '^ *+' conftest.er1 >conftest.err
50478   rm -f conftest.er1
50479   cat conftest.err >&5
50480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50481   (exit $ac_status); } &&
50482          { ac_try='test -z "$ac_c_werror_flag"
50483                          || test ! -s conftest.err'
50484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50485   (eval $ac_try) 2>&5
50486   ac_status=$?
50487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50488   (exit $ac_status); }; } &&
50489          { ac_try='test -s conftest$ac_exeext'
50490   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50491   (eval $ac_try) 2>&5
50492   ac_status=$?
50493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50494   (exit $ac_status); }; }; then
50495   eval "$as_ac_var=yes"
50496 else
50497   echo "$as_me: failed program was:" >&5
50498 sed 's/^/| /' conftest.$ac_ext >&5
50499
50500         eval "$as_ac_var=no"
50501 fi
50502
50503 rm -f conftest.err conftest.$ac_objext \
50504       conftest$ac_exeext conftest.$ac_ext
50505 fi
50506 ac_res=`eval echo '${'$as_ac_var'}'`
50507                { echo "$as_me:$LINENO: result: $ac_res" >&5
50508 echo "${ECHO_T}$ac_res" >&6; }
50509 if test `eval echo '${'$as_ac_var'}'` = yes; then
50510   cat >>confdefs.h <<_ACEOF
50511 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
50512 _ACEOF
50513
50514 fi
50515 done
50516
50517 if test $ac_cv_func_initgroups = no; then
50518
50519 { echo "$as_me:$LINENO: checking for initgroups in -los" >&5
50520 echo $ECHO_N "checking for initgroups in -los... $ECHO_C" >&6; }
50521 if test "${ac_cv_lib_os_initgroups+set}" = set; then
50522   echo $ECHO_N "(cached) $ECHO_C" >&6
50523 else
50524   ac_check_lib_save_LIBS=$LIBS
50525 LIBS="-los  $LIBS"
50526 cat >conftest.$ac_ext <<_ACEOF
50527 /* confdefs.h.  */
50528 _ACEOF
50529 cat confdefs.h >>conftest.$ac_ext
50530 cat >>conftest.$ac_ext <<_ACEOF
50531 /* end confdefs.h.  */
50532
50533 /* Override any GCC internal prototype to avoid an error.
50534    Use char because int might match the return type of a GCC
50535    builtin and then its argument prototype would still apply.  */
50536 #ifdef __cplusplus
50537 extern "C"
50538 #endif
50539 char initgroups ();
50540 int
50541 main ()
50542 {
50543 return initgroups ();
50544   ;
50545   return 0;
50546 }
50547 _ACEOF
50548 rm -f conftest.$ac_objext conftest$ac_exeext
50549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50550   (eval $ac_link) 2>conftest.er1
50551   ac_status=$?
50552   grep -v '^ *+' conftest.er1 >conftest.err
50553   rm -f conftest.er1
50554   cat conftest.err >&5
50555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50556   (exit $ac_status); } &&
50557          { ac_try='test -z "$ac_c_werror_flag"
50558                          || test ! -s conftest.err'
50559   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50560   (eval $ac_try) 2>&5
50561   ac_status=$?
50562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50563   (exit $ac_status); }; } &&
50564          { ac_try='test -s conftest$ac_exeext'
50565   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50566   (eval $ac_try) 2>&5
50567   ac_status=$?
50568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50569   (exit $ac_status); }; }; then
50570   ac_cv_lib_os_initgroups=yes
50571 else
50572   echo "$as_me: failed program was:" >&5
50573 sed 's/^/| /' conftest.$ac_ext >&5
50574
50575         ac_cv_lib_os_initgroups=no
50576 fi
50577
50578 rm -f conftest.err conftest.$ac_objext \
50579       conftest$ac_exeext conftest.$ac_ext
50580 LIBS=$ac_check_lib_save_LIBS
50581 fi
50582 { echo "$as_me:$LINENO: result: $ac_cv_lib_os_initgroups" >&5
50583 echo "${ECHO_T}$ac_cv_lib_os_initgroups" >&6; }
50584 if test $ac_cv_lib_os_initgroups = yes; then
50585   cat >>confdefs.h <<_ACEOF
50586 #define HAVE_LIBOS 1
50587 _ACEOF
50588
50589   LIBS="-los $LIBS"
50590
50591 fi
50592
50593 fi
50594
50595
50596 for ac_func in syslog
50597 do
50598 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
50599 { echo "$as_me:$LINENO: checking for $ac_func" >&5
50600 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
50601 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
50602   echo $ECHO_N "(cached) $ECHO_C" >&6
50603 else
50604   cat >conftest.$ac_ext <<_ACEOF
50605 /* confdefs.h.  */
50606 _ACEOF
50607 cat confdefs.h >>conftest.$ac_ext
50608 cat >>conftest.$ac_ext <<_ACEOF
50609 /* end confdefs.h.  */
50610 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
50611    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
50612 #define $ac_func innocuous_$ac_func
50613
50614 /* System header to define __stub macros and hopefully few prototypes,
50615     which can conflict with char $ac_func (); below.
50616     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50617     <limits.h> exists even on freestanding compilers.  */
50618
50619 #ifdef __STDC__
50620 # include <limits.h>
50621 #else
50622 # include <assert.h>
50623 #endif
50624
50625 #undef $ac_func
50626
50627 /* Override any GCC internal prototype to avoid an error.
50628    Use char because int might match the return type of a GCC
50629    builtin and then its argument prototype would still apply.  */
50630 #ifdef __cplusplus
50631 extern "C"
50632 #endif
50633 char $ac_func ();
50634 /* The GNU C library defines this for functions which it implements
50635     to always fail with ENOSYS.  Some functions are actually named
50636     something starting with __ and the normal name is an alias.  */
50637 #if defined __stub_$ac_func || defined __stub___$ac_func
50638 choke me
50639 #endif
50640
50641 int
50642 main ()
50643 {
50644 return $ac_func ();
50645   ;
50646   return 0;
50647 }
50648 _ACEOF
50649 rm -f conftest.$ac_objext conftest$ac_exeext
50650 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50651   (eval $ac_link) 2>conftest.er1
50652   ac_status=$?
50653   grep -v '^ *+' conftest.er1 >conftest.err
50654   rm -f conftest.er1
50655   cat conftest.err >&5
50656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50657   (exit $ac_status); } &&
50658          { ac_try='test -z "$ac_c_werror_flag"
50659                          || test ! -s conftest.err'
50660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50661   (eval $ac_try) 2>&5
50662   ac_status=$?
50663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50664   (exit $ac_status); }; } &&
50665          { ac_try='test -s conftest$ac_exeext'
50666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50667   (eval $ac_try) 2>&5
50668   ac_status=$?
50669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50670   (exit $ac_status); }; }; then
50671   eval "$as_ac_var=yes"
50672 else
50673   echo "$as_me: failed program was:" >&5
50674 sed 's/^/| /' conftest.$ac_ext >&5
50675
50676         eval "$as_ac_var=no"
50677 fi
50678
50679 rm -f conftest.err conftest.$ac_objext \
50680       conftest$ac_exeext conftest.$ac_ext
50681 fi
50682 ac_res=`eval echo '${'$as_ac_var'}'`
50683                { echo "$as_me:$LINENO: result: $ac_res" >&5
50684 echo "${ECHO_T}$ac_res" >&6; }
50685 if test `eval echo '${'$as_ac_var'}'` = yes; then
50686   cat >>confdefs.h <<_ACEOF
50687 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
50688 _ACEOF
50689
50690 fi
50691 done
50692
50693 if test $ac_cv_func_syslog = no; then
50694   # syslog is not in the default libraries.  See if it's in some other.
50695   for lib in bsd socket inet; do
50696     as_ac_Lib=`echo "ac_cv_lib_$lib''_syslog" | $as_tr_sh`
50697 { echo "$as_me:$LINENO: checking for syslog in -l$lib" >&5
50698 echo $ECHO_N "checking for syslog in -l$lib... $ECHO_C" >&6; }
50699 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
50700   echo $ECHO_N "(cached) $ECHO_C" >&6
50701 else
50702   ac_check_lib_save_LIBS=$LIBS
50703 LIBS="-l$lib  $LIBS"
50704 cat >conftest.$ac_ext <<_ACEOF
50705 /* confdefs.h.  */
50706 _ACEOF
50707 cat confdefs.h >>conftest.$ac_ext
50708 cat >>conftest.$ac_ext <<_ACEOF
50709 /* end confdefs.h.  */
50710
50711 /* Override any GCC internal prototype to avoid an error.
50712    Use char because int might match the return type of a GCC
50713    builtin and then its argument prototype would still apply.  */
50714 #ifdef __cplusplus
50715 extern "C"
50716 #endif
50717 char syslog ();
50718 int
50719 main ()
50720 {
50721 return syslog ();
50722   ;
50723   return 0;
50724 }
50725 _ACEOF
50726 rm -f conftest.$ac_objext conftest$ac_exeext
50727 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50728   (eval $ac_link) 2>conftest.er1
50729   ac_status=$?
50730   grep -v '^ *+' conftest.er1 >conftest.err
50731   rm -f conftest.er1
50732   cat conftest.err >&5
50733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50734   (exit $ac_status); } &&
50735          { ac_try='test -z "$ac_c_werror_flag"
50736                          || test ! -s conftest.err'
50737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50738   (eval $ac_try) 2>&5
50739   ac_status=$?
50740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50741   (exit $ac_status); }; } &&
50742          { ac_try='test -s conftest$ac_exeext'
50743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50744   (eval $ac_try) 2>&5
50745   ac_status=$?
50746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50747   (exit $ac_status); }; }; then
50748   eval "$as_ac_Lib=yes"
50749 else
50750   echo "$as_me: failed program was:" >&5
50751 sed 's/^/| /' conftest.$ac_ext >&5
50752
50753         eval "$as_ac_Lib=no"
50754 fi
50755
50756 rm -f conftest.err conftest.$ac_objext \
50757       conftest$ac_exeext conftest.$ac_ext
50758 LIBS=$ac_check_lib_save_LIBS
50759 fi
50760 ac_res=`eval echo '${'$as_ac_Lib'}'`
50761                { echo "$as_me:$LINENO: result: $ac_res" >&5
50762 echo "${ECHO_T}$ac_res" >&6; }
50763 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
50764
50765 cat >>confdefs.h <<\_ACEOF
50766 #define HAVE_SYSLOG 1
50767 _ACEOF
50768
50769       LIBS="$LIBS -l$lib"; break
50770 fi
50771
50772   done
50773 fi
50774
50775 { echo "$as_me:$LINENO: checking for 3-argument setpriority function" >&5
50776 echo $ECHO_N "checking for 3-argument setpriority function... $ECHO_C" >&6; }
50777 if test "${utils_cv_func_setpriority+set}" = set; then
50778   echo $ECHO_N "(cached) $ECHO_C" >&6
50779 else
50780   cat >conftest.$ac_ext <<_ACEOF
50781 /* confdefs.h.  */
50782 _ACEOF
50783 cat confdefs.h >>conftest.$ac_ext
50784 cat >>conftest.$ac_ext <<_ACEOF
50785 /* end confdefs.h.  */
50786 #include <sys/time.h>
50787          #include <sys/resource.h>
50788
50789 int
50790 main ()
50791 {
50792 setpriority (0, 0, 0);
50793   ;
50794   return 0;
50795 }
50796 _ACEOF
50797 rm -f conftest.$ac_objext conftest$ac_exeext
50798 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50799   (eval $ac_link) 2>conftest.er1
50800   ac_status=$?
50801   grep -v '^ *+' conftest.er1 >conftest.err
50802   rm -f conftest.er1
50803   cat conftest.err >&5
50804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50805   (exit $ac_status); } &&
50806          { ac_try='test -z "$ac_c_werror_flag"
50807                          || test ! -s conftest.err'
50808   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50809   (eval $ac_try) 2>&5
50810   ac_status=$?
50811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50812   (exit $ac_status); }; } &&
50813          { ac_try='test -s conftest$ac_exeext'
50814   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50815   (eval $ac_try) 2>&5
50816   ac_status=$?
50817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50818   (exit $ac_status); }; }; then
50819   utils_cv_func_setpriority=yes
50820 else
50821   echo "$as_me: failed program was:" >&5
50822 sed 's/^/| /' conftest.$ac_ext >&5
50823
50824         utils_cv_func_setpriority=no
50825 fi
50826
50827 rm -f conftest.err conftest.$ac_objext \
50828       conftest$ac_exeext conftest.$ac_ext
50829 fi
50830 { echo "$as_me:$LINENO: result: $utils_cv_func_setpriority" >&5
50831 echo "${ECHO_T}$utils_cv_func_setpriority" >&6; }
50832 if test $utils_cv_func_setpriority = no; then
50833
50834 for ac_func in nice
50835 do
50836 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
50837 { echo "$as_me:$LINENO: checking for $ac_func" >&5
50838 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
50839 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
50840   echo $ECHO_N "(cached) $ECHO_C" >&6
50841 else
50842   cat >conftest.$ac_ext <<_ACEOF
50843 /* confdefs.h.  */
50844 _ACEOF
50845 cat confdefs.h >>conftest.$ac_ext
50846 cat >>conftest.$ac_ext <<_ACEOF
50847 /* end confdefs.h.  */
50848 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
50849    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
50850 #define $ac_func innocuous_$ac_func
50851
50852 /* System header to define __stub macros and hopefully few prototypes,
50853     which can conflict with char $ac_func (); below.
50854     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50855     <limits.h> exists even on freestanding compilers.  */
50856
50857 #ifdef __STDC__
50858 # include <limits.h>
50859 #else
50860 # include <assert.h>
50861 #endif
50862
50863 #undef $ac_func
50864
50865 /* Override any GCC internal prototype to avoid an error.
50866    Use char because int might match the return type of a GCC
50867    builtin and then its argument prototype would still apply.  */
50868 #ifdef __cplusplus
50869 extern "C"
50870 #endif
50871 char $ac_func ();
50872 /* The GNU C library defines this for functions which it implements
50873     to always fail with ENOSYS.  Some functions are actually named
50874     something starting with __ and the normal name is an alias.  */
50875 #if defined __stub_$ac_func || defined __stub___$ac_func
50876 choke me
50877 #endif
50878
50879 int
50880 main ()
50881 {
50882 return $ac_func ();
50883   ;
50884   return 0;
50885 }
50886 _ACEOF
50887 rm -f conftest.$ac_objext conftest$ac_exeext
50888 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50889   (eval $ac_link) 2>conftest.er1
50890   ac_status=$?
50891   grep -v '^ *+' conftest.er1 >conftest.err
50892   rm -f conftest.er1
50893   cat conftest.err >&5
50894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50895   (exit $ac_status); } &&
50896          { ac_try='test -z "$ac_c_werror_flag"
50897                          || test ! -s conftest.err'
50898   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50899   (eval $ac_try) 2>&5
50900   ac_status=$?
50901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50902   (exit $ac_status); }; } &&
50903          { ac_try='test -s conftest$ac_exeext'
50904   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50905   (eval $ac_try) 2>&5
50906   ac_status=$?
50907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50908   (exit $ac_status); }; }; then
50909   eval "$as_ac_var=yes"
50910 else
50911   echo "$as_me: failed program was:" >&5
50912 sed 's/^/| /' conftest.$ac_ext >&5
50913
50914         eval "$as_ac_var=no"
50915 fi
50916
50917 rm -f conftest.err conftest.$ac_objext \
50918       conftest$ac_exeext conftest.$ac_ext
50919 fi
50920 ac_res=`eval echo '${'$as_ac_var'}'`
50921                { echo "$as_me:$LINENO: result: $ac_res" >&5
50922 echo "${ECHO_T}$ac_res" >&6; }
50923 if test `eval echo '${'$as_ac_var'}'` = yes; then
50924   cat >>confdefs.h <<_ACEOF
50925 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
50926 _ACEOF
50927
50928 fi
50929 done
50930
50931 fi
50932 case $utils_cv_func_setpriority,$ac_cv_func_nice in
50933 *yes*)
50934   OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS nice\$(EXEEXT)"
50935   MAN="$MAN nice.1";;
50936 esac
50937
50938
50939
50940
50941   if test $ac_cv_header_utmp_h = yes || test $ac_cv_header_utmpx_h = yes; then
50942     OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS pinky\$(EXEEXT)"
50943     OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS users\$(EXEEXT)"
50944     OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS who\$(EXEEXT)"
50945     MAN="$MAN pinky.1 users.1 who.1"
50946   fi
50947
50948
50949 { echo "$as_me:$LINENO: checking ut_host in struct utmp" >&5
50950 echo $ECHO_N "checking ut_host in struct utmp... $ECHO_C" >&6; }
50951 if test "${su_cv_func_ut_host_in_utmp+set}" = set; then
50952   echo $ECHO_N "(cached) $ECHO_C" >&6
50953 else
50954   cat >conftest.$ac_ext <<_ACEOF
50955 /* confdefs.h.  */
50956 _ACEOF
50957 cat confdefs.h >>conftest.$ac_ext
50958 cat >>conftest.$ac_ext <<_ACEOF
50959 /* end confdefs.h.  */
50960 #include <sys/types.h>
50961 #include <utmp.h>
50962 int
50963 main ()
50964 {
50965 struct utmp ut; ut.ut_host;
50966   ;
50967   return 0;
50968 }
50969 _ACEOF
50970 rm -f conftest.$ac_objext conftest$ac_exeext
50971 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50972   (eval $ac_link) 2>conftest.er1
50973   ac_status=$?
50974   grep -v '^ *+' conftest.er1 >conftest.err
50975   rm -f conftest.er1
50976   cat conftest.err >&5
50977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50978   (exit $ac_status); } &&
50979          { ac_try='test -z "$ac_c_werror_flag"
50980                          || test ! -s conftest.err'
50981   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50982   (eval $ac_try) 2>&5
50983   ac_status=$?
50984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50985   (exit $ac_status); }; } &&
50986          { ac_try='test -s conftest$ac_exeext'
50987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50988   (eval $ac_try) 2>&5
50989   ac_status=$?
50990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50991   (exit $ac_status); }; }; then
50992   su_cv_func_ut_host_in_utmp=yes
50993 else
50994   echo "$as_me: failed program was:" >&5
50995 sed 's/^/| /' conftest.$ac_ext >&5
50996
50997         su_cv_func_ut_host_in_utmp=no
50998 fi
50999
51000 rm -f conftest.err conftest.$ac_objext \
51001       conftest$ac_exeext conftest.$ac_ext
51002 fi
51003
51004 { echo "$as_me:$LINENO: result: $su_cv_func_ut_host_in_utmp" >&5
51005 echo "${ECHO_T}$su_cv_func_ut_host_in_utmp" >&6; }
51006 if test $su_cv_func_ut_host_in_utmp = yes; then
51007   have_ut_host=1
51008
51009 cat >>confdefs.h <<\_ACEOF
51010 #define HAVE_UT_HOST 1
51011 _ACEOF
51012
51013 fi
51014
51015 if test -z "$have_ut_host"; then
51016   { echo "$as_me:$LINENO: checking ut_host in struct utmpx" >&5
51017 echo $ECHO_N "checking ut_host in struct utmpx... $ECHO_C" >&6; }
51018   if test "${su_cv_func_ut_host_in_utmpx+set}" = set; then
51019   echo $ECHO_N "(cached) $ECHO_C" >&6
51020 else
51021   cat >conftest.$ac_ext <<_ACEOF
51022 /* confdefs.h.  */
51023 _ACEOF
51024 cat confdefs.h >>conftest.$ac_ext
51025 cat >>conftest.$ac_ext <<_ACEOF
51026 /* end confdefs.h.  */
51027 #include <sys/types.h>
51028 #include <utmpx.h>
51029 int
51030 main ()
51031 {
51032 struct utmpx ut; ut.ut_host;
51033   ;
51034   return 0;
51035 }
51036 _ACEOF
51037 rm -f conftest.$ac_objext conftest$ac_exeext
51038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51039   (eval $ac_link) 2>conftest.er1
51040   ac_status=$?
51041   grep -v '^ *+' conftest.er1 >conftest.err
51042   rm -f conftest.er1
51043   cat conftest.err >&5
51044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51045   (exit $ac_status); } &&
51046          { ac_try='test -z "$ac_c_werror_flag"
51047                          || test ! -s conftest.err'
51048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51049   (eval $ac_try) 2>&5
51050   ac_status=$?
51051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51052   (exit $ac_status); }; } &&
51053          { ac_try='test -s conftest$ac_exeext'
51054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51055   (eval $ac_try) 2>&5
51056   ac_status=$?
51057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51058   (exit $ac_status); }; }; then
51059   su_cv_func_ut_host_in_utmpx=yes
51060 else
51061   echo "$as_me: failed program was:" >&5
51062 sed 's/^/| /' conftest.$ac_ext >&5
51063
51064         su_cv_func_ut_host_in_utmpx=no
51065 fi
51066
51067 rm -f conftest.err conftest.$ac_objext \
51068       conftest$ac_exeext conftest.$ac_ext
51069 fi
51070
51071   { echo "$as_me:$LINENO: result: $su_cv_func_ut_host_in_utmpx" >&5
51072 echo "${ECHO_T}$su_cv_func_ut_host_in_utmpx" >&6; }
51073   if test $su_cv_func_ut_host_in_utmpx = yes; then
51074
51075 cat >>confdefs.h <<\_ACEOF
51076 #define HAVE_UTMPX_H 1
51077 _ACEOF
51078
51079
51080 cat >>confdefs.h <<\_ACEOF
51081 #define HAVE_UT_HOST 1
51082 _ACEOF
51083
51084   fi
51085 fi
51086
51087
51088
51089 for ac_func in sysctl
51090 do
51091 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51092 { echo "$as_me:$LINENO: checking for $ac_func" >&5
51093 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
51094 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
51095   echo $ECHO_N "(cached) $ECHO_C" >&6
51096 else
51097   cat >conftest.$ac_ext <<_ACEOF
51098 /* confdefs.h.  */
51099 _ACEOF
51100 cat confdefs.h >>conftest.$ac_ext
51101 cat >>conftest.$ac_ext <<_ACEOF
51102 /* end confdefs.h.  */
51103 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
51104    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
51105 #define $ac_func innocuous_$ac_func
51106
51107 /* System header to define __stub macros and hopefully few prototypes,
51108     which can conflict with char $ac_func (); below.
51109     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51110     <limits.h> exists even on freestanding compilers.  */
51111
51112 #ifdef __STDC__
51113 # include <limits.h>
51114 #else
51115 # include <assert.h>
51116 #endif
51117
51118 #undef $ac_func
51119
51120 /* Override any GCC internal prototype to avoid an error.
51121    Use char because int might match the return type of a GCC
51122    builtin and then its argument prototype would still apply.  */
51123 #ifdef __cplusplus
51124 extern "C"
51125 #endif
51126 char $ac_func ();
51127 /* The GNU C library defines this for functions which it implements
51128     to always fail with ENOSYS.  Some functions are actually named
51129     something starting with __ and the normal name is an alias.  */
51130 #if defined __stub_$ac_func || defined __stub___$ac_func
51131 choke me
51132 #endif
51133
51134 int
51135 main ()
51136 {
51137 return $ac_func ();
51138   ;
51139   return 0;
51140 }
51141 _ACEOF
51142 rm -f conftest.$ac_objext conftest$ac_exeext
51143 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51144   (eval $ac_link) 2>conftest.er1
51145   ac_status=$?
51146   grep -v '^ *+' conftest.er1 >conftest.err
51147   rm -f conftest.er1
51148   cat conftest.err >&5
51149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51150   (exit $ac_status); } &&
51151          { ac_try='test -z "$ac_c_werror_flag"
51152                          || test ! -s conftest.err'
51153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51154   (eval $ac_try) 2>&5
51155   ac_status=$?
51156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51157   (exit $ac_status); }; } &&
51158          { ac_try='test -s conftest$ac_exeext'
51159   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51160   (eval $ac_try) 2>&5
51161   ac_status=$?
51162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51163   (exit $ac_status); }; }; then
51164   eval "$as_ac_var=yes"
51165 else
51166   echo "$as_me: failed program was:" >&5
51167 sed 's/^/| /' conftest.$ac_ext >&5
51168
51169         eval "$as_ac_var=no"
51170 fi
51171
51172 rm -f conftest.err conftest.$ac_objext \
51173       conftest$ac_exeext conftest.$ac_ext
51174 fi
51175 ac_res=`eval echo '${'$as_ac_var'}'`
51176                { echo "$as_me:$LINENO: result: $ac_res" >&5
51177 echo "${ECHO_T}$ac_res" >&6; }
51178 if test `eval echo '${'$as_ac_var'}'` = yes; then
51179   cat >>confdefs.h <<_ACEOF
51180 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51181 _ACEOF
51182
51183 fi
51184 done
51185
51186
51187   :
51188
51189
51190
51191
51192
51193
51194 for ac_header in sys/sysctl.h
51195 do
51196 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
51197 { echo "$as_me:$LINENO: checking for $ac_header" >&5
51198 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
51199 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
51200   echo $ECHO_N "(cached) $ECHO_C" >&6
51201 else
51202   cat >conftest.$ac_ext <<_ACEOF
51203 /* confdefs.h.  */
51204 _ACEOF
51205 cat confdefs.h >>conftest.$ac_ext
51206 cat >>conftest.$ac_ext <<_ACEOF
51207 /* end confdefs.h.  */
51208 $ac_includes_default
51209      #if HAVE_SYS_PARAM_H
51210        #include <sys/param.h>
51211       #endif
51212
51213 #include <$ac_header>
51214 _ACEOF
51215 rm -f conftest.$ac_objext
51216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51217   (eval $ac_compile) 2>conftest.er1
51218   ac_status=$?
51219   grep -v '^ *+' conftest.er1 >conftest.err
51220   rm -f conftest.er1
51221   cat conftest.err >&5
51222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51223   (exit $ac_status); } &&
51224          { ac_try='test -z "$ac_c_werror_flag"
51225                          || test ! -s conftest.err'
51226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51227   (eval $ac_try) 2>&5
51228   ac_status=$?
51229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51230   (exit $ac_status); }; } &&
51231          { ac_try='test -s conftest.$ac_objext'
51232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51233   (eval $ac_try) 2>&5
51234   ac_status=$?
51235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51236   (exit $ac_status); }; }; then
51237   eval "$as_ac_Header=yes"
51238 else
51239   echo "$as_me: failed program was:" >&5
51240 sed 's/^/| /' conftest.$ac_ext >&5
51241
51242         eval "$as_ac_Header=no"
51243 fi
51244
51245 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
51246 fi
51247 ac_res=`eval echo '${'$as_ac_Header'}'`
51248                { echo "$as_me:$LINENO: result: $ac_res" >&5
51249 echo "${ECHO_T}$ac_res" >&6; }
51250 if test `eval echo '${'$as_ac_Header'}'` = yes; then
51251   cat >>confdefs.h <<_ACEOF
51252 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
51253 _ACEOF
51254
51255 fi
51256
51257 done
51258
51259   { echo "$as_me:$LINENO: checking whether we can get the system boot time" >&5
51260 echo $ECHO_N "checking whether we can get the system boot time... $ECHO_C" >&6; }
51261 if test "${gnulib_cv_have_boot_time+set}" = set; then
51262   echo $ECHO_N "(cached) $ECHO_C" >&6
51263 else
51264
51265       cat >conftest.$ac_ext <<_ACEOF
51266 /* confdefs.h.  */
51267 _ACEOF
51268 cat confdefs.h >>conftest.$ac_ext
51269 cat >>conftest.$ac_ext <<_ACEOF
51270 /* end confdefs.h.  */
51271 $ac_includes_default
51272 #if HAVE_SYSCTL && HAVE_SYS_SYSCTL_H
51273 # if HAVE_SYS_PARAM_H
51274 #  include <sys/param.h> /* needed for OpenBSD 3.0 */
51275 # endif
51276 # include <sys/sysctl.h>
51277 #endif
51278 #ifdef HAVE_UTMPX_H
51279 # include <utmpx.h>
51280 #else
51281 # include <utmp.h>
51282 #endif
51283
51284 int
51285 main ()
51286 {
51287
51288 #if defined BOOT_TIME || (defined CTL_KERN && defined KERN_BOOTTIME)
51289 /* your system *does* have the infrastructure to determine boot time */
51290 #else
51291 please_tell_us_how_to_determine_boot_time_on_your_system
51292 #endif
51293
51294   ;
51295   return 0;
51296 }
51297 _ACEOF
51298 rm -f conftest.$ac_objext
51299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51300   (eval $ac_compile) 2>conftest.er1
51301   ac_status=$?
51302   grep -v '^ *+' conftest.er1 >conftest.err
51303   rm -f conftest.er1
51304   cat conftest.err >&5
51305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51306   (exit $ac_status); } &&
51307          { ac_try='test -z "$ac_c_werror_flag"
51308                          || test ! -s conftest.err'
51309   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51310   (eval $ac_try) 2>&5
51311   ac_status=$?
51312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51313   (exit $ac_status); }; } &&
51314          { ac_try='test -s conftest.$ac_objext'
51315   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51316   (eval $ac_try) 2>&5
51317   ac_status=$?
51318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51319   (exit $ac_status); }; }; then
51320   gnulib_cv_have_boot_time=yes
51321 else
51322   echo "$as_me: failed program was:" >&5
51323 sed 's/^/| /' conftest.$ac_ext >&5
51324
51325         gnulib_cv_have_boot_time=no
51326 fi
51327
51328 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
51329
51330 fi
51331 { echo "$as_me:$LINENO: result: $gnulib_cv_have_boot_time" >&5
51332 echo "${ECHO_T}$gnulib_cv_have_boot_time" >&6; }
51333   if test $gnulib_cv_have_boot_time = yes; then
51334   OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS uptime\$(EXEEXT)"
51335   MAN="$MAN uptime.1"
51336 fi
51337
51338
51339
51340 { echo "$as_me:$LINENO: checking POSIX termios" >&5
51341 echo $ECHO_N "checking POSIX termios... $ECHO_C" >&6; }
51342 if test "${ac_cv_sys_posix_termios+set}" = set; then
51343   echo $ECHO_N "(cached) $ECHO_C" >&6
51344 else
51345   cat >conftest.$ac_ext <<_ACEOF
51346 /* confdefs.h.  */
51347 _ACEOF
51348 cat confdefs.h >>conftest.$ac_ext
51349 cat >>conftest.$ac_ext <<_ACEOF
51350 /* end confdefs.h.  */
51351 #include <sys/types.h>
51352 #include <unistd.h>
51353 #include <termios.h>
51354
51355 int
51356 main ()
51357 {
51358 /* SunOS 4.0.3 has termios.h but not the library calls.  */
51359    tcgetattr(0, 0);
51360   ;
51361   return 0;
51362 }
51363 _ACEOF
51364 rm -f conftest.$ac_objext conftest$ac_exeext
51365 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51366   (eval $ac_link) 2>conftest.er1
51367   ac_status=$?
51368   grep -v '^ *+' conftest.er1 >conftest.err
51369   rm -f conftest.er1
51370   cat conftest.err >&5
51371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51372   (exit $ac_status); } &&
51373          { ac_try='test -z "$ac_c_werror_flag"
51374                          || test ! -s conftest.err'
51375   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51376   (eval $ac_try) 2>&5
51377   ac_status=$?
51378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51379   (exit $ac_status); }; } &&
51380          { ac_try='test -s conftest$ac_exeext'
51381   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51382   (eval $ac_try) 2>&5
51383   ac_status=$?
51384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51385   (exit $ac_status); }; }; then
51386   ac_cv_sys_posix_termios=yes
51387 else
51388   echo "$as_me: failed program was:" >&5
51389 sed 's/^/| /' conftest.$ac_ext >&5
51390
51391         ac_cv_sys_posix_termios=no
51392 fi
51393
51394 rm -f conftest.err conftest.$ac_objext \
51395       conftest$ac_exeext conftest.$ac_ext
51396 fi
51397 { echo "$as_me:$LINENO: result: $ac_cv_sys_posix_termios" >&5
51398 echo "${ECHO_T}$ac_cv_sys_posix_termios" >&6; }
51399
51400
51401  { echo "$as_me:$LINENO: checking whether use of TIOCGWINSZ requires termios.h" >&5
51402 echo $ECHO_N "checking whether use of TIOCGWINSZ requires termios.h... $ECHO_C" >&6; }
51403 if test "${jm_cv_sys_tiocgwinsz_needs_termios_h+set}" = set; then
51404   echo $ECHO_N "(cached) $ECHO_C" >&6
51405 else
51406   jm_cv_sys_tiocgwinsz_needs_termios_h=no
51407
51408    if test $ac_cv_sys_posix_termios = yes; then
51409      cat >conftest.$ac_ext <<_ACEOF
51410 /* confdefs.h.  */
51411 _ACEOF
51412 cat confdefs.h >>conftest.$ac_ext
51413 cat >>conftest.$ac_ext <<_ACEOF
51414 /* end confdefs.h.  */
51415 #include <sys/types.h>
51416 #      include <termios.h>
51417 #      ifdef TIOCGWINSZ
51418          yes
51419 #      endif
51420
51421 _ACEOF
51422 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
51423   $EGREP "yes" >/dev/null 2>&1; then
51424   jm_cv_sys_tiocgwinsz_needs_termios_h=yes
51425 fi
51426 rm -f conftest*
51427
51428    fi
51429
51430 fi
51431 { echo "$as_me:$LINENO: result: $jm_cv_sys_tiocgwinsz_needs_termios_h" >&5
51432 echo "${ECHO_T}$jm_cv_sys_tiocgwinsz_needs_termios_h" >&6; }
51433
51434
51435  { echo "$as_me:$LINENO: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
51436 echo $ECHO_N "checking whether use of TIOCGWINSZ requires sys/ioctl.h... $ECHO_C" >&6; }
51437 if test "${jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h+set}" = set; then
51438   echo $ECHO_N "(cached) $ECHO_C" >&6
51439 else
51440   jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
51441
51442   if test $jm_cv_sys_tiocgwinsz_needs_termios_h = no; then
51443     cat >conftest.$ac_ext <<_ACEOF
51444 /* confdefs.h.  */
51445 _ACEOF
51446 cat confdefs.h >>conftest.$ac_ext
51447 cat >>conftest.$ac_ext <<_ACEOF
51448 /* end confdefs.h.  */
51449 #include <sys/types.h>
51450 #     include <sys/ioctl.h>
51451 #     ifdef TIOCGWINSZ
51452         yes
51453 #     endif
51454
51455 _ACEOF
51456 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
51457   $EGREP "yes" >/dev/null 2>&1; then
51458   jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes
51459 fi
51460 rm -f conftest*
51461
51462   fi
51463
51464 fi
51465 { echo "$as_me:$LINENO: result: $jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h" >&5
51466 echo "${ECHO_T}$jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h" >&6; }
51467   if test $jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
51468
51469 cat >>confdefs.h <<\_ACEOF
51470 #define GWINSZ_IN_SYS_IOCTL 1
51471 _ACEOF
51472
51473   fi
51474
51475
51476 if test $ac_cv_sys_posix_termios = yes; then
51477   OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS stty\$(EXEEXT)" MAN="$MAN stty.1"
51478
51479   { echo "$as_me:$LINENO: checking whether termios.h needs _XOPEN_SOURCE" >&5
51480 echo $ECHO_N "checking whether termios.h needs _XOPEN_SOURCE... $ECHO_C" >&6; }
51481   if test "${su_cv_sys_termios_needs_xopen_source+set}" = set; then
51482   echo $ECHO_N "(cached) $ECHO_C" >&6
51483 else
51484   cat >conftest.$ac_ext <<_ACEOF
51485 /* confdefs.h.  */
51486 _ACEOF
51487 cat confdefs.h >>conftest.$ac_ext
51488 cat >>conftest.$ac_ext <<_ACEOF
51489 /* end confdefs.h.  */
51490 #include <termios.h>
51491 #ifdef IUCLC
51492 yes
51493 #endif
51494 _ACEOF
51495 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
51496   $EGREP "yes" >/dev/null 2>&1; then
51497   su_cv_sys_termios_needs_xopen_source=no
51498 else
51499   cat >conftest.$ac_ext <<_ACEOF
51500 /* confdefs.h.  */
51501 _ACEOF
51502 cat confdefs.h >>conftest.$ac_ext
51503 cat >>conftest.$ac_ext <<_ACEOF
51504 /* end confdefs.h.  */
51505 #define _XOPEN_SOURCE
51506 #include <termios.h>
51507 #ifdef IUCLC
51508 yes
51509 #endif
51510 _ACEOF
51511 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
51512   $EGREP "yes" >/dev/null 2>&1; then
51513   su_cv_sys_termios_needs_xopen_source=yes
51514 else
51515   su_cv_sys_termios_needs_xopen_source=no
51516 fi
51517 rm -f conftest*
51518
51519 fi
51520 rm -f conftest*
51521
51522 fi
51523
51524   { echo "$as_me:$LINENO: result: $su_cv_sys_termios_needs_xopen_source" >&5
51525 echo "${ECHO_T}$su_cv_sys_termios_needs_xopen_source" >&6; }
51526   test $su_cv_sys_termios_needs_xopen_source = yes &&
51527
51528 cat >>confdefs.h <<\_ACEOF
51529 #define TERMIOS_NEEDS_XOPEN_SOURCE 1
51530 _ACEOF
51531
51532
51533   { echo "$as_me:$LINENO: checking c_line in struct termios" >&5
51534 echo $ECHO_N "checking c_line in struct termios... $ECHO_C" >&6; }
51535   if test "${su_cv_sys_c_line_in_termios+set}" = set; then
51536   echo $ECHO_N "(cached) $ECHO_C" >&6
51537 else
51538   cat >conftest.$ac_ext <<_ACEOF
51539 /* confdefs.h.  */
51540 _ACEOF
51541 cat confdefs.h >>conftest.$ac_ext
51542 cat >>conftest.$ac_ext <<_ACEOF
51543 /* end confdefs.h.  */
51544 #if TERMIOS_NEEDS_XOPEN_SOURCE
51545 #define _XOPEN_SOURCE
51546 #endif
51547 #include <sys/types.h>
51548 #include <termios.h>
51549 int
51550 main ()
51551 {
51552 struct termios t; t.c_line;
51553   ;
51554   return 0;
51555 }
51556 _ACEOF
51557 rm -f conftest.$ac_objext conftest$ac_exeext
51558 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51559   (eval $ac_link) 2>conftest.er1
51560   ac_status=$?
51561   grep -v '^ *+' conftest.er1 >conftest.err
51562   rm -f conftest.er1
51563   cat conftest.err >&5
51564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51565   (exit $ac_status); } &&
51566          { ac_try='test -z "$ac_c_werror_flag"
51567                          || test ! -s conftest.err'
51568   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51569   (eval $ac_try) 2>&5
51570   ac_status=$?
51571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51572   (exit $ac_status); }; } &&
51573          { ac_try='test -s conftest$ac_exeext'
51574   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51575   (eval $ac_try) 2>&5
51576   ac_status=$?
51577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51578   (exit $ac_status); }; }; then
51579   su_cv_sys_c_line_in_termios=yes
51580 else
51581   echo "$as_me: failed program was:" >&5
51582 sed 's/^/| /' conftest.$ac_ext >&5
51583
51584         su_cv_sys_c_line_in_termios=no
51585 fi
51586
51587 rm -f conftest.err conftest.$ac_objext \
51588       conftest$ac_exeext conftest.$ac_ext
51589 fi
51590
51591   { echo "$as_me:$LINENO: result: $su_cv_sys_c_line_in_termios" >&5
51592 echo "${ECHO_T}$su_cv_sys_c_line_in_termios" >&6; }
51593   test $su_cv_sys_c_line_in_termios = yes \
51594     &&
51595 cat >>confdefs.h <<\_ACEOF
51596 #define HAVE_C_LINE 1
51597 _ACEOF
51598
51599 fi
51600
51601 # FIXME: note that this macro appears above, too.
51602 # I'm leaving it here for now.  This whole thing needs to be modernized...
51603
51604    { echo "$as_me:$LINENO: checking whether use of struct winsize requires sys/ptem.h" >&5
51605 echo $ECHO_N "checking whether use of struct winsize requires sys/ptem.h... $ECHO_C" >&6; }
51606 if test "${jm_cv_sys_struct_winsize_needs_sys_ptem_h+set}" = set; then
51607   echo $ECHO_N "(cached) $ECHO_C" >&6
51608 else
51609   jm_cv_sys_struct_winsize_needs_sys_ptem_h=yes
51610       if test $ac_cv_sys_posix_termios = yes; then
51611         cat >conftest.$ac_ext <<_ACEOF
51612 /* confdefs.h.  */
51613 _ACEOF
51614 cat confdefs.h >>conftest.$ac_ext
51615 cat >>conftest.$ac_ext <<_ACEOF
51616 /* end confdefs.h.  */
51617 #include <termios.h>
51618           struct winsize x;
51619 int
51620 main ()
51621 {
51622 jm_cv_sys_struct_winsize_needs_sys_ptem_h=no
51623   ;
51624   return 0;
51625 }
51626 _ACEOF
51627 rm -f conftest.$ac_objext
51628 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51629   (eval $ac_compile) 2>conftest.er1
51630   ac_status=$?
51631   grep -v '^ *+' conftest.er1 >conftest.err
51632   rm -f conftest.er1
51633   cat conftest.err >&5
51634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51635   (exit $ac_status); } &&
51636          { ac_try='test -z "$ac_c_werror_flag"
51637                          || test ! -s conftest.err'
51638   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51639   (eval $ac_try) 2>&5
51640   ac_status=$?
51641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51642   (exit $ac_status); }; } &&
51643          { ac_try='test -s conftest.$ac_objext'
51644   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51645   (eval $ac_try) 2>&5
51646   ac_status=$?
51647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51648   (exit $ac_status); }; }; then
51649   :
51650 else
51651   echo "$as_me: failed program was:" >&5
51652 sed 's/^/| /' conftest.$ac_ext >&5
51653
51654
51655 fi
51656
51657 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
51658       fi
51659       if test $jm_cv_sys_struct_winsize_needs_sys_ptem_h = yes; then
51660         cat >conftest.$ac_ext <<_ACEOF
51661 /* confdefs.h.  */
51662 _ACEOF
51663 cat confdefs.h >>conftest.$ac_ext
51664 cat >>conftest.$ac_ext <<_ACEOF
51665 /* end confdefs.h.  */
51666 #include <sys/ptem.h>
51667 int
51668 main ()
51669 {
51670 struct winsize x;
51671   ;
51672   return 0;
51673 }
51674 _ACEOF
51675 rm -f conftest.$ac_objext
51676 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51677   (eval $ac_compile) 2>conftest.er1
51678   ac_status=$?
51679   grep -v '^ *+' conftest.er1 >conftest.err
51680   rm -f conftest.er1
51681   cat conftest.err >&5
51682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51683   (exit $ac_status); } &&
51684          { ac_try='test -z "$ac_c_werror_flag"
51685                          || test ! -s conftest.err'
51686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51687   (eval $ac_try) 2>&5
51688   ac_status=$?
51689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51690   (exit $ac_status); }; } &&
51691          { ac_try='test -s conftest.$ac_objext'
51692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51693   (eval $ac_try) 2>&5
51694   ac_status=$?
51695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51696   (exit $ac_status); }; }; then
51697   :
51698 else
51699   echo "$as_me: failed program was:" >&5
51700 sed 's/^/| /' conftest.$ac_ext >&5
51701
51702         jm_cv_sys_struct_winsize_needs_sys_ptem_h=no
51703 fi
51704
51705 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
51706       fi
51707 fi
51708 { echo "$as_me:$LINENO: result: $jm_cv_sys_struct_winsize_needs_sys_ptem_h" >&5
51709 echo "${ECHO_T}$jm_cv_sys_struct_winsize_needs_sys_ptem_h" >&6; }
51710    if test $jm_cv_sys_struct_winsize_needs_sys_ptem_h = yes; then
51711
51712 cat >>confdefs.h <<\_ACEOF
51713 #define WINSIZE_IN_PTEM 1
51714 _ACEOF
51715
51716    fi
51717
51718
51719  { echo "$as_me:$LINENO: checking whether use of TIOCGWINSZ requires termios.h" >&5
51720 echo $ECHO_N "checking whether use of TIOCGWINSZ requires termios.h... $ECHO_C" >&6; }
51721 if test "${jm_cv_sys_tiocgwinsz_needs_termios_h+set}" = set; then
51722   echo $ECHO_N "(cached) $ECHO_C" >&6
51723 else
51724   jm_cv_sys_tiocgwinsz_needs_termios_h=no
51725
51726    if test $ac_cv_sys_posix_termios = yes; then
51727      cat >conftest.$ac_ext <<_ACEOF
51728 /* confdefs.h.  */
51729 _ACEOF
51730 cat confdefs.h >>conftest.$ac_ext
51731 cat >>conftest.$ac_ext <<_ACEOF
51732 /* end confdefs.h.  */
51733 #include <sys/types.h>
51734 #      include <termios.h>
51735 #      ifdef TIOCGWINSZ
51736          yes
51737 #      endif
51738
51739 _ACEOF
51740 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
51741   $EGREP "yes" >/dev/null 2>&1; then
51742   jm_cv_sys_tiocgwinsz_needs_termios_h=yes
51743 fi
51744 rm -f conftest*
51745
51746    fi
51747
51748 fi
51749 { echo "$as_me:$LINENO: result: $jm_cv_sys_tiocgwinsz_needs_termios_h" >&5
51750 echo "${ECHO_T}$jm_cv_sys_tiocgwinsz_needs_termios_h" >&6; }
51751
51752
51753 if test $jm_cv_sys_tiocgwinsz_needs_termios_h = no && \
51754    test $jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h = no; then
51755   { echo "$as_me:$LINENO: checking TIOCGWINSZ in sys/pty.h" >&5
51756 echo $ECHO_N "checking TIOCGWINSZ in sys/pty.h... $ECHO_C" >&6; }
51757   if test "${su_cv_sys_tiocgwinsz_in_sys_pty_h+set}" = set; then
51758   echo $ECHO_N "(cached) $ECHO_C" >&6
51759 else
51760   cat >conftest.$ac_ext <<_ACEOF
51761 /* confdefs.h.  */
51762 _ACEOF
51763 cat confdefs.h >>conftest.$ac_ext
51764 cat >>conftest.$ac_ext <<_ACEOF
51765 /* end confdefs.h.  */
51766 #include <sys/types.h>
51767 #ifdef WINSIZE_IN_PTEM
51768 # include <sys/stream.h>
51769 # include <sys/ptem.h>
51770 #endif
51771 #include <sys/ioctl.h>
51772 #include <sys/tty.h>
51773 #include <sys/pty.h>
51774 int
51775 main ()
51776 {
51777 int x = TIOCGWINSZ;
51778   ;
51779   return 0;
51780 }
51781 _ACEOF
51782 rm -f conftest.$ac_objext conftest$ac_exeext
51783 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51784   (eval $ac_link) 2>conftest.er1
51785   ac_status=$?
51786   grep -v '^ *+' conftest.er1 >conftest.err
51787   rm -f conftest.er1
51788   cat conftest.err >&5
51789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51790   (exit $ac_status); } &&
51791          { ac_try='test -z "$ac_c_werror_flag"
51792                          || test ! -s conftest.err'
51793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51794   (eval $ac_try) 2>&5
51795   ac_status=$?
51796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51797   (exit $ac_status); }; } &&
51798          { ac_try='test -s conftest$ac_exeext'
51799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51800   (eval $ac_try) 2>&5
51801   ac_status=$?
51802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51803   (exit $ac_status); }; }; then
51804   su_cv_sys_tiocgwinsz_in_sys_pty_h=yes
51805 else
51806   echo "$as_me: failed program was:" >&5
51807 sed 's/^/| /' conftest.$ac_ext >&5
51808
51809         su_cv_sys_tiocgwinsz_in_sys_pty_h=no
51810 fi
51811
51812 rm -f conftest.err conftest.$ac_objext \
51813       conftest$ac_exeext conftest.$ac_ext
51814 fi
51815
51816   { echo "$as_me:$LINENO: result: $su_cv_sys_tiocgwinsz_in_sys_pty_h" >&5
51817 echo "${ECHO_T}$su_cv_sys_tiocgwinsz_in_sys_pty_h" >&6; }
51818
51819   test $su_cv_sys_tiocgwinsz_in_sys_pty_h = yes \
51820       &&
51821 cat >>confdefs.h <<\_ACEOF
51822 #define GWINSZ_IN_SYS_PTY 1
51823 _ACEOF
51824
51825 fi
51826
51827 # For src/kill.c.
51828 { echo "$as_me:$LINENO: checking whether strsignal is declared" >&5
51829 echo $ECHO_N "checking whether strsignal is declared... $ECHO_C" >&6; }
51830 if test "${ac_cv_have_decl_strsignal+set}" = set; then
51831   echo $ECHO_N "(cached) $ECHO_C" >&6
51832 else
51833   cat >conftest.$ac_ext <<_ACEOF
51834 /* confdefs.h.  */
51835 _ACEOF
51836 cat confdefs.h >>conftest.$ac_ext
51837 cat >>conftest.$ac_ext <<_ACEOF
51838 /* end confdefs.h.  */
51839 $ac_includes_default
51840 #include <signal.h>
51841
51842 int
51843 main ()
51844 {
51845 #ifndef strsignal
51846   char *p = (char *) strsignal;
51847   return !p;
51848 #endif
51849
51850   ;
51851   return 0;
51852 }
51853 _ACEOF
51854 rm -f conftest.$ac_objext
51855 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51856   (eval $ac_compile) 2>conftest.er1
51857   ac_status=$?
51858   grep -v '^ *+' conftest.er1 >conftest.err
51859   rm -f conftest.er1
51860   cat conftest.err >&5
51861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51862   (exit $ac_status); } &&
51863          { ac_try='test -z "$ac_c_werror_flag"
51864                          || test ! -s conftest.err'
51865   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51866   (eval $ac_try) 2>&5
51867   ac_status=$?
51868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51869   (exit $ac_status); }; } &&
51870          { ac_try='test -s conftest.$ac_objext'
51871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51872   (eval $ac_try) 2>&5
51873   ac_status=$?
51874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51875   (exit $ac_status); }; }; then
51876   ac_cv_have_decl_strsignal=yes
51877 else
51878   echo "$as_me: failed program was:" >&5
51879 sed 's/^/| /' conftest.$ac_ext >&5
51880
51881         ac_cv_have_decl_strsignal=no
51882 fi
51883
51884 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
51885 fi
51886 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strsignal" >&5
51887 echo "${ECHO_T}$ac_cv_have_decl_strsignal" >&6; }
51888 if test $ac_cv_have_decl_strsignal = yes; then
51889
51890 cat >>confdefs.h <<_ACEOF
51891 #define HAVE_DECL_STRSIGNAL 1
51892 _ACEOF
51893
51894
51895 else
51896   cat >>confdefs.h <<_ACEOF
51897 #define HAVE_DECL_STRSIGNAL 0
51898 _ACEOF
51899
51900
51901 fi
51902 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
51903 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
51904 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
51905   echo $ECHO_N "(cached) $ECHO_C" >&6
51906 else
51907   cat >conftest.$ac_ext <<_ACEOF
51908 /* confdefs.h.  */
51909 _ACEOF
51910 cat confdefs.h >>conftest.$ac_ext
51911 cat >>conftest.$ac_ext <<_ACEOF
51912 /* end confdefs.h.  */
51913 $ac_includes_default
51914 #include <signal.h>
51915
51916 int
51917 main ()
51918 {
51919 #ifndef sys_siglist
51920   char *p = (char *) sys_siglist;
51921   return !p;
51922 #endif
51923
51924   ;
51925   return 0;
51926 }
51927 _ACEOF
51928 rm -f conftest.$ac_objext
51929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51930   (eval $ac_compile) 2>conftest.er1
51931   ac_status=$?
51932   grep -v '^ *+' conftest.er1 >conftest.err
51933   rm -f conftest.er1
51934   cat conftest.err >&5
51935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51936   (exit $ac_status); } &&
51937          { ac_try='test -z "$ac_c_werror_flag"
51938                          || test ! -s conftest.err'
51939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51940   (eval $ac_try) 2>&5
51941   ac_status=$?
51942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51943   (exit $ac_status); }; } &&
51944          { ac_try='test -s conftest.$ac_objext'
51945   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51946   (eval $ac_try) 2>&5
51947   ac_status=$?
51948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51949   (exit $ac_status); }; }; then
51950   ac_cv_have_decl_sys_siglist=yes
51951 else
51952   echo "$as_me: failed program was:" >&5
51953 sed 's/^/| /' conftest.$ac_ext >&5
51954
51955         ac_cv_have_decl_sys_siglist=no
51956 fi
51957
51958 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
51959 fi
51960 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
51961 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
51962 if test $ac_cv_have_decl_sys_siglist = yes; then
51963
51964 cat >>confdefs.h <<_ACEOF
51965 #define HAVE_DECL_SYS_SIGLIST 1
51966 _ACEOF
51967
51968
51969 else
51970   cat >>confdefs.h <<_ACEOF
51971 #define HAVE_DECL_SYS_SIGLIST 0
51972 _ACEOF
51973
51974
51975 fi
51976 { echo "$as_me:$LINENO: checking whether _sys_siglist is declared" >&5
51977 echo $ECHO_N "checking whether _sys_siglist is declared... $ECHO_C" >&6; }
51978 if test "${ac_cv_have_decl__sys_siglist+set}" = set; then
51979   echo $ECHO_N "(cached) $ECHO_C" >&6
51980 else
51981   cat >conftest.$ac_ext <<_ACEOF
51982 /* confdefs.h.  */
51983 _ACEOF
51984 cat confdefs.h >>conftest.$ac_ext
51985 cat >>conftest.$ac_ext <<_ACEOF
51986 /* end confdefs.h.  */
51987 $ac_includes_default
51988 #include <signal.h>
51989
51990 int
51991 main ()
51992 {
51993 #ifndef _sys_siglist
51994   char *p = (char *) _sys_siglist;
51995   return !p;
51996 #endif
51997
51998   ;
51999   return 0;
52000 }
52001 _ACEOF
52002 rm -f conftest.$ac_objext
52003 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
52004   (eval $ac_compile) 2>conftest.er1
52005   ac_status=$?
52006   grep -v '^ *+' conftest.er1 >conftest.err
52007   rm -f conftest.er1
52008   cat conftest.err >&5
52009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52010   (exit $ac_status); } &&
52011          { ac_try='test -z "$ac_c_werror_flag"
52012                          || test ! -s conftest.err'
52013   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52014   (eval $ac_try) 2>&5
52015   ac_status=$?
52016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52017   (exit $ac_status); }; } &&
52018          { ac_try='test -s conftest.$ac_objext'
52019   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52020   (eval $ac_try) 2>&5
52021   ac_status=$?
52022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52023   (exit $ac_status); }; }; then
52024   ac_cv_have_decl__sys_siglist=yes
52025 else
52026   echo "$as_me: failed program was:" >&5
52027 sed 's/^/| /' conftest.$ac_ext >&5
52028
52029         ac_cv_have_decl__sys_siglist=no
52030 fi
52031
52032 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
52033 fi
52034 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__sys_siglist" >&5
52035 echo "${ECHO_T}$ac_cv_have_decl__sys_siglist" >&6; }
52036 if test $ac_cv_have_decl__sys_siglist = yes; then
52037
52038 cat >>confdefs.h <<_ACEOF
52039 #define HAVE_DECL__SYS_SIGLIST 1
52040 _ACEOF
52041
52042
52043 else
52044   cat >>confdefs.h <<_ACEOF
52045 #define HAVE_DECL__SYS_SIGLIST 0
52046 _ACEOF
52047
52048
52049 fi
52050 { echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
52051 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6; }
52052 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
52053   echo $ECHO_N "(cached) $ECHO_C" >&6
52054 else
52055   cat >conftest.$ac_ext <<_ACEOF
52056 /* confdefs.h.  */
52057 _ACEOF
52058 cat confdefs.h >>conftest.$ac_ext
52059 cat >>conftest.$ac_ext <<_ACEOF
52060 /* end confdefs.h.  */
52061 $ac_includes_default
52062 #include <signal.h>
52063
52064 int
52065 main ()
52066 {
52067 #ifndef __sys_siglist
52068   char *p = (char *) __sys_siglist;
52069   return !p;
52070 #endif
52071
52072   ;
52073   return 0;
52074 }
52075 _ACEOF
52076 rm -f conftest.$ac_objext
52077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
52078   (eval $ac_compile) 2>conftest.er1
52079   ac_status=$?
52080   grep -v '^ *+' conftest.er1 >conftest.err
52081   rm -f conftest.er1
52082   cat conftest.err >&5
52083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52084   (exit $ac_status); } &&
52085          { ac_try='test -z "$ac_c_werror_flag"
52086                          || test ! -s conftest.err'
52087   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52088   (eval $ac_try) 2>&5
52089   ac_status=$?
52090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52091   (exit $ac_status); }; } &&
52092          { ac_try='test -s conftest.$ac_objext'
52093   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52094   (eval $ac_try) 2>&5
52095   ac_status=$?
52096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52097   (exit $ac_status); }; }; then
52098   ac_cv_have_decl___sys_siglist=yes
52099 else
52100   echo "$as_me: failed program was:" >&5
52101 sed 's/^/| /' conftest.$ac_ext >&5
52102
52103         ac_cv_have_decl___sys_siglist=no
52104 fi
52105
52106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
52107 fi
52108 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
52109 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6; }
52110 if test $ac_cv_have_decl___sys_siglist = yes; then
52111
52112 cat >>confdefs.h <<_ACEOF
52113 #define HAVE_DECL___SYS_SIGLIST 1
52114 _ACEOF
52115
52116
52117 else
52118   cat >>confdefs.h <<_ACEOF
52119 #define HAVE_DECL___SYS_SIGLIST 0
52120 _ACEOF
52121
52122
52123 fi
52124
52125
52126
52127 # For src/kill.c and src/printf.c.
52128 { echo "$as_me:$LINENO: checking whether strtoimax is declared" >&5
52129 echo $ECHO_N "checking whether strtoimax is declared... $ECHO_C" >&6; }
52130 if test "${ac_cv_have_decl_strtoimax+set}" = set; then
52131   echo $ECHO_N "(cached) $ECHO_C" >&6
52132 else
52133   cat >conftest.$ac_ext <<_ACEOF
52134 /* confdefs.h.  */
52135 _ACEOF
52136 cat confdefs.h >>conftest.$ac_ext
52137 cat >>conftest.$ac_ext <<_ACEOF
52138 /* end confdefs.h.  */
52139 $ac_includes_default
52140 int
52141 main ()
52142 {
52143 #ifndef strtoimax
52144   char *p = (char *) strtoimax;
52145   return !p;
52146 #endif
52147
52148   ;
52149   return 0;
52150 }
52151 _ACEOF
52152 rm -f conftest.$ac_objext
52153 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
52154   (eval $ac_compile) 2>conftest.er1
52155   ac_status=$?
52156   grep -v '^ *+' conftest.er1 >conftest.err
52157   rm -f conftest.er1
52158   cat conftest.err >&5
52159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52160   (exit $ac_status); } &&
52161          { ac_try='test -z "$ac_c_werror_flag"
52162                          || test ! -s conftest.err'
52163   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52164   (eval $ac_try) 2>&5
52165   ac_status=$?
52166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52167   (exit $ac_status); }; } &&
52168          { ac_try='test -s conftest.$ac_objext'
52169   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52170   (eval $ac_try) 2>&5
52171   ac_status=$?
52172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52173   (exit $ac_status); }; }; then
52174   ac_cv_have_decl_strtoimax=yes
52175 else
52176   echo "$as_me: failed program was:" >&5
52177 sed 's/^/| /' conftest.$ac_ext >&5
52178
52179         ac_cv_have_decl_strtoimax=no
52180 fi
52181
52182 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
52183 fi
52184 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoimax" >&5
52185 echo "${ECHO_T}$ac_cv_have_decl_strtoimax" >&6; }
52186 if test $ac_cv_have_decl_strtoimax = yes; then
52187
52188 cat >>confdefs.h <<_ACEOF
52189 #define HAVE_DECL_STRTOIMAX 1
52190 _ACEOF
52191
52192
52193 else
52194   cat >>confdefs.h <<_ACEOF
52195 #define HAVE_DECL_STRTOIMAX 0
52196 _ACEOF
52197
52198
52199 fi
52200 { echo "$as_me:$LINENO: checking whether strtoumax is declared" >&5
52201 echo $ECHO_N "checking whether strtoumax is declared... $ECHO_C" >&6; }
52202 if test "${ac_cv_have_decl_strtoumax+set}" = set; then
52203   echo $ECHO_N "(cached) $ECHO_C" >&6
52204 else
52205   cat >conftest.$ac_ext <<_ACEOF
52206 /* confdefs.h.  */
52207 _ACEOF
52208 cat confdefs.h >>conftest.$ac_ext
52209 cat >>conftest.$ac_ext <<_ACEOF
52210 /* end confdefs.h.  */
52211 $ac_includes_default
52212 int
52213 main ()
52214 {
52215 #ifndef strtoumax
52216   char *p = (char *) strtoumax;
52217   return !p;
52218 #endif
52219
52220   ;
52221   return 0;
52222 }
52223 _ACEOF
52224 rm -f conftest.$ac_objext
52225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
52226   (eval $ac_compile) 2>conftest.er1
52227   ac_status=$?
52228   grep -v '^ *+' conftest.er1 >conftest.err
52229   rm -f conftest.er1
52230   cat conftest.err >&5
52231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52232   (exit $ac_status); } &&
52233          { ac_try='test -z "$ac_c_werror_flag"
52234                          || test ! -s conftest.err'
52235   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52236   (eval $ac_try) 2>&5
52237   ac_status=$?
52238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52239   (exit $ac_status); }; } &&
52240          { ac_try='test -s conftest.$ac_objext'
52241   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52242   (eval $ac_try) 2>&5
52243   ac_status=$?
52244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52245   (exit $ac_status); }; }; then
52246   ac_cv_have_decl_strtoumax=yes
52247 else
52248   echo "$as_me: failed program was:" >&5
52249 sed 's/^/| /' conftest.$ac_ext >&5
52250
52251         ac_cv_have_decl_strtoumax=no
52252 fi
52253
52254 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
52255 fi
52256 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoumax" >&5
52257 echo "${ECHO_T}$ac_cv_have_decl_strtoumax" >&6; }
52258 if test $ac_cv_have_decl_strtoumax = yes; then
52259
52260 cat >>confdefs.h <<_ACEOF
52261 #define HAVE_DECL_STRTOUMAX 1
52262 _ACEOF
52263
52264
52265 else
52266   cat >>confdefs.h <<_ACEOF
52267 #define HAVE_DECL_STRTOUMAX 0
52268 _ACEOF
52269
52270
52271 fi
52272
52273
52274
52275
52276
52277   # Check for libypsec.a on Dolphin M88K machines.
52278
52279 { echo "$as_me:$LINENO: checking for main in -lypsec" >&5
52280 echo $ECHO_N "checking for main in -lypsec... $ECHO_C" >&6; }
52281 if test "${ac_cv_lib_ypsec_main+set}" = set; then
52282   echo $ECHO_N "(cached) $ECHO_C" >&6
52283 else
52284   ac_check_lib_save_LIBS=$LIBS
52285 LIBS="-lypsec  $LIBS"
52286 cat >conftest.$ac_ext <<_ACEOF
52287 /* confdefs.h.  */
52288 _ACEOF
52289 cat confdefs.h >>conftest.$ac_ext
52290 cat >>conftest.$ac_ext <<_ACEOF
52291 /* end confdefs.h.  */
52292
52293
52294 int
52295 main ()
52296 {
52297 return main ();
52298   ;
52299   return 0;
52300 }
52301 _ACEOF
52302 rm -f conftest.$ac_objext conftest$ac_exeext
52303 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52304   (eval $ac_link) 2>conftest.er1
52305   ac_status=$?
52306   grep -v '^ *+' conftest.er1 >conftest.err
52307   rm -f conftest.er1
52308   cat conftest.err >&5
52309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52310   (exit $ac_status); } &&
52311          { ac_try='test -z "$ac_c_werror_flag"
52312                          || test ! -s conftest.err'
52313   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52314   (eval $ac_try) 2>&5
52315   ac_status=$?
52316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52317   (exit $ac_status); }; } &&
52318          { ac_try='test -s conftest$ac_exeext'
52319   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52320   (eval $ac_try) 2>&5
52321   ac_status=$?
52322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52323   (exit $ac_status); }; }; then
52324   ac_cv_lib_ypsec_main=yes
52325 else
52326   echo "$as_me: failed program was:" >&5
52327 sed 's/^/| /' conftest.$ac_ext >&5
52328
52329         ac_cv_lib_ypsec_main=no
52330 fi
52331
52332 rm -f conftest.err conftest.$ac_objext \
52333       conftest$ac_exeext conftest.$ac_ext
52334 LIBS=$ac_check_lib_save_LIBS
52335 fi
52336 { echo "$as_me:$LINENO: result: $ac_cv_lib_ypsec_main" >&5
52337 echo "${ECHO_T}$ac_cv_lib_ypsec_main" >&6; }
52338 if test $ac_cv_lib_ypsec_main = yes; then
52339   cat >>confdefs.h <<_ACEOF
52340 #define HAVE_LIBYPSEC 1
52341 _ACEOF
52342
52343   LIBS="-lypsec $LIBS"
52344
52345 fi
52346
52347
52348   # m88k running dgux 5.4 needs this
52349
52350 { echo "$as_me:$LINENO: checking for main in -lldgc" >&5
52351 echo $ECHO_N "checking for main in -lldgc... $ECHO_C" >&6; }
52352 if test "${ac_cv_lib_ldgc_main+set}" = set; then
52353   echo $ECHO_N "(cached) $ECHO_C" >&6
52354 else
52355   ac_check_lib_save_LIBS=$LIBS
52356 LIBS="-lldgc  $LIBS"
52357 cat >conftest.$ac_ext <<_ACEOF
52358 /* confdefs.h.  */
52359 _ACEOF
52360 cat confdefs.h >>conftest.$ac_ext
52361 cat >>conftest.$ac_ext <<_ACEOF
52362 /* end confdefs.h.  */
52363
52364
52365 int
52366 main ()
52367 {
52368 return main ();
52369   ;
52370   return 0;
52371 }
52372 _ACEOF
52373 rm -f conftest.$ac_objext conftest$ac_exeext
52374 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52375   (eval $ac_link) 2>conftest.er1
52376   ac_status=$?
52377   grep -v '^ *+' conftest.er1 >conftest.err
52378   rm -f conftest.er1
52379   cat conftest.err >&5
52380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52381   (exit $ac_status); } &&
52382          { ac_try='test -z "$ac_c_werror_flag"
52383                          || test ! -s conftest.err'
52384   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52385   (eval $ac_try) 2>&5
52386   ac_status=$?
52387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52388   (exit $ac_status); }; } &&
52389          { ac_try='test -s conftest$ac_exeext'
52390   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52391   (eval $ac_try) 2>&5
52392   ac_status=$?
52393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52394   (exit $ac_status); }; }; then
52395   ac_cv_lib_ldgc_main=yes
52396 else
52397   echo "$as_me: failed program was:" >&5
52398 sed 's/^/| /' conftest.$ac_ext >&5
52399
52400         ac_cv_lib_ldgc_main=no
52401 fi
52402
52403 rm -f conftest.err conftest.$ac_objext \
52404       conftest$ac_exeext conftest.$ac_ext
52405 LIBS=$ac_check_lib_save_LIBS
52406 fi
52407 { echo "$as_me:$LINENO: result: $ac_cv_lib_ldgc_main" >&5
52408 echo "${ECHO_T}$ac_cv_lib_ldgc_main" >&6; }
52409 if test $ac_cv_lib_ldgc_main = yes; then
52410   cat >>confdefs.h <<_ACEOF
52411 #define HAVE_LIBLDGC 1
52412 _ACEOF
52413
52414   LIBS="-lldgc $LIBS"
52415
52416 fi
52417
52418
52419   # Some programs need to link with -lm.  printf does if it uses
52420   # lib/strtod.c which uses pow.  And seq uses the math functions,
52421   # floor, modf, rint.
52422
52423   # Check for these math functions used by seq.
52424
52425   cu_saved_libs=$LIBS
52426   { echo "$as_me:$LINENO: checking for library containing floor" >&5
52427 echo $ECHO_N "checking for library containing floor... $ECHO_C" >&6; }
52428 if test "${ac_cv_search_floor+set}" = set; then
52429   echo $ECHO_N "(cached) $ECHO_C" >&6
52430 else
52431   ac_func_search_save_LIBS=$LIBS
52432 cat >conftest.$ac_ext <<_ACEOF
52433 /* confdefs.h.  */
52434 _ACEOF
52435 cat confdefs.h >>conftest.$ac_ext
52436 cat >>conftest.$ac_ext <<_ACEOF
52437 /* end confdefs.h.  */
52438
52439 /* Override any GCC internal prototype to avoid an error.
52440    Use char because int might match the return type of a GCC
52441    builtin and then its argument prototype would still apply.  */
52442 #ifdef __cplusplus
52443 extern "C"
52444 #endif
52445 char floor ();
52446 int
52447 main ()
52448 {
52449 return floor ();
52450   ;
52451   return 0;
52452 }
52453 _ACEOF
52454 for ac_lib in '' m; do
52455   if test -z "$ac_lib"; then
52456     ac_res="none required"
52457   else
52458     ac_res=-l$ac_lib
52459     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
52460   fi
52461   rm -f conftest.$ac_objext conftest$ac_exeext
52462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52463   (eval $ac_link) 2>conftest.er1
52464   ac_status=$?
52465   grep -v '^ *+' conftest.er1 >conftest.err
52466   rm -f conftest.er1
52467   cat conftest.err >&5
52468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52469   (exit $ac_status); } &&
52470          { ac_try='test -z "$ac_c_werror_flag"
52471                          || test ! -s conftest.err'
52472   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52473   (eval $ac_try) 2>&5
52474   ac_status=$?
52475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52476   (exit $ac_status); }; } &&
52477          { ac_try='test -s conftest$ac_exeext'
52478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52479   (eval $ac_try) 2>&5
52480   ac_status=$?
52481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52482   (exit $ac_status); }; }; then
52483   ac_cv_search_floor=$ac_res
52484 else
52485   echo "$as_me: failed program was:" >&5
52486 sed 's/^/| /' conftest.$ac_ext >&5
52487
52488
52489 fi
52490
52491 rm -f conftest.err conftest.$ac_objext \
52492       conftest$ac_exeext
52493   if test "${ac_cv_search_floor+set}" = set; then
52494   break
52495 fi
52496 done
52497 if test "${ac_cv_search_floor+set}" = set; then
52498   :
52499 else
52500   ac_cv_search_floor=no
52501 fi
52502 rm conftest.$ac_ext
52503 LIBS=$ac_func_search_save_LIBS
52504 fi
52505 { echo "$as_me:$LINENO: result: $ac_cv_search_floor" >&5
52506 echo "${ECHO_T}$ac_cv_search_floor" >&6; }
52507 ac_res=$ac_cv_search_floor
52508 if test "$ac_res" != no; then
52509   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
52510
52511 fi
52512
52513   { echo "$as_me:$LINENO: checking for library containing modf" >&5
52514 echo $ECHO_N "checking for library containing modf... $ECHO_C" >&6; }
52515 if test "${ac_cv_search_modf+set}" = set; then
52516   echo $ECHO_N "(cached) $ECHO_C" >&6
52517 else
52518   ac_func_search_save_LIBS=$LIBS
52519 cat >conftest.$ac_ext <<_ACEOF
52520 /* confdefs.h.  */
52521 _ACEOF
52522 cat confdefs.h >>conftest.$ac_ext
52523 cat >>conftest.$ac_ext <<_ACEOF
52524 /* end confdefs.h.  */
52525
52526 /* Override any GCC internal prototype to avoid an error.
52527    Use char because int might match the return type of a GCC
52528    builtin and then its argument prototype would still apply.  */
52529 #ifdef __cplusplus
52530 extern "C"
52531 #endif
52532 char modf ();
52533 int
52534 main ()
52535 {
52536 return modf ();
52537   ;
52538   return 0;
52539 }
52540 _ACEOF
52541 for ac_lib in '' m; do
52542   if test -z "$ac_lib"; then
52543     ac_res="none required"
52544   else
52545     ac_res=-l$ac_lib
52546     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
52547   fi
52548   rm -f conftest.$ac_objext conftest$ac_exeext
52549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52550   (eval $ac_link) 2>conftest.er1
52551   ac_status=$?
52552   grep -v '^ *+' conftest.er1 >conftest.err
52553   rm -f conftest.er1
52554   cat conftest.err >&5
52555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52556   (exit $ac_status); } &&
52557          { ac_try='test -z "$ac_c_werror_flag"
52558                          || test ! -s conftest.err'
52559   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52560   (eval $ac_try) 2>&5
52561   ac_status=$?
52562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52563   (exit $ac_status); }; } &&
52564          { ac_try='test -s conftest$ac_exeext'
52565   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52566   (eval $ac_try) 2>&5
52567   ac_status=$?
52568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52569   (exit $ac_status); }; }; then
52570   ac_cv_search_modf=$ac_res
52571 else
52572   echo "$as_me: failed program was:" >&5
52573 sed 's/^/| /' conftest.$ac_ext >&5
52574
52575
52576 fi
52577
52578 rm -f conftest.err conftest.$ac_objext \
52579       conftest$ac_exeext
52580   if test "${ac_cv_search_modf+set}" = set; then
52581   break
52582 fi
52583 done
52584 if test "${ac_cv_search_modf+set}" = set; then
52585   :
52586 else
52587   ac_cv_search_modf=no
52588 fi
52589 rm conftest.$ac_ext
52590 LIBS=$ac_func_search_save_LIBS
52591 fi
52592 { echo "$as_me:$LINENO: result: $ac_cv_search_modf" >&5
52593 echo "${ECHO_T}$ac_cv_search_modf" >&6; }
52594 ac_res=$ac_cv_search_modf
52595 if test "$ac_res" != no; then
52596   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
52597
52598 fi
52599
52600   { echo "$as_me:$LINENO: checking for library containing rint" >&5
52601 echo $ECHO_N "checking for library containing rint... $ECHO_C" >&6; }
52602 if test "${ac_cv_search_rint+set}" = set; then
52603   echo $ECHO_N "(cached) $ECHO_C" >&6
52604 else
52605   ac_func_search_save_LIBS=$LIBS
52606 cat >conftest.$ac_ext <<_ACEOF
52607 /* confdefs.h.  */
52608 _ACEOF
52609 cat confdefs.h >>conftest.$ac_ext
52610 cat >>conftest.$ac_ext <<_ACEOF
52611 /* end confdefs.h.  */
52612
52613 /* Override any GCC internal prototype to avoid an error.
52614    Use char because int might match the return type of a GCC
52615    builtin and then its argument prototype would still apply.  */
52616 #ifdef __cplusplus
52617 extern "C"
52618 #endif
52619 char rint ();
52620 int
52621 main ()
52622 {
52623 return rint ();
52624   ;
52625   return 0;
52626 }
52627 _ACEOF
52628 for ac_lib in '' m; do
52629   if test -z "$ac_lib"; then
52630     ac_res="none required"
52631   else
52632     ac_res=-l$ac_lib
52633     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
52634   fi
52635   rm -f conftest.$ac_objext conftest$ac_exeext
52636 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52637   (eval $ac_link) 2>conftest.er1
52638   ac_status=$?
52639   grep -v '^ *+' conftest.er1 >conftest.err
52640   rm -f conftest.er1
52641   cat conftest.err >&5
52642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52643   (exit $ac_status); } &&
52644          { ac_try='test -z "$ac_c_werror_flag"
52645                          || test ! -s conftest.err'
52646   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52647   (eval $ac_try) 2>&5
52648   ac_status=$?
52649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52650   (exit $ac_status); }; } &&
52651          { ac_try='test -s conftest$ac_exeext'
52652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52653   (eval $ac_try) 2>&5
52654   ac_status=$?
52655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52656   (exit $ac_status); }; }; then
52657   ac_cv_search_rint=$ac_res
52658 else
52659   echo "$as_me: failed program was:" >&5
52660 sed 's/^/| /' conftest.$ac_ext >&5
52661
52662
52663 fi
52664
52665 rm -f conftest.err conftest.$ac_objext \
52666       conftest$ac_exeext
52667   if test "${ac_cv_search_rint+set}" = set; then
52668   break
52669 fi
52670 done
52671 if test "${ac_cv_search_rint+set}" = set; then
52672   :
52673 else
52674   ac_cv_search_rint=no
52675 fi
52676 rm conftest.$ac_ext
52677 LIBS=$ac_func_search_save_LIBS
52678 fi
52679 { echo "$as_me:$LINENO: result: $ac_cv_search_rint" >&5
52680 echo "${ECHO_T}$ac_cv_search_rint" >&6; }
52681 ac_res=$ac_cv_search_rint
52682 if test "$ac_res" != no; then
52683   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
52684
52685 fi
52686
52687
52688
52689
52690 for ac_func in floor modf rint
52691 do
52692 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
52693 { echo "$as_me:$LINENO: checking for $ac_func" >&5
52694 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
52695 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
52696   echo $ECHO_N "(cached) $ECHO_C" >&6
52697 else
52698   cat >conftest.$ac_ext <<_ACEOF
52699 /* confdefs.h.  */
52700 _ACEOF
52701 cat confdefs.h >>conftest.$ac_ext
52702 cat >>conftest.$ac_ext <<_ACEOF
52703 /* end confdefs.h.  */
52704 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
52705    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
52706 #define $ac_func innocuous_$ac_func
52707
52708 /* System header to define __stub macros and hopefully few prototypes,
52709     which can conflict with char $ac_func (); below.
52710     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
52711     <limits.h> exists even on freestanding compilers.  */
52712
52713 #ifdef __STDC__
52714 # include <limits.h>
52715 #else
52716 # include <assert.h>
52717 #endif
52718
52719 #undef $ac_func
52720
52721 /* Override any GCC internal prototype to avoid an error.
52722    Use char because int might match the return type of a GCC
52723    builtin and then its argument prototype would still apply.  */
52724 #ifdef __cplusplus
52725 extern "C"
52726 #endif
52727 char $ac_func ();
52728 /* The GNU C library defines this for functions which it implements
52729     to always fail with ENOSYS.  Some functions are actually named
52730     something starting with __ and the normal name is an alias.  */
52731 #if defined __stub_$ac_func || defined __stub___$ac_func
52732 choke me
52733 #endif
52734
52735 int
52736 main ()
52737 {
52738 return $ac_func ();
52739   ;
52740   return 0;
52741 }
52742 _ACEOF
52743 rm -f conftest.$ac_objext conftest$ac_exeext
52744 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52745   (eval $ac_link) 2>conftest.er1
52746   ac_status=$?
52747   grep -v '^ *+' conftest.er1 >conftest.err
52748   rm -f conftest.er1
52749   cat conftest.err >&5
52750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52751   (exit $ac_status); } &&
52752          { ac_try='test -z "$ac_c_werror_flag"
52753                          || test ! -s conftest.err'
52754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52755   (eval $ac_try) 2>&5
52756   ac_status=$?
52757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52758   (exit $ac_status); }; } &&
52759          { ac_try='test -s conftest$ac_exeext'
52760   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52761   (eval $ac_try) 2>&5
52762   ac_status=$?
52763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52764   (exit $ac_status); }; }; then
52765   eval "$as_ac_var=yes"
52766 else
52767   echo "$as_me: failed program was:" >&5
52768 sed 's/^/| /' conftest.$ac_ext >&5
52769
52770         eval "$as_ac_var=no"
52771 fi
52772
52773 rm -f conftest.err conftest.$ac_objext \
52774       conftest$ac_exeext conftest.$ac_ext
52775 fi
52776 ac_res=`eval echo '${'$as_ac_var'}'`
52777                { echo "$as_me:$LINENO: result: $ac_res" >&5
52778 echo "${ECHO_T}$ac_res" >&6; }
52779 if test `eval echo '${'$as_ac_var'}'` = yes; then
52780   cat >>confdefs.h <<_ACEOF
52781 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
52782 _ACEOF
52783
52784 fi
52785 done
52786
52787   test "X$LIBS" = "X$cu_saved_libs" || SEQ_LIBM=-lm
52788   LIBS=$cu_saved_libs
52789
52790   # The -lsun library is required for YP support on Irix-4.0.5 systems.
52791   # m88k/svr3 DolphinOS systems using YP need -lypsec for id.
52792   { echo "$as_me:$LINENO: checking for library containing yp_match" >&5
52793 echo $ECHO_N "checking for library containing yp_match... $ECHO_C" >&6; }
52794 if test "${ac_cv_search_yp_match+set}" = set; then
52795   echo $ECHO_N "(cached) $ECHO_C" >&6
52796 else
52797   ac_func_search_save_LIBS=$LIBS
52798 cat >conftest.$ac_ext <<_ACEOF
52799 /* confdefs.h.  */
52800 _ACEOF
52801 cat confdefs.h >>conftest.$ac_ext
52802 cat >>conftest.$ac_ext <<_ACEOF
52803 /* end confdefs.h.  */
52804
52805 /* Override any GCC internal prototype to avoid an error.
52806    Use char because int might match the return type of a GCC
52807    builtin and then its argument prototype would still apply.  */
52808 #ifdef __cplusplus
52809 extern "C"
52810 #endif
52811 char yp_match ();
52812 int
52813 main ()
52814 {
52815 return yp_match ();
52816   ;
52817   return 0;
52818 }
52819 _ACEOF
52820 for ac_lib in '' sun ypsec; do
52821   if test -z "$ac_lib"; then
52822     ac_res="none required"
52823   else
52824     ac_res=-l$ac_lib
52825     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
52826   fi
52827   rm -f conftest.$ac_objext conftest$ac_exeext
52828 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52829   (eval $ac_link) 2>conftest.er1
52830   ac_status=$?
52831   grep -v '^ *+' conftest.er1 >conftest.err
52832   rm -f conftest.er1
52833   cat conftest.err >&5
52834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52835   (exit $ac_status); } &&
52836          { ac_try='test -z "$ac_c_werror_flag"
52837                          || test ! -s conftest.err'
52838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52839   (eval $ac_try) 2>&5
52840   ac_status=$?
52841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52842   (exit $ac_status); }; } &&
52843          { ac_try='test -s conftest$ac_exeext'
52844   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52845   (eval $ac_try) 2>&5
52846   ac_status=$?
52847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52848   (exit $ac_status); }; }; then
52849   ac_cv_search_yp_match=$ac_res
52850 else
52851   echo "$as_me: failed program was:" >&5
52852 sed 's/^/| /' conftest.$ac_ext >&5
52853
52854
52855 fi
52856
52857 rm -f conftest.err conftest.$ac_objext \
52858       conftest$ac_exeext
52859   if test "${ac_cv_search_yp_match+set}" = set; then
52860   break
52861 fi
52862 done
52863 if test "${ac_cv_search_yp_match+set}" = set; then
52864   :
52865 else
52866   ac_cv_search_yp_match=no
52867 fi
52868 rm conftest.$ac_ext
52869 LIBS=$ac_func_search_save_LIBS
52870 fi
52871 { echo "$as_me:$LINENO: result: $ac_cv_search_yp_match" >&5
52872 echo "${ECHO_T}$ac_cv_search_yp_match" >&6; }
52873 ac_res=$ac_cv_search_yp_match
52874 if test "$ac_res" != no; then
52875   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
52876
52877 fi
52878
52879
52880   # SysV needs -lsec, older versions of Linux need -lshadow for
52881   # shadow passwords.  UnixWare 7 needs -lgen.
52882   { echo "$as_me:$LINENO: checking for library containing getspnam" >&5
52883 echo $ECHO_N "checking for library containing getspnam... $ECHO_C" >&6; }
52884 if test "${ac_cv_search_getspnam+set}" = set; then
52885   echo $ECHO_N "(cached) $ECHO_C" >&6
52886 else
52887   ac_func_search_save_LIBS=$LIBS
52888 cat >conftest.$ac_ext <<_ACEOF
52889 /* confdefs.h.  */
52890 _ACEOF
52891 cat confdefs.h >>conftest.$ac_ext
52892 cat >>conftest.$ac_ext <<_ACEOF
52893 /* end confdefs.h.  */
52894
52895 /* Override any GCC internal prototype to avoid an error.
52896    Use char because int might match the return type of a GCC
52897    builtin and then its argument prototype would still apply.  */
52898 #ifdef __cplusplus
52899 extern "C"
52900 #endif
52901 char getspnam ();
52902 int
52903 main ()
52904 {
52905 return getspnam ();
52906   ;
52907   return 0;
52908 }
52909 _ACEOF
52910 for ac_lib in '' shadow sec gen; do
52911   if test -z "$ac_lib"; then
52912     ac_res="none required"
52913   else
52914     ac_res=-l$ac_lib
52915     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
52916   fi
52917   rm -f conftest.$ac_objext conftest$ac_exeext
52918 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52919   (eval $ac_link) 2>conftest.er1
52920   ac_status=$?
52921   grep -v '^ *+' conftest.er1 >conftest.err
52922   rm -f conftest.er1
52923   cat conftest.err >&5
52924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52925   (exit $ac_status); } &&
52926          { ac_try='test -z "$ac_c_werror_flag"
52927                          || test ! -s conftest.err'
52928   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52929   (eval $ac_try) 2>&5
52930   ac_status=$?
52931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52932   (exit $ac_status); }; } &&
52933          { ac_try='test -s conftest$ac_exeext'
52934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52935   (eval $ac_try) 2>&5
52936   ac_status=$?
52937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52938   (exit $ac_status); }; }; then
52939   ac_cv_search_getspnam=$ac_res
52940 else
52941   echo "$as_me: failed program was:" >&5
52942 sed 's/^/| /' conftest.$ac_ext >&5
52943
52944
52945 fi
52946
52947 rm -f conftest.err conftest.$ac_objext \
52948       conftest$ac_exeext
52949   if test "${ac_cv_search_getspnam+set}" = set; then
52950   break
52951 fi
52952 done
52953 if test "${ac_cv_search_getspnam+set}" = set; then
52954   :
52955 else
52956   ac_cv_search_getspnam=no
52957 fi
52958 rm conftest.$ac_ext
52959 LIBS=$ac_func_search_save_LIBS
52960 fi
52961 { echo "$as_me:$LINENO: result: $ac_cv_search_getspnam" >&5
52962 echo "${ECHO_T}$ac_cv_search_getspnam" >&6; }
52963 ac_res=$ac_cv_search_getspnam
52964 if test "$ac_res" != no; then
52965   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
52966
52967 fi
52968
52969
52970
52971 for ac_header in shadow.h
52972 do
52973 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
52974 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
52975   { echo "$as_me:$LINENO: checking for $ac_header" >&5
52976 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
52977 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
52978   echo $ECHO_N "(cached) $ECHO_C" >&6
52979 fi
52980 ac_res=`eval echo '${'$as_ac_Header'}'`
52981                { echo "$as_me:$LINENO: result: $ac_res" >&5
52982 echo "${ECHO_T}$ac_res" >&6; }
52983 else
52984   # Is the header compilable?
52985 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
52986 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
52987 cat >conftest.$ac_ext <<_ACEOF
52988 /* confdefs.h.  */
52989 _ACEOF
52990 cat confdefs.h >>conftest.$ac_ext
52991 cat >>conftest.$ac_ext <<_ACEOF
52992 /* end confdefs.h.  */
52993 $ac_includes_default
52994 #include <$ac_header>
52995 _ACEOF
52996 rm -f conftest.$ac_objext
52997 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
52998   (eval $ac_compile) 2>conftest.er1
52999   ac_status=$?
53000   grep -v '^ *+' conftest.er1 >conftest.err
53001   rm -f conftest.er1
53002   cat conftest.err >&5
53003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53004   (exit $ac_status); } &&
53005          { ac_try='test -z "$ac_c_werror_flag"
53006                          || test ! -s conftest.err'
53007   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53008   (eval $ac_try) 2>&5
53009   ac_status=$?
53010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53011   (exit $ac_status); }; } &&
53012          { ac_try='test -s conftest.$ac_objext'
53013   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53014   (eval $ac_try) 2>&5
53015   ac_status=$?
53016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53017   (exit $ac_status); }; }; then
53018   ac_header_compiler=yes
53019 else
53020   echo "$as_me: failed program was:" >&5
53021 sed 's/^/| /' conftest.$ac_ext >&5
53022
53023         ac_header_compiler=no
53024 fi
53025
53026 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
53027 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
53028 echo "${ECHO_T}$ac_header_compiler" >&6; }
53029
53030 # Is the header present?
53031 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
53032 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
53033 cat >conftest.$ac_ext <<_ACEOF
53034 /* confdefs.h.  */
53035 _ACEOF
53036 cat confdefs.h >>conftest.$ac_ext
53037 cat >>conftest.$ac_ext <<_ACEOF
53038 /* end confdefs.h.  */
53039 #include <$ac_header>
53040 _ACEOF
53041 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
53042   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
53043   ac_status=$?
53044   grep -v '^ *+' conftest.er1 >conftest.err
53045   rm -f conftest.er1
53046   cat conftest.err >&5
53047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53048   (exit $ac_status); } >/dev/null; then
53049   if test -s conftest.err; then
53050     ac_cpp_err=$ac_c_preproc_warn_flag
53051     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
53052   else
53053     ac_cpp_err=
53054   fi
53055 else
53056   ac_cpp_err=yes
53057 fi
53058 if test -z "$ac_cpp_err"; then
53059   ac_header_preproc=yes
53060 else
53061   echo "$as_me: failed program was:" >&5
53062 sed 's/^/| /' conftest.$ac_ext >&5
53063
53064   ac_header_preproc=no
53065 fi
53066
53067 rm -f conftest.err conftest.$ac_ext
53068 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
53069 echo "${ECHO_T}$ac_header_preproc" >&6; }
53070
53071 # So?  What about this header?
53072 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
53073   yes:no: )
53074     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
53075 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
53076     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
53077 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
53078     ac_header_preproc=yes
53079     ;;
53080   no:yes:* )
53081     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
53082 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
53083     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
53084 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
53085     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
53086 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
53087     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
53088 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
53089     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
53090 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
53091     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
53092 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
53093     ( cat <<\_ASBOX
53094 ## ------------------------------------ ##
53095 ## Report this to bug-coreutils@gnu.org ##
53096 ## ------------------------------------ ##
53097 _ASBOX
53098      ) | sed "s/^/$as_me: WARNING:     /" >&2
53099     ;;
53100 esac
53101 { echo "$as_me:$LINENO: checking for $ac_header" >&5
53102 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
53103 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
53104   echo $ECHO_N "(cached) $ECHO_C" >&6
53105 else
53106   eval "$as_ac_Header=\$ac_header_preproc"
53107 fi
53108 ac_res=`eval echo '${'$as_ac_Header'}'`
53109                { echo "$as_me:$LINENO: result: $ac_res" >&5
53110 echo "${ECHO_T}$ac_res" >&6; }
53111
53112 fi
53113 if test `eval echo '${'$as_ac_Header'}'` = yes; then
53114   cat >>confdefs.h <<_ACEOF
53115 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
53116 _ACEOF
53117
53118 fi
53119
53120 done
53121
53122
53123   # Requirements for su.c.
53124   shadow_includes="\
53125 $ac_includes_default
53126 #if HAVE_SHADOW_H
53127 # include <shadow.h>
53128 #endif
53129 "
53130   { echo "$as_me:$LINENO: checking for struct spwd.sp_pwdp" >&5
53131 echo $ECHO_N "checking for struct spwd.sp_pwdp... $ECHO_C" >&6; }
53132 if test "${ac_cv_member_struct_spwd_sp_pwdp+set}" = set; then
53133   echo $ECHO_N "(cached) $ECHO_C" >&6
53134 else
53135   cat >conftest.$ac_ext <<_ACEOF
53136 /* confdefs.h.  */
53137 _ACEOF
53138 cat confdefs.h >>conftest.$ac_ext
53139 cat >>conftest.$ac_ext <<_ACEOF
53140 /* end confdefs.h.  */
53141 $shadow_includes
53142
53143 int
53144 main ()
53145 {
53146 static struct spwd ac_aggr;
53147 if (ac_aggr.sp_pwdp)
53148 return 0;
53149   ;
53150   return 0;
53151 }
53152 _ACEOF
53153 rm -f conftest.$ac_objext
53154 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
53155   (eval $ac_compile) 2>conftest.er1
53156   ac_status=$?
53157   grep -v '^ *+' conftest.er1 >conftest.err
53158   rm -f conftest.er1
53159   cat conftest.err >&5
53160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53161   (exit $ac_status); } &&
53162          { ac_try='test -z "$ac_c_werror_flag"
53163                          || test ! -s conftest.err'
53164   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&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   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53171   (eval $ac_try) 2>&5
53172   ac_status=$?
53173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53174   (exit $ac_status); }; }; then
53175   ac_cv_member_struct_spwd_sp_pwdp=yes
53176 else
53177   echo "$as_me: failed program was:" >&5
53178 sed 's/^/| /' conftest.$ac_ext >&5
53179
53180         cat >conftest.$ac_ext <<_ACEOF
53181 /* confdefs.h.  */
53182 _ACEOF
53183 cat confdefs.h >>conftest.$ac_ext
53184 cat >>conftest.$ac_ext <<_ACEOF
53185 /* end confdefs.h.  */
53186 $shadow_includes
53187
53188 int
53189 main ()
53190 {
53191 static struct spwd ac_aggr;
53192 if (sizeof ac_aggr.sp_pwdp)
53193 return 0;
53194   ;
53195   return 0;
53196 }
53197 _ACEOF
53198 rm -f conftest.$ac_objext
53199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
53200   (eval $ac_compile) 2>conftest.er1
53201   ac_status=$?
53202   grep -v '^ *+' conftest.er1 >conftest.err
53203   rm -f conftest.er1
53204   cat conftest.err >&5
53205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53206   (exit $ac_status); } &&
53207          { ac_try='test -z "$ac_c_werror_flag"
53208                          || test ! -s conftest.err'
53209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53210   (eval $ac_try) 2>&5
53211   ac_status=$?
53212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53213   (exit $ac_status); }; } &&
53214          { ac_try='test -s conftest.$ac_objext'
53215   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53216   (eval $ac_try) 2>&5
53217   ac_status=$?
53218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53219   (exit $ac_status); }; }; then
53220   ac_cv_member_struct_spwd_sp_pwdp=yes
53221 else
53222   echo "$as_me: failed program was:" >&5
53223 sed 's/^/| /' conftest.$ac_ext >&5
53224
53225         ac_cv_member_struct_spwd_sp_pwdp=no
53226 fi
53227
53228 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
53229 fi
53230
53231 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
53232 fi
53233 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_spwd_sp_pwdp" >&5
53234 echo "${ECHO_T}$ac_cv_member_struct_spwd_sp_pwdp" >&6; }
53235 if test $ac_cv_member_struct_spwd_sp_pwdp = yes; then
53236
53237 cat >>confdefs.h <<_ACEOF
53238 #define HAVE_STRUCT_SPWD_SP_PWDP 1
53239 _ACEOF
53240
53241
53242 fi
53243
53244
53245 for ac_func in getspnam
53246 do
53247 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
53248 { echo "$as_me:$LINENO: checking for $ac_func" >&5
53249 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
53250 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
53251   echo $ECHO_N "(cached) $ECHO_C" >&6
53252 else
53253   cat >conftest.$ac_ext <<_ACEOF
53254 /* confdefs.h.  */
53255 _ACEOF
53256 cat confdefs.h >>conftest.$ac_ext
53257 cat >>conftest.$ac_ext <<_ACEOF
53258 /* end confdefs.h.  */
53259 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
53260    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
53261 #define $ac_func innocuous_$ac_func
53262
53263 /* System header to define __stub macros and hopefully few prototypes,
53264     which can conflict with char $ac_func (); below.
53265     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
53266     <limits.h> exists even on freestanding compilers.  */
53267
53268 #ifdef __STDC__
53269 # include <limits.h>
53270 #else
53271 # include <assert.h>
53272 #endif
53273
53274 #undef $ac_func
53275
53276 /* Override any GCC internal prototype to avoid an error.
53277    Use char because int might match the return type of a GCC
53278    builtin and then its argument prototype would still apply.  */
53279 #ifdef __cplusplus
53280 extern "C"
53281 #endif
53282 char $ac_func ();
53283 /* The GNU C library defines this for functions which it implements
53284     to always fail with ENOSYS.  Some functions are actually named
53285     something starting with __ and the normal name is an alias.  */
53286 #if defined __stub_$ac_func || defined __stub___$ac_func
53287 choke me
53288 #endif
53289
53290 int
53291 main ()
53292 {
53293 return $ac_func ();
53294   ;
53295   return 0;
53296 }
53297 _ACEOF
53298 rm -f conftest.$ac_objext conftest$ac_exeext
53299 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
53300   (eval $ac_link) 2>conftest.er1
53301   ac_status=$?
53302   grep -v '^ *+' conftest.er1 >conftest.err
53303   rm -f conftest.er1
53304   cat conftest.err >&5
53305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53306   (exit $ac_status); } &&
53307          { ac_try='test -z "$ac_c_werror_flag"
53308                          || test ! -s conftest.err'
53309   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53310   (eval $ac_try) 2>&5
53311   ac_status=$?
53312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53313   (exit $ac_status); }; } &&
53314          { ac_try='test -s conftest$ac_exeext'
53315   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53316   (eval $ac_try) 2>&5
53317   ac_status=$?
53318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53319   (exit $ac_status); }; }; then
53320   eval "$as_ac_var=yes"
53321 else
53322   echo "$as_me: failed program was:" >&5
53323 sed 's/^/| /' conftest.$ac_ext >&5
53324
53325         eval "$as_ac_var=no"
53326 fi
53327
53328 rm -f conftest.err conftest.$ac_objext \
53329       conftest$ac_exeext conftest.$ac_ext
53330 fi
53331 ac_res=`eval echo '${'$as_ac_var'}'`
53332                { echo "$as_me:$LINENO: result: $ac_res" >&5
53333 echo "${ECHO_T}$ac_res" >&6; }
53334 if test `eval echo '${'$as_ac_var'}'` = yes; then
53335   cat >>confdefs.h <<_ACEOF
53336 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
53337 _ACEOF
53338
53339 fi
53340 done
53341
53342
53343   # SCO-ODT-3.0 is reported to need -lufc for crypt.
53344   # NetBSD needs -lcrypt for crypt.
53345   cu_saved_libs="$LIBS"
53346   { echo "$as_me:$LINENO: checking for library containing crypt" >&5
53347 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6; }
53348 if test "${ac_cv_search_crypt+set}" = set; then
53349   echo $ECHO_N "(cached) $ECHO_C" >&6
53350 else
53351   ac_func_search_save_LIBS=$LIBS
53352 cat >conftest.$ac_ext <<_ACEOF
53353 /* confdefs.h.  */
53354 _ACEOF
53355 cat confdefs.h >>conftest.$ac_ext
53356 cat >>conftest.$ac_ext <<_ACEOF
53357 /* end confdefs.h.  */
53358
53359 /* Override any GCC internal prototype to avoid an error.
53360    Use char because int might match the return type of a GCC
53361    builtin and then its argument prototype would still apply.  */
53362 #ifdef __cplusplus
53363 extern "C"
53364 #endif
53365 char crypt ();
53366 int
53367 main ()
53368 {
53369 return crypt ();
53370   ;
53371   return 0;
53372 }
53373 _ACEOF
53374 for ac_lib in '' ufc crypt; do
53375   if test -z "$ac_lib"; then
53376     ac_res="none required"
53377   else
53378     ac_res=-l$ac_lib
53379     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
53380   fi
53381   rm -f conftest.$ac_objext conftest$ac_exeext
53382 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
53383   (eval $ac_link) 2>conftest.er1
53384   ac_status=$?
53385   grep -v '^ *+' conftest.er1 >conftest.err
53386   rm -f conftest.er1
53387   cat conftest.err >&5
53388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53389   (exit $ac_status); } &&
53390          { ac_try='test -z "$ac_c_werror_flag"
53391                          || test ! -s conftest.err'
53392   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53393   (eval $ac_try) 2>&5
53394   ac_status=$?
53395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53396   (exit $ac_status); }; } &&
53397          { ac_try='test -s conftest$ac_exeext'
53398   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53399   (eval $ac_try) 2>&5
53400   ac_status=$?
53401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53402   (exit $ac_status); }; }; then
53403   ac_cv_search_crypt=$ac_res
53404 else
53405   echo "$as_me: failed program was:" >&5
53406 sed 's/^/| /' conftest.$ac_ext >&5
53407
53408
53409 fi
53410
53411 rm -f conftest.err conftest.$ac_objext \
53412       conftest$ac_exeext
53413   if test "${ac_cv_search_crypt+set}" = set; then
53414   break
53415 fi
53416 done
53417 if test "${ac_cv_search_crypt+set}" = set; then
53418   :
53419 else
53420   ac_cv_search_crypt=no
53421 fi
53422 rm conftest.$ac_ext
53423 LIBS=$ac_func_search_save_LIBS
53424 fi
53425 { echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
53426 echo "${ECHO_T}$ac_cv_search_crypt" >&6; }
53427 ac_res=$ac_cv_search_crypt
53428 if test "$ac_res" != no; then
53429   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
53430   test "$ac_cv_search_crypt" = "none required" ||
53431                   LIB_CRYPT="$ac_cv_search_crypt"
53432 fi
53433
53434   LIBS="$cu_saved_libs"
53435
53436
53437
53438
53439
53440         MKINSTALLDIRS=
53441   if test -n "$ac_aux_dir"; then
53442     case "$ac_aux_dir" in
53443       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
53444       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
53445     esac
53446   fi
53447   if test -z "$MKINSTALLDIRS"; then
53448     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
53449   fi
53450
53451
53452
53453   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
53454 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
53455     # Check whether --enable-nls was given.
53456 if test "${enable_nls+set}" = set; then
53457   enableval=$enable_nls; USE_NLS=$enableval
53458 else
53459   USE_NLS=yes
53460 fi
53461
53462   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
53463 echo "${ECHO_T}$USE_NLS" >&6; }
53464
53465
53466
53467
53468
53469
53470 # Prepare PATH_SEPARATOR.
53471 # The user is always right.
53472 if test "${PATH_SEPARATOR+set}" != set; then
53473   echo "#! /bin/sh" >conf$$.sh
53474   echo  "exit 0"   >>conf$$.sh
53475   chmod +x conf$$.sh
53476   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53477     PATH_SEPARATOR=';'
53478   else
53479     PATH_SEPARATOR=:
53480   fi
53481   rm -f conf$$.sh
53482 fi
53483
53484 # Find out how to test for executable files. Don't use a zero-byte file,
53485 # as systems may use methods other than mode bits to determine executability.
53486 cat >conf$$.file <<_ASEOF
53487 #! /bin/sh
53488 exit 0
53489 _ASEOF
53490 chmod +x conf$$.file
53491 if test -x conf$$.file >/dev/null 2>&1; then
53492   ac_executable_p="test -x"
53493 else
53494   ac_executable_p="test -f"
53495 fi
53496 rm -f conf$$.file
53497
53498 # Extract the first word of "msgfmt", so it can be a program name with args.
53499 set dummy msgfmt; ac_word=$2
53500 { echo "$as_me:$LINENO: checking for $ac_word" >&5
53501 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
53502 if test "${ac_cv_path_MSGFMT+set}" = set; then
53503   echo $ECHO_N "(cached) $ECHO_C" >&6
53504 else
53505   case "$MSGFMT" in
53506   [\\/]* | ?:[\\/]*)
53507     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
53508     ;;
53509   *)
53510     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
53511     for ac_dir in $PATH; do
53512       IFS="$ac_save_IFS"
53513       test -z "$ac_dir" && ac_dir=.
53514       for ac_exec_ext in '' $ac_executable_extensions; do
53515         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
53516           echo "$as_me: trying $ac_dir/$ac_word..." >&5
53517           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
53518      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
53519             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
53520             break 2
53521           fi
53522         fi
53523       done
53524     done
53525     IFS="$ac_save_IFS"
53526   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
53527     ;;
53528 esac
53529 fi
53530 MSGFMT="$ac_cv_path_MSGFMT"
53531 if test "$MSGFMT" != ":"; then
53532   { echo "$as_me:$LINENO: result: $MSGFMT" >&5
53533 echo "${ECHO_T}$MSGFMT" >&6; }
53534 else
53535   { echo "$as_me:$LINENO: result: no" >&5
53536 echo "${ECHO_T}no" >&6; }
53537 fi
53538
53539   # Extract the first word of "gmsgfmt", so it can be a program name with args.
53540 set dummy gmsgfmt; ac_word=$2
53541 { echo "$as_me:$LINENO: checking for $ac_word" >&5
53542 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
53543 if test "${ac_cv_path_GMSGFMT+set}" = set; then
53544   echo $ECHO_N "(cached) $ECHO_C" >&6
53545 else
53546   case $GMSGFMT in
53547   [\\/]* | ?:[\\/]*)
53548   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
53549   ;;
53550   *)
53551   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
53552 for as_dir in $PATH
53553 do
53554   IFS=$as_save_IFS
53555   test -z "$as_dir" && as_dir=.
53556   for ac_exec_ext in '' $ac_executable_extensions; do
53557   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
53558     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
53559     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
53560     break 2
53561   fi
53562 done
53563 done
53564 IFS=$as_save_IFS
53565
53566   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
53567   ;;
53568 esac
53569 fi
53570 GMSGFMT=$ac_cv_path_GMSGFMT
53571 if test -n "$GMSGFMT"; then
53572   { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
53573 echo "${ECHO_T}$GMSGFMT" >&6; }
53574 else
53575   { echo "$as_me:$LINENO: result: no" >&5
53576 echo "${ECHO_T}no" >&6; }
53577 fi
53578
53579
53580
53581
53582 # Prepare PATH_SEPARATOR.
53583 # The user is always right.
53584 if test "${PATH_SEPARATOR+set}" != set; then
53585   echo "#! /bin/sh" >conf$$.sh
53586   echo  "exit 0"   >>conf$$.sh
53587   chmod +x conf$$.sh
53588   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53589     PATH_SEPARATOR=';'
53590   else
53591     PATH_SEPARATOR=:
53592   fi
53593   rm -f conf$$.sh
53594 fi
53595
53596 # Find out how to test for executable files. Don't use a zero-byte file,
53597 # as systems may use methods other than mode bits to determine executability.
53598 cat >conf$$.file <<_ASEOF
53599 #! /bin/sh
53600 exit 0
53601 _ASEOF
53602 chmod +x conf$$.file
53603 if test -x conf$$.file >/dev/null 2>&1; then
53604   ac_executable_p="test -x"
53605 else
53606   ac_executable_p="test -f"
53607 fi
53608 rm -f conf$$.file
53609
53610 # Extract the first word of "xgettext", so it can be a program name with args.
53611 set dummy xgettext; ac_word=$2
53612 { echo "$as_me:$LINENO: checking for $ac_word" >&5
53613 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
53614 if test "${ac_cv_path_XGETTEXT+set}" = set; then
53615   echo $ECHO_N "(cached) $ECHO_C" >&6
53616 else
53617   case "$XGETTEXT" in
53618   [\\/]* | ?:[\\/]*)
53619     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
53620     ;;
53621   *)
53622     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
53623     for ac_dir in $PATH; do
53624       IFS="$ac_save_IFS"
53625       test -z "$ac_dir" && ac_dir=.
53626       for ac_exec_ext in '' $ac_executable_extensions; do
53627         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
53628           echo "$as_me: trying $ac_dir/$ac_word..." >&5
53629           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
53630      (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
53631             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
53632             break 2
53633           fi
53634         fi
53635       done
53636     done
53637     IFS="$ac_save_IFS"
53638   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
53639     ;;
53640 esac
53641 fi
53642 XGETTEXT="$ac_cv_path_XGETTEXT"
53643 if test "$XGETTEXT" != ":"; then
53644   { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
53645 echo "${ECHO_T}$XGETTEXT" >&6; }
53646 else
53647   { echo "$as_me:$LINENO: result: no" >&5
53648 echo "${ECHO_T}no" >&6; }
53649 fi
53650
53651     rm -f messages.po
53652
53653
53654 # Prepare PATH_SEPARATOR.
53655 # The user is always right.
53656 if test "${PATH_SEPARATOR+set}" != set; then
53657   echo "#! /bin/sh" >conf$$.sh
53658   echo  "exit 0"   >>conf$$.sh
53659   chmod +x conf$$.sh
53660   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53661     PATH_SEPARATOR=';'
53662   else
53663     PATH_SEPARATOR=:
53664   fi
53665   rm -f conf$$.sh
53666 fi
53667
53668 # Find out how to test for executable files. Don't use a zero-byte file,
53669 # as systems may use methods other than mode bits to determine executability.
53670 cat >conf$$.file <<_ASEOF
53671 #! /bin/sh
53672 exit 0
53673 _ASEOF
53674 chmod +x conf$$.file
53675 if test -x conf$$.file >/dev/null 2>&1; then
53676   ac_executable_p="test -x"
53677 else
53678   ac_executable_p="test -f"
53679 fi
53680 rm -f conf$$.file
53681
53682 # Extract the first word of "msgmerge", so it can be a program name with args.
53683 set dummy msgmerge; ac_word=$2
53684 { echo "$as_me:$LINENO: checking for $ac_word" >&5
53685 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
53686 if test "${ac_cv_path_MSGMERGE+set}" = set; then
53687   echo $ECHO_N "(cached) $ECHO_C" >&6
53688 else
53689   case "$MSGMERGE" in
53690   [\\/]* | ?:[\\/]*)
53691     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
53692     ;;
53693   *)
53694     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
53695     for ac_dir in $PATH; do
53696       IFS="$ac_save_IFS"
53697       test -z "$ac_dir" && ac_dir=.
53698       for ac_exec_ext in '' $ac_executable_extensions; do
53699         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
53700           echo "$as_me: trying $ac_dir/$ac_word..." >&5
53701           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
53702             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
53703             break 2
53704           fi
53705         fi
53706       done
53707     done
53708     IFS="$ac_save_IFS"
53709   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
53710     ;;
53711 esac
53712 fi
53713 MSGMERGE="$ac_cv_path_MSGMERGE"
53714 if test "$MSGMERGE" != ":"; then
53715   { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
53716 echo "${ECHO_T}$MSGMERGE" >&6; }
53717 else
53718   { echo "$as_me:$LINENO: result: no" >&5
53719 echo "${ECHO_T}no" >&6; }
53720 fi
53721
53722
53723       if test "$GMSGFMT" != ":"; then
53724             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
53725        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
53726       : ;
53727     else
53728       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
53729       { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
53730 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
53731       GMSGFMT=":"
53732     fi
53733   fi
53734
53735       if test "$XGETTEXT" != ":"; then
53736             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
53737        (if $XGETTEXT --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
53738       : ;
53739     else
53740       { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
53741 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
53742       XGETTEXT=":"
53743     fi
53744         rm -f messages.po
53745   fi
53746
53747   ac_config_commands="$ac_config_commands default-1"
53748
53749
53750
53751
53752
53753
53754
53755
53756
53757
53758
53759
53760
53761
53762
53763
53764
53765
53766     { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
53767 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
53768 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
53769   echo $ECHO_N "(cached) $ECHO_C" >&6
53770 else
53771   gt_save_CPPFLAGS="$CPPFLAGS"
53772      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
53773      gt_save_LIBS="$LIBS"
53774      LIBS="$LIBS -framework CoreFoundation"
53775      cat >conftest.$ac_ext <<_ACEOF
53776 /* confdefs.h.  */
53777 _ACEOF
53778 cat confdefs.h >>conftest.$ac_ext
53779 cat >>conftest.$ac_ext <<_ACEOF
53780 /* end confdefs.h.  */
53781 #include <CFPreferences.h>
53782 int
53783 main ()
53784 {
53785 CFPreferencesCopyAppValue(NULL, NULL)
53786   ;
53787   return 0;
53788 }
53789 _ACEOF
53790 rm -f conftest.$ac_objext conftest$ac_exeext
53791 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
53792   (eval $ac_link) 2>conftest.er1
53793   ac_status=$?
53794   grep -v '^ *+' conftest.er1 >conftest.err
53795   rm -f conftest.er1
53796   cat conftest.err >&5
53797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53798   (exit $ac_status); } &&
53799          { ac_try='test -z "$ac_c_werror_flag"
53800                          || test ! -s conftest.err'
53801   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53802   (eval $ac_try) 2>&5
53803   ac_status=$?
53804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53805   (exit $ac_status); }; } &&
53806          { ac_try='test -s conftest$ac_exeext'
53807   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53808   (eval $ac_try) 2>&5
53809   ac_status=$?
53810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53811   (exit $ac_status); }; }; then
53812   gt_cv_func_CFPreferencesCopyAppValue=yes
53813 else
53814   echo "$as_me: failed program was:" >&5
53815 sed 's/^/| /' conftest.$ac_ext >&5
53816
53817         gt_cv_func_CFPreferencesCopyAppValue=no
53818 fi
53819
53820 rm -f conftest.err conftest.$ac_objext \
53821       conftest$ac_exeext conftest.$ac_ext
53822      CPPFLAGS="$gt_save_CPPFLAGS"
53823      LIBS="$gt_save_LIBS"
53824 fi
53825 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
53826 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
53827   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
53828
53829 cat >>confdefs.h <<\_ACEOF
53830 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
53831 _ACEOF
53832
53833   fi
53834     { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
53835 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
53836 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
53837   echo $ECHO_N "(cached) $ECHO_C" >&6
53838 else
53839   gt_save_CPPFLAGS="$CPPFLAGS"
53840      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
53841      gt_save_LIBS="$LIBS"
53842      LIBS="$LIBS -framework CoreFoundation"
53843      cat >conftest.$ac_ext <<_ACEOF
53844 /* confdefs.h.  */
53845 _ACEOF
53846 cat confdefs.h >>conftest.$ac_ext
53847 cat >>conftest.$ac_ext <<_ACEOF
53848 /* end confdefs.h.  */
53849 #include <CFLocale.h>
53850 int
53851 main ()
53852 {
53853 CFLocaleCopyCurrent();
53854   ;
53855   return 0;
53856 }
53857 _ACEOF
53858 rm -f conftest.$ac_objext conftest$ac_exeext
53859 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
53860   (eval $ac_link) 2>conftest.er1
53861   ac_status=$?
53862   grep -v '^ *+' conftest.er1 >conftest.err
53863   rm -f conftest.er1
53864   cat conftest.err >&5
53865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53866   (exit $ac_status); } &&
53867          { ac_try='test -z "$ac_c_werror_flag"
53868                          || test ! -s conftest.err'
53869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53870   (eval $ac_try) 2>&5
53871   ac_status=$?
53872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53873   (exit $ac_status); }; } &&
53874          { ac_try='test -s conftest$ac_exeext'
53875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53876   (eval $ac_try) 2>&5
53877   ac_status=$?
53878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53879   (exit $ac_status); }; }; then
53880   gt_cv_func_CFLocaleCopyCurrent=yes
53881 else
53882   echo "$as_me: failed program was:" >&5
53883 sed 's/^/| /' conftest.$ac_ext >&5
53884
53885         gt_cv_func_CFLocaleCopyCurrent=no
53886 fi
53887
53888 rm -f conftest.err conftest.$ac_objext \
53889       conftest$ac_exeext conftest.$ac_ext
53890      CPPFLAGS="$gt_save_CPPFLAGS"
53891      LIBS="$gt_save_LIBS"
53892 fi
53893 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
53894 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
53895   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
53896
53897 cat >>confdefs.h <<\_ACEOF
53898 #define HAVE_CFLOCALECOPYCURRENT 1
53899 _ACEOF
53900
53901   fi
53902   INTL_MACOSX_LIBS=
53903   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
53904     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
53905   fi
53906
53907
53908
53909
53910   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
53911 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
53912     # Check whether --enable-nls was given.
53913 if test "${enable_nls+set}" = set; then
53914   enableval=$enable_nls; USE_NLS=$enableval
53915 else
53916   USE_NLS=yes
53917 fi
53918
53919   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
53920 echo "${ECHO_T}$USE_NLS" >&6; }
53921
53922
53923
53924
53925   LIBINTL=
53926   LTLIBINTL=
53927   POSUB=
53928
53929     if test "$USE_NLS" = "yes"; then
53930     gt_use_preinstalled_gnugettext=no
53931
53932
53933
53934
53935
53936
53937         { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
53938 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
53939 if test "${gt_cv_func_gnugettext2_libc+set}" = set; then
53940   echo $ECHO_N "(cached) $ECHO_C" >&6
53941 else
53942   cat >conftest.$ac_ext <<_ACEOF
53943 /* confdefs.h.  */
53944 _ACEOF
53945 cat confdefs.h >>conftest.$ac_ext
53946 cat >>conftest.$ac_ext <<_ACEOF
53947 /* end confdefs.h.  */
53948 #include <libintl.h>
53949 extern int _nl_msg_cat_cntr;
53950 extern int *_nl_domain_bindings;
53951 int
53952 main ()
53953 {
53954 bindtextdomain ("", "");
53955 return * gettext ("") + * ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_domain_bindings
53956   ;
53957   return 0;
53958 }
53959 _ACEOF
53960 rm -f conftest.$ac_objext conftest$ac_exeext
53961 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
53962   (eval $ac_link) 2>conftest.er1
53963   ac_status=$?
53964   grep -v '^ *+' conftest.er1 >conftest.err
53965   rm -f conftest.er1
53966   cat conftest.err >&5
53967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53968   (exit $ac_status); } &&
53969          { ac_try='test -z "$ac_c_werror_flag"
53970                          || test ! -s conftest.err'
53971   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53972   (eval $ac_try) 2>&5
53973   ac_status=$?
53974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53975   (exit $ac_status); }; } &&
53976          { ac_try='test -s conftest$ac_exeext'
53977   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53978   (eval $ac_try) 2>&5
53979   ac_status=$?
53980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53981   (exit $ac_status); }; }; then
53982   gt_cv_func_gnugettext2_libc=yes
53983 else
53984   echo "$as_me: failed program was:" >&5
53985 sed 's/^/| /' conftest.$ac_ext >&5
53986
53987         gt_cv_func_gnugettext2_libc=no
53988 fi
53989
53990 rm -f conftest.err conftest.$ac_objext \
53991       conftest$ac_exeext conftest.$ac_ext
53992 fi
53993 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libc" >&5
53994 echo "${ECHO_T}$gt_cv_func_gnugettext2_libc" >&6; }
53995
53996         if test "$gt_cv_func_gnugettext2_libc" != "yes"; then
53997
53998
53999
54000
54001
54002           am_save_CPPFLAGS="$CPPFLAGS"
54003
54004   for element in $INCICONV; do
54005     haveit=
54006     for x in $CPPFLAGS; do
54007
54008   acl_save_prefix="$prefix"
54009   prefix="$acl_final_prefix"
54010   acl_save_exec_prefix="$exec_prefix"
54011   exec_prefix="$acl_final_exec_prefix"
54012   eval x=\"$x\"
54013   exec_prefix="$acl_save_exec_prefix"
54014   prefix="$acl_save_prefix"
54015
54016       if test "X$x" = "X$element"; then
54017         haveit=yes
54018         break
54019       fi
54020     done
54021     if test -z "$haveit"; then
54022       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
54023     fi
54024   done
54025
54026
54027   { echo "$as_me:$LINENO: checking for iconv" >&5
54028 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
54029 if test "${am_cv_func_iconv+set}" = set; then
54030   echo $ECHO_N "(cached) $ECHO_C" >&6
54031 else
54032
54033     am_cv_func_iconv="no, consider installing GNU libiconv"
54034     am_cv_lib_iconv=no
54035     cat >conftest.$ac_ext <<_ACEOF
54036 /* confdefs.h.  */
54037 _ACEOF
54038 cat confdefs.h >>conftest.$ac_ext
54039 cat >>conftest.$ac_ext <<_ACEOF
54040 /* end confdefs.h.  */
54041 #include <stdlib.h>
54042 #include <iconv.h>
54043 int
54044 main ()
54045 {
54046 iconv_t cd = iconv_open("","");
54047        iconv(cd,NULL,NULL,NULL,NULL);
54048        iconv_close(cd);
54049   ;
54050   return 0;
54051 }
54052 _ACEOF
54053 rm -f conftest.$ac_objext conftest$ac_exeext
54054 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
54055   (eval $ac_link) 2>conftest.er1
54056   ac_status=$?
54057   grep -v '^ *+' conftest.er1 >conftest.err
54058   rm -f conftest.er1
54059   cat conftest.err >&5
54060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54061   (exit $ac_status); } &&
54062          { ac_try='test -z "$ac_c_werror_flag"
54063                          || test ! -s conftest.err'
54064   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54065   (eval $ac_try) 2>&5
54066   ac_status=$?
54067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54068   (exit $ac_status); }; } &&
54069          { ac_try='test -s conftest$ac_exeext'
54070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54071   (eval $ac_try) 2>&5
54072   ac_status=$?
54073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54074   (exit $ac_status); }; }; then
54075   am_cv_func_iconv=yes
54076 else
54077   echo "$as_me: failed program was:" >&5
54078 sed 's/^/| /' conftest.$ac_ext >&5
54079
54080
54081 fi
54082
54083 rm -f conftest.err conftest.$ac_objext \
54084       conftest$ac_exeext conftest.$ac_ext
54085     if test "$am_cv_func_iconv" != yes; then
54086       am_save_LIBS="$LIBS"
54087       LIBS="$LIBS $LIBICONV"
54088       cat >conftest.$ac_ext <<_ACEOF
54089 /* confdefs.h.  */
54090 _ACEOF
54091 cat confdefs.h >>conftest.$ac_ext
54092 cat >>conftest.$ac_ext <<_ACEOF
54093 /* end confdefs.h.  */
54094 #include <stdlib.h>
54095 #include <iconv.h>
54096 int
54097 main ()
54098 {
54099 iconv_t cd = iconv_open("","");
54100          iconv(cd,NULL,NULL,NULL,NULL);
54101          iconv_close(cd);
54102   ;
54103   return 0;
54104 }
54105 _ACEOF
54106 rm -f conftest.$ac_objext conftest$ac_exeext
54107 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
54108   (eval $ac_link) 2>conftest.er1
54109   ac_status=$?
54110   grep -v '^ *+' conftest.er1 >conftest.err
54111   rm -f conftest.er1
54112   cat conftest.err >&5
54113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54114   (exit $ac_status); } &&
54115          { ac_try='test -z "$ac_c_werror_flag"
54116                          || test ! -s conftest.err'
54117   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54118   (eval $ac_try) 2>&5
54119   ac_status=$?
54120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54121   (exit $ac_status); }; } &&
54122          { ac_try='test -s conftest$ac_exeext'
54123   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54124   (eval $ac_try) 2>&5
54125   ac_status=$?
54126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54127   (exit $ac_status); }; }; then
54128   am_cv_lib_iconv=yes
54129         am_cv_func_iconv=yes
54130 else
54131   echo "$as_me: failed program was:" >&5
54132 sed 's/^/| /' conftest.$ac_ext >&5
54133
54134
54135 fi
54136
54137 rm -f conftest.err conftest.$ac_objext \
54138       conftest$ac_exeext conftest.$ac_ext
54139       LIBS="$am_save_LIBS"
54140     fi
54141
54142 fi
54143 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
54144 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
54145   if test "$am_cv_func_iconv" = yes; then
54146
54147 cat >>confdefs.h <<\_ACEOF
54148 #define HAVE_ICONV 1
54149 _ACEOF
54150
54151   fi
54152   if test "$am_cv_lib_iconv" = yes; then
54153     { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
54154 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
54155     { echo "$as_me:$LINENO: result: $LIBICONV" >&5
54156 echo "${ECHO_T}$LIBICONV" >&6; }
54157   else
54158             CPPFLAGS="$am_save_CPPFLAGS"
54159     LIBICONV=
54160     LTLIBICONV=
54161   fi
54162
54163
54164
54165
54166
54167
54168
54169     use_additional=yes
54170
54171   acl_save_prefix="$prefix"
54172   prefix="$acl_final_prefix"
54173   acl_save_exec_prefix="$exec_prefix"
54174   exec_prefix="$acl_final_exec_prefix"
54175
54176     eval additional_includedir=\"$includedir\"
54177     eval additional_libdir=\"$libdir\"
54178
54179   exec_prefix="$acl_save_exec_prefix"
54180   prefix="$acl_save_prefix"
54181
54182
54183 # Check whether --with-libintl-prefix was given.
54184 if test "${with_libintl_prefix+set}" = set; then
54185   withval=$with_libintl_prefix;
54186     if test "X$withval" = "Xno"; then
54187       use_additional=no
54188     else
54189       if test "X$withval" = "X"; then
54190
54191   acl_save_prefix="$prefix"
54192   prefix="$acl_final_prefix"
54193   acl_save_exec_prefix="$exec_prefix"
54194   exec_prefix="$acl_final_exec_prefix"
54195
54196           eval additional_includedir=\"$includedir\"
54197           eval additional_libdir=\"$libdir\"
54198
54199   exec_prefix="$acl_save_exec_prefix"
54200   prefix="$acl_save_prefix"
54201
54202       else
54203         additional_includedir="$withval/include"
54204         additional_libdir="$withval/$acl_libdirstem"
54205       fi
54206     fi
54207
54208 fi
54209
54210       LIBINTL=
54211   LTLIBINTL=
54212   INCINTL=
54213   rpathdirs=
54214   ltrpathdirs=
54215   names_already_handled=
54216   names_next_round='intl '
54217   while test -n "$names_next_round"; do
54218     names_this_round="$names_next_round"
54219     names_next_round=
54220     for name in $names_this_round; do
54221       already_handled=
54222       for n in $names_already_handled; do
54223         if test "$n" = "$name"; then
54224           already_handled=yes
54225           break
54226         fi
54227       done
54228       if test -z "$already_handled"; then
54229         names_already_handled="$names_already_handled $name"
54230                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
54231         eval value=\"\$HAVE_LIB$uppername\"
54232         if test -n "$value"; then
54233           if test "$value" = yes; then
54234             eval value=\"\$LIB$uppername\"
54235             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
54236             eval value=\"\$LTLIB$uppername\"
54237             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
54238           else
54239                                     :
54240           fi
54241         else
54242                               found_dir=
54243           found_la=
54244           found_so=
54245           found_a=
54246           if test $use_additional = yes; then
54247             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
54248               found_dir="$additional_libdir"
54249               found_so="$additional_libdir/lib$name.$shlibext"
54250               if test -f "$additional_libdir/lib$name.la"; then
54251                 found_la="$additional_libdir/lib$name.la"
54252               fi
54253             else
54254               if test -f "$additional_libdir/lib$name.$libext"; then
54255                 found_dir="$additional_libdir"
54256                 found_a="$additional_libdir/lib$name.$libext"
54257                 if test -f "$additional_libdir/lib$name.la"; then
54258                   found_la="$additional_libdir/lib$name.la"
54259                 fi
54260               fi
54261             fi
54262           fi
54263           if test "X$found_dir" = "X"; then
54264             for x in $LDFLAGS $LTLIBINTL; do
54265
54266   acl_save_prefix="$prefix"
54267   prefix="$acl_final_prefix"
54268   acl_save_exec_prefix="$exec_prefix"
54269   exec_prefix="$acl_final_exec_prefix"
54270   eval x=\"$x\"
54271   exec_prefix="$acl_save_exec_prefix"
54272   prefix="$acl_save_prefix"
54273
54274               case "$x" in
54275                 -L*)
54276                   dir=`echo "X$x" | sed -e 's/^X-L//'`
54277                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
54278                     found_dir="$dir"
54279                     found_so="$dir/lib$name.$shlibext"
54280                     if test -f "$dir/lib$name.la"; then
54281                       found_la="$dir/lib$name.la"
54282                     fi
54283                   else
54284                     if test -f "$dir/lib$name.$libext"; then
54285                       found_dir="$dir"
54286                       found_a="$dir/lib$name.$libext"
54287                       if test -f "$dir/lib$name.la"; then
54288                         found_la="$dir/lib$name.la"
54289                       fi
54290                     fi
54291                   fi
54292                   ;;
54293               esac
54294               if test "X$found_dir" != "X"; then
54295                 break
54296               fi
54297             done
54298           fi
54299           if test "X$found_dir" != "X"; then
54300                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
54301             if test "X$found_so" != "X"; then
54302                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
54303                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
54304               else
54305                                                                                 haveit=
54306                 for x in $ltrpathdirs; do
54307                   if test "X$x" = "X$found_dir"; then
54308                     haveit=yes
54309                     break
54310                   fi
54311                 done
54312                 if test -z "$haveit"; then
54313                   ltrpathdirs="$ltrpathdirs $found_dir"
54314                 fi
54315                                 if test "$hardcode_direct" = yes; then
54316                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
54317                 else
54318                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
54319                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
54320                                                             haveit=
54321                     for x in $rpathdirs; do
54322                       if test "X$x" = "X$found_dir"; then
54323                         haveit=yes
54324                         break
54325                       fi
54326                     done
54327                     if test -z "$haveit"; then
54328                       rpathdirs="$rpathdirs $found_dir"
54329                     fi
54330                   else
54331                                                                                 haveit=
54332                     for x in $LDFLAGS $LIBINTL; do
54333
54334   acl_save_prefix="$prefix"
54335   prefix="$acl_final_prefix"
54336   acl_save_exec_prefix="$exec_prefix"
54337   exec_prefix="$acl_final_exec_prefix"
54338   eval x=\"$x\"
54339   exec_prefix="$acl_save_exec_prefix"
54340   prefix="$acl_save_prefix"
54341
54342                       if test "X$x" = "X-L$found_dir"; then
54343                         haveit=yes
54344                         break
54345                       fi
54346                     done
54347                     if test -z "$haveit"; then
54348                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
54349                     fi
54350                     if test "$hardcode_minus_L" != no; then
54351                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
54352                     else
54353                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
54354                     fi
54355                   fi
54356                 fi
54357               fi
54358             else
54359               if test "X$found_a" != "X"; then
54360                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
54361               else
54362                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
54363               fi
54364             fi
54365                         additional_includedir=
54366             case "$found_dir" in
54367               */$acl_libdirstem | */$acl_libdirstem/)
54368                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
54369                 additional_includedir="$basedir/include"
54370                 ;;
54371             esac
54372             if test "X$additional_includedir" != "X"; then
54373                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
54374                 haveit=
54375                 if test "X$additional_includedir" = "X/usr/local/include"; then
54376                   if test -n "$GCC"; then
54377                     case $host_os in
54378                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
54379                     esac
54380                   fi
54381                 fi
54382                 if test -z "$haveit"; then
54383                   for x in $CPPFLAGS $INCINTL; do
54384
54385   acl_save_prefix="$prefix"
54386   prefix="$acl_final_prefix"
54387   acl_save_exec_prefix="$exec_prefix"
54388   exec_prefix="$acl_final_exec_prefix"
54389   eval x=\"$x\"
54390   exec_prefix="$acl_save_exec_prefix"
54391   prefix="$acl_save_prefix"
54392
54393                     if test "X$x" = "X-I$additional_includedir"; then
54394                       haveit=yes
54395                       break
54396                     fi
54397                   done
54398                   if test -z "$haveit"; then
54399                     if test -d "$additional_includedir"; then
54400                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
54401                     fi
54402                   fi
54403                 fi
54404               fi
54405             fi
54406                         if test -n "$found_la"; then
54407                                                         save_libdir="$libdir"
54408               case "$found_la" in
54409                 */* | *\\*) . "$found_la" ;;
54410                 *) . "./$found_la" ;;
54411               esac
54412               libdir="$save_libdir"
54413                             for dep in $dependency_libs; do
54414                 case "$dep" in
54415                   -L*)
54416                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
54417                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
54418                       haveit=
54419                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
54420                         if test -n "$GCC"; then
54421                           case $host_os in
54422                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
54423                           esac
54424                         fi
54425                       fi
54426                       if test -z "$haveit"; then
54427                         haveit=
54428                         for x in $LDFLAGS $LIBINTL; do
54429
54430   acl_save_prefix="$prefix"
54431   prefix="$acl_final_prefix"
54432   acl_save_exec_prefix="$exec_prefix"
54433   exec_prefix="$acl_final_exec_prefix"
54434   eval x=\"$x\"
54435   exec_prefix="$acl_save_exec_prefix"
54436   prefix="$acl_save_prefix"
54437
54438                           if test "X$x" = "X-L$additional_libdir"; then
54439                             haveit=yes
54440                             break
54441                           fi
54442                         done
54443                         if test -z "$haveit"; then
54444                           if test -d "$additional_libdir"; then
54445                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
54446                           fi
54447                         fi
54448                         haveit=
54449                         for x in $LDFLAGS $LTLIBINTL; do
54450
54451   acl_save_prefix="$prefix"
54452   prefix="$acl_final_prefix"
54453   acl_save_exec_prefix="$exec_prefix"
54454   exec_prefix="$acl_final_exec_prefix"
54455   eval x=\"$x\"
54456   exec_prefix="$acl_save_exec_prefix"
54457   prefix="$acl_save_prefix"
54458
54459                           if test "X$x" = "X-L$additional_libdir"; then
54460                             haveit=yes
54461                             break
54462                           fi
54463                         done
54464                         if test -z "$haveit"; then
54465                           if test -d "$additional_libdir"; then
54466                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
54467                           fi
54468                         fi
54469                       fi
54470                     fi
54471                     ;;
54472                   -R*)
54473                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
54474                     if test "$enable_rpath" != no; then
54475                                                                   haveit=
54476                       for x in $rpathdirs; do
54477                         if test "X$x" = "X$dir"; then
54478                           haveit=yes
54479                           break
54480                         fi
54481                       done
54482                       if test -z "$haveit"; then
54483                         rpathdirs="$rpathdirs $dir"
54484                       fi
54485                                                                   haveit=
54486                       for x in $ltrpathdirs; do
54487                         if test "X$x" = "X$dir"; then
54488                           haveit=yes
54489                           break
54490                         fi
54491                       done
54492                       if test -z "$haveit"; then
54493                         ltrpathdirs="$ltrpathdirs $dir"
54494                       fi
54495                     fi
54496                     ;;
54497                   -l*)
54498                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
54499                     ;;
54500                   *.la)
54501                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
54502                     ;;
54503                   *)
54504                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
54505                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
54506                     ;;
54507                 esac
54508               done
54509             fi
54510           else
54511                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
54512             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
54513           fi
54514         fi
54515       fi
54516     done
54517   done
54518   if test "X$rpathdirs" != "X"; then
54519     if test -n "$hardcode_libdir_separator"; then
54520                         alldirs=
54521       for found_dir in $rpathdirs; do
54522         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
54523       done
54524             acl_save_libdir="$libdir"
54525       libdir="$alldirs"
54526       eval flag=\"$hardcode_libdir_flag_spec\"
54527       libdir="$acl_save_libdir"
54528       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
54529     else
54530             for found_dir in $rpathdirs; do
54531         acl_save_libdir="$libdir"
54532         libdir="$found_dir"
54533         eval flag=\"$hardcode_libdir_flag_spec\"
54534         libdir="$acl_save_libdir"
54535         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
54536       done
54537     fi
54538   fi
54539   if test "X$ltrpathdirs" != "X"; then
54540             for found_dir in $ltrpathdirs; do
54541       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
54542     done
54543   fi
54544
54545           { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
54546 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
54547 if test "${gt_cv_func_gnugettext2_libintl+set}" = set; then
54548   echo $ECHO_N "(cached) $ECHO_C" >&6
54549 else
54550   gt_save_CPPFLAGS="$CPPFLAGS"
54551             CPPFLAGS="$CPPFLAGS $INCINTL"
54552             gt_save_LIBS="$LIBS"
54553             LIBS="$LIBS $LIBINTL"
54554                         cat >conftest.$ac_ext <<_ACEOF
54555 /* confdefs.h.  */
54556 _ACEOF
54557 cat confdefs.h >>conftest.$ac_ext
54558 cat >>conftest.$ac_ext <<_ACEOF
54559 /* end confdefs.h.  */
54560 #include <libintl.h>
54561 extern int _nl_msg_cat_cntr;
54562 extern
54563 #ifdef __cplusplus
54564 "C"
54565 #endif
54566 const char *_nl_expand_alias (const char *);
54567 int
54568 main ()
54569 {
54570 bindtextdomain ("", "");
54571 return * gettext ("") + * ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias ("")
54572   ;
54573   return 0;
54574 }
54575 _ACEOF
54576 rm -f conftest.$ac_objext conftest$ac_exeext
54577 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
54578   (eval $ac_link) 2>conftest.er1
54579   ac_status=$?
54580   grep -v '^ *+' conftest.er1 >conftest.err
54581   rm -f conftest.er1
54582   cat conftest.err >&5
54583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54584   (exit $ac_status); } &&
54585          { ac_try='test -z "$ac_c_werror_flag"
54586                          || test ! -s conftest.err'
54587   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54588   (eval $ac_try) 2>&5
54589   ac_status=$?
54590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54591   (exit $ac_status); }; } &&
54592          { ac_try='test -s conftest$ac_exeext'
54593   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54594   (eval $ac_try) 2>&5
54595   ac_status=$?
54596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54597   (exit $ac_status); }; }; then
54598   gt_cv_func_gnugettext2_libintl=yes
54599 else
54600   echo "$as_me: failed program was:" >&5
54601 sed 's/^/| /' conftest.$ac_ext >&5
54602
54603         gt_cv_func_gnugettext2_libintl=no
54604 fi
54605
54606 rm -f conftest.err conftest.$ac_objext \
54607       conftest$ac_exeext conftest.$ac_ext
54608                         if test "$gt_cv_func_gnugettext2_libintl" != yes && test -n "$LIBICONV"; then
54609               LIBS="$LIBS $LIBICONV"
54610               cat >conftest.$ac_ext <<_ACEOF
54611 /* confdefs.h.  */
54612 _ACEOF
54613 cat confdefs.h >>conftest.$ac_ext
54614 cat >>conftest.$ac_ext <<_ACEOF
54615 /* end confdefs.h.  */
54616 #include <libintl.h>
54617 extern int _nl_msg_cat_cntr;
54618 extern
54619 #ifdef __cplusplus
54620 "C"
54621 #endif
54622 const char *_nl_expand_alias (const char *);
54623 int
54624 main ()
54625 {
54626 bindtextdomain ("", "");
54627 return * gettext ("") + * ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias ("")
54628   ;
54629   return 0;
54630 }
54631 _ACEOF
54632 rm -f conftest.$ac_objext conftest$ac_exeext
54633 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
54634   (eval $ac_link) 2>conftest.er1
54635   ac_status=$?
54636   grep -v '^ *+' conftest.er1 >conftest.err
54637   rm -f conftest.er1
54638   cat conftest.err >&5
54639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54640   (exit $ac_status); } &&
54641          { ac_try='test -z "$ac_c_werror_flag"
54642                          || test ! -s conftest.err'
54643   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54644   (eval $ac_try) 2>&5
54645   ac_status=$?
54646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54647   (exit $ac_status); }; } &&
54648          { ac_try='test -s conftest$ac_exeext'
54649   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54650   (eval $ac_try) 2>&5
54651   ac_status=$?
54652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54653   (exit $ac_status); }; }; then
54654   LIBINTL="$LIBINTL $LIBICONV"
54655                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
54656                 gt_cv_func_gnugettext2_libintl=yes
54657
54658 else
54659   echo "$as_me: failed program was:" >&5
54660 sed 's/^/| /' conftest.$ac_ext >&5
54661
54662
54663 fi
54664
54665 rm -f conftest.err conftest.$ac_objext \
54666       conftest$ac_exeext conftest.$ac_ext
54667             fi
54668             CPPFLAGS="$gt_save_CPPFLAGS"
54669             LIBS="$gt_save_LIBS"
54670 fi
54671 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libintl" >&5
54672 echo "${ECHO_T}$gt_cv_func_gnugettext2_libintl" >&6; }
54673         fi
54674
54675                                         if test "$gt_cv_func_gnugettext2_libc" = "yes" \
54676            || { test "$gt_cv_func_gnugettext2_libintl" = "yes" \
54677                 && test "$PACKAGE" != gettext-runtime \
54678                 && test "$PACKAGE" != gettext-tools; }; then
54679           gt_use_preinstalled_gnugettext=yes
54680         else
54681                     LIBINTL=
54682           LTLIBINTL=
54683           INCINTL=
54684         fi
54685
54686
54687
54688     if test -n "$INTL_MACOSX_LIBS"; then
54689       if test "$gt_use_preinstalled_gnugettext" = "yes" \
54690          || test "$nls_cv_use_gnu_gettext" = "yes"; then
54691                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
54692         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
54693       fi
54694     fi
54695
54696     if test "$gt_use_preinstalled_gnugettext" = "yes" \
54697        || test "$nls_cv_use_gnu_gettext" = "yes"; then
54698
54699 cat >>confdefs.h <<\_ACEOF
54700 #define ENABLE_NLS 1
54701 _ACEOF
54702
54703     else
54704       USE_NLS=no
54705     fi
54706   fi
54707
54708   { echo "$as_me:$LINENO: checking whether to use NLS" >&5
54709 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
54710   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
54711 echo "${ECHO_T}$USE_NLS" >&6; }
54712   if test "$USE_NLS" = "yes"; then
54713     { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
54714 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
54715     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
54716       if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
54717         gt_source="external libintl"
54718       else
54719         gt_source="libc"
54720       fi
54721     else
54722       gt_source="included intl directory"
54723     fi
54724     { echo "$as_me:$LINENO: result: $gt_source" >&5
54725 echo "${ECHO_T}$gt_source" >&6; }
54726   fi
54727
54728   if test "$USE_NLS" = "yes"; then
54729
54730     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
54731       if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
54732         { echo "$as_me:$LINENO: checking how to link with libintl" >&5
54733 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
54734         { echo "$as_me:$LINENO: result: $LIBINTL" >&5
54735 echo "${ECHO_T}$LIBINTL" >&6; }
54736
54737   for element in $INCINTL; do
54738     haveit=
54739     for x in $CPPFLAGS; do
54740
54741   acl_save_prefix="$prefix"
54742   prefix="$acl_final_prefix"
54743   acl_save_exec_prefix="$exec_prefix"
54744   exec_prefix="$acl_final_exec_prefix"
54745   eval x=\"$x\"
54746   exec_prefix="$acl_save_exec_prefix"
54747   prefix="$acl_save_prefix"
54748
54749       if test "X$x" = "X$element"; then
54750         haveit=yes
54751         break
54752       fi
54753     done
54754     if test -z "$haveit"; then
54755       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
54756     fi
54757   done
54758
54759       fi
54760
54761
54762 cat >>confdefs.h <<\_ACEOF
54763 #define HAVE_GETTEXT 1
54764 _ACEOF
54765
54766
54767 cat >>confdefs.h <<\_ACEOF
54768 #define HAVE_DCGETTEXT 1
54769 _ACEOF
54770
54771     fi
54772
54773         POSUB=po
54774   fi
54775
54776
54777
54778     INTLLIBS="$LIBINTL"
54779
54780
54781
54782
54783
54784
54785
54786
54787 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"
54788
54789 cat >confcache <<\_ACEOF
54790 # This file is a shell script that caches the results of configure
54791 # tests run on this system so they can be shared between configure
54792 # scripts and configure runs, see configure's option --config-cache.
54793 # It is not useful on other systems.  If it contains results you don't
54794 # want to keep, you may remove or edit it.
54795 #
54796 # config.status only pays attention to the cache file if you give it
54797 # the --recheck option to rerun configure.
54798 #
54799 # `ac_cv_env_foo' variables (set or unset) will be overridden when
54800 # loading this file, other *unset* `ac_cv_foo' will be assigned the
54801 # following values.
54802
54803 _ACEOF
54804
54805 # The following way of writing the cache mishandles newlines in values,
54806 # but we know of no workaround that is simple, portable, and efficient.
54807 # So, we kill variables containing newlines.
54808 # Ultrix sh set writes to stderr and can't be redirected directly,
54809 # and sets the high bit in the cache file unless we assign to the vars.
54810 (
54811   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
54812     eval ac_val=\$$ac_var
54813     case $ac_val in #(
54814     *${as_nl}*)
54815       case $ac_var in #(
54816       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
54817 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
54818       esac
54819       case $ac_var in #(
54820       _ | IFS | as_nl) ;; #(
54821       *) $as_unset $ac_var ;;
54822       esac ;;
54823     esac
54824   done
54825
54826   (set) 2>&1 |
54827     case $as_nl`(ac_space=' '; set) 2>&1` in #(
54828     *${as_nl}ac_space=\ *)
54829       # `set' does not quote correctly, so add quotes (double-quote
54830       # substitution turns \\\\ into \\, and sed turns \\ into \).
54831       sed -n \
54832         "s/'/'\\\\''/g;
54833           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
54834       ;; #(
54835     *)
54836       # `set' quotes correctly as required by POSIX, so do not add quotes.
54837       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
54838       ;;
54839     esac
54840 ) |
54841   sed '
54842      /^ac_cv_env_/b end
54843      t clear
54844      :clear
54845      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
54846      t end
54847      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
54848      :end' >>confcache
54849 if diff $cache_file confcache >/dev/null 2>&1; then :; else
54850   if test -w $cache_file; then
54851     test "x$cache_file" != "x/dev/null" &&
54852       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
54853 echo "$as_me: updating cache $cache_file" >&6;}
54854     cat confcache >$cache_file
54855   else
54856     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
54857 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
54858   fi
54859 fi
54860 rm -f confcache
54861
54862 test "x$prefix" = xNONE && prefix=$ac_default_prefix
54863 # Let make expand exec_prefix.
54864 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
54865
54866 DEFS=-DHAVE_CONFIG_H
54867
54868 ac_libobjs=
54869 ac_ltlibobjs=
54870 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
54871   # 1. Remove the extension, and $U if already installed.
54872   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
54873   ac_i=`echo "$ac_i" | sed "$ac_script"`
54874   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
54875   #    will be set to the directory where LIBOBJS objects are built.
54876   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
54877   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
54878 done
54879 LIBOBJS=$ac_libobjs
54880
54881 LTLIBOBJS=$ac_ltlibobjs
54882
54883
54884 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
54885   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
54886 Usually this means the macro was only invoked conditionally." >&5
54887 echo "$as_me: error: conditional \"AMDEP\" was never defined.
54888 Usually this means the macro was only invoked conditionally." >&2;}
54889    { (exit 1); exit 1; }; }
54890 fi
54891 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
54892   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
54893 Usually this means the macro was only invoked conditionally." >&5
54894 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
54895 Usually this means the macro was only invoked conditionally." >&2;}
54896    { (exit 1); exit 1; }; }
54897 fi
54898
54899 : ${CONFIG_STATUS=./config.status}
54900 ac_clean_files_save=$ac_clean_files
54901 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
54902 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
54903 echo "$as_me: creating $CONFIG_STATUS" >&6;}
54904 cat >$CONFIG_STATUS <<_ACEOF
54905 #! $SHELL
54906 # Generated by $as_me.
54907 # Run this file to recreate the current configuration.
54908 # Compiler output produced by configure, useful for debugging
54909 # configure, is in config.log if it exists.
54910
54911 debug=false
54912 ac_cs_recheck=false
54913 ac_cs_silent=false
54914 SHELL=\${CONFIG_SHELL-$SHELL}
54915 _ACEOF
54916
54917 cat >>$CONFIG_STATUS <<\_ACEOF
54918 ## --------------------- ##
54919 ## M4sh Initialization.  ##
54920 ## --------------------- ##
54921
54922 # Be Bourne compatible
54923 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
54924   emulate sh
54925   NULLCMD=:
54926   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
54927   # is contrary to our usage.  Disable this feature.
54928   alias -g '${1+"$@"}'='"$@"'
54929   setopt NO_GLOB_SUBST
54930 else
54931   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
54932 fi
54933 BIN_SH=xpg4; export BIN_SH # for Tru64
54934 DUALCASE=1; export DUALCASE # for MKS sh
54935
54936
54937 # PATH needs CR
54938 # Avoid depending upon Character Ranges.
54939 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
54940 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
54941 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
54942 as_cr_digits='0123456789'
54943 as_cr_alnum=$as_cr_Letters$as_cr_digits
54944
54945 # The user is always right.
54946 if test "${PATH_SEPARATOR+set}" != set; then
54947   echo "#! /bin/sh" >conf$$.sh
54948   echo  "exit 0"   >>conf$$.sh
54949   chmod +x conf$$.sh
54950   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
54951     PATH_SEPARATOR=';'
54952   else
54953     PATH_SEPARATOR=:
54954   fi
54955   rm -f conf$$.sh
54956 fi
54957
54958 # Support unset when possible.
54959 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
54960   as_unset=unset
54961 else
54962   as_unset=false
54963 fi
54964
54965
54966 # IFS
54967 # We need space, tab and new line, in precisely that order.  Quoting is
54968 # there to prevent editors from complaining about space-tab.
54969 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
54970 # splitting by setting IFS to empty value.)
54971 as_nl='
54972 '
54973 IFS=" ""        $as_nl"
54974
54975 # Find who we are.  Look in the path if we contain no directory separator.
54976 case $0 in
54977   *[\\/]* ) as_myself=$0 ;;
54978   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
54979 for as_dir in $PATH
54980 do
54981   IFS=$as_save_IFS
54982   test -z "$as_dir" && as_dir=.
54983   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
54984 done
54985 IFS=$as_save_IFS
54986
54987      ;;
54988 esac
54989 # We did not find ourselves, most probably we were run as `sh COMMAND'
54990 # in which case we are not to be found in the path.
54991 if test "x$as_myself" = x; then
54992   as_myself=$0
54993 fi
54994 if test ! -f "$as_myself"; then
54995   { echo "$as_me: error: cannot find myself; rerun with an absolute file name" >&2
54996    { (exit 1); exit 1; }; }
54997 fi
54998
54999 # Work around bugs in pre-3.0 UWIN ksh.
55000 for as_var in ENV MAIL MAILPATH
55001 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
55002 done
55003 PS1='$ '
55004 PS2='> '
55005 PS4='+ '
55006
55007 # NLS nuisances.
55008 for as_var in \
55009   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
55010   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
55011   LC_TELEPHONE LC_TIME
55012 do
55013   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
55014     eval $as_var=C; export $as_var
55015   else
55016     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
55017   fi
55018 done
55019
55020 # Required to use basename.
55021 if expr a : '\(a\)' >/dev/null 2>&1 &&
55022    test "X`expr 00001 : '.*\(...\)'`" = X001; then
55023   as_expr=expr
55024 else
55025   as_expr=false
55026 fi
55027
55028 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
55029   as_basename=basename
55030 else
55031   as_basename=false
55032 fi
55033
55034
55035 # Name of the executable.
55036 as_me=`$as_basename "$0" ||
55037 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
55038          X"$0" : 'X\(//\)$' \| \
55039          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
55040 echo X/"$0" |
55041     sed '/^.*\/\([^/][^/]*\)\/*$/{
55042             s//\1/
55043             q
55044           }
55045           /^X\/\(\/\/\)$/{
55046             s//\1/
55047             q
55048           }
55049           /^X\/\(\/\).*/{
55050             s//\1/
55051             q
55052           }
55053           s/.*/./; q'`
55054
55055 # CDPATH.
55056 $as_unset CDPATH
55057
55058
55059
55060   as_lineno_1=$LINENO
55061   as_lineno_2=$LINENO
55062   test "x$as_lineno_1" != "x$as_lineno_2" &&
55063   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
55064
55065   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
55066   # uniformly replaced by the line number.  The first 'sed' inserts a
55067   # line-number line after each line using $LINENO; the second 'sed'
55068   # does the real work.  The second script uses 'N' to pair each
55069   # line-number line with the line containing $LINENO, and appends
55070   # trailing '-' during substitution so that $LINENO is not a special
55071   # case at line end.
55072   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
55073   # scripts with optimization help from Paolo Bonzini.  Blame Lee
55074   # E. McMahon (1931-1989) for sed's syntax.  :-)
55075   sed -n '
55076     p
55077     /[$]LINENO/=
55078   ' <$as_myself |
55079     sed '
55080       s/[$]LINENO.*/&-/
55081       t lineno
55082       b
55083       :lineno
55084       N
55085       :loop
55086       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
55087       t loop
55088       s/-\n.*//
55089     ' >$as_me.lineno &&
55090   chmod +x "$as_me.lineno" ||
55091     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
55092    { (exit 1); exit 1; }; }
55093
55094   # Don't try to exec as it changes $[0], causing all sort of problems
55095   # (the dirname of $[0] is not the place where we might find the
55096   # original and so on.  Autoconf is especially sensitive to this).
55097   . "./$as_me.lineno"
55098   # Exit status is that of the last command.
55099   exit
55100 }
55101
55102
55103 if (dirname /) >/dev/null 2>&1; then
55104   as_dirname=dirname
55105 else
55106   as_dirname=false
55107 fi
55108
55109 ECHO_C= ECHO_N= ECHO_T=
55110 case `echo -n x` in
55111 -n*)
55112   case `echo 'x\c'` in
55113   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
55114   *)   ECHO_C='\c';;
55115   esac;;
55116 *)
55117   ECHO_N='-n';;
55118 esac
55119
55120 if expr a : '\(a\)' >/dev/null 2>&1 &&
55121    test "X`expr 00001 : '.*\(...\)'`" = X001; then
55122   as_expr=expr
55123 else
55124   as_expr=false
55125 fi
55126
55127 rm -f conf$$ conf$$.exe conf$$.file
55128 if test -d conf$$.dir; then
55129   rm -f conf$$.dir/conf$$.file
55130 else
55131   rm -f conf$$.dir
55132   mkdir conf$$.dir
55133 fi
55134 echo >conf$$.file
55135 if ln -s conf$$.file conf$$ 2>/dev/null; then
55136   as_ln_s='ln -s'
55137   # ... but there are two gotchas:
55138   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
55139   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
55140   # In both cases, we have to default to `cp -p'.
55141   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
55142     as_ln_s='cp -p'
55143 elif ln conf$$.file conf$$ 2>/dev/null; then
55144   as_ln_s=ln
55145 else
55146   as_ln_s='cp -p'
55147 fi
55148 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
55149 rmdir conf$$.dir 2>/dev/null
55150
55151 if mkdir -p . 2>/dev/null; then
55152   as_mkdir_p=:
55153 else
55154   test -d ./-p && rmdir ./-p
55155   as_mkdir_p=false
55156 fi
55157
55158 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
55159 # systems may use methods other than mode bits to determine executability.
55160 cat >conf$$.file <<_ASEOF
55161 #! /bin/sh
55162 exit 0
55163 _ASEOF
55164 chmod +x conf$$.file
55165 if test -x conf$$.file >/dev/null 2>&1; then
55166   as_executable_p="test -x"
55167 else
55168   as_executable_p=:
55169 fi
55170 rm -f conf$$.file
55171
55172 # Sed expression to map a string onto a valid CPP name.
55173 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
55174
55175 # Sed expression to map a string onto a valid variable name.
55176 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
55177
55178
55179 exec 6>&1
55180
55181 # Save the log message, to keep $[0] and so on meaningful, and to
55182 # report actual input values of CONFIG_FILES etc. instead of their
55183 # values after options handling.
55184 ac_log="
55185 This file was extended by GNU coreutils $as_me 6.0-cvs, which was
55186 generated by GNU Autoconf 2.59c.  Invocation command line was
55187
55188   CONFIG_FILES    = $CONFIG_FILES
55189   CONFIG_HEADERS  = $CONFIG_HEADERS
55190   CONFIG_LINKS    = $CONFIG_LINKS
55191   CONFIG_COMMANDS = $CONFIG_COMMANDS
55192   $ $0 $@
55193
55194 on `(hostname || uname -n) 2>/dev/null | sed 1q`
55195 "
55196
55197 _ACEOF
55198
55199 cat >>$CONFIG_STATUS <<_ACEOF
55200 # Files that config.status was made for.
55201 config_files="$ac_config_files"
55202 config_headers="$ac_config_headers"
55203 config_commands="$ac_config_commands"
55204
55205 _ACEOF
55206
55207 cat >>$CONFIG_STATUS <<\_ACEOF
55208 ac_cs_usage="\
55209 \`$as_me' instantiates files from templates according to the
55210 current configuration.
55211
55212 Usage: $0 [OPTIONS] [FILE]...
55213
55214   -h, --help       print this help, then exit
55215   -V, --version    print version number, then exit
55216   -q, --quiet      do not print progress messages
55217   -d, --debug      don't remove temporary files
55218       --recheck    update $as_me by reconfiguring in the same conditions
55219   --file=FILE[:TEMPLATE]
55220                    instantiate the configuration file FILE
55221   --header=FILE[:TEMPLATE]
55222                    instantiate the configuration header FILE
55223
55224 Configuration files:
55225 $config_files
55226
55227 Configuration headers:
55228 $config_headers
55229
55230 Configuration commands:
55231 $config_commands
55232
55233 Report bugs to <bug-autoconf@gnu.org>."
55234
55235 _ACEOF
55236 cat >>$CONFIG_STATUS <<_ACEOF
55237 ac_cs_version="\\
55238 GNU coreutils config.status 6.0-cvs
55239 configured by $0, generated by GNU Autoconf 2.59c,
55240   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
55241
55242 Copyright (C) 2006 Free Software Foundation, Inc.
55243 This config.status script is free software; the Free Software Foundation
55244 gives unlimited permission to copy, distribute and modify it."
55245
55246 ac_pwd='$ac_pwd'
55247 srcdir='$srcdir'
55248 INSTALL='$INSTALL'
55249
55250 _ACEOF
55251
55252 cat >>$CONFIG_STATUS <<\_ACEOF
55253 # If no file are specified by the user, then we need to provide default
55254 # value.  By we need to know if files were specified by the user.
55255 ac_need_defaults=:
55256 while test $# != 0
55257 do
55258   case $1 in
55259   --*=*)
55260     ac_option=`expr "X$1" : 'X\([^=]*\)='`
55261     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
55262     ac_shift=:
55263     ;;
55264   *)
55265     ac_option=$1
55266     ac_optarg=$2
55267     ac_shift=shift
55268     ;;
55269   esac
55270
55271   case $ac_option in
55272   # Handling of the options.
55273   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
55274     ac_cs_recheck=: ;;
55275   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
55276     echo "$ac_cs_version"; exit ;;
55277   --debug | --debu | --deb | --de | --d | -d )
55278     debug=: ;;
55279   --file | --fil | --fi | --f )
55280     $ac_shift
55281     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
55282     ac_need_defaults=false;;
55283   --header | --heade | --head | --hea )
55284     $ac_shift
55285     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
55286     ac_need_defaults=false;;
55287   --he | --h)
55288     # Conflict between --help and --header
55289     { echo "$as_me: error: ambiguous option: $1
55290 Try \`$0 --help' for more information." >&2
55291    { (exit 1); exit 1; }; };;
55292   --help | --hel | -h )
55293     echo "$ac_cs_usage"; exit ;;
55294   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
55295   | -silent | --silent | --silen | --sile | --sil | --si | --s)
55296     ac_cs_silent=: ;;
55297
55298   # This is an error.
55299   -*) { echo "$as_me: error: unrecognized option: $1
55300 Try \`$0 --help' for more information." >&2
55301    { (exit 1); exit 1; }; } ;;
55302
55303   *) ac_config_targets="$ac_config_targets $1"
55304      ac_need_defaults=false ;;
55305
55306   esac
55307   shift
55308 done
55309
55310 ac_configure_extra_args=
55311
55312 if $ac_cs_silent; then
55313   exec 6>/dev/null
55314   ac_configure_extra_args="$ac_configure_extra_args --silent"
55315 fi
55316
55317 exec 5>>config.log
55318 {
55319   echo
55320   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
55321 ## Running $as_me. ##
55322 _ASBOX
55323   echo "$ac_log"
55324 } >&5
55325
55326 _ACEOF
55327 cat >>$CONFIG_STATUS <<_ACEOF
55328 if \$ac_cs_recheck; then
55329   echo "running CONFIG_SHELL=$SHELL $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
55330   CONFIG_SHELL=$SHELL
55331   export CONFIG_SHELL
55332   exec $SHELL "$0" $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
55333 fi
55334 #
55335 # INIT-COMMANDS
55336 #
55337 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
55338 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
55339     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
55340     # from automake.
55341     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
55342     # Capture the value of LINGUAS because we need it to compute CATALOGS.
55343     LINGUAS="${LINGUAS-%UNSET%}"
55344
55345
55346 _ACEOF
55347
55348 cat >>$CONFIG_STATUS <<\_ACEOF
55349
55350 # Handling of arguments.
55351 for ac_config_target in $ac_config_targets
55352 do
55353   case $ac_config_target in
55354     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.hin" ;;
55355     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
55356     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
55357     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
55358     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
55359     "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
55360     "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
55361     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
55362     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
55363     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
55364     "tests/chgrp/Makefile") CONFIG_FILES="$CONFIG_FILES tests/chgrp/Makefile" ;;
55365     "tests/chmod/Makefile") CONFIG_FILES="$CONFIG_FILES tests/chmod/Makefile" ;;
55366     "tests/chown/Makefile") CONFIG_FILES="$CONFIG_FILES tests/chown/Makefile" ;;
55367     "tests/cp/Makefile") CONFIG_FILES="$CONFIG_FILES tests/cp/Makefile" ;;
55368     "tests/cut/Makefile") CONFIG_FILES="$CONFIG_FILES tests/cut/Makefile" ;;
55369     "tests/dd/Makefile") CONFIG_FILES="$CONFIG_FILES tests/dd/Makefile" ;;
55370     "tests/dircolors/Makefile") CONFIG_FILES="$CONFIG_FILES tests/dircolors/Makefile" ;;
55371     "tests/du/Makefile") CONFIG_FILES="$CONFIG_FILES tests/du/Makefile" ;;
55372     "tests/expr/Makefile") CONFIG_FILES="$CONFIG_FILES tests/expr/Makefile" ;;
55373     "tests/factor/Makefile") CONFIG_FILES="$CONFIG_FILES tests/factor/Makefile" ;;
55374     "tests/fmt/Makefile") CONFIG_FILES="$CONFIG_FILES tests/fmt/Makefile" ;;
55375     "tests/head/Makefile") CONFIG_FILES="$CONFIG_FILES tests/head/Makefile" ;;
55376     "tests/install/Makefile") CONFIG_FILES="$CONFIG_FILES tests/install/Makefile" ;;
55377     "tests/join/Makefile") CONFIG_FILES="$CONFIG_FILES tests/join/Makefile" ;;
55378     "tests/ln/Makefile") CONFIG_FILES="$CONFIG_FILES tests/ln/Makefile" ;;
55379     "tests/ls-2/Makefile") CONFIG_FILES="$CONFIG_FILES tests/ls-2/Makefile" ;;
55380     "tests/ls/Makefile") CONFIG_FILES="$CONFIG_FILES tests/ls/Makefile" ;;
55381     "tests/md5sum/Makefile") CONFIG_FILES="$CONFIG_FILES tests/md5sum/Makefile" ;;
55382     "tests/misc/Makefile") CONFIG_FILES="$CONFIG_FILES tests/misc/Makefile" ;;
55383     "tests/mkdir/Makefile") CONFIG_FILES="$CONFIG_FILES tests/mkdir/Makefile" ;;
55384     "tests/mv/Makefile") CONFIG_FILES="$CONFIG_FILES tests/mv/Makefile" ;;
55385     "tests/od/Makefile") CONFIG_FILES="$CONFIG_FILES tests/od/Makefile" ;;
55386     "tests/pr/Makefile") CONFIG_FILES="$CONFIG_FILES tests/pr/Makefile" ;;
55387     "tests/readlink/Makefile") CONFIG_FILES="$CONFIG_FILES tests/readlink/Makefile" ;;
55388     "tests/rm/Makefile") CONFIG_FILES="$CONFIG_FILES tests/rm/Makefile" ;;
55389     "tests/rmdir/Makefile") CONFIG_FILES="$CONFIG_FILES tests/rmdir/Makefile" ;;
55390     "tests/seq/Makefile") CONFIG_FILES="$CONFIG_FILES tests/seq/Makefile" ;;
55391     "tests/sha1sum/Makefile") CONFIG_FILES="$CONFIG_FILES tests/sha1sum/Makefile" ;;
55392     "tests/shred/Makefile") CONFIG_FILES="$CONFIG_FILES tests/shred/Makefile" ;;
55393     "tests/sort/Makefile") CONFIG_FILES="$CONFIG_FILES tests/sort/Makefile" ;;
55394     "tests/stty/Makefile") CONFIG_FILES="$CONFIG_FILES tests/stty/Makefile" ;;
55395     "tests/sum/Makefile") CONFIG_FILES="$CONFIG_FILES tests/sum/Makefile" ;;
55396     "tests/tac/Makefile") CONFIG_FILES="$CONFIG_FILES tests/tac/Makefile" ;;
55397     "tests/tail-2/Makefile") CONFIG_FILES="$CONFIG_FILES tests/tail-2/Makefile" ;;
55398     "tests/tail/Makefile") CONFIG_FILES="$CONFIG_FILES tests/tail/Makefile" ;;
55399     "tests/tee/Makefile") CONFIG_FILES="$CONFIG_FILES tests/tee/Makefile" ;;
55400     "tests/test/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test/Makefile" ;;
55401     "tests/touch/Makefile") CONFIG_FILES="$CONFIG_FILES tests/touch/Makefile" ;;
55402     "tests/tr/Makefile") CONFIG_FILES="$CONFIG_FILES tests/tr/Makefile" ;;
55403     "tests/tsort/Makefile") CONFIG_FILES="$CONFIG_FILES tests/tsort/Makefile" ;;
55404     "tests/unexpand/Makefile") CONFIG_FILES="$CONFIG_FILES tests/unexpand/Makefile" ;;
55405     "tests/uniq/Makefile") CONFIG_FILES="$CONFIG_FILES tests/uniq/Makefile" ;;
55406     "tests/wc/Makefile") CONFIG_FILES="$CONFIG_FILES tests/wc/Makefile" ;;
55407
55408   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
55409 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
55410    { (exit 1); exit 1; }; };;
55411   esac
55412 done
55413
55414
55415 # If the user did not use the arguments to specify the items to instantiate,
55416 # then the envvar interface is used.  Set only those that are not.
55417 # We use the long form for the default assignment because of an extremely
55418 # bizarre bug on SunOS 4.1.3.
55419 if $ac_need_defaults; then
55420   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
55421   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
55422   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
55423 fi
55424
55425 # Have a temporary directory for convenience.  Make it in the build tree
55426 # simply because there is no reason against having it here, and in addition,
55427 # creating and moving files from /tmp can sometimes cause problems.
55428 # Hook for its removal unless debugging.
55429 # Note that there is a small window in which the directory will not be cleaned:
55430 # after its creation but before its name has been assigned to `$tmp'.
55431 $debug ||
55432 {
55433   tmp=
55434   trap 'exit_status=$?
55435   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
55436 ' 0
55437   trap '{ (exit 1); exit 1; }' 1 2 13 15
55438 }
55439 # Create a (secure) tmp directory for tmp files.
55440
55441 {
55442   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
55443   test -n "$tmp" && test -d "$tmp"
55444 }  ||
55445 {
55446   tmp=./conf$$-$RANDOM
55447   (umask 077 && mkdir "$tmp")
55448 } ||
55449 {
55450    echo "$me: cannot create a temporary directory in ." >&2
55451    { (exit 1); exit 1; }
55452 }
55453
55454 #
55455 # Set up the sed scripts for CONFIG_FILES section.
55456 #
55457
55458 # No need to generate the scripts if there are no CONFIG_FILES.
55459 # This happens for instance when ./config.status config.h
55460 if test -n "$CONFIG_FILES"; then
55461
55462 _ACEOF
55463
55464
55465
55466 ac_delim='%!_!# '
55467 for ac_last_try in false false false false false :; do
55468   cat >conf$$subs.sed <<_ACEOF
55469 SHELL!$SHELL$ac_delim
55470 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
55471 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
55472 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
55473 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
55474 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
55475 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
55476 exec_prefix!$exec_prefix$ac_delim
55477 prefix!$prefix$ac_delim
55478 program_transform_name!$program_transform_name$ac_delim
55479 bindir!$bindir$ac_delim
55480 sbindir!$sbindir$ac_delim
55481 libexecdir!$libexecdir$ac_delim
55482 datarootdir!$datarootdir$ac_delim
55483 datadir!$datadir$ac_delim
55484 sysconfdir!$sysconfdir$ac_delim
55485 sharedstatedir!$sharedstatedir$ac_delim
55486 localstatedir!$localstatedir$ac_delim
55487 includedir!$includedir$ac_delim
55488 oldincludedir!$oldincludedir$ac_delim
55489 docdir!$docdir$ac_delim
55490 infodir!$infodir$ac_delim
55491 htmldir!$htmldir$ac_delim
55492 dvidir!$dvidir$ac_delim
55493 pdfdir!$pdfdir$ac_delim
55494 psdir!$psdir$ac_delim
55495 libdir!$libdir$ac_delim
55496 localedir!$localedir$ac_delim
55497 mandir!$mandir$ac_delim
55498 DEFS!$DEFS$ac_delim
55499 ECHO_C!$ECHO_C$ac_delim
55500 ECHO_N!$ECHO_N$ac_delim
55501 ECHO_T!$ECHO_T$ac_delim
55502 LIBS!$LIBS$ac_delim
55503 build_alias!$build_alias$ac_delim
55504 host_alias!$host_alias$ac_delim
55505 target_alias!$target_alias$ac_delim
55506 build!$build$ac_delim
55507 build_cpu!$build_cpu$ac_delim
55508 build_vendor!$build_vendor$ac_delim
55509 build_os!$build_os$ac_delim
55510 host!$host$ac_delim
55511 host_cpu!$host_cpu$ac_delim
55512 host_vendor!$host_vendor$ac_delim
55513 host_os!$host_os$ac_delim
55514 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
55515 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
55516 INSTALL_DATA!$INSTALL_DATA$ac_delim
55517 CYGPATH_W!$CYGPATH_W$ac_delim
55518 PACKAGE!$PACKAGE$ac_delim
55519 VERSION!$VERSION$ac_delim
55520 ACLOCAL!$ACLOCAL$ac_delim
55521 AUTOCONF!$AUTOCONF$ac_delim
55522 AUTOMAKE!$AUTOMAKE$ac_delim
55523 AUTOHEADER!$AUTOHEADER$ac_delim
55524 MAKEINFO!$MAKEINFO$ac_delim
55525 install_sh!$install_sh$ac_delim
55526 STRIP!$STRIP$ac_delim
55527 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
55528 mkdir_p!$mkdir_p$ac_delim
55529 AWK!$AWK$ac_delim
55530 SET_MAKE!$SET_MAKE$ac_delim
55531 am__leading_dot!$am__leading_dot$ac_delim
55532 AMTAR!$AMTAR$ac_delim
55533 am__tar!$am__tar$ac_delim
55534 am__untar!$am__untar$ac_delim
55535 DEFAULT_POSIX2_VERSION!$DEFAULT_POSIX2_VERSION$ac_delim
55536 CC!$CC$ac_delim
55537 CFLAGS!$CFLAGS$ac_delim
55538 LDFLAGS!$LDFLAGS$ac_delim
55539 CPPFLAGS!$CPPFLAGS$ac_delim
55540 ac_ct_CC!$ac_ct_CC$ac_delim
55541 EXEEXT!$EXEEXT$ac_delim
55542 OBJEXT!$OBJEXT$ac_delim
55543 DEPDIR!$DEPDIR$ac_delim
55544 am__include!$am__include$ac_delim
55545 am__quote!$am__quote$ac_delim
55546 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
55547 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
55548 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
55549 CCDEPMODE!$CCDEPMODE$ac_delim
55550 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
55551 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
55552 CPP!$CPP$ac_delim
55553 GREP!$GREP$ac_delim
55554 EGREP!$EGREP$ac_delim
55555 PERL!$PERL$ac_delim
55556 RANLIB!$RANLIB$ac_delim
55557 LN_S!$LN_S$ac_delim
55558 GNU_PACKAGE!$GNU_PACKAGE$ac_delim
55559 HELP2MAN!$HELP2MAN$ac_delim
55560 OPTIONAL_BIN_PROGS!$OPTIONAL_BIN_PROGS$ac_delim
55561 MAN!$MAN$ac_delim
55562 DF_PROG!$DF_PROG$ac_delim
55563 U!$U$ac_delim
55564 ANSI2KNR!$ANSI2KNR$ac_delim
55565 LIBOBJS!$LIBOBJS$ac_delim
55566 _ACEOF
55567
55568   if test `grep -c "$ac_delim\$" conf$$subs.sed` = 97; then
55569     break
55570   elif $ac_last_try; then
55571     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
55572 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
55573    { (exit 1); exit 1; }; }
55574   else
55575     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
55576   fi
55577 done
55578
55579 ac_eof=
55580 if grep '^CEOF$' conf$$subs.sed >/dev/null; then
55581   ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF//p' conf$$subs.sed | sort -nru | sed 1q`
55582   ac_eof=`expr 0$ac_eof + 1`
55583 fi
55584
55585 cat >>$CONFIG_STATUS <<_ACEOF
55586 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
55587 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
55588 _ACEOF
55589 sed '
55590 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
55591 s/^/s,@/; s/!/@,|#_!!_#|/
55592 :n
55593 t n
55594 s/'"$ac_delim"'$/,g/; t
55595 s/$/\\/; p
55596 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
55597 ' >>$CONFIG_STATUS <conf$$subs.sed
55598 rm -f conf$$subs.sed
55599 cat >>$CONFIG_STATUS <<_ACEOF
55600 CEOF$ac_eof
55601 _ACEOF
55602
55603
55604 ac_delim='%!_!# '
55605 for ac_last_try in false false false false false :; do
55606   cat >conf$$subs.sed <<_ACEOF
55607 STDBOOL_H!$STDBOOL_H$ac_delim
55608 HAVE__BOOL!$HAVE__BOOL$ac_delim
55609 ALLOCA!$ALLOCA$ac_delim
55610 ALLOCA_H!$ALLOCA_H$ac_delim
55611 SYS_SOCKET_H!$SYS_SOCKET_H$ac_delim
55612 FNMATCH_H!$FNMATCH_H$ac_delim
55613 NEED_SETGID!$NEED_SETGID$ac_delim
55614 KMEM_GROUP!$KMEM_GROUP$ac_delim
55615 GETLOADAVG_LIBS!$GETLOADAVG_LIBS$ac_delim
55616 LIB_EACCESS!$LIB_EACCESS$ac_delim
55617 POW_LIB!$POW_LIB$ac_delim
55618 EOVERFLOW!$EOVERFLOW$ac_delim
55619 YACC!$YACC$ac_delim
55620 YFLAGS!$YFLAGS$ac_delim
55621 LIB_CLOCK_GETTIME!$LIB_CLOCK_GETTIME$ac_delim
55622 LIB_GETHRXTIME!$LIB_GETHRXTIME$ac_delim
55623 GETOPT_H!$GETOPT_H$ac_delim
55624 GLIBC21!$GLIBC21$ac_delim
55625 HAVE_LONG_64BIT!$HAVE_LONG_64BIT$ac_delim
55626 HAVE_LONG_LONG_64BIT!$HAVE_LONG_LONG_64BIT$ac_delim
55627 STDINT_H!$STDINT_H$ac_delim
55628 LIB_NANOSLEEP!$LIB_NANOSLEEP$ac_delim
55629 LIB_ACL!$LIB_ACL$ac_delim
55630 LIB_FDATASYNC!$LIB_FDATASYNC$ac_delim
55631 SEQ_LIBM!$SEQ_LIBM$ac_delim
55632 LIBICONV!$LIBICONV$ac_delim
55633 LTLIBICONV!$LTLIBICONV$ac_delim
55634 LIB_CRYPT!$LIB_CRYPT$ac_delim
55635 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
55636 USE_NLS!$USE_NLS$ac_delim
55637 MSGFMT!$MSGFMT$ac_delim
55638 GMSGFMT!$GMSGFMT$ac_delim
55639 XGETTEXT!$XGETTEXT$ac_delim
55640 MSGMERGE!$MSGMERGE$ac_delim
55641 INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
55642 INTLLIBS!$INTLLIBS$ac_delim
55643 LIBINTL!$LIBINTL$ac_delim
55644 LTLIBINTL!$LTLIBINTL$ac_delim
55645 POSUB!$POSUB$ac_delim
55646 LTLIBOBJS!$LTLIBOBJS$ac_delim
55647 _ACEOF
55648
55649   if test `grep -c "$ac_delim\$" conf$$subs.sed` = 40; then
55650     break
55651   elif $ac_last_try; then
55652     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
55653 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
55654    { (exit 1); exit 1; }; }
55655   else
55656     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
55657   fi
55658 done
55659
55660 ac_eof=
55661 if grep '^CEOF$' conf$$subs.sed >/dev/null; then
55662   ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF//p' conf$$subs.sed | sort -nru | sed 1q`
55663   ac_eof=`expr 0$ac_eof + 1`
55664 fi
55665
55666 cat >>$CONFIG_STATUS <<_ACEOF
55667 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
55668 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
55669 _ACEOF
55670 sed '
55671 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
55672 s/^/s,@/; s/!/@,|#_!!_#|/
55673 :n
55674 t n
55675 s/'"$ac_delim"'$/,g/; t
55676 s/$/\\/; p
55677 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
55678 ' >>$CONFIG_STATUS <conf$$subs.sed
55679 rm -f conf$$subs.sed
55680 cat >>$CONFIG_STATUS <<_ACEOF
55681 :end
55682 s/|#_!!_#|//g
55683 CEOF$ac_eof
55684 _ACEOF
55685
55686
55687 # VPATH may cause trouble with some makes, so we remove $(srcdir),
55688 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
55689 # trailing colons and then remove the whole line if VPATH becomes empty
55690 # (actually we leave an empty line to preserve line numbers).
55691 if test "x$srcdir" = x.; then
55692   ac_vpsub='/^[  ]*VPATH[        ]*=/{
55693 s/:*\$(srcdir):*/:/
55694 s/:*\${srcdir}:*/:/
55695 s/:*@srcdir@:*/:/
55696 s/^\([^=]*=[     ]*\):*/\1/
55697 s/:*$//
55698 s/^[^=]*=[       ]*$//
55699 }'
55700 fi
55701
55702 cat >>$CONFIG_STATUS <<\_ACEOF
55703 fi # test -n "$CONFIG_FILES"
55704
55705
55706 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
55707 do
55708   case $ac_tag in
55709   :[FHLC]) ac_mode=$ac_tag; continue;;
55710   esac
55711   case $ac_mode$ac_tag in
55712   :[FHL]*:*);;
55713   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
55714 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
55715    { (exit 1); exit 1; }; };;
55716   :[FH]-) ac_tag=-:-;;
55717   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
55718   esac
55719   ac_save_IFS=$IFS
55720   IFS=:
55721   set x $ac_tag
55722   IFS=$ac_save_IFS
55723   shift
55724   ac_file=$1
55725   shift
55726
55727   case $ac_mode in
55728   :L) ac_source=$1;;
55729   :[FH])
55730     ac_file_inputs=
55731     for ac_f
55732     do
55733       case $ac_f in
55734       -) ac_f="$tmp/stdin";;
55735       *) # Look for the file first in the build tree, then in the source tree
55736          # (if the path is not absolute).  The absolute path cannot be DOS-style,
55737          # because $ac_f cannot contain `:'.
55738          test -f "$ac_f" ||
55739            case $ac_f in
55740            [\\/$]*) false;;
55741            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
55742            esac ||
55743            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
55744 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
55745    { (exit 1); exit 1; }; };;
55746       esac
55747       ac_file_inputs="$ac_file_inputs $ac_f"
55748     done
55749
55750     # Let's still pretend it is `configure' which instantiates (i.e., don't
55751     # use $as_me), people would be surprised to read:
55752     #    /* config.h.  Generated by config.status.  */
55753     configure_input="Generated from "`IFS=:
55754           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
55755     if test x"$ac_file" != x-; then
55756       configure_input="$ac_file.  $configure_input"
55757       { echo "$as_me:$LINENO: creating $ac_file" >&5
55758 echo "$as_me: creating $ac_file" >&6;}
55759     fi
55760
55761     case $ac_tag in
55762     *:-:* | *:-) cat >"$tmp/stdin";;
55763     esac
55764     ;;
55765   esac
55766
55767   ac_dir=`$as_dirname "$ac_file" ||
55768 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
55769          X"$ac_file" : 'X\(//\)[^/]' \| \
55770          X"$ac_file" : 'X\(//\)$' \| \
55771          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
55772 echo X"$ac_file" |
55773     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
55774             s//\1/
55775             q
55776           }
55777           /^X\(\/\/\)[^/].*/{
55778             s//\1/
55779             q
55780           }
55781           /^X\(\/\/\)$/{
55782             s//\1/
55783             q
55784           }
55785           /^X\(\/\).*/{
55786             s//\1/
55787             q
55788           }
55789           s/.*/./; q'`
55790   { if $as_mkdir_p; then
55791     test -d "$ac_dir" || mkdir -p "$ac_dir"
55792   else
55793     as_dir="$ac_dir"
55794     as_dirs=
55795     while test ! -d "$as_dir"; do
55796       as_dirs="$as_dir $as_dirs"
55797       as_dir=`$as_dirname "$as_dir" ||
55798 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
55799          X"$as_dir" : 'X\(//\)[^/]' \| \
55800          X"$as_dir" : 'X\(//\)$' \| \
55801          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
55802 echo X"$as_dir" |
55803     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
55804             s//\1/
55805             q
55806           }
55807           /^X\(\/\/\)[^/].*/{
55808             s//\1/
55809             q
55810           }
55811           /^X\(\/\/\)$/{
55812             s//\1/
55813             q
55814           }
55815           /^X\(\/\).*/{
55816             s//\1/
55817             q
55818           }
55819           s/.*/./; q'`
55820     done
55821     test ! -n "$as_dirs" || mkdir $as_dirs
55822   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
55823 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
55824    { (exit 1); exit 1; }; }; }
55825   ac_builddir=.
55826
55827 case "$ac_dir" in
55828 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
55829 *)
55830   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
55831   # A ".." for each directory in $ac_dir_suffix.
55832   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
55833   case $ac_top_builddir_sub in
55834   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
55835   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
55836   esac ;;
55837 esac
55838 ac_abs_top_builddir=$ac_pwd
55839 ac_abs_builddir=$ac_pwd$ac_dir_suffix
55840 # for backward compatibility:
55841 ac_top_builddir=$ac_top_build_prefix
55842
55843 case $srcdir in
55844   .)  # We are building in place.
55845     ac_srcdir=.
55846     ac_top_srcdir=$ac_top_builddir_sub
55847     ac_abs_top_srcdir=$ac_pwd ;;
55848   [\\/]* | ?:[\\/]* )  # Absolute name.
55849     ac_srcdir=$srcdir$ac_dir_suffix;
55850     ac_top_srcdir=$srcdir
55851     ac_abs_top_srcdir=$srcdir ;;
55852   *) # Relative name.
55853     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
55854     ac_top_srcdir=$ac_top_build_prefix$srcdir
55855     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
55856 esac
55857 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
55858
55859
55860   case $ac_mode in
55861   :F)
55862   #
55863   # CONFIG_FILE
55864   #
55865
55866   case $INSTALL in
55867   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
55868   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
55869   esac
55870
55871 _ACEOF
55872
55873 cat >>$CONFIG_STATUS <<\_ACEOF
55874 # If the template does not know about datarootdir, expand it.
55875 # FIXME: This hack should be removed a few years after 2.60.
55876 ac_datarootdir_hack=
55877
55878 case `sed -n '/datarootdir/ {
55879   p
55880   q
55881 }
55882 /@datadir@/p
55883 /@docdir@/p
55884 /@infodir@/p
55885 /@localedir@/p
55886 /@mandir@/p
55887 ' $ac_file_inputs` in
55888 *datarootdir*) ;;
55889 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
55890   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
55891 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
55892 _ACEOF
55893 cat >>$CONFIG_STATUS <<_ACEOF
55894   ac_datarootdir_hack='
55895   s&@datadir@&$datadir&g
55896   s&@docdir@&$docdir&g
55897   s&@infodir@&$infodir&g
55898   s&@localedir@&$localedir&g
55899   s&@mandir@&$mandir&g
55900     s&\\\${datarootdir}&$datarootdir&g' ;;
55901 esac
55902 _ACEOF
55903
55904 # Neutralize VPATH when `$srcdir' = `.'.
55905 # Shell code in configure.ac might set extrasub.
55906 # FIXME: do we really want to maintain this feature?
55907 cat >>$CONFIG_STATUS <<_ACEOF
55908   sed "$ac_vpsub
55909 $extrasub
55910 _ACEOF
55911 cat >>$CONFIG_STATUS <<\_ACEOF
55912 :t
55913 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
55914 s&@configure_input@&$configure_input&;t t
55915 s&@top_builddir@&$ac_top_builddir_sub&;t t
55916 s&@srcdir@&$ac_srcdir&;t t
55917 s&@abs_srcdir@&$ac_abs_srcdir&;t t
55918 s&@top_srcdir@&$ac_top_srcdir&;t t
55919 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
55920 s&@builddir@&$ac_builddir&;t t
55921 s&@abs_builddir@&$ac_abs_builddir&;t t
55922 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
55923 s&@INSTALL@&$ac_INSTALL&;t t
55924 $ac_datarootdir_hack
55925 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
55926
55927   rm -f "$tmp/stdin"
55928   case $ac_file in
55929   -) cat "$tmp/out"; rm -f "$tmp/out";;
55930   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
55931   esac
55932  ;;
55933   :H)
55934   #
55935   # CONFIG_HEADER
55936   #
55937
55938   # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
55939   # NAME is the cpp macro being defined, VALUE is the value it is being given.
55940   # PARAMS is the parameter list in the macro definition--in most cases, it's
55941   # just an empty string.
55942   #
55943   ac_dA='s,^\([  ]*#[    ]*\)[^  ]*\([   ][      ]*'
55944   ac_dB='\)[     (].*$,\1define\2'
55945   ac_dC=' '
55946   ac_dD=' ,'
55947
55948   ac_word_regexp=[_$as_cr_Letters][_$as_cr_alnum]*
55949 _ACEOF
55950
55951 # Transform confdefs.h into a sed script `conftest.defines', that
55952 # substitutes the proper values into config.h.in to produce config.h.
55953 rm -f conftest.defines conftest.tail
55954 # First, append a space to every undef/define line, to ease matching.
55955 echo 's/$/ /' >conftest.defines
55956 # Then, protect against being on the right side of a sed subst, or in
55957 # an unquoted here document, in config.status.  If some macros were
55958 # called several times there might be several #defines for the same
55959 # symbol, which is useless.  But do not sort them, since the last
55960 # AC_DEFINE must be honored.
55961 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
55962 uniq confdefs.h |
55963   sed -n '
55964         t rset
55965         :rset
55966         s/^[     ]*#[    ]*define[       ][      ]*//
55967         t ok
55968         d
55969         :ok
55970         s/[\\&,]/\\&/g
55971         s/[\\$`]/\\&/g
55972         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/${ac_dA}\1$ac_dB\2${ac_dC}\3$ac_dD/p
55973         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/${ac_dA}\1$ac_dB${ac_dC}\2$ac_dD/p
55974   ' >>conftest.defines
55975
55976 # Remove the space that was appended to ease matching.
55977 # Then replace #undef with comments.  This is necessary, for
55978 # example, in the case of _POSIX_SOURCE, which is predefined and required
55979 # on some systems where configure will not decide to define it.
55980 # (The regexp can be short, since the line contains either #define or #undef.)
55981 echo 's/ $//
55982 s,^[     #]*u.*,/* & */,' >>conftest.defines
55983
55984 # Break up conftest.defines:
55985 ac_max_sed_lines=96
55986
55987 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
55988 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
55989 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
55990 # et cetera.
55991 ac_in='$ac_file_inputs'
55992 ac_out='"$tmp/out1"'
55993 ac_nxt='"$tmp/out2"'
55994
55995 while :
55996 do
55997   # Write a here document:
55998     echo '    # First, check the format of the line:
55999     cat >"$tmp/defines.sed" <<CEOF
56000 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_regexp[      ]*$/b def
56001 /^[      ]*#[    ]*define[       ][      ]*$ac_word_regexp[(     ]/b def
56002 b
56003 :def' >>$CONFIG_STATUS
56004   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
56005   echo 'CEOF
56006     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
56007   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
56008   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
56009   grep . conftest.tail >/dev/null || break
56010   rm -f conftest.defines
56011   mv conftest.tail conftest.defines
56012 done
56013 rm -f conftest.defines conftest.tail
56014
56015 echo "ac_result=$ac_in" >>$CONFIG_STATUS
56016 cat >>$CONFIG_STATUS <<\_ACEOF
56017   if test x"$ac_file" != x-; then
56018     echo "/* $configure_input  */" >"$tmp/config.h"
56019     cat "$ac_result" >>"$tmp/config.h"
56020     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
56021       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
56022 echo "$as_me: $ac_file is unchanged" >&6;}
56023     else
56024       rm -f $ac_file
56025       mv "$tmp/config.h" $ac_file
56026     fi
56027   else
56028     echo "/* $configure_input  */"
56029     cat "$ac_result"
56030   fi
56031   rm -f "$tmp/out12"
56032 # Compute $ac_file's index in $config_headers.
56033 _am_stamp_count=1
56034 for _am_header in $config_headers :; do
56035   case $_am_header in
56036     $ac_file | $ac_file:* )
56037       break ;;
56038     * )
56039       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
56040   esac
56041 done
56042 echo "timestamp for $ac_file" >`$as_dirname $ac_file ||
56043 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
56044          X$ac_file : 'X\(//\)[^/]' \| \
56045          X$ac_file : 'X\(//\)$' \| \
56046          X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
56047 echo X$ac_file |
56048     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
56049             s//\1/
56050             q
56051           }
56052           /^X\(\/\/\)[^/].*/{
56053             s//\1/
56054             q
56055           }
56056           /^X\(\/\/\)$/{
56057             s//\1/
56058             q
56059           }
56060           /^X\(\/\).*/{
56061             s//\1/
56062             q
56063           }
56064           s/.*/./; q'`/stamp-h$_am_stamp_count
56065  ;;
56066
56067   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
56068 echo "$as_me: executing $ac_file commands" >&6;}
56069  ;;
56070   esac
56071
56072
56073   case $ac_file$ac_mode in
56074     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
56075   # Strip MF so we end up with the name of the file.
56076   mf=`echo "$mf" | sed -e 's/:.*$//'`
56077   # Check whether this is an Automake generated Makefile or not.
56078   # We used to match only the files named `Makefile.in', but
56079   # some people rename them; so instead we look at the file content.
56080   # Grep'ing the first line is not enough: some people post-process
56081   # each Makefile.in and add a new line on top of each file to say so.
56082   # So let's grep whole file.
56083   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
56084     dirpart=`$as_dirname "$mf" ||
56085 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
56086          X"$mf" : 'X\(//\)[^/]' \| \
56087          X"$mf" : 'X\(//\)$' \| \
56088          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
56089 echo X"$mf" |
56090     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
56091             s//\1/
56092             q
56093           }
56094           /^X\(\/\/\)[^/].*/{
56095             s//\1/
56096             q
56097           }
56098           /^X\(\/\/\)$/{
56099             s//\1/
56100             q
56101           }
56102           /^X\(\/\).*/{
56103             s//\1/
56104             q
56105           }
56106           s/.*/./; q'`
56107   else
56108     continue
56109   fi
56110   # Extract the definition of DEPDIR, am__include, and am__quote
56111   # from the Makefile without running `make'.
56112   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
56113   test -z "$DEPDIR" && continue
56114   am__include=`sed -n 's/^am__include = //p' < "$mf"`
56115   test -z "am__include" && continue
56116   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
56117   # When using ansi2knr, U may be empty or an underscore; expand it
56118   U=`sed -n 's/^U = //p' < "$mf"`
56119   # Find all dependency output files, they are included files with
56120   # $(DEPDIR) in their names.  We invoke sed twice because it is the
56121   # simplest approach to changing $(DEPDIR) to its actual value in the
56122   # expansion.
56123   for file in `sed -n "
56124     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
56125        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
56126     # Make sure the directory exists.
56127     test -f "$dirpart/$file" && continue
56128     fdir=`$as_dirname "$file" ||
56129 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
56130          X"$file" : 'X\(//\)[^/]' \| \
56131          X"$file" : 'X\(//\)$' \| \
56132          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
56133 echo X"$file" |
56134     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
56135             s//\1/
56136             q
56137           }
56138           /^X\(\/\/\)[^/].*/{
56139             s//\1/
56140             q
56141           }
56142           /^X\(\/\/\)$/{
56143             s//\1/
56144             q
56145           }
56146           /^X\(\/\).*/{
56147             s//\1/
56148             q
56149           }
56150           s/.*/./; q'`
56151     { if $as_mkdir_p; then
56152     test -d $dirpart/$fdir || mkdir -p $dirpart/$fdir
56153   else
56154     as_dir=$dirpart/$fdir
56155     as_dirs=
56156     while test ! -d "$as_dir"; do
56157       as_dirs="$as_dir $as_dirs"
56158       as_dir=`$as_dirname "$as_dir" ||
56159 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
56160          X"$as_dir" : 'X\(//\)[^/]' \| \
56161          X"$as_dir" : 'X\(//\)$' \| \
56162          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
56163 echo X"$as_dir" |
56164     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
56165             s//\1/
56166             q
56167           }
56168           /^X\(\/\/\)[^/].*/{
56169             s//\1/
56170             q
56171           }
56172           /^X\(\/\/\)$/{
56173             s//\1/
56174             q
56175           }
56176           /^X\(\/\).*/{
56177             s//\1/
56178             q
56179           }
56180           s/.*/./; q'`
56181     done
56182     test ! -n "$as_dirs" || mkdir $as_dirs
56183   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
56184 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
56185    { (exit 1); exit 1; }; }; }
56186     # echo "creating $dirpart/$file"
56187     echo '# dummy' > "$dirpart/$file"
56188   done
56189 done
56190  ;;
56191     "default-1":C)
56192     for ac_file in $CONFIG_FILES; do
56193       # Support "outfile[:infile[:infile...]]"
56194       case "$ac_file" in
56195         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
56196       esac
56197       # PO directories have a Makefile.in generated from Makefile.in.in.
56198       case "$ac_file" in */Makefile.in)
56199         # Adjust a relative srcdir.
56200         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
56201         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
56202         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
56203         # In autoconf-2.13 it is called $ac_given_srcdir.
56204         # In autoconf-2.50 it is called $srcdir.
56205         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
56206         case "$ac_given_srcdir" in
56207           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
56208           /*) top_srcdir="$ac_given_srcdir" ;;
56209           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
56210         esac
56211         # Treat a directory as a PO directory if and only if it has a
56212         # POTFILES.in file. This allows packages to have multiple PO
56213         # directories under different names or in different locations.
56214         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
56215           rm -f "$ac_dir/POTFILES"
56216           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
56217           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
56218           POMAKEFILEDEPS="POTFILES.in"
56219           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
56220           # on $ac_dir but don't depend on user-specified configuration
56221           # parameters.
56222           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
56223             # The LINGUAS file contains the set of available languages.
56224             if test -n "$OBSOLETE_ALL_LINGUAS"; then
56225               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
56226             fi
56227             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
56228             # Hide the ALL_LINGUAS assigment from automake.
56229             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
56230             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
56231           else
56232             # The set of available languages was given in configure.in.
56233             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
56234           fi
56235           # Compute POFILES
56236           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
56237           # Compute UPDATEPOFILES
56238           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
56239           # Compute DUMMYPOFILES
56240           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
56241           # Compute GMOFILES
56242           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
56243           case "$ac_given_srcdir" in
56244             .) srcdirpre= ;;
56245             *) srcdirpre='$(srcdir)/' ;;
56246           esac
56247           POFILES=
56248           UPDATEPOFILES=
56249           DUMMYPOFILES=
56250           GMOFILES=
56251           for lang in $ALL_LINGUAS; do
56252             POFILES="$POFILES $srcdirpre$lang.po"
56253             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
56254             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
56255             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
56256           done
56257           # CATALOGS depends on both $ac_dir and the user's LINGUAS
56258           # environment variable.
56259           INST_LINGUAS=
56260           if test -n "$ALL_LINGUAS"; then
56261             for presentlang in $ALL_LINGUAS; do
56262               useit=no
56263               if test "%UNSET%" != "$LINGUAS"; then
56264                 desiredlanguages="$LINGUAS"
56265               else
56266                 desiredlanguages="$ALL_LINGUAS"
56267               fi
56268               for desiredlang in $desiredlanguages; do
56269                 # Use the presentlang catalog if desiredlang is
56270                 #   a. equal to presentlang, or
56271                 #   b. a variant of presentlang (because in this case,
56272                 #      presentlang can be used as a fallback for messages
56273                 #      which are not translated in the desiredlang catalog).
56274                 case "$desiredlang" in
56275                   "$presentlang"*) useit=yes;;
56276                 esac
56277               done
56278               if test $useit = yes; then
56279                 INST_LINGUAS="$INST_LINGUAS $presentlang"
56280               fi
56281             done
56282           fi
56283           CATALOGS=
56284           if test -n "$INST_LINGUAS"; then
56285             for lang in $INST_LINGUAS; do
56286               CATALOGS="$CATALOGS $lang.gmo"
56287             done
56288           fi
56289           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
56290           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"
56291           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
56292             if test -f "$f"; then
56293               case "$f" in
56294                 *.orig | *.bak | *~) ;;
56295                 *) cat "$f" >> "$ac_dir/Makefile" ;;
56296               esac
56297             fi
56298           done
56299         fi
56300         ;;
56301       esac
56302     done ;;
56303
56304   esac
56305 done # for ac_tag
56306
56307
56308 { (exit 0); exit 0; }
56309 _ACEOF
56310 chmod +x $CONFIG_STATUS
56311 ac_clean_files=$ac_clean_files_save
56312
56313
56314 # configure is writing to config.log, and then calls config.status.
56315 # config.status does its own redirection, appending to config.log.
56316 # Unfortunately, on DOS this fails, as config.log is still kept open
56317 # by configure, so config.status won't be able to write to it; its
56318 # output is simply discarded.  So we exec the FD to /dev/null,
56319 # effectively closing config.log, so it can be properly (re)opened and
56320 # appended to by config.status.  When coming back to configure, we
56321 # need to make the FD available again.
56322 if test "$no_create" != yes; then
56323   ac_cs_success=:
56324   ac_config_status_args=
56325   test "$silent" = yes &&
56326     ac_config_status_args="$ac_config_status_args --quiet"
56327   exec 5>/dev/null
56328   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
56329   exec 5>>config.log
56330   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
56331   # would make configure fail if this is the last instruction.
56332   $ac_cs_success || { (exit 1); exit 1; }
56333 fi
56334