]> git.cworth.org Git - tar/blob - configure
Imported Upstream version 1.21
[tar] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for GNU tar 1.21.
4 #
5 # Report bugs to <bug-tar@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 more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18   emulate sh
19   NULLCMD=:
20   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23   setopt NO_GLOB_SUBST
24 else
25   case `(set -o) 2>/dev/null` in
26   *posix*) set -o posix ;;
27 esac
28
29 fi
30
31
32
33
34 # PATH needs CR
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42 # The user is always right.
43 if test "${PATH_SEPARATOR+set}" != set; then
44   echo "#! /bin/sh" >conf$$.sh
45   echo  "exit 0"   >>conf$$.sh
46   chmod +x conf$$.sh
47   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
48     PATH_SEPARATOR=';'
49   else
50     PATH_SEPARATOR=:
51   fi
52   rm -f conf$$.sh
53 fi
54
55 # Support unset when possible.
56 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
57   as_unset=unset
58 else
59   as_unset=false
60 fi
61
62
63 # IFS
64 # We need space, tab and new line, in precisely that order.  Quoting is
65 # there to prevent editors from complaining about space-tab.
66 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
67 # splitting by setting IFS to empty value.)
68 as_nl='
69 '
70 IFS=" ""        $as_nl"
71
72 # Find who we are.  Look in the path if we contain no directory separator.
73 case $0 in
74   *[\\/]* ) as_myself=$0 ;;
75   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
76 for as_dir in $PATH
77 do
78   IFS=$as_save_IFS
79   test -z "$as_dir" && as_dir=.
80   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
81 done
82 IFS=$as_save_IFS
83
84      ;;
85 esac
86 # We did not find ourselves, most probably we were run as `sh COMMAND'
87 # in which case we are not to be found in the path.
88 if test "x$as_myself" = x; then
89   as_myself=$0
90 fi
91 if test ! -f "$as_myself"; then
92   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
93   { (exit 1); exit 1; }
94 fi
95
96 # Work around bugs in pre-3.0 UWIN ksh.
97 for as_var in ENV MAIL MAILPATH
98 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
99 done
100 PS1='$ '
101 PS2='> '
102 PS4='+ '
103
104 # NLS nuisances.
105 for as_var in \
106   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108   LC_TELEPHONE LC_TIME
109 do
110   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111     eval $as_var=C; export $as_var
112   else
113     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
114   fi
115 done
116
117 # Required to use basename.
118 if expr a : '\(a\)' >/dev/null 2>&1 &&
119    test "X`expr 00001 : '.*\(...\)'`" = X001; then
120   as_expr=expr
121 else
122   as_expr=false
123 fi
124
125 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126   as_basename=basename
127 else
128   as_basename=false
129 fi
130
131
132 # Name of the executable.
133 as_me=`$as_basename -- "$0" ||
134 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135          X"$0" : 'X\(//\)$' \| \
136          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
137 echo X/"$0" |
138     sed '/^.*\/\([^/][^/]*\)\/*$/{
139             s//\1/
140             q
141           }
142           /^X\/\(\/\/\)$/{
143             s//\1/
144             q
145           }
146           /^X\/\(\/\).*/{
147             s//\1/
148             q
149           }
150           s/.*/./; q'`
151
152 # CDPATH.
153 $as_unset CDPATH
154
155
156 if test "x$CONFIG_SHELL" = x; then
157   if (eval ":") 2>/dev/null; then
158   as_have_required=yes
159 else
160   as_have_required=no
161 fi
162
163   if test $as_have_required = yes &&     (eval ":
164 (as_func_return () {
165   (exit \$1)
166 }
167 as_func_success () {
168   as_func_return 0
169 }
170 as_func_failure () {
171   as_func_return 1
172 }
173 as_func_ret_success () {
174   return 0
175 }
176 as_func_ret_failure () {
177   return 1
178 }
179
180 exitcode=0
181 if as_func_success; then
182   :
183 else
184   exitcode=1
185   echo as_func_success failed.
186 fi
187
188 if as_func_failure; then
189   exitcode=1
190   echo as_func_failure succeeded.
191 fi
192
193 if as_func_ret_success; then
194   :
195 else
196   exitcode=1
197   echo as_func_ret_success failed.
198 fi
199
200 if as_func_ret_failure; then
201   exitcode=1
202   echo as_func_ret_failure succeeded.
203 fi
204
205 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
206   :
207 else
208   exitcode=1
209   echo positional parameters were not saved.
210 fi
211
212 test \$exitcode = 0) || { (exit 1); exit 1; }
213
214 (
215   as_lineno_1=\$LINENO
216   as_lineno_2=\$LINENO
217   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219 ") 2> /dev/null; then
220   :
221 else
222   as_candidate_shells=
223     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 do
226   IFS=$as_save_IFS
227   test -z "$as_dir" && as_dir=.
228   case $as_dir in
229          /*)
230            for as_base in sh bash ksh sh5; do
231              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
232            done;;
233        esac
234 done
235 IFS=$as_save_IFS
236
237
238       for as_shell in $as_candidate_shells $SHELL; do
239          # Try only shells that exist, to save several forks.
240          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241                 { ("$as_shell") 2> /dev/null <<\_ASEOF
242 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243   emulate sh
244   NULLCMD=:
245   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246   # is contrary to our usage.  Disable this feature.
247   alias -g '${1+"$@"}'='"$@"'
248   setopt NO_GLOB_SUBST
249 else
250   case `(set -o) 2>/dev/null` in
251   *posix*) set -o posix ;;
252 esac
253
254 fi
255
256
257 :
258 _ASEOF
259 }; then
260   CONFIG_SHELL=$as_shell
261                as_have_required=yes
262                if { "$as_shell" 2> /dev/null <<\_ASEOF
263 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264   emulate sh
265   NULLCMD=:
266   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267   # is contrary to our usage.  Disable this feature.
268   alias -g '${1+"$@"}'='"$@"'
269   setopt NO_GLOB_SUBST
270 else
271   case `(set -o) 2>/dev/null` in
272   *posix*) set -o posix ;;
273 esac
274
275 fi
276
277
278 :
279 (as_func_return () {
280   (exit $1)
281 }
282 as_func_success () {
283   as_func_return 0
284 }
285 as_func_failure () {
286   as_func_return 1
287 }
288 as_func_ret_success () {
289   return 0
290 }
291 as_func_ret_failure () {
292   return 1
293 }
294
295 exitcode=0
296 if as_func_success; then
297   :
298 else
299   exitcode=1
300   echo as_func_success failed.
301 fi
302
303 if as_func_failure; then
304   exitcode=1
305   echo as_func_failure succeeded.
306 fi
307
308 if as_func_ret_success; then
309   :
310 else
311   exitcode=1
312   echo as_func_ret_success failed.
313 fi
314
315 if as_func_ret_failure; then
316   exitcode=1
317   echo as_func_ret_failure succeeded.
318 fi
319
320 if ( set x; as_func_ret_success y && test x = "$1" ); then
321   :
322 else
323   exitcode=1
324   echo positional parameters were not saved.
325 fi
326
327 test $exitcode = 0) || { (exit 1); exit 1; }
328
329 (
330   as_lineno_1=$LINENO
331   as_lineno_2=$LINENO
332   test "x$as_lineno_1" != "x$as_lineno_2" &&
333   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
334
335 _ASEOF
336 }; then
337   break
338 fi
339
340 fi
341
342       done
343
344       if test "x$CONFIG_SHELL" != x; then
345   for as_var in BASH_ENV ENV
346         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347         done
348         export CONFIG_SHELL
349         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
350 fi
351
352
353     if test $as_have_required = no; then
354   echo This script requires a shell more modern than all the
355       echo shells that I found on your system.  Please install a
356       echo modern shell, or manually run the script under such a
357       echo shell if you do have one.
358       { (exit 1); exit 1; }
359 fi
360
361
362 fi
363
364 fi
365
366
367
368 (eval "as_func_return () {
369   (exit \$1)
370 }
371 as_func_success () {
372   as_func_return 0
373 }
374 as_func_failure () {
375   as_func_return 1
376 }
377 as_func_ret_success () {
378   return 0
379 }
380 as_func_ret_failure () {
381   return 1
382 }
383
384 exitcode=0
385 if as_func_success; then
386   :
387 else
388   exitcode=1
389   echo as_func_success failed.
390 fi
391
392 if as_func_failure; then
393   exitcode=1
394   echo as_func_failure succeeded.
395 fi
396
397 if as_func_ret_success; then
398   :
399 else
400   exitcode=1
401   echo as_func_ret_success failed.
402 fi
403
404 if as_func_ret_failure; then
405   exitcode=1
406   echo as_func_ret_failure succeeded.
407 fi
408
409 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
410   :
411 else
412   exitcode=1
413   echo positional parameters were not saved.
414 fi
415
416 test \$exitcode = 0") || {
417   echo No shell found that supports shell functions.
418   echo Please tell autoconf@gnu.org about your system,
419   echo including any error possibly output before this
420   echo message
421 }
422
423
424
425   as_lineno_1=$LINENO
426   as_lineno_2=$LINENO
427   test "x$as_lineno_1" != "x$as_lineno_2" &&
428   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
429
430   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431   # uniformly replaced by the line number.  The first 'sed' inserts a
432   # line-number line after each line using $LINENO; the second 'sed'
433   # does the real work.  The second script uses 'N' to pair each
434   # line-number line with the line containing $LINENO, and appends
435   # trailing '-' during substitution so that $LINENO is not a special
436   # case at line end.
437   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438   # scripts with optimization help from Paolo Bonzini.  Blame Lee
439   # E. McMahon (1931-1989) for sed's syntax.  :-)
440   sed -n '
441     p
442     /[$]LINENO/=
443   ' <$as_myself |
444     sed '
445       s/[$]LINENO.*/&-/
446       t lineno
447       b
448       :lineno
449       N
450       :loop
451       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
452       t loop
453       s/-\n.*//
454     ' >$as_me.lineno &&
455   chmod +x "$as_me.lineno" ||
456     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457    { (exit 1); exit 1; }; }
458
459   # Don't try to exec as it changes $[0], causing all sort of problems
460   # (the dirname of $[0] is not the place where we might find the
461   # original and so on.  Autoconf is especially sensitive to this).
462   . "./$as_me.lineno"
463   # Exit status is that of the last command.
464   exit
465 }
466
467
468 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469   as_dirname=dirname
470 else
471   as_dirname=false
472 fi
473
474 ECHO_C= ECHO_N= ECHO_T=
475 case `echo -n x` in
476 -n*)
477   case `echo 'x\c'` in
478   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
479   *)   ECHO_C='\c';;
480   esac;;
481 *)
482   ECHO_N='-n';;
483 esac
484
485 if expr a : '\(a\)' >/dev/null 2>&1 &&
486    test "X`expr 00001 : '.*\(...\)'`" = X001; then
487   as_expr=expr
488 else
489   as_expr=false
490 fi
491
492 rm -f conf$$ conf$$.exe conf$$.file
493 if test -d conf$$.dir; then
494   rm -f conf$$.dir/conf$$.file
495 else
496   rm -f conf$$.dir
497   mkdir conf$$.dir
498 fi
499 echo >conf$$.file
500 if ln -s conf$$.file conf$$ 2>/dev/null; then
501   as_ln_s='ln -s'
502   # ... but there are two gotchas:
503   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505   # In both cases, we have to default to `cp -p'.
506   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
507     as_ln_s='cp -p'
508 elif ln conf$$.file conf$$ 2>/dev/null; then
509   as_ln_s=ln
510 else
511   as_ln_s='cp -p'
512 fi
513 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514 rmdir conf$$.dir 2>/dev/null
515
516 if mkdir -p . 2>/dev/null; then
517   as_mkdir_p=:
518 else
519   test -d ./-p && rmdir ./-p
520   as_mkdir_p=false
521 fi
522
523 if test -x / >/dev/null 2>&1; then
524   as_test_x='test -x'
525 else
526   if ls -dL / >/dev/null 2>&1; then
527     as_ls_L_option=L
528   else
529     as_ls_L_option=
530   fi
531   as_test_x='
532     eval sh -c '\''
533       if test -d "$1"; then
534         test -d "$1/.";
535       else
536         case $1 in
537         -*)set "./$1";;
538         esac;
539         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540         ???[sx]*):;;*)false;;esac;fi
541     '\'' sh
542   '
543 fi
544 as_executable_p=$as_test_x
545
546 # Sed expression to map a string onto a valid CPP name.
547 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
548
549 # Sed expression to map a string onto a valid variable name.
550 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
551
552
553
554 exec 7<&0 </dev/null 6>&1
555
556 # Name of the host.
557 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
558 # so uname gets run too.
559 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
560
561 #
562 # Initializations.
563 #
564 ac_default_prefix=/usr/local
565 ac_clean_files=
566 ac_config_libobj_dir=.
567 LIBOBJS=
568 cross_compiling=no
569 subdirs=
570 MFLAGS=
571 MAKEFLAGS=
572 SHELL=${CONFIG_SHELL-/bin/sh}
573
574 # Identity of this package.
575 PACKAGE_NAME='GNU tar'
576 PACKAGE_TARNAME='tar'
577 PACKAGE_VERSION='1.21'
578 PACKAGE_STRING='GNU tar 1.21'
579 PACKAGE_BUGREPORT='bug-tar@gnu.org'
580
581 ac_unique_file="src/tar.c"
582 # Factoring default headers for most tests.
583 ac_includes_default="\
584 #include <stdio.h>
585 #ifdef HAVE_SYS_TYPES_H
586 # include <sys/types.h>
587 #endif
588 #ifdef HAVE_SYS_STAT_H
589 # include <sys/stat.h>
590 #endif
591 #ifdef STDC_HEADERS
592 # include <stdlib.h>
593 # include <stddef.h>
594 #else
595 # ifdef HAVE_STDLIB_H
596 #  include <stdlib.h>
597 # endif
598 #endif
599 #ifdef HAVE_STRING_H
600 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
601 #  include <memory.h>
602 # endif
603 # include <string.h>
604 #endif
605 #ifdef HAVE_STRINGS_H
606 # include <strings.h>
607 #endif
608 #ifdef HAVE_INTTYPES_H
609 # include <inttypes.h>
610 #endif
611 #ifdef HAVE_STDINT_H
612 # include <stdint.h>
613 #endif
614 #ifdef HAVE_UNISTD_H
615 # include <unistd.h>
616 #endif"
617
618 ac_header_list=
619 ac_func_list=
620 gt_needs=
621 ac_subst_vars='SHELL
622 PATH_SEPARATOR
623 PACKAGE_NAME
624 PACKAGE_TARNAME
625 PACKAGE_VERSION
626 PACKAGE_STRING
627 PACKAGE_BUGREPORT
628 exec_prefix
629 prefix
630 program_transform_name
631 bindir
632 sbindir
633 libexecdir
634 datarootdir
635 datadir
636 sysconfdir
637 sharedstatedir
638 localstatedir
639 includedir
640 oldincludedir
641 docdir
642 infodir
643 htmldir
644 dvidir
645 pdfdir
646 psdir
647 libdir
648 localedir
649 mandir
650 DEFS
651 ECHO_C
652 ECHO_N
653 ECHO_T
654 LIBS
655 build_alias
656 host_alias
657 target_alias
658 INSTALL_PROGRAM
659 INSTALL_SCRIPT
660 INSTALL_DATA
661 am__isrc
662 CYGPATH_W
663 PACKAGE
664 VERSION
665 ACLOCAL
666 AUTOCONF
667 AUTOMAKE
668 AUTOHEADER
669 MAKEINFO
670 install_sh
671 STRIP
672 INSTALL_STRIP_PROGRAM
673 mkdir_p
674 AWK
675 SET_MAKE
676 am__leading_dot
677 AMTAR
678 am__tar
679 am__untar
680 CC
681 CFLAGS
682 LDFLAGS
683 CPPFLAGS
684 ac_ct_CC
685 EXEEXT
686 OBJEXT
687 DEPDIR
688 am__include
689 am__quote
690 AMDEP_TRUE
691 AMDEP_FALSE
692 AMDEPBACKSLASH
693 CCDEPMODE
694 am__fastdepCC_TRUE
695 am__fastdepCC_FALSE
696 RANLIB
697 YACC
698 YFLAGS
699 CPP
700 GREP
701 EGREP
702 STDBOOL_H
703 HAVE__BOOL
704 GL_COND_LIBTOOL_TRUE
705 GL_COND_LIBTOOL_FALSE
706 ALLOCA
707 ALLOCA_H
708 GETOPT_H
709 GNULIB_CHOWN
710 GNULIB_CLOSE
711 GNULIB_DUP2
712 GNULIB_ENVIRON
713 GNULIB_EUIDACCESS
714 GNULIB_FCHDIR
715 GNULIB_FSYNC
716 GNULIB_FTRUNCATE
717 GNULIB_GETCWD
718 GNULIB_GETDOMAINNAME
719 GNULIB_GETDTABLESIZE
720 GNULIB_GETHOSTNAME
721 GNULIB_GETLOGIN_R
722 GNULIB_GETPAGESIZE
723 GNULIB_GETUSERSHELL
724 GNULIB_LCHOWN
725 GNULIB_LSEEK
726 GNULIB_READLINK
727 GNULIB_SLEEP
728 GNULIB_UNISTD_H_SIGPIPE
729 GNULIB_WRITE
730 HAVE_DUP2
731 HAVE_EUIDACCESS
732 HAVE_FSYNC
733 HAVE_FTRUNCATE
734 HAVE_GETDOMAINNAME
735 HAVE_GETDTABLESIZE
736 HAVE_GETHOSTNAME
737 HAVE_GETPAGESIZE
738 HAVE_GETUSERSHELL
739 HAVE_READLINK
740 HAVE_SLEEP
741 HAVE_DECL_ENVIRON
742 HAVE_DECL_GETLOGIN_R
743 HAVE_OS_H
744 HAVE_SYS_PARAM_H
745 REPLACE_CHOWN
746 REPLACE_CLOSE
747 REPLACE_FCHDIR
748 REPLACE_GETCWD
749 REPLACE_GETPAGESIZE
750 REPLACE_LCHOWN
751 REPLACE_LSEEK
752 REPLACE_WRITE
753 UNISTD_H_HAVE_WINSOCK2_H
754 LIB_CLOCK_GETTIME
755 GNULIB_DIRFD
756 HAVE_DECL_DIRFD
757 DIRENT_H
758 INCLUDE_NEXT
759 PRAGMA_SYSTEM_HEADER
760 NEXT_DIRENT_H
761 build
762 build_cpu
763 build_vendor
764 build_os
765 host
766 host_cpu
767 host_vendor
768 host_os
769 NEXT_ERRNO_H
770 ERRNO_H
771 EMULTIHOP_HIDDEN
772 EMULTIHOP_VALUE
773 ENOLINK_HIDDEN
774 ENOLINK_VALUE
775 EOVERFLOW_HIDDEN
776 EOVERFLOW_VALUE
777 GNULIB_OPEN
778 REPLACE_OPEN
779 GNULIB_FPRINTF
780 GNULIB_FPRINTF_POSIX
781 GNULIB_PRINTF
782 GNULIB_PRINTF_POSIX
783 GNULIB_SNPRINTF
784 GNULIB_SPRINTF_POSIX
785 GNULIB_VFPRINTF
786 GNULIB_VFPRINTF_POSIX
787 GNULIB_VPRINTF
788 GNULIB_VPRINTF_POSIX
789 GNULIB_VSNPRINTF
790 GNULIB_VSPRINTF_POSIX
791 GNULIB_VASPRINTF
792 GNULIB_OBSTACK_PRINTF
793 GNULIB_OBSTACK_PRINTF_POSIX
794 GNULIB_FOPEN
795 GNULIB_FREOPEN
796 GNULIB_FSEEK
797 GNULIB_FSEEKO
798 GNULIB_FTELL
799 GNULIB_FTELLO
800 GNULIB_FFLUSH
801 GNULIB_FCLOSE
802 GNULIB_FPUTC
803 GNULIB_PUTC
804 GNULIB_PUTCHAR
805 GNULIB_FPUTS
806 GNULIB_PUTS
807 GNULIB_FWRITE
808 GNULIB_GETDELIM
809 GNULIB_GETLINE
810 GNULIB_PERROR
811 GNULIB_STDIO_H_SIGPIPE
812 REPLACE_STDIO_WRITE_FUNCS
813 REPLACE_FPRINTF
814 REPLACE_VFPRINTF
815 REPLACE_PRINTF
816 REPLACE_VPRINTF
817 REPLACE_SNPRINTF
818 HAVE_DECL_SNPRINTF
819 REPLACE_VSNPRINTF
820 HAVE_DECL_VSNPRINTF
821 REPLACE_SPRINTF
822 REPLACE_VSPRINTF
823 HAVE_VASPRINTF
824 REPLACE_VASPRINTF
825 HAVE_DECL_OBSTACK_PRINTF
826 REPLACE_OBSTACK_PRINTF
827 REPLACE_FOPEN
828 REPLACE_FREOPEN
829 HAVE_FSEEKO
830 REPLACE_FSEEKO
831 REPLACE_FSEEK
832 HAVE_FTELLO
833 REPLACE_FTELLO
834 REPLACE_FTELL
835 REPLACE_FFLUSH
836 REPLACE_FCLOSE
837 HAVE_DECL_GETDELIM
838 HAVE_DECL_GETLINE
839 REPLACE_GETLINE
840 REPLACE_PERROR
841 NEXT_FCNTL_H
842 FCNTL_H
843 NEXT_FLOAT_H
844 FLOAT_H
845 FNMATCH_H
846 LIBINTL
847 LTLIBINTL
848 NEXT_SYS_TIME_H
849 HAVE_SYS_TIME_H
850 HAVE_STRUCT_TIMEVAL
851 REPLACE_GETTIMEOFDAY
852 SYS_TIME_H
853 HAVE_LONG_LONG_INT
854 HAVE_UNSIGNED_LONG_LONG_INT
855 HAVE_INTTYPES_H
856 HAVE_SYS_TYPES_H
857 NEXT_STDINT_H
858 HAVE_STDINT_H
859 HAVE_SYS_INTTYPES_H
860 HAVE_SYS_BITYPES_H
861 BITSIZEOF_PTRDIFF_T
862 BITSIZEOF_SIG_ATOMIC_T
863 BITSIZEOF_SIZE_T
864 BITSIZEOF_WCHAR_T
865 BITSIZEOF_WINT_T
866 HAVE_SIGNED_SIG_ATOMIC_T
867 HAVE_SIGNED_WCHAR_T
868 HAVE_SIGNED_WINT_T
869 PTRDIFF_T_SUFFIX
870 SIG_ATOMIC_T_SUFFIX
871 SIZE_T_SUFFIX
872 WCHAR_T_SUFFIX
873 WINT_T_SUFFIX
874 STDINT_H
875 PRI_MACROS_BROKEN
876 GNULIB_IMAXABS
877 GNULIB_IMAXDIV
878 GNULIB_STRTOIMAX
879 GNULIB_STRTOUMAX
880 HAVE_DECL_IMAXABS
881 HAVE_DECL_IMAXDIV
882 HAVE_DECL_STRTOIMAX
883 HAVE_DECL_STRTOUMAX
884 NEXT_INTTYPES_H
885 PRIPTR_PREFIX
886 INT32_MAX_LT_INTMAX_MAX
887 INT64_MAX_EQ_LONG_MAX
888 UINT32_MAX_LT_UINTMAX_MAX
889 UINT64_MAX_EQ_ULONG_MAX
890 INTTYPES_H
891 GLIBC21
892 LOCALCHARSET_TESTS_ENVIRONMENT
893 GNULIB_LCHMOD
894 GNULIB_LSTAT
895 HAVE_LCHMOD
896 REPLACE_LSTAT
897 REPLACE_MKDIR
898 HAVE_MALLOC_POSIX
899 GNULIB_MALLOC_POSIX
900 GNULIB_REALLOC_POSIX
901 GNULIB_CALLOC_POSIX
902 GNULIB_ATOLL
903 GNULIB_GETLOADAVG
904 GNULIB_GETSUBOPT
905 GNULIB_MKDTEMP
906 GNULIB_MKSTEMP
907 GNULIB_PUTENV
908 GNULIB_RANDOM_R
909 GNULIB_RPMATCH
910 GNULIB_SETENV
911 GNULIB_STRTOD
912 GNULIB_STRTOLL
913 GNULIB_STRTOULL
914 GNULIB_UNSETENV
915 HAVE_ATOLL
916 HAVE_CALLOC_POSIX
917 HAVE_GETSUBOPT
918 HAVE_MKDTEMP
919 HAVE_REALLOC_POSIX
920 HAVE_RANDOM_R
921 HAVE_RPMATCH
922 HAVE_SETENV
923 HAVE_STRTOD
924 HAVE_STRTOLL
925 HAVE_STRTOULL
926 HAVE_STRUCT_RANDOM_DATA
927 HAVE_SYS_LOADAVG_H
928 HAVE_UNSETENV
929 HAVE_DECL_GETLOADAVG
930 REPLACE_MKSTEMP
931 REPLACE_PUTENV
932 REPLACE_STRTOD
933 VOID_UNSETENV
934 GNULIB_MEMMEM
935 GNULIB_MEMPCPY
936 GNULIB_MEMRCHR
937 GNULIB_RAWMEMCHR
938 GNULIB_STPCPY
939 GNULIB_STPNCPY
940 GNULIB_STRCHRNUL
941 GNULIB_STRDUP
942 GNULIB_STRNDUP
943 GNULIB_STRNLEN
944 GNULIB_STRPBRK
945 GNULIB_STRSEP
946 GNULIB_STRSTR
947 GNULIB_STRCASESTR
948 GNULIB_STRTOK_R
949 GNULIB_MBSLEN
950 GNULIB_MBSNLEN
951 GNULIB_MBSCHR
952 GNULIB_MBSRCHR
953 GNULIB_MBSSTR
954 GNULIB_MBSCASECMP
955 GNULIB_MBSNCASECMP
956 GNULIB_MBSPCASECMP
957 GNULIB_MBSCASESTR
958 GNULIB_MBSCSPN
959 GNULIB_MBSPBRK
960 GNULIB_MBSSPN
961 GNULIB_MBSSEP
962 GNULIB_MBSTOK_R
963 GNULIB_STRERROR
964 GNULIB_STRSIGNAL
965 GNULIB_STRVERSCMP
966 HAVE_DECL_MEMMEM
967 HAVE_MEMPCPY
968 HAVE_DECL_MEMRCHR
969 HAVE_RAWMEMCHR
970 HAVE_STPCPY
971 HAVE_STPNCPY
972 HAVE_STRCHRNUL
973 HAVE_DECL_STRDUP
974 HAVE_STRNDUP
975 HAVE_DECL_STRNDUP
976 HAVE_DECL_STRNLEN
977 HAVE_STRPBRK
978 HAVE_STRSEP
979 HAVE_STRCASESTR
980 HAVE_DECL_STRTOK_R
981 HAVE_DECL_STRERROR
982 HAVE_DECL_STRSIGNAL
983 HAVE_STRVERSCMP
984 REPLACE_MEMMEM
985 REPLACE_STRDUP
986 REPLACE_STRSTR
987 REPLACE_STRCASESTR
988 REPLACE_STRERROR
989 REPLACE_STRSIGNAL
990 STDARG_H
991 NEXT_STDARG_H
992 NEXT_STDIO_H
993 NEXT_STDLIB_H
994 HAVE_STRCASECMP
995 HAVE_DECL_STRNCASECMP
996 NEXT_STRING_H
997 NEXT_STRINGS_H
998 HAVE_LSTAT
999 NEXT_SYS_STAT_H
1000 SYS_STAT_H
1001 NEXT_SYSEXITS_H
1002 HAVE_SYSEXITS_H
1003 SYSEXITS_H
1004 REPLACE_LOCALTIME_R
1005 REPLACE_NANOSLEEP
1006 REPLACE_STRPTIME
1007 REPLACE_TIMEGM
1008 NEXT_TIME_H
1009 TIME_H_DEFINES_STRUCT_TIMESPEC
1010 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
1011 NEXT_UNISTD_H
1012 HAVE_UNISTD_H
1013 GNULIB_WCWIDTH
1014 HAVE_DECL_WCWIDTH
1015 REPLACE_WCWIDTH
1016 WCHAR_H
1017 HAVE_WINT_T
1018 HAVE_WCHAR_H
1019 NEXT_WCHAR_H
1020 HAVE_ISWCNTRL
1021 NEXT_WCTYPE_H
1022 HAVE_WCTYPE_H
1023 WCTYPE_H
1024 REPLACE_ISWCNTRL
1025 LIBTAR_LIBDEPS
1026 LIBTAR_LTLIBDEPS
1027 LIB_SETSOCKOPT
1028 PU_RMT_PROG
1029 DEFAULT_RMT_DIR
1030 DEFAULT_RMT_COMMAND
1031 LIBOBJS
1032 DEFAULT_ARCHIVE_FORMAT
1033 DEFAULT_ARCHIVE
1034 DEFAULT_BLOCKING
1035 DEFAULT_QUOTING_STYLE
1036 LIBICONV
1037 LTLIBICONV
1038 USE_NLS
1039 GETTEXT_MACRO_VERSION
1040 MSGFMT
1041 GMSGFMT
1042 MSGFMT_015
1043 GMSGFMT_015
1044 XGETTEXT
1045 XGETTEXT_015
1046 MSGMERGE
1047 XGETTEXT_EXTRA_OPTIONS
1048 INTL_MACOSX_LIBS
1049 INTLLIBS
1050 POSUB
1051 AUTOM4TE
1052 BACKUP_LIBEXEC_SCRIPTS
1053 BACKUP_SBIN_SCRIPTS
1054 BACKUP_SED_COND
1055 LTLIBOBJS
1056 gl_LIBOBJS
1057 gl_LTLIBOBJS
1058 gltests_LIBOBJS
1059 gltests_LTLIBOBJS'
1060 ac_subst_files=''
1061       ac_precious_vars='build_alias
1062 host_alias
1063 target_alias
1064 CC
1065 CFLAGS
1066 LDFLAGS
1067 LIBS
1068 CPPFLAGS
1069 YACC
1070 YFLAGS
1071 CPP
1072 DEFAULT_RMT_DIR
1073 DEFAULT_ARCHIVE_FORMAT
1074 DEFAULT_ARCHIVE
1075 DEFAULT_BLOCKING
1076 DEFAULT_QUOTING_STYLE'
1077
1078
1079 # Initialize some variables set by options.
1080 ac_init_help=
1081 ac_init_version=false
1082 # The variables have the same names as the options, with
1083 # dashes changed to underlines.
1084 cache_file=/dev/null
1085 exec_prefix=NONE
1086 no_create=
1087 no_recursion=
1088 prefix=NONE
1089 program_prefix=NONE
1090 program_suffix=NONE
1091 program_transform_name=s,x,x,
1092 silent=
1093 site=
1094 srcdir=
1095 verbose=
1096 x_includes=NONE
1097 x_libraries=NONE
1098
1099 # Installation directory options.
1100 # These are left unexpanded so users can "make install exec_prefix=/foo"
1101 # and all the variables that are supposed to be based on exec_prefix
1102 # by default will actually change.
1103 # Use braces instead of parens because sh, perl, etc. also accept them.
1104 # (The list follows the same order as the GNU Coding Standards.)
1105 bindir='${exec_prefix}/bin'
1106 sbindir='${exec_prefix}/sbin'
1107 libexecdir='${exec_prefix}/libexec'
1108 datarootdir='${prefix}/share'
1109 datadir='${datarootdir}'
1110 sysconfdir='${prefix}/etc'
1111 sharedstatedir='${prefix}/com'
1112 localstatedir='${prefix}/var'
1113 includedir='${prefix}/include'
1114 oldincludedir='/usr/include'
1115 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1116 infodir='${datarootdir}/info'
1117 htmldir='${docdir}'
1118 dvidir='${docdir}'
1119 pdfdir='${docdir}'
1120 psdir='${docdir}'
1121 libdir='${exec_prefix}/lib'
1122 localedir='${datarootdir}/locale'
1123 mandir='${datarootdir}/man'
1124
1125 ac_prev=
1126 ac_dashdash=
1127 for ac_option
1128 do
1129   # If the previous option needs an argument, assign it.
1130   if test -n "$ac_prev"; then
1131     eval $ac_prev=\$ac_option
1132     ac_prev=
1133     continue
1134   fi
1135
1136   case $ac_option in
1137   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1138   *)    ac_optarg=yes ;;
1139   esac
1140
1141   # Accept the important Cygnus configure options, so we can diagnose typos.
1142
1143   case $ac_dashdash$ac_option in
1144   --)
1145     ac_dashdash=yes ;;
1146
1147   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1148     ac_prev=bindir ;;
1149   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1150     bindir=$ac_optarg ;;
1151
1152   -build | --build | --buil | --bui | --bu)
1153     ac_prev=build_alias ;;
1154   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1155     build_alias=$ac_optarg ;;
1156
1157   -cache-file | --cache-file | --cache-fil | --cache-fi \
1158   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1159     ac_prev=cache_file ;;
1160   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1161   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1162     cache_file=$ac_optarg ;;
1163
1164   --config-cache | -C)
1165     cache_file=config.cache ;;
1166
1167   -datadir | --datadir | --datadi | --datad)
1168     ac_prev=datadir ;;
1169   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1170     datadir=$ac_optarg ;;
1171
1172   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1173   | --dataroo | --dataro | --datar)
1174     ac_prev=datarootdir ;;
1175   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1176   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1177     datarootdir=$ac_optarg ;;
1178
1179   -disable-* | --disable-*)
1180     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1181     # Reject names that are not valid shell variable names.
1182     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1183       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1184    { (exit 1); exit 1; }; }
1185     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1186     eval enable_$ac_feature=no ;;
1187
1188   -docdir | --docdir | --docdi | --doc | --do)
1189     ac_prev=docdir ;;
1190   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1191     docdir=$ac_optarg ;;
1192
1193   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1194     ac_prev=dvidir ;;
1195   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1196     dvidir=$ac_optarg ;;
1197
1198   -enable-* | --enable-*)
1199     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1200     # Reject names that are not valid shell variable names.
1201     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1202       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1203    { (exit 1); exit 1; }; }
1204     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1205     eval enable_$ac_feature=\$ac_optarg ;;
1206
1207   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1208   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1209   | --exec | --exe | --ex)
1210     ac_prev=exec_prefix ;;
1211   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1212   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1213   | --exec=* | --exe=* | --ex=*)
1214     exec_prefix=$ac_optarg ;;
1215
1216   -gas | --gas | --ga | --g)
1217     # Obsolete; use --with-gas.
1218     with_gas=yes ;;
1219
1220   -help | --help | --hel | --he | -h)
1221     ac_init_help=long ;;
1222   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1223     ac_init_help=recursive ;;
1224   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1225     ac_init_help=short ;;
1226
1227   -host | --host | --hos | --ho)
1228     ac_prev=host_alias ;;
1229   -host=* | --host=* | --hos=* | --ho=*)
1230     host_alias=$ac_optarg ;;
1231
1232   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1233     ac_prev=htmldir ;;
1234   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1235   | --ht=*)
1236     htmldir=$ac_optarg ;;
1237
1238   -includedir | --includedir | --includedi | --included | --include \
1239   | --includ | --inclu | --incl | --inc)
1240     ac_prev=includedir ;;
1241   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1242   | --includ=* | --inclu=* | --incl=* | --inc=*)
1243     includedir=$ac_optarg ;;
1244
1245   -infodir | --infodir | --infodi | --infod | --info | --inf)
1246     ac_prev=infodir ;;
1247   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1248     infodir=$ac_optarg ;;
1249
1250   -libdir | --libdir | --libdi | --libd)
1251     ac_prev=libdir ;;
1252   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1253     libdir=$ac_optarg ;;
1254
1255   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1256   | --libexe | --libex | --libe)
1257     ac_prev=libexecdir ;;
1258   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1259   | --libexe=* | --libex=* | --libe=*)
1260     libexecdir=$ac_optarg ;;
1261
1262   -localedir | --localedir | --localedi | --localed | --locale)
1263     ac_prev=localedir ;;
1264   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1265     localedir=$ac_optarg ;;
1266
1267   -localstatedir | --localstatedir | --localstatedi | --localstated \
1268   | --localstate | --localstat | --localsta | --localst | --locals)
1269     ac_prev=localstatedir ;;
1270   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1271   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1272     localstatedir=$ac_optarg ;;
1273
1274   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1275     ac_prev=mandir ;;
1276   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1277     mandir=$ac_optarg ;;
1278
1279   -nfp | --nfp | --nf)
1280     # Obsolete; use --without-fp.
1281     with_fp=no ;;
1282
1283   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1284   | --no-cr | --no-c | -n)
1285     no_create=yes ;;
1286
1287   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1288   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1289     no_recursion=yes ;;
1290
1291   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1292   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1293   | --oldin | --oldi | --old | --ol | --o)
1294     ac_prev=oldincludedir ;;
1295   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1296   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1297   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1298     oldincludedir=$ac_optarg ;;
1299
1300   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1301     ac_prev=prefix ;;
1302   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1303     prefix=$ac_optarg ;;
1304
1305   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1306   | --program-pre | --program-pr | --program-p)
1307     ac_prev=program_prefix ;;
1308   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1309   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1310     program_prefix=$ac_optarg ;;
1311
1312   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1313   | --program-suf | --program-su | --program-s)
1314     ac_prev=program_suffix ;;
1315   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1316   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1317     program_suffix=$ac_optarg ;;
1318
1319   -program-transform-name | --program-transform-name \
1320   | --program-transform-nam | --program-transform-na \
1321   | --program-transform-n | --program-transform- \
1322   | --program-transform | --program-transfor \
1323   | --program-transfo | --program-transf \
1324   | --program-trans | --program-tran \
1325   | --progr-tra | --program-tr | --program-t)
1326     ac_prev=program_transform_name ;;
1327   -program-transform-name=* | --program-transform-name=* \
1328   | --program-transform-nam=* | --program-transform-na=* \
1329   | --program-transform-n=* | --program-transform-=* \
1330   | --program-transform=* | --program-transfor=* \
1331   | --program-transfo=* | --program-transf=* \
1332   | --program-trans=* | --program-tran=* \
1333   | --progr-tra=* | --program-tr=* | --program-t=*)
1334     program_transform_name=$ac_optarg ;;
1335
1336   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1337     ac_prev=pdfdir ;;
1338   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1339     pdfdir=$ac_optarg ;;
1340
1341   -psdir | --psdir | --psdi | --psd | --ps)
1342     ac_prev=psdir ;;
1343   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1344     psdir=$ac_optarg ;;
1345
1346   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1347   | -silent | --silent | --silen | --sile | --sil)
1348     silent=yes ;;
1349
1350   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1351     ac_prev=sbindir ;;
1352   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1353   | --sbi=* | --sb=*)
1354     sbindir=$ac_optarg ;;
1355
1356   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1357   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1358   | --sharedst | --shareds | --shared | --share | --shar \
1359   | --sha | --sh)
1360     ac_prev=sharedstatedir ;;
1361   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1362   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1363   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1364   | --sha=* | --sh=*)
1365     sharedstatedir=$ac_optarg ;;
1366
1367   -site | --site | --sit)
1368     ac_prev=site ;;
1369   -site=* | --site=* | --sit=*)
1370     site=$ac_optarg ;;
1371
1372   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1373     ac_prev=srcdir ;;
1374   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1375     srcdir=$ac_optarg ;;
1376
1377   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1378   | --syscon | --sysco | --sysc | --sys | --sy)
1379     ac_prev=sysconfdir ;;
1380   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1381   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1382     sysconfdir=$ac_optarg ;;
1383
1384   -target | --target | --targe | --targ | --tar | --ta | --t)
1385     ac_prev=target_alias ;;
1386   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1387     target_alias=$ac_optarg ;;
1388
1389   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1390     verbose=yes ;;
1391
1392   -version | --version | --versio | --versi | --vers | -V)
1393     ac_init_version=: ;;
1394
1395   -with-* | --with-*)
1396     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1397     # Reject names that are not valid shell variable names.
1398     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1399       { echo "$as_me: error: invalid package name: $ac_package" >&2
1400    { (exit 1); exit 1; }; }
1401     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1402     eval with_$ac_package=\$ac_optarg ;;
1403
1404   -without-* | --without-*)
1405     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1406     # Reject names that are not valid shell variable names.
1407     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1408       { echo "$as_me: error: invalid package name: $ac_package" >&2
1409    { (exit 1); exit 1; }; }
1410     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1411     eval with_$ac_package=no ;;
1412
1413   --x)
1414     # Obsolete; use --with-x.
1415     with_x=yes ;;
1416
1417   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1418   | --x-incl | --x-inc | --x-in | --x-i)
1419     ac_prev=x_includes ;;
1420   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1421   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1422     x_includes=$ac_optarg ;;
1423
1424   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1425   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1426     ac_prev=x_libraries ;;
1427   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1428   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1429     x_libraries=$ac_optarg ;;
1430
1431   -*) { echo "$as_me: error: unrecognized option: $ac_option
1432 Try \`$0 --help' for more information." >&2
1433    { (exit 1); exit 1; }; }
1434     ;;
1435
1436   *=*)
1437     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1438     # Reject names that are not valid shell variable names.
1439     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1440       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1441    { (exit 1); exit 1; }; }
1442     eval $ac_envvar=\$ac_optarg
1443     export $ac_envvar ;;
1444
1445   *)
1446     # FIXME: should be removed in autoconf 3.0.
1447     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1448     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1449       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1450     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1451     ;;
1452
1453   esac
1454 done
1455
1456 if test -n "$ac_prev"; then
1457   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1458   { echo "$as_me: error: missing argument to $ac_option" >&2
1459    { (exit 1); exit 1; }; }
1460 fi
1461
1462 # Be sure to have absolute directory names.
1463 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1464                 datadir sysconfdir sharedstatedir localstatedir includedir \
1465                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1466                 libdir localedir mandir
1467 do
1468   eval ac_val=\$$ac_var
1469   case $ac_val in
1470     [\\/$]* | ?:[\\/]* )  continue;;
1471     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1472   esac
1473   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1474    { (exit 1); exit 1; }; }
1475 done
1476
1477 # There might be people who depend on the old broken behavior: `$host'
1478 # used to hold the argument of --host etc.
1479 # FIXME: To remove some day.
1480 build=$build_alias
1481 host=$host_alias
1482 target=$target_alias
1483
1484 # FIXME: To remove some day.
1485 if test "x$host_alias" != x; then
1486   if test "x$build_alias" = x; then
1487     cross_compiling=maybe
1488     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1489     If a cross compiler is detected then cross compile mode will be used." >&2
1490   elif test "x$build_alias" != "x$host_alias"; then
1491     cross_compiling=yes
1492   fi
1493 fi
1494
1495 ac_tool_prefix=
1496 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1497
1498 test "$silent" = yes && exec 6>/dev/null
1499
1500
1501 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1502 ac_ls_di=`ls -di .` &&
1503 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1504   { echo "$as_me: error: Working directory cannot be determined" >&2
1505    { (exit 1); exit 1; }; }
1506 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1507   { echo "$as_me: error: pwd does not report name of working directory" >&2
1508    { (exit 1); exit 1; }; }
1509
1510
1511 # Find the source files, if location was not specified.
1512 if test -z "$srcdir"; then
1513   ac_srcdir_defaulted=yes
1514   # Try the directory containing this script, then the parent directory.
1515   ac_confdir=`$as_dirname -- "$0" ||
1516 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1517          X"$0" : 'X\(//\)[^/]' \| \
1518          X"$0" : 'X\(//\)$' \| \
1519          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1520 echo X"$0" |
1521     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1522             s//\1/
1523             q
1524           }
1525           /^X\(\/\/\)[^/].*/{
1526             s//\1/
1527             q
1528           }
1529           /^X\(\/\/\)$/{
1530             s//\1/
1531             q
1532           }
1533           /^X\(\/\).*/{
1534             s//\1/
1535             q
1536           }
1537           s/.*/./; q'`
1538   srcdir=$ac_confdir
1539   if test ! -r "$srcdir/$ac_unique_file"; then
1540     srcdir=..
1541   fi
1542 else
1543   ac_srcdir_defaulted=no
1544 fi
1545 if test ! -r "$srcdir/$ac_unique_file"; then
1546   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1547   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1548    { (exit 1); exit 1; }; }
1549 fi
1550 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1551 ac_abs_confdir=`(
1552         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1553    { (exit 1); exit 1; }; }
1554         pwd)`
1555 # When building in place, set srcdir=.
1556 if test "$ac_abs_confdir" = "$ac_pwd"; then
1557   srcdir=.
1558 fi
1559 # Remove unnecessary trailing slashes from srcdir.
1560 # Double slashes in file names in object file debugging info
1561 # mess up M-x gdb in Emacs.
1562 case $srcdir in
1563 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1564 esac
1565 for ac_var in $ac_precious_vars; do
1566   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1567   eval ac_env_${ac_var}_value=\$${ac_var}
1568   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1569   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1570 done
1571
1572 #
1573 # Report the --help message.
1574 #
1575 if test "$ac_init_help" = "long"; then
1576   # Omit some internal or obsolete options to make the list less imposing.
1577   # This message is too long to be a string in the A/UX 3.1 sh.
1578   cat <<_ACEOF
1579 \`configure' configures GNU tar 1.21 to adapt to many kinds of systems.
1580
1581 Usage: $0 [OPTION]... [VAR=VALUE]...
1582
1583 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1584 VAR=VALUE.  See below for descriptions of some of the useful variables.
1585
1586 Defaults for the options are specified in brackets.
1587
1588 Configuration:
1589   -h, --help              display this help and exit
1590       --help=short        display options specific to this package
1591       --help=recursive    display the short help of all the included packages
1592   -V, --version           display version information and exit
1593   -q, --quiet, --silent   do not print \`checking...' messages
1594       --cache-file=FILE   cache test results in FILE [disabled]
1595   -C, --config-cache      alias for \`--cache-file=config.cache'
1596   -n, --no-create         do not create output files
1597       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1598
1599 Installation directories:
1600   --prefix=PREFIX         install architecture-independent files in PREFIX
1601                           [$ac_default_prefix]
1602   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1603                           [PREFIX]
1604
1605 By default, \`make install' will install all the files in
1606 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1607 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1608 for instance \`--prefix=\$HOME'.
1609
1610 For better control, use the options below.
1611
1612 Fine tuning of the installation directories:
1613   --bindir=DIR           user executables [EPREFIX/bin]
1614   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1615   --libexecdir=DIR       program executables [EPREFIX/libexec]
1616   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1617   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1618   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1619   --libdir=DIR           object code libraries [EPREFIX/lib]
1620   --includedir=DIR       C header files [PREFIX/include]
1621   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1622   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1623   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1624   --infodir=DIR          info documentation [DATAROOTDIR/info]
1625   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1626   --mandir=DIR           man documentation [DATAROOTDIR/man]
1627   --docdir=DIR           documentation root [DATAROOTDIR/doc/tar]
1628   --htmldir=DIR          html documentation [DOCDIR]
1629   --dvidir=DIR           dvi documentation [DOCDIR]
1630   --pdfdir=DIR           pdf documentation [DOCDIR]
1631   --psdir=DIR            ps documentation [DOCDIR]
1632 _ACEOF
1633
1634   cat <<\_ACEOF
1635
1636 Program names:
1637   --program-prefix=PREFIX            prepend PREFIX to installed program names
1638   --program-suffix=SUFFIX            append SUFFIX to installed program names
1639   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1640
1641 System types:
1642   --build=BUILD     configure for building on BUILD [guessed]
1643   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1644 _ACEOF
1645 fi
1646
1647 if test -n "$ac_init_help"; then
1648   case $ac_init_help in
1649      short | recursive ) echo "Configuration of GNU tar 1.21:";;
1650    esac
1651   cat <<\_ACEOF
1652
1653 Optional Features:
1654   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1655   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1656   --disable-dependency-tracking  speeds up one-time build
1657   --enable-dependency-tracking   do not reject slow dependency extractors
1658   --disable-largefile     omit support for large files
1659   --disable-rpath         do not hardcode runtime library paths
1660   --disable-nls           do not use Native Language Support
1661   --enable-backup-scripts Create and install backup and restore scripts
1662
1663 Optional Packages:
1664   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1665   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1666   --without-included-regex
1667                           don't compile regex; this is the default on 32-bit
1668                           systems with recent-enough versions of the GNU C
1669                           Library (use with caution on other systems). On
1670                           systems with 64-bit ptrdiff_t and 32-bit int,
1671                           --with-included-regex is the default, in case regex
1672                           functions operate on very long strings (>2GB)
1673   --with-rmt=FILE         Use FILE as the default `rmt' program. Do not build
1674                           included copy of `rmt'.
1675   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1676   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1677   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1678   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1679   --without-libintl-prefix     don't search for libintl in includedir and libdir
1680
1681 Some influential environment variables:
1682   CC          C compiler command
1683   CFLAGS      C compiler flags
1684   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1685               nonstandard directory <lib dir>
1686   LIBS        libraries to pass to the linker, e.g. -l<library>
1687   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1688               you have headers in a nonstandard directory <include dir>
1689   YACC        The `Yet Another C Compiler' implementation to use. Defaults to
1690               the first program found out of: `bison -y', `byacc', `yacc'.
1691   YFLAGS      The list of arguments that will be passed by default to $YACC.
1692               This script will default YFLAGS to the empty string to avoid a
1693               default value of `-d' given by some make applications.
1694   CPP         C preprocessor
1695   DEFAULT_RMT_DIR
1696               Define full file name of the directory where to install `rmt'.
1697               (default: $(libexecdir))
1698   DEFAULT_ARCHIVE_FORMAT
1699               Set the default archive format. Allowed values are: V7, OLDGNU,
1700               USTAR, POSIX, GNU. Default is GNU
1701   DEFAULT_ARCHIVE
1702               Set the name of the default archive (default: -)
1703   DEFAULT_BLOCKING
1704               Define default blocking factor (default: 20)
1705   DEFAULT_QUOTING_STYLE
1706               Set the default quoting style. Allowed values are: literal,
1707               shell, shell-always, c, escape, locale, clocale . Default is
1708               "escape".
1709
1710 Use these variables to override the choices made by `configure' or to help
1711 it to find libraries and programs with nonstandard names/locations.
1712
1713 Report bugs to <bug-tar@gnu.org>.
1714 _ACEOF
1715 ac_status=$?
1716 fi
1717
1718 if test "$ac_init_help" = "recursive"; then
1719   # If there are subdirs, report their specific --help.
1720   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1721     test -d "$ac_dir" || continue
1722     ac_builddir=.
1723
1724 case "$ac_dir" in
1725 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1726 *)
1727   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1728   # A ".." for each directory in $ac_dir_suffix.
1729   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1730   case $ac_top_builddir_sub in
1731   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1732   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1733   esac ;;
1734 esac
1735 ac_abs_top_builddir=$ac_pwd
1736 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1737 # for backward compatibility:
1738 ac_top_builddir=$ac_top_build_prefix
1739
1740 case $srcdir in
1741   .)  # We are building in place.
1742     ac_srcdir=.
1743     ac_top_srcdir=$ac_top_builddir_sub
1744     ac_abs_top_srcdir=$ac_pwd ;;
1745   [\\/]* | ?:[\\/]* )  # Absolute name.
1746     ac_srcdir=$srcdir$ac_dir_suffix;
1747     ac_top_srcdir=$srcdir
1748     ac_abs_top_srcdir=$srcdir ;;
1749   *) # Relative name.
1750     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1751     ac_top_srcdir=$ac_top_build_prefix$srcdir
1752     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1753 esac
1754 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1755
1756     cd "$ac_dir" || { ac_status=$?; continue; }
1757     # Check for guested configure.
1758     if test -f "$ac_srcdir/configure.gnu"; then
1759       echo &&
1760       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1761     elif test -f "$ac_srcdir/configure"; then
1762       echo &&
1763       $SHELL "$ac_srcdir/configure" --help=recursive
1764     else
1765       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1766     fi || ac_status=$?
1767     cd "$ac_pwd" || { ac_status=$?; break; }
1768   done
1769 fi
1770
1771 test -n "$ac_init_help" && exit $ac_status
1772 if $ac_init_version; then
1773   cat <<\_ACEOF
1774 GNU tar configure 1.21
1775 generated by GNU Autoconf 2.61
1776
1777 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1778 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1779 This configure script is free software; the Free Software Foundation
1780 gives unlimited permission to copy, distribute and modify it.
1781 _ACEOF
1782   exit
1783 fi
1784 cat >config.log <<_ACEOF
1785 This file contains any messages produced by compilers while
1786 running configure, to aid debugging if configure makes a mistake.
1787
1788 It was created by GNU tar $as_me 1.21, which was
1789 generated by GNU Autoconf 2.61.  Invocation command line was
1790
1791   $ $0 $@
1792
1793 _ACEOF
1794 exec 5>>config.log
1795 {
1796 cat <<_ASUNAME
1797 ## --------- ##
1798 ## Platform. ##
1799 ## --------- ##
1800
1801 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1802 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1803 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1804 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1805 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1806
1807 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1808 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1809
1810 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1811 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1812 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1813 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1814 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1815 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1816 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1817
1818 _ASUNAME
1819
1820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1821 for as_dir in $PATH
1822 do
1823   IFS=$as_save_IFS
1824   test -z "$as_dir" && as_dir=.
1825   echo "PATH: $as_dir"
1826 done
1827 IFS=$as_save_IFS
1828
1829 } >&5
1830
1831 cat >&5 <<_ACEOF
1832
1833
1834 ## ----------- ##
1835 ## Core tests. ##
1836 ## ----------- ##
1837
1838 _ACEOF
1839
1840
1841 # Keep a trace of the command line.
1842 # Strip out --no-create and --no-recursion so they do not pile up.
1843 # Strip out --silent because we don't want to record it for future runs.
1844 # Also quote any args containing shell meta-characters.
1845 # Make two passes to allow for proper duplicate-argument suppression.
1846 ac_configure_args=
1847 ac_configure_args0=
1848 ac_configure_args1=
1849 ac_must_keep_next=false
1850 for ac_pass in 1 2
1851 do
1852   for ac_arg
1853   do
1854     case $ac_arg in
1855     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1856     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1857     | -silent | --silent | --silen | --sile | --sil)
1858       continue ;;
1859     *\'*)
1860       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1861     esac
1862     case $ac_pass in
1863     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1864     2)
1865       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1866       if test $ac_must_keep_next = true; then
1867         ac_must_keep_next=false # Got value, back to normal.
1868       else
1869         case $ac_arg in
1870           *=* | --config-cache | -C | -disable-* | --disable-* \
1871           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1872           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1873           | -with-* | --with-* | -without-* | --without-* | --x)
1874             case "$ac_configure_args0 " in
1875               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1876             esac
1877             ;;
1878           -* ) ac_must_keep_next=true ;;
1879         esac
1880       fi
1881       ac_configure_args="$ac_configure_args '$ac_arg'"
1882       ;;
1883     esac
1884   done
1885 done
1886 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1887 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1888
1889 # When interrupted or exit'd, cleanup temporary files, and complete
1890 # config.log.  We remove comments because anyway the quotes in there
1891 # would cause problems or look ugly.
1892 # WARNING: Use '\'' to represent an apostrophe within the trap.
1893 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1894 trap 'exit_status=$?
1895   # Save into config.log some information that might help in debugging.
1896   {
1897     echo
1898
1899     cat <<\_ASBOX
1900 ## ---------------- ##
1901 ## Cache variables. ##
1902 ## ---------------- ##
1903 _ASBOX
1904     echo
1905     # The following way of writing the cache mishandles newlines in values,
1906 (
1907   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1908     eval ac_val=\$$ac_var
1909     case $ac_val in #(
1910     *${as_nl}*)
1911       case $ac_var in #(
1912       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1913 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1914       esac
1915       case $ac_var in #(
1916       _ | IFS | as_nl) ;; #(
1917       *) $as_unset $ac_var ;;
1918       esac ;;
1919     esac
1920   done
1921   (set) 2>&1 |
1922     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1923     *${as_nl}ac_space=\ *)
1924       sed -n \
1925         "s/'\''/'\''\\\\'\'''\''/g;
1926           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1927       ;; #(
1928     *)
1929       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1930       ;;
1931     esac |
1932     sort
1933 )
1934     echo
1935
1936     cat <<\_ASBOX
1937 ## ----------------- ##
1938 ## Output variables. ##
1939 ## ----------------- ##
1940 _ASBOX
1941     echo
1942     for ac_var in $ac_subst_vars
1943     do
1944       eval ac_val=\$$ac_var
1945       case $ac_val in
1946       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1947       esac
1948       echo "$ac_var='\''$ac_val'\''"
1949     done | sort
1950     echo
1951
1952     if test -n "$ac_subst_files"; then
1953       cat <<\_ASBOX
1954 ## ------------------- ##
1955 ## File substitutions. ##
1956 ## ------------------- ##
1957 _ASBOX
1958       echo
1959       for ac_var in $ac_subst_files
1960       do
1961         eval ac_val=\$$ac_var
1962         case $ac_val in
1963         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1964         esac
1965         echo "$ac_var='\''$ac_val'\''"
1966       done | sort
1967       echo
1968     fi
1969
1970     if test -s confdefs.h; then
1971       cat <<\_ASBOX
1972 ## ----------- ##
1973 ## confdefs.h. ##
1974 ## ----------- ##
1975 _ASBOX
1976       echo
1977       cat confdefs.h
1978       echo
1979     fi
1980     test "$ac_signal" != 0 &&
1981       echo "$as_me: caught signal $ac_signal"
1982     echo "$as_me: exit $exit_status"
1983   } >&5
1984   rm -f core *.core core.conftest.* &&
1985     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1986     exit $exit_status
1987 ' 0
1988 for ac_signal in 1 2 13 15; do
1989   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1990 done
1991 ac_signal=0
1992
1993 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1994 rm -f -r conftest* confdefs.h
1995
1996 # Predefined preprocessor variables.
1997
1998 cat >>confdefs.h <<_ACEOF
1999 #define PACKAGE_NAME "$PACKAGE_NAME"
2000 _ACEOF
2001
2002
2003 cat >>confdefs.h <<_ACEOF
2004 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2005 _ACEOF
2006
2007
2008 cat >>confdefs.h <<_ACEOF
2009 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2010 _ACEOF
2011
2012
2013 cat >>confdefs.h <<_ACEOF
2014 #define PACKAGE_STRING "$PACKAGE_STRING"
2015 _ACEOF
2016
2017
2018 cat >>confdefs.h <<_ACEOF
2019 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2020 _ACEOF
2021
2022
2023 # Let the site file select an alternate cache file if it wants to.
2024 # Prefer explicitly selected file to automatically selected ones.
2025 if test -n "$CONFIG_SITE"; then
2026   set x "$CONFIG_SITE"
2027 elif test "x$prefix" != xNONE; then
2028   set x "$prefix/share/config.site" "$prefix/etc/config.site"
2029 else
2030   set x "$ac_default_prefix/share/config.site" \
2031         "$ac_default_prefix/etc/config.site"
2032 fi
2033 shift
2034 for ac_site_file
2035 do
2036   if test -r "$ac_site_file"; then
2037     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2038 echo "$as_me: loading site script $ac_site_file" >&6;}
2039     sed 's/^/| /' "$ac_site_file" >&5
2040     . "$ac_site_file"
2041   fi
2042 done
2043
2044 if test -r "$cache_file"; then
2045   # Some versions of bash will fail to source /dev/null (special
2046   # files actually), so we avoid doing that.
2047   if test -f "$cache_file"; then
2048     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
2049 echo "$as_me: loading cache $cache_file" >&6;}
2050     case $cache_file in
2051       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2052       *)                      . "./$cache_file";;
2053     esac
2054   fi
2055 else
2056   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
2057 echo "$as_me: creating cache $cache_file" >&6;}
2058   >$cache_file
2059 fi
2060
2061 ac_header_list="$ac_header_list fcntl.h"
2062 ac_header_list="$ac_header_list linux/fd.h"
2063 ac_header_list="$ac_header_list memory.h"
2064 ac_header_list="$ac_header_list net/errno.h"
2065 ac_header_list="$ac_header_list sgtty.h"
2066 ac_header_list="$ac_header_list string.h"
2067 ac_header_list="$ac_header_list stropts.h"
2068 ac_header_list="$ac_header_list sys/param.h"
2069 ac_header_list="$ac_header_list sys/device.h"
2070 ac_header_list="$ac_header_list sys/filio.h"
2071 ac_header_list="$ac_header_list sys/gentape.h"
2072 ac_header_list="$ac_header_list sys/inet.h"
2073 ac_header_list="$ac_header_list sys/io/trioctl.h"
2074 ac_header_list="$ac_header_list sys/mtio.h"
2075 ac_header_list="$ac_header_list sys/time.h"
2076 ac_header_list="$ac_header_list sys/tprintf.h"
2077 ac_header_list="$ac_header_list sys/tape.h"
2078 ac_header_list="$ac_header_list unistd.h"
2079 ac_header_list="$ac_header_list locale.h"
2080 ac_func_list="$ac_func_list flockfile"
2081 ac_func_list="$ac_func_list funlockfile"
2082 ac_header_list="$ac_header_list features.h"
2083 ac_header_list="$ac_header_list linewrap.h"
2084 ac_func_list="$ac_func_list pathconf"
2085 ac_func_list="$ac_func_list canonicalize_file_name"
2086 ac_func_list="$ac_func_list getcwd"
2087 ac_func_list="$ac_func_list readlink"
2088 ac_header_list="$ac_header_list dirent.h"
2089 ac_func_list="$ac_func_list dup2"
2090 ac_header_list="$ac_header_list errno.h"
2091 ac_func_list="$ac_func_list fchdir"
2092 ac_header_list="$ac_header_list float.h"
2093 ac_func_list="$ac_func_list btowc"
2094 ac_func_list="$ac_func_list isblank"
2095 ac_func_list="$ac_func_list iswctype"
2096 ac_func_list="$ac_func_list mbsrtowcs"
2097 ac_func_list="$ac_func_list mempcpy"
2098 ac_func_list="$ac_func_list wmemchr"
2099 ac_func_list="$ac_func_list wmemcpy"
2100 ac_func_list="$ac_func_list wmempcpy"
2101 ac_header_list="$ac_header_list wctype.h"
2102 ac_header_list="$ac_header_list stdio_ext.h"
2103 ac_func_list="$ac_func_list __fpending"
2104 ac_func_list="$ac_func_list ftruncate"
2105 ac_func_list="$ac_func_list gettimeofday"
2106 ac_func_list="$ac_func_list nanotime"
2107 ac_header_list="$ac_header_list stdint.h"
2108 ac_header_list="$ac_header_list wchar.h"
2109 ac_header_list="$ac_header_list inttypes.h"
2110 ac_func_list="$ac_func_list alarm"
2111 ac_func_list="$ac_func_list lchmod"
2112 ac_func_list="$ac_func_list fdopendir"
2113 ac_func_list="$ac_func_list mbsinit"
2114 ac_func_list="$ac_func_list mbrtowc"
2115 ac_func_list="$ac_func_list wcrtomb"
2116 ac_func_list="$ac_func_list wcscoll"
2117 ac_func_list="$ac_func_list setenv"
2118 ac_header_list="$ac_header_list stdarg.h"
2119 ac_header_list="$ac_header_list stdio.h"
2120 ac_header_list="$ac_header_list stdlib.h"
2121 ac_header_list="$ac_header_list sys/socket.h"
2122 ac_header_list="$ac_header_list strings.h"
2123 ac_func_list="$ac_func_list lstat"
2124 ac_header_list="$ac_header_list sys/stat.h"
2125 ac_header_list="$ac_header_list sysexits.h"
2126 ac_header_list="$ac_header_list time.h"
2127 ac_func_list="$ac_func_list pipe"
2128 ac_header_list="$ac_header_list priv.h"
2129 ac_header_list="$ac_header_list utime.h"
2130 ac_func_list="$ac_func_list futimes"
2131 ac_func_list="$ac_func_list futimesat"
2132 ac_func_list="$ac_func_list futimens"
2133 ac_func_list="$ac_func_list utimensat"
2134 ac_func_list="$ac_func_list vasnprintf"
2135 ac_func_list="$ac_func_list iswcntrl"
2136 ac_func_list="$ac_func_list wcwidth"
2137 ac_header_list="$ac_header_list netdb.h"
2138 ac_header_list="$ac_header_list sys/wait.h"
2139 ac_header_list="$ac_header_list pwd.h"
2140 ac_header_list="$ac_header_list grp.h"
2141 ac_func_list="$ac_func_list mkfifo"
2142 ac_func_list="$ac_func_list setlocale"
2143 gt_needs="$gt_needs need-formatstring-macros"
2144 # Check that the precious variables saved in the cache have kept the same
2145 # value.
2146 ac_cache_corrupted=false
2147 for ac_var in $ac_precious_vars; do
2148   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2149   eval ac_new_set=\$ac_env_${ac_var}_set
2150   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2151   eval ac_new_val=\$ac_env_${ac_var}_value
2152   case $ac_old_set,$ac_new_set in
2153     set,)
2154       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2155 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2156       ac_cache_corrupted=: ;;
2157     ,set)
2158       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2159 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2160       ac_cache_corrupted=: ;;
2161     ,);;
2162     *)
2163       if test "x$ac_old_val" != "x$ac_new_val"; then
2164         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2165 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2166         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
2167 echo "$as_me:   former value:  $ac_old_val" >&2;}
2168         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
2169 echo "$as_me:   current value: $ac_new_val" >&2;}
2170         ac_cache_corrupted=:
2171       fi;;
2172   esac
2173   # Pass precious variables to config.status.
2174   if test "$ac_new_set" = set; then
2175     case $ac_new_val in
2176     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2177     *) ac_arg=$ac_var=$ac_new_val ;;
2178     esac
2179     case " $ac_configure_args " in
2180       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2181       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2182     esac
2183   fi
2184 done
2185 if $ac_cache_corrupted; then
2186   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2187 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2188   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2189 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2190    { (exit 1); exit 1; }; }
2191 fi
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217 ac_ext=c
2218 ac_cpp='$CPP $CPPFLAGS'
2219 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2220 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2221 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2222
2223
2224
2225 ac_aux_dir=
2226 for ac_dir in build-aux "$srcdir"/build-aux; do
2227   if test -f "$ac_dir/install-sh"; then
2228     ac_aux_dir=$ac_dir
2229     ac_install_sh="$ac_aux_dir/install-sh -c"
2230     break
2231   elif test -f "$ac_dir/install.sh"; then
2232     ac_aux_dir=$ac_dir
2233     ac_install_sh="$ac_aux_dir/install.sh -c"
2234     break
2235   elif test -f "$ac_dir/shtool"; then
2236     ac_aux_dir=$ac_dir
2237     ac_install_sh="$ac_aux_dir/shtool install -c"
2238     break
2239   fi
2240 done
2241 if test -z "$ac_aux_dir"; then
2242   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build-aux \"$srcdir\"/build-aux" >&5
2243 echo "$as_me: error: cannot find install-sh or install.sh in build-aux \"$srcdir\"/build-aux" >&2;}
2244    { (exit 1); exit 1; }; }
2245 fi
2246
2247 # These three variables are undocumented and unsupported,
2248 # and are intended to be withdrawn in a future Autoconf release.
2249 # They can cause serious problems if a builder's source tree is in a directory
2250 # whose full name contains unusual characters.
2251 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2252 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2253 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2254
2255
2256 ac_config_headers="$ac_config_headers config.h:config.hin"
2257
2258
2259 am__api_version='1.10'
2260
2261 # Find a good install program.  We prefer a C program (faster),
2262 # so one script is as good as another.  But avoid the broken or
2263 # incompatible versions:
2264 # SysV /etc/install, /usr/sbin/install
2265 # SunOS /usr/etc/install
2266 # IRIX /sbin/install
2267 # AIX /bin/install
2268 # AmigaOS /C/install, which installs bootblocks on floppy discs
2269 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2270 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2271 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2272 # OS/2's system install, which has a completely different semantic
2273 # ./install, which can be erroneously created by make from ./install.sh.
2274 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2275 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2276 if test -z "$INSTALL"; then
2277 if test "${ac_cv_path_install+set}" = set; then
2278   echo $ECHO_N "(cached) $ECHO_C" >&6
2279 else
2280   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2281 for as_dir in $PATH
2282 do
2283   IFS=$as_save_IFS
2284   test -z "$as_dir" && as_dir=.
2285   # Account for people who put trailing slashes in PATH elements.
2286 case $as_dir/ in
2287   ./ | .// | /cC/* | \
2288   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2289   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2290   /usr/ucb/* ) ;;
2291   *)
2292     # OSF1 and SCO ODT 3.0 have their own names for install.
2293     # Don't use installbsd from OSF since it installs stuff as root
2294     # by default.
2295     for ac_prog in ginstall scoinst install; do
2296       for ac_exec_ext in '' $ac_executable_extensions; do
2297         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2298           if test $ac_prog = install &&
2299             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2300             # AIX install.  It has an incompatible calling convention.
2301             :
2302           elif test $ac_prog = install &&
2303             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2304             # program-specific install script used by HP pwplus--don't use.
2305             :
2306           else
2307             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2308             break 3
2309           fi
2310         fi
2311       done
2312     done
2313     ;;
2314 esac
2315 done
2316 IFS=$as_save_IFS
2317
2318
2319 fi
2320   if test "${ac_cv_path_install+set}" = set; then
2321     INSTALL=$ac_cv_path_install
2322   else
2323     # As a last resort, use the slow shell script.  Don't cache a
2324     # value for INSTALL within a source directory, because that will
2325     # break other packages using the cache if that directory is
2326     # removed, or if the value is a relative name.
2327     INSTALL=$ac_install_sh
2328   fi
2329 fi
2330 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2331 echo "${ECHO_T}$INSTALL" >&6; }
2332
2333 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2334 # It thinks the first close brace ends the variable substitution.
2335 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2336
2337 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2338
2339 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2340
2341 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2342 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2343 # Just in case
2344 sleep 1
2345 echo timestamp > conftest.file
2346 # Do `set' in a subshell so we don't clobber the current shell's
2347 # arguments.  Must try -L first in case configure is actually a
2348 # symlink; some systems play weird games with the mod time of symlinks
2349 # (eg FreeBSD returns the mod time of the symlink's containing
2350 # directory).
2351 if (
2352    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2353    if test "$*" = "X"; then
2354       # -L didn't work.
2355       set X `ls -t $srcdir/configure conftest.file`
2356    fi
2357    rm -f conftest.file
2358    if test "$*" != "X $srcdir/configure conftest.file" \
2359       && test "$*" != "X conftest.file $srcdir/configure"; then
2360
2361       # If neither matched, then we have a broken ls.  This can happen
2362       # if, for instance, CONFIG_SHELL is bash and it inherits a
2363       # broken ls alias from the environment.  This has actually
2364       # happened.  Such a system could not be considered "sane".
2365       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2366 alias in your environment" >&5
2367 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2368 alias in your environment" >&2;}
2369    { (exit 1); exit 1; }; }
2370    fi
2371
2372    test "$2" = conftest.file
2373    )
2374 then
2375    # Ok.
2376    :
2377 else
2378    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2379 Check your system clock" >&5
2380 echo "$as_me: error: newly created file is older than distributed files!
2381 Check your system clock" >&2;}
2382    { (exit 1); exit 1; }; }
2383 fi
2384 { echo "$as_me:$LINENO: result: yes" >&5
2385 echo "${ECHO_T}yes" >&6; }
2386 test "$program_prefix" != NONE &&
2387   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2388 # Use a double $ so make ignores it.
2389 test "$program_suffix" != NONE &&
2390   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2391 # Double any \ or $.  echo might interpret backslashes.
2392 # By default was `s,x,x', remove it if useless.
2393 cat <<\_ACEOF >conftest.sed
2394 s/[\\$]/&&/g;s/;s,x,x,$//
2395 _ACEOF
2396 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2397 rm -f conftest.sed
2398
2399 # expand $ac_aux_dir to an absolute path
2400 am_aux_dir=`cd $ac_aux_dir && pwd`
2401
2402 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2403 # Use eval to expand $SHELL
2404 if eval "$MISSING --run true"; then
2405   am_missing_run="$MISSING --run "
2406 else
2407   am_missing_run=
2408   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2409 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2410 fi
2411
2412 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2413 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2414 if test -z "$MKDIR_P"; then
2415   if test "${ac_cv_path_mkdir+set}" = set; then
2416   echo $ECHO_N "(cached) $ECHO_C" >&6
2417 else
2418   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2419 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2420 do
2421   IFS=$as_save_IFS
2422   test -z "$as_dir" && as_dir=.
2423   for ac_prog in mkdir gmkdir; do
2424          for ac_exec_ext in '' $ac_executable_extensions; do
2425            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2426            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2427              'mkdir (GNU coreutils) '* | \
2428              'mkdir (coreutils) '* | \
2429              'mkdir (fileutils) '4.1*)
2430                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2431                break 3;;
2432            esac
2433          done
2434        done
2435 done
2436 IFS=$as_save_IFS
2437
2438 fi
2439
2440   if test "${ac_cv_path_mkdir+set}" = set; then
2441     MKDIR_P="$ac_cv_path_mkdir -p"
2442   else
2443     # As a last resort, use the slow shell script.  Don't cache a
2444     # value for MKDIR_P within a source directory, because that will
2445     # break other packages using the cache if that directory is
2446     # removed, or if the value is a relative name.
2447     test -d ./--version && rmdir ./--version
2448     MKDIR_P="$ac_install_sh -d"
2449   fi
2450 fi
2451 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2452 echo "${ECHO_T}$MKDIR_P" >&6; }
2453
2454 mkdir_p="$MKDIR_P"
2455 case $mkdir_p in
2456   [\\/$]* | ?:[\\/]*) ;;
2457   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2458 esac
2459
2460 for ac_prog in gawk mawk nawk awk
2461 do
2462   # Extract the first word of "$ac_prog", so it can be a program name with args.
2463 set dummy $ac_prog; ac_word=$2
2464 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2465 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2466 if test "${ac_cv_prog_AWK+set}" = set; then
2467   echo $ECHO_N "(cached) $ECHO_C" >&6
2468 else
2469   if test -n "$AWK"; then
2470   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2471 else
2472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2473 for as_dir in $PATH
2474 do
2475   IFS=$as_save_IFS
2476   test -z "$as_dir" && as_dir=.
2477   for ac_exec_ext in '' $ac_executable_extensions; do
2478   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2479     ac_cv_prog_AWK="$ac_prog"
2480     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2481     break 2
2482   fi
2483 done
2484 done
2485 IFS=$as_save_IFS
2486
2487 fi
2488 fi
2489 AWK=$ac_cv_prog_AWK
2490 if test -n "$AWK"; then
2491   { echo "$as_me:$LINENO: result: $AWK" >&5
2492 echo "${ECHO_T}$AWK" >&6; }
2493 else
2494   { echo "$as_me:$LINENO: result: no" >&5
2495 echo "${ECHO_T}no" >&6; }
2496 fi
2497
2498
2499   test -n "$AWK" && break
2500 done
2501
2502 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2503 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2504 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2505 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2506   echo $ECHO_N "(cached) $ECHO_C" >&6
2507 else
2508   cat >conftest.make <<\_ACEOF
2509 SHELL = /bin/sh
2510 all:
2511         @echo '@@@%%%=$(MAKE)=@@@%%%'
2512 _ACEOF
2513 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2514 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2515   *@@@%%%=?*=@@@%%%*)
2516     eval ac_cv_prog_make_${ac_make}_set=yes;;
2517   *)
2518     eval ac_cv_prog_make_${ac_make}_set=no;;
2519 esac
2520 rm -f conftest.make
2521 fi
2522 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2523   { echo "$as_me:$LINENO: result: yes" >&5
2524 echo "${ECHO_T}yes" >&6; }
2525   SET_MAKE=
2526 else
2527   { echo "$as_me:$LINENO: result: no" >&5
2528 echo "${ECHO_T}no" >&6; }
2529   SET_MAKE="MAKE=${MAKE-make}"
2530 fi
2531
2532 rm -rf .tst 2>/dev/null
2533 mkdir .tst 2>/dev/null
2534 if test -d .tst; then
2535   am__leading_dot=.
2536 else
2537   am__leading_dot=_
2538 fi
2539 rmdir .tst 2>/dev/null
2540
2541 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2542   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2543   # is not polluted with repeated "-I."
2544   am__isrc=' -I$(srcdir)'
2545   # test to see if srcdir already configured
2546   if test -f $srcdir/config.status; then
2547     { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2548 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2549    { (exit 1); exit 1; }; }
2550   fi
2551 fi
2552
2553 # test whether we have cygpath
2554 if test -z "$CYGPATH_W"; then
2555   if (cygpath --version) >/dev/null 2>/dev/null; then
2556     CYGPATH_W='cygpath -w'
2557   else
2558     CYGPATH_W=echo
2559   fi
2560 fi
2561
2562
2563 # Define the identity of the package.
2564  PACKAGE='tar'
2565  VERSION='1.21'
2566
2567
2568 cat >>confdefs.h <<_ACEOF
2569 #define PACKAGE "$PACKAGE"
2570 _ACEOF
2571
2572
2573 cat >>confdefs.h <<_ACEOF
2574 #define VERSION "$VERSION"
2575 _ACEOF
2576
2577 # Some tools Automake needs.
2578
2579 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2580
2581
2582 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2583
2584
2585 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2586
2587
2588 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2589
2590
2591 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2592
2593 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2594
2595 # Installed binaries are usually stripped using `strip' when the user
2596 # run `make install-strip'.  However `strip' might not be the right
2597 # tool to use in cross-compilation environments, therefore Automake
2598 # will honor the `STRIP' environment variable to overrule this program.
2599 if test "$cross_compiling" != no; then
2600   if test -n "$ac_tool_prefix"; then
2601   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2602 set dummy ${ac_tool_prefix}strip; ac_word=$2
2603 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2604 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2605 if test "${ac_cv_prog_STRIP+set}" = set; then
2606   echo $ECHO_N "(cached) $ECHO_C" >&6
2607 else
2608   if test -n "$STRIP"; then
2609   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2610 else
2611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2612 for as_dir in $PATH
2613 do
2614   IFS=$as_save_IFS
2615   test -z "$as_dir" && as_dir=.
2616   for ac_exec_ext in '' $ac_executable_extensions; do
2617   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2618     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2619     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2620     break 2
2621   fi
2622 done
2623 done
2624 IFS=$as_save_IFS
2625
2626 fi
2627 fi
2628 STRIP=$ac_cv_prog_STRIP
2629 if test -n "$STRIP"; then
2630   { echo "$as_me:$LINENO: result: $STRIP" >&5
2631 echo "${ECHO_T}$STRIP" >&6; }
2632 else
2633   { echo "$as_me:$LINENO: result: no" >&5
2634 echo "${ECHO_T}no" >&6; }
2635 fi
2636
2637
2638 fi
2639 if test -z "$ac_cv_prog_STRIP"; then
2640   ac_ct_STRIP=$STRIP
2641   # Extract the first word of "strip", so it can be a program name with args.
2642 set dummy strip; ac_word=$2
2643 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2644 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2645 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2646   echo $ECHO_N "(cached) $ECHO_C" >&6
2647 else
2648   if test -n "$ac_ct_STRIP"; then
2649   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2650 else
2651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2652 for as_dir in $PATH
2653 do
2654   IFS=$as_save_IFS
2655   test -z "$as_dir" && as_dir=.
2656   for ac_exec_ext in '' $ac_executable_extensions; do
2657   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2658     ac_cv_prog_ac_ct_STRIP="strip"
2659     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2660     break 2
2661   fi
2662 done
2663 done
2664 IFS=$as_save_IFS
2665
2666 fi
2667 fi
2668 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2669 if test -n "$ac_ct_STRIP"; then
2670   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2671 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2672 else
2673   { echo "$as_me:$LINENO: result: no" >&5
2674 echo "${ECHO_T}no" >&6; }
2675 fi
2676
2677   if test "x$ac_ct_STRIP" = x; then
2678     STRIP=":"
2679   else
2680     case $cross_compiling:$ac_tool_warned in
2681 yes:)
2682 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2683 whose name does not start with the host triplet.  If you think this
2684 configuration is useful to you, please write to autoconf@gnu.org." >&5
2685 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2686 whose name does not start with the host triplet.  If you think this
2687 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2688 ac_tool_warned=yes ;;
2689 esac
2690     STRIP=$ac_ct_STRIP
2691   fi
2692 else
2693   STRIP="$ac_cv_prog_STRIP"
2694 fi
2695
2696 fi
2697 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2698
2699 # We need awk for the "check" target.  The system "awk" is bad on
2700 # some platforms.
2701 # Always define AMTAR for backward compatibility.
2702
2703 AMTAR=${AMTAR-"${am_missing_run}tar"}
2704
2705
2706 { echo "$as_me:$LINENO: checking how to create a ustar tar archive" >&5
2707 echo $ECHO_N "checking how to create a ustar tar archive... $ECHO_C" >&6; }
2708 # Loop over all known methods to create a tar archive until one works.
2709 _am_tools='gnutar plaintar pax cpio none'
2710 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
2711 # Do not fold the above two line into one, because Tru64 sh and
2712 # Solaris sh will not grok spaces in the rhs of `-'.
2713 for _am_tool in $_am_tools
2714 do
2715   case $_am_tool in
2716   gnutar)
2717     for _am_tar in tar gnutar gtar;
2718     do
2719       { echo "$as_me:$LINENO: $_am_tar --version" >&5
2720    ($_am_tar --version) >&5 2>&5
2721    ac_status=$?
2722    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2723    (exit $ac_status); } && break
2724     done
2725     am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
2726     am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
2727     am__untar="$_am_tar -xf -"
2728     ;;
2729   plaintar)
2730     # Must skip GNU tar: if it does not support --format= it doesn't create
2731     # ustar tarball either.
2732     (tar --version) >/dev/null 2>&1 && continue
2733     am__tar='tar chf - "$$tardir"'
2734     am__tar_='tar chf - "$tardir"'
2735     am__untar='tar xf -'
2736     ;;
2737   pax)
2738     am__tar='pax -L -x ustar -w "$$tardir"'
2739     am__tar_='pax -L -x ustar -w "$tardir"'
2740     am__untar='pax -r'
2741     ;;
2742   cpio)
2743     am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
2744     am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
2745     am__untar='cpio -i -H ustar -d'
2746     ;;
2747   none)
2748     am__tar=false
2749     am__tar_=false
2750     am__untar=false
2751     ;;
2752   esac
2753
2754   # If the value was cached, stop now.  We just wanted to have am__tar
2755   # and am__untar set.
2756   test -n "${am_cv_prog_tar_ustar}" && break
2757
2758   # tar/untar a dummy directory, and stop if the command works
2759   rm -rf conftest.dir
2760   mkdir conftest.dir
2761   echo GrepMe > conftest.dir/file
2762   { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
2763    (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
2764    ac_status=$?
2765    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2766    (exit $ac_status); }
2767   rm -rf conftest.dir
2768   if test -s conftest.tar; then
2769     { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
2770    ($am__untar <conftest.tar) >&5 2>&5
2771    ac_status=$?
2772    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2773    (exit $ac_status); }
2774     grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
2775   fi
2776 done
2777 rm -rf conftest.dir
2778
2779 if test "${am_cv_prog_tar_ustar+set}" = set; then
2780   echo $ECHO_N "(cached) $ECHO_C" >&6
2781 else
2782   am_cv_prog_tar_ustar=$_am_tool
2783 fi
2784
2785 { echo "$as_me:$LINENO: result: $am_cv_prog_tar_ustar" >&5
2786 echo "${ECHO_T}$am_cv_prog_tar_ustar" >&6; }
2787
2788
2789
2790
2791
2792
2793 ac_ext=c
2794 ac_cpp='$CPP $CPPFLAGS'
2795 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2796 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2797 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2798 if test -n "$ac_tool_prefix"; then
2799   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2800 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2801 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2802 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2803 if test "${ac_cv_prog_CC+set}" = set; then
2804   echo $ECHO_N "(cached) $ECHO_C" >&6
2805 else
2806   if test -n "$CC"; then
2807   ac_cv_prog_CC="$CC" # Let the user override the test.
2808 else
2809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2810 for as_dir in $PATH
2811 do
2812   IFS=$as_save_IFS
2813   test -z "$as_dir" && as_dir=.
2814   for ac_exec_ext in '' $ac_executable_extensions; do
2815   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2816     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2817     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2818     break 2
2819   fi
2820 done
2821 done
2822 IFS=$as_save_IFS
2823
2824 fi
2825 fi
2826 CC=$ac_cv_prog_CC
2827 if test -n "$CC"; then
2828   { echo "$as_me:$LINENO: result: $CC" >&5
2829 echo "${ECHO_T}$CC" >&6; }
2830 else
2831   { echo "$as_me:$LINENO: result: no" >&5
2832 echo "${ECHO_T}no" >&6; }
2833 fi
2834
2835
2836 fi
2837 if test -z "$ac_cv_prog_CC"; then
2838   ac_ct_CC=$CC
2839   # Extract the first word of "gcc", so it can be a program name with args.
2840 set dummy gcc; ac_word=$2
2841 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2842 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2843 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2844   echo $ECHO_N "(cached) $ECHO_C" >&6
2845 else
2846   if test -n "$ac_ct_CC"; then
2847   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2848 else
2849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2850 for as_dir in $PATH
2851 do
2852   IFS=$as_save_IFS
2853   test -z "$as_dir" && as_dir=.
2854   for ac_exec_ext in '' $ac_executable_extensions; do
2855   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2856     ac_cv_prog_ac_ct_CC="gcc"
2857     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2858     break 2
2859   fi
2860 done
2861 done
2862 IFS=$as_save_IFS
2863
2864 fi
2865 fi
2866 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2867 if test -n "$ac_ct_CC"; then
2868   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2869 echo "${ECHO_T}$ac_ct_CC" >&6; }
2870 else
2871   { echo "$as_me:$LINENO: result: no" >&5
2872 echo "${ECHO_T}no" >&6; }
2873 fi
2874
2875   if test "x$ac_ct_CC" = x; then
2876     CC=""
2877   else
2878     case $cross_compiling:$ac_tool_warned in
2879 yes:)
2880 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2881 whose name does not start with the host triplet.  If you think this
2882 configuration is useful to you, please write to autoconf@gnu.org." >&5
2883 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2884 whose name does not start with the host triplet.  If you think this
2885 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2886 ac_tool_warned=yes ;;
2887 esac
2888     CC=$ac_ct_CC
2889   fi
2890 else
2891   CC="$ac_cv_prog_CC"
2892 fi
2893
2894 if test -z "$CC"; then
2895           if test -n "$ac_tool_prefix"; then
2896     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2897 set dummy ${ac_tool_prefix}cc; ac_word=$2
2898 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2899 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2900 if test "${ac_cv_prog_CC+set}" = set; then
2901   echo $ECHO_N "(cached) $ECHO_C" >&6
2902 else
2903   if test -n "$CC"; then
2904   ac_cv_prog_CC="$CC" # Let the user override the test.
2905 else
2906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2907 for as_dir in $PATH
2908 do
2909   IFS=$as_save_IFS
2910   test -z "$as_dir" && as_dir=.
2911   for ac_exec_ext in '' $ac_executable_extensions; do
2912   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2913     ac_cv_prog_CC="${ac_tool_prefix}cc"
2914     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2915     break 2
2916   fi
2917 done
2918 done
2919 IFS=$as_save_IFS
2920
2921 fi
2922 fi
2923 CC=$ac_cv_prog_CC
2924 if test -n "$CC"; then
2925   { echo "$as_me:$LINENO: result: $CC" >&5
2926 echo "${ECHO_T}$CC" >&6; }
2927 else
2928   { echo "$as_me:$LINENO: result: no" >&5
2929 echo "${ECHO_T}no" >&6; }
2930 fi
2931
2932
2933   fi
2934 fi
2935 if test -z "$CC"; then
2936   # Extract the first word of "cc", so it can be a program name with args.
2937 set dummy cc; ac_word=$2
2938 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2939 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2940 if test "${ac_cv_prog_CC+set}" = set; then
2941   echo $ECHO_N "(cached) $ECHO_C" >&6
2942 else
2943   if test -n "$CC"; then
2944   ac_cv_prog_CC="$CC" # Let the user override the test.
2945 else
2946   ac_prog_rejected=no
2947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2948 for as_dir in $PATH
2949 do
2950   IFS=$as_save_IFS
2951   test -z "$as_dir" && as_dir=.
2952   for ac_exec_ext in '' $ac_executable_extensions; do
2953   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2954     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2955        ac_prog_rejected=yes
2956        continue
2957      fi
2958     ac_cv_prog_CC="cc"
2959     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2960     break 2
2961   fi
2962 done
2963 done
2964 IFS=$as_save_IFS
2965
2966 if test $ac_prog_rejected = yes; then
2967   # We found a bogon in the path, so make sure we never use it.
2968   set dummy $ac_cv_prog_CC
2969   shift
2970   if test $# != 0; then
2971     # We chose a different compiler from the bogus one.
2972     # However, it has the same basename, so the bogon will be chosen
2973     # first if we set CC to just the basename; use the full file name.
2974     shift
2975     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2976   fi
2977 fi
2978 fi
2979 fi
2980 CC=$ac_cv_prog_CC
2981 if test -n "$CC"; then
2982   { echo "$as_me:$LINENO: result: $CC" >&5
2983 echo "${ECHO_T}$CC" >&6; }
2984 else
2985   { echo "$as_me:$LINENO: result: no" >&5
2986 echo "${ECHO_T}no" >&6; }
2987 fi
2988
2989
2990 fi
2991 if test -z "$CC"; then
2992   if test -n "$ac_tool_prefix"; then
2993   for ac_prog in cl.exe
2994   do
2995     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2996 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2997 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2998 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2999 if test "${ac_cv_prog_CC+set}" = set; then
3000   echo $ECHO_N "(cached) $ECHO_C" >&6
3001 else
3002   if test -n "$CC"; then
3003   ac_cv_prog_CC="$CC" # Let the user override the test.
3004 else
3005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3006 for as_dir in $PATH
3007 do
3008   IFS=$as_save_IFS
3009   test -z "$as_dir" && as_dir=.
3010   for ac_exec_ext in '' $ac_executable_extensions; do
3011   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3012     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3013     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3014     break 2
3015   fi
3016 done
3017 done
3018 IFS=$as_save_IFS
3019
3020 fi
3021 fi
3022 CC=$ac_cv_prog_CC
3023 if test -n "$CC"; then
3024   { echo "$as_me:$LINENO: result: $CC" >&5
3025 echo "${ECHO_T}$CC" >&6; }
3026 else
3027   { echo "$as_me:$LINENO: result: no" >&5
3028 echo "${ECHO_T}no" >&6; }
3029 fi
3030
3031
3032     test -n "$CC" && break
3033   done
3034 fi
3035 if test -z "$CC"; then
3036   ac_ct_CC=$CC
3037   for ac_prog in cl.exe
3038 do
3039   # Extract the first word of "$ac_prog", so it can be a program name with args.
3040 set dummy $ac_prog; ac_word=$2
3041 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3042 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3043 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3044   echo $ECHO_N "(cached) $ECHO_C" >&6
3045 else
3046   if test -n "$ac_ct_CC"; then
3047   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3048 else
3049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3050 for as_dir in $PATH
3051 do
3052   IFS=$as_save_IFS
3053   test -z "$as_dir" && as_dir=.
3054   for ac_exec_ext in '' $ac_executable_extensions; do
3055   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3056     ac_cv_prog_ac_ct_CC="$ac_prog"
3057     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3058     break 2
3059   fi
3060 done
3061 done
3062 IFS=$as_save_IFS
3063
3064 fi
3065 fi
3066 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3067 if test -n "$ac_ct_CC"; then
3068   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3069 echo "${ECHO_T}$ac_ct_CC" >&6; }
3070 else
3071   { echo "$as_me:$LINENO: result: no" >&5
3072 echo "${ECHO_T}no" >&6; }
3073 fi
3074
3075
3076   test -n "$ac_ct_CC" && break
3077 done
3078
3079   if test "x$ac_ct_CC" = x; then
3080     CC=""
3081   else
3082     case $cross_compiling:$ac_tool_warned in
3083 yes:)
3084 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3085 whose name does not start with the host triplet.  If you think this
3086 configuration is useful to you, please write to autoconf@gnu.org." >&5
3087 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3088 whose name does not start with the host triplet.  If you think this
3089 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3090 ac_tool_warned=yes ;;
3091 esac
3092     CC=$ac_ct_CC
3093   fi
3094 fi
3095
3096 fi
3097
3098
3099 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3100 See \`config.log' for more details." >&5
3101 echo "$as_me: error: no acceptable C compiler found in \$PATH
3102 See \`config.log' for more details." >&2;}
3103    { (exit 1); exit 1; }; }
3104
3105 # Provide some information about the compiler.
3106 echo "$as_me:$LINENO: checking for C compiler version" >&5
3107 ac_compiler=`set X $ac_compile; echo $2`
3108 { (ac_try="$ac_compiler --version >&5"
3109 case "(($ac_try" in
3110   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3111   *) ac_try_echo=$ac_try;;
3112 esac
3113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3114   (eval "$ac_compiler --version >&5") 2>&5
3115   ac_status=$?
3116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3117   (exit $ac_status); }
3118 { (ac_try="$ac_compiler -v >&5"
3119 case "(($ac_try" in
3120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3121   *) ac_try_echo=$ac_try;;
3122 esac
3123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3124   (eval "$ac_compiler -v >&5") 2>&5
3125   ac_status=$?
3126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3127   (exit $ac_status); }
3128 { (ac_try="$ac_compiler -V >&5"
3129 case "(($ac_try" in
3130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3131   *) ac_try_echo=$ac_try;;
3132 esac
3133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3134   (eval "$ac_compiler -V >&5") 2>&5
3135   ac_status=$?
3136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3137   (exit $ac_status); }
3138
3139 cat >conftest.$ac_ext <<_ACEOF
3140 /* confdefs.h.  */
3141 _ACEOF
3142 cat confdefs.h >>conftest.$ac_ext
3143 cat >>conftest.$ac_ext <<_ACEOF
3144 /* end confdefs.h.  */
3145
3146 int
3147 main ()
3148 {
3149
3150   ;
3151   return 0;
3152 }
3153 _ACEOF
3154 ac_clean_files_save=$ac_clean_files
3155 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3156 # Try to create an executable without -o first, disregard a.out.
3157 # It will help us diagnose broken compilers, and finding out an intuition
3158 # of exeext.
3159 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3160 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3161 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3162 #
3163 # List of possible output files, starting from the most likely.
3164 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3165 # only as a last resort.  b.out is created by i960 compilers.
3166 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3167 #
3168 # The IRIX 6 linker writes into existing files which may not be
3169 # executable, retaining their permissions.  Remove them first so a
3170 # subsequent execution test works.
3171 ac_rmfiles=
3172 for ac_file in $ac_files
3173 do
3174   case $ac_file in
3175     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3176     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3177   esac
3178 done
3179 rm -f $ac_rmfiles
3180
3181 if { (ac_try="$ac_link_default"
3182 case "(($ac_try" in
3183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3184   *) ac_try_echo=$ac_try;;
3185 esac
3186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3187   (eval "$ac_link_default") 2>&5
3188   ac_status=$?
3189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3190   (exit $ac_status); }; then
3191   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3192 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3193 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3194 # so that the user can short-circuit this test for compilers unknown to
3195 # Autoconf.
3196 for ac_file in $ac_files ''
3197 do
3198   test -f "$ac_file" || continue
3199   case $ac_file in
3200     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3201         ;;
3202     [ab].out )
3203         # We found the default executable, but exeext='' is most
3204         # certainly right.
3205         break;;
3206     *.* )
3207         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3208         then :; else
3209            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3210         fi
3211         # We set ac_cv_exeext here because the later test for it is not
3212         # safe: cross compilers may not add the suffix if given an `-o'
3213         # argument, so we may need to know it at that point already.
3214         # Even if this section looks crufty: it has the advantage of
3215         # actually working.
3216         break;;
3217     * )
3218         break;;
3219   esac
3220 done
3221 test "$ac_cv_exeext" = no && ac_cv_exeext=
3222
3223 else
3224   ac_file=''
3225 fi
3226
3227 { echo "$as_me:$LINENO: result: $ac_file" >&5
3228 echo "${ECHO_T}$ac_file" >&6; }
3229 if test -z "$ac_file"; then
3230   echo "$as_me: failed program was:" >&5
3231 sed 's/^/| /' conftest.$ac_ext >&5
3232
3233 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3234 See \`config.log' for more details." >&5
3235 echo "$as_me: error: C compiler cannot create executables
3236 See \`config.log' for more details." >&2;}
3237    { (exit 77); exit 77; }; }
3238 fi
3239
3240 ac_exeext=$ac_cv_exeext
3241
3242 # Check that the compiler produces executables we can run.  If not, either
3243 # the compiler is broken, or we cross compile.
3244 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3245 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3246 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3247 # If not cross compiling, check that we can run a simple program.
3248 if test "$cross_compiling" != yes; then
3249   if { ac_try='./$ac_file'
3250   { (case "(($ac_try" in
3251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3252   *) ac_try_echo=$ac_try;;
3253 esac
3254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3255   (eval "$ac_try") 2>&5
3256   ac_status=$?
3257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3258   (exit $ac_status); }; }; then
3259     cross_compiling=no
3260   else
3261     if test "$cross_compiling" = maybe; then
3262         cross_compiling=yes
3263     else
3264         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3265 If you meant to cross compile, use \`--host'.
3266 See \`config.log' for more details." >&5
3267 echo "$as_me: error: cannot run C compiled programs.
3268 If you meant to cross compile, use \`--host'.
3269 See \`config.log' for more details." >&2;}
3270    { (exit 1); exit 1; }; }
3271     fi
3272   fi
3273 fi
3274 { echo "$as_me:$LINENO: result: yes" >&5
3275 echo "${ECHO_T}yes" >&6; }
3276
3277 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3278 ac_clean_files=$ac_clean_files_save
3279 # Check that the compiler produces executables we can run.  If not, either
3280 # the compiler is broken, or we cross compile.
3281 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3282 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3283 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3284 echo "${ECHO_T}$cross_compiling" >&6; }
3285
3286 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3287 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3288 if { (ac_try="$ac_link"
3289 case "(($ac_try" in
3290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3291   *) ac_try_echo=$ac_try;;
3292 esac
3293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3294   (eval "$ac_link") 2>&5
3295   ac_status=$?
3296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3297   (exit $ac_status); }; then
3298   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3299 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3300 # work properly (i.e., refer to `conftest.exe'), while it won't with
3301 # `rm'.
3302 for ac_file in conftest.exe conftest conftest.*; do
3303   test -f "$ac_file" || continue
3304   case $ac_file in
3305     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3306     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3307           break;;
3308     * ) break;;
3309   esac
3310 done
3311 else
3312   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3313 See \`config.log' for more details." >&5
3314 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3315 See \`config.log' for more details." >&2;}
3316    { (exit 1); exit 1; }; }
3317 fi
3318
3319 rm -f conftest$ac_cv_exeext
3320 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3321 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3322
3323 rm -f conftest.$ac_ext
3324 EXEEXT=$ac_cv_exeext
3325 ac_exeext=$EXEEXT
3326 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3327 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3328 if test "${ac_cv_objext+set}" = set; then
3329   echo $ECHO_N "(cached) $ECHO_C" >&6
3330 else
3331   cat >conftest.$ac_ext <<_ACEOF
3332 /* confdefs.h.  */
3333 _ACEOF
3334 cat confdefs.h >>conftest.$ac_ext
3335 cat >>conftest.$ac_ext <<_ACEOF
3336 /* end confdefs.h.  */
3337
3338 int
3339 main ()
3340 {
3341
3342   ;
3343   return 0;
3344 }
3345 _ACEOF
3346 rm -f conftest.o conftest.obj
3347 if { (ac_try="$ac_compile"
3348 case "(($ac_try" in
3349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3350   *) ac_try_echo=$ac_try;;
3351 esac
3352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3353   (eval "$ac_compile") 2>&5
3354   ac_status=$?
3355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3356   (exit $ac_status); }; then
3357   for ac_file in conftest.o conftest.obj conftest.*; do
3358   test -f "$ac_file" || continue;
3359   case $ac_file in
3360     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3361     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3362        break;;
3363   esac
3364 done
3365 else
3366   echo "$as_me: failed program was:" >&5
3367 sed 's/^/| /' conftest.$ac_ext >&5
3368
3369 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3370 See \`config.log' for more details." >&5
3371 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3372 See \`config.log' for more details." >&2;}
3373    { (exit 1); exit 1; }; }
3374 fi
3375
3376 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3377 fi
3378 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3379 echo "${ECHO_T}$ac_cv_objext" >&6; }
3380 OBJEXT=$ac_cv_objext
3381 ac_objext=$OBJEXT
3382 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3383 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3384 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3385   echo $ECHO_N "(cached) $ECHO_C" >&6
3386 else
3387   cat >conftest.$ac_ext <<_ACEOF
3388 /* confdefs.h.  */
3389 _ACEOF
3390 cat confdefs.h >>conftest.$ac_ext
3391 cat >>conftest.$ac_ext <<_ACEOF
3392 /* end confdefs.h.  */
3393
3394 int
3395 main ()
3396 {
3397 #ifndef __GNUC__
3398        choke me
3399 #endif
3400
3401   ;
3402   return 0;
3403 }
3404 _ACEOF
3405 rm -f conftest.$ac_objext
3406 if { (ac_try="$ac_compile"
3407 case "(($ac_try" in
3408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3409   *) ac_try_echo=$ac_try;;
3410 esac
3411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3412   (eval "$ac_compile") 2>conftest.er1
3413   ac_status=$?
3414   grep -v '^ *+' conftest.er1 >conftest.err
3415   rm -f conftest.er1
3416   cat conftest.err >&5
3417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3418   (exit $ac_status); } && {
3419          test -z "$ac_c_werror_flag" ||
3420          test ! -s conftest.err
3421        } && test -s conftest.$ac_objext; then
3422   ac_compiler_gnu=yes
3423 else
3424   echo "$as_me: failed program was:" >&5
3425 sed 's/^/| /' conftest.$ac_ext >&5
3426
3427         ac_compiler_gnu=no
3428 fi
3429
3430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3431 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3432
3433 fi
3434 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3435 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3436 GCC=`test $ac_compiler_gnu = yes && echo yes`
3437 ac_test_CFLAGS=${CFLAGS+set}
3438 ac_save_CFLAGS=$CFLAGS
3439 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3440 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3441 if test "${ac_cv_prog_cc_g+set}" = set; then
3442   echo $ECHO_N "(cached) $ECHO_C" >&6
3443 else
3444   ac_save_c_werror_flag=$ac_c_werror_flag
3445    ac_c_werror_flag=yes
3446    ac_cv_prog_cc_g=no
3447    CFLAGS="-g"
3448    cat >conftest.$ac_ext <<_ACEOF
3449 /* confdefs.h.  */
3450 _ACEOF
3451 cat confdefs.h >>conftest.$ac_ext
3452 cat >>conftest.$ac_ext <<_ACEOF
3453 /* end confdefs.h.  */
3454
3455 int
3456 main ()
3457 {
3458
3459   ;
3460   return 0;
3461 }
3462 _ACEOF
3463 rm -f conftest.$ac_objext
3464 if { (ac_try="$ac_compile"
3465 case "(($ac_try" in
3466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3467   *) ac_try_echo=$ac_try;;
3468 esac
3469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3470   (eval "$ac_compile") 2>conftest.er1
3471   ac_status=$?
3472   grep -v '^ *+' conftest.er1 >conftest.err
3473   rm -f conftest.er1
3474   cat conftest.err >&5
3475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3476   (exit $ac_status); } && {
3477          test -z "$ac_c_werror_flag" ||
3478          test ! -s conftest.err
3479        } && test -s conftest.$ac_objext; then
3480   ac_cv_prog_cc_g=yes
3481 else
3482   echo "$as_me: failed program was:" >&5
3483 sed 's/^/| /' conftest.$ac_ext >&5
3484
3485         CFLAGS=""
3486       cat >conftest.$ac_ext <<_ACEOF
3487 /* confdefs.h.  */
3488 _ACEOF
3489 cat confdefs.h >>conftest.$ac_ext
3490 cat >>conftest.$ac_ext <<_ACEOF
3491 /* end confdefs.h.  */
3492
3493 int
3494 main ()
3495 {
3496
3497   ;
3498   return 0;
3499 }
3500 _ACEOF
3501 rm -f conftest.$ac_objext
3502 if { (ac_try="$ac_compile"
3503 case "(($ac_try" in
3504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3505   *) ac_try_echo=$ac_try;;
3506 esac
3507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3508   (eval "$ac_compile") 2>conftest.er1
3509   ac_status=$?
3510   grep -v '^ *+' conftest.er1 >conftest.err
3511   rm -f conftest.er1
3512   cat conftest.err >&5
3513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3514   (exit $ac_status); } && {
3515          test -z "$ac_c_werror_flag" ||
3516          test ! -s conftest.err
3517        } && test -s conftest.$ac_objext; then
3518   :
3519 else
3520   echo "$as_me: failed program was:" >&5
3521 sed 's/^/| /' conftest.$ac_ext >&5
3522
3523         ac_c_werror_flag=$ac_save_c_werror_flag
3524          CFLAGS="-g"
3525          cat >conftest.$ac_ext <<_ACEOF
3526 /* confdefs.h.  */
3527 _ACEOF
3528 cat confdefs.h >>conftest.$ac_ext
3529 cat >>conftest.$ac_ext <<_ACEOF
3530 /* end confdefs.h.  */
3531
3532 int
3533 main ()
3534 {
3535
3536   ;
3537   return 0;
3538 }
3539 _ACEOF
3540 rm -f conftest.$ac_objext
3541 if { (ac_try="$ac_compile"
3542 case "(($ac_try" in
3543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3544   *) ac_try_echo=$ac_try;;
3545 esac
3546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3547   (eval "$ac_compile") 2>conftest.er1
3548   ac_status=$?
3549   grep -v '^ *+' conftest.er1 >conftest.err
3550   rm -f conftest.er1
3551   cat conftest.err >&5
3552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3553   (exit $ac_status); } && {
3554          test -z "$ac_c_werror_flag" ||
3555          test ! -s conftest.err
3556        } && test -s conftest.$ac_objext; then
3557   ac_cv_prog_cc_g=yes
3558 else
3559   echo "$as_me: failed program was:" >&5
3560 sed 's/^/| /' conftest.$ac_ext >&5
3561
3562
3563 fi
3564
3565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3566 fi
3567
3568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3569 fi
3570
3571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3572    ac_c_werror_flag=$ac_save_c_werror_flag
3573 fi
3574 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3575 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3576 if test "$ac_test_CFLAGS" = set; then
3577   CFLAGS=$ac_save_CFLAGS
3578 elif test $ac_cv_prog_cc_g = yes; then
3579   if test "$GCC" = yes; then
3580     CFLAGS="-g -O2"
3581   else
3582     CFLAGS="-g"
3583   fi
3584 else
3585   if test "$GCC" = yes; then
3586     CFLAGS="-O2"
3587   else
3588     CFLAGS=
3589   fi
3590 fi
3591 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3592 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3593 if test "${ac_cv_prog_cc_c89+set}" = set; then
3594   echo $ECHO_N "(cached) $ECHO_C" >&6
3595 else
3596   ac_cv_prog_cc_c89=no
3597 ac_save_CC=$CC
3598 cat >conftest.$ac_ext <<_ACEOF
3599 /* confdefs.h.  */
3600 _ACEOF
3601 cat confdefs.h >>conftest.$ac_ext
3602 cat >>conftest.$ac_ext <<_ACEOF
3603 /* end confdefs.h.  */
3604 #include <stdarg.h>
3605 #include <stdio.h>
3606 #include <sys/types.h>
3607 #include <sys/stat.h>
3608 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3609 struct buf { int x; };
3610 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3611 static char *e (p, i)
3612      char **p;
3613      int i;
3614 {
3615   return p[i];
3616 }
3617 static char *f (char * (*g) (char **, int), char **p, ...)
3618 {
3619   char *s;
3620   va_list v;
3621   va_start (v,p);
3622   s = g (p, va_arg (v,int));
3623   va_end (v);
3624   return s;
3625 }
3626
3627 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3628    function prototypes and stuff, but not '\xHH' hex character constants.
3629    These don't provoke an error unfortunately, instead are silently treated
3630    as 'x'.  The following induces an error, until -std is added to get
3631    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3632    array size at least.  It's necessary to write '\x00'==0 to get something
3633    that's true only with -std.  */
3634 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3635
3636 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3637    inside strings and character constants.  */
3638 #define FOO(x) 'x'
3639 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3640
3641 int test (int i, double x);
3642 struct s1 {int (*f) (int a);};
3643 struct s2 {int (*f) (double a);};
3644 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3645 int argc;
3646 char **argv;
3647 int
3648 main ()
3649 {
3650 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3651   ;
3652   return 0;
3653 }
3654 _ACEOF
3655 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3656         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3657 do
3658   CC="$ac_save_CC $ac_arg"
3659   rm -f conftest.$ac_objext
3660 if { (ac_try="$ac_compile"
3661 case "(($ac_try" in
3662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3663   *) ac_try_echo=$ac_try;;
3664 esac
3665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3666   (eval "$ac_compile") 2>conftest.er1
3667   ac_status=$?
3668   grep -v '^ *+' conftest.er1 >conftest.err
3669   rm -f conftest.er1
3670   cat conftest.err >&5
3671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3672   (exit $ac_status); } && {
3673          test -z "$ac_c_werror_flag" ||
3674          test ! -s conftest.err
3675        } && test -s conftest.$ac_objext; then
3676   ac_cv_prog_cc_c89=$ac_arg
3677 else
3678   echo "$as_me: failed program was:" >&5
3679 sed 's/^/| /' conftest.$ac_ext >&5
3680
3681
3682 fi
3683
3684 rm -f core conftest.err conftest.$ac_objext
3685   test "x$ac_cv_prog_cc_c89" != "xno" && break
3686 done
3687 rm -f conftest.$ac_ext
3688 CC=$ac_save_CC
3689
3690 fi
3691 # AC_CACHE_VAL
3692 case "x$ac_cv_prog_cc_c89" in
3693   x)
3694     { echo "$as_me:$LINENO: result: none needed" >&5
3695 echo "${ECHO_T}none needed" >&6; } ;;
3696   xno)
3697     { echo "$as_me:$LINENO: result: unsupported" >&5
3698 echo "${ECHO_T}unsupported" >&6; } ;;
3699   *)
3700     CC="$CC $ac_cv_prog_cc_c89"
3701     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3702 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3703 esac
3704
3705
3706 ac_ext=c
3707 ac_cpp='$CPP $CPPFLAGS'
3708 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3709 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3710 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3711 DEPDIR="${am__leading_dot}deps"
3712
3713 ac_config_commands="$ac_config_commands depfiles"
3714
3715
3716 am_make=${MAKE-make}
3717 cat > confinc << 'END'
3718 am__doit:
3719         @echo done
3720 .PHONY: am__doit
3721 END
3722 # If we don't find an include directive, just comment out the code.
3723 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3724 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3725 am__include="#"
3726 am__quote=
3727 _am_result=none
3728 # First try GNU make style include.
3729 echo "include confinc" > confmf
3730 # We grep out `Entering directory' and `Leaving directory'
3731 # messages which can occur if `w' ends up in MAKEFLAGS.
3732 # In particular we don't look at `^make:' because GNU make might
3733 # be invoked under some other name (usually "gmake"), in which
3734 # case it prints its new name instead of `make'.
3735 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3736    am__include=include
3737    am__quote=
3738    _am_result=GNU
3739 fi
3740 # Now try BSD make style include.
3741 if test "$am__include" = "#"; then
3742    echo '.include "confinc"' > confmf
3743    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3744       am__include=.include
3745       am__quote="\""
3746       _am_result=BSD
3747    fi
3748 fi
3749
3750
3751 { echo "$as_me:$LINENO: result: $_am_result" >&5
3752 echo "${ECHO_T}$_am_result" >&6; }
3753 rm -f confinc confmf
3754
3755 # Check whether --enable-dependency-tracking was given.
3756 if test "${enable_dependency_tracking+set}" = set; then
3757   enableval=$enable_dependency_tracking;
3758 fi
3759
3760 if test "x$enable_dependency_tracking" != xno; then
3761   am_depcomp="$ac_aux_dir/depcomp"
3762   AMDEPBACKSLASH='\'
3763 fi
3764  if test "x$enable_dependency_tracking" != xno; then
3765   AMDEP_TRUE=
3766   AMDEP_FALSE='#'
3767 else
3768   AMDEP_TRUE='#'
3769   AMDEP_FALSE=
3770 fi
3771
3772
3773
3774 depcc="$CC"   am_compiler_list=
3775
3776 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3777 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3778 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3779   echo $ECHO_N "(cached) $ECHO_C" >&6
3780 else
3781   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3782   # We make a subdir and do the tests there.  Otherwise we can end up
3783   # making bogus files that we don't know about and never remove.  For
3784   # instance it was reported that on HP-UX the gcc test will end up
3785   # making a dummy file named `D' -- because `-MD' means `put the output
3786   # in D'.
3787   mkdir conftest.dir
3788   # Copy depcomp to subdir because otherwise we won't find it if we're
3789   # using a relative directory.
3790   cp "$am_depcomp" conftest.dir
3791   cd conftest.dir
3792   # We will build objects and dependencies in a subdirectory because
3793   # it helps to detect inapplicable dependency modes.  For instance
3794   # both Tru64's cc and ICC support -MD to output dependencies as a
3795   # side effect of compilation, but ICC will put the dependencies in
3796   # the current directory while Tru64 will put them in the object
3797   # directory.
3798   mkdir sub
3799
3800   am_cv_CC_dependencies_compiler_type=none
3801   if test "$am_compiler_list" = ""; then
3802      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3803   fi
3804   for depmode in $am_compiler_list; do
3805     # Setup a source with many dependencies, because some compilers
3806     # like to wrap large dependency lists on column 80 (with \), and
3807     # we should not choose a depcomp mode which is confused by this.
3808     #
3809     # We need to recreate these files for each test, as the compiler may
3810     # overwrite some of them when testing with obscure command lines.
3811     # This happens at least with the AIX C compiler.
3812     : > sub/conftest.c
3813     for i in 1 2 3 4 5 6; do
3814       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3815       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3816       # Solaris 8's {/usr,}/bin/sh.
3817       touch sub/conftst$i.h
3818     done
3819     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3820
3821     case $depmode in
3822     nosideeffect)
3823       # after this tag, mechanisms are not by side-effect, so they'll
3824       # only be used when explicitly requested
3825       if test "x$enable_dependency_tracking" = xyes; then
3826         continue
3827       else
3828         break
3829       fi
3830       ;;
3831     none) break ;;
3832     esac
3833     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3834     # mode.  It turns out that the SunPro C++ compiler does not properly
3835     # handle `-M -o', and we need to detect this.
3836     if depmode=$depmode \
3837        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3838        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3839        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3840          >/dev/null 2>conftest.err &&
3841        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3842        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3843        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3844        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3845       # icc doesn't choke on unknown options, it will just issue warnings
3846       # or remarks (even with -Werror).  So we grep stderr for any message
3847       # that says an option was ignored or not supported.
3848       # When given -MP, icc 7.0 and 7.1 complain thusly:
3849       #   icc: Command line warning: ignoring option '-M'; no argument required
3850       # The diagnosis changed in icc 8.0:
3851       #   icc: Command line remark: option '-MP' not supported
3852       if (grep 'ignoring option' conftest.err ||
3853           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3854         am_cv_CC_dependencies_compiler_type=$depmode
3855         break
3856       fi
3857     fi
3858   done
3859
3860   cd ..
3861   rm -rf conftest.dir
3862 else
3863   am_cv_CC_dependencies_compiler_type=none
3864 fi
3865
3866 fi
3867 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3868 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3869 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3870
3871  if
3872   test "x$enable_dependency_tracking" != xno \
3873   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3874   am__fastdepCC_TRUE=
3875   am__fastdepCC_FALSE='#'
3876 else
3877   am__fastdepCC_TRUE='#'
3878   am__fastdepCC_FALSE=
3879 fi
3880
3881
3882
3883 if test -n "$ac_tool_prefix"; then
3884   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3885 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3886 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3887 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3888 if test "${ac_cv_prog_RANLIB+set}" = set; then
3889   echo $ECHO_N "(cached) $ECHO_C" >&6
3890 else
3891   if test -n "$RANLIB"; then
3892   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3893 else
3894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3895 for as_dir in $PATH
3896 do
3897   IFS=$as_save_IFS
3898   test -z "$as_dir" && as_dir=.
3899   for ac_exec_ext in '' $ac_executable_extensions; do
3900   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3901     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3902     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3903     break 2
3904   fi
3905 done
3906 done
3907 IFS=$as_save_IFS
3908
3909 fi
3910 fi
3911 RANLIB=$ac_cv_prog_RANLIB
3912 if test -n "$RANLIB"; then
3913   { echo "$as_me:$LINENO: result: $RANLIB" >&5
3914 echo "${ECHO_T}$RANLIB" >&6; }
3915 else
3916   { echo "$as_me:$LINENO: result: no" >&5
3917 echo "${ECHO_T}no" >&6; }
3918 fi
3919
3920
3921 fi
3922 if test -z "$ac_cv_prog_RANLIB"; then
3923   ac_ct_RANLIB=$RANLIB
3924   # Extract the first word of "ranlib", so it can be a program name with args.
3925 set dummy ranlib; ac_word=$2
3926 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3927 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3928 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3929   echo $ECHO_N "(cached) $ECHO_C" >&6
3930 else
3931   if test -n "$ac_ct_RANLIB"; then
3932   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3933 else
3934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3935 for as_dir in $PATH
3936 do
3937   IFS=$as_save_IFS
3938   test -z "$as_dir" && as_dir=.
3939   for ac_exec_ext in '' $ac_executable_extensions; do
3940   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3941     ac_cv_prog_ac_ct_RANLIB="ranlib"
3942     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3943     break 2
3944   fi
3945 done
3946 done
3947 IFS=$as_save_IFS
3948
3949 fi
3950 fi
3951 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3952 if test -n "$ac_ct_RANLIB"; then
3953   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3954 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
3955 else
3956   { echo "$as_me:$LINENO: result: no" >&5
3957 echo "${ECHO_T}no" >&6; }
3958 fi
3959
3960   if test "x$ac_ct_RANLIB" = x; then
3961     RANLIB=":"
3962   else
3963     case $cross_compiling:$ac_tool_warned in
3964 yes:)
3965 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3966 whose name does not start with the host triplet.  If you think this
3967 configuration is useful to you, please write to autoconf@gnu.org." >&5
3968 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3969 whose name does not start with the host triplet.  If you think this
3970 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3971 ac_tool_warned=yes ;;
3972 esac
3973     RANLIB=$ac_ct_RANLIB
3974   fi
3975 else
3976   RANLIB="$ac_cv_prog_RANLIB"
3977 fi
3978
3979 for ac_prog in 'bison -y' byacc
3980 do
3981   # Extract the first word of "$ac_prog", so it can be a program name with args.
3982 set dummy $ac_prog; ac_word=$2
3983 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3984 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3985 if test "${ac_cv_prog_YACC+set}" = set; then
3986   echo $ECHO_N "(cached) $ECHO_C" >&6
3987 else
3988   if test -n "$YACC"; then
3989   ac_cv_prog_YACC="$YACC" # Let the user override the test.
3990 else
3991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3992 for as_dir in $PATH
3993 do
3994   IFS=$as_save_IFS
3995   test -z "$as_dir" && as_dir=.
3996   for ac_exec_ext in '' $ac_executable_extensions; do
3997   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3998     ac_cv_prog_YACC="$ac_prog"
3999     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4000     break 2
4001   fi
4002 done
4003 done
4004 IFS=$as_save_IFS
4005
4006 fi
4007 fi
4008 YACC=$ac_cv_prog_YACC
4009 if test -n "$YACC"; then
4010   { echo "$as_me:$LINENO: result: $YACC" >&5
4011 echo "${ECHO_T}$YACC" >&6; }
4012 else
4013   { echo "$as_me:$LINENO: result: no" >&5
4014 echo "${ECHO_T}no" >&6; }
4015 fi
4016
4017
4018   test -n "$YACC" && break
4019 done
4020 test -n "$YACC" || YACC="yacc"
4021
4022 if test "x$CC" != xcc; then
4023   { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
4024 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
4025 else
4026   { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
4027 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
4028 fi
4029 set dummy $CC; ac_cc=`echo $2 |
4030                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4031 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
4032   echo $ECHO_N "(cached) $ECHO_C" >&6
4033 else
4034   cat >conftest.$ac_ext <<_ACEOF
4035 /* confdefs.h.  */
4036 _ACEOF
4037 cat confdefs.h >>conftest.$ac_ext
4038 cat >>conftest.$ac_ext <<_ACEOF
4039 /* end confdefs.h.  */
4040
4041 int
4042 main ()
4043 {
4044
4045   ;
4046   return 0;
4047 }
4048 _ACEOF
4049 # Make sure it works both with $CC and with simple cc.
4050 # We do the test twice because some compilers refuse to overwrite an
4051 # existing .o file with -o, though they will create one.
4052 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4053 rm -f conftest2.*
4054 if { (case "(($ac_try" in
4055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4056   *) ac_try_echo=$ac_try;;
4057 esac
4058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4059   (eval "$ac_try") 2>&5
4060   ac_status=$?
4061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4062   (exit $ac_status); } &&
4063    test -f conftest2.$ac_objext && { (case "(($ac_try" in
4064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4065   *) ac_try_echo=$ac_try;;
4066 esac
4067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4068   (eval "$ac_try") 2>&5
4069   ac_status=$?
4070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4071   (exit $ac_status); };
4072 then
4073   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4074   if test "x$CC" != xcc; then
4075     # Test first that cc exists at all.
4076     if { ac_try='cc -c conftest.$ac_ext >&5'
4077   { (case "(($ac_try" in
4078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4079   *) ac_try_echo=$ac_try;;
4080 esac
4081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4082   (eval "$ac_try") 2>&5
4083   ac_status=$?
4084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4085   (exit $ac_status); }; }; then
4086       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4087       rm -f conftest2.*
4088       if { (case "(($ac_try" in
4089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4090   *) ac_try_echo=$ac_try;;
4091 esac
4092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4093   (eval "$ac_try") 2>&5
4094   ac_status=$?
4095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4096   (exit $ac_status); } &&
4097          test -f conftest2.$ac_objext && { (case "(($ac_try" in
4098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4099   *) ac_try_echo=$ac_try;;
4100 esac
4101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4102   (eval "$ac_try") 2>&5
4103   ac_status=$?
4104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4105   (exit $ac_status); };
4106       then
4107         # cc works too.
4108         :
4109       else
4110         # cc exists but doesn't like -o.
4111         eval ac_cv_prog_cc_${ac_cc}_c_o=no
4112       fi
4113     fi
4114   fi
4115 else
4116   eval ac_cv_prog_cc_${ac_cc}_c_o=no
4117 fi
4118 rm -f core conftest*
4119
4120 fi
4121 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4122   { echo "$as_me:$LINENO: result: yes" >&5
4123 echo "${ECHO_T}yes" >&6; }
4124 else
4125   { echo "$as_me:$LINENO: result: no" >&5
4126 echo "${ECHO_T}no" >&6; }
4127
4128 cat >>confdefs.h <<\_ACEOF
4129 #define NO_MINUS_C_MINUS_O 1
4130 _ACEOF
4131
4132 fi
4133
4134 # FIXME: we rely on the cache variable name because
4135 # there is no other way.
4136 set dummy $CC
4137 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4138 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
4139    # Losing compiler, so override with the script.
4140    # FIXME: It is wrong to rewrite CC.
4141    # But if we don't then we get into trouble of one sort or another.
4142    # A longer-term fix would be to have automake use am__CC in this case,
4143    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4144    CC="$am_aux_dir/compile $CC"
4145 fi
4146
4147
4148
4149 cat >>confdefs.h <<\_ACEOF
4150 #define _GNU_SOURCE 1
4151 _ACEOF
4152
4153
4154
4155 ac_ext=c
4156 ac_cpp='$CPP $CPPFLAGS'
4157 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4158 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4159 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4160 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4161 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4162 # On Suns, sometimes $CPP names a directory.
4163 if test -n "$CPP" && test -d "$CPP"; then
4164   CPP=
4165 fi
4166 if test -z "$CPP"; then
4167   if test "${ac_cv_prog_CPP+set}" = set; then
4168   echo $ECHO_N "(cached) $ECHO_C" >&6
4169 else
4170       # Double quotes because CPP needs to be expanded
4171     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4172     do
4173       ac_preproc_ok=false
4174 for ac_c_preproc_warn_flag in '' yes
4175 do
4176   # Use a header file that comes with gcc, so configuring glibc
4177   # with a fresh cross-compiler works.
4178   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4179   # <limits.h> exists even on freestanding compilers.
4180   # On the NeXT, cc -E runs the code through the compiler's parser,
4181   # not just through cpp. "Syntax error" is here to catch this case.
4182   cat >conftest.$ac_ext <<_ACEOF
4183 /* confdefs.h.  */
4184 _ACEOF
4185 cat confdefs.h >>conftest.$ac_ext
4186 cat >>conftest.$ac_ext <<_ACEOF
4187 /* end confdefs.h.  */
4188 #ifdef __STDC__
4189 # include <limits.h>
4190 #else
4191 # include <assert.h>
4192 #endif
4193                      Syntax error
4194 _ACEOF
4195 if { (ac_try="$ac_cpp conftest.$ac_ext"
4196 case "(($ac_try" in
4197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4198   *) ac_try_echo=$ac_try;;
4199 esac
4200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4201   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4202   ac_status=$?
4203   grep -v '^ *+' conftest.er1 >conftest.err
4204   rm -f conftest.er1
4205   cat conftest.err >&5
4206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4207   (exit $ac_status); } >/dev/null && {
4208          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4209          test ! -s conftest.err
4210        }; then
4211   :
4212 else
4213   echo "$as_me: failed program was:" >&5
4214 sed 's/^/| /' conftest.$ac_ext >&5
4215
4216   # Broken: fails on valid input.
4217 continue
4218 fi
4219
4220 rm -f conftest.err conftest.$ac_ext
4221
4222   # OK, works on sane cases.  Now check whether nonexistent headers
4223   # can be detected and how.
4224   cat >conftest.$ac_ext <<_ACEOF
4225 /* confdefs.h.  */
4226 _ACEOF
4227 cat confdefs.h >>conftest.$ac_ext
4228 cat >>conftest.$ac_ext <<_ACEOF
4229 /* end confdefs.h.  */
4230 #include <ac_nonexistent.h>
4231 _ACEOF
4232 if { (ac_try="$ac_cpp conftest.$ac_ext"
4233 case "(($ac_try" in
4234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4235   *) ac_try_echo=$ac_try;;
4236 esac
4237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4238   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4239   ac_status=$?
4240   grep -v '^ *+' conftest.er1 >conftest.err
4241   rm -f conftest.er1
4242   cat conftest.err >&5
4243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4244   (exit $ac_status); } >/dev/null && {
4245          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4246          test ! -s conftest.err
4247        }; then
4248   # Broken: success on invalid input.
4249 continue
4250 else
4251   echo "$as_me: failed program was:" >&5
4252 sed 's/^/| /' conftest.$ac_ext >&5
4253
4254   # Passes both tests.
4255 ac_preproc_ok=:
4256 break
4257 fi
4258
4259 rm -f conftest.err conftest.$ac_ext
4260
4261 done
4262 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4263 rm -f conftest.err conftest.$ac_ext
4264 if $ac_preproc_ok; then
4265   break
4266 fi
4267
4268     done
4269     ac_cv_prog_CPP=$CPP
4270
4271 fi
4272   CPP=$ac_cv_prog_CPP
4273 else
4274   ac_cv_prog_CPP=$CPP
4275 fi
4276 { echo "$as_me:$LINENO: result: $CPP" >&5
4277 echo "${ECHO_T}$CPP" >&6; }
4278 ac_preproc_ok=false
4279 for ac_c_preproc_warn_flag in '' yes
4280 do
4281   # Use a header file that comes with gcc, so configuring glibc
4282   # with a fresh cross-compiler works.
4283   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4284   # <limits.h> exists even on freestanding compilers.
4285   # On the NeXT, cc -E runs the code through the compiler's parser,
4286   # not just through cpp. "Syntax error" is here to catch this case.
4287   cat >conftest.$ac_ext <<_ACEOF
4288 /* confdefs.h.  */
4289 _ACEOF
4290 cat confdefs.h >>conftest.$ac_ext
4291 cat >>conftest.$ac_ext <<_ACEOF
4292 /* end confdefs.h.  */
4293 #ifdef __STDC__
4294 # include <limits.h>
4295 #else
4296 # include <assert.h>
4297 #endif
4298                      Syntax error
4299 _ACEOF
4300 if { (ac_try="$ac_cpp conftest.$ac_ext"
4301 case "(($ac_try" in
4302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4303   *) ac_try_echo=$ac_try;;
4304 esac
4305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4306   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4307   ac_status=$?
4308   grep -v '^ *+' conftest.er1 >conftest.err
4309   rm -f conftest.er1
4310   cat conftest.err >&5
4311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4312   (exit $ac_status); } >/dev/null && {
4313          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4314          test ! -s conftest.err
4315        }; then
4316   :
4317 else
4318   echo "$as_me: failed program was:" >&5
4319 sed 's/^/| /' conftest.$ac_ext >&5
4320
4321   # Broken: fails on valid input.
4322 continue
4323 fi
4324
4325 rm -f conftest.err conftest.$ac_ext
4326
4327   # OK, works on sane cases.  Now check whether nonexistent headers
4328   # can be detected and how.
4329   cat >conftest.$ac_ext <<_ACEOF
4330 /* confdefs.h.  */
4331 _ACEOF
4332 cat confdefs.h >>conftest.$ac_ext
4333 cat >>conftest.$ac_ext <<_ACEOF
4334 /* end confdefs.h.  */
4335 #include <ac_nonexistent.h>
4336 _ACEOF
4337 if { (ac_try="$ac_cpp conftest.$ac_ext"
4338 case "(($ac_try" in
4339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4340   *) ac_try_echo=$ac_try;;
4341 esac
4342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4343   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4344   ac_status=$?
4345   grep -v '^ *+' conftest.er1 >conftest.err
4346   rm -f conftest.er1
4347   cat conftest.err >&5
4348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4349   (exit $ac_status); } >/dev/null && {
4350          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4351          test ! -s conftest.err
4352        }; then
4353   # Broken: success on invalid input.
4354 continue
4355 else
4356   echo "$as_me: failed program was:" >&5
4357 sed 's/^/| /' conftest.$ac_ext >&5
4358
4359   # Passes both tests.
4360 ac_preproc_ok=:
4361 break
4362 fi
4363
4364 rm -f conftest.err conftest.$ac_ext
4365
4366 done
4367 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4368 rm -f conftest.err conftest.$ac_ext
4369 if $ac_preproc_ok; then
4370   :
4371 else
4372   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4373 See \`config.log' for more details." >&5
4374 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4375 See \`config.log' for more details." >&2;}
4376    { (exit 1); exit 1; }; }
4377 fi
4378
4379 ac_ext=c
4380 ac_cpp='$CPP $CPPFLAGS'
4381 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4382 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4383 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4384
4385
4386 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4387 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4388 if test "${ac_cv_path_GREP+set}" = set; then
4389   echo $ECHO_N "(cached) $ECHO_C" >&6
4390 else
4391   # Extract the first word of "grep ggrep" to use in msg output
4392 if test -z "$GREP"; then
4393 set dummy grep ggrep; ac_prog_name=$2
4394 if test "${ac_cv_path_GREP+set}" = set; then
4395   echo $ECHO_N "(cached) $ECHO_C" >&6
4396 else
4397   ac_path_GREP_found=false
4398 # Loop through the user's path and test for each of PROGNAME-LIST
4399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4400 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4401 do
4402   IFS=$as_save_IFS
4403   test -z "$as_dir" && as_dir=.
4404   for ac_prog in grep ggrep; do
4405   for ac_exec_ext in '' $ac_executable_extensions; do
4406     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4407     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4408     # Check for GNU ac_path_GREP and select it if it is found.
4409   # Check for GNU $ac_path_GREP
4410 case `"$ac_path_GREP" --version 2>&1` in
4411 *GNU*)
4412   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4413 *)
4414   ac_count=0
4415   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4416   while :
4417   do
4418     cat "conftest.in" "conftest.in" >"conftest.tmp"
4419     mv "conftest.tmp" "conftest.in"
4420     cp "conftest.in" "conftest.nl"
4421     echo 'GREP' >> "conftest.nl"
4422     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4423     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4424     ac_count=`expr $ac_count + 1`
4425     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4426       # Best one so far, save it but keep looking for a better one
4427       ac_cv_path_GREP="$ac_path_GREP"
4428       ac_path_GREP_max=$ac_count
4429     fi
4430     # 10*(2^10) chars as input seems more than enough
4431     test $ac_count -gt 10 && break
4432   done
4433   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4434 esac
4435
4436
4437     $ac_path_GREP_found && break 3
4438   done
4439 done
4440
4441 done
4442 IFS=$as_save_IFS
4443
4444
4445 fi
4446
4447 GREP="$ac_cv_path_GREP"
4448 if test -z "$GREP"; then
4449   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4450 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4451    { (exit 1); exit 1; }; }
4452 fi
4453
4454 else
4455   ac_cv_path_GREP=$GREP
4456 fi
4457
4458
4459 fi
4460 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4461 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4462  GREP="$ac_cv_path_GREP"
4463
4464
4465 { echo "$as_me:$LINENO: checking for egrep" >&5
4466 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4467 if test "${ac_cv_path_EGREP+set}" = set; then
4468   echo $ECHO_N "(cached) $ECHO_C" >&6
4469 else
4470   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4471    then ac_cv_path_EGREP="$GREP -E"
4472    else
4473      # Extract the first word of "egrep" to use in msg output
4474 if test -z "$EGREP"; then
4475 set dummy egrep; ac_prog_name=$2
4476 if test "${ac_cv_path_EGREP+set}" = set; then
4477   echo $ECHO_N "(cached) $ECHO_C" >&6
4478 else
4479   ac_path_EGREP_found=false
4480 # Loop through the user's path and test for each of PROGNAME-LIST
4481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4482 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4483 do
4484   IFS=$as_save_IFS
4485   test -z "$as_dir" && as_dir=.
4486   for ac_prog in egrep; do
4487   for ac_exec_ext in '' $ac_executable_extensions; do
4488     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4489     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4490     # Check for GNU ac_path_EGREP and select it if it is found.
4491   # Check for GNU $ac_path_EGREP
4492 case `"$ac_path_EGREP" --version 2>&1` in
4493 *GNU*)
4494   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4495 *)
4496   ac_count=0
4497   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4498   while :
4499   do
4500     cat "conftest.in" "conftest.in" >"conftest.tmp"
4501     mv "conftest.tmp" "conftest.in"
4502     cp "conftest.in" "conftest.nl"
4503     echo 'EGREP' >> "conftest.nl"
4504     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4505     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4506     ac_count=`expr $ac_count + 1`
4507     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4508       # Best one so far, save it but keep looking for a better one
4509       ac_cv_path_EGREP="$ac_path_EGREP"
4510       ac_path_EGREP_max=$ac_count
4511     fi
4512     # 10*(2^10) chars as input seems more than enough
4513     test $ac_count -gt 10 && break
4514   done
4515   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4516 esac
4517
4518
4519     $ac_path_EGREP_found && break 3
4520   done
4521 done
4522
4523 done
4524 IFS=$as_save_IFS
4525
4526
4527 fi
4528
4529 EGREP="$ac_cv_path_EGREP"
4530 if test -z "$EGREP"; then
4531   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4532 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4533    { (exit 1); exit 1; }; }
4534 fi
4535
4536 else
4537   ac_cv_path_EGREP=$EGREP
4538 fi
4539
4540
4541    fi
4542 fi
4543 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4544 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4545  EGREP="$ac_cv_path_EGREP"
4546
4547
4548 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4549 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4550 if test "${ac_cv_header_stdc+set}" = set; then
4551   echo $ECHO_N "(cached) $ECHO_C" >&6
4552 else
4553   cat >conftest.$ac_ext <<_ACEOF
4554 /* confdefs.h.  */
4555 _ACEOF
4556 cat confdefs.h >>conftest.$ac_ext
4557 cat >>conftest.$ac_ext <<_ACEOF
4558 /* end confdefs.h.  */
4559 #include <stdlib.h>
4560 #include <stdarg.h>
4561 #include <string.h>
4562 #include <float.h>
4563
4564 int
4565 main ()
4566 {
4567
4568   ;
4569   return 0;
4570 }
4571 _ACEOF
4572 rm -f conftest.$ac_objext
4573 if { (ac_try="$ac_compile"
4574 case "(($ac_try" in
4575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4576   *) ac_try_echo=$ac_try;;
4577 esac
4578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4579   (eval "$ac_compile") 2>conftest.er1
4580   ac_status=$?
4581   grep -v '^ *+' conftest.er1 >conftest.err
4582   rm -f conftest.er1
4583   cat conftest.err >&5
4584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4585   (exit $ac_status); } && {
4586          test -z "$ac_c_werror_flag" ||
4587          test ! -s conftest.err
4588        } && test -s conftest.$ac_objext; then
4589   ac_cv_header_stdc=yes
4590 else
4591   echo "$as_me: failed program was:" >&5
4592 sed 's/^/| /' conftest.$ac_ext >&5
4593
4594         ac_cv_header_stdc=no
4595 fi
4596
4597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4598
4599 if test $ac_cv_header_stdc = yes; then
4600   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4601   cat >conftest.$ac_ext <<_ACEOF
4602 /* confdefs.h.  */
4603 _ACEOF
4604 cat confdefs.h >>conftest.$ac_ext
4605 cat >>conftest.$ac_ext <<_ACEOF
4606 /* end confdefs.h.  */
4607 #include <string.h>
4608
4609 _ACEOF
4610 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4611   $EGREP "memchr" >/dev/null 2>&1; then
4612   :
4613 else
4614   ac_cv_header_stdc=no
4615 fi
4616 rm -f conftest*
4617
4618 fi
4619
4620 if test $ac_cv_header_stdc = yes; then
4621   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4622   cat >conftest.$ac_ext <<_ACEOF
4623 /* confdefs.h.  */
4624 _ACEOF
4625 cat confdefs.h >>conftest.$ac_ext
4626 cat >>conftest.$ac_ext <<_ACEOF
4627 /* end confdefs.h.  */
4628 #include <stdlib.h>
4629
4630 _ACEOF
4631 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4632   $EGREP "free" >/dev/null 2>&1; then
4633   :
4634 else
4635   ac_cv_header_stdc=no
4636 fi
4637 rm -f conftest*
4638
4639 fi
4640
4641 if test $ac_cv_header_stdc = yes; then
4642   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4643   if test "$cross_compiling" = yes; then
4644   :
4645 else
4646   cat >conftest.$ac_ext <<_ACEOF
4647 /* confdefs.h.  */
4648 _ACEOF
4649 cat confdefs.h >>conftest.$ac_ext
4650 cat >>conftest.$ac_ext <<_ACEOF
4651 /* end confdefs.h.  */
4652 #include <ctype.h>
4653 #include <stdlib.h>
4654 #if ((' ' & 0x0FF) == 0x020)
4655 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4656 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4657 #else
4658 # define ISLOWER(c) \
4659                    (('a' <= (c) && (c) <= 'i') \
4660                      || ('j' <= (c) && (c) <= 'r') \
4661                      || ('s' <= (c) && (c) <= 'z'))
4662 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4663 #endif
4664
4665 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4666 int
4667 main ()
4668 {
4669   int i;
4670   for (i = 0; i < 256; i++)
4671     if (XOR (islower (i), ISLOWER (i))
4672         || toupper (i) != TOUPPER (i))
4673       return 2;
4674   return 0;
4675 }
4676 _ACEOF
4677 rm -f conftest$ac_exeext
4678 if { (ac_try="$ac_link"
4679 case "(($ac_try" in
4680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4681   *) ac_try_echo=$ac_try;;
4682 esac
4683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4684   (eval "$ac_link") 2>&5
4685   ac_status=$?
4686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4687   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4688   { (case "(($ac_try" in
4689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4690   *) ac_try_echo=$ac_try;;
4691 esac
4692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4693   (eval "$ac_try") 2>&5
4694   ac_status=$?
4695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4696   (exit $ac_status); }; }; then
4697   :
4698 else
4699   echo "$as_me: program exited with status $ac_status" >&5
4700 echo "$as_me: failed program was:" >&5
4701 sed 's/^/| /' conftest.$ac_ext >&5
4702
4703 ( exit $ac_status )
4704 ac_cv_header_stdc=no
4705 fi
4706 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4707 fi
4708
4709
4710 fi
4711 fi
4712 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4713 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4714 if test $ac_cv_header_stdc = yes; then
4715
4716 cat >>confdefs.h <<\_ACEOF
4717 #define STDC_HEADERS 1
4718 _ACEOF
4719
4720 fi
4721
4722 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4723
4724
4725
4726
4727
4728
4729
4730
4731
4732 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4733                   inttypes.h stdint.h unistd.h
4734 do
4735 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4736 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4737 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4738 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4739   echo $ECHO_N "(cached) $ECHO_C" >&6
4740 else
4741   cat >conftest.$ac_ext <<_ACEOF
4742 /* confdefs.h.  */
4743 _ACEOF
4744 cat confdefs.h >>conftest.$ac_ext
4745 cat >>conftest.$ac_ext <<_ACEOF
4746 /* end confdefs.h.  */
4747 $ac_includes_default
4748
4749 #include <$ac_header>
4750 _ACEOF
4751 rm -f conftest.$ac_objext
4752 if { (ac_try="$ac_compile"
4753 case "(($ac_try" in
4754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4755   *) ac_try_echo=$ac_try;;
4756 esac
4757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4758   (eval "$ac_compile") 2>conftest.er1
4759   ac_status=$?
4760   grep -v '^ *+' conftest.er1 >conftest.err
4761   rm -f conftest.er1
4762   cat conftest.err >&5
4763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4764   (exit $ac_status); } && {
4765          test -z "$ac_c_werror_flag" ||
4766          test ! -s conftest.err
4767        } && test -s conftest.$ac_objext; then
4768   eval "$as_ac_Header=yes"
4769 else
4770   echo "$as_me: failed program was:" >&5
4771 sed 's/^/| /' conftest.$ac_ext >&5
4772
4773         eval "$as_ac_Header=no"
4774 fi
4775
4776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4777 fi
4778 ac_res=`eval echo '${'$as_ac_Header'}'`
4779                { echo "$as_me:$LINENO: result: $ac_res" >&5
4780 echo "${ECHO_T}$ac_res" >&6; }
4781 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4782   cat >>confdefs.h <<_ACEOF
4783 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4784 _ACEOF
4785
4786 fi
4787
4788 done
4789
4790
4791
4792   if test "${ac_cv_header_minix_config_h+set}" = set; then
4793   { echo "$as_me:$LINENO: checking for minix/config.h" >&5
4794 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
4795 if test "${ac_cv_header_minix_config_h+set}" = set; then
4796   echo $ECHO_N "(cached) $ECHO_C" >&6
4797 fi
4798 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4799 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
4800 else
4801   # Is the header compilable?
4802 { echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4803 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
4804 cat >conftest.$ac_ext <<_ACEOF
4805 /* confdefs.h.  */
4806 _ACEOF
4807 cat confdefs.h >>conftest.$ac_ext
4808 cat >>conftest.$ac_ext <<_ACEOF
4809 /* end confdefs.h.  */
4810 $ac_includes_default
4811 #include <minix/config.h>
4812 _ACEOF
4813 rm -f conftest.$ac_objext
4814 if { (ac_try="$ac_compile"
4815 case "(($ac_try" in
4816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4817   *) ac_try_echo=$ac_try;;
4818 esac
4819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4820   (eval "$ac_compile") 2>conftest.er1
4821   ac_status=$?
4822   grep -v '^ *+' conftest.er1 >conftest.err
4823   rm -f conftest.er1
4824   cat conftest.err >&5
4825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4826   (exit $ac_status); } && {
4827          test -z "$ac_c_werror_flag" ||
4828          test ! -s conftest.err
4829        } && test -s conftest.$ac_objext; then
4830   ac_header_compiler=yes
4831 else
4832   echo "$as_me: failed program was:" >&5
4833 sed 's/^/| /' conftest.$ac_ext >&5
4834
4835         ac_header_compiler=no
4836 fi
4837
4838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4839 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4840 echo "${ECHO_T}$ac_header_compiler" >&6; }
4841
4842 # Is the header present?
4843 { echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4844 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
4845 cat >conftest.$ac_ext <<_ACEOF
4846 /* confdefs.h.  */
4847 _ACEOF
4848 cat confdefs.h >>conftest.$ac_ext
4849 cat >>conftest.$ac_ext <<_ACEOF
4850 /* end confdefs.h.  */
4851 #include <minix/config.h>
4852 _ACEOF
4853 if { (ac_try="$ac_cpp conftest.$ac_ext"
4854 case "(($ac_try" in
4855   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4856   *) ac_try_echo=$ac_try;;
4857 esac
4858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4859   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4860   ac_status=$?
4861   grep -v '^ *+' conftest.er1 >conftest.err
4862   rm -f conftest.er1
4863   cat conftest.err >&5
4864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4865   (exit $ac_status); } >/dev/null && {
4866          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4867          test ! -s conftest.err
4868        }; then
4869   ac_header_preproc=yes
4870 else
4871   echo "$as_me: failed program was:" >&5
4872 sed 's/^/| /' conftest.$ac_ext >&5
4873
4874   ac_header_preproc=no
4875 fi
4876
4877 rm -f conftest.err conftest.$ac_ext
4878 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4879 echo "${ECHO_T}$ac_header_preproc" >&6; }
4880
4881 # So?  What about this header?
4882 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4883   yes:no: )
4884     { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4885 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4886     { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4887 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4888     ac_header_preproc=yes
4889     ;;
4890   no:yes:* )
4891     { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4892 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4893     { echo "$as_me:$LINENO: WARNING: minix/config.h:     check for missing prerequisite headers?" >&5
4894 echo "$as_me: WARNING: minix/config.h:     check for missing prerequisite headers?" >&2;}
4895     { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4896 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4897     { echo "$as_me:$LINENO: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&5
4898 echo "$as_me: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&2;}
4899     { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4900 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4901     { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4902 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4903     ( cat <<\_ASBOX
4904 ## ------------------------------ ##
4905 ## Report this to bug-tar@gnu.org ##
4906 ## ------------------------------ ##
4907 _ASBOX
4908      ) | sed "s/^/$as_me: WARNING:     /" >&2
4909     ;;
4910 esac
4911 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
4912 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
4913 if test "${ac_cv_header_minix_config_h+set}" = set; then
4914   echo $ECHO_N "(cached) $ECHO_C" >&6
4915 else
4916   ac_cv_header_minix_config_h=$ac_header_preproc
4917 fi
4918 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4919 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
4920
4921 fi
4922 if test $ac_cv_header_minix_config_h = yes; then
4923   MINIX=yes
4924 else
4925   MINIX=
4926 fi
4927
4928
4929   if test "$MINIX" = yes; then
4930
4931 cat >>confdefs.h <<\_ACEOF
4932 #define _POSIX_SOURCE 1
4933 _ACEOF
4934
4935
4936 cat >>confdefs.h <<\_ACEOF
4937 #define _POSIX_1_SOURCE 2
4938 _ACEOF
4939
4940
4941 cat >>confdefs.h <<\_ACEOF
4942 #define _MINIX 1
4943 _ACEOF
4944
4945   fi
4946
4947
4948
4949   { echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4950 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6; }
4951 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4952   echo $ECHO_N "(cached) $ECHO_C" >&6
4953 else
4954   cat >conftest.$ac_ext <<_ACEOF
4955 /* confdefs.h.  */
4956 _ACEOF
4957 cat confdefs.h >>conftest.$ac_ext
4958 cat >>conftest.$ac_ext <<_ACEOF
4959 /* end confdefs.h.  */
4960
4961 #         define __EXTENSIONS__ 1
4962           $ac_includes_default
4963 int
4964 main ()
4965 {
4966
4967   ;
4968   return 0;
4969 }
4970 _ACEOF
4971 rm -f conftest.$ac_objext
4972 if { (ac_try="$ac_compile"
4973 case "(($ac_try" in
4974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4975   *) ac_try_echo=$ac_try;;
4976 esac
4977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4978   (eval "$ac_compile") 2>conftest.er1
4979   ac_status=$?
4980   grep -v '^ *+' conftest.er1 >conftest.err
4981   rm -f conftest.er1
4982   cat conftest.err >&5
4983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4984   (exit $ac_status); } && {
4985          test -z "$ac_c_werror_flag" ||
4986          test ! -s conftest.err
4987        } && test -s conftest.$ac_objext; then
4988   ac_cv_safe_to_define___extensions__=yes
4989 else
4990   echo "$as_me: failed program was:" >&5
4991 sed 's/^/| /' conftest.$ac_ext >&5
4992
4993         ac_cv_safe_to_define___extensions__=no
4994 fi
4995
4996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4997 fi
4998 { echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4999 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6; }
5000   test $ac_cv_safe_to_define___extensions__ = yes &&
5001     cat >>confdefs.h <<\_ACEOF
5002 #define __EXTENSIONS__ 1
5003 _ACEOF
5004
5005   cat >>confdefs.h <<\_ACEOF
5006 #define _ALL_SOURCE 1
5007 _ACEOF
5008
5009   cat >>confdefs.h <<\_ACEOF
5010 #define _GNU_SOURCE 1
5011 _ACEOF
5012
5013   cat >>confdefs.h <<\_ACEOF
5014 #define _POSIX_PTHREAD_SEMANTICS 1
5015 _ACEOF
5016
5017   cat >>confdefs.h <<\_ACEOF
5018 #define _TANDEM_SOURCE 1
5019 _ACEOF
5020
5021
5022
5023 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
5024 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
5025 if test "${ac_cv_sys_largefile_source+set}" = set; then
5026   echo $ECHO_N "(cached) $ECHO_C" >&6
5027 else
5028   while :; do
5029   cat >conftest.$ac_ext <<_ACEOF
5030 /* confdefs.h.  */
5031 _ACEOF
5032 cat confdefs.h >>conftest.$ac_ext
5033 cat >>conftest.$ac_ext <<_ACEOF
5034 /* end confdefs.h.  */
5035 #include <stdio.h>
5036 int
5037 main ()
5038 {
5039 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
5040   ;
5041   return 0;
5042 }
5043 _ACEOF
5044 rm -f conftest.$ac_objext conftest$ac_exeext
5045 if { (ac_try="$ac_link"
5046 case "(($ac_try" in
5047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5048   *) ac_try_echo=$ac_try;;
5049 esac
5050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5051   (eval "$ac_link") 2>conftest.er1
5052   ac_status=$?
5053   grep -v '^ *+' conftest.er1 >conftest.err
5054   rm -f conftest.er1
5055   cat conftest.err >&5
5056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5057   (exit $ac_status); } && {
5058          test -z "$ac_c_werror_flag" ||
5059          test ! -s conftest.err
5060        } && test -s conftest$ac_exeext &&
5061        $as_test_x conftest$ac_exeext; then
5062   ac_cv_sys_largefile_source=no; break
5063 else
5064   echo "$as_me: failed program was:" >&5
5065 sed 's/^/| /' conftest.$ac_ext >&5
5066
5067
5068 fi
5069
5070 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5071       conftest$ac_exeext conftest.$ac_ext
5072   cat >conftest.$ac_ext <<_ACEOF
5073 /* confdefs.h.  */
5074 _ACEOF
5075 cat confdefs.h >>conftest.$ac_ext
5076 cat >>conftest.$ac_ext <<_ACEOF
5077 /* end confdefs.h.  */
5078 #define _LARGEFILE_SOURCE 1
5079 #include <stdio.h>
5080 int
5081 main ()
5082 {
5083 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
5084   ;
5085   return 0;
5086 }
5087 _ACEOF
5088 rm -f conftest.$ac_objext conftest$ac_exeext
5089 if { (ac_try="$ac_link"
5090 case "(($ac_try" in
5091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5092   *) ac_try_echo=$ac_try;;
5093 esac
5094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5095   (eval "$ac_link") 2>conftest.er1
5096   ac_status=$?
5097   grep -v '^ *+' conftest.er1 >conftest.err
5098   rm -f conftest.er1
5099   cat conftest.err >&5
5100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5101   (exit $ac_status); } && {
5102          test -z "$ac_c_werror_flag" ||
5103          test ! -s conftest.err
5104        } && test -s conftest$ac_exeext &&
5105        $as_test_x conftest$ac_exeext; then
5106   ac_cv_sys_largefile_source=1; break
5107 else
5108   echo "$as_me: failed program was:" >&5
5109 sed 's/^/| /' conftest.$ac_ext >&5
5110
5111
5112 fi
5113
5114 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5115       conftest$ac_exeext conftest.$ac_ext
5116   ac_cv_sys_largefile_source=unknown
5117   break
5118 done
5119 fi
5120 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
5121 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
5122 case $ac_cv_sys_largefile_source in #(
5123   no | unknown) ;;
5124   *)
5125 cat >>confdefs.h <<_ACEOF
5126 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
5127 _ACEOF
5128 ;;
5129 esac
5130 rm -f conftest*
5131
5132 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
5133 # in glibc 2.1.3, but that breaks too many other things.
5134 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
5135 if test $ac_cv_sys_largefile_source != unknown; then
5136
5137 cat >>confdefs.h <<\_ACEOF
5138 #define HAVE_FSEEKO 1
5139 _ACEOF
5140
5141 fi
5142
5143    case $ac_cv_prog_cc_stdc in
5144   no) ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;;
5145   *) { echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5
5146 echo $ECHO_N "checking for $CC option to accept ISO C99... $ECHO_C" >&6; }
5147 if test "${ac_cv_prog_cc_c99+set}" = set; then
5148   echo $ECHO_N "(cached) $ECHO_C" >&6
5149 else
5150   ac_cv_prog_cc_c99=no
5151 ac_save_CC=$CC
5152 cat >conftest.$ac_ext <<_ACEOF
5153 /* confdefs.h.  */
5154 _ACEOF
5155 cat confdefs.h >>conftest.$ac_ext
5156 cat >>conftest.$ac_ext <<_ACEOF
5157 /* end confdefs.h.  */
5158 #include <stdarg.h>
5159 #include <stdbool.h>
5160 #include <stdlib.h>
5161 #include <wchar.h>
5162 #include <stdio.h>
5163
5164 // Check varargs macros.  These examples are taken from C99 6.10.3.5.
5165 #define debug(...) fprintf (stderr, __VA_ARGS__)
5166 #define showlist(...) puts (#__VA_ARGS__)
5167 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
5168 static void
5169 test_varargs_macros (void)
5170 {
5171   int x = 1234;
5172   int y = 5678;
5173   debug ("Flag");
5174   debug ("X = %d\n", x);
5175   showlist (The first, second, and third items.);
5176   report (x>y, "x is %d but y is %d", x, y);
5177 }
5178
5179 // Check long long types.
5180 #define BIG64 18446744073709551615ull
5181 #define BIG32 4294967295ul
5182 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
5183 #if !BIG_OK
5184   your preprocessor is broken;
5185 #endif
5186 #if BIG_OK
5187 #else
5188   your preprocessor is broken;
5189 #endif
5190 static long long int bignum = -9223372036854775807LL;
5191 static unsigned long long int ubignum = BIG64;
5192
5193 struct incomplete_array
5194 {
5195   int datasize;
5196   double data[];
5197 };
5198
5199 struct named_init {
5200   int number;
5201   const wchar_t *name;
5202   double average;
5203 };
5204
5205 typedef const char *ccp;
5206
5207 static inline int
5208 test_restrict (ccp restrict text)
5209 {
5210   // See if C++-style comments work.
5211   // Iterate through items via the restricted pointer.
5212   // Also check for declarations in for loops.
5213   for (unsigned int i = 0; *(text+i) != '\0'; ++i)
5214     continue;
5215   return 0;
5216 }
5217
5218 // Check varargs and va_copy.
5219 static void
5220 test_varargs (const char *format, ...)
5221 {
5222   va_list args;
5223   va_start (args, format);
5224   va_list args_copy;
5225   va_copy (args_copy, args);
5226
5227   const char *str;
5228   int number;
5229   float fnumber;
5230
5231   while (*format)
5232     {
5233       switch (*format++)
5234         {
5235         case 's': // string
5236           str = va_arg (args_copy, const char *);
5237           break;
5238         case 'd': // int
5239           number = va_arg (args_copy, int);
5240           break;
5241         case 'f': // float
5242           fnumber = va_arg (args_copy, double);
5243           break;
5244         default:
5245           break;
5246         }
5247     }
5248   va_end (args_copy);
5249   va_end (args);
5250 }
5251
5252 int
5253 main ()
5254 {
5255
5256   // Check bool.
5257   _Bool success = false;
5258
5259   // Check restrict.
5260   if (test_restrict ("String literal") == 0)
5261     success = true;
5262   char *restrict newvar = "Another string";
5263
5264   // Check varargs.
5265   test_varargs ("s, d' f .", "string", 65, 34.234);
5266   test_varargs_macros ();
5267
5268   // Check flexible array members.
5269   struct incomplete_array *ia =
5270     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5271   ia->datasize = 10;
5272   for (int i = 0; i < ia->datasize; ++i)
5273     ia->data[i] = i * 1.234;
5274
5275   // Check named initializers.
5276   struct named_init ni = {
5277     .number = 34,
5278     .name = L"Test wide string",
5279     .average = 543.34343,
5280   };
5281
5282   ni.number = 58;
5283
5284   int dynamic_array[ni.number];
5285   dynamic_array[ni.number - 1] = 543;
5286
5287   // work around unused variable warnings
5288   return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5289           || dynamic_array[ni.number - 1] != 543);
5290
5291   ;
5292   return 0;
5293 }
5294 _ACEOF
5295 for ac_arg in '' -std=gnu99 -c99 -qlanglvl=extc99
5296 do
5297   CC="$ac_save_CC $ac_arg"
5298   rm -f conftest.$ac_objext
5299 if { (ac_try="$ac_compile"
5300 case "(($ac_try" in
5301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5302   *) ac_try_echo=$ac_try;;
5303 esac
5304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5305   (eval "$ac_compile") 2>conftest.er1
5306   ac_status=$?
5307   grep -v '^ *+' conftest.er1 >conftest.err
5308   rm -f conftest.er1
5309   cat conftest.err >&5
5310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5311   (exit $ac_status); } && {
5312          test -z "$ac_c_werror_flag" ||
5313          test ! -s conftest.err
5314        } && test -s conftest.$ac_objext; then
5315   ac_cv_prog_cc_c99=$ac_arg
5316 else
5317   echo "$as_me: failed program was:" >&5
5318 sed 's/^/| /' conftest.$ac_ext >&5
5319
5320
5321 fi
5322
5323 rm -f core conftest.err conftest.$ac_objext
5324   test "x$ac_cv_prog_cc_c99" != "xno" && break
5325 done
5326 rm -f conftest.$ac_ext
5327 CC=$ac_save_CC
5328
5329 fi
5330 # AC_CACHE_VAL
5331 case "x$ac_cv_prog_cc_c99" in
5332   x)
5333     { echo "$as_me:$LINENO: result: none needed" >&5
5334 echo "${ECHO_T}none needed" >&6; } ;;
5335   xno)
5336     { echo "$as_me:$LINENO: result: unsupported" >&5
5337 echo "${ECHO_T}unsupported" >&6; } ;;
5338   *)
5339     CC="$CC $ac_cv_prog_cc_c99"
5340     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5
5341 echo "${ECHO_T}$ac_cv_prog_cc_c99" >&6; } ;;
5342 esac
5343 if test "x$ac_cv_prog_cc_c99" != xno; then
5344   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5345 else
5346   { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5347 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5348 if test "${ac_cv_prog_cc_c89+set}" = set; then
5349   echo $ECHO_N "(cached) $ECHO_C" >&6
5350 else
5351   ac_cv_prog_cc_c89=no
5352 ac_save_CC=$CC
5353 cat >conftest.$ac_ext <<_ACEOF
5354 /* confdefs.h.  */
5355 _ACEOF
5356 cat confdefs.h >>conftest.$ac_ext
5357 cat >>conftest.$ac_ext <<_ACEOF
5358 /* end confdefs.h.  */
5359 #include <stdarg.h>
5360 #include <stdio.h>
5361 #include <sys/types.h>
5362 #include <sys/stat.h>
5363 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5364 struct buf { int x; };
5365 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5366 static char *e (p, i)
5367      char **p;
5368      int i;
5369 {
5370   return p[i];
5371 }
5372 static char *f (char * (*g) (char **, int), char **p, ...)
5373 {
5374   char *s;
5375   va_list v;
5376   va_start (v,p);
5377   s = g (p, va_arg (v,int));
5378   va_end (v);
5379   return s;
5380 }
5381
5382 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5383    function prototypes and stuff, but not '\xHH' hex character constants.
5384    These don't provoke an error unfortunately, instead are silently treated
5385    as 'x'.  The following induces an error, until -std is added to get
5386    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5387    array size at least.  It's necessary to write '\x00'==0 to get something
5388    that's true only with -std.  */
5389 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5390
5391 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5392    inside strings and character constants.  */
5393 #define FOO(x) 'x'
5394 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5395
5396 int test (int i, double x);
5397 struct s1 {int (*f) (int a);};
5398 struct s2 {int (*f) (double a);};
5399 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5400 int argc;
5401 char **argv;
5402 int
5403 main ()
5404 {
5405 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5406   ;
5407   return 0;
5408 }
5409 _ACEOF
5410 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5411         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5412 do
5413   CC="$ac_save_CC $ac_arg"
5414   rm -f conftest.$ac_objext
5415 if { (ac_try="$ac_compile"
5416 case "(($ac_try" in
5417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5418   *) ac_try_echo=$ac_try;;
5419 esac
5420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5421   (eval "$ac_compile") 2>conftest.er1
5422   ac_status=$?
5423   grep -v '^ *+' conftest.er1 >conftest.err
5424   rm -f conftest.er1
5425   cat conftest.err >&5
5426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5427   (exit $ac_status); } && {
5428          test -z "$ac_c_werror_flag" ||
5429          test ! -s conftest.err
5430        } && test -s conftest.$ac_objext; then
5431   ac_cv_prog_cc_c89=$ac_arg
5432 else
5433   echo "$as_me: failed program was:" >&5
5434 sed 's/^/| /' conftest.$ac_ext >&5
5435
5436
5437 fi
5438
5439 rm -f core conftest.err conftest.$ac_objext
5440   test "x$ac_cv_prog_cc_c89" != "xno" && break
5441 done
5442 rm -f conftest.$ac_ext
5443 CC=$ac_save_CC
5444
5445 fi
5446 # AC_CACHE_VAL
5447 case "x$ac_cv_prog_cc_c89" in
5448   x)
5449     { echo "$as_me:$LINENO: result: none needed" >&5
5450 echo "${ECHO_T}none needed" >&6; } ;;
5451   xno)
5452     { echo "$as_me:$LINENO: result: unsupported" >&5
5453 echo "${ECHO_T}unsupported" >&6; } ;;
5454   *)
5455     CC="$CC $ac_cv_prog_cc_c89"
5456     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5457 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5458 esac
5459 if test "x$ac_cv_prog_cc_c89" != xno; then
5460   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5461 else
5462   ac_cv_prog_cc_stdc=no
5463 fi
5464
5465
5466 fi
5467
5468  ;;
5469 esac
5470   { echo "$as_me:$LINENO: checking for $CC option to accept ISO Standard C" >&5
5471 echo $ECHO_N "checking for $CC option to accept ISO Standard C... $ECHO_C" >&6; }
5472   if test "${ac_cv_prog_cc_stdc+set}" = set; then
5473   echo $ECHO_N "(cached) $ECHO_C" >&6
5474 fi
5475
5476   case $ac_cv_prog_cc_stdc in
5477   no) { echo "$as_me:$LINENO: result: unsupported" >&5
5478 echo "${ECHO_T}unsupported" >&6; } ;;
5479   '') { echo "$as_me:$LINENO: result: none needed" >&5
5480 echo "${ECHO_T}none needed" >&6; } ;;
5481   *) { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
5482 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6; } ;;
5483 esac
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495 # Check whether --enable-largefile was given.
5496 if test "${enable_largefile+set}" = set; then
5497   enableval=$enable_largefile;
5498 fi
5499
5500 if test "$enable_largefile" != no; then
5501
5502   { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5503 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5504 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5505   echo $ECHO_N "(cached) $ECHO_C" >&6
5506 else
5507   ac_cv_sys_largefile_CC=no
5508      if test "$GCC" != yes; then
5509        ac_save_CC=$CC
5510        while :; do
5511          # IRIX 6.2 and later do not support large files by default,
5512          # so use the C compiler's -n32 option if that helps.
5513          cat >conftest.$ac_ext <<_ACEOF
5514 /* confdefs.h.  */
5515 _ACEOF
5516 cat confdefs.h >>conftest.$ac_ext
5517 cat >>conftest.$ac_ext <<_ACEOF
5518 /* end confdefs.h.  */
5519 #include <sys/types.h>
5520  /* Check that off_t can represent 2**63 - 1 correctly.
5521     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5522     since some C++ compilers masquerading as C compilers
5523     incorrectly reject 9223372036854775807.  */
5524 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5525   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5526                        && LARGE_OFF_T % 2147483647 == 1)
5527                       ? 1 : -1];
5528 int
5529 main ()
5530 {
5531
5532   ;
5533   return 0;
5534 }
5535 _ACEOF
5536          rm -f conftest.$ac_objext
5537 if { (ac_try="$ac_compile"
5538 case "(($ac_try" in
5539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5540   *) ac_try_echo=$ac_try;;
5541 esac
5542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5543   (eval "$ac_compile") 2>conftest.er1
5544   ac_status=$?
5545   grep -v '^ *+' conftest.er1 >conftest.err
5546   rm -f conftest.er1
5547   cat conftest.err >&5
5548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5549   (exit $ac_status); } && {
5550          test -z "$ac_c_werror_flag" ||
5551          test ! -s conftest.err
5552        } && test -s conftest.$ac_objext; then
5553   break
5554 else
5555   echo "$as_me: failed program was:" >&5
5556 sed 's/^/| /' conftest.$ac_ext >&5
5557
5558
5559 fi
5560
5561 rm -f core conftest.err conftest.$ac_objext
5562          CC="$CC -n32"
5563          rm -f conftest.$ac_objext
5564 if { (ac_try="$ac_compile"
5565 case "(($ac_try" in
5566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5567   *) ac_try_echo=$ac_try;;
5568 esac
5569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5570   (eval "$ac_compile") 2>conftest.er1
5571   ac_status=$?
5572   grep -v '^ *+' conftest.er1 >conftest.err
5573   rm -f conftest.er1
5574   cat conftest.err >&5
5575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5576   (exit $ac_status); } && {
5577          test -z "$ac_c_werror_flag" ||
5578          test ! -s conftest.err
5579        } && test -s conftest.$ac_objext; then
5580   ac_cv_sys_largefile_CC=' -n32'; break
5581 else
5582   echo "$as_me: failed program was:" >&5
5583 sed 's/^/| /' conftest.$ac_ext >&5
5584
5585
5586 fi
5587
5588 rm -f core conftest.err conftest.$ac_objext
5589          break
5590        done
5591        CC=$ac_save_CC
5592        rm -f conftest.$ac_ext
5593     fi
5594 fi
5595 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5596 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5597   if test "$ac_cv_sys_largefile_CC" != no; then
5598     CC=$CC$ac_cv_sys_largefile_CC
5599   fi
5600
5601   { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5602 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5603 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5604   echo $ECHO_N "(cached) $ECHO_C" >&6
5605 else
5606   while :; do
5607   cat >conftest.$ac_ext <<_ACEOF
5608 /* confdefs.h.  */
5609 _ACEOF
5610 cat confdefs.h >>conftest.$ac_ext
5611 cat >>conftest.$ac_ext <<_ACEOF
5612 /* end confdefs.h.  */
5613 #include <sys/types.h>
5614  /* Check that off_t can represent 2**63 - 1 correctly.
5615     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5616     since some C++ compilers masquerading as C compilers
5617     incorrectly reject 9223372036854775807.  */
5618 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5619   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5620                        && LARGE_OFF_T % 2147483647 == 1)
5621                       ? 1 : -1];
5622 int
5623 main ()
5624 {
5625
5626   ;
5627   return 0;
5628 }
5629 _ACEOF
5630 rm -f conftest.$ac_objext
5631 if { (ac_try="$ac_compile"
5632 case "(($ac_try" in
5633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5634   *) ac_try_echo=$ac_try;;
5635 esac
5636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5637   (eval "$ac_compile") 2>conftest.er1
5638   ac_status=$?
5639   grep -v '^ *+' conftest.er1 >conftest.err
5640   rm -f conftest.er1
5641   cat conftest.err >&5
5642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5643   (exit $ac_status); } && {
5644          test -z "$ac_c_werror_flag" ||
5645          test ! -s conftest.err
5646        } && test -s conftest.$ac_objext; then
5647   ac_cv_sys_file_offset_bits=no; break
5648 else
5649   echo "$as_me: failed program was:" >&5
5650 sed 's/^/| /' conftest.$ac_ext >&5
5651
5652
5653 fi
5654
5655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5656   cat >conftest.$ac_ext <<_ACEOF
5657 /* confdefs.h.  */
5658 _ACEOF
5659 cat confdefs.h >>conftest.$ac_ext
5660 cat >>conftest.$ac_ext <<_ACEOF
5661 /* end confdefs.h.  */
5662 #define _FILE_OFFSET_BITS 64
5663 #include <sys/types.h>
5664  /* Check that off_t can represent 2**63 - 1 correctly.
5665     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5666     since some C++ compilers masquerading as C compilers
5667     incorrectly reject 9223372036854775807.  */
5668 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5669   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5670                        && LARGE_OFF_T % 2147483647 == 1)
5671                       ? 1 : -1];
5672 int
5673 main ()
5674 {
5675
5676   ;
5677   return 0;
5678 }
5679 _ACEOF
5680 rm -f conftest.$ac_objext
5681 if { (ac_try="$ac_compile"
5682 case "(($ac_try" in
5683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5684   *) ac_try_echo=$ac_try;;
5685 esac
5686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5687   (eval "$ac_compile") 2>conftest.er1
5688   ac_status=$?
5689   grep -v '^ *+' conftest.er1 >conftest.err
5690   rm -f conftest.er1
5691   cat conftest.err >&5
5692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5693   (exit $ac_status); } && {
5694          test -z "$ac_c_werror_flag" ||
5695          test ! -s conftest.err
5696        } && test -s conftest.$ac_objext; then
5697   ac_cv_sys_file_offset_bits=64; break
5698 else
5699   echo "$as_me: failed program was:" >&5
5700 sed 's/^/| /' conftest.$ac_ext >&5
5701
5702
5703 fi
5704
5705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5706   ac_cv_sys_file_offset_bits=unknown
5707   break
5708 done
5709 fi
5710 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5711 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5712 case $ac_cv_sys_file_offset_bits in #(
5713   no | unknown) ;;
5714   *)
5715 cat >>confdefs.h <<_ACEOF
5716 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5717 _ACEOF
5718 ;;
5719 esac
5720 rm -f conftest*
5721   if test $ac_cv_sys_file_offset_bits = unknown; then
5722     { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5723 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5724 if test "${ac_cv_sys_large_files+set}" = set; then
5725   echo $ECHO_N "(cached) $ECHO_C" >&6
5726 else
5727   while :; do
5728   cat >conftest.$ac_ext <<_ACEOF
5729 /* confdefs.h.  */
5730 _ACEOF
5731 cat confdefs.h >>conftest.$ac_ext
5732 cat >>conftest.$ac_ext <<_ACEOF
5733 /* end confdefs.h.  */
5734 #include <sys/types.h>
5735  /* Check that off_t can represent 2**63 - 1 correctly.
5736     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5737     since some C++ compilers masquerading as C compilers
5738     incorrectly reject 9223372036854775807.  */
5739 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5740   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5741                        && LARGE_OFF_T % 2147483647 == 1)
5742                       ? 1 : -1];
5743 int
5744 main ()
5745 {
5746
5747   ;
5748   return 0;
5749 }
5750 _ACEOF
5751 rm -f conftest.$ac_objext
5752 if { (ac_try="$ac_compile"
5753 case "(($ac_try" in
5754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5755   *) ac_try_echo=$ac_try;;
5756 esac
5757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5758   (eval "$ac_compile") 2>conftest.er1
5759   ac_status=$?
5760   grep -v '^ *+' conftest.er1 >conftest.err
5761   rm -f conftest.er1
5762   cat conftest.err >&5
5763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5764   (exit $ac_status); } && {
5765          test -z "$ac_c_werror_flag" ||
5766          test ! -s conftest.err
5767        } && test -s conftest.$ac_objext; then
5768   ac_cv_sys_large_files=no; break
5769 else
5770   echo "$as_me: failed program was:" >&5
5771 sed 's/^/| /' conftest.$ac_ext >&5
5772
5773
5774 fi
5775
5776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5777   cat >conftest.$ac_ext <<_ACEOF
5778 /* confdefs.h.  */
5779 _ACEOF
5780 cat confdefs.h >>conftest.$ac_ext
5781 cat >>conftest.$ac_ext <<_ACEOF
5782 /* end confdefs.h.  */
5783 #define _LARGE_FILES 1
5784 #include <sys/types.h>
5785  /* Check that off_t can represent 2**63 - 1 correctly.
5786     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5787     since some C++ compilers masquerading as C compilers
5788     incorrectly reject 9223372036854775807.  */
5789 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5790   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5791                        && LARGE_OFF_T % 2147483647 == 1)
5792                       ? 1 : -1];
5793 int
5794 main ()
5795 {
5796
5797   ;
5798   return 0;
5799 }
5800 _ACEOF
5801 rm -f conftest.$ac_objext
5802 if { (ac_try="$ac_compile"
5803 case "(($ac_try" in
5804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5805   *) ac_try_echo=$ac_try;;
5806 esac
5807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5808   (eval "$ac_compile") 2>conftest.er1
5809   ac_status=$?
5810   grep -v '^ *+' conftest.er1 >conftest.err
5811   rm -f conftest.er1
5812   cat conftest.err >&5
5813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5814   (exit $ac_status); } && {
5815          test -z "$ac_c_werror_flag" ||
5816          test ! -s conftest.err
5817        } && test -s conftest.$ac_objext; then
5818   ac_cv_sys_large_files=1; break
5819 else
5820   echo "$as_me: failed program was:" >&5
5821 sed 's/^/| /' conftest.$ac_ext >&5
5822
5823
5824 fi
5825
5826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5827   ac_cv_sys_large_files=unknown
5828   break
5829 done
5830 fi
5831 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5832 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5833 case $ac_cv_sys_large_files in #(
5834   no | unknown) ;;
5835   *)
5836 cat >>confdefs.h <<_ACEOF
5837 #define _LARGE_FILES $ac_cv_sys_large_files
5838 _ACEOF
5839 ;;
5840 esac
5841 rm -f conftest*
5842   fi
5843 fi
5844
5845
5846         { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
5847 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
5848 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
5849   echo $ECHO_N "(cached) $ECHO_C" >&6
5850 else
5851   ac_check_lib_save_LIBS=$LIBS
5852 LIBS="-lcposix  $LIBS"
5853 cat >conftest.$ac_ext <<_ACEOF
5854 /* confdefs.h.  */
5855 _ACEOF
5856 cat confdefs.h >>conftest.$ac_ext
5857 cat >>conftest.$ac_ext <<_ACEOF
5858 /* end confdefs.h.  */
5859
5860 /* Override any GCC internal prototype to avoid an error.
5861    Use char because int might match the return type of a GCC
5862    builtin and then its argument prototype would still apply.  */
5863 #ifdef __cplusplus
5864 extern "C"
5865 #endif
5866 char strerror ();
5867 int
5868 main ()
5869 {
5870 return strerror ();
5871   ;
5872   return 0;
5873 }
5874 _ACEOF
5875 rm -f conftest.$ac_objext conftest$ac_exeext
5876 if { (ac_try="$ac_link"
5877 case "(($ac_try" in
5878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5879   *) ac_try_echo=$ac_try;;
5880 esac
5881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5882   (eval "$ac_link") 2>conftest.er1
5883   ac_status=$?
5884   grep -v '^ *+' conftest.er1 >conftest.err
5885   rm -f conftest.er1
5886   cat conftest.err >&5
5887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5888   (exit $ac_status); } && {
5889          test -z "$ac_c_werror_flag" ||
5890          test ! -s conftest.err
5891        } && test -s conftest$ac_exeext &&
5892        $as_test_x conftest$ac_exeext; then
5893   ac_cv_lib_cposix_strerror=yes
5894 else
5895   echo "$as_me: failed program was:" >&5
5896 sed 's/^/| /' conftest.$ac_ext >&5
5897
5898         ac_cv_lib_cposix_strerror=no
5899 fi
5900
5901 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5902       conftest$ac_exeext conftest.$ac_ext
5903 LIBS=$ac_check_lib_save_LIBS
5904 fi
5905 { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
5906 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
5907 if test $ac_cv_lib_cposix_strerror = yes; then
5908   LIBS="$LIBS -lcposix"
5909 fi
5910
5911
5912
5913 { echo "$as_me:$LINENO: checking for inline" >&5
5914 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
5915 if test "${ac_cv_c_inline+set}" = set; then
5916   echo $ECHO_N "(cached) $ECHO_C" >&6
5917 else
5918   ac_cv_c_inline=no
5919 for ac_kw in inline __inline__ __inline; do
5920   cat >conftest.$ac_ext <<_ACEOF
5921 /* confdefs.h.  */
5922 _ACEOF
5923 cat confdefs.h >>conftest.$ac_ext
5924 cat >>conftest.$ac_ext <<_ACEOF
5925 /* end confdefs.h.  */
5926 #ifndef __cplusplus
5927 typedef int foo_t;
5928 static $ac_kw foo_t static_foo () {return 0; }
5929 $ac_kw foo_t foo () {return 0; }
5930 #endif
5931
5932 _ACEOF
5933 rm -f conftest.$ac_objext
5934 if { (ac_try="$ac_compile"
5935 case "(($ac_try" in
5936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5937   *) ac_try_echo=$ac_try;;
5938 esac
5939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5940   (eval "$ac_compile") 2>conftest.er1
5941   ac_status=$?
5942   grep -v '^ *+' conftest.er1 >conftest.err
5943   rm -f conftest.er1
5944   cat conftest.err >&5
5945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5946   (exit $ac_status); } && {
5947          test -z "$ac_c_werror_flag" ||
5948          test ! -s conftest.err
5949        } && test -s conftest.$ac_objext; then
5950   ac_cv_c_inline=$ac_kw
5951 else
5952   echo "$as_me: failed program was:" >&5
5953 sed 's/^/| /' conftest.$ac_ext >&5
5954
5955
5956 fi
5957
5958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5959   test "$ac_cv_c_inline" != no && break
5960 done
5961
5962 fi
5963 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5964 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
5965
5966
5967 case $ac_cv_c_inline in
5968   inline | yes) ;;
5969   *)
5970     case $ac_cv_c_inline in
5971       no) ac_val=;;
5972       *) ac_val=$ac_cv_c_inline;;
5973     esac
5974     cat >>confdefs.h <<_ACEOF
5975 #ifndef __cplusplus
5976 #define inline $ac_val
5977 #endif
5978 _ACEOF
5979     ;;
5980 esac
5981
5982
5983
5984
5985
5986
5987 for ac_header in $ac_header_list
5988 do
5989 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5990 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5991   { echo "$as_me:$LINENO: checking for $ac_header" >&5
5992 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5993 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5994   echo $ECHO_N "(cached) $ECHO_C" >&6
5995 fi
5996 ac_res=`eval echo '${'$as_ac_Header'}'`
5997                { echo "$as_me:$LINENO: result: $ac_res" >&5
5998 echo "${ECHO_T}$ac_res" >&6; }
5999 else
6000   # Is the header compilable?
6001 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6002 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6003 cat >conftest.$ac_ext <<_ACEOF
6004 /* confdefs.h.  */
6005 _ACEOF
6006 cat confdefs.h >>conftest.$ac_ext
6007 cat >>conftest.$ac_ext <<_ACEOF
6008 /* end confdefs.h.  */
6009 $ac_includes_default
6010 #include <$ac_header>
6011 _ACEOF
6012 rm -f conftest.$ac_objext
6013 if { (ac_try="$ac_compile"
6014 case "(($ac_try" in
6015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6016   *) ac_try_echo=$ac_try;;
6017 esac
6018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6019   (eval "$ac_compile") 2>conftest.er1
6020   ac_status=$?
6021   grep -v '^ *+' conftest.er1 >conftest.err
6022   rm -f conftest.er1
6023   cat conftest.err >&5
6024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6025   (exit $ac_status); } && {
6026          test -z "$ac_c_werror_flag" ||
6027          test ! -s conftest.err
6028        } && test -s conftest.$ac_objext; then
6029   ac_header_compiler=yes
6030 else
6031   echo "$as_me: failed program was:" >&5
6032 sed 's/^/| /' conftest.$ac_ext >&5
6033
6034         ac_header_compiler=no
6035 fi
6036
6037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6038 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6039 echo "${ECHO_T}$ac_header_compiler" >&6; }
6040
6041 # Is the header present?
6042 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6043 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6044 cat >conftest.$ac_ext <<_ACEOF
6045 /* confdefs.h.  */
6046 _ACEOF
6047 cat confdefs.h >>conftest.$ac_ext
6048 cat >>conftest.$ac_ext <<_ACEOF
6049 /* end confdefs.h.  */
6050 #include <$ac_header>
6051 _ACEOF
6052 if { (ac_try="$ac_cpp conftest.$ac_ext"
6053 case "(($ac_try" in
6054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6055   *) ac_try_echo=$ac_try;;
6056 esac
6057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6058   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6059   ac_status=$?
6060   grep -v '^ *+' conftest.er1 >conftest.err
6061   rm -f conftest.er1
6062   cat conftest.err >&5
6063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6064   (exit $ac_status); } >/dev/null && {
6065          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6066          test ! -s conftest.err
6067        }; then
6068   ac_header_preproc=yes
6069 else
6070   echo "$as_me: failed program was:" >&5
6071 sed 's/^/| /' conftest.$ac_ext >&5
6072
6073   ac_header_preproc=no
6074 fi
6075
6076 rm -f conftest.err conftest.$ac_ext
6077 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6078 echo "${ECHO_T}$ac_header_preproc" >&6; }
6079
6080 # So?  What about this header?
6081 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6082   yes:no: )
6083     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6084 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6085     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6086 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6087     ac_header_preproc=yes
6088     ;;
6089   no:yes:* )
6090     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6091 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6092     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6093 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6094     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6095 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6096     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6097 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6098     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6099 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6100     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6101 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6102     ( cat <<\_ASBOX
6103 ## ------------------------------ ##
6104 ## Report this to bug-tar@gnu.org ##
6105 ## ------------------------------ ##
6106 _ASBOX
6107      ) | sed "s/^/$as_me: WARNING:     /" >&2
6108     ;;
6109 esac
6110 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6111 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6112 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6113   echo $ECHO_N "(cached) $ECHO_C" >&6
6114 else
6115   eval "$as_ac_Header=\$ac_header_preproc"
6116 fi
6117 ac_res=`eval echo '${'$as_ac_Header'}'`
6118                { echo "$as_me:$LINENO: result: $ac_res" >&5
6119 echo "${ECHO_T}$ac_res" >&6; }
6120
6121 fi
6122 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6123   cat >>confdefs.h <<_ACEOF
6124 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6125 _ACEOF
6126
6127 fi
6128
6129 done
6130
6131
6132
6133
6134
6135
6136
6137
6138
6139
6140
6141
6142
6143
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213 for ac_header in sys/buf.h
6214 do
6215 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6216 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6217 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6218 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6219   echo $ECHO_N "(cached) $ECHO_C" >&6
6220 else
6221   cat >conftest.$ac_ext <<_ACEOF
6222 /* confdefs.h.  */
6223 _ACEOF
6224 cat confdefs.h >>conftest.$ac_ext
6225 cat >>conftest.$ac_ext <<_ACEOF
6226 /* end confdefs.h.  */
6227 #if HAVE_SYS_PARAM_H
6228 #include <sys/param.h>
6229 #endif
6230
6231 #include <$ac_header>
6232 _ACEOF
6233 rm -f conftest.$ac_objext
6234 if { (ac_try="$ac_compile"
6235 case "(($ac_try" in
6236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6237   *) ac_try_echo=$ac_try;;
6238 esac
6239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6240   (eval "$ac_compile") 2>conftest.er1
6241   ac_status=$?
6242   grep -v '^ *+' conftest.er1 >conftest.err
6243   rm -f conftest.er1
6244   cat conftest.err >&5
6245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6246   (exit $ac_status); } && {
6247          test -z "$ac_c_werror_flag" ||
6248          test ! -s conftest.err
6249        } && test -s conftest.$ac_objext; then
6250   eval "$as_ac_Header=yes"
6251 else
6252   echo "$as_me: failed program was:" >&5
6253 sed 's/^/| /' conftest.$ac_ext >&5
6254
6255         eval "$as_ac_Header=no"
6256 fi
6257
6258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6259 fi
6260 ac_res=`eval echo '${'$as_ac_Header'}'`
6261                { echo "$as_me:$LINENO: result: $ac_res" >&5
6262 echo "${ECHO_T}$ac_res" >&6; }
6263 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6264   cat >>confdefs.h <<_ACEOF
6265 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6266 _ACEOF
6267
6268 fi
6269
6270 done
6271
6272
6273 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6274 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
6275 if test "${ac_cv_header_sys_wait_h+set}" = set; then
6276   echo $ECHO_N "(cached) $ECHO_C" >&6
6277 else
6278   cat >conftest.$ac_ext <<_ACEOF
6279 /* confdefs.h.  */
6280 _ACEOF
6281 cat confdefs.h >>conftest.$ac_ext
6282 cat >>conftest.$ac_ext <<_ACEOF
6283 /* end confdefs.h.  */
6284 #include <sys/types.h>
6285 #include <sys/wait.h>
6286 #ifndef WEXITSTATUS
6287 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6288 #endif
6289 #ifndef WIFEXITED
6290 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6291 #endif
6292
6293 int
6294 main ()
6295 {
6296   int s;
6297   wait (&s);
6298   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6299   ;
6300   return 0;
6301 }
6302 _ACEOF
6303 rm -f conftest.$ac_objext
6304 if { (ac_try="$ac_compile"
6305 case "(($ac_try" in
6306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6307   *) ac_try_echo=$ac_try;;
6308 esac
6309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6310   (eval "$ac_compile") 2>conftest.er1
6311   ac_status=$?
6312   grep -v '^ *+' conftest.er1 >conftest.err
6313   rm -f conftest.er1
6314   cat conftest.err >&5
6315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6316   (exit $ac_status); } && {
6317          test -z "$ac_c_werror_flag" ||
6318          test ! -s conftest.err
6319        } && test -s conftest.$ac_objext; then
6320   ac_cv_header_sys_wait_h=yes
6321 else
6322   echo "$as_me: failed program was:" >&5
6323 sed 's/^/| /' conftest.$ac_ext >&5
6324
6325         ac_cv_header_sys_wait_h=no
6326 fi
6327
6328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6329 fi
6330 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6331 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
6332 if test $ac_cv_header_sys_wait_h = yes; then
6333
6334 cat >>confdefs.h <<\_ACEOF
6335 #define HAVE_SYS_WAIT_H 1
6336 _ACEOF
6337
6338 fi
6339
6340 { echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
6341 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6; }
6342 if test "${ac_cv_header_stdbool_h+set}" = set; then
6343   echo $ECHO_N "(cached) $ECHO_C" >&6
6344 else
6345   cat >conftest.$ac_ext <<_ACEOF
6346 /* confdefs.h.  */
6347 _ACEOF
6348 cat confdefs.h >>conftest.$ac_ext
6349 cat >>conftest.$ac_ext <<_ACEOF
6350 /* end confdefs.h.  */
6351
6352           #include <stdbool.h>
6353           #ifndef bool
6354            "error: bool is not defined"
6355           #endif
6356           #ifndef false
6357            "error: false is not defined"
6358           #endif
6359           #if false
6360            "error: false is not 0"
6361           #endif
6362           #ifndef true
6363            "error: true is not defined"
6364           #endif
6365           #if true != 1
6366            "error: true is not 1"
6367           #endif
6368           #ifndef __bool_true_false_are_defined
6369            "error: __bool_true_false_are_defined is not defined"
6370           #endif
6371
6372           struct s { _Bool s: 1; _Bool t; } s;
6373
6374           char a[true == 1 ? 1 : -1];
6375           char b[false == 0 ? 1 : -1];
6376           char c[__bool_true_false_are_defined == 1 ? 1 : -1];
6377           char d[(bool) 0.5 == true ? 1 : -1];
6378           bool e = &s;
6379           char f[(_Bool) 0.0 == false ? 1 : -1];
6380           char g[true];
6381           char h[sizeof (_Bool)];
6382           char i[sizeof s.t];
6383           enum { j = false, k = true, l = false * true, m = true * 256 };
6384           _Bool n[m];
6385           char o[sizeof n == m * sizeof n[0] ? 1 : -1];
6386           char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
6387           #if defined __xlc__ || defined __GNUC__
6388            /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
6389               reported by James Lemley on 2005-10-05; see
6390               http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
6391               This test is not quite right, since xlc is allowed to
6392               reject this program, as the initializer for xlcbug is
6393               not one of the forms that C requires support for.
6394               However, doing the test right would require a run-time
6395               test, and that would make cross-compilation harder.
6396               Let us hope that IBM fixes the xlc bug, and also adds
6397               support for this kind of constant expression.  In the
6398               meantime, this test will reject xlc, which is OK, since
6399               our stdbool.h substitute should suffice.  We also test
6400               this with GCC, where it should work, to detect more
6401               quickly whether someone messes up the test in the
6402               future.  */
6403            char digs[] = "0123456789";
6404            int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
6405           #endif
6406           /* Catch a bug in an HP-UX C compiler.  See
6407              http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
6408              http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
6409            */
6410           _Bool q = true;
6411           _Bool *pq = &q;
6412
6413 int
6414 main ()
6415 {
6416
6417           *pq |= q;
6418           *pq |= ! q;
6419           /* Refer to every declared value, to avoid compiler optimizations.  */
6420           return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
6421                   + !m + !n + !o + !p + !q + !pq);
6422
6423   ;
6424   return 0;
6425 }
6426 _ACEOF
6427 rm -f conftest.$ac_objext
6428 if { (ac_try="$ac_compile"
6429 case "(($ac_try" in
6430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6431   *) ac_try_echo=$ac_try;;
6432 esac
6433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6434   (eval "$ac_compile") 2>conftest.er1
6435   ac_status=$?
6436   grep -v '^ *+' conftest.er1 >conftest.err
6437   rm -f conftest.er1
6438   cat conftest.err >&5
6439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6440   (exit $ac_status); } && {
6441          test -z "$ac_c_werror_flag" ||
6442          test ! -s conftest.err
6443        } && test -s conftest.$ac_objext; then
6444   ac_cv_header_stdbool_h=yes
6445 else
6446   echo "$as_me: failed program was:" >&5
6447 sed 's/^/| /' conftest.$ac_ext >&5
6448
6449         ac_cv_header_stdbool_h=no
6450 fi
6451
6452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6453 fi
6454 { echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
6455 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; }
6456    { echo "$as_me:$LINENO: checking for _Bool" >&5
6457 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
6458 if test "${ac_cv_type__Bool+set}" = set; then
6459   echo $ECHO_N "(cached) $ECHO_C" >&6
6460 else
6461   cat >conftest.$ac_ext <<_ACEOF
6462 /* confdefs.h.  */
6463 _ACEOF
6464 cat confdefs.h >>conftest.$ac_ext
6465 cat >>conftest.$ac_ext <<_ACEOF
6466 /* end confdefs.h.  */
6467 $ac_includes_default
6468 typedef _Bool ac__type_new_;
6469 int
6470 main ()
6471 {
6472 if ((ac__type_new_ *) 0)
6473   return 0;
6474 if (sizeof (ac__type_new_))
6475   return 0;
6476   ;
6477   return 0;
6478 }
6479 _ACEOF
6480 rm -f conftest.$ac_objext
6481 if { (ac_try="$ac_compile"
6482 case "(($ac_try" in
6483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6484   *) ac_try_echo=$ac_try;;
6485 esac
6486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6487   (eval "$ac_compile") 2>conftest.er1
6488   ac_status=$?
6489   grep -v '^ *+' conftest.er1 >conftest.err
6490   rm -f conftest.er1
6491   cat conftest.err >&5
6492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6493   (exit $ac_status); } && {
6494          test -z "$ac_c_werror_flag" ||
6495          test ! -s conftest.err
6496        } && test -s conftest.$ac_objext; then
6497   ac_cv_type__Bool=yes
6498 else
6499   echo "$as_me: failed program was:" >&5
6500 sed 's/^/| /' conftest.$ac_ext >&5
6501
6502         ac_cv_type__Bool=no
6503 fi
6504
6505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6506 fi
6507 { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
6508 echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
6509 if test $ac_cv_type__Bool = yes; then
6510
6511 cat >>confdefs.h <<_ACEOF
6512 #define HAVE__BOOL 1
6513 _ACEOF
6514
6515
6516 fi
6517
6518    if test $ac_cv_header_stdbool_h = yes; then
6519
6520 cat >>confdefs.h <<\_ACEOF
6521 #define HAVE_STDBOOL_H 1
6522 _ACEOF
6523
6524    fi
6525
6526
6527
6528   # Define two additional variables used in the Makefile substitution.
6529
6530   if test "$ac_cv_header_stdbool_h" = yes; then
6531     STDBOOL_H=''
6532   else
6533     STDBOOL_H='stdbool.h'
6534   fi
6535
6536
6537   if test "$ac_cv_type__Bool" = yes; then
6538     HAVE__BOOL=1
6539   else
6540     HAVE__BOOL=0
6541   fi
6542
6543
6544
6545
6546
6547
6548
6549
6550 ac_header_dirent=no
6551 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6552   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6553 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6554 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
6555 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6556   echo $ECHO_N "(cached) $ECHO_C" >&6
6557 else
6558   cat >conftest.$ac_ext <<_ACEOF
6559 /* confdefs.h.  */
6560 _ACEOF
6561 cat confdefs.h >>conftest.$ac_ext
6562 cat >>conftest.$ac_ext <<_ACEOF
6563 /* end confdefs.h.  */
6564 #include <sys/types.h>
6565 #include <$ac_hdr>
6566
6567 int
6568 main ()
6569 {
6570 if ((DIR *) 0)
6571 return 0;
6572   ;
6573   return 0;
6574 }
6575 _ACEOF
6576 rm -f conftest.$ac_objext
6577 if { (ac_try="$ac_compile"
6578 case "(($ac_try" in
6579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6580   *) ac_try_echo=$ac_try;;
6581 esac
6582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6583   (eval "$ac_compile") 2>conftest.er1
6584   ac_status=$?
6585   grep -v '^ *+' conftest.er1 >conftest.err
6586   rm -f conftest.er1
6587   cat conftest.err >&5
6588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6589   (exit $ac_status); } && {
6590          test -z "$ac_c_werror_flag" ||
6591          test ! -s conftest.err
6592        } && test -s conftest.$ac_objext; then
6593   eval "$as_ac_Header=yes"
6594 else
6595   echo "$as_me: failed program was:" >&5
6596 sed 's/^/| /' conftest.$ac_ext >&5
6597
6598         eval "$as_ac_Header=no"
6599 fi
6600
6601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6602 fi
6603 ac_res=`eval echo '${'$as_ac_Header'}'`
6604                { echo "$as_me:$LINENO: result: $ac_res" >&5
6605 echo "${ECHO_T}$ac_res" >&6; }
6606 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6607   cat >>confdefs.h <<_ACEOF
6608 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6609 _ACEOF
6610
6611 ac_header_dirent=$ac_hdr; break
6612 fi
6613
6614 done
6615 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6616 if test $ac_header_dirent = dirent.h; then
6617   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
6618 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
6619 if test "${ac_cv_search_opendir+set}" = set; then
6620   echo $ECHO_N "(cached) $ECHO_C" >&6
6621 else
6622   ac_func_search_save_LIBS=$LIBS
6623 cat >conftest.$ac_ext <<_ACEOF
6624 /* confdefs.h.  */
6625 _ACEOF
6626 cat confdefs.h >>conftest.$ac_ext
6627 cat >>conftest.$ac_ext <<_ACEOF
6628 /* end confdefs.h.  */
6629
6630 /* Override any GCC internal prototype to avoid an error.
6631    Use char because int might match the return type of a GCC
6632    builtin and then its argument prototype would still apply.  */
6633 #ifdef __cplusplus
6634 extern "C"
6635 #endif
6636 char opendir ();
6637 int
6638 main ()
6639 {
6640 return opendir ();
6641   ;
6642   return 0;
6643 }
6644 _ACEOF
6645 for ac_lib in '' dir; do
6646   if test -z "$ac_lib"; then
6647     ac_res="none required"
6648   else
6649     ac_res=-l$ac_lib
6650     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6651   fi
6652   rm -f conftest.$ac_objext conftest$ac_exeext
6653 if { (ac_try="$ac_link"
6654 case "(($ac_try" in
6655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6656   *) ac_try_echo=$ac_try;;
6657 esac
6658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6659   (eval "$ac_link") 2>conftest.er1
6660   ac_status=$?
6661   grep -v '^ *+' conftest.er1 >conftest.err
6662   rm -f conftest.er1
6663   cat conftest.err >&5
6664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6665   (exit $ac_status); } && {
6666          test -z "$ac_c_werror_flag" ||
6667          test ! -s conftest.err
6668        } && test -s conftest$ac_exeext &&
6669        $as_test_x conftest$ac_exeext; then
6670   ac_cv_search_opendir=$ac_res
6671 else
6672   echo "$as_me: failed program was:" >&5
6673 sed 's/^/| /' conftest.$ac_ext >&5
6674
6675
6676 fi
6677
6678 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6679       conftest$ac_exeext
6680   if test "${ac_cv_search_opendir+set}" = set; then
6681   break
6682 fi
6683 done
6684 if test "${ac_cv_search_opendir+set}" = set; then
6685   :
6686 else
6687   ac_cv_search_opendir=no
6688 fi
6689 rm conftest.$ac_ext
6690 LIBS=$ac_func_search_save_LIBS
6691 fi
6692 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6693 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
6694 ac_res=$ac_cv_search_opendir
6695 if test "$ac_res" != no; then
6696   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6697
6698 fi
6699
6700 else
6701   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
6702 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
6703 if test "${ac_cv_search_opendir+set}" = set; then
6704   echo $ECHO_N "(cached) $ECHO_C" >&6
6705 else
6706   ac_func_search_save_LIBS=$LIBS
6707 cat >conftest.$ac_ext <<_ACEOF
6708 /* confdefs.h.  */
6709 _ACEOF
6710 cat confdefs.h >>conftest.$ac_ext
6711 cat >>conftest.$ac_ext <<_ACEOF
6712 /* end confdefs.h.  */
6713
6714 /* Override any GCC internal prototype to avoid an error.
6715    Use char because int might match the return type of a GCC
6716    builtin and then its argument prototype would still apply.  */
6717 #ifdef __cplusplus
6718 extern "C"
6719 #endif
6720 char opendir ();
6721 int
6722 main ()
6723 {
6724 return opendir ();
6725   ;
6726   return 0;
6727 }
6728 _ACEOF
6729 for ac_lib in '' x; do
6730   if test -z "$ac_lib"; then
6731     ac_res="none required"
6732   else
6733     ac_res=-l$ac_lib
6734     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6735   fi
6736   rm -f conftest.$ac_objext conftest$ac_exeext
6737 if { (ac_try="$ac_link"
6738 case "(($ac_try" in
6739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6740   *) ac_try_echo=$ac_try;;
6741 esac
6742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6743   (eval "$ac_link") 2>conftest.er1
6744   ac_status=$?
6745   grep -v '^ *+' conftest.er1 >conftest.err
6746   rm -f conftest.er1
6747   cat conftest.err >&5
6748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6749   (exit $ac_status); } && {
6750          test -z "$ac_c_werror_flag" ||
6751          test ! -s conftest.err
6752        } && test -s conftest$ac_exeext &&
6753        $as_test_x conftest$ac_exeext; then
6754   ac_cv_search_opendir=$ac_res
6755 else
6756   echo "$as_me: failed program was:" >&5
6757 sed 's/^/| /' conftest.$ac_ext >&5
6758
6759
6760 fi
6761
6762 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6763       conftest$ac_exeext
6764   if test "${ac_cv_search_opendir+set}" = set; then
6765   break
6766 fi
6767 done
6768 if test "${ac_cv_search_opendir+set}" = set; then
6769   :
6770 else
6771   ac_cv_search_opendir=no
6772 fi
6773 rm conftest.$ac_ext
6774 LIBS=$ac_func_search_save_LIBS
6775 fi
6776 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6777 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
6778 ac_res=$ac_cv_search_opendir
6779 if test "$ac_res" != no; then
6780   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6781
6782 fi
6783
6784 fi
6785
6786 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
6787 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
6788 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
6789   echo $ECHO_N "(cached) $ECHO_C" >&6
6790 else
6791   cat >conftest.$ac_ext <<_ACEOF
6792 /* confdefs.h.  */
6793 _ACEOF
6794 cat confdefs.h >>conftest.$ac_ext
6795 cat >>conftest.$ac_ext <<_ACEOF
6796 /* end confdefs.h.  */
6797 #include <sys/types.h>
6798 int
6799 main ()
6800 {
6801 return makedev(0, 0);
6802   ;
6803   return 0;
6804 }
6805 _ACEOF
6806 rm -f conftest.$ac_objext conftest$ac_exeext
6807 if { (ac_try="$ac_link"
6808 case "(($ac_try" in
6809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6810   *) ac_try_echo=$ac_try;;
6811 esac
6812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6813   (eval "$ac_link") 2>conftest.er1
6814   ac_status=$?
6815   grep -v '^ *+' conftest.er1 >conftest.err
6816   rm -f conftest.er1
6817   cat conftest.err >&5
6818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6819   (exit $ac_status); } && {
6820          test -z "$ac_c_werror_flag" ||
6821          test ! -s conftest.err
6822        } && test -s conftest$ac_exeext &&
6823        $as_test_x conftest$ac_exeext; then
6824   ac_cv_header_sys_types_h_makedev=yes
6825 else
6826   echo "$as_me: failed program was:" >&5
6827 sed 's/^/| /' conftest.$ac_ext >&5
6828
6829         ac_cv_header_sys_types_h_makedev=no
6830 fi
6831
6832 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6833       conftest$ac_exeext conftest.$ac_ext
6834
6835 fi
6836 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
6837 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
6838
6839 if test $ac_cv_header_sys_types_h_makedev = no; then
6840 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6841   { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
6842 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
6843 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6844   echo $ECHO_N "(cached) $ECHO_C" >&6
6845 fi
6846 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
6847 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
6848 else
6849   # Is the header compilable?
6850 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
6851 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
6852 cat >conftest.$ac_ext <<_ACEOF
6853 /* confdefs.h.  */
6854 _ACEOF
6855 cat confdefs.h >>conftest.$ac_ext
6856 cat >>conftest.$ac_ext <<_ACEOF
6857 /* end confdefs.h.  */
6858 $ac_includes_default
6859 #include <sys/mkdev.h>
6860 _ACEOF
6861 rm -f conftest.$ac_objext
6862 if { (ac_try="$ac_compile"
6863 case "(($ac_try" in
6864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6865   *) ac_try_echo=$ac_try;;
6866 esac
6867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6868   (eval "$ac_compile") 2>conftest.er1
6869   ac_status=$?
6870   grep -v '^ *+' conftest.er1 >conftest.err
6871   rm -f conftest.er1
6872   cat conftest.err >&5
6873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6874   (exit $ac_status); } && {
6875          test -z "$ac_c_werror_flag" ||
6876          test ! -s conftest.err
6877        } && test -s conftest.$ac_objext; then
6878   ac_header_compiler=yes
6879 else
6880   echo "$as_me: failed program was:" >&5
6881 sed 's/^/| /' conftest.$ac_ext >&5
6882
6883         ac_header_compiler=no
6884 fi
6885
6886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6887 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6888 echo "${ECHO_T}$ac_header_compiler" >&6; }
6889
6890 # Is the header present?
6891 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
6892 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
6893 cat >conftest.$ac_ext <<_ACEOF
6894 /* confdefs.h.  */
6895 _ACEOF
6896 cat confdefs.h >>conftest.$ac_ext
6897 cat >>conftest.$ac_ext <<_ACEOF
6898 /* end confdefs.h.  */
6899 #include <sys/mkdev.h>
6900 _ACEOF
6901 if { (ac_try="$ac_cpp conftest.$ac_ext"
6902 case "(($ac_try" in
6903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6904   *) ac_try_echo=$ac_try;;
6905 esac
6906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6907   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6908   ac_status=$?
6909   grep -v '^ *+' conftest.er1 >conftest.err
6910   rm -f conftest.er1
6911   cat conftest.err >&5
6912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6913   (exit $ac_status); } >/dev/null && {
6914          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6915          test ! -s conftest.err
6916        }; then
6917   ac_header_preproc=yes
6918 else
6919   echo "$as_me: failed program was:" >&5
6920 sed 's/^/| /' conftest.$ac_ext >&5
6921
6922   ac_header_preproc=no
6923 fi
6924
6925 rm -f conftest.err conftest.$ac_ext
6926 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6927 echo "${ECHO_T}$ac_header_preproc" >&6; }
6928
6929 # So?  What about this header?
6930 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6931   yes:no: )
6932     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
6933 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6934     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
6935 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
6936     ac_header_preproc=yes
6937     ;;
6938   no:yes:* )
6939     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
6940 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
6941     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&5
6942 echo "$as_me: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&2;}
6943     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
6944 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
6945     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&5
6946 echo "$as_me: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&2;}
6947     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
6948 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
6949     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
6950 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
6951     ( cat <<\_ASBOX
6952 ## ------------------------------ ##
6953 ## Report this to bug-tar@gnu.org ##
6954 ## ------------------------------ ##
6955 _ASBOX
6956      ) | sed "s/^/$as_me: WARNING:     /" >&2
6957     ;;
6958 esac
6959 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
6960 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
6961 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6962   echo $ECHO_N "(cached) $ECHO_C" >&6
6963 else
6964   ac_cv_header_sys_mkdev_h=$ac_header_preproc
6965 fi
6966 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
6967 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
6968
6969 fi
6970 if test $ac_cv_header_sys_mkdev_h = yes; then
6971
6972 cat >>confdefs.h <<\_ACEOF
6973 #define MAJOR_IN_MKDEV 1
6974 _ACEOF
6975
6976 fi
6977
6978
6979
6980   if test $ac_cv_header_sys_mkdev_h = no; then
6981     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6982   { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
6983 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
6984 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6985   echo $ECHO_N "(cached) $ECHO_C" >&6
6986 fi
6987 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
6988 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
6989 else
6990   # Is the header compilable?
6991 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
6992 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
6993 cat >conftest.$ac_ext <<_ACEOF
6994 /* confdefs.h.  */
6995 _ACEOF
6996 cat confdefs.h >>conftest.$ac_ext
6997 cat >>conftest.$ac_ext <<_ACEOF
6998 /* end confdefs.h.  */
6999 $ac_includes_default
7000 #include <sys/sysmacros.h>
7001 _ACEOF
7002 rm -f conftest.$ac_objext
7003 if { (ac_try="$ac_compile"
7004 case "(($ac_try" in
7005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7006   *) ac_try_echo=$ac_try;;
7007 esac
7008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7009   (eval "$ac_compile") 2>conftest.er1
7010   ac_status=$?
7011   grep -v '^ *+' conftest.er1 >conftest.err
7012   rm -f conftest.er1
7013   cat conftest.err >&5
7014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7015   (exit $ac_status); } && {
7016          test -z "$ac_c_werror_flag" ||
7017          test ! -s conftest.err
7018        } && test -s conftest.$ac_objext; then
7019   ac_header_compiler=yes
7020 else
7021   echo "$as_me: failed program was:" >&5
7022 sed 's/^/| /' conftest.$ac_ext >&5
7023
7024         ac_header_compiler=no
7025 fi
7026
7027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7028 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7029 echo "${ECHO_T}$ac_header_compiler" >&6; }
7030
7031 # Is the header present?
7032 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
7033 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
7034 cat >conftest.$ac_ext <<_ACEOF
7035 /* confdefs.h.  */
7036 _ACEOF
7037 cat confdefs.h >>conftest.$ac_ext
7038 cat >>conftest.$ac_ext <<_ACEOF
7039 /* end confdefs.h.  */
7040 #include <sys/sysmacros.h>
7041 _ACEOF
7042 if { (ac_try="$ac_cpp conftest.$ac_ext"
7043 case "(($ac_try" in
7044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7045   *) ac_try_echo=$ac_try;;
7046 esac
7047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7048   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7049   ac_status=$?
7050   grep -v '^ *+' conftest.er1 >conftest.err
7051   rm -f conftest.er1
7052   cat conftest.err >&5
7053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7054   (exit $ac_status); } >/dev/null && {
7055          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7056          test ! -s conftest.err
7057        }; then
7058   ac_header_preproc=yes
7059 else
7060   echo "$as_me: failed program was:" >&5
7061 sed 's/^/| /' conftest.$ac_ext >&5
7062
7063   ac_header_preproc=no
7064 fi
7065
7066 rm -f conftest.err conftest.$ac_ext
7067 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7068 echo "${ECHO_T}$ac_header_preproc" >&6; }
7069
7070 # So?  What about this header?
7071 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7072   yes:no: )
7073     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
7074 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7075     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
7076 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
7077     ac_header_preproc=yes
7078     ;;
7079   no:yes:* )
7080     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
7081 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
7082     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&5
7083 echo "$as_me: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&2;}
7084     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
7085 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
7086     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&5
7087 echo "$as_me: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&2;}
7088     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
7089 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
7090     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
7091 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
7092     ( cat <<\_ASBOX
7093 ## ------------------------------ ##
7094 ## Report this to bug-tar@gnu.org ##
7095 ## ------------------------------ ##
7096 _ASBOX
7097      ) | sed "s/^/$as_me: WARNING:     /" >&2
7098     ;;
7099 esac
7100 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
7101 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
7102 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
7103   echo $ECHO_N "(cached) $ECHO_C" >&6
7104 else
7105   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
7106 fi
7107 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
7108 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
7109
7110 fi
7111 if test $ac_cv_header_sys_sysmacros_h = yes; then
7112
7113 cat >>confdefs.h <<\_ACEOF
7114 #define MAJOR_IN_SYSMACROS 1
7115 _ACEOF
7116
7117 fi
7118
7119
7120   fi
7121 fi
7122
7123 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
7124 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
7125 if test "${ac_cv_header_stat_broken+set}" = set; then
7126   echo $ECHO_N "(cached) $ECHO_C" >&6
7127 else
7128   cat >conftest.$ac_ext <<_ACEOF
7129 /* confdefs.h.  */
7130 _ACEOF
7131 cat confdefs.h >>conftest.$ac_ext
7132 cat >>conftest.$ac_ext <<_ACEOF
7133 /* end confdefs.h.  */
7134 #include <sys/types.h>
7135 #include <sys/stat.h>
7136
7137 #if defined S_ISBLK && defined S_IFDIR
7138 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
7139 #endif
7140
7141 #if defined S_ISBLK && defined S_IFCHR
7142 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
7143 #endif
7144
7145 #if defined S_ISLNK && defined S_IFREG
7146 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
7147 #endif
7148
7149 #if defined S_ISSOCK && defined S_IFREG
7150 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
7151 #endif
7152
7153 _ACEOF
7154 rm -f conftest.$ac_objext
7155 if { (ac_try="$ac_compile"
7156 case "(($ac_try" in
7157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7158   *) ac_try_echo=$ac_try;;
7159 esac
7160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7161   (eval "$ac_compile") 2>conftest.er1
7162   ac_status=$?
7163   grep -v '^ *+' conftest.er1 >conftest.err
7164   rm -f conftest.er1
7165   cat conftest.err >&5
7166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7167   (exit $ac_status); } && {
7168          test -z "$ac_c_werror_flag" ||
7169          test ! -s conftest.err
7170        } && test -s conftest.$ac_objext; then
7171   ac_cv_header_stat_broken=no
7172 else
7173   echo "$as_me: failed program was:" >&5
7174 sed 's/^/| /' conftest.$ac_ext >&5
7175
7176         ac_cv_header_stat_broken=yes
7177 fi
7178
7179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7180 fi
7181 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
7182 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
7183 if test $ac_cv_header_stat_broken = yes; then
7184
7185 cat >>confdefs.h <<\_ACEOF
7186 #define STAT_MACROS_BROKEN 1
7187 _ACEOF
7188
7189 fi
7190
7191 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7192 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7193 if test "${ac_cv_header_stdc+set}" = set; then
7194   echo $ECHO_N "(cached) $ECHO_C" >&6
7195 else
7196   cat >conftest.$ac_ext <<_ACEOF
7197 /* confdefs.h.  */
7198 _ACEOF
7199 cat confdefs.h >>conftest.$ac_ext
7200 cat >>conftest.$ac_ext <<_ACEOF
7201 /* end confdefs.h.  */
7202 #include <stdlib.h>
7203 #include <stdarg.h>
7204 #include <string.h>
7205 #include <float.h>
7206
7207 int
7208 main ()
7209 {
7210
7211   ;
7212   return 0;
7213 }
7214 _ACEOF
7215 rm -f conftest.$ac_objext
7216 if { (ac_try="$ac_compile"
7217 case "(($ac_try" in
7218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7219   *) ac_try_echo=$ac_try;;
7220 esac
7221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7222   (eval "$ac_compile") 2>conftest.er1
7223   ac_status=$?
7224   grep -v '^ *+' conftest.er1 >conftest.err
7225   rm -f conftest.er1
7226   cat conftest.err >&5
7227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7228   (exit $ac_status); } && {
7229          test -z "$ac_c_werror_flag" ||
7230          test ! -s conftest.err
7231        } && test -s conftest.$ac_objext; then
7232   ac_cv_header_stdc=yes
7233 else
7234   echo "$as_me: failed program was:" >&5
7235 sed 's/^/| /' conftest.$ac_ext >&5
7236
7237         ac_cv_header_stdc=no
7238 fi
7239
7240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7241
7242 if test $ac_cv_header_stdc = yes; then
7243   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7244   cat >conftest.$ac_ext <<_ACEOF
7245 /* confdefs.h.  */
7246 _ACEOF
7247 cat confdefs.h >>conftest.$ac_ext
7248 cat >>conftest.$ac_ext <<_ACEOF
7249 /* end confdefs.h.  */
7250 #include <string.h>
7251
7252 _ACEOF
7253 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7254   $EGREP "memchr" >/dev/null 2>&1; then
7255   :
7256 else
7257   ac_cv_header_stdc=no
7258 fi
7259 rm -f conftest*
7260
7261 fi
7262
7263 if test $ac_cv_header_stdc = yes; then
7264   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7265   cat >conftest.$ac_ext <<_ACEOF
7266 /* confdefs.h.  */
7267 _ACEOF
7268 cat confdefs.h >>conftest.$ac_ext
7269 cat >>conftest.$ac_ext <<_ACEOF
7270 /* end confdefs.h.  */
7271 #include <stdlib.h>
7272
7273 _ACEOF
7274 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7275   $EGREP "free" >/dev/null 2>&1; then
7276   :
7277 else
7278   ac_cv_header_stdc=no
7279 fi
7280 rm -f conftest*
7281
7282 fi
7283
7284 if test $ac_cv_header_stdc = yes; then
7285   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7286   if test "$cross_compiling" = yes; then
7287   :
7288 else
7289   cat >conftest.$ac_ext <<_ACEOF
7290 /* confdefs.h.  */
7291 _ACEOF
7292 cat confdefs.h >>conftest.$ac_ext
7293 cat >>conftest.$ac_ext <<_ACEOF
7294 /* end confdefs.h.  */
7295 #include <ctype.h>
7296 #include <stdlib.h>
7297 #if ((' ' & 0x0FF) == 0x020)
7298 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7299 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7300 #else
7301 # define ISLOWER(c) \
7302                    (('a' <= (c) && (c) <= 'i') \
7303                      || ('j' <= (c) && (c) <= 'r') \
7304                      || ('s' <= (c) && (c) <= 'z'))
7305 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7306 #endif
7307
7308 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7309 int
7310 main ()
7311 {
7312   int i;
7313   for (i = 0; i < 256; i++)
7314     if (XOR (islower (i), ISLOWER (i))
7315         || toupper (i) != TOUPPER (i))
7316       return 2;
7317   return 0;
7318 }
7319 _ACEOF
7320 rm -f conftest$ac_exeext
7321 if { (ac_try="$ac_link"
7322 case "(($ac_try" in
7323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7324   *) ac_try_echo=$ac_try;;
7325 esac
7326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7327   (eval "$ac_link") 2>&5
7328   ac_status=$?
7329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7330   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7331   { (case "(($ac_try" in
7332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7333   *) ac_try_echo=$ac_try;;
7334 esac
7335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7336   (eval "$ac_try") 2>&5
7337   ac_status=$?
7338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7339   (exit $ac_status); }; }; then
7340   :
7341 else
7342   echo "$as_me: program exited with status $ac_status" >&5
7343 echo "$as_me: failed program was:" >&5
7344 sed 's/^/| /' conftest.$ac_ext >&5
7345
7346 ( exit $ac_status )
7347 ac_cv_header_stdc=no
7348 fi
7349 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7350 fi
7351
7352
7353 fi
7354 fi
7355 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7356 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7357 if test $ac_cv_header_stdc = yes; then
7358
7359 cat >>confdefs.h <<\_ACEOF
7360 #define STDC_HEADERS 1
7361 _ACEOF
7362
7363 fi
7364
7365
7366 { echo "$as_me:$LINENO: checking for st_fstype string in struct stat" >&5
7367 echo $ECHO_N "checking for st_fstype string in struct stat... $ECHO_C" >&6; }
7368 if test "${diff_cv_st_fstype_string+set}" = set; then
7369   echo $ECHO_N "(cached) $ECHO_C" >&6
7370 else
7371   cat >conftest.$ac_ext <<_ACEOF
7372 /* confdefs.h.  */
7373 _ACEOF
7374 cat confdefs.h >>conftest.$ac_ext
7375 cat >>conftest.$ac_ext <<_ACEOF
7376 /* end confdefs.h.  */
7377 #include <sys/types.h>
7378 #include <sys/stat.h>
7379 int
7380 main ()
7381 {
7382 struct stat s; s.st_fstype[0] = 'x';
7383   ;
7384   return 0;
7385 }
7386 _ACEOF
7387 rm -f conftest.$ac_objext
7388 if { (ac_try="$ac_compile"
7389 case "(($ac_try" in
7390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7391   *) ac_try_echo=$ac_try;;
7392 esac
7393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7394   (eval "$ac_compile") 2>conftest.er1
7395   ac_status=$?
7396   grep -v '^ *+' conftest.er1 >conftest.err
7397   rm -f conftest.er1
7398   cat conftest.err >&5
7399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7400   (exit $ac_status); } && {
7401          test -z "$ac_c_werror_flag" ||
7402          test ! -s conftest.err
7403        } && test -s conftest.$ac_objext; then
7404   diff_cv_st_fstype_string=yes
7405 else
7406   echo "$as_me: failed program was:" >&5
7407 sed 's/^/| /' conftest.$ac_ext >&5
7408
7409         diff_cv_st_fstype_string=no
7410 fi
7411
7412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7413 fi
7414
7415 { echo "$as_me:$LINENO: result: $diff_cv_st_fstype_string" >&5
7416 echo "${ECHO_T}$diff_cv_st_fstype_string" >&6; }
7417 if test $diff_cv_st_fstype_string = yes; then
7418
7419 cat >>confdefs.h <<\_ACEOF
7420 #define HAVE_ST_FSTYPE_STRING 1
7421 _ACEOF
7422
7423 fi
7424
7425 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7426 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
7427 if test "${ac_cv_type_signal+set}" = set; then
7428   echo $ECHO_N "(cached) $ECHO_C" >&6
7429 else
7430   cat >conftest.$ac_ext <<_ACEOF
7431 /* confdefs.h.  */
7432 _ACEOF
7433 cat confdefs.h >>conftest.$ac_ext
7434 cat >>conftest.$ac_ext <<_ACEOF
7435 /* end confdefs.h.  */
7436 #include <sys/types.h>
7437 #include <signal.h>
7438
7439 int
7440 main ()
7441 {
7442 return *(signal (0, 0)) (0) == 1;
7443   ;
7444   return 0;
7445 }
7446 _ACEOF
7447 rm -f conftest.$ac_objext
7448 if { (ac_try="$ac_compile"
7449 case "(($ac_try" in
7450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7451   *) ac_try_echo=$ac_try;;
7452 esac
7453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7454   (eval "$ac_compile") 2>conftest.er1
7455   ac_status=$?
7456   grep -v '^ *+' conftest.er1 >conftest.err
7457   rm -f conftest.er1
7458   cat conftest.err >&5
7459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7460   (exit $ac_status); } && {
7461          test -z "$ac_c_werror_flag" ||
7462          test ! -s conftest.err
7463        } && test -s conftest.$ac_objext; then
7464   ac_cv_type_signal=int
7465 else
7466   echo "$as_me: failed program was:" >&5
7467 sed 's/^/| /' conftest.$ac_ext >&5
7468
7469         ac_cv_type_signal=void
7470 fi
7471
7472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7473 fi
7474 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7475 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
7476
7477 cat >>confdefs.h <<_ACEOF
7478 #define RETSIGTYPE $ac_cv_type_signal
7479 _ACEOF
7480
7481
7482 { echo "$as_me:$LINENO: checking for mode_t" >&5
7483 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
7484 if test "${ac_cv_type_mode_t+set}" = set; then
7485   echo $ECHO_N "(cached) $ECHO_C" >&6
7486 else
7487   cat >conftest.$ac_ext <<_ACEOF
7488 /* confdefs.h.  */
7489 _ACEOF
7490 cat confdefs.h >>conftest.$ac_ext
7491 cat >>conftest.$ac_ext <<_ACEOF
7492 /* end confdefs.h.  */
7493 $ac_includes_default
7494 typedef mode_t ac__type_new_;
7495 int
7496 main ()
7497 {
7498 if ((ac__type_new_ *) 0)
7499   return 0;
7500 if (sizeof (ac__type_new_))
7501   return 0;
7502   ;
7503   return 0;
7504 }
7505 _ACEOF
7506 rm -f conftest.$ac_objext
7507 if { (ac_try="$ac_compile"
7508 case "(($ac_try" in
7509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7510   *) ac_try_echo=$ac_try;;
7511 esac
7512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7513   (eval "$ac_compile") 2>conftest.er1
7514   ac_status=$?
7515   grep -v '^ *+' conftest.er1 >conftest.err
7516   rm -f conftest.er1
7517   cat conftest.err >&5
7518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7519   (exit $ac_status); } && {
7520          test -z "$ac_c_werror_flag" ||
7521          test ! -s conftest.err
7522        } && test -s conftest.$ac_objext; then
7523   ac_cv_type_mode_t=yes
7524 else
7525   echo "$as_me: failed program was:" >&5
7526 sed 's/^/| /' conftest.$ac_ext >&5
7527
7528         ac_cv_type_mode_t=no
7529 fi
7530
7531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7532 fi
7533 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
7534 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
7535 if test $ac_cv_type_mode_t = yes; then
7536   :
7537 else
7538
7539 cat >>confdefs.h <<_ACEOF
7540 #define mode_t int
7541 _ACEOF
7542
7543 fi
7544
7545 { echo "$as_me:$LINENO: checking for pid_t" >&5
7546 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
7547 if test "${ac_cv_type_pid_t+set}" = set; then
7548   echo $ECHO_N "(cached) $ECHO_C" >&6
7549 else
7550   cat >conftest.$ac_ext <<_ACEOF
7551 /* confdefs.h.  */
7552 _ACEOF
7553 cat confdefs.h >>conftest.$ac_ext
7554 cat >>conftest.$ac_ext <<_ACEOF
7555 /* end confdefs.h.  */
7556 $ac_includes_default
7557 typedef pid_t ac__type_new_;
7558 int
7559 main ()
7560 {
7561 if ((ac__type_new_ *) 0)
7562   return 0;
7563 if (sizeof (ac__type_new_))
7564   return 0;
7565   ;
7566   return 0;
7567 }
7568 _ACEOF
7569 rm -f conftest.$ac_objext
7570 if { (ac_try="$ac_compile"
7571 case "(($ac_try" in
7572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7573   *) ac_try_echo=$ac_try;;
7574 esac
7575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7576   (eval "$ac_compile") 2>conftest.er1
7577   ac_status=$?
7578   grep -v '^ *+' conftest.er1 >conftest.err
7579   rm -f conftest.er1
7580   cat conftest.err >&5
7581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7582   (exit $ac_status); } && {
7583          test -z "$ac_c_werror_flag" ||
7584          test ! -s conftest.err
7585        } && test -s conftest.$ac_objext; then
7586   ac_cv_type_pid_t=yes
7587 else
7588   echo "$as_me: failed program was:" >&5
7589 sed 's/^/| /' conftest.$ac_ext >&5
7590
7591         ac_cv_type_pid_t=no
7592 fi
7593
7594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7595 fi
7596 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
7597 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
7598 if test $ac_cv_type_pid_t = yes; then
7599   :
7600 else
7601
7602 cat >>confdefs.h <<_ACEOF
7603 #define pid_t int
7604 _ACEOF
7605
7606 fi
7607
7608 { echo "$as_me:$LINENO: checking for off_t" >&5
7609 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
7610 if test "${ac_cv_type_off_t+set}" = set; then
7611   echo $ECHO_N "(cached) $ECHO_C" >&6
7612 else
7613   cat >conftest.$ac_ext <<_ACEOF
7614 /* confdefs.h.  */
7615 _ACEOF
7616 cat confdefs.h >>conftest.$ac_ext
7617 cat >>conftest.$ac_ext <<_ACEOF
7618 /* end confdefs.h.  */
7619 $ac_includes_default
7620 typedef off_t ac__type_new_;
7621 int
7622 main ()
7623 {
7624 if ((ac__type_new_ *) 0)
7625   return 0;
7626 if (sizeof (ac__type_new_))
7627   return 0;
7628   ;
7629   return 0;
7630 }
7631 _ACEOF
7632 rm -f conftest.$ac_objext
7633 if { (ac_try="$ac_compile"
7634 case "(($ac_try" in
7635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7636   *) ac_try_echo=$ac_try;;
7637 esac
7638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7639   (eval "$ac_compile") 2>conftest.er1
7640   ac_status=$?
7641   grep -v '^ *+' conftest.er1 >conftest.err
7642   rm -f conftest.er1
7643   cat conftest.err >&5
7644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7645   (exit $ac_status); } && {
7646          test -z "$ac_c_werror_flag" ||
7647          test ! -s conftest.err
7648        } && test -s conftest.$ac_objext; then
7649   ac_cv_type_off_t=yes
7650 else
7651   echo "$as_me: failed program was:" >&5
7652 sed 's/^/| /' conftest.$ac_ext >&5
7653
7654         ac_cv_type_off_t=no
7655 fi
7656
7657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7658 fi
7659 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
7660 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
7661 if test $ac_cv_type_off_t = yes; then
7662   :
7663 else
7664
7665 cat >>confdefs.h <<_ACEOF
7666 #define off_t long int
7667 _ACEOF
7668
7669 fi
7670
7671 { echo "$as_me:$LINENO: checking for size_t" >&5
7672 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
7673 if test "${ac_cv_type_size_t+set}" = set; then
7674   echo $ECHO_N "(cached) $ECHO_C" >&6
7675 else
7676   cat >conftest.$ac_ext <<_ACEOF
7677 /* confdefs.h.  */
7678 _ACEOF
7679 cat confdefs.h >>conftest.$ac_ext
7680 cat >>conftest.$ac_ext <<_ACEOF
7681 /* end confdefs.h.  */
7682 $ac_includes_default
7683 typedef size_t ac__type_new_;
7684 int
7685 main ()
7686 {
7687 if ((ac__type_new_ *) 0)
7688   return 0;
7689 if (sizeof (ac__type_new_))
7690   return 0;
7691   ;
7692   return 0;
7693 }
7694 _ACEOF
7695 rm -f conftest.$ac_objext
7696 if { (ac_try="$ac_compile"
7697 case "(($ac_try" in
7698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7699   *) ac_try_echo=$ac_try;;
7700 esac
7701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7702   (eval "$ac_compile") 2>conftest.er1
7703   ac_status=$?
7704   grep -v '^ *+' conftest.er1 >conftest.err
7705   rm -f conftest.er1
7706   cat conftest.err >&5
7707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7708   (exit $ac_status); } && {
7709          test -z "$ac_c_werror_flag" ||
7710          test ! -s conftest.err
7711        } && test -s conftest.$ac_objext; then
7712   ac_cv_type_size_t=yes
7713 else
7714   echo "$as_me: failed program was:" >&5
7715 sed 's/^/| /' conftest.$ac_ext >&5
7716
7717         ac_cv_type_size_t=no
7718 fi
7719
7720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7721 fi
7722 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
7723 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
7724 if test $ac_cv_type_size_t = yes; then
7725   :
7726 else
7727
7728 cat >>confdefs.h <<_ACEOF
7729 #define size_t unsigned int
7730 _ACEOF
7731
7732 fi
7733
7734 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
7735 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
7736 if test "${ac_cv_type_uid_t+set}" = set; then
7737   echo $ECHO_N "(cached) $ECHO_C" >&6
7738 else
7739   cat >conftest.$ac_ext <<_ACEOF
7740 /* confdefs.h.  */
7741 _ACEOF
7742 cat confdefs.h >>conftest.$ac_ext
7743 cat >>conftest.$ac_ext <<_ACEOF
7744 /* end confdefs.h.  */
7745 #include <sys/types.h>
7746
7747 _ACEOF
7748 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7749   $EGREP "uid_t" >/dev/null 2>&1; then
7750   ac_cv_type_uid_t=yes
7751 else
7752   ac_cv_type_uid_t=no
7753 fi
7754 rm -f conftest*
7755
7756 fi
7757 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
7758 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
7759 if test $ac_cv_type_uid_t = no; then
7760
7761 cat >>confdefs.h <<\_ACEOF
7762 #define uid_t int
7763 _ACEOF
7764
7765
7766 cat >>confdefs.h <<\_ACEOF
7767 #define gid_t int
7768 _ACEOF
7769
7770 fi
7771
7772 { echo "$as_me:$LINENO: checking for major_t" >&5
7773 echo $ECHO_N "checking for major_t... $ECHO_C" >&6; }
7774 if test "${ac_cv_type_major_t+set}" = set; then
7775   echo $ECHO_N "(cached) $ECHO_C" >&6
7776 else
7777   cat >conftest.$ac_ext <<_ACEOF
7778 /* confdefs.h.  */
7779 _ACEOF
7780 cat confdefs.h >>conftest.$ac_ext
7781 cat >>conftest.$ac_ext <<_ACEOF
7782 /* end confdefs.h.  */
7783 $ac_includes_default
7784 typedef major_t ac__type_new_;
7785 int
7786 main ()
7787 {
7788 if ((ac__type_new_ *) 0)
7789   return 0;
7790 if (sizeof (ac__type_new_))
7791   return 0;
7792   ;
7793   return 0;
7794 }
7795 _ACEOF
7796 rm -f conftest.$ac_objext
7797 if { (ac_try="$ac_compile"
7798 case "(($ac_try" in
7799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7800   *) ac_try_echo=$ac_try;;
7801 esac
7802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7803   (eval "$ac_compile") 2>conftest.er1
7804   ac_status=$?
7805   grep -v '^ *+' conftest.er1 >conftest.err
7806   rm -f conftest.er1
7807   cat conftest.err >&5
7808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7809   (exit $ac_status); } && {
7810          test -z "$ac_c_werror_flag" ||
7811          test ! -s conftest.err
7812        } && test -s conftest.$ac_objext; then
7813   ac_cv_type_major_t=yes
7814 else
7815   echo "$as_me: failed program was:" >&5
7816 sed 's/^/| /' conftest.$ac_ext >&5
7817
7818         ac_cv_type_major_t=no
7819 fi
7820
7821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7822 fi
7823 { echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
7824 echo "${ECHO_T}$ac_cv_type_major_t" >&6; }
7825 if test $ac_cv_type_major_t = yes; then
7826   :
7827 else
7828
7829 cat >>confdefs.h <<\_ACEOF
7830 #define major_t int
7831 _ACEOF
7832
7833 fi
7834
7835 { echo "$as_me:$LINENO: checking for minor_t" >&5
7836 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6; }
7837 if test "${ac_cv_type_minor_t+set}" = set; then
7838   echo $ECHO_N "(cached) $ECHO_C" >&6
7839 else
7840   cat >conftest.$ac_ext <<_ACEOF
7841 /* confdefs.h.  */
7842 _ACEOF
7843 cat confdefs.h >>conftest.$ac_ext
7844 cat >>conftest.$ac_ext <<_ACEOF
7845 /* end confdefs.h.  */
7846 $ac_includes_default
7847 typedef minor_t ac__type_new_;
7848 int
7849 main ()
7850 {
7851 if ((ac__type_new_ *) 0)
7852   return 0;
7853 if (sizeof (ac__type_new_))
7854   return 0;
7855   ;
7856   return 0;
7857 }
7858 _ACEOF
7859 rm -f conftest.$ac_objext
7860 if { (ac_try="$ac_compile"
7861 case "(($ac_try" in
7862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7863   *) ac_try_echo=$ac_try;;
7864 esac
7865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7866   (eval "$ac_compile") 2>conftest.er1
7867   ac_status=$?
7868   grep -v '^ *+' conftest.er1 >conftest.err
7869   rm -f conftest.er1
7870   cat conftest.err >&5
7871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7872   (exit $ac_status); } && {
7873          test -z "$ac_c_werror_flag" ||
7874          test ! -s conftest.err
7875        } && test -s conftest.$ac_objext; then
7876   ac_cv_type_minor_t=yes
7877 else
7878   echo "$as_me: failed program was:" >&5
7879 sed 's/^/| /' conftest.$ac_ext >&5
7880
7881         ac_cv_type_minor_t=no
7882 fi
7883
7884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7885 fi
7886 { echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
7887 echo "${ECHO_T}$ac_cv_type_minor_t" >&6; }
7888 if test $ac_cv_type_minor_t = yes; then
7889   :
7890 else
7891
7892 cat >>confdefs.h <<\_ACEOF
7893 #define minor_t int
7894 _ACEOF
7895
7896 fi
7897
7898 { echo "$as_me:$LINENO: checking for dev_t" >&5
7899 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6; }
7900 if test "${ac_cv_type_dev_t+set}" = set; then
7901   echo $ECHO_N "(cached) $ECHO_C" >&6
7902 else
7903   cat >conftest.$ac_ext <<_ACEOF
7904 /* confdefs.h.  */
7905 _ACEOF
7906 cat confdefs.h >>conftest.$ac_ext
7907 cat >>conftest.$ac_ext <<_ACEOF
7908 /* end confdefs.h.  */
7909 $ac_includes_default
7910 typedef dev_t ac__type_new_;
7911 int
7912 main ()
7913 {
7914 if ((ac__type_new_ *) 0)
7915   return 0;
7916 if (sizeof (ac__type_new_))
7917   return 0;
7918   ;
7919   return 0;
7920 }
7921 _ACEOF
7922 rm -f conftest.$ac_objext
7923 if { (ac_try="$ac_compile"
7924 case "(($ac_try" in
7925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7926   *) ac_try_echo=$ac_try;;
7927 esac
7928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7929   (eval "$ac_compile") 2>conftest.er1
7930   ac_status=$?
7931   grep -v '^ *+' conftest.er1 >conftest.err
7932   rm -f conftest.er1
7933   cat conftest.err >&5
7934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7935   (exit $ac_status); } && {
7936          test -z "$ac_c_werror_flag" ||
7937          test ! -s conftest.err
7938        } && test -s conftest.$ac_objext; then
7939   ac_cv_type_dev_t=yes
7940 else
7941   echo "$as_me: failed program was:" >&5
7942 sed 's/^/| /' conftest.$ac_ext >&5
7943
7944         ac_cv_type_dev_t=no
7945 fi
7946
7947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7948 fi
7949 { echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
7950 echo "${ECHO_T}$ac_cv_type_dev_t" >&6; }
7951 if test $ac_cv_type_dev_t = yes; then
7952   :
7953 else
7954
7955 cat >>confdefs.h <<_ACEOF
7956 #define dev_t unsigned
7957 _ACEOF
7958
7959 fi
7960
7961 { echo "$as_me:$LINENO: checking for ino_t" >&5
7962 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6; }
7963 if test "${ac_cv_type_ino_t+set}" = set; then
7964   echo $ECHO_N "(cached) $ECHO_C" >&6
7965 else
7966   cat >conftest.$ac_ext <<_ACEOF
7967 /* confdefs.h.  */
7968 _ACEOF
7969 cat confdefs.h >>conftest.$ac_ext
7970 cat >>conftest.$ac_ext <<_ACEOF
7971 /* end confdefs.h.  */
7972 $ac_includes_default
7973 typedef ino_t ac__type_new_;
7974 int
7975 main ()
7976 {
7977 if ((ac__type_new_ *) 0)
7978   return 0;
7979 if (sizeof (ac__type_new_))
7980   return 0;
7981   ;
7982   return 0;
7983 }
7984 _ACEOF
7985 rm -f conftest.$ac_objext
7986 if { (ac_try="$ac_compile"
7987 case "(($ac_try" in
7988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7989   *) ac_try_echo=$ac_try;;
7990 esac
7991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7992   (eval "$ac_compile") 2>conftest.er1
7993   ac_status=$?
7994   grep -v '^ *+' conftest.er1 >conftest.err
7995   rm -f conftest.er1
7996   cat conftest.err >&5
7997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7998   (exit $ac_status); } && {
7999          test -z "$ac_c_werror_flag" ||
8000          test ! -s conftest.err
8001        } && test -s conftest.$ac_objext; then
8002   ac_cv_type_ino_t=yes
8003 else
8004   echo "$as_me: failed program was:" >&5
8005 sed 's/^/| /' conftest.$ac_ext >&5
8006
8007         ac_cv_type_ino_t=no
8008 fi
8009
8010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8011 fi
8012 { echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
8013 echo "${ECHO_T}$ac_cv_type_ino_t" >&6; }
8014 if test $ac_cv_type_ino_t = yes; then
8015   :
8016 else
8017
8018 cat >>confdefs.h <<_ACEOF
8019 #define ino_t unsigned
8020 _ACEOF
8021
8022 fi
8023
8024
8025
8026   { echo "$as_me:$LINENO: checking for ssize_t" >&5
8027 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
8028 if test "${gt_cv_ssize_t+set}" = set; then
8029   echo $ECHO_N "(cached) $ECHO_C" >&6
8030 else
8031   cat >conftest.$ac_ext <<_ACEOF
8032 /* confdefs.h.  */
8033 _ACEOF
8034 cat confdefs.h >>conftest.$ac_ext
8035 cat >>conftest.$ac_ext <<_ACEOF
8036 /* end confdefs.h.  */
8037 #include <sys/types.h>
8038 int
8039 main ()
8040 {
8041 int x = sizeof (ssize_t *) + sizeof (ssize_t);
8042         return !x;
8043   ;
8044   return 0;
8045 }
8046 _ACEOF
8047 rm -f conftest.$ac_objext
8048 if { (ac_try="$ac_compile"
8049 case "(($ac_try" in
8050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8051   *) ac_try_echo=$ac_try;;
8052 esac
8053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8054   (eval "$ac_compile") 2>conftest.er1
8055   ac_status=$?
8056   grep -v '^ *+' conftest.er1 >conftest.err
8057   rm -f conftest.er1
8058   cat conftest.err >&5
8059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8060   (exit $ac_status); } && {
8061          test -z "$ac_c_werror_flag" ||
8062          test ! -s conftest.err
8063        } && test -s conftest.$ac_objext; then
8064   gt_cv_ssize_t=yes
8065 else
8066   echo "$as_me: failed program was:" >&5
8067 sed 's/^/| /' conftest.$ac_ext >&5
8068
8069         gt_cv_ssize_t=no
8070 fi
8071
8072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8073 fi
8074 { echo "$as_me:$LINENO: result: $gt_cv_ssize_t" >&5
8075 echo "${ECHO_T}$gt_cv_ssize_t" >&6; }
8076   if test $gt_cv_ssize_t = no; then
8077
8078 cat >>confdefs.h <<\_ACEOF
8079 #define ssize_t int
8080 _ACEOF
8081
8082   fi
8083
8084
8085 # gnulib modules
8086
8087
8088
8089
8090
8091
8092 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8093 # for constant arguments.  Useless!
8094 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
8095 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
8096 if test "${ac_cv_working_alloca_h+set}" = set; then
8097   echo $ECHO_N "(cached) $ECHO_C" >&6
8098 else
8099   cat >conftest.$ac_ext <<_ACEOF
8100 /* confdefs.h.  */
8101 _ACEOF
8102 cat confdefs.h >>conftest.$ac_ext
8103 cat >>conftest.$ac_ext <<_ACEOF
8104 /* end confdefs.h.  */
8105 #include <alloca.h>
8106 int
8107 main ()
8108 {
8109 char *p = (char *) alloca (2 * sizeof (int));
8110                           if (p) return 0;
8111   ;
8112   return 0;
8113 }
8114 _ACEOF
8115 rm -f conftest.$ac_objext conftest$ac_exeext
8116 if { (ac_try="$ac_link"
8117 case "(($ac_try" in
8118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8119   *) ac_try_echo=$ac_try;;
8120 esac
8121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8122   (eval "$ac_link") 2>conftest.er1
8123   ac_status=$?
8124   grep -v '^ *+' conftest.er1 >conftest.err
8125   rm -f conftest.er1
8126   cat conftest.err >&5
8127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8128   (exit $ac_status); } && {
8129          test -z "$ac_c_werror_flag" ||
8130          test ! -s conftest.err
8131        } && test -s conftest$ac_exeext &&
8132        $as_test_x conftest$ac_exeext; then
8133   ac_cv_working_alloca_h=yes
8134 else
8135   echo "$as_me: failed program was:" >&5
8136 sed 's/^/| /' conftest.$ac_ext >&5
8137
8138         ac_cv_working_alloca_h=no
8139 fi
8140
8141 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8142       conftest$ac_exeext conftest.$ac_ext
8143 fi
8144 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
8145 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
8146 if test $ac_cv_working_alloca_h = yes; then
8147
8148 cat >>confdefs.h <<\_ACEOF
8149 #define HAVE_ALLOCA_H 1
8150 _ACEOF
8151
8152 fi
8153
8154 { echo "$as_me:$LINENO: checking for alloca" >&5
8155 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
8156 if test "${ac_cv_func_alloca_works+set}" = set; then
8157   echo $ECHO_N "(cached) $ECHO_C" >&6
8158 else
8159   cat >conftest.$ac_ext <<_ACEOF
8160 /* confdefs.h.  */
8161 _ACEOF
8162 cat confdefs.h >>conftest.$ac_ext
8163 cat >>conftest.$ac_ext <<_ACEOF
8164 /* end confdefs.h.  */
8165 #ifdef __GNUC__
8166 # define alloca __builtin_alloca
8167 #else
8168 # ifdef _MSC_VER
8169 #  include <malloc.h>
8170 #  define alloca _alloca
8171 # else
8172 #  ifdef HAVE_ALLOCA_H
8173 #   include <alloca.h>
8174 #  else
8175 #   ifdef _AIX
8176  #pragma alloca
8177 #   else
8178 #    ifndef alloca /* predefined by HP cc +Olibcalls */
8179 char *alloca ();
8180 #    endif
8181 #   endif
8182 #  endif
8183 # endif
8184 #endif
8185
8186 int
8187 main ()
8188 {
8189 char *p = (char *) alloca (1);
8190                                     if (p) return 0;
8191   ;
8192   return 0;
8193 }
8194 _ACEOF
8195 rm -f conftest.$ac_objext conftest$ac_exeext
8196 if { (ac_try="$ac_link"
8197 case "(($ac_try" in
8198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8199   *) ac_try_echo=$ac_try;;
8200 esac
8201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8202   (eval "$ac_link") 2>conftest.er1
8203   ac_status=$?
8204   grep -v '^ *+' conftest.er1 >conftest.err
8205   rm -f conftest.er1
8206   cat conftest.err >&5
8207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8208   (exit $ac_status); } && {
8209          test -z "$ac_c_werror_flag" ||
8210          test ! -s conftest.err
8211        } && test -s conftest$ac_exeext &&
8212        $as_test_x conftest$ac_exeext; then
8213   ac_cv_func_alloca_works=yes
8214 else
8215   echo "$as_me: failed program was:" >&5
8216 sed 's/^/| /' conftest.$ac_ext >&5
8217
8218         ac_cv_func_alloca_works=no
8219 fi
8220
8221 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8222       conftest$ac_exeext conftest.$ac_ext
8223 fi
8224 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
8225 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
8226
8227 if test $ac_cv_func_alloca_works = yes; then
8228
8229 cat >>confdefs.h <<\_ACEOF
8230 #define HAVE_ALLOCA 1
8231 _ACEOF
8232
8233 else
8234   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8235 # that cause trouble.  Some versions do not even contain alloca or
8236 # contain a buggy version.  If you still want to use their alloca,
8237 # use ar to extract alloca.o from them instead of compiling alloca.c.
8238
8239
8240
8241
8242
8243 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
8244
8245 cat >>confdefs.h <<\_ACEOF
8246 #define C_ALLOCA 1
8247 _ACEOF
8248
8249
8250 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
8251 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
8252 if test "${ac_cv_os_cray+set}" = set; then
8253   echo $ECHO_N "(cached) $ECHO_C" >&6
8254 else
8255   cat >conftest.$ac_ext <<_ACEOF
8256 /* confdefs.h.  */
8257 _ACEOF
8258 cat confdefs.h >>conftest.$ac_ext
8259 cat >>conftest.$ac_ext <<_ACEOF
8260 /* end confdefs.h.  */
8261 #if defined CRAY && ! defined CRAY2
8262 webecray
8263 #else
8264 wenotbecray
8265 #endif
8266
8267 _ACEOF
8268 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8269   $EGREP "webecray" >/dev/null 2>&1; then
8270   ac_cv_os_cray=yes
8271 else
8272   ac_cv_os_cray=no
8273 fi
8274 rm -f conftest*
8275
8276 fi
8277 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
8278 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
8279 if test $ac_cv_os_cray = yes; then
8280   for ac_func in _getb67 GETB67 getb67; do
8281     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8282 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8283 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8284 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8285   echo $ECHO_N "(cached) $ECHO_C" >&6
8286 else
8287   cat >conftest.$ac_ext <<_ACEOF
8288 /* confdefs.h.  */
8289 _ACEOF
8290 cat confdefs.h >>conftest.$ac_ext
8291 cat >>conftest.$ac_ext <<_ACEOF
8292 /* end confdefs.h.  */
8293 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8294    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8295 #define $ac_func innocuous_$ac_func
8296
8297 /* System header to define __stub macros and hopefully few prototypes,
8298     which can conflict with char $ac_func (); below.
8299     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8300     <limits.h> exists even on freestanding compilers.  */
8301
8302 #ifdef __STDC__
8303 # include <limits.h>
8304 #else
8305 # include <assert.h>
8306 #endif
8307
8308 #undef $ac_func
8309
8310 /* Override any GCC internal prototype to avoid an error.
8311    Use char because int might match the return type of a GCC
8312    builtin and then its argument prototype would still apply.  */
8313 #ifdef __cplusplus
8314 extern "C"
8315 #endif
8316 char $ac_func ();
8317 /* The GNU C library defines this for functions which it implements
8318     to always fail with ENOSYS.  Some functions are actually named
8319     something starting with __ and the normal name is an alias.  */
8320 #if defined __stub_$ac_func || defined __stub___$ac_func
8321 choke me
8322 #endif
8323
8324 int
8325 main ()
8326 {
8327 return $ac_func ();
8328   ;
8329   return 0;
8330 }
8331 _ACEOF
8332 rm -f conftest.$ac_objext conftest$ac_exeext
8333 if { (ac_try="$ac_link"
8334 case "(($ac_try" in
8335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8336   *) ac_try_echo=$ac_try;;
8337 esac
8338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8339   (eval "$ac_link") 2>conftest.er1
8340   ac_status=$?
8341   grep -v '^ *+' conftest.er1 >conftest.err
8342   rm -f conftest.er1
8343   cat conftest.err >&5
8344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8345   (exit $ac_status); } && {
8346          test -z "$ac_c_werror_flag" ||
8347          test ! -s conftest.err
8348        } && test -s conftest$ac_exeext &&
8349        $as_test_x conftest$ac_exeext; then
8350   eval "$as_ac_var=yes"
8351 else
8352   echo "$as_me: failed program was:" >&5
8353 sed 's/^/| /' conftest.$ac_ext >&5
8354
8355         eval "$as_ac_var=no"
8356 fi
8357
8358 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8359       conftest$ac_exeext conftest.$ac_ext
8360 fi
8361 ac_res=`eval echo '${'$as_ac_var'}'`
8362                { echo "$as_me:$LINENO: result: $ac_res" >&5
8363 echo "${ECHO_T}$ac_res" >&6; }
8364 if test `eval echo '${'$as_ac_var'}'` = yes; then
8365
8366 cat >>confdefs.h <<_ACEOF
8367 #define CRAY_STACKSEG_END $ac_func
8368 _ACEOF
8369
8370     break
8371 fi
8372
8373   done
8374 fi
8375
8376 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
8377 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
8378 if test "${ac_cv_c_stack_direction+set}" = set; then
8379   echo $ECHO_N "(cached) $ECHO_C" >&6
8380 else
8381   if test "$cross_compiling" = yes; then
8382   ac_cv_c_stack_direction=0
8383 else
8384   cat >conftest.$ac_ext <<_ACEOF
8385 /* confdefs.h.  */
8386 _ACEOF
8387 cat confdefs.h >>conftest.$ac_ext
8388 cat >>conftest.$ac_ext <<_ACEOF
8389 /* end confdefs.h.  */
8390 $ac_includes_default
8391 int
8392 find_stack_direction ()
8393 {
8394   static char *addr = 0;
8395   auto char dummy;
8396   if (addr == 0)
8397     {
8398       addr = &dummy;
8399       return find_stack_direction ();
8400     }
8401   else
8402     return (&dummy > addr) ? 1 : -1;
8403 }
8404
8405 int
8406 main ()
8407 {
8408   return find_stack_direction () < 0;
8409 }
8410 _ACEOF
8411 rm -f conftest$ac_exeext
8412 if { (ac_try="$ac_link"
8413 case "(($ac_try" in
8414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8415   *) ac_try_echo=$ac_try;;
8416 esac
8417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8418   (eval "$ac_link") 2>&5
8419   ac_status=$?
8420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8421   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8422   { (case "(($ac_try" in
8423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8424   *) ac_try_echo=$ac_try;;
8425 esac
8426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8427   (eval "$ac_try") 2>&5
8428   ac_status=$?
8429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8430   (exit $ac_status); }; }; then
8431   ac_cv_c_stack_direction=1
8432 else
8433   echo "$as_me: program exited with status $ac_status" >&5
8434 echo "$as_me: failed program was:" >&5
8435 sed 's/^/| /' conftest.$ac_ext >&5
8436
8437 ( exit $ac_status )
8438 ac_cv_c_stack_direction=-1
8439 fi
8440 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8441 fi
8442
8443
8444 fi
8445 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
8446 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
8447
8448 cat >>confdefs.h <<_ACEOF
8449 #define STACK_DIRECTION $ac_cv_c_stack_direction
8450 _ACEOF
8451
8452
8453 fi
8454
8455 { echo "$as_me:$LINENO: checking for C/C++ restrict keyword" >&5
8456 echo $ECHO_N "checking for C/C++ restrict keyword... $ECHO_C" >&6; }
8457 if test "${ac_cv_c_restrict+set}" = set; then
8458   echo $ECHO_N "(cached) $ECHO_C" >&6
8459 else
8460   ac_cv_c_restrict=no
8461    # The order here caters to the fact that C++ does not require restrict.
8462    for ac_kw in __restrict __restrict__ _Restrict restrict; do
8463      cat >conftest.$ac_ext <<_ACEOF
8464 /* confdefs.h.  */
8465 _ACEOF
8466 cat confdefs.h >>conftest.$ac_ext
8467 cat >>conftest.$ac_ext <<_ACEOF
8468 /* end confdefs.h.  */
8469 typedef int * int_ptr;
8470         int foo (int_ptr $ac_kw ip) {
8471         return ip[0];
8472        }
8473 int
8474 main ()
8475 {
8476 int s[1];
8477         int * $ac_kw t = s;
8478         t[0] = 0;
8479         return foo(t)
8480   ;
8481   return 0;
8482 }
8483 _ACEOF
8484 rm -f conftest.$ac_objext
8485 if { (ac_try="$ac_compile"
8486 case "(($ac_try" in
8487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8488   *) ac_try_echo=$ac_try;;
8489 esac
8490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8491   (eval "$ac_compile") 2>conftest.er1
8492   ac_status=$?
8493   grep -v '^ *+' conftest.er1 >conftest.err
8494   rm -f conftest.er1
8495   cat conftest.err >&5
8496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8497   (exit $ac_status); } && {
8498          test -z "$ac_c_werror_flag" ||
8499          test ! -s conftest.err
8500        } && test -s conftest.$ac_objext; then
8501   ac_cv_c_restrict=$ac_kw
8502 else
8503   echo "$as_me: failed program was:" >&5
8504 sed 's/^/| /' conftest.$ac_ext >&5
8505
8506
8507 fi
8508
8509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8510      test "$ac_cv_c_restrict" != no && break
8511    done
8512
8513 fi
8514 { echo "$as_me:$LINENO: result: $ac_cv_c_restrict" >&5
8515 echo "${ECHO_T}$ac_cv_c_restrict" >&6; }
8516
8517
8518  case $ac_cv_c_restrict in
8519    restrict) ;;
8520    no) cat >>confdefs.h <<\_ACEOF
8521 #define restrict
8522 _ACEOF
8523  ;;
8524    *)  cat >>confdefs.h <<_ACEOF
8525 #define restrict $ac_cv_c_restrict
8526 _ACEOF
8527  ;;
8528  esac
8529
8530 { echo "$as_me:$LINENO: checking whether getenv is declared" >&5
8531 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6; }
8532 if test "${ac_cv_have_decl_getenv+set}" = set; then
8533   echo $ECHO_N "(cached) $ECHO_C" >&6
8534 else
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 #ifndef getenv
8546   (void) getenv;
8547 #endif
8548
8549   ;
8550   return 0;
8551 }
8552 _ACEOF
8553 rm -f conftest.$ac_objext
8554 if { (ac_try="$ac_compile"
8555 case "(($ac_try" in
8556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8557   *) ac_try_echo=$ac_try;;
8558 esac
8559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8560   (eval "$ac_compile") 2>conftest.er1
8561   ac_status=$?
8562   grep -v '^ *+' conftest.er1 >conftest.err
8563   rm -f conftest.er1
8564   cat conftest.err >&5
8565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8566   (exit $ac_status); } && {
8567          test -z "$ac_c_werror_flag" ||
8568          test ! -s conftest.err
8569        } && test -s conftest.$ac_objext; then
8570   ac_cv_have_decl_getenv=yes
8571 else
8572   echo "$as_me: failed program was:" >&5
8573 sed 's/^/| /' conftest.$ac_ext >&5
8574
8575         ac_cv_have_decl_getenv=no
8576 fi
8577
8578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8579 fi
8580 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
8581 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6; }
8582 if test $ac_cv_have_decl_getenv = yes; then
8583
8584 cat >>confdefs.h <<_ACEOF
8585 #define HAVE_DECL_GETENV 1
8586 _ACEOF
8587
8588
8589 else
8590   cat >>confdefs.h <<_ACEOF
8591 #define HAVE_DECL_GETENV 0
8592 _ACEOF
8593
8594
8595 fi
8596
8597
8598 { echo "$as_me:$LINENO: checking whether clearerr_unlocked is declared" >&5
8599 echo $ECHO_N "checking whether clearerr_unlocked is declared... $ECHO_C" >&6; }
8600 if test "${ac_cv_have_decl_clearerr_unlocked+set}" = set; then
8601   echo $ECHO_N "(cached) $ECHO_C" >&6
8602 else
8603   cat >conftest.$ac_ext <<_ACEOF
8604 /* confdefs.h.  */
8605 _ACEOF
8606 cat confdefs.h >>conftest.$ac_ext
8607 cat >>conftest.$ac_ext <<_ACEOF
8608 /* end confdefs.h.  */
8609 $ac_includes_default
8610 int
8611 main ()
8612 {
8613 #ifndef clearerr_unlocked
8614   (void) clearerr_unlocked;
8615 #endif
8616
8617   ;
8618   return 0;
8619 }
8620 _ACEOF
8621 rm -f conftest.$ac_objext
8622 if { (ac_try="$ac_compile"
8623 case "(($ac_try" in
8624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8625   *) ac_try_echo=$ac_try;;
8626 esac
8627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8628   (eval "$ac_compile") 2>conftest.er1
8629   ac_status=$?
8630   grep -v '^ *+' conftest.er1 >conftest.err
8631   rm -f conftest.er1
8632   cat conftest.err >&5
8633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8634   (exit $ac_status); } && {
8635          test -z "$ac_c_werror_flag" ||
8636          test ! -s conftest.err
8637        } && test -s conftest.$ac_objext; then
8638   ac_cv_have_decl_clearerr_unlocked=yes
8639 else
8640   echo "$as_me: failed program was:" >&5
8641 sed 's/^/| /' conftest.$ac_ext >&5
8642
8643         ac_cv_have_decl_clearerr_unlocked=no
8644 fi
8645
8646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8647 fi
8648 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_clearerr_unlocked" >&5
8649 echo "${ECHO_T}$ac_cv_have_decl_clearerr_unlocked" >&6; }
8650 if test $ac_cv_have_decl_clearerr_unlocked = yes; then
8651
8652 cat >>confdefs.h <<_ACEOF
8653 #define HAVE_DECL_CLEARERR_UNLOCKED 1
8654 _ACEOF
8655
8656
8657 else
8658   cat >>confdefs.h <<_ACEOF
8659 #define HAVE_DECL_CLEARERR_UNLOCKED 0
8660 _ACEOF
8661
8662
8663 fi
8664
8665
8666 { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
8667 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
8668 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
8669   echo $ECHO_N "(cached) $ECHO_C" >&6
8670 else
8671   cat >conftest.$ac_ext <<_ACEOF
8672 /* confdefs.h.  */
8673 _ACEOF
8674 cat confdefs.h >>conftest.$ac_ext
8675 cat >>conftest.$ac_ext <<_ACEOF
8676 /* end confdefs.h.  */
8677 $ac_includes_default
8678 int
8679 main ()
8680 {
8681 #ifndef feof_unlocked
8682   (void) feof_unlocked;
8683 #endif
8684
8685   ;
8686   return 0;
8687 }
8688 _ACEOF
8689 rm -f conftest.$ac_objext
8690 if { (ac_try="$ac_compile"
8691 case "(($ac_try" in
8692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8693   *) ac_try_echo=$ac_try;;
8694 esac
8695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8696   (eval "$ac_compile") 2>conftest.er1
8697   ac_status=$?
8698   grep -v '^ *+' conftest.er1 >conftest.err
8699   rm -f conftest.er1
8700   cat conftest.err >&5
8701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8702   (exit $ac_status); } && {
8703          test -z "$ac_c_werror_flag" ||
8704          test ! -s conftest.err
8705        } && test -s conftest.$ac_objext; then
8706   ac_cv_have_decl_feof_unlocked=yes
8707 else
8708   echo "$as_me: failed program was:" >&5
8709 sed 's/^/| /' conftest.$ac_ext >&5
8710
8711         ac_cv_have_decl_feof_unlocked=no
8712 fi
8713
8714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8715 fi
8716 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
8717 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
8718 if test $ac_cv_have_decl_feof_unlocked = yes; then
8719
8720 cat >>confdefs.h <<_ACEOF
8721 #define HAVE_DECL_FEOF_UNLOCKED 1
8722 _ACEOF
8723
8724
8725 else
8726   cat >>confdefs.h <<_ACEOF
8727 #define HAVE_DECL_FEOF_UNLOCKED 0
8728 _ACEOF
8729
8730
8731 fi
8732
8733
8734 { echo "$as_me:$LINENO: checking whether ferror_unlocked is declared" >&5
8735 echo $ECHO_N "checking whether ferror_unlocked is declared... $ECHO_C" >&6; }
8736 if test "${ac_cv_have_decl_ferror_unlocked+set}" = set; then
8737   echo $ECHO_N "(cached) $ECHO_C" >&6
8738 else
8739   cat >conftest.$ac_ext <<_ACEOF
8740 /* confdefs.h.  */
8741 _ACEOF
8742 cat confdefs.h >>conftest.$ac_ext
8743 cat >>conftest.$ac_ext <<_ACEOF
8744 /* end confdefs.h.  */
8745 $ac_includes_default
8746 int
8747 main ()
8748 {
8749 #ifndef ferror_unlocked
8750   (void) ferror_unlocked;
8751 #endif
8752
8753   ;
8754   return 0;
8755 }
8756 _ACEOF
8757 rm -f conftest.$ac_objext
8758 if { (ac_try="$ac_compile"
8759 case "(($ac_try" in
8760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8761   *) ac_try_echo=$ac_try;;
8762 esac
8763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8764   (eval "$ac_compile") 2>conftest.er1
8765   ac_status=$?
8766   grep -v '^ *+' conftest.er1 >conftest.err
8767   rm -f conftest.er1
8768   cat conftest.err >&5
8769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8770   (exit $ac_status); } && {
8771          test -z "$ac_c_werror_flag" ||
8772          test ! -s conftest.err
8773        } && test -s conftest.$ac_objext; then
8774   ac_cv_have_decl_ferror_unlocked=yes
8775 else
8776   echo "$as_me: failed program was:" >&5
8777 sed 's/^/| /' conftest.$ac_ext >&5
8778
8779         ac_cv_have_decl_ferror_unlocked=no
8780 fi
8781
8782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8783 fi
8784 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_ferror_unlocked" >&5
8785 echo "${ECHO_T}$ac_cv_have_decl_ferror_unlocked" >&6; }
8786 if test $ac_cv_have_decl_ferror_unlocked = yes; then
8787
8788 cat >>confdefs.h <<_ACEOF
8789 #define HAVE_DECL_FERROR_UNLOCKED 1
8790 _ACEOF
8791
8792
8793 else
8794   cat >>confdefs.h <<_ACEOF
8795 #define HAVE_DECL_FERROR_UNLOCKED 0
8796 _ACEOF
8797
8798
8799 fi
8800
8801
8802 { echo "$as_me:$LINENO: checking whether fflush_unlocked is declared" >&5
8803 echo $ECHO_N "checking whether fflush_unlocked is declared... $ECHO_C" >&6; }
8804 if test "${ac_cv_have_decl_fflush_unlocked+set}" = set; then
8805   echo $ECHO_N "(cached) $ECHO_C" >&6
8806 else
8807   cat >conftest.$ac_ext <<_ACEOF
8808 /* confdefs.h.  */
8809 _ACEOF
8810 cat confdefs.h >>conftest.$ac_ext
8811 cat >>conftest.$ac_ext <<_ACEOF
8812 /* end confdefs.h.  */
8813 $ac_includes_default
8814 int
8815 main ()
8816 {
8817 #ifndef fflush_unlocked
8818   (void) fflush_unlocked;
8819 #endif
8820
8821   ;
8822   return 0;
8823 }
8824 _ACEOF
8825 rm -f conftest.$ac_objext
8826 if { (ac_try="$ac_compile"
8827 case "(($ac_try" in
8828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8829   *) ac_try_echo=$ac_try;;
8830 esac
8831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8832   (eval "$ac_compile") 2>conftest.er1
8833   ac_status=$?
8834   grep -v '^ *+' conftest.er1 >conftest.err
8835   rm -f conftest.er1
8836   cat conftest.err >&5
8837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8838   (exit $ac_status); } && {
8839          test -z "$ac_c_werror_flag" ||
8840          test ! -s conftest.err
8841        } && test -s conftest.$ac_objext; then
8842   ac_cv_have_decl_fflush_unlocked=yes
8843 else
8844   echo "$as_me: failed program was:" >&5
8845 sed 's/^/| /' conftest.$ac_ext >&5
8846
8847         ac_cv_have_decl_fflush_unlocked=no
8848 fi
8849
8850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8851 fi
8852 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fflush_unlocked" >&5
8853 echo "${ECHO_T}$ac_cv_have_decl_fflush_unlocked" >&6; }
8854 if test $ac_cv_have_decl_fflush_unlocked = yes; then
8855
8856 cat >>confdefs.h <<_ACEOF
8857 #define HAVE_DECL_FFLUSH_UNLOCKED 1
8858 _ACEOF
8859
8860
8861 else
8862   cat >>confdefs.h <<_ACEOF
8863 #define HAVE_DECL_FFLUSH_UNLOCKED 0
8864 _ACEOF
8865
8866
8867 fi
8868
8869
8870 { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
8871 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
8872 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
8873   echo $ECHO_N "(cached) $ECHO_C" >&6
8874 else
8875   cat >conftest.$ac_ext <<_ACEOF
8876 /* confdefs.h.  */
8877 _ACEOF
8878 cat confdefs.h >>conftest.$ac_ext
8879 cat >>conftest.$ac_ext <<_ACEOF
8880 /* end confdefs.h.  */
8881 $ac_includes_default
8882 int
8883 main ()
8884 {
8885 #ifndef fgets_unlocked
8886   (void) fgets_unlocked;
8887 #endif
8888
8889   ;
8890   return 0;
8891 }
8892 _ACEOF
8893 rm -f conftest.$ac_objext
8894 if { (ac_try="$ac_compile"
8895 case "(($ac_try" in
8896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8897   *) ac_try_echo=$ac_try;;
8898 esac
8899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8900   (eval "$ac_compile") 2>conftest.er1
8901   ac_status=$?
8902   grep -v '^ *+' conftest.er1 >conftest.err
8903   rm -f conftest.er1
8904   cat conftest.err >&5
8905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8906   (exit $ac_status); } && {
8907          test -z "$ac_c_werror_flag" ||
8908          test ! -s conftest.err
8909        } && test -s conftest.$ac_objext; then
8910   ac_cv_have_decl_fgets_unlocked=yes
8911 else
8912   echo "$as_me: failed program was:" >&5
8913 sed 's/^/| /' conftest.$ac_ext >&5
8914
8915         ac_cv_have_decl_fgets_unlocked=no
8916 fi
8917
8918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8919 fi
8920 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
8921 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
8922 if test $ac_cv_have_decl_fgets_unlocked = yes; then
8923
8924 cat >>confdefs.h <<_ACEOF
8925 #define HAVE_DECL_FGETS_UNLOCKED 1
8926 _ACEOF
8927
8928
8929 else
8930   cat >>confdefs.h <<_ACEOF
8931 #define HAVE_DECL_FGETS_UNLOCKED 0
8932 _ACEOF
8933
8934
8935 fi
8936
8937
8938 { echo "$as_me:$LINENO: checking whether fputc_unlocked is declared" >&5
8939 echo $ECHO_N "checking whether fputc_unlocked is declared... $ECHO_C" >&6; }
8940 if test "${ac_cv_have_decl_fputc_unlocked+set}" = set; then
8941   echo $ECHO_N "(cached) $ECHO_C" >&6
8942 else
8943   cat >conftest.$ac_ext <<_ACEOF
8944 /* confdefs.h.  */
8945 _ACEOF
8946 cat confdefs.h >>conftest.$ac_ext
8947 cat >>conftest.$ac_ext <<_ACEOF
8948 /* end confdefs.h.  */
8949 $ac_includes_default
8950 int
8951 main ()
8952 {
8953 #ifndef fputc_unlocked
8954   (void) fputc_unlocked;
8955 #endif
8956
8957   ;
8958   return 0;
8959 }
8960 _ACEOF
8961 rm -f conftest.$ac_objext
8962 if { (ac_try="$ac_compile"
8963 case "(($ac_try" in
8964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8965   *) ac_try_echo=$ac_try;;
8966 esac
8967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8968   (eval "$ac_compile") 2>conftest.er1
8969   ac_status=$?
8970   grep -v '^ *+' conftest.er1 >conftest.err
8971   rm -f conftest.er1
8972   cat conftest.err >&5
8973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8974   (exit $ac_status); } && {
8975          test -z "$ac_c_werror_flag" ||
8976          test ! -s conftest.err
8977        } && test -s conftest.$ac_objext; then
8978   ac_cv_have_decl_fputc_unlocked=yes
8979 else
8980   echo "$as_me: failed program was:" >&5
8981 sed 's/^/| /' conftest.$ac_ext >&5
8982
8983         ac_cv_have_decl_fputc_unlocked=no
8984 fi
8985
8986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8987 fi
8988 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputc_unlocked" >&5
8989 echo "${ECHO_T}$ac_cv_have_decl_fputc_unlocked" >&6; }
8990 if test $ac_cv_have_decl_fputc_unlocked = yes; then
8991
8992 cat >>confdefs.h <<_ACEOF
8993 #define HAVE_DECL_FPUTC_UNLOCKED 1
8994 _ACEOF
8995
8996
8997 else
8998   cat >>confdefs.h <<_ACEOF
8999 #define HAVE_DECL_FPUTC_UNLOCKED 0
9000 _ACEOF
9001
9002
9003 fi
9004
9005
9006 { echo "$as_me:$LINENO: checking whether fputs_unlocked is declared" >&5
9007 echo $ECHO_N "checking whether fputs_unlocked is declared... $ECHO_C" >&6; }
9008 if test "${ac_cv_have_decl_fputs_unlocked+set}" = set; then
9009   echo $ECHO_N "(cached) $ECHO_C" >&6
9010 else
9011   cat >conftest.$ac_ext <<_ACEOF
9012 /* confdefs.h.  */
9013 _ACEOF
9014 cat confdefs.h >>conftest.$ac_ext
9015 cat >>conftest.$ac_ext <<_ACEOF
9016 /* end confdefs.h.  */
9017 $ac_includes_default
9018 int
9019 main ()
9020 {
9021 #ifndef fputs_unlocked
9022   (void) fputs_unlocked;
9023 #endif
9024
9025   ;
9026   return 0;
9027 }
9028 _ACEOF
9029 rm -f conftest.$ac_objext
9030 if { (ac_try="$ac_compile"
9031 case "(($ac_try" in
9032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9033   *) ac_try_echo=$ac_try;;
9034 esac
9035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9036   (eval "$ac_compile") 2>conftest.er1
9037   ac_status=$?
9038   grep -v '^ *+' conftest.er1 >conftest.err
9039   rm -f conftest.er1
9040   cat conftest.err >&5
9041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9042   (exit $ac_status); } && {
9043          test -z "$ac_c_werror_flag" ||
9044          test ! -s conftest.err
9045        } && test -s conftest.$ac_objext; then
9046   ac_cv_have_decl_fputs_unlocked=yes
9047 else
9048   echo "$as_me: failed program was:" >&5
9049 sed 's/^/| /' conftest.$ac_ext >&5
9050
9051         ac_cv_have_decl_fputs_unlocked=no
9052 fi
9053
9054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9055 fi
9056 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputs_unlocked" >&5
9057 echo "${ECHO_T}$ac_cv_have_decl_fputs_unlocked" >&6; }
9058 if test $ac_cv_have_decl_fputs_unlocked = yes; then
9059
9060 cat >>confdefs.h <<_ACEOF
9061 #define HAVE_DECL_FPUTS_UNLOCKED 1
9062 _ACEOF
9063
9064
9065 else
9066   cat >>confdefs.h <<_ACEOF
9067 #define HAVE_DECL_FPUTS_UNLOCKED 0
9068 _ACEOF
9069
9070
9071 fi
9072
9073
9074 { echo "$as_me:$LINENO: checking whether fread_unlocked is declared" >&5
9075 echo $ECHO_N "checking whether fread_unlocked is declared... $ECHO_C" >&6; }
9076 if test "${ac_cv_have_decl_fread_unlocked+set}" = set; then
9077   echo $ECHO_N "(cached) $ECHO_C" >&6
9078 else
9079   cat >conftest.$ac_ext <<_ACEOF
9080 /* confdefs.h.  */
9081 _ACEOF
9082 cat confdefs.h >>conftest.$ac_ext
9083 cat >>conftest.$ac_ext <<_ACEOF
9084 /* end confdefs.h.  */
9085 $ac_includes_default
9086 int
9087 main ()
9088 {
9089 #ifndef fread_unlocked
9090   (void) fread_unlocked;
9091 #endif
9092
9093   ;
9094   return 0;
9095 }
9096 _ACEOF
9097 rm -f conftest.$ac_objext
9098 if { (ac_try="$ac_compile"
9099 case "(($ac_try" in
9100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9101   *) ac_try_echo=$ac_try;;
9102 esac
9103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9104   (eval "$ac_compile") 2>conftest.er1
9105   ac_status=$?
9106   grep -v '^ *+' conftest.er1 >conftest.err
9107   rm -f conftest.er1
9108   cat conftest.err >&5
9109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9110   (exit $ac_status); } && {
9111          test -z "$ac_c_werror_flag" ||
9112          test ! -s conftest.err
9113        } && test -s conftest.$ac_objext; then
9114   ac_cv_have_decl_fread_unlocked=yes
9115 else
9116   echo "$as_me: failed program was:" >&5
9117 sed 's/^/| /' conftest.$ac_ext >&5
9118
9119         ac_cv_have_decl_fread_unlocked=no
9120 fi
9121
9122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9123 fi
9124 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fread_unlocked" >&5
9125 echo "${ECHO_T}$ac_cv_have_decl_fread_unlocked" >&6; }
9126 if test $ac_cv_have_decl_fread_unlocked = yes; then
9127
9128 cat >>confdefs.h <<_ACEOF
9129 #define HAVE_DECL_FREAD_UNLOCKED 1
9130 _ACEOF
9131
9132
9133 else
9134   cat >>confdefs.h <<_ACEOF
9135 #define HAVE_DECL_FREAD_UNLOCKED 0
9136 _ACEOF
9137
9138
9139 fi
9140
9141
9142 { echo "$as_me:$LINENO: checking whether fwrite_unlocked is declared" >&5
9143 echo $ECHO_N "checking whether fwrite_unlocked is declared... $ECHO_C" >&6; }
9144 if test "${ac_cv_have_decl_fwrite_unlocked+set}" = set; then
9145   echo $ECHO_N "(cached) $ECHO_C" >&6
9146 else
9147   cat >conftest.$ac_ext <<_ACEOF
9148 /* confdefs.h.  */
9149 _ACEOF
9150 cat confdefs.h >>conftest.$ac_ext
9151 cat >>conftest.$ac_ext <<_ACEOF
9152 /* end confdefs.h.  */
9153 $ac_includes_default
9154 int
9155 main ()
9156 {
9157 #ifndef fwrite_unlocked
9158   (void) fwrite_unlocked;
9159 #endif
9160
9161   ;
9162   return 0;
9163 }
9164 _ACEOF
9165 rm -f conftest.$ac_objext
9166 if { (ac_try="$ac_compile"
9167 case "(($ac_try" in
9168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9169   *) ac_try_echo=$ac_try;;
9170 esac
9171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9172   (eval "$ac_compile") 2>conftest.er1
9173   ac_status=$?
9174   grep -v '^ *+' conftest.er1 >conftest.err
9175   rm -f conftest.er1
9176   cat conftest.err >&5
9177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9178   (exit $ac_status); } && {
9179          test -z "$ac_c_werror_flag" ||
9180          test ! -s conftest.err
9181        } && test -s conftest.$ac_objext; then
9182   ac_cv_have_decl_fwrite_unlocked=yes
9183 else
9184   echo "$as_me: failed program was:" >&5
9185 sed 's/^/| /' conftest.$ac_ext >&5
9186
9187         ac_cv_have_decl_fwrite_unlocked=no
9188 fi
9189
9190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9191 fi
9192 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fwrite_unlocked" >&5
9193 echo "${ECHO_T}$ac_cv_have_decl_fwrite_unlocked" >&6; }
9194 if test $ac_cv_have_decl_fwrite_unlocked = yes; then
9195
9196 cat >>confdefs.h <<_ACEOF
9197 #define HAVE_DECL_FWRITE_UNLOCKED 1
9198 _ACEOF
9199
9200
9201 else
9202   cat >>confdefs.h <<_ACEOF
9203 #define HAVE_DECL_FWRITE_UNLOCKED 0
9204 _ACEOF
9205
9206
9207 fi
9208
9209
9210 { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
9211 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
9212 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
9213   echo $ECHO_N "(cached) $ECHO_C" >&6
9214 else
9215   cat >conftest.$ac_ext <<_ACEOF
9216 /* confdefs.h.  */
9217 _ACEOF
9218 cat confdefs.h >>conftest.$ac_ext
9219 cat >>conftest.$ac_ext <<_ACEOF
9220 /* end confdefs.h.  */
9221 $ac_includes_default
9222 int
9223 main ()
9224 {
9225 #ifndef getc_unlocked
9226   (void) getc_unlocked;
9227 #endif
9228
9229   ;
9230   return 0;
9231 }
9232 _ACEOF
9233 rm -f conftest.$ac_objext
9234 if { (ac_try="$ac_compile"
9235 case "(($ac_try" in
9236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9237   *) ac_try_echo=$ac_try;;
9238 esac
9239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9240   (eval "$ac_compile") 2>conftest.er1
9241   ac_status=$?
9242   grep -v '^ *+' conftest.er1 >conftest.err
9243   rm -f conftest.er1
9244   cat conftest.err >&5
9245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9246   (exit $ac_status); } && {
9247          test -z "$ac_c_werror_flag" ||
9248          test ! -s conftest.err
9249        } && test -s conftest.$ac_objext; then
9250   ac_cv_have_decl_getc_unlocked=yes
9251 else
9252   echo "$as_me: failed program was:" >&5
9253 sed 's/^/| /' conftest.$ac_ext >&5
9254
9255         ac_cv_have_decl_getc_unlocked=no
9256 fi
9257
9258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9259 fi
9260 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
9261 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
9262 if test $ac_cv_have_decl_getc_unlocked = yes; then
9263
9264 cat >>confdefs.h <<_ACEOF
9265 #define HAVE_DECL_GETC_UNLOCKED 1
9266 _ACEOF
9267
9268
9269 else
9270   cat >>confdefs.h <<_ACEOF
9271 #define HAVE_DECL_GETC_UNLOCKED 0
9272 _ACEOF
9273
9274
9275 fi
9276
9277
9278 { echo "$as_me:$LINENO: checking whether getchar_unlocked is declared" >&5
9279 echo $ECHO_N "checking whether getchar_unlocked is declared... $ECHO_C" >&6; }
9280 if test "${ac_cv_have_decl_getchar_unlocked+set}" = set; then
9281   echo $ECHO_N "(cached) $ECHO_C" >&6
9282 else
9283   cat >conftest.$ac_ext <<_ACEOF
9284 /* confdefs.h.  */
9285 _ACEOF
9286 cat confdefs.h >>conftest.$ac_ext
9287 cat >>conftest.$ac_ext <<_ACEOF
9288 /* end confdefs.h.  */
9289 $ac_includes_default
9290 int
9291 main ()
9292 {
9293 #ifndef getchar_unlocked
9294   (void) getchar_unlocked;
9295 #endif
9296
9297   ;
9298   return 0;
9299 }
9300 _ACEOF
9301 rm -f conftest.$ac_objext
9302 if { (ac_try="$ac_compile"
9303 case "(($ac_try" in
9304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9305   *) ac_try_echo=$ac_try;;
9306 esac
9307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9308   (eval "$ac_compile") 2>conftest.er1
9309   ac_status=$?
9310   grep -v '^ *+' conftest.er1 >conftest.err
9311   rm -f conftest.er1
9312   cat conftest.err >&5
9313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9314   (exit $ac_status); } && {
9315          test -z "$ac_c_werror_flag" ||
9316          test ! -s conftest.err
9317        } && test -s conftest.$ac_objext; then
9318   ac_cv_have_decl_getchar_unlocked=yes
9319 else
9320   echo "$as_me: failed program was:" >&5
9321 sed 's/^/| /' conftest.$ac_ext >&5
9322
9323         ac_cv_have_decl_getchar_unlocked=no
9324 fi
9325
9326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9327 fi
9328 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getchar_unlocked" >&5
9329 echo "${ECHO_T}$ac_cv_have_decl_getchar_unlocked" >&6; }
9330 if test $ac_cv_have_decl_getchar_unlocked = yes; then
9331
9332 cat >>confdefs.h <<_ACEOF
9333 #define HAVE_DECL_GETCHAR_UNLOCKED 1
9334 _ACEOF
9335
9336
9337 else
9338   cat >>confdefs.h <<_ACEOF
9339 #define HAVE_DECL_GETCHAR_UNLOCKED 0
9340 _ACEOF
9341
9342
9343 fi
9344
9345
9346 { echo "$as_me:$LINENO: checking whether putc_unlocked is declared" >&5
9347 echo $ECHO_N "checking whether putc_unlocked is declared... $ECHO_C" >&6; }
9348 if test "${ac_cv_have_decl_putc_unlocked+set}" = set; then
9349   echo $ECHO_N "(cached) $ECHO_C" >&6
9350 else
9351   cat >conftest.$ac_ext <<_ACEOF
9352 /* confdefs.h.  */
9353 _ACEOF
9354 cat confdefs.h >>conftest.$ac_ext
9355 cat >>conftest.$ac_ext <<_ACEOF
9356 /* end confdefs.h.  */
9357 $ac_includes_default
9358 int
9359 main ()
9360 {
9361 #ifndef putc_unlocked
9362   (void) putc_unlocked;
9363 #endif
9364
9365   ;
9366   return 0;
9367 }
9368 _ACEOF
9369 rm -f conftest.$ac_objext
9370 if { (ac_try="$ac_compile"
9371 case "(($ac_try" in
9372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9373   *) ac_try_echo=$ac_try;;
9374 esac
9375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9376   (eval "$ac_compile") 2>conftest.er1
9377   ac_status=$?
9378   grep -v '^ *+' conftest.er1 >conftest.err
9379   rm -f conftest.er1
9380   cat conftest.err >&5
9381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9382   (exit $ac_status); } && {
9383          test -z "$ac_c_werror_flag" ||
9384          test ! -s conftest.err
9385        } && test -s conftest.$ac_objext; then
9386   ac_cv_have_decl_putc_unlocked=yes
9387 else
9388   echo "$as_me: failed program was:" >&5
9389 sed 's/^/| /' conftest.$ac_ext >&5
9390
9391         ac_cv_have_decl_putc_unlocked=no
9392 fi
9393
9394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9395 fi
9396 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_putc_unlocked" >&5
9397 echo "${ECHO_T}$ac_cv_have_decl_putc_unlocked" >&6; }
9398 if test $ac_cv_have_decl_putc_unlocked = yes; then
9399
9400 cat >>confdefs.h <<_ACEOF
9401 #define HAVE_DECL_PUTC_UNLOCKED 1
9402 _ACEOF
9403
9404
9405 else
9406   cat >>confdefs.h <<_ACEOF
9407 #define HAVE_DECL_PUTC_UNLOCKED 0
9408 _ACEOF
9409
9410
9411 fi
9412
9413
9414 { echo "$as_me:$LINENO: checking whether putchar_unlocked is declared" >&5
9415 echo $ECHO_N "checking whether putchar_unlocked is declared... $ECHO_C" >&6; }
9416 if test "${ac_cv_have_decl_putchar_unlocked+set}" = set; then
9417   echo $ECHO_N "(cached) $ECHO_C" >&6
9418 else
9419   cat >conftest.$ac_ext <<_ACEOF
9420 /* confdefs.h.  */
9421 _ACEOF
9422 cat confdefs.h >>conftest.$ac_ext
9423 cat >>conftest.$ac_ext <<_ACEOF
9424 /* end confdefs.h.  */
9425 $ac_includes_default
9426 int
9427 main ()
9428 {
9429 #ifndef putchar_unlocked
9430   (void) putchar_unlocked;
9431 #endif
9432
9433   ;
9434   return 0;
9435 }
9436 _ACEOF
9437 rm -f conftest.$ac_objext
9438 if { (ac_try="$ac_compile"
9439 case "(($ac_try" in
9440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9441   *) ac_try_echo=$ac_try;;
9442 esac
9443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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          test -z "$ac_c_werror_flag" ||
9452          test ! -s conftest.err
9453        } && test -s conftest.$ac_objext; then
9454   ac_cv_have_decl_putchar_unlocked=yes
9455 else
9456   echo "$as_me: failed program was:" >&5
9457 sed 's/^/| /' conftest.$ac_ext >&5
9458
9459         ac_cv_have_decl_putchar_unlocked=no
9460 fi
9461
9462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9463 fi
9464 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_putchar_unlocked" >&5
9465 echo "${ECHO_T}$ac_cv_have_decl_putchar_unlocked" >&6; }
9466 if test $ac_cv_have_decl_putchar_unlocked = yes; then
9467
9468 cat >>confdefs.h <<_ACEOF
9469 #define HAVE_DECL_PUTCHAR_UNLOCKED 1
9470 _ACEOF
9471
9472
9473 else
9474   cat >>confdefs.h <<_ACEOF
9475 #define HAVE_DECL_PUTCHAR_UNLOCKED 0
9476 _ACEOF
9477
9478
9479 fi
9480
9481
9482
9483
9484
9485
9486 for ac_func in $ac_func_list
9487 do
9488 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9489 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9490 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9491 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9492   echo $ECHO_N "(cached) $ECHO_C" >&6
9493 else
9494   cat >conftest.$ac_ext <<_ACEOF
9495 /* confdefs.h.  */
9496 _ACEOF
9497 cat confdefs.h >>conftest.$ac_ext
9498 cat >>conftest.$ac_ext <<_ACEOF
9499 /* end confdefs.h.  */
9500 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9501    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9502 #define $ac_func innocuous_$ac_func
9503
9504 /* System header to define __stub macros and hopefully few prototypes,
9505     which can conflict with char $ac_func (); below.
9506     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9507     <limits.h> exists even on freestanding compilers.  */
9508
9509 #ifdef __STDC__
9510 # include <limits.h>
9511 #else
9512 # include <assert.h>
9513 #endif
9514
9515 #undef $ac_func
9516
9517 /* Override any GCC internal prototype to avoid an error.
9518    Use char because int might match the return type of a GCC
9519    builtin and then its argument prototype would still apply.  */
9520 #ifdef __cplusplus
9521 extern "C"
9522 #endif
9523 char $ac_func ();
9524 /* The GNU C library defines this for functions which it implements
9525     to always fail with ENOSYS.  Some functions are actually named
9526     something starting with __ and the normal name is an alias.  */
9527 #if defined __stub_$ac_func || defined __stub___$ac_func
9528 choke me
9529 #endif
9530
9531 int
9532 main ()
9533 {
9534 return $ac_func ();
9535   ;
9536   return 0;
9537 }
9538 _ACEOF
9539 rm -f conftest.$ac_objext conftest$ac_exeext
9540 if { (ac_try="$ac_link"
9541 case "(($ac_try" in
9542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9543   *) ac_try_echo=$ac_try;;
9544 esac
9545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9546   (eval "$ac_link") 2>conftest.er1
9547   ac_status=$?
9548   grep -v '^ *+' conftest.er1 >conftest.err
9549   rm -f conftest.er1
9550   cat conftest.err >&5
9551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9552   (exit $ac_status); } && {
9553          test -z "$ac_c_werror_flag" ||
9554          test ! -s conftest.err
9555        } && test -s conftest$ac_exeext &&
9556        $as_test_x conftest$ac_exeext; then
9557   eval "$as_ac_var=yes"
9558 else
9559   echo "$as_me: failed program was:" >&5
9560 sed 's/^/| /' conftest.$ac_ext >&5
9561
9562         eval "$as_ac_var=no"
9563 fi
9564
9565 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9566       conftest$ac_exeext conftest.$ac_ext
9567 fi
9568 ac_res=`eval echo '${'$as_ac_var'}'`
9569                { echo "$as_me:$LINENO: result: $ac_res" >&5
9570 echo "${ECHO_T}$ac_res" >&6; }
9571 if test `eval echo '${'$as_ac_var'}'` = yes; then
9572   cat >>confdefs.h <<_ACEOF
9573 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9574 _ACEOF
9575
9576 fi
9577 done
9578
9579
9580
9581
9582
9583
9584
9585
9586
9587
9588   XGETTEXT_EXTRA_OPTIONS=
9589
9590 { echo "$as_me:$LINENO: checking for d_ino member in directory struct" >&5
9591 echo $ECHO_N "checking for d_ino member in directory struct... $ECHO_C" >&6; }
9592 if test "${gl_cv_struct_dirent_d_ino+set}" = set; then
9593   echo $ECHO_N "(cached) $ECHO_C" >&6
9594 else
9595   if test "$cross_compiling" = yes; then
9596   gl_cv_struct_dirent_d_ino=no
9597 else
9598   cat >conftest.$ac_ext <<_ACEOF
9599 /* confdefs.h.  */
9600 _ACEOF
9601 cat confdefs.h >>conftest.$ac_ext
9602 cat >>conftest.$ac_ext <<_ACEOF
9603 /* end confdefs.h.  */
9604 #include <sys/types.h>
9605              #include <sys/stat.h>
9606              #include <dirent.h>
9607
9608 int
9609 main ()
9610 {
9611 DIR *dp = opendir (".");
9612              struct dirent *e;
9613              struct stat st;
9614              if (! dp)
9615                return 1;
9616              e = readdir (dp);
9617              return ! (e
9618                        && stat (e->d_name, &st) == 0
9619                        && e->d_ino == st.st_ino);
9620   ;
9621   return 0;
9622 }
9623 _ACEOF
9624 rm -f conftest$ac_exeext
9625 if { (ac_try="$ac_link"
9626 case "(($ac_try" in
9627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9628   *) ac_try_echo=$ac_try;;
9629 esac
9630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9631   (eval "$ac_link") 2>&5
9632   ac_status=$?
9633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9634   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9635   { (case "(($ac_try" in
9636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9637   *) ac_try_echo=$ac_try;;
9638 esac
9639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9640   (eval "$ac_try") 2>&5
9641   ac_status=$?
9642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9643   (exit $ac_status); }; }; then
9644   gl_cv_struct_dirent_d_ino=yes
9645 else
9646   echo "$as_me: program exited with status $ac_status" >&5
9647 echo "$as_me: failed program was:" >&5
9648 sed 's/^/| /' conftest.$ac_ext >&5
9649
9650 ( exit $ac_status )
9651 gl_cv_struct_dirent_d_ino=no
9652 fi
9653 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9654 fi
9655
9656
9657 fi
9658 { echo "$as_me:$LINENO: result: $gl_cv_struct_dirent_d_ino" >&5
9659 echo "${ECHO_T}$gl_cv_struct_dirent_d_ino" >&6; }
9660    if test $gl_cv_struct_dirent_d_ino = yes; then
9661
9662 cat >>confdefs.h <<\_ACEOF
9663 #define D_INO_IN_DIRENT 1
9664 _ACEOF
9665
9666    fi
9667
9668
9669
9670     { echo "$as_me:$LINENO: checking whether system is Windows or MSDOS" >&5
9671 echo $ECHO_N "checking whether system is Windows or MSDOS... $ECHO_C" >&6; }
9672 if test "${ac_cv_win_or_dos+set}" = set; then
9673   echo $ECHO_N "(cached) $ECHO_C" >&6
9674 else
9675
9676         cat >conftest.$ac_ext <<_ACEOF
9677 /* confdefs.h.  */
9678 _ACEOF
9679 cat confdefs.h >>conftest.$ac_ext
9680 cat >>conftest.$ac_ext <<_ACEOF
9681 /* end confdefs.h.  */
9682
9683 int
9684 main ()
9685 {
9686 #if !defined _WIN32 && !defined __WIN32__ && !defined __MSDOS__ && !defined __CYGWIN__
9687 neither MSDOS nor Windows
9688 #endif
9689   ;
9690   return 0;
9691 }
9692 _ACEOF
9693 rm -f conftest.$ac_objext
9694 if { (ac_try="$ac_compile"
9695 case "(($ac_try" in
9696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9697   *) ac_try_echo=$ac_try;;
9698 esac
9699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9700   (eval "$ac_compile") 2>conftest.er1
9701   ac_status=$?
9702   grep -v '^ *+' conftest.er1 >conftest.err
9703   rm -f conftest.er1
9704   cat conftest.err >&5
9705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9706   (exit $ac_status); } && {
9707          test -z "$ac_c_werror_flag" ||
9708          test ! -s conftest.err
9709        } && test -s conftest.$ac_objext; then
9710   ac_cv_win_or_dos=yes
9711 else
9712   echo "$as_me: failed program was:" >&5
9713 sed 's/^/| /' conftest.$ac_ext >&5
9714
9715         ac_cv_win_or_dos=no
9716 fi
9717
9718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9719
9720 fi
9721 { echo "$as_me:$LINENO: result: $ac_cv_win_or_dos" >&5
9722 echo "${ECHO_T}$ac_cv_win_or_dos" >&6; }
9723
9724     if test x"$ac_cv_win_or_dos" = xyes; then
9725       ac_fs_accepts_drive_letter_prefix=1
9726       ac_fs_backslash_is_file_name_separator=1
9727       { echo "$as_me:$LINENO: checking whether drive letter can start relative path" >&5
9728 echo $ECHO_N "checking whether drive letter can start relative path... $ECHO_C" >&6; }
9729 if test "${ac_cv_drive_letter_can_be_relative+set}" = set; then
9730   echo $ECHO_N "(cached) $ECHO_C" >&6
9731 else
9732
9733           cat >conftest.$ac_ext <<_ACEOF
9734 /* confdefs.h.  */
9735 _ACEOF
9736 cat confdefs.h >>conftest.$ac_ext
9737 cat >>conftest.$ac_ext <<_ACEOF
9738 /* end confdefs.h.  */
9739
9740 int
9741 main ()
9742 {
9743 #if defined __CYGWIN__
9744 drive letters are always absolute
9745 #endif
9746   ;
9747   return 0;
9748 }
9749 _ACEOF
9750 rm -f conftest.$ac_objext
9751 if { (ac_try="$ac_compile"
9752 case "(($ac_try" in
9753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9754   *) ac_try_echo=$ac_try;;
9755 esac
9756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9757   (eval "$ac_compile") 2>conftest.er1
9758   ac_status=$?
9759   grep -v '^ *+' conftest.er1 >conftest.err
9760   rm -f conftest.er1
9761   cat conftest.err >&5
9762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9763   (exit $ac_status); } && {
9764          test -z "$ac_c_werror_flag" ||
9765          test ! -s conftest.err
9766        } && test -s conftest.$ac_objext; then
9767   ac_cv_drive_letter_can_be_relative=yes
9768 else
9769   echo "$as_me: failed program was:" >&5
9770 sed 's/^/| /' conftest.$ac_ext >&5
9771
9772         ac_cv_drive_letter_can_be_relative=no
9773 fi
9774
9775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9776
9777 fi
9778 { echo "$as_me:$LINENO: result: $ac_cv_drive_letter_can_be_relative" >&5
9779 echo "${ECHO_T}$ac_cv_drive_letter_can_be_relative" >&6; }
9780       if test x"$ac_cv_drive_letter_can_be_relative" = xyes; then
9781         ac_fs_drive_letter_can_be_relative=1
9782       else
9783         ac_fs_drive_letter_can_be_relative=0
9784       fi
9785     else
9786       ac_fs_accepts_drive_letter_prefix=0
9787       ac_fs_backslash_is_file_name_separator=0
9788       ac_fs_drive_letter_can_be_relative=0
9789     fi
9790
9791
9792 cat >>confdefs.h <<_ACEOF
9793 #define FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX $ac_fs_accepts_drive_letter_prefix
9794 _ACEOF
9795
9796
9797
9798
9799
9800
9801 cat >>confdefs.h <<_ACEOF
9802 #define FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR $ac_fs_backslash_is_file_name_separator
9803 _ACEOF
9804
9805
9806
9807 cat >>confdefs.h <<_ACEOF
9808 #define FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE $ac_fs_drive_letter_can_be_relative
9809 _ACEOF
9810
9811
9812 { echo "$as_me:$LINENO: checking for long file names" >&5
9813 echo $ECHO_N "checking for long file names... $ECHO_C" >&6; }
9814 if test "${ac_cv_sys_long_file_names+set}" = set; then
9815   echo $ECHO_N "(cached) $ECHO_C" >&6
9816 else
9817   ac_cv_sys_long_file_names=yes
9818 # Test for long file names in all the places we know might matter:
9819 #      .                the current directory, where building will happen
9820 #      $prefix/lib      where we will be installing things
9821 #      $exec_prefix/lib likewise
9822 #      $TMPDIR          if set, where it might want to write temporary files
9823 #      /tmp             where it might want to write temporary files
9824 #      /var/tmp         likewise
9825 #      /usr/tmp         likewise
9826 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9827   # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9828   # in the usual case where exec_prefix is '${prefix}'.
9829   case $ac_dir in #(
9830     . | /* | ?:[\\/]*) ;; #(
9831     *) continue;;
9832   esac
9833   test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9834   ac_xdir=$ac_dir/cf$$
9835   (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9836   ac_tf1=$ac_xdir/conftest9012345
9837   ac_tf2=$ac_xdir/conftest9012346
9838   touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9839     ac_cv_sys_long_file_names=no
9840   rm -f -r "$ac_xdir" 2>/dev/null
9841   test $ac_cv_sys_long_file_names = no && break
9842 done
9843 fi
9844 { echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
9845 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; }
9846 if test $ac_cv_sys_long_file_names = yes; then
9847
9848 cat >>confdefs.h <<\_ACEOF
9849 #define HAVE_LONG_FILE_NAMES 1
9850 _ACEOF
9851
9852 fi
9853
9854
9855
9856 { echo "$as_me:$LINENO: checking whether canonicalize_file_name is declared" >&5
9857 echo $ECHO_N "checking whether canonicalize_file_name is declared... $ECHO_C" >&6; }
9858 if test "${ac_cv_have_decl_canonicalize_file_name+set}" = set; then
9859   echo $ECHO_N "(cached) $ECHO_C" >&6
9860 else
9861   cat >conftest.$ac_ext <<_ACEOF
9862 /* confdefs.h.  */
9863 _ACEOF
9864 cat confdefs.h >>conftest.$ac_ext
9865 cat >>conftest.$ac_ext <<_ACEOF
9866 /* end confdefs.h.  */
9867 $ac_includes_default
9868 int
9869 main ()
9870 {
9871 #ifndef canonicalize_file_name
9872   (void) canonicalize_file_name;
9873 #endif
9874
9875   ;
9876   return 0;
9877 }
9878 _ACEOF
9879 rm -f conftest.$ac_objext
9880 if { (ac_try="$ac_compile"
9881 case "(($ac_try" in
9882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9883   *) ac_try_echo=$ac_try;;
9884 esac
9885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9886   (eval "$ac_compile") 2>conftest.er1
9887   ac_status=$?
9888   grep -v '^ *+' conftest.er1 >conftest.err
9889   rm -f conftest.er1
9890   cat conftest.err >&5
9891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9892   (exit $ac_status); } && {
9893          test -z "$ac_c_werror_flag" ||
9894          test ! -s conftest.err
9895        } && test -s conftest.$ac_objext; then
9896   ac_cv_have_decl_canonicalize_file_name=yes
9897 else
9898   echo "$as_me: failed program was:" >&5
9899 sed 's/^/| /' conftest.$ac_ext >&5
9900
9901         ac_cv_have_decl_canonicalize_file_name=no
9902 fi
9903
9904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9905 fi
9906 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_canonicalize_file_name" >&5
9907 echo "${ECHO_T}$ac_cv_have_decl_canonicalize_file_name" >&6; }
9908 if test $ac_cv_have_decl_canonicalize_file_name = yes; then
9909
9910 cat >>confdefs.h <<_ACEOF
9911 #define HAVE_DECL_CANONICALIZE_FILE_NAME 1
9912 _ACEOF
9913
9914
9915 else
9916   cat >>confdefs.h <<_ACEOF
9917 #define HAVE_DECL_CANONICALIZE_FILE_NAME 0
9918 _ACEOF
9919
9920
9921 fi
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931   GNULIB_CHOWN=0;
9932   GNULIB_CLOSE=0;
9933   GNULIB_DUP2=0;
9934   GNULIB_ENVIRON=0;
9935   GNULIB_EUIDACCESS=0;
9936   GNULIB_FCHDIR=0;
9937   GNULIB_FSYNC=0;
9938   GNULIB_FTRUNCATE=0;
9939   GNULIB_GETCWD=0;
9940   GNULIB_GETDOMAINNAME=0;
9941   GNULIB_GETDTABLESIZE=0;
9942   GNULIB_GETHOSTNAME=0;
9943   GNULIB_GETLOGIN_R=0;
9944   GNULIB_GETPAGESIZE=0;
9945   GNULIB_GETUSERSHELL=0;
9946   GNULIB_LCHOWN=0;
9947   GNULIB_LSEEK=0;
9948   GNULIB_READLINK=0;
9949   GNULIB_SLEEP=0;
9950   GNULIB_UNISTD_H_SIGPIPE=0;
9951   GNULIB_WRITE=0;
9952     HAVE_DUP2=1;
9953   HAVE_EUIDACCESS=1;
9954   HAVE_FSYNC=1;
9955   HAVE_FTRUNCATE=1;
9956   HAVE_GETDOMAINNAME=1;
9957   HAVE_GETDTABLESIZE=1;
9958   HAVE_GETHOSTNAME=1;
9959   HAVE_GETPAGESIZE=1;
9960   HAVE_GETUSERSHELL=1;
9961   HAVE_READLINK=1;
9962   HAVE_SLEEP=1;
9963   HAVE_DECL_ENVIRON=1;
9964   HAVE_DECL_GETLOGIN_R=1;
9965   HAVE_OS_H=0;
9966   HAVE_SYS_PARAM_H=0;
9967   REPLACE_CHOWN=0;
9968   REPLACE_CLOSE=0;
9969   REPLACE_FCHDIR=0;
9970   REPLACE_GETCWD=0;
9971   REPLACE_GETPAGESIZE=0;
9972   REPLACE_LCHOWN=0;
9973   REPLACE_LSEEK=0;
9974   REPLACE_WRITE=0;
9975   UNISTD_H_HAVE_WINSOCK2_H=0;
9976
9977
9978 for ac_header in unistd.h
9979 do
9980 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9981 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9982   { echo "$as_me:$LINENO: checking for $ac_header" >&5
9983 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9984 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9985   echo $ECHO_N "(cached) $ECHO_C" >&6
9986 fi
9987 ac_res=`eval echo '${'$as_ac_Header'}'`
9988                { echo "$as_me:$LINENO: result: $ac_res" >&5
9989 echo "${ECHO_T}$ac_res" >&6; }
9990 else
9991   # Is the header compilable?
9992 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9993 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9994 cat >conftest.$ac_ext <<_ACEOF
9995 /* confdefs.h.  */
9996 _ACEOF
9997 cat confdefs.h >>conftest.$ac_ext
9998 cat >>conftest.$ac_ext <<_ACEOF
9999 /* end confdefs.h.  */
10000 $ac_includes_default
10001 #include <$ac_header>
10002 _ACEOF
10003 rm -f conftest.$ac_objext
10004 if { (ac_try="$ac_compile"
10005 case "(($ac_try" in
10006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10007   *) ac_try_echo=$ac_try;;
10008 esac
10009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10010   (eval "$ac_compile") 2>conftest.er1
10011   ac_status=$?
10012   grep -v '^ *+' conftest.er1 >conftest.err
10013   rm -f conftest.er1
10014   cat conftest.err >&5
10015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10016   (exit $ac_status); } && {
10017          test -z "$ac_c_werror_flag" ||
10018          test ! -s conftest.err
10019        } && test -s conftest.$ac_objext; then
10020   ac_header_compiler=yes
10021 else
10022   echo "$as_me: failed program was:" >&5
10023 sed 's/^/| /' conftest.$ac_ext >&5
10024
10025         ac_header_compiler=no
10026 fi
10027
10028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10029 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10030 echo "${ECHO_T}$ac_header_compiler" >&6; }
10031
10032 # Is the header present?
10033 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10034 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10035 cat >conftest.$ac_ext <<_ACEOF
10036 /* confdefs.h.  */
10037 _ACEOF
10038 cat confdefs.h >>conftest.$ac_ext
10039 cat >>conftest.$ac_ext <<_ACEOF
10040 /* end confdefs.h.  */
10041 #include <$ac_header>
10042 _ACEOF
10043 if { (ac_try="$ac_cpp conftest.$ac_ext"
10044 case "(($ac_try" in
10045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10046   *) ac_try_echo=$ac_try;;
10047 esac
10048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10049   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10050   ac_status=$?
10051   grep -v '^ *+' conftest.er1 >conftest.err
10052   rm -f conftest.er1
10053   cat conftest.err >&5
10054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10055   (exit $ac_status); } >/dev/null && {
10056          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10057          test ! -s conftest.err
10058        }; then
10059   ac_header_preproc=yes
10060 else
10061   echo "$as_me: failed program was:" >&5
10062 sed 's/^/| /' conftest.$ac_ext >&5
10063
10064   ac_header_preproc=no
10065 fi
10066
10067 rm -f conftest.err conftest.$ac_ext
10068 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10069 echo "${ECHO_T}$ac_header_preproc" >&6; }
10070
10071 # So?  What about this header?
10072 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10073   yes:no: )
10074     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10075 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10076     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10077 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10078     ac_header_preproc=yes
10079     ;;
10080   no:yes:* )
10081     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10082 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10083     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10084 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10085     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10086 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10087     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10088 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10089     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10090 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10091     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10092 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10093     ( cat <<\_ASBOX
10094 ## ------------------------------ ##
10095 ## Report this to bug-tar@gnu.org ##
10096 ## ------------------------------ ##
10097 _ASBOX
10098      ) | sed "s/^/$as_me: WARNING:     /" >&2
10099     ;;
10100 esac
10101 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10102 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10103 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10104   echo $ECHO_N "(cached) $ECHO_C" >&6
10105 else
10106   eval "$as_ac_Header=\$ac_header_preproc"
10107 fi
10108 ac_res=`eval echo '${'$as_ac_Header'}'`
10109                { echo "$as_me:$LINENO: result: $ac_res" >&5
10110 echo "${ECHO_T}$ac_res" >&6; }
10111
10112 fi
10113 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10114   cat >>confdefs.h <<_ACEOF
10115 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10116 _ACEOF
10117
10118 fi
10119
10120 done
10121
10122 { echo "$as_me:$LINENO: checking for working chown" >&5
10123 echo $ECHO_N "checking for working chown... $ECHO_C" >&6; }
10124 if test "${ac_cv_func_chown_works+set}" = set; then
10125   echo $ECHO_N "(cached) $ECHO_C" >&6
10126 else
10127   if test "$cross_compiling" = yes; then
10128   ac_cv_func_chown_works=no
10129 else
10130   cat >conftest.$ac_ext <<_ACEOF
10131 /* confdefs.h.  */
10132 _ACEOF
10133 cat confdefs.h >>conftest.$ac_ext
10134 cat >>conftest.$ac_ext <<_ACEOF
10135 /* end confdefs.h.  */
10136 $ac_includes_default
10137 #include <fcntl.h>
10138
10139 int
10140 main ()
10141 {
10142   char *f = "conftest.chown";
10143   struct stat before, after;
10144
10145   if (creat (f, 0600) < 0)
10146     return 1;
10147   if (stat (f, &before) < 0)
10148     return 1;
10149   if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
10150     return 1;
10151   if (stat (f, &after) < 0)
10152     return 1;
10153   return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
10154
10155   ;
10156   return 0;
10157 }
10158 _ACEOF
10159 rm -f conftest$ac_exeext
10160 if { (ac_try="$ac_link"
10161 case "(($ac_try" in
10162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10163   *) ac_try_echo=$ac_try;;
10164 esac
10165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10166   (eval "$ac_link") 2>&5
10167   ac_status=$?
10168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10169   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10170   { (case "(($ac_try" in
10171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10172   *) ac_try_echo=$ac_try;;
10173 esac
10174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10175   (eval "$ac_try") 2>&5
10176   ac_status=$?
10177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10178   (exit $ac_status); }; }; then
10179   ac_cv_func_chown_works=yes
10180 else
10181   echo "$as_me: program exited with status $ac_status" >&5
10182 echo "$as_me: failed program was:" >&5
10183 sed 's/^/| /' conftest.$ac_ext >&5
10184
10185 ( exit $ac_status )
10186 ac_cv_func_chown_works=no
10187 fi
10188 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10189 fi
10190
10191
10192 rm -f conftest.chown
10193
10194 fi
10195 { echo "$as_me:$LINENO: result: $ac_cv_func_chown_works" >&5
10196 echo "${ECHO_T}$ac_cv_func_chown_works" >&6; }
10197 if test $ac_cv_func_chown_works = yes; then
10198
10199 cat >>confdefs.h <<\_ACEOF
10200 #define HAVE_CHOWN 1
10201 _ACEOF
10202
10203 fi
10204
10205
10206   { echo "$as_me:$LINENO: checking whether chown(2) dereferences symlinks" >&5
10207 echo $ECHO_N "checking whether chown(2) dereferences symlinks... $ECHO_C" >&6; }
10208 if test "${gl_cv_func_chown_follows_symlink+set}" = set; then
10209   echo $ECHO_N "(cached) $ECHO_C" >&6
10210 else
10211
10212       if test "$cross_compiling" = yes; then
10213   gl_cv_func_chown_follows_symlink=yes
10214
10215 else
10216   cat >conftest.$ac_ext <<_ACEOF
10217 /* confdefs.h.  */
10218 _ACEOF
10219 cat confdefs.h >>conftest.$ac_ext
10220 cat >>conftest.$ac_ext <<_ACEOF
10221 /* end confdefs.h.  */
10222
10223 #include <unistd.h>
10224 #include <stdlib.h>
10225 #include <errno.h>
10226
10227         int
10228         main ()
10229         {
10230           char const *dangling_symlink = "conftest.dangle";
10231
10232           unlink (dangling_symlink);
10233           if (symlink ("conftest.no-such", dangling_symlink))
10234             abort ();
10235
10236           /* Exit successfully on a conforming system,
10237              i.e., where chown must fail with ENOENT.  */
10238           exit ( ! (chown (dangling_symlink, getuid (), getgid ()) != 0
10239                     && errno == ENOENT));
10240         }
10241
10242 _ACEOF
10243 rm -f conftest$ac_exeext
10244 if { (ac_try="$ac_link"
10245 case "(($ac_try" in
10246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10247   *) ac_try_echo=$ac_try;;
10248 esac
10249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10250   (eval "$ac_link") 2>&5
10251   ac_status=$?
10252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10253   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10254   { (case "(($ac_try" in
10255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10256   *) ac_try_echo=$ac_try;;
10257 esac
10258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10259   (eval "$ac_try") 2>&5
10260   ac_status=$?
10261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10262   (exit $ac_status); }; }; then
10263   gl_cv_func_chown_follows_symlink=yes
10264 else
10265   echo "$as_me: program exited with status $ac_status" >&5
10266 echo "$as_me: failed program was:" >&5
10267 sed 's/^/| /' conftest.$ac_ext >&5
10268
10269 ( exit $ac_status )
10270 gl_cv_func_chown_follows_symlink=no
10271 fi
10272 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10273 fi
10274
10275
10276
10277
10278 fi
10279 { echo "$as_me:$LINENO: result: $gl_cv_func_chown_follows_symlink" >&5
10280 echo "${ECHO_T}$gl_cv_func_chown_follows_symlink" >&6; }
10281
10282   if test $gl_cv_func_chown_follows_symlink = no; then
10283
10284 cat >>confdefs.h <<\_ACEOF
10285 #define CHOWN_MODIFIES_SYMLINK 1
10286 _ACEOF
10287
10288   fi
10289
10290
10291      GNULIB_DIRFD=0;
10292     HAVE_DECL_DIRFD=1;
10293   DIRENT_H='';
10294
10295
10296
10297   { echo "$as_me:$LINENO: checking whether the preprocessor supports include_next" >&5
10298 echo $ECHO_N "checking whether the preprocessor supports include_next... $ECHO_C" >&6; }
10299 if test "${gl_cv_have_include_next+set}" = set; then
10300   echo $ECHO_N "(cached) $ECHO_C" >&6
10301 else
10302   rm -rf conftestd1 conftestd2
10303      mkdir conftestd1 conftestd2
10304                     cat <<EOF > conftestd1/conftest.h
10305 #define DEFINED_IN_CONFTESTD1
10306 #include <stdio.h>
10307 #include_next <conftest.h>
10308 #ifdef DEFINED_IN_CONFTESTD2
10309 int foo;
10310 #else
10311 #error "include_next doesn't work"
10312 #endif
10313 EOF
10314      cat <<EOF > conftestd2/conftest.h
10315 #ifndef DEFINED_IN_CONFTESTD1
10316 #error "include_next test doesn't work"
10317 #endif
10318 #define DEFINED_IN_CONFTESTD2
10319 EOF
10320      save_CPPFLAGS="$CPPFLAGS"
10321      CPPFLAGS="$CPPFLAGS -Iconftestd1 -Iconftestd2"
10322      cat >conftest.$ac_ext <<_ACEOF
10323 #include <conftest.h>
10324 _ACEOF
10325 rm -f conftest.$ac_objext
10326 if { (ac_try="$ac_compile"
10327 case "(($ac_try" in
10328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10329   *) ac_try_echo=$ac_try;;
10330 esac
10331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10332   (eval "$ac_compile") 2>conftest.er1
10333   ac_status=$?
10334   grep -v '^ *+' conftest.er1 >conftest.err
10335   rm -f conftest.er1
10336   cat conftest.err >&5
10337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10338   (exit $ac_status); } && {
10339          test -z "$ac_c_werror_flag" ||
10340          test ! -s conftest.err
10341        } && test -s conftest.$ac_objext; then
10342   gl_cv_have_include_next=yes
10343 else
10344   echo "$as_me: failed program was:" >&5
10345 sed 's/^/| /' conftest.$ac_ext >&5
10346
10347         gl_cv_have_include_next=no
10348 fi
10349
10350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10351      CPPFLAGS="$save_CPPFLAGS"
10352      rm -rf conftestd1 conftestd2
10353
10354 fi
10355 { echo "$as_me:$LINENO: result: $gl_cv_have_include_next" >&5
10356 echo "${ECHO_T}$gl_cv_have_include_next" >&6; }
10357   PRAGMA_SYSTEM_HEADER=
10358   if test $gl_cv_have_include_next = yes; then
10359     INCLUDE_NEXT=include_next
10360     if test -n "$GCC"; then
10361       PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
10362     fi
10363   else
10364     INCLUDE_NEXT=include
10365   fi
10366
10367
10368
10369
10370
10371 # Make sure we can run config.sub.
10372 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
10373   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
10374 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
10375    { (exit 1); exit 1; }; }
10376
10377 { echo "$as_me:$LINENO: checking build system type" >&5
10378 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
10379 if test "${ac_cv_build+set}" = set; then
10380   echo $ECHO_N "(cached) $ECHO_C" >&6
10381 else
10382   ac_build_alias=$build_alias
10383 test "x$ac_build_alias" = x &&
10384   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
10385 test "x$ac_build_alias" = x &&
10386   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
10387 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
10388    { (exit 1); exit 1; }; }
10389 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
10390   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
10391 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
10392    { (exit 1); exit 1; }; }
10393
10394 fi
10395 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
10396 echo "${ECHO_T}$ac_cv_build" >&6; }
10397 case $ac_cv_build in
10398 *-*-*) ;;
10399 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
10400 echo "$as_me: error: invalid value of canonical build" >&2;}
10401    { (exit 1); exit 1; }; };;
10402 esac
10403 build=$ac_cv_build
10404 ac_save_IFS=$IFS; IFS='-'
10405 set x $ac_cv_build
10406 shift
10407 build_cpu=$1
10408 build_vendor=$2
10409 shift; shift
10410 # Remember, the first character of IFS is used to create $*,
10411 # except with old shells:
10412 build_os=$*
10413 IFS=$ac_save_IFS
10414 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
10415
10416
10417 { echo "$as_me:$LINENO: checking host system type" >&5
10418 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
10419 if test "${ac_cv_host+set}" = set; then
10420   echo $ECHO_N "(cached) $ECHO_C" >&6
10421 else
10422   if test "x$host_alias" = x; then
10423   ac_cv_host=$ac_cv_build
10424 else
10425   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
10426     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
10427 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
10428    { (exit 1); exit 1; }; }
10429 fi
10430
10431 fi
10432 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
10433 echo "${ECHO_T}$ac_cv_host" >&6; }
10434 case $ac_cv_host in
10435 *-*-*) ;;
10436 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
10437 echo "$as_me: error: invalid value of canonical host" >&2;}
10438    { (exit 1); exit 1; }; };;
10439 esac
10440 host=$ac_cv_host
10441 ac_save_IFS=$IFS; IFS='-'
10442 set x $ac_cv_host
10443 shift
10444 host_cpu=$1
10445 host_vendor=$2
10446 shift; shift
10447 # Remember, the first character of IFS is used to create $*,
10448 # except with old shells:
10449 host_os=$*
10450 IFS=$ac_save_IFS
10451 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
10452
10453
10454
10455
10456   { echo "$as_me:$LINENO: checking whether // is distinct from /" >&5
10457 echo $ECHO_N "checking whether // is distinct from /... $ECHO_C" >&6; }
10458 if test "${gl_cv_double_slash_root+set}" = set; then
10459   echo $ECHO_N "(cached) $ECHO_C" >&6
10460 else
10461    if test x"$cross_compiling" = xyes ; then
10462         # When cross-compiling, there is no way to tell whether // is special
10463         # short of a list of hosts.  However, the only known hosts to date
10464         # that have a distinct // are Apollo DomainOS (too old to port to),
10465         # Cygwin, and z/OS.  If anyone knows of another system for which // has
10466         # special semantics and is distinct from /, please report it to
10467         # <bug-gnulib@gnu.org>.
10468         case $host in
10469           *-cygwin | i370-ibm-openedition)
10470             gl_cv_double_slash_root=yes ;;
10471           *)
10472             # Be optimistic and assume that / and // are the same when we
10473             # don't know.
10474             gl_cv_double_slash_root='unknown, assuming no' ;;
10475         esac
10476       else
10477         set x `ls -di / // 2>/dev/null`
10478         if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
10479           gl_cv_double_slash_root=no
10480         else
10481           gl_cv_double_slash_root=yes
10482         fi
10483       fi
10484 fi
10485 { echo "$as_me:$LINENO: result: $gl_cv_double_slash_root" >&5
10486 echo "${ECHO_T}$gl_cv_double_slash_root" >&6; }
10487   if test "$gl_cv_double_slash_root" = yes; then
10488
10489 cat >>confdefs.h <<\_ACEOF
10490 #define DOUBLE_SLASH_IS_DISTINCT_ROOT 1
10491 _ACEOF
10492
10493   fi
10494
10495
10496
10497
10498
10499
10500
10501   { echo "$as_me:$LINENO: checking for complete errno.h" >&5
10502 echo $ECHO_N "checking for complete errno.h... $ECHO_C" >&6; }
10503 if test "${gl_cv_header_errno_h_complete+set}" = set; then
10504   echo $ECHO_N "(cached) $ECHO_C" >&6
10505 else
10506
10507     cat >conftest.$ac_ext <<_ACEOF
10508 /* confdefs.h.  */
10509 _ACEOF
10510 cat confdefs.h >>conftest.$ac_ext
10511 cat >>conftest.$ac_ext <<_ACEOF
10512 /* end confdefs.h.  */
10513
10514 #include <errno.h>
10515 #if !defined ENOMSG
10516 booboo
10517 #endif
10518 #if !defined EIDRM
10519 booboo
10520 #endif
10521 #if !defined ENOLINK
10522 booboo
10523 #endif
10524 #if !defined EPROTO
10525 booboo
10526 #endif
10527 #if !defined EMULTIHOP
10528 booboo
10529 #endif
10530 #if !defined EBADMSG
10531 booboo
10532 #endif
10533 #if !defined EOVERFLOW
10534 booboo
10535 #endif
10536 #if !defined ENOTSUP
10537 booboo
10538 #endif
10539 #if !defined ECANCELED
10540 booboo
10541 #endif
10542
10543 _ACEOF
10544 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10545   $EGREP "booboo" >/dev/null 2>&1; then
10546   gl_cv_header_errno_h_complete=no
10547 else
10548   gl_cv_header_errno_h_complete=yes
10549 fi
10550 rm -f conftest*
10551
10552
10553 fi
10554 { echo "$as_me:$LINENO: result: $gl_cv_header_errno_h_complete" >&5
10555 echo "${ECHO_T}$gl_cv_header_errno_h_complete" >&6; }
10556   if test $gl_cv_header_errno_h_complete = yes; then
10557     ERRNO_H=''
10558   else
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569      if test $gl_cv_have_include_next = yes; then
10570        gl_cv_next_errno_h='<'errno.h'>'
10571      else
10572        { echo "$as_me:$LINENO: checking absolute name of <errno.h>" >&5
10573 echo $ECHO_N "checking absolute name of <errno.h>... $ECHO_C" >&6; }
10574 if test "${gl_cv_next_errno_h+set}" = set; then
10575   echo $ECHO_N "(cached) $ECHO_C" >&6
10576 else
10577
10578           if test $ac_cv_header_errno_h = yes; then
10579             cat >conftest.$ac_ext <<_ACEOF
10580 /* confdefs.h.  */
10581 _ACEOF
10582 cat confdefs.h >>conftest.$ac_ext
10583 cat >>conftest.$ac_ext <<_ACEOF
10584 /* end confdefs.h.  */
10585 #include <errno.h>
10586
10587 _ACEOF
10588                                     gl_cv_next_errno_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10589                sed -n '\#/errno.h#{
10590                  s#.*"\(.*/errno.h\)".*#\1#
10591                  s#^/[^/]#//&#
10592                  p
10593                  q
10594                }'`'"'
10595           else
10596             gl_cv_next_errno_h='<'errno.h'>'
10597           fi
10598
10599 fi
10600 { echo "$as_me:$LINENO: result: $gl_cv_next_errno_h" >&5
10601 echo "${ECHO_T}$gl_cv_next_errno_h" >&6; }
10602      fi
10603      NEXT_ERRNO_H=$gl_cv_next_errno_h
10604
10605
10606
10607     ERRNO_H='errno.h'
10608   fi
10609
10610
10611   if test -n "$ERRNO_H"; then
10612     { echo "$as_me:$LINENO: checking for EMULTIHOP value" >&5
10613 echo $ECHO_N "checking for EMULTIHOP value... $ECHO_C" >&6; }
10614 if test "${gl_cv_header_errno_h_EMULTIHOP+set}" = set; then
10615   echo $ECHO_N "(cached) $ECHO_C" >&6
10616 else
10617
10618       cat >conftest.$ac_ext <<_ACEOF
10619 /* confdefs.h.  */
10620 _ACEOF
10621 cat confdefs.h >>conftest.$ac_ext
10622 cat >>conftest.$ac_ext <<_ACEOF
10623 /* end confdefs.h.  */
10624
10625 #include <errno.h>
10626 #ifdef EMULTIHOP
10627 yes
10628 #endif
10629
10630 _ACEOF
10631 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10632   $EGREP "yes" >/dev/null 2>&1; then
10633   gl_cv_header_errno_h_EMULTIHOP=yes
10634 else
10635   gl_cv_header_errno_h_EMULTIHOP=no
10636 fi
10637 rm -f conftest*
10638
10639       if test $gl_cv_header_errno_h_EMULTIHOP = no; then
10640         cat >conftest.$ac_ext <<_ACEOF
10641 /* confdefs.h.  */
10642 _ACEOF
10643 cat confdefs.h >>conftest.$ac_ext
10644 cat >>conftest.$ac_ext <<_ACEOF
10645 /* end confdefs.h.  */
10646
10647 #define _XOPEN_SOURCE_EXTENDED 1
10648 #include <errno.h>
10649 #ifdef EMULTIHOP
10650 yes
10651 #endif
10652
10653 _ACEOF
10654 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10655   $EGREP "yes" >/dev/null 2>&1; then
10656   gl_cv_header_errno_h_EMULTIHOP=hidden
10657 fi
10658 rm -f conftest*
10659
10660         if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then
10661                               if test "$cross_compiling" = yes; then
10662   # Depending upon the size, compute the lo and hi bounds.
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
10670 #define _XOPEN_SOURCE_EXTENDED 1
10671 #include <errno.h>
10672 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
10673 #include <stdio.h>
10674 #include <stdlib.h>
10675
10676 int
10677 main ()
10678 {
10679 static int test_array [1 - 2 * !((EMULTIHOP) >= 0)];
10680 test_array [0] = 0
10681
10682   ;
10683   return 0;
10684 }
10685 _ACEOF
10686 rm -f conftest.$ac_objext
10687 if { (ac_try="$ac_compile"
10688 case "(($ac_try" in
10689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10690   *) ac_try_echo=$ac_try;;
10691 esac
10692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10693   (eval "$ac_compile") 2>conftest.er1
10694   ac_status=$?
10695   grep -v '^ *+' conftest.er1 >conftest.err
10696   rm -f conftest.er1
10697   cat conftest.err >&5
10698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10699   (exit $ac_status); } && {
10700          test -z "$ac_c_werror_flag" ||
10701          test ! -s conftest.err
10702        } && test -s conftest.$ac_objext; then
10703   ac_lo=0 ac_mid=0
10704   while :; do
10705     cat >conftest.$ac_ext <<_ACEOF
10706 /* confdefs.h.  */
10707 _ACEOF
10708 cat confdefs.h >>conftest.$ac_ext
10709 cat >>conftest.$ac_ext <<_ACEOF
10710 /* end confdefs.h.  */
10711
10712 #define _XOPEN_SOURCE_EXTENDED 1
10713 #include <errno.h>
10714 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
10715 #include <stdio.h>
10716 #include <stdlib.h>
10717
10718 int
10719 main ()
10720 {
10721 static int test_array [1 - 2 * !((EMULTIHOP) <= $ac_mid)];
10722 test_array [0] = 0
10723
10724   ;
10725   return 0;
10726 }
10727 _ACEOF
10728 rm -f conftest.$ac_objext
10729 if { (ac_try="$ac_compile"
10730 case "(($ac_try" in
10731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10732   *) ac_try_echo=$ac_try;;
10733 esac
10734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10735   (eval "$ac_compile") 2>conftest.er1
10736   ac_status=$?
10737   grep -v '^ *+' conftest.er1 >conftest.err
10738   rm -f conftest.er1
10739   cat conftest.err >&5
10740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10741   (exit $ac_status); } && {
10742          test -z "$ac_c_werror_flag" ||
10743          test ! -s conftest.err
10744        } && test -s conftest.$ac_objext; then
10745   ac_hi=$ac_mid; break
10746 else
10747   echo "$as_me: failed program was:" >&5
10748 sed 's/^/| /' conftest.$ac_ext >&5
10749
10750         ac_lo=`expr $ac_mid + 1`
10751                         if test $ac_lo -le $ac_mid; then
10752                           ac_lo= ac_hi=
10753                           break
10754                         fi
10755                         ac_mid=`expr 2 '*' $ac_mid + 1`
10756 fi
10757
10758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10759   done
10760 else
10761   echo "$as_me: failed program was:" >&5
10762 sed 's/^/| /' conftest.$ac_ext >&5
10763
10764         cat >conftest.$ac_ext <<_ACEOF
10765 /* confdefs.h.  */
10766 _ACEOF
10767 cat confdefs.h >>conftest.$ac_ext
10768 cat >>conftest.$ac_ext <<_ACEOF
10769 /* end confdefs.h.  */
10770
10771 #define _XOPEN_SOURCE_EXTENDED 1
10772 #include <errno.h>
10773 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
10774 #include <stdio.h>
10775 #include <stdlib.h>
10776
10777 int
10778 main ()
10779 {
10780 static int test_array [1 - 2 * !((EMULTIHOP) < 0)];
10781 test_array [0] = 0
10782
10783   ;
10784   return 0;
10785 }
10786 _ACEOF
10787 rm -f conftest.$ac_objext
10788 if { (ac_try="$ac_compile"
10789 case "(($ac_try" in
10790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10791   *) ac_try_echo=$ac_try;;
10792 esac
10793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10794   (eval "$ac_compile") 2>conftest.er1
10795   ac_status=$?
10796   grep -v '^ *+' conftest.er1 >conftest.err
10797   rm -f conftest.er1
10798   cat conftest.err >&5
10799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10800   (exit $ac_status); } && {
10801          test -z "$ac_c_werror_flag" ||
10802          test ! -s conftest.err
10803        } && test -s conftest.$ac_objext; then
10804   ac_hi=-1 ac_mid=-1
10805   while :; do
10806     cat >conftest.$ac_ext <<_ACEOF
10807 /* confdefs.h.  */
10808 _ACEOF
10809 cat confdefs.h >>conftest.$ac_ext
10810 cat >>conftest.$ac_ext <<_ACEOF
10811 /* end confdefs.h.  */
10812
10813 #define _XOPEN_SOURCE_EXTENDED 1
10814 #include <errno.h>
10815 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
10816 #include <stdio.h>
10817 #include <stdlib.h>
10818
10819 int
10820 main ()
10821 {
10822 static int test_array [1 - 2 * !((EMULTIHOP) >= $ac_mid)];
10823 test_array [0] = 0
10824
10825   ;
10826   return 0;
10827 }
10828 _ACEOF
10829 rm -f conftest.$ac_objext
10830 if { (ac_try="$ac_compile"
10831 case "(($ac_try" in
10832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10833   *) ac_try_echo=$ac_try;;
10834 esac
10835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10836   (eval "$ac_compile") 2>conftest.er1
10837   ac_status=$?
10838   grep -v '^ *+' conftest.er1 >conftest.err
10839   rm -f conftest.er1
10840   cat conftest.err >&5
10841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10842   (exit $ac_status); } && {
10843          test -z "$ac_c_werror_flag" ||
10844          test ! -s conftest.err
10845        } && test -s conftest.$ac_objext; then
10846   ac_lo=$ac_mid; break
10847 else
10848   echo "$as_me: failed program was:" >&5
10849 sed 's/^/| /' conftest.$ac_ext >&5
10850
10851         ac_hi=`expr '(' $ac_mid ')' - 1`
10852                         if test $ac_mid -le $ac_hi; then
10853                           ac_lo= ac_hi=
10854                           break
10855                         fi
10856                         ac_mid=`expr 2 '*' $ac_mid`
10857 fi
10858
10859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10860   done
10861 else
10862   echo "$as_me: failed program was:" >&5
10863 sed 's/^/| /' conftest.$ac_ext >&5
10864
10865         ac_lo= ac_hi=
10866 fi
10867
10868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10869 fi
10870
10871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10872 # Binary search between lo and hi bounds.
10873 while test "x$ac_lo" != "x$ac_hi"; do
10874   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10875   cat >conftest.$ac_ext <<_ACEOF
10876 /* confdefs.h.  */
10877 _ACEOF
10878 cat confdefs.h >>conftest.$ac_ext
10879 cat >>conftest.$ac_ext <<_ACEOF
10880 /* end confdefs.h.  */
10881
10882 #define _XOPEN_SOURCE_EXTENDED 1
10883 #include <errno.h>
10884 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
10885 #include <stdio.h>
10886 #include <stdlib.h>
10887
10888 int
10889 main ()
10890 {
10891 static int test_array [1 - 2 * !((EMULTIHOP) <= $ac_mid)];
10892 test_array [0] = 0
10893
10894   ;
10895   return 0;
10896 }
10897 _ACEOF
10898 rm -f conftest.$ac_objext
10899 if { (ac_try="$ac_compile"
10900 case "(($ac_try" in
10901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10902   *) ac_try_echo=$ac_try;;
10903 esac
10904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10905   (eval "$ac_compile") 2>conftest.er1
10906   ac_status=$?
10907   grep -v '^ *+' conftest.er1 >conftest.err
10908   rm -f conftest.er1
10909   cat conftest.err >&5
10910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10911   (exit $ac_status); } && {
10912          test -z "$ac_c_werror_flag" ||
10913          test ! -s conftest.err
10914        } && test -s conftest.$ac_objext; then
10915   ac_hi=$ac_mid
10916 else
10917   echo "$as_me: failed program was:" >&5
10918 sed 's/^/| /' conftest.$ac_ext >&5
10919
10920         ac_lo=`expr '(' $ac_mid ')' + 1`
10921 fi
10922
10923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10924 done
10925 case $ac_lo in
10926 ?*) gl_cv_header_errno_h_EMULTIHOP=$ac_lo;;
10927 '')  ;;
10928 esac
10929 else
10930   cat >conftest.$ac_ext <<_ACEOF
10931 /* confdefs.h.  */
10932 _ACEOF
10933 cat confdefs.h >>conftest.$ac_ext
10934 cat >>conftest.$ac_ext <<_ACEOF
10935 /* end confdefs.h.  */
10936
10937 #define _XOPEN_SOURCE_EXTENDED 1
10938 #include <errno.h>
10939 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
10940 #include <stdio.h>
10941 #include <stdlib.h>
10942
10943 static long int longval () { return EMULTIHOP; }
10944 static unsigned long int ulongval () { return EMULTIHOP; }
10945 #include <stdio.h>
10946 #include <stdlib.h>
10947 int
10948 main ()
10949 {
10950
10951   FILE *f = fopen ("conftest.val", "w");
10952   if (! f)
10953     return 1;
10954   if ((EMULTIHOP) < 0)
10955     {
10956       long int i = longval ();
10957       if (i != (EMULTIHOP))
10958         return 1;
10959       fprintf (f, "%ld\n", i);
10960     }
10961   else
10962     {
10963       unsigned long int i = ulongval ();
10964       if (i != (EMULTIHOP))
10965         return 1;
10966       fprintf (f, "%lu\n", i);
10967     }
10968   return ferror (f) || fclose (f) != 0;
10969
10970   ;
10971   return 0;
10972 }
10973 _ACEOF
10974 rm -f conftest$ac_exeext
10975 if { (ac_try="$ac_link"
10976 case "(($ac_try" in
10977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10978   *) ac_try_echo=$ac_try;;
10979 esac
10980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10981   (eval "$ac_link") 2>&5
10982   ac_status=$?
10983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10984   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10985   { (case "(($ac_try" in
10986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10987   *) ac_try_echo=$ac_try;;
10988 esac
10989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10990   (eval "$ac_try") 2>&5
10991   ac_status=$?
10992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10993   (exit $ac_status); }; }; then
10994   gl_cv_header_errno_h_EMULTIHOP=`cat conftest.val`
10995 else
10996   echo "$as_me: program exited with status $ac_status" >&5
10997 echo "$as_me: failed program was:" >&5
10998 sed 's/^/| /' conftest.$ac_ext >&5
10999
11000 fi
11001 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11002 fi
11003 rm -f conftest.val
11004         fi
11005       fi
11006
11007 fi
11008 { echo "$as_me:$LINENO: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
11009 echo "${ECHO_T}$gl_cv_header_errno_h_EMULTIHOP" >&6; }
11010     case $gl_cv_header_errno_h_EMULTIHOP in
11011       yes | no)
11012         EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE=
11013         ;;
11014       *)
11015         EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP"
11016         ;;
11017     esac
11018
11019
11020   fi
11021
11022
11023   if test -n "$ERRNO_H"; then
11024     { echo "$as_me:$LINENO: checking for ENOLINK value" >&5
11025 echo $ECHO_N "checking for ENOLINK value... $ECHO_C" >&6; }
11026 if test "${gl_cv_header_errno_h_ENOLINK+set}" = set; then
11027   echo $ECHO_N "(cached) $ECHO_C" >&6
11028 else
11029
11030       cat >conftest.$ac_ext <<_ACEOF
11031 /* confdefs.h.  */
11032 _ACEOF
11033 cat confdefs.h >>conftest.$ac_ext
11034 cat >>conftest.$ac_ext <<_ACEOF
11035 /* end confdefs.h.  */
11036
11037 #include <errno.h>
11038 #ifdef ENOLINK
11039 yes
11040 #endif
11041
11042 _ACEOF
11043 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11044   $EGREP "yes" >/dev/null 2>&1; then
11045   gl_cv_header_errno_h_ENOLINK=yes
11046 else
11047   gl_cv_header_errno_h_ENOLINK=no
11048 fi
11049 rm -f conftest*
11050
11051       if test $gl_cv_header_errno_h_ENOLINK = no; then
11052         cat >conftest.$ac_ext <<_ACEOF
11053 /* confdefs.h.  */
11054 _ACEOF
11055 cat confdefs.h >>conftest.$ac_ext
11056 cat >>conftest.$ac_ext <<_ACEOF
11057 /* end confdefs.h.  */
11058
11059 #define _XOPEN_SOURCE_EXTENDED 1
11060 #include <errno.h>
11061 #ifdef ENOLINK
11062 yes
11063 #endif
11064
11065 _ACEOF
11066 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11067   $EGREP "yes" >/dev/null 2>&1; then
11068   gl_cv_header_errno_h_ENOLINK=hidden
11069 fi
11070 rm -f conftest*
11071
11072         if test $gl_cv_header_errno_h_ENOLINK = hidden; then
11073                               if test "$cross_compiling" = yes; then
11074   # Depending upon the size, compute the lo and hi bounds.
11075 cat >conftest.$ac_ext <<_ACEOF
11076 /* confdefs.h.  */
11077 _ACEOF
11078 cat confdefs.h >>conftest.$ac_ext
11079 cat >>conftest.$ac_ext <<_ACEOF
11080 /* end confdefs.h.  */
11081
11082 #define _XOPEN_SOURCE_EXTENDED 1
11083 #include <errno.h>
11084 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
11085 #include <stdio.h>
11086 #include <stdlib.h>
11087
11088 int
11089 main ()
11090 {
11091 static int test_array [1 - 2 * !((ENOLINK) >= 0)];
11092 test_array [0] = 0
11093
11094   ;
11095   return 0;
11096 }
11097 _ACEOF
11098 rm -f conftest.$ac_objext
11099 if { (ac_try="$ac_compile"
11100 case "(($ac_try" in
11101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11102   *) ac_try_echo=$ac_try;;
11103 esac
11104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11105   (eval "$ac_compile") 2>conftest.er1
11106   ac_status=$?
11107   grep -v '^ *+' conftest.er1 >conftest.err
11108   rm -f conftest.er1
11109   cat conftest.err >&5
11110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11111   (exit $ac_status); } && {
11112          test -z "$ac_c_werror_flag" ||
11113          test ! -s conftest.err
11114        } && test -s conftest.$ac_objext; then
11115   ac_lo=0 ac_mid=0
11116   while :; do
11117     cat >conftest.$ac_ext <<_ACEOF
11118 /* confdefs.h.  */
11119 _ACEOF
11120 cat confdefs.h >>conftest.$ac_ext
11121 cat >>conftest.$ac_ext <<_ACEOF
11122 /* end confdefs.h.  */
11123
11124 #define _XOPEN_SOURCE_EXTENDED 1
11125 #include <errno.h>
11126 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
11127 #include <stdio.h>
11128 #include <stdlib.h>
11129
11130 int
11131 main ()
11132 {
11133 static int test_array [1 - 2 * !((ENOLINK) <= $ac_mid)];
11134 test_array [0] = 0
11135
11136   ;
11137   return 0;
11138 }
11139 _ACEOF
11140 rm -f conftest.$ac_objext
11141 if { (ac_try="$ac_compile"
11142 case "(($ac_try" in
11143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11144   *) ac_try_echo=$ac_try;;
11145 esac
11146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11147   (eval "$ac_compile") 2>conftest.er1
11148   ac_status=$?
11149   grep -v '^ *+' conftest.er1 >conftest.err
11150   rm -f conftest.er1
11151   cat conftest.err >&5
11152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11153   (exit $ac_status); } && {
11154          test -z "$ac_c_werror_flag" ||
11155          test ! -s conftest.err
11156        } && test -s conftest.$ac_objext; then
11157   ac_hi=$ac_mid; break
11158 else
11159   echo "$as_me: failed program was:" >&5
11160 sed 's/^/| /' conftest.$ac_ext >&5
11161
11162         ac_lo=`expr $ac_mid + 1`
11163                         if test $ac_lo -le $ac_mid; then
11164                           ac_lo= ac_hi=
11165                           break
11166                         fi
11167                         ac_mid=`expr 2 '*' $ac_mid + 1`
11168 fi
11169
11170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11171   done
11172 else
11173   echo "$as_me: failed program was:" >&5
11174 sed 's/^/| /' conftest.$ac_ext >&5
11175
11176         cat >conftest.$ac_ext <<_ACEOF
11177 /* confdefs.h.  */
11178 _ACEOF
11179 cat confdefs.h >>conftest.$ac_ext
11180 cat >>conftest.$ac_ext <<_ACEOF
11181 /* end confdefs.h.  */
11182
11183 #define _XOPEN_SOURCE_EXTENDED 1
11184 #include <errno.h>
11185 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
11186 #include <stdio.h>
11187 #include <stdlib.h>
11188
11189 int
11190 main ()
11191 {
11192 static int test_array [1 - 2 * !((ENOLINK) < 0)];
11193 test_array [0] = 0
11194
11195   ;
11196   return 0;
11197 }
11198 _ACEOF
11199 rm -f conftest.$ac_objext
11200 if { (ac_try="$ac_compile"
11201 case "(($ac_try" in
11202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11203   *) ac_try_echo=$ac_try;;
11204 esac
11205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11206   (eval "$ac_compile") 2>conftest.er1
11207   ac_status=$?
11208   grep -v '^ *+' conftest.er1 >conftest.err
11209   rm -f conftest.er1
11210   cat conftest.err >&5
11211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11212   (exit $ac_status); } && {
11213          test -z "$ac_c_werror_flag" ||
11214          test ! -s conftest.err
11215        } && test -s conftest.$ac_objext; then
11216   ac_hi=-1 ac_mid=-1
11217   while :; do
11218     cat >conftest.$ac_ext <<_ACEOF
11219 /* confdefs.h.  */
11220 _ACEOF
11221 cat confdefs.h >>conftest.$ac_ext
11222 cat >>conftest.$ac_ext <<_ACEOF
11223 /* end confdefs.h.  */
11224
11225 #define _XOPEN_SOURCE_EXTENDED 1
11226 #include <errno.h>
11227 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
11228 #include <stdio.h>
11229 #include <stdlib.h>
11230
11231 int
11232 main ()
11233 {
11234 static int test_array [1 - 2 * !((ENOLINK) >= $ac_mid)];
11235 test_array [0] = 0
11236
11237   ;
11238   return 0;
11239 }
11240 _ACEOF
11241 rm -f conftest.$ac_objext
11242 if { (ac_try="$ac_compile"
11243 case "(($ac_try" in
11244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11245   *) ac_try_echo=$ac_try;;
11246 esac
11247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11248   (eval "$ac_compile") 2>conftest.er1
11249   ac_status=$?
11250   grep -v '^ *+' conftest.er1 >conftest.err
11251   rm -f conftest.er1
11252   cat conftest.err >&5
11253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11254   (exit $ac_status); } && {
11255          test -z "$ac_c_werror_flag" ||
11256          test ! -s conftest.err
11257        } && test -s conftest.$ac_objext; then
11258   ac_lo=$ac_mid; break
11259 else
11260   echo "$as_me: failed program was:" >&5
11261 sed 's/^/| /' conftest.$ac_ext >&5
11262
11263         ac_hi=`expr '(' $ac_mid ')' - 1`
11264                         if test $ac_mid -le $ac_hi; then
11265                           ac_lo= ac_hi=
11266                           break
11267                         fi
11268                         ac_mid=`expr 2 '*' $ac_mid`
11269 fi
11270
11271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11272   done
11273 else
11274   echo "$as_me: failed program was:" >&5
11275 sed 's/^/| /' conftest.$ac_ext >&5
11276
11277         ac_lo= ac_hi=
11278 fi
11279
11280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11281 fi
11282
11283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11284 # Binary search between lo and hi bounds.
11285 while test "x$ac_lo" != "x$ac_hi"; do
11286   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11287   cat >conftest.$ac_ext <<_ACEOF
11288 /* confdefs.h.  */
11289 _ACEOF
11290 cat confdefs.h >>conftest.$ac_ext
11291 cat >>conftest.$ac_ext <<_ACEOF
11292 /* end confdefs.h.  */
11293
11294 #define _XOPEN_SOURCE_EXTENDED 1
11295 #include <errno.h>
11296 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
11297 #include <stdio.h>
11298 #include <stdlib.h>
11299
11300 int
11301 main ()
11302 {
11303 static int test_array [1 - 2 * !((ENOLINK) <= $ac_mid)];
11304 test_array [0] = 0
11305
11306   ;
11307   return 0;
11308 }
11309 _ACEOF
11310 rm -f conftest.$ac_objext
11311 if { (ac_try="$ac_compile"
11312 case "(($ac_try" in
11313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11314   *) ac_try_echo=$ac_try;;
11315 esac
11316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11317   (eval "$ac_compile") 2>conftest.er1
11318   ac_status=$?
11319   grep -v '^ *+' conftest.er1 >conftest.err
11320   rm -f conftest.er1
11321   cat conftest.err >&5
11322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11323   (exit $ac_status); } && {
11324          test -z "$ac_c_werror_flag" ||
11325          test ! -s conftest.err
11326        } && test -s conftest.$ac_objext; then
11327   ac_hi=$ac_mid
11328 else
11329   echo "$as_me: failed program was:" >&5
11330 sed 's/^/| /' conftest.$ac_ext >&5
11331
11332         ac_lo=`expr '(' $ac_mid ')' + 1`
11333 fi
11334
11335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11336 done
11337 case $ac_lo in
11338 ?*) gl_cv_header_errno_h_ENOLINK=$ac_lo;;
11339 '')  ;;
11340 esac
11341 else
11342   cat >conftest.$ac_ext <<_ACEOF
11343 /* confdefs.h.  */
11344 _ACEOF
11345 cat confdefs.h >>conftest.$ac_ext
11346 cat >>conftest.$ac_ext <<_ACEOF
11347 /* end confdefs.h.  */
11348
11349 #define _XOPEN_SOURCE_EXTENDED 1
11350 #include <errno.h>
11351 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
11352 #include <stdio.h>
11353 #include <stdlib.h>
11354
11355 static long int longval () { return ENOLINK; }
11356 static unsigned long int ulongval () { return ENOLINK; }
11357 #include <stdio.h>
11358 #include <stdlib.h>
11359 int
11360 main ()
11361 {
11362
11363   FILE *f = fopen ("conftest.val", "w");
11364   if (! f)
11365     return 1;
11366   if ((ENOLINK) < 0)
11367     {
11368       long int i = longval ();
11369       if (i != (ENOLINK))
11370         return 1;
11371       fprintf (f, "%ld\n", i);
11372     }
11373   else
11374     {
11375       unsigned long int i = ulongval ();
11376       if (i != (ENOLINK))
11377         return 1;
11378       fprintf (f, "%lu\n", i);
11379     }
11380   return ferror (f) || fclose (f) != 0;
11381
11382   ;
11383   return 0;
11384 }
11385 _ACEOF
11386 rm -f conftest$ac_exeext
11387 if { (ac_try="$ac_link"
11388 case "(($ac_try" in
11389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11390   *) ac_try_echo=$ac_try;;
11391 esac
11392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11393   (eval "$ac_link") 2>&5
11394   ac_status=$?
11395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11396   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11397   { (case "(($ac_try" in
11398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11399   *) ac_try_echo=$ac_try;;
11400 esac
11401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11402   (eval "$ac_try") 2>&5
11403   ac_status=$?
11404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11405   (exit $ac_status); }; }; then
11406   gl_cv_header_errno_h_ENOLINK=`cat conftest.val`
11407 else
11408   echo "$as_me: program exited with status $ac_status" >&5
11409 echo "$as_me: failed program was:" >&5
11410 sed 's/^/| /' conftest.$ac_ext >&5
11411
11412 fi
11413 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11414 fi
11415 rm -f conftest.val
11416         fi
11417       fi
11418
11419 fi
11420 { echo "$as_me:$LINENO: result: $gl_cv_header_errno_h_ENOLINK" >&5
11421 echo "${ECHO_T}$gl_cv_header_errno_h_ENOLINK" >&6; }
11422     case $gl_cv_header_errno_h_ENOLINK in
11423       yes | no)
11424         ENOLINK_HIDDEN=0; ENOLINK_VALUE=
11425         ;;
11426       *)
11427         ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK"
11428         ;;
11429     esac
11430
11431
11432   fi
11433
11434
11435   if test -n "$ERRNO_H"; then
11436     { echo "$as_me:$LINENO: checking for EOVERFLOW value" >&5
11437 echo $ECHO_N "checking for EOVERFLOW value... $ECHO_C" >&6; }
11438 if test "${gl_cv_header_errno_h_EOVERFLOW+set}" = set; then
11439   echo $ECHO_N "(cached) $ECHO_C" >&6
11440 else
11441
11442       cat >conftest.$ac_ext <<_ACEOF
11443 /* confdefs.h.  */
11444 _ACEOF
11445 cat confdefs.h >>conftest.$ac_ext
11446 cat >>conftest.$ac_ext <<_ACEOF
11447 /* end confdefs.h.  */
11448
11449 #include <errno.h>
11450 #ifdef EOVERFLOW
11451 yes
11452 #endif
11453
11454 _ACEOF
11455 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11456   $EGREP "yes" >/dev/null 2>&1; then
11457   gl_cv_header_errno_h_EOVERFLOW=yes
11458 else
11459   gl_cv_header_errno_h_EOVERFLOW=no
11460 fi
11461 rm -f conftest*
11462
11463       if test $gl_cv_header_errno_h_EOVERFLOW = no; then
11464         cat >conftest.$ac_ext <<_ACEOF
11465 /* confdefs.h.  */
11466 _ACEOF
11467 cat confdefs.h >>conftest.$ac_ext
11468 cat >>conftest.$ac_ext <<_ACEOF
11469 /* end confdefs.h.  */
11470
11471 #define _XOPEN_SOURCE_EXTENDED 1
11472 #include <errno.h>
11473 #ifdef EOVERFLOW
11474 yes
11475 #endif
11476
11477 _ACEOF
11478 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11479   $EGREP "yes" >/dev/null 2>&1; then
11480   gl_cv_header_errno_h_EOVERFLOW=hidden
11481 fi
11482 rm -f conftest*
11483
11484         if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then
11485                               if test "$cross_compiling" = yes; then
11486   # Depending upon the size, compute the lo and hi bounds.
11487 cat >conftest.$ac_ext <<_ACEOF
11488 /* confdefs.h.  */
11489 _ACEOF
11490 cat confdefs.h >>conftest.$ac_ext
11491 cat >>conftest.$ac_ext <<_ACEOF
11492 /* end confdefs.h.  */
11493
11494 #define _XOPEN_SOURCE_EXTENDED 1
11495 #include <errno.h>
11496 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
11497 #include <stdio.h>
11498 #include <stdlib.h>
11499
11500 int
11501 main ()
11502 {
11503 static int test_array [1 - 2 * !((EOVERFLOW) >= 0)];
11504 test_array [0] = 0
11505
11506   ;
11507   return 0;
11508 }
11509 _ACEOF
11510 rm -f conftest.$ac_objext
11511 if { (ac_try="$ac_compile"
11512 case "(($ac_try" in
11513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11514   *) ac_try_echo=$ac_try;;
11515 esac
11516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11517   (eval "$ac_compile") 2>conftest.er1
11518   ac_status=$?
11519   grep -v '^ *+' conftest.er1 >conftest.err
11520   rm -f conftest.er1
11521   cat conftest.err >&5
11522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11523   (exit $ac_status); } && {
11524          test -z "$ac_c_werror_flag" ||
11525          test ! -s conftest.err
11526        } && test -s conftest.$ac_objext; then
11527   ac_lo=0 ac_mid=0
11528   while :; do
11529     cat >conftest.$ac_ext <<_ACEOF
11530 /* confdefs.h.  */
11531 _ACEOF
11532 cat confdefs.h >>conftest.$ac_ext
11533 cat >>conftest.$ac_ext <<_ACEOF
11534 /* end confdefs.h.  */
11535
11536 #define _XOPEN_SOURCE_EXTENDED 1
11537 #include <errno.h>
11538 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
11539 #include <stdio.h>
11540 #include <stdlib.h>
11541
11542 int
11543 main ()
11544 {
11545 static int test_array [1 - 2 * !((EOVERFLOW) <= $ac_mid)];
11546 test_array [0] = 0
11547
11548   ;
11549   return 0;
11550 }
11551 _ACEOF
11552 rm -f conftest.$ac_objext
11553 if { (ac_try="$ac_compile"
11554 case "(($ac_try" in
11555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11556   *) ac_try_echo=$ac_try;;
11557 esac
11558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11559   (eval "$ac_compile") 2>conftest.er1
11560   ac_status=$?
11561   grep -v '^ *+' conftest.er1 >conftest.err
11562   rm -f conftest.er1
11563   cat conftest.err >&5
11564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11565   (exit $ac_status); } && {
11566          test -z "$ac_c_werror_flag" ||
11567          test ! -s conftest.err
11568        } && test -s conftest.$ac_objext; then
11569   ac_hi=$ac_mid; break
11570 else
11571   echo "$as_me: failed program was:" >&5
11572 sed 's/^/| /' conftest.$ac_ext >&5
11573
11574         ac_lo=`expr $ac_mid + 1`
11575                         if test $ac_lo -le $ac_mid; then
11576                           ac_lo= ac_hi=
11577                           break
11578                         fi
11579                         ac_mid=`expr 2 '*' $ac_mid + 1`
11580 fi
11581
11582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11583   done
11584 else
11585   echo "$as_me: failed program was:" >&5
11586 sed 's/^/| /' conftest.$ac_ext >&5
11587
11588         cat >conftest.$ac_ext <<_ACEOF
11589 /* confdefs.h.  */
11590 _ACEOF
11591 cat confdefs.h >>conftest.$ac_ext
11592 cat >>conftest.$ac_ext <<_ACEOF
11593 /* end confdefs.h.  */
11594
11595 #define _XOPEN_SOURCE_EXTENDED 1
11596 #include <errno.h>
11597 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
11598 #include <stdio.h>
11599 #include <stdlib.h>
11600
11601 int
11602 main ()
11603 {
11604 static int test_array [1 - 2 * !((EOVERFLOW) < 0)];
11605 test_array [0] = 0
11606
11607   ;
11608   return 0;
11609 }
11610 _ACEOF
11611 rm -f conftest.$ac_objext
11612 if { (ac_try="$ac_compile"
11613 case "(($ac_try" in
11614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11615   *) ac_try_echo=$ac_try;;
11616 esac
11617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11618   (eval "$ac_compile") 2>conftest.er1
11619   ac_status=$?
11620   grep -v '^ *+' conftest.er1 >conftest.err
11621   rm -f conftest.er1
11622   cat conftest.err >&5
11623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11624   (exit $ac_status); } && {
11625          test -z "$ac_c_werror_flag" ||
11626          test ! -s conftest.err
11627        } && test -s conftest.$ac_objext; then
11628   ac_hi=-1 ac_mid=-1
11629   while :; do
11630     cat >conftest.$ac_ext <<_ACEOF
11631 /* confdefs.h.  */
11632 _ACEOF
11633 cat confdefs.h >>conftest.$ac_ext
11634 cat >>conftest.$ac_ext <<_ACEOF
11635 /* end confdefs.h.  */
11636
11637 #define _XOPEN_SOURCE_EXTENDED 1
11638 #include <errno.h>
11639 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
11640 #include <stdio.h>
11641 #include <stdlib.h>
11642
11643 int
11644 main ()
11645 {
11646 static int test_array [1 - 2 * !((EOVERFLOW) >= $ac_mid)];
11647 test_array [0] = 0
11648
11649   ;
11650   return 0;
11651 }
11652 _ACEOF
11653 rm -f conftest.$ac_objext
11654 if { (ac_try="$ac_compile"
11655 case "(($ac_try" in
11656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11657   *) ac_try_echo=$ac_try;;
11658 esac
11659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11660   (eval "$ac_compile") 2>conftest.er1
11661   ac_status=$?
11662   grep -v '^ *+' conftest.er1 >conftest.err
11663   rm -f conftest.er1
11664   cat conftest.err >&5
11665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11666   (exit $ac_status); } && {
11667          test -z "$ac_c_werror_flag" ||
11668          test ! -s conftest.err
11669        } && test -s conftest.$ac_objext; then
11670   ac_lo=$ac_mid; break
11671 else
11672   echo "$as_me: failed program was:" >&5
11673 sed 's/^/| /' conftest.$ac_ext >&5
11674
11675         ac_hi=`expr '(' $ac_mid ')' - 1`
11676                         if test $ac_mid -le $ac_hi; then
11677                           ac_lo= ac_hi=
11678                           break
11679                         fi
11680                         ac_mid=`expr 2 '*' $ac_mid`
11681 fi
11682
11683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11684   done
11685 else
11686   echo "$as_me: failed program was:" >&5
11687 sed 's/^/| /' conftest.$ac_ext >&5
11688
11689         ac_lo= ac_hi=
11690 fi
11691
11692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11693 fi
11694
11695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11696 # Binary search between lo and hi bounds.
11697 while test "x$ac_lo" != "x$ac_hi"; do
11698   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11699   cat >conftest.$ac_ext <<_ACEOF
11700 /* confdefs.h.  */
11701 _ACEOF
11702 cat confdefs.h >>conftest.$ac_ext
11703 cat >>conftest.$ac_ext <<_ACEOF
11704 /* end confdefs.h.  */
11705
11706 #define _XOPEN_SOURCE_EXTENDED 1
11707 #include <errno.h>
11708 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
11709 #include <stdio.h>
11710 #include <stdlib.h>
11711
11712 int
11713 main ()
11714 {
11715 static int test_array [1 - 2 * !((EOVERFLOW) <= $ac_mid)];
11716 test_array [0] = 0
11717
11718   ;
11719   return 0;
11720 }
11721 _ACEOF
11722 rm -f conftest.$ac_objext
11723 if { (ac_try="$ac_compile"
11724 case "(($ac_try" in
11725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11726   *) ac_try_echo=$ac_try;;
11727 esac
11728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11729   (eval "$ac_compile") 2>conftest.er1
11730   ac_status=$?
11731   grep -v '^ *+' conftest.er1 >conftest.err
11732   rm -f conftest.er1
11733   cat conftest.err >&5
11734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11735   (exit $ac_status); } && {
11736          test -z "$ac_c_werror_flag" ||
11737          test ! -s conftest.err
11738        } && test -s conftest.$ac_objext; then
11739   ac_hi=$ac_mid
11740 else
11741   echo "$as_me: failed program was:" >&5
11742 sed 's/^/| /' conftest.$ac_ext >&5
11743
11744         ac_lo=`expr '(' $ac_mid ')' + 1`
11745 fi
11746
11747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11748 done
11749 case $ac_lo in
11750 ?*) gl_cv_header_errno_h_EOVERFLOW=$ac_lo;;
11751 '')  ;;
11752 esac
11753 else
11754   cat >conftest.$ac_ext <<_ACEOF
11755 /* confdefs.h.  */
11756 _ACEOF
11757 cat confdefs.h >>conftest.$ac_ext
11758 cat >>conftest.$ac_ext <<_ACEOF
11759 /* end confdefs.h.  */
11760
11761 #define _XOPEN_SOURCE_EXTENDED 1
11762 #include <errno.h>
11763 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
11764 #include <stdio.h>
11765 #include <stdlib.h>
11766
11767 static long int longval () { return EOVERFLOW; }
11768 static unsigned long int ulongval () { return EOVERFLOW; }
11769 #include <stdio.h>
11770 #include <stdlib.h>
11771 int
11772 main ()
11773 {
11774
11775   FILE *f = fopen ("conftest.val", "w");
11776   if (! f)
11777     return 1;
11778   if ((EOVERFLOW) < 0)
11779     {
11780       long int i = longval ();
11781       if (i != (EOVERFLOW))
11782         return 1;
11783       fprintf (f, "%ld\n", i);
11784     }
11785   else
11786     {
11787       unsigned long int i = ulongval ();
11788       if (i != (EOVERFLOW))
11789         return 1;
11790       fprintf (f, "%lu\n", i);
11791     }
11792   return ferror (f) || fclose (f) != 0;
11793
11794   ;
11795   return 0;
11796 }
11797 _ACEOF
11798 rm -f conftest$ac_exeext
11799 if { (ac_try="$ac_link"
11800 case "(($ac_try" in
11801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11802   *) ac_try_echo=$ac_try;;
11803 esac
11804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11805   (eval "$ac_link") 2>&5
11806   ac_status=$?
11807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11808   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11809   { (case "(($ac_try" in
11810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11811   *) ac_try_echo=$ac_try;;
11812 esac
11813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11814   (eval "$ac_try") 2>&5
11815   ac_status=$?
11816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11817   (exit $ac_status); }; }; then
11818   gl_cv_header_errno_h_EOVERFLOW=`cat conftest.val`
11819 else
11820   echo "$as_me: program exited with status $ac_status" >&5
11821 echo "$as_me: failed program was:" >&5
11822 sed 's/^/| /' conftest.$ac_ext >&5
11823
11824 fi
11825 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11826 fi
11827 rm -f conftest.val
11828         fi
11829       fi
11830
11831 fi
11832 { echo "$as_me:$LINENO: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
11833 echo "${ECHO_T}$gl_cv_header_errno_h_EOVERFLOW" >&6; }
11834     case $gl_cv_header_errno_h_EOVERFLOW in
11835       yes | no)
11836         EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE=
11837         ;;
11838       *)
11839         EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW"
11840         ;;
11841     esac
11842
11843
11844   fi
11845
11846
11847 { echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
11848 echo $ECHO_N "checking whether strerror_r is declared... $ECHO_C" >&6; }
11849 if test "${ac_cv_have_decl_strerror_r+set}" = set; then
11850   echo $ECHO_N "(cached) $ECHO_C" >&6
11851 else
11852   cat >conftest.$ac_ext <<_ACEOF
11853 /* confdefs.h.  */
11854 _ACEOF
11855 cat confdefs.h >>conftest.$ac_ext
11856 cat >>conftest.$ac_ext <<_ACEOF
11857 /* end confdefs.h.  */
11858 $ac_includes_default
11859 int
11860 main ()
11861 {
11862 #ifndef strerror_r
11863   (void) strerror_r;
11864 #endif
11865
11866   ;
11867   return 0;
11868 }
11869 _ACEOF
11870 rm -f conftest.$ac_objext
11871 if { (ac_try="$ac_compile"
11872 case "(($ac_try" in
11873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11874   *) ac_try_echo=$ac_try;;
11875 esac
11876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11877   (eval "$ac_compile") 2>conftest.er1
11878   ac_status=$?
11879   grep -v '^ *+' conftest.er1 >conftest.err
11880   rm -f conftest.er1
11881   cat conftest.err >&5
11882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11883   (exit $ac_status); } && {
11884          test -z "$ac_c_werror_flag" ||
11885          test ! -s conftest.err
11886        } && test -s conftest.$ac_objext; then
11887   ac_cv_have_decl_strerror_r=yes
11888 else
11889   echo "$as_me: failed program was:" >&5
11890 sed 's/^/| /' conftest.$ac_ext >&5
11891
11892         ac_cv_have_decl_strerror_r=no
11893 fi
11894
11895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11896 fi
11897 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5
11898 echo "${ECHO_T}$ac_cv_have_decl_strerror_r" >&6; }
11899 if test $ac_cv_have_decl_strerror_r = yes; then
11900
11901 cat >>confdefs.h <<_ACEOF
11902 #define HAVE_DECL_STRERROR_R 1
11903 _ACEOF
11904
11905
11906 else
11907   cat >>confdefs.h <<_ACEOF
11908 #define HAVE_DECL_STRERROR_R 0
11909 _ACEOF
11910
11911
11912 fi
11913
11914
11915
11916 for ac_func in strerror_r
11917 do
11918 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11919 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11920 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11921 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11922   echo $ECHO_N "(cached) $ECHO_C" >&6
11923 else
11924   cat >conftest.$ac_ext <<_ACEOF
11925 /* confdefs.h.  */
11926 _ACEOF
11927 cat confdefs.h >>conftest.$ac_ext
11928 cat >>conftest.$ac_ext <<_ACEOF
11929 /* end confdefs.h.  */
11930 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11931    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11932 #define $ac_func innocuous_$ac_func
11933
11934 /* System header to define __stub macros and hopefully few prototypes,
11935     which can conflict with char $ac_func (); below.
11936     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11937     <limits.h> exists even on freestanding compilers.  */
11938
11939 #ifdef __STDC__
11940 # include <limits.h>
11941 #else
11942 # include <assert.h>
11943 #endif
11944
11945 #undef $ac_func
11946
11947 /* Override any GCC internal prototype to avoid an error.
11948    Use char because int might match the return type of a GCC
11949    builtin and then its argument prototype would still apply.  */
11950 #ifdef __cplusplus
11951 extern "C"
11952 #endif
11953 char $ac_func ();
11954 /* The GNU C library defines this for functions which it implements
11955     to always fail with ENOSYS.  Some functions are actually named
11956     something starting with __ and the normal name is an alias.  */
11957 #if defined __stub_$ac_func || defined __stub___$ac_func
11958 choke me
11959 #endif
11960
11961 int
11962 main ()
11963 {
11964 return $ac_func ();
11965   ;
11966   return 0;
11967 }
11968 _ACEOF
11969 rm -f conftest.$ac_objext conftest$ac_exeext
11970 if { (ac_try="$ac_link"
11971 case "(($ac_try" in
11972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11973   *) ac_try_echo=$ac_try;;
11974 esac
11975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11976   (eval "$ac_link") 2>conftest.er1
11977   ac_status=$?
11978   grep -v '^ *+' conftest.er1 >conftest.err
11979   rm -f conftest.er1
11980   cat conftest.err >&5
11981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11982   (exit $ac_status); } && {
11983          test -z "$ac_c_werror_flag" ||
11984          test ! -s conftest.err
11985        } && test -s conftest$ac_exeext &&
11986        $as_test_x conftest$ac_exeext; then
11987   eval "$as_ac_var=yes"
11988 else
11989   echo "$as_me: failed program was:" >&5
11990 sed 's/^/| /' conftest.$ac_ext >&5
11991
11992         eval "$as_ac_var=no"
11993 fi
11994
11995 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11996       conftest$ac_exeext conftest.$ac_ext
11997 fi
11998 ac_res=`eval echo '${'$as_ac_var'}'`
11999                { echo "$as_me:$LINENO: result: $ac_res" >&5
12000 echo "${ECHO_T}$ac_res" >&6; }
12001 if test `eval echo '${'$as_ac_var'}'` = yes; then
12002   cat >>confdefs.h <<_ACEOF
12003 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12004 _ACEOF
12005
12006 fi
12007 done
12008
12009 { echo "$as_me:$LINENO: checking whether strerror_r returns char *" >&5
12010 echo $ECHO_N "checking whether strerror_r returns char *... $ECHO_C" >&6; }
12011 if test "${ac_cv_func_strerror_r_char_p+set}" = set; then
12012   echo $ECHO_N "(cached) $ECHO_C" >&6
12013 else
12014
12015     ac_cv_func_strerror_r_char_p=no
12016     if test $ac_cv_have_decl_strerror_r = yes; then
12017       cat >conftest.$ac_ext <<_ACEOF
12018 /* confdefs.h.  */
12019 _ACEOF
12020 cat confdefs.h >>conftest.$ac_ext
12021 cat >>conftest.$ac_ext <<_ACEOF
12022 /* end confdefs.h.  */
12023 $ac_includes_default
12024 int
12025 main ()
12026 {
12027
12028           char buf[100];
12029           char x = *strerror_r (0, buf, sizeof buf);
12030           char *p = strerror_r (0, buf, sizeof buf);
12031           return !p || x;
12032
12033   ;
12034   return 0;
12035 }
12036 _ACEOF
12037 rm -f conftest.$ac_objext
12038 if { (ac_try="$ac_compile"
12039 case "(($ac_try" in
12040   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12041   *) ac_try_echo=$ac_try;;
12042 esac
12043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12044   (eval "$ac_compile") 2>conftest.er1
12045   ac_status=$?
12046   grep -v '^ *+' conftest.er1 >conftest.err
12047   rm -f conftest.er1
12048   cat conftest.err >&5
12049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12050   (exit $ac_status); } && {
12051          test -z "$ac_c_werror_flag" ||
12052          test ! -s conftest.err
12053        } && test -s conftest.$ac_objext; then
12054   ac_cv_func_strerror_r_char_p=yes
12055 else
12056   echo "$as_me: failed program was:" >&5
12057 sed 's/^/| /' conftest.$ac_ext >&5
12058
12059
12060 fi
12061
12062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12063     else
12064       # strerror_r is not declared.  Choose between
12065       # systems that have relatively inaccessible declarations for the
12066       # function.  BeOS and DEC UNIX 4.0 fall in this category, but the
12067       # former has a strerror_r that returns char*, while the latter
12068       # has a strerror_r that returns `int'.
12069       # This test should segfault on the DEC system.
12070       if test "$cross_compiling" = yes; then
12071   :
12072 else
12073   cat >conftest.$ac_ext <<_ACEOF
12074 /* confdefs.h.  */
12075 _ACEOF
12076 cat confdefs.h >>conftest.$ac_ext
12077 cat >>conftest.$ac_ext <<_ACEOF
12078 /* end confdefs.h.  */
12079 $ac_includes_default
12080         extern char *strerror_r ();
12081 int
12082 main ()
12083 {
12084 char buf[100];
12085           char x = *strerror_r (0, buf, sizeof buf);
12086           return ! isalpha (x);
12087   ;
12088   return 0;
12089 }
12090 _ACEOF
12091 rm -f conftest$ac_exeext
12092 if { (ac_try="$ac_link"
12093 case "(($ac_try" in
12094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12095   *) ac_try_echo=$ac_try;;
12096 esac
12097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12098   (eval "$ac_link") 2>&5
12099   ac_status=$?
12100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12101   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12102   { (case "(($ac_try" in
12103   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12104   *) ac_try_echo=$ac_try;;
12105 esac
12106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12107   (eval "$ac_try") 2>&5
12108   ac_status=$?
12109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12110   (exit $ac_status); }; }; then
12111   ac_cv_func_strerror_r_char_p=yes
12112 else
12113   echo "$as_me: program exited with status $ac_status" >&5
12114 echo "$as_me: failed program was:" >&5
12115 sed 's/^/| /' conftest.$ac_ext >&5
12116
12117 fi
12118 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12119 fi
12120
12121
12122     fi
12123
12124 fi
12125 { echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_char_p" >&5
12126 echo "${ECHO_T}$ac_cv_func_strerror_r_char_p" >&6; }
12127 if test $ac_cv_func_strerror_r_char_p = yes; then
12128
12129 cat >>confdefs.h <<\_ACEOF
12130 #define STRERROR_R_CHAR_P 1
12131 _ACEOF
12132
12133 fi
12134
12135
12136
12137
12138   GNULIB_OPEN=0;
12139     REPLACE_OPEN=0;
12140
12141
12142   GNULIB_FPRINTF=0;
12143   GNULIB_FPRINTF_POSIX=0;
12144   GNULIB_PRINTF=0;
12145   GNULIB_PRINTF_POSIX=0;
12146   GNULIB_SNPRINTF=0;
12147   GNULIB_SPRINTF_POSIX=0;
12148   GNULIB_VFPRINTF=0;
12149   GNULIB_VFPRINTF_POSIX=0;
12150   GNULIB_VPRINTF=0;
12151   GNULIB_VPRINTF_POSIX=0;
12152   GNULIB_VSNPRINTF=0;
12153   GNULIB_VSPRINTF_POSIX=0;
12154   GNULIB_VASPRINTF=0;
12155   GNULIB_OBSTACK_PRINTF=0;
12156   GNULIB_OBSTACK_PRINTF_POSIX=0;
12157   GNULIB_FOPEN=0;
12158   GNULIB_FREOPEN=0;
12159   GNULIB_FSEEK=0;
12160   GNULIB_FSEEKO=0;
12161   GNULIB_FTELL=0;
12162   GNULIB_FTELLO=0;
12163   GNULIB_FFLUSH=0;
12164   GNULIB_FCLOSE=0;
12165   GNULIB_FPUTC=0;
12166   GNULIB_PUTC=0;
12167   GNULIB_PUTCHAR=0;
12168   GNULIB_FPUTS=0;
12169   GNULIB_PUTS=0;
12170   GNULIB_FWRITE=0;
12171   GNULIB_GETDELIM=0;
12172   GNULIB_GETLINE=0;
12173   GNULIB_PERROR=0;
12174   GNULIB_STDIO_H_SIGPIPE=0;
12175     REPLACE_STDIO_WRITE_FUNCS=0;
12176   REPLACE_FPRINTF=0;
12177   REPLACE_VFPRINTF=0;
12178   REPLACE_PRINTF=0;
12179   REPLACE_VPRINTF=0;
12180   REPLACE_SNPRINTF=0;
12181   HAVE_DECL_SNPRINTF=1;
12182   REPLACE_VSNPRINTF=0;
12183   HAVE_DECL_VSNPRINTF=1;
12184   REPLACE_SPRINTF=0;
12185   REPLACE_VSPRINTF=0;
12186   HAVE_VASPRINTF=1;
12187   REPLACE_VASPRINTF=0;
12188   HAVE_DECL_OBSTACK_PRINTF=1;
12189   REPLACE_OBSTACK_PRINTF=0;
12190   REPLACE_FOPEN=0;
12191   REPLACE_FREOPEN=0;
12192   HAVE_FSEEKO=1;
12193   REPLACE_FSEEKO=0;
12194   REPLACE_FSEEK=0;
12195   HAVE_FTELLO=1;
12196   REPLACE_FTELLO=0;
12197   REPLACE_FTELL=0;
12198   REPLACE_FFLUSH=0;
12199   REPLACE_FCLOSE=0;
12200   HAVE_DECL_GETDELIM=1;
12201   HAVE_DECL_GETLINE=1;
12202   REPLACE_GETLINE=0;
12203   REPLACE_PERROR=0;
12204
12205
12206
12207 { echo "$as_me:$LINENO: checking for mbstate_t" >&5
12208 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
12209 if test "${ac_cv_type_mbstate_t+set}" = set; then
12210   echo $ECHO_N "(cached) $ECHO_C" >&6
12211 else
12212   cat >conftest.$ac_ext <<_ACEOF
12213 /* confdefs.h.  */
12214 _ACEOF
12215 cat confdefs.h >>conftest.$ac_ext
12216 cat >>conftest.$ac_ext <<_ACEOF
12217 /* end confdefs.h.  */
12218 $ac_includes_default
12219 #           include <wchar.h>
12220 int
12221 main ()
12222 {
12223 mbstate_t x; return sizeof x;
12224   ;
12225   return 0;
12226 }
12227 _ACEOF
12228 rm -f conftest.$ac_objext
12229 if { (ac_try="$ac_compile"
12230 case "(($ac_try" in
12231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12232   *) ac_try_echo=$ac_try;;
12233 esac
12234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12235   (eval "$ac_compile") 2>conftest.er1
12236   ac_status=$?
12237   grep -v '^ *+' conftest.er1 >conftest.err
12238   rm -f conftest.er1
12239   cat conftest.err >&5
12240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12241   (exit $ac_status); } && {
12242          test -z "$ac_c_werror_flag" ||
12243          test ! -s conftest.err
12244        } && test -s conftest.$ac_objext; then
12245   ac_cv_type_mbstate_t=yes
12246 else
12247   echo "$as_me: failed program was:" >&5
12248 sed 's/^/| /' conftest.$ac_ext >&5
12249
12250         ac_cv_type_mbstate_t=no
12251 fi
12252
12253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12254 fi
12255 { echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
12256 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
12257    if test $ac_cv_type_mbstate_t = yes; then
12258
12259 cat >>confdefs.h <<\_ACEOF
12260 #define HAVE_MBSTATE_T 1
12261 _ACEOF
12262
12263    else
12264
12265 cat >>confdefs.h <<\_ACEOF
12266 #define mbstate_t int
12267 _ACEOF
12268
12269    fi
12270
12271
12272
12273
12274
12275
12276
12277
12278
12279
12280
12281
12282
12283
12284
12285
12286
12287
12288
12289
12290
12291
12292
12293     { echo "$as_me:$LINENO: checking whether stdin defaults to large file offsets" >&5
12294 echo $ECHO_N "checking whether stdin defaults to large file offsets... $ECHO_C" >&6; }
12295 if test "${gl_cv_var_stdin_large_offset+set}" = set; then
12296   echo $ECHO_N "(cached) $ECHO_C" >&6
12297 else
12298   cat >conftest.$ac_ext <<_ACEOF
12299 /* confdefs.h.  */
12300 _ACEOF
12301 cat confdefs.h >>conftest.$ac_ext
12302 cat >>conftest.$ac_ext <<_ACEOF
12303 /* end confdefs.h.  */
12304 #include <stdio.h>
12305 int
12306 main ()
12307 {
12308 #if defined __SL64 && defined __SCLE /* cygwin */
12309   /* Cygwin 1.5.24 and earlier fail to put stdin in 64-bit mode, making
12310      fseeko/ftello needlessly fail.  This bug was fixed in 1.5.25, and
12311      it is easier to do a version check than building a runtime test.  */
12312 # include <cygwin/version.h>
12313 # if CYGWIN_VERSION_DLL_COMBINED < CYGWIN_VERSION_DLL_MAKE_COMBINED (1005, 25)
12314   choke me
12315 # endif
12316 #endif
12317   ;
12318   return 0;
12319 }
12320 _ACEOF
12321 rm -f conftest.$ac_objext conftest$ac_exeext
12322 if { (ac_try="$ac_link"
12323 case "(($ac_try" in
12324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12325   *) ac_try_echo=$ac_try;;
12326 esac
12327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12328   (eval "$ac_link") 2>conftest.er1
12329   ac_status=$?
12330   grep -v '^ *+' conftest.er1 >conftest.err
12331   rm -f conftest.er1
12332   cat conftest.err >&5
12333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12334   (exit $ac_status); } && {
12335          test -z "$ac_c_werror_flag" ||
12336          test ! -s conftest.err
12337        } && test -s conftest$ac_exeext &&
12338        $as_test_x conftest$ac_exeext; then
12339   gl_cv_var_stdin_large_offset=yes
12340 else
12341   echo "$as_me: failed program was:" >&5
12342 sed 's/^/| /' conftest.$ac_ext >&5
12343
12344         gl_cv_var_stdin_large_offset=no
12345 fi
12346
12347 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12348       conftest$ac_exeext conftest.$ac_ext
12349 fi
12350 { echo "$as_me:$LINENO: result: $gl_cv_var_stdin_large_offset" >&5
12351 echo "${ECHO_T}$gl_cv_var_stdin_large_offset" >&6; }
12352
12353
12354
12355
12356    { echo "$as_me:$LINENO: checking whether getcwd (NULL, 0) allocates memory for result" >&5
12357 echo $ECHO_N "checking whether getcwd (NULL, 0) allocates memory for result... $ECHO_C" >&6; }
12358 if test "${gl_cv_func_getcwd_null+set}" = set; then
12359   echo $ECHO_N "(cached) $ECHO_C" >&6
12360 else
12361   if test "$cross_compiling" = yes; then
12362   gl_cv_func_getcwd_null=no
12363 else
12364   cat >conftest.$ac_ext <<_ACEOF
12365 /* confdefs.h.  */
12366 _ACEOF
12367 cat confdefs.h >>conftest.$ac_ext
12368 cat >>conftest.$ac_ext <<_ACEOF
12369 /* end confdefs.h.  */
12370
12371 #        include <stdlib.h>
12372 #        include <unistd.h>
12373 #        ifndef getcwd
12374          char *getcwd ();
12375 #        endif
12376          int
12377          main ()
12378          {
12379            if (chdir ("/") != 0)
12380              exit (1);
12381            else
12382              {
12383                char *f = getcwd (NULL, 0);
12384                exit (! (f && f[0] == '/' && !f[1]));
12385              }
12386          }
12387 _ACEOF
12388 rm -f conftest$ac_exeext
12389 if { (ac_try="$ac_link"
12390 case "(($ac_try" in
12391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12392   *) ac_try_echo=$ac_try;;
12393 esac
12394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12395   (eval "$ac_link") 2>&5
12396   ac_status=$?
12397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12398   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12399   { (case "(($ac_try" in
12400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12401   *) ac_try_echo=$ac_try;;
12402 esac
12403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12404   (eval "$ac_try") 2>&5
12405   ac_status=$?
12406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12407   (exit $ac_status); }; }; then
12408   gl_cv_func_getcwd_null=yes
12409 else
12410   echo "$as_me: program exited with status $ac_status" >&5
12411 echo "$as_me: failed program was:" >&5
12412 sed 's/^/| /' conftest.$ac_ext >&5
12413
12414 ( exit $ac_status )
12415 gl_cv_func_getcwd_null=no
12416 fi
12417 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12418 fi
12419
12420
12421 fi
12422 { echo "$as_me:$LINENO: result: $gl_cv_func_getcwd_null" >&5
12423 echo "${ECHO_T}$gl_cv_func_getcwd_null" >&6; }
12424
12425 { echo "$as_me:$LINENO: checking whether getcwd is declared" >&5
12426 echo $ECHO_N "checking whether getcwd is declared... $ECHO_C" >&6; }
12427 if test "${ac_cv_have_decl_getcwd+set}" = set; then
12428   echo $ECHO_N "(cached) $ECHO_C" >&6
12429 else
12430   cat >conftest.$ac_ext <<_ACEOF
12431 /* confdefs.h.  */
12432 _ACEOF
12433 cat confdefs.h >>conftest.$ac_ext
12434 cat >>conftest.$ac_ext <<_ACEOF
12435 /* end confdefs.h.  */
12436 $ac_includes_default
12437 int
12438 main ()
12439 {
12440 #ifndef getcwd
12441   (void) getcwd;
12442 #endif
12443
12444   ;
12445   return 0;
12446 }
12447 _ACEOF
12448 rm -f conftest.$ac_objext
12449 if { (ac_try="$ac_compile"
12450 case "(($ac_try" in
12451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12452   *) ac_try_echo=$ac_try;;
12453 esac
12454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12455   (eval "$ac_compile") 2>conftest.er1
12456   ac_status=$?
12457   grep -v '^ *+' conftest.er1 >conftest.err
12458   rm -f conftest.er1
12459   cat conftest.err >&5
12460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12461   (exit $ac_status); } && {
12462          test -z "$ac_c_werror_flag" ||
12463          test ! -s conftest.err
12464        } && test -s conftest.$ac_objext; then
12465   ac_cv_have_decl_getcwd=yes
12466 else
12467   echo "$as_me: failed program was:" >&5
12468 sed 's/^/| /' conftest.$ac_ext >&5
12469
12470         ac_cv_have_decl_getcwd=no
12471 fi
12472
12473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12474 fi
12475 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getcwd" >&5
12476 echo "${ECHO_T}$ac_cv_have_decl_getcwd" >&6; }
12477 if test $ac_cv_have_decl_getcwd = yes; then
12478
12479 cat >>confdefs.h <<_ACEOF
12480 #define HAVE_DECL_GETCWD 1
12481 _ACEOF
12482
12483
12484 else
12485   cat >>confdefs.h <<_ACEOF
12486 #define HAVE_DECL_GETCWD 0
12487 _ACEOF
12488
12489
12490 fi
12491
12492
12493
12494
12495
12496
12497   # getdate.y works with bison only.
12498   : ${YACC='bison -y'}
12499
12500
12501   { echo "$as_me:$LINENO: checking for compound literals" >&5
12502 echo $ECHO_N "checking for compound literals... $ECHO_C" >&6; }
12503 if test "${gl_cv_compound_literals+set}" = set; then
12504   echo $ECHO_N "(cached) $ECHO_C" >&6
12505 else
12506   cat >conftest.$ac_ext <<_ACEOF
12507 /* confdefs.h.  */
12508 _ACEOF
12509 cat confdefs.h >>conftest.$ac_ext
12510 cat >>conftest.$ac_ext <<_ACEOF
12511 /* end confdefs.h.  */
12512 struct s { int i, j; };
12513 int
12514 main ()
12515 {
12516 struct s t = (struct s) { 3, 4 };
12517      if (t.i != 0) return 0;
12518   ;
12519   return 0;
12520 }
12521 _ACEOF
12522 rm -f conftest.$ac_objext
12523 if { (ac_try="$ac_compile"
12524 case "(($ac_try" in
12525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12526   *) ac_try_echo=$ac_try;;
12527 esac
12528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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          test -z "$ac_c_werror_flag" ||
12537          test ! -s conftest.err
12538        } && test -s conftest.$ac_objext; then
12539   gl_cv_compound_literals=yes
12540 else
12541   echo "$as_me: failed program was:" >&5
12542 sed 's/^/| /' conftest.$ac_ext >&5
12543
12544         gl_cv_compound_literals=no
12545 fi
12546
12547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12548 fi
12549 { echo "$as_me:$LINENO: result: $gl_cv_compound_literals" >&5
12550 echo "${ECHO_T}$gl_cv_compound_literals" >&6; }
12551   if test $gl_cv_compound_literals = yes; then
12552
12553 cat >>confdefs.h <<\_ACEOF
12554 #define HAVE_COMPOUND_LITERALS 1
12555 _ACEOF
12556
12557   fi
12558
12559 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
12560 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
12561 if test "${ac_cv_struct_tm+set}" = set; then
12562   echo $ECHO_N "(cached) $ECHO_C" >&6
12563 else
12564   cat >conftest.$ac_ext <<_ACEOF
12565 /* confdefs.h.  */
12566 _ACEOF
12567 cat confdefs.h >>conftest.$ac_ext
12568 cat >>conftest.$ac_ext <<_ACEOF
12569 /* end confdefs.h.  */
12570 #include <sys/types.h>
12571 #include <time.h>
12572
12573 int
12574 main ()
12575 {
12576 struct tm tm;
12577                                      int *p = &tm.tm_sec;
12578                                      return !p;
12579   ;
12580   return 0;
12581 }
12582 _ACEOF
12583 rm -f conftest.$ac_objext
12584 if { (ac_try="$ac_compile"
12585 case "(($ac_try" in
12586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12587   *) ac_try_echo=$ac_try;;
12588 esac
12589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12590   (eval "$ac_compile") 2>conftest.er1
12591   ac_status=$?
12592   grep -v '^ *+' conftest.er1 >conftest.err
12593   rm -f conftest.er1
12594   cat conftest.err >&5
12595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12596   (exit $ac_status); } && {
12597          test -z "$ac_c_werror_flag" ||
12598          test ! -s conftest.err
12599        } && test -s conftest.$ac_objext; then
12600   ac_cv_struct_tm=time.h
12601 else
12602   echo "$as_me: failed program was:" >&5
12603 sed 's/^/| /' conftest.$ac_ext >&5
12604
12605         ac_cv_struct_tm=sys/time.h
12606 fi
12607
12608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12609 fi
12610 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
12611 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
12612 if test $ac_cv_struct_tm = sys/time.h; then
12613
12614 cat >>confdefs.h <<\_ACEOF
12615 #define TM_IN_SYS_TIME 1
12616 _ACEOF
12617
12618 fi
12619
12620
12621  { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
12622 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
12623 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
12624   echo $ECHO_N "(cached) $ECHO_C" >&6
12625 else
12626   cat >conftest.$ac_ext <<_ACEOF
12627 /* confdefs.h.  */
12628 _ACEOF
12629 cat confdefs.h >>conftest.$ac_ext
12630 cat >>conftest.$ac_ext <<_ACEOF
12631 /* end confdefs.h.  */
12632 #include <time.h>
12633
12634 int
12635 main ()
12636 {
12637 static struct tm ac_aggr;
12638 if (ac_aggr.tm_gmtoff)
12639 return 0;
12640   ;
12641   return 0;
12642 }
12643 _ACEOF
12644 rm -f conftest.$ac_objext
12645 if { (ac_try="$ac_compile"
12646 case "(($ac_try" in
12647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12648   *) ac_try_echo=$ac_try;;
12649 esac
12650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12651   (eval "$ac_compile") 2>conftest.er1
12652   ac_status=$?
12653   grep -v '^ *+' conftest.er1 >conftest.err
12654   rm -f conftest.er1
12655   cat conftest.err >&5
12656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12657   (exit $ac_status); } && {
12658          test -z "$ac_c_werror_flag" ||
12659          test ! -s conftest.err
12660        } && test -s conftest.$ac_objext; then
12661   ac_cv_member_struct_tm_tm_gmtoff=yes
12662 else
12663   echo "$as_me: failed program was:" >&5
12664 sed 's/^/| /' conftest.$ac_ext >&5
12665
12666         cat >conftest.$ac_ext <<_ACEOF
12667 /* confdefs.h.  */
12668 _ACEOF
12669 cat confdefs.h >>conftest.$ac_ext
12670 cat >>conftest.$ac_ext <<_ACEOF
12671 /* end confdefs.h.  */
12672 #include <time.h>
12673
12674 int
12675 main ()
12676 {
12677 static struct tm ac_aggr;
12678 if (sizeof ac_aggr.tm_gmtoff)
12679 return 0;
12680   ;
12681   return 0;
12682 }
12683 _ACEOF
12684 rm -f conftest.$ac_objext
12685 if { (ac_try="$ac_compile"
12686 case "(($ac_try" in
12687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12688   *) ac_try_echo=$ac_try;;
12689 esac
12690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12691   (eval "$ac_compile") 2>conftest.er1
12692   ac_status=$?
12693   grep -v '^ *+' conftest.er1 >conftest.err
12694   rm -f conftest.er1
12695   cat conftest.err >&5
12696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12697   (exit $ac_status); } && {
12698          test -z "$ac_c_werror_flag" ||
12699          test ! -s conftest.err
12700        } && test -s conftest.$ac_objext; then
12701   ac_cv_member_struct_tm_tm_gmtoff=yes
12702 else
12703   echo "$as_me: failed program was:" >&5
12704 sed 's/^/| /' conftest.$ac_ext >&5
12705
12706         ac_cv_member_struct_tm_tm_gmtoff=no
12707 fi
12708
12709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12710 fi
12711
12712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12713 fi
12714 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
12715 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
12716 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
12717
12718 cat >>confdefs.h <<\_ACEOF
12719 #define HAVE_TM_GMTOFF 1
12720 _ACEOF
12721
12722 fi
12723
12724
12725 { echo "$as_me:$LINENO: checking whether getdelim is declared" >&5
12726 echo $ECHO_N "checking whether getdelim is declared... $ECHO_C" >&6; }
12727 if test "${ac_cv_have_decl_getdelim+set}" = set; then
12728   echo $ECHO_N "(cached) $ECHO_C" >&6
12729 else
12730   cat >conftest.$ac_ext <<_ACEOF
12731 /* confdefs.h.  */
12732 _ACEOF
12733 cat confdefs.h >>conftest.$ac_ext
12734 cat >>conftest.$ac_ext <<_ACEOF
12735 /* end confdefs.h.  */
12736 $ac_includes_default
12737 int
12738 main ()
12739 {
12740 #ifndef getdelim
12741   (void) getdelim;
12742 #endif
12743
12744   ;
12745   return 0;
12746 }
12747 _ACEOF
12748 rm -f conftest.$ac_objext
12749 if { (ac_try="$ac_compile"
12750 case "(($ac_try" in
12751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12752   *) ac_try_echo=$ac_try;;
12753 esac
12754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12755   (eval "$ac_compile") 2>conftest.er1
12756   ac_status=$?
12757   grep -v '^ *+' conftest.er1 >conftest.err
12758   rm -f conftest.er1
12759   cat conftest.err >&5
12760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12761   (exit $ac_status); } && {
12762          test -z "$ac_c_werror_flag" ||
12763          test ! -s conftest.err
12764        } && test -s conftest.$ac_objext; then
12765   ac_cv_have_decl_getdelim=yes
12766 else
12767   echo "$as_me: failed program was:" >&5
12768 sed 's/^/| /' conftest.$ac_ext >&5
12769
12770         ac_cv_have_decl_getdelim=no
12771 fi
12772
12773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12774 fi
12775 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getdelim" >&5
12776 echo "${ECHO_T}$ac_cv_have_decl_getdelim" >&6; }
12777 if test $ac_cv_have_decl_getdelim = yes; then
12778
12779 cat >>confdefs.h <<_ACEOF
12780 #define HAVE_DECL_GETDELIM 1
12781 _ACEOF
12782
12783
12784 else
12785   cat >>confdefs.h <<_ACEOF
12786 #define HAVE_DECL_GETDELIM 0
12787 _ACEOF
12788
12789
12790 fi
12791
12792
12793 { echo "$as_me:$LINENO: checking whether getline is declared" >&5
12794 echo $ECHO_N "checking whether getline is declared... $ECHO_C" >&6; }
12795 if test "${ac_cv_have_decl_getline+set}" = set; then
12796   echo $ECHO_N "(cached) $ECHO_C" >&6
12797 else
12798   cat >conftest.$ac_ext <<_ACEOF
12799 /* confdefs.h.  */
12800 _ACEOF
12801 cat confdefs.h >>conftest.$ac_ext
12802 cat >>conftest.$ac_ext <<_ACEOF
12803 /* end confdefs.h.  */
12804 $ac_includes_default
12805 int
12806 main ()
12807 {
12808 #ifndef getline
12809   (void) getline;
12810 #endif
12811
12812   ;
12813   return 0;
12814 }
12815 _ACEOF
12816 rm -f conftest.$ac_objext
12817 if { (ac_try="$ac_compile"
12818 case "(($ac_try" in
12819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12820   *) ac_try_echo=$ac_try;;
12821 esac
12822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12823   (eval "$ac_compile") 2>conftest.er1
12824   ac_status=$?
12825   grep -v '^ *+' conftest.er1 >conftest.err
12826   rm -f conftest.er1
12827   cat conftest.err >&5
12828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12829   (exit $ac_status); } && {
12830          test -z "$ac_c_werror_flag" ||
12831          test ! -s conftest.err
12832        } && test -s conftest.$ac_objext; then
12833   ac_cv_have_decl_getline=yes
12834 else
12835   echo "$as_me: failed program was:" >&5
12836 sed 's/^/| /' conftest.$ac_ext >&5
12837
12838         ac_cv_have_decl_getline=no
12839 fi
12840
12841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12842 fi
12843 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getline" >&5
12844 echo "${ECHO_T}$ac_cv_have_decl_getline" >&6; }
12845 if test $ac_cv_have_decl_getline = yes; then
12846
12847 cat >>confdefs.h <<_ACEOF
12848 #define HAVE_DECL_GETLINE 1
12849 _ACEOF
12850
12851
12852 else
12853   cat >>confdefs.h <<_ACEOF
12854 #define HAVE_DECL_GETLINE 0
12855 _ACEOF
12856
12857
12858 fi
12859
12860
12861
12862   if test -z "$GETOPT_H"; then
12863
12864 for ac_header in getopt.h
12865 do
12866 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12867 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12868   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12869 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12870 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12871   echo $ECHO_N "(cached) $ECHO_C" >&6
12872 fi
12873 ac_res=`eval echo '${'$as_ac_Header'}'`
12874                { echo "$as_me:$LINENO: result: $ac_res" >&5
12875 echo "${ECHO_T}$ac_res" >&6; }
12876 else
12877   # Is the header compilable?
12878 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12879 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12880 cat >conftest.$ac_ext <<_ACEOF
12881 /* confdefs.h.  */
12882 _ACEOF
12883 cat confdefs.h >>conftest.$ac_ext
12884 cat >>conftest.$ac_ext <<_ACEOF
12885 /* end confdefs.h.  */
12886 $ac_includes_default
12887 #include <$ac_header>
12888 _ACEOF
12889 rm -f conftest.$ac_objext
12890 if { (ac_try="$ac_compile"
12891 case "(($ac_try" in
12892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12893   *) ac_try_echo=$ac_try;;
12894 esac
12895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12896   (eval "$ac_compile") 2>conftest.er1
12897   ac_status=$?
12898   grep -v '^ *+' conftest.er1 >conftest.err
12899   rm -f conftest.er1
12900   cat conftest.err >&5
12901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12902   (exit $ac_status); } && {
12903          test -z "$ac_c_werror_flag" ||
12904          test ! -s conftest.err
12905        } && test -s conftest.$ac_objext; then
12906   ac_header_compiler=yes
12907 else
12908   echo "$as_me: failed program was:" >&5
12909 sed 's/^/| /' conftest.$ac_ext >&5
12910
12911         ac_header_compiler=no
12912 fi
12913
12914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12915 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12916 echo "${ECHO_T}$ac_header_compiler" >&6; }
12917
12918 # Is the header present?
12919 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12920 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12921 cat >conftest.$ac_ext <<_ACEOF
12922 /* confdefs.h.  */
12923 _ACEOF
12924 cat confdefs.h >>conftest.$ac_ext
12925 cat >>conftest.$ac_ext <<_ACEOF
12926 /* end confdefs.h.  */
12927 #include <$ac_header>
12928 _ACEOF
12929 if { (ac_try="$ac_cpp conftest.$ac_ext"
12930 case "(($ac_try" in
12931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12932   *) ac_try_echo=$ac_try;;
12933 esac
12934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12935   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12936   ac_status=$?
12937   grep -v '^ *+' conftest.er1 >conftest.err
12938   rm -f conftest.er1
12939   cat conftest.err >&5
12940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12941   (exit $ac_status); } >/dev/null && {
12942          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12943          test ! -s conftest.err
12944        }; then
12945   ac_header_preproc=yes
12946 else
12947   echo "$as_me: failed program was:" >&5
12948 sed 's/^/| /' conftest.$ac_ext >&5
12949
12950   ac_header_preproc=no
12951 fi
12952
12953 rm -f conftest.err conftest.$ac_ext
12954 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12955 echo "${ECHO_T}$ac_header_preproc" >&6; }
12956
12957 # So?  What about this header?
12958 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12959   yes:no: )
12960     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12961 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12962     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12963 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12964     ac_header_preproc=yes
12965     ;;
12966   no:yes:* )
12967     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12968 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12969     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12970 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12971     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12972 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12973     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12974 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12975     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12976 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12977     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12978 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12979     ( cat <<\_ASBOX
12980 ## ------------------------------ ##
12981 ## Report this to bug-tar@gnu.org ##
12982 ## ------------------------------ ##
12983 _ASBOX
12984      ) | sed "s/^/$as_me: WARNING:     /" >&2
12985     ;;
12986 esac
12987 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12988 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12989 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12990   echo $ECHO_N "(cached) $ECHO_C" >&6
12991 else
12992   eval "$as_ac_Header=\$ac_header_preproc"
12993 fi
12994 ac_res=`eval echo '${'$as_ac_Header'}'`
12995                { echo "$as_me:$LINENO: result: $ac_res" >&5
12996 echo "${ECHO_T}$ac_res" >&6; }
12997
12998 fi
12999 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13000   cat >>confdefs.h <<_ACEOF
13001 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13002 _ACEOF
13003
13004 else
13005   GETOPT_H=getopt.h
13006 fi
13007
13008 done
13009
13010   fi
13011
13012   if test -z "$GETOPT_H"; then
13013
13014 for ac_func in getopt_long_only
13015 do
13016 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13017 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13018 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13019 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13020   echo $ECHO_N "(cached) $ECHO_C" >&6
13021 else
13022   cat >conftest.$ac_ext <<_ACEOF
13023 /* confdefs.h.  */
13024 _ACEOF
13025 cat confdefs.h >>conftest.$ac_ext
13026 cat >>conftest.$ac_ext <<_ACEOF
13027 /* end confdefs.h.  */
13028 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13029    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13030 #define $ac_func innocuous_$ac_func
13031
13032 /* System header to define __stub macros and hopefully few prototypes,
13033     which can conflict with char $ac_func (); below.
13034     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13035     <limits.h> exists even on freestanding compilers.  */
13036
13037 #ifdef __STDC__
13038 # include <limits.h>
13039 #else
13040 # include <assert.h>
13041 #endif
13042
13043 #undef $ac_func
13044
13045 /* Override any GCC internal prototype to avoid an error.
13046    Use char because int might match the return type of a GCC
13047    builtin and then its argument prototype would still apply.  */
13048 #ifdef __cplusplus
13049 extern "C"
13050 #endif
13051 char $ac_func ();
13052 /* The GNU C library defines this for functions which it implements
13053     to always fail with ENOSYS.  Some functions are actually named
13054     something starting with __ and the normal name is an alias.  */
13055 #if defined __stub_$ac_func || defined __stub___$ac_func
13056 choke me
13057 #endif
13058
13059 int
13060 main ()
13061 {
13062 return $ac_func ();
13063   ;
13064   return 0;
13065 }
13066 _ACEOF
13067 rm -f conftest.$ac_objext conftest$ac_exeext
13068 if { (ac_try="$ac_link"
13069 case "(($ac_try" in
13070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13071   *) ac_try_echo=$ac_try;;
13072 esac
13073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13074   (eval "$ac_link") 2>conftest.er1
13075   ac_status=$?
13076   grep -v '^ *+' conftest.er1 >conftest.err
13077   rm -f conftest.er1
13078   cat conftest.err >&5
13079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13080   (exit $ac_status); } && {
13081          test -z "$ac_c_werror_flag" ||
13082          test ! -s conftest.err
13083        } && test -s conftest$ac_exeext &&
13084        $as_test_x conftest$ac_exeext; then
13085   eval "$as_ac_var=yes"
13086 else
13087   echo "$as_me: failed program was:" >&5
13088 sed 's/^/| /' conftest.$ac_ext >&5
13089
13090         eval "$as_ac_var=no"
13091 fi
13092
13093 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13094       conftest$ac_exeext conftest.$ac_ext
13095 fi
13096 ac_res=`eval echo '${'$as_ac_var'}'`
13097                { echo "$as_me:$LINENO: result: $ac_res" >&5
13098 echo "${ECHO_T}$ac_res" >&6; }
13099 if test `eval echo '${'$as_ac_var'}'` = yes; then
13100   cat >>confdefs.h <<_ACEOF
13101 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13102 _ACEOF
13103
13104 else
13105   GETOPT_H=getopt.h
13106 fi
13107 done
13108
13109   fi
13110
13111       if test -z "$GETOPT_H"; then
13112     { echo "$as_me:$LINENO: checking whether optreset is declared" >&5
13113 echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6; }
13114 if test "${ac_cv_have_decl_optreset+set}" = set; then
13115   echo $ECHO_N "(cached) $ECHO_C" >&6
13116 else
13117   cat >conftest.$ac_ext <<_ACEOF
13118 /* confdefs.h.  */
13119 _ACEOF
13120 cat confdefs.h >>conftest.$ac_ext
13121 cat >>conftest.$ac_ext <<_ACEOF
13122 /* end confdefs.h.  */
13123 #include <getopt.h>
13124
13125 int
13126 main ()
13127 {
13128 #ifndef optreset
13129   (void) optreset;
13130 #endif
13131
13132   ;
13133   return 0;
13134 }
13135 _ACEOF
13136 rm -f conftest.$ac_objext
13137 if { (ac_try="$ac_compile"
13138 case "(($ac_try" in
13139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13140   *) ac_try_echo=$ac_try;;
13141 esac
13142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13143   (eval "$ac_compile") 2>conftest.er1
13144   ac_status=$?
13145   grep -v '^ *+' conftest.er1 >conftest.err
13146   rm -f conftest.er1
13147   cat conftest.err >&5
13148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13149   (exit $ac_status); } && {
13150          test -z "$ac_c_werror_flag" ||
13151          test ! -s conftest.err
13152        } && test -s conftest.$ac_objext; then
13153   ac_cv_have_decl_optreset=yes
13154 else
13155   echo "$as_me: failed program was:" >&5
13156 sed 's/^/| /' conftest.$ac_ext >&5
13157
13158         ac_cv_have_decl_optreset=no
13159 fi
13160
13161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13162 fi
13163 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
13164 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
13165 if test $ac_cv_have_decl_optreset = yes; then
13166   GETOPT_H=getopt.h
13167 fi
13168
13169   fi
13170
13171       if test -z "$GETOPT_H"; then
13172     { echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
13173 echo $ECHO_N "checking for working GNU getopt function... $ECHO_C" >&6; }
13174 if test "${gl_cv_func_gnu_getopt+set}" = set; then
13175   echo $ECHO_N "(cached) $ECHO_C" >&6
13176 else
13177   if test "$cross_compiling" = yes; then
13178                          { echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
13179 echo $ECHO_N "checking whether getopt_clip is declared... $ECHO_C" >&6; }
13180 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
13181   echo $ECHO_N "(cached) $ECHO_C" >&6
13182 else
13183   cat >conftest.$ac_ext <<_ACEOF
13184 /* confdefs.h.  */
13185 _ACEOF
13186 cat confdefs.h >>conftest.$ac_ext
13187 cat >>conftest.$ac_ext <<_ACEOF
13188 /* end confdefs.h.  */
13189 #include <getopt.h>
13190
13191 int
13192 main ()
13193 {
13194 #ifndef getopt_clip
13195   (void) getopt_clip;
13196 #endif
13197
13198   ;
13199   return 0;
13200 }
13201 _ACEOF
13202 rm -f conftest.$ac_objext
13203 if { (ac_try="$ac_compile"
13204 case "(($ac_try" in
13205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13206   *) ac_try_echo=$ac_try;;
13207 esac
13208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13209   (eval "$ac_compile") 2>conftest.er1
13210   ac_status=$?
13211   grep -v '^ *+' conftest.er1 >conftest.err
13212   rm -f conftest.er1
13213   cat conftest.err >&5
13214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13215   (exit $ac_status); } && {
13216          test -z "$ac_c_werror_flag" ||
13217          test ! -s conftest.err
13218        } && test -s conftest.$ac_objext; then
13219   ac_cv_have_decl_getopt_clip=yes
13220 else
13221   echo "$as_me: failed program was:" >&5
13222 sed 's/^/| /' conftest.$ac_ext >&5
13223
13224         ac_cv_have_decl_getopt_clip=no
13225 fi
13226
13227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13228 fi
13229 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
13230 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
13231 if test $ac_cv_have_decl_getopt_clip = yes; then
13232   gl_cv_func_gnu_getopt=no
13233 else
13234   gl_cv_func_gnu_getopt=yes
13235 fi
13236
13237 else
13238   cat >conftest.$ac_ext <<_ACEOF
13239 /* confdefs.h.  */
13240 _ACEOF
13241 cat confdefs.h >>conftest.$ac_ext
13242 cat >>conftest.$ac_ext <<_ACEOF
13243 /* end confdefs.h.  */
13244 #include <getopt.h>
13245 int
13246 main ()
13247 {
13248
13249              char *myargv[3];
13250              myargv[0] = "conftest";
13251              myargv[1] = "-+";
13252              myargv[2] = 0;
13253              return getopt (2, myargv, "+a") != '?';
13254
13255   ;
13256   return 0;
13257 }
13258 _ACEOF
13259 rm -f conftest$ac_exeext
13260 if { (ac_try="$ac_link"
13261 case "(($ac_try" in
13262   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13263   *) ac_try_echo=$ac_try;;
13264 esac
13265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13266   (eval "$ac_link") 2>&5
13267   ac_status=$?
13268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13269   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13270   { (case "(($ac_try" in
13271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13272   *) ac_try_echo=$ac_try;;
13273 esac
13274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13275   (eval "$ac_try") 2>&5
13276   ac_status=$?
13277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13278   (exit $ac_status); }; }; then
13279   gl_cv_func_gnu_getopt=yes
13280 else
13281   echo "$as_me: program exited with status $ac_status" >&5
13282 echo "$as_me: failed program was:" >&5
13283 sed 's/^/| /' conftest.$ac_ext >&5
13284
13285 ( exit $ac_status )
13286 gl_cv_func_gnu_getopt=no
13287 fi
13288 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13289 fi
13290
13291
13292 fi
13293 { echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
13294 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
13295     if test "$gl_cv_func_gnu_getopt" = "no"; then
13296       GETOPT_H=getopt.h
13297     fi
13298   fi
13299
13300
13301
13302
13303
13304
13305
13306
13307
13308
13309
13310
13311
13312
13313
13314
13315
13316      if test $gl_cv_have_include_next = yes; then
13317        gl_cv_next_sys_time_h='<'sys/time.h'>'
13318      else
13319        { echo "$as_me:$LINENO: checking absolute name of <sys/time.h>" >&5
13320 echo $ECHO_N "checking absolute name of <sys/time.h>... $ECHO_C" >&6; }
13321 if test "${gl_cv_next_sys_time_h+set}" = set; then
13322   echo $ECHO_N "(cached) $ECHO_C" >&6
13323 else
13324
13325           if test $ac_cv_header_sys_time_h = yes; then
13326             cat >conftest.$ac_ext <<_ACEOF
13327 /* confdefs.h.  */
13328 _ACEOF
13329 cat confdefs.h >>conftest.$ac_ext
13330 cat >>conftest.$ac_ext <<_ACEOF
13331 /* end confdefs.h.  */
13332 #include <sys/time.h>
13333
13334 _ACEOF
13335                                     gl_cv_next_sys_time_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13336                sed -n '\#/sys/time.h#{
13337                  s#.*"\(.*/sys/time.h\)".*#\1#
13338                  s#^/[^/]#//&#
13339                  p
13340                  q
13341                }'`'"'
13342           else
13343             gl_cv_next_sys_time_h='<'sys/time.h'>'
13344           fi
13345
13346 fi
13347 { echo "$as_me:$LINENO: result: $gl_cv_next_sys_time_h" >&5
13348 echo "${ECHO_T}$gl_cv_next_sys_time_h" >&6; }
13349      fi
13350      NEXT_SYS_TIME_H=$gl_cv_next_sys_time_h
13351
13352
13353
13354
13355   if test $ac_cv_header_sys_time_h = yes; then
13356     HAVE_SYS_TIME_H=1
13357   else
13358     HAVE_SYS_TIME_H=0
13359   fi
13360
13361
13362   { echo "$as_me:$LINENO: checking for struct timeval" >&5
13363 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
13364 if test "${gl_cv_sys_struct_timeval+set}" = set; then
13365   echo $ECHO_N "(cached) $ECHO_C" >&6
13366 else
13367   cat >conftest.$ac_ext <<_ACEOF
13368 /* confdefs.h.  */
13369 _ACEOF
13370 cat confdefs.h >>conftest.$ac_ext
13371 cat >>conftest.$ac_ext <<_ACEOF
13372 /* end confdefs.h.  */
13373 #if HAVE_SYS_TIME_H
13374              #include <sys/time.h>
13375             #endif
13376             #include <time.h>
13377
13378 int
13379 main ()
13380 {
13381 static struct timeval x; x.tv_sec = x.tv_usec;
13382   ;
13383   return 0;
13384 }
13385 _ACEOF
13386 rm -f conftest.$ac_objext
13387 if { (ac_try="$ac_compile"
13388 case "(($ac_try" in
13389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13390   *) ac_try_echo=$ac_try;;
13391 esac
13392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13393   (eval "$ac_compile") 2>conftest.er1
13394   ac_status=$?
13395   grep -v '^ *+' conftest.er1 >conftest.err
13396   rm -f conftest.er1
13397   cat conftest.err >&5
13398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13399   (exit $ac_status); } && {
13400          test -z "$ac_c_werror_flag" ||
13401          test ! -s conftest.err
13402        } && test -s conftest.$ac_objext; then
13403   gl_cv_sys_struct_timeval=yes
13404 else
13405   echo "$as_me: failed program was:" >&5
13406 sed 's/^/| /' conftest.$ac_ext >&5
13407
13408         gl_cv_sys_struct_timeval=no
13409 fi
13410
13411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13412 fi
13413 { echo "$as_me:$LINENO: result: $gl_cv_sys_struct_timeval" >&5
13414 echo "${ECHO_T}$gl_cv_sys_struct_timeval" >&6; }
13415   if test $gl_cv_sys_struct_timeval = yes; then
13416     HAVE_STRUCT_TIMEVAL=1
13417   else
13418     HAVE_STRUCT_TIMEVAL=0
13419   fi
13420
13421
13422     REPLACE_GETTIMEOFDAY=0
13423
13424   if test $HAVE_SYS_TIME_H = 0 || test $HAVE_STRUCT_TIMEVAL = 0; then
13425     SYS_TIME_H=sys/time.h
13426   else
13427     SYS_TIME_H=
13428   fi
13429
13430
13431
13432
13433
13434
13435   { echo "$as_me:$LINENO: checking for long long int" >&5
13436 echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
13437 if test "${ac_cv_type_long_long_int+set}" = set; then
13438   echo $ECHO_N "(cached) $ECHO_C" >&6
13439 else
13440   cat >conftest.$ac_ext <<_ACEOF
13441
13442   /* confdefs.h.  */
13443 _ACEOF
13444 cat confdefs.h >>conftest.$ac_ext
13445 cat >>conftest.$ac_ext <<_ACEOF
13446 /* end confdefs.h.  */
13447 /* For now, do not test the preprocessor; as of 2007 there are too many
13448          implementations with broken preprocessors.  Perhaps this can
13449          be revisited in 2012.  In the meantime, code should not expect
13450          #if to work with literals wider than 32 bits.  */
13451       /* Test literals.  */
13452       long long int ll = 9223372036854775807ll;
13453       long long int nll = -9223372036854775807LL;
13454       unsigned long long int ull = 18446744073709551615ULL;
13455       /* Test constant expressions.   */
13456       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
13457                      ? 1 : -1)];
13458       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
13459                      ? 1 : -1)];
13460       int i = 63;
13461 int
13462 main ()
13463 {
13464 /* Test availability of runtime routines for shift and division.  */
13465       long long int llmax = 9223372036854775807ll;
13466       unsigned long long int ullmax = 18446744073709551615ull;
13467       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
13468               | (llmax / ll) | (llmax % ll)
13469               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
13470               | (ullmax / ull) | (ullmax % ull));
13471   ;
13472   return 0;
13473 }
13474
13475 _ACEOF
13476 rm -f conftest.$ac_objext conftest$ac_exeext
13477 if { (ac_try="$ac_link"
13478 case "(($ac_try" in
13479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13480   *) ac_try_echo=$ac_try;;
13481 esac
13482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13483   (eval "$ac_link") 2>conftest.er1
13484   ac_status=$?
13485   grep -v '^ *+' conftest.er1 >conftest.err
13486   rm -f conftest.er1
13487   cat conftest.err >&5
13488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13489   (exit $ac_status); } && {
13490          test -z "$ac_c_werror_flag" ||
13491          test ! -s conftest.err
13492        } && test -s conftest$ac_exeext &&
13493        $as_test_x conftest$ac_exeext; then
13494                         if test "$cross_compiling" = yes; then
13495   ac_cv_type_long_long_int=yes
13496 else
13497   cat >conftest.$ac_ext <<_ACEOF
13498 /* confdefs.h.  */
13499 _ACEOF
13500 cat confdefs.h >>conftest.$ac_ext
13501 cat >>conftest.$ac_ext <<_ACEOF
13502 /* end confdefs.h.  */
13503 #include <limits.h>
13504                #ifndef LLONG_MAX
13505                # define HALF \
13506                         (1LL << (sizeof (long long int) * CHAR_BIT - 2))
13507                # define LLONG_MAX (HALF - 1 + HALF)
13508                #endif
13509 int
13510 main ()
13511 {
13512 long long int n = 1;
13513                int i;
13514                for (i = 0; ; i++)
13515                  {
13516                    long long int m = n << i;
13517                    if (m >> i != n)
13518                      return 1;
13519                    if (LLONG_MAX / 2 < m)
13520                      break;
13521                  }
13522                return 0;
13523   ;
13524   return 0;
13525 }
13526 _ACEOF
13527 rm -f conftest$ac_exeext
13528 if { (ac_try="$ac_link"
13529 case "(($ac_try" in
13530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13531   *) ac_try_echo=$ac_try;;
13532 esac
13533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13534   (eval "$ac_link") 2>&5
13535   ac_status=$?
13536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13537   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13538   { (case "(($ac_try" in
13539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13540   *) ac_try_echo=$ac_try;;
13541 esac
13542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13543   (eval "$ac_try") 2>&5
13544   ac_status=$?
13545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13546   (exit $ac_status); }; }; then
13547   ac_cv_type_long_long_int=yes
13548 else
13549   echo "$as_me: program exited with status $ac_status" >&5
13550 echo "$as_me: failed program was:" >&5
13551 sed 's/^/| /' conftest.$ac_ext >&5
13552
13553 ( exit $ac_status )
13554 ac_cv_type_long_long_int=no
13555 fi
13556 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13557 fi
13558
13559
13560 else
13561   echo "$as_me: failed program was:" >&5
13562 sed 's/^/| /' conftest.$ac_ext >&5
13563
13564         ac_cv_type_long_long_int=no
13565 fi
13566
13567 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13568       conftest$ac_exeext conftest.$ac_ext
13569 fi
13570 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
13571 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
13572   if test $ac_cv_type_long_long_int = yes; then
13573
13574 cat >>confdefs.h <<\_ACEOF
13575 #define HAVE_LONG_LONG_INT 1
13576 _ACEOF
13577
13578   fi
13579
13580
13581   { echo "$as_me:$LINENO: checking for unsigned long long int" >&5
13582 echo $ECHO_N "checking for unsigned long long int... $ECHO_C" >&6; }
13583 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then
13584   echo $ECHO_N "(cached) $ECHO_C" >&6
13585 else
13586   cat >conftest.$ac_ext <<_ACEOF
13587
13588   /* confdefs.h.  */
13589 _ACEOF
13590 cat confdefs.h >>conftest.$ac_ext
13591 cat >>conftest.$ac_ext <<_ACEOF
13592 /* end confdefs.h.  */
13593 /* For now, do not test the preprocessor; as of 2007 there are too many
13594          implementations with broken preprocessors.  Perhaps this can
13595          be revisited in 2012.  In the meantime, code should not expect
13596          #if to work with literals wider than 32 bits.  */
13597       /* Test literals.  */
13598       long long int ll = 9223372036854775807ll;
13599       long long int nll = -9223372036854775807LL;
13600       unsigned long long int ull = 18446744073709551615ULL;
13601       /* Test constant expressions.   */
13602       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
13603                      ? 1 : -1)];
13604       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
13605                      ? 1 : -1)];
13606       int i = 63;
13607 int
13608 main ()
13609 {
13610 /* Test availability of runtime routines for shift and division.  */
13611       long long int llmax = 9223372036854775807ll;
13612       unsigned long long int ullmax = 18446744073709551615ull;
13613       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
13614               | (llmax / ll) | (llmax % ll)
13615               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
13616               | (ullmax / ull) | (ullmax % ull));
13617   ;
13618   return 0;
13619 }
13620
13621 _ACEOF
13622 rm -f conftest.$ac_objext conftest$ac_exeext
13623 if { (ac_try="$ac_link"
13624 case "(($ac_try" in
13625   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13626   *) ac_try_echo=$ac_try;;
13627 esac
13628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13629   (eval "$ac_link") 2>conftest.er1
13630   ac_status=$?
13631   grep -v '^ *+' conftest.er1 >conftest.err
13632   rm -f conftest.er1
13633   cat conftest.err >&5
13634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13635   (exit $ac_status); } && {
13636          test -z "$ac_c_werror_flag" ||
13637          test ! -s conftest.err
13638        } && test -s conftest$ac_exeext &&
13639        $as_test_x conftest$ac_exeext; then
13640   ac_cv_type_unsigned_long_long_int=yes
13641 else
13642   echo "$as_me: failed program was:" >&5
13643 sed 's/^/| /' conftest.$ac_ext >&5
13644
13645         ac_cv_type_unsigned_long_long_int=no
13646 fi
13647
13648 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13649       conftest$ac_exeext conftest.$ac_ext
13650 fi
13651 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long_int" >&5
13652 echo "${ECHO_T}$ac_cv_type_unsigned_long_long_int" >&6; }
13653   if test $ac_cv_type_unsigned_long_long_int = yes; then
13654
13655 cat >>confdefs.h <<\_ACEOF
13656 #define HAVE_UNSIGNED_LONG_LONG_INT 1
13657 _ACEOF
13658
13659   fi
13660
13661
13662
13663
13664
13665
13666
13667
13668   if test $ac_cv_type_long_long_int = yes; then
13669     HAVE_LONG_LONG_INT=1
13670   else
13671     HAVE_LONG_LONG_INT=0
13672   fi
13673
13674
13675   if test $ac_cv_type_unsigned_long_long_int = yes; then
13676     HAVE_UNSIGNED_LONG_LONG_INT=1
13677   else
13678     HAVE_UNSIGNED_LONG_LONG_INT=0
13679   fi
13680
13681
13682       if test $ac_cv_header_inttypes_h = yes; then
13683     HAVE_INTTYPES_H=1
13684   else
13685     HAVE_INTTYPES_H=0
13686   fi
13687
13688
13689       if test $ac_cv_header_sys_types_h = yes; then
13690     HAVE_SYS_TYPES_H=1
13691   else
13692     HAVE_SYS_TYPES_H=0
13693   fi
13694
13695
13696
13697
13698
13699
13700
13701
13702
13703
13704
13705
13706      if test $gl_cv_have_include_next = yes; then
13707        gl_cv_next_stdint_h='<'stdint.h'>'
13708      else
13709        { echo "$as_me:$LINENO: checking absolute name of <stdint.h>" >&5
13710 echo $ECHO_N "checking absolute name of <stdint.h>... $ECHO_C" >&6; }
13711 if test "${gl_cv_next_stdint_h+set}" = set; then
13712   echo $ECHO_N "(cached) $ECHO_C" >&6
13713 else
13714
13715           if test $ac_cv_header_stdint_h = yes; then
13716             cat >conftest.$ac_ext <<_ACEOF
13717 /* confdefs.h.  */
13718 _ACEOF
13719 cat confdefs.h >>conftest.$ac_ext
13720 cat >>conftest.$ac_ext <<_ACEOF
13721 /* end confdefs.h.  */
13722 #include <stdint.h>
13723
13724 _ACEOF
13725                                     gl_cv_next_stdint_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13726                sed -n '\#/stdint.h#{
13727                  s#.*"\(.*/stdint.h\)".*#\1#
13728                  s#^/[^/]#//&#
13729                  p
13730                  q
13731                }'`'"'
13732           else
13733             gl_cv_next_stdint_h='<'stdint.h'>'
13734           fi
13735
13736 fi
13737 { echo "$as_me:$LINENO: result: $gl_cv_next_stdint_h" >&5
13738 echo "${ECHO_T}$gl_cv_next_stdint_h" >&6; }
13739      fi
13740      NEXT_STDINT_H=$gl_cv_next_stdint_h
13741
13742
13743
13744   if test $ac_cv_header_stdint_h = yes; then
13745     HAVE_STDINT_H=1
13746   else
13747     HAVE_STDINT_H=0
13748   fi
13749
13750
13751     if test $ac_cv_header_stdint_h = yes; then
13752     { echo "$as_me:$LINENO: checking whether stdint.h conforms to C99" >&5
13753 echo $ECHO_N "checking whether stdint.h conforms to C99... $ECHO_C" >&6; }
13754 if test "${gl_cv_header_working_stdint_h+set}" = set; then
13755   echo $ECHO_N "(cached) $ECHO_C" >&6
13756 else
13757   gl_cv_header_working_stdint_h=no
13758        cat >conftest.$ac_ext <<_ACEOF
13759
13760          /* confdefs.h.  */
13761 _ACEOF
13762 cat confdefs.h >>conftest.$ac_ext
13763 cat >>conftest.$ac_ext <<_ACEOF
13764 /* end confdefs.h.  */
13765
13766 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
13767 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
13768 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
13769 #include <stdint.h>
13770 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>.  */
13771 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
13772 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
13773 #endif
13774
13775
13776   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
13777      included before <wchar.h>.  */
13778   #include <stddef.h>
13779   #include <signal.h>
13780   #if HAVE_WCHAR_H
13781   # include <stdio.h>
13782   # include <time.h>
13783   # include <wchar.h>
13784   #endif
13785
13786
13787 #ifdef INT8_MAX
13788 int8_t a1 = INT8_MAX;
13789 int8_t a1min = INT8_MIN;
13790 #endif
13791 #ifdef INT16_MAX
13792 int16_t a2 = INT16_MAX;
13793 int16_t a2min = INT16_MIN;
13794 #endif
13795 #ifdef INT32_MAX
13796 int32_t a3 = INT32_MAX;
13797 int32_t a3min = INT32_MIN;
13798 #endif
13799 #ifdef INT64_MAX
13800 int64_t a4 = INT64_MAX;
13801 int64_t a4min = INT64_MIN;
13802 #endif
13803 #ifdef UINT8_MAX
13804 uint8_t b1 = UINT8_MAX;
13805 #else
13806 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
13807 #endif
13808 #ifdef UINT16_MAX
13809 uint16_t b2 = UINT16_MAX;
13810 #endif
13811 #ifdef UINT32_MAX
13812 uint32_t b3 = UINT32_MAX;
13813 #endif
13814 #ifdef UINT64_MAX
13815 uint64_t b4 = UINT64_MAX;
13816 #endif
13817 int_least8_t c1 = INT8_C (0x7f);
13818 int_least8_t c1max = INT_LEAST8_MAX;
13819 int_least8_t c1min = INT_LEAST8_MIN;
13820 int_least16_t c2 = INT16_C (0x7fff);
13821 int_least16_t c2max = INT_LEAST16_MAX;
13822 int_least16_t c2min = INT_LEAST16_MIN;
13823 int_least32_t c3 = INT32_C (0x7fffffff);
13824 int_least32_t c3max = INT_LEAST32_MAX;
13825 int_least32_t c3min = INT_LEAST32_MIN;
13826 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
13827 int_least64_t c4max = INT_LEAST64_MAX;
13828 int_least64_t c4min = INT_LEAST64_MIN;
13829 uint_least8_t d1 = UINT8_C (0xff);
13830 uint_least8_t d1max = UINT_LEAST8_MAX;
13831 uint_least16_t d2 = UINT16_C (0xffff);
13832 uint_least16_t d2max = UINT_LEAST16_MAX;
13833 uint_least32_t d3 = UINT32_C (0xffffffff);
13834 uint_least32_t d3max = UINT_LEAST32_MAX;
13835 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
13836 uint_least64_t d4max = UINT_LEAST64_MAX;
13837 int_fast8_t e1 = INT_FAST8_MAX;
13838 int_fast8_t e1min = INT_FAST8_MIN;
13839 int_fast16_t e2 = INT_FAST16_MAX;
13840 int_fast16_t e2min = INT_FAST16_MIN;
13841 int_fast32_t e3 = INT_FAST32_MAX;
13842 int_fast32_t e3min = INT_FAST32_MIN;
13843 int_fast64_t e4 = INT_FAST64_MAX;
13844 int_fast64_t e4min = INT_FAST64_MIN;
13845 uint_fast8_t f1 = UINT_FAST8_MAX;
13846 uint_fast16_t f2 = UINT_FAST16_MAX;
13847 uint_fast32_t f3 = UINT_FAST32_MAX;
13848 uint_fast64_t f4 = UINT_FAST64_MAX;
13849 #ifdef INTPTR_MAX
13850 intptr_t g = INTPTR_MAX;
13851 intptr_t gmin = INTPTR_MIN;
13852 #endif
13853 #ifdef UINTPTR_MAX
13854 uintptr_t h = UINTPTR_MAX;
13855 #endif
13856 intmax_t i = INTMAX_MAX;
13857 uintmax_t j = UINTMAX_MAX;
13858
13859 #include <limits.h> /* for CHAR_BIT */
13860 #define TYPE_MINIMUM(t) \
13861   ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))
13862 #define TYPE_MAXIMUM(t) \
13863   ((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))))
13864 struct s {
13865   int check_PTRDIFF:
13866       PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
13867       && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
13868       ? 1 : -1;
13869   /* Detect bug in FreeBSD 6.0 / ia64.  */
13870   int check_SIG_ATOMIC:
13871       SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
13872       && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
13873       ? 1 : -1;
13874   int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
13875   int check_WCHAR:
13876       WCHAR_MIN == TYPE_MINIMUM (wchar_t)
13877       && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
13878       ? 1 : -1;
13879   /* Detect bug in mingw.  */
13880   int check_WINT:
13881       WINT_MIN == TYPE_MINIMUM (wint_t)
13882       && WINT_MAX == TYPE_MAXIMUM (wint_t)
13883       ? 1 : -1;
13884
13885   /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others.  */
13886   int check_UINT8_C:
13887         (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
13888   int check_UINT16_C:
13889         (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
13890
13891   /* Detect bugs in OpenBSD 3.9 stdint.h.  */
13892 #ifdef UINT8_MAX
13893   int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
13894 #endif
13895 #ifdef UINT16_MAX
13896   int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
13897 #endif
13898 #ifdef UINT32_MAX
13899   int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
13900 #endif
13901 #ifdef UINT64_MAX
13902   int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
13903 #endif
13904   int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
13905   int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
13906   int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
13907   int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
13908   int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
13909   int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
13910   int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
13911   int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
13912   int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
13913   int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
13914   int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
13915 };
13916
13917 int
13918 main ()
13919 {
13920
13921   ;
13922   return 0;
13923 }
13924 _ACEOF
13925 rm -f conftest.$ac_objext
13926 if { (ac_try="$ac_compile"
13927 case "(($ac_try" in
13928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13929   *) ac_try_echo=$ac_try;;
13930 esac
13931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13932   (eval "$ac_compile") 2>conftest.er1
13933   ac_status=$?
13934   grep -v '^ *+' conftest.er1 >conftest.err
13935   rm -f conftest.er1
13936   cat conftest.err >&5
13937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13938   (exit $ac_status); } && {
13939          test -z "$ac_c_werror_flag" ||
13940          test ! -s conftest.err
13941        } && test -s conftest.$ac_objext; then
13942   gl_cv_header_working_stdint_h=yes
13943 else
13944   echo "$as_me: failed program was:" >&5
13945 sed 's/^/| /' conftest.$ac_ext >&5
13946
13947
13948 fi
13949
13950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13951 fi
13952 { echo "$as_me:$LINENO: result: $gl_cv_header_working_stdint_h" >&5
13953 echo "${ECHO_T}$gl_cv_header_working_stdint_h" >&6; }
13954   fi
13955   if test "$gl_cv_header_working_stdint_h" = yes; then
13956     STDINT_H=
13957   else
13958
13959
13960 for ac_header in sys/inttypes.h sys/bitypes.h
13961 do
13962 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13963 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13964   { echo "$as_me:$LINENO: checking for $ac_header" >&5
13965 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13966 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13967   echo $ECHO_N "(cached) $ECHO_C" >&6
13968 fi
13969 ac_res=`eval echo '${'$as_ac_Header'}'`
13970                { echo "$as_me:$LINENO: result: $ac_res" >&5
13971 echo "${ECHO_T}$ac_res" >&6; }
13972 else
13973   # Is the header compilable?
13974 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13975 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13976 cat >conftest.$ac_ext <<_ACEOF
13977 /* confdefs.h.  */
13978 _ACEOF
13979 cat confdefs.h >>conftest.$ac_ext
13980 cat >>conftest.$ac_ext <<_ACEOF
13981 /* end confdefs.h.  */
13982 $ac_includes_default
13983 #include <$ac_header>
13984 _ACEOF
13985 rm -f conftest.$ac_objext
13986 if { (ac_try="$ac_compile"
13987 case "(($ac_try" in
13988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13989   *) ac_try_echo=$ac_try;;
13990 esac
13991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13992   (eval "$ac_compile") 2>conftest.er1
13993   ac_status=$?
13994   grep -v '^ *+' conftest.er1 >conftest.err
13995   rm -f conftest.er1
13996   cat conftest.err >&5
13997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13998   (exit $ac_status); } && {
13999          test -z "$ac_c_werror_flag" ||
14000          test ! -s conftest.err
14001        } && test -s conftest.$ac_objext; then
14002   ac_header_compiler=yes
14003 else
14004   echo "$as_me: failed program was:" >&5
14005 sed 's/^/| /' conftest.$ac_ext >&5
14006
14007         ac_header_compiler=no
14008 fi
14009
14010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14011 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14012 echo "${ECHO_T}$ac_header_compiler" >&6; }
14013
14014 # Is the header present?
14015 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14016 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14017 cat >conftest.$ac_ext <<_ACEOF
14018 /* confdefs.h.  */
14019 _ACEOF
14020 cat confdefs.h >>conftest.$ac_ext
14021 cat >>conftest.$ac_ext <<_ACEOF
14022 /* end confdefs.h.  */
14023 #include <$ac_header>
14024 _ACEOF
14025 if { (ac_try="$ac_cpp conftest.$ac_ext"
14026 case "(($ac_try" in
14027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14028   *) ac_try_echo=$ac_try;;
14029 esac
14030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14031   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14032   ac_status=$?
14033   grep -v '^ *+' conftest.er1 >conftest.err
14034   rm -f conftest.er1
14035   cat conftest.err >&5
14036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14037   (exit $ac_status); } >/dev/null && {
14038          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14039          test ! -s conftest.err
14040        }; then
14041   ac_header_preproc=yes
14042 else
14043   echo "$as_me: failed program was:" >&5
14044 sed 's/^/| /' conftest.$ac_ext >&5
14045
14046   ac_header_preproc=no
14047 fi
14048
14049 rm -f conftest.err conftest.$ac_ext
14050 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14051 echo "${ECHO_T}$ac_header_preproc" >&6; }
14052
14053 # So?  What about this header?
14054 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14055   yes:no: )
14056     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14057 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14058     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14059 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14060     ac_header_preproc=yes
14061     ;;
14062   no:yes:* )
14063     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14064 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14065     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14066 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14067     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14068 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14069     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14070 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14071     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14072 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14073     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14074 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14075     ( cat <<\_ASBOX
14076 ## ------------------------------ ##
14077 ## Report this to bug-tar@gnu.org ##
14078 ## ------------------------------ ##
14079 _ASBOX
14080      ) | sed "s/^/$as_me: WARNING:     /" >&2
14081     ;;
14082 esac
14083 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14084 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14085 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14086   echo $ECHO_N "(cached) $ECHO_C" >&6
14087 else
14088   eval "$as_ac_Header=\$ac_header_preproc"
14089 fi
14090 ac_res=`eval echo '${'$as_ac_Header'}'`
14091                { echo "$as_me:$LINENO: result: $ac_res" >&5
14092 echo "${ECHO_T}$ac_res" >&6; }
14093
14094 fi
14095 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14096   cat >>confdefs.h <<_ACEOF
14097 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14098 _ACEOF
14099
14100 fi
14101
14102 done
14103
14104     if test $ac_cv_header_sys_inttypes_h = yes; then
14105       HAVE_SYS_INTTYPES_H=1
14106     else
14107       HAVE_SYS_INTTYPES_H=0
14108     fi
14109
14110     if test $ac_cv_header_sys_bitypes_h = yes; then
14111       HAVE_SYS_BITYPES_H=1
14112     else
14113       HAVE_SYS_BITYPES_H=0
14114     fi
14115
14116
14117
14118
14119
14120
14121
14122
14123
14124
14125
14126
14127
14128
14129
14130
14131
14132   for gltype in ptrdiff_t sig_atomic_t size_t wchar_t wint_t ; do
14133     { echo "$as_me:$LINENO: checking for bit size of $gltype" >&5
14134 echo $ECHO_N "checking for bit size of $gltype... $ECHO_C" >&6; }
14135 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then
14136   echo $ECHO_N "(cached) $ECHO_C" >&6
14137 else
14138   if test "$cross_compiling" = yes; then
14139   # Depending upon the size, compute the lo and hi bounds.
14140 cat >conftest.$ac_ext <<_ACEOF
14141 /* confdefs.h.  */
14142 _ACEOF
14143 cat confdefs.h >>conftest.$ac_ext
14144 cat >>conftest.$ac_ext <<_ACEOF
14145 /* end confdefs.h.  */
14146
14147   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14148      included before <wchar.h>.  */
14149   #include <stddef.h>
14150   #include <signal.h>
14151   #if HAVE_WCHAR_H
14152   # include <stdio.h>
14153   # include <time.h>
14154   # include <wchar.h>
14155   #endif
14156
14157 #include <limits.h>
14158 int
14159 main ()
14160 {
14161 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= 0)];
14162 test_array [0] = 0
14163
14164   ;
14165   return 0;
14166 }
14167 _ACEOF
14168 rm -f conftest.$ac_objext
14169 if { (ac_try="$ac_compile"
14170 case "(($ac_try" in
14171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14172   *) ac_try_echo=$ac_try;;
14173 esac
14174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14175   (eval "$ac_compile") 2>conftest.er1
14176   ac_status=$?
14177   grep -v '^ *+' conftest.er1 >conftest.err
14178   rm -f conftest.er1
14179   cat conftest.err >&5
14180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14181   (exit $ac_status); } && {
14182          test -z "$ac_c_werror_flag" ||
14183          test ! -s conftest.err
14184        } && test -s conftest.$ac_objext; then
14185   ac_lo=0 ac_mid=0
14186   while :; do
14187     cat >conftest.$ac_ext <<_ACEOF
14188 /* confdefs.h.  */
14189 _ACEOF
14190 cat confdefs.h >>conftest.$ac_ext
14191 cat >>conftest.$ac_ext <<_ACEOF
14192 /* end confdefs.h.  */
14193
14194   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14195      included before <wchar.h>.  */
14196   #include <stddef.h>
14197   #include <signal.h>
14198   #if HAVE_WCHAR_H
14199   # include <stdio.h>
14200   # include <time.h>
14201   # include <wchar.h>
14202   #endif
14203
14204 #include <limits.h>
14205 int
14206 main ()
14207 {
14208 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
14209 test_array [0] = 0
14210
14211   ;
14212   return 0;
14213 }
14214 _ACEOF
14215 rm -f conftest.$ac_objext
14216 if { (ac_try="$ac_compile"
14217 case "(($ac_try" in
14218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14219   *) ac_try_echo=$ac_try;;
14220 esac
14221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14222   (eval "$ac_compile") 2>conftest.er1
14223   ac_status=$?
14224   grep -v '^ *+' conftest.er1 >conftest.err
14225   rm -f conftest.er1
14226   cat conftest.err >&5
14227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14228   (exit $ac_status); } && {
14229          test -z "$ac_c_werror_flag" ||
14230          test ! -s conftest.err
14231        } && test -s conftest.$ac_objext; then
14232   ac_hi=$ac_mid; break
14233 else
14234   echo "$as_me: failed program was:" >&5
14235 sed 's/^/| /' conftest.$ac_ext >&5
14236
14237         ac_lo=`expr $ac_mid + 1`
14238                         if test $ac_lo -le $ac_mid; then
14239                           ac_lo= ac_hi=
14240                           break
14241                         fi
14242                         ac_mid=`expr 2 '*' $ac_mid + 1`
14243 fi
14244
14245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14246   done
14247 else
14248   echo "$as_me: failed program was:" >&5
14249 sed 's/^/| /' conftest.$ac_ext >&5
14250
14251         cat >conftest.$ac_ext <<_ACEOF
14252 /* confdefs.h.  */
14253 _ACEOF
14254 cat confdefs.h >>conftest.$ac_ext
14255 cat >>conftest.$ac_ext <<_ACEOF
14256 /* end confdefs.h.  */
14257
14258   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14259      included before <wchar.h>.  */
14260   #include <stddef.h>
14261   #include <signal.h>
14262   #if HAVE_WCHAR_H
14263   # include <stdio.h>
14264   # include <time.h>
14265   # include <wchar.h>
14266   #endif
14267
14268 #include <limits.h>
14269 int
14270 main ()
14271 {
14272 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) < 0)];
14273 test_array [0] = 0
14274
14275   ;
14276   return 0;
14277 }
14278 _ACEOF
14279 rm -f conftest.$ac_objext
14280 if { (ac_try="$ac_compile"
14281 case "(($ac_try" in
14282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14283   *) ac_try_echo=$ac_try;;
14284 esac
14285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14286   (eval "$ac_compile") 2>conftest.er1
14287   ac_status=$?
14288   grep -v '^ *+' conftest.er1 >conftest.err
14289   rm -f conftest.er1
14290   cat conftest.err >&5
14291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14292   (exit $ac_status); } && {
14293          test -z "$ac_c_werror_flag" ||
14294          test ! -s conftest.err
14295        } && test -s conftest.$ac_objext; then
14296   ac_hi=-1 ac_mid=-1
14297   while :; do
14298     cat >conftest.$ac_ext <<_ACEOF
14299 /* confdefs.h.  */
14300 _ACEOF
14301 cat confdefs.h >>conftest.$ac_ext
14302 cat >>conftest.$ac_ext <<_ACEOF
14303 /* end confdefs.h.  */
14304
14305   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14306      included before <wchar.h>.  */
14307   #include <stddef.h>
14308   #include <signal.h>
14309   #if HAVE_WCHAR_H
14310   # include <stdio.h>
14311   # include <time.h>
14312   # include <wchar.h>
14313   #endif
14314
14315 #include <limits.h>
14316 int
14317 main ()
14318 {
14319 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= $ac_mid)];
14320 test_array [0] = 0
14321
14322   ;
14323   return 0;
14324 }
14325 _ACEOF
14326 rm -f conftest.$ac_objext
14327 if { (ac_try="$ac_compile"
14328 case "(($ac_try" in
14329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14330   *) ac_try_echo=$ac_try;;
14331 esac
14332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14333   (eval "$ac_compile") 2>conftest.er1
14334   ac_status=$?
14335   grep -v '^ *+' conftest.er1 >conftest.err
14336   rm -f conftest.er1
14337   cat conftest.err >&5
14338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14339   (exit $ac_status); } && {
14340          test -z "$ac_c_werror_flag" ||
14341          test ! -s conftest.err
14342        } && test -s conftest.$ac_objext; then
14343   ac_lo=$ac_mid; break
14344 else
14345   echo "$as_me: failed program was:" >&5
14346 sed 's/^/| /' conftest.$ac_ext >&5
14347
14348         ac_hi=`expr '(' $ac_mid ')' - 1`
14349                         if test $ac_mid -le $ac_hi; then
14350                           ac_lo= ac_hi=
14351                           break
14352                         fi
14353                         ac_mid=`expr 2 '*' $ac_mid`
14354 fi
14355
14356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14357   done
14358 else
14359   echo "$as_me: failed program was:" >&5
14360 sed 's/^/| /' conftest.$ac_ext >&5
14361
14362         ac_lo= ac_hi=
14363 fi
14364
14365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14366 fi
14367
14368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14369 # Binary search between lo and hi bounds.
14370 while test "x$ac_lo" != "x$ac_hi"; do
14371   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14372   cat >conftest.$ac_ext <<_ACEOF
14373 /* confdefs.h.  */
14374 _ACEOF
14375 cat confdefs.h >>conftest.$ac_ext
14376 cat >>conftest.$ac_ext <<_ACEOF
14377 /* end confdefs.h.  */
14378
14379   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14380      included before <wchar.h>.  */
14381   #include <stddef.h>
14382   #include <signal.h>
14383   #if HAVE_WCHAR_H
14384   # include <stdio.h>
14385   # include <time.h>
14386   # include <wchar.h>
14387   #endif
14388
14389 #include <limits.h>
14390 int
14391 main ()
14392 {
14393 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
14394 test_array [0] = 0
14395
14396   ;
14397   return 0;
14398 }
14399 _ACEOF
14400 rm -f conftest.$ac_objext
14401 if { (ac_try="$ac_compile"
14402 case "(($ac_try" in
14403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14404   *) ac_try_echo=$ac_try;;
14405 esac
14406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14407   (eval "$ac_compile") 2>conftest.er1
14408   ac_status=$?
14409   grep -v '^ *+' conftest.er1 >conftest.err
14410   rm -f conftest.er1
14411   cat conftest.err >&5
14412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14413   (exit $ac_status); } && {
14414          test -z "$ac_c_werror_flag" ||
14415          test ! -s conftest.err
14416        } && test -s conftest.$ac_objext; then
14417   ac_hi=$ac_mid
14418 else
14419   echo "$as_me: failed program was:" >&5
14420 sed 's/^/| /' conftest.$ac_ext >&5
14421
14422         ac_lo=`expr '(' $ac_mid ')' + 1`
14423 fi
14424
14425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14426 done
14427 case $ac_lo in
14428 ?*) result=$ac_lo;;
14429 '') result=unknown ;;
14430 esac
14431 else
14432   cat >conftest.$ac_ext <<_ACEOF
14433 /* confdefs.h.  */
14434 _ACEOF
14435 cat confdefs.h >>conftest.$ac_ext
14436 cat >>conftest.$ac_ext <<_ACEOF
14437 /* end confdefs.h.  */
14438
14439   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14440      included before <wchar.h>.  */
14441   #include <stddef.h>
14442   #include <signal.h>
14443   #if HAVE_WCHAR_H
14444   # include <stdio.h>
14445   # include <time.h>
14446   # include <wchar.h>
14447   #endif
14448
14449 #include <limits.h>
14450 static long int longval () { return sizeof ($gltype) * CHAR_BIT; }
14451 static unsigned long int ulongval () { return sizeof ($gltype) * CHAR_BIT; }
14452 #include <stdio.h>
14453 #include <stdlib.h>
14454 int
14455 main ()
14456 {
14457
14458   FILE *f = fopen ("conftest.val", "w");
14459   if (! f)
14460     return 1;
14461   if ((sizeof ($gltype) * CHAR_BIT) < 0)
14462     {
14463       long int i = longval ();
14464       if (i != (sizeof ($gltype) * CHAR_BIT))
14465         return 1;
14466       fprintf (f, "%ld\n", i);
14467     }
14468   else
14469     {
14470       unsigned long int i = ulongval ();
14471       if (i != (sizeof ($gltype) * CHAR_BIT))
14472         return 1;
14473       fprintf (f, "%lu\n", i);
14474     }
14475   return ferror (f) || fclose (f) != 0;
14476
14477   ;
14478   return 0;
14479 }
14480 _ACEOF
14481 rm -f conftest$ac_exeext
14482 if { (ac_try="$ac_link"
14483 case "(($ac_try" in
14484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14485   *) ac_try_echo=$ac_try;;
14486 esac
14487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14488   (eval "$ac_link") 2>&5
14489   ac_status=$?
14490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14491   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14492   { (case "(($ac_try" in
14493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14494   *) ac_try_echo=$ac_try;;
14495 esac
14496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14497   (eval "$ac_try") 2>&5
14498   ac_status=$?
14499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14500   (exit $ac_status); }; }; then
14501   result=`cat conftest.val`
14502 else
14503   echo "$as_me: program exited with status $ac_status" >&5
14504 echo "$as_me: failed program was:" >&5
14505 sed 's/^/| /' conftest.$ac_ext >&5
14506
14507 ( exit $ac_status )
14508 result=unknown
14509 fi
14510 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14511 fi
14512 rm -f conftest.val
14513        eval gl_cv_bitsizeof_${gltype}=\$result
14514
14515 fi
14516 ac_res=`eval echo '${'gl_cv_bitsizeof_${gltype}'}'`
14517                { echo "$as_me:$LINENO: result: $ac_res" >&5
14518 echo "${ECHO_T}$ac_res" >&6; }
14519     eval result=\$gl_cv_bitsizeof_${gltype}
14520     if test $result = unknown; then
14521                                                 result=0
14522     fi
14523     GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
14524     cat >>confdefs.h <<_ACEOF
14525 #define BITSIZEOF_${GLTYPE} $result
14526 _ACEOF
14527
14528     eval BITSIZEOF_${GLTYPE}=\$result
14529   done
14530
14531
14532
14533
14534
14535
14536
14537   for gltype in sig_atomic_t wchar_t wint_t ; do
14538     { echo "$as_me:$LINENO: checking whether $gltype is signed" >&5
14539 echo $ECHO_N "checking whether $gltype is signed... $ECHO_C" >&6; }
14540 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then
14541   echo $ECHO_N "(cached) $ECHO_C" >&6
14542 else
14543   cat >conftest.$ac_ext <<_ACEOF
14544 /* confdefs.h.  */
14545 _ACEOF
14546 cat confdefs.h >>conftest.$ac_ext
14547 cat >>conftest.$ac_ext <<_ACEOF
14548 /* end confdefs.h.  */
14549
14550   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14551      included before <wchar.h>.  */
14552   #include <stddef.h>
14553   #include <signal.h>
14554   #if HAVE_WCHAR_H
14555   # include <stdio.h>
14556   # include <time.h>
14557   # include <wchar.h>
14558   #endif
14559
14560             int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
14561 int
14562 main ()
14563 {
14564
14565   ;
14566   return 0;
14567 }
14568 _ACEOF
14569 rm -f conftest.$ac_objext
14570 if { (ac_try="$ac_compile"
14571 case "(($ac_try" in
14572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14573   *) ac_try_echo=$ac_try;;
14574 esac
14575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14576   (eval "$ac_compile") 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          test -z "$ac_c_werror_flag" ||
14584          test ! -s conftest.err
14585        } && test -s conftest.$ac_objext; then
14586   result=yes
14587 else
14588   echo "$as_me: failed program was:" >&5
14589 sed 's/^/| /' conftest.$ac_ext >&5
14590
14591         result=no
14592 fi
14593
14594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14595        eval gl_cv_type_${gltype}_signed=\$result
14596
14597 fi
14598 ac_res=`eval echo '${'gl_cv_type_${gltype}_signed'}'`
14599                { echo "$as_me:$LINENO: result: $ac_res" >&5
14600 echo "${ECHO_T}$ac_res" >&6; }
14601     eval result=\$gl_cv_type_${gltype}_signed
14602     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
14603     if test "$result" = yes; then
14604       cat >>confdefs.h <<_ACEOF
14605 #define HAVE_SIGNED_${GLTYPE} 1
14606 _ACEOF
14607
14608       eval HAVE_SIGNED_${GLTYPE}=1
14609     else
14610       eval HAVE_SIGNED_${GLTYPE}=0
14611     fi
14612   done
14613
14614
14615   gl_cv_type_ptrdiff_t_signed=yes
14616   gl_cv_type_size_t_signed=no
14617
14618
14619
14620
14621
14622
14623
14624   for gltype in ptrdiff_t sig_atomic_t size_t wchar_t wint_t ; do
14625     { echo "$as_me:$LINENO: checking for $gltype integer literal suffix" >&5
14626 echo $ECHO_N "checking for $gltype integer literal suffix... $ECHO_C" >&6; }
14627 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then
14628   echo $ECHO_N "(cached) $ECHO_C" >&6
14629 else
14630   eval gl_cv_type_${gltype}_suffix=no
14631        eval result=\$gl_cv_type_${gltype}_signed
14632        if test "$result" = yes; then
14633          glsufu=
14634        else
14635          glsufu=u
14636        fi
14637        for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
14638          case $glsuf in
14639            '')  gltype1='int';;
14640            l)   gltype1='long int';;
14641            ll)  gltype1='long long int';;
14642            i64) gltype1='__int64';;
14643            u)   gltype1='unsigned int';;
14644            ul)  gltype1='unsigned long int';;
14645            ull) gltype1='unsigned long long int';;
14646            ui64)gltype1='unsigned __int64';;
14647          esac
14648          cat >conftest.$ac_ext <<_ACEOF
14649 /* confdefs.h.  */
14650 _ACEOF
14651 cat confdefs.h >>conftest.$ac_ext
14652 cat >>conftest.$ac_ext <<_ACEOF
14653 /* end confdefs.h.  */
14654
14655   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14656      included before <wchar.h>.  */
14657   #include <stddef.h>
14658   #include <signal.h>
14659   #if HAVE_WCHAR_H
14660   # include <stdio.h>
14661   # include <time.h>
14662   # include <wchar.h>
14663   #endif
14664
14665               extern $gltype foo;
14666               extern $gltype1 foo;
14667 int
14668 main ()
14669 {
14670
14671   ;
14672   return 0;
14673 }
14674 _ACEOF
14675 rm -f conftest.$ac_objext
14676 if { (ac_try="$ac_compile"
14677 case "(($ac_try" in
14678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14679   *) ac_try_echo=$ac_try;;
14680 esac
14681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14682   (eval "$ac_compile") 2>conftest.er1
14683   ac_status=$?
14684   grep -v '^ *+' conftest.er1 >conftest.err
14685   rm -f conftest.er1
14686   cat conftest.err >&5
14687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14688   (exit $ac_status); } && {
14689          test -z "$ac_c_werror_flag" ||
14690          test ! -s conftest.err
14691        } && test -s conftest.$ac_objext; then
14692   eval gl_cv_type_${gltype}_suffix=\$glsuf
14693 else
14694   echo "$as_me: failed program was:" >&5
14695 sed 's/^/| /' conftest.$ac_ext >&5
14696
14697
14698 fi
14699
14700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14701          eval result=\$gl_cv_type_${gltype}_suffix
14702          test "$result" != no && break
14703        done
14704 fi
14705 ac_res=`eval echo '${'gl_cv_type_${gltype}_suffix'}'`
14706                { echo "$as_me:$LINENO: result: $ac_res" >&5
14707 echo "${ECHO_T}$ac_res" >&6; }
14708     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
14709     eval result=\$gl_cv_type_${gltype}_suffix
14710     test "$result" = no && result=
14711     eval ${GLTYPE}_SUFFIX=\$result
14712     cat >>confdefs.h <<_ACEOF
14713 #define ${GLTYPE}_SUFFIX $result
14714 _ACEOF
14715
14716   done
14717
14718
14719
14720     STDINT_H=stdint.h
14721   fi
14722
14723
14724
14725
14726 for ac_header in inttypes.h
14727 do
14728 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14729 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14730   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14731 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14732 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14733   echo $ECHO_N "(cached) $ECHO_C" >&6
14734 fi
14735 ac_res=`eval echo '${'$as_ac_Header'}'`
14736                { echo "$as_me:$LINENO: result: $ac_res" >&5
14737 echo "${ECHO_T}$ac_res" >&6; }
14738 else
14739   # Is the header compilable?
14740 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14741 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14742 cat >conftest.$ac_ext <<_ACEOF
14743 /* confdefs.h.  */
14744 _ACEOF
14745 cat confdefs.h >>conftest.$ac_ext
14746 cat >>conftest.$ac_ext <<_ACEOF
14747 /* end confdefs.h.  */
14748 $ac_includes_default
14749 #include <$ac_header>
14750 _ACEOF
14751 rm -f conftest.$ac_objext
14752 if { (ac_try="$ac_compile"
14753 case "(($ac_try" in
14754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14755   *) ac_try_echo=$ac_try;;
14756 esac
14757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14758   (eval "$ac_compile") 2>conftest.er1
14759   ac_status=$?
14760   grep -v '^ *+' conftest.er1 >conftest.err
14761   rm -f conftest.er1
14762   cat conftest.err >&5
14763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14764   (exit $ac_status); } && {
14765          test -z "$ac_c_werror_flag" ||
14766          test ! -s conftest.err
14767        } && test -s conftest.$ac_objext; then
14768   ac_header_compiler=yes
14769 else
14770   echo "$as_me: failed program was:" >&5
14771 sed 's/^/| /' conftest.$ac_ext >&5
14772
14773         ac_header_compiler=no
14774 fi
14775
14776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14777 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14778 echo "${ECHO_T}$ac_header_compiler" >&6; }
14779
14780 # Is the header present?
14781 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14782 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14783 cat >conftest.$ac_ext <<_ACEOF
14784 /* confdefs.h.  */
14785 _ACEOF
14786 cat confdefs.h >>conftest.$ac_ext
14787 cat >>conftest.$ac_ext <<_ACEOF
14788 /* end confdefs.h.  */
14789 #include <$ac_header>
14790 _ACEOF
14791 if { (ac_try="$ac_cpp conftest.$ac_ext"
14792 case "(($ac_try" in
14793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14794   *) ac_try_echo=$ac_try;;
14795 esac
14796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14797   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14798   ac_status=$?
14799   grep -v '^ *+' conftest.er1 >conftest.err
14800   rm -f conftest.er1
14801   cat conftest.err >&5
14802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14803   (exit $ac_status); } >/dev/null && {
14804          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14805          test ! -s conftest.err
14806        }; then
14807   ac_header_preproc=yes
14808 else
14809   echo "$as_me: failed program was:" >&5
14810 sed 's/^/| /' conftest.$ac_ext >&5
14811
14812   ac_header_preproc=no
14813 fi
14814
14815 rm -f conftest.err conftest.$ac_ext
14816 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14817 echo "${ECHO_T}$ac_header_preproc" >&6; }
14818
14819 # So?  What about this header?
14820 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14821   yes:no: )
14822     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14823 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14824     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14825 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14826     ac_header_preproc=yes
14827     ;;
14828   no:yes:* )
14829     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14830 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14831     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14832 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14833     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14834 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14835     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14836 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14837     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14838 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14839     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14840 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14841     ( cat <<\_ASBOX
14842 ## ------------------------------ ##
14843 ## Report this to bug-tar@gnu.org ##
14844 ## ------------------------------ ##
14845 _ASBOX
14846      ) | sed "s/^/$as_me: WARNING:     /" >&2
14847     ;;
14848 esac
14849 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14850 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14851 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14852   echo $ECHO_N "(cached) $ECHO_C" >&6
14853 else
14854   eval "$as_ac_Header=\$ac_header_preproc"
14855 fi
14856 ac_res=`eval echo '${'$as_ac_Header'}'`
14857                { echo "$as_me:$LINENO: result: $ac_res" >&5
14858 echo "${ECHO_T}$ac_res" >&6; }
14859
14860 fi
14861 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14862   cat >>confdefs.h <<_ACEOF
14863 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14864 _ACEOF
14865
14866 fi
14867
14868 done
14869
14870   if test $ac_cv_header_inttypes_h = yes; then
14871     { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
14872 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
14873 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
14874   echo $ECHO_N "(cached) $ECHO_C" >&6
14875 else
14876
14877         cat >conftest.$ac_ext <<_ACEOF
14878 /* confdefs.h.  */
14879 _ACEOF
14880 cat confdefs.h >>conftest.$ac_ext
14881 cat >>conftest.$ac_ext <<_ACEOF
14882 /* end confdefs.h.  */
14883 #include <inttypes.h>
14884 #ifdef PRId32
14885 char *p = PRId32;
14886 #endif
14887
14888 int
14889 main ()
14890 {
14891
14892   ;
14893   return 0;
14894 }
14895 _ACEOF
14896 rm -f conftest.$ac_objext
14897 if { (ac_try="$ac_compile"
14898 case "(($ac_try" in
14899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14900   *) ac_try_echo=$ac_try;;
14901 esac
14902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14903   (eval "$ac_compile") 2>conftest.er1
14904   ac_status=$?
14905   grep -v '^ *+' conftest.er1 >conftest.err
14906   rm -f conftest.er1
14907   cat conftest.err >&5
14908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14909   (exit $ac_status); } && {
14910          test -z "$ac_c_werror_flag" ||
14911          test ! -s conftest.err
14912        } && test -s conftest.$ac_objext; then
14913   gt_cv_inttypes_pri_broken=no
14914 else
14915   echo "$as_me: failed program was:" >&5
14916 sed 's/^/| /' conftest.$ac_ext >&5
14917
14918         gt_cv_inttypes_pri_broken=yes
14919 fi
14920
14921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14922
14923 fi
14924 { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
14925 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
14926   fi
14927   if test "$gt_cv_inttypes_pri_broken" = yes; then
14928
14929 cat >>confdefs.h <<_ACEOF
14930 #define PRI_MACROS_BROKEN 1
14931 _ACEOF
14932
14933     PRI_MACROS_BROKEN=1
14934   else
14935     PRI_MACROS_BROKEN=0
14936   fi
14937
14938
14939 { echo "$as_me:$LINENO: checking whether imaxabs is declared" >&5
14940 echo $ECHO_N "checking whether imaxabs is declared... $ECHO_C" >&6; }
14941 if test "${ac_cv_have_decl_imaxabs+set}" = set; then
14942   echo $ECHO_N "(cached) $ECHO_C" >&6
14943 else
14944   cat >conftest.$ac_ext <<_ACEOF
14945 /* confdefs.h.  */
14946 _ACEOF
14947 cat confdefs.h >>conftest.$ac_ext
14948 cat >>conftest.$ac_ext <<_ACEOF
14949 /* end confdefs.h.  */
14950 $ac_includes_default
14951 int
14952 main ()
14953 {
14954 #ifndef imaxabs
14955   (void) imaxabs;
14956 #endif
14957
14958   ;
14959   return 0;
14960 }
14961 _ACEOF
14962 rm -f conftest.$ac_objext
14963 if { (ac_try="$ac_compile"
14964 case "(($ac_try" in
14965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14966   *) ac_try_echo=$ac_try;;
14967 esac
14968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14969   (eval "$ac_compile") 2>conftest.er1
14970   ac_status=$?
14971   grep -v '^ *+' conftest.er1 >conftest.err
14972   rm -f conftest.er1
14973   cat conftest.err >&5
14974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14975   (exit $ac_status); } && {
14976          test -z "$ac_c_werror_flag" ||
14977          test ! -s conftest.err
14978        } && test -s conftest.$ac_objext; then
14979   ac_cv_have_decl_imaxabs=yes
14980 else
14981   echo "$as_me: failed program was:" >&5
14982 sed 's/^/| /' conftest.$ac_ext >&5
14983
14984         ac_cv_have_decl_imaxabs=no
14985 fi
14986
14987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14988 fi
14989 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_imaxabs" >&5
14990 echo "${ECHO_T}$ac_cv_have_decl_imaxabs" >&6; }
14991 if test $ac_cv_have_decl_imaxabs = yes; then
14992
14993 cat >>confdefs.h <<_ACEOF
14994 #define HAVE_DECL_IMAXABS 1
14995 _ACEOF
14996
14997
14998 else
14999   cat >>confdefs.h <<_ACEOF
15000 #define HAVE_DECL_IMAXABS 0
15001 _ACEOF
15002
15003
15004 fi
15005
15006
15007 { echo "$as_me:$LINENO: checking whether imaxdiv is declared" >&5
15008 echo $ECHO_N "checking whether imaxdiv is declared... $ECHO_C" >&6; }
15009 if test "${ac_cv_have_decl_imaxdiv+set}" = set; then
15010   echo $ECHO_N "(cached) $ECHO_C" >&6
15011 else
15012   cat >conftest.$ac_ext <<_ACEOF
15013 /* confdefs.h.  */
15014 _ACEOF
15015 cat confdefs.h >>conftest.$ac_ext
15016 cat >>conftest.$ac_ext <<_ACEOF
15017 /* end confdefs.h.  */
15018 $ac_includes_default
15019 int
15020 main ()
15021 {
15022 #ifndef imaxdiv
15023   (void) imaxdiv;
15024 #endif
15025
15026   ;
15027   return 0;
15028 }
15029 _ACEOF
15030 rm -f conftest.$ac_objext
15031 if { (ac_try="$ac_compile"
15032 case "(($ac_try" in
15033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15034   *) ac_try_echo=$ac_try;;
15035 esac
15036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15037   (eval "$ac_compile") 2>conftest.er1
15038   ac_status=$?
15039   grep -v '^ *+' conftest.er1 >conftest.err
15040   rm -f conftest.er1
15041   cat conftest.err >&5
15042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15043   (exit $ac_status); } && {
15044          test -z "$ac_c_werror_flag" ||
15045          test ! -s conftest.err
15046        } && test -s conftest.$ac_objext; then
15047   ac_cv_have_decl_imaxdiv=yes
15048 else
15049   echo "$as_me: failed program was:" >&5
15050 sed 's/^/| /' conftest.$ac_ext >&5
15051
15052         ac_cv_have_decl_imaxdiv=no
15053 fi
15054
15055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15056 fi
15057 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_imaxdiv" >&5
15058 echo "${ECHO_T}$ac_cv_have_decl_imaxdiv" >&6; }
15059 if test $ac_cv_have_decl_imaxdiv = yes; then
15060
15061 cat >>confdefs.h <<_ACEOF
15062 #define HAVE_DECL_IMAXDIV 1
15063 _ACEOF
15064
15065
15066 else
15067   cat >>confdefs.h <<_ACEOF
15068 #define HAVE_DECL_IMAXDIV 0
15069 _ACEOF
15070
15071
15072 fi
15073
15074
15075 { echo "$as_me:$LINENO: checking whether strtoimax is declared" >&5
15076 echo $ECHO_N "checking whether strtoimax is declared... $ECHO_C" >&6; }
15077 if test "${ac_cv_have_decl_strtoimax+set}" = set; then
15078   echo $ECHO_N "(cached) $ECHO_C" >&6
15079 else
15080   cat >conftest.$ac_ext <<_ACEOF
15081 /* confdefs.h.  */
15082 _ACEOF
15083 cat confdefs.h >>conftest.$ac_ext
15084 cat >>conftest.$ac_ext <<_ACEOF
15085 /* end confdefs.h.  */
15086 $ac_includes_default
15087 int
15088 main ()
15089 {
15090 #ifndef strtoimax
15091   (void) strtoimax;
15092 #endif
15093
15094   ;
15095   return 0;
15096 }
15097 _ACEOF
15098 rm -f conftest.$ac_objext
15099 if { (ac_try="$ac_compile"
15100 case "(($ac_try" in
15101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15102   *) ac_try_echo=$ac_try;;
15103 esac
15104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15105   (eval "$ac_compile") 2>conftest.er1
15106   ac_status=$?
15107   grep -v '^ *+' conftest.er1 >conftest.err
15108   rm -f conftest.er1
15109   cat conftest.err >&5
15110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15111   (exit $ac_status); } && {
15112          test -z "$ac_c_werror_flag" ||
15113          test ! -s conftest.err
15114        } && test -s conftest.$ac_objext; then
15115   ac_cv_have_decl_strtoimax=yes
15116 else
15117   echo "$as_me: failed program was:" >&5
15118 sed 's/^/| /' conftest.$ac_ext >&5
15119
15120         ac_cv_have_decl_strtoimax=no
15121 fi
15122
15123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15124 fi
15125 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoimax" >&5
15126 echo "${ECHO_T}$ac_cv_have_decl_strtoimax" >&6; }
15127 if test $ac_cv_have_decl_strtoimax = yes; then
15128
15129 cat >>confdefs.h <<_ACEOF
15130 #define HAVE_DECL_STRTOIMAX 1
15131 _ACEOF
15132
15133
15134 else
15135   cat >>confdefs.h <<_ACEOF
15136 #define HAVE_DECL_STRTOIMAX 0
15137 _ACEOF
15138
15139
15140 fi
15141
15142
15143 { echo "$as_me:$LINENO: checking whether strtoumax is declared" >&5
15144 echo $ECHO_N "checking whether strtoumax is declared... $ECHO_C" >&6; }
15145 if test "${ac_cv_have_decl_strtoumax+set}" = set; then
15146   echo $ECHO_N "(cached) $ECHO_C" >&6
15147 else
15148   cat >conftest.$ac_ext <<_ACEOF
15149 /* confdefs.h.  */
15150 _ACEOF
15151 cat confdefs.h >>conftest.$ac_ext
15152 cat >>conftest.$ac_ext <<_ACEOF
15153 /* end confdefs.h.  */
15154 $ac_includes_default
15155 int
15156 main ()
15157 {
15158 #ifndef strtoumax
15159   (void) strtoumax;
15160 #endif
15161
15162   ;
15163   return 0;
15164 }
15165 _ACEOF
15166 rm -f conftest.$ac_objext
15167 if { (ac_try="$ac_compile"
15168 case "(($ac_try" in
15169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15170   *) ac_try_echo=$ac_try;;
15171 esac
15172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15173   (eval "$ac_compile") 2>conftest.er1
15174   ac_status=$?
15175   grep -v '^ *+' conftest.er1 >conftest.err
15176   rm -f conftest.er1
15177   cat conftest.err >&5
15178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15179   (exit $ac_status); } && {
15180          test -z "$ac_c_werror_flag" ||
15181          test ! -s conftest.err
15182        } && test -s conftest.$ac_objext; then
15183   ac_cv_have_decl_strtoumax=yes
15184 else
15185   echo "$as_me: failed program was:" >&5
15186 sed 's/^/| /' conftest.$ac_ext >&5
15187
15188         ac_cv_have_decl_strtoumax=no
15189 fi
15190
15191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15192 fi
15193 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoumax" >&5
15194 echo "${ECHO_T}$ac_cv_have_decl_strtoumax" >&6; }
15195 if test $ac_cv_have_decl_strtoumax = yes; then
15196
15197 cat >>confdefs.h <<_ACEOF
15198 #define HAVE_DECL_STRTOUMAX 1
15199 _ACEOF
15200
15201
15202 else
15203   cat >>confdefs.h <<_ACEOF
15204 #define HAVE_DECL_STRTOUMAX 0
15205 _ACEOF
15206
15207
15208 fi
15209
15210
15211
15212   GNULIB_IMAXABS=0;
15213   GNULIB_IMAXDIV=0;
15214   GNULIB_STRTOIMAX=0;
15215   GNULIB_STRTOUMAX=0;
15216     HAVE_DECL_IMAXABS=1;
15217   HAVE_DECL_IMAXDIV=1;
15218   HAVE_DECL_STRTOIMAX=1;
15219   HAVE_DECL_STRTOUMAX=1;
15220
15221
15222
15223
15224   { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
15225 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
15226 if test "${am_cv_langinfo_codeset+set}" = set; then
15227   echo $ECHO_N "(cached) $ECHO_C" >&6
15228 else
15229   cat >conftest.$ac_ext <<_ACEOF
15230 /* confdefs.h.  */
15231 _ACEOF
15232 cat confdefs.h >>conftest.$ac_ext
15233 cat >>conftest.$ac_ext <<_ACEOF
15234 /* end confdefs.h.  */
15235 #include <langinfo.h>
15236 int
15237 main ()
15238 {
15239 char* cs = nl_langinfo(CODESET); return !cs;
15240   ;
15241   return 0;
15242 }
15243 _ACEOF
15244 rm -f conftest.$ac_objext conftest$ac_exeext
15245 if { (ac_try="$ac_link"
15246 case "(($ac_try" in
15247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15248   *) ac_try_echo=$ac_try;;
15249 esac
15250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15251   (eval "$ac_link") 2>conftest.er1
15252   ac_status=$?
15253   grep -v '^ *+' conftest.er1 >conftest.err
15254   rm -f conftest.er1
15255   cat conftest.err >&5
15256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15257   (exit $ac_status); } && {
15258          test -z "$ac_c_werror_flag" ||
15259          test ! -s conftest.err
15260        } && test -s conftest$ac_exeext &&
15261        $as_test_x conftest$ac_exeext; then
15262   am_cv_langinfo_codeset=yes
15263 else
15264   echo "$as_me: failed program was:" >&5
15265 sed 's/^/| /' conftest.$ac_ext >&5
15266
15267         am_cv_langinfo_codeset=no
15268 fi
15269
15270 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15271       conftest$ac_exeext conftest.$ac_ext
15272
15273 fi
15274 { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
15275 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
15276   if test $am_cv_langinfo_codeset = yes; then
15277
15278 cat >>confdefs.h <<\_ACEOF
15279 #define HAVE_LANGINFO_CODESET 1
15280 _ACEOF
15281
15282   fi
15283
15284
15285     { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
15286 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
15287 if test "${ac_cv_gnu_library_2_1+set}" = set; then
15288   echo $ECHO_N "(cached) $ECHO_C" >&6
15289 else
15290   cat >conftest.$ac_ext <<_ACEOF
15291 /* confdefs.h.  */
15292 _ACEOF
15293 cat confdefs.h >>conftest.$ac_ext
15294 cat >>conftest.$ac_ext <<_ACEOF
15295 /* end confdefs.h.  */
15296
15297 #include <features.h>
15298 #ifdef __GNU_LIBRARY__
15299  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
15300   Lucky GNU user
15301  #endif
15302 #endif
15303
15304 _ACEOF
15305 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15306   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
15307   ac_cv_gnu_library_2_1=yes
15308 else
15309   ac_cv_gnu_library_2_1=no
15310 fi
15311 rm -f conftest*
15312
15313
15314
15315 fi
15316 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
15317 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
15318
15319     GLIBC21="$ac_cv_gnu_library_2_1"
15320
15321
15322
15323   GNULIB_LCHMOD=0;
15324   GNULIB_LSTAT=0;
15325     HAVE_LCHMOD=1;
15326   REPLACE_LSTAT=0;
15327   REPLACE_MKDIR=0;
15328
15329
15330   { echo "$as_me:$LINENO: checking whether malloc, realloc, calloc are POSIX compliant" >&5
15331 echo $ECHO_N "checking whether malloc, realloc, calloc are POSIX compliant... $ECHO_C" >&6; }
15332 if test "${gl_cv_func_malloc_posix+set}" = set; then
15333   echo $ECHO_N "(cached) $ECHO_C" >&6
15334 else
15335
15336                         cat >conftest.$ac_ext <<_ACEOF
15337 /* confdefs.h.  */
15338 _ACEOF
15339 cat confdefs.h >>conftest.$ac_ext
15340 cat >>conftest.$ac_ext <<_ACEOF
15341 /* end confdefs.h.  */
15342
15343 int
15344 main ()
15345 {
15346 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
15347          choke me
15348          #endif
15349
15350   ;
15351   return 0;
15352 }
15353 _ACEOF
15354 rm -f conftest.$ac_objext
15355 if { (ac_try="$ac_compile"
15356 case "(($ac_try" in
15357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15358   *) ac_try_echo=$ac_try;;
15359 esac
15360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15361   (eval "$ac_compile") 2>conftest.er1
15362   ac_status=$?
15363   grep -v '^ *+' conftest.er1 >conftest.err
15364   rm -f conftest.er1
15365   cat conftest.err >&5
15366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15367   (exit $ac_status); } && {
15368          test -z "$ac_c_werror_flag" ||
15369          test ! -s conftest.err
15370        } && test -s conftest.$ac_objext; then
15371   gl_cv_func_malloc_posix=yes
15372 else
15373   echo "$as_me: failed program was:" >&5
15374 sed 's/^/| /' conftest.$ac_ext >&5
15375
15376         gl_cv_func_malloc_posix=no
15377 fi
15378
15379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15380
15381 fi
15382 { echo "$as_me:$LINENO: result: $gl_cv_func_malloc_posix" >&5
15383 echo "${ECHO_T}$gl_cv_func_malloc_posix" >&6; }
15384
15385
15386   GNULIB_MALLOC_POSIX=0;
15387   GNULIB_REALLOC_POSIX=0;
15388   GNULIB_CALLOC_POSIX=0;
15389   GNULIB_ATOLL=0;
15390   GNULIB_GETLOADAVG=0;
15391   GNULIB_GETSUBOPT=0;
15392   GNULIB_MKDTEMP=0;
15393   GNULIB_MKSTEMP=0;
15394   GNULIB_PUTENV=0;
15395   GNULIB_RANDOM_R=0;
15396   GNULIB_RPMATCH=0;
15397   GNULIB_SETENV=0;
15398   GNULIB_STRTOD=0;
15399   GNULIB_STRTOLL=0;
15400   GNULIB_STRTOULL=0;
15401   GNULIB_UNSETENV=0;
15402     HAVE_ATOLL=1;
15403   HAVE_CALLOC_POSIX=1;
15404   HAVE_GETSUBOPT=1;
15405   HAVE_MALLOC_POSIX=1;
15406   HAVE_MKDTEMP=1;
15407   HAVE_REALLOC_POSIX=1;
15408   HAVE_RANDOM_R=1;
15409   HAVE_RPMATCH=1;
15410   HAVE_SETENV=1;
15411   HAVE_STRTOD=1;
15412   HAVE_STRTOLL=1;
15413   HAVE_STRTOULL=1;
15414   HAVE_STRUCT_RANDOM_DATA=1;
15415   HAVE_SYS_LOADAVG_H=0;
15416   HAVE_UNSETENV=1;
15417   HAVE_DECL_GETLOADAVG=1;
15418   REPLACE_MKSTEMP=0;
15419   REPLACE_PUTENV=0;
15420   REPLACE_STRTOD=0;
15421   VOID_UNSETENV=0;
15422
15423
15424
15425 for ac_header in stdlib.h
15426 do
15427 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15428 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15429   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15430 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15431 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15432   echo $ECHO_N "(cached) $ECHO_C" >&6
15433 fi
15434 ac_res=`eval echo '${'$as_ac_Header'}'`
15435                { echo "$as_me:$LINENO: result: $ac_res" >&5
15436 echo "${ECHO_T}$ac_res" >&6; }
15437 else
15438   # Is the header compilable?
15439 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15440 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15441 cat >conftest.$ac_ext <<_ACEOF
15442 /* confdefs.h.  */
15443 _ACEOF
15444 cat confdefs.h >>conftest.$ac_ext
15445 cat >>conftest.$ac_ext <<_ACEOF
15446 /* end confdefs.h.  */
15447 $ac_includes_default
15448 #include <$ac_header>
15449 _ACEOF
15450 rm -f conftest.$ac_objext
15451 if { (ac_try="$ac_compile"
15452 case "(($ac_try" in
15453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15454   *) ac_try_echo=$ac_try;;
15455 esac
15456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15457   (eval "$ac_compile") 2>conftest.er1
15458   ac_status=$?
15459   grep -v '^ *+' conftest.er1 >conftest.err
15460   rm -f conftest.er1
15461   cat conftest.err >&5
15462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15463   (exit $ac_status); } && {
15464          test -z "$ac_c_werror_flag" ||
15465          test ! -s conftest.err
15466        } && test -s conftest.$ac_objext; then
15467   ac_header_compiler=yes
15468 else
15469   echo "$as_me: failed program was:" >&5
15470 sed 's/^/| /' conftest.$ac_ext >&5
15471
15472         ac_header_compiler=no
15473 fi
15474
15475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15476 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15477 echo "${ECHO_T}$ac_header_compiler" >&6; }
15478
15479 # Is the header present?
15480 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15481 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15482 cat >conftest.$ac_ext <<_ACEOF
15483 /* confdefs.h.  */
15484 _ACEOF
15485 cat confdefs.h >>conftest.$ac_ext
15486 cat >>conftest.$ac_ext <<_ACEOF
15487 /* end confdefs.h.  */
15488 #include <$ac_header>
15489 _ACEOF
15490 if { (ac_try="$ac_cpp conftest.$ac_ext"
15491 case "(($ac_try" in
15492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15493   *) ac_try_echo=$ac_try;;
15494 esac
15495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15496   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15497   ac_status=$?
15498   grep -v '^ *+' conftest.er1 >conftest.err
15499   rm -f conftest.er1
15500   cat conftest.err >&5
15501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15502   (exit $ac_status); } >/dev/null && {
15503          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15504          test ! -s conftest.err
15505        }; then
15506   ac_header_preproc=yes
15507 else
15508   echo "$as_me: failed program was:" >&5
15509 sed 's/^/| /' conftest.$ac_ext >&5
15510
15511   ac_header_preproc=no
15512 fi
15513
15514 rm -f conftest.err conftest.$ac_ext
15515 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15516 echo "${ECHO_T}$ac_header_preproc" >&6; }
15517
15518 # So?  What about this header?
15519 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15520   yes:no: )
15521     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15522 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15523     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15524 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15525     ac_header_preproc=yes
15526     ;;
15527   no:yes:* )
15528     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15529 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15530     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15531 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15532     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15533 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15534     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15535 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15536     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15537 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15538     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15539 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15540     ( cat <<\_ASBOX
15541 ## ------------------------------ ##
15542 ## Report this to bug-tar@gnu.org ##
15543 ## ------------------------------ ##
15544 _ASBOX
15545      ) | sed "s/^/$as_me: WARNING:     /" >&2
15546     ;;
15547 esac
15548 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15549 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15550 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15551   echo $ECHO_N "(cached) $ECHO_C" >&6
15552 else
15553   eval "$as_ac_Header=\$ac_header_preproc"
15554 fi
15555 ac_res=`eval echo '${'$as_ac_Header'}'`
15556                { echo "$as_me:$LINENO: result: $ac_res" >&5
15557 echo "${ECHO_T}$ac_res" >&6; }
15558
15559 fi
15560 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15561   cat >>confdefs.h <<_ACEOF
15562 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15563 _ACEOF
15564
15565 fi
15566
15567 done
15568
15569 { echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
15570 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; }
15571 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
15572   echo $ECHO_N "(cached) $ECHO_C" >&6
15573 else
15574   if test "$cross_compiling" = yes; then
15575   ac_cv_func_malloc_0_nonnull=no
15576 else
15577   cat >conftest.$ac_ext <<_ACEOF
15578 /* confdefs.h.  */
15579 _ACEOF
15580 cat confdefs.h >>conftest.$ac_ext
15581 cat >>conftest.$ac_ext <<_ACEOF
15582 /* end confdefs.h.  */
15583 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
15584 # include <stdlib.h>
15585 #else
15586 char *malloc ();
15587 #endif
15588
15589 int
15590 main ()
15591 {
15592 return ! malloc (0);
15593   ;
15594   return 0;
15595 }
15596 _ACEOF
15597 rm -f conftest$ac_exeext
15598 if { (ac_try="$ac_link"
15599 case "(($ac_try" in
15600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15601   *) ac_try_echo=$ac_try;;
15602 esac
15603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15604   (eval "$ac_link") 2>&5
15605   ac_status=$?
15606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15607   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15608   { (case "(($ac_try" in
15609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15610   *) ac_try_echo=$ac_try;;
15611 esac
15612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15613   (eval "$ac_try") 2>&5
15614   ac_status=$?
15615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15616   (exit $ac_status); }; }; then
15617   ac_cv_func_malloc_0_nonnull=yes
15618 else
15619   echo "$as_me: program exited with status $ac_status" >&5
15620 echo "$as_me: failed program was:" >&5
15621 sed 's/^/| /' conftest.$ac_ext >&5
15622
15623 ( exit $ac_status )
15624 ac_cv_func_malloc_0_nonnull=no
15625 fi
15626 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15627 fi
15628
15629
15630 fi
15631 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
15632 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
15633 if test $ac_cv_func_malloc_0_nonnull = yes; then
15634   gl_cv_func_malloc_0_nonnull=1
15635 else
15636   gl_cv_func_malloc_0_nonnull=0
15637 fi
15638
15639
15640
15641 cat >>confdefs.h <<_ACEOF
15642 #define MALLOC_0_IS_NONNULL $gl_cv_func_malloc_0_nonnull
15643 _ACEOF
15644
15645
15646
15647     { echo "$as_me:$LINENO: checking whether mbrtowc and mbstate_t are properly declared" >&5
15648 echo $ECHO_N "checking whether mbrtowc and mbstate_t are properly declared... $ECHO_C" >&6; }
15649 if test "${gl_cv_func_mbrtowc+set}" = set; then
15650   echo $ECHO_N "(cached) $ECHO_C" >&6
15651 else
15652   cat >conftest.$ac_ext <<_ACEOF
15653 /* confdefs.h.  */
15654 _ACEOF
15655 cat confdefs.h >>conftest.$ac_ext
15656 cat >>conftest.$ac_ext <<_ACEOF
15657 /* end confdefs.h.  */
15658 #include <wchar.h>
15659 int
15660 main ()
15661 {
15662 wchar_t wc;
15663               char const s[] = "";
15664               size_t n = 1;
15665               mbstate_t state;
15666               return ! (sizeof state && (mbrtowc) (&wc, s, n, &state));
15667   ;
15668   return 0;
15669 }
15670 _ACEOF
15671 rm -f conftest.$ac_objext conftest$ac_exeext
15672 if { (ac_try="$ac_link"
15673 case "(($ac_try" in
15674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15675   *) ac_try_echo=$ac_try;;
15676 esac
15677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15678   (eval "$ac_link") 2>conftest.er1
15679   ac_status=$?
15680   grep -v '^ *+' conftest.er1 >conftest.err
15681   rm -f conftest.er1
15682   cat conftest.err >&5
15683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15684   (exit $ac_status); } && {
15685          test -z "$ac_c_werror_flag" ||
15686          test ! -s conftest.err
15687        } && test -s conftest$ac_exeext &&
15688        $as_test_x conftest$ac_exeext; then
15689   gl_cv_func_mbrtowc=yes
15690 else
15691   echo "$as_me: failed program was:" >&5
15692 sed 's/^/| /' conftest.$ac_ext >&5
15693
15694         gl_cv_func_mbrtowc=no
15695 fi
15696
15697 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15698       conftest$ac_exeext conftest.$ac_ext
15699 fi
15700 { echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc" >&5
15701 echo "${ECHO_T}$gl_cv_func_mbrtowc" >&6; }
15702   if test $gl_cv_func_mbrtowc = yes; then
15703
15704 cat >>confdefs.h <<\_ACEOF
15705 #define HAVE_MBRTOWC 1
15706 _ACEOF
15707
15708   fi
15709
15710
15711   GNULIB_MEMMEM=0;
15712   GNULIB_MEMPCPY=0;
15713   GNULIB_MEMRCHR=0;
15714   GNULIB_RAWMEMCHR=0;
15715   GNULIB_STPCPY=0;
15716   GNULIB_STPNCPY=0;
15717   GNULIB_STRCHRNUL=0;
15718   GNULIB_STRDUP=0;
15719   GNULIB_STRNDUP=0;
15720   GNULIB_STRNLEN=0;
15721   GNULIB_STRPBRK=0;
15722   GNULIB_STRSEP=0;
15723   GNULIB_STRSTR=0;
15724   GNULIB_STRCASESTR=0;
15725   GNULIB_STRTOK_R=0;
15726   GNULIB_MBSLEN=0;
15727   GNULIB_MBSNLEN=0;
15728   GNULIB_MBSCHR=0;
15729   GNULIB_MBSRCHR=0;
15730   GNULIB_MBSSTR=0;
15731   GNULIB_MBSCASECMP=0;
15732   GNULIB_MBSNCASECMP=0;
15733   GNULIB_MBSPCASECMP=0;
15734   GNULIB_MBSCASESTR=0;
15735   GNULIB_MBSCSPN=0;
15736   GNULIB_MBSPBRK=0;
15737   GNULIB_MBSSPN=0;
15738   GNULIB_MBSSEP=0;
15739   GNULIB_MBSTOK_R=0;
15740   GNULIB_STRERROR=0;
15741   GNULIB_STRSIGNAL=0;
15742   GNULIB_STRVERSCMP=0;
15743     HAVE_DECL_MEMMEM=1;
15744   HAVE_MEMPCPY=1;
15745   HAVE_DECL_MEMRCHR=1;
15746   HAVE_RAWMEMCHR=1;
15747   HAVE_STPCPY=1;
15748   HAVE_STPNCPY=1;
15749   HAVE_STRCHRNUL=1;
15750   HAVE_DECL_STRDUP=1;
15751   HAVE_STRNDUP=1;
15752   HAVE_DECL_STRNDUP=1;
15753   HAVE_DECL_STRNLEN=1;
15754   HAVE_STRPBRK=1;
15755   HAVE_STRSEP=1;
15756   HAVE_STRCASESTR=1;
15757   HAVE_DECL_STRTOK_R=1;
15758   HAVE_DECL_STRERROR=1;
15759   HAVE_DECL_STRSIGNAL=1;
15760   HAVE_STRVERSCMP=1;
15761   REPLACE_MEMMEM=0;
15762   REPLACE_STRDUP=0;
15763   REPLACE_STRSTR=0;
15764   REPLACE_STRCASESTR=0;
15765   REPLACE_STRERROR=0;
15766   REPLACE_STRSIGNAL=0;
15767
15768 { echo "$as_me:$LINENO: checking whether memrchr is declared" >&5
15769 echo $ECHO_N "checking whether memrchr is declared... $ECHO_C" >&6; }
15770 if test "${ac_cv_have_decl_memrchr+set}" = set; then
15771   echo $ECHO_N "(cached) $ECHO_C" >&6
15772 else
15773   cat >conftest.$ac_ext <<_ACEOF
15774 /* confdefs.h.  */
15775 _ACEOF
15776 cat confdefs.h >>conftest.$ac_ext
15777 cat >>conftest.$ac_ext <<_ACEOF
15778 /* end confdefs.h.  */
15779 $ac_includes_default
15780 int
15781 main ()
15782 {
15783 #ifndef memrchr
15784   (void) memrchr;
15785 #endif
15786
15787   ;
15788   return 0;
15789 }
15790 _ACEOF
15791 rm -f conftest.$ac_objext
15792 if { (ac_try="$ac_compile"
15793 case "(($ac_try" in
15794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15795   *) ac_try_echo=$ac_try;;
15796 esac
15797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15798   (eval "$ac_compile") 2>conftest.er1
15799   ac_status=$?
15800   grep -v '^ *+' conftest.er1 >conftest.err
15801   rm -f conftest.er1
15802   cat conftest.err >&5
15803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15804   (exit $ac_status); } && {
15805          test -z "$ac_c_werror_flag" ||
15806          test ! -s conftest.err
15807        } && test -s conftest.$ac_objext; then
15808   ac_cv_have_decl_memrchr=yes
15809 else
15810   echo "$as_me: failed program was:" >&5
15811 sed 's/^/| /' conftest.$ac_ext >&5
15812
15813         ac_cv_have_decl_memrchr=no
15814 fi
15815
15816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15817 fi
15818 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_memrchr" >&5
15819 echo "${ECHO_T}$ac_cv_have_decl_memrchr" >&6; }
15820 if test $ac_cv_have_decl_memrchr = yes; then
15821
15822 cat >>confdefs.h <<_ACEOF
15823 #define HAVE_DECL_MEMRCHR 1
15824 _ACEOF
15825
15826
15827 else
15828   cat >>confdefs.h <<_ACEOF
15829 #define HAVE_DECL_MEMRCHR 0
15830 _ACEOF
15831
15832
15833 fi
15834
15835
15836
15837
15838
15839
15840
15841
15842
15843
15844
15845
15846
15847
15848
15849
15850
15851
15852 { echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
15853 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6; }
15854 if test "${ac_cv_have_decl_snprintf+set}" = set; then
15855   echo $ECHO_N "(cached) $ECHO_C" >&6
15856 else
15857   cat >conftest.$ac_ext <<_ACEOF
15858 /* confdefs.h.  */
15859 _ACEOF
15860 cat confdefs.h >>conftest.$ac_ext
15861 cat >>conftest.$ac_ext <<_ACEOF
15862 /* end confdefs.h.  */
15863 $ac_includes_default
15864 int
15865 main ()
15866 {
15867 #ifndef snprintf
15868   (void) snprintf;
15869 #endif
15870
15871   ;
15872   return 0;
15873 }
15874 _ACEOF
15875 rm -f conftest.$ac_objext
15876 if { (ac_try="$ac_compile"
15877 case "(($ac_try" in
15878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15879   *) ac_try_echo=$ac_try;;
15880 esac
15881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15882   (eval "$ac_compile") 2>conftest.er1
15883   ac_status=$?
15884   grep -v '^ *+' conftest.er1 >conftest.err
15885   rm -f conftest.er1
15886   cat conftest.err >&5
15887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15888   (exit $ac_status); } && {
15889          test -z "$ac_c_werror_flag" ||
15890          test ! -s conftest.err
15891        } && test -s conftest.$ac_objext; then
15892   ac_cv_have_decl_snprintf=yes
15893 else
15894   echo "$as_me: failed program was:" >&5
15895 sed 's/^/| /' conftest.$ac_ext >&5
15896
15897         ac_cv_have_decl_snprintf=no
15898 fi
15899
15900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15901 fi
15902 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
15903 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6; }
15904 if test $ac_cv_have_decl_snprintf = yes; then
15905
15906 cat >>confdefs.h <<_ACEOF
15907 #define HAVE_DECL_SNPRINTF 1
15908 _ACEOF
15909
15910
15911 else
15912   cat >>confdefs.h <<_ACEOF
15913 #define HAVE_DECL_SNPRINTF 0
15914 _ACEOF
15915
15916
15917 fi
15918
15919
15920
15921
15922
15923
15924
15925
15926
15927     HAVE_STRCASECMP=1;
15928   HAVE_DECL_STRNCASECMP=1;
15929
15930 { echo "$as_me:$LINENO: checking whether strdup is declared" >&5
15931 echo $ECHO_N "checking whether strdup is declared... $ECHO_C" >&6; }
15932 if test "${ac_cv_have_decl_strdup+set}" = set; then
15933   echo $ECHO_N "(cached) $ECHO_C" >&6
15934 else
15935   cat >conftest.$ac_ext <<_ACEOF
15936 /* confdefs.h.  */
15937 _ACEOF
15938 cat confdefs.h >>conftest.$ac_ext
15939 cat >>conftest.$ac_ext <<_ACEOF
15940 /* end confdefs.h.  */
15941 $ac_includes_default
15942 int
15943 main ()
15944 {
15945 #ifndef strdup
15946   (void) strdup;
15947 #endif
15948
15949   ;
15950   return 0;
15951 }
15952 _ACEOF
15953 rm -f conftest.$ac_objext
15954 if { (ac_try="$ac_compile"
15955 case "(($ac_try" in
15956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15957   *) ac_try_echo=$ac_try;;
15958 esac
15959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15960   (eval "$ac_compile") 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          test -z "$ac_c_werror_flag" ||
15968          test ! -s conftest.err
15969        } && test -s conftest.$ac_objext; then
15970   ac_cv_have_decl_strdup=yes
15971 else
15972   echo "$as_me: failed program was:" >&5
15973 sed 's/^/| /' conftest.$ac_ext >&5
15974
15975         ac_cv_have_decl_strdup=no
15976 fi
15977
15978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15979 fi
15980 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strdup" >&5
15981 echo "${ECHO_T}$ac_cv_have_decl_strdup" >&6; }
15982 if test $ac_cv_have_decl_strdup = yes; then
15983
15984 cat >>confdefs.h <<_ACEOF
15985 #define HAVE_DECL_STRDUP 1
15986 _ACEOF
15987
15988
15989 else
15990   cat >>confdefs.h <<_ACEOF
15991 #define HAVE_DECL_STRDUP 0
15992 _ACEOF
15993
15994
15995 fi
15996
15997
15998
15999
16000
16001
16002
16003   if test -z "$ERRNO_H"; then
16004     { echo "$as_me:$LINENO: checking for working strerror function" >&5
16005 echo $ECHO_N "checking for working strerror function... $ECHO_C" >&6; }
16006 if test "${gl_cv_func_working_strerror+set}" = set; then
16007   echo $ECHO_N "(cached) $ECHO_C" >&6
16008 else
16009   if test "$cross_compiling" = yes; then
16010            cat >conftest.$ac_ext <<_ACEOF
16011 /* confdefs.h.  */
16012 _ACEOF
16013 cat confdefs.h >>conftest.$ac_ext
16014 cat >>conftest.$ac_ext <<_ACEOF
16015 /* end confdefs.h.  */
16016 #include <string.h>
16017
16018 int
16019 main ()
16020 {
16021 return !*strerror (-2);
16022   ;
16023   return 0;
16024 }
16025 _ACEOF
16026 rm -f conftest.$ac_objext
16027 if { (ac_try="$ac_compile"
16028 case "(($ac_try" in
16029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16030   *) ac_try_echo=$ac_try;;
16031 esac
16032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16033   (eval "$ac_compile") 2>conftest.er1
16034   ac_status=$?
16035   grep -v '^ *+' conftest.er1 >conftest.err
16036   rm -f conftest.er1
16037   cat conftest.err >&5
16038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16039   (exit $ac_status); } && {
16040          test -z "$ac_c_werror_flag" ||
16041          test ! -s conftest.err
16042        } && test -s conftest.$ac_objext; then
16043   gl_cv_func_working_strerror=yes
16044 else
16045   echo "$as_me: failed program was:" >&5
16046 sed 's/^/| /' conftest.$ac_ext >&5
16047
16048         gl_cv_func_working_strerror=no
16049 fi
16050
16051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16052
16053 else
16054   cat >conftest.$ac_ext <<_ACEOF
16055 /* confdefs.h.  */
16056 _ACEOF
16057 cat confdefs.h >>conftest.$ac_ext
16058 cat >>conftest.$ac_ext <<_ACEOF
16059 /* end confdefs.h.  */
16060 #include <string.h>
16061
16062 int
16063 main ()
16064 {
16065 return !*strerror (-2);
16066   ;
16067   return 0;
16068 }
16069 _ACEOF
16070 rm -f conftest$ac_exeext
16071 if { (ac_try="$ac_link"
16072 case "(($ac_try" in
16073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16074   *) ac_try_echo=$ac_try;;
16075 esac
16076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16077   (eval "$ac_link") 2>&5
16078   ac_status=$?
16079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16080   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16081   { (case "(($ac_try" in
16082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16083   *) ac_try_echo=$ac_try;;
16084 esac
16085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16086   (eval "$ac_try") 2>&5
16087   ac_status=$?
16088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16089   (exit $ac_status); }; }; then
16090   gl_cv_func_working_strerror=yes
16091 else
16092   echo "$as_me: program exited with status $ac_status" >&5
16093 echo "$as_me: failed program was:" >&5
16094 sed 's/^/| /' conftest.$ac_ext >&5
16095
16096 ( exit $ac_status )
16097 gl_cv_func_working_strerror=no
16098 fi
16099 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16100 fi
16101
16102
16103
16104 fi
16105 { echo "$as_me:$LINENO: result: $gl_cv_func_working_strerror" >&5
16106 echo "${ECHO_T}$gl_cv_func_working_strerror" >&6; }
16107     if test $gl_cv_func_working_strerror = no; then
16108                   REPLACE_STRERROR=1
16109     fi
16110   else
16111             REPLACE_STRERROR=1
16112   fi
16113   if test $REPLACE_STRERROR = 1; then
16114
16115   { echo "$as_me:$LINENO: checking whether strerror is declared" >&5
16116 echo $ECHO_N "checking whether strerror is declared... $ECHO_C" >&6; }
16117 if test "${ac_cv_have_decl_strerror+set}" = set; then
16118   echo $ECHO_N "(cached) $ECHO_C" >&6
16119 else
16120   cat >conftest.$ac_ext <<_ACEOF
16121 /* confdefs.h.  */
16122 _ACEOF
16123 cat confdefs.h >>conftest.$ac_ext
16124 cat >>conftest.$ac_ext <<_ACEOF
16125 /* end confdefs.h.  */
16126 $ac_includes_default
16127 int
16128 main ()
16129 {
16130 #ifndef strerror
16131   (void) strerror;
16132 #endif
16133
16134   ;
16135   return 0;
16136 }
16137 _ACEOF
16138 rm -f conftest.$ac_objext
16139 if { (ac_try="$ac_compile"
16140 case "(($ac_try" in
16141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16142   *) ac_try_echo=$ac_try;;
16143 esac
16144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16145   (eval "$ac_compile") 2>conftest.er1
16146   ac_status=$?
16147   grep -v '^ *+' conftest.er1 >conftest.err
16148   rm -f conftest.er1
16149   cat conftest.err >&5
16150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16151   (exit $ac_status); } && {
16152          test -z "$ac_c_werror_flag" ||
16153          test ! -s conftest.err
16154        } && test -s conftest.$ac_objext; then
16155   ac_cv_have_decl_strerror=yes
16156 else
16157   echo "$as_me: failed program was:" >&5
16158 sed 's/^/| /' conftest.$ac_ext >&5
16159
16160         ac_cv_have_decl_strerror=no
16161 fi
16162
16163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16164 fi
16165 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror" >&5
16166 echo "${ECHO_T}$ac_cv_have_decl_strerror" >&6; }
16167 if test $ac_cv_have_decl_strerror = yes; then
16168
16169 cat >>confdefs.h <<_ACEOF
16170 #define HAVE_DECL_STRERROR 1
16171 _ACEOF
16172
16173
16174 else
16175   cat >>confdefs.h <<_ACEOF
16176 #define HAVE_DECL_STRERROR 0
16177 _ACEOF
16178
16179
16180 fi
16181
16182
16183
16184
16185
16186
16187
16188
16189   if test $ac_cv_header_sys_socket_h != yes; then
16190
16191 for ac_header in winsock2.h
16192 do
16193 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16194 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16195   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16196 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16197 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16198   echo $ECHO_N "(cached) $ECHO_C" >&6
16199 fi
16200 ac_res=`eval echo '${'$as_ac_Header'}'`
16201                { echo "$as_me:$LINENO: result: $ac_res" >&5
16202 echo "${ECHO_T}$ac_res" >&6; }
16203 else
16204   # Is the header compilable?
16205 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16206 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16207 cat >conftest.$ac_ext <<_ACEOF
16208 /* confdefs.h.  */
16209 _ACEOF
16210 cat confdefs.h >>conftest.$ac_ext
16211 cat >>conftest.$ac_ext <<_ACEOF
16212 /* end confdefs.h.  */
16213 $ac_includes_default
16214 #include <$ac_header>
16215 _ACEOF
16216 rm -f conftest.$ac_objext
16217 if { (ac_try="$ac_compile"
16218 case "(($ac_try" in
16219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16220   *) ac_try_echo=$ac_try;;
16221 esac
16222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16223   (eval "$ac_compile") 2>conftest.er1
16224   ac_status=$?
16225   grep -v '^ *+' conftest.er1 >conftest.err
16226   rm -f conftest.er1
16227   cat conftest.err >&5
16228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16229   (exit $ac_status); } && {
16230          test -z "$ac_c_werror_flag" ||
16231          test ! -s conftest.err
16232        } && test -s conftest.$ac_objext; then
16233   ac_header_compiler=yes
16234 else
16235   echo "$as_me: failed program was:" >&5
16236 sed 's/^/| /' conftest.$ac_ext >&5
16237
16238         ac_header_compiler=no
16239 fi
16240
16241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16242 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16243 echo "${ECHO_T}$ac_header_compiler" >&6; }
16244
16245 # Is the header present?
16246 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16247 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16248 cat >conftest.$ac_ext <<_ACEOF
16249 /* confdefs.h.  */
16250 _ACEOF
16251 cat confdefs.h >>conftest.$ac_ext
16252 cat >>conftest.$ac_ext <<_ACEOF
16253 /* end confdefs.h.  */
16254 #include <$ac_header>
16255 _ACEOF
16256 if { (ac_try="$ac_cpp conftest.$ac_ext"
16257 case "(($ac_try" in
16258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16259   *) ac_try_echo=$ac_try;;
16260 esac
16261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16262   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16263   ac_status=$?
16264   grep -v '^ *+' conftest.er1 >conftest.err
16265   rm -f conftest.er1
16266   cat conftest.err >&5
16267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16268   (exit $ac_status); } >/dev/null && {
16269          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16270          test ! -s conftest.err
16271        }; then
16272   ac_header_preproc=yes
16273 else
16274   echo "$as_me: failed program was:" >&5
16275 sed 's/^/| /' conftest.$ac_ext >&5
16276
16277   ac_header_preproc=no
16278 fi
16279
16280 rm -f conftest.err conftest.$ac_ext
16281 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16282 echo "${ECHO_T}$ac_header_preproc" >&6; }
16283
16284 # So?  What about this header?
16285 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16286   yes:no: )
16287     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16288 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16289     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16290 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16291     ac_header_preproc=yes
16292     ;;
16293   no:yes:* )
16294     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16295 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16296     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16297 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16298     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16299 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16300     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16301 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16302     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16303 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16304     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16305 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16306     ( cat <<\_ASBOX
16307 ## ------------------------------ ##
16308 ## Report this to bug-tar@gnu.org ##
16309 ## ------------------------------ ##
16310 _ASBOX
16311      ) | sed "s/^/$as_me: WARNING:     /" >&2
16312     ;;
16313 esac
16314 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16315 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16316 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16317   echo $ECHO_N "(cached) $ECHO_C" >&6
16318 else
16319   eval "$as_ac_Header=\$ac_header_preproc"
16320 fi
16321 ac_res=`eval echo '${'$as_ac_Header'}'`
16322                { echo "$as_me:$LINENO: result: $ac_res" >&5
16323 echo "${ECHO_T}$ac_res" >&6; }
16324
16325 fi
16326 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16327   cat >>confdefs.h <<_ACEOF
16328 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16329 _ACEOF
16330
16331 fi
16332
16333 done
16334
16335   fi
16336
16337   fi
16338
16339
16340
16341
16342
16343
16344
16345
16346
16347
16348
16349
16350
16351
16352      if test $gl_cv_have_include_next = yes; then
16353        gl_cv_next_string_h='<'string.h'>'
16354      else
16355        { echo "$as_me:$LINENO: checking absolute name of <string.h>" >&5
16356 echo $ECHO_N "checking absolute name of <string.h>... $ECHO_C" >&6; }
16357 if test "${gl_cv_next_string_h+set}" = set; then
16358   echo $ECHO_N "(cached) $ECHO_C" >&6
16359 else
16360
16361           if test $ac_cv_header_string_h = yes; then
16362             cat >conftest.$ac_ext <<_ACEOF
16363 /* confdefs.h.  */
16364 _ACEOF
16365 cat confdefs.h >>conftest.$ac_ext
16366 cat >>conftest.$ac_ext <<_ACEOF
16367 /* end confdefs.h.  */
16368 #include <string.h>
16369
16370 _ACEOF
16371                                     gl_cv_next_string_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16372                sed -n '\#/string.h#{
16373                  s#.*"\(.*/string.h\)".*#\1#
16374                  s#^/[^/]#//&#
16375                  p
16376                  q
16377                }'`'"'
16378           else
16379             gl_cv_next_string_h='<'string.h'>'
16380           fi
16381
16382 fi
16383 { echo "$as_me:$LINENO: result: $gl_cv_next_string_h" >&5
16384 echo "${ECHO_T}$gl_cv_next_string_h" >&6; }
16385      fi
16386      NEXT_STRING_H=$gl_cv_next_string_h
16387
16388
16389
16390
16391
16392
16393
16394
16395
16396
16397
16398
16399
16400
16401
16402
16403
16404
16405      if test $gl_cv_have_include_next = yes; then
16406        gl_cv_next_strings_h='<'strings.h'>'
16407      else
16408        { echo "$as_me:$LINENO: checking absolute name of <strings.h>" >&5
16409 echo $ECHO_N "checking absolute name of <strings.h>... $ECHO_C" >&6; }
16410 if test "${gl_cv_next_strings_h+set}" = set; then
16411   echo $ECHO_N "(cached) $ECHO_C" >&6
16412 else
16413
16414           if test $ac_cv_header_strings_h = yes; then
16415             cat >conftest.$ac_ext <<_ACEOF
16416 /* confdefs.h.  */
16417 _ACEOF
16418 cat confdefs.h >>conftest.$ac_ext
16419 cat >>conftest.$ac_ext <<_ACEOF
16420 /* end confdefs.h.  */
16421 #include <strings.h>
16422
16423 _ACEOF
16424                                     gl_cv_next_strings_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16425                sed -n '\#/strings.h#{
16426                  s#.*"\(.*/strings.h\)".*#\1#
16427                  s#^/[^/]#//&#
16428                  p
16429                  q
16430                }'`'"'
16431           else
16432             gl_cv_next_strings_h='<'strings.h'>'
16433           fi
16434
16435 fi
16436 { echo "$as_me:$LINENO: result: $gl_cv_next_strings_h" >&5
16437 echo "${ECHO_T}$gl_cv_next_strings_h" >&6; }
16438      fi
16439      NEXT_STRINGS_H=$gl_cv_next_strings_h
16440
16441
16442
16443
16444 { echo "$as_me:$LINENO: checking whether strndup is declared" >&5
16445 echo $ECHO_N "checking whether strndup is declared... $ECHO_C" >&6; }
16446 if test "${ac_cv_have_decl_strndup+set}" = set; then
16447   echo $ECHO_N "(cached) $ECHO_C" >&6
16448 else
16449   cat >conftest.$ac_ext <<_ACEOF
16450 /* confdefs.h.  */
16451 _ACEOF
16452 cat confdefs.h >>conftest.$ac_ext
16453 cat >>conftest.$ac_ext <<_ACEOF
16454 /* end confdefs.h.  */
16455 $ac_includes_default
16456 int
16457 main ()
16458 {
16459 #ifndef strndup
16460   (void) strndup;
16461 #endif
16462
16463   ;
16464   return 0;
16465 }
16466 _ACEOF
16467 rm -f conftest.$ac_objext
16468 if { (ac_try="$ac_compile"
16469 case "(($ac_try" in
16470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16471   *) ac_try_echo=$ac_try;;
16472 esac
16473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16474   (eval "$ac_compile") 2>conftest.er1
16475   ac_status=$?
16476   grep -v '^ *+' conftest.er1 >conftest.err
16477   rm -f conftest.er1
16478   cat conftest.err >&5
16479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16480   (exit $ac_status); } && {
16481          test -z "$ac_c_werror_flag" ||
16482          test ! -s conftest.err
16483        } && test -s conftest.$ac_objext; then
16484   ac_cv_have_decl_strndup=yes
16485 else
16486   echo "$as_me: failed program was:" >&5
16487 sed 's/^/| /' conftest.$ac_ext >&5
16488
16489         ac_cv_have_decl_strndup=no
16490 fi
16491
16492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16493 fi
16494 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strndup" >&5
16495 echo "${ECHO_T}$ac_cv_have_decl_strndup" >&6; }
16496 if test $ac_cv_have_decl_strndup = yes; then
16497
16498 cat >>confdefs.h <<_ACEOF
16499 #define HAVE_DECL_STRNDUP 1
16500 _ACEOF
16501
16502
16503 else
16504   cat >>confdefs.h <<_ACEOF
16505 #define HAVE_DECL_STRNDUP 0
16506 _ACEOF
16507
16508
16509 fi
16510
16511
16512 { echo "$as_me:$LINENO: checking whether strnlen is declared" >&5
16513 echo $ECHO_N "checking whether strnlen is declared... $ECHO_C" >&6; }
16514 if test "${ac_cv_have_decl_strnlen+set}" = set; then
16515   echo $ECHO_N "(cached) $ECHO_C" >&6
16516 else
16517   cat >conftest.$ac_ext <<_ACEOF
16518 /* confdefs.h.  */
16519 _ACEOF
16520 cat confdefs.h >>conftest.$ac_ext
16521 cat >>conftest.$ac_ext <<_ACEOF
16522 /* end confdefs.h.  */
16523 $ac_includes_default
16524 int
16525 main ()
16526 {
16527 #ifndef strnlen
16528   (void) strnlen;
16529 #endif
16530
16531   ;
16532   return 0;
16533 }
16534 _ACEOF
16535 rm -f conftest.$ac_objext
16536 if { (ac_try="$ac_compile"
16537 case "(($ac_try" in
16538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16539   *) ac_try_echo=$ac_try;;
16540 esac
16541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16542   (eval "$ac_compile") 2>conftest.er1
16543   ac_status=$?
16544   grep -v '^ *+' conftest.er1 >conftest.err
16545   rm -f conftest.er1
16546   cat conftest.err >&5
16547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16548   (exit $ac_status); } && {
16549          test -z "$ac_c_werror_flag" ||
16550          test ! -s conftest.err
16551        } && test -s conftest.$ac_objext; then
16552   ac_cv_have_decl_strnlen=yes
16553 else
16554   echo "$as_me: failed program was:" >&5
16555 sed 's/^/| /' conftest.$ac_ext >&5
16556
16557         ac_cv_have_decl_strnlen=no
16558 fi
16559
16560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16561 fi
16562 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strnlen" >&5
16563 echo "${ECHO_T}$ac_cv_have_decl_strnlen" >&6; }
16564 if test $ac_cv_have_decl_strnlen = yes; then
16565
16566 cat >>confdefs.h <<_ACEOF
16567 #define HAVE_DECL_STRNLEN 1
16568 _ACEOF
16569
16570
16571 else
16572   cat >>confdefs.h <<_ACEOF
16573 #define HAVE_DECL_STRNLEN 0
16574 _ACEOF
16575
16576
16577 fi
16578
16579
16580
16581
16582
16583
16584
16585
16586
16587         REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
16588   REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
16589   REPLACE_STRPTIME=GNULIB_PORTCHECK;
16590   REPLACE_TIMEGM=GNULIB_PORTCHECK;
16591
16592
16593
16594
16595
16596
16597
16598
16599
16600
16601   { echo "$as_me:$LINENO: checking for struct timespec in <time.h>" >&5
16602 echo $ECHO_N "checking for struct timespec in <time.h>... $ECHO_C" >&6; }
16603 if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then
16604   echo $ECHO_N "(cached) $ECHO_C" >&6
16605 else
16606   cat >conftest.$ac_ext <<_ACEOF
16607 /* confdefs.h.  */
16608 _ACEOF
16609 cat confdefs.h >>conftest.$ac_ext
16610 cat >>conftest.$ac_ext <<_ACEOF
16611 /* end confdefs.h.  */
16612 #include <time.h>
16613
16614 int
16615 main ()
16616 {
16617 static struct timespec x; x.tv_sec = x.tv_nsec;
16618   ;
16619   return 0;
16620 }
16621 _ACEOF
16622 rm -f conftest.$ac_objext
16623 if { (ac_try="$ac_compile"
16624 case "(($ac_try" in
16625   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16626   *) ac_try_echo=$ac_try;;
16627 esac
16628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16629   (eval "$ac_compile") 2>conftest.er1
16630   ac_status=$?
16631   grep -v '^ *+' conftest.er1 >conftest.err
16632   rm -f conftest.er1
16633   cat conftest.err >&5
16634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16635   (exit $ac_status); } && {
16636          test -z "$ac_c_werror_flag" ||
16637          test ! -s conftest.err
16638        } && test -s conftest.$ac_objext; then
16639   gl_cv_sys_struct_timespec_in_time_h=yes
16640 else
16641   echo "$as_me: failed program was:" >&5
16642 sed 's/^/| /' conftest.$ac_ext >&5
16643
16644         gl_cv_sys_struct_timespec_in_time_h=no
16645 fi
16646
16647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16648 fi
16649 { echo "$as_me:$LINENO: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
16650 echo "${ECHO_T}$gl_cv_sys_struct_timespec_in_time_h" >&6; }
16651
16652   TIME_H_DEFINES_STRUCT_TIMESPEC=0
16653   SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
16654   if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
16655     TIME_H_DEFINES_STRUCT_TIMESPEC=1
16656   else
16657     { echo "$as_me:$LINENO: checking for struct timespec in <sys/time.h>" >&5
16658 echo $ECHO_N "checking for struct timespec in <sys/time.h>... $ECHO_C" >&6; }
16659 if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then
16660   echo $ECHO_N "(cached) $ECHO_C" >&6
16661 else
16662   cat >conftest.$ac_ext <<_ACEOF
16663 /* confdefs.h.  */
16664 _ACEOF
16665 cat confdefs.h >>conftest.$ac_ext
16666 cat >>conftest.$ac_ext <<_ACEOF
16667 /* end confdefs.h.  */
16668 #include <sys/time.h>
16669
16670 int
16671 main ()
16672 {
16673 static struct timespec x; x.tv_sec = x.tv_nsec;
16674   ;
16675   return 0;
16676 }
16677 _ACEOF
16678 rm -f conftest.$ac_objext
16679 if { (ac_try="$ac_compile"
16680 case "(($ac_try" in
16681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16682   *) ac_try_echo=$ac_try;;
16683 esac
16684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16685   (eval "$ac_compile") 2>conftest.er1
16686   ac_status=$?
16687   grep -v '^ *+' conftest.er1 >conftest.err
16688   rm -f conftest.er1
16689   cat conftest.err >&5
16690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16691   (exit $ac_status); } && {
16692          test -z "$ac_c_werror_flag" ||
16693          test ! -s conftest.err
16694        } && test -s conftest.$ac_objext; then
16695   gl_cv_sys_struct_timespec_in_sys_time_h=yes
16696 else
16697   echo "$as_me: failed program was:" >&5
16698 sed 's/^/| /' conftest.$ac_ext >&5
16699
16700         gl_cv_sys_struct_timespec_in_sys_time_h=no
16701 fi
16702
16703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16704 fi
16705 { echo "$as_me:$LINENO: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
16706 echo "${ECHO_T}$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
16707     if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
16708       SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
16709     fi
16710   fi
16711
16712
16713
16714
16715
16716
16717
16718
16719
16720
16721
16722
16723
16724
16725
16726
16727      if test $gl_cv_have_include_next = yes; then
16728        gl_cv_next_time_h='<'time.h'>'
16729      else
16730        { echo "$as_me:$LINENO: checking absolute name of <time.h>" >&5
16731 echo $ECHO_N "checking absolute name of <time.h>... $ECHO_C" >&6; }
16732 if test "${gl_cv_next_time_h+set}" = set; then
16733   echo $ECHO_N "(cached) $ECHO_C" >&6
16734 else
16735
16736           if test $ac_cv_header_time_h = yes; then
16737             cat >conftest.$ac_ext <<_ACEOF
16738 /* confdefs.h.  */
16739 _ACEOF
16740 cat confdefs.h >>conftest.$ac_ext
16741 cat >>conftest.$ac_ext <<_ACEOF
16742 /* end confdefs.h.  */
16743 #include <time.h>
16744
16745 _ACEOF
16746                                     gl_cv_next_time_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16747                sed -n '\#/time.h#{
16748                  s#.*"\(.*/time.h\)".*#\1#
16749                  s#^/[^/]#//&#
16750                  p
16751                  q
16752                }'`'"'
16753           else
16754             gl_cv_next_time_h='<'time.h'>'
16755           fi
16756
16757 fi
16758 { echo "$as_me:$LINENO: result: $gl_cv_next_time_h" >&5
16759 echo "${ECHO_T}$gl_cv_next_time_h" >&6; }
16760      fi
16761      NEXT_TIME_H=$gl_cv_next_time_h
16762
16763
16764
16765
16766
16767
16768
16769
16770
16771
16772
16773
16774
16775
16776
16777
16778
16779 { echo "$as_me:$LINENO: checking whether utime accepts a null argument" >&5
16780 echo $ECHO_N "checking whether utime accepts a null argument... $ECHO_C" >&6; }
16781 if test "${ac_cv_func_utime_null+set}" = set; then
16782   echo $ECHO_N "(cached) $ECHO_C" >&6
16783 else
16784   rm -f conftest.data; >conftest.data
16785 # Sequent interprets utime(file, 0) to mean use start of epoch.  Wrong.
16786 if test "$cross_compiling" = yes; then
16787   ac_cv_func_utime_null=no
16788 else
16789   cat >conftest.$ac_ext <<_ACEOF
16790 /* confdefs.h.  */
16791 _ACEOF
16792 cat confdefs.h >>conftest.$ac_ext
16793 cat >>conftest.$ac_ext <<_ACEOF
16794 /* end confdefs.h.  */
16795 $ac_includes_default
16796                #ifdef HAVE_UTIME_H
16797                # include <utime.h>
16798                #endif
16799 int
16800 main ()
16801 {
16802 struct stat s, t;
16803   return ! (stat ("conftest.data", &s) == 0
16804             && utime ("conftest.data", 0) == 0
16805             && stat ("conftest.data", &t) == 0
16806             && t.st_mtime >= s.st_mtime
16807             && t.st_mtime - s.st_mtime < 120);
16808   ;
16809   return 0;
16810 }
16811 _ACEOF
16812 rm -f conftest$ac_exeext
16813 if { (ac_try="$ac_link"
16814 case "(($ac_try" in
16815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16816   *) ac_try_echo=$ac_try;;
16817 esac
16818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16819   (eval "$ac_link") 2>&5
16820   ac_status=$?
16821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16822   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16823   { (case "(($ac_try" in
16824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16825   *) ac_try_echo=$ac_try;;
16826 esac
16827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16828   (eval "$ac_try") 2>&5
16829   ac_status=$?
16830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16831   (exit $ac_status); }; }; then
16832   ac_cv_func_utime_null=yes
16833 else
16834   echo "$as_me: program exited with status $ac_status" >&5
16835 echo "$as_me: failed program was:" >&5
16836 sed 's/^/| /' conftest.$ac_ext >&5
16837
16838 ( exit $ac_status )
16839 ac_cv_func_utime_null=no
16840 fi
16841 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16842 fi
16843
16844
16845 fi
16846 { echo "$as_me:$LINENO: result: $ac_cv_func_utime_null" >&5
16847 echo "${ECHO_T}$ac_cv_func_utime_null" >&6; }
16848 if test $ac_cv_func_utime_null = yes; then
16849
16850 cat >>confdefs.h <<\_ACEOF
16851 #define HAVE_UTIME_NULL 1
16852 _ACEOF
16853
16854 fi
16855 rm -f conftest.data
16856
16857
16858
16859
16860
16861
16862
16863
16864
16865
16866   { echo "$as_me:$LINENO: checking for struct utimbuf" >&5
16867 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; }
16868 if test "${gl_cv_sys_struct_utimbuf+set}" = set; then
16869   echo $ECHO_N "(cached) $ECHO_C" >&6
16870 else
16871   cat >conftest.$ac_ext <<_ACEOF
16872 /* confdefs.h.  */
16873 _ACEOF
16874 cat confdefs.h >>conftest.$ac_ext
16875 cat >>conftest.$ac_ext <<_ACEOF
16876 /* end confdefs.h.  */
16877 #if HAVE_SYS_TIME_H
16878              #include <sys/time.h>
16879             #endif
16880             #include <time.h>
16881             #ifdef HAVE_UTIME_H
16882              #include <utime.h>
16883             #endif
16884
16885 int
16886 main ()
16887 {
16888 static struct utimbuf x; x.actime = x.modtime;
16889   ;
16890   return 0;
16891 }
16892 _ACEOF
16893 rm -f conftest.$ac_objext
16894 if { (ac_try="$ac_compile"
16895 case "(($ac_try" in
16896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16897   *) ac_try_echo=$ac_try;;
16898 esac
16899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16900   (eval "$ac_compile") 2>conftest.er1
16901   ac_status=$?
16902   grep -v '^ *+' conftest.er1 >conftest.err
16903   rm -f conftest.er1
16904   cat conftest.err >&5
16905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16906   (exit $ac_status); } && {
16907          test -z "$ac_c_werror_flag" ||
16908          test ! -s conftest.err
16909        } && test -s conftest.$ac_objext; then
16910   gl_cv_sys_struct_utimbuf=yes
16911 else
16912   echo "$as_me: failed program was:" >&5
16913 sed 's/^/| /' conftest.$ac_ext >&5
16914
16915         gl_cv_sys_struct_utimbuf=no
16916 fi
16917
16918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16919 fi
16920 { echo "$as_me:$LINENO: result: $gl_cv_sys_struct_utimbuf" >&5
16921 echo "${ECHO_T}$gl_cv_sys_struct_utimbuf" >&6; }
16922
16923   if test $gl_cv_sys_struct_utimbuf = yes; then
16924
16925 cat >>confdefs.h <<\_ACEOF
16926 #define HAVE_STRUCT_UTIMBUF 1
16927 _ACEOF
16928
16929   fi
16930
16931
16932   { echo "$as_me:$LINENO: checking determine whether the utimes function works" >&5
16933 echo $ECHO_N "checking determine whether the utimes function works... $ECHO_C" >&6; }
16934 if test "${gl_cv_func_working_utimes+set}" = set; then
16935   echo $ECHO_N "(cached) $ECHO_C" >&6
16936 else
16937
16938   if test "$cross_compiling" = yes; then
16939   gl_cv_func_working_utimes=no
16940 else
16941   cat >conftest.$ac_ext <<_ACEOF
16942 /* confdefs.h.  */
16943 _ACEOF
16944 cat confdefs.h >>conftest.$ac_ext
16945 cat >>conftest.$ac_ext <<_ACEOF
16946 /* end confdefs.h.  */
16947
16948 #include <sys/types.h>
16949 #include <sys/stat.h>
16950 #include <fcntl.h>
16951 #include <sys/time.h>
16952 #include <time.h>
16953 #include <unistd.h>
16954 #include <stdlib.h>
16955 #include <stdio.h>
16956 #include <utime.h>
16957
16958 int
16959 main ()
16960 {
16961   static struct timeval timeval[2] = {{9, 10}, {999999, 999999}};
16962   struct stat sbuf;
16963   char const *file = "conftest.utimes";
16964   FILE *f;
16965   time_t now;
16966   int fd;
16967
16968   int ok = ((f = fopen (file, "w"))
16969             && fclose (f) == 0
16970             && utimes (file, timeval) == 0
16971             && lstat (file, &sbuf) == 0
16972             && sbuf.st_atime == timeval[0].tv_sec
16973             && sbuf.st_mtime == timeval[1].tv_sec);
16974   unlink (file);
16975   if (!ok)
16976     exit (1);
16977
16978   ok =
16979     ((f = fopen (file, "w"))
16980      && fclose (f) == 0
16981      && time (&now) != (time_t)-1
16982      && utimes (file, NULL) == 0
16983      && lstat (file, &sbuf) == 0
16984      && now - sbuf.st_atime <= 2
16985      && now - sbuf.st_mtime <= 2);
16986   unlink (file);
16987   if (!ok)
16988     exit (1);
16989
16990   ok = (0 <= (fd = open (file, O_WRONLY|O_CREAT, 0444))
16991               && close (fd) == 0
16992               && utimes (file, NULL) == 0);
16993   unlink (file);
16994
16995   exit (!ok);
16996 }
16997
16998 _ACEOF
16999 rm -f conftest$ac_exeext
17000 if { (ac_try="$ac_link"
17001 case "(($ac_try" in
17002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17003   *) ac_try_echo=$ac_try;;
17004 esac
17005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17006   (eval "$ac_link") 2>&5
17007   ac_status=$?
17008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17009   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17010   { (case "(($ac_try" in
17011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17012   *) ac_try_echo=$ac_try;;
17013 esac
17014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17015   (eval "$ac_try") 2>&5
17016   ac_status=$?
17017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17018   (exit $ac_status); }; }; then
17019   gl_cv_func_working_utimes=yes
17020 else
17021   echo "$as_me: program exited with status $ac_status" >&5
17022 echo "$as_me: failed program was:" >&5
17023 sed 's/^/| /' conftest.$ac_ext >&5
17024
17025 ( exit $ac_status )
17026 gl_cv_func_working_utimes=no
17027 fi
17028 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17029 fi
17030
17031
17032 fi
17033 { echo "$as_me:$LINENO: result: $gl_cv_func_working_utimes" >&5
17034 echo "${ECHO_T}$gl_cv_func_working_utimes" >&6; }
17035
17036   if test $gl_cv_func_working_utimes = yes; then
17037
17038 cat >>confdefs.h <<\_ACEOF
17039 #define HAVE_WORKING_UTIMES 1
17040 _ACEOF
17041
17042   fi
17043
17044
17045
17046
17047
17048
17049
17050
17051
17052
17053
17054
17055   { echo "$as_me:$LINENO: checking for wchar_t" >&5
17056 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
17057 if test "${gt_cv_c_wchar_t+set}" = set; then
17058   echo $ECHO_N "(cached) $ECHO_C" >&6
17059 else
17060   cat >conftest.$ac_ext <<_ACEOF
17061 /* confdefs.h.  */
17062 _ACEOF
17063 cat confdefs.h >>conftest.$ac_ext
17064 cat >>conftest.$ac_ext <<_ACEOF
17065 /* end confdefs.h.  */
17066 #include <stddef.h>
17067        wchar_t foo = (wchar_t)'\0';
17068 int
17069 main ()
17070 {
17071
17072   ;
17073   return 0;
17074 }
17075 _ACEOF
17076 rm -f conftest.$ac_objext
17077 if { (ac_try="$ac_compile"
17078 case "(($ac_try" in
17079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17080   *) ac_try_echo=$ac_try;;
17081 esac
17082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17083   (eval "$ac_compile") 2>conftest.er1
17084   ac_status=$?
17085   grep -v '^ *+' conftest.er1 >conftest.err
17086   rm -f conftest.er1
17087   cat conftest.err >&5
17088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17089   (exit $ac_status); } && {
17090          test -z "$ac_c_werror_flag" ||
17091          test ! -s conftest.err
17092        } && test -s conftest.$ac_objext; then
17093   gt_cv_c_wchar_t=yes
17094 else
17095   echo "$as_me: failed program was:" >&5
17096 sed 's/^/| /' conftest.$ac_ext >&5
17097
17098         gt_cv_c_wchar_t=no
17099 fi
17100
17101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17102 fi
17103 { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
17104 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
17105   if test $gt_cv_c_wchar_t = yes; then
17106
17107 cat >>confdefs.h <<\_ACEOF
17108 #define HAVE_WCHAR_T 1
17109 _ACEOF
17110
17111   fi
17112
17113
17114   { echo "$as_me:$LINENO: checking for wint_t" >&5
17115 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
17116 if test "${gt_cv_c_wint_t+set}" = set; then
17117   echo $ECHO_N "(cached) $ECHO_C" >&6
17118 else
17119   cat >conftest.$ac_ext <<_ACEOF
17120 /* confdefs.h.  */
17121 _ACEOF
17122 cat confdefs.h >>conftest.$ac_ext
17123 cat >>conftest.$ac_ext <<_ACEOF
17124 /* end confdefs.h.  */
17125
17126 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
17127    <wchar.h>.
17128    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
17129    before <wchar.h>.  */
17130 #include <stddef.h>
17131 #include <stdio.h>
17132 #include <time.h>
17133 #include <wchar.h>
17134        wint_t foo = (wchar_t)'\0';
17135 int
17136 main ()
17137 {
17138
17139   ;
17140   return 0;
17141 }
17142 _ACEOF
17143 rm -f conftest.$ac_objext
17144 if { (ac_try="$ac_compile"
17145 case "(($ac_try" in
17146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17147   *) ac_try_echo=$ac_try;;
17148 esac
17149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17150   (eval "$ac_compile") 2>conftest.er1
17151   ac_status=$?
17152   grep -v '^ *+' conftest.er1 >conftest.err
17153   rm -f conftest.er1
17154   cat conftest.err >&5
17155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17156   (exit $ac_status); } && {
17157          test -z "$ac_c_werror_flag" ||
17158          test ! -s conftest.err
17159        } && test -s conftest.$ac_objext; then
17160   gt_cv_c_wint_t=yes
17161 else
17162   echo "$as_me: failed program was:" >&5
17163 sed 's/^/| /' conftest.$ac_ext >&5
17164
17165         gt_cv_c_wint_t=no
17166 fi
17167
17168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17169 fi
17170 { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
17171 echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
17172   if test $gt_cv_c_wint_t = yes; then
17173
17174 cat >>confdefs.h <<\_ACEOF
17175 #define HAVE_WINT_T 1
17176 _ACEOF
17177
17178   fi
17179
17180
17181   { echo "$as_me:$LINENO: checking for inttypes.h" >&5
17182 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
17183 if test "${gl_cv_header_inttypes_h+set}" = set; then
17184   echo $ECHO_N "(cached) $ECHO_C" >&6
17185 else
17186   cat >conftest.$ac_ext <<_ACEOF
17187 /* confdefs.h.  */
17188 _ACEOF
17189 cat confdefs.h >>conftest.$ac_ext
17190 cat >>conftest.$ac_ext <<_ACEOF
17191 /* end confdefs.h.  */
17192 #include <sys/types.h>
17193 #include <inttypes.h>
17194 int
17195 main ()
17196 {
17197 uintmax_t i = (uintmax_t) -1; return !i;
17198   ;
17199   return 0;
17200 }
17201 _ACEOF
17202 rm -f conftest.$ac_objext
17203 if { (ac_try="$ac_compile"
17204 case "(($ac_try" in
17205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17206   *) ac_try_echo=$ac_try;;
17207 esac
17208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17209   (eval "$ac_compile") 2>conftest.er1
17210   ac_status=$?
17211   grep -v '^ *+' conftest.er1 >conftest.err
17212   rm -f conftest.er1
17213   cat conftest.err >&5
17214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17215   (exit $ac_status); } && {
17216          test -z "$ac_c_werror_flag" ||
17217          test ! -s conftest.err
17218        } && test -s conftest.$ac_objext; then
17219   gl_cv_header_inttypes_h=yes
17220 else
17221   echo "$as_me: failed program was:" >&5
17222 sed 's/^/| /' conftest.$ac_ext >&5
17223
17224         gl_cv_header_inttypes_h=no
17225 fi
17226
17227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17228 fi
17229 { echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
17230 echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6; }
17231   if test $gl_cv_header_inttypes_h = yes; then
17232
17233 cat >>confdefs.h <<_ACEOF
17234 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
17235 _ACEOF
17236
17237   fi
17238
17239
17240   { echo "$as_me:$LINENO: checking for stdint.h" >&5
17241 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
17242 if test "${gl_cv_header_stdint_h+set}" = set; then
17243   echo $ECHO_N "(cached) $ECHO_C" >&6
17244 else
17245   cat >conftest.$ac_ext <<_ACEOF
17246 /* confdefs.h.  */
17247 _ACEOF
17248 cat confdefs.h >>conftest.$ac_ext
17249 cat >>conftest.$ac_ext <<_ACEOF
17250 /* end confdefs.h.  */
17251 #include <sys/types.h>
17252 #include <stdint.h>
17253 int
17254 main ()
17255 {
17256 uintmax_t i = (uintmax_t) -1; return !i;
17257   ;
17258   return 0;
17259 }
17260 _ACEOF
17261 rm -f conftest.$ac_objext
17262 if { (ac_try="$ac_compile"
17263 case "(($ac_try" in
17264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17265   *) ac_try_echo=$ac_try;;
17266 esac
17267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17268   (eval "$ac_compile") 2>conftest.er1
17269   ac_status=$?
17270   grep -v '^ *+' conftest.er1 >conftest.err
17271   rm -f conftest.er1
17272   cat conftest.err >&5
17273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17274   (exit $ac_status); } && {
17275          test -z "$ac_c_werror_flag" ||
17276          test ! -s conftest.err
17277        } && test -s conftest.$ac_objext; then
17278   gl_cv_header_stdint_h=yes
17279 else
17280   echo "$as_me: failed program was:" >&5
17281 sed 's/^/| /' conftest.$ac_ext >&5
17282
17283         gl_cv_header_stdint_h=no
17284 fi
17285
17286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17287 fi
17288 { echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
17289 echo "${ECHO_T}$gl_cv_header_stdint_h" >&6; }
17290   if test $gl_cv_header_stdint_h = yes; then
17291
17292 cat >>confdefs.h <<_ACEOF
17293 #define HAVE_STDINT_H_WITH_UINTMAX 1
17294 _ACEOF
17295
17296   fi
17297
17298
17299
17300
17301   { echo "$as_me:$LINENO: checking for intmax_t" >&5
17302 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
17303 if test "${gt_cv_c_intmax_t+set}" = set; then
17304   echo $ECHO_N "(cached) $ECHO_C" >&6
17305 else
17306   cat >conftest.$ac_ext <<_ACEOF
17307 /* confdefs.h.  */
17308 _ACEOF
17309 cat confdefs.h >>conftest.$ac_ext
17310 cat >>conftest.$ac_ext <<_ACEOF
17311 /* end confdefs.h.  */
17312
17313 #include <stddef.h>
17314 #include <stdlib.h>
17315 #if HAVE_STDINT_H_WITH_UINTMAX
17316 #include <stdint.h>
17317 #endif
17318 #if HAVE_INTTYPES_H_WITH_UINTMAX
17319 #include <inttypes.h>
17320 #endif
17321
17322 int
17323 main ()
17324 {
17325 intmax_t x = -1; return !x;
17326   ;
17327   return 0;
17328 }
17329 _ACEOF
17330 rm -f conftest.$ac_objext
17331 if { (ac_try="$ac_compile"
17332 case "(($ac_try" in
17333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17334   *) ac_try_echo=$ac_try;;
17335 esac
17336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17337   (eval "$ac_compile") 2>conftest.er1
17338   ac_status=$?
17339   grep -v '^ *+' conftest.er1 >conftest.err
17340   rm -f conftest.er1
17341   cat conftest.err >&5
17342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17343   (exit $ac_status); } && {
17344          test -z "$ac_c_werror_flag" ||
17345          test ! -s conftest.err
17346        } && test -s conftest.$ac_objext; then
17347   gt_cv_c_intmax_t=yes
17348 else
17349   echo "$as_me: failed program was:" >&5
17350 sed 's/^/| /' conftest.$ac_ext >&5
17351
17352         gt_cv_c_intmax_t=no
17353 fi
17354
17355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17356 fi
17357 { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
17358 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
17359   if test $gt_cv_c_intmax_t = yes; then
17360
17361 cat >>confdefs.h <<\_ACEOF
17362 #define HAVE_INTMAX_T 1
17363 _ACEOF
17364
17365   else
17366
17367     test $ac_cv_type_long_long_int = yes \
17368       && ac_type='long long' \
17369       || ac_type='long'
17370
17371 cat >>confdefs.h <<_ACEOF
17372 #define intmax_t $ac_type
17373 _ACEOF
17374
17375   fi
17376
17377 { echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
17378 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6; }
17379 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
17380   echo $ECHO_N "(cached) $ECHO_C" >&6
17381 else
17382   cat >conftest.$ac_ext <<_ACEOF
17383 /* confdefs.h.  */
17384 _ACEOF
17385 cat confdefs.h >>conftest.$ac_ext
17386 cat >>conftest.$ac_ext <<_ACEOF
17387 /* end confdefs.h.  */
17388 $ac_includes_default
17389 int
17390 main ()
17391 {
17392 #ifndef vsnprintf
17393   (void) vsnprintf;
17394 #endif
17395
17396   ;
17397   return 0;
17398 }
17399 _ACEOF
17400 rm -f conftest.$ac_objext
17401 if { (ac_try="$ac_compile"
17402 case "(($ac_try" in
17403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17404   *) ac_try_echo=$ac_try;;
17405 esac
17406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17407   (eval "$ac_compile") 2>conftest.er1
17408   ac_status=$?
17409   grep -v '^ *+' conftest.er1 >conftest.err
17410   rm -f conftest.er1
17411   cat conftest.err >&5
17412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17413   (exit $ac_status); } && {
17414          test -z "$ac_c_werror_flag" ||
17415          test ! -s conftest.err
17416        } && test -s conftest.$ac_objext; then
17417   ac_cv_have_decl_vsnprintf=yes
17418 else
17419   echo "$as_me: failed program was:" >&5
17420 sed 's/^/| /' conftest.$ac_ext >&5
17421
17422         ac_cv_have_decl_vsnprintf=no
17423 fi
17424
17425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17426 fi
17427 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
17428 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6; }
17429 if test $ac_cv_have_decl_vsnprintf = yes; then
17430
17431 cat >>confdefs.h <<_ACEOF
17432 #define HAVE_DECL_VSNPRINTF 1
17433 _ACEOF
17434
17435
17436 else
17437   cat >>confdefs.h <<_ACEOF
17438 #define HAVE_DECL_VSNPRINTF 0
17439 _ACEOF
17440
17441
17442 fi
17443
17444
17445
17446   GNULIB_WCWIDTH=0;
17447     HAVE_DECL_WCWIDTH=1;
17448   REPLACE_WCWIDTH=0;
17449   WCHAR_H='';
17450
17451
17452
17453
17454
17455
17456
17457 for ac_header in stdint.h
17458 do
17459 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17460 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17461   { echo "$as_me:$LINENO: checking for $ac_header" >&5
17462 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17463 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17464   echo $ECHO_N "(cached) $ECHO_C" >&6
17465 fi
17466 ac_res=`eval echo '${'$as_ac_Header'}'`
17467                { echo "$as_me:$LINENO: result: $ac_res" >&5
17468 echo "${ECHO_T}$ac_res" >&6; }
17469 else
17470   # Is the header compilable?
17471 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17472 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17473 cat >conftest.$ac_ext <<_ACEOF
17474 /* confdefs.h.  */
17475 _ACEOF
17476 cat confdefs.h >>conftest.$ac_ext
17477 cat >>conftest.$ac_ext <<_ACEOF
17478 /* end confdefs.h.  */
17479 $ac_includes_default
17480 #include <$ac_header>
17481 _ACEOF
17482 rm -f conftest.$ac_objext
17483 if { (ac_try="$ac_compile"
17484 case "(($ac_try" in
17485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17486   *) ac_try_echo=$ac_try;;
17487 esac
17488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17489   (eval "$ac_compile") 2>conftest.er1
17490   ac_status=$?
17491   grep -v '^ *+' conftest.er1 >conftest.err
17492   rm -f conftest.er1
17493   cat conftest.err >&5
17494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17495   (exit $ac_status); } && {
17496          test -z "$ac_c_werror_flag" ||
17497          test ! -s conftest.err
17498        } && test -s conftest.$ac_objext; then
17499   ac_header_compiler=yes
17500 else
17501   echo "$as_me: failed program was:" >&5
17502 sed 's/^/| /' conftest.$ac_ext >&5
17503
17504         ac_header_compiler=no
17505 fi
17506
17507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17508 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17509 echo "${ECHO_T}$ac_header_compiler" >&6; }
17510
17511 # Is the header present?
17512 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17513 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17514 cat >conftest.$ac_ext <<_ACEOF
17515 /* confdefs.h.  */
17516 _ACEOF
17517 cat confdefs.h >>conftest.$ac_ext
17518 cat >>conftest.$ac_ext <<_ACEOF
17519 /* end confdefs.h.  */
17520 #include <$ac_header>
17521 _ACEOF
17522 if { (ac_try="$ac_cpp conftest.$ac_ext"
17523 case "(($ac_try" in
17524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17525   *) ac_try_echo=$ac_try;;
17526 esac
17527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17528   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17529   ac_status=$?
17530   grep -v '^ *+' conftest.er1 >conftest.err
17531   rm -f conftest.er1
17532   cat conftest.err >&5
17533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17534   (exit $ac_status); } >/dev/null && {
17535          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17536          test ! -s conftest.err
17537        }; then
17538   ac_header_preproc=yes
17539 else
17540   echo "$as_me: failed program was:" >&5
17541 sed 's/^/| /' conftest.$ac_ext >&5
17542
17543   ac_header_preproc=no
17544 fi
17545
17546 rm -f conftest.err conftest.$ac_ext
17547 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17548 echo "${ECHO_T}$ac_header_preproc" >&6; }
17549
17550 # So?  What about this header?
17551 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17552   yes:no: )
17553     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17554 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17555     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17556 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17557     ac_header_preproc=yes
17558     ;;
17559   no:yes:* )
17560     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17561 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17562     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17563 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17564     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17565 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17566     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17567 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17568     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17569 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17570     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17571 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17572     ( cat <<\_ASBOX
17573 ## ------------------------------ ##
17574 ## Report this to bug-tar@gnu.org ##
17575 ## ------------------------------ ##
17576 _ASBOX
17577      ) | sed "s/^/$as_me: WARNING:     /" >&2
17578     ;;
17579 esac
17580 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17581 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17582 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17583   echo $ECHO_N "(cached) $ECHO_C" >&6
17584 else
17585   eval "$as_ac_Header=\$ac_header_preproc"
17586 fi
17587 ac_res=`eval echo '${'$as_ac_Header'}'`
17588                { echo "$as_me:$LINENO: result: $ac_res" >&5
17589 echo "${ECHO_T}$ac_res" >&6; }
17590
17591 fi
17592 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17593   cat >>confdefs.h <<_ACEOF
17594 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17595 _ACEOF
17596
17597 fi
17598
17599 done
17600
17601     { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
17602 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
17603   if test "${gl_cv_size_max+set}" = set; then
17604   echo $ECHO_N "(cached) $ECHO_C" >&6
17605 else
17606
17607     gl_cv_size_max=
17608     cat >conftest.$ac_ext <<_ACEOF
17609 /* confdefs.h.  */
17610 _ACEOF
17611 cat confdefs.h >>conftest.$ac_ext
17612 cat >>conftest.$ac_ext <<_ACEOF
17613 /* end confdefs.h.  */
17614
17615 #include <limits.h>
17616 #if HAVE_STDINT_H
17617 #include <stdint.h>
17618 #endif
17619 #ifdef SIZE_MAX
17620 Found it
17621 #endif
17622
17623 _ACEOF
17624 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17625   $EGREP "Found it" >/dev/null 2>&1; then
17626   gl_cv_size_max=yes
17627 fi
17628 rm -f conftest*
17629
17630     if test -z "$gl_cv_size_max"; then
17631                         if test "$cross_compiling" = yes; then
17632   # Depending upon the size, compute the lo and hi bounds.
17633 cat >conftest.$ac_ext <<_ACEOF
17634 /* confdefs.h.  */
17635 _ACEOF
17636 cat confdefs.h >>conftest.$ac_ext
17637 cat >>conftest.$ac_ext <<_ACEOF
17638 /* end confdefs.h.  */
17639 #include <stddef.h>
17640 #include <limits.h>
17641 int
17642 main ()
17643 {
17644 static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= 0)];
17645 test_array [0] = 0
17646
17647   ;
17648   return 0;
17649 }
17650 _ACEOF
17651 rm -f conftest.$ac_objext
17652 if { (ac_try="$ac_compile"
17653 case "(($ac_try" in
17654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17655   *) ac_try_echo=$ac_try;;
17656 esac
17657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17658   (eval "$ac_compile") 2>conftest.er1
17659   ac_status=$?
17660   grep -v '^ *+' conftest.er1 >conftest.err
17661   rm -f conftest.er1
17662   cat conftest.err >&5
17663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17664   (exit $ac_status); } && {
17665          test -z "$ac_c_werror_flag" ||
17666          test ! -s conftest.err
17667        } && test -s conftest.$ac_objext; then
17668   ac_lo=0 ac_mid=0
17669   while :; do
17670     cat >conftest.$ac_ext <<_ACEOF
17671 /* confdefs.h.  */
17672 _ACEOF
17673 cat confdefs.h >>conftest.$ac_ext
17674 cat >>conftest.$ac_ext <<_ACEOF
17675 /* end confdefs.h.  */
17676 #include <stddef.h>
17677 #include <limits.h>
17678 int
17679 main ()
17680 {
17681 static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)];
17682 test_array [0] = 0
17683
17684   ;
17685   return 0;
17686 }
17687 _ACEOF
17688 rm -f conftest.$ac_objext
17689 if { (ac_try="$ac_compile"
17690 case "(($ac_try" in
17691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17692   *) ac_try_echo=$ac_try;;
17693 esac
17694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17695   (eval "$ac_compile") 2>conftest.er1
17696   ac_status=$?
17697   grep -v '^ *+' conftest.er1 >conftest.err
17698   rm -f conftest.er1
17699   cat conftest.err >&5
17700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17701   (exit $ac_status); } && {
17702          test -z "$ac_c_werror_flag" ||
17703          test ! -s conftest.err
17704        } && test -s conftest.$ac_objext; then
17705   ac_hi=$ac_mid; break
17706 else
17707   echo "$as_me: failed program was:" >&5
17708 sed 's/^/| /' conftest.$ac_ext >&5
17709
17710         ac_lo=`expr $ac_mid + 1`
17711                         if test $ac_lo -le $ac_mid; then
17712                           ac_lo= ac_hi=
17713                           break
17714                         fi
17715                         ac_mid=`expr 2 '*' $ac_mid + 1`
17716 fi
17717
17718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17719   done
17720 else
17721   echo "$as_me: failed program was:" >&5
17722 sed 's/^/| /' conftest.$ac_ext >&5
17723
17724         cat >conftest.$ac_ext <<_ACEOF
17725 /* confdefs.h.  */
17726 _ACEOF
17727 cat confdefs.h >>conftest.$ac_ext
17728 cat >>conftest.$ac_ext <<_ACEOF
17729 /* end confdefs.h.  */
17730 #include <stddef.h>
17731 #include <limits.h>
17732 int
17733 main ()
17734 {
17735 static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) < 0)];
17736 test_array [0] = 0
17737
17738   ;
17739   return 0;
17740 }
17741 _ACEOF
17742 rm -f conftest.$ac_objext
17743 if { (ac_try="$ac_compile"
17744 case "(($ac_try" in
17745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17746   *) ac_try_echo=$ac_try;;
17747 esac
17748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17749   (eval "$ac_compile") 2>conftest.er1
17750   ac_status=$?
17751   grep -v '^ *+' conftest.er1 >conftest.err
17752   rm -f conftest.er1
17753   cat conftest.err >&5
17754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17755   (exit $ac_status); } && {
17756          test -z "$ac_c_werror_flag" ||
17757          test ! -s conftest.err
17758        } && test -s conftest.$ac_objext; then
17759   ac_hi=-1 ac_mid=-1
17760   while :; do
17761     cat >conftest.$ac_ext <<_ACEOF
17762 /* confdefs.h.  */
17763 _ACEOF
17764 cat confdefs.h >>conftest.$ac_ext
17765 cat >>conftest.$ac_ext <<_ACEOF
17766 /* end confdefs.h.  */
17767 #include <stddef.h>
17768 #include <limits.h>
17769 int
17770 main ()
17771 {
17772 static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= $ac_mid)];
17773 test_array [0] = 0
17774
17775   ;
17776   return 0;
17777 }
17778 _ACEOF
17779 rm -f conftest.$ac_objext
17780 if { (ac_try="$ac_compile"
17781 case "(($ac_try" in
17782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17783   *) ac_try_echo=$ac_try;;
17784 esac
17785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17786   (eval "$ac_compile") 2>conftest.er1
17787   ac_status=$?
17788   grep -v '^ *+' conftest.er1 >conftest.err
17789   rm -f conftest.er1
17790   cat conftest.err >&5
17791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17792   (exit $ac_status); } && {
17793          test -z "$ac_c_werror_flag" ||
17794          test ! -s conftest.err
17795        } && test -s conftest.$ac_objext; then
17796   ac_lo=$ac_mid; break
17797 else
17798   echo "$as_me: failed program was:" >&5
17799 sed 's/^/| /' conftest.$ac_ext >&5
17800
17801         ac_hi=`expr '(' $ac_mid ')' - 1`
17802                         if test $ac_mid -le $ac_hi; then
17803                           ac_lo= ac_hi=
17804                           break
17805                         fi
17806                         ac_mid=`expr 2 '*' $ac_mid`
17807 fi
17808
17809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17810   done
17811 else
17812   echo "$as_me: failed program was:" >&5
17813 sed 's/^/| /' conftest.$ac_ext >&5
17814
17815         ac_lo= ac_hi=
17816 fi
17817
17818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17819 fi
17820
17821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17822 # Binary search between lo and hi bounds.
17823 while test "x$ac_lo" != "x$ac_hi"; do
17824   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17825   cat >conftest.$ac_ext <<_ACEOF
17826 /* confdefs.h.  */
17827 _ACEOF
17828 cat confdefs.h >>conftest.$ac_ext
17829 cat >>conftest.$ac_ext <<_ACEOF
17830 /* end confdefs.h.  */
17831 #include <stddef.h>
17832 #include <limits.h>
17833 int
17834 main ()
17835 {
17836 static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)];
17837 test_array [0] = 0
17838
17839   ;
17840   return 0;
17841 }
17842 _ACEOF
17843 rm -f conftest.$ac_objext
17844 if { (ac_try="$ac_compile"
17845 case "(($ac_try" in
17846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17847   *) ac_try_echo=$ac_try;;
17848 esac
17849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17850   (eval "$ac_compile") 2>conftest.er1
17851   ac_status=$?
17852   grep -v '^ *+' conftest.er1 >conftest.err
17853   rm -f conftest.er1
17854   cat conftest.err >&5
17855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17856   (exit $ac_status); } && {
17857          test -z "$ac_c_werror_flag" ||
17858          test ! -s conftest.err
17859        } && test -s conftest.$ac_objext; then
17860   ac_hi=$ac_mid
17861 else
17862   echo "$as_me: failed program was:" >&5
17863 sed 's/^/| /' conftest.$ac_ext >&5
17864
17865         ac_lo=`expr '(' $ac_mid ')' + 1`
17866 fi
17867
17868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17869 done
17870 case $ac_lo in
17871 ?*) size_t_bits_minus_1=$ac_lo;;
17872 '') size_t_bits_minus_1= ;;
17873 esac
17874 else
17875   cat >conftest.$ac_ext <<_ACEOF
17876 /* confdefs.h.  */
17877 _ACEOF
17878 cat confdefs.h >>conftest.$ac_ext
17879 cat >>conftest.$ac_ext <<_ACEOF
17880 /* end confdefs.h.  */
17881 #include <stddef.h>
17882 #include <limits.h>
17883 static long int longval () { return sizeof (size_t) * CHAR_BIT - 1; }
17884 static unsigned long int ulongval () { return sizeof (size_t) * CHAR_BIT - 1; }
17885 #include <stdio.h>
17886 #include <stdlib.h>
17887 int
17888 main ()
17889 {
17890
17891   FILE *f = fopen ("conftest.val", "w");
17892   if (! f)
17893     return 1;
17894   if ((sizeof (size_t) * CHAR_BIT - 1) < 0)
17895     {
17896       long int i = longval ();
17897       if (i != (sizeof (size_t) * CHAR_BIT - 1))
17898         return 1;
17899       fprintf (f, "%ld\n", i);
17900     }
17901   else
17902     {
17903       unsigned long int i = ulongval ();
17904       if (i != (sizeof (size_t) * CHAR_BIT - 1))
17905         return 1;
17906       fprintf (f, "%lu\n", i);
17907     }
17908   return ferror (f) || fclose (f) != 0;
17909
17910   ;
17911   return 0;
17912 }
17913 _ACEOF
17914 rm -f conftest$ac_exeext
17915 if { (ac_try="$ac_link"
17916 case "(($ac_try" in
17917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17918   *) ac_try_echo=$ac_try;;
17919 esac
17920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17921   (eval "$ac_link") 2>&5
17922   ac_status=$?
17923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17924   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17925   { (case "(($ac_try" in
17926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17927   *) ac_try_echo=$ac_try;;
17928 esac
17929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17930   (eval "$ac_try") 2>&5
17931   ac_status=$?
17932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17933   (exit $ac_status); }; }; then
17934   size_t_bits_minus_1=`cat conftest.val`
17935 else
17936   echo "$as_me: program exited with status $ac_status" >&5
17937 echo "$as_me: failed program was:" >&5
17938 sed 's/^/| /' conftest.$ac_ext >&5
17939
17940 ( exit $ac_status )
17941 size_t_bits_minus_1=
17942 fi
17943 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17944 fi
17945 rm -f conftest.val
17946       if test "$cross_compiling" = yes; then
17947   # Depending upon the size, compute the lo and hi bounds.
17948 cat >conftest.$ac_ext <<_ACEOF
17949 /* confdefs.h.  */
17950 _ACEOF
17951 cat confdefs.h >>conftest.$ac_ext
17952 cat >>conftest.$ac_ext <<_ACEOF
17953 /* end confdefs.h.  */
17954 #include <stddef.h>
17955 int
17956 main ()
17957 {
17958 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
17959 test_array [0] = 0
17960
17961   ;
17962   return 0;
17963 }
17964 _ACEOF
17965 rm -f conftest.$ac_objext
17966 if { (ac_try="$ac_compile"
17967 case "(($ac_try" in
17968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17969   *) ac_try_echo=$ac_try;;
17970 esac
17971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17972   (eval "$ac_compile") 2>conftest.er1
17973   ac_status=$?
17974   grep -v '^ *+' conftest.er1 >conftest.err
17975   rm -f conftest.er1
17976   cat conftest.err >&5
17977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17978   (exit $ac_status); } && {
17979          test -z "$ac_c_werror_flag" ||
17980          test ! -s conftest.err
17981        } && test -s conftest.$ac_objext; then
17982   ac_lo=0 ac_mid=0
17983   while :; do
17984     cat >conftest.$ac_ext <<_ACEOF
17985 /* confdefs.h.  */
17986 _ACEOF
17987 cat confdefs.h >>conftest.$ac_ext
17988 cat >>conftest.$ac_ext <<_ACEOF
17989 /* end confdefs.h.  */
17990 #include <stddef.h>
17991 int
17992 main ()
17993 {
17994 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
17995 test_array [0] = 0
17996
17997   ;
17998   return 0;
17999 }
18000 _ACEOF
18001 rm -f conftest.$ac_objext
18002 if { (ac_try="$ac_compile"
18003 case "(($ac_try" in
18004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18005   *) ac_try_echo=$ac_try;;
18006 esac
18007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18008   (eval "$ac_compile") 2>conftest.er1
18009   ac_status=$?
18010   grep -v '^ *+' conftest.er1 >conftest.err
18011   rm -f conftest.er1
18012   cat conftest.err >&5
18013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18014   (exit $ac_status); } && {
18015          test -z "$ac_c_werror_flag" ||
18016          test ! -s conftest.err
18017        } && test -s conftest.$ac_objext; then
18018   ac_hi=$ac_mid; break
18019 else
18020   echo "$as_me: failed program was:" >&5
18021 sed 's/^/| /' conftest.$ac_ext >&5
18022
18023         ac_lo=`expr $ac_mid + 1`
18024                         if test $ac_lo -le $ac_mid; then
18025                           ac_lo= ac_hi=
18026                           break
18027                         fi
18028                         ac_mid=`expr 2 '*' $ac_mid + 1`
18029 fi
18030
18031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18032   done
18033 else
18034   echo "$as_me: failed program was:" >&5
18035 sed 's/^/| /' conftest.$ac_ext >&5
18036
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 <stddef.h>
18044 int
18045 main ()
18046 {
18047 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
18048 test_array [0] = 0
18049
18050   ;
18051   return 0;
18052 }
18053 _ACEOF
18054 rm -f conftest.$ac_objext
18055 if { (ac_try="$ac_compile"
18056 case "(($ac_try" in
18057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18058   *) ac_try_echo=$ac_try;;
18059 esac
18060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18061   (eval "$ac_compile") 2>conftest.er1
18062   ac_status=$?
18063   grep -v '^ *+' conftest.er1 >conftest.err
18064   rm -f conftest.er1
18065   cat conftest.err >&5
18066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18067   (exit $ac_status); } && {
18068          test -z "$ac_c_werror_flag" ||
18069          test ! -s conftest.err
18070        } && test -s conftest.$ac_objext; then
18071   ac_hi=-1 ac_mid=-1
18072   while :; do
18073     cat >conftest.$ac_ext <<_ACEOF
18074 /* confdefs.h.  */
18075 _ACEOF
18076 cat confdefs.h >>conftest.$ac_ext
18077 cat >>conftest.$ac_ext <<_ACEOF
18078 /* end confdefs.h.  */
18079 #include <stddef.h>
18080 int
18081 main ()
18082 {
18083 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
18084 test_array [0] = 0
18085
18086   ;
18087   return 0;
18088 }
18089 _ACEOF
18090 rm -f conftest.$ac_objext
18091 if { (ac_try="$ac_compile"
18092 case "(($ac_try" in
18093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18094   *) ac_try_echo=$ac_try;;
18095 esac
18096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18097   (eval "$ac_compile") 2>conftest.er1
18098   ac_status=$?
18099   grep -v '^ *+' conftest.er1 >conftest.err
18100   rm -f conftest.er1
18101   cat conftest.err >&5
18102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18103   (exit $ac_status); } && {
18104          test -z "$ac_c_werror_flag" ||
18105          test ! -s conftest.err
18106        } && test -s conftest.$ac_objext; then
18107   ac_lo=$ac_mid; break
18108 else
18109   echo "$as_me: failed program was:" >&5
18110 sed 's/^/| /' conftest.$ac_ext >&5
18111
18112         ac_hi=`expr '(' $ac_mid ')' - 1`
18113                         if test $ac_mid -le $ac_hi; then
18114                           ac_lo= ac_hi=
18115                           break
18116                         fi
18117                         ac_mid=`expr 2 '*' $ac_mid`
18118 fi
18119
18120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18121   done
18122 else
18123   echo "$as_me: failed program was:" >&5
18124 sed 's/^/| /' conftest.$ac_ext >&5
18125
18126         ac_lo= ac_hi=
18127 fi
18128
18129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18130 fi
18131
18132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18133 # Binary search between lo and hi bounds.
18134 while test "x$ac_lo" != "x$ac_hi"; do
18135   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18136   cat >conftest.$ac_ext <<_ACEOF
18137 /* confdefs.h.  */
18138 _ACEOF
18139 cat confdefs.h >>conftest.$ac_ext
18140 cat >>conftest.$ac_ext <<_ACEOF
18141 /* end confdefs.h.  */
18142 #include <stddef.h>
18143 int
18144 main ()
18145 {
18146 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
18147 test_array [0] = 0
18148
18149   ;
18150   return 0;
18151 }
18152 _ACEOF
18153 rm -f conftest.$ac_objext
18154 if { (ac_try="$ac_compile"
18155 case "(($ac_try" in
18156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18157   *) ac_try_echo=$ac_try;;
18158 esac
18159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18160   (eval "$ac_compile") 2>conftest.er1
18161   ac_status=$?
18162   grep -v '^ *+' conftest.er1 >conftest.err
18163   rm -f conftest.er1
18164   cat conftest.err >&5
18165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18166   (exit $ac_status); } && {
18167          test -z "$ac_c_werror_flag" ||
18168          test ! -s conftest.err
18169        } && test -s conftest.$ac_objext; then
18170   ac_hi=$ac_mid
18171 else
18172   echo "$as_me: failed program was:" >&5
18173 sed 's/^/| /' conftest.$ac_ext >&5
18174
18175         ac_lo=`expr '(' $ac_mid ')' + 1`
18176 fi
18177
18178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18179 done
18180 case $ac_lo in
18181 ?*) fits_in_uint=$ac_lo;;
18182 '') fits_in_uint= ;;
18183 esac
18184 else
18185   cat >conftest.$ac_ext <<_ACEOF
18186 /* confdefs.h.  */
18187 _ACEOF
18188 cat confdefs.h >>conftest.$ac_ext
18189 cat >>conftest.$ac_ext <<_ACEOF
18190 /* end confdefs.h.  */
18191 #include <stddef.h>
18192 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
18193 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
18194 #include <stdio.h>
18195 #include <stdlib.h>
18196 int
18197 main ()
18198 {
18199
18200   FILE *f = fopen ("conftest.val", "w");
18201   if (! f)
18202     return 1;
18203   if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
18204     {
18205       long int i = longval ();
18206       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
18207         return 1;
18208       fprintf (f, "%ld\n", i);
18209     }
18210   else
18211     {
18212       unsigned long int i = ulongval ();
18213       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
18214         return 1;
18215       fprintf (f, "%lu\n", i);
18216     }
18217   return ferror (f) || fclose (f) != 0;
18218
18219   ;
18220   return 0;
18221 }
18222 _ACEOF
18223 rm -f conftest$ac_exeext
18224 if { (ac_try="$ac_link"
18225 case "(($ac_try" in
18226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18227   *) ac_try_echo=$ac_try;;
18228 esac
18229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18230   (eval "$ac_link") 2>&5
18231   ac_status=$?
18232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18233   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18234   { (case "(($ac_try" in
18235   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18236   *) ac_try_echo=$ac_try;;
18237 esac
18238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18239   (eval "$ac_try") 2>&5
18240   ac_status=$?
18241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18242   (exit $ac_status); }; }; then
18243   fits_in_uint=`cat conftest.val`
18244 else
18245   echo "$as_me: program exited with status $ac_status" >&5
18246 echo "$as_me: failed program was:" >&5
18247 sed 's/^/| /' conftest.$ac_ext >&5
18248
18249 ( exit $ac_status )
18250 fits_in_uint=
18251 fi
18252 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18253 fi
18254 rm -f conftest.val
18255       if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
18256         if test $fits_in_uint = 1; then
18257                               cat >conftest.$ac_ext <<_ACEOF
18258 /* confdefs.h.  */
18259 _ACEOF
18260 cat confdefs.h >>conftest.$ac_ext
18261 cat >>conftest.$ac_ext <<_ACEOF
18262 /* end confdefs.h.  */
18263 #include <stddef.h>
18264             extern size_t foo;
18265             extern unsigned long foo;
18266
18267 int
18268 main ()
18269 {
18270
18271   ;
18272   return 0;
18273 }
18274 _ACEOF
18275 rm -f conftest.$ac_objext
18276 if { (ac_try="$ac_compile"
18277 case "(($ac_try" in
18278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18279   *) ac_try_echo=$ac_try;;
18280 esac
18281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18282   (eval "$ac_compile") 2>conftest.er1
18283   ac_status=$?
18284   grep -v '^ *+' conftest.er1 >conftest.err
18285   rm -f conftest.er1
18286   cat conftest.err >&5
18287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18288   (exit $ac_status); } && {
18289          test -z "$ac_c_werror_flag" ||
18290          test ! -s conftest.err
18291        } && test -s conftest.$ac_objext; then
18292   fits_in_uint=0
18293 else
18294   echo "$as_me: failed program was:" >&5
18295 sed 's/^/| /' conftest.$ac_ext >&5
18296
18297
18298 fi
18299
18300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18301         fi
18302                                 if test $fits_in_uint = 1; then
18303           gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
18304         else
18305           gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
18306         fi
18307       else
18308                 gl_cv_size_max='((size_t)~(size_t)0)'
18309       fi
18310     fi
18311
18312 fi
18313
18314   { echo "$as_me:$LINENO: result: $gl_cv_size_max" >&5
18315 echo "${ECHO_T}$gl_cv_size_max" >&6; }
18316   if test "$gl_cv_size_max" != yes; then
18317
18318 cat >>confdefs.h <<_ACEOF
18319 #define SIZE_MAX $gl_cv_size_max
18320 _ACEOF
18321
18322   fi
18323
18324
18325    if false; then
18326   GL_COND_LIBTOOL_TRUE=
18327   GL_COND_LIBTOOL_FALSE='#'
18328 else
18329   GL_COND_LIBTOOL_TRUE='#'
18330   GL_COND_LIBTOOL_FALSE=
18331 fi
18332
18333   gl_cond_libtool=false
18334   gl_libdeps=
18335   gl_ltlibdeps=
18336
18337
18338
18339
18340
18341
18342
18343
18344   gl_source_base='.#bootmp/lib'
18345
18346
18347
18348
18349
18350   if test $ac_cv_func_alloca_works = no; then
18351     :
18352   fi
18353
18354   # Define an additional variable used in the Makefile substitution.
18355   if test $ac_cv_working_alloca_h = yes; then
18356     { echo "$as_me:$LINENO: checking for alloca as a compiler built-in" >&5
18357 echo $ECHO_N "checking for alloca as a compiler built-in... $ECHO_C" >&6; }
18358 if test "${gl_cv_rpl_alloca+set}" = set; then
18359   echo $ECHO_N "(cached) $ECHO_C" >&6
18360 else
18361
18362       cat >conftest.$ac_ext <<_ACEOF
18363 /* confdefs.h.  */
18364 _ACEOF
18365 cat confdefs.h >>conftest.$ac_ext
18366 cat >>conftest.$ac_ext <<_ACEOF
18367 /* end confdefs.h.  */
18368
18369 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
18370         Need own alloca
18371 #endif
18372
18373 _ACEOF
18374 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18375   $EGREP "Need own alloca" >/dev/null 2>&1; then
18376   gl_cv_rpl_alloca=yes
18377 else
18378   gl_cv_rpl_alloca=no
18379 fi
18380 rm -f conftest*
18381
18382
18383 fi
18384 { echo "$as_me:$LINENO: result: $gl_cv_rpl_alloca" >&5
18385 echo "${ECHO_T}$gl_cv_rpl_alloca" >&6; }
18386     if test $gl_cv_rpl_alloca = yes; then
18387
18388 cat >>confdefs.h <<\_ACEOF
18389 #define HAVE_ALLOCA 1
18390 _ACEOF
18391
18392       ALLOCA_H=alloca.h
18393     else
18394                   ALLOCA_H=
18395     fi
18396   else
18397     ALLOCA_H=alloca.h
18398   fi
18399
18400
18401
18402
18403
18404
18405
18406
18407
18408
18409
18410   gl_LIBOBJS="$gl_LIBOBJS argmatch.$ac_objext"
18411
18412
18413
18414
18415
18416
18417
18418
18419
18420
18421
18422
18423
18424
18425
18426   gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
18427
18428
18429
18430
18431
18432
18433
18434
18435
18436   gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
18437
18438
18439   GETOPT_H=getopt.h
18440
18441 cat >>confdefs.h <<\_ACEOF
18442 #define __GETOPT_PREFIX rpl_
18443 _ACEOF
18444
18445
18446
18447
18448
18449
18450
18451
18452
18453
18454
18455   { echo "$as_me:$LINENO: checking whether program_invocation_name is declared" >&5
18456 echo $ECHO_N "checking whether program_invocation_name is declared... $ECHO_C" >&6; }
18457 if test "${ac_cv_have_decl_program_invocation_name+set}" = set; then
18458   echo $ECHO_N "(cached) $ECHO_C" >&6
18459 else
18460   cat >conftest.$ac_ext <<_ACEOF
18461 /* confdefs.h.  */
18462 _ACEOF
18463 cat confdefs.h >>conftest.$ac_ext
18464 cat >>conftest.$ac_ext <<_ACEOF
18465 /* end confdefs.h.  */
18466 #include <errno.h>
18467
18468 int
18469 main ()
18470 {
18471 #ifndef program_invocation_name
18472   (void) program_invocation_name;
18473 #endif
18474
18475   ;
18476   return 0;
18477 }
18478 _ACEOF
18479 rm -f conftest.$ac_objext
18480 if { (ac_try="$ac_compile"
18481 case "(($ac_try" in
18482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18483   *) ac_try_echo=$ac_try;;
18484 esac
18485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18486   (eval "$ac_compile") 2>conftest.er1
18487   ac_status=$?
18488   grep -v '^ *+' conftest.er1 >conftest.err
18489   rm -f conftest.er1
18490   cat conftest.err >&5
18491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18492   (exit $ac_status); } && {
18493          test -z "$ac_c_werror_flag" ||
18494          test ! -s conftest.err
18495        } && test -s conftest.$ac_objext; then
18496   ac_cv_have_decl_program_invocation_name=yes
18497 else
18498   echo "$as_me: failed program was:" >&5
18499 sed 's/^/| /' conftest.$ac_ext >&5
18500
18501         ac_cv_have_decl_program_invocation_name=no
18502 fi
18503
18504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18505 fi
18506 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_program_invocation_name" >&5
18507 echo "${ECHO_T}$ac_cv_have_decl_program_invocation_name" >&6; }
18508 if test $ac_cv_have_decl_program_invocation_name = yes; then
18509
18510 cat >>confdefs.h <<\_ACEOF
18511 #define HAVE_DECL_PROGRAM_INVOCATION_NAME 1
18512 _ACEOF
18513
18514 else
18515
18516 cat >>confdefs.h <<\_ACEOF
18517 #define GNULIB_PROGRAM_INVOCATION_NAME 1
18518 _ACEOF
18519
18520 fi
18521
18522   { echo "$as_me:$LINENO: checking whether program_invocation_short_name is declared" >&5
18523 echo $ECHO_N "checking whether program_invocation_short_name is declared... $ECHO_C" >&6; }
18524 if test "${ac_cv_have_decl_program_invocation_short_name+set}" = set; then
18525   echo $ECHO_N "(cached) $ECHO_C" >&6
18526 else
18527   cat >conftest.$ac_ext <<_ACEOF
18528 /* confdefs.h.  */
18529 _ACEOF
18530 cat confdefs.h >>conftest.$ac_ext
18531 cat >>conftest.$ac_ext <<_ACEOF
18532 /* end confdefs.h.  */
18533 #include <errno.h>
18534
18535 int
18536 main ()
18537 {
18538 #ifndef program_invocation_short_name
18539   (void) program_invocation_short_name;
18540 #endif
18541
18542   ;
18543   return 0;
18544 }
18545 _ACEOF
18546 rm -f conftest.$ac_objext
18547 if { (ac_try="$ac_compile"
18548 case "(($ac_try" in
18549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18550   *) ac_try_echo=$ac_try;;
18551 esac
18552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18553   (eval "$ac_compile") 2>conftest.er1
18554   ac_status=$?
18555   grep -v '^ *+' conftest.er1 >conftest.err
18556   rm -f conftest.er1
18557   cat conftest.err >&5
18558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18559   (exit $ac_status); } && {
18560          test -z "$ac_c_werror_flag" ||
18561          test ! -s conftest.err
18562        } && test -s conftest.$ac_objext; then
18563   ac_cv_have_decl_program_invocation_short_name=yes
18564 else
18565   echo "$as_me: failed program was:" >&5
18566 sed 's/^/| /' conftest.$ac_ext >&5
18567
18568         ac_cv_have_decl_program_invocation_short_name=no
18569 fi
18570
18571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18572 fi
18573 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_program_invocation_short_name" >&5
18574 echo "${ECHO_T}$ac_cv_have_decl_program_invocation_short_name" >&6; }
18575 if test $ac_cv_have_decl_program_invocation_short_name = yes; then
18576
18577 cat >>confdefs.h <<\_ACEOF
18578 #define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME 1
18579 _ACEOF
18580
18581 else
18582
18583 cat >>confdefs.h <<\_ACEOF
18584 #define GNULIB_PROGRAM_INVOCATION_SHORT_NAME 1
18585 _ACEOF
18586
18587 fi
18588
18589
18590   # Check if program_invocation_name and program_invocation_short_name
18591   # are defined elsewhere. It is improbable that only one of them will
18592   # be defined and other not, I prefer to stay on the safe side and to
18593   # test each one separately.
18594   { echo "$as_me:$LINENO: checking whether program_invocation_name is defined" >&5
18595 echo $ECHO_N "checking whether program_invocation_name is defined... $ECHO_C" >&6; }
18596   cat >conftest.$ac_ext <<_ACEOF
18597 /* confdefs.h.  */
18598 _ACEOF
18599 cat confdefs.h >>conftest.$ac_ext
18600 cat >>conftest.$ac_ext <<_ACEOF
18601 /* end confdefs.h.  */
18602 #include <argp.h>
18603 int
18604 main ()
18605 {
18606  program_invocation_name = "test";
18607   ;
18608   return 0;
18609 }
18610 _ACEOF
18611 rm -f conftest.$ac_objext conftest$ac_exeext
18612 if { (ac_try="$ac_link"
18613 case "(($ac_try" in
18614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18615   *) ac_try_echo=$ac_try;;
18616 esac
18617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18618   (eval "$ac_link") 2>conftest.er1
18619   ac_status=$?
18620   grep -v '^ *+' conftest.er1 >conftest.err
18621   rm -f conftest.er1
18622   cat conftest.err >&5
18623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18624   (exit $ac_status); } && {
18625          test -z "$ac_c_werror_flag" ||
18626          test ! -s conftest.err
18627        } && test -s conftest$ac_exeext &&
18628        $as_test_x conftest$ac_exeext; then
18629
18630 cat >>confdefs.h <<\_ACEOF
18631 #define HAVE_PROGRAM_INVOCATION_NAME 1
18632 _ACEOF
18633
18634                  { echo "$as_me:$LINENO: result: yes" >&5
18635 echo "${ECHO_T}yes" >&6; }
18636 else
18637   echo "$as_me: failed program was:" >&5
18638 sed 's/^/| /' conftest.$ac_ext >&5
18639
18640          { echo "$as_me:$LINENO: result: no" >&5
18641 echo "${ECHO_T}no" >&6; }
18642 fi
18643
18644 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18645       conftest$ac_exeext conftest.$ac_ext
18646
18647   { echo "$as_me:$LINENO: checking whether program_invocation_short_name is defined" >&5
18648 echo $ECHO_N "checking whether program_invocation_short_name is defined... $ECHO_C" >&6; }
18649   cat >conftest.$ac_ext <<_ACEOF
18650 /* confdefs.h.  */
18651 _ACEOF
18652 cat confdefs.h >>conftest.$ac_ext
18653 cat >>conftest.$ac_ext <<_ACEOF
18654 /* end confdefs.h.  */
18655 #include <argp.h>
18656 int
18657 main ()
18658 {
18659  program_invocation_short_name = "test";
18660   ;
18661   return 0;
18662 }
18663 _ACEOF
18664 rm -f conftest.$ac_objext conftest$ac_exeext
18665 if { (ac_try="$ac_link"
18666 case "(($ac_try" in
18667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18668   *) ac_try_echo=$ac_try;;
18669 esac
18670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18671   (eval "$ac_link") 2>conftest.er1
18672   ac_status=$?
18673   grep -v '^ *+' conftest.er1 >conftest.err
18674   rm -f conftest.er1
18675   cat conftest.err >&5
18676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18677   (exit $ac_status); } && {
18678          test -z "$ac_c_werror_flag" ||
18679          test ! -s conftest.err
18680        } && test -s conftest$ac_exeext &&
18681        $as_test_x conftest$ac_exeext; then
18682
18683 cat >>confdefs.h <<\_ACEOF
18684 #define HAVE_PROGRAM_INVOCATION_SHORT_NAME 1
18685 _ACEOF
18686
18687                  { echo "$as_me:$LINENO: result: yes" >&5
18688 echo "${ECHO_T}yes" >&6; }
18689 else
18690   echo "$as_me: failed program was:" >&5
18691 sed 's/^/| /' conftest.$ac_ext >&5
18692
18693          { echo "$as_me:$LINENO: result: no" >&5
18694 echo "${ECHO_T}no" >&6; }
18695 fi
18696
18697 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18698       conftest$ac_exeext conftest.$ac_ext
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
18724
18725
18726
18727
18728
18729
18730
18731
18732
18733
18734
18735
18736
18737
18738
18739
18740
18741
18742
18743
18744
18745
18746
18747
18748
18749
18750
18751
18752
18753
18754
18755
18756
18757
18758
18759
18760
18761
18762
18763
18764
18765
18766
18767
18768
18769
18770
18771   XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=argp_error:2:c-format"
18772
18773
18774
18775   XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=argp_failure:4:c-format"
18776
18777
18778
18779
18780
18781
18782
18783
18784
18785
18786   gl_LIBOBJS="$gl_LIBOBJS backupfile.$ac_objext"
18787
18788
18789
18790
18791
18792
18793
18794
18795
18796
18797
18798
18799
18800
18801
18802
18803
18804
18805
18806
18807
18808
18809
18810   if test $ac_cv_func_canonicalize_file_name = no; then
18811
18812
18813
18814
18815
18816
18817
18818
18819   gl_LIBOBJS="$gl_LIBOBJS canonicalize-lgpl.$ac_objext"
18820
18821
18822 cat >>confdefs.h <<\_ACEOF
18823 #define realpath rpl_realpath
18824 _ACEOF
18825
18826
18827
18828
18829
18830
18831
18832
18833
18834
18835
18836
18837
18838
18839
18840
18841
18842
18843
18844   fi
18845
18846
18847
18848 cat >>confdefs.h <<\_ACEOF
18849 #define GNULIB_CANONICALIZE_LGPL 1
18850 _ACEOF
18851
18852
18853
18854   { echo "$as_me:$LINENO: checking whether this system has an arbitrary file name length limit" >&5
18855 echo $ECHO_N "checking whether this system has an arbitrary file name length limit... $ECHO_C" >&6; }
18856 if test "${gl_cv_have_arbitrary_file_name_length_limit+set}" = set; then
18857   echo $ECHO_N "(cached) $ECHO_C" >&6
18858 else
18859   cat >conftest.$ac_ext <<_ACEOF
18860 /* confdefs.h.  */
18861 _ACEOF
18862 cat confdefs.h >>conftest.$ac_ext
18863 cat >>conftest.$ac_ext <<_ACEOF
18864 /* end confdefs.h.  */
18865 #include <unistd.h>
18866 #include <limits.h>
18867 #if defined PATH_MAX || defined MAXPATHLEN
18868 have_arbitrary_file_name_length_limit
18869 #endif
18870 _ACEOF
18871 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18872   $EGREP "have_arbitrary_file_name_length_limit" >/dev/null 2>&1; then
18873   gl_cv_have_arbitrary_file_name_length_limit=yes
18874 else
18875   gl_cv_have_arbitrary_file_name_length_limit=no
18876 fi
18877 rm -f conftest*
18878
18879 fi
18880 { echo "$as_me:$LINENO: result: $gl_cv_have_arbitrary_file_name_length_limit" >&5
18881 echo "${ECHO_T}$gl_cv_have_arbitrary_file_name_length_limit" >&6; }
18882
18883   if test $gl_cv_have_arbitrary_file_name_length_limit = yes; then
18884
18885
18886
18887
18888
18889
18890
18891
18892   gl_LIBOBJS="$gl_LIBOBJS chdir-long.$ac_objext"
18893
18894
18895   :
18896
18897   fi
18898
18899
18900
18901
18902
18903
18904
18905   if test $ac_cv_func_chown_works = no; then
18906
18907 cat >>confdefs.h <<\_ACEOF
18908 #define CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE 1
18909 _ACEOF
18910
18911   fi
18912
18913   # If chown has either of the above problems, then we need the wrapper.
18914   if test $ac_cv_func_chown_works$gl_cv_func_chown_follows_symlink = yesyes; then
18915     : # no wrapper needed
18916   else
18917     REPLACE_CHOWN=1
18918
18919
18920
18921
18922
18923
18924
18925
18926   gl_LIBOBJS="$gl_LIBOBJS chown.$ac_objext"
18927
18928
18929   { echo "$as_me:$LINENO: checking for fchown" >&5
18930 echo $ECHO_N "checking for fchown... $ECHO_C" >&6; }
18931 if test "${ac_cv_func_fchown+set}" = set; then
18932   echo $ECHO_N "(cached) $ECHO_C" >&6
18933 else
18934   cat >conftest.$ac_ext <<_ACEOF
18935 /* confdefs.h.  */
18936 _ACEOF
18937 cat confdefs.h >>conftest.$ac_ext
18938 cat >>conftest.$ac_ext <<_ACEOF
18939 /* end confdefs.h.  */
18940 /* Define fchown to an innocuous variant, in case <limits.h> declares fchown.
18941    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18942 #define fchown innocuous_fchown
18943
18944 /* System header to define __stub macros and hopefully few prototypes,
18945     which can conflict with char fchown (); below.
18946     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18947     <limits.h> exists even on freestanding compilers.  */
18948
18949 #ifdef __STDC__
18950 # include <limits.h>
18951 #else
18952 # include <assert.h>
18953 #endif
18954
18955 #undef fchown
18956
18957 /* Override any GCC internal prototype to avoid an error.
18958    Use char because int might match the return type of a GCC
18959    builtin and then its argument prototype would still apply.  */
18960 #ifdef __cplusplus
18961 extern "C"
18962 #endif
18963 char fchown ();
18964 /* The GNU C library defines this for functions which it implements
18965     to always fail with ENOSYS.  Some functions are actually named
18966     something starting with __ and the normal name is an alias.  */
18967 #if defined __stub_fchown || defined __stub___fchown
18968 choke me
18969 #endif
18970
18971 int
18972 main ()
18973 {
18974 return fchown ();
18975   ;
18976   return 0;
18977 }
18978 _ACEOF
18979 rm -f conftest.$ac_objext conftest$ac_exeext
18980 if { (ac_try="$ac_link"
18981 case "(($ac_try" in
18982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18983   *) ac_try_echo=$ac_try;;
18984 esac
18985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18986   (eval "$ac_link") 2>conftest.er1
18987   ac_status=$?
18988   grep -v '^ *+' conftest.er1 >conftest.err
18989   rm -f conftest.er1
18990   cat conftest.err >&5
18991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18992   (exit $ac_status); } && {
18993          test -z "$ac_c_werror_flag" ||
18994          test ! -s conftest.err
18995        } && test -s conftest$ac_exeext &&
18996        $as_test_x conftest$ac_exeext; then
18997   ac_cv_func_fchown=yes
18998 else
18999   echo "$as_me: failed program was:" >&5
19000 sed 's/^/| /' conftest.$ac_ext >&5
19001
19002         ac_cv_func_fchown=no
19003 fi
19004
19005 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19006       conftest$ac_exeext conftest.$ac_ext
19007 fi
19008 { echo "$as_me:$LINENO: result: $ac_cv_func_fchown" >&5
19009 echo "${ECHO_T}$ac_cv_func_fchown" >&6; }
19010 if test $ac_cv_func_fchown = yes; then
19011   :
19012 else
19013
19014
19015
19016
19017
19018
19019
19020
19021   gl_LIBOBJS="$gl_LIBOBJS fchown-stub.$ac_objext"
19022
19023 fi
19024
19025
19026   fi
19027
19028
19029
19030   GNULIB_CHOWN=1
19031
19032
19033
19034
19035   # Solaris 2.5.1 needs -lposix4 to get the clock_gettime function.
19036   # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
19037
19038   # Save and restore LIBS so e.g., -lrt, isn't added to it.  Otherwise, *all*
19039   # programs in the package would end up linked with that potentially-shared
19040   # library, inducing unnecessary run-time overhead.
19041   gl_saved_libs=$LIBS
19042     { echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
19043 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
19044 if test "${ac_cv_search_clock_gettime+set}" = set; then
19045   echo $ECHO_N "(cached) $ECHO_C" >&6
19046 else
19047   ac_func_search_save_LIBS=$LIBS
19048 cat >conftest.$ac_ext <<_ACEOF
19049 /* confdefs.h.  */
19050 _ACEOF
19051 cat confdefs.h >>conftest.$ac_ext
19052 cat >>conftest.$ac_ext <<_ACEOF
19053 /* end confdefs.h.  */
19054
19055 /* Override any GCC internal prototype to avoid an error.
19056    Use char because int might match the return type of a GCC
19057    builtin and then its argument prototype would still apply.  */
19058 #ifdef __cplusplus
19059 extern "C"
19060 #endif
19061 char clock_gettime ();
19062 int
19063 main ()
19064 {
19065 return clock_gettime ();
19066   ;
19067   return 0;
19068 }
19069 _ACEOF
19070 for ac_lib in '' rt posix4; do
19071   if test -z "$ac_lib"; then
19072     ac_res="none required"
19073   else
19074     ac_res=-l$ac_lib
19075     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19076   fi
19077   rm -f conftest.$ac_objext conftest$ac_exeext
19078 if { (ac_try="$ac_link"
19079 case "(($ac_try" in
19080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19081   *) ac_try_echo=$ac_try;;
19082 esac
19083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19084   (eval "$ac_link") 2>conftest.er1
19085   ac_status=$?
19086   grep -v '^ *+' conftest.er1 >conftest.err
19087   rm -f conftest.er1
19088   cat conftest.err >&5
19089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19090   (exit $ac_status); } && {
19091          test -z "$ac_c_werror_flag" ||
19092          test ! -s conftest.err
19093        } && test -s conftest$ac_exeext &&
19094        $as_test_x conftest$ac_exeext; then
19095   ac_cv_search_clock_gettime=$ac_res
19096 else
19097   echo "$as_me: failed program was:" >&5
19098 sed 's/^/| /' conftest.$ac_ext >&5
19099
19100
19101 fi
19102
19103 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19104       conftest$ac_exeext
19105   if test "${ac_cv_search_clock_gettime+set}" = set; then
19106   break
19107 fi
19108 done
19109 if test "${ac_cv_search_clock_gettime+set}" = set; then
19110   :
19111 else
19112   ac_cv_search_clock_gettime=no
19113 fi
19114 rm conftest.$ac_ext
19115 LIBS=$ac_func_search_save_LIBS
19116 fi
19117 { echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
19118 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
19119 ac_res=$ac_cv_search_clock_gettime
19120 if test "$ac_res" != no; then
19121   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19122   test "$ac_cv_search_clock_gettime" = "none required" ||
19123                     LIB_CLOCK_GETTIME=$ac_cv_search_clock_gettime
19124 fi
19125
19126
19127
19128
19129 for ac_func in clock_gettime clock_settime
19130 do
19131 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19132 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19133 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19134 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19135   echo $ECHO_N "(cached) $ECHO_C" >&6
19136 else
19137   cat >conftest.$ac_ext <<_ACEOF
19138 /* confdefs.h.  */
19139 _ACEOF
19140 cat confdefs.h >>conftest.$ac_ext
19141 cat >>conftest.$ac_ext <<_ACEOF
19142 /* end confdefs.h.  */
19143 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19144    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19145 #define $ac_func innocuous_$ac_func
19146
19147 /* System header to define __stub macros and hopefully few prototypes,
19148     which can conflict with char $ac_func (); below.
19149     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19150     <limits.h> exists even on freestanding compilers.  */
19151
19152 #ifdef __STDC__
19153 # include <limits.h>
19154 #else
19155 # include <assert.h>
19156 #endif
19157
19158 #undef $ac_func
19159
19160 /* Override any GCC internal prototype to avoid an error.
19161    Use char because int might match the return type of a GCC
19162    builtin and then its argument prototype would still apply.  */
19163 #ifdef __cplusplus
19164 extern "C"
19165 #endif
19166 char $ac_func ();
19167 /* The GNU C library defines this for functions which it implements
19168     to always fail with ENOSYS.  Some functions are actually named
19169     something starting with __ and the normal name is an alias.  */
19170 #if defined __stub_$ac_func || defined __stub___$ac_func
19171 choke me
19172 #endif
19173
19174 int
19175 main ()
19176 {
19177 return $ac_func ();
19178   ;
19179   return 0;
19180 }
19181 _ACEOF
19182 rm -f conftest.$ac_objext conftest$ac_exeext
19183 if { (ac_try="$ac_link"
19184 case "(($ac_try" in
19185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19186   *) ac_try_echo=$ac_try;;
19187 esac
19188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19189   (eval "$ac_link") 2>conftest.er1
19190   ac_status=$?
19191   grep -v '^ *+' conftest.er1 >conftest.err
19192   rm -f conftest.er1
19193   cat conftest.err >&5
19194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19195   (exit $ac_status); } && {
19196          test -z "$ac_c_werror_flag" ||
19197          test ! -s conftest.err
19198        } && test -s conftest$ac_exeext &&
19199        $as_test_x conftest$ac_exeext; then
19200   eval "$as_ac_var=yes"
19201 else
19202   echo "$as_me: failed program was:" >&5
19203 sed 's/^/| /' conftest.$ac_ext >&5
19204
19205         eval "$as_ac_var=no"
19206 fi
19207
19208 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19209       conftest$ac_exeext conftest.$ac_ext
19210 fi
19211 ac_res=`eval echo '${'$as_ac_var'}'`
19212                { echo "$as_me:$LINENO: result: $ac_res" >&5
19213 echo "${ECHO_T}$ac_res" >&6; }
19214 if test `eval echo '${'$as_ac_var'}'` = yes; then
19215   cat >>confdefs.h <<_ACEOF
19216 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19217 _ACEOF
19218
19219 fi
19220 done
19221
19222   LIBS=$gl_saved_libs
19223
19224
19225
19226
19227
19228
19229   GNULIB_CLOSE=1
19230
19231
19232
19233
19234
19235
19236
19237
19238
19239
19240   gl_LIBOBJS="$gl_LIBOBJS close-stream.$ac_objext"
19241
19242
19243     :
19244
19245
19246
19247 cat >>confdefs.h <<\_ACEOF
19248 #define GNULIB_CLOSE_STREAM 1
19249 _ACEOF
19250
19251
19252
19253
19254
19255
19256
19257
19258
19259
19260
19261   gl_LIBOBJS="$gl_LIBOBJS closeout.$ac_objext"
19262
19263
19264     :
19265
19266   { echo "$as_me:$LINENO: checking for d_ino member in directory struct" >&5
19267 echo $ECHO_N "checking for d_ino member in directory struct... $ECHO_C" >&6; }
19268 if test "${gl_cv_struct_dirent_d_ino+set}" = set; then
19269   echo $ECHO_N "(cached) $ECHO_C" >&6
19270 else
19271   if test "$cross_compiling" = yes; then
19272   gl_cv_struct_dirent_d_ino=no
19273 else
19274   cat >conftest.$ac_ext <<_ACEOF
19275 /* confdefs.h.  */
19276 _ACEOF
19277 cat confdefs.h >>conftest.$ac_ext
19278 cat >>conftest.$ac_ext <<_ACEOF
19279 /* end confdefs.h.  */
19280 #include <sys/types.h>
19281              #include <sys/stat.h>
19282              #include <dirent.h>
19283
19284 int
19285 main ()
19286 {
19287 DIR *dp = opendir (".");
19288              struct dirent *e;
19289              struct stat st;
19290              if (! dp)
19291                return 1;
19292              e = readdir (dp);
19293              return ! (e
19294                        && stat (e->d_name, &st) == 0
19295                        && e->d_ino == st.st_ino);
19296   ;
19297   return 0;
19298 }
19299 _ACEOF
19300 rm -f conftest$ac_exeext
19301 if { (ac_try="$ac_link"
19302 case "(($ac_try" in
19303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19304   *) ac_try_echo=$ac_try;;
19305 esac
19306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19307   (eval "$ac_link") 2>&5
19308   ac_status=$?
19309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19310   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19311   { (case "(($ac_try" in
19312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19313   *) ac_try_echo=$ac_try;;
19314 esac
19315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19316   (eval "$ac_try") 2>&5
19317   ac_status=$?
19318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19319   (exit $ac_status); }; }; then
19320   gl_cv_struct_dirent_d_ino=yes
19321 else
19322   echo "$as_me: program exited with status $ac_status" >&5
19323 echo "$as_me: failed program was:" >&5
19324 sed 's/^/| /' conftest.$ac_ext >&5
19325
19326 ( exit $ac_status )
19327 gl_cv_struct_dirent_d_ino=no
19328 fi
19329 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19330 fi
19331
19332
19333 fi
19334 { echo "$as_me:$LINENO: result: $gl_cv_struct_dirent_d_ino" >&5
19335 echo "${ECHO_T}$gl_cv_struct_dirent_d_ino" >&6; }
19336    if test $gl_cv_struct_dirent_d_ino = yes; then
19337
19338 cat >>confdefs.h <<\_ACEOF
19339 #define D_INO_IN_DIRENT 1
19340 _ACEOF
19341
19342    fi
19343
19344
19345
19346
19347
19348
19349
19350
19351
19352
19353
19354
19355
19356
19357
19358      if test $gl_cv_have_include_next = yes; then
19359        gl_cv_next_dirent_h='<'dirent.h'>'
19360      else
19361        { echo "$as_me:$LINENO: checking absolute name of <dirent.h>" >&5
19362 echo $ECHO_N "checking absolute name of <dirent.h>... $ECHO_C" >&6; }
19363 if test "${gl_cv_next_dirent_h+set}" = set; then
19364   echo $ECHO_N "(cached) $ECHO_C" >&6
19365 else
19366
19367           if test $ac_cv_header_dirent_h = yes; then
19368             cat >conftest.$ac_ext <<_ACEOF
19369 /* confdefs.h.  */
19370 _ACEOF
19371 cat confdefs.h >>conftest.$ac_ext
19372 cat >>conftest.$ac_ext <<_ACEOF
19373 /* end confdefs.h.  */
19374 #include <dirent.h>
19375
19376 _ACEOF
19377                                     gl_cv_next_dirent_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19378                sed -n '\#/dirent.h#{
19379                  s#.*"\(.*/dirent.h\)".*#\1#
19380                  s#^/[^/]#//&#
19381                  p
19382                  q
19383                }'`'"'
19384           else
19385             gl_cv_next_dirent_h='<'dirent.h'>'
19386           fi
19387
19388 fi
19389 { echo "$as_me:$LINENO: result: $gl_cv_next_dirent_h" >&5
19390 echo "${ECHO_T}$gl_cv_next_dirent_h" >&6; }
19391      fi
19392      NEXT_DIRENT_H=$gl_cv_next_dirent_h
19393
19394
19395
19396
19397
19398
19399
19400
19401   DIRENT_H='dirent.h'
19402
19403
19404
19405
19406
19407
19408
19409
19410 for ac_func in dirfd
19411 do
19412 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19413 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19414 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19415 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19416   echo $ECHO_N "(cached) $ECHO_C" >&6
19417 else
19418   cat >conftest.$ac_ext <<_ACEOF
19419 /* confdefs.h.  */
19420 _ACEOF
19421 cat confdefs.h >>conftest.$ac_ext
19422 cat >>conftest.$ac_ext <<_ACEOF
19423 /* end confdefs.h.  */
19424 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19425    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19426 #define $ac_func innocuous_$ac_func
19427
19428 /* System header to define __stub macros and hopefully few prototypes,
19429     which can conflict with char $ac_func (); below.
19430     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19431     <limits.h> exists even on freestanding compilers.  */
19432
19433 #ifdef __STDC__
19434 # include <limits.h>
19435 #else
19436 # include <assert.h>
19437 #endif
19438
19439 #undef $ac_func
19440
19441 /* Override any GCC internal prototype to avoid an error.
19442    Use char because int might match the return type of a GCC
19443    builtin and then its argument prototype would still apply.  */
19444 #ifdef __cplusplus
19445 extern "C"
19446 #endif
19447 char $ac_func ();
19448 /* The GNU C library defines this for functions which it implements
19449     to always fail with ENOSYS.  Some functions are actually named
19450     something starting with __ and the normal name is an alias.  */
19451 #if defined __stub_$ac_func || defined __stub___$ac_func
19452 choke me
19453 #endif
19454
19455 int
19456 main ()
19457 {
19458 return $ac_func ();
19459   ;
19460   return 0;
19461 }
19462 _ACEOF
19463 rm -f conftest.$ac_objext conftest$ac_exeext
19464 if { (ac_try="$ac_link"
19465 case "(($ac_try" in
19466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19467   *) ac_try_echo=$ac_try;;
19468 esac
19469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19470   (eval "$ac_link") 2>conftest.er1
19471   ac_status=$?
19472   grep -v '^ *+' conftest.er1 >conftest.err
19473   rm -f conftest.er1
19474   cat conftest.err >&5
19475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19476   (exit $ac_status); } && {
19477          test -z "$ac_c_werror_flag" ||
19478          test ! -s conftest.err
19479        } && test -s conftest$ac_exeext &&
19480        $as_test_x conftest$ac_exeext; then
19481   eval "$as_ac_var=yes"
19482 else
19483   echo "$as_me: failed program was:" >&5
19484 sed 's/^/| /' conftest.$ac_ext >&5
19485
19486         eval "$as_ac_var=no"
19487 fi
19488
19489 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19490       conftest$ac_exeext conftest.$ac_ext
19491 fi
19492 ac_res=`eval echo '${'$as_ac_var'}'`
19493                { echo "$as_me:$LINENO: result: $ac_res" >&5
19494 echo "${ECHO_T}$ac_res" >&6; }
19495 if test `eval echo '${'$as_ac_var'}'` = yes; then
19496   cat >>confdefs.h <<_ACEOF
19497 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19498 _ACEOF
19499
19500 fi
19501 done
19502
19503   { echo "$as_me:$LINENO: checking whether dirfd is declared" >&5
19504 echo $ECHO_N "checking whether dirfd is declared... $ECHO_C" >&6; }
19505 if test "${ac_cv_have_decl_dirfd+set}" = set; then
19506   echo $ECHO_N "(cached) $ECHO_C" >&6
19507 else
19508   cat >conftest.$ac_ext <<_ACEOF
19509 /* confdefs.h.  */
19510 _ACEOF
19511 cat confdefs.h >>conftest.$ac_ext
19512 cat >>conftest.$ac_ext <<_ACEOF
19513 /* end confdefs.h.  */
19514 #include <sys/types.h>
19515      #include <dirent.h>
19516
19517 int
19518 main ()
19519 {
19520 #ifndef dirfd
19521   (void) dirfd;
19522 #endif
19523
19524   ;
19525   return 0;
19526 }
19527 _ACEOF
19528 rm -f conftest.$ac_objext
19529 if { (ac_try="$ac_compile"
19530 case "(($ac_try" in
19531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19532   *) ac_try_echo=$ac_try;;
19533 esac
19534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19535   (eval "$ac_compile") 2>conftest.er1
19536   ac_status=$?
19537   grep -v '^ *+' conftest.er1 >conftest.err
19538   rm -f conftest.er1
19539   cat conftest.err >&5
19540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19541   (exit $ac_status); } && {
19542          test -z "$ac_c_werror_flag" ||
19543          test ! -s conftest.err
19544        } && test -s conftest.$ac_objext; then
19545   ac_cv_have_decl_dirfd=yes
19546 else
19547   echo "$as_me: failed program was:" >&5
19548 sed 's/^/| /' conftest.$ac_ext >&5
19549
19550         ac_cv_have_decl_dirfd=no
19551 fi
19552
19553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19554 fi
19555 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_dirfd" >&5
19556 echo "${ECHO_T}$ac_cv_have_decl_dirfd" >&6; }
19557 if test $ac_cv_have_decl_dirfd = yes; then
19558
19559 cat >>confdefs.h <<_ACEOF
19560 #define HAVE_DECL_DIRFD 1
19561 _ACEOF
19562
19563
19564 else
19565   cat >>confdefs.h <<_ACEOF
19566 #define HAVE_DECL_DIRFD 0
19567 _ACEOF
19568
19569
19570 fi
19571
19572
19573   if test $ac_cv_have_decl_dirfd = no; then
19574     HAVE_DECL_DIRFD=0
19575   fi
19576
19577   { echo "$as_me:$LINENO: checking whether dirfd is a macro" >&5
19578 echo $ECHO_N "checking whether dirfd is a macro... $ECHO_C" >&6; }
19579 if test "${gl_cv_func_dirfd_macro+set}" = set; then
19580   echo $ECHO_N "(cached) $ECHO_C" >&6
19581 else
19582   cat >conftest.$ac_ext <<_ACEOF
19583 /* confdefs.h.  */
19584 _ACEOF
19585 cat confdefs.h >>conftest.$ac_ext
19586 cat >>conftest.$ac_ext <<_ACEOF
19587 /* end confdefs.h.  */
19588
19589 #include <sys/types.h>
19590 #include <dirent.h>
19591 #ifdef dirfd
19592  dirent_header_defines_dirfd
19593 #endif
19594 _ACEOF
19595 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19596   $EGREP "dirent_header_defines_dirfd" >/dev/null 2>&1; then
19597   gl_cv_func_dirfd_macro=yes
19598 else
19599   gl_cv_func_dirfd_macro=no
19600 fi
19601 rm -f conftest*
19602
19603 fi
19604 { echo "$as_me:$LINENO: result: $gl_cv_func_dirfd_macro" >&5
19605 echo "${ECHO_T}$gl_cv_func_dirfd_macro" >&6; }
19606
19607   # Use the replacement only if we have no function, macro,
19608   # or declaration with that name.
19609   if test $ac_cv_func_dirfd,$ac_cv_have_decl_dirfd,$gl_cv_func_dirfd_macro \
19610       = no,no,no; then
19611
19612
19613
19614
19615
19616
19617
19618
19619
19620 for ac_func in dirfd
19621 do
19622 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19623 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19624 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19625 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19626   echo $ECHO_N "(cached) $ECHO_C" >&6
19627 else
19628   cat >conftest.$ac_ext <<_ACEOF
19629 /* confdefs.h.  */
19630 _ACEOF
19631 cat confdefs.h >>conftest.$ac_ext
19632 cat >>conftest.$ac_ext <<_ACEOF
19633 /* end confdefs.h.  */
19634 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19635    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19636 #define $ac_func innocuous_$ac_func
19637
19638 /* System header to define __stub macros and hopefully few prototypes,
19639     which can conflict with char $ac_func (); below.
19640     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19641     <limits.h> exists even on freestanding compilers.  */
19642
19643 #ifdef __STDC__
19644 # include <limits.h>
19645 #else
19646 # include <assert.h>
19647 #endif
19648
19649 #undef $ac_func
19650
19651 /* Override any GCC internal prototype to avoid an error.
19652    Use char because int might match the return type of a GCC
19653    builtin and then its argument prototype would still apply.  */
19654 #ifdef __cplusplus
19655 extern "C"
19656 #endif
19657 char $ac_func ();
19658 /* The GNU C library defines this for functions which it implements
19659     to always fail with ENOSYS.  Some functions are actually named
19660     something starting with __ and the normal name is an alias.  */
19661 #if defined __stub_$ac_func || defined __stub___$ac_func
19662 choke me
19663 #endif
19664
19665 int
19666 main ()
19667 {
19668 return $ac_func ();
19669   ;
19670   return 0;
19671 }
19672 _ACEOF
19673 rm -f conftest.$ac_objext conftest$ac_exeext
19674 if { (ac_try="$ac_link"
19675 case "(($ac_try" in
19676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19677   *) ac_try_echo=$ac_try;;
19678 esac
19679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19680   (eval "$ac_link") 2>conftest.er1
19681   ac_status=$?
19682   grep -v '^ *+' conftest.er1 >conftest.err
19683   rm -f conftest.er1
19684   cat conftest.err >&5
19685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19686   (exit $ac_status); } && {
19687          test -z "$ac_c_werror_flag" ||
19688          test ! -s conftest.err
19689        } && test -s conftest$ac_exeext &&
19690        $as_test_x conftest$ac_exeext; then
19691   eval "$as_ac_var=yes"
19692 else
19693   echo "$as_me: failed program was:" >&5
19694 sed 's/^/| /' conftest.$ac_ext >&5
19695
19696         eval "$as_ac_var=no"
19697 fi
19698
19699 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19700       conftest$ac_exeext conftest.$ac_ext
19701 fi
19702 ac_res=`eval echo '${'$as_ac_var'}'`
19703                { echo "$as_me:$LINENO: result: $ac_res" >&5
19704 echo "${ECHO_T}$ac_res" >&6; }
19705 if test `eval echo '${'$as_ac_var'}'` = yes; then
19706   cat >>confdefs.h <<_ACEOF
19707 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19708 _ACEOF
19709
19710 else
19711
19712     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
19713
19714 fi
19715 done
19716
19717
19718     { echo "$as_me:$LINENO: checking how to get the file descriptor associated with an open DIR*" >&5
19719 echo $ECHO_N "checking how to get the file descriptor associated with an open DIR*... $ECHO_C" >&6; }
19720 if test "${gl_cv_sys_dir_fd_member_name+set}" = set; then
19721   echo $ECHO_N "(cached) $ECHO_C" >&6
19722 else
19723
19724         dirfd_save_CFLAGS=$CFLAGS
19725         for ac_expr in d_fd dd_fd; do
19726
19727           CFLAGS="$CFLAGS -DDIR_FD_MEMBER_NAME=$ac_expr"
19728           cat >conftest.$ac_ext <<_ACEOF
19729 /* confdefs.h.  */
19730 _ACEOF
19731 cat confdefs.h >>conftest.$ac_ext
19732 cat >>conftest.$ac_ext <<_ACEOF
19733 /* end confdefs.h.  */
19734 #include <sys/types.h>
19735              #include <dirent.h>
19736 int
19737 main ()
19738 {
19739 DIR *dir_p = opendir("."); (void) dir_p->DIR_FD_MEMBER_NAME;
19740   ;
19741   return 0;
19742 }
19743 _ACEOF
19744 rm -f conftest.$ac_objext
19745 if { (ac_try="$ac_compile"
19746 case "(($ac_try" in
19747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19748   *) ac_try_echo=$ac_try;;
19749 esac
19750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19751   (eval "$ac_compile") 2>conftest.er1
19752   ac_status=$?
19753   grep -v '^ *+' conftest.er1 >conftest.err
19754   rm -f conftest.er1
19755   cat conftest.err >&5
19756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19757   (exit $ac_status); } && {
19758          test -z "$ac_c_werror_flag" ||
19759          test ! -s conftest.err
19760        } && test -s conftest.$ac_objext; then
19761   dir_fd_found=yes
19762
19763 else
19764   echo "$as_me: failed program was:" >&5
19765 sed 's/^/| /' conftest.$ac_ext >&5
19766
19767
19768 fi
19769
19770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19771           CFLAGS=$dirfd_save_CFLAGS
19772           test "$dir_fd_found" = yes && break
19773         done
19774         test "$dir_fd_found" = yes || ac_expr=no_such_member
19775
19776         gl_cv_sys_dir_fd_member_name=$ac_expr
19777
19778
19779 fi
19780 { echo "$as_me:$LINENO: result: $gl_cv_sys_dir_fd_member_name" >&5
19781 echo "${ECHO_T}$gl_cv_sys_dir_fd_member_name" >&6; }
19782     if test $gl_cv_sys_dir_fd_member_name != no_such_member; then
19783
19784 cat >>confdefs.h <<_ACEOF
19785 #define DIR_FD_MEMBER_NAME $gl_cv_sys_dir_fd_member_name
19786 _ACEOF
19787
19788     fi
19789
19790
19791   fi
19792
19793
19794
19795   GNULIB_DIRFD=1
19796
19797
19798
19799
19800
19801
19802
19803
19804
19805
19806   gl_LIBOBJS="$gl_LIBOBJS basename.$ac_objext"
19807
19808
19809
19810
19811
19812
19813
19814
19815
19816   gl_LIBOBJS="$gl_LIBOBJS dirname.$ac_objext"
19817
19818
19819
19820
19821
19822
19823
19824
19825
19826   gl_LIBOBJS="$gl_LIBOBJS stripslash.$ac_objext"
19827
19828
19829
19830
19831
19832
19833
19834
19835   { echo "$as_me:$LINENO: checking whether // is distinct from /" >&5
19836 echo $ECHO_N "checking whether // is distinct from /... $ECHO_C" >&6; }
19837 if test "${gl_cv_double_slash_root+set}" = set; then
19838   echo $ECHO_N "(cached) $ECHO_C" >&6
19839 else
19840    if test x"$cross_compiling" = xyes ; then
19841         # When cross-compiling, there is no way to tell whether // is special
19842         # short of a list of hosts.  However, the only known hosts to date
19843         # that have a distinct // are Apollo DomainOS (too old to port to),
19844         # Cygwin, and z/OS.  If anyone knows of another system for which // has
19845         # special semantics and is distinct from /, please report it to
19846         # <bug-gnulib@gnu.org>.
19847         case $host in
19848           *-cygwin | i370-ibm-openedition)
19849             gl_cv_double_slash_root=yes ;;
19850           *)
19851             # Be optimistic and assume that / and // are the same when we
19852             # don't know.
19853             gl_cv_double_slash_root='unknown, assuming no' ;;
19854         esac
19855       else
19856         set x `ls -di / // 2>/dev/null`
19857         if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
19858           gl_cv_double_slash_root=no
19859         else
19860           gl_cv_double_slash_root=yes
19861         fi
19862       fi
19863 fi
19864 { echo "$as_me:$LINENO: result: $gl_cv_double_slash_root" >&5
19865 echo "${ECHO_T}$gl_cv_double_slash_root" >&6; }
19866   if test "$gl_cv_double_slash_root" = yes; then
19867
19868 cat >>confdefs.h <<\_ACEOF
19869 #define DOUBLE_SLASH_IS_DISTINCT_ROOT 1
19870 _ACEOF
19871
19872   fi
19873
19874
19875
19876
19877
19878
19879
19880
19881
19882   if test $ac_cv_func_dup2 = no; then
19883     HAVE_DUP2=0
19884
19885
19886
19887
19888
19889
19890
19891
19892   gl_LIBOBJS="$gl_LIBOBJS dup2.$ac_objext"
19893
19894   fi
19895
19896
19897
19898   GNULIB_DUP2=1
19899
19900
19901
19902
19903
19904
19905   { echo "$as_me:$LINENO: checking if environ is properly declared" >&5
19906 echo $ECHO_N "checking if environ is properly declared... $ECHO_C" >&6; }
19907   if test "${gt_cv_var_environ_declaration+set}" = set; then
19908   echo $ECHO_N "(cached) $ECHO_C" >&6
19909 else
19910
19911     cat >conftest.$ac_ext <<_ACEOF
19912 /* confdefs.h.  */
19913 _ACEOF
19914 cat confdefs.h >>conftest.$ac_ext
19915 cat >>conftest.$ac_ext <<_ACEOF
19916 /* end confdefs.h.  */
19917 #include <unistd.h>
19918       extern struct { int foo; } environ;
19919 int
19920 main ()
19921 {
19922 environ.foo = 1;
19923   ;
19924   return 0;
19925 }
19926 _ACEOF
19927 rm -f conftest.$ac_objext
19928 if { (ac_try="$ac_compile"
19929 case "(($ac_try" in
19930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19931   *) ac_try_echo=$ac_try;;
19932 esac
19933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19934   (eval "$ac_compile") 2>conftest.er1
19935   ac_status=$?
19936   grep -v '^ *+' conftest.er1 >conftest.err
19937   rm -f conftest.er1
19938   cat conftest.err >&5
19939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19940   (exit $ac_status); } && {
19941          test -z "$ac_c_werror_flag" ||
19942          test ! -s conftest.err
19943        } && test -s conftest.$ac_objext; then
19944   gt_cv_var_environ_declaration=no
19945 else
19946   echo "$as_me: failed program was:" >&5
19947 sed 's/^/| /' conftest.$ac_ext >&5
19948
19949         gt_cv_var_environ_declaration=yes
19950 fi
19951
19952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19953 fi
19954
19955   { echo "$as_me:$LINENO: result: $gt_cv_var_environ_declaration" >&5
19956 echo "${ECHO_T}$gt_cv_var_environ_declaration" >&6; }
19957   if test $gt_cv_var_environ_declaration = yes; then
19958
19959 cat >>confdefs.h <<\_ACEOF
19960 #define HAVE_ENVIRON_DECL 1
19961 _ACEOF
19962
19963   fi
19964
19965
19966   if test $gt_cv_var_environ_declaration != yes; then
19967     HAVE_DECL_ENVIRON=0
19968   fi
19969
19970
19971
19972   GNULIB_ENVIRON=1
19973
19974
19975
19976
19977
19978
19979
19980
19981
19982
19983
19984
19985
19986
19987
19988
19989
19990 { echo "$as_me:$LINENO: checking for error_at_line" >&5
19991 echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6; }
19992 if test "${ac_cv_lib_error_at_line+set}" = set; then
19993   echo $ECHO_N "(cached) $ECHO_C" >&6
19994 else
19995   cat >conftest.$ac_ext <<_ACEOF
19996 /* confdefs.h.  */
19997 _ACEOF
19998 cat confdefs.h >>conftest.$ac_ext
19999 cat >>conftest.$ac_ext <<_ACEOF
20000 /* end confdefs.h.  */
20001 #include <error.h>
20002 int
20003 main ()
20004 {
20005 error_at_line (0, 0, "", 0, "an error occurred");
20006   ;
20007   return 0;
20008 }
20009 _ACEOF
20010 rm -f conftest.$ac_objext conftest$ac_exeext
20011 if { (ac_try="$ac_link"
20012 case "(($ac_try" in
20013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20014   *) ac_try_echo=$ac_try;;
20015 esac
20016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20017   (eval "$ac_link") 2>conftest.er1
20018   ac_status=$?
20019   grep -v '^ *+' conftest.er1 >conftest.err
20020   rm -f conftest.er1
20021   cat conftest.err >&5
20022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20023   (exit $ac_status); } && {
20024          test -z "$ac_c_werror_flag" ||
20025          test ! -s conftest.err
20026        } && test -s conftest$ac_exeext &&
20027        $as_test_x conftest$ac_exeext; then
20028   ac_cv_lib_error_at_line=yes
20029 else
20030   echo "$as_me: failed program was:" >&5
20031 sed 's/^/| /' conftest.$ac_ext >&5
20032
20033         ac_cv_lib_error_at_line=no
20034 fi
20035
20036 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20037       conftest$ac_exeext conftest.$ac_ext
20038 fi
20039 { echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
20040 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6; }
20041 if test $ac_cv_lib_error_at_line = no; then
20042
20043
20044
20045
20046
20047
20048
20049
20050   gl_LIBOBJS="$gl_LIBOBJS error.$ac_objext"
20051
20052 fi
20053
20054
20055
20056   :
20057
20058
20059
20060
20061   XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error:3:c-format"
20062
20063
20064
20065   XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error_at_line:5:c-format"
20066
20067
20068
20069
20070
20071
20072
20073
20074
20075
20076   gl_LIBOBJS="$gl_LIBOBJS exclude.$ac_objext"
20077
20078
20079
20080
20081
20082
20083
20084
20085
20086
20087
20088   gl_LIBOBJS="$gl_LIBOBJS exitfail.$ac_objext"
20089
20090
20091     :
20092
20093
20094
20095
20096
20097
20098
20099
20100
20101
20102   if test $ac_cv_func_fchdir = no; then
20103     REPLACE_FCHDIR=1
20104
20105
20106
20107
20108
20109
20110
20111
20112   gl_LIBOBJS="$gl_LIBOBJS fchdir.$ac_objext"
20113
20114     :
20115
20116 cat >>confdefs.h <<\_ACEOF
20117 #define FCHDIR_REPLACEMENT 1
20118 _ACEOF
20119
20120
20121
20122   if test $REPLACE_OPEN != 1; then
20123
20124
20125
20126
20127
20128
20129
20130
20131   gl_LIBOBJS="$gl_LIBOBJS open.$ac_objext"
20132
20133
20134
20135   :
20136
20137   fi
20138   REPLACE_OPEN=1
20139
20140
20141
20142   if test $REPLACE_CLOSE != 1; then
20143
20144
20145
20146
20147
20148
20149
20150
20151   gl_LIBOBJS="$gl_LIBOBJS close.$ac_objext"
20152
20153   fi
20154   REPLACE_CLOSE=1
20155
20156
20157   if test $REPLACE_FCLOSE != 1; then
20158
20159
20160
20161
20162
20163
20164
20165
20166   gl_LIBOBJS="$gl_LIBOBJS fclose.$ac_objext"
20167
20168   fi
20169   REPLACE_FCLOSE=1
20170
20171
20172
20173
20174   DIRENT_H='dirent.h'
20175
20176   fi
20177
20178
20179
20180   GNULIB_FCHDIR=1
20181
20182
20183
20184
20185
20186   GNULIB_FCLOSE=1
20187
20188
20189
20190   { echo "$as_me:$LINENO: checking for working fcntl.h" >&5
20191 echo $ECHO_N "checking for working fcntl.h... $ECHO_C" >&6; }
20192 if test "${gl_cv_header_working_fcntl_h+set}" = set; then
20193   echo $ECHO_N "(cached) $ECHO_C" >&6
20194 else
20195   if test "$cross_compiling" = yes; then
20196   gl_cv_header_working_fcntl_h=cross-compiling
20197 else
20198   cat >conftest.$ac_ext <<_ACEOF
20199 /* confdefs.h.  */
20200 _ACEOF
20201 cat confdefs.h >>conftest.$ac_ext
20202 cat >>conftest.$ac_ext <<_ACEOF
20203 /* end confdefs.h.  */
20204 #include <sys/types.h>
20205            #include <sys/stat.h>
20206            #include <unistd.h>
20207            #include <fcntl.h>
20208            #ifndef O_NOATIME
20209             #define O_NOATIME 0
20210            #endif
20211            #ifndef O_NOFOLLOW
20212             #define O_NOFOLLOW 0
20213            #endif
20214            static int const constants[] =
20215             {
20216               O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
20217               O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
20218             };
20219
20220 int
20221 main ()
20222 {
20223
20224             int status = !constants;
20225             {
20226               static char const sym[] = "conftest.sym";
20227               if (symlink (".", sym) != 0
20228                   || close (open (sym, O_RDONLY | O_NOFOLLOW)) == 0)
20229                 status |= 32;
20230             }
20231             {
20232               static char const file[] = "confdefs.h";
20233               int fd = open (file, O_RDONLY | O_NOATIME);
20234               char c;
20235               struct stat st0, st1;
20236               if (fd < 0
20237                   || fstat (fd, &st0) != 0
20238                   || sleep (1) != 0
20239                   || read (fd, &c, 1) != 1
20240                   || close (fd) != 0
20241                   || stat (file, &st1) != 0
20242                   || st0.st_atime != st1.st_atime)
20243                 status |= 64;
20244             }
20245             return status;
20246   ;
20247   return 0;
20248 }
20249 _ACEOF
20250 rm -f conftest$ac_exeext
20251 if { (ac_try="$ac_link"
20252 case "(($ac_try" in
20253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20254   *) ac_try_echo=$ac_try;;
20255 esac
20256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20257   (eval "$ac_link") 2>&5
20258   ac_status=$?
20259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20260   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20261   { (case "(($ac_try" in
20262   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20263   *) ac_try_echo=$ac_try;;
20264 esac
20265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20266   (eval "$ac_try") 2>&5
20267   ac_status=$?
20268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20269   (exit $ac_status); }; }; then
20270   gl_cv_header_working_fcntl_h=yes
20271 else
20272   echo "$as_me: program exited with status $ac_status" >&5
20273 echo "$as_me: failed program was:" >&5
20274 sed 's/^/| /' conftest.$ac_ext >&5
20275
20276 ( exit $ac_status )
20277 case $? in #(
20278         32) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
20279         64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
20280         96) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
20281          *) gl_cv_header_working_fcntl_h='no';;
20282         esac
20283 fi
20284 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20285 fi
20286
20287
20288 fi
20289 { echo "$as_me:$LINENO: result: $gl_cv_header_working_fcntl_h" >&5
20290 echo "${ECHO_T}$gl_cv_header_working_fcntl_h" >&6; }
20291
20292   case $gl_cv_header_working_fcntl_h in #(
20293   *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
20294   *) ac_val=1;;
20295   esac
20296
20297 cat >>confdefs.h <<_ACEOF
20298 #define HAVE_WORKING_O_NOATIME $ac_val
20299 _ACEOF
20300
20301
20302   case $gl_cv_header_working_fcntl_h in #(
20303   *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
20304   *) ac_val=1;;
20305   esac
20306
20307 cat >>confdefs.h <<_ACEOF
20308 #define HAVE_WORKING_O_NOFOLLOW $ac_val
20309 _ACEOF
20310
20311
20312
20313
20314
20315
20316
20317
20318
20319
20320
20321
20322      if test $gl_cv_have_include_next = yes; then
20323        gl_cv_next_fcntl_h='<'fcntl.h'>'
20324      else
20325        { echo "$as_me:$LINENO: checking absolute name of <fcntl.h>" >&5
20326 echo $ECHO_N "checking absolute name of <fcntl.h>... $ECHO_C" >&6; }
20327 if test "${gl_cv_next_fcntl_h+set}" = set; then
20328   echo $ECHO_N "(cached) $ECHO_C" >&6
20329 else
20330
20331           if test $ac_cv_header_fcntl_h = yes; then
20332             cat >conftest.$ac_ext <<_ACEOF
20333 /* confdefs.h.  */
20334 _ACEOF
20335 cat confdefs.h >>conftest.$ac_ext
20336 cat >>conftest.$ac_ext <<_ACEOF
20337 /* end confdefs.h.  */
20338 #include <fcntl.h>
20339
20340 _ACEOF
20341                                     gl_cv_next_fcntl_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20342                sed -n '\#/fcntl.h#{
20343                  s#.*"\(.*/fcntl.h\)".*#\1#
20344                  s#^/[^/]#//&#
20345                  p
20346                  q
20347                }'`'"'
20348           else
20349             gl_cv_next_fcntl_h='<'fcntl.h'>'
20350           fi
20351
20352 fi
20353 { echo "$as_me:$LINENO: result: $gl_cv_next_fcntl_h" >&5
20354 echo "${ECHO_T}$gl_cv_next_fcntl_h" >&6; }
20355      fi
20356      NEXT_FCNTL_H=$gl_cv_next_fcntl_h
20357
20358
20359
20360   FCNTL_H='fcntl.h'
20361
20362
20363
20364
20365
20366
20367
20368
20369
20370
20371
20372   gl_LIBOBJS="$gl_LIBOBJS open-safer.$ac_objext"
20373
20374
20375
20376
20377
20378
20379
20380
20381
20382   gl_LIBOBJS="$gl_LIBOBJS creat-safer.$ac_objext"
20383
20384
20385
20386
20387 cat >>confdefs.h <<\_ACEOF
20388 #define GNULIB_FCNTL_SAFER 1
20389 _ACEOF
20390
20391
20392
20393   { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
20394 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
20395 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
20396   echo $ECHO_N "(cached) $ECHO_C" >&6
20397 else
20398   cat >conftest.$ac_ext <<_ACEOF
20399 /* confdefs.h.  */
20400 _ACEOF
20401 cat confdefs.h >>conftest.$ac_ext
20402 cat >>conftest.$ac_ext <<_ACEOF
20403 /* end confdefs.h.  */
20404 $ac_includes_default
20405 int
20406 main ()
20407 {
20408 static struct stat ac_aggr;
20409 if (ac_aggr.st_blocks)
20410 return 0;
20411   ;
20412   return 0;
20413 }
20414 _ACEOF
20415 rm -f conftest.$ac_objext
20416 if { (ac_try="$ac_compile"
20417 case "(($ac_try" in
20418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20419   *) ac_try_echo=$ac_try;;
20420 esac
20421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20422   (eval "$ac_compile") 2>conftest.er1
20423   ac_status=$?
20424   grep -v '^ *+' conftest.er1 >conftest.err
20425   rm -f conftest.er1
20426   cat conftest.err >&5
20427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20428   (exit $ac_status); } && {
20429          test -z "$ac_c_werror_flag" ||
20430          test ! -s conftest.err
20431        } && test -s conftest.$ac_objext; then
20432   ac_cv_member_struct_stat_st_blocks=yes
20433 else
20434   echo "$as_me: failed program was:" >&5
20435 sed 's/^/| /' conftest.$ac_ext >&5
20436
20437         cat >conftest.$ac_ext <<_ACEOF
20438 /* confdefs.h.  */
20439 _ACEOF
20440 cat confdefs.h >>conftest.$ac_ext
20441 cat >>conftest.$ac_ext <<_ACEOF
20442 /* end confdefs.h.  */
20443 $ac_includes_default
20444 int
20445 main ()
20446 {
20447 static struct stat ac_aggr;
20448 if (sizeof ac_aggr.st_blocks)
20449 return 0;
20450   ;
20451   return 0;
20452 }
20453 _ACEOF
20454 rm -f conftest.$ac_objext
20455 if { (ac_try="$ac_compile"
20456 case "(($ac_try" in
20457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20458   *) ac_try_echo=$ac_try;;
20459 esac
20460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20461   (eval "$ac_compile") 2>conftest.er1
20462   ac_status=$?
20463   grep -v '^ *+' conftest.er1 >conftest.err
20464   rm -f conftest.er1
20465   cat conftest.err >&5
20466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20467   (exit $ac_status); } && {
20468          test -z "$ac_c_werror_flag" ||
20469          test ! -s conftest.err
20470        } && test -s conftest.$ac_objext; then
20471   ac_cv_member_struct_stat_st_blocks=yes
20472 else
20473   echo "$as_me: failed program was:" >&5
20474 sed 's/^/| /' conftest.$ac_ext >&5
20475
20476         ac_cv_member_struct_stat_st_blocks=no
20477 fi
20478
20479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20480 fi
20481
20482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20483 fi
20484 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
20485 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
20486 if test $ac_cv_member_struct_stat_st_blocks = yes; then
20487
20488 cat >>confdefs.h <<_ACEOF
20489 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
20490 _ACEOF
20491
20492
20493 cat >>confdefs.h <<\_ACEOF
20494 #define HAVE_ST_BLOCKS 1
20495 _ACEOF
20496
20497 else
20498
20499
20500
20501
20502
20503
20504
20505
20506   gl_LIBOBJS="$gl_LIBOBJS fileblocks.$ac_objext"
20507
20508 fi
20509
20510
20511     if test $ac_cv_member_struct_stat_st_blocks = no; then
20512
20513
20514
20515
20516
20517
20518
20519   :
20520
20521   fi
20522
20523
20524
20525
20526   FLOAT_H=
20527   case "$host_os" in
20528     beos* | openbsd*)
20529       FLOAT_H=float.h
20530
20531
20532
20533
20534
20535
20536
20537
20538
20539
20540      if test $gl_cv_have_include_next = yes; then
20541        gl_cv_next_float_h='<'float.h'>'
20542      else
20543        { echo "$as_me:$LINENO: checking absolute name of <float.h>" >&5
20544 echo $ECHO_N "checking absolute name of <float.h>... $ECHO_C" >&6; }
20545 if test "${gl_cv_next_float_h+set}" = set; then
20546   echo $ECHO_N "(cached) $ECHO_C" >&6
20547 else
20548
20549           if test $ac_cv_header_float_h = yes; then
20550             cat >conftest.$ac_ext <<_ACEOF
20551 /* confdefs.h.  */
20552 _ACEOF
20553 cat confdefs.h >>conftest.$ac_ext
20554 cat >>conftest.$ac_ext <<_ACEOF
20555 /* end confdefs.h.  */
20556 #include <float.h>
20557
20558 _ACEOF
20559                                     gl_cv_next_float_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20560                sed -n '\#/float.h#{
20561                  s#.*"\(.*/float.h\)".*#\1#
20562                  s#^/[^/]#//&#
20563                  p
20564                  q
20565                }'`'"'
20566           else
20567             gl_cv_next_float_h='<'float.h'>'
20568           fi
20569
20570 fi
20571 { echo "$as_me:$LINENO: result: $gl_cv_next_float_h" >&5
20572 echo "${ECHO_T}$gl_cv_next_float_h" >&6; }
20573      fi
20574      NEXT_FLOAT_H=$gl_cv_next_float_h
20575
20576
20577
20578       ;;
20579   esac
20580
20581
20582   # No macro. You should also use one of fnmatch-posix or fnmatch-gnu.
20583
20584
20585
20586   FNMATCH_H=
20587   { echo "$as_me:$LINENO: checking for working GNU fnmatch" >&5
20588 echo $ECHO_N "checking for working GNU fnmatch... $ECHO_C" >&6; }
20589 if test "${ac_cv_func_fnmatch_gnu+set}" = set; then
20590   echo $ECHO_N "(cached) $ECHO_C" >&6
20591 else
20592               if test "$cross_compiling" = yes; then
20593   ac_cv_func_fnmatch_gnu=cross
20594 else
20595   cat >conftest.$ac_ext <<_ACEOF
20596 /* confdefs.h.  */
20597 _ACEOF
20598 cat confdefs.h >>conftest.$ac_ext
20599 cat >>conftest.$ac_ext <<_ACEOF
20600 /* end confdefs.h.  */
20601 #include <fnmatch.h>
20602            static int
20603            y (char const *pattern, char const *string, int flags)
20604            {
20605              return fnmatch (pattern, string, flags) == 0;
20606            }
20607            static int
20608            n (char const *pattern, char const *string, int flags)
20609            {
20610              return fnmatch (pattern, string, flags) == FNM_NOMATCH;
20611            }
20612
20613 int
20614 main ()
20615 {
20616 char const *Apat = 'A' < '\\\\' ? "[A-\\\\\\\\]" : "[\\\\\\\\-A]";
20617            char const *apat = 'a' < '\\\\' ? "[a-\\\\\\\\]" : "[\\\\\\\\-a]";
20618            static char const A_1[] = { 'A' - 1, 0 };
20619            static char const A01[] = { 'A' + 1, 0 };
20620            static char const a_1[] = { 'a' - 1, 0 };
20621            static char const a01[] = { 'a' + 1, 0 };
20622            static char const bs_1[] = { '\\\\' - 1, 0 };
20623            static char const bs01[] = { '\\\\' + 1, 0 };
20624            return
20625             !(n ("a*", "", 0)
20626               && y ("a*", "abc", 0)
20627               && n ("d*/*1", "d/s/1", FNM_PATHNAME)
20628               && y ("a\\\\bc", "abc", 0)
20629               && n ("a\\\\bc", "abc", FNM_NOESCAPE)
20630               && y ("*x", ".x", 0)
20631               && n ("*x", ".x", FNM_PERIOD)
20632               && y (Apat, "\\\\", 0) && y (Apat, "A", 0)
20633               && y (apat, "\\\\", 0) && y (apat, "a", 0)
20634               && n (Apat, A_1, 0) == ('A' < '\\\\')
20635               && n (apat, a_1, 0) == ('a' < '\\\\')
20636               && y (Apat, A01, 0) == ('A' < '\\\\')
20637               && y (apat, a01, 0) == ('a' < '\\\\')
20638               && y (Apat, bs_1, 0) == ('A' < '\\\\')
20639               && y (apat, bs_1, 0) == ('a' < '\\\\')
20640               && n (Apat, bs01, 0) == ('A' < '\\\\')
20641               && n (apat, bs01, 0) == ('a' < '\\\\')
20642               && y ("xxXX", "xXxX", FNM_CASEFOLD)
20643                     && y ("a++(x|yy)b", "a+xyyyyxb", FNM_EXTMATCH)
20644                     && n ("d*/*1", "d/s/1", FNM_FILE_NAME)
20645                     && y ("*", "x", FNM_FILE_NAME | FNM_LEADING_DIR)
20646                     && y ("x*", "x/y/z", FNM_FILE_NAME | FNM_LEADING_DIR)
20647                     && y ("*c*", "c/x", FNM_FILE_NAME | FNM_LEADING_DIR));
20648   ;
20649   return 0;
20650 }
20651 _ACEOF
20652 rm -f conftest$ac_exeext
20653 if { (ac_try="$ac_link"
20654 case "(($ac_try" in
20655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20656   *) ac_try_echo=$ac_try;;
20657 esac
20658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20659   (eval "$ac_link") 2>&5
20660   ac_status=$?
20661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20662   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20663   { (case "(($ac_try" in
20664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20665   *) ac_try_echo=$ac_try;;
20666 esac
20667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20668   (eval "$ac_try") 2>&5
20669   ac_status=$?
20670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20671   (exit $ac_status); }; }; then
20672   ac_cv_func_fnmatch_gnu=yes
20673 else
20674   echo "$as_me: program exited with status $ac_status" >&5
20675 echo "$as_me: failed program was:" >&5
20676 sed 's/^/| /' conftest.$ac_ext >&5
20677
20678 ( exit $ac_status )
20679 ac_cv_func_fnmatch_gnu=no
20680 fi
20681 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20682 fi
20683
20684
20685 fi
20686 { echo "$as_me:$LINENO: result: $ac_cv_func_fnmatch_gnu" >&5
20687 echo "${ECHO_T}$ac_cv_func_fnmatch_gnu" >&6; }
20688 if test $ac_cv_func_fnmatch_gnu = yes; then
20689   rm -f lib/fnmatch.h
20690 else
20691   { echo "$as_me:$LINENO: checking whether isblank is declared" >&5
20692 echo $ECHO_N "checking whether isblank is declared... $ECHO_C" >&6; }
20693 if test "${ac_cv_have_decl_isblank+set}" = set; then
20694   echo $ECHO_N "(cached) $ECHO_C" >&6
20695 else
20696   cat >conftest.$ac_ext <<_ACEOF
20697 /* confdefs.h.  */
20698 _ACEOF
20699 cat confdefs.h >>conftest.$ac_ext
20700 cat >>conftest.$ac_ext <<_ACEOF
20701 /* end confdefs.h.  */
20702 #include <ctype.h>
20703
20704 int
20705 main ()
20706 {
20707 #ifndef isblank
20708   (void) isblank;
20709 #endif
20710
20711   ;
20712   return 0;
20713 }
20714 _ACEOF
20715 rm -f conftest.$ac_objext
20716 if { (ac_try="$ac_compile"
20717 case "(($ac_try" in
20718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20719   *) ac_try_echo=$ac_try;;
20720 esac
20721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20722   (eval "$ac_compile") 2>conftest.er1
20723   ac_status=$?
20724   grep -v '^ *+' conftest.er1 >conftest.err
20725   rm -f conftest.er1
20726   cat conftest.err >&5
20727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20728   (exit $ac_status); } && {
20729          test -z "$ac_c_werror_flag" ||
20730          test ! -s conftest.err
20731        } && test -s conftest.$ac_objext; then
20732   ac_cv_have_decl_isblank=yes
20733 else
20734   echo "$as_me: failed program was:" >&5
20735 sed 's/^/| /' conftest.$ac_ext >&5
20736
20737         ac_cv_have_decl_isblank=no
20738 fi
20739
20740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20741 fi
20742 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isblank" >&5
20743 echo "${ECHO_T}$ac_cv_have_decl_isblank" >&6; }
20744 if test $ac_cv_have_decl_isblank = yes; then
20745
20746 cat >>confdefs.h <<_ACEOF
20747 #define HAVE_DECL_ISBLANK 1
20748 _ACEOF
20749
20750
20751 else
20752   cat >>confdefs.h <<_ACEOF
20753 #define HAVE_DECL_ISBLANK 0
20754 _ACEOF
20755
20756
20757 fi
20758
20759
20760
20761
20762
20763
20764
20765
20766
20767
20768
20769
20770
20771
20772
20773
20774
20775
20776
20777
20778
20779
20780
20781
20782
20783
20784
20785
20786
20787
20788
20789
20790
20791
20792
20793
20794   gl_LIBOBJS="$gl_LIBOBJS fnmatch.$ac_objext"
20795
20796 FNMATCH_H=fnmatch.h
20797
20798 fi
20799
20800
20801   if test $ac_cv_func_fnmatch_gnu != yes; then
20802
20803 cat >>confdefs.h <<\_ACEOF
20804 #define fnmatch gnu_fnmatch
20805 _ACEOF
20806
20807   fi
20808
20809
20810
20811
20812
20813
20814
20815
20816
20817
20818
20819
20820
20821
20822
20823   fp_headers='
20824 #     include <stdio.h>
20825 #     if HAVE_STDIO_EXT_H
20826 #      include <stdio_ext.h>
20827 #     endif
20828 '
20829   { echo "$as_me:$LINENO: checking whether __fpending is declared" >&5
20830 echo $ECHO_N "checking whether __fpending is declared... $ECHO_C" >&6; }
20831 if test "${ac_cv_have_decl___fpending+set}" = set; then
20832   echo $ECHO_N "(cached) $ECHO_C" >&6
20833 else
20834   cat >conftest.$ac_ext <<_ACEOF
20835 /* confdefs.h.  */
20836 _ACEOF
20837 cat confdefs.h >>conftest.$ac_ext
20838 cat >>conftest.$ac_ext <<_ACEOF
20839 /* end confdefs.h.  */
20840 $fp_headers
20841
20842 int
20843 main ()
20844 {
20845 #ifndef __fpending
20846   (void) __fpending;
20847 #endif
20848
20849   ;
20850   return 0;
20851 }
20852 _ACEOF
20853 rm -f conftest.$ac_objext
20854 if { (ac_try="$ac_compile"
20855 case "(($ac_try" in
20856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20857   *) ac_try_echo=$ac_try;;
20858 esac
20859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20860   (eval "$ac_compile") 2>conftest.er1
20861   ac_status=$?
20862   grep -v '^ *+' conftest.er1 >conftest.err
20863   rm -f conftest.er1
20864   cat conftest.err >&5
20865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20866   (exit $ac_status); } && {
20867          test -z "$ac_c_werror_flag" ||
20868          test ! -s conftest.err
20869        } && test -s conftest.$ac_objext; then
20870   ac_cv_have_decl___fpending=yes
20871 else
20872   echo "$as_me: failed program was:" >&5
20873 sed 's/^/| /' conftest.$ac_ext >&5
20874
20875         ac_cv_have_decl___fpending=no
20876 fi
20877
20878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20879 fi
20880 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___fpending" >&5
20881 echo "${ECHO_T}$ac_cv_have_decl___fpending" >&6; }
20882 if test $ac_cv_have_decl___fpending = yes; then
20883
20884 cat >>confdefs.h <<_ACEOF
20885 #define HAVE_DECL___FPENDING 1
20886 _ACEOF
20887
20888
20889 else
20890   cat >>confdefs.h <<_ACEOF
20891 #define HAVE_DECL___FPENDING 0
20892 _ACEOF
20893
20894
20895 fi
20896
20897
20898   if test $ac_cv_func___fpending = no; then
20899     { echo "$as_me:$LINENO: checking how to determine the number of pending output bytes on a stream" >&5
20900 echo $ECHO_N "checking how to determine the number of pending output bytes on a stream... $ECHO_C" >&6; }
20901 if test "${ac_cv_sys_pending_output_n_bytes+set}" = set; then
20902   echo $ECHO_N "(cached) $ECHO_C" >&6
20903 else
20904
20905         for ac_expr in                                                    \
20906                                                                           \
20907             '# glibc2'                                                    \
20908             'fp->_IO_write_ptr - fp->_IO_write_base'                      \
20909                                                                           \
20910             '# traditional Unix'                                          \
20911             'fp->_ptr - fp->_base'                                        \
20912                                                                           \
20913             '# BSD'                                                       \
20914             'fp->_p - fp->_bf._base'                                      \
20915                                                                           \
20916             '# SCO, Unixware'                                             \
20917             '(fp->__ptr ? fp->__ptr - fp->__base : 0)'                    \
20918                                                                           \
20919             '# QNX'                                                       \
20920             '(fp->_Mode & 0x2000 /*_MWRITE*/ ? fp->_Next - fp->_Buf : 0)' \
20921                                                                           \
20922             '# old glibc?'                                                \
20923             'fp->__bufp - fp->__buffer'                                   \
20924                                                                           \
20925             '# old glibc iostream?'                                       \
20926             'fp->_pptr - fp->_pbase'                                      \
20927                                                                           \
20928             '# emx+gcc'                                                   \
20929             'fp->_ptr - fp->_buffer'                                      \
20930                                                                           \
20931             '# VMS'                                                       \
20932             '(*fp)->_ptr - (*fp)->_base'                                  \
20933                                                                           \
20934             '# e.g., DGUX R4.11; the info is not available'               \
20935             1                                                             \
20936             ; do
20937
20938           # Skip each embedded comment.
20939           case "$ac_expr" in '#'*) continue;; esac
20940
20941           cat >conftest.$ac_ext <<_ACEOF
20942 /* confdefs.h.  */
20943 _ACEOF
20944 cat confdefs.h >>conftest.$ac_ext
20945 cat >>conftest.$ac_ext <<_ACEOF
20946 /* end confdefs.h.  */
20947 #include <stdio.h>
20948
20949 int
20950 main ()
20951 {
20952 FILE *fp = stdin; (void) ($ac_expr);
20953   ;
20954   return 0;
20955 }
20956 _ACEOF
20957 rm -f conftest.$ac_objext
20958 if { (ac_try="$ac_compile"
20959 case "(($ac_try" in
20960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20961   *) ac_try_echo=$ac_try;;
20962 esac
20963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20964   (eval "$ac_compile") 2>conftest.er1
20965   ac_status=$?
20966   grep -v '^ *+' conftest.er1 >conftest.err
20967   rm -f conftest.er1
20968   cat conftest.err >&5
20969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20970   (exit $ac_status); } && {
20971          test -z "$ac_c_werror_flag" ||
20972          test ! -s conftest.err
20973        } && test -s conftest.$ac_objext; then
20974   fp_done=yes
20975
20976 else
20977   echo "$as_me: failed program was:" >&5
20978 sed 's/^/| /' conftest.$ac_ext >&5
20979
20980
20981 fi
20982
20983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20984           test "$fp_done" = yes && break
20985         done
20986
20987         ac_cv_sys_pending_output_n_bytes=$ac_expr
20988
20989
20990 fi
20991 { echo "$as_me:$LINENO: result: $ac_cv_sys_pending_output_n_bytes" >&5
20992 echo "${ECHO_T}$ac_cv_sys_pending_output_n_bytes" >&6; }
20993
20994 cat >>confdefs.h <<_ACEOF
20995 #define PENDING_OUTPUT_N_BYTES $ac_cv_sys_pending_output_n_bytes
20996 _ACEOF
20997
20998
20999
21000
21001
21002
21003
21004
21005
21006   gl_LIBOBJS="$gl_LIBOBJS fpending.$ac_objext"
21007
21008   fi
21009
21010
21011
21012
21013
21014
21015
21016
21017   { echo "$as_me:$LINENO: checking for fseeko" >&5
21018 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6; }
21019 if test "${gl_cv_func_fseeko+set}" = set; then
21020   echo $ECHO_N "(cached) $ECHO_C" >&6
21021 else
21022
21023       cat >conftest.$ac_ext <<_ACEOF
21024 /* confdefs.h.  */
21025 _ACEOF
21026 cat confdefs.h >>conftest.$ac_ext
21027 cat >>conftest.$ac_ext <<_ACEOF
21028 /* end confdefs.h.  */
21029 #include <stdio.h>
21030 int
21031 main ()
21032 {
21033 fseeko (stdin, 0, 0);
21034   ;
21035   return 0;
21036 }
21037 _ACEOF
21038 rm -f conftest.$ac_objext conftest$ac_exeext
21039 if { (ac_try="$ac_link"
21040 case "(($ac_try" in
21041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21042   *) ac_try_echo=$ac_try;;
21043 esac
21044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21045   (eval "$ac_link") 2>conftest.er1
21046   ac_status=$?
21047   grep -v '^ *+' conftest.er1 >conftest.err
21048   rm -f conftest.er1
21049   cat conftest.err >&5
21050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21051   (exit $ac_status); } && {
21052          test -z "$ac_c_werror_flag" ||
21053          test ! -s conftest.err
21054        } && test -s conftest$ac_exeext &&
21055        $as_test_x conftest$ac_exeext; then
21056   gl_cv_func_fseeko=yes
21057 else
21058   echo "$as_me: failed program was:" >&5
21059 sed 's/^/| /' conftest.$ac_ext >&5
21060
21061         gl_cv_func_fseeko=no
21062 fi
21063
21064 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21065       conftest$ac_exeext conftest.$ac_ext
21066
21067 fi
21068 { echo "$as_me:$LINENO: result: $gl_cv_func_fseeko" >&5
21069 echo "${ECHO_T}$gl_cv_func_fseeko" >&6; }
21070   if test $gl_cv_func_fseeko = no; then
21071     HAVE_FSEEKO=0
21072
21073
21074
21075
21076
21077
21078
21079
21080
21081   gl_LIBOBJS="$gl_LIBOBJS fseeko.$ac_objext"
21082
21083
21084   REPLACE_FSEEKO=1
21085
21086   elif test $gl_cv_var_stdin_large_offset = no; then
21087
21088
21089
21090
21091
21092
21093
21094
21095
21096   gl_LIBOBJS="$gl_LIBOBJS fseeko.$ac_objext"
21097
21098
21099   REPLACE_FSEEKO=1
21100
21101   fi
21102
21103
21104
21105   GNULIB_FSEEKO=1
21106
21107
21108
21109
21110
21111
21112
21113
21114
21115
21116   if test $ac_cv_func_ftruncate = no; then
21117     HAVE_FTRUNCATE=0
21118
21119
21120
21121
21122
21123
21124
21125
21126   gl_LIBOBJS="$gl_LIBOBJS ftruncate.$ac_objext"
21127
21128
21129
21130 for ac_func in chsize
21131 do
21132 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21133 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21134 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21135 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21136   echo $ECHO_N "(cached) $ECHO_C" >&6
21137 else
21138   cat >conftest.$ac_ext <<_ACEOF
21139 /* confdefs.h.  */
21140 _ACEOF
21141 cat confdefs.h >>conftest.$ac_ext
21142 cat >>conftest.$ac_ext <<_ACEOF
21143 /* end confdefs.h.  */
21144 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21145    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21146 #define $ac_func innocuous_$ac_func
21147
21148 /* System header to define __stub macros and hopefully few prototypes,
21149     which can conflict with char $ac_func (); below.
21150     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21151     <limits.h> exists even on freestanding compilers.  */
21152
21153 #ifdef __STDC__
21154 # include <limits.h>
21155 #else
21156 # include <assert.h>
21157 #endif
21158
21159 #undef $ac_func
21160
21161 /* Override any GCC internal prototype to avoid an error.
21162    Use char because int might match the return type of a GCC
21163    builtin and then its argument prototype would still apply.  */
21164 #ifdef __cplusplus
21165 extern "C"
21166 #endif
21167 char $ac_func ();
21168 /* The GNU C library defines this for functions which it implements
21169     to always fail with ENOSYS.  Some functions are actually named
21170     something starting with __ and the normal name is an alias.  */
21171 #if defined __stub_$ac_func || defined __stub___$ac_func
21172 choke me
21173 #endif
21174
21175 int
21176 main ()
21177 {
21178 return $ac_func ();
21179   ;
21180   return 0;
21181 }
21182 _ACEOF
21183 rm -f conftest.$ac_objext conftest$ac_exeext
21184 if { (ac_try="$ac_link"
21185 case "(($ac_try" in
21186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21187   *) ac_try_echo=$ac_try;;
21188 esac
21189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21190   (eval "$ac_link") 2>conftest.er1
21191   ac_status=$?
21192   grep -v '^ *+' conftest.er1 >conftest.err
21193   rm -f conftest.er1
21194   cat conftest.err >&5
21195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21196   (exit $ac_status); } && {
21197          test -z "$ac_c_werror_flag" ||
21198          test ! -s conftest.err
21199        } && test -s conftest$ac_exeext &&
21200        $as_test_x conftest$ac_exeext; then
21201   eval "$as_ac_var=yes"
21202 else
21203   echo "$as_me: failed program was:" >&5
21204 sed 's/^/| /' conftest.$ac_ext >&5
21205
21206         eval "$as_ac_var=no"
21207 fi
21208
21209 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21210       conftest$ac_exeext conftest.$ac_ext
21211 fi
21212 ac_res=`eval echo '${'$as_ac_var'}'`
21213                { echo "$as_me:$LINENO: result: $ac_res" >&5
21214 echo "${ECHO_T}$ac_res" >&6; }
21215 if test `eval echo '${'$as_ac_var'}'` = yes; then
21216   cat >>confdefs.h <<_ACEOF
21217 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21218 _ACEOF
21219
21220 fi
21221 done
21222
21223
21224     case "$host_os" in
21225       mingw*)
21226         # Yes, we know mingw lacks ftruncate.
21227         ;;
21228       *)
21229         # If someone lacks ftruncate, make configure fail, and request
21230         # a bug report to inform us about it.
21231         if test x"$SKIP_FTRUNCATE_CHECK" != xyes; then
21232           { { echo "$as_me:$LINENO: error: Your system lacks the ftruncate function.
21233               Please report this, along with the output of \"uname -a\", to the
21234               bug-coreutils@gnu.org mailing list.  To continue past this point,
21235               rerun configure with SKIP_FTRUNCATE_CHECK=yes.
21236               E.g., ./configure SKIP_FTRUNCATE_CHECK=yes
21237 See \`config.log' for more details." >&5
21238 echo "$as_me: error: Your system lacks the ftruncate function.
21239               Please report this, along with the output of \"uname -a\", to the
21240               bug-coreutils@gnu.org mailing list.  To continue past this point,
21241               rerun configure with SKIP_FTRUNCATE_CHECK=yes.
21242               E.g., ./configure SKIP_FTRUNCATE_CHECK=yes
21243 See \`config.log' for more details." >&2;}
21244    { (exit 1); exit 1; }; }
21245         fi
21246     esac
21247   fi
21248
21249
21250
21251   GNULIB_FTRUNCATE=1
21252
21253
21254
21255
21256
21257   gl_abort_bug=no
21258   case $gl_cv_func_getcwd_null in
21259   yes)
21260
21261
21262
21263
21264
21265
21266   { echo "$as_me:$LINENO: checking whether getcwd handles long file names properly" >&5
21267 echo $ECHO_N "checking whether getcwd handles long file names properly... $ECHO_C" >&6; }
21268 if test "${gl_cv_func_getcwd_path_max+set}" = set; then
21269   echo $ECHO_N "(cached) $ECHO_C" >&6
21270 else
21271   # Arrange for deletion of the temporary directory this test creates.
21272      ac_clean_files="$ac_clean_files confdir3"
21273      if test "$cross_compiling" = yes; then
21274   gl_cv_func_getcwd_path_max=no
21275 else
21276   cat >conftest.$ac_ext <<_ACEOF
21277 /* confdefs.h.  */
21278 _ACEOF
21279 cat confdefs.h >>conftest.$ac_ext
21280 cat >>conftest.$ac_ext <<_ACEOF
21281 /* end confdefs.h.  */
21282
21283 #include <errno.h>
21284 #include <stdlib.h>
21285 #include <unistd.h>
21286 #include <string.h>
21287 #include <limits.h>
21288 #include <sys/stat.h>
21289 #include <sys/types.h>
21290 #include <fcntl.h>
21291
21292 #ifndef AT_FDCWD
21293 # define AT_FDCWD 0
21294 #endif
21295 #ifdef ENAMETOOLONG
21296 # define is_ENAMETOOLONG(x) ((x) == ENAMETOOLONG)
21297 #else
21298 # define is_ENAMETOOLONG(x) 0
21299 #endif
21300
21301 /* Don't get link errors because mkdir is redefined to rpl_mkdir.  */
21302 #undef mkdir
21303
21304 #ifndef S_IRWXU
21305 # define S_IRWXU 0700
21306 #endif
21307
21308 /* The length of this name must be 8.  */
21309 #define DIR_NAME "confdir3"
21310 #define DIR_NAME_LEN 8
21311 #define DIR_NAME_SIZE (DIR_NAME_LEN + 1)
21312
21313 /* The length of "../".  */
21314 #define DOTDOTSLASH_LEN 3
21315
21316 /* Leftover bytes in the buffer, to work around library or OS bugs.  */
21317 #define BUF_SLOP 20
21318
21319 int
21320 main ()
21321 {
21322 #ifndef PATH_MAX
21323   /* The Hurd doesn't define this, so getcwd can't exhibit the bug --
21324      at least not on a local file system.  And if we were to start worrying
21325      about remote file systems, we'd have to enable the wrapper function
21326      all of the time, just to be safe.  That's not worth the cost.  */
21327   exit (0);
21328 #elif ((INT_MAX / (DIR_NAME_SIZE / DOTDOTSLASH_LEN + 1) \
21329         - DIR_NAME_SIZE - BUF_SLOP) \
21330        <= PATH_MAX)
21331   /* FIXME: Assuming there's a system for which this is true,
21332      this should be done in a compile test.  */
21333   exit (0);
21334 #else
21335   char buf[PATH_MAX * (DIR_NAME_SIZE / DOTDOTSLASH_LEN + 1)
21336            + DIR_NAME_SIZE + BUF_SLOP];
21337   char *cwd = getcwd (buf, PATH_MAX);
21338   size_t initial_cwd_len;
21339   size_t cwd_len;
21340   int fail = 0;
21341   size_t n_chdirs = 0;
21342
21343   if (cwd == NULL)
21344     exit (1);
21345
21346   cwd_len = initial_cwd_len = strlen (cwd);
21347
21348   while (1)
21349     {
21350       size_t dotdot_max = PATH_MAX * (DIR_NAME_SIZE / DOTDOTSLASH_LEN);
21351       char *c = NULL;
21352
21353       cwd_len += DIR_NAME_SIZE;
21354       /* If mkdir or chdir fails, it could be that this system cannot create
21355          any file with an absolute name longer than PATH_MAX, such as cygwin.
21356          If so, leave fail as 0, because the current working directory can't
21357          be too long for getcwd if it can't even be created.  For other
21358          errors, be pessimistic and consider that as a failure, too.  */
21359       if (mkdir (DIR_NAME, S_IRWXU) < 0 || chdir (DIR_NAME) < 0)
21360         {
21361           if (! (errno == ERANGE || is_ENAMETOOLONG (errno)))
21362             fail = 2;
21363           break;
21364         }
21365
21366       if (PATH_MAX <= cwd_len && cwd_len < PATH_MAX + DIR_NAME_SIZE)
21367         {
21368           c = getcwd (buf, PATH_MAX);
21369           if (!c && errno == ENOENT)
21370             {
21371               fail = 1;
21372               break;
21373             }
21374           if (c || ! (errno == ERANGE || is_ENAMETOOLONG (errno)))
21375             {
21376               fail = 2;
21377               break;
21378             }
21379         }
21380
21381       if (dotdot_max <= cwd_len - initial_cwd_len)
21382         {
21383           if (dotdot_max + DIR_NAME_SIZE < cwd_len - initial_cwd_len)
21384             break;
21385           c = getcwd (buf, cwd_len + 1);
21386           if (!c)
21387             {
21388               if (! (errno == ERANGE || errno == ENOENT
21389                      || is_ENAMETOOLONG (errno)))
21390                 {
21391                   fail = 2;
21392                   break;
21393                 }
21394               if (AT_FDCWD || errno == ERANGE || errno == ENOENT)
21395                 {
21396                   fail = 1;
21397                   break;
21398                 }
21399             }
21400         }
21401
21402       if (c && strlen (c) != cwd_len)
21403         {
21404           fail = 2;
21405           break;
21406         }
21407       ++n_chdirs;
21408     }
21409
21410   /* Leaving behind such a deep directory is not polite.
21411      So clean up here, right away, even though the driving
21412      shell script would also clean up.  */
21413   {
21414     size_t i;
21415
21416     /* Try rmdir first, in case the chdir failed.  */
21417     rmdir (DIR_NAME);
21418     for (i = 0; i <= n_chdirs; i++)
21419       {
21420         if (chdir ("..") < 0)
21421           break;
21422         if (rmdir (DIR_NAME) != 0)
21423           break;
21424       }
21425   }
21426
21427   exit (fail);
21428 #endif
21429 }
21430
21431 _ACEOF
21432 rm -f conftest$ac_exeext
21433 if { (ac_try="$ac_link"
21434 case "(($ac_try" in
21435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21436   *) ac_try_echo=$ac_try;;
21437 esac
21438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21439   (eval "$ac_link") 2>&5
21440   ac_status=$?
21441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21442   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21443   { (case "(($ac_try" in
21444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21445   *) ac_try_echo=$ac_try;;
21446 esac
21447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21448   (eval "$ac_try") 2>&5
21449   ac_status=$?
21450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21451   (exit $ac_status); }; }; then
21452   gl_cv_func_getcwd_path_max=yes
21453 else
21454   echo "$as_me: program exited with status $ac_status" >&5
21455 echo "$as_me: failed program was:" >&5
21456 sed 's/^/| /' conftest.$ac_ext >&5
21457
21458 ( exit $ac_status )
21459 case $? in
21460      1) gl_cv_func_getcwd_path_max='no, but it is partly working';;
21461      *) gl_cv_func_getcwd_path_max=no;;
21462      esac
21463 fi
21464 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21465 fi
21466
21467
21468
21469 fi
21470 { echo "$as_me:$LINENO: result: $gl_cv_func_getcwd_path_max" >&5
21471 echo "${ECHO_T}$gl_cv_func_getcwd_path_max" >&6; }
21472   case $gl_cv_func_getcwd_path_max in
21473   no,*)
21474
21475 cat >>confdefs.h <<\_ACEOF
21476 #define HAVE_PARTLY_WORKING_GETCWD 1
21477 _ACEOF
21478 ;;
21479   esac
21480
21481
21482
21483
21484
21485
21486
21487 for ac_func in getpagesize
21488 do
21489 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21490 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21491 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21492 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21493   echo $ECHO_N "(cached) $ECHO_C" >&6
21494 else
21495   cat >conftest.$ac_ext <<_ACEOF
21496 /* confdefs.h.  */
21497 _ACEOF
21498 cat confdefs.h >>conftest.$ac_ext
21499 cat >>conftest.$ac_ext <<_ACEOF
21500 /* end confdefs.h.  */
21501 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21502    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21503 #define $ac_func innocuous_$ac_func
21504
21505 /* System header to define __stub macros and hopefully few prototypes,
21506     which can conflict with char $ac_func (); below.
21507     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21508     <limits.h> exists even on freestanding compilers.  */
21509
21510 #ifdef __STDC__
21511 # include <limits.h>
21512 #else
21513 # include <assert.h>
21514 #endif
21515
21516 #undef $ac_func
21517
21518 /* Override any GCC internal prototype to avoid an error.
21519    Use char because int might match the return type of a GCC
21520    builtin and then its argument prototype would still apply.  */
21521 #ifdef __cplusplus
21522 extern "C"
21523 #endif
21524 char $ac_func ();
21525 /* The GNU C library defines this for functions which it implements
21526     to always fail with ENOSYS.  Some functions are actually named
21527     something starting with __ and the normal name is an alias.  */
21528 #if defined __stub_$ac_func || defined __stub___$ac_func
21529 choke me
21530 #endif
21531
21532 int
21533 main ()
21534 {
21535 return $ac_func ();
21536   ;
21537   return 0;
21538 }
21539 _ACEOF
21540 rm -f conftest.$ac_objext conftest$ac_exeext
21541 if { (ac_try="$ac_link"
21542 case "(($ac_try" in
21543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21544   *) ac_try_echo=$ac_try;;
21545 esac
21546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21547   (eval "$ac_link") 2>conftest.er1
21548   ac_status=$?
21549   grep -v '^ *+' conftest.er1 >conftest.err
21550   rm -f conftest.er1
21551   cat conftest.err >&5
21552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21553   (exit $ac_status); } && {
21554          test -z "$ac_c_werror_flag" ||
21555          test ! -s conftest.err
21556        } && test -s conftest$ac_exeext &&
21557        $as_test_x conftest$ac_exeext; then
21558   eval "$as_ac_var=yes"
21559 else
21560   echo "$as_me: failed program was:" >&5
21561 sed 's/^/| /' conftest.$ac_ext >&5
21562
21563         eval "$as_ac_var=no"
21564 fi
21565
21566 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21567       conftest$ac_exeext conftest.$ac_ext
21568 fi
21569 ac_res=`eval echo '${'$as_ac_var'}'`
21570                { echo "$as_me:$LINENO: result: $ac_res" >&5
21571 echo "${ECHO_T}$ac_res" >&6; }
21572 if test `eval echo '${'$as_ac_var'}'` = yes; then
21573   cat >>confdefs.h <<_ACEOF
21574 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21575 _ACEOF
21576
21577 fi
21578 done
21579
21580   { echo "$as_me:$LINENO: checking whether getcwd aborts when 4k < cwd_length < 16k" >&5
21581 echo $ECHO_N "checking whether getcwd aborts when 4k < cwd_length < 16k... $ECHO_C" >&6; }
21582 if test "${gl_cv_func_getcwd_abort_bug+set}" = set; then
21583   echo $ECHO_N "(cached) $ECHO_C" >&6
21584 else
21585   # Remove any remnants of a previous test.
21586      rm -rf confdir-14B---
21587      # Arrange for deletion of the temporary directory this test creates.
21588      ac_clean_files="$ac_clean_files confdir-14B---"
21589      if test "$cross_compiling" = yes; then
21590   gl_cv_func_getcwd_abort_bug=yes
21591 else
21592   cat >conftest.$ac_ext <<_ACEOF
21593 /* confdefs.h.  */
21594 _ACEOF
21595 cat confdefs.h >>conftest.$ac_ext
21596 cat >>conftest.$ac_ext <<_ACEOF
21597 /* end confdefs.h.  */
21598
21599 #include <stdlib.h>
21600 #include <unistd.h>
21601 #include <limits.h>
21602 #include <string.h>
21603 #include <sys/stat.h>
21604
21605 /* Don't get link errors because mkdir is redefined to rpl_mkdir.  */
21606 #undef mkdir
21607
21608 #ifndef S_IRWXU
21609 # define S_IRWXU 0700
21610 #endif
21611
21612 /* FIXME: skip the run-test altogether on systems without getpagesize.  */
21613 #if ! HAVE_GETPAGESIZE
21614 # define getpagesize() 0
21615 #endif
21616
21617 /* This size is chosen to be larger than PATH_MAX (4k), yet smaller than
21618    the 16kB pagesize on ia64 linux.  Those conditions make the code below
21619    trigger a bug in glibc's getcwd implementation before 2.4.90-10.  */
21620 #define TARGET_LEN (5 * 1024)
21621
21622 int
21623 main ()
21624 {
21625   char const *dir_name = "confdir-14B---";
21626   char *cwd;
21627   size_t initial_cwd_len;
21628   int fail = 0;
21629   size_t desired_depth;
21630   size_t d;
21631
21632   /* The bug is triggered when PATH_MAX < getpagesize (), so skip
21633      this relative expensive and invasive test if that's not true.  */
21634   if (getpagesize () <= PATH_MAX)
21635     return 0;
21636
21637   cwd = getcwd (NULL, 0);
21638   if (cwd == NULL)
21639     return 0;
21640
21641   initial_cwd_len = strlen (cwd);
21642   free (cwd);
21643   desired_depth = ((TARGET_LEN - 1 - initial_cwd_len)
21644                    / (1 + strlen (dir_name)));
21645   for (d = 0; d < desired_depth; d++)
21646     {
21647       if (mkdir (dir_name, S_IRWXU) < 0 || chdir (dir_name) < 0)
21648         {
21649           fail = 3; /* Unable to construct deep hierarchy.  */
21650           break;
21651         }
21652     }
21653
21654   /* If libc has the bug in question, this invocation of getcwd
21655      results in a failed assertion.  */
21656   cwd = getcwd (NULL, 0);
21657   if (cwd == NULL)
21658     fail = 4; /* getcwd failed.  This is ok, and expected.  */
21659   free (cwd);
21660
21661   /* Call rmdir first, in case the above chdir failed.  */
21662   rmdir (dir_name);
21663   while (0 < d--)
21664     {
21665       if (chdir ("..") < 0)
21666         break;
21667       rmdir (dir_name);
21668     }
21669
21670   return 0;
21671 }
21672
21673 _ACEOF
21674 rm -f conftest$ac_exeext
21675 if { (ac_try="$ac_link"
21676 case "(($ac_try" in
21677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21678   *) ac_try_echo=$ac_try;;
21679 esac
21680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21681   (eval "$ac_link") 2>&5
21682   ac_status=$?
21683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21684   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21685   { (case "(($ac_try" in
21686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21687   *) ac_try_echo=$ac_try;;
21688 esac
21689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21690   (eval "$ac_try") 2>&5
21691   ac_status=$?
21692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21693   (exit $ac_status); }; }; then
21694   gl_cv_func_getcwd_abort_bug=no
21695 else
21696   echo "$as_me: program exited with status $ac_status" >&5
21697 echo "$as_me: failed program was:" >&5
21698 sed 's/^/| /' conftest.$ac_ext >&5
21699
21700 ( exit $ac_status )
21701 gl_cv_func_getcwd_abort_bug=yes
21702 fi
21703 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21704 fi
21705
21706
21707
21708 fi
21709 { echo "$as_me:$LINENO: result: $gl_cv_func_getcwd_abort_bug" >&5
21710 echo "${ECHO_T}$gl_cv_func_getcwd_abort_bug" >&6; }
21711   if test $gl_cv_func_getcwd_abort_bug = yes; then
21712   gl_abort_bug=yes
21713 fi
21714
21715 ;;
21716   esac
21717
21718   case $gl_cv_func_getcwd_null,$gl_cv_func_getcwd_path_max,$gl_abort_bug in
21719   yes,yes,no) ;;
21720   *)
21721     REPLACE_GETCWD=1
21722
21723
21724
21725
21726
21727
21728
21729
21730   gl_LIBOBJS="$gl_LIBOBJS getcwd.$ac_objext"
21731
21732
21733
21734
21735   :
21736 ;;
21737   esac
21738
21739
21740
21741   GNULIB_GETCWD=1
21742
21743
21744
21745
21746
21747
21748
21749   { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
21750 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
21751 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
21752   echo $ECHO_N "(cached) $ECHO_C" >&6
21753 else
21754   cat >conftest.$ac_ext <<_ACEOF
21755 /* confdefs.h.  */
21756 _ACEOF
21757 cat confdefs.h >>conftest.$ac_ext
21758 cat >>conftest.$ac_ext <<_ACEOF
21759 /* end confdefs.h.  */
21760 #include <sys/types.h>
21761 #include <$ac_cv_struct_tm>
21762
21763
21764 int
21765 main ()
21766 {
21767 static struct tm ac_aggr;
21768 if (ac_aggr.tm_zone)
21769 return 0;
21770   ;
21771   return 0;
21772 }
21773 _ACEOF
21774 rm -f conftest.$ac_objext
21775 if { (ac_try="$ac_compile"
21776 case "(($ac_try" in
21777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21778   *) ac_try_echo=$ac_try;;
21779 esac
21780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21781   (eval "$ac_compile") 2>conftest.er1
21782   ac_status=$?
21783   grep -v '^ *+' conftest.er1 >conftest.err
21784   rm -f conftest.er1
21785   cat conftest.err >&5
21786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21787   (exit $ac_status); } && {
21788          test -z "$ac_c_werror_flag" ||
21789          test ! -s conftest.err
21790        } && test -s conftest.$ac_objext; then
21791   ac_cv_member_struct_tm_tm_zone=yes
21792 else
21793   echo "$as_me: failed program was:" >&5
21794 sed 's/^/| /' conftest.$ac_ext >&5
21795
21796         cat >conftest.$ac_ext <<_ACEOF
21797 /* confdefs.h.  */
21798 _ACEOF
21799 cat confdefs.h >>conftest.$ac_ext
21800 cat >>conftest.$ac_ext <<_ACEOF
21801 /* end confdefs.h.  */
21802 #include <sys/types.h>
21803 #include <$ac_cv_struct_tm>
21804
21805
21806 int
21807 main ()
21808 {
21809 static struct tm ac_aggr;
21810 if (sizeof ac_aggr.tm_zone)
21811 return 0;
21812   ;
21813   return 0;
21814 }
21815 _ACEOF
21816 rm -f conftest.$ac_objext
21817 if { (ac_try="$ac_compile"
21818 case "(($ac_try" in
21819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21820   *) ac_try_echo=$ac_try;;
21821 esac
21822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21823   (eval "$ac_compile") 2>conftest.er1
21824   ac_status=$?
21825   grep -v '^ *+' conftest.er1 >conftest.err
21826   rm -f conftest.er1
21827   cat conftest.err >&5
21828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21829   (exit $ac_status); } && {
21830          test -z "$ac_c_werror_flag" ||
21831          test ! -s conftest.err
21832        } && test -s conftest.$ac_objext; then
21833   ac_cv_member_struct_tm_tm_zone=yes
21834 else
21835   echo "$as_me: failed program was:" >&5
21836 sed 's/^/| /' conftest.$ac_ext >&5
21837
21838         ac_cv_member_struct_tm_tm_zone=no
21839 fi
21840
21841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21842 fi
21843
21844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21845 fi
21846 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
21847 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
21848 if test $ac_cv_member_struct_tm_tm_zone = yes; then
21849
21850 cat >>confdefs.h <<_ACEOF
21851 #define HAVE_STRUCT_TM_TM_ZONE 1
21852 _ACEOF
21853
21854
21855 fi
21856
21857 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21858
21859 cat >>confdefs.h <<\_ACEOF
21860 #define HAVE_TM_ZONE 1
21861 _ACEOF
21862
21863 else
21864   { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
21865 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
21866 if test "${ac_cv_have_decl_tzname+set}" = set; then
21867   echo $ECHO_N "(cached) $ECHO_C" >&6
21868 else
21869   cat >conftest.$ac_ext <<_ACEOF
21870 /* confdefs.h.  */
21871 _ACEOF
21872 cat confdefs.h >>conftest.$ac_ext
21873 cat >>conftest.$ac_ext <<_ACEOF
21874 /* end confdefs.h.  */
21875 #include <time.h>
21876
21877 int
21878 main ()
21879 {
21880 #ifndef tzname
21881   (void) tzname;
21882 #endif
21883
21884   ;
21885   return 0;
21886 }
21887 _ACEOF
21888 rm -f conftest.$ac_objext
21889 if { (ac_try="$ac_compile"
21890 case "(($ac_try" in
21891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21892   *) ac_try_echo=$ac_try;;
21893 esac
21894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21895   (eval "$ac_compile") 2>conftest.er1
21896   ac_status=$?
21897   grep -v '^ *+' conftest.er1 >conftest.err
21898   rm -f conftest.er1
21899   cat conftest.err >&5
21900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21901   (exit $ac_status); } && {
21902          test -z "$ac_c_werror_flag" ||
21903          test ! -s conftest.err
21904        } && test -s conftest.$ac_objext; then
21905   ac_cv_have_decl_tzname=yes
21906 else
21907   echo "$as_me: failed program was:" >&5
21908 sed 's/^/| /' conftest.$ac_ext >&5
21909
21910         ac_cv_have_decl_tzname=no
21911 fi
21912
21913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21914 fi
21915 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
21916 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
21917 if test $ac_cv_have_decl_tzname = yes; then
21918
21919 cat >>confdefs.h <<_ACEOF
21920 #define HAVE_DECL_TZNAME 1
21921 _ACEOF
21922
21923
21924 else
21925   cat >>confdefs.h <<_ACEOF
21926 #define HAVE_DECL_TZNAME 0
21927 _ACEOF
21928
21929
21930 fi
21931
21932
21933   { echo "$as_me:$LINENO: checking for tzname" >&5
21934 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
21935 if test "${ac_cv_var_tzname+set}" = set; then
21936   echo $ECHO_N "(cached) $ECHO_C" >&6
21937 else
21938   cat >conftest.$ac_ext <<_ACEOF
21939 /* confdefs.h.  */
21940 _ACEOF
21941 cat confdefs.h >>conftest.$ac_ext
21942 cat >>conftest.$ac_ext <<_ACEOF
21943 /* end confdefs.h.  */
21944 #include <time.h>
21945 #if !HAVE_DECL_TZNAME
21946 extern char *tzname[];
21947 #endif
21948
21949 int
21950 main ()
21951 {
21952 return tzname[0][0];
21953   ;
21954   return 0;
21955 }
21956 _ACEOF
21957 rm -f conftest.$ac_objext conftest$ac_exeext
21958 if { (ac_try="$ac_link"
21959 case "(($ac_try" in
21960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21961   *) ac_try_echo=$ac_try;;
21962 esac
21963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21964   (eval "$ac_link") 2>conftest.er1
21965   ac_status=$?
21966   grep -v '^ *+' conftest.er1 >conftest.err
21967   rm -f conftest.er1
21968   cat conftest.err >&5
21969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21970   (exit $ac_status); } && {
21971          test -z "$ac_c_werror_flag" ||
21972          test ! -s conftest.err
21973        } && test -s conftest$ac_exeext &&
21974        $as_test_x conftest$ac_exeext; then
21975   ac_cv_var_tzname=yes
21976 else
21977   echo "$as_me: failed program was:" >&5
21978 sed 's/^/| /' conftest.$ac_ext >&5
21979
21980         ac_cv_var_tzname=no
21981 fi
21982
21983 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21984       conftest$ac_exeext conftest.$ac_ext
21985 fi
21986 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
21987 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
21988   if test $ac_cv_var_tzname = yes; then
21989
21990 cat >>confdefs.h <<\_ACEOF
21991 #define HAVE_TZNAME 1
21992 _ACEOF
21993
21994   fi
21995 fi
21996
21997
21998
21999
22000
22001
22002
22003
22004
22005
22006
22007
22008
22009
22010
22011
22012
22013
22014 for ac_func in getdelim
22015 do
22016 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22017 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22018 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22019 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22020   echo $ECHO_N "(cached) $ECHO_C" >&6
22021 else
22022   cat >conftest.$ac_ext <<_ACEOF
22023 /* confdefs.h.  */
22024 _ACEOF
22025 cat confdefs.h >>conftest.$ac_ext
22026 cat >>conftest.$ac_ext <<_ACEOF
22027 /* end confdefs.h.  */
22028 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22029    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22030 #define $ac_func innocuous_$ac_func
22031
22032 /* System header to define __stub macros and hopefully few prototypes,
22033     which can conflict with char $ac_func (); below.
22034     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22035     <limits.h> exists even on freestanding compilers.  */
22036
22037 #ifdef __STDC__
22038 # include <limits.h>
22039 #else
22040 # include <assert.h>
22041 #endif
22042
22043 #undef $ac_func
22044
22045 /* Override any GCC internal prototype to avoid an error.
22046    Use char because int might match the return type of a GCC
22047    builtin and then its argument prototype would still apply.  */
22048 #ifdef __cplusplus
22049 extern "C"
22050 #endif
22051 char $ac_func ();
22052 /* The GNU C library defines this for functions which it implements
22053     to always fail with ENOSYS.  Some functions are actually named
22054     something starting with __ and the normal name is an alias.  */
22055 #if defined __stub_$ac_func || defined __stub___$ac_func
22056 choke me
22057 #endif
22058
22059 int
22060 main ()
22061 {
22062 return $ac_func ();
22063   ;
22064   return 0;
22065 }
22066 _ACEOF
22067 rm -f conftest.$ac_objext conftest$ac_exeext
22068 if { (ac_try="$ac_link"
22069 case "(($ac_try" in
22070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22071   *) ac_try_echo=$ac_try;;
22072 esac
22073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22074   (eval "$ac_link") 2>conftest.er1
22075   ac_status=$?
22076   grep -v '^ *+' conftest.er1 >conftest.err
22077   rm -f conftest.er1
22078   cat conftest.err >&5
22079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22080   (exit $ac_status); } && {
22081          test -z "$ac_c_werror_flag" ||
22082          test ! -s conftest.err
22083        } && test -s conftest$ac_exeext &&
22084        $as_test_x conftest$ac_exeext; then
22085   eval "$as_ac_var=yes"
22086 else
22087   echo "$as_me: failed program was:" >&5
22088 sed 's/^/| /' conftest.$ac_ext >&5
22089
22090         eval "$as_ac_var=no"
22091 fi
22092
22093 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22094       conftest$ac_exeext conftest.$ac_ext
22095 fi
22096 ac_res=`eval echo '${'$as_ac_var'}'`
22097                { echo "$as_me:$LINENO: result: $ac_res" >&5
22098 echo "${ECHO_T}$ac_res" >&6; }
22099 if test `eval echo '${'$as_ac_var'}'` = yes; then
22100   cat >>confdefs.h <<_ACEOF
22101 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22102 _ACEOF
22103
22104 else
22105
22106     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
22107
22108 fi
22109 done
22110
22111
22112
22113
22114
22115
22116
22117   if test $ac_cv_func_getdelim = no; then
22118
22119
22120
22121 for ac_func in flockfile funlockfile
22122 do
22123 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22124 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22125 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22126 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22127   echo $ECHO_N "(cached) $ECHO_C" >&6
22128 else
22129   cat >conftest.$ac_ext <<_ACEOF
22130 /* confdefs.h.  */
22131 _ACEOF
22132 cat confdefs.h >>conftest.$ac_ext
22133 cat >>conftest.$ac_ext <<_ACEOF
22134 /* end confdefs.h.  */
22135 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22136    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22137 #define $ac_func innocuous_$ac_func
22138
22139 /* System header to define __stub macros and hopefully few prototypes,
22140     which can conflict with char $ac_func (); below.
22141     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22142     <limits.h> exists even on freestanding compilers.  */
22143
22144 #ifdef __STDC__
22145 # include <limits.h>
22146 #else
22147 # include <assert.h>
22148 #endif
22149
22150 #undef $ac_func
22151
22152 /* Override any GCC internal prototype to avoid an error.
22153    Use char because int might match the return type of a GCC
22154    builtin and then its argument prototype would still apply.  */
22155 #ifdef __cplusplus
22156 extern "C"
22157 #endif
22158 char $ac_func ();
22159 /* The GNU C library defines this for functions which it implements
22160     to always fail with ENOSYS.  Some functions are actually named
22161     something starting with __ and the normal name is an alias.  */
22162 #if defined __stub_$ac_func || defined __stub___$ac_func
22163 choke me
22164 #endif
22165
22166 int
22167 main ()
22168 {
22169 return $ac_func ();
22170   ;
22171   return 0;
22172 }
22173 _ACEOF
22174 rm -f conftest.$ac_objext conftest$ac_exeext
22175 if { (ac_try="$ac_link"
22176 case "(($ac_try" in
22177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22178   *) ac_try_echo=$ac_try;;
22179 esac
22180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22181   (eval "$ac_link") 2>conftest.er1
22182   ac_status=$?
22183   grep -v '^ *+' conftest.er1 >conftest.err
22184   rm -f conftest.er1
22185   cat conftest.err >&5
22186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22187   (exit $ac_status); } && {
22188          test -z "$ac_c_werror_flag" ||
22189          test ! -s conftest.err
22190        } && test -s conftest$ac_exeext &&
22191        $as_test_x conftest$ac_exeext; then
22192   eval "$as_ac_var=yes"
22193 else
22194   echo "$as_me: failed program was:" >&5
22195 sed 's/^/| /' conftest.$ac_ext >&5
22196
22197         eval "$as_ac_var=no"
22198 fi
22199
22200 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22201       conftest$ac_exeext conftest.$ac_ext
22202 fi
22203 ac_res=`eval echo '${'$as_ac_var'}'`
22204                { echo "$as_me:$LINENO: result: $ac_res" >&5
22205 echo "${ECHO_T}$ac_res" >&6; }
22206 if test `eval echo '${'$as_ac_var'}'` = yes; then
22207   cat >>confdefs.h <<_ACEOF
22208 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22209 _ACEOF
22210
22211 fi
22212 done
22213
22214   { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
22215 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
22216 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
22217   echo $ECHO_N "(cached) $ECHO_C" >&6
22218 else
22219   cat >conftest.$ac_ext <<_ACEOF
22220 /* confdefs.h.  */
22221 _ACEOF
22222 cat confdefs.h >>conftest.$ac_ext
22223 cat >>conftest.$ac_ext <<_ACEOF
22224 /* end confdefs.h.  */
22225 $ac_includes_default
22226 int
22227 main ()
22228 {
22229 #ifndef getc_unlocked
22230   (void) getc_unlocked;
22231 #endif
22232
22233   ;
22234   return 0;
22235 }
22236 _ACEOF
22237 rm -f conftest.$ac_objext
22238 if { (ac_try="$ac_compile"
22239 case "(($ac_try" in
22240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22241   *) ac_try_echo=$ac_try;;
22242 esac
22243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22244   (eval "$ac_compile") 2>conftest.er1
22245   ac_status=$?
22246   grep -v '^ *+' conftest.er1 >conftest.err
22247   rm -f conftest.er1
22248   cat conftest.err >&5
22249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22250   (exit $ac_status); } && {
22251          test -z "$ac_c_werror_flag" ||
22252          test ! -s conftest.err
22253        } && test -s conftest.$ac_objext; then
22254   ac_cv_have_decl_getc_unlocked=yes
22255 else
22256   echo "$as_me: failed program was:" >&5
22257 sed 's/^/| /' conftest.$ac_ext >&5
22258
22259         ac_cv_have_decl_getc_unlocked=no
22260 fi
22261
22262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22263 fi
22264 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
22265 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
22266 if test $ac_cv_have_decl_getc_unlocked = yes; then
22267
22268 cat >>confdefs.h <<_ACEOF
22269 #define HAVE_DECL_GETC_UNLOCKED 1
22270 _ACEOF
22271
22272
22273 else
22274   cat >>confdefs.h <<_ACEOF
22275 #define HAVE_DECL_GETC_UNLOCKED 0
22276 _ACEOF
22277
22278
22279 fi
22280
22281
22282
22283   fi
22284
22285   if test $ac_cv_have_decl_getdelim = no; then
22286     HAVE_DECL_GETDELIM=0
22287   fi
22288
22289
22290
22291   GNULIB_GETDELIM=1
22292
22293
22294
22295
22296
22297
22298
22299
22300
22301
22302
22303   gl_getline_needs_run_time_check=no
22304   { echo "$as_me:$LINENO: checking for getline" >&5
22305 echo $ECHO_N "checking for getline... $ECHO_C" >&6; }
22306 if test "${ac_cv_func_getline+set}" = set; then
22307   echo $ECHO_N "(cached) $ECHO_C" >&6
22308 else
22309   cat >conftest.$ac_ext <<_ACEOF
22310 /* confdefs.h.  */
22311 _ACEOF
22312 cat confdefs.h >>conftest.$ac_ext
22313 cat >>conftest.$ac_ext <<_ACEOF
22314 /* end confdefs.h.  */
22315 /* Define getline to an innocuous variant, in case <limits.h> declares getline.
22316    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22317 #define getline innocuous_getline
22318
22319 /* System header to define __stub macros and hopefully few prototypes,
22320     which can conflict with char getline (); below.
22321     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22322     <limits.h> exists even on freestanding compilers.  */
22323
22324 #ifdef __STDC__
22325 # include <limits.h>
22326 #else
22327 # include <assert.h>
22328 #endif
22329
22330 #undef getline
22331
22332 /* Override any GCC internal prototype to avoid an error.
22333    Use char because int might match the return type of a GCC
22334    builtin and then its argument prototype would still apply.  */
22335 #ifdef __cplusplus
22336 extern "C"
22337 #endif
22338 char getline ();
22339 /* The GNU C library defines this for functions which it implements
22340     to always fail with ENOSYS.  Some functions are actually named
22341     something starting with __ and the normal name is an alias.  */
22342 #if defined __stub_getline || defined __stub___getline
22343 choke me
22344 #endif
22345
22346 int
22347 main ()
22348 {
22349 return getline ();
22350   ;
22351   return 0;
22352 }
22353 _ACEOF
22354 rm -f conftest.$ac_objext conftest$ac_exeext
22355 if { (ac_try="$ac_link"
22356 case "(($ac_try" in
22357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22358   *) ac_try_echo=$ac_try;;
22359 esac
22360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22361   (eval "$ac_link") 2>conftest.er1
22362   ac_status=$?
22363   grep -v '^ *+' conftest.er1 >conftest.err
22364   rm -f conftest.er1
22365   cat conftest.err >&5
22366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22367   (exit $ac_status); } && {
22368          test -z "$ac_c_werror_flag" ||
22369          test ! -s conftest.err
22370        } && test -s conftest$ac_exeext &&
22371        $as_test_x conftest$ac_exeext; then
22372   ac_cv_func_getline=yes
22373 else
22374   echo "$as_me: failed program was:" >&5
22375 sed 's/^/| /' conftest.$ac_ext >&5
22376
22377         ac_cv_func_getline=no
22378 fi
22379
22380 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22381       conftest$ac_exeext conftest.$ac_ext
22382 fi
22383 { echo "$as_me:$LINENO: result: $ac_cv_func_getline" >&5
22384 echo "${ECHO_T}$ac_cv_func_getline" >&6; }
22385 if test $ac_cv_func_getline = yes; then
22386                 gl_getline_needs_run_time_check=yes
22387 else
22388   am_cv_func_working_getline=no
22389 fi
22390
22391   if test $gl_getline_needs_run_time_check = yes; then
22392     { echo "$as_me:$LINENO: checking for working getline function" >&5
22393 echo $ECHO_N "checking for working getline function... $ECHO_C" >&6; }
22394 if test "${am_cv_func_working_getline+set}" = set; then
22395   echo $ECHO_N "(cached) $ECHO_C" >&6
22396 else
22397   echo fooN |tr -d '\012'|tr N '\012' > conftest.data
22398     if test "$cross_compiling" = yes; then
22399         cat >conftest.$ac_ext <<_ACEOF
22400 /* confdefs.h.  */
22401 _ACEOF
22402 cat confdefs.h >>conftest.$ac_ext
22403 cat >>conftest.$ac_ext <<_ACEOF
22404 /* end confdefs.h.  */
22405
22406 #include <features.h>
22407 #ifdef __GNU_LIBRARY__
22408  #if (__GLIBC__ >= 2)
22409   Lucky GNU user
22410  #endif
22411 #endif
22412
22413 _ACEOF
22414 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22415   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
22416   am_cv_func_working_getline=yes
22417 else
22418   am_cv_func_working_getline=no
22419 fi
22420 rm -f conftest*
22421
22422
22423 else
22424   cat >conftest.$ac_ext <<_ACEOF
22425 /* confdefs.h.  */
22426 _ACEOF
22427 cat confdefs.h >>conftest.$ac_ext
22428 cat >>conftest.$ac_ext <<_ACEOF
22429 /* end confdefs.h.  */
22430
22431 #    include <stdio.h>
22432 #    include <stdlib.h>
22433 #    include <string.h>
22434     int main ()
22435     { /* Based on a test program from Karl Heuer.  */
22436       char *line = NULL;
22437       size_t siz = 0;
22438       int len;
22439       FILE *in = fopen ("./conftest.data", "r");
22440       if (!in)
22441         return 1;
22442       len = getline (&line, &siz, in);
22443       exit ((len == 4 && line && strcmp (line, "foo\n") == 0) ? 0 : 1);
22444     }
22445
22446 _ACEOF
22447 rm -f conftest$ac_exeext
22448 if { (ac_try="$ac_link"
22449 case "(($ac_try" in
22450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22451   *) ac_try_echo=$ac_try;;
22452 esac
22453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22454   (eval "$ac_link") 2>&5
22455   ac_status=$?
22456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22457   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22458   { (case "(($ac_try" in
22459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22460   *) ac_try_echo=$ac_try;;
22461 esac
22462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22463   (eval "$ac_try") 2>&5
22464   ac_status=$?
22465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22466   (exit $ac_status); }; }; then
22467   am_cv_func_working_getline=yes
22468 else
22469   echo "$as_me: program exited with status $ac_status" >&5
22470 echo "$as_me: failed program was:" >&5
22471 sed 's/^/| /' conftest.$ac_ext >&5
22472
22473 ( exit $ac_status )
22474 am_cv_func_working_getline=no
22475 fi
22476 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22477 fi
22478
22479
22480 fi
22481 { echo "$as_me:$LINENO: result: $am_cv_func_working_getline" >&5
22482 echo "${ECHO_T}$am_cv_func_working_getline" >&6; }
22483   fi
22484
22485   if test $ac_cv_have_decl_getline = no; then
22486     HAVE_DECL_GETLINE=0
22487   fi
22488
22489   if test $am_cv_func_working_getline = no; then
22490     REPLACE_GETLINE=1
22491
22492
22493
22494
22495
22496
22497
22498
22499   gl_LIBOBJS="$gl_LIBOBJS getline.$ac_objext"
22500
22501
22502
22503
22504
22505
22506
22507
22508
22509
22510
22511
22512
22513
22514
22515
22516
22517 for ac_func in getdelim
22518 do
22519 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22520 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22521 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22522 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22523   echo $ECHO_N "(cached) $ECHO_C" >&6
22524 else
22525   cat >conftest.$ac_ext <<_ACEOF
22526 /* confdefs.h.  */
22527 _ACEOF
22528 cat confdefs.h >>conftest.$ac_ext
22529 cat >>conftest.$ac_ext <<_ACEOF
22530 /* end confdefs.h.  */
22531 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22532    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22533 #define $ac_func innocuous_$ac_func
22534
22535 /* System header to define __stub macros and hopefully few prototypes,
22536     which can conflict with char $ac_func (); below.
22537     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22538     <limits.h> exists even on freestanding compilers.  */
22539
22540 #ifdef __STDC__
22541 # include <limits.h>
22542 #else
22543 # include <assert.h>
22544 #endif
22545
22546 #undef $ac_func
22547
22548 /* Override any GCC internal prototype to avoid an error.
22549    Use char because int might match the return type of a GCC
22550    builtin and then its argument prototype would still apply.  */
22551 #ifdef __cplusplus
22552 extern "C"
22553 #endif
22554 char $ac_func ();
22555 /* The GNU C library defines this for functions which it implements
22556     to always fail with ENOSYS.  Some functions are actually named
22557     something starting with __ and the normal name is an alias.  */
22558 #if defined __stub_$ac_func || defined __stub___$ac_func
22559 choke me
22560 #endif
22561
22562 int
22563 main ()
22564 {
22565 return $ac_func ();
22566   ;
22567   return 0;
22568 }
22569 _ACEOF
22570 rm -f conftest.$ac_objext conftest$ac_exeext
22571 if { (ac_try="$ac_link"
22572 case "(($ac_try" in
22573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22574   *) ac_try_echo=$ac_try;;
22575 esac
22576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22577   (eval "$ac_link") 2>conftest.er1
22578   ac_status=$?
22579   grep -v '^ *+' conftest.er1 >conftest.err
22580   rm -f conftest.er1
22581   cat conftest.err >&5
22582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22583   (exit $ac_status); } && {
22584          test -z "$ac_c_werror_flag" ||
22585          test ! -s conftest.err
22586        } && test -s conftest$ac_exeext &&
22587        $as_test_x conftest$ac_exeext; then
22588   eval "$as_ac_var=yes"
22589 else
22590   echo "$as_me: failed program was:" >&5
22591 sed 's/^/| /' conftest.$ac_ext >&5
22592
22593         eval "$as_ac_var=no"
22594 fi
22595
22596 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22597       conftest$ac_exeext conftest.$ac_ext
22598 fi
22599 ac_res=`eval echo '${'$as_ac_var'}'`
22600                { echo "$as_me:$LINENO: result: $ac_res" >&5
22601 echo "${ECHO_T}$ac_res" >&6; }
22602 if test `eval echo '${'$as_ac_var'}'` = yes; then
22603   cat >>confdefs.h <<_ACEOF
22604 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22605 _ACEOF
22606
22607 else
22608
22609     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
22610
22611 fi
22612 done
22613
22614
22615
22616
22617
22618
22619
22620   if test $ac_cv_func_getdelim = no; then
22621
22622
22623
22624 for ac_func in flockfile funlockfile
22625 do
22626 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22627 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22628 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22629 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22630   echo $ECHO_N "(cached) $ECHO_C" >&6
22631 else
22632   cat >conftest.$ac_ext <<_ACEOF
22633 /* confdefs.h.  */
22634 _ACEOF
22635 cat confdefs.h >>conftest.$ac_ext
22636 cat >>conftest.$ac_ext <<_ACEOF
22637 /* end confdefs.h.  */
22638 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22639    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22640 #define $ac_func innocuous_$ac_func
22641
22642 /* System header to define __stub macros and hopefully few prototypes,
22643     which can conflict with char $ac_func (); below.
22644     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22645     <limits.h> exists even on freestanding compilers.  */
22646
22647 #ifdef __STDC__
22648 # include <limits.h>
22649 #else
22650 # include <assert.h>
22651 #endif
22652
22653 #undef $ac_func
22654
22655 /* Override any GCC internal prototype to avoid an error.
22656    Use char because int might match the return type of a GCC
22657    builtin and then its argument prototype would still apply.  */
22658 #ifdef __cplusplus
22659 extern "C"
22660 #endif
22661 char $ac_func ();
22662 /* The GNU C library defines this for functions which it implements
22663     to always fail with ENOSYS.  Some functions are actually named
22664     something starting with __ and the normal name is an alias.  */
22665 #if defined __stub_$ac_func || defined __stub___$ac_func
22666 choke me
22667 #endif
22668
22669 int
22670 main ()
22671 {
22672 return $ac_func ();
22673   ;
22674   return 0;
22675 }
22676 _ACEOF
22677 rm -f conftest.$ac_objext conftest$ac_exeext
22678 if { (ac_try="$ac_link"
22679 case "(($ac_try" in
22680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22681   *) ac_try_echo=$ac_try;;
22682 esac
22683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22684   (eval "$ac_link") 2>conftest.er1
22685   ac_status=$?
22686   grep -v '^ *+' conftest.er1 >conftest.err
22687   rm -f conftest.er1
22688   cat conftest.err >&5
22689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22690   (exit $ac_status); } && {
22691          test -z "$ac_c_werror_flag" ||
22692          test ! -s conftest.err
22693        } && test -s conftest$ac_exeext &&
22694        $as_test_x conftest$ac_exeext; then
22695   eval "$as_ac_var=yes"
22696 else
22697   echo "$as_me: failed program was:" >&5
22698 sed 's/^/| /' conftest.$ac_ext >&5
22699
22700         eval "$as_ac_var=no"
22701 fi
22702
22703 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22704       conftest$ac_exeext conftest.$ac_ext
22705 fi
22706 ac_res=`eval echo '${'$as_ac_var'}'`
22707                { echo "$as_me:$LINENO: result: $ac_res" >&5
22708 echo "${ECHO_T}$ac_res" >&6; }
22709 if test `eval echo '${'$as_ac_var'}'` = yes; then
22710   cat >>confdefs.h <<_ACEOF
22711 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22712 _ACEOF
22713
22714 fi
22715 done
22716
22717   { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
22718 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
22719 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
22720   echo $ECHO_N "(cached) $ECHO_C" >&6
22721 else
22722   cat >conftest.$ac_ext <<_ACEOF
22723 /* confdefs.h.  */
22724 _ACEOF
22725 cat confdefs.h >>conftest.$ac_ext
22726 cat >>conftest.$ac_ext <<_ACEOF
22727 /* end confdefs.h.  */
22728 $ac_includes_default
22729 int
22730 main ()
22731 {
22732 #ifndef getc_unlocked
22733   (void) getc_unlocked;
22734 #endif
22735
22736   ;
22737   return 0;
22738 }
22739 _ACEOF
22740 rm -f conftest.$ac_objext
22741 if { (ac_try="$ac_compile"
22742 case "(($ac_try" in
22743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22744   *) ac_try_echo=$ac_try;;
22745 esac
22746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22747   (eval "$ac_compile") 2>conftest.er1
22748   ac_status=$?
22749   grep -v '^ *+' conftest.er1 >conftest.err
22750   rm -f conftest.er1
22751   cat conftest.err >&5
22752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22753   (exit $ac_status); } && {
22754          test -z "$ac_c_werror_flag" ||
22755          test ! -s conftest.err
22756        } && test -s conftest.$ac_objext; then
22757   ac_cv_have_decl_getc_unlocked=yes
22758 else
22759   echo "$as_me: failed program was:" >&5
22760 sed 's/^/| /' conftest.$ac_ext >&5
22761
22762         ac_cv_have_decl_getc_unlocked=no
22763 fi
22764
22765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22766 fi
22767 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
22768 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
22769 if test $ac_cv_have_decl_getc_unlocked = yes; then
22770
22771 cat >>confdefs.h <<_ACEOF
22772 #define HAVE_DECL_GETC_UNLOCKED 1
22773 _ACEOF
22774
22775
22776 else
22777   cat >>confdefs.h <<_ACEOF
22778 #define HAVE_DECL_GETC_UNLOCKED 0
22779 _ACEOF
22780
22781
22782 fi
22783
22784
22785
22786   fi
22787
22788   if test $ac_cv_have_decl_getdelim = no; then
22789     HAVE_DECL_GETDELIM=0
22790   fi
22791
22792
22793   fi
22794
22795
22796
22797   GNULIB_GETLINE=1
22798
22799
22800
22801   if test -n "$GETOPT_H"; then
22802
22803
22804
22805
22806
22807
22808
22809
22810
22811   gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
22812
22813
22814
22815
22816
22817
22818
22819
22820
22821   gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
22822
22823
22824   GETOPT_H=getopt.h
22825
22826 cat >>confdefs.h <<\_ACEOF
22827 #define __GETOPT_PREFIX rpl_
22828 _ACEOF
22829
22830
22831
22832
22833
22834
22835
22836
22837
22838
22839 fi
22840
22841
22842
22843
22844
22845
22846 for ac_func in getpagesize
22847 do
22848 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22849 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22850 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22851 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22852   echo $ECHO_N "(cached) $ECHO_C" >&6
22853 else
22854   cat >conftest.$ac_ext <<_ACEOF
22855 /* confdefs.h.  */
22856 _ACEOF
22857 cat confdefs.h >>conftest.$ac_ext
22858 cat >>conftest.$ac_ext <<_ACEOF
22859 /* end confdefs.h.  */
22860 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22861    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22862 #define $ac_func innocuous_$ac_func
22863
22864 /* System header to define __stub macros and hopefully few prototypes,
22865     which can conflict with char $ac_func (); below.
22866     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22867     <limits.h> exists even on freestanding compilers.  */
22868
22869 #ifdef __STDC__
22870 # include <limits.h>
22871 #else
22872 # include <assert.h>
22873 #endif
22874
22875 #undef $ac_func
22876
22877 /* Override any GCC internal prototype to avoid an error.
22878    Use char because int might match the return type of a GCC
22879    builtin and then its argument prototype would still apply.  */
22880 #ifdef __cplusplus
22881 extern "C"
22882 #endif
22883 char $ac_func ();
22884 /* The GNU C library defines this for functions which it implements
22885     to always fail with ENOSYS.  Some functions are actually named
22886     something starting with __ and the normal name is an alias.  */
22887 #if defined __stub_$ac_func || defined __stub___$ac_func
22888 choke me
22889 #endif
22890
22891 int
22892 main ()
22893 {
22894 return $ac_func ();
22895   ;
22896   return 0;
22897 }
22898 _ACEOF
22899 rm -f conftest.$ac_objext conftest$ac_exeext
22900 if { (ac_try="$ac_link"
22901 case "(($ac_try" in
22902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22903   *) ac_try_echo=$ac_try;;
22904 esac
22905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22906   (eval "$ac_link") 2>conftest.er1
22907   ac_status=$?
22908   grep -v '^ *+' conftest.er1 >conftest.err
22909   rm -f conftest.er1
22910   cat conftest.err >&5
22911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22912   (exit $ac_status); } && {
22913          test -z "$ac_c_werror_flag" ||
22914          test ! -s conftest.err
22915        } && test -s conftest$ac_exeext &&
22916        $as_test_x conftest$ac_exeext; then
22917   eval "$as_ac_var=yes"
22918 else
22919   echo "$as_me: failed program was:" >&5
22920 sed 's/^/| /' conftest.$ac_ext >&5
22921
22922         eval "$as_ac_var=no"
22923 fi
22924
22925 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22926       conftest$ac_exeext conftest.$ac_ext
22927 fi
22928 ac_res=`eval echo '${'$as_ac_var'}'`
22929                { echo "$as_me:$LINENO: result: $ac_res" >&5
22930 echo "${ECHO_T}$ac_res" >&6; }
22931 if test `eval echo '${'$as_ac_var'}'` = yes; then
22932   cat >>confdefs.h <<_ACEOF
22933 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22934 _ACEOF
22935
22936 fi
22937 done
22938
22939   if test $ac_cv_func_getpagesize = no; then
22940     HAVE_GETPAGESIZE=0
22941
22942 for ac_header in OS.h
22943 do
22944 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22945 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22946   { echo "$as_me:$LINENO: checking for $ac_header" >&5
22947 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22948 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22949   echo $ECHO_N "(cached) $ECHO_C" >&6
22950 fi
22951 ac_res=`eval echo '${'$as_ac_Header'}'`
22952                { echo "$as_me:$LINENO: result: $ac_res" >&5
22953 echo "${ECHO_T}$ac_res" >&6; }
22954 else
22955   # Is the header compilable?
22956 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22957 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22958 cat >conftest.$ac_ext <<_ACEOF
22959 /* confdefs.h.  */
22960 _ACEOF
22961 cat confdefs.h >>conftest.$ac_ext
22962 cat >>conftest.$ac_ext <<_ACEOF
22963 /* end confdefs.h.  */
22964 $ac_includes_default
22965 #include <$ac_header>
22966 _ACEOF
22967 rm -f conftest.$ac_objext
22968 if { (ac_try="$ac_compile"
22969 case "(($ac_try" in
22970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22971   *) ac_try_echo=$ac_try;;
22972 esac
22973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22974   (eval "$ac_compile") 2>conftest.er1
22975   ac_status=$?
22976   grep -v '^ *+' conftest.er1 >conftest.err
22977   rm -f conftest.er1
22978   cat conftest.err >&5
22979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22980   (exit $ac_status); } && {
22981          test -z "$ac_c_werror_flag" ||
22982          test ! -s conftest.err
22983        } && test -s conftest.$ac_objext; then
22984   ac_header_compiler=yes
22985 else
22986   echo "$as_me: failed program was:" >&5
22987 sed 's/^/| /' conftest.$ac_ext >&5
22988
22989         ac_header_compiler=no
22990 fi
22991
22992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22993 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22994 echo "${ECHO_T}$ac_header_compiler" >&6; }
22995
22996 # Is the header present?
22997 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22998 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22999 cat >conftest.$ac_ext <<_ACEOF
23000 /* confdefs.h.  */
23001 _ACEOF
23002 cat confdefs.h >>conftest.$ac_ext
23003 cat >>conftest.$ac_ext <<_ACEOF
23004 /* end confdefs.h.  */
23005 #include <$ac_header>
23006 _ACEOF
23007 if { (ac_try="$ac_cpp conftest.$ac_ext"
23008 case "(($ac_try" in
23009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23010   *) ac_try_echo=$ac_try;;
23011 esac
23012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23013   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23014   ac_status=$?
23015   grep -v '^ *+' conftest.er1 >conftest.err
23016   rm -f conftest.er1
23017   cat conftest.err >&5
23018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23019   (exit $ac_status); } >/dev/null && {
23020          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23021          test ! -s conftest.err
23022        }; then
23023   ac_header_preproc=yes
23024 else
23025   echo "$as_me: failed program was:" >&5
23026 sed 's/^/| /' conftest.$ac_ext >&5
23027
23028   ac_header_preproc=no
23029 fi
23030
23031 rm -f conftest.err conftest.$ac_ext
23032 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23033 echo "${ECHO_T}$ac_header_preproc" >&6; }
23034
23035 # So?  What about this header?
23036 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23037   yes:no: )
23038     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23039 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23040     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23041 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23042     ac_header_preproc=yes
23043     ;;
23044   no:yes:* )
23045     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23046 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23047     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23048 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23049     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23050 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23051     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23052 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23053     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23054 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23055     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23056 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23057     ( cat <<\_ASBOX
23058 ## ------------------------------ ##
23059 ## Report this to bug-tar@gnu.org ##
23060 ## ------------------------------ ##
23061 _ASBOX
23062      ) | sed "s/^/$as_me: WARNING:     /" >&2
23063     ;;
23064 esac
23065 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23066 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23067 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23068   echo $ECHO_N "(cached) $ECHO_C" >&6
23069 else
23070   eval "$as_ac_Header=\$ac_header_preproc"
23071 fi
23072 ac_res=`eval echo '${'$as_ac_Header'}'`
23073                { echo "$as_me:$LINENO: result: $ac_res" >&5
23074 echo "${ECHO_T}$ac_res" >&6; }
23075
23076 fi
23077 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23078   cat >>confdefs.h <<_ACEOF
23079 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23080 _ACEOF
23081
23082 fi
23083
23084 done
23085
23086     if test $ac_cv_header_OS_h = yes; then
23087       HAVE_OS_H=1
23088     fi
23089
23090 for ac_header in sys/param.h
23091 do
23092 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23093 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23094   { echo "$as_me:$LINENO: checking for $ac_header" >&5
23095 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23096 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23097   echo $ECHO_N "(cached) $ECHO_C" >&6
23098 fi
23099 ac_res=`eval echo '${'$as_ac_Header'}'`
23100                { echo "$as_me:$LINENO: result: $ac_res" >&5
23101 echo "${ECHO_T}$ac_res" >&6; }
23102 else
23103   # Is the header compilable?
23104 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23105 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23106 cat >conftest.$ac_ext <<_ACEOF
23107 /* confdefs.h.  */
23108 _ACEOF
23109 cat confdefs.h >>conftest.$ac_ext
23110 cat >>conftest.$ac_ext <<_ACEOF
23111 /* end confdefs.h.  */
23112 $ac_includes_default
23113 #include <$ac_header>
23114 _ACEOF
23115 rm -f conftest.$ac_objext
23116 if { (ac_try="$ac_compile"
23117 case "(($ac_try" in
23118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23119   *) ac_try_echo=$ac_try;;
23120 esac
23121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23122   (eval "$ac_compile") 2>conftest.er1
23123   ac_status=$?
23124   grep -v '^ *+' conftest.er1 >conftest.err
23125   rm -f conftest.er1
23126   cat conftest.err >&5
23127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23128   (exit $ac_status); } && {
23129          test -z "$ac_c_werror_flag" ||
23130          test ! -s conftest.err
23131        } && test -s conftest.$ac_objext; then
23132   ac_header_compiler=yes
23133 else
23134   echo "$as_me: failed program was:" >&5
23135 sed 's/^/| /' conftest.$ac_ext >&5
23136
23137         ac_header_compiler=no
23138 fi
23139
23140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23141 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23142 echo "${ECHO_T}$ac_header_compiler" >&6; }
23143
23144 # Is the header present?
23145 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23146 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23147 cat >conftest.$ac_ext <<_ACEOF
23148 /* confdefs.h.  */
23149 _ACEOF
23150 cat confdefs.h >>conftest.$ac_ext
23151 cat >>conftest.$ac_ext <<_ACEOF
23152 /* end confdefs.h.  */
23153 #include <$ac_header>
23154 _ACEOF
23155 if { (ac_try="$ac_cpp conftest.$ac_ext"
23156 case "(($ac_try" in
23157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23158   *) ac_try_echo=$ac_try;;
23159 esac
23160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23161   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23162   ac_status=$?
23163   grep -v '^ *+' conftest.er1 >conftest.err
23164   rm -f conftest.er1
23165   cat conftest.err >&5
23166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23167   (exit $ac_status); } >/dev/null && {
23168          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23169          test ! -s conftest.err
23170        }; then
23171   ac_header_preproc=yes
23172 else
23173   echo "$as_me: failed program was:" >&5
23174 sed 's/^/| /' conftest.$ac_ext >&5
23175
23176   ac_header_preproc=no
23177 fi
23178
23179 rm -f conftest.err conftest.$ac_ext
23180 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23181 echo "${ECHO_T}$ac_header_preproc" >&6; }
23182
23183 # So?  What about this header?
23184 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23185   yes:no: )
23186     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23187 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23188     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23189 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23190     ac_header_preproc=yes
23191     ;;
23192   no:yes:* )
23193     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23194 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23195     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23196 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23197     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23198 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23199     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23200 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23201     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23202 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23203     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23204 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23205     ( cat <<\_ASBOX
23206 ## ------------------------------ ##
23207 ## Report this to bug-tar@gnu.org ##
23208 ## ------------------------------ ##
23209 _ASBOX
23210      ) | sed "s/^/$as_me: WARNING:     /" >&2
23211     ;;
23212 esac
23213 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23214 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23215 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23216   echo $ECHO_N "(cached) $ECHO_C" >&6
23217 else
23218   eval "$as_ac_Header=\$ac_header_preproc"
23219 fi
23220 ac_res=`eval echo '${'$as_ac_Header'}'`
23221                { echo "$as_me:$LINENO: result: $ac_res" >&5
23222 echo "${ECHO_T}$ac_res" >&6; }
23223
23224 fi
23225 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23226   cat >>confdefs.h <<_ACEOF
23227 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23228 _ACEOF
23229
23230 fi
23231
23232 done
23233
23234     if test $ac_cv_header_sys_param_h = yes; then
23235       HAVE_SYS_PARAM_H=1
23236     fi
23237   fi
23238   case "$host_os" in
23239     mingw*)
23240       REPLACE_GETPAGESIZE=1
23241
23242
23243
23244
23245
23246
23247
23248
23249   gl_LIBOBJS="$gl_LIBOBJS getpagesize.$ac_objext"
23250
23251       ;;
23252   esac
23253
23254
23255
23256   GNULIB_GETPAGESIZE=1
23257
23258
23259
23260
23261
23262
23263
23264
23265
23266
23267
23268
23269
23270   gl_LIBOBJS="$gl_LIBOBJS gettime.$ac_objext"
23271
23272
23273
23274
23275
23276
23277
23278
23279
23280
23281
23282
23283
23284
23285
23286
23287
23288
23289
23290
23291
23292
23293
23294   { echo "$as_me:$LINENO: checking for gettimeofday with POSIX signature" >&5
23295 echo $ECHO_N "checking for gettimeofday with POSIX signature... $ECHO_C" >&6; }
23296 if test "${gl_cv_func_gettimeofday_posix_signature+set}" = set; then
23297   echo $ECHO_N "(cached) $ECHO_C" >&6
23298 else
23299   cat >conftest.$ac_ext <<_ACEOF
23300 /* confdefs.h.  */
23301 _ACEOF
23302 cat confdefs.h >>conftest.$ac_ext
23303 cat >>conftest.$ac_ext <<_ACEOF
23304 /* end confdefs.h.  */
23305 #include <sys/time.h>
23306             struct timeval c;
23307
23308 int
23309 main ()
23310 {
23311
23312             int (*f) (struct timeval *restrict, void *restrict) = gettimeofday;
23313             int x = f (&c, 0);
23314             return !(x | c.tv_sec | c.tv_usec);
23315
23316   ;
23317   return 0;
23318 }
23319 _ACEOF
23320 rm -f conftest.$ac_objext
23321 if { (ac_try="$ac_compile"
23322 case "(($ac_try" in
23323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23324   *) ac_try_echo=$ac_try;;
23325 esac
23326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23327   (eval "$ac_compile") 2>conftest.er1
23328   ac_status=$?
23329   grep -v '^ *+' conftest.er1 >conftest.err
23330   rm -f conftest.er1
23331   cat conftest.err >&5
23332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23333   (exit $ac_status); } && {
23334          test -z "$ac_c_werror_flag" ||
23335          test ! -s conftest.err
23336        } && test -s conftest.$ac_objext; then
23337   gl_cv_func_gettimeofday_posix_signature=yes
23338 else
23339   echo "$as_me: failed program was:" >&5
23340 sed 's/^/| /' conftest.$ac_ext >&5
23341
23342         gl_cv_func_gettimeofday_posix_signature=no
23343 fi
23344
23345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23346 fi
23347 { echo "$as_me:$LINENO: result: $gl_cv_func_gettimeofday_posix_signature" >&5
23348 echo "${ECHO_T}$gl_cv_func_gettimeofday_posix_signature" >&6; }
23349
23350
23351
23352
23353  { echo "$as_me:$LINENO: checking whether gettimeofday clobbers localtime buffer" >&5
23354 echo $ECHO_N "checking whether gettimeofday clobbers localtime buffer... $ECHO_C" >&6; }
23355 if test "${gl_cv_func_gettimeofday_clobber+set}" = set; then
23356   echo $ECHO_N "(cached) $ECHO_C" >&6
23357 else
23358   if test "$cross_compiling" = yes; then
23359        gl_cv_func_gettimeofday_clobber=yes
23360 else
23361   cat >conftest.$ac_ext <<_ACEOF
23362 /* confdefs.h.  */
23363 _ACEOF
23364 cat confdefs.h >>conftest.$ac_ext
23365 cat >>conftest.$ac_ext <<_ACEOF
23366 /* end confdefs.h.  */
23367 #include <string.h>
23368           #include <sys/time.h>
23369           #include <time.h>
23370           #include <stdlib.h>
23371
23372 int
23373 main ()
23374 {
23375
23376           time_t t = 0;
23377           struct tm *lt;
23378           struct tm saved_lt;
23379           struct timeval tv;
23380           lt = localtime (&t);
23381           saved_lt = *lt;
23382           gettimeofday (&tv, NULL);
23383           return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0;
23384
23385   ;
23386   return 0;
23387 }
23388 _ACEOF
23389 rm -f conftest$ac_exeext
23390 if { (ac_try="$ac_link"
23391 case "(($ac_try" in
23392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23393   *) ac_try_echo=$ac_try;;
23394 esac
23395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23396   (eval "$ac_link") 2>&5
23397   ac_status=$?
23398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23399   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23400   { (case "(($ac_try" in
23401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23402   *) ac_try_echo=$ac_try;;
23403 esac
23404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23405   (eval "$ac_try") 2>&5
23406   ac_status=$?
23407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23408   (exit $ac_status); }; }; then
23409   gl_cv_func_gettimeofday_clobber=no
23410 else
23411   echo "$as_me: program exited with status $ac_status" >&5
23412 echo "$as_me: failed program was:" >&5
23413 sed 's/^/| /' conftest.$ac_ext >&5
23414
23415 ( exit $ac_status )
23416 gl_cv_func_gettimeofday_clobber=yes
23417 fi
23418 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23419 fi
23420
23421
23422 fi
23423 { echo "$as_me:$LINENO: result: $gl_cv_func_gettimeofday_clobber" >&5
23424 echo "${ECHO_T}$gl_cv_func_gettimeofday_clobber" >&6; }
23425
23426  if test $gl_cv_func_gettimeofday_clobber = yes; then
23427    REPLACE_GETTIMEOFDAY=1
23428    SYS_TIME_H=sys/time.h
23429
23430
23431
23432
23433
23434
23435
23436
23437
23438   gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext"
23439
23440
23441
23442 for ac_header in sys/timeb.h
23443 do
23444 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23445 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23446   { echo "$as_me:$LINENO: checking for $ac_header" >&5
23447 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23448 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23449   echo $ECHO_N "(cached) $ECHO_C" >&6
23450 fi
23451 ac_res=`eval echo '${'$as_ac_Header'}'`
23452                { echo "$as_me:$LINENO: result: $ac_res" >&5
23453 echo "${ECHO_T}$ac_res" >&6; }
23454 else
23455   # Is the header compilable?
23456 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23457 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23458 cat >conftest.$ac_ext <<_ACEOF
23459 /* confdefs.h.  */
23460 _ACEOF
23461 cat confdefs.h >>conftest.$ac_ext
23462 cat >>conftest.$ac_ext <<_ACEOF
23463 /* end confdefs.h.  */
23464 $ac_includes_default
23465 #include <$ac_header>
23466 _ACEOF
23467 rm -f conftest.$ac_objext
23468 if { (ac_try="$ac_compile"
23469 case "(($ac_try" in
23470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23471   *) ac_try_echo=$ac_try;;
23472 esac
23473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23474   (eval "$ac_compile") 2>conftest.er1
23475   ac_status=$?
23476   grep -v '^ *+' conftest.er1 >conftest.err
23477   rm -f conftest.er1
23478   cat conftest.err >&5
23479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23480   (exit $ac_status); } && {
23481          test -z "$ac_c_werror_flag" ||
23482          test ! -s conftest.err
23483        } && test -s conftest.$ac_objext; then
23484   ac_header_compiler=yes
23485 else
23486   echo "$as_me: failed program was:" >&5
23487 sed 's/^/| /' conftest.$ac_ext >&5
23488
23489         ac_header_compiler=no
23490 fi
23491
23492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23493 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23494 echo "${ECHO_T}$ac_header_compiler" >&6; }
23495
23496 # Is the header present?
23497 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23498 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23499 cat >conftest.$ac_ext <<_ACEOF
23500 /* confdefs.h.  */
23501 _ACEOF
23502 cat confdefs.h >>conftest.$ac_ext
23503 cat >>conftest.$ac_ext <<_ACEOF
23504 /* end confdefs.h.  */
23505 #include <$ac_header>
23506 _ACEOF
23507 if { (ac_try="$ac_cpp conftest.$ac_ext"
23508 case "(($ac_try" in
23509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23510   *) ac_try_echo=$ac_try;;
23511 esac
23512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23513   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23514   ac_status=$?
23515   grep -v '^ *+' conftest.er1 >conftest.err
23516   rm -f conftest.er1
23517   cat conftest.err >&5
23518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23519   (exit $ac_status); } >/dev/null && {
23520          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23521          test ! -s conftest.err
23522        }; then
23523   ac_header_preproc=yes
23524 else
23525   echo "$as_me: failed program was:" >&5
23526 sed 's/^/| /' conftest.$ac_ext >&5
23527
23528   ac_header_preproc=no
23529 fi
23530
23531 rm -f conftest.err conftest.$ac_ext
23532 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23533 echo "${ECHO_T}$ac_header_preproc" >&6; }
23534
23535 # So?  What about this header?
23536 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23537   yes:no: )
23538     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23539 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23540     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23541 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23542     ac_header_preproc=yes
23543     ;;
23544   no:yes:* )
23545     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23546 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23547     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23548 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23549     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23550 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23551     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23552 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23553     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23554 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23555     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23556 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23557     ( cat <<\_ASBOX
23558 ## ------------------------------ ##
23559 ## Report this to bug-tar@gnu.org ##
23560 ## ------------------------------ ##
23561 _ASBOX
23562      ) | sed "s/^/$as_me: WARNING:     /" >&2
23563     ;;
23564 esac
23565 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23566 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23567 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23568   echo $ECHO_N "(cached) $ECHO_C" >&6
23569 else
23570   eval "$as_ac_Header=\$ac_header_preproc"
23571 fi
23572 ac_res=`eval echo '${'$as_ac_Header'}'`
23573                { echo "$as_me:$LINENO: result: $ac_res" >&5
23574 echo "${ECHO_T}$ac_res" >&6; }
23575
23576 fi
23577 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23578   cat >>confdefs.h <<_ACEOF
23579 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23580 _ACEOF
23581
23582 fi
23583
23584 done
23585
23586
23587 for ac_func in _ftime
23588 do
23589 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23590 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23591 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23592 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23593   echo $ECHO_N "(cached) $ECHO_C" >&6
23594 else
23595   cat >conftest.$ac_ext <<_ACEOF
23596 /* confdefs.h.  */
23597 _ACEOF
23598 cat confdefs.h >>conftest.$ac_ext
23599 cat >>conftest.$ac_ext <<_ACEOF
23600 /* end confdefs.h.  */
23601 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23602    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23603 #define $ac_func innocuous_$ac_func
23604
23605 /* System header to define __stub macros and hopefully few prototypes,
23606     which can conflict with char $ac_func (); below.
23607     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23608     <limits.h> exists even on freestanding compilers.  */
23609
23610 #ifdef __STDC__
23611 # include <limits.h>
23612 #else
23613 # include <assert.h>
23614 #endif
23615
23616 #undef $ac_func
23617
23618 /* Override any GCC internal prototype to avoid an error.
23619    Use char because int might match the return type of a GCC
23620    builtin and then its argument prototype would still apply.  */
23621 #ifdef __cplusplus
23622 extern "C"
23623 #endif
23624 char $ac_func ();
23625 /* The GNU C library defines this for functions which it implements
23626     to always fail with ENOSYS.  Some functions are actually named
23627     something starting with __ and the normal name is an alias.  */
23628 #if defined __stub_$ac_func || defined __stub___$ac_func
23629 choke me
23630 #endif
23631
23632 int
23633 main ()
23634 {
23635 return $ac_func ();
23636   ;
23637   return 0;
23638 }
23639 _ACEOF
23640 rm -f conftest.$ac_objext conftest$ac_exeext
23641 if { (ac_try="$ac_link"
23642 case "(($ac_try" in
23643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23644   *) ac_try_echo=$ac_try;;
23645 esac
23646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23647   (eval "$ac_link") 2>conftest.er1
23648   ac_status=$?
23649   grep -v '^ *+' conftest.er1 >conftest.err
23650   rm -f conftest.er1
23651   cat conftest.err >&5
23652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23653   (exit $ac_status); } && {
23654          test -z "$ac_c_werror_flag" ||
23655          test ! -s conftest.err
23656        } && test -s conftest$ac_exeext &&
23657        $as_test_x conftest$ac_exeext; then
23658   eval "$as_ac_var=yes"
23659 else
23660   echo "$as_me: failed program was:" >&5
23661 sed 's/^/| /' conftest.$ac_ext >&5
23662
23663         eval "$as_ac_var=no"
23664 fi
23665
23666 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23667       conftest$ac_exeext conftest.$ac_ext
23668 fi
23669 ac_res=`eval echo '${'$as_ac_var'}'`
23670                { echo "$as_me:$LINENO: result: $ac_res" >&5
23671 echo "${ECHO_T}$ac_res" >&6; }
23672 if test `eval echo '${'$as_ac_var'}'` = yes; then
23673   cat >>confdefs.h <<_ACEOF
23674 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23675 _ACEOF
23676
23677 fi
23678 done
23679
23680
23681
23682 cat >>confdefs.h <<\_ACEOF
23683 #define gmtime rpl_gmtime
23684 _ACEOF
23685
23686
23687 cat >>confdefs.h <<\_ACEOF
23688 #define localtime rpl_localtime
23689 _ACEOF
23690
23691
23692
23693 cat >>confdefs.h <<\_ACEOF
23694 #define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1
23695 _ACEOF
23696
23697  fi
23698
23699
23700   if test $gl_cv_func_gettimeofday_posix_signature != yes; then
23701     REPLACE_GETTIMEOFDAY=1
23702     SYS_TIME_H=sys/time.h
23703     if test $gl_cv_func_gettimeofday_clobber != yes; then
23704
23705
23706
23707
23708
23709
23710
23711
23712   gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext"
23713
23714
23715
23716 for ac_header in sys/timeb.h
23717 do
23718 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23719 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23720   { echo "$as_me:$LINENO: checking for $ac_header" >&5
23721 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23722 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23723   echo $ECHO_N "(cached) $ECHO_C" >&6
23724 fi
23725 ac_res=`eval echo '${'$as_ac_Header'}'`
23726                { echo "$as_me:$LINENO: result: $ac_res" >&5
23727 echo "${ECHO_T}$ac_res" >&6; }
23728 else
23729   # Is the header compilable?
23730 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23731 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23732 cat >conftest.$ac_ext <<_ACEOF
23733 /* confdefs.h.  */
23734 _ACEOF
23735 cat confdefs.h >>conftest.$ac_ext
23736 cat >>conftest.$ac_ext <<_ACEOF
23737 /* end confdefs.h.  */
23738 $ac_includes_default
23739 #include <$ac_header>
23740 _ACEOF
23741 rm -f conftest.$ac_objext
23742 if { (ac_try="$ac_compile"
23743 case "(($ac_try" in
23744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23745   *) ac_try_echo=$ac_try;;
23746 esac
23747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23748   (eval "$ac_compile") 2>conftest.er1
23749   ac_status=$?
23750   grep -v '^ *+' conftest.er1 >conftest.err
23751   rm -f conftest.er1
23752   cat conftest.err >&5
23753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23754   (exit $ac_status); } && {
23755          test -z "$ac_c_werror_flag" ||
23756          test ! -s conftest.err
23757        } && test -s conftest.$ac_objext; then
23758   ac_header_compiler=yes
23759 else
23760   echo "$as_me: failed program was:" >&5
23761 sed 's/^/| /' conftest.$ac_ext >&5
23762
23763         ac_header_compiler=no
23764 fi
23765
23766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23767 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23768 echo "${ECHO_T}$ac_header_compiler" >&6; }
23769
23770 # Is the header present?
23771 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23772 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23773 cat >conftest.$ac_ext <<_ACEOF
23774 /* confdefs.h.  */
23775 _ACEOF
23776 cat confdefs.h >>conftest.$ac_ext
23777 cat >>conftest.$ac_ext <<_ACEOF
23778 /* end confdefs.h.  */
23779 #include <$ac_header>
23780 _ACEOF
23781 if { (ac_try="$ac_cpp conftest.$ac_ext"
23782 case "(($ac_try" in
23783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23784   *) ac_try_echo=$ac_try;;
23785 esac
23786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23787   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23788   ac_status=$?
23789   grep -v '^ *+' conftest.er1 >conftest.err
23790   rm -f conftest.er1
23791   cat conftest.err >&5
23792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23793   (exit $ac_status); } >/dev/null && {
23794          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23795          test ! -s conftest.err
23796        }; then
23797   ac_header_preproc=yes
23798 else
23799   echo "$as_me: failed program was:" >&5
23800 sed 's/^/| /' conftest.$ac_ext >&5
23801
23802   ac_header_preproc=no
23803 fi
23804
23805 rm -f conftest.err conftest.$ac_ext
23806 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23807 echo "${ECHO_T}$ac_header_preproc" >&6; }
23808
23809 # So?  What about this header?
23810 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23811   yes:no: )
23812     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23813 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23814     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23815 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23816     ac_header_preproc=yes
23817     ;;
23818   no:yes:* )
23819     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23820 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23821     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23822 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23823     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23824 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23825     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23826 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23827     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23828 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23829     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23830 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23831     ( cat <<\_ASBOX
23832 ## ------------------------------ ##
23833 ## Report this to bug-tar@gnu.org ##
23834 ## ------------------------------ ##
23835 _ASBOX
23836      ) | sed "s/^/$as_me: WARNING:     /" >&2
23837     ;;
23838 esac
23839 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23840 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23841 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23842   echo $ECHO_N "(cached) $ECHO_C" >&6
23843 else
23844   eval "$as_ac_Header=\$ac_header_preproc"
23845 fi
23846 ac_res=`eval echo '${'$as_ac_Header'}'`
23847                { echo "$as_me:$LINENO: result: $ac_res" >&5
23848 echo "${ECHO_T}$ac_res" >&6; }
23849
23850 fi
23851 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23852   cat >>confdefs.h <<_ACEOF
23853 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23854 _ACEOF
23855
23856 fi
23857
23858 done
23859
23860
23861 for ac_func in _ftime
23862 do
23863 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23864 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23865 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23866 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23867   echo $ECHO_N "(cached) $ECHO_C" >&6
23868 else
23869   cat >conftest.$ac_ext <<_ACEOF
23870 /* confdefs.h.  */
23871 _ACEOF
23872 cat confdefs.h >>conftest.$ac_ext
23873 cat >>conftest.$ac_ext <<_ACEOF
23874 /* end confdefs.h.  */
23875 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23876    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23877 #define $ac_func innocuous_$ac_func
23878
23879 /* System header to define __stub macros and hopefully few prototypes,
23880     which can conflict with char $ac_func (); below.
23881     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23882     <limits.h> exists even on freestanding compilers.  */
23883
23884 #ifdef __STDC__
23885 # include <limits.h>
23886 #else
23887 # include <assert.h>
23888 #endif
23889
23890 #undef $ac_func
23891
23892 /* Override any GCC internal prototype to avoid an error.
23893    Use char because int might match the return type of a GCC
23894    builtin and then its argument prototype would still apply.  */
23895 #ifdef __cplusplus
23896 extern "C"
23897 #endif
23898 char $ac_func ();
23899 /* The GNU C library defines this for functions which it implements
23900     to always fail with ENOSYS.  Some functions are actually named
23901     something starting with __ and the normal name is an alias.  */
23902 #if defined __stub_$ac_func || defined __stub___$ac_func
23903 choke me
23904 #endif
23905
23906 int
23907 main ()
23908 {
23909 return $ac_func ();
23910   ;
23911   return 0;
23912 }
23913 _ACEOF
23914 rm -f conftest.$ac_objext conftest$ac_exeext
23915 if { (ac_try="$ac_link"
23916 case "(($ac_try" in
23917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23918   *) ac_try_echo=$ac_try;;
23919 esac
23920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23921   (eval "$ac_link") 2>conftest.er1
23922   ac_status=$?
23923   grep -v '^ *+' conftest.er1 >conftest.err
23924   rm -f conftest.er1
23925   cat conftest.err >&5
23926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23927   (exit $ac_status); } && {
23928          test -z "$ac_c_werror_flag" ||
23929          test ! -s conftest.err
23930        } && test -s conftest$ac_exeext &&
23931        $as_test_x conftest$ac_exeext; then
23932   eval "$as_ac_var=yes"
23933 else
23934   echo "$as_me: failed program was:" >&5
23935 sed 's/^/| /' conftest.$ac_ext >&5
23936
23937         eval "$as_ac_var=no"
23938 fi
23939
23940 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23941       conftest$ac_exeext conftest.$ac_ext
23942 fi
23943 ac_res=`eval echo '${'$as_ac_var'}'`
23944                { echo "$as_me:$LINENO: result: $ac_res" >&5
23945 echo "${ECHO_T}$ac_res" >&6; }
23946 if test `eval echo '${'$as_ac_var'}'` = yes; then
23947   cat >>confdefs.h <<_ACEOF
23948 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23949 _ACEOF
23950
23951 fi
23952 done
23953
23954
23955     fi
23956   fi
23957
23958
23959
23960
23961
23962
23963
23964
23965
23966
23967   gl_LIBOBJS="$gl_LIBOBJS hash.$ac_objext"
23968
23969
23970
23971
23972
23973
23974
23975
23976
23977
23978
23979
23980
23981   gl_LIBOBJS="$gl_LIBOBJS human.$ac_objext"
23982
23983
23984     :
23985
23986
23987
23988   { echo "$as_me:$LINENO: checking whether the compiler generally respects inline" >&5
23989 echo $ECHO_N "checking whether the compiler generally respects inline... $ECHO_C" >&6; }
23990 if test "${gl_cv_c_inline_effective+set}" = set; then
23991   echo $ECHO_N "(cached) $ECHO_C" >&6
23992 else
23993   if test $ac_cv_c_inline = no; then
23994        gl_cv_c_inline_effective=no
23995      else
23996                                           cat >conftest.$ac_ext <<_ACEOF
23997 /* confdefs.h.  */
23998 _ACEOF
23999 cat confdefs.h >>conftest.$ac_ext
24000 cat >>conftest.$ac_ext <<_ACEOF
24001 /* end confdefs.h.  */
24002
24003 int
24004 main ()
24005 {
24006 #ifdef __NO_INLINE__
24007                #error "inline is not effective"
24008              #endif
24009   ;
24010   return 0;
24011 }
24012 _ACEOF
24013 rm -f conftest.$ac_objext
24014 if { (ac_try="$ac_compile"
24015 case "(($ac_try" in
24016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24017   *) ac_try_echo=$ac_try;;
24018 esac
24019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24020   (eval "$ac_compile") 2>conftest.er1
24021   ac_status=$?
24022   grep -v '^ *+' conftest.er1 >conftest.err
24023   rm -f conftest.er1
24024   cat conftest.err >&5
24025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24026   (exit $ac_status); } && {
24027          test -z "$ac_c_werror_flag" ||
24028          test ! -s conftest.err
24029        } && test -s conftest.$ac_objext; then
24030   gl_cv_c_inline_effective=yes
24031 else
24032   echo "$as_me: failed program was:" >&5
24033 sed 's/^/| /' conftest.$ac_ext >&5
24034
24035         gl_cv_c_inline_effective=no
24036 fi
24037
24038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24039      fi
24040
24041 fi
24042 { echo "$as_me:$LINENO: result: $gl_cv_c_inline_effective" >&5
24043 echo "${ECHO_T}$gl_cv_c_inline_effective" >&6; }
24044   if test $gl_cv_c_inline_effective = yes; then
24045
24046 cat >>confdefs.h <<\_ACEOF
24047 #define HAVE_INLINE 1
24048 _ACEOF
24049
24050   fi
24051
24052
24053
24054
24055
24056
24057
24058
24059
24060
24061   gl_LIBOBJS="$gl_LIBOBJS imaxtostr.$ac_objext"
24062
24063
24064
24065
24066
24067
24068
24069
24070
24071   gl_LIBOBJS="$gl_LIBOBJS offtostr.$ac_objext"
24072
24073
24074
24075
24076
24077
24078
24079
24080
24081   gl_LIBOBJS="$gl_LIBOBJS umaxtostr.$ac_objext"
24082
24083
24084
24085
24086
24087
24088
24089
24090
24091   gl_LIBOBJS="$gl_LIBOBJS uinttostr.$ac_objext"
24092
24093
24094
24095
24096   :
24097
24098   :
24099   :
24100   :
24101   :
24102
24103
24104
24105
24106
24107
24108
24109
24110
24111
24112
24113
24114
24115
24116
24117
24118
24119
24120
24121
24122
24123               { echo "$as_me:$LINENO: checking whether inttypes.h conforms to C99" >&5
24124 echo $ECHO_N "checking whether inttypes.h conforms to C99... $ECHO_C" >&6; }
24125 if test "${gl_cv_header_working_inttypes_h+set}" = set; then
24126   echo $ECHO_N "(cached) $ECHO_C" >&6
24127 else
24128   gl_cv_header_working_inttypes_h=no
24129      if test "$gl_cv_header_working_stdint_h" = yes \
24130         && test $ac_cv_header_inttypes_h = yes \
24131         && test "$ac_cv_have_decl_imaxabs" = yes \
24132         && test "$ac_cv_have_decl_imaxdiv" = yes \
24133         && test "$ac_cv_have_decl_strtoimax" = yes \
24134         && test "$ac_cv_have_decl_strtoumax" = yes; then
24135        cat >conftest.$ac_ext <<_ACEOF
24136
24137          /* confdefs.h.  */
24138 _ACEOF
24139 cat confdefs.h >>conftest.$ac_ext
24140 cat >>conftest.$ac_ext <<_ACEOF
24141 /* end confdefs.h.  */
24142
24143 #include <stddef.h>
24144 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
24145 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
24146 #define __STDC_FORMAT_MACROS 1 /* to make it work also in C++ mode */
24147 #define _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H /* work if build isn't clean */
24148 #include <inttypes.h>
24149
24150 /* No need to duplicate the tests of stdint.m4; they are subsumed by
24151    $gl_cv_header_working_stdint_h = yes.  */
24152
24153 /* Tests for macros supposed to be defined in inttypes.h.  */
24154
24155 const char *k = /* implicit string concatenation */
24156 #ifdef INT8_MAX
24157   PRId8 PRIi8
24158 #endif
24159 #ifdef UINT8_MAX
24160   PRIo8 PRIu8 PRIx8 PRIX8
24161 #endif
24162 #ifdef INT16_MAX
24163   PRId16 PRIi16
24164 #endif
24165 #ifdef UINT16_MAX
24166   PRIo16 PRIu16 PRIx16 PRIX16
24167 #endif
24168 #ifdef INT32_MAX
24169   PRId32 PRIi32
24170 #endif
24171 #ifdef UINT32_MAX
24172   PRIo32 PRIu32 PRIx32 PRIX32
24173 #endif
24174 #ifdef INT64_MAX
24175   PRId64 PRIi64
24176 #endif
24177 #ifdef UINT64_MAX
24178   PRIo64 PRIu64 PRIx64 PRIX64
24179 #endif
24180   PRIdLEAST8 PRIiLEAST8 PRIoLEAST8 PRIuLEAST8 PRIxLEAST8 PRIXLEAST8
24181   PRIdLEAST16 PRIiLEAST16 PRIoLEAST16 PRIuLEAST16 PRIxLEAST16 PRIXLEAST16
24182   PRIdLEAST32 PRIiLEAST32 PRIoLEAST32 PRIuLEAST32 PRIxLEAST32 PRIXLEAST32
24183   PRIdLEAST64 PRIiLEAST64
24184   PRIoLEAST64 PRIuLEAST64 PRIxLEAST64 PRIXLEAST64
24185   PRIdFAST8 PRIiFAST8 PRIoFAST8 PRIuFAST8 PRIxFAST8 PRIXFAST8
24186   PRIdFAST16 PRIiFAST16 PRIoFAST16 PRIuFAST16 PRIxFAST16 PRIXFAST16
24187   PRIdFAST32 PRIiFAST32 PRIoFAST32 PRIuFAST32 PRIxFAST32 PRIXFAST32
24188   PRIdFAST64 PRIiFAST64
24189   PRIoFAST64 PRIuFAST64 PRIxFAST64 PRIXFAST64
24190   PRIdMAX PRIiMAX PRIoMAX PRIuMAX PRIxMAX PRIXMAX
24191 #ifdef INTPTR_MAX
24192   PRIdPTR PRIiPTR
24193 #endif
24194 #ifdef UINTPTR_MAX
24195   PRIoPTR PRIuPTR PRIxPTR PRIXPTR
24196 #endif
24197   ;
24198 const char *l = /* implicit string concatenation */
24199 #ifdef INT8_MAX
24200   SCNd8 SCNi8
24201 #endif
24202 #ifdef UINT8_MAX
24203   SCNo8 SCNu8 SCNx8
24204 #endif
24205 #ifdef INT16_MAX
24206   SCNd16 SCNi16
24207 #endif
24208 #ifdef UINT16_MAX
24209   SCNo16 SCNu16 SCNx16
24210 #endif
24211 #ifdef INT32_MAX
24212   SCNd32 SCNi32
24213 #endif
24214 #ifdef UINT32_MAX
24215   SCNo32 SCNu32 SCNx32
24216 #endif
24217 #ifdef INT64_MAX
24218   SCNd64 SCNi64
24219 #endif
24220 #ifdef UINT64_MAX
24221   SCNo64 SCNu64 SCNx64
24222 #endif
24223   SCNdLEAST8 SCNiLEAST8 SCNoLEAST8 SCNuLEAST8 SCNxLEAST8
24224   SCNdLEAST16 SCNiLEAST16 SCNoLEAST16 SCNuLEAST16 SCNxLEAST16
24225   SCNdLEAST32 SCNiLEAST32 SCNoLEAST32 SCNuLEAST32 SCNxLEAST32
24226   SCNdLEAST64 SCNiLEAST64
24227   SCNoLEAST64 SCNuLEAST64 SCNxLEAST64
24228   SCNdFAST8 SCNiFAST8 SCNoFAST8 SCNuFAST8 SCNxFAST8
24229   SCNdFAST16 SCNiFAST16 SCNoFAST16 SCNuFAST16 SCNxFAST16
24230   SCNdFAST32 SCNiFAST32 SCNoFAST32 SCNuFAST32 SCNxFAST32
24231   SCNdFAST64 SCNiFAST64
24232   SCNoFAST64 SCNuFAST64 SCNxFAST64
24233   SCNdMAX SCNiMAX SCNoMAX SCNuMAX SCNxMAX
24234 #ifdef INTPTR_MAX
24235   SCNdPTR SCNiPTR
24236 #endif
24237 #ifdef UINTPTR_MAX
24238   SCNoPTR SCNuPTR SCNxPTR
24239 #endif
24240   ;
24241
24242 int
24243 main ()
24244 {
24245
24246   ;
24247   return 0;
24248 }
24249 _ACEOF
24250 rm -f conftest.$ac_objext
24251 if { (ac_try="$ac_compile"
24252 case "(($ac_try" in
24253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24254   *) ac_try_echo=$ac_try;;
24255 esac
24256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24257   (eval "$ac_compile") 2>conftest.er1
24258   ac_status=$?
24259   grep -v '^ *+' conftest.er1 >conftest.err
24260   rm -f conftest.er1
24261   cat conftest.err >&5
24262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24263   (exit $ac_status); } && {
24264          test -z "$ac_c_werror_flag" ||
24265          test ! -s conftest.err
24266        } && test -s conftest.$ac_objext; then
24267   gl_cv_header_working_inttypes_h=yes
24268 else
24269   echo "$as_me: failed program was:" >&5
24270 sed 's/^/| /' conftest.$ac_ext >&5
24271
24272
24273 fi
24274
24275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24276      fi
24277 fi
24278 { echo "$as_me:$LINENO: result: $gl_cv_header_working_inttypes_h" >&5
24279 echo "${ECHO_T}$gl_cv_header_working_inttypes_h" >&6; }
24280
24281     if false && test $gl_cv_header_working_inttypes_h = yes; then
24282         INTTYPES_H=''
24283   else
24284
24285
24286
24287
24288
24289
24290
24291
24292
24293
24294
24295
24296      if test $gl_cv_have_include_next = yes; then
24297        gl_cv_next_inttypes_h='<'inttypes.h'>'
24298      else
24299        { echo "$as_me:$LINENO: checking absolute name of <inttypes.h>" >&5
24300 echo $ECHO_N "checking absolute name of <inttypes.h>... $ECHO_C" >&6; }
24301 if test "${gl_cv_next_inttypes_h+set}" = set; then
24302   echo $ECHO_N "(cached) $ECHO_C" >&6
24303 else
24304
24305           if test $ac_cv_header_inttypes_h = yes; then
24306             cat >conftest.$ac_ext <<_ACEOF
24307 /* confdefs.h.  */
24308 _ACEOF
24309 cat confdefs.h >>conftest.$ac_ext
24310 cat >>conftest.$ac_ext <<_ACEOF
24311 /* end confdefs.h.  */
24312 #include <inttypes.h>
24313
24314 _ACEOF
24315                                     gl_cv_next_inttypes_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24316                sed -n '\#/inttypes.h#{
24317                  s#.*"\(.*/inttypes.h\)".*#\1#
24318                  s#^/[^/]#//&#
24319                  p
24320                  q
24321                }'`'"'
24322           else
24323             gl_cv_next_inttypes_h='<'inttypes.h'>'
24324           fi
24325
24326 fi
24327 { echo "$as_me:$LINENO: result: $gl_cv_next_inttypes_h" >&5
24328 echo "${ECHO_T}$gl_cv_next_inttypes_h" >&6; }
24329      fi
24330      NEXT_INTTYPES_H=$gl_cv_next_inttypes_h
24331
24332
24333
24334
24335
24336 cat >>confdefs.h <<\_ACEOF
24337 #define GL_TRIGGER_STDC_LIMIT_MACROS 1
24338 _ACEOF
24339
24340
24341
24342
24343     PRIPTR_PREFIX=
24344     if test -n "$STDINT_H"; then
24345             PRIPTR_PREFIX='"l"'
24346     else
24347             for glpfx in '' l ll I64; do
24348         case $glpfx in
24349           '')  gltype1='int';;
24350           l)   gltype1='long int';;
24351           ll)  gltype1='long long int';;
24352           I64) gltype1='__int64';;
24353         esac
24354         cat >conftest.$ac_ext <<_ACEOF
24355 /* confdefs.h.  */
24356 _ACEOF
24357 cat confdefs.h >>conftest.$ac_ext
24358 cat >>conftest.$ac_ext <<_ACEOF
24359 /* end confdefs.h.  */
24360 #include <stdint.h>
24361              extern intptr_t foo;
24362              extern $gltype1 foo;
24363 int
24364 main ()
24365 {
24366
24367   ;
24368   return 0;
24369 }
24370 _ACEOF
24371 rm -f conftest.$ac_objext
24372 if { (ac_try="$ac_compile"
24373 case "(($ac_try" in
24374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24375   *) ac_try_echo=$ac_try;;
24376 esac
24377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24378   (eval "$ac_compile") 2>conftest.er1
24379   ac_status=$?
24380   grep -v '^ *+' conftest.er1 >conftest.err
24381   rm -f conftest.er1
24382   cat conftest.err >&5
24383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24384   (exit $ac_status); } && {
24385          test -z "$ac_c_werror_flag" ||
24386          test ! -s conftest.err
24387        } && test -s conftest.$ac_objext; then
24388   PRIPTR_PREFIX='"'$glpfx'"'
24389 else
24390   echo "$as_me: failed program was:" >&5
24391 sed 's/^/| /' conftest.$ac_ext >&5
24392
24393
24394 fi
24395
24396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24397         test -n "$PRIPTR_PREFIX" && break
24398       done
24399     fi
24400
24401
24402     if test "$ac_cv_have_decl_imaxabs" = yes; then
24403       HAVE_DECL_IMAXABS=1
24404     else
24405       HAVE_DECL_IMAXABS=0
24406     fi
24407
24408     if test "$ac_cv_have_decl_imaxdiv" = yes; then
24409       HAVE_DECL_IMAXDIV=1
24410     else
24411       HAVE_DECL_IMAXDIV=0
24412     fi
24413
24414     if test "$ac_cv_have_decl_strtoimax" = yes; then
24415       HAVE_DECL_STRTOIMAX=1
24416     else
24417       HAVE_DECL_STRTOIMAX=0
24418     fi
24419
24420     if test "$ac_cv_have_decl_strtoumax" = yes; then
24421       HAVE_DECL_STRTOUMAX=1
24422     else
24423       HAVE_DECL_STRTOUMAX=0
24424     fi
24425
24426
24427   { echo "$as_me:$LINENO: checking whether INT32_MAX < INTMAX_MAX" >&5
24428 echo $ECHO_N "checking whether INT32_MAX < INTMAX_MAX... $ECHO_C" >&6; }
24429 if test "${gl_cv_test_INT32_MAX_LT_INTMAX_MAX+set}" = set; then
24430   echo $ECHO_N "(cached) $ECHO_C" >&6
24431 else
24432   cat >conftest.$ac_ext <<_ACEOF
24433 /* confdefs.h.  */
24434 _ACEOF
24435 cat confdefs.h >>conftest.$ac_ext
24436 cat >>conftest.$ac_ext <<_ACEOF
24437 /* end confdefs.h.  */
24438 /* Work also in C++ mode.  */
24439             #define __STDC_LIMIT_MACROS 1
24440
24441             /* Work if build is not clean.  */
24442             #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
24443
24444             #include <limits.h>
24445             #if HAVE_STDINT_H
24446              #include <stdint.h>
24447             #endif
24448
24449             #if defined INT32_MAX && defined INTMAX_MAX
24450              #define CONDITION (INT32_MAX < INTMAX_MAX)
24451             #elif HAVE_LONG_LONG_INT
24452              #define CONDITION (sizeof (int) < sizeof (long long int))
24453             #else
24454              #define CONDITION 0
24455             #endif
24456             int test[CONDITION ? 1 : -1];
24457 int
24458 main ()
24459 {
24460
24461   ;
24462   return 0;
24463 }
24464 _ACEOF
24465 rm -f conftest.$ac_objext
24466 if { (ac_try="$ac_compile"
24467 case "(($ac_try" in
24468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24469   *) ac_try_echo=$ac_try;;
24470 esac
24471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24472   (eval "$ac_compile") 2>conftest.er1
24473   ac_status=$?
24474   grep -v '^ *+' conftest.er1 >conftest.err
24475   rm -f conftest.er1
24476   cat conftest.err >&5
24477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24478   (exit $ac_status); } && {
24479          test -z "$ac_c_werror_flag" ||
24480          test ! -s conftest.err
24481        } && test -s conftest.$ac_objext; then
24482   gl_cv_test_INT32_MAX_LT_INTMAX_MAX=yes
24483 else
24484   echo "$as_me: failed program was:" >&5
24485 sed 's/^/| /' conftest.$ac_ext >&5
24486
24487         gl_cv_test_INT32_MAX_LT_INTMAX_MAX=no
24488 fi
24489
24490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24491 fi
24492 { echo "$as_me:$LINENO: result: $gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&5
24493 echo "${ECHO_T}$gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&6; }
24494   if test $gl_cv_test_INT32_MAX_LT_INTMAX_MAX = yes; then
24495     INT32_MAX_LT_INTMAX_MAX=1;
24496   else
24497     INT32_MAX_LT_INTMAX_MAX=0;
24498   fi
24499
24500
24501
24502   { echo "$as_me:$LINENO: checking whether INT64_MAX == LONG_MAX" >&5
24503 echo $ECHO_N "checking whether INT64_MAX == LONG_MAX... $ECHO_C" >&6; }
24504 if test "${gl_cv_test_INT64_MAX_EQ_LONG_MAX+set}" = set; then
24505   echo $ECHO_N "(cached) $ECHO_C" >&6
24506 else
24507   cat >conftest.$ac_ext <<_ACEOF
24508 /* confdefs.h.  */
24509 _ACEOF
24510 cat confdefs.h >>conftest.$ac_ext
24511 cat >>conftest.$ac_ext <<_ACEOF
24512 /* end confdefs.h.  */
24513 /* Work also in C++ mode.  */
24514             #define __STDC_LIMIT_MACROS 1
24515
24516             /* Work if build is not clean.  */
24517             #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
24518
24519             #include <limits.h>
24520             #if HAVE_STDINT_H
24521              #include <stdint.h>
24522             #endif
24523
24524             #if defined INT64_MAX
24525              #define CONDITION (INT64_MAX == LONG_MAX)
24526             #elif HAVE_LONG_LONG_INT
24527              #define CONDITION (sizeof (long long int) == sizeof (long int))
24528             #else
24529              #define CONDITION 0
24530             #endif
24531             int test[CONDITION ? 1 : -1];
24532 int
24533 main ()
24534 {
24535
24536   ;
24537   return 0;
24538 }
24539 _ACEOF
24540 rm -f conftest.$ac_objext
24541 if { (ac_try="$ac_compile"
24542 case "(($ac_try" in
24543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24544   *) ac_try_echo=$ac_try;;
24545 esac
24546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24547   (eval "$ac_compile") 2>conftest.er1
24548   ac_status=$?
24549   grep -v '^ *+' conftest.er1 >conftest.err
24550   rm -f conftest.er1
24551   cat conftest.err >&5
24552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24553   (exit $ac_status); } && {
24554          test -z "$ac_c_werror_flag" ||
24555          test ! -s conftest.err
24556        } && test -s conftest.$ac_objext; then
24557   gl_cv_test_INT64_MAX_EQ_LONG_MAX=yes
24558 else
24559   echo "$as_me: failed program was:" >&5
24560 sed 's/^/| /' conftest.$ac_ext >&5
24561
24562         gl_cv_test_INT64_MAX_EQ_LONG_MAX=no
24563 fi
24564
24565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24566 fi
24567 { echo "$as_me:$LINENO: result: $gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&5
24568 echo "${ECHO_T}$gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&6; }
24569   if test $gl_cv_test_INT64_MAX_EQ_LONG_MAX = yes; then
24570     INT64_MAX_EQ_LONG_MAX=1;
24571   else
24572     INT64_MAX_EQ_LONG_MAX=0;
24573   fi
24574
24575
24576
24577   { echo "$as_me:$LINENO: checking whether UINT32_MAX < UINTMAX_MAX" >&5
24578 echo $ECHO_N "checking whether UINT32_MAX < UINTMAX_MAX... $ECHO_C" >&6; }
24579 if test "${gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX+set}" = set; then
24580   echo $ECHO_N "(cached) $ECHO_C" >&6
24581 else
24582   cat >conftest.$ac_ext <<_ACEOF
24583 /* confdefs.h.  */
24584 _ACEOF
24585 cat confdefs.h >>conftest.$ac_ext
24586 cat >>conftest.$ac_ext <<_ACEOF
24587 /* end confdefs.h.  */
24588 /* Work also in C++ mode.  */
24589             #define __STDC_LIMIT_MACROS 1
24590
24591             /* Work if build is not clean.  */
24592             #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
24593
24594             #include <limits.h>
24595             #if HAVE_STDINT_H
24596              #include <stdint.h>
24597             #endif
24598
24599             #if defined UINT32_MAX && defined UINTMAX_MAX
24600              #define CONDITION (UINT32_MAX < UINTMAX_MAX)
24601             #elif HAVE_LONG_LONG_INT
24602              #define CONDITION (sizeof (unsigned int) < sizeof (unsigned long long int))
24603             #else
24604              #define CONDITION 0
24605             #endif
24606             int test[CONDITION ? 1 : -1];
24607 int
24608 main ()
24609 {
24610
24611   ;
24612   return 0;
24613 }
24614 _ACEOF
24615 rm -f conftest.$ac_objext
24616 if { (ac_try="$ac_compile"
24617 case "(($ac_try" in
24618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24619   *) ac_try_echo=$ac_try;;
24620 esac
24621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24622   (eval "$ac_compile") 2>conftest.er1
24623   ac_status=$?
24624   grep -v '^ *+' conftest.er1 >conftest.err
24625   rm -f conftest.er1
24626   cat conftest.err >&5
24627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24628   (exit $ac_status); } && {
24629          test -z "$ac_c_werror_flag" ||
24630          test ! -s conftest.err
24631        } && test -s conftest.$ac_objext; then
24632   gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=yes
24633 else
24634   echo "$as_me: failed program was:" >&5
24635 sed 's/^/| /' conftest.$ac_ext >&5
24636
24637         gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=no
24638 fi
24639
24640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24641 fi
24642 { echo "$as_me:$LINENO: result: $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&5
24643 echo "${ECHO_T}$gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&6; }
24644   if test $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX = yes; then
24645     UINT32_MAX_LT_UINTMAX_MAX=1;
24646   else
24647     UINT32_MAX_LT_UINTMAX_MAX=0;
24648   fi
24649
24650
24651
24652   { echo "$as_me:$LINENO: checking whether UINT64_MAX == ULONG_MAX" >&5
24653 echo $ECHO_N "checking whether UINT64_MAX == ULONG_MAX... $ECHO_C" >&6; }
24654 if test "${gl_cv_test_UINT64_MAX_EQ_ULONG_MAX+set}" = set; then
24655   echo $ECHO_N "(cached) $ECHO_C" >&6
24656 else
24657   cat >conftest.$ac_ext <<_ACEOF
24658 /* confdefs.h.  */
24659 _ACEOF
24660 cat confdefs.h >>conftest.$ac_ext
24661 cat >>conftest.$ac_ext <<_ACEOF
24662 /* end confdefs.h.  */
24663 /* Work also in C++ mode.  */
24664             #define __STDC_LIMIT_MACROS 1
24665
24666             /* Work if build is not clean.  */
24667             #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
24668
24669             #include <limits.h>
24670             #if HAVE_STDINT_H
24671              #include <stdint.h>
24672             #endif
24673
24674             #if defined UINT64_MAX
24675              #define CONDITION (UINT64_MAX == ULONG_MAX)
24676             #elif HAVE_LONG_LONG_INT
24677              #define CONDITION (sizeof (unsigned long long int) == sizeof (unsigned long int))
24678             #else
24679              #define CONDITION 0
24680             #endif
24681             int test[CONDITION ? 1 : -1];
24682 int
24683 main ()
24684 {
24685
24686   ;
24687   return 0;
24688 }
24689 _ACEOF
24690 rm -f conftest.$ac_objext
24691 if { (ac_try="$ac_compile"
24692 case "(($ac_try" in
24693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24694   *) ac_try_echo=$ac_try;;
24695 esac
24696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24697   (eval "$ac_compile") 2>conftest.er1
24698   ac_status=$?
24699   grep -v '^ *+' conftest.er1 >conftest.err
24700   rm -f conftest.er1
24701   cat conftest.err >&5
24702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24703   (exit $ac_status); } && {
24704          test -z "$ac_c_werror_flag" ||
24705          test ! -s conftest.err
24706        } && test -s conftest.$ac_objext; then
24707   gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=yes
24708 else
24709   echo "$as_me: failed program was:" >&5
24710 sed 's/^/| /' conftest.$ac_ext >&5
24711
24712         gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=no
24713 fi
24714
24715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24716 fi
24717 { echo "$as_me:$LINENO: result: $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&5
24718 echo "${ECHO_T}$gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&6; }
24719   if test $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX = yes; then
24720     UINT64_MAX_EQ_ULONG_MAX=1;
24721   else
24722     UINT64_MAX_EQ_ULONG_MAX=0;
24723   fi
24724
24725
24726
24727     INTTYPES_H='inttypes.h'
24728   fi
24729
24730
24731
24732
24733
24734
24735
24736
24737
24738
24739
24740
24741
24742
24743 for ac_func in lchown
24744 do
24745 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24746 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24747 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24748 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24749   echo $ECHO_N "(cached) $ECHO_C" >&6
24750 else
24751   cat >conftest.$ac_ext <<_ACEOF
24752 /* confdefs.h.  */
24753 _ACEOF
24754 cat confdefs.h >>conftest.$ac_ext
24755 cat >>conftest.$ac_ext <<_ACEOF
24756 /* end confdefs.h.  */
24757 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24758    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24759 #define $ac_func innocuous_$ac_func
24760
24761 /* System header to define __stub macros and hopefully few prototypes,
24762     which can conflict with char $ac_func (); below.
24763     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24764     <limits.h> exists even on freestanding compilers.  */
24765
24766 #ifdef __STDC__
24767 # include <limits.h>
24768 #else
24769 # include <assert.h>
24770 #endif
24771
24772 #undef $ac_func
24773
24774 /* Override any GCC internal prototype to avoid an error.
24775    Use char because int might match the return type of a GCC
24776    builtin and then its argument prototype would still apply.  */
24777 #ifdef __cplusplus
24778 extern "C"
24779 #endif
24780 char $ac_func ();
24781 /* The GNU C library defines this for functions which it implements
24782     to always fail with ENOSYS.  Some functions are actually named
24783     something starting with __ and the normal name is an alias.  */
24784 #if defined __stub_$ac_func || defined __stub___$ac_func
24785 choke me
24786 #endif
24787
24788 int
24789 main ()
24790 {
24791 return $ac_func ();
24792   ;
24793   return 0;
24794 }
24795 _ACEOF
24796 rm -f conftest.$ac_objext conftest$ac_exeext
24797 if { (ac_try="$ac_link"
24798 case "(($ac_try" in
24799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24800   *) ac_try_echo=$ac_try;;
24801 esac
24802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24803   (eval "$ac_link") 2>conftest.er1
24804   ac_status=$?
24805   grep -v '^ *+' conftest.er1 >conftest.err
24806   rm -f conftest.er1
24807   cat conftest.err >&5
24808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24809   (exit $ac_status); } && {
24810          test -z "$ac_c_werror_flag" ||
24811          test ! -s conftest.err
24812        } && test -s conftest$ac_exeext &&
24813        $as_test_x conftest$ac_exeext; then
24814   eval "$as_ac_var=yes"
24815 else
24816   echo "$as_me: failed program was:" >&5
24817 sed 's/^/| /' conftest.$ac_ext >&5
24818
24819         eval "$as_ac_var=no"
24820 fi
24821
24822 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24823       conftest$ac_exeext conftest.$ac_ext
24824 fi
24825 ac_res=`eval echo '${'$as_ac_var'}'`
24826                { echo "$as_me:$LINENO: result: $ac_res" >&5
24827 echo "${ECHO_T}$ac_res" >&6; }
24828 if test `eval echo '${'$as_ac_var'}'` = yes; then
24829   cat >>confdefs.h <<_ACEOF
24830 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24831 _ACEOF
24832
24833 else
24834
24835     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
24836
24837 fi
24838 done
24839
24840
24841   if test $ac_cv_func_lchown = no; then
24842     REPLACE_LCHOWN=1
24843   fi
24844
24845
24846
24847   GNULIB_LCHOWN=1
24848
24849
24850
24851
24852
24853
24854
24855
24856
24857
24858
24859   LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(top_builddir)/$gl_source_base\""
24860
24861
24862
24863
24864   { echo "$as_me:$LINENO: checking whether lseek detects pipes" >&5
24865 echo $ECHO_N "checking whether lseek detects pipes... $ECHO_C" >&6; }
24866 if test "${gl_cv_func_lseek_pipe+set}" = set; then
24867   echo $ECHO_N "(cached) $ECHO_C" >&6
24868 else
24869   if test $cross_compiling = no; then
24870        cat >conftest.$ac_ext <<_ACEOF
24871
24872 #include <sys/types.h> /* for off_t */
24873 #include <stdio.h> /* for SEEK_CUR */
24874 #include <unistd.h>
24875 int main ()
24876 {
24877   /* Exit with success only if stdin is seekable.  */
24878   return lseek (0, (off_t)0, SEEK_CUR) < 0;
24879 }
24880 _ACEOF
24881 rm -f conftest.$ac_objext conftest$ac_exeext
24882 if { (ac_try="$ac_link"
24883 case "(($ac_try" in
24884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24885   *) ac_try_echo=$ac_try;;
24886 esac
24887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24888   (eval "$ac_link") 2>conftest.er1
24889   ac_status=$?
24890   grep -v '^ *+' conftest.er1 >conftest.err
24891   rm -f conftest.er1
24892   cat conftest.err >&5
24893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24894   (exit $ac_status); } && {
24895          test -z "$ac_c_werror_flag" ||
24896          test ! -s conftest.err
24897        } && test -s conftest$ac_exeext &&
24898        $as_test_x conftest$ac_exeext; then
24899   if test -s conftest$ac_exeext \
24900              && ./conftest$ac_exeext < conftest.$ac_ext \
24901              && { echo hi | ./conftest$ac_exeext; test $? = 1; }; then
24902             gl_cv_func_lseek_pipe=yes
24903           else
24904             gl_cv_func_lseek_pipe=no
24905           fi
24906 else
24907   echo "$as_me: failed program was:" >&5
24908 sed 's/^/| /' conftest.$ac_ext >&5
24909
24910         gl_cv_func_lseek_pipe=no
24911 fi
24912
24913 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24914       conftest$ac_exeext conftest.$ac_ext
24915      else
24916        cat >conftest.$ac_ext <<_ACEOF
24917
24918 #if ((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__) || defined __BEOS__
24919 /* mingw and BeOS mistakenly return 0 when trying to seek on pipes.  */
24920   Choke me.
24921 #endif
24922 _ACEOF
24923 rm -f conftest.$ac_objext
24924 if { (ac_try="$ac_compile"
24925 case "(($ac_try" in
24926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24927   *) ac_try_echo=$ac_try;;
24928 esac
24929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24930   (eval "$ac_compile") 2>conftest.er1
24931   ac_status=$?
24932   grep -v '^ *+' conftest.er1 >conftest.err
24933   rm -f conftest.er1
24934   cat conftest.err >&5
24935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24936   (exit $ac_status); } && {
24937          test -z "$ac_c_werror_flag" ||
24938          test ! -s conftest.err
24939        } && test -s conftest.$ac_objext; then
24940   gl_cv_func_lseek_pipe=yes
24941 else
24942   echo "$as_me: failed program was:" >&5
24943 sed 's/^/| /' conftest.$ac_ext >&5
24944
24945         gl_cv_func_lseek_pipe=no
24946 fi
24947
24948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24949      fi
24950 fi
24951 { echo "$as_me:$LINENO: result: $gl_cv_func_lseek_pipe" >&5
24952 echo "${ECHO_T}$gl_cv_func_lseek_pipe" >&6; }
24953   if test $gl_cv_func_lseek_pipe = no; then
24954
24955
24956
24957
24958
24959
24960
24961
24962
24963   gl_LIBOBJS="$gl_LIBOBJS lseek.$ac_objext"
24964
24965
24966   REPLACE_LSEEK=1
24967
24968 cat >>confdefs.h <<\_ACEOF
24969 #define LSEEK_PIPE_BROKEN 1
24970 _ACEOF
24971
24972
24973   fi
24974
24975
24976
24977   GNULIB_LSEEK=1
24978
24979
24980
24981   { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
24982 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
24983 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
24984   echo $ECHO_N "(cached) $ECHO_C" >&6
24985 else
24986   rm -f conftest.sym conftest.file
24987 echo >conftest.file
24988 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
24989   if test "$cross_compiling" = yes; then
24990   ac_cv_func_lstat_dereferences_slashed_symlink=no
24991 else
24992   cat >conftest.$ac_ext <<_ACEOF
24993 /* confdefs.h.  */
24994 _ACEOF
24995 cat confdefs.h >>conftest.$ac_ext
24996 cat >>conftest.$ac_ext <<_ACEOF
24997 /* end confdefs.h.  */
24998 $ac_includes_default
24999 int
25000 main ()
25001 {
25002 struct stat sbuf;
25003      /* Linux will dereference the symlink and fail.
25004         That is better in the sense that it means we will not
25005         have to compile and use the lstat wrapper.  */
25006      return lstat ("conftest.sym/", &sbuf) == 0;
25007   ;
25008   return 0;
25009 }
25010 _ACEOF
25011 rm -f conftest$ac_exeext
25012 if { (ac_try="$ac_link"
25013 case "(($ac_try" in
25014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25015   *) ac_try_echo=$ac_try;;
25016 esac
25017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25018   (eval "$ac_link") 2>&5
25019   ac_status=$?
25020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25021   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25022   { (case "(($ac_try" in
25023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25024   *) ac_try_echo=$ac_try;;
25025 esac
25026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25027   (eval "$ac_try") 2>&5
25028   ac_status=$?
25029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25030   (exit $ac_status); }; }; then
25031   ac_cv_func_lstat_dereferences_slashed_symlink=yes
25032 else
25033   echo "$as_me: program exited with status $ac_status" >&5
25034 echo "$as_me: failed program was:" >&5
25035 sed 's/^/| /' conftest.$ac_ext >&5
25036
25037 ( exit $ac_status )
25038 ac_cv_func_lstat_dereferences_slashed_symlink=no
25039 fi
25040 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25041 fi
25042
25043
25044 else
25045   # If the `ln -s' command failed, then we probably don't even
25046   # have an lstat function.
25047   ac_cv_func_lstat_dereferences_slashed_symlink=no
25048 fi
25049 rm -f conftest.sym conftest.file
25050
25051 fi
25052 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
25053 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
25054
25055 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
25056
25057 cat >>confdefs.h <<_ACEOF
25058 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
25059 _ACEOF
25060
25061
25062 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
25063
25064
25065
25066
25067
25068
25069
25070
25071   gl_LIBOBJS="$gl_LIBOBJS lstat.$ac_objext"
25072
25073 fi
25074
25075     if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
25076     REPLACE_LSTAT=1
25077   fi
25078   # Prerequisites of lib/lstat.c.
25079
25080   :
25081
25082
25083
25084   GNULIB_LSTAT=1
25085
25086
25087 for ac_header in stdlib.h
25088 do
25089 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25090 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25091   { echo "$as_me:$LINENO: checking for $ac_header" >&5
25092 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25093 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25094   echo $ECHO_N "(cached) $ECHO_C" >&6
25095 fi
25096 ac_res=`eval echo '${'$as_ac_Header'}'`
25097                { echo "$as_me:$LINENO: result: $ac_res" >&5
25098 echo "${ECHO_T}$ac_res" >&6; }
25099 else
25100   # Is the header compilable?
25101 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
25102 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
25103 cat >conftest.$ac_ext <<_ACEOF
25104 /* confdefs.h.  */
25105 _ACEOF
25106 cat confdefs.h >>conftest.$ac_ext
25107 cat >>conftest.$ac_ext <<_ACEOF
25108 /* end confdefs.h.  */
25109 $ac_includes_default
25110 #include <$ac_header>
25111 _ACEOF
25112 rm -f conftest.$ac_objext
25113 if { (ac_try="$ac_compile"
25114 case "(($ac_try" in
25115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25116   *) ac_try_echo=$ac_try;;
25117 esac
25118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25119   (eval "$ac_compile") 2>conftest.er1
25120   ac_status=$?
25121   grep -v '^ *+' conftest.er1 >conftest.err
25122   rm -f conftest.er1
25123   cat conftest.err >&5
25124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25125   (exit $ac_status); } && {
25126          test -z "$ac_c_werror_flag" ||
25127          test ! -s conftest.err
25128        } && test -s conftest.$ac_objext; then
25129   ac_header_compiler=yes
25130 else
25131   echo "$as_me: failed program was:" >&5
25132 sed 's/^/| /' conftest.$ac_ext >&5
25133
25134         ac_header_compiler=no
25135 fi
25136
25137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25138 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25139 echo "${ECHO_T}$ac_header_compiler" >&6; }
25140
25141 # Is the header present?
25142 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
25143 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
25144 cat >conftest.$ac_ext <<_ACEOF
25145 /* confdefs.h.  */
25146 _ACEOF
25147 cat confdefs.h >>conftest.$ac_ext
25148 cat >>conftest.$ac_ext <<_ACEOF
25149 /* end confdefs.h.  */
25150 #include <$ac_header>
25151 _ACEOF
25152 if { (ac_try="$ac_cpp conftest.$ac_ext"
25153 case "(($ac_try" in
25154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25155   *) ac_try_echo=$ac_try;;
25156 esac
25157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25158   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25159   ac_status=$?
25160   grep -v '^ *+' conftest.er1 >conftest.err
25161   rm -f conftest.er1
25162   cat conftest.err >&5
25163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25164   (exit $ac_status); } >/dev/null && {
25165          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25166          test ! -s conftest.err
25167        }; then
25168   ac_header_preproc=yes
25169 else
25170   echo "$as_me: failed program was:" >&5
25171 sed 's/^/| /' conftest.$ac_ext >&5
25172
25173   ac_header_preproc=no
25174 fi
25175
25176 rm -f conftest.err conftest.$ac_ext
25177 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25178 echo "${ECHO_T}$ac_header_preproc" >&6; }
25179
25180 # So?  What about this header?
25181 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25182   yes:no: )
25183     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25184 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25185     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25186 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25187     ac_header_preproc=yes
25188     ;;
25189   no:yes:* )
25190     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25191 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25192     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25193 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25194     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25195 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25196     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25197 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25198     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25199 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25200     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25201 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25202     ( cat <<\_ASBOX
25203 ## ------------------------------ ##
25204 ## Report this to bug-tar@gnu.org ##
25205 ## ------------------------------ ##
25206 _ASBOX
25207      ) | sed "s/^/$as_me: WARNING:     /" >&2
25208     ;;
25209 esac
25210 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25211 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25212 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25213   echo $ECHO_N "(cached) $ECHO_C" >&6
25214 else
25215   eval "$as_ac_Header=\$ac_header_preproc"
25216 fi
25217 ac_res=`eval echo '${'$as_ac_Header'}'`
25218                { echo "$as_me:$LINENO: result: $ac_res" >&5
25219 echo "${ECHO_T}$ac_res" >&6; }
25220
25221 fi
25222 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25223   cat >>confdefs.h <<_ACEOF
25224 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25225 _ACEOF
25226
25227 fi
25228
25229 done
25230
25231 { echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
25232 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; }
25233 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
25234   echo $ECHO_N "(cached) $ECHO_C" >&6
25235 else
25236   if test "$cross_compiling" = yes; then
25237   ac_cv_func_malloc_0_nonnull=no
25238 else
25239   cat >conftest.$ac_ext <<_ACEOF
25240 /* confdefs.h.  */
25241 _ACEOF
25242 cat confdefs.h >>conftest.$ac_ext
25243 cat >>conftest.$ac_ext <<_ACEOF
25244 /* end confdefs.h.  */
25245 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
25246 # include <stdlib.h>
25247 #else
25248 char *malloc ();
25249 #endif
25250
25251 int
25252 main ()
25253 {
25254 return ! malloc (0);
25255   ;
25256   return 0;
25257 }
25258 _ACEOF
25259 rm -f conftest$ac_exeext
25260 if { (ac_try="$ac_link"
25261 case "(($ac_try" in
25262   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25263   *) ac_try_echo=$ac_try;;
25264 esac
25265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25266   (eval "$ac_link") 2>&5
25267   ac_status=$?
25268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25269   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25270   { (case "(($ac_try" in
25271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25272   *) ac_try_echo=$ac_try;;
25273 esac
25274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25275   (eval "$ac_try") 2>&5
25276   ac_status=$?
25277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25278   (exit $ac_status); }; }; then
25279   ac_cv_func_malloc_0_nonnull=yes
25280 else
25281   echo "$as_me: program exited with status $ac_status" >&5
25282 echo "$as_me: failed program was:" >&5
25283 sed 's/^/| /' conftest.$ac_ext >&5
25284
25285 ( exit $ac_status )
25286 ac_cv_func_malloc_0_nonnull=no
25287 fi
25288 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25289 fi
25290
25291
25292 fi
25293 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
25294 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
25295 if test $ac_cv_func_malloc_0_nonnull = yes; then
25296
25297 cat >>confdefs.h <<\_ACEOF
25298 #define HAVE_MALLOC 1
25299 _ACEOF
25300
25301 else
25302   cat >>confdefs.h <<\_ACEOF
25303 #define HAVE_MALLOC 0
25304 _ACEOF
25305
25306
25307
25308
25309
25310
25311
25312
25313
25314   gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
25315
25316
25317 cat >>confdefs.h <<\_ACEOF
25318 #define malloc rpl_malloc
25319 _ACEOF
25320
25321 fi
25322
25323
25324
25325
25326 cat >>confdefs.h <<\_ACEOF
25327 #define GNULIB_MALLOC_GNU 1
25328 _ACEOF
25329
25330
25331
25332   if test $gl_cv_func_malloc_posix = yes; then
25333     HAVE_MALLOC_POSIX=1
25334
25335 cat >>confdefs.h <<\_ACEOF
25336 #define HAVE_MALLOC_POSIX 1
25337 _ACEOF
25338
25339   else
25340
25341
25342
25343
25344
25345
25346
25347
25348   gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
25349
25350     HAVE_MALLOC_POSIX=0
25351   fi
25352
25353
25354
25355
25356   GNULIB_MALLOC_POSIX=1
25357
25358
25359
25360
25361
25362
25363
25364
25365
25366
25367
25368   :
25369
25370
25371
25372
25373   GNULIB_MBSCASECMP=1
25374
25375
25376
25377
25378   :
25379
25380
25381
25382
25383
25384
25385
25386
25387
25388
25389
25390 for ac_func in memchr
25391 do
25392 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25393 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25394 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25395 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25396   echo $ECHO_N "(cached) $ECHO_C" >&6
25397 else
25398   cat >conftest.$ac_ext <<_ACEOF
25399 /* confdefs.h.  */
25400 _ACEOF
25401 cat confdefs.h >>conftest.$ac_ext
25402 cat >>conftest.$ac_ext <<_ACEOF
25403 /* end confdefs.h.  */
25404 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25405    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25406 #define $ac_func innocuous_$ac_func
25407
25408 /* System header to define __stub macros and hopefully few prototypes,
25409     which can conflict with char $ac_func (); below.
25410     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25411     <limits.h> exists even on freestanding compilers.  */
25412
25413 #ifdef __STDC__
25414 # include <limits.h>
25415 #else
25416 # include <assert.h>
25417 #endif
25418
25419 #undef $ac_func
25420
25421 /* Override any GCC internal prototype to avoid an error.
25422    Use char because int might match the return type of a GCC
25423    builtin and then its argument prototype would still apply.  */
25424 #ifdef __cplusplus
25425 extern "C"
25426 #endif
25427 char $ac_func ();
25428 /* The GNU C library defines this for functions which it implements
25429     to always fail with ENOSYS.  Some functions are actually named
25430     something starting with __ and the normal name is an alias.  */
25431 #if defined __stub_$ac_func || defined __stub___$ac_func
25432 choke me
25433 #endif
25434
25435 int
25436 main ()
25437 {
25438 return $ac_func ();
25439   ;
25440   return 0;
25441 }
25442 _ACEOF
25443 rm -f conftest.$ac_objext conftest$ac_exeext
25444 if { (ac_try="$ac_link"
25445 case "(($ac_try" in
25446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25447   *) ac_try_echo=$ac_try;;
25448 esac
25449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25450   (eval "$ac_link") 2>conftest.er1
25451   ac_status=$?
25452   grep -v '^ *+' conftest.er1 >conftest.err
25453   rm -f conftest.er1
25454   cat conftest.err >&5
25455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25456   (exit $ac_status); } && {
25457          test -z "$ac_c_werror_flag" ||
25458          test ! -s conftest.err
25459        } && test -s conftest$ac_exeext &&
25460        $as_test_x conftest$ac_exeext; then
25461   eval "$as_ac_var=yes"
25462 else
25463   echo "$as_me: failed program was:" >&5
25464 sed 's/^/| /' conftest.$ac_ext >&5
25465
25466         eval "$as_ac_var=no"
25467 fi
25468
25469 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25470       conftest$ac_exeext conftest.$ac_ext
25471 fi
25472 ac_res=`eval echo '${'$as_ac_var'}'`
25473                { echo "$as_me:$LINENO: result: $ac_res" >&5
25474 echo "${ECHO_T}$ac_res" >&6; }
25475 if test `eval echo '${'$as_ac_var'}'` = yes; then
25476   cat >>confdefs.h <<_ACEOF
25477 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25478 _ACEOF
25479
25480 else
25481
25482     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
25483
25484 fi
25485 done
25486
25487
25488   if test $ac_cv_func_memchr = no; then
25489
25490
25491 for ac_header in bp-sym.h
25492 do
25493 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25494 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25495   { echo "$as_me:$LINENO: checking for $ac_header" >&5
25496 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25497 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25498   echo $ECHO_N "(cached) $ECHO_C" >&6
25499 fi
25500 ac_res=`eval echo '${'$as_ac_Header'}'`
25501                { echo "$as_me:$LINENO: result: $ac_res" >&5
25502 echo "${ECHO_T}$ac_res" >&6; }
25503 else
25504   # Is the header compilable?
25505 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
25506 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
25507 cat >conftest.$ac_ext <<_ACEOF
25508 /* confdefs.h.  */
25509 _ACEOF
25510 cat confdefs.h >>conftest.$ac_ext
25511 cat >>conftest.$ac_ext <<_ACEOF
25512 /* end confdefs.h.  */
25513 $ac_includes_default
25514 #include <$ac_header>
25515 _ACEOF
25516 rm -f conftest.$ac_objext
25517 if { (ac_try="$ac_compile"
25518 case "(($ac_try" in
25519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25520   *) ac_try_echo=$ac_try;;
25521 esac
25522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25523   (eval "$ac_compile") 2>conftest.er1
25524   ac_status=$?
25525   grep -v '^ *+' conftest.er1 >conftest.err
25526   rm -f conftest.er1
25527   cat conftest.err >&5
25528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25529   (exit $ac_status); } && {
25530          test -z "$ac_c_werror_flag" ||
25531          test ! -s conftest.err
25532        } && test -s conftest.$ac_objext; then
25533   ac_header_compiler=yes
25534 else
25535   echo "$as_me: failed program was:" >&5
25536 sed 's/^/| /' conftest.$ac_ext >&5
25537
25538         ac_header_compiler=no
25539 fi
25540
25541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25542 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25543 echo "${ECHO_T}$ac_header_compiler" >&6; }
25544
25545 # Is the header present?
25546 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
25547 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
25548 cat >conftest.$ac_ext <<_ACEOF
25549 /* confdefs.h.  */
25550 _ACEOF
25551 cat confdefs.h >>conftest.$ac_ext
25552 cat >>conftest.$ac_ext <<_ACEOF
25553 /* end confdefs.h.  */
25554 #include <$ac_header>
25555 _ACEOF
25556 if { (ac_try="$ac_cpp conftest.$ac_ext"
25557 case "(($ac_try" in
25558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25559   *) ac_try_echo=$ac_try;;
25560 esac
25561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25562   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25563   ac_status=$?
25564   grep -v '^ *+' conftest.er1 >conftest.err
25565   rm -f conftest.er1
25566   cat conftest.err >&5
25567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25568   (exit $ac_status); } >/dev/null && {
25569          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25570          test ! -s conftest.err
25571        }; then
25572   ac_header_preproc=yes
25573 else
25574   echo "$as_me: failed program was:" >&5
25575 sed 's/^/| /' conftest.$ac_ext >&5
25576
25577   ac_header_preproc=no
25578 fi
25579
25580 rm -f conftest.err conftest.$ac_ext
25581 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25582 echo "${ECHO_T}$ac_header_preproc" >&6; }
25583
25584 # So?  What about this header?
25585 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25586   yes:no: )
25587     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25588 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25589     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25590 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25591     ac_header_preproc=yes
25592     ;;
25593   no:yes:* )
25594     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25595 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25596     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25597 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25598     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25599 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25600     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25601 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25602     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25603 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25604     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25605 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25606     ( cat <<\_ASBOX
25607 ## ------------------------------ ##
25608 ## Report this to bug-tar@gnu.org ##
25609 ## ------------------------------ ##
25610 _ASBOX
25611      ) | sed "s/^/$as_me: WARNING:     /" >&2
25612     ;;
25613 esac
25614 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25615 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25616 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25617   echo $ECHO_N "(cached) $ECHO_C" >&6
25618 else
25619   eval "$as_ac_Header=\$ac_header_preproc"
25620 fi
25621 ac_res=`eval echo '${'$as_ac_Header'}'`
25622                { echo "$as_me:$LINENO: result: $ac_res" >&5
25623 echo "${ECHO_T}$ac_res" >&6; }
25624
25625 fi
25626 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25627   cat >>confdefs.h <<_ACEOF
25628 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25629 _ACEOF
25630
25631 fi
25632
25633 done
25634
25635
25636   fi
25637
25638
25639
25640
25641
25642
25643
25644
25645
25646
25647
25648
25649
25650
25651
25652
25653 for ac_func in mempcpy
25654 do
25655 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25656 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25657 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25658 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25659   echo $ECHO_N "(cached) $ECHO_C" >&6
25660 else
25661   cat >conftest.$ac_ext <<_ACEOF
25662 /* confdefs.h.  */
25663 _ACEOF
25664 cat confdefs.h >>conftest.$ac_ext
25665 cat >>conftest.$ac_ext <<_ACEOF
25666 /* end confdefs.h.  */
25667 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25668    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25669 #define $ac_func innocuous_$ac_func
25670
25671 /* System header to define __stub macros and hopefully few prototypes,
25672     which can conflict with char $ac_func (); below.
25673     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25674     <limits.h> exists even on freestanding compilers.  */
25675
25676 #ifdef __STDC__
25677 # include <limits.h>
25678 #else
25679 # include <assert.h>
25680 #endif
25681
25682 #undef $ac_func
25683
25684 /* Override any GCC internal prototype to avoid an error.
25685    Use char because int might match the return type of a GCC
25686    builtin and then its argument prototype would still apply.  */
25687 #ifdef __cplusplus
25688 extern "C"
25689 #endif
25690 char $ac_func ();
25691 /* The GNU C library defines this for functions which it implements
25692     to always fail with ENOSYS.  Some functions are actually named
25693     something starting with __ and the normal name is an alias.  */
25694 #if defined __stub_$ac_func || defined __stub___$ac_func
25695 choke me
25696 #endif
25697
25698 int
25699 main ()
25700 {
25701 return $ac_func ();
25702   ;
25703   return 0;
25704 }
25705 _ACEOF
25706 rm -f conftest.$ac_objext conftest$ac_exeext
25707 if { (ac_try="$ac_link"
25708 case "(($ac_try" in
25709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25710   *) ac_try_echo=$ac_try;;
25711 esac
25712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25713   (eval "$ac_link") 2>conftest.er1
25714   ac_status=$?
25715   grep -v '^ *+' conftest.er1 >conftest.err
25716   rm -f conftest.er1
25717   cat conftest.err >&5
25718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25719   (exit $ac_status); } && {
25720          test -z "$ac_c_werror_flag" ||
25721          test ! -s conftest.err
25722        } && test -s conftest$ac_exeext &&
25723        $as_test_x conftest$ac_exeext; then
25724   eval "$as_ac_var=yes"
25725 else
25726   echo "$as_me: failed program was:" >&5
25727 sed 's/^/| /' conftest.$ac_ext >&5
25728
25729         eval "$as_ac_var=no"
25730 fi
25731
25732 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25733       conftest$ac_exeext conftest.$ac_ext
25734 fi
25735 ac_res=`eval echo '${'$as_ac_var'}'`
25736                { echo "$as_me:$LINENO: result: $ac_res" >&5
25737 echo "${ECHO_T}$ac_res" >&6; }
25738 if test `eval echo '${'$as_ac_var'}'` = yes; then
25739   cat >>confdefs.h <<_ACEOF
25740 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25741 _ACEOF
25742
25743 else
25744
25745     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
25746
25747 fi
25748 done
25749
25750
25751   if test $ac_cv_func_mempcpy = no; then
25752     HAVE_MEMPCPY=0
25753
25754   :
25755
25756   fi
25757
25758
25759
25760   GNULIB_MEMPCPY=1
25761
25762
25763
25764
25765
25766
25767
25768
25769
25770   if test $ac_cv_have_decl_memrchr = no; then
25771     HAVE_DECL_MEMRCHR=0
25772   fi
25773
25774
25775
25776
25777
25778
25779
25780
25781
25782
25783 for ac_func in memrchr
25784 do
25785 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25786 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25787 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25788 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25789   echo $ECHO_N "(cached) $ECHO_C" >&6
25790 else
25791   cat >conftest.$ac_ext <<_ACEOF
25792 /* confdefs.h.  */
25793 _ACEOF
25794 cat confdefs.h >>conftest.$ac_ext
25795 cat >>conftest.$ac_ext <<_ACEOF
25796 /* end confdefs.h.  */
25797 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25798    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25799 #define $ac_func innocuous_$ac_func
25800
25801 /* System header to define __stub macros and hopefully few prototypes,
25802     which can conflict with char $ac_func (); below.
25803     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25804     <limits.h> exists even on freestanding compilers.  */
25805
25806 #ifdef __STDC__
25807 # include <limits.h>
25808 #else
25809 # include <assert.h>
25810 #endif
25811
25812 #undef $ac_func
25813
25814 /* Override any GCC internal prototype to avoid an error.
25815    Use char because int might match the return type of a GCC
25816    builtin and then its argument prototype would still apply.  */
25817 #ifdef __cplusplus
25818 extern "C"
25819 #endif
25820 char $ac_func ();
25821 /* The GNU C library defines this for functions which it implements
25822     to always fail with ENOSYS.  Some functions are actually named
25823     something starting with __ and the normal name is an alias.  */
25824 #if defined __stub_$ac_func || defined __stub___$ac_func
25825 choke me
25826 #endif
25827
25828 int
25829 main ()
25830 {
25831 return $ac_func ();
25832   ;
25833   return 0;
25834 }
25835 _ACEOF
25836 rm -f conftest.$ac_objext conftest$ac_exeext
25837 if { (ac_try="$ac_link"
25838 case "(($ac_try" in
25839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25840   *) ac_try_echo=$ac_try;;
25841 esac
25842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25843   (eval "$ac_link") 2>conftest.er1
25844   ac_status=$?
25845   grep -v '^ *+' conftest.er1 >conftest.err
25846   rm -f conftest.er1
25847   cat conftest.err >&5
25848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25849   (exit $ac_status); } && {
25850          test -z "$ac_c_werror_flag" ||
25851          test ! -s conftest.err
25852        } && test -s conftest$ac_exeext &&
25853        $as_test_x conftest$ac_exeext; then
25854   eval "$as_ac_var=yes"
25855 else
25856   echo "$as_me: failed program was:" >&5
25857 sed 's/^/| /' conftest.$ac_ext >&5
25858
25859         eval "$as_ac_var=no"
25860 fi
25861
25862 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25863       conftest$ac_exeext conftest.$ac_ext
25864 fi
25865 ac_res=`eval echo '${'$as_ac_var'}'`
25866                { echo "$as_me:$LINENO: result: $ac_res" >&5
25867 echo "${ECHO_T}$ac_res" >&6; }
25868 if test `eval echo '${'$as_ac_var'}'` = yes; then
25869   cat >>confdefs.h <<_ACEOF
25870 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25871 _ACEOF
25872
25873 else
25874
25875     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
25876
25877 fi
25878 done
25879
25880
25881   if test $ac_cv_func_memrchr = no; then
25882     :
25883   fi
25884
25885
25886
25887   GNULIB_MEMRCHR=1
25888
25889
25890
25891
25892
25893
25894
25895
25896
25897
25898
25899 for ac_func in memset
25900 do
25901 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25902 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25903 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25904 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25905   echo $ECHO_N "(cached) $ECHO_C" >&6
25906 else
25907   cat >conftest.$ac_ext <<_ACEOF
25908 /* confdefs.h.  */
25909 _ACEOF
25910 cat confdefs.h >>conftest.$ac_ext
25911 cat >>conftest.$ac_ext <<_ACEOF
25912 /* end confdefs.h.  */
25913 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25914    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25915 #define $ac_func innocuous_$ac_func
25916
25917 /* System header to define __stub macros and hopefully few prototypes,
25918     which can conflict with char $ac_func (); below.
25919     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25920     <limits.h> exists even on freestanding compilers.  */
25921
25922 #ifdef __STDC__
25923 # include <limits.h>
25924 #else
25925 # include <assert.h>
25926 #endif
25927
25928 #undef $ac_func
25929
25930 /* Override any GCC internal prototype to avoid an error.
25931    Use char because int might match the return type of a GCC
25932    builtin and then its argument prototype would still apply.  */
25933 #ifdef __cplusplus
25934 extern "C"
25935 #endif
25936 char $ac_func ();
25937 /* The GNU C library defines this for functions which it implements
25938     to always fail with ENOSYS.  Some functions are actually named
25939     something starting with __ and the normal name is an alias.  */
25940 #if defined __stub_$ac_func || defined __stub___$ac_func
25941 choke me
25942 #endif
25943
25944 int
25945 main ()
25946 {
25947 return $ac_func ();
25948   ;
25949   return 0;
25950 }
25951 _ACEOF
25952 rm -f conftest.$ac_objext conftest$ac_exeext
25953 if { (ac_try="$ac_link"
25954 case "(($ac_try" in
25955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25956   *) ac_try_echo=$ac_try;;
25957 esac
25958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25959   (eval "$ac_link") 2>conftest.er1
25960   ac_status=$?
25961   grep -v '^ *+' conftest.er1 >conftest.err
25962   rm -f conftest.er1
25963   cat conftest.err >&5
25964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25965   (exit $ac_status); } && {
25966          test -z "$ac_c_werror_flag" ||
25967          test ! -s conftest.err
25968        } && test -s conftest$ac_exeext &&
25969        $as_test_x conftest$ac_exeext; then
25970   eval "$as_ac_var=yes"
25971 else
25972   echo "$as_me: failed program was:" >&5
25973 sed 's/^/| /' conftest.$ac_ext >&5
25974
25975         eval "$as_ac_var=no"
25976 fi
25977
25978 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25979       conftest$ac_exeext conftest.$ac_ext
25980 fi
25981 ac_res=`eval echo '${'$as_ac_var'}'`
25982                { echo "$as_me:$LINENO: result: $ac_res" >&5
25983 echo "${ECHO_T}$ac_res" >&6; }
25984 if test `eval echo '${'$as_ac_var'}'` = yes; then
25985   cat >>confdefs.h <<_ACEOF
25986 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25987 _ACEOF
25988
25989 else
25990
25991     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
25992
25993 fi
25994 done
25995
25996
25997   if test $ac_cv_func_memset = no; then
25998
25999   :
26000
26001   fi
26002
26003
26004
26005
26006
26007
26008
26009
26010
26011
26012
26013
26014 for ac_func in mkdtemp
26015 do
26016 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26017 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26018 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26019 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26020   echo $ECHO_N "(cached) $ECHO_C" >&6
26021 else
26022   cat >conftest.$ac_ext <<_ACEOF
26023 /* confdefs.h.  */
26024 _ACEOF
26025 cat confdefs.h >>conftest.$ac_ext
26026 cat >>conftest.$ac_ext <<_ACEOF
26027 /* end confdefs.h.  */
26028 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26029    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26030 #define $ac_func innocuous_$ac_func
26031
26032 /* System header to define __stub macros and hopefully few prototypes,
26033     which can conflict with char $ac_func (); below.
26034     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26035     <limits.h> exists even on freestanding compilers.  */
26036
26037 #ifdef __STDC__
26038 # include <limits.h>
26039 #else
26040 # include <assert.h>
26041 #endif
26042
26043 #undef $ac_func
26044
26045 /* Override any GCC internal prototype to avoid an error.
26046    Use char because int might match the return type of a GCC
26047    builtin and then its argument prototype would still apply.  */
26048 #ifdef __cplusplus
26049 extern "C"
26050 #endif
26051 char $ac_func ();
26052 /* The GNU C library defines this for functions which it implements
26053     to always fail with ENOSYS.  Some functions are actually named
26054     something starting with __ and the normal name is an alias.  */
26055 #if defined __stub_$ac_func || defined __stub___$ac_func
26056 choke me
26057 #endif
26058
26059 int
26060 main ()
26061 {
26062 return $ac_func ();
26063   ;
26064   return 0;
26065 }
26066 _ACEOF
26067 rm -f conftest.$ac_objext conftest$ac_exeext
26068 if { (ac_try="$ac_link"
26069 case "(($ac_try" in
26070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26071   *) ac_try_echo=$ac_try;;
26072 esac
26073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26074   (eval "$ac_link") 2>conftest.er1
26075   ac_status=$?
26076   grep -v '^ *+' conftest.er1 >conftest.err
26077   rm -f conftest.er1
26078   cat conftest.err >&5
26079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26080   (exit $ac_status); } && {
26081          test -z "$ac_c_werror_flag" ||
26082          test ! -s conftest.err
26083        } && test -s conftest$ac_exeext &&
26084        $as_test_x conftest$ac_exeext; then
26085   eval "$as_ac_var=yes"
26086 else
26087   echo "$as_me: failed program was:" >&5
26088 sed 's/^/| /' conftest.$ac_ext >&5
26089
26090         eval "$as_ac_var=no"
26091 fi
26092
26093 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26094       conftest$ac_exeext conftest.$ac_ext
26095 fi
26096 ac_res=`eval echo '${'$as_ac_var'}'`
26097                { echo "$as_me:$LINENO: result: $ac_res" >&5
26098 echo "${ECHO_T}$ac_res" >&6; }
26099 if test `eval echo '${'$as_ac_var'}'` = yes; then
26100   cat >>confdefs.h <<_ACEOF
26101 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26102 _ACEOF
26103
26104 else
26105
26106     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
26107
26108 fi
26109 done
26110
26111
26112   if test $ac_cv_func_mkdtemp = no; then
26113     HAVE_MKDTEMP=0
26114     :
26115
26116   fi
26117
26118
26119
26120   GNULIB_MKDTEMP=1
26121
26122
26123
26124
26125
26126
26127
26128
26129
26130
26131
26132
26133
26134
26135 { echo "$as_me:$LINENO: checking for working mktime" >&5
26136 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6; }
26137 if test "${ac_cv_func_working_mktime+set}" = set; then
26138   echo $ECHO_N "(cached) $ECHO_C" >&6
26139 else
26140   if test "$cross_compiling" = yes; then
26141   ac_cv_func_working_mktime=no
26142 else
26143   cat >conftest.$ac_ext <<_ACEOF
26144 /* confdefs.h.  */
26145 _ACEOF
26146 cat confdefs.h >>conftest.$ac_ext
26147 cat >>conftest.$ac_ext <<_ACEOF
26148 /* end confdefs.h.  */
26149 /* Test program from Paul Eggert and Tony Leneis.  */
26150 #include <limits.h>
26151 #include <stdlib.h>
26152 #include <time.h>
26153
26154 #ifdef HAVE_UNISTD_H
26155 # include <unistd.h>
26156 #endif
26157
26158 #ifndef HAVE_ALARM
26159 # define alarm(X) /* empty */
26160 #endif
26161
26162 /* Work around redefinition to rpl_putenv by other config tests.  */
26163 #undef putenv
26164
26165 static time_t time_t_max;
26166 static time_t time_t_min;
26167
26168 /* Values we'll use to set the TZ environment variable.  */
26169 static char *tz_strings[] = {
26170   (char *) 0, "TZ=GMT0", "TZ=JST-9",
26171   "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
26172 };
26173 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
26174
26175 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
26176    Based on a problem report from Andreas Jaeger.  */
26177 static int
26178 spring_forward_gap ()
26179 {
26180   /* glibc (up to about 1998-10-07) failed this test. */
26181   struct tm tm;
26182
26183   /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
26184      instead of "TZ=America/Vancouver" in order to detect the bug even
26185      on systems that don't support the Olson extension, or don't have the
26186      full zoneinfo tables installed.  */
26187   putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
26188
26189   tm.tm_year = 98;
26190   tm.tm_mon = 3;
26191   tm.tm_mday = 5;
26192   tm.tm_hour = 2;
26193   tm.tm_min = 0;
26194   tm.tm_sec = 0;
26195   tm.tm_isdst = -1;
26196   return mktime (&tm) != (time_t) -1;
26197 }
26198
26199 static int
26200 mktime_test1 (now)
26201      time_t now;
26202 {
26203   struct tm *lt;
26204   return ! (lt = localtime (&now)) || mktime (lt) == now;
26205 }
26206
26207 static int
26208 mktime_test (now)
26209      time_t now;
26210 {
26211   return (mktime_test1 (now)
26212           && mktime_test1 ((time_t) (time_t_max - now))
26213           && mktime_test1 ((time_t) (time_t_min + now)));
26214 }
26215
26216 static int
26217 irix_6_4_bug ()
26218 {
26219   /* Based on code from Ariel Faigon.  */
26220   struct tm tm;
26221   tm.tm_year = 96;
26222   tm.tm_mon = 3;
26223   tm.tm_mday = 0;
26224   tm.tm_hour = 0;
26225   tm.tm_min = 0;
26226   tm.tm_sec = 0;
26227   tm.tm_isdst = -1;
26228   mktime (&tm);
26229   return tm.tm_mon == 2 && tm.tm_mday == 31;
26230 }
26231
26232 static int
26233 bigtime_test (j)
26234      int j;
26235 {
26236   struct tm tm;
26237   time_t now;
26238   tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
26239   now = mktime (&tm);
26240   if (now != (time_t) -1)
26241     {
26242       struct tm *lt = localtime (&now);
26243       if (! (lt
26244              && lt->tm_year == tm.tm_year
26245              && lt->tm_mon == tm.tm_mon
26246              && lt->tm_mday == tm.tm_mday
26247              && lt->tm_hour == tm.tm_hour
26248              && lt->tm_min == tm.tm_min
26249              && lt->tm_sec == tm.tm_sec
26250              && lt->tm_yday == tm.tm_yday
26251              && lt->tm_wday == tm.tm_wday
26252              && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
26253                   == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
26254         return 0;
26255     }
26256   return 1;
26257 }
26258
26259 static int
26260 year_2050_test ()
26261 {
26262   /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
26263      ignoring leap seconds.  */
26264   unsigned long int answer = 2527315200UL;
26265
26266   struct tm tm;
26267   time_t t;
26268   tm.tm_year = 2050 - 1900;
26269   tm.tm_mon = 2 - 1;
26270   tm.tm_mday = 1;
26271   tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
26272   tm.tm_isdst = -1;
26273
26274   /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
26275      instead of "TZ=America/Vancouver" in order to detect the bug even
26276      on systems that don't support the Olson extension, or don't have the
26277      full zoneinfo tables installed.  */
26278   putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
26279
26280   t = mktime (&tm);
26281
26282   /* Check that the result is either a failure, or close enough
26283      to the correct answer that we can assume the discrepancy is
26284      due to leap seconds.  */
26285   return (t == (time_t) -1
26286           || (0 < t && answer - 120 <= t && t <= answer + 120));
26287 }
26288
26289 int
26290 main ()
26291 {
26292   time_t t, delta;
26293   int i, j;
26294
26295   /* This test makes some buggy mktime implementations loop.
26296      Give up after 60 seconds; a mktime slower than that
26297      isn't worth using anyway.  */
26298   alarm (60);
26299
26300   for (;;)
26301     {
26302       t = (time_t_max << 1) + 1;
26303       if (t <= time_t_max)
26304         break;
26305       time_t_max = t;
26306     }
26307   time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
26308
26309   delta = time_t_max / 997; /* a suitable prime number */
26310   for (i = 0; i < N_STRINGS; i++)
26311     {
26312       if (tz_strings[i])
26313         putenv (tz_strings[i]);
26314
26315       for (t = 0; t <= time_t_max - delta; t += delta)
26316         if (! mktime_test (t))
26317           return 1;
26318       if (! (mktime_test ((time_t) 1)
26319              && mktime_test ((time_t) (60 * 60))
26320              && mktime_test ((time_t) (60 * 60 * 24))))
26321         return 1;
26322
26323       for (j = 1; ; j <<= 1)
26324         if (! bigtime_test (j))
26325           return 1;
26326         else if (INT_MAX / 2 < j)
26327           break;
26328       if (! bigtime_test (INT_MAX))
26329         return 1;
26330     }
26331   return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
26332 }
26333 _ACEOF
26334 rm -f conftest$ac_exeext
26335 if { (ac_try="$ac_link"
26336 case "(($ac_try" in
26337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26338   *) ac_try_echo=$ac_try;;
26339 esac
26340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26341   (eval "$ac_link") 2>&5
26342   ac_status=$?
26343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26344   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26345   { (case "(($ac_try" in
26346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26347   *) ac_try_echo=$ac_try;;
26348 esac
26349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26350   (eval "$ac_try") 2>&5
26351   ac_status=$?
26352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26353   (exit $ac_status); }; }; then
26354   ac_cv_func_working_mktime=yes
26355 else
26356   echo "$as_me: program exited with status $ac_status" >&5
26357 echo "$as_me: failed program was:" >&5
26358 sed 's/^/| /' conftest.$ac_ext >&5
26359
26360 ( exit $ac_status )
26361 ac_cv_func_working_mktime=no
26362 fi
26363 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26364 fi
26365
26366
26367 fi
26368 { echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
26369 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
26370 if test $ac_cv_func_working_mktime = no; then
26371
26372
26373
26374
26375
26376
26377
26378
26379   gl_LIBOBJS="$gl_LIBOBJS mktime.$ac_objext"
26380
26381 fi
26382
26383     if test $ac_cv_func_working_mktime = no; then
26384
26385 cat >>confdefs.h <<\_ACEOF
26386 #define mktime rpl_mktime
26387 _ACEOF
26388
26389
26390
26391
26392   fi
26393
26394
26395
26396
26397
26398
26399
26400
26401
26402
26403   gl_LIBOBJS="$gl_LIBOBJS modechange.$ac_objext"
26404
26405
26406
26407
26408
26409
26410
26411
26412
26413
26414
26415
26416
26417
26418 { echo "$as_me:$LINENO: checking for obstacks" >&5
26419 echo $ECHO_N "checking for obstacks... $ECHO_C" >&6; }
26420 if test "${ac_cv_func_obstack+set}" = set; then
26421   echo $ECHO_N "(cached) $ECHO_C" >&6
26422 else
26423   cat >conftest.$ac_ext <<_ACEOF
26424 /* confdefs.h.  */
26425 _ACEOF
26426 cat confdefs.h >>conftest.$ac_ext
26427 cat >>conftest.$ac_ext <<_ACEOF
26428 /* end confdefs.h.  */
26429 $ac_includes_default
26430                       #include "obstack.h"
26431 int
26432 main ()
26433 {
26434 struct obstack mem;
26435                        #define obstack_chunk_alloc malloc
26436                        #define obstack_chunk_free free
26437                        obstack_init (&mem);
26438                        obstack_free (&mem, 0);
26439   ;
26440   return 0;
26441 }
26442 _ACEOF
26443 rm -f conftest.$ac_objext conftest$ac_exeext
26444 if { (ac_try="$ac_link"
26445 case "(($ac_try" in
26446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26447   *) ac_try_echo=$ac_try;;
26448 esac
26449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26450   (eval "$ac_link") 2>conftest.er1
26451   ac_status=$?
26452   grep -v '^ *+' conftest.er1 >conftest.err
26453   rm -f conftest.er1
26454   cat conftest.err >&5
26455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26456   (exit $ac_status); } && {
26457          test -z "$ac_c_werror_flag" ||
26458          test ! -s conftest.err
26459        } && test -s conftest$ac_exeext &&
26460        $as_test_x conftest$ac_exeext; then
26461   ac_cv_func_obstack=yes
26462 else
26463   echo "$as_me: failed program was:" >&5
26464 sed 's/^/| /' conftest.$ac_ext >&5
26465
26466         ac_cv_func_obstack=no
26467 fi
26468
26469 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26470       conftest$ac_exeext conftest.$ac_ext
26471 fi
26472 { echo "$as_me:$LINENO: result: $ac_cv_func_obstack" >&5
26473 echo "${ECHO_T}$ac_cv_func_obstack" >&6; }
26474 if test $ac_cv_func_obstack = yes; then
26475
26476 cat >>confdefs.h <<\_ACEOF
26477 #define HAVE_OBSTACK 1
26478 _ACEOF
26479
26480 else
26481
26482
26483
26484
26485
26486
26487
26488
26489   gl_LIBOBJS="$gl_LIBOBJS obstack.$ac_objext"
26490
26491 fi
26492
26493
26494
26495   case "$host_os" in
26496     mingw* | pw*)
26497
26498
26499   if test $REPLACE_OPEN != 1; then
26500
26501
26502
26503
26504
26505
26506
26507
26508   gl_LIBOBJS="$gl_LIBOBJS open.$ac_objext"
26509
26510
26511
26512   :
26513
26514   fi
26515   REPLACE_OPEN=1
26516
26517       ;;
26518     *)
26519                   { echo "$as_me:$LINENO: checking whether open recognizes a trailing slash" >&5
26520 echo $ECHO_N "checking whether open recognizes a trailing slash... $ECHO_C" >&6; }
26521 if test "${gl_cv_func_open_slash+set}" = set; then
26522   echo $ECHO_N "(cached) $ECHO_C" >&6
26523 else
26524
26525           if test "$cross_compiling" = yes; then
26526
26527              case "$host_os" in
26528                solaris2.[0-9]*) gl_cv_func_open_slash="guessing no" ;;
26529                hpux*)           gl_cv_func_open_slash="guessing no" ;;
26530                *)               gl_cv_func_open_slash="guessing yes" ;;
26531              esac
26532
26533 else
26534   cat >conftest.$ac_ext <<_ACEOF
26535 /* confdefs.h.  */
26536 _ACEOF
26537 cat confdefs.h >>conftest.$ac_ext
26538 cat >>conftest.$ac_ext <<_ACEOF
26539 /* end confdefs.h.  */
26540
26541 #include <fcntl.h>
26542 #if HAVE_UNISTD_H
26543 # include <unistd.h>
26544 #endif
26545 int main ()
26546 {
26547   return open ("conftest.sl/", O_CREAT, 0600) >= 0;
26548 }
26549 _ACEOF
26550 rm -f conftest$ac_exeext
26551 if { (ac_try="$ac_link"
26552 case "(($ac_try" in
26553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26554   *) ac_try_echo=$ac_try;;
26555 esac
26556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26557   (eval "$ac_link") 2>&5
26558   ac_status=$?
26559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26560   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26561   { (case "(($ac_try" in
26562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26563   *) ac_try_echo=$ac_try;;
26564 esac
26565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26566   (eval "$ac_try") 2>&5
26567   ac_status=$?
26568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26569   (exit $ac_status); }; }; then
26570   gl_cv_func_open_slash=yes
26571 else
26572   echo "$as_me: program exited with status $ac_status" >&5
26573 echo "$as_me: failed program was:" >&5
26574 sed 's/^/| /' conftest.$ac_ext >&5
26575
26576 ( exit $ac_status )
26577 gl_cv_func_open_slash=no
26578 fi
26579 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26580 fi
26581
26582
26583           rm -f conftest.sl
26584
26585 fi
26586 { echo "$as_me:$LINENO: result: $gl_cv_func_open_slash" >&5
26587 echo "${ECHO_T}$gl_cv_func_open_slash" >&6; }
26588       case "$gl_cv_func_open_slash" in
26589         *no)
26590
26591 cat >>confdefs.h <<\_ACEOF
26592 #define OPEN_TRAILING_SLASH_BUG 1
26593 _ACEOF
26594
26595
26596
26597   if test $REPLACE_OPEN != 1; then
26598
26599
26600
26601
26602
26603
26604
26605
26606   gl_LIBOBJS="$gl_LIBOBJS open.$ac_objext"
26607
26608
26609
26610   :
26611
26612   fi
26613   REPLACE_OPEN=1
26614
26615           ;;
26616       esac
26617       ;;
26618   esac
26619
26620
26621
26622 cat >>confdefs.h <<\_ACEOF
26623 #define GNULIB_OPEN 1
26624 _ACEOF
26625
26626
26627
26628
26629   GNULIB_OPEN=1
26630
26631
26632
26633
26634
26635
26636
26637
26638
26639
26640   gl_LIBOBJS="$gl_LIBOBJS openat-proc.$ac_objext"
26641
26642
26643
26644
26645
26646
26647
26648
26649
26650
26651
26652
26653
26654
26655
26656
26657
26658
26659
26660
26661
26662
26663
26664
26665
26666
26667
26668
26669
26670
26671
26672
26673
26674
26675
26676
26677
26678
26679
26680 for ac_func in fchmodat mkdirat openat
26681 do
26682 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26683 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26684 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26685 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26686   echo $ECHO_N "(cached) $ECHO_C" >&6
26687 else
26688   cat >conftest.$ac_ext <<_ACEOF
26689 /* confdefs.h.  */
26690 _ACEOF
26691 cat confdefs.h >>conftest.$ac_ext
26692 cat >>conftest.$ac_ext <<_ACEOF
26693 /* end confdefs.h.  */
26694 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26695    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26696 #define $ac_func innocuous_$ac_func
26697
26698 /* System header to define __stub macros and hopefully few prototypes,
26699     which can conflict with char $ac_func (); below.
26700     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26701     <limits.h> exists even on freestanding compilers.  */
26702
26703 #ifdef __STDC__
26704 # include <limits.h>
26705 #else
26706 # include <assert.h>
26707 #endif
26708
26709 #undef $ac_func
26710
26711 /* Override any GCC internal prototype to avoid an error.
26712    Use char because int might match the return type of a GCC
26713    builtin and then its argument prototype would still apply.  */
26714 #ifdef __cplusplus
26715 extern "C"
26716 #endif
26717 char $ac_func ();
26718 /* The GNU C library defines this for functions which it implements
26719     to always fail with ENOSYS.  Some functions are actually named
26720     something starting with __ and the normal name is an alias.  */
26721 #if defined __stub_$ac_func || defined __stub___$ac_func
26722 choke me
26723 #endif
26724
26725 int
26726 main ()
26727 {
26728 return $ac_func ();
26729   ;
26730   return 0;
26731 }
26732 _ACEOF
26733 rm -f conftest.$ac_objext conftest$ac_exeext
26734 if { (ac_try="$ac_link"
26735 case "(($ac_try" in
26736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26737   *) ac_try_echo=$ac_try;;
26738 esac
26739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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          test -z "$ac_c_werror_flag" ||
26748          test ! -s conftest.err
26749        } && test -s conftest$ac_exeext &&
26750        $as_test_x conftest$ac_exeext; then
26751   eval "$as_ac_var=yes"
26752 else
26753   echo "$as_me: failed program was:" >&5
26754 sed 's/^/| /' conftest.$ac_ext >&5
26755
26756         eval "$as_ac_var=no"
26757 fi
26758
26759 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26760       conftest$ac_exeext conftest.$ac_ext
26761 fi
26762 ac_res=`eval echo '${'$as_ac_var'}'`
26763                { echo "$as_me:$LINENO: result: $ac_res" >&5
26764 echo "${ECHO_T}$ac_res" >&6; }
26765 if test `eval echo '${'$as_ac_var'}'` = yes; then
26766   cat >>confdefs.h <<_ACEOF
26767 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26768 _ACEOF
26769
26770 else
26771
26772     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
26773
26774 fi
26775 done
26776
26777
26778
26779   case $ac_cv_func_openat+$ac_cv_func_lstat_dereferences_slashed_symlink in
26780   yes+yes) ;;
26781   yes+*)
26782
26783
26784
26785
26786
26787
26788
26789   gl_LIBOBJS="$gl_LIBOBJS fstatat.$ac_objext"
26790 ;;
26791   *)
26792
26793 cat >>confdefs.h <<\_ACEOF
26794 #define __OPENAT_PREFIX rpl_
26795 _ACEOF
26796
26797
26798   :
26799 ;;
26800   esac
26801
26802   # Assume we'll use the replacement function.
26803   # The only case in which we won't is when we have fchownat, and it works.
26804   use_replacement_fchownat=yes
26805
26806   { echo "$as_me:$LINENO: checking for fchownat" >&5
26807 echo $ECHO_N "checking for fchownat... $ECHO_C" >&6; }
26808 if test "${ac_cv_func_fchownat+set}" = set; then
26809   echo $ECHO_N "(cached) $ECHO_C" >&6
26810 else
26811   cat >conftest.$ac_ext <<_ACEOF
26812 /* confdefs.h.  */
26813 _ACEOF
26814 cat confdefs.h >>conftest.$ac_ext
26815 cat >>conftest.$ac_ext <<_ACEOF
26816 /* end confdefs.h.  */
26817 /* Define fchownat to an innocuous variant, in case <limits.h> declares fchownat.
26818    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26819 #define fchownat innocuous_fchownat
26820
26821 /* System header to define __stub macros and hopefully few prototypes,
26822     which can conflict with char fchownat (); below.
26823     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26824     <limits.h> exists even on freestanding compilers.  */
26825
26826 #ifdef __STDC__
26827 # include <limits.h>
26828 #else
26829 # include <assert.h>
26830 #endif
26831
26832 #undef fchownat
26833
26834 /* Override any GCC internal prototype to avoid an error.
26835    Use char because int might match the return type of a GCC
26836    builtin and then its argument prototype would still apply.  */
26837 #ifdef __cplusplus
26838 extern "C"
26839 #endif
26840 char fchownat ();
26841 /* The GNU C library defines this for functions which it implements
26842     to always fail with ENOSYS.  Some functions are actually named
26843     something starting with __ and the normal name is an alias.  */
26844 #if defined __stub_fchownat || defined __stub___fchownat
26845 choke me
26846 #endif
26847
26848 int
26849 main ()
26850 {
26851 return fchownat ();
26852   ;
26853   return 0;
26854 }
26855 _ACEOF
26856 rm -f conftest.$ac_objext conftest$ac_exeext
26857 if { (ac_try="$ac_link"
26858 case "(($ac_try" in
26859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26860   *) ac_try_echo=$ac_try;;
26861 esac
26862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26863   (eval "$ac_link") 2>conftest.er1
26864   ac_status=$?
26865   grep -v '^ *+' conftest.er1 >conftest.err
26866   rm -f conftest.er1
26867   cat conftest.err >&5
26868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26869   (exit $ac_status); } && {
26870          test -z "$ac_c_werror_flag" ||
26871          test ! -s conftest.err
26872        } && test -s conftest$ac_exeext &&
26873        $as_test_x conftest$ac_exeext; then
26874   ac_cv_func_fchownat=yes
26875 else
26876   echo "$as_me: failed program was:" >&5
26877 sed 's/^/| /' conftest.$ac_ext >&5
26878
26879         ac_cv_func_fchownat=no
26880 fi
26881
26882 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26883       conftest$ac_exeext conftest.$ac_ext
26884 fi
26885 { echo "$as_me:$LINENO: result: $ac_cv_func_fchownat" >&5
26886 echo "${ECHO_T}$ac_cv_func_fchownat" >&6; }
26887 if test $ac_cv_func_fchownat = yes; then
26888   have_fchownat=yes
26889 else
26890   have_fchownat=no
26891 fi
26892
26893   if test $have_fchownat = yes; then
26894
26895   { echo "$as_me:$LINENO: checking whether fchownat works with AT_SYMLINK_NOFOLLOW" >&5
26896 echo $ECHO_N "checking whether fchownat works with AT_SYMLINK_NOFOLLOW... $ECHO_C" >&6; }
26897 if test "${gl_cv_func_fchownat_nofollow_works+set}" = set; then
26898   echo $ECHO_N "(cached) $ECHO_C" >&6
26899 else
26900
26901      gl_dangle=conftest.dangle
26902      # Remove any remnants of a previous test.
26903      rm -f $gl_dangle
26904      # Arrange for deletion of the temporary file this test creates.
26905      ac_clean_files="$ac_clean_files $gl_dangle"
26906      ln -s conftest.no-such $gl_dangle
26907      if test "$cross_compiling" = yes; then
26908   gl_cv_func_fchownat_nofollow_works=no
26909 else
26910   cat >conftest.$ac_ext <<_ACEOF
26911 /* confdefs.h.  */
26912 _ACEOF
26913 cat confdefs.h >>conftest.$ac_ext
26914 cat >>conftest.$ac_ext <<_ACEOF
26915 /* end confdefs.h.  */
26916
26917 #include <fcntl.h>
26918 #include <unistd.h>
26919 #include <stdlib.h>
26920 #include <errno.h>
26921 #include <sys/types.h>
26922 int
26923 main ()
26924 {
26925   return (fchownat (AT_FDCWD, "$gl_dangle", -1, getgid (),
26926                     AT_SYMLINK_NOFOLLOW) != 0
26927           && errno == ENOENT);
26928 }
26929
26930 _ACEOF
26931 rm -f conftest$ac_exeext
26932 if { (ac_try="$ac_link"
26933 case "(($ac_try" in
26934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26935   *) ac_try_echo=$ac_try;;
26936 esac
26937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26938   (eval "$ac_link") 2>&5
26939   ac_status=$?
26940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26941   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26942   { (case "(($ac_try" in
26943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26944   *) ac_try_echo=$ac_try;;
26945 esac
26946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26947   (eval "$ac_try") 2>&5
26948   ac_status=$?
26949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26950   (exit $ac_status); }; }; then
26951   gl_cv_func_fchownat_nofollow_works=yes
26952 else
26953   echo "$as_me: program exited with status $ac_status" >&5
26954 echo "$as_me: failed program was:" >&5
26955 sed 's/^/| /' conftest.$ac_ext >&5
26956
26957 ( exit $ac_status )
26958 gl_cv_func_fchownat_nofollow_works=no
26959 fi
26960 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26961 fi
26962
26963
26964
26965 fi
26966 { echo "$as_me:$LINENO: result: $gl_cv_func_fchownat_nofollow_works" >&5
26967 echo "${ECHO_T}$gl_cv_func_fchownat_nofollow_works" >&6; }
26968   if test $gl_cv_func_fchownat_nofollow_works = no; then
26969   :
26970 else
26971   use_replacement_fchownat=no
26972 fi
26973
26974
26975   fi
26976
26977   if test $use_replacement_fchownat = yes; then
26978
26979
26980
26981
26982
26983
26984
26985
26986   gl_LIBOBJS="$gl_LIBOBJS fchownat.$ac_objext"
26987
26988
26989 cat >>confdefs.h <<\_ACEOF
26990 #define fchownat rpl_fchownat
26991 _ACEOF
26992
26993   fi
26994
26995
26996
26997
26998
26999
27000
27001
27002
27003
27004
27005
27006
27007
27008
27009
27010
27011
27012
27013   gl_LIBOBJS="$gl_LIBOBJS quote.$ac_objext"
27014
27015
27016
27017
27018
27019
27020
27021
27022
27023
27024
27025
27026   gl_LIBOBJS="$gl_LIBOBJS quotearg.$ac_objext"
27027
27028
27029
27030
27031
27032
27033
27034
27035   { echo "$as_me:$LINENO: checking for mbstate_t" >&5
27036 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
27037 if test "${ac_cv_type_mbstate_t+set}" = set; then
27038   echo $ECHO_N "(cached) $ECHO_C" >&6
27039 else
27040   cat >conftest.$ac_ext <<_ACEOF
27041 /* confdefs.h.  */
27042 _ACEOF
27043 cat confdefs.h >>conftest.$ac_ext
27044 cat >>conftest.$ac_ext <<_ACEOF
27045 /* end confdefs.h.  */
27046 $ac_includes_default
27047 #           include <wchar.h>
27048 int
27049 main ()
27050 {
27051 mbstate_t x; return sizeof x;
27052   ;
27053   return 0;
27054 }
27055 _ACEOF
27056 rm -f conftest.$ac_objext
27057 if { (ac_try="$ac_compile"
27058 case "(($ac_try" in
27059   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27060   *) ac_try_echo=$ac_try;;
27061 esac
27062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27063   (eval "$ac_compile") 2>conftest.er1
27064   ac_status=$?
27065   grep -v '^ *+' conftest.er1 >conftest.err
27066   rm -f conftest.er1
27067   cat conftest.err >&5
27068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27069   (exit $ac_status); } && {
27070          test -z "$ac_c_werror_flag" ||
27071          test ! -s conftest.err
27072        } && test -s conftest.$ac_objext; then
27073   ac_cv_type_mbstate_t=yes
27074 else
27075   echo "$as_me: failed program was:" >&5
27076 sed 's/^/| /' conftest.$ac_ext >&5
27077
27078         ac_cv_type_mbstate_t=no
27079 fi
27080
27081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27082 fi
27083 { echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
27084 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
27085    if test $ac_cv_type_mbstate_t = yes; then
27086
27087 cat >>confdefs.h <<\_ACEOF
27088 #define HAVE_MBSTATE_T 1
27089 _ACEOF
27090
27091    else
27092
27093 cat >>confdefs.h <<\_ACEOF
27094 #define mbstate_t int
27095 _ACEOF
27096
27097    fi
27098
27099     { echo "$as_me:$LINENO: checking whether mbrtowc and mbstate_t are properly declared" >&5
27100 echo $ECHO_N "checking whether mbrtowc and mbstate_t are properly declared... $ECHO_C" >&6; }
27101 if test "${gl_cv_func_mbrtowc+set}" = set; then
27102   echo $ECHO_N "(cached) $ECHO_C" >&6
27103 else
27104   cat >conftest.$ac_ext <<_ACEOF
27105 /* confdefs.h.  */
27106 _ACEOF
27107 cat confdefs.h >>conftest.$ac_ext
27108 cat >>conftest.$ac_ext <<_ACEOF
27109 /* end confdefs.h.  */
27110 #include <wchar.h>
27111 int
27112 main ()
27113 {
27114 wchar_t wc;
27115               char const s[] = "";
27116               size_t n = 1;
27117               mbstate_t state;
27118               return ! (sizeof state && (mbrtowc) (&wc, s, n, &state));
27119   ;
27120   return 0;
27121 }
27122 _ACEOF
27123 rm -f conftest.$ac_objext conftest$ac_exeext
27124 if { (ac_try="$ac_link"
27125 case "(($ac_try" in
27126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27127   *) ac_try_echo=$ac_try;;
27128 esac
27129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27130   (eval "$ac_link") 2>conftest.er1
27131   ac_status=$?
27132   grep -v '^ *+' conftest.er1 >conftest.err
27133   rm -f conftest.er1
27134   cat conftest.err >&5
27135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27136   (exit $ac_status); } && {
27137          test -z "$ac_c_werror_flag" ||
27138          test ! -s conftest.err
27139        } && test -s conftest$ac_exeext &&
27140        $as_test_x conftest$ac_exeext; then
27141   gl_cv_func_mbrtowc=yes
27142 else
27143   echo "$as_me: failed program was:" >&5
27144 sed 's/^/| /' conftest.$ac_ext >&5
27145
27146         gl_cv_func_mbrtowc=no
27147 fi
27148
27149 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27150       conftest$ac_exeext conftest.$ac_ext
27151 fi
27152 { echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc" >&5
27153 echo "${ECHO_T}$gl_cv_func_mbrtowc" >&6; }
27154   if test $gl_cv_func_mbrtowc = yes; then
27155
27156 cat >>confdefs.h <<\_ACEOF
27157 #define HAVE_MBRTOWC 1
27158 _ACEOF
27159
27160   fi
27161
27162
27163
27164
27165
27166
27167
27168
27169
27170
27171
27172
27173
27174
27175
27176 for ac_func in rawmemchr
27177 do
27178 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27179 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27180 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27181 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27182   echo $ECHO_N "(cached) $ECHO_C" >&6
27183 else
27184   cat >conftest.$ac_ext <<_ACEOF
27185 /* confdefs.h.  */
27186 _ACEOF
27187 cat confdefs.h >>conftest.$ac_ext
27188 cat >>conftest.$ac_ext <<_ACEOF
27189 /* end confdefs.h.  */
27190 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27191    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27192 #define $ac_func innocuous_$ac_func
27193
27194 /* System header to define __stub macros and hopefully few prototypes,
27195     which can conflict with char $ac_func (); below.
27196     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27197     <limits.h> exists even on freestanding compilers.  */
27198
27199 #ifdef __STDC__
27200 # include <limits.h>
27201 #else
27202 # include <assert.h>
27203 #endif
27204
27205 #undef $ac_func
27206
27207 /* Override any GCC internal prototype to avoid an error.
27208    Use char because int might match the return type of a GCC
27209    builtin and then its argument prototype would still apply.  */
27210 #ifdef __cplusplus
27211 extern "C"
27212 #endif
27213 char $ac_func ();
27214 /* The GNU C library defines this for functions which it implements
27215     to always fail with ENOSYS.  Some functions are actually named
27216     something starting with __ and the normal name is an alias.  */
27217 #if defined __stub_$ac_func || defined __stub___$ac_func
27218 choke me
27219 #endif
27220
27221 int
27222 main ()
27223 {
27224 return $ac_func ();
27225   ;
27226   return 0;
27227 }
27228 _ACEOF
27229 rm -f conftest.$ac_objext conftest$ac_exeext
27230 if { (ac_try="$ac_link"
27231 case "(($ac_try" in
27232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27233   *) ac_try_echo=$ac_try;;
27234 esac
27235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27236   (eval "$ac_link") 2>conftest.er1
27237   ac_status=$?
27238   grep -v '^ *+' conftest.er1 >conftest.err
27239   rm -f conftest.er1
27240   cat conftest.err >&5
27241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27242   (exit $ac_status); } && {
27243          test -z "$ac_c_werror_flag" ||
27244          test ! -s conftest.err
27245        } && test -s conftest$ac_exeext &&
27246        $as_test_x conftest$ac_exeext; then
27247   eval "$as_ac_var=yes"
27248 else
27249   echo "$as_me: failed program was:" >&5
27250 sed 's/^/| /' conftest.$ac_ext >&5
27251
27252         eval "$as_ac_var=no"
27253 fi
27254
27255 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27256       conftest$ac_exeext conftest.$ac_ext
27257 fi
27258 ac_res=`eval echo '${'$as_ac_var'}'`
27259                { echo "$as_me:$LINENO: result: $ac_res" >&5
27260 echo "${ECHO_T}$ac_res" >&6; }
27261 if test `eval echo '${'$as_ac_var'}'` = yes; then
27262   cat >>confdefs.h <<_ACEOF
27263 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27264 _ACEOF
27265
27266 else
27267
27268     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
27269
27270 fi
27271 done
27272
27273
27274   if test $ac_cv_func_rawmemchr = no; then
27275     HAVE_RAWMEMCHR=0
27276     :
27277   fi
27278
27279
27280
27281   GNULIB_RAWMEMCHR=1
27282
27283
27284
27285
27286
27287
27288
27289
27290
27291   if test $ac_cv_func_readlink = no; then
27292     HAVE_READLINK=0
27293
27294
27295
27296
27297
27298
27299
27300
27301   gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext"
27302
27303
27304   :
27305
27306   fi
27307
27308
27309
27310   GNULIB_READLINK=1
27311
27312
27313
27314   if test $gl_cv_func_malloc_posix = yes; then
27315     HAVE_REALLOC_POSIX=1
27316
27317 cat >>confdefs.h <<\_ACEOF
27318 #define HAVE_REALLOC_POSIX 1
27319 _ACEOF
27320
27321   else
27322
27323
27324
27325
27326
27327
27328
27329
27330   gl_LIBOBJS="$gl_LIBOBJS realloc.$ac_objext"
27331
27332     HAVE_REALLOC_POSIX=0
27333   fi
27334
27335
27336
27337
27338   GNULIB_REALLOC_POSIX=1
27339
27340
27341
27342
27343
27344
27345
27346
27347
27348
27349 # Check whether --with-included-regex was given.
27350 if test "${with_included_regex+set}" = set; then
27351   withval=$with_included_regex;
27352 fi
27353
27354
27355   case $with_included_regex in #(
27356   yes|no) ac_use_included_regex=$with_included_regex
27357         ;;
27358   '')
27359     # If the system regex support is good enough that it passes the
27360     # following run test, then default to *not* using the included regex.c.
27361     # If cross compiling, assume the test would fail and use the included
27362     # regex.c.
27363     { echo "$as_me:$LINENO: checking for working re_compile_pattern" >&5
27364 echo $ECHO_N "checking for working re_compile_pattern... $ECHO_C" >&6; }
27365 if test "${gl_cv_func_re_compile_pattern_working+set}" = set; then
27366   echo $ECHO_N "(cached) $ECHO_C" >&6
27367 else
27368   if test "$cross_compiling" = yes; then
27369          gl_cv_func_re_compile_pattern_working=no
27370 else
27371   cat >conftest.$ac_ext <<_ACEOF
27372 /* confdefs.h.  */
27373 _ACEOF
27374 cat confdefs.h >>conftest.$ac_ext
27375 cat >>conftest.$ac_ext <<_ACEOF
27376 /* end confdefs.h.  */
27377 $ac_includes_default
27378            #if HAVE_LOCALE_H
27379             #include <locale.h>
27380            #endif
27381            #include <limits.h>
27382            #include <regex.h>
27383
27384 int
27385 main ()
27386 {
27387 static struct re_pattern_buffer regex;
27388             unsigned char folded_chars[UCHAR_MAX + 1];
27389             int i;
27390             const char *s;
27391             struct re_registers regs;
27392
27393             #if HAVE_LOCALE_H
27394               /* http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html
27395                  This test needs valgrind to catch the bug on Debian
27396                  GNU/Linux 3.1 x86, but it might catch the bug better
27397                  on other platforms and it shouldn't hurt to try the
27398                  test here.  */
27399               if (setlocale (LC_ALL, "en_US.UTF-8"))
27400                 {
27401                   static char const pat[] = "insert into";
27402                   static char const data[] =
27403                     "\xFF\0\x12\xA2\xAA\xC4\xB1,K\x12\xC4\xB1*\xACK";
27404                   re_set_syntax (RE_SYNTAX_GREP | RE_HAT_LISTS_NOT_NEWLINE
27405                                  | RE_ICASE);
27406                   memset (&regex, 0, sizeof regex);
27407                   s = re_compile_pattern (pat, sizeof pat - 1, &regex);
27408                   if (s)
27409                     return 1;
27410                   if (re_search (&regex, data, sizeof data - 1,
27411                                  0, sizeof data - 1, &regs)
27412                       != -1)
27413                     return 1;
27414                   if (! setlocale (LC_ALL, "C"))
27415                     return 1;
27416                 }
27417             #endif
27418
27419             /* This test is from glibc bug 3957, reported by Andrew Mackey.  */
27420             re_set_syntax (RE_SYNTAX_EGREP | RE_HAT_LISTS_NOT_NEWLINE);
27421             memset (&regex, 0, sizeof regex);
27422             s = re_compile_pattern ("a[^x]b", 6, &regex);
27423             if (s)
27424               return 1;
27425
27426             /* This should fail, but succeeds for glibc-2.5.  */
27427             if (re_search (&regex, "a\nb", 3, 0, 3, &regs) != -1)
27428               return 1;
27429
27430             /* This regular expression is from Spencer ere test number 75
27431                in grep-2.3.  */
27432             re_set_syntax (RE_SYNTAX_POSIX_EGREP);
27433             memset (&regex, 0, sizeof regex);
27434             for (i = 0; i <= UCHAR_MAX; i++)
27435               folded_chars[i] = i;
27436             regex.translate = folded_chars;
27437             s = re_compile_pattern ("a[[:]:]]b\n", 11, &regex);
27438             /* This should fail with _Invalid character class name_ error.  */
27439             if (!s)
27440               return 1;
27441
27442             /* This should succeed, but does not for glibc-2.1.3.  */
27443             memset (&regex, 0, sizeof regex);
27444             s = re_compile_pattern ("{1", 2, &regex);
27445
27446             if (s)
27447               return 1;
27448
27449             /* The following example is derived from a problem report
27450                against gawk from Jorge Stolfi <stolfi@ic.unicamp.br>.  */
27451             memset (&regex, 0, sizeof regex);
27452             s = re_compile_pattern ("[an\371]*n", 7, &regex);
27453             if (s)
27454               return 1;
27455
27456             /* This should match, but does not for glibc-2.2.1.  */
27457             if (re_match (&regex, "an", 2, 0, &regs) != 2)
27458               return 1;
27459
27460             memset (&regex, 0, sizeof regex);
27461             s = re_compile_pattern ("x", 1, &regex);
27462             if (s)
27463               return 1;
27464
27465             /* glibc-2.2.93 does not work with a negative RANGE argument.  */
27466             if (re_search (&regex, "wxy", 3, 2, -2, &regs) != 1)
27467               return 1;
27468
27469             /* The version of regex.c in older versions of gnulib
27470                ignored RE_ICASE.  Detect that problem too.  */
27471             re_set_syntax (RE_SYNTAX_EMACS | RE_ICASE);
27472             memset (&regex, 0, sizeof regex);
27473             s = re_compile_pattern ("x", 1, &regex);
27474             if (s)
27475               return 1;
27476
27477             if (re_search (&regex, "WXY", 3, 0, 3, &regs) < 0)
27478               return 1;
27479
27480             /* Catch a bug reported by Vin Shelton in
27481                http://lists.gnu.org/archive/html/bug-coreutils/2007-06/msg00089.html
27482                */
27483             re_set_syntax (RE_SYNTAX_POSIX_BASIC
27484                            & ~RE_CONTEXT_INVALID_DUP
27485                            & ~RE_NO_EMPTY_RANGES);
27486             memset (&regex, 0, sizeof regex);
27487             s = re_compile_pattern ("[[:alnum:]_-]\\\\+$", 16, &regex);
27488             if (s)
27489               return 1;
27490
27491             /* REG_STARTEND was added to glibc on 2004-01-15.
27492                Reject older versions.  */
27493             if (! REG_STARTEND)
27494               return 1;
27495
27496             /* Reject hosts whose regoff_t values are too narrow.
27497                These include glibc 2.3.5 on hosts with 64-bit ptrdiff_t
27498                and 32-bit int.  */
27499             if (sizeof (regoff_t) < sizeof (ptrdiff_t)
27500                 || sizeof (regoff_t) < sizeof (ssize_t))
27501               return 1;
27502
27503             return 0;
27504   ;
27505   return 0;
27506 }
27507 _ACEOF
27508 rm -f conftest$ac_exeext
27509 if { (ac_try="$ac_link"
27510 case "(($ac_try" in
27511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27512   *) ac_try_echo=$ac_try;;
27513 esac
27514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27515   (eval "$ac_link") 2>&5
27516   ac_status=$?
27517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27518   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27519   { (case "(($ac_try" in
27520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27521   *) ac_try_echo=$ac_try;;
27522 esac
27523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27524   (eval "$ac_try") 2>&5
27525   ac_status=$?
27526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27527   (exit $ac_status); }; }; then
27528   gl_cv_func_re_compile_pattern_working=yes
27529 else
27530   echo "$as_me: program exited with status $ac_status" >&5
27531 echo "$as_me: failed program was:" >&5
27532 sed 's/^/| /' conftest.$ac_ext >&5
27533
27534 ( exit $ac_status )
27535 gl_cv_func_re_compile_pattern_working=no
27536 fi
27537 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27538 fi
27539
27540
27541 fi
27542 { echo "$as_me:$LINENO: result: $gl_cv_func_re_compile_pattern_working" >&5
27543 echo "${ECHO_T}$gl_cv_func_re_compile_pattern_working" >&6; }
27544     case $gl_cv_func_re_compile_pattern_working in #(
27545     yes) ac_use_included_regex=no;; #(
27546     no) ac_use_included_regex=yes;;
27547     esac
27548     ;;
27549   *) { { echo "$as_me:$LINENO: error: Invalid value for --with-included-regex: $with_included_regex" >&5
27550 echo "$as_me: error: Invalid value for --with-included-regex: $with_included_regex" >&2;}
27551    { (exit 1); exit 1; }; }
27552     ;;
27553   esac
27554
27555   if test $ac_use_included_regex = yes; then
27556
27557 cat >>confdefs.h <<\_ACEOF
27558 #define _REGEX_LARGE_OFFSETS 1
27559 _ACEOF
27560
27561
27562 cat >>confdefs.h <<\_ACEOF
27563 #define re_syntax_options rpl_re_syntax_options
27564 _ACEOF
27565
27566
27567 cat >>confdefs.h <<\_ACEOF
27568 #define re_set_syntax rpl_re_set_syntax
27569 _ACEOF
27570
27571
27572 cat >>confdefs.h <<\_ACEOF
27573 #define re_compile_pattern rpl_re_compile_pattern
27574 _ACEOF
27575
27576
27577 cat >>confdefs.h <<\_ACEOF
27578 #define re_compile_fastmap rpl_re_compile_fastmap
27579 _ACEOF
27580
27581
27582 cat >>confdefs.h <<\_ACEOF
27583 #define re_search rpl_re_search
27584 _ACEOF
27585
27586
27587 cat >>confdefs.h <<\_ACEOF
27588 #define re_search_2 rpl_re_search_2
27589 _ACEOF
27590
27591
27592 cat >>confdefs.h <<\_ACEOF
27593 #define re_match rpl_re_match
27594 _ACEOF
27595
27596
27597 cat >>confdefs.h <<\_ACEOF
27598 #define re_match_2 rpl_re_match_2
27599 _ACEOF
27600
27601
27602 cat >>confdefs.h <<\_ACEOF
27603 #define re_set_registers rpl_re_set_registers
27604 _ACEOF
27605
27606
27607 cat >>confdefs.h <<\_ACEOF
27608 #define re_comp rpl_re_comp
27609 _ACEOF
27610
27611
27612 cat >>confdefs.h <<\_ACEOF
27613 #define re_exec rpl_re_exec
27614 _ACEOF
27615
27616
27617 cat >>confdefs.h <<\_ACEOF
27618 #define regcomp rpl_regcomp
27619 _ACEOF
27620
27621
27622 cat >>confdefs.h <<\_ACEOF
27623 #define regexec rpl_regexec
27624 _ACEOF
27625
27626
27627 cat >>confdefs.h <<\_ACEOF
27628 #define regerror rpl_regerror
27629 _ACEOF
27630
27631
27632 cat >>confdefs.h <<\_ACEOF
27633 #define regfree rpl_regfree
27634 _ACEOF
27635
27636
27637
27638
27639
27640
27641
27642
27643
27644   gl_LIBOBJS="$gl_LIBOBJS regex.$ac_objext"
27645
27646
27647
27648
27649
27650
27651 for ac_header in libintl.h
27652 do
27653 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27654 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27655   { echo "$as_me:$LINENO: checking for $ac_header" >&5
27656 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27657 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27658   echo $ECHO_N "(cached) $ECHO_C" >&6
27659 fi
27660 ac_res=`eval echo '${'$as_ac_Header'}'`
27661                { echo "$as_me:$LINENO: result: $ac_res" >&5
27662 echo "${ECHO_T}$ac_res" >&6; }
27663 else
27664   # Is the header compilable?
27665 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27666 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27667 cat >conftest.$ac_ext <<_ACEOF
27668 /* confdefs.h.  */
27669 _ACEOF
27670 cat confdefs.h >>conftest.$ac_ext
27671 cat >>conftest.$ac_ext <<_ACEOF
27672 /* end confdefs.h.  */
27673 $ac_includes_default
27674 #include <$ac_header>
27675 _ACEOF
27676 rm -f conftest.$ac_objext
27677 if { (ac_try="$ac_compile"
27678 case "(($ac_try" in
27679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27680   *) ac_try_echo=$ac_try;;
27681 esac
27682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27683   (eval "$ac_compile") 2>conftest.er1
27684   ac_status=$?
27685   grep -v '^ *+' conftest.er1 >conftest.err
27686   rm -f conftest.er1
27687   cat conftest.err >&5
27688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27689   (exit $ac_status); } && {
27690          test -z "$ac_c_werror_flag" ||
27691          test ! -s conftest.err
27692        } && test -s conftest.$ac_objext; then
27693   ac_header_compiler=yes
27694 else
27695   echo "$as_me: failed program was:" >&5
27696 sed 's/^/| /' conftest.$ac_ext >&5
27697
27698         ac_header_compiler=no
27699 fi
27700
27701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27702 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27703 echo "${ECHO_T}$ac_header_compiler" >&6; }
27704
27705 # Is the header present?
27706 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27707 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27708 cat >conftest.$ac_ext <<_ACEOF
27709 /* confdefs.h.  */
27710 _ACEOF
27711 cat confdefs.h >>conftest.$ac_ext
27712 cat >>conftest.$ac_ext <<_ACEOF
27713 /* end confdefs.h.  */
27714 #include <$ac_header>
27715 _ACEOF
27716 if { (ac_try="$ac_cpp conftest.$ac_ext"
27717 case "(($ac_try" in
27718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27719   *) ac_try_echo=$ac_try;;
27720 esac
27721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27722   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27723   ac_status=$?
27724   grep -v '^ *+' conftest.er1 >conftest.err
27725   rm -f conftest.er1
27726   cat conftest.err >&5
27727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27728   (exit $ac_status); } >/dev/null && {
27729          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27730          test ! -s conftest.err
27731        }; then
27732   ac_header_preproc=yes
27733 else
27734   echo "$as_me: failed program was:" >&5
27735 sed 's/^/| /' conftest.$ac_ext >&5
27736
27737   ac_header_preproc=no
27738 fi
27739
27740 rm -f conftest.err conftest.$ac_ext
27741 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27742 echo "${ECHO_T}$ac_header_preproc" >&6; }
27743
27744 # So?  What about this header?
27745 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27746   yes:no: )
27747     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27748 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27749     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27750 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27751     ac_header_preproc=yes
27752     ;;
27753   no:yes:* )
27754     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27755 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27756     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27757 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27758     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27759 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27760     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27761 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27762     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27763 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27764     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27765 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27766     ( cat <<\_ASBOX
27767 ## ------------------------------ ##
27768 ## Report this to bug-tar@gnu.org ##
27769 ## ------------------------------ ##
27770 _ASBOX
27771      ) | sed "s/^/$as_me: WARNING:     /" >&2
27772     ;;
27773 esac
27774 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27775 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27776 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27777   echo $ECHO_N "(cached) $ECHO_C" >&6
27778 else
27779   eval "$as_ac_Header=\$ac_header_preproc"
27780 fi
27781 ac_res=`eval echo '${'$as_ac_Header'}'`
27782                { echo "$as_me:$LINENO: result: $ac_res" >&5
27783 echo "${ECHO_T}$ac_res" >&6; }
27784
27785 fi
27786 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27787   cat >>confdefs.h <<_ACEOF
27788 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27789 _ACEOF
27790
27791 fi
27792
27793 done
27794
27795
27796
27797
27798
27799
27800
27801
27802
27803
27804
27805
27806
27807
27808
27809   { echo "$as_me:$LINENO: checking whether isblank is declared" >&5
27810 echo $ECHO_N "checking whether isblank is declared... $ECHO_C" >&6; }
27811 if test "${ac_cv_have_decl_isblank+set}" = set; then
27812   echo $ECHO_N "(cached) $ECHO_C" >&6
27813 else
27814   cat >conftest.$ac_ext <<_ACEOF
27815 /* confdefs.h.  */
27816 _ACEOF
27817 cat confdefs.h >>conftest.$ac_ext
27818 cat >>conftest.$ac_ext <<_ACEOF
27819 /* end confdefs.h.  */
27820 #include <ctype.h>
27821
27822 int
27823 main ()
27824 {
27825 #ifndef isblank
27826   (void) isblank;
27827 #endif
27828
27829   ;
27830   return 0;
27831 }
27832 _ACEOF
27833 rm -f conftest.$ac_objext
27834 if { (ac_try="$ac_compile"
27835 case "(($ac_try" in
27836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27837   *) ac_try_echo=$ac_try;;
27838 esac
27839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27840   (eval "$ac_compile") 2>conftest.er1
27841   ac_status=$?
27842   grep -v '^ *+' conftest.er1 >conftest.err
27843   rm -f conftest.er1
27844   cat conftest.err >&5
27845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27846   (exit $ac_status); } && {
27847          test -z "$ac_c_werror_flag" ||
27848          test ! -s conftest.err
27849        } && test -s conftest.$ac_objext; then
27850   ac_cv_have_decl_isblank=yes
27851 else
27852   echo "$as_me: failed program was:" >&5
27853 sed 's/^/| /' conftest.$ac_ext >&5
27854
27855         ac_cv_have_decl_isblank=no
27856 fi
27857
27858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27859 fi
27860 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isblank" >&5
27861 echo "${ECHO_T}$ac_cv_have_decl_isblank" >&6; }
27862 if test $ac_cv_have_decl_isblank = yes; then
27863
27864 cat >>confdefs.h <<_ACEOF
27865 #define HAVE_DECL_ISBLANK 1
27866 _ACEOF
27867
27868
27869 else
27870   cat >>confdefs.h <<_ACEOF
27871 #define HAVE_DECL_ISBLANK 0
27872 _ACEOF
27873
27874
27875 fi
27876
27877
27878
27879   fi
27880
27881
27882
27883
27884
27885
27886
27887
27888
27889
27890
27891 for ac_func in rmdir
27892 do
27893 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27894 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27895 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27896 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27897   echo $ECHO_N "(cached) $ECHO_C" >&6
27898 else
27899   cat >conftest.$ac_ext <<_ACEOF
27900 /* confdefs.h.  */
27901 _ACEOF
27902 cat confdefs.h >>conftest.$ac_ext
27903 cat >>conftest.$ac_ext <<_ACEOF
27904 /* end confdefs.h.  */
27905 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27906    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27907 #define $ac_func innocuous_$ac_func
27908
27909 /* System header to define __stub macros and hopefully few prototypes,
27910     which can conflict with char $ac_func (); below.
27911     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27912     <limits.h> exists even on freestanding compilers.  */
27913
27914 #ifdef __STDC__
27915 # include <limits.h>
27916 #else
27917 # include <assert.h>
27918 #endif
27919
27920 #undef $ac_func
27921
27922 /* Override any GCC internal prototype to avoid an error.
27923    Use char because int might match the return type of a GCC
27924    builtin and then its argument prototype would still apply.  */
27925 #ifdef __cplusplus
27926 extern "C"
27927 #endif
27928 char $ac_func ();
27929 /* The GNU C library defines this for functions which it implements
27930     to always fail with ENOSYS.  Some functions are actually named
27931     something starting with __ and the normal name is an alias.  */
27932 #if defined __stub_$ac_func || defined __stub___$ac_func
27933 choke me
27934 #endif
27935
27936 int
27937 main ()
27938 {
27939 return $ac_func ();
27940   ;
27941   return 0;
27942 }
27943 _ACEOF
27944 rm -f conftest.$ac_objext conftest$ac_exeext
27945 if { (ac_try="$ac_link"
27946 case "(($ac_try" in
27947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27948   *) ac_try_echo=$ac_try;;
27949 esac
27950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27951   (eval "$ac_link") 2>conftest.er1
27952   ac_status=$?
27953   grep -v '^ *+' conftest.er1 >conftest.err
27954   rm -f conftest.er1
27955   cat conftest.err >&5
27956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27957   (exit $ac_status); } && {
27958          test -z "$ac_c_werror_flag" ||
27959          test ! -s conftest.err
27960        } && test -s conftest$ac_exeext &&
27961        $as_test_x conftest$ac_exeext; then
27962   eval "$as_ac_var=yes"
27963 else
27964   echo "$as_me: failed program was:" >&5
27965 sed 's/^/| /' conftest.$ac_ext >&5
27966
27967         eval "$as_ac_var=no"
27968 fi
27969
27970 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27971       conftest$ac_exeext conftest.$ac_ext
27972 fi
27973 ac_res=`eval echo '${'$as_ac_var'}'`
27974                { echo "$as_me:$LINENO: result: $ac_res" >&5
27975 echo "${ECHO_T}$ac_res" >&6; }
27976 if test `eval echo '${'$as_ac_var'}'` = yes; then
27977   cat >>confdefs.h <<_ACEOF
27978 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27979 _ACEOF
27980
27981 else
27982
27983     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
27984
27985 fi
27986 done
27987
27988
27989
27990
27991
27992
27993
27994
27995
27996
27997
27998
27999
28000
28001
28002
28003 for ac_func in rpmatch
28004 do
28005 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28006 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28007 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28008 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28009   echo $ECHO_N "(cached) $ECHO_C" >&6
28010 else
28011   cat >conftest.$ac_ext <<_ACEOF
28012 /* confdefs.h.  */
28013 _ACEOF
28014 cat confdefs.h >>conftest.$ac_ext
28015 cat >>conftest.$ac_ext <<_ACEOF
28016 /* end confdefs.h.  */
28017 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28018    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28019 #define $ac_func innocuous_$ac_func
28020
28021 /* System header to define __stub macros and hopefully few prototypes,
28022     which can conflict with char $ac_func (); below.
28023     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28024     <limits.h> exists even on freestanding compilers.  */
28025
28026 #ifdef __STDC__
28027 # include <limits.h>
28028 #else
28029 # include <assert.h>
28030 #endif
28031
28032 #undef $ac_func
28033
28034 /* Override any GCC internal prototype to avoid an error.
28035    Use char because int might match the return type of a GCC
28036    builtin and then its argument prototype would still apply.  */
28037 #ifdef __cplusplus
28038 extern "C"
28039 #endif
28040 char $ac_func ();
28041 /* The GNU C library defines this for functions which it implements
28042     to always fail with ENOSYS.  Some functions are actually named
28043     something starting with __ and the normal name is an alias.  */
28044 #if defined __stub_$ac_func || defined __stub___$ac_func
28045 choke me
28046 #endif
28047
28048 int
28049 main ()
28050 {
28051 return $ac_func ();
28052   ;
28053   return 0;
28054 }
28055 _ACEOF
28056 rm -f conftest.$ac_objext conftest$ac_exeext
28057 if { (ac_try="$ac_link"
28058 case "(($ac_try" in
28059   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28060   *) ac_try_echo=$ac_try;;
28061 esac
28062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28063   (eval "$ac_link") 2>conftest.er1
28064   ac_status=$?
28065   grep -v '^ *+' conftest.er1 >conftest.err
28066   rm -f conftest.er1
28067   cat conftest.err >&5
28068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28069   (exit $ac_status); } && {
28070          test -z "$ac_c_werror_flag" ||
28071          test ! -s conftest.err
28072        } && test -s conftest$ac_exeext &&
28073        $as_test_x conftest$ac_exeext; then
28074   eval "$as_ac_var=yes"
28075 else
28076   echo "$as_me: failed program was:" >&5
28077 sed 's/^/| /' conftest.$ac_ext >&5
28078
28079         eval "$as_ac_var=no"
28080 fi
28081
28082 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28083       conftest$ac_exeext conftest.$ac_ext
28084 fi
28085 ac_res=`eval echo '${'$as_ac_var'}'`
28086                { echo "$as_me:$LINENO: result: $ac_res" >&5
28087 echo "${ECHO_T}$ac_res" >&6; }
28088 if test `eval echo '${'$as_ac_var'}'` = yes; then
28089   cat >>confdefs.h <<_ACEOF
28090 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28091 _ACEOF
28092
28093 else
28094
28095     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
28096
28097 fi
28098 done
28099
28100
28101   if test $ac_cv_func_rpmatch = no; then
28102     HAVE_RPMATCH=0
28103
28104   { echo "$as_me:$LINENO: checking for nl_langinfo and YESEXPR" >&5
28105 echo $ECHO_N "checking for nl_langinfo and YESEXPR... $ECHO_C" >&6; }
28106 if test "${gl_cv_langinfo_yesexpr+set}" = set; then
28107   echo $ECHO_N "(cached) $ECHO_C" >&6
28108 else
28109   cat >conftest.$ac_ext <<_ACEOF
28110 /* confdefs.h.  */
28111 _ACEOF
28112 cat confdefs.h >>conftest.$ac_ext
28113 cat >>conftest.$ac_ext <<_ACEOF
28114 /* end confdefs.h.  */
28115 #include <langinfo.h>
28116 int
28117 main ()
28118 {
28119 char* cs = nl_langinfo(YESEXPR); return !cs;
28120   ;
28121   return 0;
28122 }
28123 _ACEOF
28124 rm -f conftest.$ac_objext conftest$ac_exeext
28125 if { (ac_try="$ac_link"
28126 case "(($ac_try" in
28127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28128   *) ac_try_echo=$ac_try;;
28129 esac
28130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28131   (eval "$ac_link") 2>conftest.er1
28132   ac_status=$?
28133   grep -v '^ *+' conftest.er1 >conftest.err
28134   rm -f conftest.er1
28135   cat conftest.err >&5
28136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28137   (exit $ac_status); } && {
28138          test -z "$ac_c_werror_flag" ||
28139          test ! -s conftest.err
28140        } && test -s conftest$ac_exeext &&
28141        $as_test_x conftest$ac_exeext; then
28142   gl_cv_langinfo_yesexpr=yes
28143 else
28144   echo "$as_me: failed program was:" >&5
28145 sed 's/^/| /' conftest.$ac_ext >&5
28146
28147         gl_cv_langinfo_yesexpr=no
28148 fi
28149
28150 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28151       conftest$ac_exeext conftest.$ac_ext
28152
28153 fi
28154 { echo "$as_me:$LINENO: result: $gl_cv_langinfo_yesexpr" >&5
28155 echo "${ECHO_T}$gl_cv_langinfo_yesexpr" >&6; }
28156   if test $gl_cv_langinfo_yesexpr = yes; then
28157
28158 cat >>confdefs.h <<\_ACEOF
28159 #define HAVE_LANGINFO_YESEXPR 1
28160 _ACEOF
28161
28162   fi
28163
28164   fi
28165
28166
28167
28168   GNULIB_RPMATCH=1
28169
28170
28171
28172
28173
28174
28175
28176
28177
28178
28179   gl_LIBOBJS="$gl_LIBOBJS safe-read.$ac_objext"
28180
28181
28182
28183
28184
28185
28186
28187
28188
28189
28190
28191
28192
28193
28194
28195   gl_LIBOBJS="$gl_LIBOBJS safe-write.$ac_objext"
28196
28197
28198
28199
28200
28201
28202
28203
28204
28205
28206
28207
28208
28209
28210
28211
28212
28213   gl_LIBOBJS="$gl_LIBOBJS save-cwd.$ac_objext"
28214
28215
28216
28217
28218
28219
28220
28221
28222
28223
28224
28225
28226
28227
28228
28229
28230
28231   gl_LIBOBJS="$gl_LIBOBJS savedir.$ac_objext"
28232
28233
28234
28235
28236
28237
28238
28239
28240
28241
28242   if test $ac_cv_func_setenv = no; then
28243     HAVE_SETENV=0
28244
28245
28246
28247
28248
28249
28250
28251
28252   gl_LIBOBJS="$gl_LIBOBJS setenv.$ac_objext"
28253
28254
28255
28256
28257
28258
28259
28260
28261
28262
28263
28264 for ac_header in search.h
28265 do
28266 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28267 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28268   { echo "$as_me:$LINENO: checking for $ac_header" >&5
28269 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28270 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28271   echo $ECHO_N "(cached) $ECHO_C" >&6
28272 fi
28273 ac_res=`eval echo '${'$as_ac_Header'}'`
28274                { echo "$as_me:$LINENO: result: $ac_res" >&5
28275 echo "${ECHO_T}$ac_res" >&6; }
28276 else
28277   # Is the header compilable?
28278 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28279 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28280 cat >conftest.$ac_ext <<_ACEOF
28281 /* confdefs.h.  */
28282 _ACEOF
28283 cat confdefs.h >>conftest.$ac_ext
28284 cat >>conftest.$ac_ext <<_ACEOF
28285 /* end confdefs.h.  */
28286 $ac_includes_default
28287 #include <$ac_header>
28288 _ACEOF
28289 rm -f conftest.$ac_objext
28290 if { (ac_try="$ac_compile"
28291 case "(($ac_try" in
28292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28293   *) ac_try_echo=$ac_try;;
28294 esac
28295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28296   (eval "$ac_compile") 2>conftest.er1
28297   ac_status=$?
28298   grep -v '^ *+' conftest.er1 >conftest.err
28299   rm -f conftest.er1
28300   cat conftest.err >&5
28301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28302   (exit $ac_status); } && {
28303          test -z "$ac_c_werror_flag" ||
28304          test ! -s conftest.err
28305        } && test -s conftest.$ac_objext; then
28306   ac_header_compiler=yes
28307 else
28308   echo "$as_me: failed program was:" >&5
28309 sed 's/^/| /' conftest.$ac_ext >&5
28310
28311         ac_header_compiler=no
28312 fi
28313
28314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28315 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28316 echo "${ECHO_T}$ac_header_compiler" >&6; }
28317
28318 # Is the header present?
28319 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28320 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28321 cat >conftest.$ac_ext <<_ACEOF
28322 /* confdefs.h.  */
28323 _ACEOF
28324 cat confdefs.h >>conftest.$ac_ext
28325 cat >>conftest.$ac_ext <<_ACEOF
28326 /* end confdefs.h.  */
28327 #include <$ac_header>
28328 _ACEOF
28329 if { (ac_try="$ac_cpp conftest.$ac_ext"
28330 case "(($ac_try" in
28331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28332   *) ac_try_echo=$ac_try;;
28333 esac
28334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28335   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28336   ac_status=$?
28337   grep -v '^ *+' conftest.er1 >conftest.err
28338   rm -f conftest.er1
28339   cat conftest.err >&5
28340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28341   (exit $ac_status); } >/dev/null && {
28342          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28343          test ! -s conftest.err
28344        }; then
28345   ac_header_preproc=yes
28346 else
28347   echo "$as_me: failed program was:" >&5
28348 sed 's/^/| /' conftest.$ac_ext >&5
28349
28350   ac_header_preproc=no
28351 fi
28352
28353 rm -f conftest.err conftest.$ac_ext
28354 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28355 echo "${ECHO_T}$ac_header_preproc" >&6; }
28356
28357 # So?  What about this header?
28358 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28359   yes:no: )
28360     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28361 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28362     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28363 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28364     ac_header_preproc=yes
28365     ;;
28366   no:yes:* )
28367     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28368 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28369     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28370 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28371     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28372 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28373     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28374 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28375     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28376 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28377     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28378 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28379     ( cat <<\_ASBOX
28380 ## ------------------------------ ##
28381 ## Report this to bug-tar@gnu.org ##
28382 ## ------------------------------ ##
28383 _ASBOX
28384      ) | sed "s/^/$as_me: WARNING:     /" >&2
28385     ;;
28386 esac
28387 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28388 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28389 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28390   echo $ECHO_N "(cached) $ECHO_C" >&6
28391 else
28392   eval "$as_ac_Header=\$ac_header_preproc"
28393 fi
28394 ac_res=`eval echo '${'$as_ac_Header'}'`
28395                { echo "$as_me:$LINENO: result: $ac_res" >&5
28396 echo "${ECHO_T}$ac_res" >&6; }
28397
28398 fi
28399 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28400   cat >>confdefs.h <<_ACEOF
28401 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28402 _ACEOF
28403
28404 fi
28405
28406 done
28407
28408
28409 for ac_func in tsearch
28410 do
28411 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28412 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28413 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28414 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28415   echo $ECHO_N "(cached) $ECHO_C" >&6
28416 else
28417   cat >conftest.$ac_ext <<_ACEOF
28418 /* confdefs.h.  */
28419 _ACEOF
28420 cat confdefs.h >>conftest.$ac_ext
28421 cat >>conftest.$ac_ext <<_ACEOF
28422 /* end confdefs.h.  */
28423 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28424    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28425 #define $ac_func innocuous_$ac_func
28426
28427 /* System header to define __stub macros and hopefully few prototypes,
28428     which can conflict with char $ac_func (); below.
28429     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28430     <limits.h> exists even on freestanding compilers.  */
28431
28432 #ifdef __STDC__
28433 # include <limits.h>
28434 #else
28435 # include <assert.h>
28436 #endif
28437
28438 #undef $ac_func
28439
28440 /* Override any GCC internal prototype to avoid an error.
28441    Use char because int might match the return type of a GCC
28442    builtin and then its argument prototype would still apply.  */
28443 #ifdef __cplusplus
28444 extern "C"
28445 #endif
28446 char $ac_func ();
28447 /* The GNU C library defines this for functions which it implements
28448     to always fail with ENOSYS.  Some functions are actually named
28449     something starting with __ and the normal name is an alias.  */
28450 #if defined __stub_$ac_func || defined __stub___$ac_func
28451 choke me
28452 #endif
28453
28454 int
28455 main ()
28456 {
28457 return $ac_func ();
28458   ;
28459   return 0;
28460 }
28461 _ACEOF
28462 rm -f conftest.$ac_objext conftest$ac_exeext
28463 if { (ac_try="$ac_link"
28464 case "(($ac_try" in
28465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28466   *) ac_try_echo=$ac_try;;
28467 esac
28468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28469   (eval "$ac_link") 2>conftest.er1
28470   ac_status=$?
28471   grep -v '^ *+' conftest.er1 >conftest.err
28472   rm -f conftest.er1
28473   cat conftest.err >&5
28474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28475   (exit $ac_status); } && {
28476          test -z "$ac_c_werror_flag" ||
28477          test ! -s conftest.err
28478        } && test -s conftest$ac_exeext &&
28479        $as_test_x conftest$ac_exeext; then
28480   eval "$as_ac_var=yes"
28481 else
28482   echo "$as_me: failed program was:" >&5
28483 sed 's/^/| /' conftest.$ac_ext >&5
28484
28485         eval "$as_ac_var=no"
28486 fi
28487
28488 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28489       conftest$ac_exeext conftest.$ac_ext
28490 fi
28491 ac_res=`eval echo '${'$as_ac_var'}'`
28492                { echo "$as_me:$LINENO: result: $ac_res" >&5
28493 echo "${ECHO_T}$ac_res" >&6; }
28494 if test `eval echo '${'$as_ac_var'}'` = yes; then
28495   cat >>confdefs.h <<_ACEOF
28496 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28497 _ACEOF
28498
28499 fi
28500 done
28501
28502
28503   fi
28504
28505
28506
28507   GNULIB_SETENV=1
28508
28509
28510
28511             { echo "$as_me:$LINENO: checking whether sleep is declared" >&5
28512 echo $ECHO_N "checking whether sleep is declared... $ECHO_C" >&6; }
28513 if test "${ac_cv_have_decl_sleep+set}" = set; then
28514   echo $ECHO_N "(cached) $ECHO_C" >&6
28515 else
28516   cat >conftest.$ac_ext <<_ACEOF
28517 /* confdefs.h.  */
28518 _ACEOF
28519 cat confdefs.h >>conftest.$ac_ext
28520 cat >>conftest.$ac_ext <<_ACEOF
28521 /* end confdefs.h.  */
28522 #include <unistd.h>
28523
28524 int
28525 main ()
28526 {
28527 #ifndef sleep
28528   (void) sleep;
28529 #endif
28530
28531   ;
28532   return 0;
28533 }
28534 _ACEOF
28535 rm -f conftest.$ac_objext
28536 if { (ac_try="$ac_compile"
28537 case "(($ac_try" in
28538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28539   *) ac_try_echo=$ac_try;;
28540 esac
28541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28542   (eval "$ac_compile") 2>conftest.er1
28543   ac_status=$?
28544   grep -v '^ *+' conftest.er1 >conftest.err
28545   rm -f conftest.er1
28546   cat conftest.err >&5
28547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28548   (exit $ac_status); } && {
28549          test -z "$ac_c_werror_flag" ||
28550          test ! -s conftest.err
28551        } && test -s conftest.$ac_objext; then
28552   ac_cv_have_decl_sleep=yes
28553 else
28554   echo "$as_me: failed program was:" >&5
28555 sed 's/^/| /' conftest.$ac_ext >&5
28556
28557         ac_cv_have_decl_sleep=no
28558 fi
28559
28560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28561 fi
28562 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sleep" >&5
28563 echo "${ECHO_T}$ac_cv_have_decl_sleep" >&6; }
28564 if test $ac_cv_have_decl_sleep = yes; then
28565
28566 cat >>confdefs.h <<_ACEOF
28567 #define HAVE_DECL_SLEEP 1
28568 _ACEOF
28569
28570
28571 else
28572   cat >>confdefs.h <<_ACEOF
28573 #define HAVE_DECL_SLEEP 0
28574 _ACEOF
28575
28576
28577 fi
28578
28579
28580   if test $ac_cv_have_decl_sleep != yes; then
28581     HAVE_SLEEP=0
28582
28583
28584
28585
28586
28587
28588
28589
28590   gl_LIBOBJS="$gl_LIBOBJS sleep.$ac_objext"
28591
28592     :
28593   fi
28594
28595
28596
28597   GNULIB_SLEEP=1
28598
28599
28600
28601   gl_cv_func_snprintf_usable=no
28602
28603 for ac_func in snprintf
28604 do
28605 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28606 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28607 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28608 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28609   echo $ECHO_N "(cached) $ECHO_C" >&6
28610 else
28611   cat >conftest.$ac_ext <<_ACEOF
28612 /* confdefs.h.  */
28613 _ACEOF
28614 cat confdefs.h >>conftest.$ac_ext
28615 cat >>conftest.$ac_ext <<_ACEOF
28616 /* end confdefs.h.  */
28617 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28618    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28619 #define $ac_func innocuous_$ac_func
28620
28621 /* System header to define __stub macros and hopefully few prototypes,
28622     which can conflict with char $ac_func (); below.
28623     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28624     <limits.h> exists even on freestanding compilers.  */
28625
28626 #ifdef __STDC__
28627 # include <limits.h>
28628 #else
28629 # include <assert.h>
28630 #endif
28631
28632 #undef $ac_func
28633
28634 /* Override any GCC internal prototype to avoid an error.
28635    Use char because int might match the return type of a GCC
28636    builtin and then its argument prototype would still apply.  */
28637 #ifdef __cplusplus
28638 extern "C"
28639 #endif
28640 char $ac_func ();
28641 /* The GNU C library defines this for functions which it implements
28642     to always fail with ENOSYS.  Some functions are actually named
28643     something starting with __ and the normal name is an alias.  */
28644 #if defined __stub_$ac_func || defined __stub___$ac_func
28645 choke me
28646 #endif
28647
28648 int
28649 main ()
28650 {
28651 return $ac_func ();
28652   ;
28653   return 0;
28654 }
28655 _ACEOF
28656 rm -f conftest.$ac_objext conftest$ac_exeext
28657 if { (ac_try="$ac_link"
28658 case "(($ac_try" in
28659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28660   *) ac_try_echo=$ac_try;;
28661 esac
28662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28663   (eval "$ac_link") 2>conftest.er1
28664   ac_status=$?
28665   grep -v '^ *+' conftest.er1 >conftest.err
28666   rm -f conftest.er1
28667   cat conftest.err >&5
28668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28669   (exit $ac_status); } && {
28670          test -z "$ac_c_werror_flag" ||
28671          test ! -s conftest.err
28672        } && test -s conftest$ac_exeext &&
28673        $as_test_x conftest$ac_exeext; then
28674   eval "$as_ac_var=yes"
28675 else
28676   echo "$as_me: failed program was:" >&5
28677 sed 's/^/| /' conftest.$ac_ext >&5
28678
28679         eval "$as_ac_var=no"
28680 fi
28681
28682 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28683       conftest$ac_exeext conftest.$ac_ext
28684 fi
28685 ac_res=`eval echo '${'$as_ac_var'}'`
28686                { echo "$as_me:$LINENO: result: $ac_res" >&5
28687 echo "${ECHO_T}$ac_res" >&6; }
28688 if test `eval echo '${'$as_ac_var'}'` = yes; then
28689   cat >>confdefs.h <<_ACEOF
28690 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28691 _ACEOF
28692
28693 fi
28694 done
28695
28696   if test $ac_cv_func_snprintf = yes; then
28697
28698
28699   { echo "$as_me:$LINENO: checking whether snprintf respects a size of 1" >&5
28700 echo $ECHO_N "checking whether snprintf respects a size of 1... $ECHO_C" >&6; }
28701 if test "${gl_cv_func_snprintf_size1+set}" = set; then
28702   echo $ECHO_N "(cached) $ECHO_C" >&6
28703 else
28704
28705       if test "$cross_compiling" = yes; then
28706   gl_cv_func_snprintf_size1="guessing yes"
28707 else
28708   cat >conftest.$ac_ext <<_ACEOF
28709 /* confdefs.h.  */
28710 _ACEOF
28711 cat confdefs.h >>conftest.$ac_ext
28712 cat >>conftest.$ac_ext <<_ACEOF
28713 /* end confdefs.h.  */
28714
28715 #include <stdio.h>
28716 int main()
28717 {
28718   static char buf[8] = "DEADBEEF";
28719   snprintf (buf, 1, "%d", 12345);
28720   return buf[1] != 'E';
28721 }
28722 _ACEOF
28723 rm -f conftest$ac_exeext
28724 if { (ac_try="$ac_link"
28725 case "(($ac_try" in
28726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28727   *) ac_try_echo=$ac_try;;
28728 esac
28729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28730   (eval "$ac_link") 2>&5
28731   ac_status=$?
28732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28733   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28734   { (case "(($ac_try" in
28735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28736   *) ac_try_echo=$ac_try;;
28737 esac
28738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28739   (eval "$ac_try") 2>&5
28740   ac_status=$?
28741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28742   (exit $ac_status); }; }; then
28743   gl_cv_func_snprintf_size1=yes
28744 else
28745   echo "$as_me: program exited with status $ac_status" >&5
28746 echo "$as_me: failed program was:" >&5
28747 sed 's/^/| /' conftest.$ac_ext >&5
28748
28749 ( exit $ac_status )
28750 gl_cv_func_snprintf_size1=no
28751 fi
28752 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28753 fi
28754
28755
28756
28757 fi
28758 { echo "$as_me:$LINENO: result: $gl_cv_func_snprintf_size1" >&5
28759 echo "${ECHO_T}$gl_cv_func_snprintf_size1" >&6; }
28760
28761     case "$gl_cv_func_snprintf_size1" in
28762       *yes)
28763         gl_cv_func_snprintf_usable=yes
28764         ;;
28765     esac
28766   fi
28767   if test $gl_cv_func_snprintf_usable = no; then
28768
28769
28770
28771
28772
28773
28774
28775
28776
28777
28778   gl_LIBOBJS="$gl_LIBOBJS snprintf.$ac_objext"
28779
28780   if test $ac_cv_func_snprintf = yes; then
28781     REPLACE_SNPRINTF=1
28782   fi
28783   :
28784
28785   fi
28786
28787
28788
28789
28790   if test $ac_cv_have_decl_snprintf = no; then
28791     HAVE_DECL_SNPRINTF=0
28792   fi
28793
28794
28795
28796   GNULIB_SNPRINTF=1
28797
28798
28799   { echo "$as_me:$LINENO: checking for ssize_t" >&5
28800 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
28801 if test "${gt_cv_ssize_t+set}" = set; then
28802   echo $ECHO_N "(cached) $ECHO_C" >&6
28803 else
28804   cat >conftest.$ac_ext <<_ACEOF
28805 /* confdefs.h.  */
28806 _ACEOF
28807 cat confdefs.h >>conftest.$ac_ext
28808 cat >>conftest.$ac_ext <<_ACEOF
28809 /* end confdefs.h.  */
28810 #include <sys/types.h>
28811 int
28812 main ()
28813 {
28814 int x = sizeof (ssize_t *) + sizeof (ssize_t);
28815         return !x;
28816   ;
28817   return 0;
28818 }
28819 _ACEOF
28820 rm -f conftest.$ac_objext
28821 if { (ac_try="$ac_compile"
28822 case "(($ac_try" in
28823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28824   *) ac_try_echo=$ac_try;;
28825 esac
28826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28827   (eval "$ac_compile") 2>conftest.er1
28828   ac_status=$?
28829   grep -v '^ *+' conftest.er1 >conftest.err
28830   rm -f conftest.er1
28831   cat conftest.err >&5
28832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28833   (exit $ac_status); } && {
28834          test -z "$ac_c_werror_flag" ||
28835          test ! -s conftest.err
28836        } && test -s conftest.$ac_objext; then
28837   gt_cv_ssize_t=yes
28838 else
28839   echo "$as_me: failed program was:" >&5
28840 sed 's/^/| /' conftest.$ac_ext >&5
28841
28842         gt_cv_ssize_t=no
28843 fi
28844
28845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28846 fi
28847 { echo "$as_me:$LINENO: result: $gt_cv_ssize_t" >&5
28848 echo "${ECHO_T}$gt_cv_ssize_t" >&6; }
28849   if test $gt_cv_ssize_t = no; then
28850
28851 cat >>confdefs.h <<\_ACEOF
28852 #define ssize_t int
28853 _ACEOF
28854
28855   fi
28856
28857
28858
28859
28860
28861
28862
28863
28864
28865
28866
28867   { echo "$as_me:$LINENO: checking for struct stat.st_atim.tv_nsec" >&5
28868 echo $ECHO_N "checking for struct stat.st_atim.tv_nsec... $ECHO_C" >&6; }
28869 if test "${ac_cv_member_struct_stat_st_atim_tv_nsec+set}" = set; then
28870   echo $ECHO_N "(cached) $ECHO_C" >&6
28871 else
28872   cat >conftest.$ac_ext <<_ACEOF
28873 /* confdefs.h.  */
28874 _ACEOF
28875 cat confdefs.h >>conftest.$ac_ext
28876 cat >>conftest.$ac_ext <<_ACEOF
28877 /* end confdefs.h.  */
28878 #include <sys/types.h>
28879      #include <sys/stat.h>
28880
28881 int
28882 main ()
28883 {
28884 static struct stat ac_aggr;
28885 if (ac_aggr.st_atim.tv_nsec)
28886 return 0;
28887   ;
28888   return 0;
28889 }
28890 _ACEOF
28891 rm -f conftest.$ac_objext
28892 if { (ac_try="$ac_compile"
28893 case "(($ac_try" in
28894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28895   *) ac_try_echo=$ac_try;;
28896 esac
28897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28898   (eval "$ac_compile") 2>conftest.er1
28899   ac_status=$?
28900   grep -v '^ *+' conftest.er1 >conftest.err
28901   rm -f conftest.er1
28902   cat conftest.err >&5
28903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28904   (exit $ac_status); } && {
28905          test -z "$ac_c_werror_flag" ||
28906          test ! -s conftest.err
28907        } && test -s conftest.$ac_objext; then
28908   ac_cv_member_struct_stat_st_atim_tv_nsec=yes
28909 else
28910   echo "$as_me: failed program was:" >&5
28911 sed 's/^/| /' conftest.$ac_ext >&5
28912
28913         cat >conftest.$ac_ext <<_ACEOF
28914 /* confdefs.h.  */
28915 _ACEOF
28916 cat confdefs.h >>conftest.$ac_ext
28917 cat >>conftest.$ac_ext <<_ACEOF
28918 /* end confdefs.h.  */
28919 #include <sys/types.h>
28920      #include <sys/stat.h>
28921
28922 int
28923 main ()
28924 {
28925 static struct stat ac_aggr;
28926 if (sizeof ac_aggr.st_atim.tv_nsec)
28927 return 0;
28928   ;
28929   return 0;
28930 }
28931 _ACEOF
28932 rm -f conftest.$ac_objext
28933 if { (ac_try="$ac_compile"
28934 case "(($ac_try" in
28935   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28936   *) ac_try_echo=$ac_try;;
28937 esac
28938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28939   (eval "$ac_compile") 2>conftest.er1
28940   ac_status=$?
28941   grep -v '^ *+' conftest.er1 >conftest.err
28942   rm -f conftest.er1
28943   cat conftest.err >&5
28944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28945   (exit $ac_status); } && {
28946          test -z "$ac_c_werror_flag" ||
28947          test ! -s conftest.err
28948        } && test -s conftest.$ac_objext; then
28949   ac_cv_member_struct_stat_st_atim_tv_nsec=yes
28950 else
28951   echo "$as_me: failed program was:" >&5
28952 sed 's/^/| /' conftest.$ac_ext >&5
28953
28954         ac_cv_member_struct_stat_st_atim_tv_nsec=no
28955 fi
28956
28957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28958 fi
28959
28960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28961 fi
28962 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_atim_tv_nsec" >&5
28963 echo "${ECHO_T}$ac_cv_member_struct_stat_st_atim_tv_nsec" >&6; }
28964 if test $ac_cv_member_struct_stat_st_atim_tv_nsec = yes; then
28965
28966 cat >>confdefs.h <<_ACEOF
28967 #define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1
28968 _ACEOF
28969
28970 { echo "$as_me:$LINENO: checking whether struct stat.st_atim is of type struct timespec" >&5
28971 echo $ECHO_N "checking whether struct stat.st_atim is of type struct timespec... $ECHO_C" >&6; }
28972 if test "${ac_cv_typeof_struct_stat_st_atim_is_struct_timespec+set}" = set; then
28973   echo $ECHO_N "(cached) $ECHO_C" >&6
28974 else
28975   cat >conftest.$ac_ext <<_ACEOF
28976 /* confdefs.h.  */
28977 _ACEOF
28978 cat confdefs.h >>conftest.$ac_ext
28979 cat >>conftest.$ac_ext <<_ACEOF
28980 /* end confdefs.h.  */
28981
28982             #include <sys/types.h>
28983             #include <sys/stat.h>
28984             #if HAVE_SYS_TIME_H
28985             # include <sys/time.h>
28986             #endif
28987             #include <time.h>
28988             struct timespec ts;
28989             struct stat st;
28990
28991 int
28992 main ()
28993 {
28994
28995             st.st_atim = ts;
28996
28997   ;
28998   return 0;
28999 }
29000 _ACEOF
29001 rm -f conftest.$ac_objext
29002 if { (ac_try="$ac_compile"
29003 case "(($ac_try" in
29004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29005   *) ac_try_echo=$ac_try;;
29006 esac
29007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29008   (eval "$ac_compile") 2>conftest.er1
29009   ac_status=$?
29010   grep -v '^ *+' conftest.er1 >conftest.err
29011   rm -f conftest.er1
29012   cat conftest.err >&5
29013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29014   (exit $ac_status); } && {
29015          test -z "$ac_c_werror_flag" ||
29016          test ! -s conftest.err
29017        } && test -s conftest.$ac_objext; then
29018   ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=yes
29019 else
29020   echo "$as_me: failed program was:" >&5
29021 sed 's/^/| /' conftest.$ac_ext >&5
29022
29023         ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=no
29024 fi
29025
29026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29027 fi
29028 { echo "$as_me:$LINENO: result: $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&5
29029 echo "${ECHO_T}$ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&6; }
29030      if test $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec = yes; then
29031
29032 cat >>confdefs.h <<\_ACEOF
29033 #define TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC 1
29034 _ACEOF
29035
29036      fi
29037 else
29038   { echo "$as_me:$LINENO: checking for struct stat.st_atimespec.tv_nsec" >&5
29039 echo $ECHO_N "checking for struct stat.st_atimespec.tv_nsec... $ECHO_C" >&6; }
29040 if test "${ac_cv_member_struct_stat_st_atimespec_tv_nsec+set}" = set; then
29041   echo $ECHO_N "(cached) $ECHO_C" >&6
29042 else
29043   cat >conftest.$ac_ext <<_ACEOF
29044 /* confdefs.h.  */
29045 _ACEOF
29046 cat confdefs.h >>conftest.$ac_ext
29047 cat >>conftest.$ac_ext <<_ACEOF
29048 /* end confdefs.h.  */
29049 #include <sys/types.h>
29050         #include <sys/stat.h>
29051
29052 int
29053 main ()
29054 {
29055 static struct stat ac_aggr;
29056 if (ac_aggr.st_atimespec.tv_nsec)
29057 return 0;
29058   ;
29059   return 0;
29060 }
29061 _ACEOF
29062 rm -f conftest.$ac_objext
29063 if { (ac_try="$ac_compile"
29064 case "(($ac_try" in
29065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29066   *) ac_try_echo=$ac_try;;
29067 esac
29068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29069   (eval "$ac_compile") 2>conftest.er1
29070   ac_status=$?
29071   grep -v '^ *+' conftest.er1 >conftest.err
29072   rm -f conftest.er1
29073   cat conftest.err >&5
29074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29075   (exit $ac_status); } && {
29076          test -z "$ac_c_werror_flag" ||
29077          test ! -s conftest.err
29078        } && test -s conftest.$ac_objext; then
29079   ac_cv_member_struct_stat_st_atimespec_tv_nsec=yes
29080 else
29081   echo "$as_me: failed program was:" >&5
29082 sed 's/^/| /' conftest.$ac_ext >&5
29083
29084         cat >conftest.$ac_ext <<_ACEOF
29085 /* confdefs.h.  */
29086 _ACEOF
29087 cat confdefs.h >>conftest.$ac_ext
29088 cat >>conftest.$ac_ext <<_ACEOF
29089 /* end confdefs.h.  */
29090 #include <sys/types.h>
29091         #include <sys/stat.h>
29092
29093 int
29094 main ()
29095 {
29096 static struct stat ac_aggr;
29097 if (sizeof ac_aggr.st_atimespec.tv_nsec)
29098 return 0;
29099   ;
29100   return 0;
29101 }
29102 _ACEOF
29103 rm -f conftest.$ac_objext
29104 if { (ac_try="$ac_compile"
29105 case "(($ac_try" in
29106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29107   *) ac_try_echo=$ac_try;;
29108 esac
29109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29110   (eval "$ac_compile") 2>conftest.er1
29111   ac_status=$?
29112   grep -v '^ *+' conftest.er1 >conftest.err
29113   rm -f conftest.er1
29114   cat conftest.err >&5
29115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29116   (exit $ac_status); } && {
29117          test -z "$ac_c_werror_flag" ||
29118          test ! -s conftest.err
29119        } && test -s conftest.$ac_objext; then
29120   ac_cv_member_struct_stat_st_atimespec_tv_nsec=yes
29121 else
29122   echo "$as_me: failed program was:" >&5
29123 sed 's/^/| /' conftest.$ac_ext >&5
29124
29125         ac_cv_member_struct_stat_st_atimespec_tv_nsec=no
29126 fi
29127
29128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29129 fi
29130
29131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29132 fi
29133 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_atimespec_tv_nsec" >&5
29134 echo "${ECHO_T}$ac_cv_member_struct_stat_st_atimespec_tv_nsec" >&6; }
29135 if test $ac_cv_member_struct_stat_st_atimespec_tv_nsec = yes; then
29136
29137 cat >>confdefs.h <<_ACEOF
29138 #define HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC 1
29139 _ACEOF
29140
29141
29142 else
29143   { echo "$as_me:$LINENO: checking for struct stat.st_atimensec" >&5
29144 echo $ECHO_N "checking for struct stat.st_atimensec... $ECHO_C" >&6; }
29145 if test "${ac_cv_member_struct_stat_st_atimensec+set}" = set; then
29146   echo $ECHO_N "(cached) $ECHO_C" >&6
29147 else
29148   cat >conftest.$ac_ext <<_ACEOF
29149 /* confdefs.h.  */
29150 _ACEOF
29151 cat confdefs.h >>conftest.$ac_ext
29152 cat >>conftest.$ac_ext <<_ACEOF
29153 /* end confdefs.h.  */
29154 #include <sys/types.h>
29155            #include <sys/stat.h>
29156
29157 int
29158 main ()
29159 {
29160 static struct stat ac_aggr;
29161 if (ac_aggr.st_atimensec)
29162 return 0;
29163   ;
29164   return 0;
29165 }
29166 _ACEOF
29167 rm -f conftest.$ac_objext
29168 if { (ac_try="$ac_compile"
29169 case "(($ac_try" in
29170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29171   *) ac_try_echo=$ac_try;;
29172 esac
29173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29174   (eval "$ac_compile") 2>conftest.er1
29175   ac_status=$?
29176   grep -v '^ *+' conftest.er1 >conftest.err
29177   rm -f conftest.er1
29178   cat conftest.err >&5
29179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29180   (exit $ac_status); } && {
29181          test -z "$ac_c_werror_flag" ||
29182          test ! -s conftest.err
29183        } && test -s conftest.$ac_objext; then
29184   ac_cv_member_struct_stat_st_atimensec=yes
29185 else
29186   echo "$as_me: failed program was:" >&5
29187 sed 's/^/| /' conftest.$ac_ext >&5
29188
29189         cat >conftest.$ac_ext <<_ACEOF
29190 /* confdefs.h.  */
29191 _ACEOF
29192 cat confdefs.h >>conftest.$ac_ext
29193 cat >>conftest.$ac_ext <<_ACEOF
29194 /* end confdefs.h.  */
29195 #include <sys/types.h>
29196            #include <sys/stat.h>
29197
29198 int
29199 main ()
29200 {
29201 static struct stat ac_aggr;
29202 if (sizeof ac_aggr.st_atimensec)
29203 return 0;
29204   ;
29205   return 0;
29206 }
29207 _ACEOF
29208 rm -f conftest.$ac_objext
29209 if { (ac_try="$ac_compile"
29210 case "(($ac_try" in
29211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29212   *) ac_try_echo=$ac_try;;
29213 esac
29214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29215   (eval "$ac_compile") 2>conftest.er1
29216   ac_status=$?
29217   grep -v '^ *+' conftest.er1 >conftest.err
29218   rm -f conftest.er1
29219   cat conftest.err >&5
29220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29221   (exit $ac_status); } && {
29222          test -z "$ac_c_werror_flag" ||
29223          test ! -s conftest.err
29224        } && test -s conftest.$ac_objext; then
29225   ac_cv_member_struct_stat_st_atimensec=yes
29226 else
29227   echo "$as_me: failed program was:" >&5
29228 sed 's/^/| /' conftest.$ac_ext >&5
29229
29230         ac_cv_member_struct_stat_st_atimensec=no
29231 fi
29232
29233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29234 fi
29235
29236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29237 fi
29238 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_atimensec" >&5
29239 echo "${ECHO_T}$ac_cv_member_struct_stat_st_atimensec" >&6; }
29240 if test $ac_cv_member_struct_stat_st_atimensec = yes; then
29241
29242 cat >>confdefs.h <<_ACEOF
29243 #define HAVE_STRUCT_STAT_ST_ATIMENSEC 1
29244 _ACEOF
29245
29246
29247 else
29248   { echo "$as_me:$LINENO: checking for struct stat.st_atim.st__tim.tv_nsec" >&5
29249 echo $ECHO_N "checking for struct stat.st_atim.st__tim.tv_nsec... $ECHO_C" >&6; }
29250 if test "${ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec+set}" = set; then
29251   echo $ECHO_N "(cached) $ECHO_C" >&6
29252 else
29253   cat >conftest.$ac_ext <<_ACEOF
29254 /* confdefs.h.  */
29255 _ACEOF
29256 cat confdefs.h >>conftest.$ac_ext
29257 cat >>conftest.$ac_ext <<_ACEOF
29258 /* end confdefs.h.  */
29259 #include <sys/types.h>
29260               #include <sys/stat.h>
29261
29262 int
29263 main ()
29264 {
29265 static struct stat ac_aggr;
29266 if (ac_aggr.st_atim.st__tim.tv_nsec)
29267 return 0;
29268   ;
29269   return 0;
29270 }
29271 _ACEOF
29272 rm -f conftest.$ac_objext
29273 if { (ac_try="$ac_compile"
29274 case "(($ac_try" in
29275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29276   *) ac_try_echo=$ac_try;;
29277 esac
29278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29279   (eval "$ac_compile") 2>conftest.er1
29280   ac_status=$?
29281   grep -v '^ *+' conftest.er1 >conftest.err
29282   rm -f conftest.er1
29283   cat conftest.err >&5
29284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29285   (exit $ac_status); } && {
29286          test -z "$ac_c_werror_flag" ||
29287          test ! -s conftest.err
29288        } && test -s conftest.$ac_objext; then
29289   ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec=yes
29290 else
29291   echo "$as_me: failed program was:" >&5
29292 sed 's/^/| /' conftest.$ac_ext >&5
29293
29294         cat >conftest.$ac_ext <<_ACEOF
29295 /* confdefs.h.  */
29296 _ACEOF
29297 cat confdefs.h >>conftest.$ac_ext
29298 cat >>conftest.$ac_ext <<_ACEOF
29299 /* end confdefs.h.  */
29300 #include <sys/types.h>
29301               #include <sys/stat.h>
29302
29303 int
29304 main ()
29305 {
29306 static struct stat ac_aggr;
29307 if (sizeof ac_aggr.st_atim.st__tim.tv_nsec)
29308 return 0;
29309   ;
29310   return 0;
29311 }
29312 _ACEOF
29313 rm -f conftest.$ac_objext
29314 if { (ac_try="$ac_compile"
29315 case "(($ac_try" in
29316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29317   *) ac_try_echo=$ac_try;;
29318 esac
29319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29320   (eval "$ac_compile") 2>conftest.er1
29321   ac_status=$?
29322   grep -v '^ *+' conftest.er1 >conftest.err
29323   rm -f conftest.er1
29324   cat conftest.err >&5
29325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29326   (exit $ac_status); } && {
29327          test -z "$ac_c_werror_flag" ||
29328          test ! -s conftest.err
29329        } && test -s conftest.$ac_objext; then
29330   ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec=yes
29331 else
29332   echo "$as_me: failed program was:" >&5
29333 sed 's/^/| /' conftest.$ac_ext >&5
29334
29335         ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec=no
29336 fi
29337
29338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29339 fi
29340
29341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29342 fi
29343 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" >&5
29344 echo "${ECHO_T}$ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" >&6; }
29345 if test $ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec = yes; then
29346
29347 cat >>confdefs.h <<_ACEOF
29348 #define HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC 1
29349 _ACEOF
29350
29351
29352 fi
29353
29354 fi
29355
29356 fi
29357
29358 fi
29359
29360
29361
29362
29363
29364
29365
29366
29367
29368
29369
29370   { echo "$as_me:$LINENO: checking for struct stat.st_birthtimespec.tv_nsec" >&5
29371 echo $ECHO_N "checking for struct stat.st_birthtimespec.tv_nsec... $ECHO_C" >&6; }
29372 if test "${ac_cv_member_struct_stat_st_birthtimespec_tv_nsec+set}" = set; then
29373   echo $ECHO_N "(cached) $ECHO_C" >&6
29374 else
29375   cat >conftest.$ac_ext <<_ACEOF
29376 /* confdefs.h.  */
29377 _ACEOF
29378 cat confdefs.h >>conftest.$ac_ext
29379 cat >>conftest.$ac_ext <<_ACEOF
29380 /* end confdefs.h.  */
29381 #include <sys/types.h>
29382      #include <sys/stat.h>
29383
29384 int
29385 main ()
29386 {
29387 static struct stat ac_aggr;
29388 if (ac_aggr.st_birthtimespec.tv_nsec)
29389 return 0;
29390   ;
29391   return 0;
29392 }
29393 _ACEOF
29394 rm -f conftest.$ac_objext
29395 if { (ac_try="$ac_compile"
29396 case "(($ac_try" in
29397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29398   *) ac_try_echo=$ac_try;;
29399 esac
29400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29401   (eval "$ac_compile") 2>conftest.er1
29402   ac_status=$?
29403   grep -v '^ *+' conftest.er1 >conftest.err
29404   rm -f conftest.er1
29405   cat conftest.err >&5
29406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29407   (exit $ac_status); } && {
29408          test -z "$ac_c_werror_flag" ||
29409          test ! -s conftest.err
29410        } && test -s conftest.$ac_objext; then
29411   ac_cv_member_struct_stat_st_birthtimespec_tv_nsec=yes
29412 else
29413   echo "$as_me: failed program was:" >&5
29414 sed 's/^/| /' conftest.$ac_ext >&5
29415
29416         cat >conftest.$ac_ext <<_ACEOF
29417 /* confdefs.h.  */
29418 _ACEOF
29419 cat confdefs.h >>conftest.$ac_ext
29420 cat >>conftest.$ac_ext <<_ACEOF
29421 /* end confdefs.h.  */
29422 #include <sys/types.h>
29423      #include <sys/stat.h>
29424
29425 int
29426 main ()
29427 {
29428 static struct stat ac_aggr;
29429 if (sizeof ac_aggr.st_birthtimespec.tv_nsec)
29430 return 0;
29431   ;
29432   return 0;
29433 }
29434 _ACEOF
29435 rm -f conftest.$ac_objext
29436 if { (ac_try="$ac_compile"
29437 case "(($ac_try" in
29438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29439   *) ac_try_echo=$ac_try;;
29440 esac
29441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29442   (eval "$ac_compile") 2>conftest.er1
29443   ac_status=$?
29444   grep -v '^ *+' conftest.er1 >conftest.err
29445   rm -f conftest.er1
29446   cat conftest.err >&5
29447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29448   (exit $ac_status); } && {
29449          test -z "$ac_c_werror_flag" ||
29450          test ! -s conftest.err
29451        } && test -s conftest.$ac_objext; then
29452   ac_cv_member_struct_stat_st_birthtimespec_tv_nsec=yes
29453 else
29454   echo "$as_me: failed program was:" >&5
29455 sed 's/^/| /' conftest.$ac_ext >&5
29456
29457         ac_cv_member_struct_stat_st_birthtimespec_tv_nsec=no
29458 fi
29459
29460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29461 fi
29462
29463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29464 fi
29465 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" >&5
29466 echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" >&6; }
29467 if test $ac_cv_member_struct_stat_st_birthtimespec_tv_nsec = yes; then
29468
29469 cat >>confdefs.h <<_ACEOF
29470 #define HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC 1
29471 _ACEOF
29472
29473
29474 else
29475   { echo "$as_me:$LINENO: checking for struct stat.st_birthtimensec" >&5
29476 echo $ECHO_N "checking for struct stat.st_birthtimensec... $ECHO_C" >&6; }
29477 if test "${ac_cv_member_struct_stat_st_birthtimensec+set}" = set; then
29478   echo $ECHO_N "(cached) $ECHO_C" >&6
29479 else
29480   cat >conftest.$ac_ext <<_ACEOF
29481 /* confdefs.h.  */
29482 _ACEOF
29483 cat confdefs.h >>conftest.$ac_ext
29484 cat >>conftest.$ac_ext <<_ACEOF
29485 /* end confdefs.h.  */
29486 #include <sys/types.h>
29487         #include <sys/stat.h>
29488
29489 int
29490 main ()
29491 {
29492 static struct stat ac_aggr;
29493 if (ac_aggr.st_birthtimensec)
29494 return 0;
29495   ;
29496   return 0;
29497 }
29498 _ACEOF
29499 rm -f conftest.$ac_objext
29500 if { (ac_try="$ac_compile"
29501 case "(($ac_try" in
29502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29503   *) ac_try_echo=$ac_try;;
29504 esac
29505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29506   (eval "$ac_compile") 2>conftest.er1
29507   ac_status=$?
29508   grep -v '^ *+' conftest.er1 >conftest.err
29509   rm -f conftest.er1
29510   cat conftest.err >&5
29511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29512   (exit $ac_status); } && {
29513          test -z "$ac_c_werror_flag" ||
29514          test ! -s conftest.err
29515        } && test -s conftest.$ac_objext; then
29516   ac_cv_member_struct_stat_st_birthtimensec=yes
29517 else
29518   echo "$as_me: failed program was:" >&5
29519 sed 's/^/| /' conftest.$ac_ext >&5
29520
29521         cat >conftest.$ac_ext <<_ACEOF
29522 /* confdefs.h.  */
29523 _ACEOF
29524 cat confdefs.h >>conftest.$ac_ext
29525 cat >>conftest.$ac_ext <<_ACEOF
29526 /* end confdefs.h.  */
29527 #include <sys/types.h>
29528         #include <sys/stat.h>
29529
29530 int
29531 main ()
29532 {
29533 static struct stat ac_aggr;
29534 if (sizeof ac_aggr.st_birthtimensec)
29535 return 0;
29536   ;
29537   return 0;
29538 }
29539 _ACEOF
29540 rm -f conftest.$ac_objext
29541 if { (ac_try="$ac_compile"
29542 case "(($ac_try" in
29543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29544   *) ac_try_echo=$ac_try;;
29545 esac
29546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29547   (eval "$ac_compile") 2>conftest.er1
29548   ac_status=$?
29549   grep -v '^ *+' conftest.er1 >conftest.err
29550   rm -f conftest.er1
29551   cat conftest.err >&5
29552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29553   (exit $ac_status); } && {
29554          test -z "$ac_c_werror_flag" ||
29555          test ! -s conftest.err
29556        } && test -s conftest.$ac_objext; then
29557   ac_cv_member_struct_stat_st_birthtimensec=yes
29558 else
29559   echo "$as_me: failed program was:" >&5
29560 sed 's/^/| /' conftest.$ac_ext >&5
29561
29562         ac_cv_member_struct_stat_st_birthtimensec=no
29563 fi
29564
29565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29566 fi
29567
29568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29569 fi
29570 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtimensec" >&5
29571 echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtimensec" >&6; }
29572 if test $ac_cv_member_struct_stat_st_birthtimensec = yes; then
29573
29574 cat >>confdefs.h <<_ACEOF
29575 #define HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC 1
29576 _ACEOF
29577
29578
29579 else
29580   { echo "$as_me:$LINENO: checking for struct stat.st_birthtim.tv_nsec" >&5
29581 echo $ECHO_N "checking for struct stat.st_birthtim.tv_nsec... $ECHO_C" >&6; }
29582 if test "${ac_cv_member_struct_stat_st_birthtim_tv_nsec+set}" = set; then
29583   echo $ECHO_N "(cached) $ECHO_C" >&6
29584 else
29585   cat >conftest.$ac_ext <<_ACEOF
29586 /* confdefs.h.  */
29587 _ACEOF
29588 cat confdefs.h >>conftest.$ac_ext
29589 cat >>conftest.$ac_ext <<_ACEOF
29590 /* end confdefs.h.  */
29591 #include <sys/types.h>
29592           #include <sys/stat.h>
29593
29594 int
29595 main ()
29596 {
29597 static struct stat ac_aggr;
29598 if (ac_aggr.st_birthtim.tv_nsec)
29599 return 0;
29600   ;
29601   return 0;
29602 }
29603 _ACEOF
29604 rm -f conftest.$ac_objext
29605 if { (ac_try="$ac_compile"
29606 case "(($ac_try" in
29607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29608   *) ac_try_echo=$ac_try;;
29609 esac
29610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29611   (eval "$ac_compile") 2>conftest.er1
29612   ac_status=$?
29613   grep -v '^ *+' conftest.er1 >conftest.err
29614   rm -f conftest.er1
29615   cat conftest.err >&5
29616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29617   (exit $ac_status); } && {
29618          test -z "$ac_c_werror_flag" ||
29619          test ! -s conftest.err
29620        } && test -s conftest.$ac_objext; then
29621   ac_cv_member_struct_stat_st_birthtim_tv_nsec=yes
29622 else
29623   echo "$as_me: failed program was:" >&5
29624 sed 's/^/| /' conftest.$ac_ext >&5
29625
29626         cat >conftest.$ac_ext <<_ACEOF
29627 /* confdefs.h.  */
29628 _ACEOF
29629 cat confdefs.h >>conftest.$ac_ext
29630 cat >>conftest.$ac_ext <<_ACEOF
29631 /* end confdefs.h.  */
29632 #include <sys/types.h>
29633           #include <sys/stat.h>
29634
29635 int
29636 main ()
29637 {
29638 static struct stat ac_aggr;
29639 if (sizeof ac_aggr.st_birthtim.tv_nsec)
29640 return 0;
29641   ;
29642   return 0;
29643 }
29644 _ACEOF
29645 rm -f conftest.$ac_objext
29646 if { (ac_try="$ac_compile"
29647 case "(($ac_try" in
29648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29649   *) ac_try_echo=$ac_try;;
29650 esac
29651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29652   (eval "$ac_compile") 2>conftest.er1
29653   ac_status=$?
29654   grep -v '^ *+' conftest.er1 >conftest.err
29655   rm -f conftest.er1
29656   cat conftest.err >&5
29657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29658   (exit $ac_status); } && {
29659          test -z "$ac_c_werror_flag" ||
29660          test ! -s conftest.err
29661        } && test -s conftest.$ac_objext; then
29662   ac_cv_member_struct_stat_st_birthtim_tv_nsec=yes
29663 else
29664   echo "$as_me: failed program was:" >&5
29665 sed 's/^/| /' conftest.$ac_ext >&5
29666
29667         ac_cv_member_struct_stat_st_birthtim_tv_nsec=no
29668 fi
29669
29670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29671 fi
29672
29673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29674 fi
29675 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtim_tv_nsec" >&5
29676 echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtim_tv_nsec" >&6; }
29677 if test $ac_cv_member_struct_stat_st_birthtim_tv_nsec = yes; then
29678
29679 cat >>confdefs.h <<_ACEOF
29680 #define HAVE_STRUCT_STAT_ST_BIRTHTIM_TV_NSEC 1
29681 _ACEOF
29682
29683
29684 fi
29685
29686 fi
29687
29688 fi
29689
29690
29691
29692   STDARG_H='';
29693   NEXT_STDARG_H='<stdarg.h>';
29694   { echo "$as_me:$LINENO: checking for va_copy" >&5
29695 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
29696   if test "${gl_cv_func_va_copy+set}" = set; then
29697   echo $ECHO_N "(cached) $ECHO_C" >&6
29698 else
29699
29700     cat >conftest.$ac_ext <<_ACEOF
29701 /* confdefs.h.  */
29702 _ACEOF
29703 cat confdefs.h >>conftest.$ac_ext
29704 cat >>conftest.$ac_ext <<_ACEOF
29705 /* end confdefs.h.  */
29706 #include <stdarg.h>
29707 int
29708 main ()
29709 {
29710
29711 #ifndef va_copy
29712 void (*func) (va_list, va_list) = va_copy;
29713 #endif
29714
29715   ;
29716   return 0;
29717 }
29718 _ACEOF
29719 rm -f conftest.$ac_objext
29720 if { (ac_try="$ac_compile"
29721 case "(($ac_try" in
29722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29723   *) ac_try_echo=$ac_try;;
29724 esac
29725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29726   (eval "$ac_compile") 2>conftest.er1
29727   ac_status=$?
29728   grep -v '^ *+' conftest.er1 >conftest.err
29729   rm -f conftest.er1
29730   cat conftest.err >&5
29731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29732   (exit $ac_status); } && {
29733          test -z "$ac_c_werror_flag" ||
29734          test ! -s conftest.err
29735        } && test -s conftest.$ac_objext; then
29736   gl_cv_func_va_copy=yes
29737 else
29738   echo "$as_me: failed program was:" >&5
29739 sed 's/^/| /' conftest.$ac_ext >&5
29740
29741         gl_cv_func_va_copy=no
29742 fi
29743
29744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29745 fi
29746
29747   { echo "$as_me:$LINENO: result: $gl_cv_func_va_copy" >&5
29748 echo "${ECHO_T}$gl_cv_func_va_copy" >&6; }
29749   if test $gl_cv_func_va_copy = no; then
29750                                     cat >conftest.$ac_ext <<_ACEOF
29751 /* confdefs.h.  */
29752 _ACEOF
29753 cat confdefs.h >>conftest.$ac_ext
29754 cat >>conftest.$ac_ext <<_ACEOF
29755 /* end confdefs.h.  */
29756 #if defined _AIX && !defined __GNUC__
29757         AIX vaccine
29758        #endif
29759
29760 _ACEOF
29761 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29762   $EGREP "vaccine" >/dev/null 2>&1; then
29763   gl_aixcc=yes
29764 else
29765   gl_aixcc=no
29766 fi
29767 rm -f conftest*
29768
29769     if test $gl_aixcc = yes; then
29770             STDARG_H=stdarg.h
29771
29772
29773
29774
29775
29776
29777
29778
29779
29780
29781      if test $gl_cv_have_include_next = yes; then
29782        gl_cv_next_stdarg_h='<'stdarg.h'>'
29783      else
29784        { echo "$as_me:$LINENO: checking absolute name of <stdarg.h>" >&5
29785 echo $ECHO_N "checking absolute name of <stdarg.h>... $ECHO_C" >&6; }
29786 if test "${gl_cv_next_stdarg_h+set}" = set; then
29787   echo $ECHO_N "(cached) $ECHO_C" >&6
29788 else
29789
29790           if test $ac_cv_header_stdarg_h = yes; then
29791             cat >conftest.$ac_ext <<_ACEOF
29792 /* confdefs.h.  */
29793 _ACEOF
29794 cat confdefs.h >>conftest.$ac_ext
29795 cat >>conftest.$ac_ext <<_ACEOF
29796 /* end confdefs.h.  */
29797 #include <stdarg.h>
29798
29799 _ACEOF
29800                                     gl_cv_next_stdarg_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29801                sed -n '\#/stdarg.h#{
29802                  s#.*"\(.*/stdarg.h\)".*#\1#
29803                  s#^/[^/]#//&#
29804                  p
29805                  q
29806                }'`'"'
29807           else
29808             gl_cv_next_stdarg_h='<'stdarg.h'>'
29809           fi
29810
29811 fi
29812 { echo "$as_me:$LINENO: result: $gl_cv_next_stdarg_h" >&5
29813 echo "${ECHO_T}$gl_cv_next_stdarg_h" >&6; }
29814      fi
29815      NEXT_STDARG_H=$gl_cv_next_stdarg_h
29816
29817
29818
29819             if test "$gl_cv_next_stdarg_h" = '""'; then
29820         gl_cv_next_stdarg_h='"///usr/include/stdarg.h"'
29821         NEXT_STDARG_H="$gl_cv_next_stdarg_h"
29822       fi
29823     else
29824                   if test "${gl_cv_func___va_copy+set}" = set; then
29825   echo $ECHO_N "(cached) $ECHO_C" >&6
29826 else
29827
29828         cat >conftest.$ac_ext <<_ACEOF
29829 /* confdefs.h.  */
29830 _ACEOF
29831 cat confdefs.h >>conftest.$ac_ext
29832 cat >>conftest.$ac_ext <<_ACEOF
29833 /* end confdefs.h.  */
29834 #include <stdarg.h>
29835 int
29836 main ()
29837 {
29838
29839 #ifndef __va_copy
29840 error, bail out
29841 #endif
29842
29843   ;
29844   return 0;
29845 }
29846 _ACEOF
29847 rm -f conftest.$ac_objext
29848 if { (ac_try="$ac_compile"
29849 case "(($ac_try" in
29850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29851   *) ac_try_echo=$ac_try;;
29852 esac
29853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29854   (eval "$ac_compile") 2>conftest.er1
29855   ac_status=$?
29856   grep -v '^ *+' conftest.er1 >conftest.err
29857   rm -f conftest.er1
29858   cat conftest.err >&5
29859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29860   (exit $ac_status); } && {
29861          test -z "$ac_c_werror_flag" ||
29862          test ! -s conftest.err
29863        } && test -s conftest.$ac_objext; then
29864   gl_cv_func___va_copy=yes
29865 else
29866   echo "$as_me: failed program was:" >&5
29867 sed 's/^/| /' conftest.$ac_ext >&5
29868
29869         gl_cv_func___va_copy=no
29870 fi
29871
29872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29873 fi
29874
29875       if test $gl_cv_func___va_copy = yes; then
29876
29877 cat >>confdefs.h <<\_ACEOF
29878 #define va_copy __va_copy
29879 _ACEOF
29880
29881       else
29882
29883
29884
29885 cat >>confdefs.h <<\_ACEOF
29886 #define va_copy gl_va_copy
29887 _ACEOF
29888
29889       fi
29890     fi
29891   fi
29892
29893
29894
29895
29896   # Define two additional variables used in the Makefile substitution.
29897
29898   if test "$ac_cv_header_stdbool_h" = yes; then
29899     STDBOOL_H=''
29900   else
29901     STDBOOL_H='stdbool.h'
29902   fi
29903
29904
29905   if test "$ac_cv_type__Bool" = yes; then
29906     HAVE__BOOL=1
29907   else
29908     HAVE__BOOL=0
29909   fi
29910
29911
29912
29913
29914
29915   if test $ac_cv_type_long_long_int = yes; then
29916     HAVE_LONG_LONG_INT=1
29917   else
29918     HAVE_LONG_LONG_INT=0
29919   fi
29920
29921
29922   if test $ac_cv_type_unsigned_long_long_int = yes; then
29923     HAVE_UNSIGNED_LONG_LONG_INT=1
29924   else
29925     HAVE_UNSIGNED_LONG_LONG_INT=0
29926   fi
29927
29928
29929       if test $ac_cv_header_inttypes_h = yes; then
29930     HAVE_INTTYPES_H=1
29931   else
29932     HAVE_INTTYPES_H=0
29933   fi
29934
29935
29936       if test $ac_cv_header_sys_types_h = yes; then
29937     HAVE_SYS_TYPES_H=1
29938   else
29939     HAVE_SYS_TYPES_H=0
29940   fi
29941
29942
29943
29944
29945
29946
29947
29948
29949
29950
29951
29952
29953      if test $gl_cv_have_include_next = yes; then
29954        gl_cv_next_stdint_h='<'stdint.h'>'
29955      else
29956        { echo "$as_me:$LINENO: checking absolute name of <stdint.h>" >&5
29957 echo $ECHO_N "checking absolute name of <stdint.h>... $ECHO_C" >&6; }
29958 if test "${gl_cv_next_stdint_h+set}" = set; then
29959   echo $ECHO_N "(cached) $ECHO_C" >&6
29960 else
29961
29962           if test $ac_cv_header_stdint_h = yes; then
29963             cat >conftest.$ac_ext <<_ACEOF
29964 /* confdefs.h.  */
29965 _ACEOF
29966 cat confdefs.h >>conftest.$ac_ext
29967 cat >>conftest.$ac_ext <<_ACEOF
29968 /* end confdefs.h.  */
29969 #include <stdint.h>
29970
29971 _ACEOF
29972                                     gl_cv_next_stdint_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29973                sed -n '\#/stdint.h#{
29974                  s#.*"\(.*/stdint.h\)".*#\1#
29975                  s#^/[^/]#//&#
29976                  p
29977                  q
29978                }'`'"'
29979           else
29980             gl_cv_next_stdint_h='<'stdint.h'>'
29981           fi
29982
29983 fi
29984 { echo "$as_me:$LINENO: result: $gl_cv_next_stdint_h" >&5
29985 echo "${ECHO_T}$gl_cv_next_stdint_h" >&6; }
29986      fi
29987      NEXT_STDINT_H=$gl_cv_next_stdint_h
29988
29989
29990
29991   if test $ac_cv_header_stdint_h = yes; then
29992     HAVE_STDINT_H=1
29993   else
29994     HAVE_STDINT_H=0
29995   fi
29996
29997
29998     if test $ac_cv_header_stdint_h = yes; then
29999     { echo "$as_me:$LINENO: checking whether stdint.h conforms to C99" >&5
30000 echo $ECHO_N "checking whether stdint.h conforms to C99... $ECHO_C" >&6; }
30001 if test "${gl_cv_header_working_stdint_h+set}" = set; then
30002   echo $ECHO_N "(cached) $ECHO_C" >&6
30003 else
30004   gl_cv_header_working_stdint_h=no
30005        cat >conftest.$ac_ext <<_ACEOF
30006
30007          /* confdefs.h.  */
30008 _ACEOF
30009 cat confdefs.h >>conftest.$ac_ext
30010 cat >>conftest.$ac_ext <<_ACEOF
30011 /* end confdefs.h.  */
30012
30013 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
30014 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
30015 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
30016 #include <stdint.h>
30017 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>.  */
30018 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
30019 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
30020 #endif
30021
30022
30023   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
30024      included before <wchar.h>.  */
30025   #include <stddef.h>
30026   #include <signal.h>
30027   #if HAVE_WCHAR_H
30028   # include <stdio.h>
30029   # include <time.h>
30030   # include <wchar.h>
30031   #endif
30032
30033
30034 #ifdef INT8_MAX
30035 int8_t a1 = INT8_MAX;
30036 int8_t a1min = INT8_MIN;
30037 #endif
30038 #ifdef INT16_MAX
30039 int16_t a2 = INT16_MAX;
30040 int16_t a2min = INT16_MIN;
30041 #endif
30042 #ifdef INT32_MAX
30043 int32_t a3 = INT32_MAX;
30044 int32_t a3min = INT32_MIN;
30045 #endif
30046 #ifdef INT64_MAX
30047 int64_t a4 = INT64_MAX;
30048 int64_t a4min = INT64_MIN;
30049 #endif
30050 #ifdef UINT8_MAX
30051 uint8_t b1 = UINT8_MAX;
30052 #else
30053 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
30054 #endif
30055 #ifdef UINT16_MAX
30056 uint16_t b2 = UINT16_MAX;
30057 #endif
30058 #ifdef UINT32_MAX
30059 uint32_t b3 = UINT32_MAX;
30060 #endif
30061 #ifdef UINT64_MAX
30062 uint64_t b4 = UINT64_MAX;
30063 #endif
30064 int_least8_t c1 = INT8_C (0x7f);
30065 int_least8_t c1max = INT_LEAST8_MAX;
30066 int_least8_t c1min = INT_LEAST8_MIN;
30067 int_least16_t c2 = INT16_C (0x7fff);
30068 int_least16_t c2max = INT_LEAST16_MAX;
30069 int_least16_t c2min = INT_LEAST16_MIN;
30070 int_least32_t c3 = INT32_C (0x7fffffff);
30071 int_least32_t c3max = INT_LEAST32_MAX;
30072 int_least32_t c3min = INT_LEAST32_MIN;
30073 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
30074 int_least64_t c4max = INT_LEAST64_MAX;
30075 int_least64_t c4min = INT_LEAST64_MIN;
30076 uint_least8_t d1 = UINT8_C (0xff);
30077 uint_least8_t d1max = UINT_LEAST8_MAX;
30078 uint_least16_t d2 = UINT16_C (0xffff);
30079 uint_least16_t d2max = UINT_LEAST16_MAX;
30080 uint_least32_t d3 = UINT32_C (0xffffffff);
30081 uint_least32_t d3max = UINT_LEAST32_MAX;
30082 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
30083 uint_least64_t d4max = UINT_LEAST64_MAX;
30084 int_fast8_t e1 = INT_FAST8_MAX;
30085 int_fast8_t e1min = INT_FAST8_MIN;
30086 int_fast16_t e2 = INT_FAST16_MAX;
30087 int_fast16_t e2min = INT_FAST16_MIN;
30088 int_fast32_t e3 = INT_FAST32_MAX;
30089 int_fast32_t e3min = INT_FAST32_MIN;
30090 int_fast64_t e4 = INT_FAST64_MAX;
30091 int_fast64_t e4min = INT_FAST64_MIN;
30092 uint_fast8_t f1 = UINT_FAST8_MAX;
30093 uint_fast16_t f2 = UINT_FAST16_MAX;
30094 uint_fast32_t f3 = UINT_FAST32_MAX;
30095 uint_fast64_t f4 = UINT_FAST64_MAX;
30096 #ifdef INTPTR_MAX
30097 intptr_t g = INTPTR_MAX;
30098 intptr_t gmin = INTPTR_MIN;
30099 #endif
30100 #ifdef UINTPTR_MAX
30101 uintptr_t h = UINTPTR_MAX;
30102 #endif
30103 intmax_t i = INTMAX_MAX;
30104 uintmax_t j = UINTMAX_MAX;
30105
30106 #include <limits.h> /* for CHAR_BIT */
30107 #define TYPE_MINIMUM(t) \
30108   ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))
30109 #define TYPE_MAXIMUM(t) \
30110   ((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))))
30111 struct s {
30112   int check_PTRDIFF:
30113       PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
30114       && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
30115       ? 1 : -1;
30116   /* Detect bug in FreeBSD 6.0 / ia64.  */
30117   int check_SIG_ATOMIC:
30118       SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
30119       && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
30120       ? 1 : -1;
30121   int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
30122   int check_WCHAR:
30123       WCHAR_MIN == TYPE_MINIMUM (wchar_t)
30124       && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
30125       ? 1 : -1;
30126   /* Detect bug in mingw.  */
30127   int check_WINT:
30128       WINT_MIN == TYPE_MINIMUM (wint_t)
30129       && WINT_MAX == TYPE_MAXIMUM (wint_t)
30130       ? 1 : -1;
30131
30132   /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others.  */
30133   int check_UINT8_C:
30134         (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
30135   int check_UINT16_C:
30136         (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
30137
30138   /* Detect bugs in OpenBSD 3.9 stdint.h.  */
30139 #ifdef UINT8_MAX
30140   int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
30141 #endif
30142 #ifdef UINT16_MAX
30143   int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
30144 #endif
30145 #ifdef UINT32_MAX
30146   int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
30147 #endif
30148 #ifdef UINT64_MAX
30149   int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
30150 #endif
30151   int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
30152   int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
30153   int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
30154   int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
30155   int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
30156   int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
30157   int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
30158   int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
30159   int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
30160   int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
30161   int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
30162 };
30163
30164 int
30165 main ()
30166 {
30167
30168   ;
30169   return 0;
30170 }
30171 _ACEOF
30172 rm -f conftest.$ac_objext
30173 if { (ac_try="$ac_compile"
30174 case "(($ac_try" in
30175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30176   *) ac_try_echo=$ac_try;;
30177 esac
30178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30179   (eval "$ac_compile") 2>conftest.er1
30180   ac_status=$?
30181   grep -v '^ *+' conftest.er1 >conftest.err
30182   rm -f conftest.er1
30183   cat conftest.err >&5
30184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30185   (exit $ac_status); } && {
30186          test -z "$ac_c_werror_flag" ||
30187          test ! -s conftest.err
30188        } && test -s conftest.$ac_objext; then
30189   gl_cv_header_working_stdint_h=yes
30190 else
30191   echo "$as_me: failed program was:" >&5
30192 sed 's/^/| /' conftest.$ac_ext >&5
30193
30194
30195 fi
30196
30197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30198 fi
30199 { echo "$as_me:$LINENO: result: $gl_cv_header_working_stdint_h" >&5
30200 echo "${ECHO_T}$gl_cv_header_working_stdint_h" >&6; }
30201   fi
30202   if test "$gl_cv_header_working_stdint_h" = yes; then
30203     STDINT_H=
30204   else
30205
30206
30207 for ac_header in sys/inttypes.h sys/bitypes.h
30208 do
30209 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30210 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30211   { echo "$as_me:$LINENO: checking for $ac_header" >&5
30212 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30213 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30214   echo $ECHO_N "(cached) $ECHO_C" >&6
30215 fi
30216 ac_res=`eval echo '${'$as_ac_Header'}'`
30217                { echo "$as_me:$LINENO: result: $ac_res" >&5
30218 echo "${ECHO_T}$ac_res" >&6; }
30219 else
30220   # Is the header compilable?
30221 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30222 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30223 cat >conftest.$ac_ext <<_ACEOF
30224 /* confdefs.h.  */
30225 _ACEOF
30226 cat confdefs.h >>conftest.$ac_ext
30227 cat >>conftest.$ac_ext <<_ACEOF
30228 /* end confdefs.h.  */
30229 $ac_includes_default
30230 #include <$ac_header>
30231 _ACEOF
30232 rm -f conftest.$ac_objext
30233 if { (ac_try="$ac_compile"
30234 case "(($ac_try" in
30235   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30236   *) ac_try_echo=$ac_try;;
30237 esac
30238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30239   (eval "$ac_compile") 2>conftest.er1
30240   ac_status=$?
30241   grep -v '^ *+' conftest.er1 >conftest.err
30242   rm -f conftest.er1
30243   cat conftest.err >&5
30244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30245   (exit $ac_status); } && {
30246          test -z "$ac_c_werror_flag" ||
30247          test ! -s conftest.err
30248        } && test -s conftest.$ac_objext; then
30249   ac_header_compiler=yes
30250 else
30251   echo "$as_me: failed program was:" >&5
30252 sed 's/^/| /' conftest.$ac_ext >&5
30253
30254         ac_header_compiler=no
30255 fi
30256
30257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30258 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30259 echo "${ECHO_T}$ac_header_compiler" >&6; }
30260
30261 # Is the header present?
30262 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30263 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30264 cat >conftest.$ac_ext <<_ACEOF
30265 /* confdefs.h.  */
30266 _ACEOF
30267 cat confdefs.h >>conftest.$ac_ext
30268 cat >>conftest.$ac_ext <<_ACEOF
30269 /* end confdefs.h.  */
30270 #include <$ac_header>
30271 _ACEOF
30272 if { (ac_try="$ac_cpp conftest.$ac_ext"
30273 case "(($ac_try" in
30274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30275   *) ac_try_echo=$ac_try;;
30276 esac
30277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30278   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30279   ac_status=$?
30280   grep -v '^ *+' conftest.er1 >conftest.err
30281   rm -f conftest.er1
30282   cat conftest.err >&5
30283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30284   (exit $ac_status); } >/dev/null && {
30285          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30286          test ! -s conftest.err
30287        }; then
30288   ac_header_preproc=yes
30289 else
30290   echo "$as_me: failed program was:" >&5
30291 sed 's/^/| /' conftest.$ac_ext >&5
30292
30293   ac_header_preproc=no
30294 fi
30295
30296 rm -f conftest.err conftest.$ac_ext
30297 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30298 echo "${ECHO_T}$ac_header_preproc" >&6; }
30299
30300 # So?  What about this header?
30301 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30302   yes:no: )
30303     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30304 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30305     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30306 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30307     ac_header_preproc=yes
30308     ;;
30309   no:yes:* )
30310     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30311 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30312     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30313 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30314     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30315 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30316     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30317 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30318     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30319 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30320     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30321 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30322     ( cat <<\_ASBOX
30323 ## ------------------------------ ##
30324 ## Report this to bug-tar@gnu.org ##
30325 ## ------------------------------ ##
30326 _ASBOX
30327      ) | sed "s/^/$as_me: WARNING:     /" >&2
30328     ;;
30329 esac
30330 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30331 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30332 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30333   echo $ECHO_N "(cached) $ECHO_C" >&6
30334 else
30335   eval "$as_ac_Header=\$ac_header_preproc"
30336 fi
30337 ac_res=`eval echo '${'$as_ac_Header'}'`
30338                { echo "$as_me:$LINENO: result: $ac_res" >&5
30339 echo "${ECHO_T}$ac_res" >&6; }
30340
30341 fi
30342 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30343   cat >>confdefs.h <<_ACEOF
30344 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30345 _ACEOF
30346
30347 fi
30348
30349 done
30350
30351     if test $ac_cv_header_sys_inttypes_h = yes; then
30352       HAVE_SYS_INTTYPES_H=1
30353     else
30354       HAVE_SYS_INTTYPES_H=0
30355     fi
30356
30357     if test $ac_cv_header_sys_bitypes_h = yes; then
30358       HAVE_SYS_BITYPES_H=1
30359     else
30360       HAVE_SYS_BITYPES_H=0
30361     fi
30362
30363
30364
30365
30366
30367
30368
30369
30370
30371
30372
30373
30374
30375
30376
30377
30378
30379   for gltype in ptrdiff_t sig_atomic_t size_t wchar_t wint_t ; do
30380     { echo "$as_me:$LINENO: checking for bit size of $gltype" >&5
30381 echo $ECHO_N "checking for bit size of $gltype... $ECHO_C" >&6; }
30382 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then
30383   echo $ECHO_N "(cached) $ECHO_C" >&6
30384 else
30385   if test "$cross_compiling" = yes; then
30386   # Depending upon the size, compute the lo and hi bounds.
30387 cat >conftest.$ac_ext <<_ACEOF
30388 /* confdefs.h.  */
30389 _ACEOF
30390 cat confdefs.h >>conftest.$ac_ext
30391 cat >>conftest.$ac_ext <<_ACEOF
30392 /* end confdefs.h.  */
30393
30394   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
30395      included before <wchar.h>.  */
30396   #include <stddef.h>
30397   #include <signal.h>
30398   #if HAVE_WCHAR_H
30399   # include <stdio.h>
30400   # include <time.h>
30401   # include <wchar.h>
30402   #endif
30403
30404 #include <limits.h>
30405 int
30406 main ()
30407 {
30408 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= 0)];
30409 test_array [0] = 0
30410
30411   ;
30412   return 0;
30413 }
30414 _ACEOF
30415 rm -f conftest.$ac_objext
30416 if { (ac_try="$ac_compile"
30417 case "(($ac_try" in
30418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30419   *) ac_try_echo=$ac_try;;
30420 esac
30421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30422   (eval "$ac_compile") 2>conftest.er1
30423   ac_status=$?
30424   grep -v '^ *+' conftest.er1 >conftest.err
30425   rm -f conftest.er1
30426   cat conftest.err >&5
30427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30428   (exit $ac_status); } && {
30429          test -z "$ac_c_werror_flag" ||
30430          test ! -s conftest.err
30431        } && test -s conftest.$ac_objext; then
30432   ac_lo=0 ac_mid=0
30433   while :; do
30434     cat >conftest.$ac_ext <<_ACEOF
30435 /* confdefs.h.  */
30436 _ACEOF
30437 cat confdefs.h >>conftest.$ac_ext
30438 cat >>conftest.$ac_ext <<_ACEOF
30439 /* end confdefs.h.  */
30440
30441   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
30442      included before <wchar.h>.  */
30443   #include <stddef.h>
30444   #include <signal.h>
30445   #if HAVE_WCHAR_H
30446   # include <stdio.h>
30447   # include <time.h>
30448   # include <wchar.h>
30449   #endif
30450
30451 #include <limits.h>
30452 int
30453 main ()
30454 {
30455 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
30456 test_array [0] = 0
30457
30458   ;
30459   return 0;
30460 }
30461 _ACEOF
30462 rm -f conftest.$ac_objext
30463 if { (ac_try="$ac_compile"
30464 case "(($ac_try" in
30465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30466   *) ac_try_echo=$ac_try;;
30467 esac
30468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30469   (eval "$ac_compile") 2>conftest.er1
30470   ac_status=$?
30471   grep -v '^ *+' conftest.er1 >conftest.err
30472   rm -f conftest.er1
30473   cat conftest.err >&5
30474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30475   (exit $ac_status); } && {
30476          test -z "$ac_c_werror_flag" ||
30477          test ! -s conftest.err
30478        } && test -s conftest.$ac_objext; then
30479   ac_hi=$ac_mid; break
30480 else
30481   echo "$as_me: failed program was:" >&5
30482 sed 's/^/| /' conftest.$ac_ext >&5
30483
30484         ac_lo=`expr $ac_mid + 1`
30485                         if test $ac_lo -le $ac_mid; then
30486                           ac_lo= ac_hi=
30487                           break
30488                         fi
30489                         ac_mid=`expr 2 '*' $ac_mid + 1`
30490 fi
30491
30492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30493   done
30494 else
30495   echo "$as_me: failed program was:" >&5
30496 sed 's/^/| /' conftest.$ac_ext >&5
30497
30498         cat >conftest.$ac_ext <<_ACEOF
30499 /* confdefs.h.  */
30500 _ACEOF
30501 cat confdefs.h >>conftest.$ac_ext
30502 cat >>conftest.$ac_ext <<_ACEOF
30503 /* end confdefs.h.  */
30504
30505   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
30506      included before <wchar.h>.  */
30507   #include <stddef.h>
30508   #include <signal.h>
30509   #if HAVE_WCHAR_H
30510   # include <stdio.h>
30511   # include <time.h>
30512   # include <wchar.h>
30513   #endif
30514
30515 #include <limits.h>
30516 int
30517 main ()
30518 {
30519 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) < 0)];
30520 test_array [0] = 0
30521
30522   ;
30523   return 0;
30524 }
30525 _ACEOF
30526 rm -f conftest.$ac_objext
30527 if { (ac_try="$ac_compile"
30528 case "(($ac_try" in
30529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30530   *) ac_try_echo=$ac_try;;
30531 esac
30532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30533   (eval "$ac_compile") 2>conftest.er1
30534   ac_status=$?
30535   grep -v '^ *+' conftest.er1 >conftest.err
30536   rm -f conftest.er1
30537   cat conftest.err >&5
30538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30539   (exit $ac_status); } && {
30540          test -z "$ac_c_werror_flag" ||
30541          test ! -s conftest.err
30542        } && test -s conftest.$ac_objext; then
30543   ac_hi=-1 ac_mid=-1
30544   while :; do
30545     cat >conftest.$ac_ext <<_ACEOF
30546 /* confdefs.h.  */
30547 _ACEOF
30548 cat confdefs.h >>conftest.$ac_ext
30549 cat >>conftest.$ac_ext <<_ACEOF
30550 /* end confdefs.h.  */
30551
30552   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
30553      included before <wchar.h>.  */
30554   #include <stddef.h>
30555   #include <signal.h>
30556   #if HAVE_WCHAR_H
30557   # include <stdio.h>
30558   # include <time.h>
30559   # include <wchar.h>
30560   #endif
30561
30562 #include <limits.h>
30563 int
30564 main ()
30565 {
30566 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= $ac_mid)];
30567 test_array [0] = 0
30568
30569   ;
30570   return 0;
30571 }
30572 _ACEOF
30573 rm -f conftest.$ac_objext
30574 if { (ac_try="$ac_compile"
30575 case "(($ac_try" in
30576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30577   *) ac_try_echo=$ac_try;;
30578 esac
30579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30580   (eval "$ac_compile") 2>conftest.er1
30581   ac_status=$?
30582   grep -v '^ *+' conftest.er1 >conftest.err
30583   rm -f conftest.er1
30584   cat conftest.err >&5
30585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30586   (exit $ac_status); } && {
30587          test -z "$ac_c_werror_flag" ||
30588          test ! -s conftest.err
30589        } && test -s conftest.$ac_objext; then
30590   ac_lo=$ac_mid; break
30591 else
30592   echo "$as_me: failed program was:" >&5
30593 sed 's/^/| /' conftest.$ac_ext >&5
30594
30595         ac_hi=`expr '(' $ac_mid ')' - 1`
30596                         if test $ac_mid -le $ac_hi; then
30597                           ac_lo= ac_hi=
30598                           break
30599                         fi
30600                         ac_mid=`expr 2 '*' $ac_mid`
30601 fi
30602
30603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30604   done
30605 else
30606   echo "$as_me: failed program was:" >&5
30607 sed 's/^/| /' conftest.$ac_ext >&5
30608
30609         ac_lo= ac_hi=
30610 fi
30611
30612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30613 fi
30614
30615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30616 # Binary search between lo and hi bounds.
30617 while test "x$ac_lo" != "x$ac_hi"; do
30618   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
30619   cat >conftest.$ac_ext <<_ACEOF
30620 /* confdefs.h.  */
30621 _ACEOF
30622 cat confdefs.h >>conftest.$ac_ext
30623 cat >>conftest.$ac_ext <<_ACEOF
30624 /* end confdefs.h.  */
30625
30626   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
30627      included before <wchar.h>.  */
30628   #include <stddef.h>
30629   #include <signal.h>
30630   #if HAVE_WCHAR_H
30631   # include <stdio.h>
30632   # include <time.h>
30633   # include <wchar.h>
30634   #endif
30635
30636 #include <limits.h>
30637 int
30638 main ()
30639 {
30640 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
30641 test_array [0] = 0
30642
30643   ;
30644   return 0;
30645 }
30646 _ACEOF
30647 rm -f conftest.$ac_objext
30648 if { (ac_try="$ac_compile"
30649 case "(($ac_try" in
30650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30651   *) ac_try_echo=$ac_try;;
30652 esac
30653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30654   (eval "$ac_compile") 2>conftest.er1
30655   ac_status=$?
30656   grep -v '^ *+' conftest.er1 >conftest.err
30657   rm -f conftest.er1
30658   cat conftest.err >&5
30659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30660   (exit $ac_status); } && {
30661          test -z "$ac_c_werror_flag" ||
30662          test ! -s conftest.err
30663        } && test -s conftest.$ac_objext; then
30664   ac_hi=$ac_mid
30665 else
30666   echo "$as_me: failed program was:" >&5
30667 sed 's/^/| /' conftest.$ac_ext >&5
30668
30669         ac_lo=`expr '(' $ac_mid ')' + 1`
30670 fi
30671
30672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30673 done
30674 case $ac_lo in
30675 ?*) result=$ac_lo;;
30676 '') result=unknown ;;
30677 esac
30678 else
30679   cat >conftest.$ac_ext <<_ACEOF
30680 /* confdefs.h.  */
30681 _ACEOF
30682 cat confdefs.h >>conftest.$ac_ext
30683 cat >>conftest.$ac_ext <<_ACEOF
30684 /* end confdefs.h.  */
30685
30686   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
30687      included before <wchar.h>.  */
30688   #include <stddef.h>
30689   #include <signal.h>
30690   #if HAVE_WCHAR_H
30691   # include <stdio.h>
30692   # include <time.h>
30693   # include <wchar.h>
30694   #endif
30695
30696 #include <limits.h>
30697 static long int longval () { return sizeof ($gltype) * CHAR_BIT; }
30698 static unsigned long int ulongval () { return sizeof ($gltype) * CHAR_BIT; }
30699 #include <stdio.h>
30700 #include <stdlib.h>
30701 int
30702 main ()
30703 {
30704
30705   FILE *f = fopen ("conftest.val", "w");
30706   if (! f)
30707     return 1;
30708   if ((sizeof ($gltype) * CHAR_BIT) < 0)
30709     {
30710       long int i = longval ();
30711       if (i != (sizeof ($gltype) * CHAR_BIT))
30712         return 1;
30713       fprintf (f, "%ld\n", i);
30714     }
30715   else
30716     {
30717       unsigned long int i = ulongval ();
30718       if (i != (sizeof ($gltype) * CHAR_BIT))
30719         return 1;
30720       fprintf (f, "%lu\n", i);
30721     }
30722   return ferror (f) || fclose (f) != 0;
30723
30724   ;
30725   return 0;
30726 }
30727 _ACEOF
30728 rm -f conftest$ac_exeext
30729 if { (ac_try="$ac_link"
30730 case "(($ac_try" in
30731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30732   *) ac_try_echo=$ac_try;;
30733 esac
30734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30735   (eval "$ac_link") 2>&5
30736   ac_status=$?
30737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30738   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30739   { (case "(($ac_try" in
30740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30741   *) ac_try_echo=$ac_try;;
30742 esac
30743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30744   (eval "$ac_try") 2>&5
30745   ac_status=$?
30746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30747   (exit $ac_status); }; }; then
30748   result=`cat conftest.val`
30749 else
30750   echo "$as_me: program exited with status $ac_status" >&5
30751 echo "$as_me: failed program was:" >&5
30752 sed 's/^/| /' conftest.$ac_ext >&5
30753
30754 ( exit $ac_status )
30755 result=unknown
30756 fi
30757 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30758 fi
30759 rm -f conftest.val
30760        eval gl_cv_bitsizeof_${gltype}=\$result
30761
30762 fi
30763 ac_res=`eval echo '${'gl_cv_bitsizeof_${gltype}'}'`
30764                { echo "$as_me:$LINENO: result: $ac_res" >&5
30765 echo "${ECHO_T}$ac_res" >&6; }
30766     eval result=\$gl_cv_bitsizeof_${gltype}
30767     if test $result = unknown; then
30768                                                 result=0
30769     fi
30770     GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
30771     cat >>confdefs.h <<_ACEOF
30772 #define BITSIZEOF_${GLTYPE} $result
30773 _ACEOF
30774
30775     eval BITSIZEOF_${GLTYPE}=\$result
30776   done
30777
30778
30779
30780
30781
30782
30783
30784   for gltype in sig_atomic_t wchar_t wint_t ; do
30785     { echo "$as_me:$LINENO: checking whether $gltype is signed" >&5
30786 echo $ECHO_N "checking whether $gltype is signed... $ECHO_C" >&6; }
30787 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then
30788   echo $ECHO_N "(cached) $ECHO_C" >&6
30789 else
30790   cat >conftest.$ac_ext <<_ACEOF
30791 /* confdefs.h.  */
30792 _ACEOF
30793 cat confdefs.h >>conftest.$ac_ext
30794 cat >>conftest.$ac_ext <<_ACEOF
30795 /* end confdefs.h.  */
30796
30797   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
30798      included before <wchar.h>.  */
30799   #include <stddef.h>
30800   #include <signal.h>
30801   #if HAVE_WCHAR_H
30802   # include <stdio.h>
30803   # include <time.h>
30804   # include <wchar.h>
30805   #endif
30806
30807             int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
30808 int
30809 main ()
30810 {
30811
30812   ;
30813   return 0;
30814 }
30815 _ACEOF
30816 rm -f conftest.$ac_objext
30817 if { (ac_try="$ac_compile"
30818 case "(($ac_try" in
30819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30820   *) ac_try_echo=$ac_try;;
30821 esac
30822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30823   (eval "$ac_compile") 2>conftest.er1
30824   ac_status=$?
30825   grep -v '^ *+' conftest.er1 >conftest.err
30826   rm -f conftest.er1
30827   cat conftest.err >&5
30828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30829   (exit $ac_status); } && {
30830          test -z "$ac_c_werror_flag" ||
30831          test ! -s conftest.err
30832        } && test -s conftest.$ac_objext; then
30833   result=yes
30834 else
30835   echo "$as_me: failed program was:" >&5
30836 sed 's/^/| /' conftest.$ac_ext >&5
30837
30838         result=no
30839 fi
30840
30841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30842        eval gl_cv_type_${gltype}_signed=\$result
30843
30844 fi
30845 ac_res=`eval echo '${'gl_cv_type_${gltype}_signed'}'`
30846                { echo "$as_me:$LINENO: result: $ac_res" >&5
30847 echo "${ECHO_T}$ac_res" >&6; }
30848     eval result=\$gl_cv_type_${gltype}_signed
30849     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
30850     if test "$result" = yes; then
30851       cat >>confdefs.h <<_ACEOF
30852 #define HAVE_SIGNED_${GLTYPE} 1
30853 _ACEOF
30854
30855       eval HAVE_SIGNED_${GLTYPE}=1
30856     else
30857       eval HAVE_SIGNED_${GLTYPE}=0
30858     fi
30859   done
30860
30861
30862   gl_cv_type_ptrdiff_t_signed=yes
30863   gl_cv_type_size_t_signed=no
30864
30865
30866
30867
30868
30869
30870
30871   for gltype in ptrdiff_t sig_atomic_t size_t wchar_t wint_t ; do
30872     { echo "$as_me:$LINENO: checking for $gltype integer literal suffix" >&5
30873 echo $ECHO_N "checking for $gltype integer literal suffix... $ECHO_C" >&6; }
30874 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then
30875   echo $ECHO_N "(cached) $ECHO_C" >&6
30876 else
30877   eval gl_cv_type_${gltype}_suffix=no
30878        eval result=\$gl_cv_type_${gltype}_signed
30879        if test "$result" = yes; then
30880          glsufu=
30881        else
30882          glsufu=u
30883        fi
30884        for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
30885          case $glsuf in
30886            '')  gltype1='int';;
30887            l)   gltype1='long int';;
30888            ll)  gltype1='long long int';;
30889            i64) gltype1='__int64';;
30890            u)   gltype1='unsigned int';;
30891            ul)  gltype1='unsigned long int';;
30892            ull) gltype1='unsigned long long int';;
30893            ui64)gltype1='unsigned __int64';;
30894          esac
30895          cat >conftest.$ac_ext <<_ACEOF
30896 /* confdefs.h.  */
30897 _ACEOF
30898 cat confdefs.h >>conftest.$ac_ext
30899 cat >>conftest.$ac_ext <<_ACEOF
30900 /* end confdefs.h.  */
30901
30902   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
30903      included before <wchar.h>.  */
30904   #include <stddef.h>
30905   #include <signal.h>
30906   #if HAVE_WCHAR_H
30907   # include <stdio.h>
30908   # include <time.h>
30909   # include <wchar.h>
30910   #endif
30911
30912               extern $gltype foo;
30913               extern $gltype1 foo;
30914 int
30915 main ()
30916 {
30917
30918   ;
30919   return 0;
30920 }
30921 _ACEOF
30922 rm -f conftest.$ac_objext
30923 if { (ac_try="$ac_compile"
30924 case "(($ac_try" in
30925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30926   *) ac_try_echo=$ac_try;;
30927 esac
30928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30929   (eval "$ac_compile") 2>conftest.er1
30930   ac_status=$?
30931   grep -v '^ *+' conftest.er1 >conftest.err
30932   rm -f conftest.er1
30933   cat conftest.err >&5
30934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30935   (exit $ac_status); } && {
30936          test -z "$ac_c_werror_flag" ||
30937          test ! -s conftest.err
30938        } && test -s conftest.$ac_objext; then
30939   eval gl_cv_type_${gltype}_suffix=\$glsuf
30940 else
30941   echo "$as_me: failed program was:" >&5
30942 sed 's/^/| /' conftest.$ac_ext >&5
30943
30944
30945 fi
30946
30947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30948          eval result=\$gl_cv_type_${gltype}_suffix
30949          test "$result" != no && break
30950        done
30951 fi
30952 ac_res=`eval echo '${'gl_cv_type_${gltype}_suffix'}'`
30953                { echo "$as_me:$LINENO: result: $ac_res" >&5
30954 echo "${ECHO_T}$ac_res" >&6; }
30955     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
30956     eval result=\$gl_cv_type_${gltype}_suffix
30957     test "$result" = no && result=
30958     eval ${GLTYPE}_SUFFIX=\$result
30959     cat >>confdefs.h <<_ACEOF
30960 #define ${GLTYPE}_SUFFIX $result
30961 _ACEOF
30962
30963   done
30964
30965
30966
30967     STDINT_H=stdint.h
30968   fi
30969
30970
30971
30972
30973
30974
30975
30976
30977
30978
30979
30980
30981
30982
30983      if test $gl_cv_have_include_next = yes; then
30984        gl_cv_next_stdio_h='<'stdio.h'>'
30985      else
30986        { echo "$as_me:$LINENO: checking absolute name of <stdio.h>" >&5
30987 echo $ECHO_N "checking absolute name of <stdio.h>... $ECHO_C" >&6; }
30988 if test "${gl_cv_next_stdio_h+set}" = set; then
30989   echo $ECHO_N "(cached) $ECHO_C" >&6
30990 else
30991
30992           if test $ac_cv_header_stdio_h = yes; then
30993             cat >conftest.$ac_ext <<_ACEOF
30994 /* confdefs.h.  */
30995 _ACEOF
30996 cat confdefs.h >>conftest.$ac_ext
30997 cat >>conftest.$ac_ext <<_ACEOF
30998 /* end confdefs.h.  */
30999 #include <stdio.h>
31000
31001 _ACEOF
31002                                     gl_cv_next_stdio_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31003                sed -n '\#/stdio.h#{
31004                  s#.*"\(.*/stdio.h\)".*#\1#
31005                  s#^/[^/]#//&#
31006                  p
31007                  q
31008                }'`'"'
31009           else
31010             gl_cv_next_stdio_h='<'stdio.h'>'
31011           fi
31012
31013 fi
31014 { echo "$as_me:$LINENO: result: $gl_cv_next_stdio_h" >&5
31015 echo "${ECHO_T}$gl_cv_next_stdio_h" >&6; }
31016      fi
31017      NEXT_STDIO_H=$gl_cv_next_stdio_h
31018
31019
31020
31021       GNULIB_FPRINTF=1
31022   GNULIB_PRINTF=1
31023   GNULIB_VFPRINTF=1
31024   GNULIB_VPRINTF=1
31025   GNULIB_FPUTC=1
31026   GNULIB_PUTC=1
31027   GNULIB_PUTCHAR=1
31028   GNULIB_FPUTS=1
31029   GNULIB_PUTS=1
31030   GNULIB_FWRITE=1
31031
31032
31033
31034
31035
31036
31037
31038
31039
31040
31041
31042
31043
31044
31045      if test $gl_cv_have_include_next = yes; then
31046        gl_cv_next_stdlib_h='<'stdlib.h'>'
31047      else
31048        { echo "$as_me:$LINENO: checking absolute name of <stdlib.h>" >&5
31049 echo $ECHO_N "checking absolute name of <stdlib.h>... $ECHO_C" >&6; }
31050 if test "${gl_cv_next_stdlib_h+set}" = set; then
31051   echo $ECHO_N "(cached) $ECHO_C" >&6
31052 else
31053
31054           if test $ac_cv_header_stdlib_h = yes; then
31055             cat >conftest.$ac_ext <<_ACEOF
31056 /* confdefs.h.  */
31057 _ACEOF
31058 cat confdefs.h >>conftest.$ac_ext
31059 cat >>conftest.$ac_ext <<_ACEOF
31060 /* end confdefs.h.  */
31061 #include <stdlib.h>
31062
31063 _ACEOF
31064                                     gl_cv_next_stdlib_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31065                sed -n '\#/stdlib.h#{
31066                  s#.*"\(.*/stdlib.h\)".*#\1#
31067                  s#^/[^/]#//&#
31068                  p
31069                  q
31070                }'`'"'
31071           else
31072             gl_cv_next_stdlib_h='<'stdlib.h'>'
31073           fi
31074
31075 fi
31076 { echo "$as_me:$LINENO: result: $gl_cv_next_stdlib_h" >&5
31077 echo "${ECHO_T}$gl_cv_next_stdlib_h" >&6; }
31078      fi
31079      NEXT_STDLIB_H=$gl_cv_next_stdlib_h
31080
31081
31082
31083   { echo "$as_me:$LINENO: checking for struct random_data" >&5
31084 echo $ECHO_N "checking for struct random_data... $ECHO_C" >&6; }
31085 if test "${ac_cv_type_struct_random_data+set}" = set; then
31086   echo $ECHO_N "(cached) $ECHO_C" >&6
31087 else
31088   cat >conftest.$ac_ext <<_ACEOF
31089 /* confdefs.h.  */
31090 _ACEOF
31091 cat confdefs.h >>conftest.$ac_ext
31092 cat >>conftest.$ac_ext <<_ACEOF
31093 /* end confdefs.h.  */
31094 #include <stdlib.h>
31095
31096 typedef struct random_data ac__type_new_;
31097 int
31098 main ()
31099 {
31100 if ((ac__type_new_ *) 0)
31101   return 0;
31102 if (sizeof (ac__type_new_))
31103   return 0;
31104   ;
31105   return 0;
31106 }
31107 _ACEOF
31108 rm -f conftest.$ac_objext
31109 if { (ac_try="$ac_compile"
31110 case "(($ac_try" in
31111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31112   *) ac_try_echo=$ac_try;;
31113 esac
31114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31115   (eval "$ac_compile") 2>conftest.er1
31116   ac_status=$?
31117   grep -v '^ *+' conftest.er1 >conftest.err
31118   rm -f conftest.er1
31119   cat conftest.err >&5
31120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31121   (exit $ac_status); } && {
31122          test -z "$ac_c_werror_flag" ||
31123          test ! -s conftest.err
31124        } && test -s conftest.$ac_objext; then
31125   ac_cv_type_struct_random_data=yes
31126 else
31127   echo "$as_me: failed program was:" >&5
31128 sed 's/^/| /' conftest.$ac_ext >&5
31129
31130         ac_cv_type_struct_random_data=no
31131 fi
31132
31133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31134 fi
31135 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_random_data" >&5
31136 echo "${ECHO_T}$ac_cv_type_struct_random_data" >&6; }
31137 if test $ac_cv_type_struct_random_data = yes; then
31138
31139 cat >>confdefs.h <<_ACEOF
31140 #define HAVE_STRUCT_RANDOM_DATA 1
31141 _ACEOF
31142
31143
31144 else
31145   HAVE_STRUCT_RANDOM_DATA=0
31146 fi
31147
31148
31149
31150
31151
31152
31153
31154
31155
31156
31157
31158
31159
31160
31161
31162
31163
31164 for ac_func in stpcpy
31165 do
31166 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31167 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31168 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31169 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31170   echo $ECHO_N "(cached) $ECHO_C" >&6
31171 else
31172   cat >conftest.$ac_ext <<_ACEOF
31173 /* confdefs.h.  */
31174 _ACEOF
31175 cat confdefs.h >>conftest.$ac_ext
31176 cat >>conftest.$ac_ext <<_ACEOF
31177 /* end confdefs.h.  */
31178 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31179    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31180 #define $ac_func innocuous_$ac_func
31181
31182 /* System header to define __stub macros and hopefully few prototypes,
31183     which can conflict with char $ac_func (); below.
31184     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31185     <limits.h> exists even on freestanding compilers.  */
31186
31187 #ifdef __STDC__
31188 # include <limits.h>
31189 #else
31190 # include <assert.h>
31191 #endif
31192
31193 #undef $ac_func
31194
31195 /* Override any GCC internal prototype to avoid an error.
31196    Use char because int might match the return type of a GCC
31197    builtin and then its argument prototype would still apply.  */
31198 #ifdef __cplusplus
31199 extern "C"
31200 #endif
31201 char $ac_func ();
31202 /* The GNU C library defines this for functions which it implements
31203     to always fail with ENOSYS.  Some functions are actually named
31204     something starting with __ and the normal name is an alias.  */
31205 #if defined __stub_$ac_func || defined __stub___$ac_func
31206 choke me
31207 #endif
31208
31209 int
31210 main ()
31211 {
31212 return $ac_func ();
31213   ;
31214   return 0;
31215 }
31216 _ACEOF
31217 rm -f conftest.$ac_objext conftest$ac_exeext
31218 if { (ac_try="$ac_link"
31219 case "(($ac_try" in
31220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31221   *) ac_try_echo=$ac_try;;
31222 esac
31223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31224   (eval "$ac_link") 2>conftest.er1
31225   ac_status=$?
31226   grep -v '^ *+' conftest.er1 >conftest.err
31227   rm -f conftest.er1
31228   cat conftest.err >&5
31229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31230   (exit $ac_status); } && {
31231          test -z "$ac_c_werror_flag" ||
31232          test ! -s conftest.err
31233        } && test -s conftest$ac_exeext &&
31234        $as_test_x conftest$ac_exeext; then
31235   eval "$as_ac_var=yes"
31236 else
31237   echo "$as_me: failed program was:" >&5
31238 sed 's/^/| /' conftest.$ac_ext >&5
31239
31240         eval "$as_ac_var=no"
31241 fi
31242
31243 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31244       conftest$ac_exeext conftest.$ac_ext
31245 fi
31246 ac_res=`eval echo '${'$as_ac_var'}'`
31247                { echo "$as_me:$LINENO: result: $ac_res" >&5
31248 echo "${ECHO_T}$ac_res" >&6; }
31249 if test `eval echo '${'$as_ac_var'}'` = yes; then
31250   cat >>confdefs.h <<_ACEOF
31251 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31252 _ACEOF
31253
31254 else
31255
31256     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
31257
31258 fi
31259 done
31260
31261
31262   if test $ac_cv_func_stpcpy = no; then
31263     HAVE_STPCPY=0
31264
31265   :
31266
31267   fi
31268
31269
31270
31271   GNULIB_STPCPY=1
31272
31273
31274
31275
31276
31277
31278
31279
31280
31281
31282
31283
31284
31285 for ac_func in strcasecmp
31286 do
31287 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31288 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31289 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31290 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31291   echo $ECHO_N "(cached) $ECHO_C" >&6
31292 else
31293   cat >conftest.$ac_ext <<_ACEOF
31294 /* confdefs.h.  */
31295 _ACEOF
31296 cat confdefs.h >>conftest.$ac_ext
31297 cat >>conftest.$ac_ext <<_ACEOF
31298 /* end confdefs.h.  */
31299 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31300    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31301 #define $ac_func innocuous_$ac_func
31302
31303 /* System header to define __stub macros and hopefully few prototypes,
31304     which can conflict with char $ac_func (); below.
31305     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31306     <limits.h> exists even on freestanding compilers.  */
31307
31308 #ifdef __STDC__
31309 # include <limits.h>
31310 #else
31311 # include <assert.h>
31312 #endif
31313
31314 #undef $ac_func
31315
31316 /* Override any GCC internal prototype to avoid an error.
31317    Use char because int might match the return type of a GCC
31318    builtin and then its argument prototype would still apply.  */
31319 #ifdef __cplusplus
31320 extern "C"
31321 #endif
31322 char $ac_func ();
31323 /* The GNU C library defines this for functions which it implements
31324     to always fail with ENOSYS.  Some functions are actually named
31325     something starting with __ and the normal name is an alias.  */
31326 #if defined __stub_$ac_func || defined __stub___$ac_func
31327 choke me
31328 #endif
31329
31330 int
31331 main ()
31332 {
31333 return $ac_func ();
31334   ;
31335   return 0;
31336 }
31337 _ACEOF
31338 rm -f conftest.$ac_objext conftest$ac_exeext
31339 if { (ac_try="$ac_link"
31340 case "(($ac_try" in
31341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31342   *) ac_try_echo=$ac_try;;
31343 esac
31344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31345   (eval "$ac_link") 2>conftest.er1
31346   ac_status=$?
31347   grep -v '^ *+' conftest.er1 >conftest.err
31348   rm -f conftest.er1
31349   cat conftest.err >&5
31350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31351   (exit $ac_status); } && {
31352          test -z "$ac_c_werror_flag" ||
31353          test ! -s conftest.err
31354        } && test -s conftest$ac_exeext &&
31355        $as_test_x conftest$ac_exeext; then
31356   eval "$as_ac_var=yes"
31357 else
31358   echo "$as_me: failed program was:" >&5
31359 sed 's/^/| /' conftest.$ac_ext >&5
31360
31361         eval "$as_ac_var=no"
31362 fi
31363
31364 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31365       conftest$ac_exeext conftest.$ac_ext
31366 fi
31367 ac_res=`eval echo '${'$as_ac_var'}'`
31368                { echo "$as_me:$LINENO: result: $ac_res" >&5
31369 echo "${ECHO_T}$ac_res" >&6; }
31370 if test `eval echo '${'$as_ac_var'}'` = yes; then
31371   cat >>confdefs.h <<_ACEOF
31372 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31373 _ACEOF
31374
31375 else
31376
31377     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
31378
31379 fi
31380 done
31381
31382
31383   if test $ac_cv_func_strcasecmp = no; then
31384     HAVE_STRCASECMP=0
31385
31386   :
31387
31388   fi
31389
31390
31391
31392
31393
31394
31395
31396
31397
31398
31399
31400
31401 for ac_func in strncasecmp
31402 do
31403 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31404 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31405 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31406 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31407   echo $ECHO_N "(cached) $ECHO_C" >&6
31408 else
31409   cat >conftest.$ac_ext <<_ACEOF
31410 /* confdefs.h.  */
31411 _ACEOF
31412 cat confdefs.h >>conftest.$ac_ext
31413 cat >>conftest.$ac_ext <<_ACEOF
31414 /* end confdefs.h.  */
31415 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31416    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31417 #define $ac_func innocuous_$ac_func
31418
31419 /* System header to define __stub macros and hopefully few prototypes,
31420     which can conflict with char $ac_func (); below.
31421     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31422     <limits.h> exists even on freestanding compilers.  */
31423
31424 #ifdef __STDC__
31425 # include <limits.h>
31426 #else
31427 # include <assert.h>
31428 #endif
31429
31430 #undef $ac_func
31431
31432 /* Override any GCC internal prototype to avoid an error.
31433    Use char because int might match the return type of a GCC
31434    builtin and then its argument prototype would still apply.  */
31435 #ifdef __cplusplus
31436 extern "C"
31437 #endif
31438 char $ac_func ();
31439 /* The GNU C library defines this for functions which it implements
31440     to always fail with ENOSYS.  Some functions are actually named
31441     something starting with __ and the normal name is an alias.  */
31442 #if defined __stub_$ac_func || defined __stub___$ac_func
31443 choke me
31444 #endif
31445
31446 int
31447 main ()
31448 {
31449 return $ac_func ();
31450   ;
31451   return 0;
31452 }
31453 _ACEOF
31454 rm -f conftest.$ac_objext conftest$ac_exeext
31455 if { (ac_try="$ac_link"
31456 case "(($ac_try" in
31457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31458   *) ac_try_echo=$ac_try;;
31459 esac
31460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31461   (eval "$ac_link") 2>conftest.er1
31462   ac_status=$?
31463   grep -v '^ *+' conftest.er1 >conftest.err
31464   rm -f conftest.er1
31465   cat conftest.err >&5
31466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31467   (exit $ac_status); } && {
31468          test -z "$ac_c_werror_flag" ||
31469          test ! -s conftest.err
31470        } && test -s conftest$ac_exeext &&
31471        $as_test_x conftest$ac_exeext; then
31472   eval "$as_ac_var=yes"
31473 else
31474   echo "$as_me: failed program was:" >&5
31475 sed 's/^/| /' conftest.$ac_ext >&5
31476
31477         eval "$as_ac_var=no"
31478 fi
31479
31480 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31481       conftest$ac_exeext conftest.$ac_ext
31482 fi
31483 ac_res=`eval echo '${'$as_ac_var'}'`
31484                { echo "$as_me:$LINENO: result: $ac_res" >&5
31485 echo "${ECHO_T}$ac_res" >&6; }
31486 if test `eval echo '${'$as_ac_var'}'` = yes; then
31487   cat >>confdefs.h <<_ACEOF
31488 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31489 _ACEOF
31490
31491 else
31492
31493     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
31494
31495 fi
31496 done
31497
31498
31499   if test $ac_cv_func_strncasecmp = no; then
31500
31501   :
31502
31503   fi
31504   { echo "$as_me:$LINENO: checking whether strncasecmp is declared" >&5
31505 echo $ECHO_N "checking whether strncasecmp is declared... $ECHO_C" >&6; }
31506 if test "${ac_cv_have_decl_strncasecmp+set}" = set; then
31507   echo $ECHO_N "(cached) $ECHO_C" >&6
31508 else
31509   cat >conftest.$ac_ext <<_ACEOF
31510 /* confdefs.h.  */
31511 _ACEOF
31512 cat confdefs.h >>conftest.$ac_ext
31513 cat >>conftest.$ac_ext <<_ACEOF
31514 /* end confdefs.h.  */
31515 $ac_includes_default
31516 int
31517 main ()
31518 {
31519 #ifndef strncasecmp
31520   (void) strncasecmp;
31521 #endif
31522
31523   ;
31524   return 0;
31525 }
31526 _ACEOF
31527 rm -f conftest.$ac_objext
31528 if { (ac_try="$ac_compile"
31529 case "(($ac_try" in
31530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31531   *) ac_try_echo=$ac_try;;
31532 esac
31533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31534   (eval "$ac_compile") 2>conftest.er1
31535   ac_status=$?
31536   grep -v '^ *+' conftest.er1 >conftest.err
31537   rm -f conftest.er1
31538   cat conftest.err >&5
31539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31540   (exit $ac_status); } && {
31541          test -z "$ac_c_werror_flag" ||
31542          test ! -s conftest.err
31543        } && test -s conftest.$ac_objext; then
31544   ac_cv_have_decl_strncasecmp=yes
31545 else
31546   echo "$as_me: failed program was:" >&5
31547 sed 's/^/| /' conftest.$ac_ext >&5
31548
31549         ac_cv_have_decl_strncasecmp=no
31550 fi
31551
31552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31553 fi
31554 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strncasecmp" >&5
31555 echo "${ECHO_T}$ac_cv_have_decl_strncasecmp" >&6; }
31556 if test $ac_cv_have_decl_strncasecmp = yes; then
31557
31558 cat >>confdefs.h <<_ACEOF
31559 #define HAVE_DECL_STRNCASECMP 1
31560 _ACEOF
31561
31562
31563 else
31564   cat >>confdefs.h <<_ACEOF
31565 #define HAVE_DECL_STRNCASECMP 0
31566 _ACEOF
31567
31568
31569 fi
31570
31571
31572   if test $ac_cv_have_decl_strncasecmp = no; then
31573     HAVE_DECL_STRNCASECMP=0
31574   fi
31575
31576
31577
31578
31579
31580
31581
31582
31583
31584
31585
31586
31587
31588
31589
31590 for ac_func in strchrnul
31591 do
31592 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31593 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31594 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31595 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31596   echo $ECHO_N "(cached) $ECHO_C" >&6
31597 else
31598   cat >conftest.$ac_ext <<_ACEOF
31599 /* confdefs.h.  */
31600 _ACEOF
31601 cat confdefs.h >>conftest.$ac_ext
31602 cat >>conftest.$ac_ext <<_ACEOF
31603 /* end confdefs.h.  */
31604 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31605    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31606 #define $ac_func innocuous_$ac_func
31607
31608 /* System header to define __stub macros and hopefully few prototypes,
31609     which can conflict with char $ac_func (); below.
31610     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31611     <limits.h> exists even on freestanding compilers.  */
31612
31613 #ifdef __STDC__
31614 # include <limits.h>
31615 #else
31616 # include <assert.h>
31617 #endif
31618
31619 #undef $ac_func
31620
31621 /* Override any GCC internal prototype to avoid an error.
31622    Use char because int might match the return type of a GCC
31623    builtin and then its argument prototype would still apply.  */
31624 #ifdef __cplusplus
31625 extern "C"
31626 #endif
31627 char $ac_func ();
31628 /* The GNU C library defines this for functions which it implements
31629     to always fail with ENOSYS.  Some functions are actually named
31630     something starting with __ and the normal name is an alias.  */
31631 #if defined __stub_$ac_func || defined __stub___$ac_func
31632 choke me
31633 #endif
31634
31635 int
31636 main ()
31637 {
31638 return $ac_func ();
31639   ;
31640   return 0;
31641 }
31642 _ACEOF
31643 rm -f conftest.$ac_objext conftest$ac_exeext
31644 if { (ac_try="$ac_link"
31645 case "(($ac_try" in
31646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31647   *) ac_try_echo=$ac_try;;
31648 esac
31649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31650   (eval "$ac_link") 2>conftest.er1
31651   ac_status=$?
31652   grep -v '^ *+' conftest.er1 >conftest.err
31653   rm -f conftest.er1
31654   cat conftest.err >&5
31655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31656   (exit $ac_status); } && {
31657          test -z "$ac_c_werror_flag" ||
31658          test ! -s conftest.err
31659        } && test -s conftest$ac_exeext &&
31660        $as_test_x conftest$ac_exeext; then
31661   eval "$as_ac_var=yes"
31662 else
31663   echo "$as_me: failed program was:" >&5
31664 sed 's/^/| /' conftest.$ac_ext >&5
31665
31666         eval "$as_ac_var=no"
31667 fi
31668
31669 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31670       conftest$ac_exeext conftest.$ac_ext
31671 fi
31672 ac_res=`eval echo '${'$as_ac_var'}'`
31673                { echo "$as_me:$LINENO: result: $ac_res" >&5
31674 echo "${ECHO_T}$ac_res" >&6; }
31675 if test `eval echo '${'$as_ac_var'}'` = yes; then
31676   cat >>confdefs.h <<_ACEOF
31677 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31678 _ACEOF
31679
31680 else
31681
31682     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
31683
31684 fi
31685 done
31686
31687
31688   if test $ac_cv_func_strchrnul = no; then
31689     HAVE_STRCHRNUL=0
31690     :
31691   fi
31692
31693
31694
31695   GNULIB_STRCHRNUL=1
31696
31697
31698
31699
31700
31701
31702
31703
31704
31705
31706
31707
31708 for ac_func in strdup
31709 do
31710 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31711 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31712 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31713 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31714   echo $ECHO_N "(cached) $ECHO_C" >&6
31715 else
31716   cat >conftest.$ac_ext <<_ACEOF
31717 /* confdefs.h.  */
31718 _ACEOF
31719 cat confdefs.h >>conftest.$ac_ext
31720 cat >>conftest.$ac_ext <<_ACEOF
31721 /* end confdefs.h.  */
31722 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31723    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31724 #define $ac_func innocuous_$ac_func
31725
31726 /* System header to define __stub macros and hopefully few prototypes,
31727     which can conflict with char $ac_func (); below.
31728     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31729     <limits.h> exists even on freestanding compilers.  */
31730
31731 #ifdef __STDC__
31732 # include <limits.h>
31733 #else
31734 # include <assert.h>
31735 #endif
31736
31737 #undef $ac_func
31738
31739 /* Override any GCC internal prototype to avoid an error.
31740    Use char because int might match the return type of a GCC
31741    builtin and then its argument prototype would still apply.  */
31742 #ifdef __cplusplus
31743 extern "C"
31744 #endif
31745 char $ac_func ();
31746 /* The GNU C library defines this for functions which it implements
31747     to always fail with ENOSYS.  Some functions are actually named
31748     something starting with __ and the normal name is an alias.  */
31749 #if defined __stub_$ac_func || defined __stub___$ac_func
31750 choke me
31751 #endif
31752
31753 int
31754 main ()
31755 {
31756 return $ac_func ();
31757   ;
31758   return 0;
31759 }
31760 _ACEOF
31761 rm -f conftest.$ac_objext conftest$ac_exeext
31762 if { (ac_try="$ac_link"
31763 case "(($ac_try" in
31764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31765   *) ac_try_echo=$ac_try;;
31766 esac
31767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31768   (eval "$ac_link") 2>conftest.er1
31769   ac_status=$?
31770   grep -v '^ *+' conftest.er1 >conftest.err
31771   rm -f conftest.er1
31772   cat conftest.err >&5
31773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31774   (exit $ac_status); } && {
31775          test -z "$ac_c_werror_flag" ||
31776          test ! -s conftest.err
31777        } && test -s conftest$ac_exeext &&
31778        $as_test_x conftest$ac_exeext; then
31779   eval "$as_ac_var=yes"
31780 else
31781   echo "$as_me: failed program was:" >&5
31782 sed 's/^/| /' conftest.$ac_ext >&5
31783
31784         eval "$as_ac_var=no"
31785 fi
31786
31787 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31788       conftest$ac_exeext conftest.$ac_ext
31789 fi
31790 ac_res=`eval echo '${'$as_ac_var'}'`
31791                { echo "$as_me:$LINENO: result: $ac_res" >&5
31792 echo "${ECHO_T}$ac_res" >&6; }
31793 if test `eval echo '${'$as_ac_var'}'` = yes; then
31794   cat >>confdefs.h <<_ACEOF
31795 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31796 _ACEOF
31797
31798 else
31799
31800     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
31801
31802 fi
31803 done
31804
31805
31806
31807
31808
31809
31810   if test $ac_cv_have_decl_strdup = no; then
31811     HAVE_DECL_STRDUP=0
31812   fi
31813   :
31814
31815
31816
31817   GNULIB_STRDUP=1
31818
31819
31820
31821   if test $REPLACE_STRERROR = 1; then
31822
31823
31824
31825
31826
31827
31828
31829
31830   gl_LIBOBJS="$gl_LIBOBJS strerror.$ac_objext"
31831
31832
31833 cat >>confdefs.h <<_ACEOF
31834 #define REPLACE_STRERROR $REPLACE_STRERROR
31835 _ACEOF
31836
31837   fi
31838
31839
31840
31841   GNULIB_STRERROR=1
31842
31843
31844
31845
31846
31847
31848
31849
31850
31851
31852
31853
31854
31855
31856
31857   if test $ac_cv_have_decl_strndup = no; then
31858     HAVE_DECL_STRNDUP=0
31859   fi
31860
31861   # AIX 4.3.3, AIX 5.1 have a function that fails to add the terminating '\0'.
31862   { echo "$as_me:$LINENO: checking for working strndup" >&5
31863 echo $ECHO_N "checking for working strndup... $ECHO_C" >&6; }
31864 if test "${gl_cv_func_strndup+set}" = set; then
31865   echo $ECHO_N "(cached) $ECHO_C" >&6
31866 else
31867   if test "$cross_compiling" = yes; then
31868   { echo "$as_me:$LINENO: checking for strndup" >&5
31869 echo $ECHO_N "checking for strndup... $ECHO_C" >&6; }
31870 if test "${ac_cv_func_strndup+set}" = set; then
31871   echo $ECHO_N "(cached) $ECHO_C" >&6
31872 else
31873   cat >conftest.$ac_ext <<_ACEOF
31874 /* confdefs.h.  */
31875 _ACEOF
31876 cat confdefs.h >>conftest.$ac_ext
31877 cat >>conftest.$ac_ext <<_ACEOF
31878 /* end confdefs.h.  */
31879 /* Define strndup to an innocuous variant, in case <limits.h> declares strndup.
31880    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31881 #define strndup innocuous_strndup
31882
31883 /* System header to define __stub macros and hopefully few prototypes,
31884     which can conflict with char strndup (); below.
31885     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31886     <limits.h> exists even on freestanding compilers.  */
31887
31888 #ifdef __STDC__
31889 # include <limits.h>
31890 #else
31891 # include <assert.h>
31892 #endif
31893
31894 #undef strndup
31895
31896 /* Override any GCC internal prototype to avoid an error.
31897    Use char because int might match the return type of a GCC
31898    builtin and then its argument prototype would still apply.  */
31899 #ifdef __cplusplus
31900 extern "C"
31901 #endif
31902 char strndup ();
31903 /* The GNU C library defines this for functions which it implements
31904     to always fail with ENOSYS.  Some functions are actually named
31905     something starting with __ and the normal name is an alias.  */
31906 #if defined __stub_strndup || defined __stub___strndup
31907 choke me
31908 #endif
31909
31910 int
31911 main ()
31912 {
31913 return strndup ();
31914   ;
31915   return 0;
31916 }
31917 _ACEOF
31918 rm -f conftest.$ac_objext conftest$ac_exeext
31919 if { (ac_try="$ac_link"
31920 case "(($ac_try" in
31921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31922   *) ac_try_echo=$ac_try;;
31923 esac
31924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31925   (eval "$ac_link") 2>conftest.er1
31926   ac_status=$?
31927   grep -v '^ *+' conftest.er1 >conftest.err
31928   rm -f conftest.er1
31929   cat conftest.err >&5
31930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31931   (exit $ac_status); } && {
31932          test -z "$ac_c_werror_flag" ||
31933          test ! -s conftest.err
31934        } && test -s conftest$ac_exeext &&
31935        $as_test_x conftest$ac_exeext; then
31936   ac_cv_func_strndup=yes
31937 else
31938   echo "$as_me: failed program was:" >&5
31939 sed 's/^/| /' conftest.$ac_ext >&5
31940
31941         ac_cv_func_strndup=no
31942 fi
31943
31944 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31945       conftest$ac_exeext conftest.$ac_ext
31946 fi
31947 { echo "$as_me:$LINENO: result: $ac_cv_func_strndup" >&5
31948 echo "${ECHO_T}$ac_cv_func_strndup" >&6; }
31949 if test $ac_cv_func_strndup = yes; then
31950   cat >conftest.$ac_ext <<_ACEOF
31951 /* confdefs.h.  */
31952 _ACEOF
31953 cat confdefs.h >>conftest.$ac_ext
31954 cat >>conftest.$ac_ext <<_ACEOF
31955 /* end confdefs.h.  */
31956
31957 #ifdef _AIX
31958                too risky
31959 #endif
31960
31961 _ACEOF
31962 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31963   $EGREP "too risky" >/dev/null 2>&1; then
31964   gl_cv_func_strndup=no
31965 else
31966   gl_cv_func_strndup=yes
31967 fi
31968 rm -f conftest*
31969
31970 else
31971   gl_cv_func_strndup=no
31972 fi
31973
31974 else
31975   cat >conftest.$ac_ext <<_ACEOF
31976
31977        /* confdefs.h.  */
31978 _ACEOF
31979 cat confdefs.h >>conftest.$ac_ext
31980 cat >>conftest.$ac_ext <<_ACEOF
31981 /* end confdefs.h.  */
31982 #include <string.h>
31983                          #include <stdlib.h>
31984 int
31985 main ()
31986 {
31987
31988 #ifndef HAVE_DECL_STRNDUP
31989   extern char *strndup (const char *, size_t);
31990 #endif
31991   char *s;
31992   s = strndup ("some longer string", 15);
31993   free (s);
31994   s = strndup ("shorter string", 13);
31995   return s[13] != '\0';
31996   ;
31997   return 0;
31998 }
31999 _ACEOF
32000 rm -f conftest$ac_exeext
32001 if { (ac_try="$ac_link"
32002 case "(($ac_try" in
32003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32004   *) ac_try_echo=$ac_try;;
32005 esac
32006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32007   (eval "$ac_link") 2>&5
32008   ac_status=$?
32009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32010   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32011   { (case "(($ac_try" in
32012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32013   *) ac_try_echo=$ac_try;;
32014 esac
32015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32016   (eval "$ac_try") 2>&5
32017   ac_status=$?
32018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32019   (exit $ac_status); }; }; then
32020   gl_cv_func_strndup=yes
32021 else
32022   echo "$as_me: program exited with status $ac_status" >&5
32023 echo "$as_me: failed program was:" >&5
32024 sed 's/^/| /' conftest.$ac_ext >&5
32025
32026 ( exit $ac_status )
32027 gl_cv_func_strndup=no
32028 fi
32029 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32030 fi
32031
32032
32033 fi
32034 { echo "$as_me:$LINENO: result: $gl_cv_func_strndup" >&5
32035 echo "${ECHO_T}$gl_cv_func_strndup" >&6; }
32036   if test $gl_cv_func_strndup = yes; then
32037
32038 cat >>confdefs.h <<\_ACEOF
32039 #define HAVE_STRNDUP 1
32040 _ACEOF
32041
32042   else
32043     HAVE_STRNDUP=0
32044
32045
32046
32047
32048
32049
32050
32051
32052   gl_LIBOBJS="$gl_LIBOBJS strndup.$ac_objext"
32053
32054     :
32055   fi
32056
32057
32058
32059   GNULIB_STRNDUP=1
32060
32061
32062
32063
32064
32065
32066
32067
32068
32069   if test $ac_cv_have_decl_strnlen = no; then
32070     HAVE_DECL_STRNLEN=0
32071   fi
32072
32073   { echo "$as_me:$LINENO: checking for working strnlen" >&5
32074 echo $ECHO_N "checking for working strnlen... $ECHO_C" >&6; }
32075 if test "${ac_cv_func_strnlen_working+set}" = set; then
32076   echo $ECHO_N "(cached) $ECHO_C" >&6
32077 else
32078   if test "$cross_compiling" = yes; then
32079   ac_cv_func_strnlen_working=no
32080 else
32081   cat >conftest.$ac_ext <<_ACEOF
32082 /* confdefs.h.  */
32083 _ACEOF
32084 cat confdefs.h >>conftest.$ac_ext
32085 cat >>conftest.$ac_ext <<_ACEOF
32086 /* end confdefs.h.  */
32087 $ac_includes_default
32088 int
32089 main ()
32090 {
32091
32092 #define S "foobar"
32093 #define S_LEN (sizeof S - 1)
32094
32095   /* At least one implementation is buggy: that of AIX 4.3 would
32096      give strnlen (S, 1) == 3.  */
32097
32098   int i;
32099   for (i = 0; i < S_LEN + 1; ++i)
32100     {
32101       int expected = i <= S_LEN ? i : S_LEN;
32102       if (strnlen (S, i) != expected)
32103         return 1;
32104     }
32105   return 0;
32106
32107   ;
32108   return 0;
32109 }
32110 _ACEOF
32111 rm -f conftest$ac_exeext
32112 if { (ac_try="$ac_link"
32113 case "(($ac_try" in
32114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32115   *) ac_try_echo=$ac_try;;
32116 esac
32117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32118   (eval "$ac_link") 2>&5
32119   ac_status=$?
32120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32121   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32122   { (case "(($ac_try" in
32123   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32124   *) ac_try_echo=$ac_try;;
32125 esac
32126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32127   (eval "$ac_try") 2>&5
32128   ac_status=$?
32129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32130   (exit $ac_status); }; }; then
32131   ac_cv_func_strnlen_working=yes
32132 else
32133   echo "$as_me: program exited with status $ac_status" >&5
32134 echo "$as_me: failed program was:" >&5
32135 sed 's/^/| /' conftest.$ac_ext >&5
32136
32137 ( exit $ac_status )
32138 ac_cv_func_strnlen_working=no
32139 fi
32140 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32141 fi
32142
32143
32144 fi
32145 { echo "$as_me:$LINENO: result: $ac_cv_func_strnlen_working" >&5
32146 echo "${ECHO_T}$ac_cv_func_strnlen_working" >&6; }
32147 test $ac_cv_func_strnlen_working = no &&
32148
32149
32150
32151
32152
32153
32154
32155   gl_LIBOBJS="$gl_LIBOBJS strnlen.$ac_objext"
32156
32157
32158   if test $ac_cv_func_strnlen_working = no; then
32159     # This is necessary because automake-1.6.1 doesn't understand
32160     # that the above use of AC_FUNC_STRNLEN means we may have to use
32161     # lib/strnlen.c.
32162     #AC_LIBOBJ(strnlen)
32163
32164 cat >>confdefs.h <<\_ACEOF
32165 #define strnlen rpl_strnlen
32166 _ACEOF
32167
32168     :
32169   fi
32170
32171
32172
32173   GNULIB_STRNLEN=1
32174
32175
32176
32177
32178
32179   { echo "$as_me:$LINENO: checking whether <inttypes.h> defines strtoimax as a macro" >&5
32180 echo $ECHO_N "checking whether <inttypes.h> defines strtoimax as a macro... $ECHO_C" >&6; }
32181 if test "${gl_cv_func_strtoimax_macro+set}" = set; then
32182   echo $ECHO_N "(cached) $ECHO_C" >&6
32183 else
32184   cat >conftest.$ac_ext <<_ACEOF
32185 /* confdefs.h.  */
32186 _ACEOF
32187 cat confdefs.h >>conftest.$ac_ext
32188 cat >>conftest.$ac_ext <<_ACEOF
32189 /* end confdefs.h.  */
32190 #include <inttypes.h>
32191 #ifdef strtoimax
32192  inttypes_h_defines_strtoimax
32193 #endif
32194 _ACEOF
32195 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32196   $EGREP "inttypes_h_defines_strtoimax" >/dev/null 2>&1; then
32197   gl_cv_func_strtoimax_macro=yes
32198 else
32199   gl_cv_func_strtoimax_macro=no
32200 fi
32201 rm -f conftest*
32202
32203 fi
32204 { echo "$as_me:$LINENO: result: $gl_cv_func_strtoimax_macro" >&5
32205 echo "${ECHO_T}$gl_cv_func_strtoimax_macro" >&6; }
32206
32207   if test "$gl_cv_func_strtoimax_macro" != yes; then
32208
32209
32210
32211
32212
32213
32214
32215
32216
32217 for ac_func in strtoimax
32218 do
32219 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32220 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32221 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32222 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32223   echo $ECHO_N "(cached) $ECHO_C" >&6
32224 else
32225   cat >conftest.$ac_ext <<_ACEOF
32226 /* confdefs.h.  */
32227 _ACEOF
32228 cat confdefs.h >>conftest.$ac_ext
32229 cat >>conftest.$ac_ext <<_ACEOF
32230 /* end confdefs.h.  */
32231 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32232    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32233 #define $ac_func innocuous_$ac_func
32234
32235 /* System header to define __stub macros and hopefully few prototypes,
32236     which can conflict with char $ac_func (); below.
32237     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32238     <limits.h> exists even on freestanding compilers.  */
32239
32240 #ifdef __STDC__
32241 # include <limits.h>
32242 #else
32243 # include <assert.h>
32244 #endif
32245
32246 #undef $ac_func
32247
32248 /* Override any GCC internal prototype to avoid an error.
32249    Use char because int might match the return type of a GCC
32250    builtin and then its argument prototype would still apply.  */
32251 #ifdef __cplusplus
32252 extern "C"
32253 #endif
32254 char $ac_func ();
32255 /* The GNU C library defines this for functions which it implements
32256     to always fail with ENOSYS.  Some functions are actually named
32257     something starting with __ and the normal name is an alias.  */
32258 #if defined __stub_$ac_func || defined __stub___$ac_func
32259 choke me
32260 #endif
32261
32262 int
32263 main ()
32264 {
32265 return $ac_func ();
32266   ;
32267   return 0;
32268 }
32269 _ACEOF
32270 rm -f conftest.$ac_objext conftest$ac_exeext
32271 if { (ac_try="$ac_link"
32272 case "(($ac_try" in
32273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32274   *) ac_try_echo=$ac_try;;
32275 esac
32276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32277   (eval "$ac_link") 2>conftest.er1
32278   ac_status=$?
32279   grep -v '^ *+' conftest.er1 >conftest.err
32280   rm -f conftest.er1
32281   cat conftest.err >&5
32282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32283   (exit $ac_status); } && {
32284          test -z "$ac_c_werror_flag" ||
32285          test ! -s conftest.err
32286        } && test -s conftest$ac_exeext &&
32287        $as_test_x conftest$ac_exeext; then
32288   eval "$as_ac_var=yes"
32289 else
32290   echo "$as_me: failed program was:" >&5
32291 sed 's/^/| /' conftest.$ac_ext >&5
32292
32293         eval "$as_ac_var=no"
32294 fi
32295
32296 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32297       conftest$ac_exeext conftest.$ac_ext
32298 fi
32299 ac_res=`eval echo '${'$as_ac_var'}'`
32300                { echo "$as_me:$LINENO: result: $ac_res" >&5
32301 echo "${ECHO_T}$ac_res" >&6; }
32302 if test `eval echo '${'$as_ac_var'}'` = yes; then
32303   cat >>confdefs.h <<_ACEOF
32304 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32305 _ACEOF
32306
32307 else
32308
32309     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
32310
32311 fi
32312 done
32313
32314
32315     if test $ac_cv_func_strtoimax = no; then
32316
32317   { echo "$as_me:$LINENO: checking whether strtoll is declared" >&5
32318 echo $ECHO_N "checking whether strtoll is declared... $ECHO_C" >&6; }
32319 if test "${ac_cv_have_decl_strtoll+set}" = set; then
32320   echo $ECHO_N "(cached) $ECHO_C" >&6
32321 else
32322   cat >conftest.$ac_ext <<_ACEOF
32323 /* confdefs.h.  */
32324 _ACEOF
32325 cat confdefs.h >>conftest.$ac_ext
32326 cat >>conftest.$ac_ext <<_ACEOF
32327 /* end confdefs.h.  */
32328 $ac_includes_default
32329 int
32330 main ()
32331 {
32332 #ifndef strtoll
32333   (void) strtoll;
32334 #endif
32335
32336   ;
32337   return 0;
32338 }
32339 _ACEOF
32340 rm -f conftest.$ac_objext
32341 if { (ac_try="$ac_compile"
32342 case "(($ac_try" in
32343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32344   *) ac_try_echo=$ac_try;;
32345 esac
32346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32347   (eval "$ac_compile") 2>conftest.er1
32348   ac_status=$?
32349   grep -v '^ *+' conftest.er1 >conftest.err
32350   rm -f conftest.er1
32351   cat conftest.err >&5
32352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32353   (exit $ac_status); } && {
32354          test -z "$ac_c_werror_flag" ||
32355          test ! -s conftest.err
32356        } && test -s conftest.$ac_objext; then
32357   ac_cv_have_decl_strtoll=yes
32358 else
32359   echo "$as_me: failed program was:" >&5
32360 sed 's/^/| /' conftest.$ac_ext >&5
32361
32362         ac_cv_have_decl_strtoll=no
32363 fi
32364
32365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32366 fi
32367 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoll" >&5
32368 echo "${ECHO_T}$ac_cv_have_decl_strtoll" >&6; }
32369 if test $ac_cv_have_decl_strtoll = yes; then
32370
32371 cat >>confdefs.h <<_ACEOF
32372 #define HAVE_DECL_STRTOLL 1
32373 _ACEOF
32374
32375
32376 else
32377   cat >>confdefs.h <<_ACEOF
32378 #define HAVE_DECL_STRTOLL 0
32379 _ACEOF
32380
32381
32382 fi
32383
32384
32385
32386
32387     fi
32388   fi
32389
32390
32391
32392   GNULIB_STRTOIMAX=1
32393
32394
32395
32396
32397
32398
32399
32400
32401
32402
32403
32404 for ac_func in strtol
32405 do
32406 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32407 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32408 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32409 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32410   echo $ECHO_N "(cached) $ECHO_C" >&6
32411 else
32412   cat >conftest.$ac_ext <<_ACEOF
32413 /* confdefs.h.  */
32414 _ACEOF
32415 cat confdefs.h >>conftest.$ac_ext
32416 cat >>conftest.$ac_ext <<_ACEOF
32417 /* end confdefs.h.  */
32418 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32419    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32420 #define $ac_func innocuous_$ac_func
32421
32422 /* System header to define __stub macros and hopefully few prototypes,
32423     which can conflict with char $ac_func (); below.
32424     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32425     <limits.h> exists even on freestanding compilers.  */
32426
32427 #ifdef __STDC__
32428 # include <limits.h>
32429 #else
32430 # include <assert.h>
32431 #endif
32432
32433 #undef $ac_func
32434
32435 /* Override any GCC internal prototype to avoid an error.
32436    Use char because int might match the return type of a GCC
32437    builtin and then its argument prototype would still apply.  */
32438 #ifdef __cplusplus
32439 extern "C"
32440 #endif
32441 char $ac_func ();
32442 /* The GNU C library defines this for functions which it implements
32443     to always fail with ENOSYS.  Some functions are actually named
32444     something starting with __ and the normal name is an alias.  */
32445 #if defined __stub_$ac_func || defined __stub___$ac_func
32446 choke me
32447 #endif
32448
32449 int
32450 main ()
32451 {
32452 return $ac_func ();
32453   ;
32454   return 0;
32455 }
32456 _ACEOF
32457 rm -f conftest.$ac_objext conftest$ac_exeext
32458 if { (ac_try="$ac_link"
32459 case "(($ac_try" in
32460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32461   *) ac_try_echo=$ac_try;;
32462 esac
32463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32464   (eval "$ac_link") 2>conftest.er1
32465   ac_status=$?
32466   grep -v '^ *+' conftest.er1 >conftest.err
32467   rm -f conftest.er1
32468   cat conftest.err >&5
32469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32470   (exit $ac_status); } && {
32471          test -z "$ac_c_werror_flag" ||
32472          test ! -s conftest.err
32473        } && test -s conftest$ac_exeext &&
32474        $as_test_x conftest$ac_exeext; then
32475   eval "$as_ac_var=yes"
32476 else
32477   echo "$as_me: failed program was:" >&5
32478 sed 's/^/| /' conftest.$ac_ext >&5
32479
32480         eval "$as_ac_var=no"
32481 fi
32482
32483 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32484       conftest$ac_exeext conftest.$ac_ext
32485 fi
32486 ac_res=`eval echo '${'$as_ac_var'}'`
32487                { echo "$as_me:$LINENO: result: $ac_res" >&5
32488 echo "${ECHO_T}$ac_res" >&6; }
32489 if test `eval echo '${'$as_ac_var'}'` = yes; then
32490   cat >>confdefs.h <<_ACEOF
32491 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32492 _ACEOF
32493
32494 else
32495
32496     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
32497
32498 fi
32499 done
32500
32501
32502
32503
32504
32505
32506   if test "$ac_cv_type_long_long_int" = yes; then
32507
32508
32509
32510
32511
32512
32513
32514
32515
32516 for ac_func in strtoll
32517 do
32518 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32519 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32520 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32521 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32522   echo $ECHO_N "(cached) $ECHO_C" >&6
32523 else
32524   cat >conftest.$ac_ext <<_ACEOF
32525 /* confdefs.h.  */
32526 _ACEOF
32527 cat confdefs.h >>conftest.$ac_ext
32528 cat >>conftest.$ac_ext <<_ACEOF
32529 /* end confdefs.h.  */
32530 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32531    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32532 #define $ac_func innocuous_$ac_func
32533
32534 /* System header to define __stub macros and hopefully few prototypes,
32535     which can conflict with char $ac_func (); below.
32536     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32537     <limits.h> exists even on freestanding compilers.  */
32538
32539 #ifdef __STDC__
32540 # include <limits.h>
32541 #else
32542 # include <assert.h>
32543 #endif
32544
32545 #undef $ac_func
32546
32547 /* Override any GCC internal prototype to avoid an error.
32548    Use char because int might match the return type of a GCC
32549    builtin and then its argument prototype would still apply.  */
32550 #ifdef __cplusplus
32551 extern "C"
32552 #endif
32553 char $ac_func ();
32554 /* The GNU C library defines this for functions which it implements
32555     to always fail with ENOSYS.  Some functions are actually named
32556     something starting with __ and the normal name is an alias.  */
32557 #if defined __stub_$ac_func || defined __stub___$ac_func
32558 choke me
32559 #endif
32560
32561 int
32562 main ()
32563 {
32564 return $ac_func ();
32565   ;
32566   return 0;
32567 }
32568 _ACEOF
32569 rm -f conftest.$ac_objext conftest$ac_exeext
32570 if { (ac_try="$ac_link"
32571 case "(($ac_try" in
32572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32573   *) ac_try_echo=$ac_try;;
32574 esac
32575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32576   (eval "$ac_link") 2>conftest.er1
32577   ac_status=$?
32578   grep -v '^ *+' conftest.er1 >conftest.err
32579   rm -f conftest.er1
32580   cat conftest.err >&5
32581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32582   (exit $ac_status); } && {
32583          test -z "$ac_c_werror_flag" ||
32584          test ! -s conftest.err
32585        } && test -s conftest$ac_exeext &&
32586        $as_test_x conftest$ac_exeext; then
32587   eval "$as_ac_var=yes"
32588 else
32589   echo "$as_me: failed program was:" >&5
32590 sed 's/^/| /' conftest.$ac_ext >&5
32591
32592         eval "$as_ac_var=no"
32593 fi
32594
32595 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32596       conftest$ac_exeext conftest.$ac_ext
32597 fi
32598 ac_res=`eval echo '${'$as_ac_var'}'`
32599                { echo "$as_me:$LINENO: result: $ac_res" >&5
32600 echo "${ECHO_T}$ac_res" >&6; }
32601 if test `eval echo '${'$as_ac_var'}'` = yes; then
32602   cat >>confdefs.h <<_ACEOF
32603 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32604 _ACEOF
32605
32606 else
32607
32608     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
32609
32610 fi
32611 done
32612
32613
32614     if test $ac_cv_func_strtoll = no; then
32615       HAVE_STRTOLL=0
32616
32617   :
32618
32619     fi
32620   fi
32621
32622
32623
32624   GNULIB_STRTOLL=1
32625
32626
32627
32628
32629
32630
32631
32632
32633
32634
32635
32636 for ac_func in strtoul
32637 do
32638 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32639 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32640 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32641 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32642   echo $ECHO_N "(cached) $ECHO_C" >&6
32643 else
32644   cat >conftest.$ac_ext <<_ACEOF
32645 /* confdefs.h.  */
32646 _ACEOF
32647 cat confdefs.h >>conftest.$ac_ext
32648 cat >>conftest.$ac_ext <<_ACEOF
32649 /* end confdefs.h.  */
32650 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32651    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32652 #define $ac_func innocuous_$ac_func
32653
32654 /* System header to define __stub macros and hopefully few prototypes,
32655     which can conflict with char $ac_func (); below.
32656     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32657     <limits.h> exists even on freestanding compilers.  */
32658
32659 #ifdef __STDC__
32660 # include <limits.h>
32661 #else
32662 # include <assert.h>
32663 #endif
32664
32665 #undef $ac_func
32666
32667 /* Override any GCC internal prototype to avoid an error.
32668    Use char because int might match the return type of a GCC
32669    builtin and then its argument prototype would still apply.  */
32670 #ifdef __cplusplus
32671 extern "C"
32672 #endif
32673 char $ac_func ();
32674 /* The GNU C library defines this for functions which it implements
32675     to always fail with ENOSYS.  Some functions are actually named
32676     something starting with __ and the normal name is an alias.  */
32677 #if defined __stub_$ac_func || defined __stub___$ac_func
32678 choke me
32679 #endif
32680
32681 int
32682 main ()
32683 {
32684 return $ac_func ();
32685   ;
32686   return 0;
32687 }
32688 _ACEOF
32689 rm -f conftest.$ac_objext conftest$ac_exeext
32690 if { (ac_try="$ac_link"
32691 case "(($ac_try" in
32692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32693   *) ac_try_echo=$ac_try;;
32694 esac
32695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32696   (eval "$ac_link") 2>conftest.er1
32697   ac_status=$?
32698   grep -v '^ *+' conftest.er1 >conftest.err
32699   rm -f conftest.er1
32700   cat conftest.err >&5
32701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32702   (exit $ac_status); } && {
32703          test -z "$ac_c_werror_flag" ||
32704          test ! -s conftest.err
32705        } && test -s conftest$ac_exeext &&
32706        $as_test_x conftest$ac_exeext; then
32707   eval "$as_ac_var=yes"
32708 else
32709   echo "$as_me: failed program was:" >&5
32710 sed 's/^/| /' conftest.$ac_ext >&5
32711
32712         eval "$as_ac_var=no"
32713 fi
32714
32715 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32716       conftest$ac_exeext conftest.$ac_ext
32717 fi
32718 ac_res=`eval echo '${'$as_ac_var'}'`
32719                { echo "$as_me:$LINENO: result: $ac_res" >&5
32720 echo "${ECHO_T}$ac_res" >&6; }
32721 if test `eval echo '${'$as_ac_var'}'` = yes; then
32722   cat >>confdefs.h <<_ACEOF
32723 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32724 _ACEOF
32725
32726 else
32727
32728     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
32729
32730 fi
32731 done
32732
32733
32734
32735
32736
32737
32738   if test "$ac_cv_type_unsigned_long_long_int" = yes; then
32739
32740
32741
32742
32743
32744
32745
32746
32747
32748 for ac_func in strtoull
32749 do
32750 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32751 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32752 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32753 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32754   echo $ECHO_N "(cached) $ECHO_C" >&6
32755 else
32756   cat >conftest.$ac_ext <<_ACEOF
32757 /* confdefs.h.  */
32758 _ACEOF
32759 cat confdefs.h >>conftest.$ac_ext
32760 cat >>conftest.$ac_ext <<_ACEOF
32761 /* end confdefs.h.  */
32762 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32763    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32764 #define $ac_func innocuous_$ac_func
32765
32766 /* System header to define __stub macros and hopefully few prototypes,
32767     which can conflict with char $ac_func (); below.
32768     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32769     <limits.h> exists even on freestanding compilers.  */
32770
32771 #ifdef __STDC__
32772 # include <limits.h>
32773 #else
32774 # include <assert.h>
32775 #endif
32776
32777 #undef $ac_func
32778
32779 /* Override any GCC internal prototype to avoid an error.
32780    Use char because int might match the return type of a GCC
32781    builtin and then its argument prototype would still apply.  */
32782 #ifdef __cplusplus
32783 extern "C"
32784 #endif
32785 char $ac_func ();
32786 /* The GNU C library defines this for functions which it implements
32787     to always fail with ENOSYS.  Some functions are actually named
32788     something starting with __ and the normal name is an alias.  */
32789 #if defined __stub_$ac_func || defined __stub___$ac_func
32790 choke me
32791 #endif
32792
32793 int
32794 main ()
32795 {
32796 return $ac_func ();
32797   ;
32798   return 0;
32799 }
32800 _ACEOF
32801 rm -f conftest.$ac_objext conftest$ac_exeext
32802 if { (ac_try="$ac_link"
32803 case "(($ac_try" in
32804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32805   *) ac_try_echo=$ac_try;;
32806 esac
32807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32808   (eval "$ac_link") 2>conftest.er1
32809   ac_status=$?
32810   grep -v '^ *+' conftest.er1 >conftest.err
32811   rm -f conftest.er1
32812   cat conftest.err >&5
32813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32814   (exit $ac_status); } && {
32815          test -z "$ac_c_werror_flag" ||
32816          test ! -s conftest.err
32817        } && test -s conftest$ac_exeext &&
32818        $as_test_x conftest$ac_exeext; then
32819   eval "$as_ac_var=yes"
32820 else
32821   echo "$as_me: failed program was:" >&5
32822 sed 's/^/| /' conftest.$ac_ext >&5
32823
32824         eval "$as_ac_var=no"
32825 fi
32826
32827 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32828       conftest$ac_exeext conftest.$ac_ext
32829 fi
32830 ac_res=`eval echo '${'$as_ac_var'}'`
32831                { echo "$as_me:$LINENO: result: $ac_res" >&5
32832 echo "${ECHO_T}$ac_res" >&6; }
32833 if test `eval echo '${'$as_ac_var'}'` = yes; then
32834   cat >>confdefs.h <<_ACEOF
32835 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32836 _ACEOF
32837
32838 else
32839
32840     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
32841
32842 fi
32843 done
32844
32845
32846     if test $ac_cv_func_strtoull = no; then
32847       HAVE_STRTOULL=0
32848
32849   :
32850
32851     fi
32852   fi
32853
32854
32855
32856   GNULIB_STRTOULL=1
32857
32858
32859
32860
32861
32862   { echo "$as_me:$LINENO: checking whether <inttypes.h> defines strtoumax as a macro" >&5
32863 echo $ECHO_N "checking whether <inttypes.h> defines strtoumax as a macro... $ECHO_C" >&6; }
32864 if test "${gl_cv_func_strtoumax_macro+set}" = set; then
32865   echo $ECHO_N "(cached) $ECHO_C" >&6
32866 else
32867   cat >conftest.$ac_ext <<_ACEOF
32868 /* confdefs.h.  */
32869 _ACEOF
32870 cat confdefs.h >>conftest.$ac_ext
32871 cat >>conftest.$ac_ext <<_ACEOF
32872 /* end confdefs.h.  */
32873 #include <inttypes.h>
32874 #ifdef strtoumax
32875  inttypes_h_defines_strtoumax
32876 #endif
32877 _ACEOF
32878 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32879   $EGREP "inttypes_h_defines_strtoumax" >/dev/null 2>&1; then
32880   gl_cv_func_strtoumax_macro=yes
32881 else
32882   gl_cv_func_strtoumax_macro=no
32883 fi
32884 rm -f conftest*
32885
32886 fi
32887 { echo "$as_me:$LINENO: result: $gl_cv_func_strtoumax_macro" >&5
32888 echo "${ECHO_T}$gl_cv_func_strtoumax_macro" >&6; }
32889
32890   if test "$gl_cv_func_strtoumax_macro" != yes; then
32891
32892
32893
32894
32895
32896
32897
32898
32899
32900 for ac_func in strtoumax
32901 do
32902 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32903 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32904 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32905 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32906   echo $ECHO_N "(cached) $ECHO_C" >&6
32907 else
32908   cat >conftest.$ac_ext <<_ACEOF
32909 /* confdefs.h.  */
32910 _ACEOF
32911 cat confdefs.h >>conftest.$ac_ext
32912 cat >>conftest.$ac_ext <<_ACEOF
32913 /* end confdefs.h.  */
32914 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32915    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32916 #define $ac_func innocuous_$ac_func
32917
32918 /* System header to define __stub macros and hopefully few prototypes,
32919     which can conflict with char $ac_func (); below.
32920     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32921     <limits.h> exists even on freestanding compilers.  */
32922
32923 #ifdef __STDC__
32924 # include <limits.h>
32925 #else
32926 # include <assert.h>
32927 #endif
32928
32929 #undef $ac_func
32930
32931 /* Override any GCC internal prototype to avoid an error.
32932    Use char because int might match the return type of a GCC
32933    builtin and then its argument prototype would still apply.  */
32934 #ifdef __cplusplus
32935 extern "C"
32936 #endif
32937 char $ac_func ();
32938 /* The GNU C library defines this for functions which it implements
32939     to always fail with ENOSYS.  Some functions are actually named
32940     something starting with __ and the normal name is an alias.  */
32941 #if defined __stub_$ac_func || defined __stub___$ac_func
32942 choke me
32943 #endif
32944
32945 int
32946 main ()
32947 {
32948 return $ac_func ();
32949   ;
32950   return 0;
32951 }
32952 _ACEOF
32953 rm -f conftest.$ac_objext conftest$ac_exeext
32954 if { (ac_try="$ac_link"
32955 case "(($ac_try" in
32956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32957   *) ac_try_echo=$ac_try;;
32958 esac
32959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32960   (eval "$ac_link") 2>conftest.er1
32961   ac_status=$?
32962   grep -v '^ *+' conftest.er1 >conftest.err
32963   rm -f conftest.er1
32964   cat conftest.err >&5
32965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32966   (exit $ac_status); } && {
32967          test -z "$ac_c_werror_flag" ||
32968          test ! -s conftest.err
32969        } && test -s conftest$ac_exeext &&
32970        $as_test_x conftest$ac_exeext; then
32971   eval "$as_ac_var=yes"
32972 else
32973   echo "$as_me: failed program was:" >&5
32974 sed 's/^/| /' conftest.$ac_ext >&5
32975
32976         eval "$as_ac_var=no"
32977 fi
32978
32979 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32980       conftest$ac_exeext conftest.$ac_ext
32981 fi
32982 ac_res=`eval echo '${'$as_ac_var'}'`
32983                { echo "$as_me:$LINENO: result: $ac_res" >&5
32984 echo "${ECHO_T}$ac_res" >&6; }
32985 if test `eval echo '${'$as_ac_var'}'` = yes; then
32986   cat >>confdefs.h <<_ACEOF
32987 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32988 _ACEOF
32989
32990 else
32991
32992     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
32993
32994 fi
32995 done
32996
32997
32998     if test $ac_cv_func_strtoumax = no; then
32999
33000   { echo "$as_me:$LINENO: checking whether strtoull is declared" >&5
33001 echo $ECHO_N "checking whether strtoull is declared... $ECHO_C" >&6; }
33002 if test "${ac_cv_have_decl_strtoull+set}" = set; then
33003   echo $ECHO_N "(cached) $ECHO_C" >&6
33004 else
33005   cat >conftest.$ac_ext <<_ACEOF
33006 /* confdefs.h.  */
33007 _ACEOF
33008 cat confdefs.h >>conftest.$ac_ext
33009 cat >>conftest.$ac_ext <<_ACEOF
33010 /* end confdefs.h.  */
33011 $ac_includes_default
33012 int
33013 main ()
33014 {
33015 #ifndef strtoull
33016   (void) strtoull;
33017 #endif
33018
33019   ;
33020   return 0;
33021 }
33022 _ACEOF
33023 rm -f conftest.$ac_objext
33024 if { (ac_try="$ac_compile"
33025 case "(($ac_try" in
33026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33027   *) ac_try_echo=$ac_try;;
33028 esac
33029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33030   (eval "$ac_compile") 2>conftest.er1
33031   ac_status=$?
33032   grep -v '^ *+' conftest.er1 >conftest.err
33033   rm -f conftest.er1
33034   cat conftest.err >&5
33035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33036   (exit $ac_status); } && {
33037          test -z "$ac_c_werror_flag" ||
33038          test ! -s conftest.err
33039        } && test -s conftest.$ac_objext; then
33040   ac_cv_have_decl_strtoull=yes
33041 else
33042   echo "$as_me: failed program was:" >&5
33043 sed 's/^/| /' conftest.$ac_ext >&5
33044
33045         ac_cv_have_decl_strtoull=no
33046 fi
33047
33048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33049 fi
33050 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoull" >&5
33051 echo "${ECHO_T}$ac_cv_have_decl_strtoull" >&6; }
33052 if test $ac_cv_have_decl_strtoull = yes; then
33053
33054 cat >>confdefs.h <<_ACEOF
33055 #define HAVE_DECL_STRTOULL 1
33056 _ACEOF
33057
33058
33059 else
33060   cat >>confdefs.h <<_ACEOF
33061 #define HAVE_DECL_STRTOULL 0
33062 _ACEOF
33063
33064
33065 fi
33066
33067
33068
33069
33070     fi
33071   fi
33072
33073
33074
33075   GNULIB_STRTOUMAX=1
33076
33077
33078
33079
33080
33081
33082
33083
33084
33085
33086   if test $ac_cv_func_lstat = yes; then
33087     HAVE_LSTAT=1
33088   else
33089     HAVE_LSTAT=0
33090   fi
33091
33092
33093
33094
33095
33096
33097
33098
33099
33100
33101
33102
33103
33104
33105
33106
33107      if test $gl_cv_have_include_next = yes; then
33108        gl_cv_next_sys_stat_h='<'sys/stat.h'>'
33109      else
33110        { echo "$as_me:$LINENO: checking absolute name of <sys/stat.h>" >&5
33111 echo $ECHO_N "checking absolute name of <sys/stat.h>... $ECHO_C" >&6; }
33112 if test "${gl_cv_next_sys_stat_h+set}" = set; then
33113   echo $ECHO_N "(cached) $ECHO_C" >&6
33114 else
33115
33116           if test $ac_cv_header_sys_stat_h = yes; then
33117             cat >conftest.$ac_ext <<_ACEOF
33118 /* confdefs.h.  */
33119 _ACEOF
33120 cat confdefs.h >>conftest.$ac_ext
33121 cat >>conftest.$ac_ext <<_ACEOF
33122 /* end confdefs.h.  */
33123 #include <sys/stat.h>
33124
33125 _ACEOF
33126                                     gl_cv_next_sys_stat_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33127                sed -n '\#/sys/stat.h#{
33128                  s#.*"\(.*/sys/stat.h\)".*#\1#
33129                  s#^/[^/]#//&#
33130                  p
33131                  q
33132                }'`'"'
33133           else
33134             gl_cv_next_sys_stat_h='<'sys/stat.h'>'
33135           fi
33136
33137 fi
33138 { echo "$as_me:$LINENO: result: $gl_cv_next_sys_stat_h" >&5
33139 echo "${ECHO_T}$gl_cv_next_sys_stat_h" >&6; }
33140      fi
33141      NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
33142
33143
33144
33145   SYS_STAT_H='sys/stat.h'
33146
33147
33148       { echo "$as_me:$LINENO: checking for nlink_t" >&5
33149 echo $ECHO_N "checking for nlink_t... $ECHO_C" >&6; }
33150 if test "${ac_cv_type_nlink_t+set}" = set; then
33151   echo $ECHO_N "(cached) $ECHO_C" >&6
33152 else
33153   cat >conftest.$ac_ext <<_ACEOF
33154 /* confdefs.h.  */
33155 _ACEOF
33156 cat confdefs.h >>conftest.$ac_ext
33157 cat >>conftest.$ac_ext <<_ACEOF
33158 /* end confdefs.h.  */
33159 #include <sys/types.h>
33160      #include <sys/stat.h>
33161
33162 typedef nlink_t ac__type_new_;
33163 int
33164 main ()
33165 {
33166 if ((ac__type_new_ *) 0)
33167   return 0;
33168 if (sizeof (ac__type_new_))
33169   return 0;
33170   ;
33171   return 0;
33172 }
33173 _ACEOF
33174 rm -f conftest.$ac_objext
33175 if { (ac_try="$ac_compile"
33176 case "(($ac_try" in
33177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33178   *) ac_try_echo=$ac_try;;
33179 esac
33180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33181   (eval "$ac_compile") 2>conftest.er1
33182   ac_status=$?
33183   grep -v '^ *+' conftest.er1 >conftest.err
33184   rm -f conftest.er1
33185   cat conftest.err >&5
33186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33187   (exit $ac_status); } && {
33188          test -z "$ac_c_werror_flag" ||
33189          test ! -s conftest.err
33190        } && test -s conftest.$ac_objext; then
33191   ac_cv_type_nlink_t=yes
33192 else
33193   echo "$as_me: failed program was:" >&5
33194 sed 's/^/| /' conftest.$ac_ext >&5
33195
33196         ac_cv_type_nlink_t=no
33197 fi
33198
33199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33200 fi
33201 { echo "$as_me:$LINENO: result: $ac_cv_type_nlink_t" >&5
33202 echo "${ECHO_T}$ac_cv_type_nlink_t" >&6; }
33203 if test $ac_cv_type_nlink_t = yes; then
33204   :
33205 else
33206
33207 cat >>confdefs.h <<\_ACEOF
33208 #define nlink_t int
33209 _ACEOF
33210
33211 fi
33212
33213
33214
33215   { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
33216 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
33217 if test -z "$MKDIR_P"; then
33218   if test "${ac_cv_path_mkdir+set}" = set; then
33219   echo $ECHO_N "(cached) $ECHO_C" >&6
33220 else
33221   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33222 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
33223 do
33224   IFS=$as_save_IFS
33225   test -z "$as_dir" && as_dir=.
33226   for ac_prog in mkdir gmkdir; do
33227          for ac_exec_ext in '' $ac_executable_extensions; do
33228            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
33229            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
33230              'mkdir (GNU coreutils) '* | \
33231              'mkdir (coreutils) '* | \
33232              'mkdir (fileutils) '4.1*)
33233                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
33234                break 3;;
33235            esac
33236          done
33237        done
33238 done
33239 IFS=$as_save_IFS
33240
33241 fi
33242
33243   if test "${ac_cv_path_mkdir+set}" = set; then
33244     MKDIR_P="$ac_cv_path_mkdir -p"
33245   else
33246     # As a last resort, use the slow shell script.  Don't cache a
33247     # value for MKDIR_P within a source directory, because that will
33248     # break other packages using the cache if that directory is
33249     # removed, or if the value is a relative name.
33250     test -d ./--version && rmdir ./--version
33251     MKDIR_P="$ac_install_sh -d"
33252   fi
33253 fi
33254 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
33255 echo "${ECHO_T}$MKDIR_P" >&6; }
33256
33257
33258
33259
33260   { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
33261 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
33262 if test -z "$MKDIR_P"; then
33263   if test "${ac_cv_path_mkdir+set}" = set; then
33264   echo $ECHO_N "(cached) $ECHO_C" >&6
33265 else
33266   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33267 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
33268 do
33269   IFS=$as_save_IFS
33270   test -z "$as_dir" && as_dir=.
33271   for ac_prog in mkdir gmkdir; do
33272          for ac_exec_ext in '' $ac_executable_extensions; do
33273            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
33274            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
33275              'mkdir (GNU coreutils) '* | \
33276              'mkdir (coreutils) '* | \
33277              'mkdir (fileutils) '4.1*)
33278                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
33279                break 3;;
33280            esac
33281          done
33282        done
33283 done
33284 IFS=$as_save_IFS
33285
33286 fi
33287
33288   if test "${ac_cv_path_mkdir+set}" = set; then
33289     MKDIR_P="$ac_cv_path_mkdir -p"
33290   else
33291     # As a last resort, use the slow shell script.  Don't cache a
33292     # value for MKDIR_P within a source directory, because that will
33293     # break other packages using the cache if that directory is
33294     # removed, or if the value is a relative name.
33295     test -d ./--version && rmdir ./--version
33296     MKDIR_P="$ac_install_sh -d"
33297   fi
33298 fi
33299 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
33300 echo "${ECHO_T}$MKDIR_P" >&6; }
33301
33302
33303
33304
33305
33306
33307
33308
33309   if test $ac_cv_header_sysexits_h = yes; then
33310     HAVE_SYSEXITS_H=1
33311
33312
33313
33314
33315
33316
33317
33318
33319
33320
33321      if test $gl_cv_have_include_next = yes; then
33322        gl_cv_next_sysexits_h='<'sysexits.h'>'
33323      else
33324        { echo "$as_me:$LINENO: checking absolute name of <sysexits.h>" >&5
33325 echo $ECHO_N "checking absolute name of <sysexits.h>... $ECHO_C" >&6; }
33326 if test "${gl_cv_next_sysexits_h+set}" = set; then
33327   echo $ECHO_N "(cached) $ECHO_C" >&6
33328 else
33329
33330           if test $ac_cv_header_sysexits_h = yes; then
33331             cat >conftest.$ac_ext <<_ACEOF
33332 /* confdefs.h.  */
33333 _ACEOF
33334 cat confdefs.h >>conftest.$ac_ext
33335 cat >>conftest.$ac_ext <<_ACEOF
33336 /* end confdefs.h.  */
33337 #include <sysexits.h>
33338
33339 _ACEOF
33340                                     gl_cv_next_sysexits_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33341                sed -n '\#/sysexits.h#{
33342                  s#.*"\(.*/sysexits.h\)".*#\1#
33343                  s#^/[^/]#//&#
33344                  p
33345                  q
33346                }'`'"'
33347           else
33348             gl_cv_next_sysexits_h='<'sysexits.h'>'
33349           fi
33350
33351 fi
33352 { echo "$as_me:$LINENO: result: $gl_cv_next_sysexits_h" >&5
33353 echo "${ECHO_T}$gl_cv_next_sysexits_h" >&6; }
33354      fi
33355      NEXT_SYSEXITS_H=$gl_cv_next_sysexits_h
33356
33357
33358
33359     cat >conftest.$ac_ext <<_ACEOF
33360 /* confdefs.h.  */
33361 _ACEOF
33362 cat confdefs.h >>conftest.$ac_ext
33363 cat >>conftest.$ac_ext <<_ACEOF
33364 /* end confdefs.h.  */
33365 #include <sysexits.h>
33366 int
33367 main ()
33368 {
33369 switch (0)
33370        {
33371        case EX_OK:
33372        case EX_USAGE:
33373        case EX_DATAERR:
33374        case EX_NOINPUT:
33375        case EX_NOUSER:
33376        case EX_NOHOST:
33377        case EX_UNAVAILABLE:
33378        case EX_SOFTWARE:
33379        case EX_OSERR:
33380        case EX_OSFILE:
33381        case EX_CANTCREAT:
33382        case EX_IOERR:
33383        case EX_TEMPFAIL:
33384        case EX_PROTOCOL:
33385        case EX_NOPERM:
33386        case EX_CONFIG:
33387          break;
33388        }
33389
33390   ;
33391   return 0;
33392 }
33393 _ACEOF
33394 rm -f conftest.$ac_objext
33395 if { (ac_try="$ac_compile"
33396 case "(($ac_try" in
33397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33398   *) ac_try_echo=$ac_try;;
33399 esac
33400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33401   (eval "$ac_compile") 2>conftest.er1
33402   ac_status=$?
33403   grep -v '^ *+' conftest.er1 >conftest.err
33404   rm -f conftest.er1
33405   cat conftest.err >&5
33406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33407   (exit $ac_status); } && {
33408          test -z "$ac_c_werror_flag" ||
33409          test ! -s conftest.err
33410        } && test -s conftest.$ac_objext; then
33411   SYSEXITS_H=
33412 else
33413   echo "$as_me: failed program was:" >&5
33414 sed 's/^/| /' conftest.$ac_ext >&5
33415
33416         SYSEXITS_H=sysexits.h
33417 fi
33418
33419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33420   else
33421     HAVE_SYSEXITS_H=0
33422     SYSEXITS_H=sysexits.h
33423   fi
33424
33425
33426
33427
33428
33429
33430
33431
33432
33433
33434
33435
33436
33437
33438   gl_LIBOBJS="$gl_LIBOBJS tempname.$ac_objext"
33439
33440
33441   :
33442
33443
33444
33445
33446
33447
33448
33449
33450
33451
33452
33453   { echo "$as_me:$LINENO: checking whether localtime_r is compatible with its POSIX signature" >&5
33454 echo $ECHO_N "checking whether localtime_r is compatible with its POSIX signature... $ECHO_C" >&6; }
33455 if test "${gl_cv_time_r_posix+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 #include <time.h>
33465 int
33466 main ()
33467 {
33468 /* We don't need to append 'restrict's to the argument types,
33469            even though the POSIX signature has the 'restrict's,
33470            since C99 says they can't affect type compatibility.  */
33471         struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
33472         if (ptr) return 0;
33473         /* Check the return type is a pointer.  On HP-UX 10 it is 'int'.  */
33474         *localtime_r (0, 0);
33475   ;
33476   return 0;
33477 }
33478 _ACEOF
33479 rm -f conftest.$ac_objext
33480 if { (ac_try="$ac_compile"
33481 case "(($ac_try" in
33482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33483   *) ac_try_echo=$ac_try;;
33484 esac
33485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33486   (eval "$ac_compile") 2>conftest.er1
33487   ac_status=$?
33488   grep -v '^ *+' conftest.er1 >conftest.err
33489   rm -f conftest.er1
33490   cat conftest.err >&5
33491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33492   (exit $ac_status); } && {
33493          test -z "$ac_c_werror_flag" ||
33494          test ! -s conftest.err
33495        } && test -s conftest.$ac_objext; then
33496   gl_cv_time_r_posix=yes
33497 else
33498   echo "$as_me: failed program was:" >&5
33499 sed 's/^/| /' conftest.$ac_ext >&5
33500
33501         gl_cv_time_r_posix=no
33502 fi
33503
33504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33505 fi
33506 { echo "$as_me:$LINENO: result: $gl_cv_time_r_posix" >&5
33507 echo "${ECHO_T}$gl_cv_time_r_posix" >&6; }
33508   if test $gl_cv_time_r_posix = yes; then
33509     REPLACE_LOCALTIME_R=0
33510   else
33511     REPLACE_LOCALTIME_R=1
33512
33513
33514
33515
33516
33517
33518
33519
33520   gl_LIBOBJS="$gl_LIBOBJS time_r.$ac_objext"
33521
33522
33523   :
33524
33525   fi
33526
33527
33528
33529
33530
33531
33532
33533
33534
33535
33536
33537
33538
33539
33540
33541
33542
33543      if test $gl_cv_have_include_next = yes; then
33544        gl_cv_next_unistd_h='<'unistd.h'>'
33545      else
33546        { echo "$as_me:$LINENO: checking absolute name of <unistd.h>" >&5
33547 echo $ECHO_N "checking absolute name of <unistd.h>... $ECHO_C" >&6; }
33548 if test "${gl_cv_next_unistd_h+set}" = set; then
33549   echo $ECHO_N "(cached) $ECHO_C" >&6
33550 else
33551
33552           if test $ac_cv_header_unistd_h = yes; then
33553             cat >conftest.$ac_ext <<_ACEOF
33554 /* confdefs.h.  */
33555 _ACEOF
33556 cat confdefs.h >>conftest.$ac_ext
33557 cat >>conftest.$ac_ext <<_ACEOF
33558 /* end confdefs.h.  */
33559 #include <unistd.h>
33560
33561 _ACEOF
33562                                     gl_cv_next_unistd_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33563                sed -n '\#/unistd.h#{
33564                  s#.*"\(.*/unistd.h\)".*#\1#
33565                  s#^/[^/]#//&#
33566                  p
33567                  q
33568                }'`'"'
33569           else
33570             gl_cv_next_unistd_h='<'unistd.h'>'
33571           fi
33572
33573 fi
33574 { echo "$as_me:$LINENO: result: $gl_cv_next_unistd_h" >&5
33575 echo "${ECHO_T}$gl_cv_next_unistd_h" >&6; }
33576      fi
33577      NEXT_UNISTD_H=$gl_cv_next_unistd_h
33578
33579
33580
33581
33582
33583
33584
33585
33586
33587
33588   if test $ac_cv_header_unistd_h = yes; then
33589     HAVE_UNISTD_H=1
33590   else
33591     HAVE_UNISTD_H=0
33592   fi
33593
33594
33595
33596
33597
33598
33599
33600
33601
33602
33603
33604
33605
33606
33607
33608
33609
33610   gl_LIBOBJS="$gl_LIBOBJS dup-safer.$ac_objext"
33611
33612
33613
33614
33615
33616
33617
33618
33619
33620   gl_LIBOBJS="$gl_LIBOBJS fd-safer.$ac_objext"
33621
33622
33623
33624
33625
33626
33627
33628
33629
33630   gl_LIBOBJS="$gl_LIBOBJS pipe-safer.$ac_objext"
33631
33632
33633
33634
33635
33636
33637
33638
33639
33640
33641
33642
33643
33644
33645
33646
33647
33648
33649
33650   gl_LIBOBJS="$gl_LIBOBJS unlinkdir.$ac_objext"
33651
33652
33653   # The Hurd, the Linux kernel, the FreeBSD kernel version 2.2 and later,
33654   # and Cygwin never let anyone (even root) unlink directories.
33655   # If anyone knows of another system for which unlink can never
33656   # remove a directory, please report it to <bug-coreutils@gnu.org>.
33657   # Unfortunately this is difficult to test for, since it requires root access
33658   # and might create garbage in the file system,
33659   # so the code below simply relies on the kernel name and version number.
33660   case $host in
33661   *-*-gnu[0-9]* | \
33662   *-*-linux-* | *-*-linux | \
33663   *-*-freebsd2.2* | *-*-freebsd[3-9]* | *-*-freebsd[1-9][0-9]* | \
33664   *-cygwin)
33665
33666 cat >>confdefs.h <<\_ACEOF
33667 #define UNLINK_CANNOT_UNLINK_DIR 1
33668 _ACEOF
33669 ;;
33670   esac
33671
33672
33673
33674 cat >>confdefs.h <<\_ACEOF
33675 #define USE_UNLOCKED_IO 1
33676 _ACEOF
33677
33678
33679
33680
33681
33682
33683
33684
33685
33686
33687
33688
33689
33690
33691
33692
33693
33694
33695
33696
33697
33698
33699
33700
33701
33702
33703
33704
33705
33706
33707
33708
33709
33710
33711
33712
33713
33714
33715
33716
33717
33718
33719
33720
33721
33722
33723
33724
33725
33726
33727
33728
33729
33730
33731
33732
33733
33734
33735
33736
33737 for ac_func in unsetenv
33738 do
33739 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33740 { echo "$as_me:$LINENO: checking for $ac_func" >&5
33741 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33742 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33743   echo $ECHO_N "(cached) $ECHO_C" >&6
33744 else
33745   cat >conftest.$ac_ext <<_ACEOF
33746 /* confdefs.h.  */
33747 _ACEOF
33748 cat confdefs.h >>conftest.$ac_ext
33749 cat >>conftest.$ac_ext <<_ACEOF
33750 /* end confdefs.h.  */
33751 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33752    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33753 #define $ac_func innocuous_$ac_func
33754
33755 /* System header to define __stub macros and hopefully few prototypes,
33756     which can conflict with char $ac_func (); below.
33757     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33758     <limits.h> exists even on freestanding compilers.  */
33759
33760 #ifdef __STDC__
33761 # include <limits.h>
33762 #else
33763 # include <assert.h>
33764 #endif
33765
33766 #undef $ac_func
33767
33768 /* Override any GCC internal prototype to avoid an error.
33769    Use char because int might match the return type of a GCC
33770    builtin and then its argument prototype would still apply.  */
33771 #ifdef __cplusplus
33772 extern "C"
33773 #endif
33774 char $ac_func ();
33775 /* The GNU C library defines this for functions which it implements
33776     to always fail with ENOSYS.  Some functions are actually named
33777     something starting with __ and the normal name is an alias.  */
33778 #if defined __stub_$ac_func || defined __stub___$ac_func
33779 choke me
33780 #endif
33781
33782 int
33783 main ()
33784 {
33785 return $ac_func ();
33786   ;
33787   return 0;
33788 }
33789 _ACEOF
33790 rm -f conftest.$ac_objext conftest$ac_exeext
33791 if { (ac_try="$ac_link"
33792 case "(($ac_try" in
33793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33794   *) ac_try_echo=$ac_try;;
33795 esac
33796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33797   (eval "$ac_link") 2>conftest.er1
33798   ac_status=$?
33799   grep -v '^ *+' conftest.er1 >conftest.err
33800   rm -f conftest.er1
33801   cat conftest.err >&5
33802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33803   (exit $ac_status); } && {
33804          test -z "$ac_c_werror_flag" ||
33805          test ! -s conftest.err
33806        } && test -s conftest$ac_exeext &&
33807        $as_test_x conftest$ac_exeext; then
33808   eval "$as_ac_var=yes"
33809 else
33810   echo "$as_me: failed program was:" >&5
33811 sed 's/^/| /' conftest.$ac_ext >&5
33812
33813         eval "$as_ac_var=no"
33814 fi
33815
33816 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33817       conftest$ac_exeext conftest.$ac_ext
33818 fi
33819 ac_res=`eval echo '${'$as_ac_var'}'`
33820                { echo "$as_me:$LINENO: result: $ac_res" >&5
33821 echo "${ECHO_T}$ac_res" >&6; }
33822 if test `eval echo '${'$as_ac_var'}'` = yes; then
33823   cat >>confdefs.h <<_ACEOF
33824 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33825 _ACEOF
33826
33827 fi
33828 done
33829
33830   if test $ac_cv_func_unsetenv = no; then
33831     HAVE_UNSETENV=0
33832
33833
33834
33835
33836
33837
33838
33839
33840   gl_LIBOBJS="$gl_LIBOBJS unsetenv.$ac_objext"
33841
33842
33843
33844
33845
33846
33847
33848
33849
33850
33851   else
33852     { echo "$as_me:$LINENO: checking for unsetenv() return type" >&5
33853 echo $ECHO_N "checking for unsetenv() return type... $ECHO_C" >&6; }
33854 if test "${gt_cv_func_unsetenv_ret+set}" = set; then
33855   echo $ECHO_N "(cached) $ECHO_C" >&6
33856 else
33857   cat >conftest.$ac_ext <<_ACEOF
33858 /* confdefs.h.  */
33859 _ACEOF
33860 cat confdefs.h >>conftest.$ac_ext
33861 cat >>conftest.$ac_ext <<_ACEOF
33862 /* end confdefs.h.  */
33863 #include <stdlib.h>
33864 extern
33865 #ifdef __cplusplus
33866 "C"
33867 #endif
33868 #if defined(__STDC__) || defined(__cplusplus)
33869 int unsetenv (const char *name);
33870 #else
33871 int unsetenv();
33872 #endif
33873
33874 int
33875 main ()
33876 {
33877
33878   ;
33879   return 0;
33880 }
33881 _ACEOF
33882 rm -f conftest.$ac_objext
33883 if { (ac_try="$ac_compile"
33884 case "(($ac_try" in
33885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33886   *) ac_try_echo=$ac_try;;
33887 esac
33888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33889   (eval "$ac_compile") 2>conftest.er1
33890   ac_status=$?
33891   grep -v '^ *+' conftest.er1 >conftest.err
33892   rm -f conftest.er1
33893   cat conftest.err >&5
33894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33895   (exit $ac_status); } && {
33896          test -z "$ac_c_werror_flag" ||
33897          test ! -s conftest.err
33898        } && test -s conftest.$ac_objext; then
33899   gt_cv_func_unsetenv_ret='int'
33900 else
33901   echo "$as_me: failed program was:" >&5
33902 sed 's/^/| /' conftest.$ac_ext >&5
33903
33904         gt_cv_func_unsetenv_ret='void'
33905 fi
33906
33907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33908 fi
33909 { echo "$as_me:$LINENO: result: $gt_cv_func_unsetenv_ret" >&5
33910 echo "${ECHO_T}$gt_cv_func_unsetenv_ret" >&6; }
33911     if test $gt_cv_func_unsetenv_ret = 'void'; then
33912       VOID_UNSETENV=1
33913     fi
33914   fi
33915
33916
33917
33918   GNULIB_UNSETENV=1
33919
33920
33921
33922   if test $ac_cv_func_utime_null = no; then
33923
33924
33925
33926
33927
33928
33929
33930
33931   gl_LIBOBJS="$gl_LIBOBJS utime.$ac_objext"
33932
33933
33934 cat >>confdefs.h <<\_ACEOF
33935 #define utime rpl_utime
33936 _ACEOF
33937
33938
33939
33940
33941
33942
33943
33944
33945
33946   { echo "$as_me:$LINENO: checking whether utimes accepts a null argument" >&5
33947 echo $ECHO_N "checking whether utimes accepts a null argument... $ECHO_C" >&6; }
33948 if test "${ac_cv_func_utimes_null+set}" = set; then
33949   echo $ECHO_N "(cached) $ECHO_C" >&6
33950 else
33951   rm -f conftest.data; > conftest.data
33952 if test "$cross_compiling" = yes; then
33953   ac_cv_func_utimes_null=no
33954 else
33955   cat >conftest.$ac_ext <<_ACEOF
33956 /* confdefs.h.  */
33957 _ACEOF
33958 cat confdefs.h >>conftest.$ac_ext
33959 cat >>conftest.$ac_ext <<_ACEOF
33960 /* end confdefs.h.  */
33961
33962 /* In case stat has been defined to rpl_stat, undef it here.  */
33963 #undef stat
33964 #include <sys/types.h>
33965 #include <sys/stat.h>
33966 #include <sys/time.h>
33967 int
33968 main () {
33969 struct stat s, t;
33970 return ! (stat ("conftest.data", &s) == 0
33971           && utimes ("conftest.data", 0) == 0
33972           && stat ("conftest.data", &t) == 0
33973           && t.st_mtime >= s.st_mtime
33974           && t.st_mtime - s.st_mtime < 120));
33975 }
33976 _ACEOF
33977 rm -f conftest$ac_exeext
33978 if { (ac_try="$ac_link"
33979 case "(($ac_try" in
33980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33981   *) ac_try_echo=$ac_try;;
33982 esac
33983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33984   (eval "$ac_link") 2>&5
33985   ac_status=$?
33986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33987   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33988   { (case "(($ac_try" in
33989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33990   *) ac_try_echo=$ac_try;;
33991 esac
33992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33993   (eval "$ac_try") 2>&5
33994   ac_status=$?
33995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33996   (exit $ac_status); }; }; then
33997   ac_cv_func_utimes_null=yes
33998 else
33999   echo "$as_me: program exited with status $ac_status" >&5
34000 echo "$as_me: failed program was:" >&5
34001 sed 's/^/| /' conftest.$ac_ext >&5
34002
34003 ( exit $ac_status )
34004 ac_cv_func_utimes_null=no
34005 fi
34006 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34007 fi
34008
34009
34010 rm -f core core.* *.core
34011 fi
34012 { echo "$as_me:$LINENO: result: $ac_cv_func_utimes_null" >&5
34013 echo "${ECHO_T}$ac_cv_func_utimes_null" >&6; }
34014
34015     if test $ac_cv_func_utimes_null = yes; then
34016
34017 cat >>confdefs.h <<\_ACEOF
34018 #define HAVE_UTIMES_NULL 1
34019 _ACEOF
34020
34021     fi
34022
34023
34024
34025   fi
34026
34027
34028
34029
34030
34031
34032
34033
34034
34035
34036   gl_LIBOBJS="$gl_LIBOBJS utimens.$ac_objext"
34037
34038
34039
34040
34041
34042
34043
34044
34045
34046
34047
34048
34049
34050
34051
34052
34053
34054
34055
34056
34057
34058
34059
34060
34061
34062   if test $ac_cv_func_vasnprintf = no; then
34063
34064
34065
34066
34067
34068
34069
34070
34071
34072
34073
34074
34075
34076
34077
34078   gl_LIBOBJS="$gl_LIBOBJS vasnprintf.$ac_objext"
34079
34080
34081
34082
34083
34084
34085
34086
34087
34088   gl_LIBOBJS="$gl_LIBOBJS printf-args.$ac_objext"
34089
34090
34091
34092
34093
34094
34095
34096
34097
34098   gl_LIBOBJS="$gl_LIBOBJS printf-parse.$ac_objext"
34099
34100
34101
34102
34103
34104
34105
34106
34107
34108   gl_LIBOBJS="$gl_LIBOBJS asnprintf.$ac_objext"
34109
34110   if test $ac_cv_func_vasnprintf = yes; then
34111
34112 cat >>confdefs.h <<\_ACEOF
34113 #define REPLACE_VASNPRINTF 1
34114 _ACEOF
34115
34116   fi
34117
34118
34119
34120
34121
34122
34123
34124
34125
34126
34127   { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
34128 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
34129 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
34130   echo $ECHO_N "(cached) $ECHO_C" >&6
34131 else
34132   cat >conftest.$ac_ext <<_ACEOF
34133 /* confdefs.h.  */
34134 _ACEOF
34135 cat confdefs.h >>conftest.$ac_ext
34136 cat >>conftest.$ac_ext <<_ACEOF
34137 /* end confdefs.h.  */
34138 $ac_includes_default
34139 typedef ptrdiff_t ac__type_new_;
34140 int
34141 main ()
34142 {
34143 if ((ac__type_new_ *) 0)
34144   return 0;
34145 if (sizeof (ac__type_new_))
34146   return 0;
34147   ;
34148   return 0;
34149 }
34150 _ACEOF
34151 rm -f conftest.$ac_objext
34152 if { (ac_try="$ac_compile"
34153 case "(($ac_try" in
34154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34155   *) ac_try_echo=$ac_try;;
34156 esac
34157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34158   (eval "$ac_compile") 2>conftest.er1
34159   ac_status=$?
34160   grep -v '^ *+' conftest.er1 >conftest.err
34161   rm -f conftest.er1
34162   cat conftest.err >&5
34163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34164   (exit $ac_status); } && {
34165          test -z "$ac_c_werror_flag" ||
34166          test ! -s conftest.err
34167        } && test -s conftest.$ac_objext; then
34168   ac_cv_type_ptrdiff_t=yes
34169 else
34170   echo "$as_me: failed program was:" >&5
34171 sed 's/^/| /' conftest.$ac_ext >&5
34172
34173         ac_cv_type_ptrdiff_t=no
34174 fi
34175
34176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34177 fi
34178 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
34179 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
34180 if test $ac_cv_type_ptrdiff_t = yes; then
34181   :
34182 else
34183
34184 cat >>confdefs.h <<\_ACEOF
34185 #define ptrdiff_t long
34186 _ACEOF
34187
34188
34189 fi
34190
34191
34192
34193
34194
34195
34196
34197
34198
34199
34200 for ac_func in snprintf wcslen
34201 do
34202 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34203 { echo "$as_me:$LINENO: checking for $ac_func" >&5
34204 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34205 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34206   echo $ECHO_N "(cached) $ECHO_C" >&6
34207 else
34208   cat >conftest.$ac_ext <<_ACEOF
34209 /* confdefs.h.  */
34210 _ACEOF
34211 cat confdefs.h >>conftest.$ac_ext
34212 cat >>conftest.$ac_ext <<_ACEOF
34213 /* end confdefs.h.  */
34214 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34215    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34216 #define $ac_func innocuous_$ac_func
34217
34218 /* System header to define __stub macros and hopefully few prototypes,
34219     which can conflict with char $ac_func (); below.
34220     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34221     <limits.h> exists even on freestanding compilers.  */
34222
34223 #ifdef __STDC__
34224 # include <limits.h>
34225 #else
34226 # include <assert.h>
34227 #endif
34228
34229 #undef $ac_func
34230
34231 /* Override any GCC internal prototype to avoid an error.
34232    Use char because int might match the return type of a GCC
34233    builtin and then its argument prototype would still apply.  */
34234 #ifdef __cplusplus
34235 extern "C"
34236 #endif
34237 char $ac_func ();
34238 /* The GNU C library defines this for functions which it implements
34239     to always fail with ENOSYS.  Some functions are actually named
34240     something starting with __ and the normal name is an alias.  */
34241 #if defined __stub_$ac_func || defined __stub___$ac_func
34242 choke me
34243 #endif
34244
34245 int
34246 main ()
34247 {
34248 return $ac_func ();
34249   ;
34250   return 0;
34251 }
34252 _ACEOF
34253 rm -f conftest.$ac_objext conftest$ac_exeext
34254 if { (ac_try="$ac_link"
34255 case "(($ac_try" in
34256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34257   *) ac_try_echo=$ac_try;;
34258 esac
34259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34260   (eval "$ac_link") 2>conftest.er1
34261   ac_status=$?
34262   grep -v '^ *+' conftest.er1 >conftest.err
34263   rm -f conftest.er1
34264   cat conftest.err >&5
34265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34266   (exit $ac_status); } && {
34267          test -z "$ac_c_werror_flag" ||
34268          test ! -s conftest.err
34269        } && test -s conftest$ac_exeext &&
34270        $as_test_x conftest$ac_exeext; then
34271   eval "$as_ac_var=yes"
34272 else
34273   echo "$as_me: failed program was:" >&5
34274 sed 's/^/| /' conftest.$ac_ext >&5
34275
34276         eval "$as_ac_var=no"
34277 fi
34278
34279 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34280       conftest$ac_exeext conftest.$ac_ext
34281 fi
34282 ac_res=`eval echo '${'$as_ac_var'}'`
34283                { echo "$as_me:$LINENO: result: $ac_res" >&5
34284 echo "${ECHO_T}$ac_res" >&6; }
34285 if test `eval echo '${'$as_ac_var'}'` = yes; then
34286   cat >>confdefs.h <<_ACEOF
34287 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34288 _ACEOF
34289
34290 fi
34291 done
34292
34293       { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
34294 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
34295 if test "${ac_cv_have_decl__snprintf+set}" = set; then
34296   echo $ECHO_N "(cached) $ECHO_C" >&6
34297 else
34298   cat >conftest.$ac_ext <<_ACEOF
34299 /* confdefs.h.  */
34300 _ACEOF
34301 cat confdefs.h >>conftest.$ac_ext
34302 cat >>conftest.$ac_ext <<_ACEOF
34303 /* end confdefs.h.  */
34304 #include <stdio.h>
34305
34306 int
34307 main ()
34308 {
34309 #ifndef _snprintf
34310   (void) _snprintf;
34311 #endif
34312
34313   ;
34314   return 0;
34315 }
34316 _ACEOF
34317 rm -f conftest.$ac_objext
34318 if { (ac_try="$ac_compile"
34319 case "(($ac_try" in
34320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34321   *) ac_try_echo=$ac_try;;
34322 esac
34323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34324   (eval "$ac_compile") 2>conftest.er1
34325   ac_status=$?
34326   grep -v '^ *+' conftest.er1 >conftest.err
34327   rm -f conftest.er1
34328   cat conftest.err >&5
34329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34330   (exit $ac_status); } && {
34331          test -z "$ac_c_werror_flag" ||
34332          test ! -s conftest.err
34333        } && test -s conftest.$ac_objext; then
34334   ac_cv_have_decl__snprintf=yes
34335 else
34336   echo "$as_me: failed program was:" >&5
34337 sed 's/^/| /' conftest.$ac_ext >&5
34338
34339         ac_cv_have_decl__snprintf=no
34340 fi
34341
34342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34343 fi
34344 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
34345 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
34346 if test $ac_cv_have_decl__snprintf = yes; then
34347
34348 cat >>confdefs.h <<_ACEOF
34349 #define HAVE_DECL__SNPRINTF 1
34350 _ACEOF
34351
34352
34353 else
34354   cat >>confdefs.h <<_ACEOF
34355 #define HAVE_DECL__SNPRINTF 0
34356 _ACEOF
34357
34358
34359 fi
34360
34361
34362
34363
34364
34365
34366   fi
34367
34368
34369
34370   gl_cv_func_vsnprintf_usable=no
34371
34372 for ac_func in vsnprintf
34373 do
34374 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34375 { echo "$as_me:$LINENO: checking for $ac_func" >&5
34376 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34377 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34378   echo $ECHO_N "(cached) $ECHO_C" >&6
34379 else
34380   cat >conftest.$ac_ext <<_ACEOF
34381 /* confdefs.h.  */
34382 _ACEOF
34383 cat confdefs.h >>conftest.$ac_ext
34384 cat >>conftest.$ac_ext <<_ACEOF
34385 /* end confdefs.h.  */
34386 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34387    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34388 #define $ac_func innocuous_$ac_func
34389
34390 /* System header to define __stub macros and hopefully few prototypes,
34391     which can conflict with char $ac_func (); below.
34392     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34393     <limits.h> exists even on freestanding compilers.  */
34394
34395 #ifdef __STDC__
34396 # include <limits.h>
34397 #else
34398 # include <assert.h>
34399 #endif
34400
34401 #undef $ac_func
34402
34403 /* Override any GCC internal prototype to avoid an error.
34404    Use char because int might match the return type of a GCC
34405    builtin and then its argument prototype would still apply.  */
34406 #ifdef __cplusplus
34407 extern "C"
34408 #endif
34409 char $ac_func ();
34410 /* The GNU C library defines this for functions which it implements
34411     to always fail with ENOSYS.  Some functions are actually named
34412     something starting with __ and the normal name is an alias.  */
34413 #if defined __stub_$ac_func || defined __stub___$ac_func
34414 choke me
34415 #endif
34416
34417 int
34418 main ()
34419 {
34420 return $ac_func ();
34421   ;
34422   return 0;
34423 }
34424 _ACEOF
34425 rm -f conftest.$ac_objext conftest$ac_exeext
34426 if { (ac_try="$ac_link"
34427 case "(($ac_try" in
34428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34429   *) ac_try_echo=$ac_try;;
34430 esac
34431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34432   (eval "$ac_link") 2>conftest.er1
34433   ac_status=$?
34434   grep -v '^ *+' conftest.er1 >conftest.err
34435   rm -f conftest.er1
34436   cat conftest.err >&5
34437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34438   (exit $ac_status); } && {
34439          test -z "$ac_c_werror_flag" ||
34440          test ! -s conftest.err
34441        } && test -s conftest$ac_exeext &&
34442        $as_test_x conftest$ac_exeext; then
34443   eval "$as_ac_var=yes"
34444 else
34445   echo "$as_me: failed program was:" >&5
34446 sed 's/^/| /' conftest.$ac_ext >&5
34447
34448         eval "$as_ac_var=no"
34449 fi
34450
34451 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34452       conftest$ac_exeext conftest.$ac_ext
34453 fi
34454 ac_res=`eval echo '${'$as_ac_var'}'`
34455                { echo "$as_me:$LINENO: result: $ac_res" >&5
34456 echo "${ECHO_T}$ac_res" >&6; }
34457 if test `eval echo '${'$as_ac_var'}'` = yes; then
34458   cat >>confdefs.h <<_ACEOF
34459 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34460 _ACEOF
34461
34462 fi
34463 done
34464
34465   if test $ac_cv_func_vsnprintf = yes; then
34466
34467
34468   { echo "$as_me:$LINENO: checking whether snprintf respects a size of 1" >&5
34469 echo $ECHO_N "checking whether snprintf respects a size of 1... $ECHO_C" >&6; }
34470 if test "${gl_cv_func_snprintf_size1+set}" = set; then
34471   echo $ECHO_N "(cached) $ECHO_C" >&6
34472 else
34473
34474       if test "$cross_compiling" = yes; then
34475   gl_cv_func_snprintf_size1="guessing yes"
34476 else
34477   cat >conftest.$ac_ext <<_ACEOF
34478 /* confdefs.h.  */
34479 _ACEOF
34480 cat confdefs.h >>conftest.$ac_ext
34481 cat >>conftest.$ac_ext <<_ACEOF
34482 /* end confdefs.h.  */
34483
34484 #include <stdio.h>
34485 int main()
34486 {
34487   static char buf[8] = "DEADBEEF";
34488   snprintf (buf, 1, "%d", 12345);
34489   return buf[1] != 'E';
34490 }
34491 _ACEOF
34492 rm -f conftest$ac_exeext
34493 if { (ac_try="$ac_link"
34494 case "(($ac_try" in
34495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34496   *) ac_try_echo=$ac_try;;
34497 esac
34498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34499   (eval "$ac_link") 2>&5
34500   ac_status=$?
34501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34502   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34503   { (case "(($ac_try" in
34504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34505   *) ac_try_echo=$ac_try;;
34506 esac
34507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34508   (eval "$ac_try") 2>&5
34509   ac_status=$?
34510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34511   (exit $ac_status); }; }; then
34512   gl_cv_func_snprintf_size1=yes
34513 else
34514   echo "$as_me: program exited with status $ac_status" >&5
34515 echo "$as_me: failed program was:" >&5
34516 sed 's/^/| /' conftest.$ac_ext >&5
34517
34518 ( exit $ac_status )
34519 gl_cv_func_snprintf_size1=no
34520 fi
34521 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34522 fi
34523
34524
34525
34526 fi
34527 { echo "$as_me:$LINENO: result: $gl_cv_func_snprintf_size1" >&5
34528 echo "${ECHO_T}$gl_cv_func_snprintf_size1" >&6; }
34529
34530     case "$gl_cv_func_snprintf_size1" in
34531       *yes)
34532         gl_cv_func_vsnprintf_usable=yes
34533         ;;
34534     esac
34535   fi
34536   if test $gl_cv_func_vsnprintf_usable = no; then
34537
34538
34539
34540
34541
34542
34543
34544
34545
34546
34547   gl_LIBOBJS="$gl_LIBOBJS vsnprintf.$ac_objext"
34548
34549   if test $ac_cv_func_vsnprintf = yes; then
34550     REPLACE_VSNPRINTF=1
34551   fi
34552   :
34553
34554   fi
34555
34556
34557
34558
34559   if test $ac_cv_have_decl_vsnprintf = no; then
34560     HAVE_DECL_VSNPRINTF=0
34561   fi
34562
34563
34564
34565   GNULIB_VSNPRINTF=1
34566
34567
34568
34569   { echo "$as_me:$LINENO: checking whether <wchar.h> is standalone" >&5
34570 echo $ECHO_N "checking whether <wchar.h> is standalone... $ECHO_C" >&6; }
34571 if test "${gl_cv_header_wchar_h_standalone+set}" = set; then
34572   echo $ECHO_N "(cached) $ECHO_C" >&6
34573 else
34574   cat >conftest.$ac_ext <<_ACEOF
34575 #include <wchar.h>
34576 wchar_t w;
34577 _ACEOF
34578 rm -f conftest.$ac_objext
34579 if { (ac_try="$ac_compile"
34580 case "(($ac_try" in
34581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34582   *) ac_try_echo=$ac_try;;
34583 esac
34584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34585   (eval "$ac_compile") 2>conftest.er1
34586   ac_status=$?
34587   grep -v '^ *+' conftest.er1 >conftest.err
34588   rm -f conftest.er1
34589   cat conftest.err >&5
34590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34591   (exit $ac_status); } && {
34592          test -z "$ac_c_werror_flag" ||
34593          test ! -s conftest.err
34594        } && test -s conftest.$ac_objext; then
34595   gl_cv_header_wchar_h_standalone=yes
34596 else
34597   echo "$as_me: failed program was:" >&5
34598 sed 's/^/| /' conftest.$ac_ext >&5
34599
34600         gl_cv_header_wchar_h_standalone=no
34601 fi
34602
34603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34604 fi
34605 { echo "$as_me:$LINENO: result: $gl_cv_header_wchar_h_standalone" >&5
34606 echo "${ECHO_T}$gl_cv_header_wchar_h_standalone" >&6; }
34607
34608
34609   if test $gt_cv_c_wint_t = yes; then
34610     HAVE_WINT_T=1
34611   else
34612     HAVE_WINT_T=0
34613   fi
34614
34615
34616   if test $gl_cv_header_wchar_h_standalone != yes || test $gt_cv_c_wint_t != yes; then
34617     WCHAR_H=wchar.h
34618   fi
34619
34620
34621
34622
34623
34624
34625
34626   if test $ac_cv_header_wchar_h = yes; then
34627     HAVE_WCHAR_H=1
34628   else
34629     HAVE_WCHAR_H=0
34630   fi
34631
34632
34633
34634
34635
34636
34637
34638
34639
34640
34641
34642      if test $gl_cv_have_include_next = yes; then
34643        gl_cv_next_wchar_h='<'wchar.h'>'
34644      else
34645        { echo "$as_me:$LINENO: checking absolute name of <wchar.h>" >&5
34646 echo $ECHO_N "checking absolute name of <wchar.h>... $ECHO_C" >&6; }
34647 if test "${gl_cv_next_wchar_h+set}" = set; then
34648   echo $ECHO_N "(cached) $ECHO_C" >&6
34649 else
34650
34651           if test $ac_cv_header_wchar_h = yes; then
34652             cat >conftest.$ac_ext <<_ACEOF
34653 /* confdefs.h.  */
34654 _ACEOF
34655 cat confdefs.h >>conftest.$ac_ext
34656 cat >>conftest.$ac_ext <<_ACEOF
34657 /* end confdefs.h.  */
34658 #include <wchar.h>
34659
34660 _ACEOF
34661                                     gl_cv_next_wchar_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34662                sed -n '\#/wchar.h#{
34663                  s#.*"\(.*/wchar.h\)".*#\1#
34664                  s#^/[^/]#//&#
34665                  p
34666                  q
34667                }'`'"'
34668           else
34669             gl_cv_next_wchar_h='<'wchar.h'>'
34670           fi
34671
34672 fi
34673 { echo "$as_me:$LINENO: result: $gl_cv_next_wchar_h" >&5
34674 echo "${ECHO_T}$gl_cv_next_wchar_h" >&6; }
34675      fi
34676      NEXT_WCHAR_H=$gl_cv_next_wchar_h
34677
34678
34679
34680
34681
34682
34683
34684
34685
34686
34687
34688
34689   if test $ac_cv_func_iswcntrl = yes; then
34690     HAVE_ISWCNTRL=1
34691   else
34692     HAVE_ISWCNTRL=0
34693   fi
34694
34695
34696
34697
34698
34699
34700
34701
34702
34703
34704   if test $gt_cv_c_wint_t = yes; then
34705     HAVE_WINT_T=1
34706   else
34707     HAVE_WINT_T=0
34708   fi
34709
34710
34711   WCTYPE_H=wctype.h
34712   if test $ac_cv_header_wctype_h = yes; then
34713     if test $ac_cv_func_iswcntrl = yes; then
34714                   { echo "$as_me:$LINENO: checking whether iswcntrl works" >&5
34715 echo $ECHO_N "checking whether iswcntrl works... $ECHO_C" >&6; }
34716 if test "${gl_cv_func_iswcntrl_works+set}" = set; then
34717   echo $ECHO_N "(cached) $ECHO_C" >&6
34718 else
34719
34720           if test "$cross_compiling" = yes; then
34721   cat >conftest.$ac_ext <<_ACEOF
34722 /* confdefs.h.  */
34723 _ACEOF
34724 cat confdefs.h >>conftest.$ac_ext
34725 cat >>conftest.$ac_ext <<_ACEOF
34726 /* end confdefs.h.  */
34727 #include <stdlib.h>
34728                           #if __GNU_LIBRARY__ == 1
34729                           Linux libc5 i18n is broken.
34730                           #endif
34731 int
34732 main ()
34733 {
34734
34735   ;
34736   return 0;
34737 }
34738 _ACEOF
34739 rm -f conftest.$ac_objext
34740 if { (ac_try="$ac_compile"
34741 case "(($ac_try" in
34742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34743   *) ac_try_echo=$ac_try;;
34744 esac
34745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34746   (eval "$ac_compile") 2>conftest.er1
34747   ac_status=$?
34748   grep -v '^ *+' conftest.er1 >conftest.err
34749   rm -f conftest.er1
34750   cat conftest.err >&5
34751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34752   (exit $ac_status); } && {
34753          test -z "$ac_c_werror_flag" ||
34754          test ! -s conftest.err
34755        } && test -s conftest.$ac_objext; then
34756   gl_cv_func_iswcntrl_works=yes
34757 else
34758   echo "$as_me: failed program was:" >&5
34759 sed 's/^/| /' conftest.$ac_ext >&5
34760
34761         gl_cv_func_iswcntrl_works=no
34762 fi
34763
34764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34765
34766 else
34767   cat >conftest.$ac_ext <<_ACEOF
34768 /* confdefs.h.  */
34769 _ACEOF
34770 cat confdefs.h >>conftest.$ac_ext
34771 cat >>conftest.$ac_ext <<_ACEOF
34772 /* end confdefs.h.  */
34773 #include <stddef.h>
34774                       #include <stdio.h>
34775                       #include <time.h>
34776                       #include <wchar.h>
34777                       #include <wctype.h>
34778                       int main () { return iswprint ('x') == 0; }
34779 _ACEOF
34780 rm -f conftest$ac_exeext
34781 if { (ac_try="$ac_link"
34782 case "(($ac_try" in
34783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34784   *) ac_try_echo=$ac_try;;
34785 esac
34786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34787   (eval "$ac_link") 2>&5
34788   ac_status=$?
34789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34790   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34791   { (case "(($ac_try" in
34792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34793   *) ac_try_echo=$ac_try;;
34794 esac
34795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34796   (eval "$ac_try") 2>&5
34797   ac_status=$?
34798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34799   (exit $ac_status); }; }; then
34800   gl_cv_func_iswcntrl_works=yes
34801 else
34802   echo "$as_me: program exited with status $ac_status" >&5
34803 echo "$as_me: failed program was:" >&5
34804 sed 's/^/| /' conftest.$ac_ext >&5
34805
34806 ( exit $ac_status )
34807 gl_cv_func_iswcntrl_works=no
34808 fi
34809 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34810 fi
34811
34812
34813
34814 fi
34815 { echo "$as_me:$LINENO: result: $gl_cv_func_iswcntrl_works" >&5
34816 echo "${ECHO_T}$gl_cv_func_iswcntrl_works" >&6; }
34817       if test $gl_cv_func_iswcntrl_works = yes; then
34818         WCTYPE_H=
34819       fi
34820     fi
34821
34822
34823
34824
34825
34826
34827
34828
34829
34830
34831      if test $gl_cv_have_include_next = yes; then
34832        gl_cv_next_wctype_h='<'wctype.h'>'
34833      else
34834        { echo "$as_me:$LINENO: checking absolute name of <wctype.h>" >&5
34835 echo $ECHO_N "checking absolute name of <wctype.h>... $ECHO_C" >&6; }
34836 if test "${gl_cv_next_wctype_h+set}" = set; then
34837   echo $ECHO_N "(cached) $ECHO_C" >&6
34838 else
34839
34840           if test $ac_cv_header_wctype_h = yes; then
34841             cat >conftest.$ac_ext <<_ACEOF
34842 /* confdefs.h.  */
34843 _ACEOF
34844 cat confdefs.h >>conftest.$ac_ext
34845 cat >>conftest.$ac_ext <<_ACEOF
34846 /* end confdefs.h.  */
34847 #include <wctype.h>
34848
34849 _ACEOF
34850                                     gl_cv_next_wctype_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34851                sed -n '\#/wctype.h#{
34852                  s#.*"\(.*/wctype.h\)".*#\1#
34853                  s#^/[^/]#//&#
34854                  p
34855                  q
34856                }'`'"'
34857           else
34858             gl_cv_next_wctype_h='<'wctype.h'>'
34859           fi
34860
34861 fi
34862 { echo "$as_me:$LINENO: result: $gl_cv_next_wctype_h" >&5
34863 echo "${ECHO_T}$gl_cv_next_wctype_h" >&6; }
34864      fi
34865      NEXT_WCTYPE_H=$gl_cv_next_wctype_h
34866
34867
34868
34869     HAVE_WCTYPE_H=1
34870   else
34871     HAVE_WCTYPE_H=0
34872   fi
34873
34874
34875
34876   if test "$gl_cv_func_iswcntrl_works" = no; then
34877     REPLACE_ISWCNTRL=1
34878   else
34879     REPLACE_ISWCNTRL=0
34880   fi
34881
34882
34883
34884
34885
34886
34887
34888
34889
34890
34891
34892
34893
34894
34895
34896
34897
34898
34899
34900
34901
34902
34903
34904   { echo "$as_me:$LINENO: checking whether wcwidth is declared" >&5
34905 echo $ECHO_N "checking whether wcwidth is declared... $ECHO_C" >&6; }
34906 if test "${ac_cv_have_decl_wcwidth+set}" = set; then
34907   echo $ECHO_N "(cached) $ECHO_C" >&6
34908 else
34909   cat >conftest.$ac_ext <<_ACEOF
34910 /* confdefs.h.  */
34911 _ACEOF
34912 cat confdefs.h >>conftest.$ac_ext
34913 cat >>conftest.$ac_ext <<_ACEOF
34914 /* end confdefs.h.  */
34915
34916 /* AIX 3.2.5 declares wcwidth in <string.h>. */
34917 #include <string.h>
34918 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
34919    <wchar.h>.
34920    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
34921    before <wchar.h>.  */
34922 #include <stddef.h>
34923 #include <stdio.h>
34924 #include <time.h>
34925 #include <wchar.h>
34926
34927
34928 int
34929 main ()
34930 {
34931 #ifndef wcwidth
34932   (void) wcwidth;
34933 #endif
34934
34935   ;
34936   return 0;
34937 }
34938 _ACEOF
34939 rm -f conftest.$ac_objext
34940 if { (ac_try="$ac_compile"
34941 case "(($ac_try" in
34942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34943   *) ac_try_echo=$ac_try;;
34944 esac
34945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34946   (eval "$ac_compile") 2>conftest.er1
34947   ac_status=$?
34948   grep -v '^ *+' conftest.er1 >conftest.err
34949   rm -f conftest.er1
34950   cat conftest.err >&5
34951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34952   (exit $ac_status); } && {
34953          test -z "$ac_c_werror_flag" ||
34954          test ! -s conftest.err
34955        } && test -s conftest.$ac_objext; then
34956   ac_cv_have_decl_wcwidth=yes
34957 else
34958   echo "$as_me: failed program was:" >&5
34959 sed 's/^/| /' conftest.$ac_ext >&5
34960
34961         ac_cv_have_decl_wcwidth=no
34962 fi
34963
34964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34965 fi
34966 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_wcwidth" >&5
34967 echo "${ECHO_T}$ac_cv_have_decl_wcwidth" >&6; }
34968 if test $ac_cv_have_decl_wcwidth = yes; then
34969
34970 cat >>confdefs.h <<_ACEOF
34971 #define HAVE_DECL_WCWIDTH 1
34972 _ACEOF
34973
34974
34975 else
34976   cat >>confdefs.h <<_ACEOF
34977 #define HAVE_DECL_WCWIDTH 0
34978 _ACEOF
34979
34980
34981 fi
34982
34983
34984   if test $ac_cv_have_decl_wcwidth != yes; then
34985     HAVE_DECL_WCWIDTH=0
34986   fi
34987
34988   if test $ac_cv_func_wcwidth = no; then
34989     REPLACE_WCWIDTH=1
34990   else
34991                 { echo "$as_me:$LINENO: checking whether wcwidth works reasonably in UTF-8 locales" >&5
34992 echo $ECHO_N "checking whether wcwidth works reasonably in UTF-8 locales... $ECHO_C" >&6; }
34993 if test "${gl_cv_func_wcwidth_works+set}" = set; then
34994   echo $ECHO_N "(cached) $ECHO_C" >&6
34995 else
34996
34997         if test "$cross_compiling" = yes; then
34998   gl_cv_func_wcwidth_works="guessing no"
34999 else
35000   cat >conftest.$ac_ext <<_ACEOF
35001 /* confdefs.h.  */
35002 _ACEOF
35003 cat confdefs.h >>conftest.$ac_ext
35004 cat >>conftest.$ac_ext <<_ACEOF
35005 /* end confdefs.h.  */
35006
35007 #include <locale.h>
35008 /* AIX 3.2.5 declares wcwidth in <string.h>. */
35009 #include <string.h>
35010 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
35011    <wchar.h>.
35012    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
35013    before <wchar.h>.  */
35014 #include <stddef.h>
35015 #include <stdio.h>
35016 #include <time.h>
35017 #include <wchar.h>
35018 #if !HAVE_DECL_WCWIDTH
35019 extern
35020 # ifdef __cplusplus
35021 "C"
35022 # endif
35023 int wcwidth (int);
35024 #endif
35025 int main ()
35026 {
35027   if (setlocale (LC_ALL, "fr_FR.UTF-8") != NULL)
35028     if (wcwidth (0x0301) > 0 || wcwidth (0x200B) > 0)
35029       return 1;
35030   return 0;
35031 }
35032 _ACEOF
35033 rm -f conftest$ac_exeext
35034 if { (ac_try="$ac_link"
35035 case "(($ac_try" in
35036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35037   *) ac_try_echo=$ac_try;;
35038 esac
35039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35040   (eval "$ac_link") 2>&5
35041   ac_status=$?
35042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35043   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35044   { (case "(($ac_try" in
35045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35046   *) ac_try_echo=$ac_try;;
35047 esac
35048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35049   (eval "$ac_try") 2>&5
35050   ac_status=$?
35051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35052   (exit $ac_status); }; }; then
35053   gl_cv_func_wcwidth_works=yes
35054 else
35055   echo "$as_me: program exited with status $ac_status" >&5
35056 echo "$as_me: failed program was:" >&5
35057 sed 's/^/| /' conftest.$ac_ext >&5
35058
35059 ( exit $ac_status )
35060 gl_cv_func_wcwidth_works=no
35061 fi
35062 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35063 fi
35064
35065
35066
35067 fi
35068 { echo "$as_me:$LINENO: result: $gl_cv_func_wcwidth_works" >&5
35069 echo "${ECHO_T}$gl_cv_func_wcwidth_works" >&6; }
35070     case "$gl_cv_func_wcwidth_works" in
35071       *yes) ;;
35072       *no) REPLACE_WCWIDTH=1 ;;
35073     esac
35074   fi
35075   if test $REPLACE_WCWIDTH = 1; then
35076
35077
35078
35079
35080
35081
35082
35083
35084   gl_LIBOBJS="$gl_LIBOBJS wcwidth.$ac_objext"
35085
35086   fi
35087
35088   if test $REPLACE_WCWIDTH = 1 || test $HAVE_DECL_WCWIDTH = 0; then
35089
35090
35091   WCHAR_H=wchar.h
35092
35093   fi
35094
35095
35096
35097   GNULIB_WCWIDTH=1
35098
35099
35100
35101
35102
35103
35104
35105   GNULIB_WRITE=1
35106
35107
35108
35109
35110
35111
35112
35113
35114
35115
35116   gl_LIBOBJS="$gl_LIBOBJS xmalloc.$ac_objext"
35117
35118
35119
35120
35121   :
35122
35123
35124   :
35125
35126
35127
35128
35129
35130
35131
35132
35133
35134
35135
35136   gl_LIBOBJS="$gl_LIBOBJS xgetcwd.$ac_objext"
35137
35138
35139
35140
35141
35142
35143
35144
35145 for ac_header in stdint.h
35146 do
35147 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35148 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35149   { echo "$as_me:$LINENO: checking for $ac_header" >&5
35150 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35151 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35152   echo $ECHO_N "(cached) $ECHO_C" >&6
35153 fi
35154 ac_res=`eval echo '${'$as_ac_Header'}'`
35155                { echo "$as_me:$LINENO: result: $ac_res" >&5
35156 echo "${ECHO_T}$ac_res" >&6; }
35157 else
35158   # Is the header compilable?
35159 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
35160 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
35161 cat >conftest.$ac_ext <<_ACEOF
35162 /* confdefs.h.  */
35163 _ACEOF
35164 cat confdefs.h >>conftest.$ac_ext
35165 cat >>conftest.$ac_ext <<_ACEOF
35166 /* end confdefs.h.  */
35167 $ac_includes_default
35168 #include <$ac_header>
35169 _ACEOF
35170 rm -f conftest.$ac_objext
35171 if { (ac_try="$ac_compile"
35172 case "(($ac_try" in
35173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35174   *) ac_try_echo=$ac_try;;
35175 esac
35176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35177   (eval "$ac_compile") 2>conftest.er1
35178   ac_status=$?
35179   grep -v '^ *+' conftest.er1 >conftest.err
35180   rm -f conftest.er1
35181   cat conftest.err >&5
35182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35183   (exit $ac_status); } && {
35184          test -z "$ac_c_werror_flag" ||
35185          test ! -s conftest.err
35186        } && test -s conftest.$ac_objext; then
35187   ac_header_compiler=yes
35188 else
35189   echo "$as_me: failed program was:" >&5
35190 sed 's/^/| /' conftest.$ac_ext >&5
35191
35192         ac_header_compiler=no
35193 fi
35194
35195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35196 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35197 echo "${ECHO_T}$ac_header_compiler" >&6; }
35198
35199 # Is the header present?
35200 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
35201 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
35202 cat >conftest.$ac_ext <<_ACEOF
35203 /* confdefs.h.  */
35204 _ACEOF
35205 cat confdefs.h >>conftest.$ac_ext
35206 cat >>conftest.$ac_ext <<_ACEOF
35207 /* end confdefs.h.  */
35208 #include <$ac_header>
35209 _ACEOF
35210 if { (ac_try="$ac_cpp conftest.$ac_ext"
35211 case "(($ac_try" in
35212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35213   *) ac_try_echo=$ac_try;;
35214 esac
35215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35216   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35217   ac_status=$?
35218   grep -v '^ *+' conftest.er1 >conftest.err
35219   rm -f conftest.er1
35220   cat conftest.err >&5
35221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35222   (exit $ac_status); } >/dev/null && {
35223          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
35224          test ! -s conftest.err
35225        }; then
35226   ac_header_preproc=yes
35227 else
35228   echo "$as_me: failed program was:" >&5
35229 sed 's/^/| /' conftest.$ac_ext >&5
35230
35231   ac_header_preproc=no
35232 fi
35233
35234 rm -f conftest.err conftest.$ac_ext
35235 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35236 echo "${ECHO_T}$ac_header_preproc" >&6; }
35237
35238 # So?  What about this header?
35239 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35240   yes:no: )
35241     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35242 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35243     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35244 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35245     ac_header_preproc=yes
35246     ;;
35247   no:yes:* )
35248     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35249 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35250     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
35251 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
35252     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35253 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35254     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
35255 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
35256     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35257 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35258     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35259 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35260     ( cat <<\_ASBOX
35261 ## ------------------------------ ##
35262 ## Report this to bug-tar@gnu.org ##
35263 ## ------------------------------ ##
35264 _ASBOX
35265      ) | sed "s/^/$as_me: WARNING:     /" >&2
35266     ;;
35267 esac
35268 { echo "$as_me:$LINENO: checking for $ac_header" >&5
35269 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35270 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35271   echo $ECHO_N "(cached) $ECHO_C" >&6
35272 else
35273   eval "$as_ac_Header=\$ac_header_preproc"
35274 fi
35275 ac_res=`eval echo '${'$as_ac_Header'}'`
35276                { echo "$as_me:$LINENO: result: $ac_res" >&5
35277 echo "${ECHO_T}$ac_res" >&6; }
35278
35279 fi
35280 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35281   cat >>confdefs.h <<_ACEOF
35282 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35283 _ACEOF
35284
35285 fi
35286
35287 done
35288
35289
35290
35291
35292   :
35293
35294
35295
35296
35297
35298
35299
35300
35301
35302
35303
35304   gl_LIBOBJS="$gl_LIBOBJS xstrtol.$ac_objext"
35305
35306
35307
35308
35309
35310
35311
35312
35313
35314   gl_LIBOBJS="$gl_LIBOBJS xstrtoul.$ac_objext"
35315
35316
35317
35318
35319
35320
35321
35322
35323
35324   gl_LIBOBJS="$gl_LIBOBJS xstrtol-error.$ac_objext"
35325
35326
35327
35328
35329
35330
35331
35332
35333
35334
35335
35336   gltests_libdeps=
35337   gltests_ltlibdeps=
35338
35339
35340
35341
35342
35343
35344
35345
35346   gl_source_base='.#bootmp/tests'
35347
35348
35349
35350
35351
35352
35353
35354   LIBTAR_LIBDEPS="$gl_libdeps"
35355
35356   LIBTAR_LTLIBDEPS="$gl_ltlibdeps"
35357
35358
35359 # paxutils modules
35360
35361
35362
35363
35364
35365
35366
35367
35368 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
35369 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
35370 if test "${ac_cv_header_time+set}" = set; then
35371   echo $ECHO_N "(cached) $ECHO_C" >&6
35372 else
35373   cat >conftest.$ac_ext <<_ACEOF
35374 /* confdefs.h.  */
35375 _ACEOF
35376 cat confdefs.h >>conftest.$ac_ext
35377 cat >>conftest.$ac_ext <<_ACEOF
35378 /* end confdefs.h.  */
35379 #include <sys/types.h>
35380 #include <sys/time.h>
35381 #include <time.h>
35382
35383 int
35384 main ()
35385 {
35386 if ((struct tm *) 0)
35387 return 0;
35388   ;
35389   return 0;
35390 }
35391 _ACEOF
35392 rm -f conftest.$ac_objext
35393 if { (ac_try="$ac_compile"
35394 case "(($ac_try" in
35395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35396   *) ac_try_echo=$ac_try;;
35397 esac
35398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35399   (eval "$ac_compile") 2>conftest.er1
35400   ac_status=$?
35401   grep -v '^ *+' conftest.er1 >conftest.err
35402   rm -f conftest.er1
35403   cat conftest.err >&5
35404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35405   (exit $ac_status); } && {
35406          test -z "$ac_c_werror_flag" ||
35407          test ! -s conftest.err
35408        } && test -s conftest.$ac_objext; then
35409   ac_cv_header_time=yes
35410 else
35411   echo "$as_me: failed program was:" >&5
35412 sed 's/^/| /' conftest.$ac_ext >&5
35413
35414         ac_cv_header_time=no
35415 fi
35416
35417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35418 fi
35419 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
35420 echo "${ECHO_T}$ac_cv_header_time" >&6; }
35421 if test $ac_cv_header_time = yes; then
35422
35423 cat >>confdefs.h <<\_ACEOF
35424 #define TIME_WITH_SYS_TIME 1
35425 _ACEOF
35426
35427 fi
35428
35429 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
35430 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
35431 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
35432   echo $ECHO_N "(cached) $ECHO_C" >&6
35433 else
35434   cat >conftest.$ac_ext <<_ACEOF
35435 /* confdefs.h.  */
35436 _ACEOF
35437 cat confdefs.h >>conftest.$ac_ext
35438 cat >>conftest.$ac_ext <<_ACEOF
35439 /* end confdefs.h.  */
35440 $ac_includes_default
35441 int
35442 main ()
35443 {
35444 static struct stat ac_aggr;
35445 if (ac_aggr.st_blksize)
35446 return 0;
35447   ;
35448   return 0;
35449 }
35450 _ACEOF
35451 rm -f conftest.$ac_objext
35452 if { (ac_try="$ac_compile"
35453 case "(($ac_try" in
35454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35455   *) ac_try_echo=$ac_try;;
35456 esac
35457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35458   (eval "$ac_compile") 2>conftest.er1
35459   ac_status=$?
35460   grep -v '^ *+' conftest.er1 >conftest.err
35461   rm -f conftest.er1
35462   cat conftest.err >&5
35463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35464   (exit $ac_status); } && {
35465          test -z "$ac_c_werror_flag" ||
35466          test ! -s conftest.err
35467        } && test -s conftest.$ac_objext; then
35468   ac_cv_member_struct_stat_st_blksize=yes
35469 else
35470   echo "$as_me: failed program was:" >&5
35471 sed 's/^/| /' conftest.$ac_ext >&5
35472
35473         cat >conftest.$ac_ext <<_ACEOF
35474 /* confdefs.h.  */
35475 _ACEOF
35476 cat confdefs.h >>conftest.$ac_ext
35477 cat >>conftest.$ac_ext <<_ACEOF
35478 /* end confdefs.h.  */
35479 $ac_includes_default
35480 int
35481 main ()
35482 {
35483 static struct stat ac_aggr;
35484 if (sizeof ac_aggr.st_blksize)
35485 return 0;
35486   ;
35487   return 0;
35488 }
35489 _ACEOF
35490 rm -f conftest.$ac_objext
35491 if { (ac_try="$ac_compile"
35492 case "(($ac_try" in
35493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35494   *) ac_try_echo=$ac_try;;
35495 esac
35496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35497   (eval "$ac_compile") 2>conftest.er1
35498   ac_status=$?
35499   grep -v '^ *+' conftest.er1 >conftest.err
35500   rm -f conftest.er1
35501   cat conftest.err >&5
35502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35503   (exit $ac_status); } && {
35504          test -z "$ac_c_werror_flag" ||
35505          test ! -s conftest.err
35506        } && test -s conftest.$ac_objext; then
35507   ac_cv_member_struct_stat_st_blksize=yes
35508 else
35509   echo "$as_me: failed program was:" >&5
35510 sed 's/^/| /' conftest.$ac_ext >&5
35511
35512         ac_cv_member_struct_stat_st_blksize=no
35513 fi
35514
35515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35516 fi
35517
35518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35519 fi
35520 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
35521 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
35522 if test $ac_cv_member_struct_stat_st_blksize = yes; then
35523
35524 cat >>confdefs.h <<_ACEOF
35525 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
35526 _ACEOF
35527
35528
35529 cat >>confdefs.h <<\_ACEOF
35530 #define HAVE_ST_BLKSIZE 1
35531 _ACEOF
35532
35533 fi
35534
35535
35536
35537
35538
35539
35540
35541
35542   # Set LIB_SETSOCKOPT to -lnsl -lsocket if necessary.
35543   pu_save_LIBS=$LIBS
35544   LIB_SETSOCKOPT=
35545   { echo "$as_me:$LINENO: checking for library containing setsockopt" >&5
35546 echo $ECHO_N "checking for library containing setsockopt... $ECHO_C" >&6; }
35547 if test "${ac_cv_search_setsockopt+set}" = set; then
35548   echo $ECHO_N "(cached) $ECHO_C" >&6
35549 else
35550   ac_func_search_save_LIBS=$LIBS
35551 cat >conftest.$ac_ext <<_ACEOF
35552 /* confdefs.h.  */
35553 _ACEOF
35554 cat confdefs.h >>conftest.$ac_ext
35555 cat >>conftest.$ac_ext <<_ACEOF
35556 /* end confdefs.h.  */
35557
35558 /* Override any GCC internal prototype to avoid an error.
35559    Use char because int might match the return type of a GCC
35560    builtin and then its argument prototype would still apply.  */
35561 #ifdef __cplusplus
35562 extern "C"
35563 #endif
35564 char setsockopt ();
35565 int
35566 main ()
35567 {
35568 return setsockopt ();
35569   ;
35570   return 0;
35571 }
35572 _ACEOF
35573 for ac_lib in '' socket; do
35574   if test -z "$ac_lib"; then
35575     ac_res="none required"
35576   else
35577     ac_res=-l$ac_lib
35578     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
35579   fi
35580   rm -f conftest.$ac_objext conftest$ac_exeext
35581 if { (ac_try="$ac_link"
35582 case "(($ac_try" in
35583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35584   *) ac_try_echo=$ac_try;;
35585 esac
35586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35587   (eval "$ac_link") 2>conftest.er1
35588   ac_status=$?
35589   grep -v '^ *+' conftest.er1 >conftest.err
35590   rm -f conftest.er1
35591   cat conftest.err >&5
35592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35593   (exit $ac_status); } && {
35594          test -z "$ac_c_werror_flag" ||
35595          test ! -s conftest.err
35596        } && test -s conftest$ac_exeext &&
35597        $as_test_x conftest$ac_exeext; then
35598   ac_cv_search_setsockopt=$ac_res
35599 else
35600   echo "$as_me: failed program was:" >&5
35601 sed 's/^/| /' conftest.$ac_ext >&5
35602
35603
35604 fi
35605
35606 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35607       conftest$ac_exeext
35608   if test "${ac_cv_search_setsockopt+set}" = set; then
35609   break
35610 fi
35611 done
35612 if test "${ac_cv_search_setsockopt+set}" = set; then
35613   :
35614 else
35615   ac_cv_search_setsockopt=no
35616 fi
35617 rm conftest.$ac_ext
35618 LIBS=$ac_func_search_save_LIBS
35619 fi
35620 { echo "$as_me:$LINENO: result: $ac_cv_search_setsockopt" >&5
35621 echo "${ECHO_T}$ac_cv_search_setsockopt" >&6; }
35622 ac_res=$ac_cv_search_setsockopt
35623 if test "$ac_res" != no; then
35624   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
35625
35626 else
35627   { echo "$as_me:$LINENO: checking for library containing setsockopt" >&5
35628 echo $ECHO_N "checking for library containing setsockopt... $ECHO_C" >&6; }
35629 if test "${ac_cv_search_setsockopt+set}" = set; then
35630   echo $ECHO_N "(cached) $ECHO_C" >&6
35631 else
35632   ac_func_search_save_LIBS=$LIBS
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
35640 /* Override any GCC internal prototype to avoid an error.
35641    Use char because int might match the return type of a GCC
35642    builtin and then its argument prototype would still apply.  */
35643 #ifdef __cplusplus
35644 extern "C"
35645 #endif
35646 char setsockopt ();
35647 int
35648 main ()
35649 {
35650 return setsockopt ();
35651   ;
35652   return 0;
35653 }
35654 _ACEOF
35655 for ac_lib in '' socket; do
35656   if test -z "$ac_lib"; then
35657     ac_res="none required"
35658   else
35659     ac_res=-l$ac_lib
35660     LIBS="-l$ac_lib -lnsl $ac_func_search_save_LIBS"
35661   fi
35662   rm -f conftest.$ac_objext conftest$ac_exeext
35663 if { (ac_try="$ac_link"
35664 case "(($ac_try" in
35665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35666   *) ac_try_echo=$ac_try;;
35667 esac
35668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35669   (eval "$ac_link") 2>conftest.er1
35670   ac_status=$?
35671   grep -v '^ *+' conftest.er1 >conftest.err
35672   rm -f conftest.er1
35673   cat conftest.err >&5
35674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35675   (exit $ac_status); } && {
35676          test -z "$ac_c_werror_flag" ||
35677          test ! -s conftest.err
35678        } && test -s conftest$ac_exeext &&
35679        $as_test_x conftest$ac_exeext; then
35680   ac_cv_search_setsockopt=$ac_res
35681 else
35682   echo "$as_me: failed program was:" >&5
35683 sed 's/^/| /' conftest.$ac_ext >&5
35684
35685
35686 fi
35687
35688 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35689       conftest$ac_exeext
35690   if test "${ac_cv_search_setsockopt+set}" = set; then
35691   break
35692 fi
35693 done
35694 if test "${ac_cv_search_setsockopt+set}" = set; then
35695   :
35696 else
35697   ac_cv_search_setsockopt=no
35698 fi
35699 rm conftest.$ac_ext
35700 LIBS=$ac_func_search_save_LIBS
35701 fi
35702 { echo "$as_me:$LINENO: result: $ac_cv_search_setsockopt" >&5
35703 echo "${ECHO_T}$ac_cv_search_setsockopt" >&6; }
35704 ac_res=$ac_cv_search_setsockopt
35705 if test "$ac_res" != no; then
35706   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
35707
35708 fi
35709
35710 fi
35711
35712   { echo "$as_me:$LINENO: checking for library containing setsockopt" >&5
35713 echo $ECHO_N "checking for library containing setsockopt... $ECHO_C" >&6; }
35714 if test "${ac_cv_search_setsockopt+set}" = set; then
35715   echo $ECHO_N "(cached) $ECHO_C" >&6
35716 else
35717   ac_func_search_save_LIBS=$LIBS
35718 cat >conftest.$ac_ext <<_ACEOF
35719 /* confdefs.h.  */
35720 _ACEOF
35721 cat confdefs.h >>conftest.$ac_ext
35722 cat >>conftest.$ac_ext <<_ACEOF
35723 /* end confdefs.h.  */
35724
35725 /* Override any GCC internal prototype to avoid an error.
35726    Use char because int might match the return type of a GCC
35727    builtin and then its argument prototype would still apply.  */
35728 #ifdef __cplusplus
35729 extern "C"
35730 #endif
35731 char setsockopt ();
35732 int
35733 main ()
35734 {
35735 return setsockopt ();
35736   ;
35737   return 0;
35738 }
35739 _ACEOF
35740 for ac_lib in '' nsl; do
35741   if test -z "$ac_lib"; then
35742     ac_res="none required"
35743   else
35744     ac_res=-l$ac_lib
35745     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
35746   fi
35747   rm -f conftest.$ac_objext conftest$ac_exeext
35748 if { (ac_try="$ac_link"
35749 case "(($ac_try" in
35750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35751   *) ac_try_echo=$ac_try;;
35752 esac
35753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35754   (eval "$ac_link") 2>conftest.er1
35755   ac_status=$?
35756   grep -v '^ *+' conftest.er1 >conftest.err
35757   rm -f conftest.er1
35758   cat conftest.err >&5
35759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35760   (exit $ac_status); } && {
35761          test -z "$ac_c_werror_flag" ||
35762          test ! -s conftest.err
35763        } && test -s conftest$ac_exeext &&
35764        $as_test_x conftest$ac_exeext; then
35765   ac_cv_search_setsockopt=$ac_res
35766 else
35767   echo "$as_me: failed program was:" >&5
35768 sed 's/^/| /' conftest.$ac_ext >&5
35769
35770
35771 fi
35772
35773 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35774       conftest$ac_exeext
35775   if test "${ac_cv_search_setsockopt+set}" = set; then
35776   break
35777 fi
35778 done
35779 if test "${ac_cv_search_setsockopt+set}" = set; then
35780   :
35781 else
35782   ac_cv_search_setsockopt=no
35783 fi
35784 rm conftest.$ac_ext
35785 LIBS=$ac_func_search_save_LIBS
35786 fi
35787 { echo "$as_me:$LINENO: result: $ac_cv_search_setsockopt" >&5
35788 echo "${ECHO_T}$ac_cv_search_setsockopt" >&6; }
35789 ac_res=$ac_cv_search_setsockopt
35790 if test "$ac_res" != no; then
35791   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
35792
35793 fi
35794
35795
35796   case "$ac_cv_search_setsockopt" in
35797     -l*) LIB_SETSOCKOPT=$ac_cv_search_setsockopt
35798   esac
35799
35800   LIBS=$pu_save_LIBS
35801
35802   enable_rmt() {
35803     if test $ac_cv_header_sys_mtio_h = yes; then
35804       { echo "$as_me:$LINENO: checking for remote tape header files" >&5
35805 echo $ECHO_N "checking for remote tape header files... $ECHO_C" >&6; }
35806 if test "${pu_cv_header_rmt+set}" = set; then
35807   echo $ECHO_N "(cached) $ECHO_C" >&6
35808 else
35809   cat >conftest.$ac_ext <<_ACEOF
35810 /* confdefs.h.  */
35811 _ACEOF
35812 cat confdefs.h >>conftest.$ac_ext
35813 cat >>conftest.$ac_ext <<_ACEOF
35814 /* end confdefs.h.  */
35815
35816 #if HAVE_SGTTY_H
35817 # include <sgtty.h>
35818 #endif
35819 #include <sys/socket.h>
35820 _ACEOF
35821 if { (ac_try="$ac_cpp conftest.$ac_ext"
35822 case "(($ac_try" in
35823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35824   *) ac_try_echo=$ac_try;;
35825 esac
35826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35827   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35828   ac_status=$?
35829   grep -v '^ *+' conftest.er1 >conftest.err
35830   rm -f conftest.er1
35831   cat conftest.err >&5
35832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35833   (exit $ac_status); } >/dev/null && {
35834          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
35835          test ! -s conftest.err
35836        }; then
35837   pu_cv_header_rmt=yes
35838 else
35839   echo "$as_me: failed program was:" >&5
35840 sed 's/^/| /' conftest.$ac_ext >&5
35841
35842   pu_cv_header_rmt=no
35843 fi
35844
35845 rm -f conftest.err conftest.$ac_ext
35846 fi
35847 { echo "$as_me:$LINENO: result: $pu_cv_header_rmt" >&5
35848 echo "${ECHO_T}$pu_cv_header_rmt" >&6; }
35849       test $pu_cv_header_rmt = yes && PU_RMT_PROG='rmt$(EXEEXT)'
35850
35851     fi
35852   }
35853
35854
35855 for ac_header in sys/mtio.h
35856 do
35857 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35858 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35859   { echo "$as_me:$LINENO: checking for $ac_header" >&5
35860 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35861 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35862   echo $ECHO_N "(cached) $ECHO_C" >&6
35863 fi
35864 ac_res=`eval echo '${'$as_ac_Header'}'`
35865                { echo "$as_me:$LINENO: result: $ac_res" >&5
35866 echo "${ECHO_T}$ac_res" >&6; }
35867 else
35868   # Is the header compilable?
35869 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
35870 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
35871 cat >conftest.$ac_ext <<_ACEOF
35872 /* confdefs.h.  */
35873 _ACEOF
35874 cat confdefs.h >>conftest.$ac_ext
35875 cat >>conftest.$ac_ext <<_ACEOF
35876 /* end confdefs.h.  */
35877 $ac_includes_default
35878 #include <$ac_header>
35879 _ACEOF
35880 rm -f conftest.$ac_objext
35881 if { (ac_try="$ac_compile"
35882 case "(($ac_try" in
35883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35884   *) ac_try_echo=$ac_try;;
35885 esac
35886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35887   (eval "$ac_compile") 2>conftest.er1
35888   ac_status=$?
35889   grep -v '^ *+' conftest.er1 >conftest.err
35890   rm -f conftest.er1
35891   cat conftest.err >&5
35892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35893   (exit $ac_status); } && {
35894          test -z "$ac_c_werror_flag" ||
35895          test ! -s conftest.err
35896        } && test -s conftest.$ac_objext; then
35897   ac_header_compiler=yes
35898 else
35899   echo "$as_me: failed program was:" >&5
35900 sed 's/^/| /' conftest.$ac_ext >&5
35901
35902         ac_header_compiler=no
35903 fi
35904
35905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35906 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35907 echo "${ECHO_T}$ac_header_compiler" >&6; }
35908
35909 # Is the header present?
35910 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
35911 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
35912 cat >conftest.$ac_ext <<_ACEOF
35913 /* confdefs.h.  */
35914 _ACEOF
35915 cat confdefs.h >>conftest.$ac_ext
35916 cat >>conftest.$ac_ext <<_ACEOF
35917 /* end confdefs.h.  */
35918 #include <$ac_header>
35919 _ACEOF
35920 if { (ac_try="$ac_cpp conftest.$ac_ext"
35921 case "(($ac_try" in
35922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35923   *) ac_try_echo=$ac_try;;
35924 esac
35925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35926   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35927   ac_status=$?
35928   grep -v '^ *+' conftest.er1 >conftest.err
35929   rm -f conftest.er1
35930   cat conftest.err >&5
35931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35932   (exit $ac_status); } >/dev/null && {
35933          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
35934          test ! -s conftest.err
35935        }; then
35936   ac_header_preproc=yes
35937 else
35938   echo "$as_me: failed program was:" >&5
35939 sed 's/^/| /' conftest.$ac_ext >&5
35940
35941   ac_header_preproc=no
35942 fi
35943
35944 rm -f conftest.err conftest.$ac_ext
35945 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35946 echo "${ECHO_T}$ac_header_preproc" >&6; }
35947
35948 # So?  What about this header?
35949 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35950   yes:no: )
35951     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35952 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35953     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35954 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35955     ac_header_preproc=yes
35956     ;;
35957   no:yes:* )
35958     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35959 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35960     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
35961 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
35962     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35963 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35964     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
35965 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
35966     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35967 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35968     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35969 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35970     ( cat <<\_ASBOX
35971 ## ------------------------------ ##
35972 ## Report this to bug-tar@gnu.org ##
35973 ## ------------------------------ ##
35974 _ASBOX
35975      ) | sed "s/^/$as_me: WARNING:     /" >&2
35976     ;;
35977 esac
35978 { echo "$as_me:$LINENO: checking for $ac_header" >&5
35979 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35980 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35981   echo $ECHO_N "(cached) $ECHO_C" >&6
35982 else
35983   eval "$as_ac_Header=\$ac_header_preproc"
35984 fi
35985 ac_res=`eval echo '${'$as_ac_Header'}'`
35986                { echo "$as_me:$LINENO: result: $ac_res" >&5
35987 echo "${ECHO_T}$ac_res" >&6; }
35988
35989 fi
35990 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35991   cat >>confdefs.h <<_ACEOF
35992 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35993 _ACEOF
35994
35995 fi
35996
35997 done
35998
35999   { echo "$as_me:$LINENO: checking which ioctl field to test for reversed bytes" >&5
36000 echo $ECHO_N "checking which ioctl field to test for reversed bytes... $ECHO_C" >&6; }
36001 if test "${pu_cv_header_mtio_check_field+set}" = set; then
36002   echo $ECHO_N "(cached) $ECHO_C" >&6
36003 else
36004   cat >conftest.$ac_ext <<_ACEOF
36005 /* confdefs.h.  */
36006 _ACEOF
36007 cat confdefs.h >>conftest.$ac_ext
36008 cat >>conftest.$ac_ext <<_ACEOF
36009 /* end confdefs.h.  */
36010 #include <sys/mtio.h>
36011
36012 _ACEOF
36013 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36014   $EGREP "mt_model" >/dev/null 2>&1; then
36015   pu_cv_header_mtio_check_field=mt_model
36016 else
36017   pu_cv_header_mtio_check_field=mt_type
36018 fi
36019 rm -f conftest*
36020
36021 fi
36022 { echo "$as_me:$LINENO: result: $pu_cv_header_mtio_check_field" >&5
36023 echo "${ECHO_T}$pu_cv_header_mtio_check_field" >&6; }
36024
36025 cat >>confdefs.h <<_ACEOF
36026 #define MTIO_CHECK_FIELD $pu_cv_header_mtio_check_field
36027 _ACEOF
36028
36029
36030
36031
36032   if test "x$DEFAULT_RMT_DIR" != x; then
36033         DEFAULT_RMT_COMMAND=$DEFAULT_RMT_DIR/rmt
36034   else
36035         DEFAULT_RMT_DIR='$(libexecdir)'
36036   fi
36037
36038   { echo "$as_me:$LINENO: checking whether to build rmt" >&5
36039 echo $ECHO_N "checking whether to build rmt... $ECHO_C" >&6; }
36040
36041 # Check whether --with-rmt was given.
36042 if test "${with_rmt+set}" = set; then
36043   withval=$with_rmt; case $withval in
36044                yes|no) { { echo "$as_me:$LINENO: error: Invalid argument to --with-rmt" >&5
36045 echo "$as_me: error: Invalid argument to --with-rmt" >&2;}
36046    { (exit 1); exit 1; }; };;
36047                /*)     DEFAULT_RMT_COMMAND=$withval
36048                        { echo "$as_me:$LINENO: result: no, use $withval instead" >&5
36049 echo "${ECHO_T}no, use $withval instead" >&6; };;
36050                *)      { { echo "$as_me:$LINENO: error: Argument to --with-rmt must be an absolute file name" >&5
36051 echo "$as_me: error: Argument to --with-rmt must be an absolute file name" >&2;}
36052    { (exit 1); exit 1; }; };;
36053                esac
36054 else
36055   { echo "$as_me:$LINENO: result: yes" >&5
36056 echo "${ECHO_T}yes" >&6; }
36057                 enable_rmt
36058                 if test "$PU_RMT_PROG" = ""; then
36059                   { echo "$as_me:$LINENO: WARNING: not building rmt, required header files are missing" >&5
36060 echo "$as_me: WARNING: not building rmt, required header files are missing" >&2;}
36061                 fi
36062 fi
36063
36064
36065
36066   if test "x$DEFAULT_RMT_COMMAND" != x; then
36067
36068 cat >>confdefs.h <<_ACEOF
36069 #define DEFAULT_RMT_COMMAND "$DEFAULT_RMT_COMMAND"
36070 _ACEOF
36071
36072   fi
36073
36074
36075
36076
36077
36078
36079
36080
36081
36082
36083
36084
36085
36086
36087
36088
36089
36090
36091
36092
36093
36094
36095
36096
36097
36098
36099
36100
36101
36102
36103
36104
36105
36106
36107
36108
36109
36110
36111
36112
36113
36114
36115
36116
36117
36118
36119
36120
36121
36122
36123
36124
36125 for ac_header in sys/buf.h
36126 do
36127 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36128 { echo "$as_me:$LINENO: checking for $ac_header" >&5
36129 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
36130 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
36131   echo $ECHO_N "(cached) $ECHO_C" >&6
36132 else
36133   cat >conftest.$ac_ext <<_ACEOF
36134 /* confdefs.h.  */
36135 _ACEOF
36136 cat confdefs.h >>conftest.$ac_ext
36137 cat >>conftest.$ac_ext <<_ACEOF
36138 /* end confdefs.h.  */
36139 #if HAVE_SYS_PARAM_H
36140 #include <sys/param.h>
36141 #endif
36142
36143 #include <$ac_header>
36144 _ACEOF
36145 rm -f conftest.$ac_objext
36146 if { (ac_try="$ac_compile"
36147 case "(($ac_try" in
36148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36149   *) ac_try_echo=$ac_try;;
36150 esac
36151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36152   (eval "$ac_compile") 2>conftest.er1
36153   ac_status=$?
36154   grep -v '^ *+' conftest.er1 >conftest.err
36155   rm -f conftest.er1
36156   cat conftest.err >&5
36157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36158   (exit $ac_status); } && {
36159          test -z "$ac_c_werror_flag" ||
36160          test ! -s conftest.err
36161        } && test -s conftest.$ac_objext; then
36162   eval "$as_ac_Header=yes"
36163 else
36164   echo "$as_me: failed program was:" >&5
36165 sed 's/^/| /' conftest.$ac_ext >&5
36166
36167         eval "$as_ac_Header=no"
36168 fi
36169
36170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36171 fi
36172 ac_res=`eval echo '${'$as_ac_Header'}'`
36173                { echo "$as_me:$LINENO: result: $ac_res" >&5
36174 echo "${ECHO_T}$ac_res" >&6; }
36175 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36176   cat >>confdefs.h <<_ACEOF
36177 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36178 _ACEOF
36179
36180 fi
36181
36182 done
36183
36184
36185
36186
36187   { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
36188 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
36189 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
36190   echo $ECHO_N "(cached) $ECHO_C" >&6
36191 else
36192   cat >conftest.$ac_ext <<_ACEOF
36193 /* confdefs.h.  */
36194 _ACEOF
36195 cat confdefs.h >>conftest.$ac_ext
36196 cat >>conftest.$ac_ext <<_ACEOF
36197 /* end confdefs.h.  */
36198 $ac_includes_default
36199 int
36200 main ()
36201 {
36202 static struct stat ac_aggr;
36203 if (ac_aggr.st_blksize)
36204 return 0;
36205   ;
36206   return 0;
36207 }
36208 _ACEOF
36209 rm -f conftest.$ac_objext
36210 if { (ac_try="$ac_compile"
36211 case "(($ac_try" in
36212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36213   *) ac_try_echo=$ac_try;;
36214 esac
36215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36216   (eval "$ac_compile") 2>conftest.er1
36217   ac_status=$?
36218   grep -v '^ *+' conftest.er1 >conftest.err
36219   rm -f conftest.er1
36220   cat conftest.err >&5
36221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36222   (exit $ac_status); } && {
36223          test -z "$ac_c_werror_flag" ||
36224          test ! -s conftest.err
36225        } && test -s conftest.$ac_objext; then
36226   ac_cv_member_struct_stat_st_blksize=yes
36227 else
36228   echo "$as_me: failed program was:" >&5
36229 sed 's/^/| /' conftest.$ac_ext >&5
36230
36231         cat >conftest.$ac_ext <<_ACEOF
36232 /* confdefs.h.  */
36233 _ACEOF
36234 cat confdefs.h >>conftest.$ac_ext
36235 cat >>conftest.$ac_ext <<_ACEOF
36236 /* end confdefs.h.  */
36237 $ac_includes_default
36238 int
36239 main ()
36240 {
36241 static struct stat ac_aggr;
36242 if (sizeof ac_aggr.st_blksize)
36243 return 0;
36244   ;
36245   return 0;
36246 }
36247 _ACEOF
36248 rm -f conftest.$ac_objext
36249 if { (ac_try="$ac_compile"
36250 case "(($ac_try" in
36251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36252   *) ac_try_echo=$ac_try;;
36253 esac
36254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36255   (eval "$ac_compile") 2>conftest.er1
36256   ac_status=$?
36257   grep -v '^ *+' conftest.er1 >conftest.err
36258   rm -f conftest.er1
36259   cat conftest.err >&5
36260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36261   (exit $ac_status); } && {
36262          test -z "$ac_c_werror_flag" ||
36263          test ! -s conftest.err
36264        } && test -s conftest.$ac_objext; then
36265   ac_cv_member_struct_stat_st_blksize=yes
36266 else
36267   echo "$as_me: failed program was:" >&5
36268 sed 's/^/| /' conftest.$ac_ext >&5
36269
36270         ac_cv_member_struct_stat_st_blksize=no
36271 fi
36272
36273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36274 fi
36275
36276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36277 fi
36278 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
36279 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
36280 if test $ac_cv_member_struct_stat_st_blksize = yes; then
36281
36282 cat >>confdefs.h <<_ACEOF
36283 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
36284 _ACEOF
36285
36286
36287 fi
36288
36289
36290
36291
36292
36293
36294
36295
36296
36297
36298
36299
36300
36301
36302
36303
36304
36305
36306
36307
36308
36309
36310
36311
36312
36313
36314 for ac_func in fsync getdtablesize lstat mkfifo readlink symlink setlocale utimes
36315 do
36316 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36317 { echo "$as_me:$LINENO: checking for $ac_func" >&5
36318 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36319 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36320   echo $ECHO_N "(cached) $ECHO_C" >&6
36321 else
36322   cat >conftest.$ac_ext <<_ACEOF
36323 /* confdefs.h.  */
36324 _ACEOF
36325 cat confdefs.h >>conftest.$ac_ext
36326 cat >>conftest.$ac_ext <<_ACEOF
36327 /* end confdefs.h.  */
36328 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36329    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36330 #define $ac_func innocuous_$ac_func
36331
36332 /* System header to define __stub macros and hopefully few prototypes,
36333     which can conflict with char $ac_func (); below.
36334     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36335     <limits.h> exists even on freestanding compilers.  */
36336
36337 #ifdef __STDC__
36338 # include <limits.h>
36339 #else
36340 # include <assert.h>
36341 #endif
36342
36343 #undef $ac_func
36344
36345 /* Override any GCC internal prototype to avoid an error.
36346    Use char because int might match the return type of a GCC
36347    builtin and then its argument prototype would still apply.  */
36348 #ifdef __cplusplus
36349 extern "C"
36350 #endif
36351 char $ac_func ();
36352 /* The GNU C library defines this for functions which it implements
36353     to always fail with ENOSYS.  Some functions are actually named
36354     something starting with __ and the normal name is an alias.  */
36355 #if defined __stub_$ac_func || defined __stub___$ac_func
36356 choke me
36357 #endif
36358
36359 int
36360 main ()
36361 {
36362 return $ac_func ();
36363   ;
36364   return 0;
36365 }
36366 _ACEOF
36367 rm -f conftest.$ac_objext conftest$ac_exeext
36368 if { (ac_try="$ac_link"
36369 case "(($ac_try" in
36370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36371   *) ac_try_echo=$ac_try;;
36372 esac
36373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36374   (eval "$ac_link") 2>conftest.er1
36375   ac_status=$?
36376   grep -v '^ *+' conftest.er1 >conftest.err
36377   rm -f conftest.er1
36378   cat conftest.err >&5
36379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36380   (exit $ac_status); } && {
36381          test -z "$ac_c_werror_flag" ||
36382          test ! -s conftest.err
36383        } && test -s conftest$ac_exeext &&
36384        $as_test_x conftest$ac_exeext; then
36385   eval "$as_ac_var=yes"
36386 else
36387   echo "$as_me: failed program was:" >&5
36388 sed 's/^/| /' conftest.$ac_ext >&5
36389
36390         eval "$as_ac_var=no"
36391 fi
36392
36393 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36394       conftest$ac_exeext conftest.$ac_ext
36395 fi
36396 ac_res=`eval echo '${'$as_ac_var'}'`
36397                { echo "$as_me:$LINENO: result: $ac_res" >&5
36398 echo "${ECHO_T}$ac_res" >&6; }
36399 if test `eval echo '${'$as_ac_var'}'` = yes; then
36400   cat >>confdefs.h <<_ACEOF
36401 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36402 _ACEOF
36403
36404 fi
36405 done
36406
36407 { echo "$as_me:$LINENO: checking whether getgrgid is declared" >&5
36408 echo $ECHO_N "checking whether getgrgid is declared... $ECHO_C" >&6; }
36409 if test "${ac_cv_have_decl_getgrgid+set}" = set; then
36410   echo $ECHO_N "(cached) $ECHO_C" >&6
36411 else
36412   cat >conftest.$ac_ext <<_ACEOF
36413 /* confdefs.h.  */
36414 _ACEOF
36415 cat confdefs.h >>conftest.$ac_ext
36416 cat >>conftest.$ac_ext <<_ACEOF
36417 /* end confdefs.h.  */
36418 #include <grp.h>
36419
36420 int
36421 main ()
36422 {
36423 #ifndef getgrgid
36424   (void) getgrgid;
36425 #endif
36426
36427   ;
36428   return 0;
36429 }
36430 _ACEOF
36431 rm -f conftest.$ac_objext
36432 if { (ac_try="$ac_compile"
36433 case "(($ac_try" in
36434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36435   *) ac_try_echo=$ac_try;;
36436 esac
36437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36438   (eval "$ac_compile") 2>conftest.er1
36439   ac_status=$?
36440   grep -v '^ *+' conftest.er1 >conftest.err
36441   rm -f conftest.er1
36442   cat conftest.err >&5
36443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36444   (exit $ac_status); } && {
36445          test -z "$ac_c_werror_flag" ||
36446          test ! -s conftest.err
36447        } && test -s conftest.$ac_objext; then
36448   ac_cv_have_decl_getgrgid=yes
36449 else
36450   echo "$as_me: failed program was:" >&5
36451 sed 's/^/| /' conftest.$ac_ext >&5
36452
36453         ac_cv_have_decl_getgrgid=no
36454 fi
36455
36456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36457 fi
36458 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getgrgid" >&5
36459 echo "${ECHO_T}$ac_cv_have_decl_getgrgid" >&6; }
36460 if test $ac_cv_have_decl_getgrgid = yes; then
36461
36462 cat >>confdefs.h <<_ACEOF
36463 #define HAVE_DECL_GETGRGID 1
36464 _ACEOF
36465
36466
36467 else
36468   cat >>confdefs.h <<_ACEOF
36469 #define HAVE_DECL_GETGRGID 0
36470 _ACEOF
36471
36472
36473 fi
36474
36475
36476 { echo "$as_me:$LINENO: checking whether getpwuid is declared" >&5
36477 echo $ECHO_N "checking whether getpwuid is declared... $ECHO_C" >&6; }
36478 if test "${ac_cv_have_decl_getpwuid+set}" = set; then
36479   echo $ECHO_N "(cached) $ECHO_C" >&6
36480 else
36481   cat >conftest.$ac_ext <<_ACEOF
36482 /* confdefs.h.  */
36483 _ACEOF
36484 cat confdefs.h >>conftest.$ac_ext
36485 cat >>conftest.$ac_ext <<_ACEOF
36486 /* end confdefs.h.  */
36487 #include <pwd.h>
36488
36489 int
36490 main ()
36491 {
36492 #ifndef getpwuid
36493   (void) getpwuid;
36494 #endif
36495
36496   ;
36497   return 0;
36498 }
36499 _ACEOF
36500 rm -f conftest.$ac_objext
36501 if { (ac_try="$ac_compile"
36502 case "(($ac_try" in
36503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36504   *) ac_try_echo=$ac_try;;
36505 esac
36506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36507   (eval "$ac_compile") 2>conftest.er1
36508   ac_status=$?
36509   grep -v '^ *+' conftest.er1 >conftest.err
36510   rm -f conftest.er1
36511   cat conftest.err >&5
36512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36513   (exit $ac_status); } && {
36514          test -z "$ac_c_werror_flag" ||
36515          test ! -s conftest.err
36516        } && test -s conftest.$ac_objext; then
36517   ac_cv_have_decl_getpwuid=yes
36518 else
36519   echo "$as_me: failed program was:" >&5
36520 sed 's/^/| /' conftest.$ac_ext >&5
36521
36522         ac_cv_have_decl_getpwuid=no
36523 fi
36524
36525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36526 fi
36527 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getpwuid" >&5
36528 echo "${ECHO_T}$ac_cv_have_decl_getpwuid" >&6; }
36529 if test $ac_cv_have_decl_getpwuid = yes; then
36530
36531 cat >>confdefs.h <<_ACEOF
36532 #define HAVE_DECL_GETPWUID 1
36533 _ACEOF
36534
36535
36536 else
36537   cat >>confdefs.h <<_ACEOF
36538 #define HAVE_DECL_GETPWUID 0
36539 _ACEOF
36540
36541
36542 fi
36543
36544
36545 { echo "$as_me:$LINENO: checking whether time is declared" >&5
36546 echo $ECHO_N "checking whether time is declared... $ECHO_C" >&6; }
36547 if test "${ac_cv_have_decl_time+set}" = set; then
36548   echo $ECHO_N "(cached) $ECHO_C" >&6
36549 else
36550   cat >conftest.$ac_ext <<_ACEOF
36551 /* confdefs.h.  */
36552 _ACEOF
36553 cat confdefs.h >>conftest.$ac_ext
36554 cat >>conftest.$ac_ext <<_ACEOF
36555 /* end confdefs.h.  */
36556 #include <time.h>
36557
36558 int
36559 main ()
36560 {
36561 #ifndef time
36562   (void) time;
36563 #endif
36564
36565   ;
36566   return 0;
36567 }
36568 _ACEOF
36569 rm -f conftest.$ac_objext
36570 if { (ac_try="$ac_compile"
36571 case "(($ac_try" in
36572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36573   *) ac_try_echo=$ac_try;;
36574 esac
36575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36576   (eval "$ac_compile") 2>conftest.er1
36577   ac_status=$?
36578   grep -v '^ *+' conftest.er1 >conftest.err
36579   rm -f conftest.er1
36580   cat conftest.err >&5
36581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36582   (exit $ac_status); } && {
36583          test -z "$ac_c_werror_flag" ||
36584          test ! -s conftest.err
36585        } && test -s conftest.$ac_objext; then
36586   ac_cv_have_decl_time=yes
36587 else
36588   echo "$as_me: failed program was:" >&5
36589 sed 's/^/| /' conftest.$ac_ext >&5
36590
36591         ac_cv_have_decl_time=no
36592 fi
36593
36594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36595 fi
36596 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_time" >&5
36597 echo "${ECHO_T}$ac_cv_have_decl_time" >&6; }
36598 if test $ac_cv_have_decl_time = yes; then
36599
36600 cat >>confdefs.h <<_ACEOF
36601 #define HAVE_DECL_TIME 1
36602 _ACEOF
36603
36604
36605 else
36606   cat >>confdefs.h <<_ACEOF
36607 #define HAVE_DECL_TIME 0
36608 _ACEOF
36609
36610
36611 fi
36612
36613
36614
36615
36616 for ac_func in waitpid
36617 do
36618 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36619 { echo "$as_me:$LINENO: checking for $ac_func" >&5
36620 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36621 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36622   echo $ECHO_N "(cached) $ECHO_C" >&6
36623 else
36624   cat >conftest.$ac_ext <<_ACEOF
36625 /* confdefs.h.  */
36626 _ACEOF
36627 cat confdefs.h >>conftest.$ac_ext
36628 cat >>conftest.$ac_ext <<_ACEOF
36629 /* end confdefs.h.  */
36630 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36631    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36632 #define $ac_func innocuous_$ac_func
36633
36634 /* System header to define __stub macros and hopefully few prototypes,
36635     which can conflict with char $ac_func (); below.
36636     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36637     <limits.h> exists even on freestanding compilers.  */
36638
36639 #ifdef __STDC__
36640 # include <limits.h>
36641 #else
36642 # include <assert.h>
36643 #endif
36644
36645 #undef $ac_func
36646
36647 /* Override any GCC internal prototype to avoid an error.
36648    Use char because int might match the return type of a GCC
36649    builtin and then its argument prototype would still apply.  */
36650 #ifdef __cplusplus
36651 extern "C"
36652 #endif
36653 char $ac_func ();
36654 /* The GNU C library defines this for functions which it implements
36655     to always fail with ENOSYS.  Some functions are actually named
36656     something starting with __ and the normal name is an alias.  */
36657 #if defined __stub_$ac_func || defined __stub___$ac_func
36658 choke me
36659 #endif
36660
36661 int
36662 main ()
36663 {
36664 return $ac_func ();
36665   ;
36666   return 0;
36667 }
36668 _ACEOF
36669 rm -f conftest.$ac_objext conftest$ac_exeext
36670 if { (ac_try="$ac_link"
36671 case "(($ac_try" in
36672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36673   *) ac_try_echo=$ac_try;;
36674 esac
36675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36676   (eval "$ac_link") 2>conftest.er1
36677   ac_status=$?
36678   grep -v '^ *+' conftest.er1 >conftest.err
36679   rm -f conftest.er1
36680   cat conftest.err >&5
36681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36682   (exit $ac_status); } && {
36683          test -z "$ac_c_werror_flag" ||
36684          test ! -s conftest.err
36685        } && test -s conftest$ac_exeext &&
36686        $as_test_x conftest$ac_exeext; then
36687   eval "$as_ac_var=yes"
36688 else
36689   echo "$as_me: failed program was:" >&5
36690 sed 's/^/| /' conftest.$ac_ext >&5
36691
36692         eval "$as_ac_var=no"
36693 fi
36694
36695 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36696       conftest$ac_exeext conftest.$ac_ext
36697 fi
36698 ac_res=`eval echo '${'$as_ac_var'}'`
36699                { echo "$as_me:$LINENO: result: $ac_res" >&5
36700 echo "${ECHO_T}$ac_res" >&6; }
36701 if test `eval echo '${'$as_ac_var'}'` = yes; then
36702   cat >>confdefs.h <<_ACEOF
36703 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36704 _ACEOF
36705
36706 else
36707   case " $LIBOBJS " in
36708   *" $ac_func.$ac_objext "* ) ;;
36709   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
36710  ;;
36711 esac
36712
36713 fi
36714 done
36715
36716
36717
36718 { echo "$as_me:$LINENO: checking for remote shell" >&5
36719 echo $ECHO_N "checking for remote shell... $ECHO_C" >&6; }
36720 if test "${tar_cv_path_RSH+set}" = set; then
36721   echo $ECHO_N "(cached) $ECHO_C" >&6
36722 else
36723   if test -n "$RSH"; then
36724     tar_cv_path_RSH=$RSH
36725   else
36726     tar_cv_path_RSH=no
36727     for ac_file in /usr/ucb/rsh /usr/bin/remsh /usr/bin/rsh /usr/bsd/rsh \
36728         /usr/bin/nsh /usr/bin/rcmd
36729     do
36730       # Prefer a non-symlink rsh to a symlink one, so that binaries built
36731       # on AIX 4.1.4, where /usr/ucb/rsh is a symlink to /usr/bin/rsh
36732       # will run on AIX 4.3.0, which has only /usr/bin/rsh.
36733       if test -f $ac_file; then
36734         if (test -h $ac_file) 2>/dev/null; then
36735           test $tar_cv_path_RSH = no && tar_cv_path_RSH=$ac_file
36736         else
36737           tar_cv_path_RSH=$ac_file
36738           break
36739         fi
36740       fi
36741     done
36742   fi
36743 fi
36744 { echo "$as_me:$LINENO: result: $tar_cv_path_RSH" >&5
36745 echo "${ECHO_T}$tar_cv_path_RSH" >&6; }
36746 if test $tar_cv_path_RSH = no; then
36747
36748 for ac_header in netdb.h
36749 do
36750 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36751 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
36752   { echo "$as_me:$LINENO: checking for $ac_header" >&5
36753 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
36754 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
36755   echo $ECHO_N "(cached) $ECHO_C" >&6
36756 fi
36757 ac_res=`eval echo '${'$as_ac_Header'}'`
36758                { echo "$as_me:$LINENO: result: $ac_res" >&5
36759 echo "${ECHO_T}$ac_res" >&6; }
36760 else
36761   # Is the header compilable?
36762 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
36763 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
36764 cat >conftest.$ac_ext <<_ACEOF
36765 /* confdefs.h.  */
36766 _ACEOF
36767 cat confdefs.h >>conftest.$ac_ext
36768 cat >>conftest.$ac_ext <<_ACEOF
36769 /* end confdefs.h.  */
36770 $ac_includes_default
36771 #include <$ac_header>
36772 _ACEOF
36773 rm -f conftest.$ac_objext
36774 if { (ac_try="$ac_compile"
36775 case "(($ac_try" in
36776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36777   *) ac_try_echo=$ac_try;;
36778 esac
36779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36780   (eval "$ac_compile") 2>conftest.er1
36781   ac_status=$?
36782   grep -v '^ *+' conftest.er1 >conftest.err
36783   rm -f conftest.er1
36784   cat conftest.err >&5
36785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36786   (exit $ac_status); } && {
36787          test -z "$ac_c_werror_flag" ||
36788          test ! -s conftest.err
36789        } && test -s conftest.$ac_objext; then
36790   ac_header_compiler=yes
36791 else
36792   echo "$as_me: failed program was:" >&5
36793 sed 's/^/| /' conftest.$ac_ext >&5
36794
36795         ac_header_compiler=no
36796 fi
36797
36798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36799 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36800 echo "${ECHO_T}$ac_header_compiler" >&6; }
36801
36802 # Is the header present?
36803 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
36804 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
36805 cat >conftest.$ac_ext <<_ACEOF
36806 /* confdefs.h.  */
36807 _ACEOF
36808 cat confdefs.h >>conftest.$ac_ext
36809 cat >>conftest.$ac_ext <<_ACEOF
36810 /* end confdefs.h.  */
36811 #include <$ac_header>
36812 _ACEOF
36813 if { (ac_try="$ac_cpp conftest.$ac_ext"
36814 case "(($ac_try" in
36815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36816   *) ac_try_echo=$ac_try;;
36817 esac
36818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36819   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
36820   ac_status=$?
36821   grep -v '^ *+' conftest.er1 >conftest.err
36822   rm -f conftest.er1
36823   cat conftest.err >&5
36824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36825   (exit $ac_status); } >/dev/null && {
36826          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
36827          test ! -s conftest.err
36828        }; then
36829   ac_header_preproc=yes
36830 else
36831   echo "$as_me: failed program was:" >&5
36832 sed 's/^/| /' conftest.$ac_ext >&5
36833
36834   ac_header_preproc=no
36835 fi
36836
36837 rm -f conftest.err conftest.$ac_ext
36838 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36839 echo "${ECHO_T}$ac_header_preproc" >&6; }
36840
36841 # So?  What about this header?
36842 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36843   yes:no: )
36844     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36845 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36846     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36847 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36848     ac_header_preproc=yes
36849     ;;
36850   no:yes:* )
36851     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36852 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36853     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
36854 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
36855     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36856 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36857     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
36858 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
36859     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36860 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36861     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36862 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36863     ( cat <<\_ASBOX
36864 ## ------------------------------ ##
36865 ## Report this to bug-tar@gnu.org ##
36866 ## ------------------------------ ##
36867 _ASBOX
36868      ) | sed "s/^/$as_me: WARNING:     /" >&2
36869     ;;
36870 esac
36871 { echo "$as_me:$LINENO: checking for $ac_header" >&5
36872 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
36873 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
36874   echo $ECHO_N "(cached) $ECHO_C" >&6
36875 else
36876   eval "$as_ac_Header=\$ac_header_preproc"
36877 fi
36878 ac_res=`eval echo '${'$as_ac_Header'}'`
36879                { echo "$as_me:$LINENO: result: $ac_res" >&5
36880 echo "${ECHO_T}$ac_res" >&6; }
36881
36882 fi
36883 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36884   cat >>confdefs.h <<_ACEOF
36885 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36886 _ACEOF
36887
36888 fi
36889
36890 done
36891
36892 else
36893
36894 cat >>confdefs.h <<_ACEOF
36895 #define REMOTE_SHELL "$tar_cv_path_RSH"
36896 _ACEOF
36897
36898 fi
36899
36900 { echo "$as_me:$LINENO: checking for default archive format" >&5
36901 echo $ECHO_N "checking for default archive format... $ECHO_C" >&6; }
36902
36903
36904
36905 if test -z "$DEFAULT_ARCHIVE_FORMAT"; then
36906   DEFAULT_ARCHIVE_FORMAT="GNU"
36907 fi
36908 case $DEFAULT_ARCHIVE_FORMAT in
36909   V7|OLDGNU|USTAR|POSIX|GNU) ;;
36910   *) { { echo "$as_me:$LINENO: error: Invalid format name" >&5
36911 echo "$as_me: error: Invalid format name" >&2;}
36912    { (exit 1); exit 1; }; };;
36913 esac
36914
36915 cat >>confdefs.h <<_ACEOF
36916 #define DEFAULT_ARCHIVE_FORMAT ${DEFAULT_ARCHIVE_FORMAT}_FORMAT
36917 _ACEOF
36918
36919 { echo "$as_me:$LINENO: result: $DEFAULT_ARCHIVE_FORMAT" >&5
36920 echo "${ECHO_T}$DEFAULT_ARCHIVE_FORMAT" >&6; }
36921
36922 { echo "$as_me:$LINENO: checking for default archive" >&5
36923 echo $ECHO_N "checking for default archive... $ECHO_C" >&6; }
36924
36925
36926 if test -z "$DEFAULT_ARCHIVE"; then
36927   DEFAULT_ARCHIVE=-
36928 else
36929   if test -z "`ls $DEFAULT_ARCHIVE 2>/dev/null`"; then
36930     { echo "$as_me:$LINENO: WARNING: DEFAULT_ARCHIVE \`$DEFAULT_ARCHIVE' not found on this system" >&5
36931 echo "$as_me: WARNING: DEFAULT_ARCHIVE \`$DEFAULT_ARCHIVE' not found on this system" >&2;}
36932   fi
36933   # FIXME: Look for DEFTAPE in <sys/mtio.h>.
36934   # FIXME: Let DEVICE_PREFIX be configured from the environment.
36935   # FIXME: Rearrange, here.
36936   case $DEFAULT_ARCHIVE in
36937     *[0-7][lmh])
36938
36939 cat >>confdefs.h <<\_ACEOF
36940 #define DENSITY_LETTER 1
36941 _ACEOF
36942
36943       device_prefix=`echo $DEFAULT_ARCHIVE | sed 's/0-7lmh$//'`
36944       ;;
36945     *[0-7])
36946       device_prefix=`echo $DEFAULT_ARCHIVE | sed 's/0-7$//'`
36947       ;;
36948     *)
36949       device_prefix=
36950       ;;
36951   esac
36952   case "$device_prefix" in
36953     ?*)
36954
36955 cat >>confdefs.h <<_ACEOF
36956 #define DEVICE_PREFIX "$device_prefix"
36957 _ACEOF
36958
36959       ;;
36960   esac
36961 fi
36962
36963 cat >>confdefs.h <<_ACEOF
36964 #define DEFAULT_ARCHIVE "$DEFAULT_ARCHIVE"
36965 _ACEOF
36966
36967 { echo "$as_me:$LINENO: result: $DEFAULT_ARCHIVE" >&5
36968 echo "${ECHO_T}$DEFAULT_ARCHIVE" >&6; }
36969
36970
36971 { echo "$as_me:$LINENO: checking for default blocking" >&5
36972 echo $ECHO_N "checking for default blocking... $ECHO_C" >&6; }
36973 DEFAULT_BLOCKING=${DEFAULT_BLOCKING-20}
36974
36975 cat >>confdefs.h <<_ACEOF
36976 #define DEFAULT_BLOCKING $DEFAULT_BLOCKING
36977 _ACEOF
36978
36979 { echo "$as_me:$LINENO: result: $DEFAULT_BLOCKING" >&5
36980 echo "${ECHO_T}$DEFAULT_BLOCKING" >&6; }
36981
36982 { echo "$as_me:$LINENO: checking for default quoting style" >&5
36983 echo $ECHO_N "checking for default quoting style... $ECHO_C" >&6; }
36984
36985
36986 DEFAULT_QUOTING_STYLE="escape"
36987
36988
36989 case $DEFAULT_QUOTING_STYLE in
36990           literal|shell|shell-always|c|escape|locale|clocale) ;;
36991 *)  { { echo "$as_me:$LINENO: error: Invalid quoting style" >&5
36992 echo "$as_me: error: Invalid quoting style" >&2;}
36993    { (exit 1); exit 1; }; };;
36994 esac
36995 { echo "$as_me:$LINENO: result: $DEFAULT_QUOTING_STYLE" >&5
36996 echo "${ECHO_T}$DEFAULT_QUOTING_STYLE" >&6; }
36997 DEFAULT_QUOTING_STYLE=`echo ${DEFAULT_QUOTING_STYLE}|sed 's/-/_/g'`_quoting_style
36998
36999 cat >>confdefs.h <<_ACEOF
37000 #define DEFAULT_QUOTING_STYLE $DEFAULT_QUOTING_STYLE
37001 _ACEOF
37002
37003
37004 # Iconv
37005
37006       if test "X$prefix" = "XNONE"; then
37007     acl_final_prefix="$ac_default_prefix"
37008   else
37009     acl_final_prefix="$prefix"
37010   fi
37011   if test "X$exec_prefix" = "XNONE"; then
37012     acl_final_exec_prefix='${prefix}'
37013   else
37014     acl_final_exec_prefix="$exec_prefix"
37015   fi
37016   acl_save_prefix="$prefix"
37017   prefix="$acl_final_prefix"
37018   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
37019   prefix="$acl_save_prefix"
37020
37021
37022 # Check whether --with-gnu-ld was given.
37023 if test "${with_gnu_ld+set}" = set; then
37024   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
37025 else
37026   with_gnu_ld=no
37027 fi
37028
37029 # Prepare PATH_SEPARATOR.
37030 # The user is always right.
37031 if test "${PATH_SEPARATOR+set}" != set; then
37032   echo "#! /bin/sh" >conf$$.sh
37033   echo  "exit 0"   >>conf$$.sh
37034   chmod +x conf$$.sh
37035   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
37036     PATH_SEPARATOR=';'
37037   else
37038     PATH_SEPARATOR=:
37039   fi
37040   rm -f conf$$.sh
37041 fi
37042 ac_prog=ld
37043 if test "$GCC" = yes; then
37044   # Check if gcc -print-prog-name=ld gives a path.
37045   { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
37046 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
37047   case $host in
37048   *-*-mingw*)
37049     # gcc leaves a trailing carriage return which upsets mingw
37050     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
37051   *)
37052     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
37053   esac
37054   case $ac_prog in
37055     # Accept absolute paths.
37056     [\\/]* | [A-Za-z]:[\\/]*)
37057       re_direlt='/[^/][^/]*/\.\./'
37058       # Canonicalize the path of ld
37059       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
37060       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
37061         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
37062       done
37063       test -z "$LD" && LD="$ac_prog"
37064       ;;
37065   "")
37066     # If it fails, then pretend we aren't using GCC.
37067     ac_prog=ld
37068     ;;
37069   *)
37070     # If it is relative, then search for the first ld in PATH.
37071     with_gnu_ld=unknown
37072     ;;
37073   esac
37074 elif test "$with_gnu_ld" = yes; then
37075   { echo "$as_me:$LINENO: checking for GNU ld" >&5
37076 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
37077 else
37078   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
37079 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
37080 fi
37081 if test "${acl_cv_path_LD+set}" = set; then
37082   echo $ECHO_N "(cached) $ECHO_C" >&6
37083 else
37084   if test -z "$LD"; then
37085   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
37086   for ac_dir in $PATH; do
37087     test -z "$ac_dir" && ac_dir=.
37088     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
37089       acl_cv_path_LD="$ac_dir/$ac_prog"
37090       # Check to see if the program is GNU ld.  I'd rather use --version,
37091       # but apparently some GNU ld's only accept -v.
37092       # Break only if it was the GNU/non-GNU ld that we prefer.
37093       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
37094       *GNU* | *'with BFD'*)
37095         test "$with_gnu_ld" != no && break ;;
37096       *)
37097         test "$with_gnu_ld" != yes && break ;;
37098       esac
37099     fi
37100   done
37101   IFS="$ac_save_ifs"
37102 else
37103   acl_cv_path_LD="$LD" # Let the user override the test with a path.
37104 fi
37105 fi
37106
37107 LD="$acl_cv_path_LD"
37108 if test -n "$LD"; then
37109   { echo "$as_me:$LINENO: result: $LD" >&5
37110 echo "${ECHO_T}$LD" >&6; }
37111 else
37112   { echo "$as_me:$LINENO: result: no" >&5
37113 echo "${ECHO_T}no" >&6; }
37114 fi
37115 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
37116 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
37117    { (exit 1); exit 1; }; }
37118 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
37119 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
37120 if test "${acl_cv_prog_gnu_ld+set}" = set; then
37121   echo $ECHO_N "(cached) $ECHO_C" >&6
37122 else
37123   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
37124 case `$LD -v 2>&1 </dev/null` in
37125 *GNU* | *'with BFD'*)
37126   acl_cv_prog_gnu_ld=yes ;;
37127 *)
37128   acl_cv_prog_gnu_ld=no ;;
37129 esac
37130 fi
37131 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
37132 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
37133 with_gnu_ld=$acl_cv_prog_gnu_ld
37134
37135
37136
37137
37138                                                 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
37139 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
37140 if test "${acl_cv_rpath+set}" = set; then
37141   echo $ECHO_N "(cached) $ECHO_C" >&6
37142 else
37143
37144     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
37145     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
37146     . ./conftest.sh
37147     rm -f ./conftest.sh
37148     acl_cv_rpath=done
37149
37150 fi
37151 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
37152 echo "${ECHO_T}$acl_cv_rpath" >&6; }
37153   wl="$acl_cv_wl"
37154   acl_libext="$acl_cv_libext"
37155   acl_shlibext="$acl_cv_shlibext"
37156   acl_libname_spec="$acl_cv_libname_spec"
37157   acl_library_names_spec="$acl_cv_library_names_spec"
37158   acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
37159   acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
37160   acl_hardcode_direct="$acl_cv_hardcode_direct"
37161   acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
37162     # Check whether --enable-rpath was given.
37163 if test "${enable_rpath+set}" = set; then
37164   enableval=$enable_rpath; :
37165 else
37166   enable_rpath=yes
37167 fi
37168
37169
37170
37171
37172   acl_libdirstem=lib
37173   acl_libdirstem2=
37174   case "$host_os" in
37175     solaris*)
37176                                     { echo "$as_me:$LINENO: checking for 64-bit host" >&5
37177 echo $ECHO_N "checking for 64-bit host... $ECHO_C" >&6; }
37178 if test "${gl_cv_solaris_64bit+set}" = set; then
37179   echo $ECHO_N "(cached) $ECHO_C" >&6
37180 else
37181   cat >conftest.$ac_ext <<_ACEOF
37182 /* confdefs.h.  */
37183 _ACEOF
37184 cat confdefs.h >>conftest.$ac_ext
37185 cat >>conftest.$ac_ext <<_ACEOF
37186 /* end confdefs.h.  */
37187
37188 #ifdef _LP64
37189 sixtyfour bits
37190 #endif
37191
37192 _ACEOF
37193 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37194   $EGREP "sixtyfour bits" >/dev/null 2>&1; then
37195   gl_cv_solaris_64bit=yes
37196 else
37197   gl_cv_solaris_64bit=no
37198 fi
37199 rm -f conftest*
37200
37201
37202 fi
37203 { echo "$as_me:$LINENO: result: $gl_cv_solaris_64bit" >&5
37204 echo "${ECHO_T}$gl_cv_solaris_64bit" >&6; }
37205       if test $gl_cv_solaris_64bit = yes; then
37206         acl_libdirstem=lib/64
37207         case "$host_cpu" in
37208           sparc*)        acl_libdirstem2=lib/sparcv9 ;;
37209           i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
37210         esac
37211       fi
37212       ;;
37213     *)
37214       searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
37215       if test -n "$searchpath"; then
37216         acl_save_IFS="${IFS=    }"; IFS=":"
37217         for searchdir in $searchpath; do
37218           if test -d "$searchdir"; then
37219             case "$searchdir" in
37220               */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
37221               *) searchdir=`cd "$searchdir" && pwd`
37222                  case "$searchdir" in
37223                    */lib64 ) acl_libdirstem=lib64 ;;
37224                  esac ;;
37225             esac
37226           fi
37227         done
37228         IFS="$acl_save_IFS"
37229       fi
37230       ;;
37231   esac
37232   test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
37233
37234
37235
37236
37237
37238
37239
37240
37241
37242
37243
37244
37245     use_additional=yes
37246
37247   acl_save_prefix="$prefix"
37248   prefix="$acl_final_prefix"
37249   acl_save_exec_prefix="$exec_prefix"
37250   exec_prefix="$acl_final_exec_prefix"
37251
37252     eval additional_includedir=\"$includedir\"
37253     eval additional_libdir=\"$libdir\"
37254
37255   exec_prefix="$acl_save_exec_prefix"
37256   prefix="$acl_save_prefix"
37257
37258
37259 # Check whether --with-libiconv-prefix was given.
37260 if test "${with_libiconv_prefix+set}" = set; then
37261   withval=$with_libiconv_prefix;
37262     if test "X$withval" = "Xno"; then
37263       use_additional=no
37264     else
37265       if test "X$withval" = "X"; then
37266
37267   acl_save_prefix="$prefix"
37268   prefix="$acl_final_prefix"
37269   acl_save_exec_prefix="$exec_prefix"
37270   exec_prefix="$acl_final_exec_prefix"
37271
37272           eval additional_includedir=\"$includedir\"
37273           eval additional_libdir=\"$libdir\"
37274
37275   exec_prefix="$acl_save_exec_prefix"
37276   prefix="$acl_save_prefix"
37277
37278       else
37279         additional_includedir="$withval/include"
37280         additional_libdir="$withval/$acl_libdirstem"
37281         if test "$acl_libdirstem2" != "$acl_libdirstem" \
37282            && ! test -d "$withval/$acl_libdirstem"; then
37283           additional_libdir="$withval/$acl_libdirstem2"
37284         fi
37285       fi
37286     fi
37287
37288 fi
37289
37290       LIBICONV=
37291   LTLIBICONV=
37292   INCICONV=
37293   LIBICONV_PREFIX=
37294   rpathdirs=
37295   ltrpathdirs=
37296   names_already_handled=
37297   names_next_round='iconv '
37298   while test -n "$names_next_round"; do
37299     names_this_round="$names_next_round"
37300     names_next_round=
37301     for name in $names_this_round; do
37302       already_handled=
37303       for n in $names_already_handled; do
37304         if test "$n" = "$name"; then
37305           already_handled=yes
37306           break
37307         fi
37308       done
37309       if test -z "$already_handled"; then
37310         names_already_handled="$names_already_handled $name"
37311                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
37312         eval value=\"\$HAVE_LIB$uppername\"
37313         if test -n "$value"; then
37314           if test "$value" = yes; then
37315             eval value=\"\$LIB$uppername\"
37316             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
37317             eval value=\"\$LTLIB$uppername\"
37318             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
37319           else
37320                                     :
37321           fi
37322         else
37323                               found_dir=
37324           found_la=
37325           found_so=
37326           found_a=
37327           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
37328           if test -n "$acl_shlibext"; then
37329             shrext=".$acl_shlibext"             # typically: shrext=.so
37330           else
37331             shrext=
37332           fi
37333           if test $use_additional = yes; then
37334             dir="$additional_libdir"
37335                                     if test -n "$acl_shlibext"; then
37336               if test -f "$dir/$libname$shrext"; then
37337                 found_dir="$dir"
37338                 found_so="$dir/$libname$shrext"
37339               else
37340                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
37341                   ver=`(cd "$dir" && \
37342                         for f in "$libname$shrext".*; do echo "$f"; done \
37343                         | sed -e "s,^$libname$shrext\\\\.,," \
37344                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
37345                         | sed 1q ) 2>/dev/null`
37346                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
37347                     found_dir="$dir"
37348                     found_so="$dir/$libname$shrext.$ver"
37349                   fi
37350                 else
37351                   eval library_names=\"$acl_library_names_spec\"
37352                   for f in $library_names; do
37353                     if test -f "$dir/$f"; then
37354                       found_dir="$dir"
37355                       found_so="$dir/$f"
37356                       break
37357                     fi
37358                   done
37359                 fi
37360               fi
37361             fi
37362                         if test "X$found_dir" = "X"; then
37363               if test -f "$dir/$libname.$acl_libext"; then
37364                 found_dir="$dir"
37365                 found_a="$dir/$libname.$acl_libext"
37366               fi
37367             fi
37368             if test "X$found_dir" != "X"; then
37369               if test -f "$dir/$libname.la"; then
37370                 found_la="$dir/$libname.la"
37371               fi
37372             fi
37373           fi
37374           if test "X$found_dir" = "X"; then
37375             for x in $LDFLAGS $LTLIBICONV; do
37376
37377   acl_save_prefix="$prefix"
37378   prefix="$acl_final_prefix"
37379   acl_save_exec_prefix="$exec_prefix"
37380   exec_prefix="$acl_final_exec_prefix"
37381   eval x=\"$x\"
37382   exec_prefix="$acl_save_exec_prefix"
37383   prefix="$acl_save_prefix"
37384
37385               case "$x" in
37386                 -L*)
37387                   dir=`echo "X$x" | sed -e 's/^X-L//'`
37388                                     if test -n "$acl_shlibext"; then
37389                     if test -f "$dir/$libname$shrext"; then
37390                       found_dir="$dir"
37391                       found_so="$dir/$libname$shrext"
37392                     else
37393                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
37394                         ver=`(cd "$dir" && \
37395                               for f in "$libname$shrext".*; do echo "$f"; done \
37396                               | sed -e "s,^$libname$shrext\\\\.,," \
37397                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
37398                               | sed 1q ) 2>/dev/null`
37399                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
37400                           found_dir="$dir"
37401                           found_so="$dir/$libname$shrext.$ver"
37402                         fi
37403                       else
37404                         eval library_names=\"$acl_library_names_spec\"
37405                         for f in $library_names; do
37406                           if test -f "$dir/$f"; then
37407                             found_dir="$dir"
37408                             found_so="$dir/$f"
37409                             break
37410                           fi
37411                         done
37412                       fi
37413                     fi
37414                   fi
37415                                     if test "X$found_dir" = "X"; then
37416                     if test -f "$dir/$libname.$acl_libext"; then
37417                       found_dir="$dir"
37418                       found_a="$dir/$libname.$acl_libext"
37419                     fi
37420                   fi
37421                   if test "X$found_dir" != "X"; then
37422                     if test -f "$dir/$libname.la"; then
37423                       found_la="$dir/$libname.la"
37424                     fi
37425                   fi
37426                   ;;
37427               esac
37428               if test "X$found_dir" != "X"; then
37429                 break
37430               fi
37431             done
37432           fi
37433           if test "X$found_dir" != "X"; then
37434                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
37435             if test "X$found_so" != "X"; then
37436                                                         if test "$enable_rpath" = no \
37437                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
37438                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
37439                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
37440               else
37441                                                                                 haveit=
37442                 for x in $ltrpathdirs; do
37443                   if test "X$x" = "X$found_dir"; then
37444                     haveit=yes
37445                     break
37446                   fi
37447                 done
37448                 if test -z "$haveit"; then
37449                   ltrpathdirs="$ltrpathdirs $found_dir"
37450                 fi
37451                                 if test "$acl_hardcode_direct" = yes; then
37452                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
37453                 else
37454                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
37455                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
37456                                                             haveit=
37457                     for x in $rpathdirs; do
37458                       if test "X$x" = "X$found_dir"; then
37459                         haveit=yes
37460                         break
37461                       fi
37462                     done
37463                     if test -z "$haveit"; then
37464                       rpathdirs="$rpathdirs $found_dir"
37465                     fi
37466                   else
37467                                                                                 haveit=
37468                     for x in $LDFLAGS $LIBICONV; do
37469
37470   acl_save_prefix="$prefix"
37471   prefix="$acl_final_prefix"
37472   acl_save_exec_prefix="$exec_prefix"
37473   exec_prefix="$acl_final_exec_prefix"
37474   eval x=\"$x\"
37475   exec_prefix="$acl_save_exec_prefix"
37476   prefix="$acl_save_prefix"
37477
37478                       if test "X$x" = "X-L$found_dir"; then
37479                         haveit=yes
37480                         break
37481                       fi
37482                     done
37483                     if test -z "$haveit"; then
37484                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
37485                     fi
37486                     if test "$acl_hardcode_minus_L" != no; then
37487                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
37488                     else
37489                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
37490                     fi
37491                   fi
37492                 fi
37493               fi
37494             else
37495               if test "X$found_a" != "X"; then
37496                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
37497               else
37498                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
37499               fi
37500             fi
37501                         additional_includedir=
37502             case "$found_dir" in
37503               */$acl_libdirstem | */$acl_libdirstem/)
37504                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
37505                 LIBICONV_PREFIX="$basedir"
37506                 additional_includedir="$basedir/include"
37507                 ;;
37508               */$acl_libdirstem2 | */$acl_libdirstem2/)
37509                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
37510                 LIBICONV_PREFIX="$basedir"
37511                 additional_includedir="$basedir/include"
37512                 ;;
37513             esac
37514             if test "X$additional_includedir" != "X"; then
37515                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
37516                 haveit=
37517                 if test "X$additional_includedir" = "X/usr/local/include"; then
37518                   if test -n "$GCC"; then
37519                     case $host_os in
37520                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
37521                     esac
37522                   fi
37523                 fi
37524                 if test -z "$haveit"; then
37525                   for x in $CPPFLAGS $INCICONV; do
37526
37527   acl_save_prefix="$prefix"
37528   prefix="$acl_final_prefix"
37529   acl_save_exec_prefix="$exec_prefix"
37530   exec_prefix="$acl_final_exec_prefix"
37531   eval x=\"$x\"
37532   exec_prefix="$acl_save_exec_prefix"
37533   prefix="$acl_save_prefix"
37534
37535                     if test "X$x" = "X-I$additional_includedir"; then
37536                       haveit=yes
37537                       break
37538                     fi
37539                   done
37540                   if test -z "$haveit"; then
37541                     if test -d "$additional_includedir"; then
37542                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
37543                     fi
37544                   fi
37545                 fi
37546               fi
37547             fi
37548                         if test -n "$found_la"; then
37549                                                         save_libdir="$libdir"
37550               case "$found_la" in
37551                 */* | *\\*) . "$found_la" ;;
37552                 *) . "./$found_la" ;;
37553               esac
37554               libdir="$save_libdir"
37555                             for dep in $dependency_libs; do
37556                 case "$dep" in
37557                   -L*)
37558                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
37559                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
37560                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
37561                       haveit=
37562                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
37563                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
37564                         if test -n "$GCC"; then
37565                           case $host_os in
37566                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
37567                           esac
37568                         fi
37569                       fi
37570                       if test -z "$haveit"; then
37571                         haveit=
37572                         for x in $LDFLAGS $LIBICONV; do
37573
37574   acl_save_prefix="$prefix"
37575   prefix="$acl_final_prefix"
37576   acl_save_exec_prefix="$exec_prefix"
37577   exec_prefix="$acl_final_exec_prefix"
37578   eval x=\"$x\"
37579   exec_prefix="$acl_save_exec_prefix"
37580   prefix="$acl_save_prefix"
37581
37582                           if test "X$x" = "X-L$additional_libdir"; then
37583                             haveit=yes
37584                             break
37585                           fi
37586                         done
37587                         if test -z "$haveit"; then
37588                           if test -d "$additional_libdir"; then
37589                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
37590                           fi
37591                         fi
37592                         haveit=
37593                         for x in $LDFLAGS $LTLIBICONV; do
37594
37595   acl_save_prefix="$prefix"
37596   prefix="$acl_final_prefix"
37597   acl_save_exec_prefix="$exec_prefix"
37598   exec_prefix="$acl_final_exec_prefix"
37599   eval x=\"$x\"
37600   exec_prefix="$acl_save_exec_prefix"
37601   prefix="$acl_save_prefix"
37602
37603                           if test "X$x" = "X-L$additional_libdir"; then
37604                             haveit=yes
37605                             break
37606                           fi
37607                         done
37608                         if test -z "$haveit"; then
37609                           if test -d "$additional_libdir"; then
37610                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
37611                           fi
37612                         fi
37613                       fi
37614                     fi
37615                     ;;
37616                   -R*)
37617                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
37618                     if test "$enable_rpath" != no; then
37619                                                                   haveit=
37620                       for x in $rpathdirs; do
37621                         if test "X$x" = "X$dir"; then
37622                           haveit=yes
37623                           break
37624                         fi
37625                       done
37626                       if test -z "$haveit"; then
37627                         rpathdirs="$rpathdirs $dir"
37628                       fi
37629                                                                   haveit=
37630                       for x in $ltrpathdirs; do
37631                         if test "X$x" = "X$dir"; then
37632                           haveit=yes
37633                           break
37634                         fi
37635                       done
37636                       if test -z "$haveit"; then
37637                         ltrpathdirs="$ltrpathdirs $dir"
37638                       fi
37639                     fi
37640                     ;;
37641                   -l*)
37642                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
37643                     ;;
37644                   *.la)
37645                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
37646                     ;;
37647                   *)
37648                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
37649                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
37650                     ;;
37651                 esac
37652               done
37653             fi
37654           else
37655                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
37656             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
37657           fi
37658         fi
37659       fi
37660     done
37661   done
37662   if test "X$rpathdirs" != "X"; then
37663     if test -n "$acl_hardcode_libdir_separator"; then
37664                         alldirs=
37665       for found_dir in $rpathdirs; do
37666         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
37667       done
37668             acl_save_libdir="$libdir"
37669       libdir="$alldirs"
37670       eval flag=\"$acl_hardcode_libdir_flag_spec\"
37671       libdir="$acl_save_libdir"
37672       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
37673     else
37674             for found_dir in $rpathdirs; do
37675         acl_save_libdir="$libdir"
37676         libdir="$found_dir"
37677         eval flag=\"$acl_hardcode_libdir_flag_spec\"
37678         libdir="$acl_save_libdir"
37679         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
37680       done
37681     fi
37682   fi
37683   if test "X$ltrpathdirs" != "X"; then
37684             for found_dir in $ltrpathdirs; do
37685       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
37686     done
37687   fi
37688
37689
37690
37691
37692
37693
37694
37695
37696
37697
37698
37699
37700           am_save_CPPFLAGS="$CPPFLAGS"
37701
37702   for element in $INCICONV; do
37703     haveit=
37704     for x in $CPPFLAGS; do
37705
37706   acl_save_prefix="$prefix"
37707   prefix="$acl_final_prefix"
37708   acl_save_exec_prefix="$exec_prefix"
37709   exec_prefix="$acl_final_exec_prefix"
37710   eval x=\"$x\"
37711   exec_prefix="$acl_save_exec_prefix"
37712   prefix="$acl_save_prefix"
37713
37714       if test "X$x" = "X$element"; then
37715         haveit=yes
37716         break
37717       fi
37718     done
37719     if test -z "$haveit"; then
37720       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
37721     fi
37722   done
37723
37724
37725   { echo "$as_me:$LINENO: checking for iconv" >&5
37726 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
37727 if test "${am_cv_func_iconv+set}" = set; then
37728   echo $ECHO_N "(cached) $ECHO_C" >&6
37729 else
37730
37731     am_cv_func_iconv="no, consider installing GNU libiconv"
37732     am_cv_lib_iconv=no
37733     cat >conftest.$ac_ext <<_ACEOF
37734 /* confdefs.h.  */
37735 _ACEOF
37736 cat confdefs.h >>conftest.$ac_ext
37737 cat >>conftest.$ac_ext <<_ACEOF
37738 /* end confdefs.h.  */
37739 #include <stdlib.h>
37740 #include <iconv.h>
37741 int
37742 main ()
37743 {
37744 iconv_t cd = iconv_open("","");
37745        iconv(cd,NULL,NULL,NULL,NULL);
37746        iconv_close(cd);
37747   ;
37748   return 0;
37749 }
37750 _ACEOF
37751 rm -f conftest.$ac_objext conftest$ac_exeext
37752 if { (ac_try="$ac_link"
37753 case "(($ac_try" in
37754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37755   *) ac_try_echo=$ac_try;;
37756 esac
37757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37758   (eval "$ac_link") 2>conftest.er1
37759   ac_status=$?
37760   grep -v '^ *+' conftest.er1 >conftest.err
37761   rm -f conftest.er1
37762   cat conftest.err >&5
37763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37764   (exit $ac_status); } && {
37765          test -z "$ac_c_werror_flag" ||
37766          test ! -s conftest.err
37767        } && test -s conftest$ac_exeext &&
37768        $as_test_x conftest$ac_exeext; then
37769   am_cv_func_iconv=yes
37770 else
37771   echo "$as_me: failed program was:" >&5
37772 sed 's/^/| /' conftest.$ac_ext >&5
37773
37774
37775 fi
37776
37777 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37778       conftest$ac_exeext conftest.$ac_ext
37779     if test "$am_cv_func_iconv" != yes; then
37780       am_save_LIBS="$LIBS"
37781       LIBS="$LIBS $LIBICONV"
37782       cat >conftest.$ac_ext <<_ACEOF
37783 /* confdefs.h.  */
37784 _ACEOF
37785 cat confdefs.h >>conftest.$ac_ext
37786 cat >>conftest.$ac_ext <<_ACEOF
37787 /* end confdefs.h.  */
37788 #include <stdlib.h>
37789 #include <iconv.h>
37790 int
37791 main ()
37792 {
37793 iconv_t cd = iconv_open("","");
37794          iconv(cd,NULL,NULL,NULL,NULL);
37795          iconv_close(cd);
37796   ;
37797   return 0;
37798 }
37799 _ACEOF
37800 rm -f conftest.$ac_objext conftest$ac_exeext
37801 if { (ac_try="$ac_link"
37802 case "(($ac_try" in
37803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37804   *) ac_try_echo=$ac_try;;
37805 esac
37806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37807   (eval "$ac_link") 2>conftest.er1
37808   ac_status=$?
37809   grep -v '^ *+' conftest.er1 >conftest.err
37810   rm -f conftest.er1
37811   cat conftest.err >&5
37812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37813   (exit $ac_status); } && {
37814          test -z "$ac_c_werror_flag" ||
37815          test ! -s conftest.err
37816        } && test -s conftest$ac_exeext &&
37817        $as_test_x conftest$ac_exeext; then
37818   am_cv_lib_iconv=yes
37819         am_cv_func_iconv=yes
37820 else
37821   echo "$as_me: failed program was:" >&5
37822 sed 's/^/| /' conftest.$ac_ext >&5
37823
37824
37825 fi
37826
37827 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37828       conftest$ac_exeext conftest.$ac_ext
37829       LIBS="$am_save_LIBS"
37830     fi
37831
37832 fi
37833 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
37834 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
37835   if test "$am_cv_func_iconv" = yes; then
37836     { echo "$as_me:$LINENO: checking for working iconv" >&5
37837 echo $ECHO_N "checking for working iconv... $ECHO_C" >&6; }
37838 if test "${am_cv_func_iconv_works+set}" = set; then
37839   echo $ECHO_N "(cached) $ECHO_C" >&6
37840 else
37841
37842             am_save_LIBS="$LIBS"
37843       if test $am_cv_lib_iconv = yes; then
37844         LIBS="$LIBS $LIBICONV"
37845       fi
37846       if test "$cross_compiling" = yes; then
37847   case "$host_os" in
37848            aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
37849            *)            am_cv_func_iconv_works="guessing yes" ;;
37850          esac
37851 else
37852   cat >conftest.$ac_ext <<_ACEOF
37853 /* confdefs.h.  */
37854 _ACEOF
37855 cat confdefs.h >>conftest.$ac_ext
37856 cat >>conftest.$ac_ext <<_ACEOF
37857 /* end confdefs.h.  */
37858
37859 #include <iconv.h>
37860 #include <string.h>
37861 int main ()
37862 {
37863   /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
37864      returns.  */
37865   {
37866     iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
37867     if (cd_utf8_to_88591 != (iconv_t)(-1))
37868       {
37869         static const char input[] = "\342\202\254"; /* EURO SIGN */
37870         char buf[10];
37871         const char *inptr = input;
37872         size_t inbytesleft = strlen (input);
37873         char *outptr = buf;
37874         size_t outbytesleft = sizeof (buf);
37875         size_t res = iconv (cd_utf8_to_88591,
37876                             (char **) &inptr, &inbytesleft,
37877                             &outptr, &outbytesleft);
37878         if (res == 0)
37879           return 1;
37880       }
37881   }
37882 #if 0 /* This bug could be worked around by the caller.  */
37883   /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
37884   {
37885     iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
37886     if (cd_88591_to_utf8 != (iconv_t)(-1))
37887       {
37888         static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
37889         char buf[50];
37890         const char *inptr = input;
37891         size_t inbytesleft = strlen (input);
37892         char *outptr = buf;
37893         size_t outbytesleft = sizeof (buf);
37894         size_t res = iconv (cd_88591_to_utf8,
37895                             (char **) &inptr, &inbytesleft,
37896                             &outptr, &outbytesleft);
37897         if ((int)res > 0)
37898           return 1;
37899       }
37900   }
37901 #endif
37902   /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
37903      provided.  */
37904   if (/* Try standardized names.  */
37905       iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
37906       /* Try IRIX, OSF/1 names.  */
37907       && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
37908       /* Try AIX names.  */
37909       && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
37910       /* Try HP-UX names.  */
37911       && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
37912     return 1;
37913   return 0;
37914 }
37915 _ACEOF
37916 rm -f conftest$ac_exeext
37917 if { (ac_try="$ac_link"
37918 case "(($ac_try" in
37919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37920   *) ac_try_echo=$ac_try;;
37921 esac
37922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37923   (eval "$ac_link") 2>&5
37924   ac_status=$?
37925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37926   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
37927   { (case "(($ac_try" in
37928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37929   *) ac_try_echo=$ac_try;;
37930 esac
37931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37932   (eval "$ac_try") 2>&5
37933   ac_status=$?
37934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37935   (exit $ac_status); }; }; then
37936   am_cv_func_iconv_works=yes
37937 else
37938   echo "$as_me: program exited with status $ac_status" >&5
37939 echo "$as_me: failed program was:" >&5
37940 sed 's/^/| /' conftest.$ac_ext >&5
37941
37942 ( exit $ac_status )
37943 am_cv_func_iconv_works=no
37944 fi
37945 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
37946 fi
37947
37948
37949       LIBS="$am_save_LIBS"
37950
37951 fi
37952 { echo "$as_me:$LINENO: result: $am_cv_func_iconv_works" >&5
37953 echo "${ECHO_T}$am_cv_func_iconv_works" >&6; }
37954     case "$am_cv_func_iconv_works" in
37955       *no) am_func_iconv=no am_cv_lib_iconv=no ;;
37956       *)   am_func_iconv=yes ;;
37957     esac
37958   else
37959     am_func_iconv=no am_cv_lib_iconv=no
37960   fi
37961   if test "$am_func_iconv" = yes; then
37962
37963 cat >>confdefs.h <<\_ACEOF
37964 #define HAVE_ICONV 1
37965 _ACEOF
37966
37967   fi
37968   if test "$am_cv_lib_iconv" = yes; then
37969     { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
37970 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
37971     { echo "$as_me:$LINENO: result: $LIBICONV" >&5
37972 echo "${ECHO_T}$LIBICONV" >&6; }
37973   else
37974             CPPFLAGS="$am_save_CPPFLAGS"
37975     LIBICONV=
37976     LTLIBICONV=
37977   fi
37978
37979
37980
37981   if test "$am_cv_func_iconv" = yes; then
37982     { echo "$as_me:$LINENO: checking for iconv declaration" >&5
37983 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
37984     if test "${am_cv_proto_iconv+set}" = set; then
37985   echo $ECHO_N "(cached) $ECHO_C" >&6
37986 else
37987
37988       cat >conftest.$ac_ext <<_ACEOF
37989 /* confdefs.h.  */
37990 _ACEOF
37991 cat confdefs.h >>conftest.$ac_ext
37992 cat >>conftest.$ac_ext <<_ACEOF
37993 /* end confdefs.h.  */
37994
37995 #include <stdlib.h>
37996 #include <iconv.h>
37997 extern
37998 #ifdef __cplusplus
37999 "C"
38000 #endif
38001 #if defined(__STDC__) || defined(__cplusplus)
38002 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
38003 #else
38004 size_t iconv();
38005 #endif
38006
38007 int
38008 main ()
38009 {
38010
38011   ;
38012   return 0;
38013 }
38014 _ACEOF
38015 rm -f conftest.$ac_objext
38016 if { (ac_try="$ac_compile"
38017 case "(($ac_try" in
38018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38019   *) ac_try_echo=$ac_try;;
38020 esac
38021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38022   (eval "$ac_compile") 2>conftest.er1
38023   ac_status=$?
38024   grep -v '^ *+' conftest.er1 >conftest.err
38025   rm -f conftest.er1
38026   cat conftest.err >&5
38027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38028   (exit $ac_status); } && {
38029          test -z "$ac_c_werror_flag" ||
38030          test ! -s conftest.err
38031        } && test -s conftest.$ac_objext; then
38032   am_cv_proto_iconv_arg1=""
38033 else
38034   echo "$as_me: failed program was:" >&5
38035 sed 's/^/| /' conftest.$ac_ext >&5
38036
38037         am_cv_proto_iconv_arg1="const"
38038 fi
38039
38040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38041       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);"
38042 fi
38043
38044     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
38045     { echo "$as_me:$LINENO: result: ${ac_t:-
38046          }$am_cv_proto_iconv" >&5
38047 echo "${ECHO_T}${ac_t:-
38048          }$am_cv_proto_iconv" >&6; }
38049
38050 cat >>confdefs.h <<_ACEOF
38051 #define ICONV_CONST $am_cv_proto_iconv_arg1
38052 _ACEOF
38053
38054   fi
38055
38056
38057 for ac_header in iconv.h
38058 do
38059 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38060 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
38061   { echo "$as_me:$LINENO: checking for $ac_header" >&5
38062 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
38063 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
38064   echo $ECHO_N "(cached) $ECHO_C" >&6
38065 fi
38066 ac_res=`eval echo '${'$as_ac_Header'}'`
38067                { echo "$as_me:$LINENO: result: $ac_res" >&5
38068 echo "${ECHO_T}$ac_res" >&6; }
38069 else
38070   # Is the header compilable?
38071 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
38072 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
38073 cat >conftest.$ac_ext <<_ACEOF
38074 /* confdefs.h.  */
38075 _ACEOF
38076 cat confdefs.h >>conftest.$ac_ext
38077 cat >>conftest.$ac_ext <<_ACEOF
38078 /* end confdefs.h.  */
38079 $ac_includes_default
38080 #include <$ac_header>
38081 _ACEOF
38082 rm -f conftest.$ac_objext
38083 if { (ac_try="$ac_compile"
38084 case "(($ac_try" in
38085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38086   *) ac_try_echo=$ac_try;;
38087 esac
38088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38089   (eval "$ac_compile") 2>conftest.er1
38090   ac_status=$?
38091   grep -v '^ *+' conftest.er1 >conftest.err
38092   rm -f conftest.er1
38093   cat conftest.err >&5
38094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38095   (exit $ac_status); } && {
38096          test -z "$ac_c_werror_flag" ||
38097          test ! -s conftest.err
38098        } && test -s conftest.$ac_objext; then
38099   ac_header_compiler=yes
38100 else
38101   echo "$as_me: failed program was:" >&5
38102 sed 's/^/| /' conftest.$ac_ext >&5
38103
38104         ac_header_compiler=no
38105 fi
38106
38107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38108 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38109 echo "${ECHO_T}$ac_header_compiler" >&6; }
38110
38111 # Is the header present?
38112 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
38113 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
38114 cat >conftest.$ac_ext <<_ACEOF
38115 /* confdefs.h.  */
38116 _ACEOF
38117 cat confdefs.h >>conftest.$ac_ext
38118 cat >>conftest.$ac_ext <<_ACEOF
38119 /* end confdefs.h.  */
38120 #include <$ac_header>
38121 _ACEOF
38122 if { (ac_try="$ac_cpp conftest.$ac_ext"
38123 case "(($ac_try" in
38124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38125   *) ac_try_echo=$ac_try;;
38126 esac
38127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38128   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
38129   ac_status=$?
38130   grep -v '^ *+' conftest.er1 >conftest.err
38131   rm -f conftest.er1
38132   cat conftest.err >&5
38133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38134   (exit $ac_status); } >/dev/null && {
38135          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
38136          test ! -s conftest.err
38137        }; then
38138   ac_header_preproc=yes
38139 else
38140   echo "$as_me: failed program was:" >&5
38141 sed 's/^/| /' conftest.$ac_ext >&5
38142
38143   ac_header_preproc=no
38144 fi
38145
38146 rm -f conftest.err conftest.$ac_ext
38147 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38148 echo "${ECHO_T}$ac_header_preproc" >&6; }
38149
38150 # So?  What about this header?
38151 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38152   yes:no: )
38153     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38154 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
38155     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38156 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38157     ac_header_preproc=yes
38158     ;;
38159   no:yes:* )
38160     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38161 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
38162     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
38163 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
38164     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38165 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38166     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
38167 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
38168     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38169 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
38170     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38171 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
38172     ( cat <<\_ASBOX
38173 ## ------------------------------ ##
38174 ## Report this to bug-tar@gnu.org ##
38175 ## ------------------------------ ##
38176 _ASBOX
38177      ) | sed "s/^/$as_me: WARNING:     /" >&2
38178     ;;
38179 esac
38180 { echo "$as_me:$LINENO: checking for $ac_header" >&5
38181 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
38182 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
38183   echo $ECHO_N "(cached) $ECHO_C" >&6
38184 else
38185   eval "$as_ac_Header=\$ac_header_preproc"
38186 fi
38187 ac_res=`eval echo '${'$as_ac_Header'}'`
38188                { echo "$as_me:$LINENO: result: $ac_res" >&5
38189 echo "${ECHO_T}$ac_res" >&6; }
38190
38191 fi
38192 if test `eval echo '${'$as_ac_Header'}'` = yes; then
38193   cat >>confdefs.h <<_ACEOF
38194 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38195 _ACEOF
38196
38197 fi
38198
38199 done
38200
38201 { echo "$as_me:$LINENO: checking for iconv_t" >&5
38202 echo $ECHO_N "checking for iconv_t... $ECHO_C" >&6; }
38203 if test "${ac_cv_type_iconv_t+set}" = set; then
38204   echo $ECHO_N "(cached) $ECHO_C" >&6
38205 else
38206   cat >conftest.$ac_ext <<_ACEOF
38207 /* confdefs.h.  */
38208 _ACEOF
38209 cat confdefs.h >>conftest.$ac_ext
38210 cat >>conftest.$ac_ext <<_ACEOF
38211 /* end confdefs.h.  */
38212
38213 #ifdef HAVE_ICONV_H
38214 # include <iconv.h>
38215 #endif
38216
38217
38218 typedef iconv_t ac__type_new_;
38219 int
38220 main ()
38221 {
38222 if ((ac__type_new_ *) 0)
38223   return 0;
38224 if (sizeof (ac__type_new_))
38225   return 0;
38226   ;
38227   return 0;
38228 }
38229 _ACEOF
38230 rm -f conftest.$ac_objext
38231 if { (ac_try="$ac_compile"
38232 case "(($ac_try" in
38233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38234   *) ac_try_echo=$ac_try;;
38235 esac
38236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38237   (eval "$ac_compile") 2>conftest.er1
38238   ac_status=$?
38239   grep -v '^ *+' conftest.er1 >conftest.err
38240   rm -f conftest.er1
38241   cat conftest.err >&5
38242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38243   (exit $ac_status); } && {
38244          test -z "$ac_c_werror_flag" ||
38245          test ! -s conftest.err
38246        } && test -s conftest.$ac_objext; then
38247   ac_cv_type_iconv_t=yes
38248 else
38249   echo "$as_me: failed program was:" >&5
38250 sed 's/^/| /' conftest.$ac_ext >&5
38251
38252         ac_cv_type_iconv_t=no
38253 fi
38254
38255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38256 fi
38257 { echo "$as_me:$LINENO: result: $ac_cv_type_iconv_t" >&5
38258 echo "${ECHO_T}$ac_cv_type_iconv_t" >&6; }
38259 if test $ac_cv_type_iconv_t = yes; then
38260   :
38261 else
38262
38263 cat >>confdefs.h <<\_ACEOF
38264 #define iconv_t int
38265 _ACEOF
38266
38267 fi
38268
38269
38270 # Gettext.
38271
38272   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
38273 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
38274     # Check whether --enable-nls was given.
38275 if test "${enable_nls+set}" = set; then
38276   enableval=$enable_nls; USE_NLS=$enableval
38277 else
38278   USE_NLS=yes
38279 fi
38280
38281   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
38282 echo "${ECHO_T}$USE_NLS" >&6; }
38283
38284
38285
38286
38287       GETTEXT_MACRO_VERSION=0.17
38288
38289
38290
38291
38292 # Prepare PATH_SEPARATOR.
38293 # The user is always right.
38294 if test "${PATH_SEPARATOR+set}" != set; then
38295   echo "#! /bin/sh" >conf$$.sh
38296   echo  "exit 0"   >>conf$$.sh
38297   chmod +x conf$$.sh
38298   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
38299     PATH_SEPARATOR=';'
38300   else
38301     PATH_SEPARATOR=:
38302   fi
38303   rm -f conf$$.sh
38304 fi
38305
38306 # Find out how to test for executable files. Don't use a zero-byte file,
38307 # as systems may use methods other than mode bits to determine executability.
38308 cat >conf$$.file <<_ASEOF
38309 #! /bin/sh
38310 exit 0
38311 _ASEOF
38312 chmod +x conf$$.file
38313 if test -x conf$$.file >/dev/null 2>&1; then
38314   ac_executable_p="test -x"
38315 else
38316   ac_executable_p="test -f"
38317 fi
38318 rm -f conf$$.file
38319
38320 # Extract the first word of "msgfmt", so it can be a program name with args.
38321 set dummy msgfmt; ac_word=$2
38322 { echo "$as_me:$LINENO: checking for $ac_word" >&5
38323 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
38324 if test "${ac_cv_path_MSGFMT+set}" = set; then
38325   echo $ECHO_N "(cached) $ECHO_C" >&6
38326 else
38327   case "$MSGFMT" in
38328   [\\/]* | ?:[\\/]*)
38329     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
38330     ;;
38331   *)
38332     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
38333     for ac_dir in $PATH; do
38334       IFS="$ac_save_IFS"
38335       test -z "$ac_dir" && ac_dir=.
38336       for ac_exec_ext in '' $ac_executable_extensions; do
38337         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
38338           echo "$as_me: trying $ac_dir/$ac_word..." >&5
38339           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
38340      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
38341             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
38342             break 2
38343           fi
38344         fi
38345       done
38346     done
38347     IFS="$ac_save_IFS"
38348   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
38349     ;;
38350 esac
38351 fi
38352 MSGFMT="$ac_cv_path_MSGFMT"
38353 if test "$MSGFMT" != ":"; then
38354   { echo "$as_me:$LINENO: result: $MSGFMT" >&5
38355 echo "${ECHO_T}$MSGFMT" >&6; }
38356 else
38357   { echo "$as_me:$LINENO: result: no" >&5
38358 echo "${ECHO_T}no" >&6; }
38359 fi
38360
38361   # Extract the first word of "gmsgfmt", so it can be a program name with args.
38362 set dummy gmsgfmt; ac_word=$2
38363 { echo "$as_me:$LINENO: checking for $ac_word" >&5
38364 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
38365 if test "${ac_cv_path_GMSGFMT+set}" = set; then
38366   echo $ECHO_N "(cached) $ECHO_C" >&6
38367 else
38368   case $GMSGFMT in
38369   [\\/]* | ?:[\\/]*)
38370   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
38371   ;;
38372   *)
38373   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38374 for as_dir in $PATH
38375 do
38376   IFS=$as_save_IFS
38377   test -z "$as_dir" && as_dir=.
38378   for ac_exec_ext in '' $ac_executable_extensions; do
38379   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
38380     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
38381     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38382     break 2
38383   fi
38384 done
38385 done
38386 IFS=$as_save_IFS
38387
38388   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
38389   ;;
38390 esac
38391 fi
38392 GMSGFMT=$ac_cv_path_GMSGFMT
38393 if test -n "$GMSGFMT"; then
38394   { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
38395 echo "${ECHO_T}$GMSGFMT" >&6; }
38396 else
38397   { echo "$as_me:$LINENO: result: no" >&5
38398 echo "${ECHO_T}no" >&6; }
38399 fi
38400
38401
38402
38403     case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
38404     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
38405     *) MSGFMT_015=$MSGFMT ;;
38406   esac
38407
38408   case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
38409     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
38410     *) GMSGFMT_015=$GMSGFMT ;;
38411   esac
38412
38413
38414
38415 # Prepare PATH_SEPARATOR.
38416 # The user is always right.
38417 if test "${PATH_SEPARATOR+set}" != set; then
38418   echo "#! /bin/sh" >conf$$.sh
38419   echo  "exit 0"   >>conf$$.sh
38420   chmod +x conf$$.sh
38421   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
38422     PATH_SEPARATOR=';'
38423   else
38424     PATH_SEPARATOR=:
38425   fi
38426   rm -f conf$$.sh
38427 fi
38428
38429 # Find out how to test for executable files. Don't use a zero-byte file,
38430 # as systems may use methods other than mode bits to determine executability.
38431 cat >conf$$.file <<_ASEOF
38432 #! /bin/sh
38433 exit 0
38434 _ASEOF
38435 chmod +x conf$$.file
38436 if test -x conf$$.file >/dev/null 2>&1; then
38437   ac_executable_p="test -x"
38438 else
38439   ac_executable_p="test -f"
38440 fi
38441 rm -f conf$$.file
38442
38443 # Extract the first word of "xgettext", so it can be a program name with args.
38444 set dummy xgettext; ac_word=$2
38445 { echo "$as_me:$LINENO: checking for $ac_word" >&5
38446 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
38447 if test "${ac_cv_path_XGETTEXT+set}" = set; then
38448   echo $ECHO_N "(cached) $ECHO_C" >&6
38449 else
38450   case "$XGETTEXT" in
38451   [\\/]* | ?:[\\/]*)
38452     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
38453     ;;
38454   *)
38455     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
38456     for ac_dir in $PATH; do
38457       IFS="$ac_save_IFS"
38458       test -z "$ac_dir" && ac_dir=.
38459       for ac_exec_ext in '' $ac_executable_extensions; do
38460         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
38461           echo "$as_me: trying $ac_dir/$ac_word..." >&5
38462           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
38463      (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
38464             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
38465             break 2
38466           fi
38467         fi
38468       done
38469     done
38470     IFS="$ac_save_IFS"
38471   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
38472     ;;
38473 esac
38474 fi
38475 XGETTEXT="$ac_cv_path_XGETTEXT"
38476 if test "$XGETTEXT" != ":"; then
38477   { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
38478 echo "${ECHO_T}$XGETTEXT" >&6; }
38479 else
38480   { echo "$as_me:$LINENO: result: no" >&5
38481 echo "${ECHO_T}no" >&6; }
38482 fi
38483
38484     rm -f messages.po
38485
38486     case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
38487     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
38488     *) XGETTEXT_015=$XGETTEXT ;;
38489   esac
38490
38491
38492
38493 # Prepare PATH_SEPARATOR.
38494 # The user is always right.
38495 if test "${PATH_SEPARATOR+set}" != set; then
38496   echo "#! /bin/sh" >conf$$.sh
38497   echo  "exit 0"   >>conf$$.sh
38498   chmod +x conf$$.sh
38499   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
38500     PATH_SEPARATOR=';'
38501   else
38502     PATH_SEPARATOR=:
38503   fi
38504   rm -f conf$$.sh
38505 fi
38506
38507 # Find out how to test for executable files. Don't use a zero-byte file,
38508 # as systems may use methods other than mode bits to determine executability.
38509 cat >conf$$.file <<_ASEOF
38510 #! /bin/sh
38511 exit 0
38512 _ASEOF
38513 chmod +x conf$$.file
38514 if test -x conf$$.file >/dev/null 2>&1; then
38515   ac_executable_p="test -x"
38516 else
38517   ac_executable_p="test -f"
38518 fi
38519 rm -f conf$$.file
38520
38521 # Extract the first word of "msgmerge", so it can be a program name with args.
38522 set dummy msgmerge; ac_word=$2
38523 { echo "$as_me:$LINENO: checking for $ac_word" >&5
38524 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
38525 if test "${ac_cv_path_MSGMERGE+set}" = set; then
38526   echo $ECHO_N "(cached) $ECHO_C" >&6
38527 else
38528   case "$MSGMERGE" in
38529   [\\/]* | ?:[\\/]*)
38530     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
38531     ;;
38532   *)
38533     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
38534     for ac_dir in $PATH; do
38535       IFS="$ac_save_IFS"
38536       test -z "$ac_dir" && ac_dir=.
38537       for ac_exec_ext in '' $ac_executable_extensions; do
38538         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
38539           echo "$as_me: trying $ac_dir/$ac_word..." >&5
38540           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
38541             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
38542             break 2
38543           fi
38544         fi
38545       done
38546     done
38547     IFS="$ac_save_IFS"
38548   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
38549     ;;
38550 esac
38551 fi
38552 MSGMERGE="$ac_cv_path_MSGMERGE"
38553 if test "$MSGMERGE" != ":"; then
38554   { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
38555 echo "${ECHO_T}$MSGMERGE" >&6; }
38556 else
38557   { echo "$as_me:$LINENO: result: no" >&5
38558 echo "${ECHO_T}no" >&6; }
38559 fi
38560
38561
38562         test -n "$localedir" || localedir='${datadir}/locale'
38563
38564
38565     test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
38566
38567
38568   ac_config_commands="$ac_config_commands po-directories"
38569
38570
38571
38572
38573
38574
38575
38576
38577
38578
38579
38580
38581
38582
38583
38584
38585
38586
38587
38588
38589
38590
38591
38592
38593
38594     { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
38595 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
38596 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
38597   echo $ECHO_N "(cached) $ECHO_C" >&6
38598 else
38599   gt_save_LIBS="$LIBS"
38600      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
38601      cat >conftest.$ac_ext <<_ACEOF
38602 /* confdefs.h.  */
38603 _ACEOF
38604 cat confdefs.h >>conftest.$ac_ext
38605 cat >>conftest.$ac_ext <<_ACEOF
38606 /* end confdefs.h.  */
38607 #include <CoreFoundation/CFPreferences.h>
38608 int
38609 main ()
38610 {
38611 CFPreferencesCopyAppValue(NULL, NULL)
38612   ;
38613   return 0;
38614 }
38615 _ACEOF
38616 rm -f conftest.$ac_objext conftest$ac_exeext
38617 if { (ac_try="$ac_link"
38618 case "(($ac_try" in
38619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38620   *) ac_try_echo=$ac_try;;
38621 esac
38622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38623   (eval "$ac_link") 2>conftest.er1
38624   ac_status=$?
38625   grep -v '^ *+' conftest.er1 >conftest.err
38626   rm -f conftest.er1
38627   cat conftest.err >&5
38628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38629   (exit $ac_status); } && {
38630          test -z "$ac_c_werror_flag" ||
38631          test ! -s conftest.err
38632        } && test -s conftest$ac_exeext &&
38633        $as_test_x conftest$ac_exeext; then
38634   gt_cv_func_CFPreferencesCopyAppValue=yes
38635 else
38636   echo "$as_me: failed program was:" >&5
38637 sed 's/^/| /' conftest.$ac_ext >&5
38638
38639         gt_cv_func_CFPreferencesCopyAppValue=no
38640 fi
38641
38642 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38643       conftest$ac_exeext conftest.$ac_ext
38644      LIBS="$gt_save_LIBS"
38645 fi
38646 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
38647 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
38648   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
38649
38650 cat >>confdefs.h <<\_ACEOF
38651 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
38652 _ACEOF
38653
38654   fi
38655     { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
38656 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
38657 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
38658   echo $ECHO_N "(cached) $ECHO_C" >&6
38659 else
38660   gt_save_LIBS="$LIBS"
38661      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
38662      cat >conftest.$ac_ext <<_ACEOF
38663 /* confdefs.h.  */
38664 _ACEOF
38665 cat confdefs.h >>conftest.$ac_ext
38666 cat >>conftest.$ac_ext <<_ACEOF
38667 /* end confdefs.h.  */
38668 #include <CoreFoundation/CFLocale.h>
38669 int
38670 main ()
38671 {
38672 CFLocaleCopyCurrent();
38673   ;
38674   return 0;
38675 }
38676 _ACEOF
38677 rm -f conftest.$ac_objext conftest$ac_exeext
38678 if { (ac_try="$ac_link"
38679 case "(($ac_try" in
38680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38681   *) ac_try_echo=$ac_try;;
38682 esac
38683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38684   (eval "$ac_link") 2>conftest.er1
38685   ac_status=$?
38686   grep -v '^ *+' conftest.er1 >conftest.err
38687   rm -f conftest.er1
38688   cat conftest.err >&5
38689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38690   (exit $ac_status); } && {
38691          test -z "$ac_c_werror_flag" ||
38692          test ! -s conftest.err
38693        } && test -s conftest$ac_exeext &&
38694        $as_test_x conftest$ac_exeext; then
38695   gt_cv_func_CFLocaleCopyCurrent=yes
38696 else
38697   echo "$as_me: failed program was:" >&5
38698 sed 's/^/| /' conftest.$ac_ext >&5
38699
38700         gt_cv_func_CFLocaleCopyCurrent=no
38701 fi
38702
38703 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38704       conftest$ac_exeext conftest.$ac_ext
38705      LIBS="$gt_save_LIBS"
38706 fi
38707 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
38708 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
38709   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
38710
38711 cat >>confdefs.h <<\_ACEOF
38712 #define HAVE_CFLOCALECOPYCURRENT 1
38713 _ACEOF
38714
38715   fi
38716   INTL_MACOSX_LIBS=
38717   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
38718     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
38719   fi
38720
38721
38722
38723
38724
38725
38726   LIBINTL=
38727   LTLIBINTL=
38728   POSUB=
38729
38730     case " $gt_needs " in
38731     *" need-formatstring-macros "*) gt_api_version=3 ;;
38732     *" need-ngettext "*) gt_api_version=2 ;;
38733     *) gt_api_version=1 ;;
38734   esac
38735   gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
38736   gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
38737
38738     if test "$USE_NLS" = "yes"; then
38739     gt_use_preinstalled_gnugettext=no
38740
38741
38742         if test $gt_api_version -ge 3; then
38743           gt_revision_test_code='
38744 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
38745 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
38746 #endif
38747 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
38748 '
38749         else
38750           gt_revision_test_code=
38751         fi
38752         if test $gt_api_version -ge 2; then
38753           gt_expression_test_code=' + * ngettext ("", "", 0)'
38754         else
38755           gt_expression_test_code=
38756         fi
38757
38758         { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
38759 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
38760 if { as_var=$gt_func_gnugettext_libc; eval "test \"\${$as_var+set}\" = set"; }; then
38761   echo $ECHO_N "(cached) $ECHO_C" >&6
38762 else
38763   cat >conftest.$ac_ext <<_ACEOF
38764 /* confdefs.h.  */
38765 _ACEOF
38766 cat confdefs.h >>conftest.$ac_ext
38767 cat >>conftest.$ac_ext <<_ACEOF
38768 /* end confdefs.h.  */
38769 #include <libintl.h>
38770 $gt_revision_test_code
38771 extern int _nl_msg_cat_cntr;
38772 extern int *_nl_domain_bindings;
38773 int
38774 main ()
38775 {
38776 bindtextdomain ("", "");
38777 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
38778   ;
38779   return 0;
38780 }
38781 _ACEOF
38782 rm -f conftest.$ac_objext conftest$ac_exeext
38783 if { (ac_try="$ac_link"
38784 case "(($ac_try" in
38785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38786   *) ac_try_echo=$ac_try;;
38787 esac
38788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38789   (eval "$ac_link") 2>conftest.er1
38790   ac_status=$?
38791   grep -v '^ *+' conftest.er1 >conftest.err
38792   rm -f conftest.er1
38793   cat conftest.err >&5
38794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38795   (exit $ac_status); } && {
38796          test -z "$ac_c_werror_flag" ||
38797          test ! -s conftest.err
38798        } && test -s conftest$ac_exeext &&
38799        $as_test_x conftest$ac_exeext; then
38800   eval "$gt_func_gnugettext_libc=yes"
38801 else
38802   echo "$as_me: failed program was:" >&5
38803 sed 's/^/| /' conftest.$ac_ext >&5
38804
38805         eval "$gt_func_gnugettext_libc=no"
38806 fi
38807
38808 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38809       conftest$ac_exeext conftest.$ac_ext
38810 fi
38811 ac_res=`eval echo '${'$gt_func_gnugettext_libc'}'`
38812                { echo "$as_me:$LINENO: result: $ac_res" >&5
38813 echo "${ECHO_T}$ac_res" >&6; }
38814
38815         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
38816
38817
38818
38819
38820
38821           am_save_CPPFLAGS="$CPPFLAGS"
38822
38823   for element in $INCICONV; do
38824     haveit=
38825     for x in $CPPFLAGS; do
38826
38827   acl_save_prefix="$prefix"
38828   prefix="$acl_final_prefix"
38829   acl_save_exec_prefix="$exec_prefix"
38830   exec_prefix="$acl_final_exec_prefix"
38831   eval x=\"$x\"
38832   exec_prefix="$acl_save_exec_prefix"
38833   prefix="$acl_save_prefix"
38834
38835       if test "X$x" = "X$element"; then
38836         haveit=yes
38837         break
38838       fi
38839     done
38840     if test -z "$haveit"; then
38841       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
38842     fi
38843   done
38844
38845
38846   { echo "$as_me:$LINENO: checking for iconv" >&5
38847 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
38848 if test "${am_cv_func_iconv+set}" = set; then
38849   echo $ECHO_N "(cached) $ECHO_C" >&6
38850 else
38851
38852     am_cv_func_iconv="no, consider installing GNU libiconv"
38853     am_cv_lib_iconv=no
38854     cat >conftest.$ac_ext <<_ACEOF
38855 /* confdefs.h.  */
38856 _ACEOF
38857 cat confdefs.h >>conftest.$ac_ext
38858 cat >>conftest.$ac_ext <<_ACEOF
38859 /* end confdefs.h.  */
38860 #include <stdlib.h>
38861 #include <iconv.h>
38862 int
38863 main ()
38864 {
38865 iconv_t cd = iconv_open("","");
38866        iconv(cd,NULL,NULL,NULL,NULL);
38867        iconv_close(cd);
38868   ;
38869   return 0;
38870 }
38871 _ACEOF
38872 rm -f conftest.$ac_objext conftest$ac_exeext
38873 if { (ac_try="$ac_link"
38874 case "(($ac_try" in
38875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38876   *) ac_try_echo=$ac_try;;
38877 esac
38878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38879   (eval "$ac_link") 2>conftest.er1
38880   ac_status=$?
38881   grep -v '^ *+' conftest.er1 >conftest.err
38882   rm -f conftest.er1
38883   cat conftest.err >&5
38884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38885   (exit $ac_status); } && {
38886          test -z "$ac_c_werror_flag" ||
38887          test ! -s conftest.err
38888        } && test -s conftest$ac_exeext &&
38889        $as_test_x conftest$ac_exeext; then
38890   am_cv_func_iconv=yes
38891 else
38892   echo "$as_me: failed program was:" >&5
38893 sed 's/^/| /' conftest.$ac_ext >&5
38894
38895
38896 fi
38897
38898 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38899       conftest$ac_exeext conftest.$ac_ext
38900     if test "$am_cv_func_iconv" != yes; then
38901       am_save_LIBS="$LIBS"
38902       LIBS="$LIBS $LIBICONV"
38903       cat >conftest.$ac_ext <<_ACEOF
38904 /* confdefs.h.  */
38905 _ACEOF
38906 cat confdefs.h >>conftest.$ac_ext
38907 cat >>conftest.$ac_ext <<_ACEOF
38908 /* end confdefs.h.  */
38909 #include <stdlib.h>
38910 #include <iconv.h>
38911 int
38912 main ()
38913 {
38914 iconv_t cd = iconv_open("","");
38915          iconv(cd,NULL,NULL,NULL,NULL);
38916          iconv_close(cd);
38917   ;
38918   return 0;
38919 }
38920 _ACEOF
38921 rm -f conftest.$ac_objext conftest$ac_exeext
38922 if { (ac_try="$ac_link"
38923 case "(($ac_try" in
38924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38925   *) ac_try_echo=$ac_try;;
38926 esac
38927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38928   (eval "$ac_link") 2>conftest.er1
38929   ac_status=$?
38930   grep -v '^ *+' conftest.er1 >conftest.err
38931   rm -f conftest.er1
38932   cat conftest.err >&5
38933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38934   (exit $ac_status); } && {
38935          test -z "$ac_c_werror_flag" ||
38936          test ! -s conftest.err
38937        } && test -s conftest$ac_exeext &&
38938        $as_test_x conftest$ac_exeext; then
38939   am_cv_lib_iconv=yes
38940         am_cv_func_iconv=yes
38941 else
38942   echo "$as_me: failed program was:" >&5
38943 sed 's/^/| /' conftest.$ac_ext >&5
38944
38945
38946 fi
38947
38948 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38949       conftest$ac_exeext conftest.$ac_ext
38950       LIBS="$am_save_LIBS"
38951     fi
38952
38953 fi
38954 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
38955 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
38956   if test "$am_cv_func_iconv" = yes; then
38957     { echo "$as_me:$LINENO: checking for working iconv" >&5
38958 echo $ECHO_N "checking for working iconv... $ECHO_C" >&6; }
38959 if test "${am_cv_func_iconv_works+set}" = set; then
38960   echo $ECHO_N "(cached) $ECHO_C" >&6
38961 else
38962
38963             am_save_LIBS="$LIBS"
38964       if test $am_cv_lib_iconv = yes; then
38965         LIBS="$LIBS $LIBICONV"
38966       fi
38967       if test "$cross_compiling" = yes; then
38968   case "$host_os" in
38969            aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
38970            *)            am_cv_func_iconv_works="guessing yes" ;;
38971          esac
38972 else
38973   cat >conftest.$ac_ext <<_ACEOF
38974 /* confdefs.h.  */
38975 _ACEOF
38976 cat confdefs.h >>conftest.$ac_ext
38977 cat >>conftest.$ac_ext <<_ACEOF
38978 /* end confdefs.h.  */
38979
38980 #include <iconv.h>
38981 #include <string.h>
38982 int main ()
38983 {
38984   /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
38985      returns.  */
38986   {
38987     iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
38988     if (cd_utf8_to_88591 != (iconv_t)(-1))
38989       {
38990         static const char input[] = "\342\202\254"; /* EURO SIGN */
38991         char buf[10];
38992         const char *inptr = input;
38993         size_t inbytesleft = strlen (input);
38994         char *outptr = buf;
38995         size_t outbytesleft = sizeof (buf);
38996         size_t res = iconv (cd_utf8_to_88591,
38997                             (char **) &inptr, &inbytesleft,
38998                             &outptr, &outbytesleft);
38999         if (res == 0)
39000           return 1;
39001       }
39002   }
39003 #if 0 /* This bug could be worked around by the caller.  */
39004   /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
39005   {
39006     iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
39007     if (cd_88591_to_utf8 != (iconv_t)(-1))
39008       {
39009         static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
39010         char buf[50];
39011         const char *inptr = input;
39012         size_t inbytesleft = strlen (input);
39013         char *outptr = buf;
39014         size_t outbytesleft = sizeof (buf);
39015         size_t res = iconv (cd_88591_to_utf8,
39016                             (char **) &inptr, &inbytesleft,
39017                             &outptr, &outbytesleft);
39018         if ((int)res > 0)
39019           return 1;
39020       }
39021   }
39022 #endif
39023   /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
39024      provided.  */
39025   if (/* Try standardized names.  */
39026       iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
39027       /* Try IRIX, OSF/1 names.  */
39028       && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
39029       /* Try AIX names.  */
39030       && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
39031       /* Try HP-UX names.  */
39032       && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
39033     return 1;
39034   return 0;
39035 }
39036 _ACEOF
39037 rm -f conftest$ac_exeext
39038 if { (ac_try="$ac_link"
39039 case "(($ac_try" in
39040   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39041   *) ac_try_echo=$ac_try;;
39042 esac
39043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39044   (eval "$ac_link") 2>&5
39045   ac_status=$?
39046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39047   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39048   { (case "(($ac_try" in
39049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39050   *) ac_try_echo=$ac_try;;
39051 esac
39052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39053   (eval "$ac_try") 2>&5
39054   ac_status=$?
39055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39056   (exit $ac_status); }; }; then
39057   am_cv_func_iconv_works=yes
39058 else
39059   echo "$as_me: program exited with status $ac_status" >&5
39060 echo "$as_me: failed program was:" >&5
39061 sed 's/^/| /' conftest.$ac_ext >&5
39062
39063 ( exit $ac_status )
39064 am_cv_func_iconv_works=no
39065 fi
39066 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39067 fi
39068
39069
39070       LIBS="$am_save_LIBS"
39071
39072 fi
39073 { echo "$as_me:$LINENO: result: $am_cv_func_iconv_works" >&5
39074 echo "${ECHO_T}$am_cv_func_iconv_works" >&6; }
39075     case "$am_cv_func_iconv_works" in
39076       *no) am_func_iconv=no am_cv_lib_iconv=no ;;
39077       *)   am_func_iconv=yes ;;
39078     esac
39079   else
39080     am_func_iconv=no am_cv_lib_iconv=no
39081   fi
39082   if test "$am_func_iconv" = yes; then
39083
39084 cat >>confdefs.h <<\_ACEOF
39085 #define HAVE_ICONV 1
39086 _ACEOF
39087
39088   fi
39089   if test "$am_cv_lib_iconv" = yes; then
39090     { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
39091 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
39092     { echo "$as_me:$LINENO: result: $LIBICONV" >&5
39093 echo "${ECHO_T}$LIBICONV" >&6; }
39094   else
39095             CPPFLAGS="$am_save_CPPFLAGS"
39096     LIBICONV=
39097     LTLIBICONV=
39098   fi
39099
39100
39101
39102
39103
39104
39105
39106
39107
39108
39109
39110     use_additional=yes
39111
39112   acl_save_prefix="$prefix"
39113   prefix="$acl_final_prefix"
39114   acl_save_exec_prefix="$exec_prefix"
39115   exec_prefix="$acl_final_exec_prefix"
39116
39117     eval additional_includedir=\"$includedir\"
39118     eval additional_libdir=\"$libdir\"
39119
39120   exec_prefix="$acl_save_exec_prefix"
39121   prefix="$acl_save_prefix"
39122
39123
39124 # Check whether --with-libintl-prefix was given.
39125 if test "${with_libintl_prefix+set}" = set; then
39126   withval=$with_libintl_prefix;
39127     if test "X$withval" = "Xno"; then
39128       use_additional=no
39129     else
39130       if test "X$withval" = "X"; then
39131
39132   acl_save_prefix="$prefix"
39133   prefix="$acl_final_prefix"
39134   acl_save_exec_prefix="$exec_prefix"
39135   exec_prefix="$acl_final_exec_prefix"
39136
39137           eval additional_includedir=\"$includedir\"
39138           eval additional_libdir=\"$libdir\"
39139
39140   exec_prefix="$acl_save_exec_prefix"
39141   prefix="$acl_save_prefix"
39142
39143       else
39144         additional_includedir="$withval/include"
39145         additional_libdir="$withval/$acl_libdirstem"
39146         if test "$acl_libdirstem2" != "$acl_libdirstem" \
39147            && ! test -d "$withval/$acl_libdirstem"; then
39148           additional_libdir="$withval/$acl_libdirstem2"
39149         fi
39150       fi
39151     fi
39152
39153 fi
39154
39155       LIBINTL=
39156   LTLIBINTL=
39157   INCINTL=
39158   LIBINTL_PREFIX=
39159   rpathdirs=
39160   ltrpathdirs=
39161   names_already_handled=
39162   names_next_round='intl '
39163   while test -n "$names_next_round"; do
39164     names_this_round="$names_next_round"
39165     names_next_round=
39166     for name in $names_this_round; do
39167       already_handled=
39168       for n in $names_already_handled; do
39169         if test "$n" = "$name"; then
39170           already_handled=yes
39171           break
39172         fi
39173       done
39174       if test -z "$already_handled"; then
39175         names_already_handled="$names_already_handled $name"
39176                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
39177         eval value=\"\$HAVE_LIB$uppername\"
39178         if test -n "$value"; then
39179           if test "$value" = yes; then
39180             eval value=\"\$LIB$uppername\"
39181             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
39182             eval value=\"\$LTLIB$uppername\"
39183             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
39184           else
39185                                     :
39186           fi
39187         else
39188                               found_dir=
39189           found_la=
39190           found_so=
39191           found_a=
39192           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
39193           if test -n "$acl_shlibext"; then
39194             shrext=".$acl_shlibext"             # typically: shrext=.so
39195           else
39196             shrext=
39197           fi
39198           if test $use_additional = yes; then
39199             dir="$additional_libdir"
39200                                     if test -n "$acl_shlibext"; then
39201               if test -f "$dir/$libname$shrext"; then
39202                 found_dir="$dir"
39203                 found_so="$dir/$libname$shrext"
39204               else
39205                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
39206                   ver=`(cd "$dir" && \
39207                         for f in "$libname$shrext".*; do echo "$f"; done \
39208                         | sed -e "s,^$libname$shrext\\\\.,," \
39209                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
39210                         | sed 1q ) 2>/dev/null`
39211                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
39212                     found_dir="$dir"
39213                     found_so="$dir/$libname$shrext.$ver"
39214                   fi
39215                 else
39216                   eval library_names=\"$acl_library_names_spec\"
39217                   for f in $library_names; do
39218                     if test -f "$dir/$f"; then
39219                       found_dir="$dir"
39220                       found_so="$dir/$f"
39221                       break
39222                     fi
39223                   done
39224                 fi
39225               fi
39226             fi
39227                         if test "X$found_dir" = "X"; then
39228               if test -f "$dir/$libname.$acl_libext"; then
39229                 found_dir="$dir"
39230                 found_a="$dir/$libname.$acl_libext"
39231               fi
39232             fi
39233             if test "X$found_dir" != "X"; then
39234               if test -f "$dir/$libname.la"; then
39235                 found_la="$dir/$libname.la"
39236               fi
39237             fi
39238           fi
39239           if test "X$found_dir" = "X"; then
39240             for x in $LDFLAGS $LTLIBINTL; do
39241
39242   acl_save_prefix="$prefix"
39243   prefix="$acl_final_prefix"
39244   acl_save_exec_prefix="$exec_prefix"
39245   exec_prefix="$acl_final_exec_prefix"
39246   eval x=\"$x\"
39247   exec_prefix="$acl_save_exec_prefix"
39248   prefix="$acl_save_prefix"
39249
39250               case "$x" in
39251                 -L*)
39252                   dir=`echo "X$x" | sed -e 's/^X-L//'`
39253                                     if test -n "$acl_shlibext"; then
39254                     if test -f "$dir/$libname$shrext"; then
39255                       found_dir="$dir"
39256                       found_so="$dir/$libname$shrext"
39257                     else
39258                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
39259                         ver=`(cd "$dir" && \
39260                               for f in "$libname$shrext".*; do echo "$f"; done \
39261                               | sed -e "s,^$libname$shrext\\\\.,," \
39262                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
39263                               | sed 1q ) 2>/dev/null`
39264                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
39265                           found_dir="$dir"
39266                           found_so="$dir/$libname$shrext.$ver"
39267                         fi
39268                       else
39269                         eval library_names=\"$acl_library_names_spec\"
39270                         for f in $library_names; do
39271                           if test -f "$dir/$f"; then
39272                             found_dir="$dir"
39273                             found_so="$dir/$f"
39274                             break
39275                           fi
39276                         done
39277                       fi
39278                     fi
39279                   fi
39280                                     if test "X$found_dir" = "X"; then
39281                     if test -f "$dir/$libname.$acl_libext"; then
39282                       found_dir="$dir"
39283                       found_a="$dir/$libname.$acl_libext"
39284                     fi
39285                   fi
39286                   if test "X$found_dir" != "X"; then
39287                     if test -f "$dir/$libname.la"; then
39288                       found_la="$dir/$libname.la"
39289                     fi
39290                   fi
39291                   ;;
39292               esac
39293               if test "X$found_dir" != "X"; then
39294                 break
39295               fi
39296             done
39297           fi
39298           if test "X$found_dir" != "X"; then
39299                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
39300             if test "X$found_so" != "X"; then
39301                                                         if test "$enable_rpath" = no \
39302                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
39303                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
39304                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
39305               else
39306                                                                                 haveit=
39307                 for x in $ltrpathdirs; do
39308                   if test "X$x" = "X$found_dir"; then
39309                     haveit=yes
39310                     break
39311                   fi
39312                 done
39313                 if test -z "$haveit"; then
39314                   ltrpathdirs="$ltrpathdirs $found_dir"
39315                 fi
39316                                 if test "$acl_hardcode_direct" = yes; then
39317                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
39318                 else
39319                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
39320                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
39321                                                             haveit=
39322                     for x in $rpathdirs; do
39323                       if test "X$x" = "X$found_dir"; then
39324                         haveit=yes
39325                         break
39326                       fi
39327                     done
39328                     if test -z "$haveit"; then
39329                       rpathdirs="$rpathdirs $found_dir"
39330                     fi
39331                   else
39332                                                                                 haveit=
39333                     for x in $LDFLAGS $LIBINTL; do
39334
39335   acl_save_prefix="$prefix"
39336   prefix="$acl_final_prefix"
39337   acl_save_exec_prefix="$exec_prefix"
39338   exec_prefix="$acl_final_exec_prefix"
39339   eval x=\"$x\"
39340   exec_prefix="$acl_save_exec_prefix"
39341   prefix="$acl_save_prefix"
39342
39343                       if test "X$x" = "X-L$found_dir"; then
39344                         haveit=yes
39345                         break
39346                       fi
39347                     done
39348                     if test -z "$haveit"; then
39349                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
39350                     fi
39351                     if test "$acl_hardcode_minus_L" != no; then
39352                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
39353                     else
39354                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
39355                     fi
39356                   fi
39357                 fi
39358               fi
39359             else
39360               if test "X$found_a" != "X"; then
39361                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
39362               else
39363                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
39364               fi
39365             fi
39366                         additional_includedir=
39367             case "$found_dir" in
39368               */$acl_libdirstem | */$acl_libdirstem/)
39369                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
39370                 LIBINTL_PREFIX="$basedir"
39371                 additional_includedir="$basedir/include"
39372                 ;;
39373               */$acl_libdirstem2 | */$acl_libdirstem2/)
39374                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
39375                 LIBINTL_PREFIX="$basedir"
39376                 additional_includedir="$basedir/include"
39377                 ;;
39378             esac
39379             if test "X$additional_includedir" != "X"; then
39380                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
39381                 haveit=
39382                 if test "X$additional_includedir" = "X/usr/local/include"; then
39383                   if test -n "$GCC"; then
39384                     case $host_os in
39385                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
39386                     esac
39387                   fi
39388                 fi
39389                 if test -z "$haveit"; then
39390                   for x in $CPPFLAGS $INCINTL; do
39391
39392   acl_save_prefix="$prefix"
39393   prefix="$acl_final_prefix"
39394   acl_save_exec_prefix="$exec_prefix"
39395   exec_prefix="$acl_final_exec_prefix"
39396   eval x=\"$x\"
39397   exec_prefix="$acl_save_exec_prefix"
39398   prefix="$acl_save_prefix"
39399
39400                     if test "X$x" = "X-I$additional_includedir"; then
39401                       haveit=yes
39402                       break
39403                     fi
39404                   done
39405                   if test -z "$haveit"; then
39406                     if test -d "$additional_includedir"; then
39407                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
39408                     fi
39409                   fi
39410                 fi
39411               fi
39412             fi
39413                         if test -n "$found_la"; then
39414                                                         save_libdir="$libdir"
39415               case "$found_la" in
39416                 */* | *\\*) . "$found_la" ;;
39417                 *) . "./$found_la" ;;
39418               esac
39419               libdir="$save_libdir"
39420                             for dep in $dependency_libs; do
39421                 case "$dep" in
39422                   -L*)
39423                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
39424                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
39425                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
39426                       haveit=
39427                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
39428                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
39429                         if test -n "$GCC"; then
39430                           case $host_os in
39431                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
39432                           esac
39433                         fi
39434                       fi
39435                       if test -z "$haveit"; then
39436                         haveit=
39437                         for x in $LDFLAGS $LIBINTL; do
39438
39439   acl_save_prefix="$prefix"
39440   prefix="$acl_final_prefix"
39441   acl_save_exec_prefix="$exec_prefix"
39442   exec_prefix="$acl_final_exec_prefix"
39443   eval x=\"$x\"
39444   exec_prefix="$acl_save_exec_prefix"
39445   prefix="$acl_save_prefix"
39446
39447                           if test "X$x" = "X-L$additional_libdir"; then
39448                             haveit=yes
39449                             break
39450                           fi
39451                         done
39452                         if test -z "$haveit"; then
39453                           if test -d "$additional_libdir"; then
39454                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
39455                           fi
39456                         fi
39457                         haveit=
39458                         for x in $LDFLAGS $LTLIBINTL; do
39459
39460   acl_save_prefix="$prefix"
39461   prefix="$acl_final_prefix"
39462   acl_save_exec_prefix="$exec_prefix"
39463   exec_prefix="$acl_final_exec_prefix"
39464   eval x=\"$x\"
39465   exec_prefix="$acl_save_exec_prefix"
39466   prefix="$acl_save_prefix"
39467
39468                           if test "X$x" = "X-L$additional_libdir"; then
39469                             haveit=yes
39470                             break
39471                           fi
39472                         done
39473                         if test -z "$haveit"; then
39474                           if test -d "$additional_libdir"; then
39475                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
39476                           fi
39477                         fi
39478                       fi
39479                     fi
39480                     ;;
39481                   -R*)
39482                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
39483                     if test "$enable_rpath" != no; then
39484                                                                   haveit=
39485                       for x in $rpathdirs; do
39486                         if test "X$x" = "X$dir"; then
39487                           haveit=yes
39488                           break
39489                         fi
39490                       done
39491                       if test -z "$haveit"; then
39492                         rpathdirs="$rpathdirs $dir"
39493                       fi
39494                                                                   haveit=
39495                       for x in $ltrpathdirs; do
39496                         if test "X$x" = "X$dir"; then
39497                           haveit=yes
39498                           break
39499                         fi
39500                       done
39501                       if test -z "$haveit"; then
39502                         ltrpathdirs="$ltrpathdirs $dir"
39503                       fi
39504                     fi
39505                     ;;
39506                   -l*)
39507                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
39508                     ;;
39509                   *.la)
39510                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
39511                     ;;
39512                   *)
39513                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
39514                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
39515                     ;;
39516                 esac
39517               done
39518             fi
39519           else
39520                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
39521             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
39522           fi
39523         fi
39524       fi
39525     done
39526   done
39527   if test "X$rpathdirs" != "X"; then
39528     if test -n "$acl_hardcode_libdir_separator"; then
39529                         alldirs=
39530       for found_dir in $rpathdirs; do
39531         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
39532       done
39533             acl_save_libdir="$libdir"
39534       libdir="$alldirs"
39535       eval flag=\"$acl_hardcode_libdir_flag_spec\"
39536       libdir="$acl_save_libdir"
39537       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
39538     else
39539             for found_dir in $rpathdirs; do
39540         acl_save_libdir="$libdir"
39541         libdir="$found_dir"
39542         eval flag=\"$acl_hardcode_libdir_flag_spec\"
39543         libdir="$acl_save_libdir"
39544         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
39545       done
39546     fi
39547   fi
39548   if test "X$ltrpathdirs" != "X"; then
39549             for found_dir in $ltrpathdirs; do
39550       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
39551     done
39552   fi
39553
39554
39555
39556
39557
39558
39559           { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
39560 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
39561 if { as_var=$gt_func_gnugettext_libintl; eval "test \"\${$as_var+set}\" = set"; }; then
39562   echo $ECHO_N "(cached) $ECHO_C" >&6
39563 else
39564   gt_save_CPPFLAGS="$CPPFLAGS"
39565             CPPFLAGS="$CPPFLAGS $INCINTL"
39566             gt_save_LIBS="$LIBS"
39567             LIBS="$LIBS $LIBINTL"
39568                         cat >conftest.$ac_ext <<_ACEOF
39569 /* confdefs.h.  */
39570 _ACEOF
39571 cat confdefs.h >>conftest.$ac_ext
39572 cat >>conftest.$ac_ext <<_ACEOF
39573 /* end confdefs.h.  */
39574 #include <libintl.h>
39575 $gt_revision_test_code
39576 extern int _nl_msg_cat_cntr;
39577 extern
39578 #ifdef __cplusplus
39579 "C"
39580 #endif
39581 const char *_nl_expand_alias (const char *);
39582 int
39583 main ()
39584 {
39585 bindtextdomain ("", "");
39586 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
39587   ;
39588   return 0;
39589 }
39590 _ACEOF
39591 rm -f conftest.$ac_objext conftest$ac_exeext
39592 if { (ac_try="$ac_link"
39593 case "(($ac_try" in
39594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39595   *) ac_try_echo=$ac_try;;
39596 esac
39597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39598   (eval "$ac_link") 2>conftest.er1
39599   ac_status=$?
39600   grep -v '^ *+' conftest.er1 >conftest.err
39601   rm -f conftest.er1
39602   cat conftest.err >&5
39603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39604   (exit $ac_status); } && {
39605          test -z "$ac_c_werror_flag" ||
39606          test ! -s conftest.err
39607        } && test -s conftest$ac_exeext &&
39608        $as_test_x conftest$ac_exeext; then
39609   eval "$gt_func_gnugettext_libintl=yes"
39610 else
39611   echo "$as_me: failed program was:" >&5
39612 sed 's/^/| /' conftest.$ac_ext >&5
39613
39614         eval "$gt_func_gnugettext_libintl=no"
39615 fi
39616
39617 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39618       conftest$ac_exeext conftest.$ac_ext
39619                         if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
39620               LIBS="$LIBS $LIBICONV"
39621               cat >conftest.$ac_ext <<_ACEOF
39622 /* confdefs.h.  */
39623 _ACEOF
39624 cat confdefs.h >>conftest.$ac_ext
39625 cat >>conftest.$ac_ext <<_ACEOF
39626 /* end confdefs.h.  */
39627 #include <libintl.h>
39628 $gt_revision_test_code
39629 extern int _nl_msg_cat_cntr;
39630 extern
39631 #ifdef __cplusplus
39632 "C"
39633 #endif
39634 const char *_nl_expand_alias (const char *);
39635 int
39636 main ()
39637 {
39638 bindtextdomain ("", "");
39639 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
39640   ;
39641   return 0;
39642 }
39643 _ACEOF
39644 rm -f conftest.$ac_objext conftest$ac_exeext
39645 if { (ac_try="$ac_link"
39646 case "(($ac_try" in
39647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39648   *) ac_try_echo=$ac_try;;
39649 esac
39650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39651   (eval "$ac_link") 2>conftest.er1
39652   ac_status=$?
39653   grep -v '^ *+' conftest.er1 >conftest.err
39654   rm -f conftest.er1
39655   cat conftest.err >&5
39656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39657   (exit $ac_status); } && {
39658          test -z "$ac_c_werror_flag" ||
39659          test ! -s conftest.err
39660        } && test -s conftest$ac_exeext &&
39661        $as_test_x conftest$ac_exeext; then
39662   LIBINTL="$LIBINTL $LIBICONV"
39663                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
39664                 eval "$gt_func_gnugettext_libintl=yes"
39665
39666 else
39667   echo "$as_me: failed program was:" >&5
39668 sed 's/^/| /' conftest.$ac_ext >&5
39669
39670
39671 fi
39672
39673 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39674       conftest$ac_exeext conftest.$ac_ext
39675             fi
39676             CPPFLAGS="$gt_save_CPPFLAGS"
39677             LIBS="$gt_save_LIBS"
39678 fi
39679 ac_res=`eval echo '${'$gt_func_gnugettext_libintl'}'`
39680                { echo "$as_me:$LINENO: result: $ac_res" >&5
39681 echo "${ECHO_T}$ac_res" >&6; }
39682         fi
39683
39684                                         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
39685            || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
39686                 && test "$PACKAGE" != gettext-runtime \
39687                 && test "$PACKAGE" != gettext-tools; }; then
39688           gt_use_preinstalled_gnugettext=yes
39689         else
39690                     LIBINTL=
39691           LTLIBINTL=
39692           INCINTL=
39693         fi
39694
39695
39696
39697     if test -n "$INTL_MACOSX_LIBS"; then
39698       if test "$gt_use_preinstalled_gnugettext" = "yes" \
39699          || test "$nls_cv_use_gnu_gettext" = "yes"; then
39700                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
39701         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
39702       fi
39703     fi
39704
39705     if test "$gt_use_preinstalled_gnugettext" = "yes" \
39706        || test "$nls_cv_use_gnu_gettext" = "yes"; then
39707
39708 cat >>confdefs.h <<\_ACEOF
39709 #define ENABLE_NLS 1
39710 _ACEOF
39711
39712     else
39713       USE_NLS=no
39714     fi
39715   fi
39716
39717   { echo "$as_me:$LINENO: checking whether to use NLS" >&5
39718 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
39719   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
39720 echo "${ECHO_T}$USE_NLS" >&6; }
39721   if test "$USE_NLS" = "yes"; then
39722     { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
39723 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
39724     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
39725       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
39726         gt_source="external libintl"
39727       else
39728         gt_source="libc"
39729       fi
39730     else
39731       gt_source="included intl directory"
39732     fi
39733     { echo "$as_me:$LINENO: result: $gt_source" >&5
39734 echo "${ECHO_T}$gt_source" >&6; }
39735   fi
39736
39737   if test "$USE_NLS" = "yes"; then
39738
39739     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
39740       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
39741         { echo "$as_me:$LINENO: checking how to link with libintl" >&5
39742 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
39743         { echo "$as_me:$LINENO: result: $LIBINTL" >&5
39744 echo "${ECHO_T}$LIBINTL" >&6; }
39745
39746   for element in $INCINTL; do
39747     haveit=
39748     for x in $CPPFLAGS; do
39749
39750   acl_save_prefix="$prefix"
39751   prefix="$acl_final_prefix"
39752   acl_save_exec_prefix="$exec_prefix"
39753   exec_prefix="$acl_final_exec_prefix"
39754   eval x=\"$x\"
39755   exec_prefix="$acl_save_exec_prefix"
39756   prefix="$acl_save_prefix"
39757
39758       if test "X$x" = "X$element"; then
39759         haveit=yes
39760         break
39761       fi
39762     done
39763     if test -z "$haveit"; then
39764       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
39765     fi
39766   done
39767
39768       fi
39769
39770
39771 cat >>confdefs.h <<\_ACEOF
39772 #define HAVE_GETTEXT 1
39773 _ACEOF
39774
39775
39776 cat >>confdefs.h <<\_ACEOF
39777 #define HAVE_DCGETTEXT 1
39778 _ACEOF
39779
39780     fi
39781
39782         POSUB=po
39783   fi
39784
39785
39786
39787     INTLLIBS="$LIBINTL"
39788
39789
39790
39791
39792
39793
39794
39795
39796 # Initialize the test suite.
39797 ac_config_commands="$ac_config_commands tests/atconfig"
39798
39799
39800 ac_config_files="$ac_config_files tests/Makefile tests/atlocal"
39801  # FIXME: tests/preset?
39802
39803 AUTOM4TE=${AUTOM4TE-"${am_missing_run}autom4te"}
39804
39805
39806
39807
39808 # Check whether --enable-backup-scripts was given.
39809 if test "${enable_backup_scripts+set}" = set; then
39810   enableval=$enable_backup_scripts; case $enableval in
39811                yes) BACKUP_LIBEXEC_SCRIPTS='$(BACKUP_LIBEXEC_SCRIPTS_LIST)'
39812                     BACKUP_SBIN_SCRIPTS='$(BACKUP_SBIN_SCRIPTS_LIST)'
39813                     ;;
39814                esac
39815 fi
39816
39817
39818
39819 if date +%Y-%m-%d 2>/dev/null >&2; then
39820         BACKUP_SED_COND='/^\#ELSE_DATE_FORMAT_OK/,/^\#ENDIF_DATE_FORMAT_OK/d;/^\#IF_DATE_FORMAT_OK/d'
39821 else
39822         BACKUP_SED_COND='/^\#IF_DATE_FORMAT_OK/,/^\#ELSE_DATE_FORMAT_OK/d;/^\#ENDIF_DATE_FORMAT_OK/d'
39823 fi
39824
39825 ac_config_files="$ac_config_files Makefile doc/Makefile lib/Makefile po/Makefile.in scripts/Makefile rmt/Makefile src/Makefile"
39826
39827 cat >confcache <<\_ACEOF
39828 # This file is a shell script that caches the results of configure
39829 # tests run on this system so they can be shared between configure
39830 # scripts and configure runs, see configure's option --config-cache.
39831 # It is not useful on other systems.  If it contains results you don't
39832 # want to keep, you may remove or edit it.
39833 #
39834 # config.status only pays attention to the cache file if you give it
39835 # the --recheck option to rerun configure.
39836 #
39837 # `ac_cv_env_foo' variables (set or unset) will be overridden when
39838 # loading this file, other *unset* `ac_cv_foo' will be assigned the
39839 # following values.
39840
39841 _ACEOF
39842
39843 # The following way of writing the cache mishandles newlines in values,
39844 # but we know of no workaround that is simple, portable, and efficient.
39845 # So, we kill variables containing newlines.
39846 # Ultrix sh set writes to stderr and can't be redirected directly,
39847 # and sets the high bit in the cache file unless we assign to the vars.
39848 (
39849   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
39850     eval ac_val=\$$ac_var
39851     case $ac_val in #(
39852     *${as_nl}*)
39853       case $ac_var in #(
39854       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
39855 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
39856       esac
39857       case $ac_var in #(
39858       _ | IFS | as_nl) ;; #(
39859       *) $as_unset $ac_var ;;
39860       esac ;;
39861     esac
39862   done
39863
39864   (set) 2>&1 |
39865     case $as_nl`(ac_space=' '; set) 2>&1` in #(
39866     *${as_nl}ac_space=\ *)
39867       # `set' does not quote correctly, so add quotes (double-quote
39868       # substitution turns \\\\ into \\, and sed turns \\ into \).
39869       sed -n \
39870         "s/'/'\\\\''/g;
39871           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
39872       ;; #(
39873     *)
39874       # `set' quotes correctly as required by POSIX, so do not add quotes.
39875       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
39876       ;;
39877     esac |
39878     sort
39879 ) |
39880   sed '
39881      /^ac_cv_env_/b end
39882      t clear
39883      :clear
39884      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
39885      t end
39886      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
39887      :end' >>confcache
39888 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
39889   if test -w "$cache_file"; then
39890     test "x$cache_file" != "x/dev/null" &&
39891       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
39892 echo "$as_me: updating cache $cache_file" >&6;}
39893     cat confcache >$cache_file
39894   else
39895     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
39896 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
39897   fi
39898 fi
39899 rm -f confcache
39900
39901 test "x$prefix" = xNONE && prefix=$ac_default_prefix
39902 # Let make expand exec_prefix.
39903 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
39904
39905 DEFS=-DHAVE_CONFIG_H
39906
39907 ac_libobjs=
39908 ac_ltlibobjs=
39909 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
39910   # 1. Remove the extension, and $U if already installed.
39911   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
39912   ac_i=`echo "$ac_i" | sed "$ac_script"`
39913   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
39914   #    will be set to the directory where LIBOBJS objects are built.
39915   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
39916   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
39917 done
39918 LIBOBJS=$ac_libobjs
39919
39920 LTLIBOBJS=$ac_ltlibobjs
39921
39922
39923 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
39924   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
39925 Usually this means the macro was only invoked conditionally." >&5
39926 echo "$as_me: error: conditional \"AMDEP\" was never defined.
39927 Usually this means the macro was only invoked conditionally." >&2;}
39928    { (exit 1); exit 1; }; }
39929 fi
39930 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
39931   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
39932 Usually this means the macro was only invoked conditionally." >&5
39933 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
39934 Usually this means the macro was only invoked conditionally." >&2;}
39935    { (exit 1); exit 1; }; }
39936 fi
39937 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
39938   { { echo "$as_me:$LINENO: error: conditional \"GL_COND_LIBTOOL\" was never defined.
39939 Usually this means the macro was only invoked conditionally." >&5
39940 echo "$as_me: error: conditional \"GL_COND_LIBTOOL\" was never defined.
39941 Usually this means the macro was only invoked conditionally." >&2;}
39942    { (exit 1); exit 1; }; }
39943 fi
39944
39945     gl_libobjs=
39946     gl_ltlibobjs=
39947     if test -n "$gl_LIBOBJS"; then
39948       # Remove the extension.
39949       sed_drop_objext='s/\.o$//;s/\.obj$//'
39950       for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
39951         gl_libobjs="$gl_libobjs $i.$ac_objext"
39952         gl_ltlibobjs="$gl_ltlibobjs $i.lo"
39953       done
39954     fi
39955     gl_LIBOBJS=$gl_libobjs
39956
39957     gl_LTLIBOBJS=$gl_ltlibobjs
39958
39959
39960
39961     gltests_libobjs=
39962     gltests_ltlibobjs=
39963     if test -n "$gltests_LIBOBJS"; then
39964       # Remove the extension.
39965       sed_drop_objext='s/\.o$//;s/\.obj$//'
39966       for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
39967         gltests_libobjs="$gltests_libobjs $i.$ac_objext"
39968         gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
39969       done
39970     fi
39971     gltests_LIBOBJS=$gltests_libobjs
39972
39973     gltests_LTLIBOBJS=$gltests_ltlibobjs
39974
39975
39976
39977 : ${CONFIG_STATUS=./config.status}
39978 ac_clean_files_save=$ac_clean_files
39979 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
39980 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
39981 echo "$as_me: creating $CONFIG_STATUS" >&6;}
39982 cat >$CONFIG_STATUS <<_ACEOF
39983 #! $SHELL
39984 # Generated by $as_me.
39985 # Run this file to recreate the current configuration.
39986 # Compiler output produced by configure, useful for debugging
39987 # configure, is in config.log if it exists.
39988
39989 debug=false
39990 ac_cs_recheck=false
39991 ac_cs_silent=false
39992 SHELL=\${CONFIG_SHELL-$SHELL}
39993 _ACEOF
39994
39995 cat >>$CONFIG_STATUS <<\_ACEOF
39996 ## --------------------- ##
39997 ## M4sh Initialization.  ##
39998 ## --------------------- ##
39999
40000 # Be more Bourne compatible
40001 DUALCASE=1; export DUALCASE # for MKS sh
40002 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
40003   emulate sh
40004   NULLCMD=:
40005   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
40006   # is contrary to our usage.  Disable this feature.
40007   alias -g '${1+"$@"}'='"$@"'
40008   setopt NO_GLOB_SUBST
40009 else
40010   case `(set -o) 2>/dev/null` in
40011   *posix*) set -o posix ;;
40012 esac
40013
40014 fi
40015
40016
40017
40018
40019 # PATH needs CR
40020 # Avoid depending upon Character Ranges.
40021 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
40022 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
40023 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
40024 as_cr_digits='0123456789'
40025 as_cr_alnum=$as_cr_Letters$as_cr_digits
40026
40027 # The user is always right.
40028 if test "${PATH_SEPARATOR+set}" != set; then
40029   echo "#! /bin/sh" >conf$$.sh
40030   echo  "exit 0"   >>conf$$.sh
40031   chmod +x conf$$.sh
40032   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
40033     PATH_SEPARATOR=';'
40034   else
40035     PATH_SEPARATOR=:
40036   fi
40037   rm -f conf$$.sh
40038 fi
40039
40040 # Support unset when possible.
40041 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
40042   as_unset=unset
40043 else
40044   as_unset=false
40045 fi
40046
40047
40048 # IFS
40049 # We need space, tab and new line, in precisely that order.  Quoting is
40050 # there to prevent editors from complaining about space-tab.
40051 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
40052 # splitting by setting IFS to empty value.)
40053 as_nl='
40054 '
40055 IFS=" ""        $as_nl"
40056
40057 # Find who we are.  Look in the path if we contain no directory separator.
40058 case $0 in
40059   *[\\/]* ) as_myself=$0 ;;
40060   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40061 for as_dir in $PATH
40062 do
40063   IFS=$as_save_IFS
40064   test -z "$as_dir" && as_dir=.
40065   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
40066 done
40067 IFS=$as_save_IFS
40068
40069      ;;
40070 esac
40071 # We did not find ourselves, most probably we were run as `sh COMMAND'
40072 # in which case we are not to be found in the path.
40073 if test "x$as_myself" = x; then
40074   as_myself=$0
40075 fi
40076 if test ! -f "$as_myself"; then
40077   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
40078   { (exit 1); exit 1; }
40079 fi
40080
40081 # Work around bugs in pre-3.0 UWIN ksh.
40082 for as_var in ENV MAIL MAILPATH
40083 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
40084 done
40085 PS1='$ '
40086 PS2='> '
40087 PS4='+ '
40088
40089 # NLS nuisances.
40090 for as_var in \
40091   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
40092   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
40093   LC_TELEPHONE LC_TIME
40094 do
40095   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
40096     eval $as_var=C; export $as_var
40097   else
40098     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
40099   fi
40100 done
40101
40102 # Required to use basename.
40103 if expr a : '\(a\)' >/dev/null 2>&1 &&
40104    test "X`expr 00001 : '.*\(...\)'`" = X001; then
40105   as_expr=expr
40106 else
40107   as_expr=false
40108 fi
40109
40110 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
40111   as_basename=basename
40112 else
40113   as_basename=false
40114 fi
40115
40116
40117 # Name of the executable.
40118 as_me=`$as_basename -- "$0" ||
40119 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
40120          X"$0" : 'X\(//\)$' \| \
40121          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
40122 echo X/"$0" |
40123     sed '/^.*\/\([^/][^/]*\)\/*$/{
40124             s//\1/
40125             q
40126           }
40127           /^X\/\(\/\/\)$/{
40128             s//\1/
40129             q
40130           }
40131           /^X\/\(\/\).*/{
40132             s//\1/
40133             q
40134           }
40135           s/.*/./; q'`
40136
40137 # CDPATH.
40138 $as_unset CDPATH
40139
40140
40141
40142   as_lineno_1=$LINENO
40143   as_lineno_2=$LINENO
40144   test "x$as_lineno_1" != "x$as_lineno_2" &&
40145   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
40146
40147   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
40148   # uniformly replaced by the line number.  The first 'sed' inserts a
40149   # line-number line after each line using $LINENO; the second 'sed'
40150   # does the real work.  The second script uses 'N' to pair each
40151   # line-number line with the line containing $LINENO, and appends
40152   # trailing '-' during substitution so that $LINENO is not a special
40153   # case at line end.
40154   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
40155   # scripts with optimization help from Paolo Bonzini.  Blame Lee
40156   # E. McMahon (1931-1989) for sed's syntax.  :-)
40157   sed -n '
40158     p
40159     /[$]LINENO/=
40160   ' <$as_myself |
40161     sed '
40162       s/[$]LINENO.*/&-/
40163       t lineno
40164       b
40165       :lineno
40166       N
40167       :loop
40168       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
40169       t loop
40170       s/-\n.*//
40171     ' >$as_me.lineno &&
40172   chmod +x "$as_me.lineno" ||
40173     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
40174    { (exit 1); exit 1; }; }
40175
40176   # Don't try to exec as it changes $[0], causing all sort of problems
40177   # (the dirname of $[0] is not the place where we might find the
40178   # original and so on.  Autoconf is especially sensitive to this).
40179   . "./$as_me.lineno"
40180   # Exit status is that of the last command.
40181   exit
40182 }
40183
40184
40185 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
40186   as_dirname=dirname
40187 else
40188   as_dirname=false
40189 fi
40190
40191 ECHO_C= ECHO_N= ECHO_T=
40192 case `echo -n x` in
40193 -n*)
40194   case `echo 'x\c'` in
40195   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
40196   *)   ECHO_C='\c';;
40197   esac;;
40198 *)
40199   ECHO_N='-n';;
40200 esac
40201
40202 if expr a : '\(a\)' >/dev/null 2>&1 &&
40203    test "X`expr 00001 : '.*\(...\)'`" = X001; then
40204   as_expr=expr
40205 else
40206   as_expr=false
40207 fi
40208
40209 rm -f conf$$ conf$$.exe conf$$.file
40210 if test -d conf$$.dir; then
40211   rm -f conf$$.dir/conf$$.file
40212 else
40213   rm -f conf$$.dir
40214   mkdir conf$$.dir
40215 fi
40216 echo >conf$$.file
40217 if ln -s conf$$.file conf$$ 2>/dev/null; then
40218   as_ln_s='ln -s'
40219   # ... but there are two gotchas:
40220   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
40221   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
40222   # In both cases, we have to default to `cp -p'.
40223   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
40224     as_ln_s='cp -p'
40225 elif ln conf$$.file conf$$ 2>/dev/null; then
40226   as_ln_s=ln
40227 else
40228   as_ln_s='cp -p'
40229 fi
40230 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
40231 rmdir conf$$.dir 2>/dev/null
40232
40233 if mkdir -p . 2>/dev/null; then
40234   as_mkdir_p=:
40235 else
40236   test -d ./-p && rmdir ./-p
40237   as_mkdir_p=false
40238 fi
40239
40240 if test -x / >/dev/null 2>&1; then
40241   as_test_x='test -x'
40242 else
40243   if ls -dL / >/dev/null 2>&1; then
40244     as_ls_L_option=L
40245   else
40246     as_ls_L_option=
40247   fi
40248   as_test_x='
40249     eval sh -c '\''
40250       if test -d "$1"; then
40251         test -d "$1/.";
40252       else
40253         case $1 in
40254         -*)set "./$1";;
40255         esac;
40256         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
40257         ???[sx]*):;;*)false;;esac;fi
40258     '\'' sh
40259   '
40260 fi
40261 as_executable_p=$as_test_x
40262
40263 # Sed expression to map a string onto a valid CPP name.
40264 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
40265
40266 # Sed expression to map a string onto a valid variable name.
40267 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
40268
40269
40270 exec 6>&1
40271
40272 # Save the log message, to keep $[0] and so on meaningful, and to
40273 # report actual input values of CONFIG_FILES etc. instead of their
40274 # values after options handling.
40275 ac_log="
40276 This file was extended by GNU tar $as_me 1.21, which was
40277 generated by GNU Autoconf 2.61.  Invocation command line was
40278
40279   CONFIG_FILES    = $CONFIG_FILES
40280   CONFIG_HEADERS  = $CONFIG_HEADERS
40281   CONFIG_LINKS    = $CONFIG_LINKS
40282   CONFIG_COMMANDS = $CONFIG_COMMANDS
40283   $ $0 $@
40284
40285 on `(hostname || uname -n) 2>/dev/null | sed 1q`
40286 "
40287
40288 _ACEOF
40289
40290 cat >>$CONFIG_STATUS <<_ACEOF
40291 # Files that config.status was made for.
40292 config_files="$ac_config_files"
40293 config_headers="$ac_config_headers"
40294 config_commands="$ac_config_commands"
40295
40296 _ACEOF
40297
40298 cat >>$CONFIG_STATUS <<\_ACEOF
40299 ac_cs_usage="\
40300 \`$as_me' instantiates files from templates according to the
40301 current configuration.
40302
40303 Usage: $0 [OPTIONS] [FILE]...
40304
40305   -h, --help       print this help, then exit
40306   -V, --version    print version number and configuration settings, then exit
40307   -q, --quiet      do not print progress messages
40308   -d, --debug      don't remove temporary files
40309       --recheck    update $as_me by reconfiguring in the same conditions
40310   --file=FILE[:TEMPLATE]
40311                    instantiate the configuration file FILE
40312   --header=FILE[:TEMPLATE]
40313                    instantiate the configuration header FILE
40314
40315 Configuration files:
40316 $config_files
40317
40318 Configuration headers:
40319 $config_headers
40320
40321 Configuration commands:
40322 $config_commands
40323
40324 Report bugs to <bug-autoconf@gnu.org>."
40325
40326 _ACEOF
40327 cat >>$CONFIG_STATUS <<_ACEOF
40328 ac_cs_version="\\
40329 GNU tar config.status 1.21
40330 configured by $0, generated by GNU Autoconf 2.61,
40331   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
40332
40333 Copyright (C) 2006 Free Software Foundation, Inc.
40334 This config.status script is free software; the Free Software Foundation
40335 gives unlimited permission to copy, distribute and modify it."
40336
40337 ac_pwd='$ac_pwd'
40338 srcdir='$srcdir'
40339 INSTALL='$INSTALL'
40340 MKDIR_P='$MKDIR_P'
40341 _ACEOF
40342
40343 cat >>$CONFIG_STATUS <<\_ACEOF
40344 # If no file are specified by the user, then we need to provide default
40345 # value.  By we need to know if files were specified by the user.
40346 ac_need_defaults=:
40347 while test $# != 0
40348 do
40349   case $1 in
40350   --*=*)
40351     ac_option=`expr "X$1" : 'X\([^=]*\)='`
40352     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
40353     ac_shift=:
40354     ;;
40355   *)
40356     ac_option=$1
40357     ac_optarg=$2
40358     ac_shift=shift
40359     ;;
40360   esac
40361
40362   case $ac_option in
40363   # Handling of the options.
40364   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
40365     ac_cs_recheck=: ;;
40366   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
40367     echo "$ac_cs_version"; exit ;;
40368   --debug | --debu | --deb | --de | --d | -d )
40369     debug=: ;;
40370   --file | --fil | --fi | --f )
40371     $ac_shift
40372     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
40373     ac_need_defaults=false;;
40374   --header | --heade | --head | --hea )
40375     $ac_shift
40376     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
40377     ac_need_defaults=false;;
40378   --he | --h)
40379     # Conflict between --help and --header
40380     { echo "$as_me: error: ambiguous option: $1
40381 Try \`$0 --help' for more information." >&2
40382    { (exit 1); exit 1; }; };;
40383   --help | --hel | -h )
40384     echo "$ac_cs_usage"; exit ;;
40385   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
40386   | -silent | --silent | --silen | --sile | --sil | --si | --s)
40387     ac_cs_silent=: ;;
40388
40389   # This is an error.
40390   -*) { echo "$as_me: error: unrecognized option: $1
40391 Try \`$0 --help' for more information." >&2
40392    { (exit 1); exit 1; }; } ;;
40393
40394   *) ac_config_targets="$ac_config_targets $1"
40395      ac_need_defaults=false ;;
40396
40397   esac
40398   shift
40399 done
40400
40401 ac_configure_extra_args=
40402
40403 if $ac_cs_silent; then
40404   exec 6>/dev/null
40405   ac_configure_extra_args="$ac_configure_extra_args --silent"
40406 fi
40407
40408 _ACEOF
40409 cat >>$CONFIG_STATUS <<_ACEOF
40410 if \$ac_cs_recheck; then
40411   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
40412   CONFIG_SHELL=$SHELL
40413   export CONFIG_SHELL
40414   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
40415 fi
40416
40417 _ACEOF
40418 cat >>$CONFIG_STATUS <<\_ACEOF
40419 exec 5>>config.log
40420 {
40421   echo
40422   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
40423 ## Running $as_me. ##
40424 _ASBOX
40425   echo "$ac_log"
40426 } >&5
40427
40428 _ACEOF
40429 cat >>$CONFIG_STATUS <<_ACEOF
40430 #
40431 # INIT-COMMANDS
40432 #
40433 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
40434 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
40435     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
40436     # from automake < 1.5.
40437     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
40438     # Capture the value of LINGUAS because we need it to compute CATALOGS.
40439     LINGUAS="${LINGUAS-%UNSET%}"
40440
40441
40442 _ACEOF
40443
40444 cat >>$CONFIG_STATUS <<\_ACEOF
40445
40446 # Handling of arguments.
40447 for ac_config_target in $ac_config_targets
40448 do
40449   case $ac_config_target in
40450     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.hin" ;;
40451     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
40452     "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
40453     "tests/atconfig") CONFIG_COMMANDS="$CONFIG_COMMANDS tests/atconfig" ;;
40454     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
40455     "tests/atlocal") CONFIG_FILES="$CONFIG_FILES tests/atlocal" ;;
40456     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
40457     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
40458     "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
40459     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
40460     "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
40461     "rmt/Makefile") CONFIG_FILES="$CONFIG_FILES rmt/Makefile" ;;
40462     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
40463
40464   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
40465 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
40466    { (exit 1); exit 1; }; };;
40467   esac
40468 done
40469
40470
40471 # If the user did not use the arguments to specify the items to instantiate,
40472 # then the envvar interface is used.  Set only those that are not.
40473 # We use the long form for the default assignment because of an extremely
40474 # bizarre bug on SunOS 4.1.3.
40475 if $ac_need_defaults; then
40476   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
40477   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
40478   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
40479 fi
40480
40481 # Have a temporary directory for convenience.  Make it in the build tree
40482 # simply because there is no reason against having it here, and in addition,
40483 # creating and moving files from /tmp can sometimes cause problems.
40484 # Hook for its removal unless debugging.
40485 # Note that there is a small window in which the directory will not be cleaned:
40486 # after its creation but before its name has been assigned to `$tmp'.
40487 $debug ||
40488 {
40489   tmp=
40490   trap 'exit_status=$?
40491   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
40492 ' 0
40493   trap '{ (exit 1); exit 1; }' 1 2 13 15
40494 }
40495 # Create a (secure) tmp directory for tmp files.
40496
40497 {
40498   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
40499   test -n "$tmp" && test -d "$tmp"
40500 }  ||
40501 {
40502   tmp=./conf$$-$RANDOM
40503   (umask 077 && mkdir "$tmp")
40504 } ||
40505 {
40506    echo "$me: cannot create a temporary directory in ." >&2
40507    { (exit 1); exit 1; }
40508 }
40509
40510 #
40511 # Set up the sed scripts for CONFIG_FILES section.
40512 #
40513
40514 # No need to generate the scripts if there are no CONFIG_FILES.
40515 # This happens for instance when ./config.status config.h
40516 if test -n "$CONFIG_FILES"; then
40517
40518 _ACEOF
40519
40520
40521
40522 ac_delim='%!_!# '
40523 for ac_last_try in false false false false false :; do
40524   cat >conf$$subs.sed <<_ACEOF
40525 SHELL!$SHELL$ac_delim
40526 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
40527 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
40528 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
40529 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
40530 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
40531 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
40532 exec_prefix!$exec_prefix$ac_delim
40533 prefix!$prefix$ac_delim
40534 program_transform_name!$program_transform_name$ac_delim
40535 bindir!$bindir$ac_delim
40536 sbindir!$sbindir$ac_delim
40537 libexecdir!$libexecdir$ac_delim
40538 datarootdir!$datarootdir$ac_delim
40539 datadir!$datadir$ac_delim
40540 sysconfdir!$sysconfdir$ac_delim
40541 sharedstatedir!$sharedstatedir$ac_delim
40542 localstatedir!$localstatedir$ac_delim
40543 includedir!$includedir$ac_delim
40544 oldincludedir!$oldincludedir$ac_delim
40545 docdir!$docdir$ac_delim
40546 infodir!$infodir$ac_delim
40547 htmldir!$htmldir$ac_delim
40548 dvidir!$dvidir$ac_delim
40549 pdfdir!$pdfdir$ac_delim
40550 psdir!$psdir$ac_delim
40551 libdir!$libdir$ac_delim
40552 localedir!$localedir$ac_delim
40553 mandir!$mandir$ac_delim
40554 DEFS!$DEFS$ac_delim
40555 ECHO_C!$ECHO_C$ac_delim
40556 ECHO_N!$ECHO_N$ac_delim
40557 ECHO_T!$ECHO_T$ac_delim
40558 LIBS!$LIBS$ac_delim
40559 build_alias!$build_alias$ac_delim
40560 host_alias!$host_alias$ac_delim
40561 target_alias!$target_alias$ac_delim
40562 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
40563 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
40564 INSTALL_DATA!$INSTALL_DATA$ac_delim
40565 am__isrc!$am__isrc$ac_delim
40566 CYGPATH_W!$CYGPATH_W$ac_delim
40567 PACKAGE!$PACKAGE$ac_delim
40568 VERSION!$VERSION$ac_delim
40569 ACLOCAL!$ACLOCAL$ac_delim
40570 AUTOCONF!$AUTOCONF$ac_delim
40571 AUTOMAKE!$AUTOMAKE$ac_delim
40572 AUTOHEADER!$AUTOHEADER$ac_delim
40573 MAKEINFO!$MAKEINFO$ac_delim
40574 install_sh!$install_sh$ac_delim
40575 STRIP!$STRIP$ac_delim
40576 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
40577 mkdir_p!$mkdir_p$ac_delim
40578 AWK!$AWK$ac_delim
40579 SET_MAKE!$SET_MAKE$ac_delim
40580 am__leading_dot!$am__leading_dot$ac_delim
40581 AMTAR!$AMTAR$ac_delim
40582 am__tar!$am__tar$ac_delim
40583 am__untar!$am__untar$ac_delim
40584 CC!$CC$ac_delim
40585 CFLAGS!$CFLAGS$ac_delim
40586 LDFLAGS!$LDFLAGS$ac_delim
40587 CPPFLAGS!$CPPFLAGS$ac_delim
40588 ac_ct_CC!$ac_ct_CC$ac_delim
40589 EXEEXT!$EXEEXT$ac_delim
40590 OBJEXT!$OBJEXT$ac_delim
40591 DEPDIR!$DEPDIR$ac_delim
40592 am__include!$am__include$ac_delim
40593 am__quote!$am__quote$ac_delim
40594 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
40595 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
40596 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
40597 CCDEPMODE!$CCDEPMODE$ac_delim
40598 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
40599 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
40600 RANLIB!$RANLIB$ac_delim
40601 YACC!$YACC$ac_delim
40602 YFLAGS!$YFLAGS$ac_delim
40603 CPP!$CPP$ac_delim
40604 GREP!$GREP$ac_delim
40605 EGREP!$EGREP$ac_delim
40606 STDBOOL_H!$STDBOOL_H$ac_delim
40607 HAVE__BOOL!$HAVE__BOOL$ac_delim
40608 GL_COND_LIBTOOL_TRUE!$GL_COND_LIBTOOL_TRUE$ac_delim
40609 GL_COND_LIBTOOL_FALSE!$GL_COND_LIBTOOL_FALSE$ac_delim
40610 ALLOCA!$ALLOCA$ac_delim
40611 ALLOCA_H!$ALLOCA_H$ac_delim
40612 GETOPT_H!$GETOPT_H$ac_delim
40613 GNULIB_CHOWN!$GNULIB_CHOWN$ac_delim
40614 GNULIB_CLOSE!$GNULIB_CLOSE$ac_delim
40615 GNULIB_DUP2!$GNULIB_DUP2$ac_delim
40616 GNULIB_ENVIRON!$GNULIB_ENVIRON$ac_delim
40617 GNULIB_EUIDACCESS!$GNULIB_EUIDACCESS$ac_delim
40618 GNULIB_FCHDIR!$GNULIB_FCHDIR$ac_delim
40619 GNULIB_FSYNC!$GNULIB_FSYNC$ac_delim
40620 GNULIB_FTRUNCATE!$GNULIB_FTRUNCATE$ac_delim
40621 GNULIB_GETCWD!$GNULIB_GETCWD$ac_delim
40622 _ACEOF
40623
40624   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
40625     break
40626   elif $ac_last_try; then
40627     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
40628 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
40629    { (exit 1); exit 1; }; }
40630   else
40631     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
40632   fi
40633 done
40634
40635 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
40636 if test -n "$ac_eof"; then
40637   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
40638   ac_eof=`expr $ac_eof + 1`
40639 fi
40640
40641 cat >>$CONFIG_STATUS <<_ACEOF
40642 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
40643 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
40644 _ACEOF
40645 sed '
40646 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
40647 s/^/s,@/; s/!/@,|#_!!_#|/
40648 :n
40649 t n
40650 s/'"$ac_delim"'$/,g/; t
40651 s/$/\\/; p
40652 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
40653 ' >>$CONFIG_STATUS <conf$$subs.sed
40654 rm -f conf$$subs.sed
40655 cat >>$CONFIG_STATUS <<_ACEOF
40656 CEOF$ac_eof
40657 _ACEOF
40658
40659
40660 ac_delim='%!_!# '
40661 for ac_last_try in false false false false false :; do
40662   cat >conf$$subs.sed <<_ACEOF
40663 GNULIB_GETDOMAINNAME!$GNULIB_GETDOMAINNAME$ac_delim
40664 GNULIB_GETDTABLESIZE!$GNULIB_GETDTABLESIZE$ac_delim
40665 GNULIB_GETHOSTNAME!$GNULIB_GETHOSTNAME$ac_delim
40666 GNULIB_GETLOGIN_R!$GNULIB_GETLOGIN_R$ac_delim
40667 GNULIB_GETPAGESIZE!$GNULIB_GETPAGESIZE$ac_delim
40668 GNULIB_GETUSERSHELL!$GNULIB_GETUSERSHELL$ac_delim
40669 GNULIB_LCHOWN!$GNULIB_LCHOWN$ac_delim
40670 GNULIB_LSEEK!$GNULIB_LSEEK$ac_delim
40671 GNULIB_READLINK!$GNULIB_READLINK$ac_delim
40672 GNULIB_SLEEP!$GNULIB_SLEEP$ac_delim
40673 GNULIB_UNISTD_H_SIGPIPE!$GNULIB_UNISTD_H_SIGPIPE$ac_delim
40674 GNULIB_WRITE!$GNULIB_WRITE$ac_delim
40675 HAVE_DUP2!$HAVE_DUP2$ac_delim
40676 HAVE_EUIDACCESS!$HAVE_EUIDACCESS$ac_delim
40677 HAVE_FSYNC!$HAVE_FSYNC$ac_delim
40678 HAVE_FTRUNCATE!$HAVE_FTRUNCATE$ac_delim
40679 HAVE_GETDOMAINNAME!$HAVE_GETDOMAINNAME$ac_delim
40680 HAVE_GETDTABLESIZE!$HAVE_GETDTABLESIZE$ac_delim
40681 HAVE_GETHOSTNAME!$HAVE_GETHOSTNAME$ac_delim
40682 HAVE_GETPAGESIZE!$HAVE_GETPAGESIZE$ac_delim
40683 HAVE_GETUSERSHELL!$HAVE_GETUSERSHELL$ac_delim
40684 HAVE_READLINK!$HAVE_READLINK$ac_delim
40685 HAVE_SLEEP!$HAVE_SLEEP$ac_delim
40686 HAVE_DECL_ENVIRON!$HAVE_DECL_ENVIRON$ac_delim
40687 HAVE_DECL_GETLOGIN_R!$HAVE_DECL_GETLOGIN_R$ac_delim
40688 HAVE_OS_H!$HAVE_OS_H$ac_delim
40689 HAVE_SYS_PARAM_H!$HAVE_SYS_PARAM_H$ac_delim
40690 REPLACE_CHOWN!$REPLACE_CHOWN$ac_delim
40691 REPLACE_CLOSE!$REPLACE_CLOSE$ac_delim
40692 REPLACE_FCHDIR!$REPLACE_FCHDIR$ac_delim
40693 REPLACE_GETCWD!$REPLACE_GETCWD$ac_delim
40694 REPLACE_GETPAGESIZE!$REPLACE_GETPAGESIZE$ac_delim
40695 REPLACE_LCHOWN!$REPLACE_LCHOWN$ac_delim
40696 REPLACE_LSEEK!$REPLACE_LSEEK$ac_delim
40697 REPLACE_WRITE!$REPLACE_WRITE$ac_delim
40698 UNISTD_H_HAVE_WINSOCK2_H!$UNISTD_H_HAVE_WINSOCK2_H$ac_delim
40699 LIB_CLOCK_GETTIME!$LIB_CLOCK_GETTIME$ac_delim
40700 GNULIB_DIRFD!$GNULIB_DIRFD$ac_delim
40701 HAVE_DECL_DIRFD!$HAVE_DECL_DIRFD$ac_delim
40702 DIRENT_H!$DIRENT_H$ac_delim
40703 INCLUDE_NEXT!$INCLUDE_NEXT$ac_delim
40704 PRAGMA_SYSTEM_HEADER!$PRAGMA_SYSTEM_HEADER$ac_delim
40705 NEXT_DIRENT_H!$NEXT_DIRENT_H$ac_delim
40706 build!$build$ac_delim
40707 build_cpu!$build_cpu$ac_delim
40708 build_vendor!$build_vendor$ac_delim
40709 build_os!$build_os$ac_delim
40710 host!$host$ac_delim
40711 host_cpu!$host_cpu$ac_delim
40712 host_vendor!$host_vendor$ac_delim
40713 host_os!$host_os$ac_delim
40714 NEXT_ERRNO_H!$NEXT_ERRNO_H$ac_delim
40715 ERRNO_H!$ERRNO_H$ac_delim
40716 EMULTIHOP_HIDDEN!$EMULTIHOP_HIDDEN$ac_delim
40717 EMULTIHOP_VALUE!$EMULTIHOP_VALUE$ac_delim
40718 ENOLINK_HIDDEN!$ENOLINK_HIDDEN$ac_delim
40719 ENOLINK_VALUE!$ENOLINK_VALUE$ac_delim
40720 EOVERFLOW_HIDDEN!$EOVERFLOW_HIDDEN$ac_delim
40721 EOVERFLOW_VALUE!$EOVERFLOW_VALUE$ac_delim
40722 GNULIB_OPEN!$GNULIB_OPEN$ac_delim
40723 REPLACE_OPEN!$REPLACE_OPEN$ac_delim
40724 GNULIB_FPRINTF!$GNULIB_FPRINTF$ac_delim
40725 GNULIB_FPRINTF_POSIX!$GNULIB_FPRINTF_POSIX$ac_delim
40726 GNULIB_PRINTF!$GNULIB_PRINTF$ac_delim
40727 GNULIB_PRINTF_POSIX!$GNULIB_PRINTF_POSIX$ac_delim
40728 GNULIB_SNPRINTF!$GNULIB_SNPRINTF$ac_delim
40729 GNULIB_SPRINTF_POSIX!$GNULIB_SPRINTF_POSIX$ac_delim
40730 GNULIB_VFPRINTF!$GNULIB_VFPRINTF$ac_delim
40731 GNULIB_VFPRINTF_POSIX!$GNULIB_VFPRINTF_POSIX$ac_delim
40732 GNULIB_VPRINTF!$GNULIB_VPRINTF$ac_delim
40733 GNULIB_VPRINTF_POSIX!$GNULIB_VPRINTF_POSIX$ac_delim
40734 GNULIB_VSNPRINTF!$GNULIB_VSNPRINTF$ac_delim
40735 GNULIB_VSPRINTF_POSIX!$GNULIB_VSPRINTF_POSIX$ac_delim
40736 GNULIB_VASPRINTF!$GNULIB_VASPRINTF$ac_delim
40737 GNULIB_OBSTACK_PRINTF!$GNULIB_OBSTACK_PRINTF$ac_delim
40738 GNULIB_OBSTACK_PRINTF_POSIX!$GNULIB_OBSTACK_PRINTF_POSIX$ac_delim
40739 GNULIB_FOPEN!$GNULIB_FOPEN$ac_delim
40740 GNULIB_FREOPEN!$GNULIB_FREOPEN$ac_delim
40741 GNULIB_FSEEK!$GNULIB_FSEEK$ac_delim
40742 GNULIB_FSEEKO!$GNULIB_FSEEKO$ac_delim
40743 GNULIB_FTELL!$GNULIB_FTELL$ac_delim
40744 GNULIB_FTELLO!$GNULIB_FTELLO$ac_delim
40745 GNULIB_FFLUSH!$GNULIB_FFLUSH$ac_delim
40746 GNULIB_FCLOSE!$GNULIB_FCLOSE$ac_delim
40747 GNULIB_FPUTC!$GNULIB_FPUTC$ac_delim
40748 GNULIB_PUTC!$GNULIB_PUTC$ac_delim
40749 GNULIB_PUTCHAR!$GNULIB_PUTCHAR$ac_delim
40750 GNULIB_FPUTS!$GNULIB_FPUTS$ac_delim
40751 GNULIB_PUTS!$GNULIB_PUTS$ac_delim
40752 GNULIB_FWRITE!$GNULIB_FWRITE$ac_delim
40753 GNULIB_GETDELIM!$GNULIB_GETDELIM$ac_delim
40754 GNULIB_GETLINE!$GNULIB_GETLINE$ac_delim
40755 GNULIB_PERROR!$GNULIB_PERROR$ac_delim
40756 GNULIB_STDIO_H_SIGPIPE!$GNULIB_STDIO_H_SIGPIPE$ac_delim
40757 REPLACE_STDIO_WRITE_FUNCS!$REPLACE_STDIO_WRITE_FUNCS$ac_delim
40758 REPLACE_FPRINTF!$REPLACE_FPRINTF$ac_delim
40759 REPLACE_VFPRINTF!$REPLACE_VFPRINTF$ac_delim
40760 _ACEOF
40761
40762   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
40763     break
40764   elif $ac_last_try; then
40765     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
40766 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
40767    { (exit 1); exit 1; }; }
40768   else
40769     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
40770   fi
40771 done
40772
40773 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
40774 if test -n "$ac_eof"; then
40775   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
40776   ac_eof=`expr $ac_eof + 1`
40777 fi
40778
40779 cat >>$CONFIG_STATUS <<_ACEOF
40780 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
40781 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
40782 _ACEOF
40783 sed '
40784 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
40785 s/^/s,@/; s/!/@,|#_!!_#|/
40786 :n
40787 t n
40788 s/'"$ac_delim"'$/,g/; t
40789 s/$/\\/; p
40790 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
40791 ' >>$CONFIG_STATUS <conf$$subs.sed
40792 rm -f conf$$subs.sed
40793 cat >>$CONFIG_STATUS <<_ACEOF
40794 CEOF$ac_eof
40795 _ACEOF
40796
40797
40798 ac_delim='%!_!# '
40799 for ac_last_try in false false false false false :; do
40800   cat >conf$$subs.sed <<_ACEOF
40801 REPLACE_PRINTF!$REPLACE_PRINTF$ac_delim
40802 REPLACE_VPRINTF!$REPLACE_VPRINTF$ac_delim
40803 REPLACE_SNPRINTF!$REPLACE_SNPRINTF$ac_delim
40804 HAVE_DECL_SNPRINTF!$HAVE_DECL_SNPRINTF$ac_delim
40805 REPLACE_VSNPRINTF!$REPLACE_VSNPRINTF$ac_delim
40806 HAVE_DECL_VSNPRINTF!$HAVE_DECL_VSNPRINTF$ac_delim
40807 REPLACE_SPRINTF!$REPLACE_SPRINTF$ac_delim
40808 REPLACE_VSPRINTF!$REPLACE_VSPRINTF$ac_delim
40809 HAVE_VASPRINTF!$HAVE_VASPRINTF$ac_delim
40810 REPLACE_VASPRINTF!$REPLACE_VASPRINTF$ac_delim
40811 HAVE_DECL_OBSTACK_PRINTF!$HAVE_DECL_OBSTACK_PRINTF$ac_delim
40812 REPLACE_OBSTACK_PRINTF!$REPLACE_OBSTACK_PRINTF$ac_delim
40813 REPLACE_FOPEN!$REPLACE_FOPEN$ac_delim
40814 REPLACE_FREOPEN!$REPLACE_FREOPEN$ac_delim
40815 HAVE_FSEEKO!$HAVE_FSEEKO$ac_delim
40816 REPLACE_FSEEKO!$REPLACE_FSEEKO$ac_delim
40817 REPLACE_FSEEK!$REPLACE_FSEEK$ac_delim
40818 HAVE_FTELLO!$HAVE_FTELLO$ac_delim
40819 REPLACE_FTELLO!$REPLACE_FTELLO$ac_delim
40820 REPLACE_FTELL!$REPLACE_FTELL$ac_delim
40821 REPLACE_FFLUSH!$REPLACE_FFLUSH$ac_delim
40822 REPLACE_FCLOSE!$REPLACE_FCLOSE$ac_delim
40823 HAVE_DECL_GETDELIM!$HAVE_DECL_GETDELIM$ac_delim
40824 HAVE_DECL_GETLINE!$HAVE_DECL_GETLINE$ac_delim
40825 REPLACE_GETLINE!$REPLACE_GETLINE$ac_delim
40826 REPLACE_PERROR!$REPLACE_PERROR$ac_delim
40827 NEXT_FCNTL_H!$NEXT_FCNTL_H$ac_delim
40828 FCNTL_H!$FCNTL_H$ac_delim
40829 NEXT_FLOAT_H!$NEXT_FLOAT_H$ac_delim
40830 FLOAT_H!$FLOAT_H$ac_delim
40831 FNMATCH_H!$FNMATCH_H$ac_delim
40832 LIBINTL!$LIBINTL$ac_delim
40833 LTLIBINTL!$LTLIBINTL$ac_delim
40834 NEXT_SYS_TIME_H!$NEXT_SYS_TIME_H$ac_delim
40835 HAVE_SYS_TIME_H!$HAVE_SYS_TIME_H$ac_delim
40836 HAVE_STRUCT_TIMEVAL!$HAVE_STRUCT_TIMEVAL$ac_delim
40837 REPLACE_GETTIMEOFDAY!$REPLACE_GETTIMEOFDAY$ac_delim
40838 SYS_TIME_H!$SYS_TIME_H$ac_delim
40839 HAVE_LONG_LONG_INT!$HAVE_LONG_LONG_INT$ac_delim
40840 HAVE_UNSIGNED_LONG_LONG_INT!$HAVE_UNSIGNED_LONG_LONG_INT$ac_delim
40841 HAVE_INTTYPES_H!$HAVE_INTTYPES_H$ac_delim
40842 HAVE_SYS_TYPES_H!$HAVE_SYS_TYPES_H$ac_delim
40843 NEXT_STDINT_H!$NEXT_STDINT_H$ac_delim
40844 HAVE_STDINT_H!$HAVE_STDINT_H$ac_delim
40845 HAVE_SYS_INTTYPES_H!$HAVE_SYS_INTTYPES_H$ac_delim
40846 HAVE_SYS_BITYPES_H!$HAVE_SYS_BITYPES_H$ac_delim
40847 BITSIZEOF_PTRDIFF_T!$BITSIZEOF_PTRDIFF_T$ac_delim
40848 BITSIZEOF_SIG_ATOMIC_T!$BITSIZEOF_SIG_ATOMIC_T$ac_delim
40849 BITSIZEOF_SIZE_T!$BITSIZEOF_SIZE_T$ac_delim
40850 BITSIZEOF_WCHAR_T!$BITSIZEOF_WCHAR_T$ac_delim
40851 BITSIZEOF_WINT_T!$BITSIZEOF_WINT_T$ac_delim
40852 HAVE_SIGNED_SIG_ATOMIC_T!$HAVE_SIGNED_SIG_ATOMIC_T$ac_delim
40853 HAVE_SIGNED_WCHAR_T!$HAVE_SIGNED_WCHAR_T$ac_delim
40854 HAVE_SIGNED_WINT_T!$HAVE_SIGNED_WINT_T$ac_delim
40855 PTRDIFF_T_SUFFIX!$PTRDIFF_T_SUFFIX$ac_delim
40856 SIG_ATOMIC_T_SUFFIX!$SIG_ATOMIC_T_SUFFIX$ac_delim
40857 SIZE_T_SUFFIX!$SIZE_T_SUFFIX$ac_delim
40858 WCHAR_T_SUFFIX!$WCHAR_T_SUFFIX$ac_delim
40859 WINT_T_SUFFIX!$WINT_T_SUFFIX$ac_delim
40860 STDINT_H!$STDINT_H$ac_delim
40861 PRI_MACROS_BROKEN!$PRI_MACROS_BROKEN$ac_delim
40862 GNULIB_IMAXABS!$GNULIB_IMAXABS$ac_delim
40863 GNULIB_IMAXDIV!$GNULIB_IMAXDIV$ac_delim
40864 GNULIB_STRTOIMAX!$GNULIB_STRTOIMAX$ac_delim
40865 GNULIB_STRTOUMAX!$GNULIB_STRTOUMAX$ac_delim
40866 HAVE_DECL_IMAXABS!$HAVE_DECL_IMAXABS$ac_delim
40867 HAVE_DECL_IMAXDIV!$HAVE_DECL_IMAXDIV$ac_delim
40868 HAVE_DECL_STRTOIMAX!$HAVE_DECL_STRTOIMAX$ac_delim
40869 HAVE_DECL_STRTOUMAX!$HAVE_DECL_STRTOUMAX$ac_delim
40870 NEXT_INTTYPES_H!$NEXT_INTTYPES_H$ac_delim
40871 PRIPTR_PREFIX!$PRIPTR_PREFIX$ac_delim
40872 INT32_MAX_LT_INTMAX_MAX!$INT32_MAX_LT_INTMAX_MAX$ac_delim
40873 INT64_MAX_EQ_LONG_MAX!$INT64_MAX_EQ_LONG_MAX$ac_delim
40874 UINT32_MAX_LT_UINTMAX_MAX!$UINT32_MAX_LT_UINTMAX_MAX$ac_delim
40875 UINT64_MAX_EQ_ULONG_MAX!$UINT64_MAX_EQ_ULONG_MAX$ac_delim
40876 INTTYPES_H!$INTTYPES_H$ac_delim
40877 GLIBC21!$GLIBC21$ac_delim
40878 LOCALCHARSET_TESTS_ENVIRONMENT!$LOCALCHARSET_TESTS_ENVIRONMENT$ac_delim
40879 GNULIB_LCHMOD!$GNULIB_LCHMOD$ac_delim
40880 GNULIB_LSTAT!$GNULIB_LSTAT$ac_delim
40881 HAVE_LCHMOD!$HAVE_LCHMOD$ac_delim
40882 REPLACE_LSTAT!$REPLACE_LSTAT$ac_delim
40883 REPLACE_MKDIR!$REPLACE_MKDIR$ac_delim
40884 HAVE_MALLOC_POSIX!$HAVE_MALLOC_POSIX$ac_delim
40885 GNULIB_MALLOC_POSIX!$GNULIB_MALLOC_POSIX$ac_delim
40886 GNULIB_REALLOC_POSIX!$GNULIB_REALLOC_POSIX$ac_delim
40887 GNULIB_CALLOC_POSIX!$GNULIB_CALLOC_POSIX$ac_delim
40888 GNULIB_ATOLL!$GNULIB_ATOLL$ac_delim
40889 GNULIB_GETLOADAVG!$GNULIB_GETLOADAVG$ac_delim
40890 GNULIB_GETSUBOPT!$GNULIB_GETSUBOPT$ac_delim
40891 GNULIB_MKDTEMP!$GNULIB_MKDTEMP$ac_delim
40892 GNULIB_MKSTEMP!$GNULIB_MKSTEMP$ac_delim
40893 GNULIB_PUTENV!$GNULIB_PUTENV$ac_delim
40894 GNULIB_RANDOM_R!$GNULIB_RANDOM_R$ac_delim
40895 GNULIB_RPMATCH!$GNULIB_RPMATCH$ac_delim
40896 GNULIB_SETENV!$GNULIB_SETENV$ac_delim
40897 GNULIB_STRTOD!$GNULIB_STRTOD$ac_delim
40898 _ACEOF
40899
40900   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
40901     break
40902   elif $ac_last_try; then
40903     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
40904 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
40905    { (exit 1); exit 1; }; }
40906   else
40907     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
40908   fi
40909 done
40910
40911 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
40912 if test -n "$ac_eof"; then
40913   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
40914   ac_eof=`expr $ac_eof + 1`
40915 fi
40916
40917 cat >>$CONFIG_STATUS <<_ACEOF
40918 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
40919 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
40920 _ACEOF
40921 sed '
40922 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
40923 s/^/s,@/; s/!/@,|#_!!_#|/
40924 :n
40925 t n
40926 s/'"$ac_delim"'$/,g/; t
40927 s/$/\\/; p
40928 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
40929 ' >>$CONFIG_STATUS <conf$$subs.sed
40930 rm -f conf$$subs.sed
40931 cat >>$CONFIG_STATUS <<_ACEOF
40932 CEOF$ac_eof
40933 _ACEOF
40934
40935
40936 ac_delim='%!_!# '
40937 for ac_last_try in false false false false false :; do
40938   cat >conf$$subs.sed <<_ACEOF
40939 GNULIB_STRTOLL!$GNULIB_STRTOLL$ac_delim
40940 GNULIB_STRTOULL!$GNULIB_STRTOULL$ac_delim
40941 GNULIB_UNSETENV!$GNULIB_UNSETENV$ac_delim
40942 HAVE_ATOLL!$HAVE_ATOLL$ac_delim
40943 HAVE_CALLOC_POSIX!$HAVE_CALLOC_POSIX$ac_delim
40944 HAVE_GETSUBOPT!$HAVE_GETSUBOPT$ac_delim
40945 HAVE_MKDTEMP!$HAVE_MKDTEMP$ac_delim
40946 HAVE_REALLOC_POSIX!$HAVE_REALLOC_POSIX$ac_delim
40947 HAVE_RANDOM_R!$HAVE_RANDOM_R$ac_delim
40948 HAVE_RPMATCH!$HAVE_RPMATCH$ac_delim
40949 HAVE_SETENV!$HAVE_SETENV$ac_delim
40950 HAVE_STRTOD!$HAVE_STRTOD$ac_delim
40951 HAVE_STRTOLL!$HAVE_STRTOLL$ac_delim
40952 HAVE_STRTOULL!$HAVE_STRTOULL$ac_delim
40953 HAVE_STRUCT_RANDOM_DATA!$HAVE_STRUCT_RANDOM_DATA$ac_delim
40954 HAVE_SYS_LOADAVG_H!$HAVE_SYS_LOADAVG_H$ac_delim
40955 HAVE_UNSETENV!$HAVE_UNSETENV$ac_delim
40956 HAVE_DECL_GETLOADAVG!$HAVE_DECL_GETLOADAVG$ac_delim
40957 REPLACE_MKSTEMP!$REPLACE_MKSTEMP$ac_delim
40958 REPLACE_PUTENV!$REPLACE_PUTENV$ac_delim
40959 REPLACE_STRTOD!$REPLACE_STRTOD$ac_delim
40960 VOID_UNSETENV!$VOID_UNSETENV$ac_delim
40961 GNULIB_MEMMEM!$GNULIB_MEMMEM$ac_delim
40962 GNULIB_MEMPCPY!$GNULIB_MEMPCPY$ac_delim
40963 GNULIB_MEMRCHR!$GNULIB_MEMRCHR$ac_delim
40964 GNULIB_RAWMEMCHR!$GNULIB_RAWMEMCHR$ac_delim
40965 GNULIB_STPCPY!$GNULIB_STPCPY$ac_delim
40966 GNULIB_STPNCPY!$GNULIB_STPNCPY$ac_delim
40967 GNULIB_STRCHRNUL!$GNULIB_STRCHRNUL$ac_delim
40968 GNULIB_STRDUP!$GNULIB_STRDUP$ac_delim
40969 GNULIB_STRNDUP!$GNULIB_STRNDUP$ac_delim
40970 GNULIB_STRNLEN!$GNULIB_STRNLEN$ac_delim
40971 GNULIB_STRPBRK!$GNULIB_STRPBRK$ac_delim
40972 GNULIB_STRSEP!$GNULIB_STRSEP$ac_delim
40973 GNULIB_STRSTR!$GNULIB_STRSTR$ac_delim
40974 GNULIB_STRCASESTR!$GNULIB_STRCASESTR$ac_delim
40975 GNULIB_STRTOK_R!$GNULIB_STRTOK_R$ac_delim
40976 GNULIB_MBSLEN!$GNULIB_MBSLEN$ac_delim
40977 GNULIB_MBSNLEN!$GNULIB_MBSNLEN$ac_delim
40978 GNULIB_MBSCHR!$GNULIB_MBSCHR$ac_delim
40979 GNULIB_MBSRCHR!$GNULIB_MBSRCHR$ac_delim
40980 GNULIB_MBSSTR!$GNULIB_MBSSTR$ac_delim
40981 GNULIB_MBSCASECMP!$GNULIB_MBSCASECMP$ac_delim
40982 GNULIB_MBSNCASECMP!$GNULIB_MBSNCASECMP$ac_delim
40983 GNULIB_MBSPCASECMP!$GNULIB_MBSPCASECMP$ac_delim
40984 GNULIB_MBSCASESTR!$GNULIB_MBSCASESTR$ac_delim
40985 GNULIB_MBSCSPN!$GNULIB_MBSCSPN$ac_delim
40986 GNULIB_MBSPBRK!$GNULIB_MBSPBRK$ac_delim
40987 GNULIB_MBSSPN!$GNULIB_MBSSPN$ac_delim
40988 GNULIB_MBSSEP!$GNULIB_MBSSEP$ac_delim
40989 GNULIB_MBSTOK_R!$GNULIB_MBSTOK_R$ac_delim
40990 GNULIB_STRERROR!$GNULIB_STRERROR$ac_delim
40991 GNULIB_STRSIGNAL!$GNULIB_STRSIGNAL$ac_delim
40992 GNULIB_STRVERSCMP!$GNULIB_STRVERSCMP$ac_delim
40993 HAVE_DECL_MEMMEM!$HAVE_DECL_MEMMEM$ac_delim
40994 HAVE_MEMPCPY!$HAVE_MEMPCPY$ac_delim
40995 HAVE_DECL_MEMRCHR!$HAVE_DECL_MEMRCHR$ac_delim
40996 HAVE_RAWMEMCHR!$HAVE_RAWMEMCHR$ac_delim
40997 HAVE_STPCPY!$HAVE_STPCPY$ac_delim
40998 HAVE_STPNCPY!$HAVE_STPNCPY$ac_delim
40999 HAVE_STRCHRNUL!$HAVE_STRCHRNUL$ac_delim
41000 HAVE_DECL_STRDUP!$HAVE_DECL_STRDUP$ac_delim
41001 HAVE_STRNDUP!$HAVE_STRNDUP$ac_delim
41002 HAVE_DECL_STRNDUP!$HAVE_DECL_STRNDUP$ac_delim
41003 HAVE_DECL_STRNLEN!$HAVE_DECL_STRNLEN$ac_delim
41004 HAVE_STRPBRK!$HAVE_STRPBRK$ac_delim
41005 HAVE_STRSEP!$HAVE_STRSEP$ac_delim
41006 HAVE_STRCASESTR!$HAVE_STRCASESTR$ac_delim
41007 HAVE_DECL_STRTOK_R!$HAVE_DECL_STRTOK_R$ac_delim
41008 HAVE_DECL_STRERROR!$HAVE_DECL_STRERROR$ac_delim
41009 HAVE_DECL_STRSIGNAL!$HAVE_DECL_STRSIGNAL$ac_delim
41010 HAVE_STRVERSCMP!$HAVE_STRVERSCMP$ac_delim
41011 REPLACE_MEMMEM!$REPLACE_MEMMEM$ac_delim
41012 REPLACE_STRDUP!$REPLACE_STRDUP$ac_delim
41013 REPLACE_STRSTR!$REPLACE_STRSTR$ac_delim
41014 REPLACE_STRCASESTR!$REPLACE_STRCASESTR$ac_delim
41015 REPLACE_STRERROR!$REPLACE_STRERROR$ac_delim
41016 REPLACE_STRSIGNAL!$REPLACE_STRSIGNAL$ac_delim
41017 STDARG_H!$STDARG_H$ac_delim
41018 NEXT_STDARG_H!$NEXT_STDARG_H$ac_delim
41019 NEXT_STDIO_H!$NEXT_STDIO_H$ac_delim
41020 NEXT_STDLIB_H!$NEXT_STDLIB_H$ac_delim
41021 HAVE_STRCASECMP!$HAVE_STRCASECMP$ac_delim
41022 HAVE_DECL_STRNCASECMP!$HAVE_DECL_STRNCASECMP$ac_delim
41023 NEXT_STRING_H!$NEXT_STRING_H$ac_delim
41024 NEXT_STRINGS_H!$NEXT_STRINGS_H$ac_delim
41025 HAVE_LSTAT!$HAVE_LSTAT$ac_delim
41026 NEXT_SYS_STAT_H!$NEXT_SYS_STAT_H$ac_delim
41027 SYS_STAT_H!$SYS_STAT_H$ac_delim
41028 NEXT_SYSEXITS_H!$NEXT_SYSEXITS_H$ac_delim
41029 HAVE_SYSEXITS_H!$HAVE_SYSEXITS_H$ac_delim
41030 SYSEXITS_H!$SYSEXITS_H$ac_delim
41031 REPLACE_LOCALTIME_R!$REPLACE_LOCALTIME_R$ac_delim
41032 REPLACE_NANOSLEEP!$REPLACE_NANOSLEEP$ac_delim
41033 REPLACE_STRPTIME!$REPLACE_STRPTIME$ac_delim
41034 REPLACE_TIMEGM!$REPLACE_TIMEGM$ac_delim
41035 NEXT_TIME_H!$NEXT_TIME_H$ac_delim
41036 _ACEOF
41037
41038   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
41039     break
41040   elif $ac_last_try; then
41041     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
41042 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
41043    { (exit 1); exit 1; }; }
41044   else
41045     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
41046   fi
41047 done
41048
41049 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
41050 if test -n "$ac_eof"; then
41051   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
41052   ac_eof=`expr $ac_eof + 1`
41053 fi
41054
41055 cat >>$CONFIG_STATUS <<_ACEOF
41056 cat >"\$tmp/subs-4.sed" <<\CEOF$ac_eof
41057 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
41058 _ACEOF
41059 sed '
41060 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
41061 s/^/s,@/; s/!/@,|#_!!_#|/
41062 :n
41063 t n
41064 s/'"$ac_delim"'$/,g/; t
41065 s/$/\\/; p
41066 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
41067 ' >>$CONFIG_STATUS <conf$$subs.sed
41068 rm -f conf$$subs.sed
41069 cat >>$CONFIG_STATUS <<_ACEOF
41070 CEOF$ac_eof
41071 _ACEOF
41072
41073
41074 ac_delim='%!_!# '
41075 for ac_last_try in false false false false false :; do
41076   cat >conf$$subs.sed <<_ACEOF
41077 TIME_H_DEFINES_STRUCT_TIMESPEC!$TIME_H_DEFINES_STRUCT_TIMESPEC$ac_delim
41078 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC!$SYS_TIME_H_DEFINES_STRUCT_TIMESPEC$ac_delim
41079 NEXT_UNISTD_H!$NEXT_UNISTD_H$ac_delim
41080 HAVE_UNISTD_H!$HAVE_UNISTD_H$ac_delim
41081 GNULIB_WCWIDTH!$GNULIB_WCWIDTH$ac_delim
41082 HAVE_DECL_WCWIDTH!$HAVE_DECL_WCWIDTH$ac_delim
41083 REPLACE_WCWIDTH!$REPLACE_WCWIDTH$ac_delim
41084 WCHAR_H!$WCHAR_H$ac_delim
41085 HAVE_WINT_T!$HAVE_WINT_T$ac_delim
41086 HAVE_WCHAR_H!$HAVE_WCHAR_H$ac_delim
41087 NEXT_WCHAR_H!$NEXT_WCHAR_H$ac_delim
41088 HAVE_ISWCNTRL!$HAVE_ISWCNTRL$ac_delim
41089 NEXT_WCTYPE_H!$NEXT_WCTYPE_H$ac_delim
41090 HAVE_WCTYPE_H!$HAVE_WCTYPE_H$ac_delim
41091 WCTYPE_H!$WCTYPE_H$ac_delim
41092 REPLACE_ISWCNTRL!$REPLACE_ISWCNTRL$ac_delim
41093 LIBTAR_LIBDEPS!$LIBTAR_LIBDEPS$ac_delim
41094 LIBTAR_LTLIBDEPS!$LIBTAR_LTLIBDEPS$ac_delim
41095 LIB_SETSOCKOPT!$LIB_SETSOCKOPT$ac_delim
41096 PU_RMT_PROG!$PU_RMT_PROG$ac_delim
41097 DEFAULT_RMT_DIR!$DEFAULT_RMT_DIR$ac_delim
41098 DEFAULT_RMT_COMMAND!$DEFAULT_RMT_COMMAND$ac_delim
41099 LIBOBJS!$LIBOBJS$ac_delim
41100 DEFAULT_ARCHIVE_FORMAT!$DEFAULT_ARCHIVE_FORMAT$ac_delim
41101 DEFAULT_ARCHIVE!$DEFAULT_ARCHIVE$ac_delim
41102 DEFAULT_BLOCKING!$DEFAULT_BLOCKING$ac_delim
41103 DEFAULT_QUOTING_STYLE!$DEFAULT_QUOTING_STYLE$ac_delim
41104 LIBICONV!$LIBICONV$ac_delim
41105 LTLIBICONV!$LTLIBICONV$ac_delim
41106 USE_NLS!$USE_NLS$ac_delim
41107 GETTEXT_MACRO_VERSION!$GETTEXT_MACRO_VERSION$ac_delim
41108 MSGFMT!$MSGFMT$ac_delim
41109 GMSGFMT!$GMSGFMT$ac_delim
41110 MSGFMT_015!$MSGFMT_015$ac_delim
41111 GMSGFMT_015!$GMSGFMT_015$ac_delim
41112 XGETTEXT!$XGETTEXT$ac_delim
41113 XGETTEXT_015!$XGETTEXT_015$ac_delim
41114 MSGMERGE!$MSGMERGE$ac_delim
41115 XGETTEXT_EXTRA_OPTIONS!$XGETTEXT_EXTRA_OPTIONS$ac_delim
41116 INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
41117 INTLLIBS!$INTLLIBS$ac_delim
41118 POSUB!$POSUB$ac_delim
41119 AUTOM4TE!$AUTOM4TE$ac_delim
41120 BACKUP_LIBEXEC_SCRIPTS!$BACKUP_LIBEXEC_SCRIPTS$ac_delim
41121 BACKUP_SBIN_SCRIPTS!$BACKUP_SBIN_SCRIPTS$ac_delim
41122 BACKUP_SED_COND!$BACKUP_SED_COND$ac_delim
41123 LTLIBOBJS!$LTLIBOBJS$ac_delim
41124 gl_LIBOBJS!$gl_LIBOBJS$ac_delim
41125 gl_LTLIBOBJS!$gl_LTLIBOBJS$ac_delim
41126 gltests_LIBOBJS!$gltests_LIBOBJS$ac_delim
41127 gltests_LTLIBOBJS!$gltests_LTLIBOBJS$ac_delim
41128 _ACEOF
41129
41130   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 51; then
41131     break
41132   elif $ac_last_try; then
41133     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
41134 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
41135    { (exit 1); exit 1; }; }
41136   else
41137     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
41138   fi
41139 done
41140
41141 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
41142 if test -n "$ac_eof"; then
41143   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
41144   ac_eof=`expr $ac_eof + 1`
41145 fi
41146
41147 cat >>$CONFIG_STATUS <<_ACEOF
41148 cat >"\$tmp/subs-5.sed" <<\CEOF$ac_eof
41149 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
41150 _ACEOF
41151 sed '
41152 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
41153 s/^/s,@/; s/!/@,|#_!!_#|/
41154 :n
41155 t n
41156 s/'"$ac_delim"'$/,g/; t
41157 s/$/\\/; p
41158 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
41159 ' >>$CONFIG_STATUS <conf$$subs.sed
41160 rm -f conf$$subs.sed
41161 cat >>$CONFIG_STATUS <<_ACEOF
41162 :end
41163 s/|#_!!_#|//g
41164 CEOF$ac_eof
41165 _ACEOF
41166
41167
41168 # VPATH may cause trouble with some makes, so we remove $(srcdir),
41169 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
41170 # trailing colons and then remove the whole line if VPATH becomes empty
41171 # (actually we leave an empty line to preserve line numbers).
41172 if test "x$srcdir" = x.; then
41173   ac_vpsub='/^[  ]*VPATH[        ]*=/{
41174 s/:*\$(srcdir):*/:/
41175 s/:*\${srcdir}:*/:/
41176 s/:*@srcdir@:*/:/
41177 s/^\([^=]*=[     ]*\):*/\1/
41178 s/:*$//
41179 s/^[^=]*=[       ]*$//
41180 }'
41181 fi
41182
41183 cat >>$CONFIG_STATUS <<\_ACEOF
41184 fi # test -n "$CONFIG_FILES"
41185
41186
41187 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
41188 do
41189   case $ac_tag in
41190   :[FHLC]) ac_mode=$ac_tag; continue;;
41191   esac
41192   case $ac_mode$ac_tag in
41193   :[FHL]*:*);;
41194   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
41195 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
41196    { (exit 1); exit 1; }; };;
41197   :[FH]-) ac_tag=-:-;;
41198   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
41199   esac
41200   ac_save_IFS=$IFS
41201   IFS=:
41202   set x $ac_tag
41203   IFS=$ac_save_IFS
41204   shift
41205   ac_file=$1
41206   shift
41207
41208   case $ac_mode in
41209   :L) ac_source=$1;;
41210   :[FH])
41211     ac_file_inputs=
41212     for ac_f
41213     do
41214       case $ac_f in
41215       -) ac_f="$tmp/stdin";;
41216       *) # Look for the file first in the build tree, then in the source tree
41217          # (if the path is not absolute).  The absolute path cannot be DOS-style,
41218          # because $ac_f cannot contain `:'.
41219          test -f "$ac_f" ||
41220            case $ac_f in
41221            [\\/$]*) false;;
41222            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
41223            esac ||
41224            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
41225 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
41226    { (exit 1); exit 1; }; };;
41227       esac
41228       ac_file_inputs="$ac_file_inputs $ac_f"
41229     done
41230
41231     # Let's still pretend it is `configure' which instantiates (i.e., don't
41232     # use $as_me), people would be surprised to read:
41233     #    /* config.h.  Generated by config.status.  */
41234     configure_input="Generated from "`IFS=:
41235           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
41236     if test x"$ac_file" != x-; then
41237       configure_input="$ac_file.  $configure_input"
41238       { echo "$as_me:$LINENO: creating $ac_file" >&5
41239 echo "$as_me: creating $ac_file" >&6;}
41240     fi
41241
41242     case $ac_tag in
41243     *:-:* | *:-) cat >"$tmp/stdin";;
41244     esac
41245     ;;
41246   esac
41247
41248   ac_dir=`$as_dirname -- "$ac_file" ||
41249 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41250          X"$ac_file" : 'X\(//\)[^/]' \| \
41251          X"$ac_file" : 'X\(//\)$' \| \
41252          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
41253 echo X"$ac_file" |
41254     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
41255             s//\1/
41256             q
41257           }
41258           /^X\(\/\/\)[^/].*/{
41259             s//\1/
41260             q
41261           }
41262           /^X\(\/\/\)$/{
41263             s//\1/
41264             q
41265           }
41266           /^X\(\/\).*/{
41267             s//\1/
41268             q
41269           }
41270           s/.*/./; q'`
41271   { as_dir="$ac_dir"
41272   case $as_dir in #(
41273   -*) as_dir=./$as_dir;;
41274   esac
41275   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
41276     as_dirs=
41277     while :; do
41278       case $as_dir in #(
41279       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
41280       *) as_qdir=$as_dir;;
41281       esac
41282       as_dirs="'$as_qdir' $as_dirs"
41283       as_dir=`$as_dirname -- "$as_dir" ||
41284 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41285          X"$as_dir" : 'X\(//\)[^/]' \| \
41286          X"$as_dir" : 'X\(//\)$' \| \
41287          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
41288 echo X"$as_dir" |
41289     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
41290             s//\1/
41291             q
41292           }
41293           /^X\(\/\/\)[^/].*/{
41294             s//\1/
41295             q
41296           }
41297           /^X\(\/\/\)$/{
41298             s//\1/
41299             q
41300           }
41301           /^X\(\/\).*/{
41302             s//\1/
41303             q
41304           }
41305           s/.*/./; q'`
41306       test -d "$as_dir" && break
41307     done
41308     test -z "$as_dirs" || eval "mkdir $as_dirs"
41309   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
41310 echo "$as_me: error: cannot create directory $as_dir" >&2;}
41311    { (exit 1); exit 1; }; }; }
41312   ac_builddir=.
41313
41314 case "$ac_dir" in
41315 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
41316 *)
41317   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
41318   # A ".." for each directory in $ac_dir_suffix.
41319   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
41320   case $ac_top_builddir_sub in
41321   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
41322   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
41323   esac ;;
41324 esac
41325 ac_abs_top_builddir=$ac_pwd
41326 ac_abs_builddir=$ac_pwd$ac_dir_suffix
41327 # for backward compatibility:
41328 ac_top_builddir=$ac_top_build_prefix
41329
41330 case $srcdir in
41331   .)  # We are building in place.
41332     ac_srcdir=.
41333     ac_top_srcdir=$ac_top_builddir_sub
41334     ac_abs_top_srcdir=$ac_pwd ;;
41335   [\\/]* | ?:[\\/]* )  # Absolute name.
41336     ac_srcdir=$srcdir$ac_dir_suffix;
41337     ac_top_srcdir=$srcdir
41338     ac_abs_top_srcdir=$srcdir ;;
41339   *) # Relative name.
41340     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
41341     ac_top_srcdir=$ac_top_build_prefix$srcdir
41342     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
41343 esac
41344 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
41345
41346
41347   case $ac_mode in
41348   :F)
41349   #
41350   # CONFIG_FILE
41351   #
41352
41353   case $INSTALL in
41354   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
41355   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
41356   esac
41357   ac_MKDIR_P=$MKDIR_P
41358   case $MKDIR_P in
41359   [\\/$]* | ?:[\\/]* ) ;;
41360   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
41361   esac
41362 _ACEOF
41363
41364 cat >>$CONFIG_STATUS <<\_ACEOF
41365 # If the template does not know about datarootdir, expand it.
41366 # FIXME: This hack should be removed a few years after 2.60.
41367 ac_datarootdir_hack=; ac_datarootdir_seen=
41368
41369 case `sed -n '/datarootdir/ {
41370   p
41371   q
41372 }
41373 /@datadir@/p
41374 /@docdir@/p
41375 /@infodir@/p
41376 /@localedir@/p
41377 /@mandir@/p
41378 ' $ac_file_inputs` in
41379 *datarootdir*) ac_datarootdir_seen=yes;;
41380 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
41381   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
41382 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
41383 _ACEOF
41384 cat >>$CONFIG_STATUS <<_ACEOF
41385   ac_datarootdir_hack='
41386   s&@datadir@&$datadir&g
41387   s&@docdir@&$docdir&g
41388   s&@infodir@&$infodir&g
41389   s&@localedir@&$localedir&g
41390   s&@mandir@&$mandir&g
41391     s&\\\${datarootdir}&$datarootdir&g' ;;
41392 esac
41393 _ACEOF
41394
41395 # Neutralize VPATH when `$srcdir' = `.'.
41396 # Shell code in configure.ac might set extrasub.
41397 # FIXME: do we really want to maintain this feature?
41398 cat >>$CONFIG_STATUS <<_ACEOF
41399   sed "$ac_vpsub
41400 $extrasub
41401 _ACEOF
41402 cat >>$CONFIG_STATUS <<\_ACEOF
41403 :t
41404 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
41405 s&@configure_input@&$configure_input&;t t
41406 s&@top_builddir@&$ac_top_builddir_sub&;t t
41407 s&@srcdir@&$ac_srcdir&;t t
41408 s&@abs_srcdir@&$ac_abs_srcdir&;t t
41409 s&@top_srcdir@&$ac_top_srcdir&;t t
41410 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
41411 s&@builddir@&$ac_builddir&;t t
41412 s&@abs_builddir@&$ac_abs_builddir&;t t
41413 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
41414 s&@INSTALL@&$ac_INSTALL&;t t
41415 s&@MKDIR_P@&$ac_MKDIR_P&;t t
41416 $ac_datarootdir_hack
41417 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" | sed -f "$tmp/subs-4.sed" | sed -f "$tmp/subs-5.sed" >$tmp/out
41418
41419 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
41420   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
41421   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
41422   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
41423 which seems to be undefined.  Please make sure it is defined." >&5
41424 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
41425 which seems to be undefined.  Please make sure it is defined." >&2;}
41426
41427   rm -f "$tmp/stdin"
41428   case $ac_file in
41429   -) cat "$tmp/out"; rm -f "$tmp/out";;
41430   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
41431   esac
41432  ;;
41433   :H)
41434   #
41435   # CONFIG_HEADER
41436   #
41437 _ACEOF
41438
41439 # Transform confdefs.h into a sed script `conftest.defines', that
41440 # substitutes the proper values into config.h.in to produce config.h.
41441 rm -f conftest.defines conftest.tail
41442 # First, append a space to every undef/define line, to ease matching.
41443 echo 's/$/ /' >conftest.defines
41444 # Then, protect against being on the right side of a sed subst, or in
41445 # an unquoted here document, in config.status.  If some macros were
41446 # called several times there might be several #defines for the same
41447 # symbol, which is useless.  But do not sort them, since the last
41448 # AC_DEFINE must be honored.
41449 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
41450 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
41451 # NAME is the cpp macro being defined, VALUE is the value it is being given.
41452 # PARAMS is the parameter list in the macro definition--in most cases, it's
41453 # just an empty string.
41454 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
41455 ac_dB='\\)[      (].*,\\1define\\2'
41456 ac_dC=' '
41457 ac_dD=' ,'
41458
41459 uniq confdefs.h |
41460   sed -n '
41461         t rset
41462         :rset
41463         s/^[     ]*#[    ]*define[       ][      ]*//
41464         t ok
41465         d
41466         :ok
41467         s/[\\&,]/\\&/g
41468         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
41469         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
41470   ' >>conftest.defines
41471
41472 # Remove the space that was appended to ease matching.
41473 # Then replace #undef with comments.  This is necessary, for
41474 # example, in the case of _POSIX_SOURCE, which is predefined and required
41475 # on some systems where configure will not decide to define it.
41476 # (The regexp can be short, since the line contains either #define or #undef.)
41477 echo 's/ $//
41478 s,^[     #]*u.*,/* & */,' >>conftest.defines
41479
41480 # Break up conftest.defines:
41481 ac_max_sed_lines=50
41482
41483 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
41484 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
41485 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
41486 # et cetera.
41487 ac_in='$ac_file_inputs'
41488 ac_out='"$tmp/out1"'
41489 ac_nxt='"$tmp/out2"'
41490
41491 while :
41492 do
41493   # Write a here document:
41494     cat >>$CONFIG_STATUS <<_ACEOF
41495     # First, check the format of the line:
41496     cat >"\$tmp/defines.sed" <<\\CEOF
41497 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
41498 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
41499 b
41500 :def
41501 _ACEOF
41502   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
41503   echo 'CEOF
41504     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
41505   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
41506   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
41507   grep . conftest.tail >/dev/null || break
41508   rm -f conftest.defines
41509   mv conftest.tail conftest.defines
41510 done
41511 rm -f conftest.defines conftest.tail
41512
41513 echo "ac_result=$ac_in" >>$CONFIG_STATUS
41514 cat >>$CONFIG_STATUS <<\_ACEOF
41515   if test x"$ac_file" != x-; then
41516     echo "/* $configure_input  */" >"$tmp/config.h"
41517     cat "$ac_result" >>"$tmp/config.h"
41518     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
41519       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
41520 echo "$as_me: $ac_file is unchanged" >&6;}
41521     else
41522       rm -f $ac_file
41523       mv "$tmp/config.h" $ac_file
41524     fi
41525   else
41526     echo "/* $configure_input  */"
41527     cat "$ac_result"
41528   fi
41529   rm -f "$tmp/out12"
41530 # Compute $ac_file's index in $config_headers.
41531 _am_arg=$ac_file
41532 _am_stamp_count=1
41533 for _am_header in $config_headers :; do
41534   case $_am_header in
41535     $_am_arg | $_am_arg:* )
41536       break ;;
41537     * )
41538       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
41539   esac
41540 done
41541 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
41542 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41543          X"$_am_arg" : 'X\(//\)[^/]' \| \
41544          X"$_am_arg" : 'X\(//\)$' \| \
41545          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
41546 echo X"$_am_arg" |
41547     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
41548             s//\1/
41549             q
41550           }
41551           /^X\(\/\/\)[^/].*/{
41552             s//\1/
41553             q
41554           }
41555           /^X\(\/\/\)$/{
41556             s//\1/
41557             q
41558           }
41559           /^X\(\/\).*/{
41560             s//\1/
41561             q
41562           }
41563           s/.*/./; q'`/stamp-h$_am_stamp_count
41564  ;;
41565
41566   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
41567 echo "$as_me: executing $ac_file commands" >&6;}
41568  ;;
41569   esac
41570
41571
41572   case $ac_file$ac_mode in
41573     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
41574   # Strip MF so we end up with the name of the file.
41575   mf=`echo "$mf" | sed -e 's/:.*$//'`
41576   # Check whether this is an Automake generated Makefile or not.
41577   # We used to match only the files named `Makefile.in', but
41578   # some people rename them; so instead we look at the file content.
41579   # Grep'ing the first line is not enough: some people post-process
41580   # each Makefile.in and add a new line on top of each file to say so.
41581   # Grep'ing the whole file is not good either: AIX grep has a line
41582   # limit of 2048, but all sed's we know have understand at least 4000.
41583   if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
41584     dirpart=`$as_dirname -- "$mf" ||
41585 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41586          X"$mf" : 'X\(//\)[^/]' \| \
41587          X"$mf" : 'X\(//\)$' \| \
41588          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
41589 echo X"$mf" |
41590     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
41591             s//\1/
41592             q
41593           }
41594           /^X\(\/\/\)[^/].*/{
41595             s//\1/
41596             q
41597           }
41598           /^X\(\/\/\)$/{
41599             s//\1/
41600             q
41601           }
41602           /^X\(\/\).*/{
41603             s//\1/
41604             q
41605           }
41606           s/.*/./; q'`
41607   else
41608     continue
41609   fi
41610   # Extract the definition of DEPDIR, am__include, and am__quote
41611   # from the Makefile without running `make'.
41612   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
41613   test -z "$DEPDIR" && continue
41614   am__include=`sed -n 's/^am__include = //p' < "$mf"`
41615   test -z "am__include" && continue
41616   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
41617   # When using ansi2knr, U may be empty or an underscore; expand it
41618   U=`sed -n 's/^U = //p' < "$mf"`
41619   # Find all dependency output files, they are included files with
41620   # $(DEPDIR) in their names.  We invoke sed twice because it is the
41621   # simplest approach to changing $(DEPDIR) to its actual value in the
41622   # expansion.
41623   for file in `sed -n "
41624     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
41625        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
41626     # Make sure the directory exists.
41627     test -f "$dirpart/$file" && continue
41628     fdir=`$as_dirname -- "$file" ||
41629 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41630          X"$file" : 'X\(//\)[^/]' \| \
41631          X"$file" : 'X\(//\)$' \| \
41632          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
41633 echo X"$file" |
41634     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
41635             s//\1/
41636             q
41637           }
41638           /^X\(\/\/\)[^/].*/{
41639             s//\1/
41640             q
41641           }
41642           /^X\(\/\/\)$/{
41643             s//\1/
41644             q
41645           }
41646           /^X\(\/\).*/{
41647             s//\1/
41648             q
41649           }
41650           s/.*/./; q'`
41651     { as_dir=$dirpart/$fdir
41652   case $as_dir in #(
41653   -*) as_dir=./$as_dir;;
41654   esac
41655   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
41656     as_dirs=
41657     while :; do
41658       case $as_dir in #(
41659       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
41660       *) as_qdir=$as_dir;;
41661       esac
41662       as_dirs="'$as_qdir' $as_dirs"
41663       as_dir=`$as_dirname -- "$as_dir" ||
41664 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41665          X"$as_dir" : 'X\(//\)[^/]' \| \
41666          X"$as_dir" : 'X\(//\)$' \| \
41667          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
41668 echo X"$as_dir" |
41669     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
41670             s//\1/
41671             q
41672           }
41673           /^X\(\/\/\)[^/].*/{
41674             s//\1/
41675             q
41676           }
41677           /^X\(\/\/\)$/{
41678             s//\1/
41679             q
41680           }
41681           /^X\(\/\).*/{
41682             s//\1/
41683             q
41684           }
41685           s/.*/./; q'`
41686       test -d "$as_dir" && break
41687     done
41688     test -z "$as_dirs" || eval "mkdir $as_dirs"
41689   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
41690 echo "$as_me: error: cannot create directory $as_dir" >&2;}
41691    { (exit 1); exit 1; }; }; }
41692     # echo "creating $dirpart/$file"
41693     echo '# dummy' > "$dirpart/$file"
41694   done
41695 done
41696  ;;
41697     "po-directories":C)
41698     for ac_file in $CONFIG_FILES; do
41699       # Support "outfile[:infile[:infile...]]"
41700       case "$ac_file" in
41701         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
41702       esac
41703       # PO directories have a Makefile.in generated from Makefile.in.in.
41704       case "$ac_file" in */Makefile.in)
41705         # Adjust a relative srcdir.
41706         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
41707         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
41708         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
41709         # In autoconf-2.13 it is called $ac_given_srcdir.
41710         # In autoconf-2.50 it is called $srcdir.
41711         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
41712         case "$ac_given_srcdir" in
41713           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
41714           /*) top_srcdir="$ac_given_srcdir" ;;
41715           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
41716         esac
41717         # Treat a directory as a PO directory if and only if it has a
41718         # POTFILES.in file. This allows packages to have multiple PO
41719         # directories under different names or in different locations.
41720         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
41721           rm -f "$ac_dir/POTFILES"
41722           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
41723           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
41724           POMAKEFILEDEPS="POTFILES.in"
41725           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
41726           # on $ac_dir but don't depend on user-specified configuration
41727           # parameters.
41728           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
41729             # The LINGUAS file contains the set of available languages.
41730             if test -n "$OBSOLETE_ALL_LINGUAS"; then
41731               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
41732             fi
41733             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
41734             # Hide the ALL_LINGUAS assigment from automake < 1.5.
41735             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
41736             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
41737           else
41738             # The set of available languages was given in configure.in.
41739             # Hide the ALL_LINGUAS assigment from automake < 1.5.
41740             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
41741           fi
41742           # Compute POFILES
41743           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
41744           # Compute UPDATEPOFILES
41745           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
41746           # Compute DUMMYPOFILES
41747           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
41748           # Compute GMOFILES
41749           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
41750           case "$ac_given_srcdir" in
41751             .) srcdirpre= ;;
41752             *) srcdirpre='$(srcdir)/' ;;
41753           esac
41754           POFILES=
41755           UPDATEPOFILES=
41756           DUMMYPOFILES=
41757           GMOFILES=
41758           for lang in $ALL_LINGUAS; do
41759             POFILES="$POFILES $srcdirpre$lang.po"
41760             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
41761             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
41762             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
41763           done
41764           # CATALOGS depends on both $ac_dir and the user's LINGUAS
41765           # environment variable.
41766           INST_LINGUAS=
41767           if test -n "$ALL_LINGUAS"; then
41768             for presentlang in $ALL_LINGUAS; do
41769               useit=no
41770               if test "%UNSET%" != "$LINGUAS"; then
41771                 desiredlanguages="$LINGUAS"
41772               else
41773                 desiredlanguages="$ALL_LINGUAS"
41774               fi
41775               for desiredlang in $desiredlanguages; do
41776                 # Use the presentlang catalog if desiredlang is
41777                 #   a. equal to presentlang, or
41778                 #   b. a variant of presentlang (because in this case,
41779                 #      presentlang can be used as a fallback for messages
41780                 #      which are not translated in the desiredlang catalog).
41781                 case "$desiredlang" in
41782                   "$presentlang"*) useit=yes;;
41783                 esac
41784               done
41785               if test $useit = yes; then
41786                 INST_LINGUAS="$INST_LINGUAS $presentlang"
41787               fi
41788             done
41789           fi
41790           CATALOGS=
41791           if test -n "$INST_LINGUAS"; then
41792             for lang in $INST_LINGUAS; do
41793               CATALOGS="$CATALOGS $lang.gmo"
41794             done
41795           fi
41796           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
41797           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"
41798           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
41799             if test -f "$f"; then
41800               case "$f" in
41801                 *.orig | *.bak | *~) ;;
41802                 *) cat "$f" >> "$ac_dir/Makefile" ;;
41803               esac
41804             fi
41805           done
41806         fi
41807         ;;
41808       esac
41809     done ;;
41810     "tests/atconfig":C) cat >tests/atconfig <<ATEOF
41811 # Configurable variable values for building test suites.
41812 # Generated by $0.
41813 # Copyright (C) 2000, 2001, 2003, 2004 Free Software Foundation, Inc.
41814
41815 # The test suite will define top_srcdir=$at_top_srcdir/../.. etc.
41816 at_testdir='tests'
41817 abs_builddir='$ac_abs_builddir'
41818 at_srcdir='$ac_srcdir'
41819 abs_srcdir='$ac_abs_srcdir'
41820 at_top_srcdir='$ac_top_srcdir'
41821 abs_top_srcdir='$ac_abs_top_srcdir'
41822 at_top_build_prefix='$ac_top_build_prefix'
41823 abs_top_builddir='$ac_abs_top_builddir'
41824
41825 # Backward compatibility with Autotest <= 2.59b:
41826 at_top_builddir=\$at_top_build_prefix
41827
41828 AUTOTEST_PATH='tests'
41829
41830 SHELL=\${CONFIG_SHELL-'$SHELL'}
41831 ATEOF
41832  ;;
41833
41834   esac
41835 done # for ac_tag
41836
41837
41838 { (exit 0); exit 0; }
41839 _ACEOF
41840 chmod +x $CONFIG_STATUS
41841 ac_clean_files=$ac_clean_files_save
41842
41843
41844 # configure is writing to config.log, and then calls config.status.
41845 # config.status does its own redirection, appending to config.log.
41846 # Unfortunately, on DOS this fails, as config.log is still kept open
41847 # by configure, so config.status won't be able to write to it; its
41848 # output is simply discarded.  So we exec the FD to /dev/null,
41849 # effectively closing config.log, so it can be properly (re)opened and
41850 # appended to by config.status.  When coming back to configure, we
41851 # need to make the FD available again.
41852 if test "$no_create" != yes; then
41853   ac_cs_success=:
41854   ac_config_status_args=
41855   test "$silent" = yes &&
41856     ac_config_status_args="$ac_config_status_args --quiet"
41857   exec 5>/dev/null
41858   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
41859   exec 5>>config.log
41860   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
41861   # would make configure fail if this is the last instruction.
41862   $ac_cs_success || { (exit 1); exit 1; }
41863 fi
41864