]> git.cworth.org Git - tar/blob - configure
Preserve timestamp of symlinks when extracting (if utimensat available)
[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.22.
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.22'
578 PACKAGE_STRING='GNU tar 1.22'
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 build
700 build_cpu
701 build_vendor
702 build_os
703 host
704 host_cpu
705 host_vendor
706 host_os
707 CPP
708 GREP
709 EGREP
710 STDBOOL_H
711 HAVE__BOOL
712 GL_COND_LIBTOOL_TRUE
713 GL_COND_LIBTOOL_FALSE
714 ALLOCA
715 ALLOCA_H
716 GETOPT_H
717 GNULIB_BTOWC
718 GNULIB_WCTOB
719 GNULIB_MBSINIT
720 GNULIB_MBRTOWC
721 GNULIB_MBRLEN
722 GNULIB_MBSRTOWCS
723 GNULIB_MBSNRTOWCS
724 GNULIB_WCRTOMB
725 GNULIB_WCSRTOMBS
726 GNULIB_WCSNRTOMBS
727 GNULIB_WCWIDTH
728 HAVE_BTOWC
729 HAVE_MBSINIT
730 HAVE_MBRTOWC
731 HAVE_MBRLEN
732 HAVE_MBSRTOWCS
733 HAVE_MBSNRTOWCS
734 HAVE_WCRTOMB
735 HAVE_WCSRTOMBS
736 HAVE_WCSNRTOMBS
737 HAVE_DECL_WCTOB
738 HAVE_DECL_WCWIDTH
739 REPLACE_MBSTATE_T
740 REPLACE_BTOWC
741 REPLACE_WCTOB
742 REPLACE_MBSINIT
743 REPLACE_MBRTOWC
744 REPLACE_MBRLEN
745 REPLACE_MBSRTOWCS
746 REPLACE_MBSNRTOWCS
747 REPLACE_WCRTOMB
748 REPLACE_WCSRTOMBS
749 REPLACE_WCWIDTH
750 WCHAR_H
751 LOCALE_FR
752 GNULIB_CHOWN
753 GNULIB_CLOSE
754 GNULIB_DUP2
755 GNULIB_ENVIRON
756 GNULIB_EUIDACCESS
757 GNULIB_FCHDIR
758 GNULIB_FSYNC
759 GNULIB_FTRUNCATE
760 GNULIB_GETCWD
761 GNULIB_GETDOMAINNAME
762 GNULIB_GETDTABLESIZE
763 GNULIB_GETHOSTNAME
764 GNULIB_GETLOGIN_R
765 GNULIB_GETPAGESIZE
766 GNULIB_GETUSERSHELL
767 GNULIB_LCHOWN
768 GNULIB_LINK
769 GNULIB_LSEEK
770 GNULIB_READLINK
771 GNULIB_SLEEP
772 GNULIB_UNISTD_H_SIGPIPE
773 GNULIB_WRITE
774 HAVE_DUP2
775 HAVE_EUIDACCESS
776 HAVE_FSYNC
777 HAVE_FTRUNCATE
778 HAVE_GETDOMAINNAME
779 HAVE_GETDTABLESIZE
780 HAVE_GETHOSTNAME
781 HAVE_GETPAGESIZE
782 HAVE_GETUSERSHELL
783 HAVE_LINK
784 HAVE_READLINK
785 HAVE_SLEEP
786 HAVE_DECL_ENVIRON
787 HAVE_DECL_GETLOGIN_R
788 HAVE_OS_H
789 HAVE_SYS_PARAM_H
790 REPLACE_CHOWN
791 REPLACE_CLOSE
792 REPLACE_FCHDIR
793 REPLACE_GETCWD
794 REPLACE_GETPAGESIZE
795 REPLACE_LCHOWN
796 REPLACE_LSEEK
797 REPLACE_WRITE
798 UNISTD_H_HAVE_WINSOCK2_H
799 LIB_CLOCK_GETTIME
800 GNULIB_DIRFD
801 GNULIB_SCANDIR
802 GNULIB_ALPHASORT
803 HAVE_DECL_DIRFD
804 HAVE_SCANDIR
805 HAVE_ALPHASORT
806 DIRENT_H
807 INCLUDE_NEXT
808 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
809 PRAGMA_SYSTEM_HEADER
810 NEXT_DIRENT_H
811 NEXT_ERRNO_H
812 ERRNO_H
813 EMULTIHOP_HIDDEN
814 EMULTIHOP_VALUE
815 ENOLINK_HIDDEN
816 ENOLINK_VALUE
817 EOVERFLOW_HIDDEN
818 EOVERFLOW_VALUE
819 GNULIB_OPEN
820 REPLACE_OPEN
821 GNULIB_FPRINTF
822 GNULIB_FPRINTF_POSIX
823 GNULIB_PRINTF
824 GNULIB_PRINTF_POSIX
825 GNULIB_SNPRINTF
826 GNULIB_SPRINTF_POSIX
827 GNULIB_VFPRINTF
828 GNULIB_VFPRINTF_POSIX
829 GNULIB_VPRINTF
830 GNULIB_VPRINTF_POSIX
831 GNULIB_VSNPRINTF
832 GNULIB_VSPRINTF_POSIX
833 GNULIB_DPRINTF
834 GNULIB_VDPRINTF
835 GNULIB_VASPRINTF
836 GNULIB_OBSTACK_PRINTF
837 GNULIB_OBSTACK_PRINTF_POSIX
838 GNULIB_FOPEN
839 GNULIB_FREOPEN
840 GNULIB_FSEEK
841 GNULIB_FSEEKO
842 GNULIB_FTELL
843 GNULIB_FTELLO
844 GNULIB_FFLUSH
845 GNULIB_FCLOSE
846 GNULIB_FPUTC
847 GNULIB_PUTC
848 GNULIB_PUTCHAR
849 GNULIB_FPUTS
850 GNULIB_PUTS
851 GNULIB_FWRITE
852 GNULIB_GETDELIM
853 GNULIB_GETLINE
854 GNULIB_PERROR
855 GNULIB_STDIO_H_SIGPIPE
856 REPLACE_STDIO_WRITE_FUNCS
857 REPLACE_FPRINTF
858 REPLACE_VFPRINTF
859 REPLACE_PRINTF
860 REPLACE_VPRINTF
861 REPLACE_SNPRINTF
862 HAVE_DECL_SNPRINTF
863 REPLACE_VSNPRINTF
864 HAVE_DECL_VSNPRINTF
865 REPLACE_SPRINTF
866 REPLACE_VSPRINTF
867 HAVE_DPRINTF
868 REPLACE_DPRINTF
869 HAVE_VDPRINTF
870 REPLACE_VDPRINTF
871 HAVE_VASPRINTF
872 REPLACE_VASPRINTF
873 HAVE_DECL_OBSTACK_PRINTF
874 REPLACE_OBSTACK_PRINTF
875 REPLACE_FOPEN
876 REPLACE_FREOPEN
877 HAVE_FSEEKO
878 REPLACE_FSEEKO
879 REPLACE_FSEEK
880 HAVE_FTELLO
881 REPLACE_FTELLO
882 REPLACE_FTELL
883 REPLACE_FFLUSH
884 REPLACE_FCLOSE
885 HAVE_DECL_GETDELIM
886 HAVE_DECL_GETLINE
887 REPLACE_GETLINE
888 REPLACE_PERROR
889 LIB_CLOSE
890 NEXT_FCNTL_H
891 FCNTL_H
892 NEXT_FLOAT_H
893 FLOAT_H
894 FNMATCH_H
895 LIBINTL
896 LTLIBINTL
897 NEXT_SYS_TIME_H
898 HAVE_SYS_TIME_H
899 HAVE_STRUCT_TIMEVAL
900 REPLACE_GETTIMEOFDAY
901 SYS_TIME_H
902 HAVE_LONG_LONG_INT
903 HAVE_UNSIGNED_LONG_LONG_INT
904 HAVE_INTTYPES_H
905 HAVE_SYS_TYPES_H
906 NEXT_STDINT_H
907 HAVE_STDINT_H
908 HAVE_SYS_INTTYPES_H
909 HAVE_SYS_BITYPES_H
910 APPLE_UNIVERSAL_BUILD
911 BITSIZEOF_PTRDIFF_T
912 BITSIZEOF_SIZE_T
913 BITSIZEOF_SIG_ATOMIC_T
914 BITSIZEOF_WCHAR_T
915 BITSIZEOF_WINT_T
916 HAVE_SIGNED_SIG_ATOMIC_T
917 HAVE_SIGNED_WCHAR_T
918 HAVE_SIGNED_WINT_T
919 PTRDIFF_T_SUFFIX
920 SIZE_T_SUFFIX
921 SIG_ATOMIC_T_SUFFIX
922 WCHAR_T_SUFFIX
923 WINT_T_SUFFIX
924 STDINT_H
925 PRI_MACROS_BROKEN
926 GNULIB_IMAXABS
927 GNULIB_IMAXDIV
928 GNULIB_STRTOIMAX
929 GNULIB_STRTOUMAX
930 HAVE_DECL_IMAXABS
931 HAVE_DECL_IMAXDIV
932 HAVE_DECL_STRTOIMAX
933 HAVE_DECL_STRTOUMAX
934 NEXT_INTTYPES_H
935 PRIPTR_PREFIX
936 INT32_MAX_LT_INTMAX_MAX
937 INT64_MAX_EQ_LONG_MAX
938 UINT32_MAX_LT_UINTMAX_MAX
939 UINT64_MAX_EQ_ULONG_MAX
940 INTTYPES_H
941 GLIBC21
942 LOCALCHARSET_TESTS_ENVIRONMENT
943 GNULIB_LCHMOD
944 GNULIB_LSTAT
945 HAVE_LCHMOD
946 REPLACE_LSTAT
947 REPLACE_MKDIR
948 HAVE_MALLOC_POSIX
949 GNULIB_MALLOC_POSIX
950 GNULIB_REALLOC_POSIX
951 GNULIB_CALLOC_POSIX
952 GNULIB_ATOLL
953 GNULIB_GETLOADAVG
954 GNULIB_GETSUBOPT
955 GNULIB_MKDTEMP
956 GNULIB_MKSTEMP
957 GNULIB_PUTENV
958 GNULIB_RANDOM_R
959 GNULIB_RPMATCH
960 GNULIB_SETENV
961 GNULIB_STRTOD
962 GNULIB_STRTOLL
963 GNULIB_STRTOULL
964 GNULIB_UNSETENV
965 HAVE_ATOLL
966 HAVE_CALLOC_POSIX
967 HAVE_GETSUBOPT
968 HAVE_MKDTEMP
969 HAVE_REALLOC_POSIX
970 HAVE_RANDOM_R
971 HAVE_RPMATCH
972 HAVE_SETENV
973 HAVE_STRTOD
974 HAVE_STRTOLL
975 HAVE_STRTOULL
976 HAVE_STRUCT_RANDOM_DATA
977 HAVE_SYS_LOADAVG_H
978 HAVE_UNSETENV
979 HAVE_DECL_GETLOADAVG
980 REPLACE_MKSTEMP
981 REPLACE_PUTENV
982 REPLACE_STRTOD
983 VOID_UNSETENV
984 LOCALE_JA
985 LOCALE_FR_UTF8
986 LOCALE_ZH_CN
987 GNULIB_MEMMEM
988 GNULIB_MEMPCPY
989 GNULIB_MEMRCHR
990 GNULIB_RAWMEMCHR
991 GNULIB_STPCPY
992 GNULIB_STPNCPY
993 GNULIB_STRCHRNUL
994 GNULIB_STRDUP
995 GNULIB_STRNDUP
996 GNULIB_STRNLEN
997 GNULIB_STRPBRK
998 GNULIB_STRSEP
999 GNULIB_STRSTR
1000 GNULIB_STRCASESTR
1001 GNULIB_STRTOK_R
1002 GNULIB_MBSLEN
1003 GNULIB_MBSNLEN
1004 GNULIB_MBSCHR
1005 GNULIB_MBSRCHR
1006 GNULIB_MBSSTR
1007 GNULIB_MBSCASECMP
1008 GNULIB_MBSNCASECMP
1009 GNULIB_MBSPCASECMP
1010 GNULIB_MBSCASESTR
1011 GNULIB_MBSCSPN
1012 GNULIB_MBSPBRK
1013 GNULIB_MBSSPN
1014 GNULIB_MBSSEP
1015 GNULIB_MBSTOK_R
1016 GNULIB_STRERROR
1017 GNULIB_STRSIGNAL
1018 GNULIB_STRVERSCMP
1019 HAVE_DECL_MEMMEM
1020 HAVE_MEMPCPY
1021 HAVE_DECL_MEMRCHR
1022 HAVE_RAWMEMCHR
1023 HAVE_STPCPY
1024 HAVE_STPNCPY
1025 HAVE_STRCHRNUL
1026 HAVE_DECL_STRDUP
1027 HAVE_STRNDUP
1028 HAVE_DECL_STRNDUP
1029 HAVE_DECL_STRNLEN
1030 HAVE_STRPBRK
1031 HAVE_STRSEP
1032 HAVE_STRCASESTR
1033 HAVE_DECL_STRTOK_R
1034 HAVE_DECL_STRERROR
1035 HAVE_DECL_STRSIGNAL
1036 HAVE_STRVERSCMP
1037 REPLACE_MEMMEM
1038 REPLACE_STRDUP
1039 REPLACE_STRSTR
1040 REPLACE_STRCASESTR
1041 REPLACE_STRERROR
1042 REPLACE_STRSIGNAL
1043 STDARG_H
1044 NEXT_STDARG_H
1045 NEXT_STDIO_H
1046 NEXT_STDLIB_H
1047 HAVE_RANDOM_H
1048 HAVE_STRCASECMP
1049 HAVE_DECL_STRNCASECMP
1050 NEXT_STRING_H
1051 NEXT_STRINGS_H
1052 HAVE_LSTAT
1053 NEXT_SYS_STAT_H
1054 SYS_STAT_H
1055 NEXT_SYSEXITS_H
1056 HAVE_SYSEXITS_H
1057 SYSEXITS_H
1058 REPLACE_LOCALTIME_R
1059 REPLACE_NANOSLEEP
1060 REPLACE_STRPTIME
1061 REPLACE_TIMEGM
1062 NEXT_TIME_H
1063 TIME_H_DEFINES_STRUCT_TIMESPEC
1064 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
1065 NEXT_UNISTD_H
1066 HAVE_UNISTD_H
1067 HAVE_WINT_T
1068 HAVE_WCHAR_H
1069 NEXT_WCHAR_H
1070 HAVE_ISWCNTRL
1071 NEXT_WCTYPE_H
1072 HAVE_WCTYPE_H
1073 WCTYPE_H
1074 REPLACE_ISWCNTRL
1075 LIBTAR_LIBDEPS
1076 LIBTAR_LTLIBDEPS
1077 LIB_SETSOCKOPT
1078 PU_RMT_PROG
1079 DEFAULT_RMT_DIR
1080 DEFAULT_RMT_COMMAND
1081 LIBOBJS
1082 DEFAULT_ARCHIVE_FORMAT
1083 DEFAULT_ARCHIVE
1084 DEFAULT_BLOCKING
1085 DEFAULT_QUOTING_STYLE
1086 LIBICONV
1087 LTLIBICONV
1088 USE_NLS
1089 GETTEXT_MACRO_VERSION
1090 MSGFMT
1091 GMSGFMT
1092 MSGFMT_015
1093 GMSGFMT_015
1094 XGETTEXT
1095 XGETTEXT_015
1096 MSGMERGE
1097 XGETTEXT_EXTRA_OPTIONS
1098 INTL_MACOSX_LIBS
1099 INTLLIBS
1100 POSUB
1101 AUTOM4TE
1102 BACKUP_LIBEXEC_SCRIPTS
1103 BACKUP_SBIN_SCRIPTS
1104 BACKUP_SED_COND
1105 LTLIBOBJS
1106 gl_LIBOBJS
1107 gl_LTLIBOBJS
1108 gltests_LIBOBJS
1109 gltests_LTLIBOBJS'
1110 ac_subst_files=''
1111       ac_precious_vars='build_alias
1112 host_alias
1113 target_alias
1114 CC
1115 CFLAGS
1116 LDFLAGS
1117 LIBS
1118 CPPFLAGS
1119 YACC
1120 YFLAGS
1121 CPP
1122 DEFAULT_RMT_DIR
1123 DEFAULT_ARCHIVE_FORMAT
1124 DEFAULT_ARCHIVE
1125 DEFAULT_BLOCKING
1126 DEFAULT_QUOTING_STYLE'
1127
1128
1129 # Initialize some variables set by options.
1130 ac_init_help=
1131 ac_init_version=false
1132 # The variables have the same names as the options, with
1133 # dashes changed to underlines.
1134 cache_file=/dev/null
1135 exec_prefix=NONE
1136 no_create=
1137 no_recursion=
1138 prefix=NONE
1139 program_prefix=NONE
1140 program_suffix=NONE
1141 program_transform_name=s,x,x,
1142 silent=
1143 site=
1144 srcdir=
1145 verbose=
1146 x_includes=NONE
1147 x_libraries=NONE
1148
1149 # Installation directory options.
1150 # These are left unexpanded so users can "make install exec_prefix=/foo"
1151 # and all the variables that are supposed to be based on exec_prefix
1152 # by default will actually change.
1153 # Use braces instead of parens because sh, perl, etc. also accept them.
1154 # (The list follows the same order as the GNU Coding Standards.)
1155 bindir='${exec_prefix}/bin'
1156 sbindir='${exec_prefix}/sbin'
1157 libexecdir='${exec_prefix}/libexec'
1158 datarootdir='${prefix}/share'
1159 datadir='${datarootdir}'
1160 sysconfdir='${prefix}/etc'
1161 sharedstatedir='${prefix}/com'
1162 localstatedir='${prefix}/var'
1163 includedir='${prefix}/include'
1164 oldincludedir='/usr/include'
1165 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1166 infodir='${datarootdir}/info'
1167 htmldir='${docdir}'
1168 dvidir='${docdir}'
1169 pdfdir='${docdir}'
1170 psdir='${docdir}'
1171 libdir='${exec_prefix}/lib'
1172 localedir='${datarootdir}/locale'
1173 mandir='${datarootdir}/man'
1174
1175 ac_prev=
1176 ac_dashdash=
1177 for ac_option
1178 do
1179   # If the previous option needs an argument, assign it.
1180   if test -n "$ac_prev"; then
1181     eval $ac_prev=\$ac_option
1182     ac_prev=
1183     continue
1184   fi
1185
1186   case $ac_option in
1187   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1188   *)    ac_optarg=yes ;;
1189   esac
1190
1191   # Accept the important Cygnus configure options, so we can diagnose typos.
1192
1193   case $ac_dashdash$ac_option in
1194   --)
1195     ac_dashdash=yes ;;
1196
1197   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1198     ac_prev=bindir ;;
1199   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1200     bindir=$ac_optarg ;;
1201
1202   -build | --build | --buil | --bui | --bu)
1203     ac_prev=build_alias ;;
1204   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1205     build_alias=$ac_optarg ;;
1206
1207   -cache-file | --cache-file | --cache-fil | --cache-fi \
1208   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1209     ac_prev=cache_file ;;
1210   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1211   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1212     cache_file=$ac_optarg ;;
1213
1214   --config-cache | -C)
1215     cache_file=config.cache ;;
1216
1217   -datadir | --datadir | --datadi | --datad)
1218     ac_prev=datadir ;;
1219   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1220     datadir=$ac_optarg ;;
1221
1222   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1223   | --dataroo | --dataro | --datar)
1224     ac_prev=datarootdir ;;
1225   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1226   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1227     datarootdir=$ac_optarg ;;
1228
1229   -disable-* | --disable-*)
1230     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1231     # Reject names that are not valid shell variable names.
1232     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1233       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1234    { (exit 1); exit 1; }; }
1235     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1236     eval enable_$ac_feature=no ;;
1237
1238   -docdir | --docdir | --docdi | --doc | --do)
1239     ac_prev=docdir ;;
1240   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1241     docdir=$ac_optarg ;;
1242
1243   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1244     ac_prev=dvidir ;;
1245   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1246     dvidir=$ac_optarg ;;
1247
1248   -enable-* | --enable-*)
1249     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1250     # Reject names that are not valid shell variable names.
1251     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1252       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1253    { (exit 1); exit 1; }; }
1254     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1255     eval enable_$ac_feature=\$ac_optarg ;;
1256
1257   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1258   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1259   | --exec | --exe | --ex)
1260     ac_prev=exec_prefix ;;
1261   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1262   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1263   | --exec=* | --exe=* | --ex=*)
1264     exec_prefix=$ac_optarg ;;
1265
1266   -gas | --gas | --ga | --g)
1267     # Obsolete; use --with-gas.
1268     with_gas=yes ;;
1269
1270   -help | --help | --hel | --he | -h)
1271     ac_init_help=long ;;
1272   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1273     ac_init_help=recursive ;;
1274   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1275     ac_init_help=short ;;
1276
1277   -host | --host | --hos | --ho)
1278     ac_prev=host_alias ;;
1279   -host=* | --host=* | --hos=* | --ho=*)
1280     host_alias=$ac_optarg ;;
1281
1282   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1283     ac_prev=htmldir ;;
1284   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1285   | --ht=*)
1286     htmldir=$ac_optarg ;;
1287
1288   -includedir | --includedir | --includedi | --included | --include \
1289   | --includ | --inclu | --incl | --inc)
1290     ac_prev=includedir ;;
1291   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1292   | --includ=* | --inclu=* | --incl=* | --inc=*)
1293     includedir=$ac_optarg ;;
1294
1295   -infodir | --infodir | --infodi | --infod | --info | --inf)
1296     ac_prev=infodir ;;
1297   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1298     infodir=$ac_optarg ;;
1299
1300   -libdir | --libdir | --libdi | --libd)
1301     ac_prev=libdir ;;
1302   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1303     libdir=$ac_optarg ;;
1304
1305   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1306   | --libexe | --libex | --libe)
1307     ac_prev=libexecdir ;;
1308   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1309   | --libexe=* | --libex=* | --libe=*)
1310     libexecdir=$ac_optarg ;;
1311
1312   -localedir | --localedir | --localedi | --localed | --locale)
1313     ac_prev=localedir ;;
1314   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1315     localedir=$ac_optarg ;;
1316
1317   -localstatedir | --localstatedir | --localstatedi | --localstated \
1318   | --localstate | --localstat | --localsta | --localst | --locals)
1319     ac_prev=localstatedir ;;
1320   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1321   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1322     localstatedir=$ac_optarg ;;
1323
1324   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1325     ac_prev=mandir ;;
1326   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1327     mandir=$ac_optarg ;;
1328
1329   -nfp | --nfp | --nf)
1330     # Obsolete; use --without-fp.
1331     with_fp=no ;;
1332
1333   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1334   | --no-cr | --no-c | -n)
1335     no_create=yes ;;
1336
1337   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1338   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1339     no_recursion=yes ;;
1340
1341   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1342   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1343   | --oldin | --oldi | --old | --ol | --o)
1344     ac_prev=oldincludedir ;;
1345   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1346   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1347   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1348     oldincludedir=$ac_optarg ;;
1349
1350   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1351     ac_prev=prefix ;;
1352   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1353     prefix=$ac_optarg ;;
1354
1355   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1356   | --program-pre | --program-pr | --program-p)
1357     ac_prev=program_prefix ;;
1358   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1359   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1360     program_prefix=$ac_optarg ;;
1361
1362   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1363   | --program-suf | --program-su | --program-s)
1364     ac_prev=program_suffix ;;
1365   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1366   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1367     program_suffix=$ac_optarg ;;
1368
1369   -program-transform-name | --program-transform-name \
1370   | --program-transform-nam | --program-transform-na \
1371   | --program-transform-n | --program-transform- \
1372   | --program-transform | --program-transfor \
1373   | --program-transfo | --program-transf \
1374   | --program-trans | --program-tran \
1375   | --progr-tra | --program-tr | --program-t)
1376     ac_prev=program_transform_name ;;
1377   -program-transform-name=* | --program-transform-name=* \
1378   | --program-transform-nam=* | --program-transform-na=* \
1379   | --program-transform-n=* | --program-transform-=* \
1380   | --program-transform=* | --program-transfor=* \
1381   | --program-transfo=* | --program-transf=* \
1382   | --program-trans=* | --program-tran=* \
1383   | --progr-tra=* | --program-tr=* | --program-t=*)
1384     program_transform_name=$ac_optarg ;;
1385
1386   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1387     ac_prev=pdfdir ;;
1388   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1389     pdfdir=$ac_optarg ;;
1390
1391   -psdir | --psdir | --psdi | --psd | --ps)
1392     ac_prev=psdir ;;
1393   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1394     psdir=$ac_optarg ;;
1395
1396   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1397   | -silent | --silent | --silen | --sile | --sil)
1398     silent=yes ;;
1399
1400   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1401     ac_prev=sbindir ;;
1402   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1403   | --sbi=* | --sb=*)
1404     sbindir=$ac_optarg ;;
1405
1406   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1407   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1408   | --sharedst | --shareds | --shared | --share | --shar \
1409   | --sha | --sh)
1410     ac_prev=sharedstatedir ;;
1411   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1412   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1413   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1414   | --sha=* | --sh=*)
1415     sharedstatedir=$ac_optarg ;;
1416
1417   -site | --site | --sit)
1418     ac_prev=site ;;
1419   -site=* | --site=* | --sit=*)
1420     site=$ac_optarg ;;
1421
1422   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1423     ac_prev=srcdir ;;
1424   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1425     srcdir=$ac_optarg ;;
1426
1427   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1428   | --syscon | --sysco | --sysc | --sys | --sy)
1429     ac_prev=sysconfdir ;;
1430   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1431   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1432     sysconfdir=$ac_optarg ;;
1433
1434   -target | --target | --targe | --targ | --tar | --ta | --t)
1435     ac_prev=target_alias ;;
1436   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1437     target_alias=$ac_optarg ;;
1438
1439   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1440     verbose=yes ;;
1441
1442   -version | --version | --versio | --versi | --vers | -V)
1443     ac_init_version=: ;;
1444
1445   -with-* | --with-*)
1446     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1447     # Reject names that are not valid shell variable names.
1448     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1449       { echo "$as_me: error: invalid package name: $ac_package" >&2
1450    { (exit 1); exit 1; }; }
1451     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1452     eval with_$ac_package=\$ac_optarg ;;
1453
1454   -without-* | --without-*)
1455     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1456     # Reject names that are not valid shell variable names.
1457     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1458       { echo "$as_me: error: invalid package name: $ac_package" >&2
1459    { (exit 1); exit 1; }; }
1460     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1461     eval with_$ac_package=no ;;
1462
1463   --x)
1464     # Obsolete; use --with-x.
1465     with_x=yes ;;
1466
1467   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1468   | --x-incl | --x-inc | --x-in | --x-i)
1469     ac_prev=x_includes ;;
1470   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1471   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1472     x_includes=$ac_optarg ;;
1473
1474   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1475   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1476     ac_prev=x_libraries ;;
1477   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1478   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1479     x_libraries=$ac_optarg ;;
1480
1481   -*) { echo "$as_me: error: unrecognized option: $ac_option
1482 Try \`$0 --help' for more information." >&2
1483    { (exit 1); exit 1; }; }
1484     ;;
1485
1486   *=*)
1487     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1488     # Reject names that are not valid shell variable names.
1489     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1490       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1491    { (exit 1); exit 1; }; }
1492     eval $ac_envvar=\$ac_optarg
1493     export $ac_envvar ;;
1494
1495   *)
1496     # FIXME: should be removed in autoconf 3.0.
1497     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1498     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1499       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1500     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1501     ;;
1502
1503   esac
1504 done
1505
1506 if test -n "$ac_prev"; then
1507   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1508   { echo "$as_me: error: missing argument to $ac_option" >&2
1509    { (exit 1); exit 1; }; }
1510 fi
1511
1512 # Be sure to have absolute directory names.
1513 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1514                 datadir sysconfdir sharedstatedir localstatedir includedir \
1515                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1516                 libdir localedir mandir
1517 do
1518   eval ac_val=\$$ac_var
1519   case $ac_val in
1520     [\\/$]* | ?:[\\/]* )  continue;;
1521     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1522   esac
1523   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1524    { (exit 1); exit 1; }; }
1525 done
1526
1527 # There might be people who depend on the old broken behavior: `$host'
1528 # used to hold the argument of --host etc.
1529 # FIXME: To remove some day.
1530 build=$build_alias
1531 host=$host_alias
1532 target=$target_alias
1533
1534 # FIXME: To remove some day.
1535 if test "x$host_alias" != x; then
1536   if test "x$build_alias" = x; then
1537     cross_compiling=maybe
1538     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1539     If a cross compiler is detected then cross compile mode will be used." >&2
1540   elif test "x$build_alias" != "x$host_alias"; then
1541     cross_compiling=yes
1542   fi
1543 fi
1544
1545 ac_tool_prefix=
1546 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1547
1548 test "$silent" = yes && exec 6>/dev/null
1549
1550
1551 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1552 ac_ls_di=`ls -di .` &&
1553 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1554   { echo "$as_me: error: Working directory cannot be determined" >&2
1555    { (exit 1); exit 1; }; }
1556 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1557   { echo "$as_me: error: pwd does not report name of working directory" >&2
1558    { (exit 1); exit 1; }; }
1559
1560
1561 # Find the source files, if location was not specified.
1562 if test -z "$srcdir"; then
1563   ac_srcdir_defaulted=yes
1564   # Try the directory containing this script, then the parent directory.
1565   ac_confdir=`$as_dirname -- "$0" ||
1566 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1567          X"$0" : 'X\(//\)[^/]' \| \
1568          X"$0" : 'X\(//\)$' \| \
1569          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1570 echo X"$0" |
1571     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1572             s//\1/
1573             q
1574           }
1575           /^X\(\/\/\)[^/].*/{
1576             s//\1/
1577             q
1578           }
1579           /^X\(\/\/\)$/{
1580             s//\1/
1581             q
1582           }
1583           /^X\(\/\).*/{
1584             s//\1/
1585             q
1586           }
1587           s/.*/./; q'`
1588   srcdir=$ac_confdir
1589   if test ! -r "$srcdir/$ac_unique_file"; then
1590     srcdir=..
1591   fi
1592 else
1593   ac_srcdir_defaulted=no
1594 fi
1595 if test ! -r "$srcdir/$ac_unique_file"; then
1596   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1597   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1598    { (exit 1); exit 1; }; }
1599 fi
1600 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1601 ac_abs_confdir=`(
1602         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1603    { (exit 1); exit 1; }; }
1604         pwd)`
1605 # When building in place, set srcdir=.
1606 if test "$ac_abs_confdir" = "$ac_pwd"; then
1607   srcdir=.
1608 fi
1609 # Remove unnecessary trailing slashes from srcdir.
1610 # Double slashes in file names in object file debugging info
1611 # mess up M-x gdb in Emacs.
1612 case $srcdir in
1613 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1614 esac
1615 for ac_var in $ac_precious_vars; do
1616   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1617   eval ac_env_${ac_var}_value=\$${ac_var}
1618   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1619   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1620 done
1621
1622 #
1623 # Report the --help message.
1624 #
1625 if test "$ac_init_help" = "long"; then
1626   # Omit some internal or obsolete options to make the list less imposing.
1627   # This message is too long to be a string in the A/UX 3.1 sh.
1628   cat <<_ACEOF
1629 \`configure' configures GNU tar 1.22 to adapt to many kinds of systems.
1630
1631 Usage: $0 [OPTION]... [VAR=VALUE]...
1632
1633 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1634 VAR=VALUE.  See below for descriptions of some of the useful variables.
1635
1636 Defaults for the options are specified in brackets.
1637
1638 Configuration:
1639   -h, --help              display this help and exit
1640       --help=short        display options specific to this package
1641       --help=recursive    display the short help of all the included packages
1642   -V, --version           display version information and exit
1643   -q, --quiet, --silent   do not print \`checking...' messages
1644       --cache-file=FILE   cache test results in FILE [disabled]
1645   -C, --config-cache      alias for \`--cache-file=config.cache'
1646   -n, --no-create         do not create output files
1647       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1648
1649 Installation directories:
1650   --prefix=PREFIX         install architecture-independent files in PREFIX
1651                           [$ac_default_prefix]
1652   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1653                           [PREFIX]
1654
1655 By default, \`make install' will install all the files in
1656 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1657 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1658 for instance \`--prefix=\$HOME'.
1659
1660 For better control, use the options below.
1661
1662 Fine tuning of the installation directories:
1663   --bindir=DIR           user executables [EPREFIX/bin]
1664   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1665   --libexecdir=DIR       program executables [EPREFIX/libexec]
1666   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1667   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1668   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1669   --libdir=DIR           object code libraries [EPREFIX/lib]
1670   --includedir=DIR       C header files [PREFIX/include]
1671   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1672   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1673   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1674   --infodir=DIR          info documentation [DATAROOTDIR/info]
1675   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1676   --mandir=DIR           man documentation [DATAROOTDIR/man]
1677   --docdir=DIR           documentation root [DATAROOTDIR/doc/tar]
1678   --htmldir=DIR          html documentation [DOCDIR]
1679   --dvidir=DIR           dvi documentation [DOCDIR]
1680   --pdfdir=DIR           pdf documentation [DOCDIR]
1681   --psdir=DIR            ps documentation [DOCDIR]
1682 _ACEOF
1683
1684   cat <<\_ACEOF
1685
1686 Program names:
1687   --program-prefix=PREFIX            prepend PREFIX to installed program names
1688   --program-suffix=SUFFIX            append SUFFIX to installed program names
1689   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1690
1691 System types:
1692   --build=BUILD     configure for building on BUILD [guessed]
1693   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1694 _ACEOF
1695 fi
1696
1697 if test -n "$ac_init_help"; then
1698   case $ac_init_help in
1699      short | recursive ) echo "Configuration of GNU tar 1.22:";;
1700    esac
1701   cat <<\_ACEOF
1702
1703 Optional Features:
1704   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1705   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1706   --disable-dependency-tracking  speeds up one-time build
1707   --enable-dependency-tracking   do not reject slow dependency extractors
1708   --disable-largefile     omit support for large files
1709   --disable-rpath         do not hardcode runtime library paths
1710   --disable-nls           do not use Native Language Support
1711   --enable-backup-scripts Create and install backup and restore scripts
1712
1713 Optional Packages:
1714   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1715   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1716   --without-included-regex
1717                           don't compile regex; this is the default on 32-bit
1718                           systems with recent-enough versions of the GNU C
1719                           Library (use with caution on other systems). On
1720                           systems with 64-bit ptrdiff_t and 32-bit int,
1721                           --with-included-regex is the default, in case regex
1722                           functions operate on very long strings (>2GB)
1723   --with-rmt=FILE         Use FILE as the default `rmt' program. Do not build
1724                           included copy of `rmt'.
1725   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1726   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1727   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1728   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1729   --without-libintl-prefix     don't search for libintl in includedir and libdir
1730
1731 Some influential environment variables:
1732   CC          C compiler command
1733   CFLAGS      C compiler flags
1734   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1735               nonstandard directory <lib dir>
1736   LIBS        libraries to pass to the linker, e.g. -l<library>
1737   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1738               you have headers in a nonstandard directory <include dir>
1739   YACC        The `Yet Another C Compiler' implementation to use. Defaults to
1740               the first program found out of: `bison -y', `byacc', `yacc'.
1741   YFLAGS      The list of arguments that will be passed by default to $YACC.
1742               This script will default YFLAGS to the empty string to avoid a
1743               default value of `-d' given by some make applications.
1744   CPP         C preprocessor
1745   DEFAULT_RMT_DIR
1746               Define full file name of the directory where to install `rmt'.
1747               (default: $(libexecdir))
1748   DEFAULT_ARCHIVE_FORMAT
1749               Set the default archive format. Allowed values are: V7, OLDGNU,
1750               USTAR, POSIX, GNU. Default is GNU
1751   DEFAULT_ARCHIVE
1752               Set the name of the default archive (default: -)
1753   DEFAULT_BLOCKING
1754               Define default blocking factor (default: 20)
1755   DEFAULT_QUOTING_STYLE
1756               Set the default quoting style. Allowed values are: literal,
1757               shell, shell-always, c, escape, locale, clocale . Default is
1758               "escape".
1759
1760 Use these variables to override the choices made by `configure' or to help
1761 it to find libraries and programs with nonstandard names/locations.
1762
1763 Report bugs to <bug-tar@gnu.org>.
1764 _ACEOF
1765 ac_status=$?
1766 fi
1767
1768 if test "$ac_init_help" = "recursive"; then
1769   # If there are subdirs, report their specific --help.
1770   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1771     test -d "$ac_dir" || continue
1772     ac_builddir=.
1773
1774 case "$ac_dir" in
1775 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1776 *)
1777   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1778   # A ".." for each directory in $ac_dir_suffix.
1779   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1780   case $ac_top_builddir_sub in
1781   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1782   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1783   esac ;;
1784 esac
1785 ac_abs_top_builddir=$ac_pwd
1786 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1787 # for backward compatibility:
1788 ac_top_builddir=$ac_top_build_prefix
1789
1790 case $srcdir in
1791   .)  # We are building in place.
1792     ac_srcdir=.
1793     ac_top_srcdir=$ac_top_builddir_sub
1794     ac_abs_top_srcdir=$ac_pwd ;;
1795   [\\/]* | ?:[\\/]* )  # Absolute name.
1796     ac_srcdir=$srcdir$ac_dir_suffix;
1797     ac_top_srcdir=$srcdir
1798     ac_abs_top_srcdir=$srcdir ;;
1799   *) # Relative name.
1800     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1801     ac_top_srcdir=$ac_top_build_prefix$srcdir
1802     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1803 esac
1804 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1805
1806     cd "$ac_dir" || { ac_status=$?; continue; }
1807     # Check for guested configure.
1808     if test -f "$ac_srcdir/configure.gnu"; then
1809       echo &&
1810       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1811     elif test -f "$ac_srcdir/configure"; then
1812       echo &&
1813       $SHELL "$ac_srcdir/configure" --help=recursive
1814     else
1815       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1816     fi || ac_status=$?
1817     cd "$ac_pwd" || { ac_status=$?; break; }
1818   done
1819 fi
1820
1821 test -n "$ac_init_help" && exit $ac_status
1822 if $ac_init_version; then
1823   cat <<\_ACEOF
1824 GNU tar configure 1.22
1825 generated by GNU Autoconf 2.61
1826
1827 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1828 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1829 This configure script is free software; the Free Software Foundation
1830 gives unlimited permission to copy, distribute and modify it.
1831 _ACEOF
1832   exit
1833 fi
1834 cat >config.log <<_ACEOF
1835 This file contains any messages produced by compilers while
1836 running configure, to aid debugging if configure makes a mistake.
1837
1838 It was created by GNU tar $as_me 1.22, which was
1839 generated by GNU Autoconf 2.61.  Invocation command line was
1840
1841   $ $0 $@
1842
1843 _ACEOF
1844 exec 5>>config.log
1845 {
1846 cat <<_ASUNAME
1847 ## --------- ##
1848 ## Platform. ##
1849 ## --------- ##
1850
1851 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1852 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1853 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1854 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1855 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1856
1857 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1858 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1859
1860 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1861 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1862 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1863 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1864 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1865 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1866 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1867
1868 _ASUNAME
1869
1870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1871 for as_dir in $PATH
1872 do
1873   IFS=$as_save_IFS
1874   test -z "$as_dir" && as_dir=.
1875   echo "PATH: $as_dir"
1876 done
1877 IFS=$as_save_IFS
1878
1879 } >&5
1880
1881 cat >&5 <<_ACEOF
1882
1883
1884 ## ----------- ##
1885 ## Core tests. ##
1886 ## ----------- ##
1887
1888 _ACEOF
1889
1890
1891 # Keep a trace of the command line.
1892 # Strip out --no-create and --no-recursion so they do not pile up.
1893 # Strip out --silent because we don't want to record it for future runs.
1894 # Also quote any args containing shell meta-characters.
1895 # Make two passes to allow for proper duplicate-argument suppression.
1896 ac_configure_args=
1897 ac_configure_args0=
1898 ac_configure_args1=
1899 ac_must_keep_next=false
1900 for ac_pass in 1 2
1901 do
1902   for ac_arg
1903   do
1904     case $ac_arg in
1905     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1906     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1907     | -silent | --silent | --silen | --sile | --sil)
1908       continue ;;
1909     *\'*)
1910       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1911     esac
1912     case $ac_pass in
1913     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1914     2)
1915       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1916       if test $ac_must_keep_next = true; then
1917         ac_must_keep_next=false # Got value, back to normal.
1918       else
1919         case $ac_arg in
1920           *=* | --config-cache | -C | -disable-* | --disable-* \
1921           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1922           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1923           | -with-* | --with-* | -without-* | --without-* | --x)
1924             case "$ac_configure_args0 " in
1925               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1926             esac
1927             ;;
1928           -* ) ac_must_keep_next=true ;;
1929         esac
1930       fi
1931       ac_configure_args="$ac_configure_args '$ac_arg'"
1932       ;;
1933     esac
1934   done
1935 done
1936 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1937 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1938
1939 # When interrupted or exit'd, cleanup temporary files, and complete
1940 # config.log.  We remove comments because anyway the quotes in there
1941 # would cause problems or look ugly.
1942 # WARNING: Use '\'' to represent an apostrophe within the trap.
1943 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1944 trap 'exit_status=$?
1945   # Save into config.log some information that might help in debugging.
1946   {
1947     echo
1948
1949     cat <<\_ASBOX
1950 ## ---------------- ##
1951 ## Cache variables. ##
1952 ## ---------------- ##
1953 _ASBOX
1954     echo
1955     # The following way of writing the cache mishandles newlines in values,
1956 (
1957   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1958     eval ac_val=\$$ac_var
1959     case $ac_val in #(
1960     *${as_nl}*)
1961       case $ac_var in #(
1962       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1963 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1964       esac
1965       case $ac_var in #(
1966       _ | IFS | as_nl) ;; #(
1967       *) $as_unset $ac_var ;;
1968       esac ;;
1969     esac
1970   done
1971   (set) 2>&1 |
1972     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1973     *${as_nl}ac_space=\ *)
1974       sed -n \
1975         "s/'\''/'\''\\\\'\'''\''/g;
1976           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1977       ;; #(
1978     *)
1979       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1980       ;;
1981     esac |
1982     sort
1983 )
1984     echo
1985
1986     cat <<\_ASBOX
1987 ## ----------------- ##
1988 ## Output variables. ##
1989 ## ----------------- ##
1990 _ASBOX
1991     echo
1992     for ac_var in $ac_subst_vars
1993     do
1994       eval ac_val=\$$ac_var
1995       case $ac_val in
1996       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1997       esac
1998       echo "$ac_var='\''$ac_val'\''"
1999     done | sort
2000     echo
2001
2002     if test -n "$ac_subst_files"; then
2003       cat <<\_ASBOX
2004 ## ------------------- ##
2005 ## File substitutions. ##
2006 ## ------------------- ##
2007 _ASBOX
2008       echo
2009       for ac_var in $ac_subst_files
2010       do
2011         eval ac_val=\$$ac_var
2012         case $ac_val in
2013         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2014         esac
2015         echo "$ac_var='\''$ac_val'\''"
2016       done | sort
2017       echo
2018     fi
2019
2020     if test -s confdefs.h; then
2021       cat <<\_ASBOX
2022 ## ----------- ##
2023 ## confdefs.h. ##
2024 ## ----------- ##
2025 _ASBOX
2026       echo
2027       cat confdefs.h
2028       echo
2029     fi
2030     test "$ac_signal" != 0 &&
2031       echo "$as_me: caught signal $ac_signal"
2032     echo "$as_me: exit $exit_status"
2033   } >&5
2034   rm -f core *.core core.conftest.* &&
2035     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2036     exit $exit_status
2037 ' 0
2038 for ac_signal in 1 2 13 15; do
2039   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2040 done
2041 ac_signal=0
2042
2043 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2044 rm -f -r conftest* confdefs.h
2045
2046 # Predefined preprocessor variables.
2047
2048 cat >>confdefs.h <<_ACEOF
2049 #define PACKAGE_NAME "$PACKAGE_NAME"
2050 _ACEOF
2051
2052
2053 cat >>confdefs.h <<_ACEOF
2054 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2055 _ACEOF
2056
2057
2058 cat >>confdefs.h <<_ACEOF
2059 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2060 _ACEOF
2061
2062
2063 cat >>confdefs.h <<_ACEOF
2064 #define PACKAGE_STRING "$PACKAGE_STRING"
2065 _ACEOF
2066
2067
2068 cat >>confdefs.h <<_ACEOF
2069 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2070 _ACEOF
2071
2072
2073 # Let the site file select an alternate cache file if it wants to.
2074 # Prefer explicitly selected file to automatically selected ones.
2075 if test -n "$CONFIG_SITE"; then
2076   set x "$CONFIG_SITE"
2077 elif test "x$prefix" != xNONE; then
2078   set x "$prefix/share/config.site" "$prefix/etc/config.site"
2079 else
2080   set x "$ac_default_prefix/share/config.site" \
2081         "$ac_default_prefix/etc/config.site"
2082 fi
2083 shift
2084 for ac_site_file
2085 do
2086   if test -r "$ac_site_file"; then
2087     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2088 echo "$as_me: loading site script $ac_site_file" >&6;}
2089     sed 's/^/| /' "$ac_site_file" >&5
2090     . "$ac_site_file"
2091   fi
2092 done
2093
2094 if test -r "$cache_file"; then
2095   # Some versions of bash will fail to source /dev/null (special
2096   # files actually), so we avoid doing that.
2097   if test -f "$cache_file"; then
2098     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
2099 echo "$as_me: loading cache $cache_file" >&6;}
2100     case $cache_file in
2101       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2102       *)                      . "./$cache_file";;
2103     esac
2104   fi
2105 else
2106   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
2107 echo "$as_me: creating cache $cache_file" >&6;}
2108   >$cache_file
2109 fi
2110
2111 ac_header_list="$ac_header_list fcntl.h"
2112 ac_header_list="$ac_header_list linux/fd.h"
2113 ac_header_list="$ac_header_list memory.h"
2114 ac_header_list="$ac_header_list net/errno.h"
2115 ac_header_list="$ac_header_list sgtty.h"
2116 ac_header_list="$ac_header_list string.h"
2117 ac_header_list="$ac_header_list stropts.h"
2118 ac_header_list="$ac_header_list sys/param.h"
2119 ac_header_list="$ac_header_list sys/device.h"
2120 ac_header_list="$ac_header_list sys/filio.h"
2121 ac_header_list="$ac_header_list sys/gentape.h"
2122 ac_header_list="$ac_header_list sys/inet.h"
2123 ac_header_list="$ac_header_list sys/io/trioctl.h"
2124 ac_header_list="$ac_header_list sys/mtio.h"
2125 ac_header_list="$ac_header_list sys/time.h"
2126 ac_header_list="$ac_header_list sys/tprintf.h"
2127 ac_header_list="$ac_header_list sys/tape.h"
2128 ac_header_list="$ac_header_list unistd.h"
2129 ac_header_list="$ac_header_list locale.h"
2130 ac_func_list="$ac_func_list flockfile"
2131 ac_func_list="$ac_func_list funlockfile"
2132 ac_header_list="$ac_header_list features.h"
2133 ac_header_list="$ac_header_list linewrap.h"
2134 ac_func_list="$ac_func_list pathconf"
2135 ac_func_list="$ac_func_list btowc"
2136 ac_func_list="$ac_func_list canonicalize_file_name"
2137 ac_func_list="$ac_func_list getcwd"
2138 ac_func_list="$ac_func_list readlink"
2139 ac_header_list="$ac_header_list dirent.h"
2140 ac_func_list="$ac_func_list dup2"
2141 ac_header_list="$ac_header_list errno.h"
2142 ac_func_list="$ac_func_list fchdir"
2143 ac_header_list="$ac_header_list float.h"
2144 ac_func_list="$ac_func_list isblank"
2145 ac_func_list="$ac_func_list iswctype"
2146 ac_func_list="$ac_func_list mbsrtowcs"
2147 ac_func_list="$ac_func_list mempcpy"
2148 ac_func_list="$ac_func_list wmemchr"
2149 ac_func_list="$ac_func_list wmemcpy"
2150 ac_func_list="$ac_func_list wmempcpy"
2151 ac_header_list="$ac_header_list wctype.h"
2152 ac_header_list="$ac_header_list stdio_ext.h"
2153 ac_func_list="$ac_func_list __fpending"
2154 ac_func_list="$ac_func_list ftruncate"
2155 ac_func_list="$ac_func_list gettimeofday"
2156 ac_func_list="$ac_func_list nanotime"
2157 ac_header_list="$ac_header_list stdint.h"
2158 ac_header_list="$ac_header_list wchar.h"
2159 ac_header_list="$ac_header_list inttypes.h"
2160 ac_func_list="$ac_func_list lstat"
2161 ac_func_list="$ac_func_list mbsinit"
2162 ac_func_list="$ac_func_list mbrtowc"
2163 ac_func_list="$ac_func_list alarm"
2164 ac_func_list="$ac_func_list lchmod"
2165 ac_func_list="$ac_func_list fdopendir"
2166 ac_func_list="$ac_func_list wcscoll"
2167 ac_func_list="$ac_func_list setenv"
2168 ac_header_list="$ac_header_list stdarg.h"
2169 ac_header_list="$ac_header_list stdio.h"
2170 ac_header_list="$ac_header_list stdlib.h"
2171 ac_header_list="$ac_header_list sys/socket.h"
2172 ac_header_list="$ac_header_list strings.h"
2173 ac_header_list="$ac_header_list sys/stat.h"
2174 ac_header_list="$ac_header_list sysexits.h"
2175 ac_header_list="$ac_header_list time.h"
2176 ac_func_list="$ac_func_list pipe"
2177 ac_header_list="$ac_header_list priv.h"
2178 ac_header_list="$ac_header_list utime.h"
2179 ac_func_list="$ac_func_list futimes"
2180 ac_func_list="$ac_func_list futimesat"
2181 ac_func_list="$ac_func_list futimens"
2182 ac_func_list="$ac_func_list utimensat"
2183 ac_func_list="$ac_func_list vasnprintf"
2184 ac_func_list="$ac_func_list wcrtomb"
2185 ac_func_list="$ac_func_list iswcntrl"
2186 ac_func_list="$ac_func_list wcwidth"
2187 ac_header_list="$ac_header_list netdb.h"
2188 ac_header_list="$ac_header_list sys/wait.h"
2189 ac_header_list="$ac_header_list pwd.h"
2190 ac_header_list="$ac_header_list grp.h"
2191 ac_func_list="$ac_func_list mkfifo"
2192 ac_func_list="$ac_func_list setlocale"
2193 gt_needs="$gt_needs need-formatstring-macros"
2194 # Check that the precious variables saved in the cache have kept the same
2195 # value.
2196 ac_cache_corrupted=false
2197 for ac_var in $ac_precious_vars; do
2198   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2199   eval ac_new_set=\$ac_env_${ac_var}_set
2200   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2201   eval ac_new_val=\$ac_env_${ac_var}_value
2202   case $ac_old_set,$ac_new_set in
2203     set,)
2204       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2205 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2206       ac_cache_corrupted=: ;;
2207     ,set)
2208       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2209 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2210       ac_cache_corrupted=: ;;
2211     ,);;
2212     *)
2213       if test "x$ac_old_val" != "x$ac_new_val"; then
2214         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2215 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2216         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
2217 echo "$as_me:   former value:  $ac_old_val" >&2;}
2218         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
2219 echo "$as_me:   current value: $ac_new_val" >&2;}
2220         ac_cache_corrupted=:
2221       fi;;
2222   esac
2223   # Pass precious variables to config.status.
2224   if test "$ac_new_set" = set; then
2225     case $ac_new_val in
2226     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2227     *) ac_arg=$ac_var=$ac_new_val ;;
2228     esac
2229     case " $ac_configure_args " in
2230       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2231       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2232     esac
2233   fi
2234 done
2235 if $ac_cache_corrupted; then
2236   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2237 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2238   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2239 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2240    { (exit 1); exit 1; }; }
2241 fi
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267 ac_ext=c
2268 ac_cpp='$CPP $CPPFLAGS'
2269 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2270 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2271 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2272
2273
2274
2275 ac_aux_dir=
2276 for ac_dir in build-aux "$srcdir"/build-aux; do
2277   if test -f "$ac_dir/install-sh"; then
2278     ac_aux_dir=$ac_dir
2279     ac_install_sh="$ac_aux_dir/install-sh -c"
2280     break
2281   elif test -f "$ac_dir/install.sh"; then
2282     ac_aux_dir=$ac_dir
2283     ac_install_sh="$ac_aux_dir/install.sh -c"
2284     break
2285   elif test -f "$ac_dir/shtool"; then
2286     ac_aux_dir=$ac_dir
2287     ac_install_sh="$ac_aux_dir/shtool install -c"
2288     break
2289   fi
2290 done
2291 if test -z "$ac_aux_dir"; then
2292   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build-aux \"$srcdir\"/build-aux" >&5
2293 echo "$as_me: error: cannot find install-sh or install.sh in build-aux \"$srcdir\"/build-aux" >&2;}
2294    { (exit 1); exit 1; }; }
2295 fi
2296
2297 # These three variables are undocumented and unsupported,
2298 # and are intended to be withdrawn in a future Autoconf release.
2299 # They can cause serious problems if a builder's source tree is in a directory
2300 # whose full name contains unusual characters.
2301 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2302 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2303 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2304
2305
2306 ac_config_headers="$ac_config_headers config.h:config.hin"
2307
2308
2309 am__api_version='1.10'
2310
2311 # Find a good install program.  We prefer a C program (faster),
2312 # so one script is as good as another.  But avoid the broken or
2313 # incompatible versions:
2314 # SysV /etc/install, /usr/sbin/install
2315 # SunOS /usr/etc/install
2316 # IRIX /sbin/install
2317 # AIX /bin/install
2318 # AmigaOS /C/install, which installs bootblocks on floppy discs
2319 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2320 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2321 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2322 # OS/2's system install, which has a completely different semantic
2323 # ./install, which can be erroneously created by make from ./install.sh.
2324 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2325 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2326 if test -z "$INSTALL"; then
2327 if test "${ac_cv_path_install+set}" = set; then
2328   echo $ECHO_N "(cached) $ECHO_C" >&6
2329 else
2330   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2331 for as_dir in $PATH
2332 do
2333   IFS=$as_save_IFS
2334   test -z "$as_dir" && as_dir=.
2335   # Account for people who put trailing slashes in PATH elements.
2336 case $as_dir/ in
2337   ./ | .// | /cC/* | \
2338   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2339   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2340   /usr/ucb/* ) ;;
2341   *)
2342     # OSF1 and SCO ODT 3.0 have their own names for install.
2343     # Don't use installbsd from OSF since it installs stuff as root
2344     # by default.
2345     for ac_prog in ginstall scoinst install; do
2346       for ac_exec_ext in '' $ac_executable_extensions; do
2347         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2348           if test $ac_prog = install &&
2349             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2350             # AIX install.  It has an incompatible calling convention.
2351             :
2352           elif test $ac_prog = install &&
2353             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2354             # program-specific install script used by HP pwplus--don't use.
2355             :
2356           else
2357             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2358             break 3
2359           fi
2360         fi
2361       done
2362     done
2363     ;;
2364 esac
2365 done
2366 IFS=$as_save_IFS
2367
2368
2369 fi
2370   if test "${ac_cv_path_install+set}" = set; then
2371     INSTALL=$ac_cv_path_install
2372   else
2373     # As a last resort, use the slow shell script.  Don't cache a
2374     # value for INSTALL within a source directory, because that will
2375     # break other packages using the cache if that directory is
2376     # removed, or if the value is a relative name.
2377     INSTALL=$ac_install_sh
2378   fi
2379 fi
2380 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2381 echo "${ECHO_T}$INSTALL" >&6; }
2382
2383 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2384 # It thinks the first close brace ends the variable substitution.
2385 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2386
2387 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2388
2389 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2390
2391 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2392 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2393 # Just in case
2394 sleep 1
2395 echo timestamp > conftest.file
2396 # Do `set' in a subshell so we don't clobber the current shell's
2397 # arguments.  Must try -L first in case configure is actually a
2398 # symlink; some systems play weird games with the mod time of symlinks
2399 # (eg FreeBSD returns the mod time of the symlink's containing
2400 # directory).
2401 if (
2402    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2403    if test "$*" = "X"; then
2404       # -L didn't work.
2405       set X `ls -t $srcdir/configure conftest.file`
2406    fi
2407    rm -f conftest.file
2408    if test "$*" != "X $srcdir/configure conftest.file" \
2409       && test "$*" != "X conftest.file $srcdir/configure"; then
2410
2411       # If neither matched, then we have a broken ls.  This can happen
2412       # if, for instance, CONFIG_SHELL is bash and it inherits a
2413       # broken ls alias from the environment.  This has actually
2414       # happened.  Such a system could not be considered "sane".
2415       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2416 alias in your environment" >&5
2417 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2418 alias in your environment" >&2;}
2419    { (exit 1); exit 1; }; }
2420    fi
2421
2422    test "$2" = conftest.file
2423    )
2424 then
2425    # Ok.
2426    :
2427 else
2428    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2429 Check your system clock" >&5
2430 echo "$as_me: error: newly created file is older than distributed files!
2431 Check your system clock" >&2;}
2432    { (exit 1); exit 1; }; }
2433 fi
2434 { echo "$as_me:$LINENO: result: yes" >&5
2435 echo "${ECHO_T}yes" >&6; }
2436 test "$program_prefix" != NONE &&
2437   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2438 # Use a double $ so make ignores it.
2439 test "$program_suffix" != NONE &&
2440   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2441 # Double any \ or $.  echo might interpret backslashes.
2442 # By default was `s,x,x', remove it if useless.
2443 cat <<\_ACEOF >conftest.sed
2444 s/[\\$]/&&/g;s/;s,x,x,$//
2445 _ACEOF
2446 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2447 rm -f conftest.sed
2448
2449 # expand $ac_aux_dir to an absolute path
2450 am_aux_dir=`cd $ac_aux_dir && pwd`
2451
2452 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2453 # Use eval to expand $SHELL
2454 if eval "$MISSING --run true"; then
2455   am_missing_run="$MISSING --run "
2456 else
2457   am_missing_run=
2458   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2459 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2460 fi
2461
2462 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2463 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2464 if test -z "$MKDIR_P"; then
2465   if test "${ac_cv_path_mkdir+set}" = set; then
2466   echo $ECHO_N "(cached) $ECHO_C" >&6
2467 else
2468   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2469 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2470 do
2471   IFS=$as_save_IFS
2472   test -z "$as_dir" && as_dir=.
2473   for ac_prog in mkdir gmkdir; do
2474          for ac_exec_ext in '' $ac_executable_extensions; do
2475            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2476            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2477              'mkdir (GNU coreutils) '* | \
2478              'mkdir (coreutils) '* | \
2479              'mkdir (fileutils) '4.1*)
2480                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2481                break 3;;
2482            esac
2483          done
2484        done
2485 done
2486 IFS=$as_save_IFS
2487
2488 fi
2489
2490   if test "${ac_cv_path_mkdir+set}" = set; then
2491     MKDIR_P="$ac_cv_path_mkdir -p"
2492   else
2493     # As a last resort, use the slow shell script.  Don't cache a
2494     # value for MKDIR_P within a source directory, because that will
2495     # break other packages using the cache if that directory is
2496     # removed, or if the value is a relative name.
2497     test -d ./--version && rmdir ./--version
2498     MKDIR_P="$ac_install_sh -d"
2499   fi
2500 fi
2501 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2502 echo "${ECHO_T}$MKDIR_P" >&6; }
2503
2504 mkdir_p="$MKDIR_P"
2505 case $mkdir_p in
2506   [\\/$]* | ?:[\\/]*) ;;
2507   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2508 esac
2509
2510 for ac_prog in gawk mawk nawk awk
2511 do
2512   # Extract the first word of "$ac_prog", so it can be a program name with args.
2513 set dummy $ac_prog; ac_word=$2
2514 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2515 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2516 if test "${ac_cv_prog_AWK+set}" = set; then
2517   echo $ECHO_N "(cached) $ECHO_C" >&6
2518 else
2519   if test -n "$AWK"; then
2520   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2521 else
2522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2523 for as_dir in $PATH
2524 do
2525   IFS=$as_save_IFS
2526   test -z "$as_dir" && as_dir=.
2527   for ac_exec_ext in '' $ac_executable_extensions; do
2528   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2529     ac_cv_prog_AWK="$ac_prog"
2530     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2531     break 2
2532   fi
2533 done
2534 done
2535 IFS=$as_save_IFS
2536
2537 fi
2538 fi
2539 AWK=$ac_cv_prog_AWK
2540 if test -n "$AWK"; then
2541   { echo "$as_me:$LINENO: result: $AWK" >&5
2542 echo "${ECHO_T}$AWK" >&6; }
2543 else
2544   { echo "$as_me:$LINENO: result: no" >&5
2545 echo "${ECHO_T}no" >&6; }
2546 fi
2547
2548
2549   test -n "$AWK" && break
2550 done
2551
2552 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2553 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2554 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2555 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2556   echo $ECHO_N "(cached) $ECHO_C" >&6
2557 else
2558   cat >conftest.make <<\_ACEOF
2559 SHELL = /bin/sh
2560 all:
2561         @echo '@@@%%%=$(MAKE)=@@@%%%'
2562 _ACEOF
2563 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2564 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2565   *@@@%%%=?*=@@@%%%*)
2566     eval ac_cv_prog_make_${ac_make}_set=yes;;
2567   *)
2568     eval ac_cv_prog_make_${ac_make}_set=no;;
2569 esac
2570 rm -f conftest.make
2571 fi
2572 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2573   { echo "$as_me:$LINENO: result: yes" >&5
2574 echo "${ECHO_T}yes" >&6; }
2575   SET_MAKE=
2576 else
2577   { echo "$as_me:$LINENO: result: no" >&5
2578 echo "${ECHO_T}no" >&6; }
2579   SET_MAKE="MAKE=${MAKE-make}"
2580 fi
2581
2582 rm -rf .tst 2>/dev/null
2583 mkdir .tst 2>/dev/null
2584 if test -d .tst; then
2585   am__leading_dot=.
2586 else
2587   am__leading_dot=_
2588 fi
2589 rmdir .tst 2>/dev/null
2590
2591 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2592   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2593   # is not polluted with repeated "-I."
2594   am__isrc=' -I$(srcdir)'
2595   # test to see if srcdir already configured
2596   if test -f $srcdir/config.status; then
2597     { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2598 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2599    { (exit 1); exit 1; }; }
2600   fi
2601 fi
2602
2603 # test whether we have cygpath
2604 if test -z "$CYGPATH_W"; then
2605   if (cygpath --version) >/dev/null 2>/dev/null; then
2606     CYGPATH_W='cygpath -w'
2607   else
2608     CYGPATH_W=echo
2609   fi
2610 fi
2611
2612
2613 # Define the identity of the package.
2614  PACKAGE='tar'
2615  VERSION='1.22'
2616
2617
2618 cat >>confdefs.h <<_ACEOF
2619 #define PACKAGE "$PACKAGE"
2620 _ACEOF
2621
2622
2623 cat >>confdefs.h <<_ACEOF
2624 #define VERSION "$VERSION"
2625 _ACEOF
2626
2627 # Some tools Automake needs.
2628
2629 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2630
2631
2632 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2633
2634
2635 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2636
2637
2638 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2639
2640
2641 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2642
2643 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2644
2645 # Installed binaries are usually stripped using `strip' when the user
2646 # run `make install-strip'.  However `strip' might not be the right
2647 # tool to use in cross-compilation environments, therefore Automake
2648 # will honor the `STRIP' environment variable to overrule this program.
2649 if test "$cross_compiling" != no; then
2650   if test -n "$ac_tool_prefix"; then
2651   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2652 set dummy ${ac_tool_prefix}strip; ac_word=$2
2653 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2654 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2655 if test "${ac_cv_prog_STRIP+set}" = set; then
2656   echo $ECHO_N "(cached) $ECHO_C" >&6
2657 else
2658   if test -n "$STRIP"; then
2659   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2660 else
2661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2662 for as_dir in $PATH
2663 do
2664   IFS=$as_save_IFS
2665   test -z "$as_dir" && as_dir=.
2666   for ac_exec_ext in '' $ac_executable_extensions; do
2667   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2668     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2669     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2670     break 2
2671   fi
2672 done
2673 done
2674 IFS=$as_save_IFS
2675
2676 fi
2677 fi
2678 STRIP=$ac_cv_prog_STRIP
2679 if test -n "$STRIP"; then
2680   { echo "$as_me:$LINENO: result: $STRIP" >&5
2681 echo "${ECHO_T}$STRIP" >&6; }
2682 else
2683   { echo "$as_me:$LINENO: result: no" >&5
2684 echo "${ECHO_T}no" >&6; }
2685 fi
2686
2687
2688 fi
2689 if test -z "$ac_cv_prog_STRIP"; then
2690   ac_ct_STRIP=$STRIP
2691   # Extract the first word of "strip", so it can be a program name with args.
2692 set dummy strip; ac_word=$2
2693 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2694 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2695 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2696   echo $ECHO_N "(cached) $ECHO_C" >&6
2697 else
2698   if test -n "$ac_ct_STRIP"; then
2699   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2700 else
2701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2702 for as_dir in $PATH
2703 do
2704   IFS=$as_save_IFS
2705   test -z "$as_dir" && as_dir=.
2706   for ac_exec_ext in '' $ac_executable_extensions; do
2707   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2708     ac_cv_prog_ac_ct_STRIP="strip"
2709     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2710     break 2
2711   fi
2712 done
2713 done
2714 IFS=$as_save_IFS
2715
2716 fi
2717 fi
2718 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2719 if test -n "$ac_ct_STRIP"; then
2720   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2721 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2722 else
2723   { echo "$as_me:$LINENO: result: no" >&5
2724 echo "${ECHO_T}no" >&6; }
2725 fi
2726
2727   if test "x$ac_ct_STRIP" = x; then
2728     STRIP=":"
2729   else
2730     case $cross_compiling:$ac_tool_warned in
2731 yes:)
2732 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2733 whose name does not start with the host triplet.  If you think this
2734 configuration is useful to you, please write to autoconf@gnu.org." >&5
2735 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2736 whose name does not start with the host triplet.  If you think this
2737 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2738 ac_tool_warned=yes ;;
2739 esac
2740     STRIP=$ac_ct_STRIP
2741   fi
2742 else
2743   STRIP="$ac_cv_prog_STRIP"
2744 fi
2745
2746 fi
2747 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2748
2749 # We need awk for the "check" target.  The system "awk" is bad on
2750 # some platforms.
2751 # Always define AMTAR for backward compatibility.
2752
2753 AMTAR=${AMTAR-"${am_missing_run}tar"}
2754
2755
2756 { echo "$as_me:$LINENO: checking how to create a ustar tar archive" >&5
2757 echo $ECHO_N "checking how to create a ustar tar archive... $ECHO_C" >&6; }
2758 # Loop over all known methods to create a tar archive until one works.
2759 _am_tools='gnutar plaintar pax cpio none'
2760 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
2761 # Do not fold the above two line into one, because Tru64 sh and
2762 # Solaris sh will not grok spaces in the rhs of `-'.
2763 for _am_tool in $_am_tools
2764 do
2765   case $_am_tool in
2766   gnutar)
2767     for _am_tar in tar gnutar gtar;
2768     do
2769       { echo "$as_me:$LINENO: $_am_tar --version" >&5
2770    ($_am_tar --version) >&5 2>&5
2771    ac_status=$?
2772    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2773    (exit $ac_status); } && break
2774     done
2775     am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
2776     am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
2777     am__untar="$_am_tar -xf -"
2778     ;;
2779   plaintar)
2780     # Must skip GNU tar: if it does not support --format= it doesn't create
2781     # ustar tarball either.
2782     (tar --version) >/dev/null 2>&1 && continue
2783     am__tar='tar chf - "$$tardir"'
2784     am__tar_='tar chf - "$tardir"'
2785     am__untar='tar xf -'
2786     ;;
2787   pax)
2788     am__tar='pax -L -x ustar -w "$$tardir"'
2789     am__tar_='pax -L -x ustar -w "$tardir"'
2790     am__untar='pax -r'
2791     ;;
2792   cpio)
2793     am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
2794     am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
2795     am__untar='cpio -i -H ustar -d'
2796     ;;
2797   none)
2798     am__tar=false
2799     am__tar_=false
2800     am__untar=false
2801     ;;
2802   esac
2803
2804   # If the value was cached, stop now.  We just wanted to have am__tar
2805   # and am__untar set.
2806   test -n "${am_cv_prog_tar_ustar}" && break
2807
2808   # tar/untar a dummy directory, and stop if the command works
2809   rm -rf conftest.dir
2810   mkdir conftest.dir
2811   echo GrepMe > conftest.dir/file
2812   { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
2813    (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
2814    ac_status=$?
2815    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2816    (exit $ac_status); }
2817   rm -rf conftest.dir
2818   if test -s conftest.tar; then
2819     { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
2820    ($am__untar <conftest.tar) >&5 2>&5
2821    ac_status=$?
2822    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2823    (exit $ac_status); }
2824     grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
2825   fi
2826 done
2827 rm -rf conftest.dir
2828
2829 if test "${am_cv_prog_tar_ustar+set}" = set; then
2830   echo $ECHO_N "(cached) $ECHO_C" >&6
2831 else
2832   am_cv_prog_tar_ustar=$_am_tool
2833 fi
2834
2835 { echo "$as_me:$LINENO: result: $am_cv_prog_tar_ustar" >&5
2836 echo "${ECHO_T}$am_cv_prog_tar_ustar" >&6; }
2837
2838
2839
2840
2841
2842
2843 ac_ext=c
2844 ac_cpp='$CPP $CPPFLAGS'
2845 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2846 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2847 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2848 if test -n "$ac_tool_prefix"; then
2849   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2850 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2851 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2852 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2853 if test "${ac_cv_prog_CC+set}" = set; then
2854   echo $ECHO_N "(cached) $ECHO_C" >&6
2855 else
2856   if test -n "$CC"; then
2857   ac_cv_prog_CC="$CC" # Let the user override the test.
2858 else
2859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2860 for as_dir in $PATH
2861 do
2862   IFS=$as_save_IFS
2863   test -z "$as_dir" && as_dir=.
2864   for ac_exec_ext in '' $ac_executable_extensions; do
2865   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2866     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2867     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2868     break 2
2869   fi
2870 done
2871 done
2872 IFS=$as_save_IFS
2873
2874 fi
2875 fi
2876 CC=$ac_cv_prog_CC
2877 if test -n "$CC"; then
2878   { echo "$as_me:$LINENO: result: $CC" >&5
2879 echo "${ECHO_T}$CC" >&6; }
2880 else
2881   { echo "$as_me:$LINENO: result: no" >&5
2882 echo "${ECHO_T}no" >&6; }
2883 fi
2884
2885
2886 fi
2887 if test -z "$ac_cv_prog_CC"; then
2888   ac_ct_CC=$CC
2889   # Extract the first word of "gcc", so it can be a program name with args.
2890 set dummy gcc; ac_word=$2
2891 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2892 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2893 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2894   echo $ECHO_N "(cached) $ECHO_C" >&6
2895 else
2896   if test -n "$ac_ct_CC"; then
2897   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2898 else
2899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2900 for as_dir in $PATH
2901 do
2902   IFS=$as_save_IFS
2903   test -z "$as_dir" && as_dir=.
2904   for ac_exec_ext in '' $ac_executable_extensions; do
2905   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2906     ac_cv_prog_ac_ct_CC="gcc"
2907     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2908     break 2
2909   fi
2910 done
2911 done
2912 IFS=$as_save_IFS
2913
2914 fi
2915 fi
2916 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2917 if test -n "$ac_ct_CC"; then
2918   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2919 echo "${ECHO_T}$ac_ct_CC" >&6; }
2920 else
2921   { echo "$as_me:$LINENO: result: no" >&5
2922 echo "${ECHO_T}no" >&6; }
2923 fi
2924
2925   if test "x$ac_ct_CC" = x; then
2926     CC=""
2927   else
2928     case $cross_compiling:$ac_tool_warned in
2929 yes:)
2930 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2931 whose name does not start with the host triplet.  If you think this
2932 configuration is useful to you, please write to autoconf@gnu.org." >&5
2933 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2934 whose name does not start with the host triplet.  If you think this
2935 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2936 ac_tool_warned=yes ;;
2937 esac
2938     CC=$ac_ct_CC
2939   fi
2940 else
2941   CC="$ac_cv_prog_CC"
2942 fi
2943
2944 if test -z "$CC"; then
2945           if test -n "$ac_tool_prefix"; then
2946     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2947 set dummy ${ac_tool_prefix}cc; ac_word=$2
2948 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2949 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2950 if test "${ac_cv_prog_CC+set}" = set; then
2951   echo $ECHO_N "(cached) $ECHO_C" >&6
2952 else
2953   if test -n "$CC"; then
2954   ac_cv_prog_CC="$CC" # Let the user override the test.
2955 else
2956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2957 for as_dir in $PATH
2958 do
2959   IFS=$as_save_IFS
2960   test -z "$as_dir" && as_dir=.
2961   for ac_exec_ext in '' $ac_executable_extensions; do
2962   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2963     ac_cv_prog_CC="${ac_tool_prefix}cc"
2964     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2965     break 2
2966   fi
2967 done
2968 done
2969 IFS=$as_save_IFS
2970
2971 fi
2972 fi
2973 CC=$ac_cv_prog_CC
2974 if test -n "$CC"; then
2975   { echo "$as_me:$LINENO: result: $CC" >&5
2976 echo "${ECHO_T}$CC" >&6; }
2977 else
2978   { echo "$as_me:$LINENO: result: no" >&5
2979 echo "${ECHO_T}no" >&6; }
2980 fi
2981
2982
2983   fi
2984 fi
2985 if test -z "$CC"; then
2986   # Extract the first word of "cc", so it can be a program name with args.
2987 set dummy cc; ac_word=$2
2988 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2989 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2990 if test "${ac_cv_prog_CC+set}" = set; then
2991   echo $ECHO_N "(cached) $ECHO_C" >&6
2992 else
2993   if test -n "$CC"; then
2994   ac_cv_prog_CC="$CC" # Let the user override the test.
2995 else
2996   ac_prog_rejected=no
2997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2998 for as_dir in $PATH
2999 do
3000   IFS=$as_save_IFS
3001   test -z "$as_dir" && as_dir=.
3002   for ac_exec_ext in '' $ac_executable_extensions; do
3003   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3004     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3005        ac_prog_rejected=yes
3006        continue
3007      fi
3008     ac_cv_prog_CC="cc"
3009     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3010     break 2
3011   fi
3012 done
3013 done
3014 IFS=$as_save_IFS
3015
3016 if test $ac_prog_rejected = yes; then
3017   # We found a bogon in the path, so make sure we never use it.
3018   set dummy $ac_cv_prog_CC
3019   shift
3020   if test $# != 0; then
3021     # We chose a different compiler from the bogus one.
3022     # However, it has the same basename, so the bogon will be chosen
3023     # first if we set CC to just the basename; use the full file name.
3024     shift
3025     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3026   fi
3027 fi
3028 fi
3029 fi
3030 CC=$ac_cv_prog_CC
3031 if test -n "$CC"; then
3032   { echo "$as_me:$LINENO: result: $CC" >&5
3033 echo "${ECHO_T}$CC" >&6; }
3034 else
3035   { echo "$as_me:$LINENO: result: no" >&5
3036 echo "${ECHO_T}no" >&6; }
3037 fi
3038
3039
3040 fi
3041 if test -z "$CC"; then
3042   if test -n "$ac_tool_prefix"; then
3043   for ac_prog in cl.exe
3044   do
3045     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3046 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3047 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3048 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3049 if test "${ac_cv_prog_CC+set}" = set; then
3050   echo $ECHO_N "(cached) $ECHO_C" >&6
3051 else
3052   if test -n "$CC"; then
3053   ac_cv_prog_CC="$CC" # Let the user override the test.
3054 else
3055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3056 for as_dir in $PATH
3057 do
3058   IFS=$as_save_IFS
3059   test -z "$as_dir" && as_dir=.
3060   for ac_exec_ext in '' $ac_executable_extensions; do
3061   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3062     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3063     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3064     break 2
3065   fi
3066 done
3067 done
3068 IFS=$as_save_IFS
3069
3070 fi
3071 fi
3072 CC=$ac_cv_prog_CC
3073 if test -n "$CC"; then
3074   { echo "$as_me:$LINENO: result: $CC" >&5
3075 echo "${ECHO_T}$CC" >&6; }
3076 else
3077   { echo "$as_me:$LINENO: result: no" >&5
3078 echo "${ECHO_T}no" >&6; }
3079 fi
3080
3081
3082     test -n "$CC" && break
3083   done
3084 fi
3085 if test -z "$CC"; then
3086   ac_ct_CC=$CC
3087   for ac_prog in cl.exe
3088 do
3089   # Extract the first word of "$ac_prog", so it can be a program name with args.
3090 set dummy $ac_prog; ac_word=$2
3091 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3092 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3093 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3094   echo $ECHO_N "(cached) $ECHO_C" >&6
3095 else
3096   if test -n "$ac_ct_CC"; then
3097   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3098 else
3099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3100 for as_dir in $PATH
3101 do
3102   IFS=$as_save_IFS
3103   test -z "$as_dir" && as_dir=.
3104   for ac_exec_ext in '' $ac_executable_extensions; do
3105   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3106     ac_cv_prog_ac_ct_CC="$ac_prog"
3107     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3108     break 2
3109   fi
3110 done
3111 done
3112 IFS=$as_save_IFS
3113
3114 fi
3115 fi
3116 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3117 if test -n "$ac_ct_CC"; then
3118   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3119 echo "${ECHO_T}$ac_ct_CC" >&6; }
3120 else
3121   { echo "$as_me:$LINENO: result: no" >&5
3122 echo "${ECHO_T}no" >&6; }
3123 fi
3124
3125
3126   test -n "$ac_ct_CC" && break
3127 done
3128
3129   if test "x$ac_ct_CC" = x; then
3130     CC=""
3131   else
3132     case $cross_compiling:$ac_tool_warned in
3133 yes:)
3134 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3135 whose name does not start with the host triplet.  If you think this
3136 configuration is useful to you, please write to autoconf@gnu.org." >&5
3137 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3138 whose name does not start with the host triplet.  If you think this
3139 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3140 ac_tool_warned=yes ;;
3141 esac
3142     CC=$ac_ct_CC
3143   fi
3144 fi
3145
3146 fi
3147
3148
3149 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3150 See \`config.log' for more details." >&5
3151 echo "$as_me: error: no acceptable C compiler found in \$PATH
3152 See \`config.log' for more details." >&2;}
3153    { (exit 1); exit 1; }; }
3154
3155 # Provide some information about the compiler.
3156 echo "$as_me:$LINENO: checking for C compiler version" >&5
3157 ac_compiler=`set X $ac_compile; echo $2`
3158 { (ac_try="$ac_compiler --version >&5"
3159 case "(($ac_try" in
3160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3161   *) ac_try_echo=$ac_try;;
3162 esac
3163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3164   (eval "$ac_compiler --version >&5") 2>&5
3165   ac_status=$?
3166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3167   (exit $ac_status); }
3168 { (ac_try="$ac_compiler -v >&5"
3169 case "(($ac_try" in
3170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3171   *) ac_try_echo=$ac_try;;
3172 esac
3173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3174   (eval "$ac_compiler -v >&5") 2>&5
3175   ac_status=$?
3176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3177   (exit $ac_status); }
3178 { (ac_try="$ac_compiler -V >&5"
3179 case "(($ac_try" in
3180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3181   *) ac_try_echo=$ac_try;;
3182 esac
3183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3184   (eval "$ac_compiler -V >&5") 2>&5
3185   ac_status=$?
3186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3187   (exit $ac_status); }
3188
3189 cat >conftest.$ac_ext <<_ACEOF
3190 /* confdefs.h.  */
3191 _ACEOF
3192 cat confdefs.h >>conftest.$ac_ext
3193 cat >>conftest.$ac_ext <<_ACEOF
3194 /* end confdefs.h.  */
3195
3196 int
3197 main ()
3198 {
3199
3200   ;
3201   return 0;
3202 }
3203 _ACEOF
3204 ac_clean_files_save=$ac_clean_files
3205 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3206 # Try to create an executable without -o first, disregard a.out.
3207 # It will help us diagnose broken compilers, and finding out an intuition
3208 # of exeext.
3209 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3210 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3211 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3212 #
3213 # List of possible output files, starting from the most likely.
3214 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3215 # only as a last resort.  b.out is created by i960 compilers.
3216 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3217 #
3218 # The IRIX 6 linker writes into existing files which may not be
3219 # executable, retaining their permissions.  Remove them first so a
3220 # subsequent execution test works.
3221 ac_rmfiles=
3222 for ac_file in $ac_files
3223 do
3224   case $ac_file in
3225     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3226     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3227   esac
3228 done
3229 rm -f $ac_rmfiles
3230
3231 if { (ac_try="$ac_link_default"
3232 case "(($ac_try" in
3233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3234   *) ac_try_echo=$ac_try;;
3235 esac
3236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3237   (eval "$ac_link_default") 2>&5
3238   ac_status=$?
3239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3240   (exit $ac_status); }; then
3241   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3242 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3243 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3244 # so that the user can short-circuit this test for compilers unknown to
3245 # Autoconf.
3246 for ac_file in $ac_files ''
3247 do
3248   test -f "$ac_file" || continue
3249   case $ac_file in
3250     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3251         ;;
3252     [ab].out )
3253         # We found the default executable, but exeext='' is most
3254         # certainly right.
3255         break;;
3256     *.* )
3257         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3258         then :; else
3259            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3260         fi
3261         # We set ac_cv_exeext here because the later test for it is not
3262         # safe: cross compilers may not add the suffix if given an `-o'
3263         # argument, so we may need to know it at that point already.
3264         # Even if this section looks crufty: it has the advantage of
3265         # actually working.
3266         break;;
3267     * )
3268         break;;
3269   esac
3270 done
3271 test "$ac_cv_exeext" = no && ac_cv_exeext=
3272
3273 else
3274   ac_file=''
3275 fi
3276
3277 { echo "$as_me:$LINENO: result: $ac_file" >&5
3278 echo "${ECHO_T}$ac_file" >&6; }
3279 if test -z "$ac_file"; then
3280   echo "$as_me: failed program was:" >&5
3281 sed 's/^/| /' conftest.$ac_ext >&5
3282
3283 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3284 See \`config.log' for more details." >&5
3285 echo "$as_me: error: C compiler cannot create executables
3286 See \`config.log' for more details." >&2;}
3287    { (exit 77); exit 77; }; }
3288 fi
3289
3290 ac_exeext=$ac_cv_exeext
3291
3292 # Check that the compiler produces executables we can run.  If not, either
3293 # the compiler is broken, or we cross compile.
3294 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3295 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3296 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3297 # If not cross compiling, check that we can run a simple program.
3298 if test "$cross_compiling" != yes; then
3299   if { ac_try='./$ac_file'
3300   { (case "(($ac_try" in
3301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3302   *) ac_try_echo=$ac_try;;
3303 esac
3304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3305   (eval "$ac_try") 2>&5
3306   ac_status=$?
3307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3308   (exit $ac_status); }; }; then
3309     cross_compiling=no
3310   else
3311     if test "$cross_compiling" = maybe; then
3312         cross_compiling=yes
3313     else
3314         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3315 If you meant to cross compile, use \`--host'.
3316 See \`config.log' for more details." >&5
3317 echo "$as_me: error: cannot run C compiled programs.
3318 If you meant to cross compile, use \`--host'.
3319 See \`config.log' for more details." >&2;}
3320    { (exit 1); exit 1; }; }
3321     fi
3322   fi
3323 fi
3324 { echo "$as_me:$LINENO: result: yes" >&5
3325 echo "${ECHO_T}yes" >&6; }
3326
3327 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3328 ac_clean_files=$ac_clean_files_save
3329 # Check that the compiler produces executables we can run.  If not, either
3330 # the compiler is broken, or we cross compile.
3331 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3332 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3333 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3334 echo "${ECHO_T}$cross_compiling" >&6; }
3335
3336 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3337 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3338 if { (ac_try="$ac_link"
3339 case "(($ac_try" in
3340   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3341   *) ac_try_echo=$ac_try;;
3342 esac
3343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3344   (eval "$ac_link") 2>&5
3345   ac_status=$?
3346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3347   (exit $ac_status); }; then
3348   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3349 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3350 # work properly (i.e., refer to `conftest.exe'), while it won't with
3351 # `rm'.
3352 for ac_file in conftest.exe conftest conftest.*; do
3353   test -f "$ac_file" || continue
3354   case $ac_file in
3355     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3356     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3357           break;;
3358     * ) break;;
3359   esac
3360 done
3361 else
3362   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3363 See \`config.log' for more details." >&5
3364 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3365 See \`config.log' for more details." >&2;}
3366    { (exit 1); exit 1; }; }
3367 fi
3368
3369 rm -f conftest$ac_cv_exeext
3370 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3371 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3372
3373 rm -f conftest.$ac_ext
3374 EXEEXT=$ac_cv_exeext
3375 ac_exeext=$EXEEXT
3376 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3377 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3378 if test "${ac_cv_objext+set}" = set; then
3379   echo $ECHO_N "(cached) $ECHO_C" >&6
3380 else
3381   cat >conftest.$ac_ext <<_ACEOF
3382 /* confdefs.h.  */
3383 _ACEOF
3384 cat confdefs.h >>conftest.$ac_ext
3385 cat >>conftest.$ac_ext <<_ACEOF
3386 /* end confdefs.h.  */
3387
3388 int
3389 main ()
3390 {
3391
3392   ;
3393   return 0;
3394 }
3395 _ACEOF
3396 rm -f conftest.o conftest.obj
3397 if { (ac_try="$ac_compile"
3398 case "(($ac_try" in
3399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3400   *) ac_try_echo=$ac_try;;
3401 esac
3402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3403   (eval "$ac_compile") 2>&5
3404   ac_status=$?
3405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3406   (exit $ac_status); }; then
3407   for ac_file in conftest.o conftest.obj conftest.*; do
3408   test -f "$ac_file" || continue;
3409   case $ac_file in
3410     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3411     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3412        break;;
3413   esac
3414 done
3415 else
3416   echo "$as_me: failed program was:" >&5
3417 sed 's/^/| /' conftest.$ac_ext >&5
3418
3419 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3420 See \`config.log' for more details." >&5
3421 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3422 See \`config.log' for more details." >&2;}
3423    { (exit 1); exit 1; }; }
3424 fi
3425
3426 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3427 fi
3428 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3429 echo "${ECHO_T}$ac_cv_objext" >&6; }
3430 OBJEXT=$ac_cv_objext
3431 ac_objext=$OBJEXT
3432 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3433 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3434 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3435   echo $ECHO_N "(cached) $ECHO_C" >&6
3436 else
3437   cat >conftest.$ac_ext <<_ACEOF
3438 /* confdefs.h.  */
3439 _ACEOF
3440 cat confdefs.h >>conftest.$ac_ext
3441 cat >>conftest.$ac_ext <<_ACEOF
3442 /* end confdefs.h.  */
3443
3444 int
3445 main ()
3446 {
3447 #ifndef __GNUC__
3448        choke me
3449 #endif
3450
3451   ;
3452   return 0;
3453 }
3454 _ACEOF
3455 rm -f conftest.$ac_objext
3456 if { (ac_try="$ac_compile"
3457 case "(($ac_try" in
3458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3459   *) ac_try_echo=$ac_try;;
3460 esac
3461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3462   (eval "$ac_compile") 2>conftest.er1
3463   ac_status=$?
3464   grep -v '^ *+' conftest.er1 >conftest.err
3465   rm -f conftest.er1
3466   cat conftest.err >&5
3467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3468   (exit $ac_status); } && {
3469          test -z "$ac_c_werror_flag" ||
3470          test ! -s conftest.err
3471        } && test -s conftest.$ac_objext; then
3472   ac_compiler_gnu=yes
3473 else
3474   echo "$as_me: failed program was:" >&5
3475 sed 's/^/| /' conftest.$ac_ext >&5
3476
3477         ac_compiler_gnu=no
3478 fi
3479
3480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3481 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3482
3483 fi
3484 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3485 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3486 GCC=`test $ac_compiler_gnu = yes && echo yes`
3487 ac_test_CFLAGS=${CFLAGS+set}
3488 ac_save_CFLAGS=$CFLAGS
3489 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3490 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3491 if test "${ac_cv_prog_cc_g+set}" = set; then
3492   echo $ECHO_N "(cached) $ECHO_C" >&6
3493 else
3494   ac_save_c_werror_flag=$ac_c_werror_flag
3495    ac_c_werror_flag=yes
3496    ac_cv_prog_cc_g=no
3497    CFLAGS="-g"
3498    cat >conftest.$ac_ext <<_ACEOF
3499 /* confdefs.h.  */
3500 _ACEOF
3501 cat confdefs.h >>conftest.$ac_ext
3502 cat >>conftest.$ac_ext <<_ACEOF
3503 /* end confdefs.h.  */
3504
3505 int
3506 main ()
3507 {
3508
3509   ;
3510   return 0;
3511 }
3512 _ACEOF
3513 rm -f conftest.$ac_objext
3514 if { (ac_try="$ac_compile"
3515 case "(($ac_try" in
3516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3517   *) ac_try_echo=$ac_try;;
3518 esac
3519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3520   (eval "$ac_compile") 2>conftest.er1
3521   ac_status=$?
3522   grep -v '^ *+' conftest.er1 >conftest.err
3523   rm -f conftest.er1
3524   cat conftest.err >&5
3525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3526   (exit $ac_status); } && {
3527          test -z "$ac_c_werror_flag" ||
3528          test ! -s conftest.err
3529        } && test -s conftest.$ac_objext; then
3530   ac_cv_prog_cc_g=yes
3531 else
3532   echo "$as_me: failed program was:" >&5
3533 sed 's/^/| /' conftest.$ac_ext >&5
3534
3535         CFLAGS=""
3536       cat >conftest.$ac_ext <<_ACEOF
3537 /* confdefs.h.  */
3538 _ACEOF
3539 cat confdefs.h >>conftest.$ac_ext
3540 cat >>conftest.$ac_ext <<_ACEOF
3541 /* end confdefs.h.  */
3542
3543 int
3544 main ()
3545 {
3546
3547   ;
3548   return 0;
3549 }
3550 _ACEOF
3551 rm -f conftest.$ac_objext
3552 if { (ac_try="$ac_compile"
3553 case "(($ac_try" in
3554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3555   *) ac_try_echo=$ac_try;;
3556 esac
3557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3558   (eval "$ac_compile") 2>conftest.er1
3559   ac_status=$?
3560   grep -v '^ *+' conftest.er1 >conftest.err
3561   rm -f conftest.er1
3562   cat conftest.err >&5
3563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3564   (exit $ac_status); } && {
3565          test -z "$ac_c_werror_flag" ||
3566          test ! -s conftest.err
3567        } && test -s conftest.$ac_objext; then
3568   :
3569 else
3570   echo "$as_me: failed program was:" >&5
3571 sed 's/^/| /' conftest.$ac_ext >&5
3572
3573         ac_c_werror_flag=$ac_save_c_werror_flag
3574          CFLAGS="-g"
3575          cat >conftest.$ac_ext <<_ACEOF
3576 /* confdefs.h.  */
3577 _ACEOF
3578 cat confdefs.h >>conftest.$ac_ext
3579 cat >>conftest.$ac_ext <<_ACEOF
3580 /* end confdefs.h.  */
3581
3582 int
3583 main ()
3584 {
3585
3586   ;
3587   return 0;
3588 }
3589 _ACEOF
3590 rm -f conftest.$ac_objext
3591 if { (ac_try="$ac_compile"
3592 case "(($ac_try" in
3593   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3594   *) ac_try_echo=$ac_try;;
3595 esac
3596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3597   (eval "$ac_compile") 2>conftest.er1
3598   ac_status=$?
3599   grep -v '^ *+' conftest.er1 >conftest.err
3600   rm -f conftest.er1
3601   cat conftest.err >&5
3602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3603   (exit $ac_status); } && {
3604          test -z "$ac_c_werror_flag" ||
3605          test ! -s conftest.err
3606        } && test -s conftest.$ac_objext; then
3607   ac_cv_prog_cc_g=yes
3608 else
3609   echo "$as_me: failed program was:" >&5
3610 sed 's/^/| /' conftest.$ac_ext >&5
3611
3612
3613 fi
3614
3615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3616 fi
3617
3618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3619 fi
3620
3621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3622    ac_c_werror_flag=$ac_save_c_werror_flag
3623 fi
3624 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3625 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3626 if test "$ac_test_CFLAGS" = set; then
3627   CFLAGS=$ac_save_CFLAGS
3628 elif test $ac_cv_prog_cc_g = yes; then
3629   if test "$GCC" = yes; then
3630     CFLAGS="-g -O2"
3631   else
3632     CFLAGS="-g"
3633   fi
3634 else
3635   if test "$GCC" = yes; then
3636     CFLAGS="-O2"
3637   else
3638     CFLAGS=
3639   fi
3640 fi
3641 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3642 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3643 if test "${ac_cv_prog_cc_c89+set}" = set; then
3644   echo $ECHO_N "(cached) $ECHO_C" >&6
3645 else
3646   ac_cv_prog_cc_c89=no
3647 ac_save_CC=$CC
3648 cat >conftest.$ac_ext <<_ACEOF
3649 /* confdefs.h.  */
3650 _ACEOF
3651 cat confdefs.h >>conftest.$ac_ext
3652 cat >>conftest.$ac_ext <<_ACEOF
3653 /* end confdefs.h.  */
3654 #include <stdarg.h>
3655 #include <stdio.h>
3656 #include <sys/types.h>
3657 #include <sys/stat.h>
3658 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3659 struct buf { int x; };
3660 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3661 static char *e (p, i)
3662      char **p;
3663      int i;
3664 {
3665   return p[i];
3666 }
3667 static char *f (char * (*g) (char **, int), char **p, ...)
3668 {
3669   char *s;
3670   va_list v;
3671   va_start (v,p);
3672   s = g (p, va_arg (v,int));
3673   va_end (v);
3674   return s;
3675 }
3676
3677 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3678    function prototypes and stuff, but not '\xHH' hex character constants.
3679    These don't provoke an error unfortunately, instead are silently treated
3680    as 'x'.  The following induces an error, until -std is added to get
3681    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3682    array size at least.  It's necessary to write '\x00'==0 to get something
3683    that's true only with -std.  */
3684 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3685
3686 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3687    inside strings and character constants.  */
3688 #define FOO(x) 'x'
3689 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3690
3691 int test (int i, double x);
3692 struct s1 {int (*f) (int a);};
3693 struct s2 {int (*f) (double a);};
3694 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3695 int argc;
3696 char **argv;
3697 int
3698 main ()
3699 {
3700 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3701   ;
3702   return 0;
3703 }
3704 _ACEOF
3705 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3706         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3707 do
3708   CC="$ac_save_CC $ac_arg"
3709   rm -f conftest.$ac_objext
3710 if { (ac_try="$ac_compile"
3711 case "(($ac_try" in
3712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3713   *) ac_try_echo=$ac_try;;
3714 esac
3715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3716   (eval "$ac_compile") 2>conftest.er1
3717   ac_status=$?
3718   grep -v '^ *+' conftest.er1 >conftest.err
3719   rm -f conftest.er1
3720   cat conftest.err >&5
3721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3722   (exit $ac_status); } && {
3723          test -z "$ac_c_werror_flag" ||
3724          test ! -s conftest.err
3725        } && test -s conftest.$ac_objext; then
3726   ac_cv_prog_cc_c89=$ac_arg
3727 else
3728   echo "$as_me: failed program was:" >&5
3729 sed 's/^/| /' conftest.$ac_ext >&5
3730
3731
3732 fi
3733
3734 rm -f core conftest.err conftest.$ac_objext
3735   test "x$ac_cv_prog_cc_c89" != "xno" && break
3736 done
3737 rm -f conftest.$ac_ext
3738 CC=$ac_save_CC
3739
3740 fi
3741 # AC_CACHE_VAL
3742 case "x$ac_cv_prog_cc_c89" in
3743   x)
3744     { echo "$as_me:$LINENO: result: none needed" >&5
3745 echo "${ECHO_T}none needed" >&6; } ;;
3746   xno)
3747     { echo "$as_me:$LINENO: result: unsupported" >&5
3748 echo "${ECHO_T}unsupported" >&6; } ;;
3749   *)
3750     CC="$CC $ac_cv_prog_cc_c89"
3751     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3752 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3753 esac
3754
3755
3756 ac_ext=c
3757 ac_cpp='$CPP $CPPFLAGS'
3758 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3759 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3760 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3761 DEPDIR="${am__leading_dot}deps"
3762
3763 ac_config_commands="$ac_config_commands depfiles"
3764
3765
3766 am_make=${MAKE-make}
3767 cat > confinc << 'END'
3768 am__doit:
3769         @echo done
3770 .PHONY: am__doit
3771 END
3772 # If we don't find an include directive, just comment out the code.
3773 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3774 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3775 am__include="#"
3776 am__quote=
3777 _am_result=none
3778 # First try GNU make style include.
3779 echo "include confinc" > confmf
3780 # We grep out `Entering directory' and `Leaving directory'
3781 # messages which can occur if `w' ends up in MAKEFLAGS.
3782 # In particular we don't look at `^make:' because GNU make might
3783 # be invoked under some other name (usually "gmake"), in which
3784 # case it prints its new name instead of `make'.
3785 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3786    am__include=include
3787    am__quote=
3788    _am_result=GNU
3789 fi
3790 # Now try BSD make style include.
3791 if test "$am__include" = "#"; then
3792    echo '.include "confinc"' > confmf
3793    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3794       am__include=.include
3795       am__quote="\""
3796       _am_result=BSD
3797    fi
3798 fi
3799
3800
3801 { echo "$as_me:$LINENO: result: $_am_result" >&5
3802 echo "${ECHO_T}$_am_result" >&6; }
3803 rm -f confinc confmf
3804
3805 # Check whether --enable-dependency-tracking was given.
3806 if test "${enable_dependency_tracking+set}" = set; then
3807   enableval=$enable_dependency_tracking;
3808 fi
3809
3810 if test "x$enable_dependency_tracking" != xno; then
3811   am_depcomp="$ac_aux_dir/depcomp"
3812   AMDEPBACKSLASH='\'
3813 fi
3814  if test "x$enable_dependency_tracking" != xno; then
3815   AMDEP_TRUE=
3816   AMDEP_FALSE='#'
3817 else
3818   AMDEP_TRUE='#'
3819   AMDEP_FALSE=
3820 fi
3821
3822
3823
3824 depcc="$CC"   am_compiler_list=
3825
3826 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3827 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3828 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3829   echo $ECHO_N "(cached) $ECHO_C" >&6
3830 else
3831   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3832   # We make a subdir and do the tests there.  Otherwise we can end up
3833   # making bogus files that we don't know about and never remove.  For
3834   # instance it was reported that on HP-UX the gcc test will end up
3835   # making a dummy file named `D' -- because `-MD' means `put the output
3836   # in D'.
3837   mkdir conftest.dir
3838   # Copy depcomp to subdir because otherwise we won't find it if we're
3839   # using a relative directory.
3840   cp "$am_depcomp" conftest.dir
3841   cd conftest.dir
3842   # We will build objects and dependencies in a subdirectory because
3843   # it helps to detect inapplicable dependency modes.  For instance
3844   # both Tru64's cc and ICC support -MD to output dependencies as a
3845   # side effect of compilation, but ICC will put the dependencies in
3846   # the current directory while Tru64 will put them in the object
3847   # directory.
3848   mkdir sub
3849
3850   am_cv_CC_dependencies_compiler_type=none
3851   if test "$am_compiler_list" = ""; then
3852      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3853   fi
3854   for depmode in $am_compiler_list; do
3855     # Setup a source with many dependencies, because some compilers
3856     # like to wrap large dependency lists on column 80 (with \), and
3857     # we should not choose a depcomp mode which is confused by this.
3858     #
3859     # We need to recreate these files for each test, as the compiler may
3860     # overwrite some of them when testing with obscure command lines.
3861     # This happens at least with the AIX C compiler.
3862     : > sub/conftest.c
3863     for i in 1 2 3 4 5 6; do
3864       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3865       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3866       # Solaris 8's {/usr,}/bin/sh.
3867       touch sub/conftst$i.h
3868     done
3869     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3870
3871     case $depmode in
3872     nosideeffect)
3873       # after this tag, mechanisms are not by side-effect, so they'll
3874       # only be used when explicitly requested
3875       if test "x$enable_dependency_tracking" = xyes; then
3876         continue
3877       else
3878         break
3879       fi
3880       ;;
3881     none) break ;;
3882     esac
3883     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3884     # mode.  It turns out that the SunPro C++ compiler does not properly
3885     # handle `-M -o', and we need to detect this.
3886     if depmode=$depmode \
3887        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3888        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3889        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3890          >/dev/null 2>conftest.err &&
3891        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3892        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3893        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3894        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3895       # icc doesn't choke on unknown options, it will just issue warnings
3896       # or remarks (even with -Werror).  So we grep stderr for any message
3897       # that says an option was ignored or not supported.
3898       # When given -MP, icc 7.0 and 7.1 complain thusly:
3899       #   icc: Command line warning: ignoring option '-M'; no argument required
3900       # The diagnosis changed in icc 8.0:
3901       #   icc: Command line remark: option '-MP' not supported
3902       if (grep 'ignoring option' conftest.err ||
3903           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3904         am_cv_CC_dependencies_compiler_type=$depmode
3905         break
3906       fi
3907     fi
3908   done
3909
3910   cd ..
3911   rm -rf conftest.dir
3912 else
3913   am_cv_CC_dependencies_compiler_type=none
3914 fi
3915
3916 fi
3917 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3918 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3919 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3920
3921  if
3922   test "x$enable_dependency_tracking" != xno \
3923   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3924   am__fastdepCC_TRUE=
3925   am__fastdepCC_FALSE='#'
3926 else
3927   am__fastdepCC_TRUE='#'
3928   am__fastdepCC_FALSE=
3929 fi
3930
3931
3932
3933 if test -n "$ac_tool_prefix"; then
3934   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3935 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3936 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3937 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3938 if test "${ac_cv_prog_RANLIB+set}" = set; then
3939   echo $ECHO_N "(cached) $ECHO_C" >&6
3940 else
3941   if test -n "$RANLIB"; then
3942   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3943 else
3944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3945 for as_dir in $PATH
3946 do
3947   IFS=$as_save_IFS
3948   test -z "$as_dir" && as_dir=.
3949   for ac_exec_ext in '' $ac_executable_extensions; do
3950   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3951     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3952     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3953     break 2
3954   fi
3955 done
3956 done
3957 IFS=$as_save_IFS
3958
3959 fi
3960 fi
3961 RANLIB=$ac_cv_prog_RANLIB
3962 if test -n "$RANLIB"; then
3963   { echo "$as_me:$LINENO: result: $RANLIB" >&5
3964 echo "${ECHO_T}$RANLIB" >&6; }
3965 else
3966   { echo "$as_me:$LINENO: result: no" >&5
3967 echo "${ECHO_T}no" >&6; }
3968 fi
3969
3970
3971 fi
3972 if test -z "$ac_cv_prog_RANLIB"; then
3973   ac_ct_RANLIB=$RANLIB
3974   # Extract the first word of "ranlib", so it can be a program name with args.
3975 set dummy ranlib; ac_word=$2
3976 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3977 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3978 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3979   echo $ECHO_N "(cached) $ECHO_C" >&6
3980 else
3981   if test -n "$ac_ct_RANLIB"; then
3982   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3983 else
3984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3985 for as_dir in $PATH
3986 do
3987   IFS=$as_save_IFS
3988   test -z "$as_dir" && as_dir=.
3989   for ac_exec_ext in '' $ac_executable_extensions; do
3990   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3991     ac_cv_prog_ac_ct_RANLIB="ranlib"
3992     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3993     break 2
3994   fi
3995 done
3996 done
3997 IFS=$as_save_IFS
3998
3999 fi
4000 fi
4001 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4002 if test -n "$ac_ct_RANLIB"; then
4003   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4004 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4005 else
4006   { echo "$as_me:$LINENO: result: no" >&5
4007 echo "${ECHO_T}no" >&6; }
4008 fi
4009
4010   if test "x$ac_ct_RANLIB" = x; then
4011     RANLIB=":"
4012   else
4013     case $cross_compiling:$ac_tool_warned in
4014 yes:)
4015 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4016 whose name does not start with the host triplet.  If you think this
4017 configuration is useful to you, please write to autoconf@gnu.org." >&5
4018 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4019 whose name does not start with the host triplet.  If you think this
4020 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4021 ac_tool_warned=yes ;;
4022 esac
4023     RANLIB=$ac_ct_RANLIB
4024   fi
4025 else
4026   RANLIB="$ac_cv_prog_RANLIB"
4027 fi
4028
4029 for ac_prog in 'bison -y' byacc
4030 do
4031   # Extract the first word of "$ac_prog", so it can be a program name with args.
4032 set dummy $ac_prog; ac_word=$2
4033 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4034 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4035 if test "${ac_cv_prog_YACC+set}" = set; then
4036   echo $ECHO_N "(cached) $ECHO_C" >&6
4037 else
4038   if test -n "$YACC"; then
4039   ac_cv_prog_YACC="$YACC" # Let the user override the test.
4040 else
4041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4042 for as_dir in $PATH
4043 do
4044   IFS=$as_save_IFS
4045   test -z "$as_dir" && as_dir=.
4046   for ac_exec_ext in '' $ac_executable_extensions; do
4047   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4048     ac_cv_prog_YACC="$ac_prog"
4049     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4050     break 2
4051   fi
4052 done
4053 done
4054 IFS=$as_save_IFS
4055
4056 fi
4057 fi
4058 YACC=$ac_cv_prog_YACC
4059 if test -n "$YACC"; then
4060   { echo "$as_me:$LINENO: result: $YACC" >&5
4061 echo "${ECHO_T}$YACC" >&6; }
4062 else
4063   { echo "$as_me:$LINENO: result: no" >&5
4064 echo "${ECHO_T}no" >&6; }
4065 fi
4066
4067
4068   test -n "$YACC" && break
4069 done
4070 test -n "$YACC" || YACC="yacc"
4071
4072 if test "x$CC" != xcc; then
4073   { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
4074 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
4075 else
4076   { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
4077 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
4078 fi
4079 set dummy $CC; ac_cc=`echo $2 |
4080                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4081 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
4082   echo $ECHO_N "(cached) $ECHO_C" >&6
4083 else
4084   cat >conftest.$ac_ext <<_ACEOF
4085 /* confdefs.h.  */
4086 _ACEOF
4087 cat confdefs.h >>conftest.$ac_ext
4088 cat >>conftest.$ac_ext <<_ACEOF
4089 /* end confdefs.h.  */
4090
4091 int
4092 main ()
4093 {
4094
4095   ;
4096   return 0;
4097 }
4098 _ACEOF
4099 # Make sure it works both with $CC and with simple cc.
4100 # We do the test twice because some compilers refuse to overwrite an
4101 # existing .o file with -o, though they will create one.
4102 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4103 rm -f conftest2.*
4104 if { (case "(($ac_try" in
4105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4106   *) ac_try_echo=$ac_try;;
4107 esac
4108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4109   (eval "$ac_try") 2>&5
4110   ac_status=$?
4111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4112   (exit $ac_status); } &&
4113    test -f conftest2.$ac_objext && { (case "(($ac_try" in
4114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4115   *) ac_try_echo=$ac_try;;
4116 esac
4117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4118   (eval "$ac_try") 2>&5
4119   ac_status=$?
4120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4121   (exit $ac_status); };
4122 then
4123   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4124   if test "x$CC" != xcc; then
4125     # Test first that cc exists at all.
4126     if { ac_try='cc -c conftest.$ac_ext >&5'
4127   { (case "(($ac_try" in
4128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4129   *) ac_try_echo=$ac_try;;
4130 esac
4131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4132   (eval "$ac_try") 2>&5
4133   ac_status=$?
4134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4135   (exit $ac_status); }; }; then
4136       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4137       rm -f conftest2.*
4138       if { (case "(($ac_try" in
4139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4140   *) ac_try_echo=$ac_try;;
4141 esac
4142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4143   (eval "$ac_try") 2>&5
4144   ac_status=$?
4145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4146   (exit $ac_status); } &&
4147          test -f conftest2.$ac_objext && { (case "(($ac_try" in
4148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4149   *) ac_try_echo=$ac_try;;
4150 esac
4151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4152   (eval "$ac_try") 2>&5
4153   ac_status=$?
4154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4155   (exit $ac_status); };
4156       then
4157         # cc works too.
4158         :
4159       else
4160         # cc exists but doesn't like -o.
4161         eval ac_cv_prog_cc_${ac_cc}_c_o=no
4162       fi
4163     fi
4164   fi
4165 else
4166   eval ac_cv_prog_cc_${ac_cc}_c_o=no
4167 fi
4168 rm -f core conftest*
4169
4170 fi
4171 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4172   { echo "$as_me:$LINENO: result: yes" >&5
4173 echo "${ECHO_T}yes" >&6; }
4174 else
4175   { echo "$as_me:$LINENO: result: no" >&5
4176 echo "${ECHO_T}no" >&6; }
4177
4178 cat >>confdefs.h <<\_ACEOF
4179 #define NO_MINUS_C_MINUS_O 1
4180 _ACEOF
4181
4182 fi
4183
4184 # FIXME: we rely on the cache variable name because
4185 # there is no other way.
4186 set dummy $CC
4187 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4188 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
4189    # Losing compiler, so override with the script.
4190    # FIXME: It is wrong to rewrite CC.
4191    # But if we don't then we get into trouble of one sort or another.
4192    # A longer-term fix would be to have automake use am__CC in this case,
4193    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4194    CC="$am_aux_dir/compile $CC"
4195 fi
4196
4197
4198
4199 cat >>confdefs.h <<\_ACEOF
4200 #define _GNU_SOURCE 1
4201 _ACEOF
4202
4203
4204 # Make sure we can run config.sub.
4205 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4206   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4207 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
4208    { (exit 1); exit 1; }; }
4209
4210 { echo "$as_me:$LINENO: checking build system type" >&5
4211 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
4212 if test "${ac_cv_build+set}" = set; then
4213   echo $ECHO_N "(cached) $ECHO_C" >&6
4214 else
4215   ac_build_alias=$build_alias
4216 test "x$ac_build_alias" = x &&
4217   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4218 test "x$ac_build_alias" = x &&
4219   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4220 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4221    { (exit 1); exit 1; }; }
4222 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4223   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
4224 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
4225    { (exit 1); exit 1; }; }
4226
4227 fi
4228 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4229 echo "${ECHO_T}$ac_cv_build" >&6; }
4230 case $ac_cv_build in
4231 *-*-*) ;;
4232 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4233 echo "$as_me: error: invalid value of canonical build" >&2;}
4234    { (exit 1); exit 1; }; };;
4235 esac
4236 build=$ac_cv_build
4237 ac_save_IFS=$IFS; IFS='-'
4238 set x $ac_cv_build
4239 shift
4240 build_cpu=$1
4241 build_vendor=$2
4242 shift; shift
4243 # Remember, the first character of IFS is used to create $*,
4244 # except with old shells:
4245 build_os=$*
4246 IFS=$ac_save_IFS
4247 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4248
4249
4250 { echo "$as_me:$LINENO: checking host system type" >&5
4251 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
4252 if test "${ac_cv_host+set}" = set; then
4253   echo $ECHO_N "(cached) $ECHO_C" >&6
4254 else
4255   if test "x$host_alias" = x; then
4256   ac_cv_host=$ac_cv_build
4257 else
4258   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4259     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4260 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
4261    { (exit 1); exit 1; }; }
4262 fi
4263
4264 fi
4265 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4266 echo "${ECHO_T}$ac_cv_host" >&6; }
4267 case $ac_cv_host in
4268 *-*-*) ;;
4269 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4270 echo "$as_me: error: invalid value of canonical host" >&2;}
4271    { (exit 1); exit 1; }; };;
4272 esac
4273 host=$ac_cv_host
4274 ac_save_IFS=$IFS; IFS='-'
4275 set x $ac_cv_host
4276 shift
4277 host_cpu=$1
4278 host_vendor=$2
4279 shift; shift
4280 # Remember, the first character of IFS is used to create $*,
4281 # except with old shells:
4282 host_os=$*
4283 IFS=$ac_save_IFS
4284 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4285
4286
4287
4288 ac_ext=c
4289 ac_cpp='$CPP $CPPFLAGS'
4290 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4291 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4292 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4293 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4294 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4295 # On Suns, sometimes $CPP names a directory.
4296 if test -n "$CPP" && test -d "$CPP"; then
4297   CPP=
4298 fi
4299 if test -z "$CPP"; then
4300   if test "${ac_cv_prog_CPP+set}" = set; then
4301   echo $ECHO_N "(cached) $ECHO_C" >&6
4302 else
4303       # Double quotes because CPP needs to be expanded
4304     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4305     do
4306       ac_preproc_ok=false
4307 for ac_c_preproc_warn_flag in '' yes
4308 do
4309   # Use a header file that comes with gcc, so configuring glibc
4310   # with a fresh cross-compiler works.
4311   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4312   # <limits.h> exists even on freestanding compilers.
4313   # On the NeXT, cc -E runs the code through the compiler's parser,
4314   # not just through cpp. "Syntax error" is here to catch this case.
4315   cat >conftest.$ac_ext <<_ACEOF
4316 /* confdefs.h.  */
4317 _ACEOF
4318 cat confdefs.h >>conftest.$ac_ext
4319 cat >>conftest.$ac_ext <<_ACEOF
4320 /* end confdefs.h.  */
4321 #ifdef __STDC__
4322 # include <limits.h>
4323 #else
4324 # include <assert.h>
4325 #endif
4326                      Syntax error
4327 _ACEOF
4328 if { (ac_try="$ac_cpp conftest.$ac_ext"
4329 case "(($ac_try" in
4330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4331   *) ac_try_echo=$ac_try;;
4332 esac
4333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4334   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4335   ac_status=$?
4336   grep -v '^ *+' conftest.er1 >conftest.err
4337   rm -f conftest.er1
4338   cat conftest.err >&5
4339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4340   (exit $ac_status); } >/dev/null && {
4341          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4342          test ! -s conftest.err
4343        }; then
4344   :
4345 else
4346   echo "$as_me: failed program was:" >&5
4347 sed 's/^/| /' conftest.$ac_ext >&5
4348
4349   # Broken: fails on valid input.
4350 continue
4351 fi
4352
4353 rm -f conftest.err conftest.$ac_ext
4354
4355   # OK, works on sane cases.  Now check whether nonexistent headers
4356   # can be detected and how.
4357   cat >conftest.$ac_ext <<_ACEOF
4358 /* confdefs.h.  */
4359 _ACEOF
4360 cat confdefs.h >>conftest.$ac_ext
4361 cat >>conftest.$ac_ext <<_ACEOF
4362 /* end confdefs.h.  */
4363 #include <ac_nonexistent.h>
4364 _ACEOF
4365 if { (ac_try="$ac_cpp conftest.$ac_ext"
4366 case "(($ac_try" in
4367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4368   *) ac_try_echo=$ac_try;;
4369 esac
4370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4371   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4372   ac_status=$?
4373   grep -v '^ *+' conftest.er1 >conftest.err
4374   rm -f conftest.er1
4375   cat conftest.err >&5
4376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4377   (exit $ac_status); } >/dev/null && {
4378          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4379          test ! -s conftest.err
4380        }; then
4381   # Broken: success on invalid input.
4382 continue
4383 else
4384   echo "$as_me: failed program was:" >&5
4385 sed 's/^/| /' conftest.$ac_ext >&5
4386
4387   # Passes both tests.
4388 ac_preproc_ok=:
4389 break
4390 fi
4391
4392 rm -f conftest.err conftest.$ac_ext
4393
4394 done
4395 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4396 rm -f conftest.err conftest.$ac_ext
4397 if $ac_preproc_ok; then
4398   break
4399 fi
4400
4401     done
4402     ac_cv_prog_CPP=$CPP
4403
4404 fi
4405   CPP=$ac_cv_prog_CPP
4406 else
4407   ac_cv_prog_CPP=$CPP
4408 fi
4409 { echo "$as_me:$LINENO: result: $CPP" >&5
4410 echo "${ECHO_T}$CPP" >&6; }
4411 ac_preproc_ok=false
4412 for ac_c_preproc_warn_flag in '' yes
4413 do
4414   # Use a header file that comes with gcc, so configuring glibc
4415   # with a fresh cross-compiler works.
4416   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4417   # <limits.h> exists even on freestanding compilers.
4418   # On the NeXT, cc -E runs the code through the compiler's parser,
4419   # not just through cpp. "Syntax error" is here to catch this case.
4420   cat >conftest.$ac_ext <<_ACEOF
4421 /* confdefs.h.  */
4422 _ACEOF
4423 cat confdefs.h >>conftest.$ac_ext
4424 cat >>conftest.$ac_ext <<_ACEOF
4425 /* end confdefs.h.  */
4426 #ifdef __STDC__
4427 # include <limits.h>
4428 #else
4429 # include <assert.h>
4430 #endif
4431                      Syntax error
4432 _ACEOF
4433 if { (ac_try="$ac_cpp conftest.$ac_ext"
4434 case "(($ac_try" in
4435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4436   *) ac_try_echo=$ac_try;;
4437 esac
4438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4439   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4440   ac_status=$?
4441   grep -v '^ *+' conftest.er1 >conftest.err
4442   rm -f conftest.er1
4443   cat conftest.err >&5
4444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4445   (exit $ac_status); } >/dev/null && {
4446          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4447          test ! -s conftest.err
4448        }; then
4449   :
4450 else
4451   echo "$as_me: failed program was:" >&5
4452 sed 's/^/| /' conftest.$ac_ext >&5
4453
4454   # Broken: fails on valid input.
4455 continue
4456 fi
4457
4458 rm -f conftest.err conftest.$ac_ext
4459
4460   # OK, works on sane cases.  Now check whether nonexistent headers
4461   # can be detected and how.
4462   cat >conftest.$ac_ext <<_ACEOF
4463 /* confdefs.h.  */
4464 _ACEOF
4465 cat confdefs.h >>conftest.$ac_ext
4466 cat >>conftest.$ac_ext <<_ACEOF
4467 /* end confdefs.h.  */
4468 #include <ac_nonexistent.h>
4469 _ACEOF
4470 if { (ac_try="$ac_cpp conftest.$ac_ext"
4471 case "(($ac_try" in
4472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4473   *) ac_try_echo=$ac_try;;
4474 esac
4475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4476   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4477   ac_status=$?
4478   grep -v '^ *+' conftest.er1 >conftest.err
4479   rm -f conftest.er1
4480   cat conftest.err >&5
4481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4482   (exit $ac_status); } >/dev/null && {
4483          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4484          test ! -s conftest.err
4485        }; then
4486   # Broken: success on invalid input.
4487 continue
4488 else
4489   echo "$as_me: failed program was:" >&5
4490 sed 's/^/| /' conftest.$ac_ext >&5
4491
4492   # Passes both tests.
4493 ac_preproc_ok=:
4494 break
4495 fi
4496
4497 rm -f conftest.err conftest.$ac_ext
4498
4499 done
4500 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4501 rm -f conftest.err conftest.$ac_ext
4502 if $ac_preproc_ok; then
4503   :
4504 else
4505   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4506 See \`config.log' for more details." >&5
4507 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4508 See \`config.log' for more details." >&2;}
4509    { (exit 1); exit 1; }; }
4510 fi
4511
4512 ac_ext=c
4513 ac_cpp='$CPP $CPPFLAGS'
4514 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4515 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4516 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4517
4518
4519 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4520 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4521 if test "${ac_cv_path_GREP+set}" = set; then
4522   echo $ECHO_N "(cached) $ECHO_C" >&6
4523 else
4524   # Extract the first word of "grep ggrep" to use in msg output
4525 if test -z "$GREP"; then
4526 set dummy grep ggrep; ac_prog_name=$2
4527 if test "${ac_cv_path_GREP+set}" = set; then
4528   echo $ECHO_N "(cached) $ECHO_C" >&6
4529 else
4530   ac_path_GREP_found=false
4531 # Loop through the user's path and test for each of PROGNAME-LIST
4532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4533 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4534 do
4535   IFS=$as_save_IFS
4536   test -z "$as_dir" && as_dir=.
4537   for ac_prog in grep ggrep; do
4538   for ac_exec_ext in '' $ac_executable_extensions; do
4539     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4540     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4541     # Check for GNU ac_path_GREP and select it if it is found.
4542   # Check for GNU $ac_path_GREP
4543 case `"$ac_path_GREP" --version 2>&1` in
4544 *GNU*)
4545   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4546 *)
4547   ac_count=0
4548   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4549   while :
4550   do
4551     cat "conftest.in" "conftest.in" >"conftest.tmp"
4552     mv "conftest.tmp" "conftest.in"
4553     cp "conftest.in" "conftest.nl"
4554     echo 'GREP' >> "conftest.nl"
4555     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4556     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4557     ac_count=`expr $ac_count + 1`
4558     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4559       # Best one so far, save it but keep looking for a better one
4560       ac_cv_path_GREP="$ac_path_GREP"
4561       ac_path_GREP_max=$ac_count
4562     fi
4563     # 10*(2^10) chars as input seems more than enough
4564     test $ac_count -gt 10 && break
4565   done
4566   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4567 esac
4568
4569
4570     $ac_path_GREP_found && break 3
4571   done
4572 done
4573
4574 done
4575 IFS=$as_save_IFS
4576
4577
4578 fi
4579
4580 GREP="$ac_cv_path_GREP"
4581 if test -z "$GREP"; then
4582   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4583 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4584    { (exit 1); exit 1; }; }
4585 fi
4586
4587 else
4588   ac_cv_path_GREP=$GREP
4589 fi
4590
4591
4592 fi
4593 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4594 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4595  GREP="$ac_cv_path_GREP"
4596
4597
4598 { echo "$as_me:$LINENO: checking for egrep" >&5
4599 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4600 if test "${ac_cv_path_EGREP+set}" = set; then
4601   echo $ECHO_N "(cached) $ECHO_C" >&6
4602 else
4603   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4604    then ac_cv_path_EGREP="$GREP -E"
4605    else
4606      # Extract the first word of "egrep" to use in msg output
4607 if test -z "$EGREP"; then
4608 set dummy egrep; ac_prog_name=$2
4609 if test "${ac_cv_path_EGREP+set}" = set; then
4610   echo $ECHO_N "(cached) $ECHO_C" >&6
4611 else
4612   ac_path_EGREP_found=false
4613 # Loop through the user's path and test for each of PROGNAME-LIST
4614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4615 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4616 do
4617   IFS=$as_save_IFS
4618   test -z "$as_dir" && as_dir=.
4619   for ac_prog in egrep; do
4620   for ac_exec_ext in '' $ac_executable_extensions; do
4621     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4622     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4623     # Check for GNU ac_path_EGREP and select it if it is found.
4624   # Check for GNU $ac_path_EGREP
4625 case `"$ac_path_EGREP" --version 2>&1` in
4626 *GNU*)
4627   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4628 *)
4629   ac_count=0
4630   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4631   while :
4632   do
4633     cat "conftest.in" "conftest.in" >"conftest.tmp"
4634     mv "conftest.tmp" "conftest.in"
4635     cp "conftest.in" "conftest.nl"
4636     echo 'EGREP' >> "conftest.nl"
4637     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4638     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4639     ac_count=`expr $ac_count + 1`
4640     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4641       # Best one so far, save it but keep looking for a better one
4642       ac_cv_path_EGREP="$ac_path_EGREP"
4643       ac_path_EGREP_max=$ac_count
4644     fi
4645     # 10*(2^10) chars as input seems more than enough
4646     test $ac_count -gt 10 && break
4647   done
4648   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4649 esac
4650
4651
4652     $ac_path_EGREP_found && break 3
4653   done
4654 done
4655
4656 done
4657 IFS=$as_save_IFS
4658
4659
4660 fi
4661
4662 EGREP="$ac_cv_path_EGREP"
4663 if test -z "$EGREP"; then
4664   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4665 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4666    { (exit 1); exit 1; }; }
4667 fi
4668
4669 else
4670   ac_cv_path_EGREP=$EGREP
4671 fi
4672
4673
4674    fi
4675 fi
4676 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4677 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4678  EGREP="$ac_cv_path_EGREP"
4679
4680
4681 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4682 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4683 if test "${ac_cv_header_stdc+set}" = set; then
4684   echo $ECHO_N "(cached) $ECHO_C" >&6
4685 else
4686   cat >conftest.$ac_ext <<_ACEOF
4687 /* confdefs.h.  */
4688 _ACEOF
4689 cat confdefs.h >>conftest.$ac_ext
4690 cat >>conftest.$ac_ext <<_ACEOF
4691 /* end confdefs.h.  */
4692 #include <stdlib.h>
4693 #include <stdarg.h>
4694 #include <string.h>
4695 #include <float.h>
4696
4697 int
4698 main ()
4699 {
4700
4701   ;
4702   return 0;
4703 }
4704 _ACEOF
4705 rm -f conftest.$ac_objext
4706 if { (ac_try="$ac_compile"
4707 case "(($ac_try" in
4708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4709   *) ac_try_echo=$ac_try;;
4710 esac
4711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4712   (eval "$ac_compile") 2>conftest.er1
4713   ac_status=$?
4714   grep -v '^ *+' conftest.er1 >conftest.err
4715   rm -f conftest.er1
4716   cat conftest.err >&5
4717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4718   (exit $ac_status); } && {
4719          test -z "$ac_c_werror_flag" ||
4720          test ! -s conftest.err
4721        } && test -s conftest.$ac_objext; then
4722   ac_cv_header_stdc=yes
4723 else
4724   echo "$as_me: failed program was:" >&5
4725 sed 's/^/| /' conftest.$ac_ext >&5
4726
4727         ac_cv_header_stdc=no
4728 fi
4729
4730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4731
4732 if test $ac_cv_header_stdc = yes; then
4733   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4734   cat >conftest.$ac_ext <<_ACEOF
4735 /* confdefs.h.  */
4736 _ACEOF
4737 cat confdefs.h >>conftest.$ac_ext
4738 cat >>conftest.$ac_ext <<_ACEOF
4739 /* end confdefs.h.  */
4740 #include <string.h>
4741
4742 _ACEOF
4743 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4744   $EGREP "memchr" >/dev/null 2>&1; then
4745   :
4746 else
4747   ac_cv_header_stdc=no
4748 fi
4749 rm -f conftest*
4750
4751 fi
4752
4753 if test $ac_cv_header_stdc = yes; then
4754   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4755   cat >conftest.$ac_ext <<_ACEOF
4756 /* confdefs.h.  */
4757 _ACEOF
4758 cat confdefs.h >>conftest.$ac_ext
4759 cat >>conftest.$ac_ext <<_ACEOF
4760 /* end confdefs.h.  */
4761 #include <stdlib.h>
4762
4763 _ACEOF
4764 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4765   $EGREP "free" >/dev/null 2>&1; then
4766   :
4767 else
4768   ac_cv_header_stdc=no
4769 fi
4770 rm -f conftest*
4771
4772 fi
4773
4774 if test $ac_cv_header_stdc = yes; then
4775   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4776   if test "$cross_compiling" = yes; then
4777   :
4778 else
4779   cat >conftest.$ac_ext <<_ACEOF
4780 /* confdefs.h.  */
4781 _ACEOF
4782 cat confdefs.h >>conftest.$ac_ext
4783 cat >>conftest.$ac_ext <<_ACEOF
4784 /* end confdefs.h.  */
4785 #include <ctype.h>
4786 #include <stdlib.h>
4787 #if ((' ' & 0x0FF) == 0x020)
4788 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4789 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4790 #else
4791 # define ISLOWER(c) \
4792                    (('a' <= (c) && (c) <= 'i') \
4793                      || ('j' <= (c) && (c) <= 'r') \
4794                      || ('s' <= (c) && (c) <= 'z'))
4795 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4796 #endif
4797
4798 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4799 int
4800 main ()
4801 {
4802   int i;
4803   for (i = 0; i < 256; i++)
4804     if (XOR (islower (i), ISLOWER (i))
4805         || toupper (i) != TOUPPER (i))
4806       return 2;
4807   return 0;
4808 }
4809 _ACEOF
4810 rm -f conftest$ac_exeext
4811 if { (ac_try="$ac_link"
4812 case "(($ac_try" in
4813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4814   *) ac_try_echo=$ac_try;;
4815 esac
4816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4817   (eval "$ac_link") 2>&5
4818   ac_status=$?
4819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4820   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4821   { (case "(($ac_try" in
4822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4823   *) ac_try_echo=$ac_try;;
4824 esac
4825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4826   (eval "$ac_try") 2>&5
4827   ac_status=$?
4828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4829   (exit $ac_status); }; }; then
4830   :
4831 else
4832   echo "$as_me: program exited with status $ac_status" >&5
4833 echo "$as_me: failed program was:" >&5
4834 sed 's/^/| /' conftest.$ac_ext >&5
4835
4836 ( exit $ac_status )
4837 ac_cv_header_stdc=no
4838 fi
4839 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4840 fi
4841
4842
4843 fi
4844 fi
4845 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4846 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4847 if test $ac_cv_header_stdc = yes; then
4848
4849 cat >>confdefs.h <<\_ACEOF
4850 #define STDC_HEADERS 1
4851 _ACEOF
4852
4853 fi
4854
4855 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4856
4857
4858
4859
4860
4861
4862
4863
4864
4865 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4866                   inttypes.h stdint.h unistd.h
4867 do
4868 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4869 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4870 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4871 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4872   echo $ECHO_N "(cached) $ECHO_C" >&6
4873 else
4874   cat >conftest.$ac_ext <<_ACEOF
4875 /* confdefs.h.  */
4876 _ACEOF
4877 cat confdefs.h >>conftest.$ac_ext
4878 cat >>conftest.$ac_ext <<_ACEOF
4879 /* end confdefs.h.  */
4880 $ac_includes_default
4881
4882 #include <$ac_header>
4883 _ACEOF
4884 rm -f conftest.$ac_objext
4885 if { (ac_try="$ac_compile"
4886 case "(($ac_try" in
4887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4888   *) ac_try_echo=$ac_try;;
4889 esac
4890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4891   (eval "$ac_compile") 2>conftest.er1
4892   ac_status=$?
4893   grep -v '^ *+' conftest.er1 >conftest.err
4894   rm -f conftest.er1
4895   cat conftest.err >&5
4896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4897   (exit $ac_status); } && {
4898          test -z "$ac_c_werror_flag" ||
4899          test ! -s conftest.err
4900        } && test -s conftest.$ac_objext; then
4901   eval "$as_ac_Header=yes"
4902 else
4903   echo "$as_me: failed program was:" >&5
4904 sed 's/^/| /' conftest.$ac_ext >&5
4905
4906         eval "$as_ac_Header=no"
4907 fi
4908
4909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4910 fi
4911 ac_res=`eval echo '${'$as_ac_Header'}'`
4912                { echo "$as_me:$LINENO: result: $ac_res" >&5
4913 echo "${ECHO_T}$ac_res" >&6; }
4914 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4915   cat >>confdefs.h <<_ACEOF
4916 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4917 _ACEOF
4918
4919 fi
4920
4921 done
4922
4923
4924
4925
4926
4927   if test "${ac_cv_header_minix_config_h+set}" = set; then
4928   { echo "$as_me:$LINENO: checking for minix/config.h" >&5
4929 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
4930 if test "${ac_cv_header_minix_config_h+set}" = set; then
4931   echo $ECHO_N "(cached) $ECHO_C" >&6
4932 fi
4933 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4934 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
4935 else
4936   # Is the header compilable?
4937 { echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4938 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
4939 cat >conftest.$ac_ext <<_ACEOF
4940 /* confdefs.h.  */
4941 _ACEOF
4942 cat confdefs.h >>conftest.$ac_ext
4943 cat >>conftest.$ac_ext <<_ACEOF
4944 /* end confdefs.h.  */
4945 $ac_includes_default
4946 #include <minix/config.h>
4947 _ACEOF
4948 rm -f conftest.$ac_objext
4949 if { (ac_try="$ac_compile"
4950 case "(($ac_try" in
4951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4952   *) ac_try_echo=$ac_try;;
4953 esac
4954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4955   (eval "$ac_compile") 2>conftest.er1
4956   ac_status=$?
4957   grep -v '^ *+' conftest.er1 >conftest.err
4958   rm -f conftest.er1
4959   cat conftest.err >&5
4960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4961   (exit $ac_status); } && {
4962          test -z "$ac_c_werror_flag" ||
4963          test ! -s conftest.err
4964        } && test -s conftest.$ac_objext; then
4965   ac_header_compiler=yes
4966 else
4967   echo "$as_me: failed program was:" >&5
4968 sed 's/^/| /' conftest.$ac_ext >&5
4969
4970         ac_header_compiler=no
4971 fi
4972
4973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4974 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4975 echo "${ECHO_T}$ac_header_compiler" >&6; }
4976
4977 # Is the header present?
4978 { echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4979 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
4980 cat >conftest.$ac_ext <<_ACEOF
4981 /* confdefs.h.  */
4982 _ACEOF
4983 cat confdefs.h >>conftest.$ac_ext
4984 cat >>conftest.$ac_ext <<_ACEOF
4985 /* end confdefs.h.  */
4986 #include <minix/config.h>
4987 _ACEOF
4988 if { (ac_try="$ac_cpp conftest.$ac_ext"
4989 case "(($ac_try" in
4990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4991   *) ac_try_echo=$ac_try;;
4992 esac
4993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4994   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4995   ac_status=$?
4996   grep -v '^ *+' conftest.er1 >conftest.err
4997   rm -f conftest.er1
4998   cat conftest.err >&5
4999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5000   (exit $ac_status); } >/dev/null && {
5001          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5002          test ! -s conftest.err
5003        }; then
5004   ac_header_preproc=yes
5005 else
5006   echo "$as_me: failed program was:" >&5
5007 sed 's/^/| /' conftest.$ac_ext >&5
5008
5009   ac_header_preproc=no
5010 fi
5011
5012 rm -f conftest.err conftest.$ac_ext
5013 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5014 echo "${ECHO_T}$ac_header_preproc" >&6; }
5015
5016 # So?  What about this header?
5017 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5018   yes:no: )
5019     { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
5020 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5021     { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
5022 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
5023     ac_header_preproc=yes
5024     ;;
5025   no:yes:* )
5026     { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
5027 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
5028     { echo "$as_me:$LINENO: WARNING: minix/config.h:     check for missing prerequisite headers?" >&5
5029 echo "$as_me: WARNING: minix/config.h:     check for missing prerequisite headers?" >&2;}
5030     { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
5031 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
5032     { echo "$as_me:$LINENO: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&5
5033 echo "$as_me: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&2;}
5034     { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
5035 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
5036     { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
5037 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
5038     ( cat <<\_ASBOX
5039 ## ------------------------------ ##
5040 ## Report this to bug-tar@gnu.org ##
5041 ## ------------------------------ ##
5042 _ASBOX
5043      ) | sed "s/^/$as_me: WARNING:     /" >&2
5044     ;;
5045 esac
5046 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
5047 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
5048 if test "${ac_cv_header_minix_config_h+set}" = set; then
5049   echo $ECHO_N "(cached) $ECHO_C" >&6
5050 else
5051   ac_cv_header_minix_config_h=$ac_header_preproc
5052 fi
5053 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
5054 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
5055
5056 fi
5057 if test $ac_cv_header_minix_config_h = yes; then
5058   MINIX=yes
5059 else
5060   MINIX=
5061 fi
5062
5063
5064   if test "$MINIX" = yes; then
5065
5066 cat >>confdefs.h <<\_ACEOF
5067 #define _POSIX_SOURCE 1
5068 _ACEOF
5069
5070
5071 cat >>confdefs.h <<\_ACEOF
5072 #define _POSIX_1_SOURCE 2
5073 _ACEOF
5074
5075
5076 cat >>confdefs.h <<\_ACEOF
5077 #define _MINIX 1
5078 _ACEOF
5079
5080   fi
5081
5082         case "$host_os" in
5083     hpux*)
5084
5085 cat >>confdefs.h <<\_ACEOF
5086 #define _XOPEN_SOURCE 500
5087 _ACEOF
5088
5089       ;;
5090   esac
5091
5092
5093
5094   { echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
5095 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6; }
5096 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
5097   echo $ECHO_N "(cached) $ECHO_C" >&6
5098 else
5099   cat >conftest.$ac_ext <<_ACEOF
5100 /* confdefs.h.  */
5101 _ACEOF
5102 cat confdefs.h >>conftest.$ac_ext
5103 cat >>conftest.$ac_ext <<_ACEOF
5104 /* end confdefs.h.  */
5105
5106 #         define __EXTENSIONS__ 1
5107           $ac_includes_default
5108 int
5109 main ()
5110 {
5111
5112   ;
5113   return 0;
5114 }
5115 _ACEOF
5116 rm -f conftest.$ac_objext
5117 if { (ac_try="$ac_compile"
5118 case "(($ac_try" in
5119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5120   *) ac_try_echo=$ac_try;;
5121 esac
5122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5123   (eval "$ac_compile") 2>conftest.er1
5124   ac_status=$?
5125   grep -v '^ *+' conftest.er1 >conftest.err
5126   rm -f conftest.er1
5127   cat conftest.err >&5
5128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5129   (exit $ac_status); } && {
5130          test -z "$ac_c_werror_flag" ||
5131          test ! -s conftest.err
5132        } && test -s conftest.$ac_objext; then
5133   ac_cv_safe_to_define___extensions__=yes
5134 else
5135   echo "$as_me: failed program was:" >&5
5136 sed 's/^/| /' conftest.$ac_ext >&5
5137
5138         ac_cv_safe_to_define___extensions__=no
5139 fi
5140
5141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5142 fi
5143 { echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
5144 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6; }
5145   test $ac_cv_safe_to_define___extensions__ = yes &&
5146     cat >>confdefs.h <<\_ACEOF
5147 #define __EXTENSIONS__ 1
5148 _ACEOF
5149
5150   cat >>confdefs.h <<\_ACEOF
5151 #define _ALL_SOURCE 1
5152 _ACEOF
5153
5154   cat >>confdefs.h <<\_ACEOF
5155 #define _GNU_SOURCE 1
5156 _ACEOF
5157
5158   cat >>confdefs.h <<\_ACEOF
5159 #define _POSIX_PTHREAD_SEMANTICS 1
5160 _ACEOF
5161
5162   cat >>confdefs.h <<\_ACEOF
5163 #define _TANDEM_SOURCE 1
5164 _ACEOF
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
5175 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
5176 if test "${ac_cv_sys_largefile_source+set}" = set; then
5177   echo $ECHO_N "(cached) $ECHO_C" >&6
5178 else
5179   while :; do
5180   cat >conftest.$ac_ext <<_ACEOF
5181 /* confdefs.h.  */
5182 _ACEOF
5183 cat confdefs.h >>conftest.$ac_ext
5184 cat >>conftest.$ac_ext <<_ACEOF
5185 /* end confdefs.h.  */
5186 #include <stdio.h>
5187 int
5188 main ()
5189 {
5190 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
5191   ;
5192   return 0;
5193 }
5194 _ACEOF
5195 rm -f conftest.$ac_objext conftest$ac_exeext
5196 if { (ac_try="$ac_link"
5197 case "(($ac_try" in
5198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5199   *) ac_try_echo=$ac_try;;
5200 esac
5201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5202   (eval "$ac_link") 2>conftest.er1
5203   ac_status=$?
5204   grep -v '^ *+' conftest.er1 >conftest.err
5205   rm -f conftest.er1
5206   cat conftest.err >&5
5207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5208   (exit $ac_status); } && {
5209          test -z "$ac_c_werror_flag" ||
5210          test ! -s conftest.err
5211        } && test -s conftest$ac_exeext &&
5212        $as_test_x conftest$ac_exeext; then
5213   ac_cv_sys_largefile_source=no; break
5214 else
5215   echo "$as_me: failed program was:" >&5
5216 sed 's/^/| /' conftest.$ac_ext >&5
5217
5218
5219 fi
5220
5221 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5222       conftest$ac_exeext conftest.$ac_ext
5223   cat >conftest.$ac_ext <<_ACEOF
5224 /* confdefs.h.  */
5225 _ACEOF
5226 cat confdefs.h >>conftest.$ac_ext
5227 cat >>conftest.$ac_ext <<_ACEOF
5228 /* end confdefs.h.  */
5229 #define _LARGEFILE_SOURCE 1
5230 #include <stdio.h>
5231 int
5232 main ()
5233 {
5234 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
5235   ;
5236   return 0;
5237 }
5238 _ACEOF
5239 rm -f conftest.$ac_objext conftest$ac_exeext
5240 if { (ac_try="$ac_link"
5241 case "(($ac_try" in
5242   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5243   *) ac_try_echo=$ac_try;;
5244 esac
5245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5246   (eval "$ac_link") 2>conftest.er1
5247   ac_status=$?
5248   grep -v '^ *+' conftest.er1 >conftest.err
5249   rm -f conftest.er1
5250   cat conftest.err >&5
5251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5252   (exit $ac_status); } && {
5253          test -z "$ac_c_werror_flag" ||
5254          test ! -s conftest.err
5255        } && test -s conftest$ac_exeext &&
5256        $as_test_x conftest$ac_exeext; then
5257   ac_cv_sys_largefile_source=1; break
5258 else
5259   echo "$as_me: failed program was:" >&5
5260 sed 's/^/| /' conftest.$ac_ext >&5
5261
5262
5263 fi
5264
5265 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5266       conftest$ac_exeext conftest.$ac_ext
5267   ac_cv_sys_largefile_source=unknown
5268   break
5269 done
5270 fi
5271 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
5272 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
5273 case $ac_cv_sys_largefile_source in #(
5274   no | unknown) ;;
5275   *)
5276 cat >>confdefs.h <<_ACEOF
5277 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
5278 _ACEOF
5279 ;;
5280 esac
5281 rm -f conftest*
5282
5283 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
5284 # in glibc 2.1.3, but that breaks too many other things.
5285 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
5286 if test $ac_cv_sys_largefile_source != unknown; then
5287
5288 cat >>confdefs.h <<\_ACEOF
5289 #define HAVE_FSEEKO 1
5290 _ACEOF
5291
5292 fi
5293
5294    case $ac_cv_prog_cc_stdc in
5295   no) ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;;
5296   *) { echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5
5297 echo $ECHO_N "checking for $CC option to accept ISO C99... $ECHO_C" >&6; }
5298 if test "${ac_cv_prog_cc_c99+set}" = set; then
5299   echo $ECHO_N "(cached) $ECHO_C" >&6
5300 else
5301   ac_cv_prog_cc_c99=no
5302 ac_save_CC=$CC
5303 cat >conftest.$ac_ext <<_ACEOF
5304 /* confdefs.h.  */
5305 _ACEOF
5306 cat confdefs.h >>conftest.$ac_ext
5307 cat >>conftest.$ac_ext <<_ACEOF
5308 /* end confdefs.h.  */
5309 #include <stdarg.h>
5310 #include <stdbool.h>
5311 #include <stdlib.h>
5312 #include <wchar.h>
5313 #include <stdio.h>
5314
5315 // Check varargs macros.  These examples are taken from C99 6.10.3.5.
5316 #define debug(...) fprintf (stderr, __VA_ARGS__)
5317 #define showlist(...) puts (#__VA_ARGS__)
5318 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
5319 static void
5320 test_varargs_macros (void)
5321 {
5322   int x = 1234;
5323   int y = 5678;
5324   debug ("Flag");
5325   debug ("X = %d\n", x);
5326   showlist (The first, second, and third items.);
5327   report (x>y, "x is %d but y is %d", x, y);
5328 }
5329
5330 // Check long long types.
5331 #define BIG64 18446744073709551615ull
5332 #define BIG32 4294967295ul
5333 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
5334 #if !BIG_OK
5335   your preprocessor is broken;
5336 #endif
5337 #if BIG_OK
5338 #else
5339   your preprocessor is broken;
5340 #endif
5341 static long long int bignum = -9223372036854775807LL;
5342 static unsigned long long int ubignum = BIG64;
5343
5344 struct incomplete_array
5345 {
5346   int datasize;
5347   double data[];
5348 };
5349
5350 struct named_init {
5351   int number;
5352   const wchar_t *name;
5353   double average;
5354 };
5355
5356 typedef const char *ccp;
5357
5358 static inline int
5359 test_restrict (ccp restrict text)
5360 {
5361   // See if C++-style comments work.
5362   // Iterate through items via the restricted pointer.
5363   // Also check for declarations in for loops.
5364   for (unsigned int i = 0; *(text+i) != '\0'; ++i)
5365     continue;
5366   return 0;
5367 }
5368
5369 // Check varargs and va_copy.
5370 static void
5371 test_varargs (const char *format, ...)
5372 {
5373   va_list args;
5374   va_start (args, format);
5375   va_list args_copy;
5376   va_copy (args_copy, args);
5377
5378   const char *str;
5379   int number;
5380   float fnumber;
5381
5382   while (*format)
5383     {
5384       switch (*format++)
5385         {
5386         case 's': // string
5387           str = va_arg (args_copy, const char *);
5388           break;
5389         case 'd': // int
5390           number = va_arg (args_copy, int);
5391           break;
5392         case 'f': // float
5393           fnumber = va_arg (args_copy, double);
5394           break;
5395         default:
5396           break;
5397         }
5398     }
5399   va_end (args_copy);
5400   va_end (args);
5401 }
5402
5403 int
5404 main ()
5405 {
5406
5407   // Check bool.
5408   _Bool success = false;
5409
5410   // Check restrict.
5411   if (test_restrict ("String literal") == 0)
5412     success = true;
5413   char *restrict newvar = "Another string";
5414
5415   // Check varargs.
5416   test_varargs ("s, d' f .", "string", 65, 34.234);
5417   test_varargs_macros ();
5418
5419   // Check flexible array members.
5420   struct incomplete_array *ia =
5421     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5422   ia->datasize = 10;
5423   for (int i = 0; i < ia->datasize; ++i)
5424     ia->data[i] = i * 1.234;
5425
5426   // Check named initializers.
5427   struct named_init ni = {
5428     .number = 34,
5429     .name = L"Test wide string",
5430     .average = 543.34343,
5431   };
5432
5433   ni.number = 58;
5434
5435   int dynamic_array[ni.number];
5436   dynamic_array[ni.number - 1] = 543;
5437
5438   // work around unused variable warnings
5439   return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5440           || dynamic_array[ni.number - 1] != 543);
5441
5442   ;
5443   return 0;
5444 }
5445 _ACEOF
5446 for ac_arg in '' -std=gnu99 -c99 -qlanglvl=extc99
5447 do
5448   CC="$ac_save_CC $ac_arg"
5449   rm -f conftest.$ac_objext
5450 if { (ac_try="$ac_compile"
5451 case "(($ac_try" in
5452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5453   *) ac_try_echo=$ac_try;;
5454 esac
5455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5456   (eval "$ac_compile") 2>conftest.er1
5457   ac_status=$?
5458   grep -v '^ *+' conftest.er1 >conftest.err
5459   rm -f conftest.er1
5460   cat conftest.err >&5
5461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5462   (exit $ac_status); } && {
5463          test -z "$ac_c_werror_flag" ||
5464          test ! -s conftest.err
5465        } && test -s conftest.$ac_objext; then
5466   ac_cv_prog_cc_c99=$ac_arg
5467 else
5468   echo "$as_me: failed program was:" >&5
5469 sed 's/^/| /' conftest.$ac_ext >&5
5470
5471
5472 fi
5473
5474 rm -f core conftest.err conftest.$ac_objext
5475   test "x$ac_cv_prog_cc_c99" != "xno" && break
5476 done
5477 rm -f conftest.$ac_ext
5478 CC=$ac_save_CC
5479
5480 fi
5481 # AC_CACHE_VAL
5482 case "x$ac_cv_prog_cc_c99" in
5483   x)
5484     { echo "$as_me:$LINENO: result: none needed" >&5
5485 echo "${ECHO_T}none needed" >&6; } ;;
5486   xno)
5487     { echo "$as_me:$LINENO: result: unsupported" >&5
5488 echo "${ECHO_T}unsupported" >&6; } ;;
5489   *)
5490     CC="$CC $ac_cv_prog_cc_c99"
5491     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5
5492 echo "${ECHO_T}$ac_cv_prog_cc_c99" >&6; } ;;
5493 esac
5494 if test "x$ac_cv_prog_cc_c99" != xno; then
5495   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5496 else
5497   { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5498 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5499 if test "${ac_cv_prog_cc_c89+set}" = set; then
5500   echo $ECHO_N "(cached) $ECHO_C" >&6
5501 else
5502   ac_cv_prog_cc_c89=no
5503 ac_save_CC=$CC
5504 cat >conftest.$ac_ext <<_ACEOF
5505 /* confdefs.h.  */
5506 _ACEOF
5507 cat confdefs.h >>conftest.$ac_ext
5508 cat >>conftest.$ac_ext <<_ACEOF
5509 /* end confdefs.h.  */
5510 #include <stdarg.h>
5511 #include <stdio.h>
5512 #include <sys/types.h>
5513 #include <sys/stat.h>
5514 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5515 struct buf { int x; };
5516 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5517 static char *e (p, i)
5518      char **p;
5519      int i;
5520 {
5521   return p[i];
5522 }
5523 static char *f (char * (*g) (char **, int), char **p, ...)
5524 {
5525   char *s;
5526   va_list v;
5527   va_start (v,p);
5528   s = g (p, va_arg (v,int));
5529   va_end (v);
5530   return s;
5531 }
5532
5533 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5534    function prototypes and stuff, but not '\xHH' hex character constants.
5535    These don't provoke an error unfortunately, instead are silently treated
5536    as 'x'.  The following induces an error, until -std is added to get
5537    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5538    array size at least.  It's necessary to write '\x00'==0 to get something
5539    that's true only with -std.  */
5540 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5541
5542 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5543    inside strings and character constants.  */
5544 #define FOO(x) 'x'
5545 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5546
5547 int test (int i, double x);
5548 struct s1 {int (*f) (int a);};
5549 struct s2 {int (*f) (double a);};
5550 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5551 int argc;
5552 char **argv;
5553 int
5554 main ()
5555 {
5556 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5557   ;
5558   return 0;
5559 }
5560 _ACEOF
5561 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5562         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5563 do
5564   CC="$ac_save_CC $ac_arg"
5565   rm -f conftest.$ac_objext
5566 if { (ac_try="$ac_compile"
5567 case "(($ac_try" in
5568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5569   *) ac_try_echo=$ac_try;;
5570 esac
5571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5572   (eval "$ac_compile") 2>conftest.er1
5573   ac_status=$?
5574   grep -v '^ *+' conftest.er1 >conftest.err
5575   rm -f conftest.er1
5576   cat conftest.err >&5
5577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5578   (exit $ac_status); } && {
5579          test -z "$ac_c_werror_flag" ||
5580          test ! -s conftest.err
5581        } && test -s conftest.$ac_objext; then
5582   ac_cv_prog_cc_c89=$ac_arg
5583 else
5584   echo "$as_me: failed program was:" >&5
5585 sed 's/^/| /' conftest.$ac_ext >&5
5586
5587
5588 fi
5589
5590 rm -f core conftest.err conftest.$ac_objext
5591   test "x$ac_cv_prog_cc_c89" != "xno" && break
5592 done
5593 rm -f conftest.$ac_ext
5594 CC=$ac_save_CC
5595
5596 fi
5597 # AC_CACHE_VAL
5598 case "x$ac_cv_prog_cc_c89" in
5599   x)
5600     { echo "$as_me:$LINENO: result: none needed" >&5
5601 echo "${ECHO_T}none needed" >&6; } ;;
5602   xno)
5603     { echo "$as_me:$LINENO: result: unsupported" >&5
5604 echo "${ECHO_T}unsupported" >&6; } ;;
5605   *)
5606     CC="$CC $ac_cv_prog_cc_c89"
5607     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5608 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5609 esac
5610 if test "x$ac_cv_prog_cc_c89" != xno; then
5611   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5612 else
5613   ac_cv_prog_cc_stdc=no
5614 fi
5615
5616
5617 fi
5618
5619  ;;
5620 esac
5621   { echo "$as_me:$LINENO: checking for $CC option to accept ISO Standard C" >&5
5622 echo $ECHO_N "checking for $CC option to accept ISO Standard C... $ECHO_C" >&6; }
5623   if test "${ac_cv_prog_cc_stdc+set}" = set; then
5624   echo $ECHO_N "(cached) $ECHO_C" >&6
5625 fi
5626
5627   case $ac_cv_prog_cc_stdc in
5628   no) { echo "$as_me:$LINENO: result: unsupported" >&5
5629 echo "${ECHO_T}unsupported" >&6; } ;;
5630   '') { echo "$as_me:$LINENO: result: none needed" >&5
5631 echo "${ECHO_T}none needed" >&6; } ;;
5632   *) { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
5633 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6; } ;;
5634 esac
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645 # Check whether --enable-largefile was given.
5646 if test "${enable_largefile+set}" = set; then
5647   enableval=$enable_largefile;
5648 fi
5649
5650 if test "$enable_largefile" != no; then
5651
5652   { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5653 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5654 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5655   echo $ECHO_N "(cached) $ECHO_C" >&6
5656 else
5657   ac_cv_sys_largefile_CC=no
5658      if test "$GCC" != yes; then
5659        ac_save_CC=$CC
5660        while :; do
5661          # IRIX 6.2 and later do not support large files by default,
5662          # so use the C compiler's -n32 option if that helps.
5663          cat >conftest.$ac_ext <<_ACEOF
5664 /* confdefs.h.  */
5665 _ACEOF
5666 cat confdefs.h >>conftest.$ac_ext
5667 cat >>conftest.$ac_ext <<_ACEOF
5668 /* end confdefs.h.  */
5669 #include <sys/types.h>
5670  /* Check that off_t can represent 2**63 - 1 correctly.
5671     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5672     since some C++ compilers masquerading as C compilers
5673     incorrectly reject 9223372036854775807.  */
5674 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5675   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5676                        && LARGE_OFF_T % 2147483647 == 1)
5677                       ? 1 : -1];
5678 int
5679 main ()
5680 {
5681
5682   ;
5683   return 0;
5684 }
5685 _ACEOF
5686          rm -f conftest.$ac_objext
5687 if { (ac_try="$ac_compile"
5688 case "(($ac_try" in
5689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5690   *) ac_try_echo=$ac_try;;
5691 esac
5692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5693   (eval "$ac_compile") 2>conftest.er1
5694   ac_status=$?
5695   grep -v '^ *+' conftest.er1 >conftest.err
5696   rm -f conftest.er1
5697   cat conftest.err >&5
5698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5699   (exit $ac_status); } && {
5700          test -z "$ac_c_werror_flag" ||
5701          test ! -s conftest.err
5702        } && test -s conftest.$ac_objext; then
5703   break
5704 else
5705   echo "$as_me: failed program was:" >&5
5706 sed 's/^/| /' conftest.$ac_ext >&5
5707
5708
5709 fi
5710
5711 rm -f core conftest.err conftest.$ac_objext
5712          CC="$CC -n32"
5713          rm -f conftest.$ac_objext
5714 if { (ac_try="$ac_compile"
5715 case "(($ac_try" in
5716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5717   *) ac_try_echo=$ac_try;;
5718 esac
5719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5720   (eval "$ac_compile") 2>conftest.er1
5721   ac_status=$?
5722   grep -v '^ *+' conftest.er1 >conftest.err
5723   rm -f conftest.er1
5724   cat conftest.err >&5
5725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5726   (exit $ac_status); } && {
5727          test -z "$ac_c_werror_flag" ||
5728          test ! -s conftest.err
5729        } && test -s conftest.$ac_objext; then
5730   ac_cv_sys_largefile_CC=' -n32'; break
5731 else
5732   echo "$as_me: failed program was:" >&5
5733 sed 's/^/| /' conftest.$ac_ext >&5
5734
5735
5736 fi
5737
5738 rm -f core conftest.err conftest.$ac_objext
5739          break
5740        done
5741        CC=$ac_save_CC
5742        rm -f conftest.$ac_ext
5743     fi
5744 fi
5745 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5746 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5747   if test "$ac_cv_sys_largefile_CC" != no; then
5748     CC=$CC$ac_cv_sys_largefile_CC
5749   fi
5750
5751   { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5752 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5753 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5754   echo $ECHO_N "(cached) $ECHO_C" >&6
5755 else
5756   while :; do
5757   cat >conftest.$ac_ext <<_ACEOF
5758 /* confdefs.h.  */
5759 _ACEOF
5760 cat confdefs.h >>conftest.$ac_ext
5761 cat >>conftest.$ac_ext <<_ACEOF
5762 /* end confdefs.h.  */
5763 #include <sys/types.h>
5764  /* Check that off_t can represent 2**63 - 1 correctly.
5765     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5766     since some C++ compilers masquerading as C compilers
5767     incorrectly reject 9223372036854775807.  */
5768 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5769   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5770                        && LARGE_OFF_T % 2147483647 == 1)
5771                       ? 1 : -1];
5772 int
5773 main ()
5774 {
5775
5776   ;
5777   return 0;
5778 }
5779 _ACEOF
5780 rm -f conftest.$ac_objext
5781 if { (ac_try="$ac_compile"
5782 case "(($ac_try" in
5783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5784   *) ac_try_echo=$ac_try;;
5785 esac
5786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5787   (eval "$ac_compile") 2>conftest.er1
5788   ac_status=$?
5789   grep -v '^ *+' conftest.er1 >conftest.err
5790   rm -f conftest.er1
5791   cat conftest.err >&5
5792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5793   (exit $ac_status); } && {
5794          test -z "$ac_c_werror_flag" ||
5795          test ! -s conftest.err
5796        } && test -s conftest.$ac_objext; then
5797   ac_cv_sys_file_offset_bits=no; break
5798 else
5799   echo "$as_me: failed program was:" >&5
5800 sed 's/^/| /' conftest.$ac_ext >&5
5801
5802
5803 fi
5804
5805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5806   cat >conftest.$ac_ext <<_ACEOF
5807 /* confdefs.h.  */
5808 _ACEOF
5809 cat confdefs.h >>conftest.$ac_ext
5810 cat >>conftest.$ac_ext <<_ACEOF
5811 /* end confdefs.h.  */
5812 #define _FILE_OFFSET_BITS 64
5813 #include <sys/types.h>
5814  /* Check that off_t can represent 2**63 - 1 correctly.
5815     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5816     since some C++ compilers masquerading as C compilers
5817     incorrectly reject 9223372036854775807.  */
5818 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5819   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5820                        && LARGE_OFF_T % 2147483647 == 1)
5821                       ? 1 : -1];
5822 int
5823 main ()
5824 {
5825
5826   ;
5827   return 0;
5828 }
5829 _ACEOF
5830 rm -f conftest.$ac_objext
5831 if { (ac_try="$ac_compile"
5832 case "(($ac_try" in
5833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5834   *) ac_try_echo=$ac_try;;
5835 esac
5836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5837   (eval "$ac_compile") 2>conftest.er1
5838   ac_status=$?
5839   grep -v '^ *+' conftest.er1 >conftest.err
5840   rm -f conftest.er1
5841   cat conftest.err >&5
5842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5843   (exit $ac_status); } && {
5844          test -z "$ac_c_werror_flag" ||
5845          test ! -s conftest.err
5846        } && test -s conftest.$ac_objext; then
5847   ac_cv_sys_file_offset_bits=64; break
5848 else
5849   echo "$as_me: failed program was:" >&5
5850 sed 's/^/| /' conftest.$ac_ext >&5
5851
5852
5853 fi
5854
5855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5856   ac_cv_sys_file_offset_bits=unknown
5857   break
5858 done
5859 fi
5860 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5861 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5862 case $ac_cv_sys_file_offset_bits in #(
5863   no | unknown) ;;
5864   *)
5865 cat >>confdefs.h <<_ACEOF
5866 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5867 _ACEOF
5868 ;;
5869 esac
5870 rm -f conftest*
5871   if test $ac_cv_sys_file_offset_bits = unknown; then
5872     { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5873 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5874 if test "${ac_cv_sys_large_files+set}" = set; then
5875   echo $ECHO_N "(cached) $ECHO_C" >&6
5876 else
5877   while :; do
5878   cat >conftest.$ac_ext <<_ACEOF
5879 /* confdefs.h.  */
5880 _ACEOF
5881 cat confdefs.h >>conftest.$ac_ext
5882 cat >>conftest.$ac_ext <<_ACEOF
5883 /* end confdefs.h.  */
5884 #include <sys/types.h>
5885  /* Check that off_t can represent 2**63 - 1 correctly.
5886     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5887     since some C++ compilers masquerading as C compilers
5888     incorrectly reject 9223372036854775807.  */
5889 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5890   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5891                        && LARGE_OFF_T % 2147483647 == 1)
5892                       ? 1 : -1];
5893 int
5894 main ()
5895 {
5896
5897   ;
5898   return 0;
5899 }
5900 _ACEOF
5901 rm -f conftest.$ac_objext
5902 if { (ac_try="$ac_compile"
5903 case "(($ac_try" in
5904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5905   *) ac_try_echo=$ac_try;;
5906 esac
5907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5908   (eval "$ac_compile") 2>conftest.er1
5909   ac_status=$?
5910   grep -v '^ *+' conftest.er1 >conftest.err
5911   rm -f conftest.er1
5912   cat conftest.err >&5
5913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5914   (exit $ac_status); } && {
5915          test -z "$ac_c_werror_flag" ||
5916          test ! -s conftest.err
5917        } && test -s conftest.$ac_objext; then
5918   ac_cv_sys_large_files=no; break
5919 else
5920   echo "$as_me: failed program was:" >&5
5921 sed 's/^/| /' conftest.$ac_ext >&5
5922
5923
5924 fi
5925
5926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5927   cat >conftest.$ac_ext <<_ACEOF
5928 /* confdefs.h.  */
5929 _ACEOF
5930 cat confdefs.h >>conftest.$ac_ext
5931 cat >>conftest.$ac_ext <<_ACEOF
5932 /* end confdefs.h.  */
5933 #define _LARGE_FILES 1
5934 #include <sys/types.h>
5935  /* Check that off_t can represent 2**63 - 1 correctly.
5936     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5937     since some C++ compilers masquerading as C compilers
5938     incorrectly reject 9223372036854775807.  */
5939 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5940   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5941                        && LARGE_OFF_T % 2147483647 == 1)
5942                       ? 1 : -1];
5943 int
5944 main ()
5945 {
5946
5947   ;
5948   return 0;
5949 }
5950 _ACEOF
5951 rm -f conftest.$ac_objext
5952 if { (ac_try="$ac_compile"
5953 case "(($ac_try" in
5954   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5955   *) ac_try_echo=$ac_try;;
5956 esac
5957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5958   (eval "$ac_compile") 2>conftest.er1
5959   ac_status=$?
5960   grep -v '^ *+' conftest.er1 >conftest.err
5961   rm -f conftest.er1
5962   cat conftest.err >&5
5963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5964   (exit $ac_status); } && {
5965          test -z "$ac_c_werror_flag" ||
5966          test ! -s conftest.err
5967        } && test -s conftest.$ac_objext; then
5968   ac_cv_sys_large_files=1; break
5969 else
5970   echo "$as_me: failed program was:" >&5
5971 sed 's/^/| /' conftest.$ac_ext >&5
5972
5973
5974 fi
5975
5976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5977   ac_cv_sys_large_files=unknown
5978   break
5979 done
5980 fi
5981 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5982 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5983 case $ac_cv_sys_large_files in #(
5984   no | unknown) ;;
5985   *)
5986 cat >>confdefs.h <<_ACEOF
5987 #define _LARGE_FILES $ac_cv_sys_large_files
5988 _ACEOF
5989 ;;
5990 esac
5991 rm -f conftest*
5992   fi
5993 fi
5994
5995
5996         { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
5997 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
5998 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
5999   echo $ECHO_N "(cached) $ECHO_C" >&6
6000 else
6001   ac_check_lib_save_LIBS=$LIBS
6002 LIBS="-lcposix  $LIBS"
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
6010 /* Override any GCC internal prototype to avoid an error.
6011    Use char because int might match the return type of a GCC
6012    builtin and then its argument prototype would still apply.  */
6013 #ifdef __cplusplus
6014 extern "C"
6015 #endif
6016 char strerror ();
6017 int
6018 main ()
6019 {
6020 return strerror ();
6021   ;
6022   return 0;
6023 }
6024 _ACEOF
6025 rm -f conftest.$ac_objext conftest$ac_exeext
6026 if { (ac_try="$ac_link"
6027 case "(($ac_try" in
6028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6029   *) ac_try_echo=$ac_try;;
6030 esac
6031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6032   (eval "$ac_link") 2>conftest.er1
6033   ac_status=$?
6034   grep -v '^ *+' conftest.er1 >conftest.err
6035   rm -f conftest.er1
6036   cat conftest.err >&5
6037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6038   (exit $ac_status); } && {
6039          test -z "$ac_c_werror_flag" ||
6040          test ! -s conftest.err
6041        } && test -s conftest$ac_exeext &&
6042        $as_test_x conftest$ac_exeext; then
6043   ac_cv_lib_cposix_strerror=yes
6044 else
6045   echo "$as_me: failed program was:" >&5
6046 sed 's/^/| /' conftest.$ac_ext >&5
6047
6048         ac_cv_lib_cposix_strerror=no
6049 fi
6050
6051 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6052       conftest$ac_exeext conftest.$ac_ext
6053 LIBS=$ac_check_lib_save_LIBS
6054 fi
6055 { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
6056 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
6057 if test $ac_cv_lib_cposix_strerror = yes; then
6058   LIBS="$LIBS -lcposix"
6059 fi
6060
6061
6062
6063 { echo "$as_me:$LINENO: checking for inline" >&5
6064 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
6065 if test "${ac_cv_c_inline+set}" = set; then
6066   echo $ECHO_N "(cached) $ECHO_C" >&6
6067 else
6068   ac_cv_c_inline=no
6069 for ac_kw in inline __inline__ __inline; do
6070   cat >conftest.$ac_ext <<_ACEOF
6071 /* confdefs.h.  */
6072 _ACEOF
6073 cat confdefs.h >>conftest.$ac_ext
6074 cat >>conftest.$ac_ext <<_ACEOF
6075 /* end confdefs.h.  */
6076 #ifndef __cplusplus
6077 typedef int foo_t;
6078 static $ac_kw foo_t static_foo () {return 0; }
6079 $ac_kw foo_t foo () {return 0; }
6080 #endif
6081
6082 _ACEOF
6083 rm -f conftest.$ac_objext
6084 if { (ac_try="$ac_compile"
6085 case "(($ac_try" in
6086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6087   *) ac_try_echo=$ac_try;;
6088 esac
6089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6090   (eval "$ac_compile") 2>conftest.er1
6091   ac_status=$?
6092   grep -v '^ *+' conftest.er1 >conftest.err
6093   rm -f conftest.er1
6094   cat conftest.err >&5
6095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6096   (exit $ac_status); } && {
6097          test -z "$ac_c_werror_flag" ||
6098          test ! -s conftest.err
6099        } && test -s conftest.$ac_objext; then
6100   ac_cv_c_inline=$ac_kw
6101 else
6102   echo "$as_me: failed program was:" >&5
6103 sed 's/^/| /' conftest.$ac_ext >&5
6104
6105
6106 fi
6107
6108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6109   test "$ac_cv_c_inline" != no && break
6110 done
6111
6112 fi
6113 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
6114 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
6115
6116
6117 case $ac_cv_c_inline in
6118   inline | yes) ;;
6119   *)
6120     case $ac_cv_c_inline in
6121       no) ac_val=;;
6122       *) ac_val=$ac_cv_c_inline;;
6123     esac
6124     cat >>confdefs.h <<_ACEOF
6125 #ifndef __cplusplus
6126 #define inline $ac_val
6127 #endif
6128 _ACEOF
6129     ;;
6130 esac
6131
6132
6133
6134
6135
6136
6137 for ac_header in $ac_header_list
6138 do
6139 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6140 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6141   { echo "$as_me:$LINENO: checking for $ac_header" >&5
6142 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6143 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6144   echo $ECHO_N "(cached) $ECHO_C" >&6
6145 fi
6146 ac_res=`eval echo '${'$as_ac_Header'}'`
6147                { echo "$as_me:$LINENO: result: $ac_res" >&5
6148 echo "${ECHO_T}$ac_res" >&6; }
6149 else
6150   # Is the header compilable?
6151 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6152 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6153 cat >conftest.$ac_ext <<_ACEOF
6154 /* confdefs.h.  */
6155 _ACEOF
6156 cat confdefs.h >>conftest.$ac_ext
6157 cat >>conftest.$ac_ext <<_ACEOF
6158 /* end confdefs.h.  */
6159 $ac_includes_default
6160 #include <$ac_header>
6161 _ACEOF
6162 rm -f conftest.$ac_objext
6163 if { (ac_try="$ac_compile"
6164 case "(($ac_try" in
6165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6166   *) ac_try_echo=$ac_try;;
6167 esac
6168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6169   (eval "$ac_compile") 2>conftest.er1
6170   ac_status=$?
6171   grep -v '^ *+' conftest.er1 >conftest.err
6172   rm -f conftest.er1
6173   cat conftest.err >&5
6174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6175   (exit $ac_status); } && {
6176          test -z "$ac_c_werror_flag" ||
6177          test ! -s conftest.err
6178        } && test -s conftest.$ac_objext; then
6179   ac_header_compiler=yes
6180 else
6181   echo "$as_me: failed program was:" >&5
6182 sed 's/^/| /' conftest.$ac_ext >&5
6183
6184         ac_header_compiler=no
6185 fi
6186
6187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6188 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6189 echo "${ECHO_T}$ac_header_compiler" >&6; }
6190
6191 # Is the header present?
6192 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6193 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6194 cat >conftest.$ac_ext <<_ACEOF
6195 /* confdefs.h.  */
6196 _ACEOF
6197 cat confdefs.h >>conftest.$ac_ext
6198 cat >>conftest.$ac_ext <<_ACEOF
6199 /* end confdefs.h.  */
6200 #include <$ac_header>
6201 _ACEOF
6202 if { (ac_try="$ac_cpp conftest.$ac_ext"
6203 case "(($ac_try" in
6204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6205   *) ac_try_echo=$ac_try;;
6206 esac
6207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6208   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6209   ac_status=$?
6210   grep -v '^ *+' conftest.er1 >conftest.err
6211   rm -f conftest.er1
6212   cat conftest.err >&5
6213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6214   (exit $ac_status); } >/dev/null && {
6215          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6216          test ! -s conftest.err
6217        }; then
6218   ac_header_preproc=yes
6219 else
6220   echo "$as_me: failed program was:" >&5
6221 sed 's/^/| /' conftest.$ac_ext >&5
6222
6223   ac_header_preproc=no
6224 fi
6225
6226 rm -f conftest.err conftest.$ac_ext
6227 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6228 echo "${ECHO_T}$ac_header_preproc" >&6; }
6229
6230 # So?  What about this header?
6231 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6232   yes:no: )
6233     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6234 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6235     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6236 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6237     ac_header_preproc=yes
6238     ;;
6239   no:yes:* )
6240     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6241 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6242     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6243 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6244     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6245 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6246     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6247 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6248     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6249 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6250     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6251 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6252     ( cat <<\_ASBOX
6253 ## ------------------------------ ##
6254 ## Report this to bug-tar@gnu.org ##
6255 ## ------------------------------ ##
6256 _ASBOX
6257      ) | sed "s/^/$as_me: WARNING:     /" >&2
6258     ;;
6259 esac
6260 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6261 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6262 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6263   echo $ECHO_N "(cached) $ECHO_C" >&6
6264 else
6265   eval "$as_ac_Header=\$ac_header_preproc"
6266 fi
6267 ac_res=`eval echo '${'$as_ac_Header'}'`
6268                { echo "$as_me:$LINENO: result: $ac_res" >&5
6269 echo "${ECHO_T}$ac_res" >&6; }
6270
6271 fi
6272 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6273   cat >>confdefs.h <<_ACEOF
6274 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6275 _ACEOF
6276
6277 fi
6278
6279 done
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363 for ac_header in sys/buf.h
6364 do
6365 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6366 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6367 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6368 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6369   echo $ECHO_N "(cached) $ECHO_C" >&6
6370 else
6371   cat >conftest.$ac_ext <<_ACEOF
6372 /* confdefs.h.  */
6373 _ACEOF
6374 cat confdefs.h >>conftest.$ac_ext
6375 cat >>conftest.$ac_ext <<_ACEOF
6376 /* end confdefs.h.  */
6377 #if HAVE_SYS_PARAM_H
6378 #include <sys/param.h>
6379 #endif
6380
6381 #include <$ac_header>
6382 _ACEOF
6383 rm -f conftest.$ac_objext
6384 if { (ac_try="$ac_compile"
6385 case "(($ac_try" in
6386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6387   *) ac_try_echo=$ac_try;;
6388 esac
6389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6390   (eval "$ac_compile") 2>conftest.er1
6391   ac_status=$?
6392   grep -v '^ *+' conftest.er1 >conftest.err
6393   rm -f conftest.er1
6394   cat conftest.err >&5
6395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6396   (exit $ac_status); } && {
6397          test -z "$ac_c_werror_flag" ||
6398          test ! -s conftest.err
6399        } && test -s conftest.$ac_objext; then
6400   eval "$as_ac_Header=yes"
6401 else
6402   echo "$as_me: failed program was:" >&5
6403 sed 's/^/| /' conftest.$ac_ext >&5
6404
6405         eval "$as_ac_Header=no"
6406 fi
6407
6408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6409 fi
6410 ac_res=`eval echo '${'$as_ac_Header'}'`
6411                { echo "$as_me:$LINENO: result: $ac_res" >&5
6412 echo "${ECHO_T}$ac_res" >&6; }
6413 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6414   cat >>confdefs.h <<_ACEOF
6415 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6416 _ACEOF
6417
6418 fi
6419
6420 done
6421
6422
6423 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6424 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
6425 if test "${ac_cv_header_sys_wait_h+set}" = set; then
6426   echo $ECHO_N "(cached) $ECHO_C" >&6
6427 else
6428   cat >conftest.$ac_ext <<_ACEOF
6429 /* confdefs.h.  */
6430 _ACEOF
6431 cat confdefs.h >>conftest.$ac_ext
6432 cat >>conftest.$ac_ext <<_ACEOF
6433 /* end confdefs.h.  */
6434 #include <sys/types.h>
6435 #include <sys/wait.h>
6436 #ifndef WEXITSTATUS
6437 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6438 #endif
6439 #ifndef WIFEXITED
6440 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6441 #endif
6442
6443 int
6444 main ()
6445 {
6446   int s;
6447   wait (&s);
6448   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6449   ;
6450   return 0;
6451 }
6452 _ACEOF
6453 rm -f conftest.$ac_objext
6454 if { (ac_try="$ac_compile"
6455 case "(($ac_try" in
6456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6457   *) ac_try_echo=$ac_try;;
6458 esac
6459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6460   (eval "$ac_compile") 2>conftest.er1
6461   ac_status=$?
6462   grep -v '^ *+' conftest.er1 >conftest.err
6463   rm -f conftest.er1
6464   cat conftest.err >&5
6465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6466   (exit $ac_status); } && {
6467          test -z "$ac_c_werror_flag" ||
6468          test ! -s conftest.err
6469        } && test -s conftest.$ac_objext; then
6470   ac_cv_header_sys_wait_h=yes
6471 else
6472   echo "$as_me: failed program was:" >&5
6473 sed 's/^/| /' conftest.$ac_ext >&5
6474
6475         ac_cv_header_sys_wait_h=no
6476 fi
6477
6478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6479 fi
6480 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6481 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
6482 if test $ac_cv_header_sys_wait_h = yes; then
6483
6484 cat >>confdefs.h <<\_ACEOF
6485 #define HAVE_SYS_WAIT_H 1
6486 _ACEOF
6487
6488 fi
6489
6490 { echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
6491 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6; }
6492 if test "${ac_cv_header_stdbool_h+set}" = set; then
6493   echo $ECHO_N "(cached) $ECHO_C" >&6
6494 else
6495   cat >conftest.$ac_ext <<_ACEOF
6496 /* confdefs.h.  */
6497 _ACEOF
6498 cat confdefs.h >>conftest.$ac_ext
6499 cat >>conftest.$ac_ext <<_ACEOF
6500 /* end confdefs.h.  */
6501
6502           #include <stdbool.h>
6503           #ifndef bool
6504            "error: bool is not defined"
6505           #endif
6506           #ifndef false
6507            "error: false is not defined"
6508           #endif
6509           #if false
6510            "error: false is not 0"
6511           #endif
6512           #ifndef true
6513            "error: true is not defined"
6514           #endif
6515           #if true != 1
6516            "error: true is not 1"
6517           #endif
6518           #ifndef __bool_true_false_are_defined
6519            "error: __bool_true_false_are_defined is not defined"
6520           #endif
6521
6522           struct s { _Bool s: 1; _Bool t; } s;
6523
6524           char a[true == 1 ? 1 : -1];
6525           char b[false == 0 ? 1 : -1];
6526           char c[__bool_true_false_are_defined == 1 ? 1 : -1];
6527           char d[(bool) 0.5 == true ? 1 : -1];
6528           bool e = &s;
6529           char f[(_Bool) 0.0 == false ? 1 : -1];
6530           char g[true];
6531           char h[sizeof (_Bool)];
6532           char i[sizeof s.t];
6533           enum { j = false, k = true, l = false * true, m = true * 256 };
6534           _Bool n[m];
6535           char o[sizeof n == m * sizeof n[0] ? 1 : -1];
6536           char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
6537           #if defined __xlc__ || defined __GNUC__
6538            /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
6539               reported by James Lemley on 2005-10-05; see
6540               http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
6541               This test is not quite right, since xlc is allowed to
6542               reject this program, as the initializer for xlcbug is
6543               not one of the forms that C requires support for.
6544               However, doing the test right would require a run-time
6545               test, and that would make cross-compilation harder.
6546               Let us hope that IBM fixes the xlc bug, and also adds
6547               support for this kind of constant expression.  In the
6548               meantime, this test will reject xlc, which is OK, since
6549               our stdbool.h substitute should suffice.  We also test
6550               this with GCC, where it should work, to detect more
6551               quickly whether someone messes up the test in the
6552               future.  */
6553            char digs[] = "0123456789";
6554            int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
6555           #endif
6556           /* Catch a bug in an HP-UX C compiler.  See
6557              http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
6558              http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
6559            */
6560           _Bool q = true;
6561           _Bool *pq = &q;
6562
6563 int
6564 main ()
6565 {
6566
6567           *pq |= q;
6568           *pq |= ! q;
6569           /* Refer to every declared value, to avoid compiler optimizations.  */
6570           return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
6571                   + !m + !n + !o + !p + !q + !pq);
6572
6573   ;
6574   return 0;
6575 }
6576 _ACEOF
6577 rm -f conftest.$ac_objext
6578 if { (ac_try="$ac_compile"
6579 case "(($ac_try" in
6580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6581   *) ac_try_echo=$ac_try;;
6582 esac
6583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6584   (eval "$ac_compile") 2>conftest.er1
6585   ac_status=$?
6586   grep -v '^ *+' conftest.er1 >conftest.err
6587   rm -f conftest.er1
6588   cat conftest.err >&5
6589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6590   (exit $ac_status); } && {
6591          test -z "$ac_c_werror_flag" ||
6592          test ! -s conftest.err
6593        } && test -s conftest.$ac_objext; then
6594   ac_cv_header_stdbool_h=yes
6595 else
6596   echo "$as_me: failed program was:" >&5
6597 sed 's/^/| /' conftest.$ac_ext >&5
6598
6599         ac_cv_header_stdbool_h=no
6600 fi
6601
6602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6603 fi
6604 { echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
6605 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; }
6606    { echo "$as_me:$LINENO: checking for _Bool" >&5
6607 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
6608 if test "${ac_cv_type__Bool+set}" = set; then
6609   echo $ECHO_N "(cached) $ECHO_C" >&6
6610 else
6611   cat >conftest.$ac_ext <<_ACEOF
6612 /* confdefs.h.  */
6613 _ACEOF
6614 cat confdefs.h >>conftest.$ac_ext
6615 cat >>conftest.$ac_ext <<_ACEOF
6616 /* end confdefs.h.  */
6617 $ac_includes_default
6618 typedef _Bool ac__type_new_;
6619 int
6620 main ()
6621 {
6622 if ((ac__type_new_ *) 0)
6623   return 0;
6624 if (sizeof (ac__type_new_))
6625   return 0;
6626   ;
6627   return 0;
6628 }
6629 _ACEOF
6630 rm -f conftest.$ac_objext
6631 if { (ac_try="$ac_compile"
6632 case "(($ac_try" in
6633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6634   *) ac_try_echo=$ac_try;;
6635 esac
6636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6637   (eval "$ac_compile") 2>conftest.er1
6638   ac_status=$?
6639   grep -v '^ *+' conftest.er1 >conftest.err
6640   rm -f conftest.er1
6641   cat conftest.err >&5
6642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6643   (exit $ac_status); } && {
6644          test -z "$ac_c_werror_flag" ||
6645          test ! -s conftest.err
6646        } && test -s conftest.$ac_objext; then
6647   ac_cv_type__Bool=yes
6648 else
6649   echo "$as_me: failed program was:" >&5
6650 sed 's/^/| /' conftest.$ac_ext >&5
6651
6652         ac_cv_type__Bool=no
6653 fi
6654
6655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6656 fi
6657 { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
6658 echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
6659 if test $ac_cv_type__Bool = yes; then
6660
6661 cat >>confdefs.h <<_ACEOF
6662 #define HAVE__BOOL 1
6663 _ACEOF
6664
6665
6666 fi
6667
6668    if test $ac_cv_header_stdbool_h = yes; then
6669
6670 cat >>confdefs.h <<\_ACEOF
6671 #define HAVE_STDBOOL_H 1
6672 _ACEOF
6673
6674    fi
6675
6676
6677
6678   # Define two additional variables used in the Makefile substitution.
6679
6680   if test "$ac_cv_header_stdbool_h" = yes; then
6681     STDBOOL_H=''
6682   else
6683     STDBOOL_H='stdbool.h'
6684   fi
6685
6686
6687   if test "$ac_cv_type__Bool" = yes; then
6688     HAVE__BOOL=1
6689   else
6690     HAVE__BOOL=0
6691   fi
6692
6693
6694
6695
6696
6697
6698
6699
6700 ac_header_dirent=no
6701 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6702   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6703 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6704 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
6705 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6706   echo $ECHO_N "(cached) $ECHO_C" >&6
6707 else
6708   cat >conftest.$ac_ext <<_ACEOF
6709 /* confdefs.h.  */
6710 _ACEOF
6711 cat confdefs.h >>conftest.$ac_ext
6712 cat >>conftest.$ac_ext <<_ACEOF
6713 /* end confdefs.h.  */
6714 #include <sys/types.h>
6715 #include <$ac_hdr>
6716
6717 int
6718 main ()
6719 {
6720 if ((DIR *) 0)
6721 return 0;
6722   ;
6723   return 0;
6724 }
6725 _ACEOF
6726 rm -f conftest.$ac_objext
6727 if { (ac_try="$ac_compile"
6728 case "(($ac_try" in
6729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6730   *) ac_try_echo=$ac_try;;
6731 esac
6732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6733   (eval "$ac_compile") 2>conftest.er1
6734   ac_status=$?
6735   grep -v '^ *+' conftest.er1 >conftest.err
6736   rm -f conftest.er1
6737   cat conftest.err >&5
6738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6739   (exit $ac_status); } && {
6740          test -z "$ac_c_werror_flag" ||
6741          test ! -s conftest.err
6742        } && test -s conftest.$ac_objext; then
6743   eval "$as_ac_Header=yes"
6744 else
6745   echo "$as_me: failed program was:" >&5
6746 sed 's/^/| /' conftest.$ac_ext >&5
6747
6748         eval "$as_ac_Header=no"
6749 fi
6750
6751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6752 fi
6753 ac_res=`eval echo '${'$as_ac_Header'}'`
6754                { echo "$as_me:$LINENO: result: $ac_res" >&5
6755 echo "${ECHO_T}$ac_res" >&6; }
6756 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6757   cat >>confdefs.h <<_ACEOF
6758 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6759 _ACEOF
6760
6761 ac_header_dirent=$ac_hdr; break
6762 fi
6763
6764 done
6765 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6766 if test $ac_header_dirent = dirent.h; then
6767   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
6768 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
6769 if test "${ac_cv_search_opendir+set}" = set; then
6770   echo $ECHO_N "(cached) $ECHO_C" >&6
6771 else
6772   ac_func_search_save_LIBS=$LIBS
6773 cat >conftest.$ac_ext <<_ACEOF
6774 /* confdefs.h.  */
6775 _ACEOF
6776 cat confdefs.h >>conftest.$ac_ext
6777 cat >>conftest.$ac_ext <<_ACEOF
6778 /* end confdefs.h.  */
6779
6780 /* Override any GCC internal prototype to avoid an error.
6781    Use char because int might match the return type of a GCC
6782    builtin and then its argument prototype would still apply.  */
6783 #ifdef __cplusplus
6784 extern "C"
6785 #endif
6786 char opendir ();
6787 int
6788 main ()
6789 {
6790 return opendir ();
6791   ;
6792   return 0;
6793 }
6794 _ACEOF
6795 for ac_lib in '' dir; do
6796   if test -z "$ac_lib"; then
6797     ac_res="none required"
6798   else
6799     ac_res=-l$ac_lib
6800     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6801   fi
6802   rm -f conftest.$ac_objext conftest$ac_exeext
6803 if { (ac_try="$ac_link"
6804 case "(($ac_try" in
6805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6806   *) ac_try_echo=$ac_try;;
6807 esac
6808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6809   (eval "$ac_link") 2>conftest.er1
6810   ac_status=$?
6811   grep -v '^ *+' conftest.er1 >conftest.err
6812   rm -f conftest.er1
6813   cat conftest.err >&5
6814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6815   (exit $ac_status); } && {
6816          test -z "$ac_c_werror_flag" ||
6817          test ! -s conftest.err
6818        } && test -s conftest$ac_exeext &&
6819        $as_test_x conftest$ac_exeext; then
6820   ac_cv_search_opendir=$ac_res
6821 else
6822   echo "$as_me: failed program was:" >&5
6823 sed 's/^/| /' conftest.$ac_ext >&5
6824
6825
6826 fi
6827
6828 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6829       conftest$ac_exeext
6830   if test "${ac_cv_search_opendir+set}" = set; then
6831   break
6832 fi
6833 done
6834 if test "${ac_cv_search_opendir+set}" = set; then
6835   :
6836 else
6837   ac_cv_search_opendir=no
6838 fi
6839 rm conftest.$ac_ext
6840 LIBS=$ac_func_search_save_LIBS
6841 fi
6842 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6843 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
6844 ac_res=$ac_cv_search_opendir
6845 if test "$ac_res" != no; then
6846   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6847
6848 fi
6849
6850 else
6851   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
6852 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
6853 if test "${ac_cv_search_opendir+set}" = set; then
6854   echo $ECHO_N "(cached) $ECHO_C" >&6
6855 else
6856   ac_func_search_save_LIBS=$LIBS
6857 cat >conftest.$ac_ext <<_ACEOF
6858 /* confdefs.h.  */
6859 _ACEOF
6860 cat confdefs.h >>conftest.$ac_ext
6861 cat >>conftest.$ac_ext <<_ACEOF
6862 /* end confdefs.h.  */
6863
6864 /* Override any GCC internal prototype to avoid an error.
6865    Use char because int might match the return type of a GCC
6866    builtin and then its argument prototype would still apply.  */
6867 #ifdef __cplusplus
6868 extern "C"
6869 #endif
6870 char opendir ();
6871 int
6872 main ()
6873 {
6874 return opendir ();
6875   ;
6876   return 0;
6877 }
6878 _ACEOF
6879 for ac_lib in '' x; do
6880   if test -z "$ac_lib"; then
6881     ac_res="none required"
6882   else
6883     ac_res=-l$ac_lib
6884     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6885   fi
6886   rm -f conftest.$ac_objext conftest$ac_exeext
6887 if { (ac_try="$ac_link"
6888 case "(($ac_try" in
6889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6890   *) ac_try_echo=$ac_try;;
6891 esac
6892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6893   (eval "$ac_link") 2>conftest.er1
6894   ac_status=$?
6895   grep -v '^ *+' conftest.er1 >conftest.err
6896   rm -f conftest.er1
6897   cat conftest.err >&5
6898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6899   (exit $ac_status); } && {
6900          test -z "$ac_c_werror_flag" ||
6901          test ! -s conftest.err
6902        } && test -s conftest$ac_exeext &&
6903        $as_test_x conftest$ac_exeext; then
6904   ac_cv_search_opendir=$ac_res
6905 else
6906   echo "$as_me: failed program was:" >&5
6907 sed 's/^/| /' conftest.$ac_ext >&5
6908
6909
6910 fi
6911
6912 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6913       conftest$ac_exeext
6914   if test "${ac_cv_search_opendir+set}" = set; then
6915   break
6916 fi
6917 done
6918 if test "${ac_cv_search_opendir+set}" = set; then
6919   :
6920 else
6921   ac_cv_search_opendir=no
6922 fi
6923 rm conftest.$ac_ext
6924 LIBS=$ac_func_search_save_LIBS
6925 fi
6926 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6927 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
6928 ac_res=$ac_cv_search_opendir
6929 if test "$ac_res" != no; then
6930   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6931
6932 fi
6933
6934 fi
6935
6936 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
6937 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
6938 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
6939   echo $ECHO_N "(cached) $ECHO_C" >&6
6940 else
6941   cat >conftest.$ac_ext <<_ACEOF
6942 /* confdefs.h.  */
6943 _ACEOF
6944 cat confdefs.h >>conftest.$ac_ext
6945 cat >>conftest.$ac_ext <<_ACEOF
6946 /* end confdefs.h.  */
6947 #include <sys/types.h>
6948 int
6949 main ()
6950 {
6951 return makedev(0, 0);
6952   ;
6953   return 0;
6954 }
6955 _ACEOF
6956 rm -f conftest.$ac_objext conftest$ac_exeext
6957 if { (ac_try="$ac_link"
6958 case "(($ac_try" in
6959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6960   *) ac_try_echo=$ac_try;;
6961 esac
6962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6963   (eval "$ac_link") 2>conftest.er1
6964   ac_status=$?
6965   grep -v '^ *+' conftest.er1 >conftest.err
6966   rm -f conftest.er1
6967   cat conftest.err >&5
6968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6969   (exit $ac_status); } && {
6970          test -z "$ac_c_werror_flag" ||
6971          test ! -s conftest.err
6972        } && test -s conftest$ac_exeext &&
6973        $as_test_x conftest$ac_exeext; then
6974   ac_cv_header_sys_types_h_makedev=yes
6975 else
6976   echo "$as_me: failed program was:" >&5
6977 sed 's/^/| /' conftest.$ac_ext >&5
6978
6979         ac_cv_header_sys_types_h_makedev=no
6980 fi
6981
6982 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6983       conftest$ac_exeext conftest.$ac_ext
6984
6985 fi
6986 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
6987 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
6988
6989 if test $ac_cv_header_sys_types_h_makedev = no; then
6990 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6991   { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
6992 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
6993 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6994   echo $ECHO_N "(cached) $ECHO_C" >&6
6995 fi
6996 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
6997 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
6998 else
6999   # Is the header compilable?
7000 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
7001 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
7002 cat >conftest.$ac_ext <<_ACEOF
7003 /* confdefs.h.  */
7004 _ACEOF
7005 cat confdefs.h >>conftest.$ac_ext
7006 cat >>conftest.$ac_ext <<_ACEOF
7007 /* end confdefs.h.  */
7008 $ac_includes_default
7009 #include <sys/mkdev.h>
7010 _ACEOF
7011 rm -f conftest.$ac_objext
7012 if { (ac_try="$ac_compile"
7013 case "(($ac_try" in
7014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7015   *) ac_try_echo=$ac_try;;
7016 esac
7017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7018   (eval "$ac_compile") 2>conftest.er1
7019   ac_status=$?
7020   grep -v '^ *+' conftest.er1 >conftest.err
7021   rm -f conftest.er1
7022   cat conftest.err >&5
7023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7024   (exit $ac_status); } && {
7025          test -z "$ac_c_werror_flag" ||
7026          test ! -s conftest.err
7027        } && test -s conftest.$ac_objext; then
7028   ac_header_compiler=yes
7029 else
7030   echo "$as_me: failed program was:" >&5
7031 sed 's/^/| /' conftest.$ac_ext >&5
7032
7033         ac_header_compiler=no
7034 fi
7035
7036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7037 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7038 echo "${ECHO_T}$ac_header_compiler" >&6; }
7039
7040 # Is the header present?
7041 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
7042 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
7043 cat >conftest.$ac_ext <<_ACEOF
7044 /* confdefs.h.  */
7045 _ACEOF
7046 cat confdefs.h >>conftest.$ac_ext
7047 cat >>conftest.$ac_ext <<_ACEOF
7048 /* end confdefs.h.  */
7049 #include <sys/mkdev.h>
7050 _ACEOF
7051 if { (ac_try="$ac_cpp conftest.$ac_ext"
7052 case "(($ac_try" in
7053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7054   *) ac_try_echo=$ac_try;;
7055 esac
7056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7057   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7058   ac_status=$?
7059   grep -v '^ *+' conftest.er1 >conftest.err
7060   rm -f conftest.er1
7061   cat conftest.err >&5
7062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7063   (exit $ac_status); } >/dev/null && {
7064          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7065          test ! -s conftest.err
7066        }; then
7067   ac_header_preproc=yes
7068 else
7069   echo "$as_me: failed program was:" >&5
7070 sed 's/^/| /' conftest.$ac_ext >&5
7071
7072   ac_header_preproc=no
7073 fi
7074
7075 rm -f conftest.err conftest.$ac_ext
7076 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7077 echo "${ECHO_T}$ac_header_preproc" >&6; }
7078
7079 # So?  What about this header?
7080 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7081   yes:no: )
7082     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
7083 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7084     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
7085 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
7086     ac_header_preproc=yes
7087     ;;
7088   no:yes:* )
7089     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
7090 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
7091     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&5
7092 echo "$as_me: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&2;}
7093     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
7094 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
7095     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&5
7096 echo "$as_me: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&2;}
7097     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
7098 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
7099     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
7100 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
7101     ( cat <<\_ASBOX
7102 ## ------------------------------ ##
7103 ## Report this to bug-tar@gnu.org ##
7104 ## ------------------------------ ##
7105 _ASBOX
7106      ) | sed "s/^/$as_me: WARNING:     /" >&2
7107     ;;
7108 esac
7109 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
7110 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
7111 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
7112   echo $ECHO_N "(cached) $ECHO_C" >&6
7113 else
7114   ac_cv_header_sys_mkdev_h=$ac_header_preproc
7115 fi
7116 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
7117 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
7118
7119 fi
7120 if test $ac_cv_header_sys_mkdev_h = yes; then
7121
7122 cat >>confdefs.h <<\_ACEOF
7123 #define MAJOR_IN_MKDEV 1
7124 _ACEOF
7125
7126 fi
7127
7128
7129
7130   if test $ac_cv_header_sys_mkdev_h = no; then
7131     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
7132   { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
7133 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
7134 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
7135   echo $ECHO_N "(cached) $ECHO_C" >&6
7136 fi
7137 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
7138 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
7139 else
7140   # Is the header compilable?
7141 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
7142 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
7143 cat >conftest.$ac_ext <<_ACEOF
7144 /* confdefs.h.  */
7145 _ACEOF
7146 cat confdefs.h >>conftest.$ac_ext
7147 cat >>conftest.$ac_ext <<_ACEOF
7148 /* end confdefs.h.  */
7149 $ac_includes_default
7150 #include <sys/sysmacros.h>
7151 _ACEOF
7152 rm -f conftest.$ac_objext
7153 if { (ac_try="$ac_compile"
7154 case "(($ac_try" in
7155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7156   *) ac_try_echo=$ac_try;;
7157 esac
7158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7159   (eval "$ac_compile") 2>conftest.er1
7160   ac_status=$?
7161   grep -v '^ *+' conftest.er1 >conftest.err
7162   rm -f conftest.er1
7163   cat conftest.err >&5
7164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7165   (exit $ac_status); } && {
7166          test -z "$ac_c_werror_flag" ||
7167          test ! -s conftest.err
7168        } && test -s conftest.$ac_objext; then
7169   ac_header_compiler=yes
7170 else
7171   echo "$as_me: failed program was:" >&5
7172 sed 's/^/| /' conftest.$ac_ext >&5
7173
7174         ac_header_compiler=no
7175 fi
7176
7177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7178 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7179 echo "${ECHO_T}$ac_header_compiler" >&6; }
7180
7181 # Is the header present?
7182 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
7183 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
7184 cat >conftest.$ac_ext <<_ACEOF
7185 /* confdefs.h.  */
7186 _ACEOF
7187 cat confdefs.h >>conftest.$ac_ext
7188 cat >>conftest.$ac_ext <<_ACEOF
7189 /* end confdefs.h.  */
7190 #include <sys/sysmacros.h>
7191 _ACEOF
7192 if { (ac_try="$ac_cpp conftest.$ac_ext"
7193 case "(($ac_try" in
7194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7195   *) ac_try_echo=$ac_try;;
7196 esac
7197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7198   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7199   ac_status=$?
7200   grep -v '^ *+' conftest.er1 >conftest.err
7201   rm -f conftest.er1
7202   cat conftest.err >&5
7203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7204   (exit $ac_status); } >/dev/null && {
7205          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7206          test ! -s conftest.err
7207        }; then
7208   ac_header_preproc=yes
7209 else
7210   echo "$as_me: failed program was:" >&5
7211 sed 's/^/| /' conftest.$ac_ext >&5
7212
7213   ac_header_preproc=no
7214 fi
7215
7216 rm -f conftest.err conftest.$ac_ext
7217 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7218 echo "${ECHO_T}$ac_header_preproc" >&6; }
7219
7220 # So?  What about this header?
7221 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7222   yes:no: )
7223     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
7224 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7225     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
7226 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
7227     ac_header_preproc=yes
7228     ;;
7229   no:yes:* )
7230     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
7231 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
7232     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&5
7233 echo "$as_me: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&2;}
7234     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
7235 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
7236     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&5
7237 echo "$as_me: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&2;}
7238     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
7239 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
7240     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
7241 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
7242     ( cat <<\_ASBOX
7243 ## ------------------------------ ##
7244 ## Report this to bug-tar@gnu.org ##
7245 ## ------------------------------ ##
7246 _ASBOX
7247      ) | sed "s/^/$as_me: WARNING:     /" >&2
7248     ;;
7249 esac
7250 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
7251 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
7252 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
7253   echo $ECHO_N "(cached) $ECHO_C" >&6
7254 else
7255   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
7256 fi
7257 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
7258 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
7259
7260 fi
7261 if test $ac_cv_header_sys_sysmacros_h = yes; then
7262
7263 cat >>confdefs.h <<\_ACEOF
7264 #define MAJOR_IN_SYSMACROS 1
7265 _ACEOF
7266
7267 fi
7268
7269
7270   fi
7271 fi
7272
7273 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
7274 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
7275 if test "${ac_cv_header_stat_broken+set}" = set; then
7276   echo $ECHO_N "(cached) $ECHO_C" >&6
7277 else
7278   cat >conftest.$ac_ext <<_ACEOF
7279 /* confdefs.h.  */
7280 _ACEOF
7281 cat confdefs.h >>conftest.$ac_ext
7282 cat >>conftest.$ac_ext <<_ACEOF
7283 /* end confdefs.h.  */
7284 #include <sys/types.h>
7285 #include <sys/stat.h>
7286
7287 #if defined S_ISBLK && defined S_IFDIR
7288 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
7289 #endif
7290
7291 #if defined S_ISBLK && defined S_IFCHR
7292 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
7293 #endif
7294
7295 #if defined S_ISLNK && defined S_IFREG
7296 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
7297 #endif
7298
7299 #if defined S_ISSOCK && defined S_IFREG
7300 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
7301 #endif
7302
7303 _ACEOF
7304 rm -f conftest.$ac_objext
7305 if { (ac_try="$ac_compile"
7306 case "(($ac_try" in
7307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7308   *) ac_try_echo=$ac_try;;
7309 esac
7310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7311   (eval "$ac_compile") 2>conftest.er1
7312   ac_status=$?
7313   grep -v '^ *+' conftest.er1 >conftest.err
7314   rm -f conftest.er1
7315   cat conftest.err >&5
7316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7317   (exit $ac_status); } && {
7318          test -z "$ac_c_werror_flag" ||
7319          test ! -s conftest.err
7320        } && test -s conftest.$ac_objext; then
7321   ac_cv_header_stat_broken=no
7322 else
7323   echo "$as_me: failed program was:" >&5
7324 sed 's/^/| /' conftest.$ac_ext >&5
7325
7326         ac_cv_header_stat_broken=yes
7327 fi
7328
7329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7330 fi
7331 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
7332 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
7333 if test $ac_cv_header_stat_broken = yes; then
7334
7335 cat >>confdefs.h <<\_ACEOF
7336 #define STAT_MACROS_BROKEN 1
7337 _ACEOF
7338
7339 fi
7340
7341 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7342 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7343 if test "${ac_cv_header_stdc+set}" = set; then
7344   echo $ECHO_N "(cached) $ECHO_C" >&6
7345 else
7346   cat >conftest.$ac_ext <<_ACEOF
7347 /* confdefs.h.  */
7348 _ACEOF
7349 cat confdefs.h >>conftest.$ac_ext
7350 cat >>conftest.$ac_ext <<_ACEOF
7351 /* end confdefs.h.  */
7352 #include <stdlib.h>
7353 #include <stdarg.h>
7354 #include <string.h>
7355 #include <float.h>
7356
7357 int
7358 main ()
7359 {
7360
7361   ;
7362   return 0;
7363 }
7364 _ACEOF
7365 rm -f conftest.$ac_objext
7366 if { (ac_try="$ac_compile"
7367 case "(($ac_try" in
7368   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7369   *) ac_try_echo=$ac_try;;
7370 esac
7371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7372   (eval "$ac_compile") 2>conftest.er1
7373   ac_status=$?
7374   grep -v '^ *+' conftest.er1 >conftest.err
7375   rm -f conftest.er1
7376   cat conftest.err >&5
7377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7378   (exit $ac_status); } && {
7379          test -z "$ac_c_werror_flag" ||
7380          test ! -s conftest.err
7381        } && test -s conftest.$ac_objext; then
7382   ac_cv_header_stdc=yes
7383 else
7384   echo "$as_me: failed program was:" >&5
7385 sed 's/^/| /' conftest.$ac_ext >&5
7386
7387         ac_cv_header_stdc=no
7388 fi
7389
7390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7391
7392 if test $ac_cv_header_stdc = yes; then
7393   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7394   cat >conftest.$ac_ext <<_ACEOF
7395 /* confdefs.h.  */
7396 _ACEOF
7397 cat confdefs.h >>conftest.$ac_ext
7398 cat >>conftest.$ac_ext <<_ACEOF
7399 /* end confdefs.h.  */
7400 #include <string.h>
7401
7402 _ACEOF
7403 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7404   $EGREP "memchr" >/dev/null 2>&1; then
7405   :
7406 else
7407   ac_cv_header_stdc=no
7408 fi
7409 rm -f conftest*
7410
7411 fi
7412
7413 if test $ac_cv_header_stdc = yes; then
7414   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7415   cat >conftest.$ac_ext <<_ACEOF
7416 /* confdefs.h.  */
7417 _ACEOF
7418 cat confdefs.h >>conftest.$ac_ext
7419 cat >>conftest.$ac_ext <<_ACEOF
7420 /* end confdefs.h.  */
7421 #include <stdlib.h>
7422
7423 _ACEOF
7424 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7425   $EGREP "free" >/dev/null 2>&1; then
7426   :
7427 else
7428   ac_cv_header_stdc=no
7429 fi
7430 rm -f conftest*
7431
7432 fi
7433
7434 if test $ac_cv_header_stdc = yes; then
7435   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7436   if test "$cross_compiling" = yes; then
7437   :
7438 else
7439   cat >conftest.$ac_ext <<_ACEOF
7440 /* confdefs.h.  */
7441 _ACEOF
7442 cat confdefs.h >>conftest.$ac_ext
7443 cat >>conftest.$ac_ext <<_ACEOF
7444 /* end confdefs.h.  */
7445 #include <ctype.h>
7446 #include <stdlib.h>
7447 #if ((' ' & 0x0FF) == 0x020)
7448 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7449 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7450 #else
7451 # define ISLOWER(c) \
7452                    (('a' <= (c) && (c) <= 'i') \
7453                      || ('j' <= (c) && (c) <= 'r') \
7454                      || ('s' <= (c) && (c) <= 'z'))
7455 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7456 #endif
7457
7458 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7459 int
7460 main ()
7461 {
7462   int i;
7463   for (i = 0; i < 256; i++)
7464     if (XOR (islower (i), ISLOWER (i))
7465         || toupper (i) != TOUPPER (i))
7466       return 2;
7467   return 0;
7468 }
7469 _ACEOF
7470 rm -f conftest$ac_exeext
7471 if { (ac_try="$ac_link"
7472 case "(($ac_try" in
7473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7474   *) ac_try_echo=$ac_try;;
7475 esac
7476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7477   (eval "$ac_link") 2>&5
7478   ac_status=$?
7479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7480   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7481   { (case "(($ac_try" in
7482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7483   *) ac_try_echo=$ac_try;;
7484 esac
7485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7486   (eval "$ac_try") 2>&5
7487   ac_status=$?
7488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7489   (exit $ac_status); }; }; then
7490   :
7491 else
7492   echo "$as_me: program exited with status $ac_status" >&5
7493 echo "$as_me: failed program was:" >&5
7494 sed 's/^/| /' conftest.$ac_ext >&5
7495
7496 ( exit $ac_status )
7497 ac_cv_header_stdc=no
7498 fi
7499 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7500 fi
7501
7502
7503 fi
7504 fi
7505 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7506 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7507 if test $ac_cv_header_stdc = yes; then
7508
7509 cat >>confdefs.h <<\_ACEOF
7510 #define STDC_HEADERS 1
7511 _ACEOF
7512
7513 fi
7514
7515
7516 { echo "$as_me:$LINENO: checking for st_fstype string in struct stat" >&5
7517 echo $ECHO_N "checking for st_fstype string in struct stat... $ECHO_C" >&6; }
7518 if test "${diff_cv_st_fstype_string+set}" = set; then
7519   echo $ECHO_N "(cached) $ECHO_C" >&6
7520 else
7521   cat >conftest.$ac_ext <<_ACEOF
7522 /* confdefs.h.  */
7523 _ACEOF
7524 cat confdefs.h >>conftest.$ac_ext
7525 cat >>conftest.$ac_ext <<_ACEOF
7526 /* end confdefs.h.  */
7527 #include <sys/types.h>
7528 #include <sys/stat.h>
7529 int
7530 main ()
7531 {
7532 struct stat s; s.st_fstype[0] = 'x';
7533   ;
7534   return 0;
7535 }
7536 _ACEOF
7537 rm -f conftest.$ac_objext
7538 if { (ac_try="$ac_compile"
7539 case "(($ac_try" in
7540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7541   *) ac_try_echo=$ac_try;;
7542 esac
7543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7544   (eval "$ac_compile") 2>conftest.er1
7545   ac_status=$?
7546   grep -v '^ *+' conftest.er1 >conftest.err
7547   rm -f conftest.er1
7548   cat conftest.err >&5
7549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7550   (exit $ac_status); } && {
7551          test -z "$ac_c_werror_flag" ||
7552          test ! -s conftest.err
7553        } && test -s conftest.$ac_objext; then
7554   diff_cv_st_fstype_string=yes
7555 else
7556   echo "$as_me: failed program was:" >&5
7557 sed 's/^/| /' conftest.$ac_ext >&5
7558
7559         diff_cv_st_fstype_string=no
7560 fi
7561
7562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7563 fi
7564
7565 { echo "$as_me:$LINENO: result: $diff_cv_st_fstype_string" >&5
7566 echo "${ECHO_T}$diff_cv_st_fstype_string" >&6; }
7567 if test $diff_cv_st_fstype_string = yes; then
7568
7569 cat >>confdefs.h <<\_ACEOF
7570 #define HAVE_ST_FSTYPE_STRING 1
7571 _ACEOF
7572
7573 fi
7574
7575 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7576 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
7577 if test "${ac_cv_type_signal+set}" = set; then
7578   echo $ECHO_N "(cached) $ECHO_C" >&6
7579 else
7580   cat >conftest.$ac_ext <<_ACEOF
7581 /* confdefs.h.  */
7582 _ACEOF
7583 cat confdefs.h >>conftest.$ac_ext
7584 cat >>conftest.$ac_ext <<_ACEOF
7585 /* end confdefs.h.  */
7586 #include <sys/types.h>
7587 #include <signal.h>
7588
7589 int
7590 main ()
7591 {
7592 return *(signal (0, 0)) (0) == 1;
7593   ;
7594   return 0;
7595 }
7596 _ACEOF
7597 rm -f conftest.$ac_objext
7598 if { (ac_try="$ac_compile"
7599 case "(($ac_try" in
7600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7601   *) ac_try_echo=$ac_try;;
7602 esac
7603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7604   (eval "$ac_compile") 2>conftest.er1
7605   ac_status=$?
7606   grep -v '^ *+' conftest.er1 >conftest.err
7607   rm -f conftest.er1
7608   cat conftest.err >&5
7609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7610   (exit $ac_status); } && {
7611          test -z "$ac_c_werror_flag" ||
7612          test ! -s conftest.err
7613        } && test -s conftest.$ac_objext; then
7614   ac_cv_type_signal=int
7615 else
7616   echo "$as_me: failed program was:" >&5
7617 sed 's/^/| /' conftest.$ac_ext >&5
7618
7619         ac_cv_type_signal=void
7620 fi
7621
7622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7623 fi
7624 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7625 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
7626
7627 cat >>confdefs.h <<_ACEOF
7628 #define RETSIGTYPE $ac_cv_type_signal
7629 _ACEOF
7630
7631
7632 { echo "$as_me:$LINENO: checking for mode_t" >&5
7633 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
7634 if test "${ac_cv_type_mode_t+set}" = set; then
7635   echo $ECHO_N "(cached) $ECHO_C" >&6
7636 else
7637   cat >conftest.$ac_ext <<_ACEOF
7638 /* confdefs.h.  */
7639 _ACEOF
7640 cat confdefs.h >>conftest.$ac_ext
7641 cat >>conftest.$ac_ext <<_ACEOF
7642 /* end confdefs.h.  */
7643 $ac_includes_default
7644 typedef mode_t ac__type_new_;
7645 int
7646 main ()
7647 {
7648 if ((ac__type_new_ *) 0)
7649   return 0;
7650 if (sizeof (ac__type_new_))
7651   return 0;
7652   ;
7653   return 0;
7654 }
7655 _ACEOF
7656 rm -f conftest.$ac_objext
7657 if { (ac_try="$ac_compile"
7658 case "(($ac_try" in
7659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7660   *) ac_try_echo=$ac_try;;
7661 esac
7662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7663   (eval "$ac_compile") 2>conftest.er1
7664   ac_status=$?
7665   grep -v '^ *+' conftest.er1 >conftest.err
7666   rm -f conftest.er1
7667   cat conftest.err >&5
7668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7669   (exit $ac_status); } && {
7670          test -z "$ac_c_werror_flag" ||
7671          test ! -s conftest.err
7672        } && test -s conftest.$ac_objext; then
7673   ac_cv_type_mode_t=yes
7674 else
7675   echo "$as_me: failed program was:" >&5
7676 sed 's/^/| /' conftest.$ac_ext >&5
7677
7678         ac_cv_type_mode_t=no
7679 fi
7680
7681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7682 fi
7683 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
7684 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
7685 if test $ac_cv_type_mode_t = yes; then
7686   :
7687 else
7688
7689 cat >>confdefs.h <<_ACEOF
7690 #define mode_t int
7691 _ACEOF
7692
7693 fi
7694
7695 { echo "$as_me:$LINENO: checking for pid_t" >&5
7696 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
7697 if test "${ac_cv_type_pid_t+set}" = set; then
7698   echo $ECHO_N "(cached) $ECHO_C" >&6
7699 else
7700   cat >conftest.$ac_ext <<_ACEOF
7701 /* confdefs.h.  */
7702 _ACEOF
7703 cat confdefs.h >>conftest.$ac_ext
7704 cat >>conftest.$ac_ext <<_ACEOF
7705 /* end confdefs.h.  */
7706 $ac_includes_default
7707 typedef pid_t ac__type_new_;
7708 int
7709 main ()
7710 {
7711 if ((ac__type_new_ *) 0)
7712   return 0;
7713 if (sizeof (ac__type_new_))
7714   return 0;
7715   ;
7716   return 0;
7717 }
7718 _ACEOF
7719 rm -f conftest.$ac_objext
7720 if { (ac_try="$ac_compile"
7721 case "(($ac_try" in
7722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7723   *) ac_try_echo=$ac_try;;
7724 esac
7725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7726   (eval "$ac_compile") 2>conftest.er1
7727   ac_status=$?
7728   grep -v '^ *+' conftest.er1 >conftest.err
7729   rm -f conftest.er1
7730   cat conftest.err >&5
7731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7732   (exit $ac_status); } && {
7733          test -z "$ac_c_werror_flag" ||
7734          test ! -s conftest.err
7735        } && test -s conftest.$ac_objext; then
7736   ac_cv_type_pid_t=yes
7737 else
7738   echo "$as_me: failed program was:" >&5
7739 sed 's/^/| /' conftest.$ac_ext >&5
7740
7741         ac_cv_type_pid_t=no
7742 fi
7743
7744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7745 fi
7746 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
7747 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
7748 if test $ac_cv_type_pid_t = yes; then
7749   :
7750 else
7751
7752 cat >>confdefs.h <<_ACEOF
7753 #define pid_t int
7754 _ACEOF
7755
7756 fi
7757
7758 { echo "$as_me:$LINENO: checking for off_t" >&5
7759 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
7760 if test "${ac_cv_type_off_t+set}" = set; then
7761   echo $ECHO_N "(cached) $ECHO_C" >&6
7762 else
7763   cat >conftest.$ac_ext <<_ACEOF
7764 /* confdefs.h.  */
7765 _ACEOF
7766 cat confdefs.h >>conftest.$ac_ext
7767 cat >>conftest.$ac_ext <<_ACEOF
7768 /* end confdefs.h.  */
7769 $ac_includes_default
7770 typedef off_t ac__type_new_;
7771 int
7772 main ()
7773 {
7774 if ((ac__type_new_ *) 0)
7775   return 0;
7776 if (sizeof (ac__type_new_))
7777   return 0;
7778   ;
7779   return 0;
7780 }
7781 _ACEOF
7782 rm -f conftest.$ac_objext
7783 if { (ac_try="$ac_compile"
7784 case "(($ac_try" in
7785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7786   *) ac_try_echo=$ac_try;;
7787 esac
7788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7789   (eval "$ac_compile") 2>conftest.er1
7790   ac_status=$?
7791   grep -v '^ *+' conftest.er1 >conftest.err
7792   rm -f conftest.er1
7793   cat conftest.err >&5
7794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7795   (exit $ac_status); } && {
7796          test -z "$ac_c_werror_flag" ||
7797          test ! -s conftest.err
7798        } && test -s conftest.$ac_objext; then
7799   ac_cv_type_off_t=yes
7800 else
7801   echo "$as_me: failed program was:" >&5
7802 sed 's/^/| /' conftest.$ac_ext >&5
7803
7804         ac_cv_type_off_t=no
7805 fi
7806
7807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7808 fi
7809 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
7810 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
7811 if test $ac_cv_type_off_t = yes; then
7812   :
7813 else
7814
7815 cat >>confdefs.h <<_ACEOF
7816 #define off_t long int
7817 _ACEOF
7818
7819 fi
7820
7821 { echo "$as_me:$LINENO: checking for size_t" >&5
7822 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
7823 if test "${ac_cv_type_size_t+set}" = set; then
7824   echo $ECHO_N "(cached) $ECHO_C" >&6
7825 else
7826   cat >conftest.$ac_ext <<_ACEOF
7827 /* confdefs.h.  */
7828 _ACEOF
7829 cat confdefs.h >>conftest.$ac_ext
7830 cat >>conftest.$ac_ext <<_ACEOF
7831 /* end confdefs.h.  */
7832 $ac_includes_default
7833 typedef size_t ac__type_new_;
7834 int
7835 main ()
7836 {
7837 if ((ac__type_new_ *) 0)
7838   return 0;
7839 if (sizeof (ac__type_new_))
7840   return 0;
7841   ;
7842   return 0;
7843 }
7844 _ACEOF
7845 rm -f conftest.$ac_objext
7846 if { (ac_try="$ac_compile"
7847 case "(($ac_try" in
7848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7849   *) ac_try_echo=$ac_try;;
7850 esac
7851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7852   (eval "$ac_compile") 2>conftest.er1
7853   ac_status=$?
7854   grep -v '^ *+' conftest.er1 >conftest.err
7855   rm -f conftest.er1
7856   cat conftest.err >&5
7857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7858   (exit $ac_status); } && {
7859          test -z "$ac_c_werror_flag" ||
7860          test ! -s conftest.err
7861        } && test -s conftest.$ac_objext; then
7862   ac_cv_type_size_t=yes
7863 else
7864   echo "$as_me: failed program was:" >&5
7865 sed 's/^/| /' conftest.$ac_ext >&5
7866
7867         ac_cv_type_size_t=no
7868 fi
7869
7870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7871 fi
7872 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
7873 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
7874 if test $ac_cv_type_size_t = yes; then
7875   :
7876 else
7877
7878 cat >>confdefs.h <<_ACEOF
7879 #define size_t unsigned int
7880 _ACEOF
7881
7882 fi
7883
7884 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
7885 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
7886 if test "${ac_cv_type_uid_t+set}" = set; then
7887   echo $ECHO_N "(cached) $ECHO_C" >&6
7888 else
7889   cat >conftest.$ac_ext <<_ACEOF
7890 /* confdefs.h.  */
7891 _ACEOF
7892 cat confdefs.h >>conftest.$ac_ext
7893 cat >>conftest.$ac_ext <<_ACEOF
7894 /* end confdefs.h.  */
7895 #include <sys/types.h>
7896
7897 _ACEOF
7898 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7899   $EGREP "uid_t" >/dev/null 2>&1; then
7900   ac_cv_type_uid_t=yes
7901 else
7902   ac_cv_type_uid_t=no
7903 fi
7904 rm -f conftest*
7905
7906 fi
7907 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
7908 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
7909 if test $ac_cv_type_uid_t = no; then
7910
7911 cat >>confdefs.h <<\_ACEOF
7912 #define uid_t int
7913 _ACEOF
7914
7915
7916 cat >>confdefs.h <<\_ACEOF
7917 #define gid_t int
7918 _ACEOF
7919
7920 fi
7921
7922 { echo "$as_me:$LINENO: checking for major_t" >&5
7923 echo $ECHO_N "checking for major_t... $ECHO_C" >&6; }
7924 if test "${ac_cv_type_major_t+set}" = set; then
7925   echo $ECHO_N "(cached) $ECHO_C" >&6
7926 else
7927   cat >conftest.$ac_ext <<_ACEOF
7928 /* confdefs.h.  */
7929 _ACEOF
7930 cat confdefs.h >>conftest.$ac_ext
7931 cat >>conftest.$ac_ext <<_ACEOF
7932 /* end confdefs.h.  */
7933 $ac_includes_default
7934 typedef major_t ac__type_new_;
7935 int
7936 main ()
7937 {
7938 if ((ac__type_new_ *) 0)
7939   return 0;
7940 if (sizeof (ac__type_new_))
7941   return 0;
7942   ;
7943   return 0;
7944 }
7945 _ACEOF
7946 rm -f conftest.$ac_objext
7947 if { (ac_try="$ac_compile"
7948 case "(($ac_try" in
7949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7950   *) ac_try_echo=$ac_try;;
7951 esac
7952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7953   (eval "$ac_compile") 2>conftest.er1
7954   ac_status=$?
7955   grep -v '^ *+' conftest.er1 >conftest.err
7956   rm -f conftest.er1
7957   cat conftest.err >&5
7958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7959   (exit $ac_status); } && {
7960          test -z "$ac_c_werror_flag" ||
7961          test ! -s conftest.err
7962        } && test -s conftest.$ac_objext; then
7963   ac_cv_type_major_t=yes
7964 else
7965   echo "$as_me: failed program was:" >&5
7966 sed 's/^/| /' conftest.$ac_ext >&5
7967
7968         ac_cv_type_major_t=no
7969 fi
7970
7971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7972 fi
7973 { echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
7974 echo "${ECHO_T}$ac_cv_type_major_t" >&6; }
7975 if test $ac_cv_type_major_t = yes; then
7976   :
7977 else
7978
7979 cat >>confdefs.h <<\_ACEOF
7980 #define major_t int
7981 _ACEOF
7982
7983 fi
7984
7985 { echo "$as_me:$LINENO: checking for minor_t" >&5
7986 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6; }
7987 if test "${ac_cv_type_minor_t+set}" = set; then
7988   echo $ECHO_N "(cached) $ECHO_C" >&6
7989 else
7990   cat >conftest.$ac_ext <<_ACEOF
7991 /* confdefs.h.  */
7992 _ACEOF
7993 cat confdefs.h >>conftest.$ac_ext
7994 cat >>conftest.$ac_ext <<_ACEOF
7995 /* end confdefs.h.  */
7996 $ac_includes_default
7997 typedef minor_t ac__type_new_;
7998 int
7999 main ()
8000 {
8001 if ((ac__type_new_ *) 0)
8002   return 0;
8003 if (sizeof (ac__type_new_))
8004   return 0;
8005   ;
8006   return 0;
8007 }
8008 _ACEOF
8009 rm -f conftest.$ac_objext
8010 if { (ac_try="$ac_compile"
8011 case "(($ac_try" in
8012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8013   *) ac_try_echo=$ac_try;;
8014 esac
8015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8016   (eval "$ac_compile") 2>conftest.er1
8017   ac_status=$?
8018   grep -v '^ *+' conftest.er1 >conftest.err
8019   rm -f conftest.er1
8020   cat conftest.err >&5
8021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8022   (exit $ac_status); } && {
8023          test -z "$ac_c_werror_flag" ||
8024          test ! -s conftest.err
8025        } && test -s conftest.$ac_objext; then
8026   ac_cv_type_minor_t=yes
8027 else
8028   echo "$as_me: failed program was:" >&5
8029 sed 's/^/| /' conftest.$ac_ext >&5
8030
8031         ac_cv_type_minor_t=no
8032 fi
8033
8034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8035 fi
8036 { echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
8037 echo "${ECHO_T}$ac_cv_type_minor_t" >&6; }
8038 if test $ac_cv_type_minor_t = yes; then
8039   :
8040 else
8041
8042 cat >>confdefs.h <<\_ACEOF
8043 #define minor_t int
8044 _ACEOF
8045
8046 fi
8047
8048 { echo "$as_me:$LINENO: checking for dev_t" >&5
8049 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6; }
8050 if test "${ac_cv_type_dev_t+set}" = set; then
8051   echo $ECHO_N "(cached) $ECHO_C" >&6
8052 else
8053   cat >conftest.$ac_ext <<_ACEOF
8054 /* confdefs.h.  */
8055 _ACEOF
8056 cat confdefs.h >>conftest.$ac_ext
8057 cat >>conftest.$ac_ext <<_ACEOF
8058 /* end confdefs.h.  */
8059 $ac_includes_default
8060 typedef dev_t ac__type_new_;
8061 int
8062 main ()
8063 {
8064 if ((ac__type_new_ *) 0)
8065   return 0;
8066 if (sizeof (ac__type_new_))
8067   return 0;
8068   ;
8069   return 0;
8070 }
8071 _ACEOF
8072 rm -f conftest.$ac_objext
8073 if { (ac_try="$ac_compile"
8074 case "(($ac_try" in
8075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8076   *) ac_try_echo=$ac_try;;
8077 esac
8078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8079   (eval "$ac_compile") 2>conftest.er1
8080   ac_status=$?
8081   grep -v '^ *+' conftest.er1 >conftest.err
8082   rm -f conftest.er1
8083   cat conftest.err >&5
8084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8085   (exit $ac_status); } && {
8086          test -z "$ac_c_werror_flag" ||
8087          test ! -s conftest.err
8088        } && test -s conftest.$ac_objext; then
8089   ac_cv_type_dev_t=yes
8090 else
8091   echo "$as_me: failed program was:" >&5
8092 sed 's/^/| /' conftest.$ac_ext >&5
8093
8094         ac_cv_type_dev_t=no
8095 fi
8096
8097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8098 fi
8099 { echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
8100 echo "${ECHO_T}$ac_cv_type_dev_t" >&6; }
8101 if test $ac_cv_type_dev_t = yes; then
8102   :
8103 else
8104
8105 cat >>confdefs.h <<_ACEOF
8106 #define dev_t unsigned
8107 _ACEOF
8108
8109 fi
8110
8111 { echo "$as_me:$LINENO: checking for ino_t" >&5
8112 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6; }
8113 if test "${ac_cv_type_ino_t+set}" = set; then
8114   echo $ECHO_N "(cached) $ECHO_C" >&6
8115 else
8116   cat >conftest.$ac_ext <<_ACEOF
8117 /* confdefs.h.  */
8118 _ACEOF
8119 cat confdefs.h >>conftest.$ac_ext
8120 cat >>conftest.$ac_ext <<_ACEOF
8121 /* end confdefs.h.  */
8122 $ac_includes_default
8123 typedef ino_t ac__type_new_;
8124 int
8125 main ()
8126 {
8127 if ((ac__type_new_ *) 0)
8128   return 0;
8129 if (sizeof (ac__type_new_))
8130   return 0;
8131   ;
8132   return 0;
8133 }
8134 _ACEOF
8135 rm -f conftest.$ac_objext
8136 if { (ac_try="$ac_compile"
8137 case "(($ac_try" in
8138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8139   *) ac_try_echo=$ac_try;;
8140 esac
8141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8142   (eval "$ac_compile") 2>conftest.er1
8143   ac_status=$?
8144   grep -v '^ *+' conftest.er1 >conftest.err
8145   rm -f conftest.er1
8146   cat conftest.err >&5
8147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8148   (exit $ac_status); } && {
8149          test -z "$ac_c_werror_flag" ||
8150          test ! -s conftest.err
8151        } && test -s conftest.$ac_objext; then
8152   ac_cv_type_ino_t=yes
8153 else
8154   echo "$as_me: failed program was:" >&5
8155 sed 's/^/| /' conftest.$ac_ext >&5
8156
8157         ac_cv_type_ino_t=no
8158 fi
8159
8160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8161 fi
8162 { echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
8163 echo "${ECHO_T}$ac_cv_type_ino_t" >&6; }
8164 if test $ac_cv_type_ino_t = yes; then
8165   :
8166 else
8167
8168 cat >>confdefs.h <<_ACEOF
8169 #define ino_t unsigned
8170 _ACEOF
8171
8172 fi
8173
8174
8175
8176   { echo "$as_me:$LINENO: checking for ssize_t" >&5
8177 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
8178 if test "${gt_cv_ssize_t+set}" = set; then
8179   echo $ECHO_N "(cached) $ECHO_C" >&6
8180 else
8181   cat >conftest.$ac_ext <<_ACEOF
8182 /* confdefs.h.  */
8183 _ACEOF
8184 cat confdefs.h >>conftest.$ac_ext
8185 cat >>conftest.$ac_ext <<_ACEOF
8186 /* end confdefs.h.  */
8187 #include <sys/types.h>
8188 int
8189 main ()
8190 {
8191 int x = sizeof (ssize_t *) + sizeof (ssize_t);
8192         return !x;
8193   ;
8194   return 0;
8195 }
8196 _ACEOF
8197 rm -f conftest.$ac_objext
8198 if { (ac_try="$ac_compile"
8199 case "(($ac_try" in
8200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8201   *) ac_try_echo=$ac_try;;
8202 esac
8203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8204   (eval "$ac_compile") 2>conftest.er1
8205   ac_status=$?
8206   grep -v '^ *+' conftest.er1 >conftest.err
8207   rm -f conftest.er1
8208   cat conftest.err >&5
8209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8210   (exit $ac_status); } && {
8211          test -z "$ac_c_werror_flag" ||
8212          test ! -s conftest.err
8213        } && test -s conftest.$ac_objext; then
8214   gt_cv_ssize_t=yes
8215 else
8216   echo "$as_me: failed program was:" >&5
8217 sed 's/^/| /' conftest.$ac_ext >&5
8218
8219         gt_cv_ssize_t=no
8220 fi
8221
8222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8223 fi
8224 { echo "$as_me:$LINENO: result: $gt_cv_ssize_t" >&5
8225 echo "${ECHO_T}$gt_cv_ssize_t" >&6; }
8226   if test $gt_cv_ssize_t = no; then
8227
8228 cat >>confdefs.h <<\_ACEOF
8229 #define ssize_t int
8230 _ACEOF
8231
8232   fi
8233
8234
8235 # gnulib modules
8236
8237
8238
8239
8240
8241
8242
8243 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8244 # for constant arguments.  Useless!
8245 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
8246 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
8247 if test "${ac_cv_working_alloca_h+set}" = set; then
8248   echo $ECHO_N "(cached) $ECHO_C" >&6
8249 else
8250   cat >conftest.$ac_ext <<_ACEOF
8251 /* confdefs.h.  */
8252 _ACEOF
8253 cat confdefs.h >>conftest.$ac_ext
8254 cat >>conftest.$ac_ext <<_ACEOF
8255 /* end confdefs.h.  */
8256 #include <alloca.h>
8257 int
8258 main ()
8259 {
8260 char *p = (char *) alloca (2 * sizeof (int));
8261                           if (p) return 0;
8262   ;
8263   return 0;
8264 }
8265 _ACEOF
8266 rm -f conftest.$ac_objext conftest$ac_exeext
8267 if { (ac_try="$ac_link"
8268 case "(($ac_try" in
8269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8270   *) ac_try_echo=$ac_try;;
8271 esac
8272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8273   (eval "$ac_link") 2>conftest.er1
8274   ac_status=$?
8275   grep -v '^ *+' conftest.er1 >conftest.err
8276   rm -f conftest.er1
8277   cat conftest.err >&5
8278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8279   (exit $ac_status); } && {
8280          test -z "$ac_c_werror_flag" ||
8281          test ! -s conftest.err
8282        } && test -s conftest$ac_exeext &&
8283        $as_test_x conftest$ac_exeext; then
8284   ac_cv_working_alloca_h=yes
8285 else
8286   echo "$as_me: failed program was:" >&5
8287 sed 's/^/| /' conftest.$ac_ext >&5
8288
8289         ac_cv_working_alloca_h=no
8290 fi
8291
8292 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8293       conftest$ac_exeext conftest.$ac_ext
8294 fi
8295 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
8296 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
8297 if test $ac_cv_working_alloca_h = yes; then
8298
8299 cat >>confdefs.h <<\_ACEOF
8300 #define HAVE_ALLOCA_H 1
8301 _ACEOF
8302
8303 fi
8304
8305 { echo "$as_me:$LINENO: checking for alloca" >&5
8306 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
8307 if test "${ac_cv_func_alloca_works+set}" = set; then
8308   echo $ECHO_N "(cached) $ECHO_C" >&6
8309 else
8310   cat >conftest.$ac_ext <<_ACEOF
8311 /* confdefs.h.  */
8312 _ACEOF
8313 cat confdefs.h >>conftest.$ac_ext
8314 cat >>conftest.$ac_ext <<_ACEOF
8315 /* end confdefs.h.  */
8316 #ifdef __GNUC__
8317 # define alloca __builtin_alloca
8318 #else
8319 # ifdef _MSC_VER
8320 #  include <malloc.h>
8321 #  define alloca _alloca
8322 # else
8323 #  ifdef HAVE_ALLOCA_H
8324 #   include <alloca.h>
8325 #  else
8326 #   ifdef _AIX
8327  #pragma alloca
8328 #   else
8329 #    ifndef alloca /* predefined by HP cc +Olibcalls */
8330 char *alloca ();
8331 #    endif
8332 #   endif
8333 #  endif
8334 # endif
8335 #endif
8336
8337 int
8338 main ()
8339 {
8340 char *p = (char *) alloca (1);
8341                                     if (p) return 0;
8342   ;
8343   return 0;
8344 }
8345 _ACEOF
8346 rm -f conftest.$ac_objext conftest$ac_exeext
8347 if { (ac_try="$ac_link"
8348 case "(($ac_try" in
8349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8350   *) ac_try_echo=$ac_try;;
8351 esac
8352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8353   (eval "$ac_link") 2>conftest.er1
8354   ac_status=$?
8355   grep -v '^ *+' conftest.er1 >conftest.err
8356   rm -f conftest.er1
8357   cat conftest.err >&5
8358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8359   (exit $ac_status); } && {
8360          test -z "$ac_c_werror_flag" ||
8361          test ! -s conftest.err
8362        } && test -s conftest$ac_exeext &&
8363        $as_test_x conftest$ac_exeext; then
8364   ac_cv_func_alloca_works=yes
8365 else
8366   echo "$as_me: failed program was:" >&5
8367 sed 's/^/| /' conftest.$ac_ext >&5
8368
8369         ac_cv_func_alloca_works=no
8370 fi
8371
8372 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8373       conftest$ac_exeext conftest.$ac_ext
8374 fi
8375 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
8376 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
8377
8378 if test $ac_cv_func_alloca_works = yes; then
8379
8380 cat >>confdefs.h <<\_ACEOF
8381 #define HAVE_ALLOCA 1
8382 _ACEOF
8383
8384 else
8385   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8386 # that cause trouble.  Some versions do not even contain alloca or
8387 # contain a buggy version.  If you still want to use their alloca,
8388 # use ar to extract alloca.o from them instead of compiling alloca.c.
8389
8390
8391
8392
8393
8394 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
8395
8396 cat >>confdefs.h <<\_ACEOF
8397 #define C_ALLOCA 1
8398 _ACEOF
8399
8400
8401 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
8402 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
8403 if test "${ac_cv_os_cray+set}" = set; then
8404   echo $ECHO_N "(cached) $ECHO_C" >&6
8405 else
8406   cat >conftest.$ac_ext <<_ACEOF
8407 /* confdefs.h.  */
8408 _ACEOF
8409 cat confdefs.h >>conftest.$ac_ext
8410 cat >>conftest.$ac_ext <<_ACEOF
8411 /* end confdefs.h.  */
8412 #if defined CRAY && ! defined CRAY2
8413 webecray
8414 #else
8415 wenotbecray
8416 #endif
8417
8418 _ACEOF
8419 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8420   $EGREP "webecray" >/dev/null 2>&1; then
8421   ac_cv_os_cray=yes
8422 else
8423   ac_cv_os_cray=no
8424 fi
8425 rm -f conftest*
8426
8427 fi
8428 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
8429 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
8430 if test $ac_cv_os_cray = yes; then
8431   for ac_func in _getb67 GETB67 getb67; do
8432     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8433 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8434 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8435 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8436   echo $ECHO_N "(cached) $ECHO_C" >&6
8437 else
8438   cat >conftest.$ac_ext <<_ACEOF
8439 /* confdefs.h.  */
8440 _ACEOF
8441 cat confdefs.h >>conftest.$ac_ext
8442 cat >>conftest.$ac_ext <<_ACEOF
8443 /* end confdefs.h.  */
8444 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8445    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8446 #define $ac_func innocuous_$ac_func
8447
8448 /* System header to define __stub macros and hopefully few prototypes,
8449     which can conflict with char $ac_func (); below.
8450     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8451     <limits.h> exists even on freestanding compilers.  */
8452
8453 #ifdef __STDC__
8454 # include <limits.h>
8455 #else
8456 # include <assert.h>
8457 #endif
8458
8459 #undef $ac_func
8460
8461 /* Override any GCC internal prototype to avoid an error.
8462    Use char because int might match the return type of a GCC
8463    builtin and then its argument prototype would still apply.  */
8464 #ifdef __cplusplus
8465 extern "C"
8466 #endif
8467 char $ac_func ();
8468 /* The GNU C library defines this for functions which it implements
8469     to always fail with ENOSYS.  Some functions are actually named
8470     something starting with __ and the normal name is an alias.  */
8471 #if defined __stub_$ac_func || defined __stub___$ac_func
8472 choke me
8473 #endif
8474
8475 int
8476 main ()
8477 {
8478 return $ac_func ();
8479   ;
8480   return 0;
8481 }
8482 _ACEOF
8483 rm -f conftest.$ac_objext conftest$ac_exeext
8484 if { (ac_try="$ac_link"
8485 case "(($ac_try" in
8486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8487   *) ac_try_echo=$ac_try;;
8488 esac
8489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8490   (eval "$ac_link") 2>conftest.er1
8491   ac_status=$?
8492   grep -v '^ *+' conftest.er1 >conftest.err
8493   rm -f conftest.er1
8494   cat conftest.err >&5
8495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8496   (exit $ac_status); } && {
8497          test -z "$ac_c_werror_flag" ||
8498          test ! -s conftest.err
8499        } && test -s conftest$ac_exeext &&
8500        $as_test_x conftest$ac_exeext; then
8501   eval "$as_ac_var=yes"
8502 else
8503   echo "$as_me: failed program was:" >&5
8504 sed 's/^/| /' conftest.$ac_ext >&5
8505
8506         eval "$as_ac_var=no"
8507 fi
8508
8509 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8510       conftest$ac_exeext conftest.$ac_ext
8511 fi
8512 ac_res=`eval echo '${'$as_ac_var'}'`
8513                { echo "$as_me:$LINENO: result: $ac_res" >&5
8514 echo "${ECHO_T}$ac_res" >&6; }
8515 if test `eval echo '${'$as_ac_var'}'` = yes; then
8516
8517 cat >>confdefs.h <<_ACEOF
8518 #define CRAY_STACKSEG_END $ac_func
8519 _ACEOF
8520
8521     break
8522 fi
8523
8524   done
8525 fi
8526
8527 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
8528 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
8529 if test "${ac_cv_c_stack_direction+set}" = set; then
8530   echo $ECHO_N "(cached) $ECHO_C" >&6
8531 else
8532   if test "$cross_compiling" = yes; then
8533   ac_cv_c_stack_direction=0
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 find_stack_direction ()
8544 {
8545   static char *addr = 0;
8546   auto char dummy;
8547   if (addr == 0)
8548     {
8549       addr = &dummy;
8550       return find_stack_direction ();
8551     }
8552   else
8553     return (&dummy > addr) ? 1 : -1;
8554 }
8555
8556 int
8557 main ()
8558 {
8559   return find_stack_direction () < 0;
8560 }
8561 _ACEOF
8562 rm -f conftest$ac_exeext
8563 if { (ac_try="$ac_link"
8564 case "(($ac_try" in
8565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8566   *) ac_try_echo=$ac_try;;
8567 esac
8568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8569   (eval "$ac_link") 2>&5
8570   ac_status=$?
8571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8572   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8573   { (case "(($ac_try" in
8574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8575   *) ac_try_echo=$ac_try;;
8576 esac
8577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8578   (eval "$ac_try") 2>&5
8579   ac_status=$?
8580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8581   (exit $ac_status); }; }; then
8582   ac_cv_c_stack_direction=1
8583 else
8584   echo "$as_me: program exited with status $ac_status" >&5
8585 echo "$as_me: failed program was:" >&5
8586 sed 's/^/| /' conftest.$ac_ext >&5
8587
8588 ( exit $ac_status )
8589 ac_cv_c_stack_direction=-1
8590 fi
8591 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8592 fi
8593
8594
8595 fi
8596 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
8597 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
8598
8599 cat >>confdefs.h <<_ACEOF
8600 #define STACK_DIRECTION $ac_cv_c_stack_direction
8601 _ACEOF
8602
8603
8604 fi
8605
8606 { echo "$as_me:$LINENO: checking for C/C++ restrict keyword" >&5
8607 echo $ECHO_N "checking for C/C++ restrict keyword... $ECHO_C" >&6; }
8608 if test "${ac_cv_c_restrict+set}" = set; then
8609   echo $ECHO_N "(cached) $ECHO_C" >&6
8610 else
8611   ac_cv_c_restrict=no
8612    # The order here caters to the fact that C++ does not require restrict.
8613    for ac_kw in __restrict __restrict__ _Restrict restrict; do
8614      cat >conftest.$ac_ext <<_ACEOF
8615 /* confdefs.h.  */
8616 _ACEOF
8617 cat confdefs.h >>conftest.$ac_ext
8618 cat >>conftest.$ac_ext <<_ACEOF
8619 /* end confdefs.h.  */
8620 typedef int * int_ptr;
8621         int foo (int_ptr $ac_kw ip) {
8622         return ip[0];
8623        }
8624 int
8625 main ()
8626 {
8627 int s[1];
8628         int * $ac_kw t = s;
8629         t[0] = 0;
8630         return foo(t)
8631   ;
8632   return 0;
8633 }
8634 _ACEOF
8635 rm -f conftest.$ac_objext
8636 if { (ac_try="$ac_compile"
8637 case "(($ac_try" in
8638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8639   *) ac_try_echo=$ac_try;;
8640 esac
8641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8642   (eval "$ac_compile") 2>conftest.er1
8643   ac_status=$?
8644   grep -v '^ *+' conftest.er1 >conftest.err
8645   rm -f conftest.er1
8646   cat conftest.err >&5
8647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8648   (exit $ac_status); } && {
8649          test -z "$ac_c_werror_flag" ||
8650          test ! -s conftest.err
8651        } && test -s conftest.$ac_objext; then
8652   ac_cv_c_restrict=$ac_kw
8653 else
8654   echo "$as_me: failed program was:" >&5
8655 sed 's/^/| /' conftest.$ac_ext >&5
8656
8657
8658 fi
8659
8660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8661      test "$ac_cv_c_restrict" != no && break
8662    done
8663
8664 fi
8665 { echo "$as_me:$LINENO: result: $ac_cv_c_restrict" >&5
8666 echo "${ECHO_T}$ac_cv_c_restrict" >&6; }
8667
8668
8669  case $ac_cv_c_restrict in
8670    restrict) ;;
8671    no) cat >>confdefs.h <<\_ACEOF
8672 #define restrict
8673 _ACEOF
8674  ;;
8675    *)  cat >>confdefs.h <<_ACEOF
8676 #define restrict $ac_cv_c_restrict
8677 _ACEOF
8678  ;;
8679  esac
8680
8681 { echo "$as_me:$LINENO: checking whether getenv is declared" >&5
8682 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6; }
8683 if test "${ac_cv_have_decl_getenv+set}" = set; then
8684   echo $ECHO_N "(cached) $ECHO_C" >&6
8685 else
8686   cat >conftest.$ac_ext <<_ACEOF
8687 /* confdefs.h.  */
8688 _ACEOF
8689 cat confdefs.h >>conftest.$ac_ext
8690 cat >>conftest.$ac_ext <<_ACEOF
8691 /* end confdefs.h.  */
8692 $ac_includes_default
8693 int
8694 main ()
8695 {
8696 #ifndef getenv
8697   (void) getenv;
8698 #endif
8699
8700   ;
8701   return 0;
8702 }
8703 _ACEOF
8704 rm -f conftest.$ac_objext
8705 if { (ac_try="$ac_compile"
8706 case "(($ac_try" in
8707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8708   *) ac_try_echo=$ac_try;;
8709 esac
8710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8711   (eval "$ac_compile") 2>conftest.er1
8712   ac_status=$?
8713   grep -v '^ *+' conftest.er1 >conftest.err
8714   rm -f conftest.er1
8715   cat conftest.err >&5
8716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8717   (exit $ac_status); } && {
8718          test -z "$ac_c_werror_flag" ||
8719          test ! -s conftest.err
8720        } && test -s conftest.$ac_objext; then
8721   ac_cv_have_decl_getenv=yes
8722 else
8723   echo "$as_me: failed program was:" >&5
8724 sed 's/^/| /' conftest.$ac_ext >&5
8725
8726         ac_cv_have_decl_getenv=no
8727 fi
8728
8729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8730 fi
8731 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
8732 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6; }
8733 if test $ac_cv_have_decl_getenv = yes; then
8734
8735 cat >>confdefs.h <<_ACEOF
8736 #define HAVE_DECL_GETENV 1
8737 _ACEOF
8738
8739
8740 else
8741   cat >>confdefs.h <<_ACEOF
8742 #define HAVE_DECL_GETENV 0
8743 _ACEOF
8744
8745
8746 fi
8747
8748
8749 { echo "$as_me:$LINENO: checking whether clearerr_unlocked is declared" >&5
8750 echo $ECHO_N "checking whether clearerr_unlocked is declared... $ECHO_C" >&6; }
8751 if test "${ac_cv_have_decl_clearerr_unlocked+set}" = set; then
8752   echo $ECHO_N "(cached) $ECHO_C" >&6
8753 else
8754   cat >conftest.$ac_ext <<_ACEOF
8755 /* confdefs.h.  */
8756 _ACEOF
8757 cat confdefs.h >>conftest.$ac_ext
8758 cat >>conftest.$ac_ext <<_ACEOF
8759 /* end confdefs.h.  */
8760 $ac_includes_default
8761 int
8762 main ()
8763 {
8764 #ifndef clearerr_unlocked
8765   (void) clearerr_unlocked;
8766 #endif
8767
8768   ;
8769   return 0;
8770 }
8771 _ACEOF
8772 rm -f conftest.$ac_objext
8773 if { (ac_try="$ac_compile"
8774 case "(($ac_try" in
8775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8776   *) ac_try_echo=$ac_try;;
8777 esac
8778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8779   (eval "$ac_compile") 2>conftest.er1
8780   ac_status=$?
8781   grep -v '^ *+' conftest.er1 >conftest.err
8782   rm -f conftest.er1
8783   cat conftest.err >&5
8784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8785   (exit $ac_status); } && {
8786          test -z "$ac_c_werror_flag" ||
8787          test ! -s conftest.err
8788        } && test -s conftest.$ac_objext; then
8789   ac_cv_have_decl_clearerr_unlocked=yes
8790 else
8791   echo "$as_me: failed program was:" >&5
8792 sed 's/^/| /' conftest.$ac_ext >&5
8793
8794         ac_cv_have_decl_clearerr_unlocked=no
8795 fi
8796
8797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8798 fi
8799 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_clearerr_unlocked" >&5
8800 echo "${ECHO_T}$ac_cv_have_decl_clearerr_unlocked" >&6; }
8801 if test $ac_cv_have_decl_clearerr_unlocked = yes; then
8802
8803 cat >>confdefs.h <<_ACEOF
8804 #define HAVE_DECL_CLEARERR_UNLOCKED 1
8805 _ACEOF
8806
8807
8808 else
8809   cat >>confdefs.h <<_ACEOF
8810 #define HAVE_DECL_CLEARERR_UNLOCKED 0
8811 _ACEOF
8812
8813
8814 fi
8815
8816
8817 { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
8818 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
8819 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
8820   echo $ECHO_N "(cached) $ECHO_C" >&6
8821 else
8822   cat >conftest.$ac_ext <<_ACEOF
8823 /* confdefs.h.  */
8824 _ACEOF
8825 cat confdefs.h >>conftest.$ac_ext
8826 cat >>conftest.$ac_ext <<_ACEOF
8827 /* end confdefs.h.  */
8828 $ac_includes_default
8829 int
8830 main ()
8831 {
8832 #ifndef feof_unlocked
8833   (void) feof_unlocked;
8834 #endif
8835
8836   ;
8837   return 0;
8838 }
8839 _ACEOF
8840 rm -f conftest.$ac_objext
8841 if { (ac_try="$ac_compile"
8842 case "(($ac_try" in
8843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8844   *) ac_try_echo=$ac_try;;
8845 esac
8846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8847   (eval "$ac_compile") 2>conftest.er1
8848   ac_status=$?
8849   grep -v '^ *+' conftest.er1 >conftest.err
8850   rm -f conftest.er1
8851   cat conftest.err >&5
8852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8853   (exit $ac_status); } && {
8854          test -z "$ac_c_werror_flag" ||
8855          test ! -s conftest.err
8856        } && test -s conftest.$ac_objext; then
8857   ac_cv_have_decl_feof_unlocked=yes
8858 else
8859   echo "$as_me: failed program was:" >&5
8860 sed 's/^/| /' conftest.$ac_ext >&5
8861
8862         ac_cv_have_decl_feof_unlocked=no
8863 fi
8864
8865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8866 fi
8867 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
8868 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
8869 if test $ac_cv_have_decl_feof_unlocked = yes; then
8870
8871 cat >>confdefs.h <<_ACEOF
8872 #define HAVE_DECL_FEOF_UNLOCKED 1
8873 _ACEOF
8874
8875
8876 else
8877   cat >>confdefs.h <<_ACEOF
8878 #define HAVE_DECL_FEOF_UNLOCKED 0
8879 _ACEOF
8880
8881
8882 fi
8883
8884
8885 { echo "$as_me:$LINENO: checking whether ferror_unlocked is declared" >&5
8886 echo $ECHO_N "checking whether ferror_unlocked is declared... $ECHO_C" >&6; }
8887 if test "${ac_cv_have_decl_ferror_unlocked+set}" = set; then
8888   echo $ECHO_N "(cached) $ECHO_C" >&6
8889 else
8890   cat >conftest.$ac_ext <<_ACEOF
8891 /* confdefs.h.  */
8892 _ACEOF
8893 cat confdefs.h >>conftest.$ac_ext
8894 cat >>conftest.$ac_ext <<_ACEOF
8895 /* end confdefs.h.  */
8896 $ac_includes_default
8897 int
8898 main ()
8899 {
8900 #ifndef ferror_unlocked
8901   (void) ferror_unlocked;
8902 #endif
8903
8904   ;
8905   return 0;
8906 }
8907 _ACEOF
8908 rm -f conftest.$ac_objext
8909 if { (ac_try="$ac_compile"
8910 case "(($ac_try" in
8911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8912   *) ac_try_echo=$ac_try;;
8913 esac
8914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8915   (eval "$ac_compile") 2>conftest.er1
8916   ac_status=$?
8917   grep -v '^ *+' conftest.er1 >conftest.err
8918   rm -f conftest.er1
8919   cat conftest.err >&5
8920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8921   (exit $ac_status); } && {
8922          test -z "$ac_c_werror_flag" ||
8923          test ! -s conftest.err
8924        } && test -s conftest.$ac_objext; then
8925   ac_cv_have_decl_ferror_unlocked=yes
8926 else
8927   echo "$as_me: failed program was:" >&5
8928 sed 's/^/| /' conftest.$ac_ext >&5
8929
8930         ac_cv_have_decl_ferror_unlocked=no
8931 fi
8932
8933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8934 fi
8935 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_ferror_unlocked" >&5
8936 echo "${ECHO_T}$ac_cv_have_decl_ferror_unlocked" >&6; }
8937 if test $ac_cv_have_decl_ferror_unlocked = yes; then
8938
8939 cat >>confdefs.h <<_ACEOF
8940 #define HAVE_DECL_FERROR_UNLOCKED 1
8941 _ACEOF
8942
8943
8944 else
8945   cat >>confdefs.h <<_ACEOF
8946 #define HAVE_DECL_FERROR_UNLOCKED 0
8947 _ACEOF
8948
8949
8950 fi
8951
8952
8953 { echo "$as_me:$LINENO: checking whether fflush_unlocked is declared" >&5
8954 echo $ECHO_N "checking whether fflush_unlocked is declared... $ECHO_C" >&6; }
8955 if test "${ac_cv_have_decl_fflush_unlocked+set}" = set; then
8956   echo $ECHO_N "(cached) $ECHO_C" >&6
8957 else
8958   cat >conftest.$ac_ext <<_ACEOF
8959 /* confdefs.h.  */
8960 _ACEOF
8961 cat confdefs.h >>conftest.$ac_ext
8962 cat >>conftest.$ac_ext <<_ACEOF
8963 /* end confdefs.h.  */
8964 $ac_includes_default
8965 int
8966 main ()
8967 {
8968 #ifndef fflush_unlocked
8969   (void) fflush_unlocked;
8970 #endif
8971
8972   ;
8973   return 0;
8974 }
8975 _ACEOF
8976 rm -f conftest.$ac_objext
8977 if { (ac_try="$ac_compile"
8978 case "(($ac_try" in
8979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8980   *) ac_try_echo=$ac_try;;
8981 esac
8982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8983   (eval "$ac_compile") 2>conftest.er1
8984   ac_status=$?
8985   grep -v '^ *+' conftest.er1 >conftest.err
8986   rm -f conftest.er1
8987   cat conftest.err >&5
8988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8989   (exit $ac_status); } && {
8990          test -z "$ac_c_werror_flag" ||
8991          test ! -s conftest.err
8992        } && test -s conftest.$ac_objext; then
8993   ac_cv_have_decl_fflush_unlocked=yes
8994 else
8995   echo "$as_me: failed program was:" >&5
8996 sed 's/^/| /' conftest.$ac_ext >&5
8997
8998         ac_cv_have_decl_fflush_unlocked=no
8999 fi
9000
9001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9002 fi
9003 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fflush_unlocked" >&5
9004 echo "${ECHO_T}$ac_cv_have_decl_fflush_unlocked" >&6; }
9005 if test $ac_cv_have_decl_fflush_unlocked = yes; then
9006
9007 cat >>confdefs.h <<_ACEOF
9008 #define HAVE_DECL_FFLUSH_UNLOCKED 1
9009 _ACEOF
9010
9011
9012 else
9013   cat >>confdefs.h <<_ACEOF
9014 #define HAVE_DECL_FFLUSH_UNLOCKED 0
9015 _ACEOF
9016
9017
9018 fi
9019
9020
9021 { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
9022 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
9023 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
9024   echo $ECHO_N "(cached) $ECHO_C" >&6
9025 else
9026   cat >conftest.$ac_ext <<_ACEOF
9027 /* confdefs.h.  */
9028 _ACEOF
9029 cat confdefs.h >>conftest.$ac_ext
9030 cat >>conftest.$ac_ext <<_ACEOF
9031 /* end confdefs.h.  */
9032 $ac_includes_default
9033 int
9034 main ()
9035 {
9036 #ifndef fgets_unlocked
9037   (void) fgets_unlocked;
9038 #endif
9039
9040   ;
9041   return 0;
9042 }
9043 _ACEOF
9044 rm -f conftest.$ac_objext
9045 if { (ac_try="$ac_compile"
9046 case "(($ac_try" in
9047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9048   *) ac_try_echo=$ac_try;;
9049 esac
9050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9051   (eval "$ac_compile") 2>conftest.er1
9052   ac_status=$?
9053   grep -v '^ *+' conftest.er1 >conftest.err
9054   rm -f conftest.er1
9055   cat conftest.err >&5
9056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9057   (exit $ac_status); } && {
9058          test -z "$ac_c_werror_flag" ||
9059          test ! -s conftest.err
9060        } && test -s conftest.$ac_objext; then
9061   ac_cv_have_decl_fgets_unlocked=yes
9062 else
9063   echo "$as_me: failed program was:" >&5
9064 sed 's/^/| /' conftest.$ac_ext >&5
9065
9066         ac_cv_have_decl_fgets_unlocked=no
9067 fi
9068
9069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9070 fi
9071 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
9072 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
9073 if test $ac_cv_have_decl_fgets_unlocked = yes; then
9074
9075 cat >>confdefs.h <<_ACEOF
9076 #define HAVE_DECL_FGETS_UNLOCKED 1
9077 _ACEOF
9078
9079
9080 else
9081   cat >>confdefs.h <<_ACEOF
9082 #define HAVE_DECL_FGETS_UNLOCKED 0
9083 _ACEOF
9084
9085
9086 fi
9087
9088
9089 { echo "$as_me:$LINENO: checking whether fputc_unlocked is declared" >&5
9090 echo $ECHO_N "checking whether fputc_unlocked is declared... $ECHO_C" >&6; }
9091 if test "${ac_cv_have_decl_fputc_unlocked+set}" = set; then
9092   echo $ECHO_N "(cached) $ECHO_C" >&6
9093 else
9094   cat >conftest.$ac_ext <<_ACEOF
9095 /* confdefs.h.  */
9096 _ACEOF
9097 cat confdefs.h >>conftest.$ac_ext
9098 cat >>conftest.$ac_ext <<_ACEOF
9099 /* end confdefs.h.  */
9100 $ac_includes_default
9101 int
9102 main ()
9103 {
9104 #ifndef fputc_unlocked
9105   (void) fputc_unlocked;
9106 #endif
9107
9108   ;
9109   return 0;
9110 }
9111 _ACEOF
9112 rm -f conftest.$ac_objext
9113 if { (ac_try="$ac_compile"
9114 case "(($ac_try" in
9115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9116   *) ac_try_echo=$ac_try;;
9117 esac
9118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9119   (eval "$ac_compile") 2>conftest.er1
9120   ac_status=$?
9121   grep -v '^ *+' conftest.er1 >conftest.err
9122   rm -f conftest.er1
9123   cat conftest.err >&5
9124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9125   (exit $ac_status); } && {
9126          test -z "$ac_c_werror_flag" ||
9127          test ! -s conftest.err
9128        } && test -s conftest.$ac_objext; then
9129   ac_cv_have_decl_fputc_unlocked=yes
9130 else
9131   echo "$as_me: failed program was:" >&5
9132 sed 's/^/| /' conftest.$ac_ext >&5
9133
9134         ac_cv_have_decl_fputc_unlocked=no
9135 fi
9136
9137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9138 fi
9139 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputc_unlocked" >&5
9140 echo "${ECHO_T}$ac_cv_have_decl_fputc_unlocked" >&6; }
9141 if test $ac_cv_have_decl_fputc_unlocked = yes; then
9142
9143 cat >>confdefs.h <<_ACEOF
9144 #define HAVE_DECL_FPUTC_UNLOCKED 1
9145 _ACEOF
9146
9147
9148 else
9149   cat >>confdefs.h <<_ACEOF
9150 #define HAVE_DECL_FPUTC_UNLOCKED 0
9151 _ACEOF
9152
9153
9154 fi
9155
9156
9157 { echo "$as_me:$LINENO: checking whether fputs_unlocked is declared" >&5
9158 echo $ECHO_N "checking whether fputs_unlocked is declared... $ECHO_C" >&6; }
9159 if test "${ac_cv_have_decl_fputs_unlocked+set}" = set; then
9160   echo $ECHO_N "(cached) $ECHO_C" >&6
9161 else
9162   cat >conftest.$ac_ext <<_ACEOF
9163 /* confdefs.h.  */
9164 _ACEOF
9165 cat confdefs.h >>conftest.$ac_ext
9166 cat >>conftest.$ac_ext <<_ACEOF
9167 /* end confdefs.h.  */
9168 $ac_includes_default
9169 int
9170 main ()
9171 {
9172 #ifndef fputs_unlocked
9173   (void) fputs_unlocked;
9174 #endif
9175
9176   ;
9177   return 0;
9178 }
9179 _ACEOF
9180 rm -f conftest.$ac_objext
9181 if { (ac_try="$ac_compile"
9182 case "(($ac_try" in
9183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9184   *) ac_try_echo=$ac_try;;
9185 esac
9186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9187   (eval "$ac_compile") 2>conftest.er1
9188   ac_status=$?
9189   grep -v '^ *+' conftest.er1 >conftest.err
9190   rm -f conftest.er1
9191   cat conftest.err >&5
9192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9193   (exit $ac_status); } && {
9194          test -z "$ac_c_werror_flag" ||
9195          test ! -s conftest.err
9196        } && test -s conftest.$ac_objext; then
9197   ac_cv_have_decl_fputs_unlocked=yes
9198 else
9199   echo "$as_me: failed program was:" >&5
9200 sed 's/^/| /' conftest.$ac_ext >&5
9201
9202         ac_cv_have_decl_fputs_unlocked=no
9203 fi
9204
9205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9206 fi
9207 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputs_unlocked" >&5
9208 echo "${ECHO_T}$ac_cv_have_decl_fputs_unlocked" >&6; }
9209 if test $ac_cv_have_decl_fputs_unlocked = yes; then
9210
9211 cat >>confdefs.h <<_ACEOF
9212 #define HAVE_DECL_FPUTS_UNLOCKED 1
9213 _ACEOF
9214
9215
9216 else
9217   cat >>confdefs.h <<_ACEOF
9218 #define HAVE_DECL_FPUTS_UNLOCKED 0
9219 _ACEOF
9220
9221
9222 fi
9223
9224
9225 { echo "$as_me:$LINENO: checking whether fread_unlocked is declared" >&5
9226 echo $ECHO_N "checking whether fread_unlocked is declared... $ECHO_C" >&6; }
9227 if test "${ac_cv_have_decl_fread_unlocked+set}" = set; then
9228   echo $ECHO_N "(cached) $ECHO_C" >&6
9229 else
9230   cat >conftest.$ac_ext <<_ACEOF
9231 /* confdefs.h.  */
9232 _ACEOF
9233 cat confdefs.h >>conftest.$ac_ext
9234 cat >>conftest.$ac_ext <<_ACEOF
9235 /* end confdefs.h.  */
9236 $ac_includes_default
9237 int
9238 main ()
9239 {
9240 #ifndef fread_unlocked
9241   (void) fread_unlocked;
9242 #endif
9243
9244   ;
9245   return 0;
9246 }
9247 _ACEOF
9248 rm -f conftest.$ac_objext
9249 if { (ac_try="$ac_compile"
9250 case "(($ac_try" in
9251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9252   *) ac_try_echo=$ac_try;;
9253 esac
9254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9255   (eval "$ac_compile") 2>conftest.er1
9256   ac_status=$?
9257   grep -v '^ *+' conftest.er1 >conftest.err
9258   rm -f conftest.er1
9259   cat conftest.err >&5
9260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9261   (exit $ac_status); } && {
9262          test -z "$ac_c_werror_flag" ||
9263          test ! -s conftest.err
9264        } && test -s conftest.$ac_objext; then
9265   ac_cv_have_decl_fread_unlocked=yes
9266 else
9267   echo "$as_me: failed program was:" >&5
9268 sed 's/^/| /' conftest.$ac_ext >&5
9269
9270         ac_cv_have_decl_fread_unlocked=no
9271 fi
9272
9273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9274 fi
9275 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fread_unlocked" >&5
9276 echo "${ECHO_T}$ac_cv_have_decl_fread_unlocked" >&6; }
9277 if test $ac_cv_have_decl_fread_unlocked = yes; then
9278
9279 cat >>confdefs.h <<_ACEOF
9280 #define HAVE_DECL_FREAD_UNLOCKED 1
9281 _ACEOF
9282
9283
9284 else
9285   cat >>confdefs.h <<_ACEOF
9286 #define HAVE_DECL_FREAD_UNLOCKED 0
9287 _ACEOF
9288
9289
9290 fi
9291
9292
9293 { echo "$as_me:$LINENO: checking whether fwrite_unlocked is declared" >&5
9294 echo $ECHO_N "checking whether fwrite_unlocked is declared... $ECHO_C" >&6; }
9295 if test "${ac_cv_have_decl_fwrite_unlocked+set}" = set; then
9296   echo $ECHO_N "(cached) $ECHO_C" >&6
9297 else
9298   cat >conftest.$ac_ext <<_ACEOF
9299 /* confdefs.h.  */
9300 _ACEOF
9301 cat confdefs.h >>conftest.$ac_ext
9302 cat >>conftest.$ac_ext <<_ACEOF
9303 /* end confdefs.h.  */
9304 $ac_includes_default
9305 int
9306 main ()
9307 {
9308 #ifndef fwrite_unlocked
9309   (void) fwrite_unlocked;
9310 #endif
9311
9312   ;
9313   return 0;
9314 }
9315 _ACEOF
9316 rm -f conftest.$ac_objext
9317 if { (ac_try="$ac_compile"
9318 case "(($ac_try" in
9319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9320   *) ac_try_echo=$ac_try;;
9321 esac
9322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9323   (eval "$ac_compile") 2>conftest.er1
9324   ac_status=$?
9325   grep -v '^ *+' conftest.er1 >conftest.err
9326   rm -f conftest.er1
9327   cat conftest.err >&5
9328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9329   (exit $ac_status); } && {
9330          test -z "$ac_c_werror_flag" ||
9331          test ! -s conftest.err
9332        } && test -s conftest.$ac_objext; then
9333   ac_cv_have_decl_fwrite_unlocked=yes
9334 else
9335   echo "$as_me: failed program was:" >&5
9336 sed 's/^/| /' conftest.$ac_ext >&5
9337
9338         ac_cv_have_decl_fwrite_unlocked=no
9339 fi
9340
9341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9342 fi
9343 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fwrite_unlocked" >&5
9344 echo "${ECHO_T}$ac_cv_have_decl_fwrite_unlocked" >&6; }
9345 if test $ac_cv_have_decl_fwrite_unlocked = yes; then
9346
9347 cat >>confdefs.h <<_ACEOF
9348 #define HAVE_DECL_FWRITE_UNLOCKED 1
9349 _ACEOF
9350
9351
9352 else
9353   cat >>confdefs.h <<_ACEOF
9354 #define HAVE_DECL_FWRITE_UNLOCKED 0
9355 _ACEOF
9356
9357
9358 fi
9359
9360
9361 { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
9362 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
9363 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
9364   echo $ECHO_N "(cached) $ECHO_C" >&6
9365 else
9366   cat >conftest.$ac_ext <<_ACEOF
9367 /* confdefs.h.  */
9368 _ACEOF
9369 cat confdefs.h >>conftest.$ac_ext
9370 cat >>conftest.$ac_ext <<_ACEOF
9371 /* end confdefs.h.  */
9372 $ac_includes_default
9373 int
9374 main ()
9375 {
9376 #ifndef getc_unlocked
9377   (void) getc_unlocked;
9378 #endif
9379
9380   ;
9381   return 0;
9382 }
9383 _ACEOF
9384 rm -f conftest.$ac_objext
9385 if { (ac_try="$ac_compile"
9386 case "(($ac_try" in
9387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9388   *) ac_try_echo=$ac_try;;
9389 esac
9390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9391   (eval "$ac_compile") 2>conftest.er1
9392   ac_status=$?
9393   grep -v '^ *+' conftest.er1 >conftest.err
9394   rm -f conftest.er1
9395   cat conftest.err >&5
9396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9397   (exit $ac_status); } && {
9398          test -z "$ac_c_werror_flag" ||
9399          test ! -s conftest.err
9400        } && test -s conftest.$ac_objext; then
9401   ac_cv_have_decl_getc_unlocked=yes
9402 else
9403   echo "$as_me: failed program was:" >&5
9404 sed 's/^/| /' conftest.$ac_ext >&5
9405
9406         ac_cv_have_decl_getc_unlocked=no
9407 fi
9408
9409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9410 fi
9411 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
9412 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
9413 if test $ac_cv_have_decl_getc_unlocked = yes; then
9414
9415 cat >>confdefs.h <<_ACEOF
9416 #define HAVE_DECL_GETC_UNLOCKED 1
9417 _ACEOF
9418
9419
9420 else
9421   cat >>confdefs.h <<_ACEOF
9422 #define HAVE_DECL_GETC_UNLOCKED 0
9423 _ACEOF
9424
9425
9426 fi
9427
9428
9429 { echo "$as_me:$LINENO: checking whether getchar_unlocked is declared" >&5
9430 echo $ECHO_N "checking whether getchar_unlocked is declared... $ECHO_C" >&6; }
9431 if test "${ac_cv_have_decl_getchar_unlocked+set}" = set; then
9432   echo $ECHO_N "(cached) $ECHO_C" >&6
9433 else
9434   cat >conftest.$ac_ext <<_ACEOF
9435 /* confdefs.h.  */
9436 _ACEOF
9437 cat confdefs.h >>conftest.$ac_ext
9438 cat >>conftest.$ac_ext <<_ACEOF
9439 /* end confdefs.h.  */
9440 $ac_includes_default
9441 int
9442 main ()
9443 {
9444 #ifndef getchar_unlocked
9445   (void) getchar_unlocked;
9446 #endif
9447
9448   ;
9449   return 0;
9450 }
9451 _ACEOF
9452 rm -f conftest.$ac_objext
9453 if { (ac_try="$ac_compile"
9454 case "(($ac_try" in
9455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9456   *) ac_try_echo=$ac_try;;
9457 esac
9458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9459   (eval "$ac_compile") 2>conftest.er1
9460   ac_status=$?
9461   grep -v '^ *+' conftest.er1 >conftest.err
9462   rm -f conftest.er1
9463   cat conftest.err >&5
9464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9465   (exit $ac_status); } && {
9466          test -z "$ac_c_werror_flag" ||
9467          test ! -s conftest.err
9468        } && test -s conftest.$ac_objext; then
9469   ac_cv_have_decl_getchar_unlocked=yes
9470 else
9471   echo "$as_me: failed program was:" >&5
9472 sed 's/^/| /' conftest.$ac_ext >&5
9473
9474         ac_cv_have_decl_getchar_unlocked=no
9475 fi
9476
9477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9478 fi
9479 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getchar_unlocked" >&5
9480 echo "${ECHO_T}$ac_cv_have_decl_getchar_unlocked" >&6; }
9481 if test $ac_cv_have_decl_getchar_unlocked = yes; then
9482
9483 cat >>confdefs.h <<_ACEOF
9484 #define HAVE_DECL_GETCHAR_UNLOCKED 1
9485 _ACEOF
9486
9487
9488 else
9489   cat >>confdefs.h <<_ACEOF
9490 #define HAVE_DECL_GETCHAR_UNLOCKED 0
9491 _ACEOF
9492
9493
9494 fi
9495
9496
9497 { echo "$as_me:$LINENO: checking whether putc_unlocked is declared" >&5
9498 echo $ECHO_N "checking whether putc_unlocked is declared... $ECHO_C" >&6; }
9499 if test "${ac_cv_have_decl_putc_unlocked+set}" = set; then
9500   echo $ECHO_N "(cached) $ECHO_C" >&6
9501 else
9502   cat >conftest.$ac_ext <<_ACEOF
9503 /* confdefs.h.  */
9504 _ACEOF
9505 cat confdefs.h >>conftest.$ac_ext
9506 cat >>conftest.$ac_ext <<_ACEOF
9507 /* end confdefs.h.  */
9508 $ac_includes_default
9509 int
9510 main ()
9511 {
9512 #ifndef putc_unlocked
9513   (void) putc_unlocked;
9514 #endif
9515
9516   ;
9517   return 0;
9518 }
9519 _ACEOF
9520 rm -f conftest.$ac_objext
9521 if { (ac_try="$ac_compile"
9522 case "(($ac_try" in
9523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9524   *) ac_try_echo=$ac_try;;
9525 esac
9526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9527   (eval "$ac_compile") 2>conftest.er1
9528   ac_status=$?
9529   grep -v '^ *+' conftest.er1 >conftest.err
9530   rm -f conftest.er1
9531   cat conftest.err >&5
9532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9533   (exit $ac_status); } && {
9534          test -z "$ac_c_werror_flag" ||
9535          test ! -s conftest.err
9536        } && test -s conftest.$ac_objext; then
9537   ac_cv_have_decl_putc_unlocked=yes
9538 else
9539   echo "$as_me: failed program was:" >&5
9540 sed 's/^/| /' conftest.$ac_ext >&5
9541
9542         ac_cv_have_decl_putc_unlocked=no
9543 fi
9544
9545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9546 fi
9547 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_putc_unlocked" >&5
9548 echo "${ECHO_T}$ac_cv_have_decl_putc_unlocked" >&6; }
9549 if test $ac_cv_have_decl_putc_unlocked = yes; then
9550
9551 cat >>confdefs.h <<_ACEOF
9552 #define HAVE_DECL_PUTC_UNLOCKED 1
9553 _ACEOF
9554
9555
9556 else
9557   cat >>confdefs.h <<_ACEOF
9558 #define HAVE_DECL_PUTC_UNLOCKED 0
9559 _ACEOF
9560
9561
9562 fi
9563
9564
9565 { echo "$as_me:$LINENO: checking whether putchar_unlocked is declared" >&5
9566 echo $ECHO_N "checking whether putchar_unlocked is declared... $ECHO_C" >&6; }
9567 if test "${ac_cv_have_decl_putchar_unlocked+set}" = set; then
9568   echo $ECHO_N "(cached) $ECHO_C" >&6
9569 else
9570   cat >conftest.$ac_ext <<_ACEOF
9571 /* confdefs.h.  */
9572 _ACEOF
9573 cat confdefs.h >>conftest.$ac_ext
9574 cat >>conftest.$ac_ext <<_ACEOF
9575 /* end confdefs.h.  */
9576 $ac_includes_default
9577 int
9578 main ()
9579 {
9580 #ifndef putchar_unlocked
9581   (void) putchar_unlocked;
9582 #endif
9583
9584   ;
9585   return 0;
9586 }
9587 _ACEOF
9588 rm -f conftest.$ac_objext
9589 if { (ac_try="$ac_compile"
9590 case "(($ac_try" in
9591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9592   *) ac_try_echo=$ac_try;;
9593 esac
9594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9595   (eval "$ac_compile") 2>conftest.er1
9596   ac_status=$?
9597   grep -v '^ *+' conftest.er1 >conftest.err
9598   rm -f conftest.er1
9599   cat conftest.err >&5
9600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9601   (exit $ac_status); } && {
9602          test -z "$ac_c_werror_flag" ||
9603          test ! -s conftest.err
9604        } && test -s conftest.$ac_objext; then
9605   ac_cv_have_decl_putchar_unlocked=yes
9606 else
9607   echo "$as_me: failed program was:" >&5
9608 sed 's/^/| /' conftest.$ac_ext >&5
9609
9610         ac_cv_have_decl_putchar_unlocked=no
9611 fi
9612
9613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9614 fi
9615 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_putchar_unlocked" >&5
9616 echo "${ECHO_T}$ac_cv_have_decl_putchar_unlocked" >&6; }
9617 if test $ac_cv_have_decl_putchar_unlocked = yes; then
9618
9619 cat >>confdefs.h <<_ACEOF
9620 #define HAVE_DECL_PUTCHAR_UNLOCKED 1
9621 _ACEOF
9622
9623
9624 else
9625   cat >>confdefs.h <<_ACEOF
9626 #define HAVE_DECL_PUTCHAR_UNLOCKED 0
9627 _ACEOF
9628
9629
9630 fi
9631
9632
9633
9634
9635
9636
9637 for ac_func in $ac_func_list
9638 do
9639 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9640 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9641 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9642 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9643   echo $ECHO_N "(cached) $ECHO_C" >&6
9644 else
9645   cat >conftest.$ac_ext <<_ACEOF
9646 /* confdefs.h.  */
9647 _ACEOF
9648 cat confdefs.h >>conftest.$ac_ext
9649 cat >>conftest.$ac_ext <<_ACEOF
9650 /* end confdefs.h.  */
9651 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9652    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9653 #define $ac_func innocuous_$ac_func
9654
9655 /* System header to define __stub macros and hopefully few prototypes,
9656     which can conflict with char $ac_func (); below.
9657     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9658     <limits.h> exists even on freestanding compilers.  */
9659
9660 #ifdef __STDC__
9661 # include <limits.h>
9662 #else
9663 # include <assert.h>
9664 #endif
9665
9666 #undef $ac_func
9667
9668 /* Override any GCC internal prototype to avoid an error.
9669    Use char because int might match the return type of a GCC
9670    builtin and then its argument prototype would still apply.  */
9671 #ifdef __cplusplus
9672 extern "C"
9673 #endif
9674 char $ac_func ();
9675 /* The GNU C library defines this for functions which it implements
9676     to always fail with ENOSYS.  Some functions are actually named
9677     something starting with __ and the normal name is an alias.  */
9678 #if defined __stub_$ac_func || defined __stub___$ac_func
9679 choke me
9680 #endif
9681
9682 int
9683 main ()
9684 {
9685 return $ac_func ();
9686   ;
9687   return 0;
9688 }
9689 _ACEOF
9690 rm -f conftest.$ac_objext conftest$ac_exeext
9691 if { (ac_try="$ac_link"
9692 case "(($ac_try" in
9693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9694   *) ac_try_echo=$ac_try;;
9695 esac
9696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9697   (eval "$ac_link") 2>conftest.er1
9698   ac_status=$?
9699   grep -v '^ *+' conftest.er1 >conftest.err
9700   rm -f conftest.er1
9701   cat conftest.err >&5
9702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9703   (exit $ac_status); } && {
9704          test -z "$ac_c_werror_flag" ||
9705          test ! -s conftest.err
9706        } && test -s conftest$ac_exeext &&
9707        $as_test_x conftest$ac_exeext; then
9708   eval "$as_ac_var=yes"
9709 else
9710   echo "$as_me: failed program was:" >&5
9711 sed 's/^/| /' conftest.$ac_ext >&5
9712
9713         eval "$as_ac_var=no"
9714 fi
9715
9716 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9717       conftest$ac_exeext conftest.$ac_ext
9718 fi
9719 ac_res=`eval echo '${'$as_ac_var'}'`
9720                { echo "$as_me:$LINENO: result: $ac_res" >&5
9721 echo "${ECHO_T}$ac_res" >&6; }
9722 if test `eval echo '${'$as_ac_var'}'` = yes; then
9723   cat >>confdefs.h <<_ACEOF
9724 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9725 _ACEOF
9726
9727 fi
9728 done
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739   XGETTEXT_EXTRA_OPTIONS=
9740
9741 { echo "$as_me:$LINENO: checking for d_ino member in directory struct" >&5
9742 echo $ECHO_N "checking for d_ino member in directory struct... $ECHO_C" >&6; }
9743 if test "${gl_cv_struct_dirent_d_ino+set}" = set; then
9744   echo $ECHO_N "(cached) $ECHO_C" >&6
9745 else
9746   if test "$cross_compiling" = yes; then
9747   gl_cv_struct_dirent_d_ino=no
9748 else
9749   cat >conftest.$ac_ext <<_ACEOF
9750 /* confdefs.h.  */
9751 _ACEOF
9752 cat confdefs.h >>conftest.$ac_ext
9753 cat >>conftest.$ac_ext <<_ACEOF
9754 /* end confdefs.h.  */
9755 #include <sys/types.h>
9756              #include <sys/stat.h>
9757              #include <dirent.h>
9758
9759 int
9760 main ()
9761 {
9762 DIR *dp = opendir (".");
9763              struct dirent *e;
9764              struct stat st;
9765              if (! dp)
9766                return 1;
9767              e = readdir (dp);
9768              return ! (e
9769                        && stat (e->d_name, &st) == 0
9770                        && e->d_ino == st.st_ino);
9771   ;
9772   return 0;
9773 }
9774 _ACEOF
9775 rm -f conftest$ac_exeext
9776 if { (ac_try="$ac_link"
9777 case "(($ac_try" in
9778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9779   *) ac_try_echo=$ac_try;;
9780 esac
9781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9782   (eval "$ac_link") 2>&5
9783   ac_status=$?
9784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9785   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9786   { (case "(($ac_try" in
9787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9788   *) ac_try_echo=$ac_try;;
9789 esac
9790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9791   (eval "$ac_try") 2>&5
9792   ac_status=$?
9793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9794   (exit $ac_status); }; }; then
9795   gl_cv_struct_dirent_d_ino=yes
9796 else
9797   echo "$as_me: program exited with status $ac_status" >&5
9798 echo "$as_me: failed program was:" >&5
9799 sed 's/^/| /' conftest.$ac_ext >&5
9800
9801 ( exit $ac_status )
9802 gl_cv_struct_dirent_d_ino=no
9803 fi
9804 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9805 fi
9806
9807
9808 fi
9809 { echo "$as_me:$LINENO: result: $gl_cv_struct_dirent_d_ino" >&5
9810 echo "${ECHO_T}$gl_cv_struct_dirent_d_ino" >&6; }
9811    if test $gl_cv_struct_dirent_d_ino = yes; then
9812
9813 cat >>confdefs.h <<\_ACEOF
9814 #define D_INO_IN_DIRENT 1
9815 _ACEOF
9816
9817    fi
9818
9819
9820
9821     { echo "$as_me:$LINENO: checking whether system is Windows or MSDOS" >&5
9822 echo $ECHO_N "checking whether system is Windows or MSDOS... $ECHO_C" >&6; }
9823 if test "${ac_cv_win_or_dos+set}" = set; then
9824   echo $ECHO_N "(cached) $ECHO_C" >&6
9825 else
9826
9827         cat >conftest.$ac_ext <<_ACEOF
9828 /* confdefs.h.  */
9829 _ACEOF
9830 cat confdefs.h >>conftest.$ac_ext
9831 cat >>conftest.$ac_ext <<_ACEOF
9832 /* end confdefs.h.  */
9833
9834 int
9835 main ()
9836 {
9837 #if !defined _WIN32 && !defined __WIN32__ && !defined __MSDOS__ && !defined __CYGWIN__
9838 neither MSDOS nor Windows
9839 #endif
9840   ;
9841   return 0;
9842 }
9843 _ACEOF
9844 rm -f conftest.$ac_objext
9845 if { (ac_try="$ac_compile"
9846 case "(($ac_try" in
9847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9848   *) ac_try_echo=$ac_try;;
9849 esac
9850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9851   (eval "$ac_compile") 2>conftest.er1
9852   ac_status=$?
9853   grep -v '^ *+' conftest.er1 >conftest.err
9854   rm -f conftest.er1
9855   cat conftest.err >&5
9856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9857   (exit $ac_status); } && {
9858          test -z "$ac_c_werror_flag" ||
9859          test ! -s conftest.err
9860        } && test -s conftest.$ac_objext; then
9861   ac_cv_win_or_dos=yes
9862 else
9863   echo "$as_me: failed program was:" >&5
9864 sed 's/^/| /' conftest.$ac_ext >&5
9865
9866         ac_cv_win_or_dos=no
9867 fi
9868
9869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9870
9871 fi
9872 { echo "$as_me:$LINENO: result: $ac_cv_win_or_dos" >&5
9873 echo "${ECHO_T}$ac_cv_win_or_dos" >&6; }
9874
9875     if test x"$ac_cv_win_or_dos" = xyes; then
9876       ac_fs_accepts_drive_letter_prefix=1
9877       ac_fs_backslash_is_file_name_separator=1
9878       { echo "$as_me:$LINENO: checking whether drive letter can start relative path" >&5
9879 echo $ECHO_N "checking whether drive letter can start relative path... $ECHO_C" >&6; }
9880 if test "${ac_cv_drive_letter_can_be_relative+set}" = set; then
9881   echo $ECHO_N "(cached) $ECHO_C" >&6
9882 else
9883
9884           cat >conftest.$ac_ext <<_ACEOF
9885 /* confdefs.h.  */
9886 _ACEOF
9887 cat confdefs.h >>conftest.$ac_ext
9888 cat >>conftest.$ac_ext <<_ACEOF
9889 /* end confdefs.h.  */
9890
9891 int
9892 main ()
9893 {
9894 #if defined __CYGWIN__
9895 drive letters are always absolute
9896 #endif
9897   ;
9898   return 0;
9899 }
9900 _ACEOF
9901 rm -f conftest.$ac_objext
9902 if { (ac_try="$ac_compile"
9903 case "(($ac_try" in
9904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9905   *) ac_try_echo=$ac_try;;
9906 esac
9907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9908   (eval "$ac_compile") 2>conftest.er1
9909   ac_status=$?
9910   grep -v '^ *+' conftest.er1 >conftest.err
9911   rm -f conftest.er1
9912   cat conftest.err >&5
9913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9914   (exit $ac_status); } && {
9915          test -z "$ac_c_werror_flag" ||
9916          test ! -s conftest.err
9917        } && test -s conftest.$ac_objext; then
9918   ac_cv_drive_letter_can_be_relative=yes
9919 else
9920   echo "$as_me: failed program was:" >&5
9921 sed 's/^/| /' conftest.$ac_ext >&5
9922
9923         ac_cv_drive_letter_can_be_relative=no
9924 fi
9925
9926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9927
9928 fi
9929 { echo "$as_me:$LINENO: result: $ac_cv_drive_letter_can_be_relative" >&5
9930 echo "${ECHO_T}$ac_cv_drive_letter_can_be_relative" >&6; }
9931       if test x"$ac_cv_drive_letter_can_be_relative" = xyes; then
9932         ac_fs_drive_letter_can_be_relative=1
9933       else
9934         ac_fs_drive_letter_can_be_relative=0
9935       fi
9936     else
9937       ac_fs_accepts_drive_letter_prefix=0
9938       ac_fs_backslash_is_file_name_separator=0
9939       ac_fs_drive_letter_can_be_relative=0
9940     fi
9941
9942
9943 cat >>confdefs.h <<_ACEOF
9944 #define FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX $ac_fs_accepts_drive_letter_prefix
9945 _ACEOF
9946
9947
9948
9949
9950
9951
9952 cat >>confdefs.h <<_ACEOF
9953 #define FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR $ac_fs_backslash_is_file_name_separator
9954 _ACEOF
9955
9956
9957
9958 cat >>confdefs.h <<_ACEOF
9959 #define FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE $ac_fs_drive_letter_can_be_relative
9960 _ACEOF
9961
9962
9963 { echo "$as_me:$LINENO: checking for long file names" >&5
9964 echo $ECHO_N "checking for long file names... $ECHO_C" >&6; }
9965 if test "${ac_cv_sys_long_file_names+set}" = set; then
9966   echo $ECHO_N "(cached) $ECHO_C" >&6
9967 else
9968   ac_cv_sys_long_file_names=yes
9969 # Test for long file names in all the places we know might matter:
9970 #      .                the current directory, where building will happen
9971 #      $prefix/lib      where we will be installing things
9972 #      $exec_prefix/lib likewise
9973 #      $TMPDIR          if set, where it might want to write temporary files
9974 #      /tmp             where it might want to write temporary files
9975 #      /var/tmp         likewise
9976 #      /usr/tmp         likewise
9977 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9978   # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9979   # in the usual case where exec_prefix is '${prefix}'.
9980   case $ac_dir in #(
9981     . | /* | ?:[\\/]*) ;; #(
9982     *) continue;;
9983   esac
9984   test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9985   ac_xdir=$ac_dir/cf$$
9986   (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9987   ac_tf1=$ac_xdir/conftest9012345
9988   ac_tf2=$ac_xdir/conftest9012346
9989   touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9990     ac_cv_sys_long_file_names=no
9991   rm -f -r "$ac_xdir" 2>/dev/null
9992   test $ac_cv_sys_long_file_names = no && break
9993 done
9994 fi
9995 { echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
9996 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; }
9997 if test $ac_cv_sys_long_file_names = yes; then
9998
9999 cat >>confdefs.h <<\_ACEOF
10000 #define HAVE_LONG_FILE_NAMES 1
10001 _ACEOF
10002
10003 fi
10004
10005
10006
10007
10008   GNULIB_BTOWC=0;
10009   GNULIB_WCTOB=0;
10010   GNULIB_MBSINIT=0;
10011   GNULIB_MBRTOWC=0;
10012   GNULIB_MBRLEN=0;
10013   GNULIB_MBSRTOWCS=0;
10014   GNULIB_MBSNRTOWCS=0;
10015   GNULIB_WCRTOMB=0;
10016   GNULIB_WCSRTOMBS=0;
10017   GNULIB_WCSNRTOMBS=0;
10018   GNULIB_WCWIDTH=0;
10019     HAVE_BTOWC=1;
10020   HAVE_MBSINIT=1;
10021   HAVE_MBRTOWC=1;
10022   HAVE_MBRLEN=1;
10023   HAVE_MBSRTOWCS=1;
10024   HAVE_MBSNRTOWCS=1;
10025   HAVE_WCRTOMB=1;
10026   HAVE_WCSRTOMBS=1;
10027   HAVE_WCSNRTOMBS=1;
10028   HAVE_DECL_WCTOB=1;
10029   HAVE_DECL_WCWIDTH=1;
10030   REPLACE_MBSTATE_T=0;
10031   REPLACE_BTOWC=0;
10032   REPLACE_WCTOB=0;
10033   REPLACE_MBSINIT=0;
10034   REPLACE_MBRTOWC=0;
10035   REPLACE_MBRLEN=0;
10036   REPLACE_MBSRTOWCS=0;
10037   REPLACE_MBSNRTOWCS=0;
10038   REPLACE_WCRTOMB=0;
10039   REPLACE_WCSRTOMBS=0;
10040   REPLACE_WCWIDTH=0;
10041   WCHAR_H='';
10042
10043
10044
10045
10046   { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
10047 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
10048 if test "${am_cv_langinfo_codeset+set}" = set; then
10049   echo $ECHO_N "(cached) $ECHO_C" >&6
10050 else
10051   cat >conftest.$ac_ext <<_ACEOF
10052 /* confdefs.h.  */
10053 _ACEOF
10054 cat confdefs.h >>conftest.$ac_ext
10055 cat >>conftest.$ac_ext <<_ACEOF
10056 /* end confdefs.h.  */
10057 #include <langinfo.h>
10058 int
10059 main ()
10060 {
10061 char* cs = nl_langinfo(CODESET); return !cs;
10062   ;
10063   return 0;
10064 }
10065 _ACEOF
10066 rm -f conftest.$ac_objext conftest$ac_exeext
10067 if { (ac_try="$ac_link"
10068 case "(($ac_try" in
10069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10070   *) ac_try_echo=$ac_try;;
10071 esac
10072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10073   (eval "$ac_link") 2>conftest.er1
10074   ac_status=$?
10075   grep -v '^ *+' conftest.er1 >conftest.err
10076   rm -f conftest.er1
10077   cat conftest.err >&5
10078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10079   (exit $ac_status); } && {
10080          test -z "$ac_c_werror_flag" ||
10081          test ! -s conftest.err
10082        } && test -s conftest$ac_exeext &&
10083        $as_test_x conftest$ac_exeext; then
10084   am_cv_langinfo_codeset=yes
10085 else
10086   echo "$as_me: failed program was:" >&5
10087 sed 's/^/| /' conftest.$ac_ext >&5
10088
10089         am_cv_langinfo_codeset=no
10090 fi
10091
10092 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10093       conftest$ac_exeext conftest.$ac_ext
10094
10095 fi
10096 { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
10097 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
10098   if test $am_cv_langinfo_codeset = yes; then
10099
10100 cat >>confdefs.h <<\_ACEOF
10101 #define HAVE_LANGINFO_CODESET 1
10102 _ACEOF
10103
10104   fi
10105
10106
10107
10108
10109   { echo "$as_me:$LINENO: checking for a traditional french locale" >&5
10110 echo $ECHO_N "checking for a traditional french locale... $ECHO_C" >&6; }
10111 if test "${gt_cv_locale_fr+set}" = set; then
10112   echo $ECHO_N "(cached) $ECHO_C" >&6
10113 else
10114
10115     cat >conftest.$ac_ext <<_ACEOF
10116 /* confdefs.h.  */
10117 _ACEOF
10118 cat confdefs.h >>conftest.$ac_ext
10119 cat >>conftest.$ac_ext <<_ACEOF
10120 /* end confdefs.h.  */
10121
10122 #include <locale.h>
10123 #include <time.h>
10124 #if HAVE_LANGINFO_CODESET
10125 # include <langinfo.h>
10126 #endif
10127 #include <stdlib.h>
10128 #include <string.h>
10129 struct tm t;
10130 char buf[16];
10131 int main () {
10132   /* Check whether the given locale name is recognized by the system.  */
10133   if (setlocale (LC_ALL, "") == NULL) return 1;
10134   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
10135      On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
10136      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
10137      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
10138      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
10139      some unit tests fail.  */
10140 #if HAVE_LANGINFO_CODESET
10141   {
10142     const char *cs = nl_langinfo (CODESET);
10143     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
10144       return 1;
10145   }
10146 #endif
10147 #ifdef __CYGWIN__
10148   /* On Cygwin, avoid locale names without encoding suffix, because the
10149      locale_charset() function relies on the encoding suffix.  Note that
10150      LC_ALL is set on the command line.  */
10151   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
10152 #endif
10153   /* Check whether in the abbreviation of the second month, the second
10154      character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
10155      one byte long. This excludes the UTF-8 encoding.  */
10156   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
10157   if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
10158   /* Check whether the decimal separator is a comma.
10159      On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
10160      are nl_langinfo(RADIXCHAR) are both ".".  */
10161   if (localeconv () ->decimal_point[0] != ',') return 1;
10162   return 0;
10163 }
10164
10165 _ACEOF
10166     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10167   (eval $ac_link) 2>&5
10168   ac_status=$?
10169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10170   (exit $ac_status); } && test -s conftest$ac_exeext; then
10171       # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
10172       # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
10173       # configure script would override the LC_ALL setting. Likewise for
10174       # LC_CTYPE, which is also set at the beginning of the configure script.
10175       # Test for the usual locale name.
10176       if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10177         gt_cv_locale_fr=fr_FR
10178       else
10179         # Test for the locale name with explicit encoding suffix.
10180         if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10181           gt_cv_locale_fr=fr_FR.ISO-8859-1
10182         else
10183           # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
10184           if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10185             gt_cv_locale_fr=fr_FR.ISO8859-1
10186           else
10187             # Test for the HP-UX locale name.
10188             if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10189               gt_cv_locale_fr=fr_FR.iso88591
10190             else
10191               # Test for the Solaris 7 locale name.
10192               if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10193                 gt_cv_locale_fr=fr
10194               else
10195                 # None found.
10196                 gt_cv_locale_fr=none
10197               fi
10198             fi
10199           fi
10200         fi
10201       fi
10202     fi
10203     rm -fr conftest*
10204
10205 fi
10206 { echo "$as_me:$LINENO: result: $gt_cv_locale_fr" >&5
10207 echo "${ECHO_T}$gt_cv_locale_fr" >&6; }
10208   LOCALE_FR=$gt_cv_locale_fr
10209
10210
10211 { echo "$as_me:$LINENO: checking whether canonicalize_file_name is declared" >&5
10212 echo $ECHO_N "checking whether canonicalize_file_name is declared... $ECHO_C" >&6; }
10213 if test "${ac_cv_have_decl_canonicalize_file_name+set}" = set; then
10214   echo $ECHO_N "(cached) $ECHO_C" >&6
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 $ac_includes_default
10223 int
10224 main ()
10225 {
10226 #ifndef canonicalize_file_name
10227   (void) canonicalize_file_name;
10228 #endif
10229
10230   ;
10231   return 0;
10232 }
10233 _ACEOF
10234 rm -f conftest.$ac_objext
10235 if { (ac_try="$ac_compile"
10236 case "(($ac_try" in
10237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10238   *) ac_try_echo=$ac_try;;
10239 esac
10240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10241   (eval "$ac_compile") 2>conftest.er1
10242   ac_status=$?
10243   grep -v '^ *+' conftest.er1 >conftest.err
10244   rm -f conftest.er1
10245   cat conftest.err >&5
10246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10247   (exit $ac_status); } && {
10248          test -z "$ac_c_werror_flag" ||
10249          test ! -s conftest.err
10250        } && test -s conftest.$ac_objext; then
10251   ac_cv_have_decl_canonicalize_file_name=yes
10252 else
10253   echo "$as_me: failed program was:" >&5
10254 sed 's/^/| /' conftest.$ac_ext >&5
10255
10256         ac_cv_have_decl_canonicalize_file_name=no
10257 fi
10258
10259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10260 fi
10261 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_canonicalize_file_name" >&5
10262 echo "${ECHO_T}$ac_cv_have_decl_canonicalize_file_name" >&6; }
10263 if test $ac_cv_have_decl_canonicalize_file_name = yes; then
10264
10265 cat >>confdefs.h <<_ACEOF
10266 #define HAVE_DECL_CANONICALIZE_FILE_NAME 1
10267 _ACEOF
10268
10269
10270 else
10271   cat >>confdefs.h <<_ACEOF
10272 #define HAVE_DECL_CANONICALIZE_FILE_NAME 0
10273 _ACEOF
10274
10275
10276 fi
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286   GNULIB_CHOWN=0;
10287   GNULIB_CLOSE=0;
10288   GNULIB_DUP2=0;
10289   GNULIB_ENVIRON=0;
10290   GNULIB_EUIDACCESS=0;
10291   GNULIB_FCHDIR=0;
10292   GNULIB_FSYNC=0;
10293   GNULIB_FTRUNCATE=0;
10294   GNULIB_GETCWD=0;
10295   GNULIB_GETDOMAINNAME=0;
10296   GNULIB_GETDTABLESIZE=0;
10297   GNULIB_GETHOSTNAME=0;
10298   GNULIB_GETLOGIN_R=0;
10299   GNULIB_GETPAGESIZE=0;
10300   GNULIB_GETUSERSHELL=0;
10301   GNULIB_LCHOWN=0;
10302   GNULIB_LINK=0;
10303   GNULIB_LSEEK=0;
10304   GNULIB_READLINK=0;
10305   GNULIB_SLEEP=0;
10306   GNULIB_UNISTD_H_SIGPIPE=0;
10307   GNULIB_WRITE=0;
10308     HAVE_DUP2=1;
10309   HAVE_EUIDACCESS=1;
10310   HAVE_FSYNC=1;
10311   HAVE_FTRUNCATE=1;
10312   HAVE_GETDOMAINNAME=1;
10313   HAVE_GETDTABLESIZE=1;
10314   HAVE_GETHOSTNAME=1;
10315   HAVE_GETPAGESIZE=1;
10316   HAVE_GETUSERSHELL=1;
10317   HAVE_LINK=1;
10318   HAVE_READLINK=1;
10319   HAVE_SLEEP=1;
10320   HAVE_DECL_ENVIRON=1;
10321   HAVE_DECL_GETLOGIN_R=1;
10322   HAVE_OS_H=0;
10323   HAVE_SYS_PARAM_H=0;
10324   REPLACE_CHOWN=0;
10325   REPLACE_CLOSE=0;
10326   REPLACE_FCHDIR=0;
10327   REPLACE_GETCWD=0;
10328   REPLACE_GETPAGESIZE=0;
10329   REPLACE_LCHOWN=0;
10330   REPLACE_LSEEK=0;
10331   REPLACE_WRITE=0;
10332   UNISTD_H_HAVE_WINSOCK2_H=0;
10333
10334
10335 for ac_header in unistd.h
10336 do
10337 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10338 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10339   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10340 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10341 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10342   echo $ECHO_N "(cached) $ECHO_C" >&6
10343 fi
10344 ac_res=`eval echo '${'$as_ac_Header'}'`
10345                { echo "$as_me:$LINENO: result: $ac_res" >&5
10346 echo "${ECHO_T}$ac_res" >&6; }
10347 else
10348   # Is the header compilable?
10349 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10350 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10351 cat >conftest.$ac_ext <<_ACEOF
10352 /* confdefs.h.  */
10353 _ACEOF
10354 cat confdefs.h >>conftest.$ac_ext
10355 cat >>conftest.$ac_ext <<_ACEOF
10356 /* end confdefs.h.  */
10357 $ac_includes_default
10358 #include <$ac_header>
10359 _ACEOF
10360 rm -f conftest.$ac_objext
10361 if { (ac_try="$ac_compile"
10362 case "(($ac_try" in
10363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10364   *) ac_try_echo=$ac_try;;
10365 esac
10366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10367   (eval "$ac_compile") 2>conftest.er1
10368   ac_status=$?
10369   grep -v '^ *+' conftest.er1 >conftest.err
10370   rm -f conftest.er1
10371   cat conftest.err >&5
10372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10373   (exit $ac_status); } && {
10374          test -z "$ac_c_werror_flag" ||
10375          test ! -s conftest.err
10376        } && test -s conftest.$ac_objext; then
10377   ac_header_compiler=yes
10378 else
10379   echo "$as_me: failed program was:" >&5
10380 sed 's/^/| /' conftest.$ac_ext >&5
10381
10382         ac_header_compiler=no
10383 fi
10384
10385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10386 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10387 echo "${ECHO_T}$ac_header_compiler" >&6; }
10388
10389 # Is the header present?
10390 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10391 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10392 cat >conftest.$ac_ext <<_ACEOF
10393 /* confdefs.h.  */
10394 _ACEOF
10395 cat confdefs.h >>conftest.$ac_ext
10396 cat >>conftest.$ac_ext <<_ACEOF
10397 /* end confdefs.h.  */
10398 #include <$ac_header>
10399 _ACEOF
10400 if { (ac_try="$ac_cpp conftest.$ac_ext"
10401 case "(($ac_try" in
10402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10403   *) ac_try_echo=$ac_try;;
10404 esac
10405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10406   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10407   ac_status=$?
10408   grep -v '^ *+' conftest.er1 >conftest.err
10409   rm -f conftest.er1
10410   cat conftest.err >&5
10411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10412   (exit $ac_status); } >/dev/null && {
10413          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10414          test ! -s conftest.err
10415        }; then
10416   ac_header_preproc=yes
10417 else
10418   echo "$as_me: failed program was:" >&5
10419 sed 's/^/| /' conftest.$ac_ext >&5
10420
10421   ac_header_preproc=no
10422 fi
10423
10424 rm -f conftest.err conftest.$ac_ext
10425 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10426 echo "${ECHO_T}$ac_header_preproc" >&6; }
10427
10428 # So?  What about this header?
10429 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10430   yes:no: )
10431     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10432 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10433     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10434 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10435     ac_header_preproc=yes
10436     ;;
10437   no:yes:* )
10438     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10439 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10440     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10441 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10442     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10443 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10444     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10445 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10446     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10447 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10448     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10449 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10450     ( cat <<\_ASBOX
10451 ## ------------------------------ ##
10452 ## Report this to bug-tar@gnu.org ##
10453 ## ------------------------------ ##
10454 _ASBOX
10455      ) | sed "s/^/$as_me: WARNING:     /" >&2
10456     ;;
10457 esac
10458 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10459 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10460 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10461   echo $ECHO_N "(cached) $ECHO_C" >&6
10462 else
10463   eval "$as_ac_Header=\$ac_header_preproc"
10464 fi
10465 ac_res=`eval echo '${'$as_ac_Header'}'`
10466                { echo "$as_me:$LINENO: result: $ac_res" >&5
10467 echo "${ECHO_T}$ac_res" >&6; }
10468
10469 fi
10470 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10471   cat >>confdefs.h <<_ACEOF
10472 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10473 _ACEOF
10474
10475 fi
10476
10477 done
10478
10479 { echo "$as_me:$LINENO: checking for working chown" >&5
10480 echo $ECHO_N "checking for working chown... $ECHO_C" >&6; }
10481 if test "${ac_cv_func_chown_works+set}" = set; then
10482   echo $ECHO_N "(cached) $ECHO_C" >&6
10483 else
10484   if test "$cross_compiling" = yes; then
10485   ac_cv_func_chown_works=no
10486 else
10487   cat >conftest.$ac_ext <<_ACEOF
10488 /* confdefs.h.  */
10489 _ACEOF
10490 cat confdefs.h >>conftest.$ac_ext
10491 cat >>conftest.$ac_ext <<_ACEOF
10492 /* end confdefs.h.  */
10493 $ac_includes_default
10494 #include <fcntl.h>
10495
10496 int
10497 main ()
10498 {
10499   char *f = "conftest.chown";
10500   struct stat before, after;
10501
10502   if (creat (f, 0600) < 0)
10503     return 1;
10504   if (stat (f, &before) < 0)
10505     return 1;
10506   if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
10507     return 1;
10508   if (stat (f, &after) < 0)
10509     return 1;
10510   return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
10511
10512   ;
10513   return 0;
10514 }
10515 _ACEOF
10516 rm -f conftest$ac_exeext
10517 if { (ac_try="$ac_link"
10518 case "(($ac_try" in
10519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10520   *) ac_try_echo=$ac_try;;
10521 esac
10522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10523   (eval "$ac_link") 2>&5
10524   ac_status=$?
10525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10526   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10527   { (case "(($ac_try" in
10528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10529   *) ac_try_echo=$ac_try;;
10530 esac
10531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10532   (eval "$ac_try") 2>&5
10533   ac_status=$?
10534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10535   (exit $ac_status); }; }; then
10536   ac_cv_func_chown_works=yes
10537 else
10538   echo "$as_me: program exited with status $ac_status" >&5
10539 echo "$as_me: failed program was:" >&5
10540 sed 's/^/| /' conftest.$ac_ext >&5
10541
10542 ( exit $ac_status )
10543 ac_cv_func_chown_works=no
10544 fi
10545 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10546 fi
10547
10548
10549 rm -f conftest.chown
10550
10551 fi
10552 { echo "$as_me:$LINENO: result: $ac_cv_func_chown_works" >&5
10553 echo "${ECHO_T}$ac_cv_func_chown_works" >&6; }
10554 if test $ac_cv_func_chown_works = yes; then
10555
10556 cat >>confdefs.h <<\_ACEOF
10557 #define HAVE_CHOWN 1
10558 _ACEOF
10559
10560 fi
10561
10562
10563   { echo "$as_me:$LINENO: checking whether chown(2) dereferences symlinks" >&5
10564 echo $ECHO_N "checking whether chown(2) dereferences symlinks... $ECHO_C" >&6; }
10565 if test "${gl_cv_func_chown_follows_symlink+set}" = set; then
10566   echo $ECHO_N "(cached) $ECHO_C" >&6
10567 else
10568
10569       if test "$cross_compiling" = yes; then
10570   gl_cv_func_chown_follows_symlink=yes
10571
10572 else
10573   cat >conftest.$ac_ext <<_ACEOF
10574 /* confdefs.h.  */
10575 _ACEOF
10576 cat confdefs.h >>conftest.$ac_ext
10577 cat >>conftest.$ac_ext <<_ACEOF
10578 /* end confdefs.h.  */
10579
10580 #include <unistd.h>
10581 #include <stdlib.h>
10582 #include <errno.h>
10583
10584         int
10585         main ()
10586         {
10587           char const *dangling_symlink = "conftest.dangle";
10588
10589           unlink (dangling_symlink);
10590           if (symlink ("conftest.no-such", dangling_symlink))
10591             abort ();
10592
10593           /* Exit successfully on a conforming system,
10594              i.e., where chown must fail with ENOENT.  */
10595           exit ( ! (chown (dangling_symlink, getuid (), getgid ()) != 0
10596                     && errno == ENOENT));
10597         }
10598
10599 _ACEOF
10600 rm -f conftest$ac_exeext
10601 if { (ac_try="$ac_link"
10602 case "(($ac_try" in
10603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10604   *) ac_try_echo=$ac_try;;
10605 esac
10606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10607   (eval "$ac_link") 2>&5
10608   ac_status=$?
10609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10610   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10611   { (case "(($ac_try" in
10612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10613   *) ac_try_echo=$ac_try;;
10614 esac
10615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10616   (eval "$ac_try") 2>&5
10617   ac_status=$?
10618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10619   (exit $ac_status); }; }; then
10620   gl_cv_func_chown_follows_symlink=yes
10621 else
10622   echo "$as_me: program exited with status $ac_status" >&5
10623 echo "$as_me: failed program was:" >&5
10624 sed 's/^/| /' conftest.$ac_ext >&5
10625
10626 ( exit $ac_status )
10627 gl_cv_func_chown_follows_symlink=no
10628 fi
10629 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10630 fi
10631
10632
10633
10634
10635 fi
10636 { echo "$as_me:$LINENO: result: $gl_cv_func_chown_follows_symlink" >&5
10637 echo "${ECHO_T}$gl_cv_func_chown_follows_symlink" >&6; }
10638
10639   if test $gl_cv_func_chown_follows_symlink = no; then
10640
10641 cat >>confdefs.h <<\_ACEOF
10642 #define CHOWN_MODIFIES_SYMLINK 1
10643 _ACEOF
10644
10645   fi
10646
10647
10648      GNULIB_DIRFD=0;
10649   GNULIB_SCANDIR=0;
10650   GNULIB_ALPHASORT=0;
10651     HAVE_DECL_DIRFD=1;
10652   HAVE_SCANDIR=1;
10653   HAVE_ALPHASORT=1;
10654   DIRENT_H='';
10655
10656
10657
10658   { echo "$as_me:$LINENO: checking whether the preprocessor supports include_next" >&5
10659 echo $ECHO_N "checking whether the preprocessor supports include_next... $ECHO_C" >&6; }
10660 if test "${gl_cv_have_include_next+set}" = set; then
10661   echo $ECHO_N "(cached) $ECHO_C" >&6
10662 else
10663   rm -rf conftestd1a conftestd1b conftestd2
10664      mkdir conftestd1a conftestd1b conftestd2
10665                                              cat <<EOF > conftestd1a/conftest.h
10666 #define DEFINED_IN_CONFTESTD1
10667 #include_next <conftest.h>
10668 #ifdef DEFINED_IN_CONFTESTD2
10669 int foo;
10670 #else
10671 #error "include_next doesn't work"
10672 #endif
10673 EOF
10674      cat <<EOF > conftestd1b/conftest.h
10675 #define DEFINED_IN_CONFTESTD1
10676 #include <stdio.h>
10677 #include_next <conftest.h>
10678 #ifdef DEFINED_IN_CONFTESTD2
10679 int foo;
10680 #else
10681 #error "include_next doesn't work"
10682 #endif
10683 EOF
10684      cat <<EOF > conftestd2/conftest.h
10685 #ifndef DEFINED_IN_CONFTESTD1
10686 #error "include_next test doesn't work"
10687 #endif
10688 #define DEFINED_IN_CONFTESTD2
10689 EOF
10690      gl_save_CPPFLAGS="$CPPFLAGS"
10691      CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
10692      cat >conftest.$ac_ext <<_ACEOF
10693 #include <conftest.h>
10694 _ACEOF
10695 rm -f conftest.$ac_objext
10696 if { (ac_try="$ac_compile"
10697 case "(($ac_try" in
10698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10699   *) ac_try_echo=$ac_try;;
10700 esac
10701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10702   (eval "$ac_compile") 2>conftest.er1
10703   ac_status=$?
10704   grep -v '^ *+' conftest.er1 >conftest.err
10705   rm -f conftest.er1
10706   cat conftest.err >&5
10707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10708   (exit $ac_status); } && {
10709          test -z "$ac_c_werror_flag" ||
10710          test ! -s conftest.err
10711        } && test -s conftest.$ac_objext; then
10712   gl_cv_have_include_next=yes
10713 else
10714   echo "$as_me: failed program was:" >&5
10715 sed 's/^/| /' conftest.$ac_ext >&5
10716
10717         CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
10718         cat >conftest.$ac_ext <<_ACEOF
10719 #include <conftest.h>
10720 _ACEOF
10721 rm -f conftest.$ac_objext
10722 if { (ac_try="$ac_compile"
10723 case "(($ac_try" in
10724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10725   *) ac_try_echo=$ac_try;;
10726 esac
10727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10728   (eval "$ac_compile") 2>conftest.er1
10729   ac_status=$?
10730   grep -v '^ *+' conftest.er1 >conftest.err
10731   rm -f conftest.er1
10732   cat conftest.err >&5
10733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10734   (exit $ac_status); } && {
10735          test -z "$ac_c_werror_flag" ||
10736          test ! -s conftest.err
10737        } && test -s conftest.$ac_objext; then
10738   gl_cv_have_include_next=buggy
10739 else
10740   echo "$as_me: failed program was:" >&5
10741 sed 's/^/| /' conftest.$ac_ext >&5
10742
10743         gl_cv_have_include_next=no
10744 fi
10745
10746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10747
10748 fi
10749
10750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10751      CPPFLAGS="$gl_save_CPPFLAGS"
10752      rm -rf conftestd1a conftestd1b conftestd2
10753
10754 fi
10755 { echo "$as_me:$LINENO: result: $gl_cv_have_include_next" >&5
10756 echo "${ECHO_T}$gl_cv_have_include_next" >&6; }
10757   PRAGMA_SYSTEM_HEADER=
10758   if test $gl_cv_have_include_next = yes; then
10759     INCLUDE_NEXT=include_next
10760     INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
10761     if test -n "$GCC"; then
10762       PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
10763     fi
10764   else
10765     if test $gl_cv_have_include_next = buggy; then
10766       INCLUDE_NEXT=include
10767       INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
10768     else
10769       INCLUDE_NEXT=include
10770       INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
10771     fi
10772   fi
10773
10774
10775
10776
10777
10778
10779
10780
10781   { echo "$as_me:$LINENO: checking whether // is distinct from /" >&5
10782 echo $ECHO_N "checking whether // is distinct from /... $ECHO_C" >&6; }
10783 if test "${gl_cv_double_slash_root+set}" = set; then
10784   echo $ECHO_N "(cached) $ECHO_C" >&6
10785 else
10786    if test x"$cross_compiling" = xyes ; then
10787         # When cross-compiling, there is no way to tell whether // is special
10788         # short of a list of hosts.  However, the only known hosts to date
10789         # that have a distinct // are Apollo DomainOS (too old to port to),
10790         # Cygwin, and z/OS.  If anyone knows of another system for which // has
10791         # special semantics and is distinct from /, please report it to
10792         # <bug-gnulib@gnu.org>.
10793         case $host in
10794           *-cygwin | i370-ibm-openedition)
10795             gl_cv_double_slash_root=yes ;;
10796           *)
10797             # Be optimistic and assume that / and // are the same when we
10798             # don't know.
10799             gl_cv_double_slash_root='unknown, assuming no' ;;
10800         esac
10801       else
10802         set x `ls -di / // 2>/dev/null`
10803         if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
10804           gl_cv_double_slash_root=no
10805         else
10806           gl_cv_double_slash_root=yes
10807         fi
10808       fi
10809 fi
10810 { echo "$as_me:$LINENO: result: $gl_cv_double_slash_root" >&5
10811 echo "${ECHO_T}$gl_cv_double_slash_root" >&6; }
10812   if test "$gl_cv_double_slash_root" = yes; then
10813
10814 cat >>confdefs.h <<\_ACEOF
10815 #define DOUBLE_SLASH_IS_DISTINCT_ROOT 1
10816 _ACEOF
10817
10818   fi
10819
10820
10821
10822
10823
10824
10825
10826   { echo "$as_me:$LINENO: checking for complete errno.h" >&5
10827 echo $ECHO_N "checking for complete errno.h... $ECHO_C" >&6; }
10828 if test "${gl_cv_header_errno_h_complete+set}" = set; then
10829   echo $ECHO_N "(cached) $ECHO_C" >&6
10830 else
10831
10832     cat >conftest.$ac_ext <<_ACEOF
10833 /* confdefs.h.  */
10834 _ACEOF
10835 cat confdefs.h >>conftest.$ac_ext
10836 cat >>conftest.$ac_ext <<_ACEOF
10837 /* end confdefs.h.  */
10838
10839 #include <errno.h>
10840 #if !defined ENOMSG
10841 booboo
10842 #endif
10843 #if !defined EIDRM
10844 booboo
10845 #endif
10846 #if !defined ENOLINK
10847 booboo
10848 #endif
10849 #if !defined EPROTO
10850 booboo
10851 #endif
10852 #if !defined EMULTIHOP
10853 booboo
10854 #endif
10855 #if !defined EBADMSG
10856 booboo
10857 #endif
10858 #if !defined EOVERFLOW
10859 booboo
10860 #endif
10861 #if !defined ENOTSUP
10862 booboo
10863 #endif
10864 #if !defined ECANCELED
10865 booboo
10866 #endif
10867
10868 _ACEOF
10869 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10870   $EGREP "booboo" >/dev/null 2>&1; then
10871   gl_cv_header_errno_h_complete=no
10872 else
10873   gl_cv_header_errno_h_complete=yes
10874 fi
10875 rm -f conftest*
10876
10877
10878 fi
10879 { echo "$as_me:$LINENO: result: $gl_cv_header_errno_h_complete" >&5
10880 echo "${ECHO_T}$gl_cv_header_errno_h_complete" >&6; }
10881   if test $gl_cv_header_errno_h_complete = yes; then
10882     ERRNO_H=''
10883   else
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895      if test $gl_cv_have_include_next = yes; then
10896        gl_cv_next_errno_h='<'errno.h'>'
10897      else
10898        { echo "$as_me:$LINENO: checking absolute name of <errno.h>" >&5
10899 echo $ECHO_N "checking absolute name of <errno.h>... $ECHO_C" >&6; }
10900 if test "${gl_cv_next_errno_h+set}" = set; then
10901   echo $ECHO_N "(cached) $ECHO_C" >&6
10902 else
10903
10904           if test $ac_cv_header_errno_h = yes; then
10905             cat >conftest.$ac_ext <<_ACEOF
10906 /* confdefs.h.  */
10907 _ACEOF
10908 cat confdefs.h >>conftest.$ac_ext
10909 cat >>conftest.$ac_ext <<_ACEOF
10910 /* end confdefs.h.  */
10911 #include <errno.h>
10912
10913 _ACEOF
10914                                                                     case "$host_os" in
10915               aix*) gl_absname_cpp="$ac_cpp -C" ;;
10916               *)    gl_absname_cpp="$ac_cpp" ;;
10917             esac
10918                                     gl_cv_next_errno_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
10919                sed -n '\#/errno.h#{
10920                  s#.*"\(.*/errno.h\)".*#\1#
10921                  s#^/[^/]#//&#
10922                  p
10923                  q
10924                }'`'"'
10925           else
10926             gl_cv_next_errno_h='<'errno.h'>'
10927           fi
10928
10929 fi
10930 { echo "$as_me:$LINENO: result: $gl_cv_next_errno_h" >&5
10931 echo "${ECHO_T}$gl_cv_next_errno_h" >&6; }
10932      fi
10933      NEXT_ERRNO_H=$gl_cv_next_errno_h
10934
10935
10936
10937     ERRNO_H='errno.h'
10938   fi
10939
10940
10941   if test -n "$ERRNO_H"; then
10942     { echo "$as_me:$LINENO: checking for EMULTIHOP value" >&5
10943 echo $ECHO_N "checking for EMULTIHOP value... $ECHO_C" >&6; }
10944 if test "${gl_cv_header_errno_h_EMULTIHOP+set}" = set; then
10945   echo $ECHO_N "(cached) $ECHO_C" >&6
10946 else
10947
10948       cat >conftest.$ac_ext <<_ACEOF
10949 /* confdefs.h.  */
10950 _ACEOF
10951 cat confdefs.h >>conftest.$ac_ext
10952 cat >>conftest.$ac_ext <<_ACEOF
10953 /* end confdefs.h.  */
10954
10955 #include <errno.h>
10956 #ifdef EMULTIHOP
10957 yes
10958 #endif
10959
10960 _ACEOF
10961 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10962   $EGREP "yes" >/dev/null 2>&1; then
10963   gl_cv_header_errno_h_EMULTIHOP=yes
10964 else
10965   gl_cv_header_errno_h_EMULTIHOP=no
10966 fi
10967 rm -f conftest*
10968
10969       if test $gl_cv_header_errno_h_EMULTIHOP = no; then
10970         cat >conftest.$ac_ext <<_ACEOF
10971 /* confdefs.h.  */
10972 _ACEOF
10973 cat confdefs.h >>conftest.$ac_ext
10974 cat >>conftest.$ac_ext <<_ACEOF
10975 /* end confdefs.h.  */
10976
10977 #define _XOPEN_SOURCE_EXTENDED 1
10978 #include <errno.h>
10979 #ifdef EMULTIHOP
10980 yes
10981 #endif
10982
10983 _ACEOF
10984 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10985   $EGREP "yes" >/dev/null 2>&1; then
10986   gl_cv_header_errno_h_EMULTIHOP=hidden
10987 fi
10988 rm -f conftest*
10989
10990         if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then
10991                               if test "$cross_compiling" = yes; then
10992   # Depending upon the size, compute the lo and hi bounds.
10993 cat >conftest.$ac_ext <<_ACEOF
10994 /* confdefs.h.  */
10995 _ACEOF
10996 cat confdefs.h >>conftest.$ac_ext
10997 cat >>conftest.$ac_ext <<_ACEOF
10998 /* end confdefs.h.  */
10999
11000 #define _XOPEN_SOURCE_EXTENDED 1
11001 #include <errno.h>
11002 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
11003 #include <stdio.h>
11004 #include <stdlib.h>
11005
11006 int
11007 main ()
11008 {
11009 static int test_array [1 - 2 * !((EMULTIHOP) >= 0)];
11010 test_array [0] = 0
11011
11012   ;
11013   return 0;
11014 }
11015 _ACEOF
11016 rm -f conftest.$ac_objext
11017 if { (ac_try="$ac_compile"
11018 case "(($ac_try" in
11019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11020   *) ac_try_echo=$ac_try;;
11021 esac
11022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11023   (eval "$ac_compile") 2>conftest.er1
11024   ac_status=$?
11025   grep -v '^ *+' conftest.er1 >conftest.err
11026   rm -f conftest.er1
11027   cat conftest.err >&5
11028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11029   (exit $ac_status); } && {
11030          test -z "$ac_c_werror_flag" ||
11031          test ! -s conftest.err
11032        } && test -s conftest.$ac_objext; then
11033   ac_lo=0 ac_mid=0
11034   while :; do
11035     cat >conftest.$ac_ext <<_ACEOF
11036 /* confdefs.h.  */
11037 _ACEOF
11038 cat confdefs.h >>conftest.$ac_ext
11039 cat >>conftest.$ac_ext <<_ACEOF
11040 /* end confdefs.h.  */
11041
11042 #define _XOPEN_SOURCE_EXTENDED 1
11043 #include <errno.h>
11044 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
11045 #include <stdio.h>
11046 #include <stdlib.h>
11047
11048 int
11049 main ()
11050 {
11051 static int test_array [1 - 2 * !((EMULTIHOP) <= $ac_mid)];
11052 test_array [0] = 0
11053
11054   ;
11055   return 0;
11056 }
11057 _ACEOF
11058 rm -f conftest.$ac_objext
11059 if { (ac_try="$ac_compile"
11060 case "(($ac_try" in
11061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11062   *) ac_try_echo=$ac_try;;
11063 esac
11064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11065   (eval "$ac_compile") 2>conftest.er1
11066   ac_status=$?
11067   grep -v '^ *+' conftest.er1 >conftest.err
11068   rm -f conftest.er1
11069   cat conftest.err >&5
11070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11071   (exit $ac_status); } && {
11072          test -z "$ac_c_werror_flag" ||
11073          test ! -s conftest.err
11074        } && test -s conftest.$ac_objext; then
11075   ac_hi=$ac_mid; break
11076 else
11077   echo "$as_me: failed program was:" >&5
11078 sed 's/^/| /' conftest.$ac_ext >&5
11079
11080         ac_lo=`expr $ac_mid + 1`
11081                         if test $ac_lo -le $ac_mid; then
11082                           ac_lo= ac_hi=
11083                           break
11084                         fi
11085                         ac_mid=`expr 2 '*' $ac_mid + 1`
11086 fi
11087
11088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11089   done
11090 else
11091   echo "$as_me: failed program was:" >&5
11092 sed 's/^/| /' conftest.$ac_ext >&5
11093
11094         cat >conftest.$ac_ext <<_ACEOF
11095 /* confdefs.h.  */
11096 _ACEOF
11097 cat confdefs.h >>conftest.$ac_ext
11098 cat >>conftest.$ac_ext <<_ACEOF
11099 /* end confdefs.h.  */
11100
11101 #define _XOPEN_SOURCE_EXTENDED 1
11102 #include <errno.h>
11103 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
11104 #include <stdio.h>
11105 #include <stdlib.h>
11106
11107 int
11108 main ()
11109 {
11110 static int test_array [1 - 2 * !((EMULTIHOP) < 0)];
11111 test_array [0] = 0
11112
11113   ;
11114   return 0;
11115 }
11116 _ACEOF
11117 rm -f conftest.$ac_objext
11118 if { (ac_try="$ac_compile"
11119 case "(($ac_try" in
11120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11121   *) ac_try_echo=$ac_try;;
11122 esac
11123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11124   (eval "$ac_compile") 2>conftest.er1
11125   ac_status=$?
11126   grep -v '^ *+' conftest.er1 >conftest.err
11127   rm -f conftest.er1
11128   cat conftest.err >&5
11129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11130   (exit $ac_status); } && {
11131          test -z "$ac_c_werror_flag" ||
11132          test ! -s conftest.err
11133        } && test -s conftest.$ac_objext; then
11134   ac_hi=-1 ac_mid=-1
11135   while :; do
11136     cat >conftest.$ac_ext <<_ACEOF
11137 /* confdefs.h.  */
11138 _ACEOF
11139 cat confdefs.h >>conftest.$ac_ext
11140 cat >>conftest.$ac_ext <<_ACEOF
11141 /* end confdefs.h.  */
11142
11143 #define _XOPEN_SOURCE_EXTENDED 1
11144 #include <errno.h>
11145 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
11146 #include <stdio.h>
11147 #include <stdlib.h>
11148
11149 int
11150 main ()
11151 {
11152 static int test_array [1 - 2 * !((EMULTIHOP) >= $ac_mid)];
11153 test_array [0] = 0
11154
11155   ;
11156   return 0;
11157 }
11158 _ACEOF
11159 rm -f conftest.$ac_objext
11160 if { (ac_try="$ac_compile"
11161 case "(($ac_try" in
11162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11163   *) ac_try_echo=$ac_try;;
11164 esac
11165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11166   (eval "$ac_compile") 2>conftest.er1
11167   ac_status=$?
11168   grep -v '^ *+' conftest.er1 >conftest.err
11169   rm -f conftest.er1
11170   cat conftest.err >&5
11171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11172   (exit $ac_status); } && {
11173          test -z "$ac_c_werror_flag" ||
11174          test ! -s conftest.err
11175        } && test -s conftest.$ac_objext; then
11176   ac_lo=$ac_mid; break
11177 else
11178   echo "$as_me: failed program was:" >&5
11179 sed 's/^/| /' conftest.$ac_ext >&5
11180
11181         ac_hi=`expr '(' $ac_mid ')' - 1`
11182                         if test $ac_mid -le $ac_hi; then
11183                           ac_lo= ac_hi=
11184                           break
11185                         fi
11186                         ac_mid=`expr 2 '*' $ac_mid`
11187 fi
11188
11189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11190   done
11191 else
11192   echo "$as_me: failed program was:" >&5
11193 sed 's/^/| /' conftest.$ac_ext >&5
11194
11195         ac_lo= ac_hi=
11196 fi
11197
11198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11199 fi
11200
11201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11202 # Binary search between lo and hi bounds.
11203 while test "x$ac_lo" != "x$ac_hi"; do
11204   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11205   cat >conftest.$ac_ext <<_ACEOF
11206 /* confdefs.h.  */
11207 _ACEOF
11208 cat confdefs.h >>conftest.$ac_ext
11209 cat >>conftest.$ac_ext <<_ACEOF
11210 /* end confdefs.h.  */
11211
11212 #define _XOPEN_SOURCE_EXTENDED 1
11213 #include <errno.h>
11214 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
11215 #include <stdio.h>
11216 #include <stdlib.h>
11217
11218 int
11219 main ()
11220 {
11221 static int test_array [1 - 2 * !((EMULTIHOP) <= $ac_mid)];
11222 test_array [0] = 0
11223
11224   ;
11225   return 0;
11226 }
11227 _ACEOF
11228 rm -f conftest.$ac_objext
11229 if { (ac_try="$ac_compile"
11230 case "(($ac_try" in
11231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11232   *) ac_try_echo=$ac_try;;
11233 esac
11234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11235   (eval "$ac_compile") 2>conftest.er1
11236   ac_status=$?
11237   grep -v '^ *+' conftest.er1 >conftest.err
11238   rm -f conftest.er1
11239   cat conftest.err >&5
11240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11241   (exit $ac_status); } && {
11242          test -z "$ac_c_werror_flag" ||
11243          test ! -s conftest.err
11244        } && test -s conftest.$ac_objext; then
11245   ac_hi=$ac_mid
11246 else
11247   echo "$as_me: failed program was:" >&5
11248 sed 's/^/| /' conftest.$ac_ext >&5
11249
11250         ac_lo=`expr '(' $ac_mid ')' + 1`
11251 fi
11252
11253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11254 done
11255 case $ac_lo in
11256 ?*) gl_cv_header_errno_h_EMULTIHOP=$ac_lo;;
11257 '')  ;;
11258 esac
11259 else
11260   cat >conftest.$ac_ext <<_ACEOF
11261 /* confdefs.h.  */
11262 _ACEOF
11263 cat confdefs.h >>conftest.$ac_ext
11264 cat >>conftest.$ac_ext <<_ACEOF
11265 /* end confdefs.h.  */
11266
11267 #define _XOPEN_SOURCE_EXTENDED 1
11268 #include <errno.h>
11269 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
11270 #include <stdio.h>
11271 #include <stdlib.h>
11272
11273 static long int longval () { return EMULTIHOP; }
11274 static unsigned long int ulongval () { return EMULTIHOP; }
11275 #include <stdio.h>
11276 #include <stdlib.h>
11277 int
11278 main ()
11279 {
11280
11281   FILE *f = fopen ("conftest.val", "w");
11282   if (! f)
11283     return 1;
11284   if ((EMULTIHOP) < 0)
11285     {
11286       long int i = longval ();
11287       if (i != (EMULTIHOP))
11288         return 1;
11289       fprintf (f, "%ld\n", i);
11290     }
11291   else
11292     {
11293       unsigned long int i = ulongval ();
11294       if (i != (EMULTIHOP))
11295         return 1;
11296       fprintf (f, "%lu\n", i);
11297     }
11298   return ferror (f) || fclose (f) != 0;
11299
11300   ;
11301   return 0;
11302 }
11303 _ACEOF
11304 rm -f conftest$ac_exeext
11305 if { (ac_try="$ac_link"
11306 case "(($ac_try" in
11307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11308   *) ac_try_echo=$ac_try;;
11309 esac
11310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11311   (eval "$ac_link") 2>&5
11312   ac_status=$?
11313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11314   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11315   { (case "(($ac_try" in
11316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11317   *) ac_try_echo=$ac_try;;
11318 esac
11319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11320   (eval "$ac_try") 2>&5
11321   ac_status=$?
11322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11323   (exit $ac_status); }; }; then
11324   gl_cv_header_errno_h_EMULTIHOP=`cat conftest.val`
11325 else
11326   echo "$as_me: program exited with status $ac_status" >&5
11327 echo "$as_me: failed program was:" >&5
11328 sed 's/^/| /' conftest.$ac_ext >&5
11329
11330 fi
11331 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11332 fi
11333 rm -f conftest.val
11334         fi
11335       fi
11336
11337 fi
11338 { echo "$as_me:$LINENO: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
11339 echo "${ECHO_T}$gl_cv_header_errno_h_EMULTIHOP" >&6; }
11340     case $gl_cv_header_errno_h_EMULTIHOP in
11341       yes | no)
11342         EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE=
11343         ;;
11344       *)
11345         EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP"
11346         ;;
11347     esac
11348
11349
11350   fi
11351
11352
11353   if test -n "$ERRNO_H"; then
11354     { echo "$as_me:$LINENO: checking for ENOLINK value" >&5
11355 echo $ECHO_N "checking for ENOLINK value... $ECHO_C" >&6; }
11356 if test "${gl_cv_header_errno_h_ENOLINK+set}" = set; then
11357   echo $ECHO_N "(cached) $ECHO_C" >&6
11358 else
11359
11360       cat >conftest.$ac_ext <<_ACEOF
11361 /* confdefs.h.  */
11362 _ACEOF
11363 cat confdefs.h >>conftest.$ac_ext
11364 cat >>conftest.$ac_ext <<_ACEOF
11365 /* end confdefs.h.  */
11366
11367 #include <errno.h>
11368 #ifdef ENOLINK
11369 yes
11370 #endif
11371
11372 _ACEOF
11373 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11374   $EGREP "yes" >/dev/null 2>&1; then
11375   gl_cv_header_errno_h_ENOLINK=yes
11376 else
11377   gl_cv_header_errno_h_ENOLINK=no
11378 fi
11379 rm -f conftest*
11380
11381       if test $gl_cv_header_errno_h_ENOLINK = no; then
11382         cat >conftest.$ac_ext <<_ACEOF
11383 /* confdefs.h.  */
11384 _ACEOF
11385 cat confdefs.h >>conftest.$ac_ext
11386 cat >>conftest.$ac_ext <<_ACEOF
11387 /* end confdefs.h.  */
11388
11389 #define _XOPEN_SOURCE_EXTENDED 1
11390 #include <errno.h>
11391 #ifdef ENOLINK
11392 yes
11393 #endif
11394
11395 _ACEOF
11396 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11397   $EGREP "yes" >/dev/null 2>&1; then
11398   gl_cv_header_errno_h_ENOLINK=hidden
11399 fi
11400 rm -f conftest*
11401
11402         if test $gl_cv_header_errno_h_ENOLINK = hidden; then
11403                               if test "$cross_compiling" = yes; then
11404   # Depending upon the size, compute the lo and hi bounds.
11405 cat >conftest.$ac_ext <<_ACEOF
11406 /* confdefs.h.  */
11407 _ACEOF
11408 cat confdefs.h >>conftest.$ac_ext
11409 cat >>conftest.$ac_ext <<_ACEOF
11410 /* end confdefs.h.  */
11411
11412 #define _XOPEN_SOURCE_EXTENDED 1
11413 #include <errno.h>
11414 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
11415 #include <stdio.h>
11416 #include <stdlib.h>
11417
11418 int
11419 main ()
11420 {
11421 static int test_array [1 - 2 * !((ENOLINK) >= 0)];
11422 test_array [0] = 0
11423
11424   ;
11425   return 0;
11426 }
11427 _ACEOF
11428 rm -f conftest.$ac_objext
11429 if { (ac_try="$ac_compile"
11430 case "(($ac_try" in
11431   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11432   *) ac_try_echo=$ac_try;;
11433 esac
11434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11435   (eval "$ac_compile") 2>conftest.er1
11436   ac_status=$?
11437   grep -v '^ *+' conftest.er1 >conftest.err
11438   rm -f conftest.er1
11439   cat conftest.err >&5
11440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11441   (exit $ac_status); } && {
11442          test -z "$ac_c_werror_flag" ||
11443          test ! -s conftest.err
11444        } && test -s conftest.$ac_objext; then
11445   ac_lo=0 ac_mid=0
11446   while :; do
11447     cat >conftest.$ac_ext <<_ACEOF
11448 /* confdefs.h.  */
11449 _ACEOF
11450 cat confdefs.h >>conftest.$ac_ext
11451 cat >>conftest.$ac_ext <<_ACEOF
11452 /* end confdefs.h.  */
11453
11454 #define _XOPEN_SOURCE_EXTENDED 1
11455 #include <errno.h>
11456 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
11457 #include <stdio.h>
11458 #include <stdlib.h>
11459
11460 int
11461 main ()
11462 {
11463 static int test_array [1 - 2 * !((ENOLINK) <= $ac_mid)];
11464 test_array [0] = 0
11465
11466   ;
11467   return 0;
11468 }
11469 _ACEOF
11470 rm -f conftest.$ac_objext
11471 if { (ac_try="$ac_compile"
11472 case "(($ac_try" in
11473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11474   *) ac_try_echo=$ac_try;;
11475 esac
11476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11477   (eval "$ac_compile") 2>conftest.er1
11478   ac_status=$?
11479   grep -v '^ *+' conftest.er1 >conftest.err
11480   rm -f conftest.er1
11481   cat conftest.err >&5
11482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11483   (exit $ac_status); } && {
11484          test -z "$ac_c_werror_flag" ||
11485          test ! -s conftest.err
11486        } && test -s conftest.$ac_objext; then
11487   ac_hi=$ac_mid; break
11488 else
11489   echo "$as_me: failed program was:" >&5
11490 sed 's/^/| /' conftest.$ac_ext >&5
11491
11492         ac_lo=`expr $ac_mid + 1`
11493                         if test $ac_lo -le $ac_mid; then
11494                           ac_lo= ac_hi=
11495                           break
11496                         fi
11497                         ac_mid=`expr 2 '*' $ac_mid + 1`
11498 fi
11499
11500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11501   done
11502 else
11503   echo "$as_me: failed program was:" >&5
11504 sed 's/^/| /' conftest.$ac_ext >&5
11505
11506         cat >conftest.$ac_ext <<_ACEOF
11507 /* confdefs.h.  */
11508 _ACEOF
11509 cat confdefs.h >>conftest.$ac_ext
11510 cat >>conftest.$ac_ext <<_ACEOF
11511 /* end confdefs.h.  */
11512
11513 #define _XOPEN_SOURCE_EXTENDED 1
11514 #include <errno.h>
11515 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
11516 #include <stdio.h>
11517 #include <stdlib.h>
11518
11519 int
11520 main ()
11521 {
11522 static int test_array [1 - 2 * !((ENOLINK) < 0)];
11523 test_array [0] = 0
11524
11525   ;
11526   return 0;
11527 }
11528 _ACEOF
11529 rm -f conftest.$ac_objext
11530 if { (ac_try="$ac_compile"
11531 case "(($ac_try" in
11532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11533   *) ac_try_echo=$ac_try;;
11534 esac
11535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11536   (eval "$ac_compile") 2>conftest.er1
11537   ac_status=$?
11538   grep -v '^ *+' conftest.er1 >conftest.err
11539   rm -f conftest.er1
11540   cat conftest.err >&5
11541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11542   (exit $ac_status); } && {
11543          test -z "$ac_c_werror_flag" ||
11544          test ! -s conftest.err
11545        } && test -s conftest.$ac_objext; then
11546   ac_hi=-1 ac_mid=-1
11547   while :; do
11548     cat >conftest.$ac_ext <<_ACEOF
11549 /* confdefs.h.  */
11550 _ACEOF
11551 cat confdefs.h >>conftest.$ac_ext
11552 cat >>conftest.$ac_ext <<_ACEOF
11553 /* end confdefs.h.  */
11554
11555 #define _XOPEN_SOURCE_EXTENDED 1
11556 #include <errno.h>
11557 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
11558 #include <stdio.h>
11559 #include <stdlib.h>
11560
11561 int
11562 main ()
11563 {
11564 static int test_array [1 - 2 * !((ENOLINK) >= $ac_mid)];
11565 test_array [0] = 0
11566
11567   ;
11568   return 0;
11569 }
11570 _ACEOF
11571 rm -f conftest.$ac_objext
11572 if { (ac_try="$ac_compile"
11573 case "(($ac_try" in
11574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11575   *) ac_try_echo=$ac_try;;
11576 esac
11577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11578   (eval "$ac_compile") 2>conftest.er1
11579   ac_status=$?
11580   grep -v '^ *+' conftest.er1 >conftest.err
11581   rm -f conftest.er1
11582   cat conftest.err >&5
11583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11584   (exit $ac_status); } && {
11585          test -z "$ac_c_werror_flag" ||
11586          test ! -s conftest.err
11587        } && test -s conftest.$ac_objext; then
11588   ac_lo=$ac_mid; break
11589 else
11590   echo "$as_me: failed program was:" >&5
11591 sed 's/^/| /' conftest.$ac_ext >&5
11592
11593         ac_hi=`expr '(' $ac_mid ')' - 1`
11594                         if test $ac_mid -le $ac_hi; then
11595                           ac_lo= ac_hi=
11596                           break
11597                         fi
11598                         ac_mid=`expr 2 '*' $ac_mid`
11599 fi
11600
11601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11602   done
11603 else
11604   echo "$as_me: failed program was:" >&5
11605 sed 's/^/| /' conftest.$ac_ext >&5
11606
11607         ac_lo= ac_hi=
11608 fi
11609
11610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11611 fi
11612
11613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11614 # Binary search between lo and hi bounds.
11615 while test "x$ac_lo" != "x$ac_hi"; do
11616   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11617   cat >conftest.$ac_ext <<_ACEOF
11618 /* confdefs.h.  */
11619 _ACEOF
11620 cat confdefs.h >>conftest.$ac_ext
11621 cat >>conftest.$ac_ext <<_ACEOF
11622 /* end confdefs.h.  */
11623
11624 #define _XOPEN_SOURCE_EXTENDED 1
11625 #include <errno.h>
11626 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
11627 #include <stdio.h>
11628 #include <stdlib.h>
11629
11630 int
11631 main ()
11632 {
11633 static int test_array [1 - 2 * !((ENOLINK) <= $ac_mid)];
11634 test_array [0] = 0
11635
11636   ;
11637   return 0;
11638 }
11639 _ACEOF
11640 rm -f conftest.$ac_objext
11641 if { (ac_try="$ac_compile"
11642 case "(($ac_try" in
11643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11644   *) ac_try_echo=$ac_try;;
11645 esac
11646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11647   (eval "$ac_compile") 2>conftest.er1
11648   ac_status=$?
11649   grep -v '^ *+' conftest.er1 >conftest.err
11650   rm -f conftest.er1
11651   cat conftest.err >&5
11652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11653   (exit $ac_status); } && {
11654          test -z "$ac_c_werror_flag" ||
11655          test ! -s conftest.err
11656        } && test -s conftest.$ac_objext; then
11657   ac_hi=$ac_mid
11658 else
11659   echo "$as_me: failed program was:" >&5
11660 sed 's/^/| /' conftest.$ac_ext >&5
11661
11662         ac_lo=`expr '(' $ac_mid ')' + 1`
11663 fi
11664
11665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11666 done
11667 case $ac_lo in
11668 ?*) gl_cv_header_errno_h_ENOLINK=$ac_lo;;
11669 '')  ;;
11670 esac
11671 else
11672   cat >conftest.$ac_ext <<_ACEOF
11673 /* confdefs.h.  */
11674 _ACEOF
11675 cat confdefs.h >>conftest.$ac_ext
11676 cat >>conftest.$ac_ext <<_ACEOF
11677 /* end confdefs.h.  */
11678
11679 #define _XOPEN_SOURCE_EXTENDED 1
11680 #include <errno.h>
11681 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
11682 #include <stdio.h>
11683 #include <stdlib.h>
11684
11685 static long int longval () { return ENOLINK; }
11686 static unsigned long int ulongval () { return ENOLINK; }
11687 #include <stdio.h>
11688 #include <stdlib.h>
11689 int
11690 main ()
11691 {
11692
11693   FILE *f = fopen ("conftest.val", "w");
11694   if (! f)
11695     return 1;
11696   if ((ENOLINK) < 0)
11697     {
11698       long int i = longval ();
11699       if (i != (ENOLINK))
11700         return 1;
11701       fprintf (f, "%ld\n", i);
11702     }
11703   else
11704     {
11705       unsigned long int i = ulongval ();
11706       if (i != (ENOLINK))
11707         return 1;
11708       fprintf (f, "%lu\n", i);
11709     }
11710   return ferror (f) || fclose (f) != 0;
11711
11712   ;
11713   return 0;
11714 }
11715 _ACEOF
11716 rm -f conftest$ac_exeext
11717 if { (ac_try="$ac_link"
11718 case "(($ac_try" in
11719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11720   *) ac_try_echo=$ac_try;;
11721 esac
11722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11723   (eval "$ac_link") 2>&5
11724   ac_status=$?
11725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11726   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11727   { (case "(($ac_try" in
11728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11729   *) ac_try_echo=$ac_try;;
11730 esac
11731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11732   (eval "$ac_try") 2>&5
11733   ac_status=$?
11734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11735   (exit $ac_status); }; }; then
11736   gl_cv_header_errno_h_ENOLINK=`cat conftest.val`
11737 else
11738   echo "$as_me: program exited with status $ac_status" >&5
11739 echo "$as_me: failed program was:" >&5
11740 sed 's/^/| /' conftest.$ac_ext >&5
11741
11742 fi
11743 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11744 fi
11745 rm -f conftest.val
11746         fi
11747       fi
11748
11749 fi
11750 { echo "$as_me:$LINENO: result: $gl_cv_header_errno_h_ENOLINK" >&5
11751 echo "${ECHO_T}$gl_cv_header_errno_h_ENOLINK" >&6; }
11752     case $gl_cv_header_errno_h_ENOLINK in
11753       yes | no)
11754         ENOLINK_HIDDEN=0; ENOLINK_VALUE=
11755         ;;
11756       *)
11757         ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK"
11758         ;;
11759     esac
11760
11761
11762   fi
11763
11764
11765   if test -n "$ERRNO_H"; then
11766     { echo "$as_me:$LINENO: checking for EOVERFLOW value" >&5
11767 echo $ECHO_N "checking for EOVERFLOW value... $ECHO_C" >&6; }
11768 if test "${gl_cv_header_errno_h_EOVERFLOW+set}" = set; then
11769   echo $ECHO_N "(cached) $ECHO_C" >&6
11770 else
11771
11772       cat >conftest.$ac_ext <<_ACEOF
11773 /* confdefs.h.  */
11774 _ACEOF
11775 cat confdefs.h >>conftest.$ac_ext
11776 cat >>conftest.$ac_ext <<_ACEOF
11777 /* end confdefs.h.  */
11778
11779 #include <errno.h>
11780 #ifdef EOVERFLOW
11781 yes
11782 #endif
11783
11784 _ACEOF
11785 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11786   $EGREP "yes" >/dev/null 2>&1; then
11787   gl_cv_header_errno_h_EOVERFLOW=yes
11788 else
11789   gl_cv_header_errno_h_EOVERFLOW=no
11790 fi
11791 rm -f conftest*
11792
11793       if test $gl_cv_header_errno_h_EOVERFLOW = no; then
11794         cat >conftest.$ac_ext <<_ACEOF
11795 /* confdefs.h.  */
11796 _ACEOF
11797 cat confdefs.h >>conftest.$ac_ext
11798 cat >>conftest.$ac_ext <<_ACEOF
11799 /* end confdefs.h.  */
11800
11801 #define _XOPEN_SOURCE_EXTENDED 1
11802 #include <errno.h>
11803 #ifdef EOVERFLOW
11804 yes
11805 #endif
11806
11807 _ACEOF
11808 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11809   $EGREP "yes" >/dev/null 2>&1; then
11810   gl_cv_header_errno_h_EOVERFLOW=hidden
11811 fi
11812 rm -f conftest*
11813
11814         if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then
11815                               if test "$cross_compiling" = yes; then
11816   # Depending upon the size, compute the lo and hi bounds.
11817 cat >conftest.$ac_ext <<_ACEOF
11818 /* confdefs.h.  */
11819 _ACEOF
11820 cat confdefs.h >>conftest.$ac_ext
11821 cat >>conftest.$ac_ext <<_ACEOF
11822 /* end confdefs.h.  */
11823
11824 #define _XOPEN_SOURCE_EXTENDED 1
11825 #include <errno.h>
11826 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
11827 #include <stdio.h>
11828 #include <stdlib.h>
11829
11830 int
11831 main ()
11832 {
11833 static int test_array [1 - 2 * !((EOVERFLOW) >= 0)];
11834 test_array [0] = 0
11835
11836   ;
11837   return 0;
11838 }
11839 _ACEOF
11840 rm -f conftest.$ac_objext
11841 if { (ac_try="$ac_compile"
11842 case "(($ac_try" in
11843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11844   *) ac_try_echo=$ac_try;;
11845 esac
11846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11847   (eval "$ac_compile") 2>conftest.er1
11848   ac_status=$?
11849   grep -v '^ *+' conftest.er1 >conftest.err
11850   rm -f conftest.er1
11851   cat conftest.err >&5
11852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11853   (exit $ac_status); } && {
11854          test -z "$ac_c_werror_flag" ||
11855          test ! -s conftest.err
11856        } && test -s conftest.$ac_objext; then
11857   ac_lo=0 ac_mid=0
11858   while :; do
11859     cat >conftest.$ac_ext <<_ACEOF
11860 /* confdefs.h.  */
11861 _ACEOF
11862 cat confdefs.h >>conftest.$ac_ext
11863 cat >>conftest.$ac_ext <<_ACEOF
11864 /* end confdefs.h.  */
11865
11866 #define _XOPEN_SOURCE_EXTENDED 1
11867 #include <errno.h>
11868 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
11869 #include <stdio.h>
11870 #include <stdlib.h>
11871
11872 int
11873 main ()
11874 {
11875 static int test_array [1 - 2 * !((EOVERFLOW) <= $ac_mid)];
11876 test_array [0] = 0
11877
11878   ;
11879   return 0;
11880 }
11881 _ACEOF
11882 rm -f conftest.$ac_objext
11883 if { (ac_try="$ac_compile"
11884 case "(($ac_try" in
11885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11886   *) ac_try_echo=$ac_try;;
11887 esac
11888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11889   (eval "$ac_compile") 2>conftest.er1
11890   ac_status=$?
11891   grep -v '^ *+' conftest.er1 >conftest.err
11892   rm -f conftest.er1
11893   cat conftest.err >&5
11894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11895   (exit $ac_status); } && {
11896          test -z "$ac_c_werror_flag" ||
11897          test ! -s conftest.err
11898        } && test -s conftest.$ac_objext; then
11899   ac_hi=$ac_mid; break
11900 else
11901   echo "$as_me: failed program was:" >&5
11902 sed 's/^/| /' conftest.$ac_ext >&5
11903
11904         ac_lo=`expr $ac_mid + 1`
11905                         if test $ac_lo -le $ac_mid; then
11906                           ac_lo= ac_hi=
11907                           break
11908                         fi
11909                         ac_mid=`expr 2 '*' $ac_mid + 1`
11910 fi
11911
11912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11913   done
11914 else
11915   echo "$as_me: failed program was:" >&5
11916 sed 's/^/| /' conftest.$ac_ext >&5
11917
11918         cat >conftest.$ac_ext <<_ACEOF
11919 /* confdefs.h.  */
11920 _ACEOF
11921 cat confdefs.h >>conftest.$ac_ext
11922 cat >>conftest.$ac_ext <<_ACEOF
11923 /* end confdefs.h.  */
11924
11925 #define _XOPEN_SOURCE_EXTENDED 1
11926 #include <errno.h>
11927 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
11928 #include <stdio.h>
11929 #include <stdlib.h>
11930
11931 int
11932 main ()
11933 {
11934 static int test_array [1 - 2 * !((EOVERFLOW) < 0)];
11935 test_array [0] = 0
11936
11937   ;
11938   return 0;
11939 }
11940 _ACEOF
11941 rm -f conftest.$ac_objext
11942 if { (ac_try="$ac_compile"
11943 case "(($ac_try" in
11944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11945   *) ac_try_echo=$ac_try;;
11946 esac
11947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11948   (eval "$ac_compile") 2>conftest.er1
11949   ac_status=$?
11950   grep -v '^ *+' conftest.er1 >conftest.err
11951   rm -f conftest.er1
11952   cat conftest.err >&5
11953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11954   (exit $ac_status); } && {
11955          test -z "$ac_c_werror_flag" ||
11956          test ! -s conftest.err
11957        } && test -s conftest.$ac_objext; then
11958   ac_hi=-1 ac_mid=-1
11959   while :; do
11960     cat >conftest.$ac_ext <<_ACEOF
11961 /* confdefs.h.  */
11962 _ACEOF
11963 cat confdefs.h >>conftest.$ac_ext
11964 cat >>conftest.$ac_ext <<_ACEOF
11965 /* end confdefs.h.  */
11966
11967 #define _XOPEN_SOURCE_EXTENDED 1
11968 #include <errno.h>
11969 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
11970 #include <stdio.h>
11971 #include <stdlib.h>
11972
11973 int
11974 main ()
11975 {
11976 static int test_array [1 - 2 * !((EOVERFLOW) >= $ac_mid)];
11977 test_array [0] = 0
11978
11979   ;
11980   return 0;
11981 }
11982 _ACEOF
11983 rm -f conftest.$ac_objext
11984 if { (ac_try="$ac_compile"
11985 case "(($ac_try" in
11986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11987   *) ac_try_echo=$ac_try;;
11988 esac
11989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11990   (eval "$ac_compile") 2>conftest.er1
11991   ac_status=$?
11992   grep -v '^ *+' conftest.er1 >conftest.err
11993   rm -f conftest.er1
11994   cat conftest.err >&5
11995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11996   (exit $ac_status); } && {
11997          test -z "$ac_c_werror_flag" ||
11998          test ! -s conftest.err
11999        } && test -s conftest.$ac_objext; then
12000   ac_lo=$ac_mid; break
12001 else
12002   echo "$as_me: failed program was:" >&5
12003 sed 's/^/| /' conftest.$ac_ext >&5
12004
12005         ac_hi=`expr '(' $ac_mid ')' - 1`
12006                         if test $ac_mid -le $ac_hi; then
12007                           ac_lo= ac_hi=
12008                           break
12009                         fi
12010                         ac_mid=`expr 2 '*' $ac_mid`
12011 fi
12012
12013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12014   done
12015 else
12016   echo "$as_me: failed program was:" >&5
12017 sed 's/^/| /' conftest.$ac_ext >&5
12018
12019         ac_lo= ac_hi=
12020 fi
12021
12022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12023 fi
12024
12025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12026 # Binary search between lo and hi bounds.
12027 while test "x$ac_lo" != "x$ac_hi"; do
12028   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12029   cat >conftest.$ac_ext <<_ACEOF
12030 /* confdefs.h.  */
12031 _ACEOF
12032 cat confdefs.h >>conftest.$ac_ext
12033 cat >>conftest.$ac_ext <<_ACEOF
12034 /* end confdefs.h.  */
12035
12036 #define _XOPEN_SOURCE_EXTENDED 1
12037 #include <errno.h>
12038 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
12039 #include <stdio.h>
12040 #include <stdlib.h>
12041
12042 int
12043 main ()
12044 {
12045 static int test_array [1 - 2 * !((EOVERFLOW) <= $ac_mid)];
12046 test_array [0] = 0
12047
12048   ;
12049   return 0;
12050 }
12051 _ACEOF
12052 rm -f conftest.$ac_objext
12053 if { (ac_try="$ac_compile"
12054 case "(($ac_try" in
12055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12056   *) ac_try_echo=$ac_try;;
12057 esac
12058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12059   (eval "$ac_compile") 2>conftest.er1
12060   ac_status=$?
12061   grep -v '^ *+' conftest.er1 >conftest.err
12062   rm -f conftest.er1
12063   cat conftest.err >&5
12064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12065   (exit $ac_status); } && {
12066          test -z "$ac_c_werror_flag" ||
12067          test ! -s conftest.err
12068        } && test -s conftest.$ac_objext; then
12069   ac_hi=$ac_mid
12070 else
12071   echo "$as_me: failed program was:" >&5
12072 sed 's/^/| /' conftest.$ac_ext >&5
12073
12074         ac_lo=`expr '(' $ac_mid ')' + 1`
12075 fi
12076
12077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12078 done
12079 case $ac_lo in
12080 ?*) gl_cv_header_errno_h_EOVERFLOW=$ac_lo;;
12081 '')  ;;
12082 esac
12083 else
12084   cat >conftest.$ac_ext <<_ACEOF
12085 /* confdefs.h.  */
12086 _ACEOF
12087 cat confdefs.h >>conftest.$ac_ext
12088 cat >>conftest.$ac_ext <<_ACEOF
12089 /* end confdefs.h.  */
12090
12091 #define _XOPEN_SOURCE_EXTENDED 1
12092 #include <errno.h>
12093 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
12094 #include <stdio.h>
12095 #include <stdlib.h>
12096
12097 static long int longval () { return EOVERFLOW; }
12098 static unsigned long int ulongval () { return EOVERFLOW; }
12099 #include <stdio.h>
12100 #include <stdlib.h>
12101 int
12102 main ()
12103 {
12104
12105   FILE *f = fopen ("conftest.val", "w");
12106   if (! f)
12107     return 1;
12108   if ((EOVERFLOW) < 0)
12109     {
12110       long int i = longval ();
12111       if (i != (EOVERFLOW))
12112         return 1;
12113       fprintf (f, "%ld\n", i);
12114     }
12115   else
12116     {
12117       unsigned long int i = ulongval ();
12118       if (i != (EOVERFLOW))
12119         return 1;
12120       fprintf (f, "%lu\n", i);
12121     }
12122   return ferror (f) || fclose (f) != 0;
12123
12124   ;
12125   return 0;
12126 }
12127 _ACEOF
12128 rm -f conftest$ac_exeext
12129 if { (ac_try="$ac_link"
12130 case "(($ac_try" in
12131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12132   *) ac_try_echo=$ac_try;;
12133 esac
12134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12135   (eval "$ac_link") 2>&5
12136   ac_status=$?
12137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12138   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12139   { (case "(($ac_try" in
12140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12141   *) ac_try_echo=$ac_try;;
12142 esac
12143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12144   (eval "$ac_try") 2>&5
12145   ac_status=$?
12146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12147   (exit $ac_status); }; }; then
12148   gl_cv_header_errno_h_EOVERFLOW=`cat conftest.val`
12149 else
12150   echo "$as_me: program exited with status $ac_status" >&5
12151 echo "$as_me: failed program was:" >&5
12152 sed 's/^/| /' conftest.$ac_ext >&5
12153
12154 fi
12155 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12156 fi
12157 rm -f conftest.val
12158         fi
12159       fi
12160
12161 fi
12162 { echo "$as_me:$LINENO: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
12163 echo "${ECHO_T}$gl_cv_header_errno_h_EOVERFLOW" >&6; }
12164     case $gl_cv_header_errno_h_EOVERFLOW in
12165       yes | no)
12166         EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE=
12167         ;;
12168       *)
12169         EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW"
12170         ;;
12171     esac
12172
12173
12174   fi
12175
12176
12177
12178 { echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
12179 echo $ECHO_N "checking whether strerror_r is declared... $ECHO_C" >&6; }
12180 if test "${ac_cv_have_decl_strerror_r+set}" = set; then
12181   echo $ECHO_N "(cached) $ECHO_C" >&6
12182 else
12183   cat >conftest.$ac_ext <<_ACEOF
12184 /* confdefs.h.  */
12185 _ACEOF
12186 cat confdefs.h >>conftest.$ac_ext
12187 cat >>conftest.$ac_ext <<_ACEOF
12188 /* end confdefs.h.  */
12189 $ac_includes_default
12190 int
12191 main ()
12192 {
12193 #ifndef strerror_r
12194   (void) strerror_r;
12195 #endif
12196
12197   ;
12198   return 0;
12199 }
12200 _ACEOF
12201 rm -f conftest.$ac_objext
12202 if { (ac_try="$ac_compile"
12203 case "(($ac_try" in
12204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12205   *) ac_try_echo=$ac_try;;
12206 esac
12207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12208   (eval "$ac_compile") 2>conftest.er1
12209   ac_status=$?
12210   grep -v '^ *+' conftest.er1 >conftest.err
12211   rm -f conftest.er1
12212   cat conftest.err >&5
12213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12214   (exit $ac_status); } && {
12215          test -z "$ac_c_werror_flag" ||
12216          test ! -s conftest.err
12217        } && test -s conftest.$ac_objext; then
12218   ac_cv_have_decl_strerror_r=yes
12219 else
12220   echo "$as_me: failed program was:" >&5
12221 sed 's/^/| /' conftest.$ac_ext >&5
12222
12223         ac_cv_have_decl_strerror_r=no
12224 fi
12225
12226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12227 fi
12228 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5
12229 echo "${ECHO_T}$ac_cv_have_decl_strerror_r" >&6; }
12230 if test $ac_cv_have_decl_strerror_r = yes; then
12231
12232 cat >>confdefs.h <<_ACEOF
12233 #define HAVE_DECL_STRERROR_R 1
12234 _ACEOF
12235
12236
12237 else
12238   cat >>confdefs.h <<_ACEOF
12239 #define HAVE_DECL_STRERROR_R 0
12240 _ACEOF
12241
12242
12243 fi
12244
12245
12246
12247 for ac_func in strerror_r
12248 do
12249 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12250 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12251 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12252 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12253   echo $ECHO_N "(cached) $ECHO_C" >&6
12254 else
12255   cat >conftest.$ac_ext <<_ACEOF
12256 /* confdefs.h.  */
12257 _ACEOF
12258 cat confdefs.h >>conftest.$ac_ext
12259 cat >>conftest.$ac_ext <<_ACEOF
12260 /* end confdefs.h.  */
12261 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12262    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12263 #define $ac_func innocuous_$ac_func
12264
12265 /* System header to define __stub macros and hopefully few prototypes,
12266     which can conflict with char $ac_func (); below.
12267     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12268     <limits.h> exists even on freestanding compilers.  */
12269
12270 #ifdef __STDC__
12271 # include <limits.h>
12272 #else
12273 # include <assert.h>
12274 #endif
12275
12276 #undef $ac_func
12277
12278 /* Override any GCC internal prototype to avoid an error.
12279    Use char because int might match the return type of a GCC
12280    builtin and then its argument prototype would still apply.  */
12281 #ifdef __cplusplus
12282 extern "C"
12283 #endif
12284 char $ac_func ();
12285 /* The GNU C library defines this for functions which it implements
12286     to always fail with ENOSYS.  Some functions are actually named
12287     something starting with __ and the normal name is an alias.  */
12288 #if defined __stub_$ac_func || defined __stub___$ac_func
12289 choke me
12290 #endif
12291
12292 int
12293 main ()
12294 {
12295 return $ac_func ();
12296   ;
12297   return 0;
12298 }
12299 _ACEOF
12300 rm -f conftest.$ac_objext conftest$ac_exeext
12301 if { (ac_try="$ac_link"
12302 case "(($ac_try" in
12303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12304   *) ac_try_echo=$ac_try;;
12305 esac
12306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12307   (eval "$ac_link") 2>conftest.er1
12308   ac_status=$?
12309   grep -v '^ *+' conftest.er1 >conftest.err
12310   rm -f conftest.er1
12311   cat conftest.err >&5
12312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12313   (exit $ac_status); } && {
12314          test -z "$ac_c_werror_flag" ||
12315          test ! -s conftest.err
12316        } && test -s conftest$ac_exeext &&
12317        $as_test_x conftest$ac_exeext; then
12318   eval "$as_ac_var=yes"
12319 else
12320   echo "$as_me: failed program was:" >&5
12321 sed 's/^/| /' conftest.$ac_ext >&5
12322
12323         eval "$as_ac_var=no"
12324 fi
12325
12326 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12327       conftest$ac_exeext conftest.$ac_ext
12328 fi
12329 ac_res=`eval echo '${'$as_ac_var'}'`
12330                { echo "$as_me:$LINENO: result: $ac_res" >&5
12331 echo "${ECHO_T}$ac_res" >&6; }
12332 if test `eval echo '${'$as_ac_var'}'` = yes; then
12333   cat >>confdefs.h <<_ACEOF
12334 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12335 _ACEOF
12336
12337 fi
12338 done
12339
12340 { echo "$as_me:$LINENO: checking whether strerror_r returns char *" >&5
12341 echo $ECHO_N "checking whether strerror_r returns char *... $ECHO_C" >&6; }
12342 if test "${ac_cv_func_strerror_r_char_p+set}" = set; then
12343   echo $ECHO_N "(cached) $ECHO_C" >&6
12344 else
12345
12346     ac_cv_func_strerror_r_char_p=no
12347     if test $ac_cv_have_decl_strerror_r = yes; then
12348       cat >conftest.$ac_ext <<_ACEOF
12349 /* confdefs.h.  */
12350 _ACEOF
12351 cat confdefs.h >>conftest.$ac_ext
12352 cat >>conftest.$ac_ext <<_ACEOF
12353 /* end confdefs.h.  */
12354 $ac_includes_default
12355 int
12356 main ()
12357 {
12358
12359           char buf[100];
12360           char x = *strerror_r (0, buf, sizeof buf);
12361           char *p = strerror_r (0, buf, sizeof buf);
12362           return !p || x;
12363
12364   ;
12365   return 0;
12366 }
12367 _ACEOF
12368 rm -f conftest.$ac_objext
12369 if { (ac_try="$ac_compile"
12370 case "(($ac_try" in
12371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12372   *) ac_try_echo=$ac_try;;
12373 esac
12374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12375   (eval "$ac_compile") 2>conftest.er1
12376   ac_status=$?
12377   grep -v '^ *+' conftest.er1 >conftest.err
12378   rm -f conftest.er1
12379   cat conftest.err >&5
12380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12381   (exit $ac_status); } && {
12382          test -z "$ac_c_werror_flag" ||
12383          test ! -s conftest.err
12384        } && test -s conftest.$ac_objext; then
12385   ac_cv_func_strerror_r_char_p=yes
12386 else
12387   echo "$as_me: failed program was:" >&5
12388 sed 's/^/| /' conftest.$ac_ext >&5
12389
12390
12391 fi
12392
12393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12394     else
12395       # strerror_r is not declared.  Choose between
12396       # systems that have relatively inaccessible declarations for the
12397       # function.  BeOS and DEC UNIX 4.0 fall in this category, but the
12398       # former has a strerror_r that returns char*, while the latter
12399       # has a strerror_r that returns `int'.
12400       # This test should segfault on the DEC system.
12401       if test "$cross_compiling" = yes; then
12402   :
12403 else
12404   cat >conftest.$ac_ext <<_ACEOF
12405 /* confdefs.h.  */
12406 _ACEOF
12407 cat confdefs.h >>conftest.$ac_ext
12408 cat >>conftest.$ac_ext <<_ACEOF
12409 /* end confdefs.h.  */
12410 $ac_includes_default
12411         extern char *strerror_r ();
12412 int
12413 main ()
12414 {
12415 char buf[100];
12416           char x = *strerror_r (0, buf, sizeof buf);
12417           return ! isalpha (x);
12418   ;
12419   return 0;
12420 }
12421 _ACEOF
12422 rm -f conftest$ac_exeext
12423 if { (ac_try="$ac_link"
12424 case "(($ac_try" in
12425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12426   *) ac_try_echo=$ac_try;;
12427 esac
12428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12429   (eval "$ac_link") 2>&5
12430   ac_status=$?
12431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12432   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12433   { (case "(($ac_try" in
12434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12435   *) ac_try_echo=$ac_try;;
12436 esac
12437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12438   (eval "$ac_try") 2>&5
12439   ac_status=$?
12440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12441   (exit $ac_status); }; }; then
12442   ac_cv_func_strerror_r_char_p=yes
12443 else
12444   echo "$as_me: program exited with status $ac_status" >&5
12445 echo "$as_me: failed program was:" >&5
12446 sed 's/^/| /' conftest.$ac_ext >&5
12447
12448 fi
12449 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12450 fi
12451
12452
12453     fi
12454
12455 fi
12456 { echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_char_p" >&5
12457 echo "${ECHO_T}$ac_cv_func_strerror_r_char_p" >&6; }
12458 if test $ac_cv_func_strerror_r_char_p = yes; then
12459
12460 cat >>confdefs.h <<\_ACEOF
12461 #define STRERROR_R_CHAR_P 1
12462 _ACEOF
12463
12464 fi
12465
12466
12467
12468
12469   GNULIB_OPEN=0;
12470     REPLACE_OPEN=0;
12471
12472
12473   GNULIB_FPRINTF=0;
12474   GNULIB_FPRINTF_POSIX=0;
12475   GNULIB_PRINTF=0;
12476   GNULIB_PRINTF_POSIX=0;
12477   GNULIB_SNPRINTF=0;
12478   GNULIB_SPRINTF_POSIX=0;
12479   GNULIB_VFPRINTF=0;
12480   GNULIB_VFPRINTF_POSIX=0;
12481   GNULIB_VPRINTF=0;
12482   GNULIB_VPRINTF_POSIX=0;
12483   GNULIB_VSNPRINTF=0;
12484   GNULIB_VSPRINTF_POSIX=0;
12485   GNULIB_DPRINTF=0;
12486   GNULIB_VDPRINTF=0;
12487   GNULIB_VASPRINTF=0;
12488   GNULIB_OBSTACK_PRINTF=0;
12489   GNULIB_OBSTACK_PRINTF_POSIX=0;
12490   GNULIB_FOPEN=0;
12491   GNULIB_FREOPEN=0;
12492   GNULIB_FSEEK=0;
12493   GNULIB_FSEEKO=0;
12494   GNULIB_FTELL=0;
12495   GNULIB_FTELLO=0;
12496   GNULIB_FFLUSH=0;
12497   GNULIB_FCLOSE=0;
12498   GNULIB_FPUTC=0;
12499   GNULIB_PUTC=0;
12500   GNULIB_PUTCHAR=0;
12501   GNULIB_FPUTS=0;
12502   GNULIB_PUTS=0;
12503   GNULIB_FWRITE=0;
12504   GNULIB_GETDELIM=0;
12505   GNULIB_GETLINE=0;
12506   GNULIB_PERROR=0;
12507   GNULIB_STDIO_H_SIGPIPE=0;
12508     REPLACE_STDIO_WRITE_FUNCS=0;
12509   REPLACE_FPRINTF=0;
12510   REPLACE_VFPRINTF=0;
12511   REPLACE_PRINTF=0;
12512   REPLACE_VPRINTF=0;
12513   REPLACE_SNPRINTF=0;
12514   HAVE_DECL_SNPRINTF=1;
12515   REPLACE_VSNPRINTF=0;
12516   HAVE_DECL_VSNPRINTF=1;
12517   REPLACE_SPRINTF=0;
12518   REPLACE_VSPRINTF=0;
12519   HAVE_DPRINTF=1;
12520   REPLACE_DPRINTF=0;
12521   HAVE_VDPRINTF=1;
12522   REPLACE_VDPRINTF=0;
12523   HAVE_VASPRINTF=1;
12524   REPLACE_VASPRINTF=0;
12525   HAVE_DECL_OBSTACK_PRINTF=1;
12526   REPLACE_OBSTACK_PRINTF=0;
12527   REPLACE_FOPEN=0;
12528   REPLACE_FREOPEN=0;
12529   HAVE_FSEEKO=1;
12530   REPLACE_FSEEKO=0;
12531   REPLACE_FSEEK=0;
12532   HAVE_FTELLO=1;
12533   REPLACE_FTELLO=0;
12534   REPLACE_FTELL=0;
12535   REPLACE_FFLUSH=0;
12536   REPLACE_FCLOSE=0;
12537   HAVE_DECL_GETDELIM=1;
12538   HAVE_DECL_GETLINE=1;
12539   REPLACE_GETLINE=0;
12540   REPLACE_PERROR=0;
12541
12542
12543
12544
12545
12546    { echo "$as_me:$LINENO: checking for mbstate_t" >&5
12547 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
12548 if test "${ac_cv_type_mbstate_t+set}" = set; then
12549   echo $ECHO_N "(cached) $ECHO_C" >&6
12550 else
12551   cat >conftest.$ac_ext <<_ACEOF
12552 /* confdefs.h.  */
12553 _ACEOF
12554 cat confdefs.h >>conftest.$ac_ext
12555 cat >>conftest.$ac_ext <<_ACEOF
12556 /* end confdefs.h.  */
12557 $ac_includes_default
12558 #           include <wchar.h>
12559 int
12560 main ()
12561 {
12562 mbstate_t x; return sizeof x;
12563   ;
12564   return 0;
12565 }
12566 _ACEOF
12567 rm -f conftest.$ac_objext
12568 if { (ac_try="$ac_compile"
12569 case "(($ac_try" in
12570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12571   *) ac_try_echo=$ac_try;;
12572 esac
12573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12574   (eval "$ac_compile") 2>conftest.er1
12575   ac_status=$?
12576   grep -v '^ *+' conftest.er1 >conftest.err
12577   rm -f conftest.er1
12578   cat conftest.err >&5
12579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12580   (exit $ac_status); } && {
12581          test -z "$ac_c_werror_flag" ||
12582          test ! -s conftest.err
12583        } && test -s conftest.$ac_objext; then
12584   ac_cv_type_mbstate_t=yes
12585 else
12586   echo "$as_me: failed program was:" >&5
12587 sed 's/^/| /' conftest.$ac_ext >&5
12588
12589         ac_cv_type_mbstate_t=no
12590 fi
12591
12592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12593 fi
12594 { echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
12595 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
12596    if test $ac_cv_type_mbstate_t = yes; then
12597
12598 cat >>confdefs.h <<\_ACEOF
12599 #define HAVE_MBSTATE_T 1
12600 _ACEOF
12601
12602    else
12603
12604 cat >>confdefs.h <<\_ACEOF
12605 #define mbstate_t int
12606 _ACEOF
12607
12608    fi
12609
12610
12611
12612
12613
12614
12615
12616
12617
12618
12619
12620
12621
12622
12623
12624
12625
12626
12627
12628
12629
12630
12631     { echo "$as_me:$LINENO: checking whether stdin defaults to large file offsets" >&5
12632 echo $ECHO_N "checking whether stdin defaults to large file offsets... $ECHO_C" >&6; }
12633 if test "${gl_cv_var_stdin_large_offset+set}" = set; then
12634   echo $ECHO_N "(cached) $ECHO_C" >&6
12635 else
12636   cat >conftest.$ac_ext <<_ACEOF
12637 /* confdefs.h.  */
12638 _ACEOF
12639 cat confdefs.h >>conftest.$ac_ext
12640 cat >>conftest.$ac_ext <<_ACEOF
12641 /* end confdefs.h.  */
12642 #include <stdio.h>
12643 int
12644 main ()
12645 {
12646 #if defined __SL64 && defined __SCLE /* cygwin */
12647   /* Cygwin 1.5.24 and earlier fail to put stdin in 64-bit mode, making
12648      fseeko/ftello needlessly fail.  This bug was fixed in 1.5.25, and
12649      it is easier to do a version check than building a runtime test.  */
12650 # include <cygwin/version.h>
12651 # if CYGWIN_VERSION_DLL_COMBINED < CYGWIN_VERSION_DLL_MAKE_COMBINED (1005, 25)
12652   choke me
12653 # endif
12654 #endif
12655   ;
12656   return 0;
12657 }
12658 _ACEOF
12659 rm -f conftest.$ac_objext conftest$ac_exeext
12660 if { (ac_try="$ac_link"
12661 case "(($ac_try" in
12662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12663   *) ac_try_echo=$ac_try;;
12664 esac
12665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12666   (eval "$ac_link") 2>conftest.er1
12667   ac_status=$?
12668   grep -v '^ *+' conftest.er1 >conftest.err
12669   rm -f conftest.er1
12670   cat conftest.err >&5
12671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12672   (exit $ac_status); } && {
12673          test -z "$ac_c_werror_flag" ||
12674          test ! -s conftest.err
12675        } && test -s conftest$ac_exeext &&
12676        $as_test_x conftest$ac_exeext; then
12677   gl_cv_var_stdin_large_offset=yes
12678 else
12679   echo "$as_me: failed program was:" >&5
12680 sed 's/^/| /' conftest.$ac_ext >&5
12681
12682         gl_cv_var_stdin_large_offset=no
12683 fi
12684
12685 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12686       conftest$ac_exeext conftest.$ac_ext
12687 fi
12688 { echo "$as_me:$LINENO: result: $gl_cv_var_stdin_large_offset" >&5
12689 echo "${ECHO_T}$gl_cv_var_stdin_large_offset" >&6; }
12690
12691
12692
12693
12694    { echo "$as_me:$LINENO: checking whether getcwd (NULL, 0) allocates memory for result" >&5
12695 echo $ECHO_N "checking whether getcwd (NULL, 0) allocates memory for result... $ECHO_C" >&6; }
12696 if test "${gl_cv_func_getcwd_null+set}" = set; then
12697   echo $ECHO_N "(cached) $ECHO_C" >&6
12698 else
12699   if test "$cross_compiling" = yes; then
12700   gl_cv_func_getcwd_null=no
12701 else
12702   cat >conftest.$ac_ext <<_ACEOF
12703 /* confdefs.h.  */
12704 _ACEOF
12705 cat confdefs.h >>conftest.$ac_ext
12706 cat >>conftest.$ac_ext <<_ACEOF
12707 /* end confdefs.h.  */
12708
12709 #        include <stdlib.h>
12710 #        include <unistd.h>
12711 #        ifndef getcwd
12712          char *getcwd ();
12713 #        endif
12714          int
12715          main ()
12716          {
12717            if (chdir ("/") != 0)
12718              exit (1);
12719            else
12720              {
12721                char *f = getcwd (NULL, 0);
12722                exit (! (f && f[0] == '/' && !f[1]));
12723              }
12724          }
12725 _ACEOF
12726 rm -f conftest$ac_exeext
12727 if { (ac_try="$ac_link"
12728 case "(($ac_try" in
12729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12730   *) ac_try_echo=$ac_try;;
12731 esac
12732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12733   (eval "$ac_link") 2>&5
12734   ac_status=$?
12735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12736   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12737   { (case "(($ac_try" in
12738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12739   *) ac_try_echo=$ac_try;;
12740 esac
12741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12742   (eval "$ac_try") 2>&5
12743   ac_status=$?
12744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12745   (exit $ac_status); }; }; then
12746   gl_cv_func_getcwd_null=yes
12747 else
12748   echo "$as_me: program exited with status $ac_status" >&5
12749 echo "$as_me: failed program was:" >&5
12750 sed 's/^/| /' conftest.$ac_ext >&5
12751
12752 ( exit $ac_status )
12753 gl_cv_func_getcwd_null=no
12754 fi
12755 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12756 fi
12757
12758
12759 fi
12760 { echo "$as_me:$LINENO: result: $gl_cv_func_getcwd_null" >&5
12761 echo "${ECHO_T}$gl_cv_func_getcwd_null" >&6; }
12762
12763 { echo "$as_me:$LINENO: checking whether getcwd is declared" >&5
12764 echo $ECHO_N "checking whether getcwd is declared... $ECHO_C" >&6; }
12765 if test "${ac_cv_have_decl_getcwd+set}" = set; then
12766   echo $ECHO_N "(cached) $ECHO_C" >&6
12767 else
12768   cat >conftest.$ac_ext <<_ACEOF
12769 /* confdefs.h.  */
12770 _ACEOF
12771 cat confdefs.h >>conftest.$ac_ext
12772 cat >>conftest.$ac_ext <<_ACEOF
12773 /* end confdefs.h.  */
12774 $ac_includes_default
12775 int
12776 main ()
12777 {
12778 #ifndef getcwd
12779   (void) getcwd;
12780 #endif
12781
12782   ;
12783   return 0;
12784 }
12785 _ACEOF
12786 rm -f conftest.$ac_objext
12787 if { (ac_try="$ac_compile"
12788 case "(($ac_try" in
12789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12790   *) ac_try_echo=$ac_try;;
12791 esac
12792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12793   (eval "$ac_compile") 2>conftest.er1
12794   ac_status=$?
12795   grep -v '^ *+' conftest.er1 >conftest.err
12796   rm -f conftest.er1
12797   cat conftest.err >&5
12798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12799   (exit $ac_status); } && {
12800          test -z "$ac_c_werror_flag" ||
12801          test ! -s conftest.err
12802        } && test -s conftest.$ac_objext; then
12803   ac_cv_have_decl_getcwd=yes
12804 else
12805   echo "$as_me: failed program was:" >&5
12806 sed 's/^/| /' conftest.$ac_ext >&5
12807
12808         ac_cv_have_decl_getcwd=no
12809 fi
12810
12811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12812 fi
12813 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getcwd" >&5
12814 echo "${ECHO_T}$ac_cv_have_decl_getcwd" >&6; }
12815 if test $ac_cv_have_decl_getcwd = yes; then
12816
12817 cat >>confdefs.h <<_ACEOF
12818 #define HAVE_DECL_GETCWD 1
12819 _ACEOF
12820
12821
12822 else
12823   cat >>confdefs.h <<_ACEOF
12824 #define HAVE_DECL_GETCWD 0
12825 _ACEOF
12826
12827
12828 fi
12829
12830
12831
12832
12833
12834
12835   # getdate.y works with bison only.
12836   : ${YACC='bison -y'}
12837
12838
12839   { echo "$as_me:$LINENO: checking for compound literals" >&5
12840 echo $ECHO_N "checking for compound literals... $ECHO_C" >&6; }
12841 if test "${gl_cv_compound_literals+set}" = set; then
12842   echo $ECHO_N "(cached) $ECHO_C" >&6
12843 else
12844   cat >conftest.$ac_ext <<_ACEOF
12845 /* confdefs.h.  */
12846 _ACEOF
12847 cat confdefs.h >>conftest.$ac_ext
12848 cat >>conftest.$ac_ext <<_ACEOF
12849 /* end confdefs.h.  */
12850 struct s { int i, j; };
12851 int
12852 main ()
12853 {
12854 struct s t = (struct s) { 3, 4 };
12855      if (t.i != 0) return 0;
12856   ;
12857   return 0;
12858 }
12859 _ACEOF
12860 rm -f conftest.$ac_objext
12861 if { (ac_try="$ac_compile"
12862 case "(($ac_try" in
12863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12864   *) ac_try_echo=$ac_try;;
12865 esac
12866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12867   (eval "$ac_compile") 2>conftest.er1
12868   ac_status=$?
12869   grep -v '^ *+' conftest.er1 >conftest.err
12870   rm -f conftest.er1
12871   cat conftest.err >&5
12872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12873   (exit $ac_status); } && {
12874          test -z "$ac_c_werror_flag" ||
12875          test ! -s conftest.err
12876        } && test -s conftest.$ac_objext; then
12877   gl_cv_compound_literals=yes
12878 else
12879   echo "$as_me: failed program was:" >&5
12880 sed 's/^/| /' conftest.$ac_ext >&5
12881
12882         gl_cv_compound_literals=no
12883 fi
12884
12885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12886 fi
12887 { echo "$as_me:$LINENO: result: $gl_cv_compound_literals" >&5
12888 echo "${ECHO_T}$gl_cv_compound_literals" >&6; }
12889   if test $gl_cv_compound_literals = yes; then
12890
12891 cat >>confdefs.h <<\_ACEOF
12892 #define HAVE_COMPOUND_LITERALS 1
12893 _ACEOF
12894
12895   fi
12896
12897 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
12898 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
12899 if test "${ac_cv_struct_tm+set}" = set; then
12900   echo $ECHO_N "(cached) $ECHO_C" >&6
12901 else
12902   cat >conftest.$ac_ext <<_ACEOF
12903 /* confdefs.h.  */
12904 _ACEOF
12905 cat confdefs.h >>conftest.$ac_ext
12906 cat >>conftest.$ac_ext <<_ACEOF
12907 /* end confdefs.h.  */
12908 #include <sys/types.h>
12909 #include <time.h>
12910
12911 int
12912 main ()
12913 {
12914 struct tm tm;
12915                                      int *p = &tm.tm_sec;
12916                                      return !p;
12917   ;
12918   return 0;
12919 }
12920 _ACEOF
12921 rm -f conftest.$ac_objext
12922 if { (ac_try="$ac_compile"
12923 case "(($ac_try" in
12924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12925   *) ac_try_echo=$ac_try;;
12926 esac
12927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12928   (eval "$ac_compile") 2>conftest.er1
12929   ac_status=$?
12930   grep -v '^ *+' conftest.er1 >conftest.err
12931   rm -f conftest.er1
12932   cat conftest.err >&5
12933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12934   (exit $ac_status); } && {
12935          test -z "$ac_c_werror_flag" ||
12936          test ! -s conftest.err
12937        } && test -s conftest.$ac_objext; then
12938   ac_cv_struct_tm=time.h
12939 else
12940   echo "$as_me: failed program was:" >&5
12941 sed 's/^/| /' conftest.$ac_ext >&5
12942
12943         ac_cv_struct_tm=sys/time.h
12944 fi
12945
12946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12947 fi
12948 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
12949 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
12950 if test $ac_cv_struct_tm = sys/time.h; then
12951
12952 cat >>confdefs.h <<\_ACEOF
12953 #define TM_IN_SYS_TIME 1
12954 _ACEOF
12955
12956 fi
12957
12958
12959  { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
12960 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
12961 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
12962   echo $ECHO_N "(cached) $ECHO_C" >&6
12963 else
12964   cat >conftest.$ac_ext <<_ACEOF
12965 /* confdefs.h.  */
12966 _ACEOF
12967 cat confdefs.h >>conftest.$ac_ext
12968 cat >>conftest.$ac_ext <<_ACEOF
12969 /* end confdefs.h.  */
12970 #include <time.h>
12971
12972 int
12973 main ()
12974 {
12975 static struct tm ac_aggr;
12976 if (ac_aggr.tm_gmtoff)
12977 return 0;
12978   ;
12979   return 0;
12980 }
12981 _ACEOF
12982 rm -f conftest.$ac_objext
12983 if { (ac_try="$ac_compile"
12984 case "(($ac_try" in
12985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12986   *) ac_try_echo=$ac_try;;
12987 esac
12988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12989   (eval "$ac_compile") 2>conftest.er1
12990   ac_status=$?
12991   grep -v '^ *+' conftest.er1 >conftest.err
12992   rm -f conftest.er1
12993   cat conftest.err >&5
12994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12995   (exit $ac_status); } && {
12996          test -z "$ac_c_werror_flag" ||
12997          test ! -s conftest.err
12998        } && test -s conftest.$ac_objext; then
12999   ac_cv_member_struct_tm_tm_gmtoff=yes
13000 else
13001   echo "$as_me: failed program was:" >&5
13002 sed 's/^/| /' conftest.$ac_ext >&5
13003
13004         cat >conftest.$ac_ext <<_ACEOF
13005 /* confdefs.h.  */
13006 _ACEOF
13007 cat confdefs.h >>conftest.$ac_ext
13008 cat >>conftest.$ac_ext <<_ACEOF
13009 /* end confdefs.h.  */
13010 #include <time.h>
13011
13012 int
13013 main ()
13014 {
13015 static struct tm ac_aggr;
13016 if (sizeof ac_aggr.tm_gmtoff)
13017 return 0;
13018   ;
13019   return 0;
13020 }
13021 _ACEOF
13022 rm -f conftest.$ac_objext
13023 if { (ac_try="$ac_compile"
13024 case "(($ac_try" in
13025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13026   *) ac_try_echo=$ac_try;;
13027 esac
13028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13029   (eval "$ac_compile") 2>conftest.er1
13030   ac_status=$?
13031   grep -v '^ *+' conftest.er1 >conftest.err
13032   rm -f conftest.er1
13033   cat conftest.err >&5
13034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13035   (exit $ac_status); } && {
13036          test -z "$ac_c_werror_flag" ||
13037          test ! -s conftest.err
13038        } && test -s conftest.$ac_objext; then
13039   ac_cv_member_struct_tm_tm_gmtoff=yes
13040 else
13041   echo "$as_me: failed program was:" >&5
13042 sed 's/^/| /' conftest.$ac_ext >&5
13043
13044         ac_cv_member_struct_tm_tm_gmtoff=no
13045 fi
13046
13047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13048 fi
13049
13050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13051 fi
13052 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
13053 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
13054 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
13055
13056 cat >>confdefs.h <<\_ACEOF
13057 #define HAVE_TM_GMTOFF 1
13058 _ACEOF
13059
13060 fi
13061
13062
13063 { echo "$as_me:$LINENO: checking whether getdelim is declared" >&5
13064 echo $ECHO_N "checking whether getdelim is declared... $ECHO_C" >&6; }
13065 if test "${ac_cv_have_decl_getdelim+set}" = set; then
13066   echo $ECHO_N "(cached) $ECHO_C" >&6
13067 else
13068   cat >conftest.$ac_ext <<_ACEOF
13069 /* confdefs.h.  */
13070 _ACEOF
13071 cat confdefs.h >>conftest.$ac_ext
13072 cat >>conftest.$ac_ext <<_ACEOF
13073 /* end confdefs.h.  */
13074 $ac_includes_default
13075 int
13076 main ()
13077 {
13078 #ifndef getdelim
13079   (void) getdelim;
13080 #endif
13081
13082   ;
13083   return 0;
13084 }
13085 _ACEOF
13086 rm -f conftest.$ac_objext
13087 if { (ac_try="$ac_compile"
13088 case "(($ac_try" in
13089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13090   *) ac_try_echo=$ac_try;;
13091 esac
13092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13093   (eval "$ac_compile") 2>conftest.er1
13094   ac_status=$?
13095   grep -v '^ *+' conftest.er1 >conftest.err
13096   rm -f conftest.er1
13097   cat conftest.err >&5
13098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13099   (exit $ac_status); } && {
13100          test -z "$ac_c_werror_flag" ||
13101          test ! -s conftest.err
13102        } && test -s conftest.$ac_objext; then
13103   ac_cv_have_decl_getdelim=yes
13104 else
13105   echo "$as_me: failed program was:" >&5
13106 sed 's/^/| /' conftest.$ac_ext >&5
13107
13108         ac_cv_have_decl_getdelim=no
13109 fi
13110
13111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13112 fi
13113 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getdelim" >&5
13114 echo "${ECHO_T}$ac_cv_have_decl_getdelim" >&6; }
13115 if test $ac_cv_have_decl_getdelim = yes; then
13116
13117 cat >>confdefs.h <<_ACEOF
13118 #define HAVE_DECL_GETDELIM 1
13119 _ACEOF
13120
13121
13122 else
13123   cat >>confdefs.h <<_ACEOF
13124 #define HAVE_DECL_GETDELIM 0
13125 _ACEOF
13126
13127
13128 fi
13129
13130
13131 { echo "$as_me:$LINENO: checking whether getline is declared" >&5
13132 echo $ECHO_N "checking whether getline is declared... $ECHO_C" >&6; }
13133 if test "${ac_cv_have_decl_getline+set}" = set; then
13134   echo $ECHO_N "(cached) $ECHO_C" >&6
13135 else
13136   cat >conftest.$ac_ext <<_ACEOF
13137 /* confdefs.h.  */
13138 _ACEOF
13139 cat confdefs.h >>conftest.$ac_ext
13140 cat >>conftest.$ac_ext <<_ACEOF
13141 /* end confdefs.h.  */
13142 $ac_includes_default
13143 int
13144 main ()
13145 {
13146 #ifndef getline
13147   (void) getline;
13148 #endif
13149
13150   ;
13151   return 0;
13152 }
13153 _ACEOF
13154 rm -f conftest.$ac_objext
13155 if { (ac_try="$ac_compile"
13156 case "(($ac_try" in
13157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13158   *) ac_try_echo=$ac_try;;
13159 esac
13160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13161   (eval "$ac_compile") 2>conftest.er1
13162   ac_status=$?
13163   grep -v '^ *+' conftest.er1 >conftest.err
13164   rm -f conftest.er1
13165   cat conftest.err >&5
13166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13167   (exit $ac_status); } && {
13168          test -z "$ac_c_werror_flag" ||
13169          test ! -s conftest.err
13170        } && test -s conftest.$ac_objext; then
13171   ac_cv_have_decl_getline=yes
13172 else
13173   echo "$as_me: failed program was:" >&5
13174 sed 's/^/| /' conftest.$ac_ext >&5
13175
13176         ac_cv_have_decl_getline=no
13177 fi
13178
13179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13180 fi
13181 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getline" >&5
13182 echo "${ECHO_T}$ac_cv_have_decl_getline" >&6; }
13183 if test $ac_cv_have_decl_getline = yes; then
13184
13185 cat >>confdefs.h <<_ACEOF
13186 #define HAVE_DECL_GETLINE 1
13187 _ACEOF
13188
13189
13190 else
13191   cat >>confdefs.h <<_ACEOF
13192 #define HAVE_DECL_GETLINE 0
13193 _ACEOF
13194
13195
13196 fi
13197
13198
13199
13200   if test -z "$GETOPT_H"; then
13201
13202 for ac_header in getopt.h
13203 do
13204 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13205 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13206   { echo "$as_me:$LINENO: checking for $ac_header" >&5
13207 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13208 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13209   echo $ECHO_N "(cached) $ECHO_C" >&6
13210 fi
13211 ac_res=`eval echo '${'$as_ac_Header'}'`
13212                { echo "$as_me:$LINENO: result: $ac_res" >&5
13213 echo "${ECHO_T}$ac_res" >&6; }
13214 else
13215   # Is the header compilable?
13216 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13217 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13218 cat >conftest.$ac_ext <<_ACEOF
13219 /* confdefs.h.  */
13220 _ACEOF
13221 cat confdefs.h >>conftest.$ac_ext
13222 cat >>conftest.$ac_ext <<_ACEOF
13223 /* end confdefs.h.  */
13224 $ac_includes_default
13225 #include <$ac_header>
13226 _ACEOF
13227 rm -f conftest.$ac_objext
13228 if { (ac_try="$ac_compile"
13229 case "(($ac_try" in
13230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13231   *) ac_try_echo=$ac_try;;
13232 esac
13233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13234   (eval "$ac_compile") 2>conftest.er1
13235   ac_status=$?
13236   grep -v '^ *+' conftest.er1 >conftest.err
13237   rm -f conftest.er1
13238   cat conftest.err >&5
13239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13240   (exit $ac_status); } && {
13241          test -z "$ac_c_werror_flag" ||
13242          test ! -s conftest.err
13243        } && test -s conftest.$ac_objext; then
13244   ac_header_compiler=yes
13245 else
13246   echo "$as_me: failed program was:" >&5
13247 sed 's/^/| /' conftest.$ac_ext >&5
13248
13249         ac_header_compiler=no
13250 fi
13251
13252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13253 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13254 echo "${ECHO_T}$ac_header_compiler" >&6; }
13255
13256 # Is the header present?
13257 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13258 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13259 cat >conftest.$ac_ext <<_ACEOF
13260 /* confdefs.h.  */
13261 _ACEOF
13262 cat confdefs.h >>conftest.$ac_ext
13263 cat >>conftest.$ac_ext <<_ACEOF
13264 /* end confdefs.h.  */
13265 #include <$ac_header>
13266 _ACEOF
13267 if { (ac_try="$ac_cpp conftest.$ac_ext"
13268 case "(($ac_try" in
13269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13270   *) ac_try_echo=$ac_try;;
13271 esac
13272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13273   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13274   ac_status=$?
13275   grep -v '^ *+' conftest.er1 >conftest.err
13276   rm -f conftest.er1
13277   cat conftest.err >&5
13278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13279   (exit $ac_status); } >/dev/null && {
13280          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13281          test ! -s conftest.err
13282        }; then
13283   ac_header_preproc=yes
13284 else
13285   echo "$as_me: failed program was:" >&5
13286 sed 's/^/| /' conftest.$ac_ext >&5
13287
13288   ac_header_preproc=no
13289 fi
13290
13291 rm -f conftest.err conftest.$ac_ext
13292 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13293 echo "${ECHO_T}$ac_header_preproc" >&6; }
13294
13295 # So?  What about this header?
13296 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13297   yes:no: )
13298     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13299 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13300     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13301 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13302     ac_header_preproc=yes
13303     ;;
13304   no:yes:* )
13305     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13306 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13307     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13308 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13309     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13310 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13311     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13312 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13313     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13314 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13315     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13316 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13317     ( cat <<\_ASBOX
13318 ## ------------------------------ ##
13319 ## Report this to bug-tar@gnu.org ##
13320 ## ------------------------------ ##
13321 _ASBOX
13322      ) | sed "s/^/$as_me: WARNING:     /" >&2
13323     ;;
13324 esac
13325 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13326 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13327 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13328   echo $ECHO_N "(cached) $ECHO_C" >&6
13329 else
13330   eval "$as_ac_Header=\$ac_header_preproc"
13331 fi
13332 ac_res=`eval echo '${'$as_ac_Header'}'`
13333                { echo "$as_me:$LINENO: result: $ac_res" >&5
13334 echo "${ECHO_T}$ac_res" >&6; }
13335
13336 fi
13337 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13338   cat >>confdefs.h <<_ACEOF
13339 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13340 _ACEOF
13341
13342 else
13343   GETOPT_H=getopt.h
13344 fi
13345
13346 done
13347
13348   fi
13349
13350   if test -z "$GETOPT_H"; then
13351
13352 for ac_func in getopt_long_only
13353 do
13354 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13355 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13356 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13357 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13358   echo $ECHO_N "(cached) $ECHO_C" >&6
13359 else
13360   cat >conftest.$ac_ext <<_ACEOF
13361 /* confdefs.h.  */
13362 _ACEOF
13363 cat confdefs.h >>conftest.$ac_ext
13364 cat >>conftest.$ac_ext <<_ACEOF
13365 /* end confdefs.h.  */
13366 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13367    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13368 #define $ac_func innocuous_$ac_func
13369
13370 /* System header to define __stub macros and hopefully few prototypes,
13371     which can conflict with char $ac_func (); below.
13372     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13373     <limits.h> exists even on freestanding compilers.  */
13374
13375 #ifdef __STDC__
13376 # include <limits.h>
13377 #else
13378 # include <assert.h>
13379 #endif
13380
13381 #undef $ac_func
13382
13383 /* Override any GCC internal prototype to avoid an error.
13384    Use char because int might match the return type of a GCC
13385    builtin and then its argument prototype would still apply.  */
13386 #ifdef __cplusplus
13387 extern "C"
13388 #endif
13389 char $ac_func ();
13390 /* The GNU C library defines this for functions which it implements
13391     to always fail with ENOSYS.  Some functions are actually named
13392     something starting with __ and the normal name is an alias.  */
13393 #if defined __stub_$ac_func || defined __stub___$ac_func
13394 choke me
13395 #endif
13396
13397 int
13398 main ()
13399 {
13400 return $ac_func ();
13401   ;
13402   return 0;
13403 }
13404 _ACEOF
13405 rm -f conftest.$ac_objext conftest$ac_exeext
13406 if { (ac_try="$ac_link"
13407 case "(($ac_try" in
13408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13409   *) ac_try_echo=$ac_try;;
13410 esac
13411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13412   (eval "$ac_link") 2>conftest.er1
13413   ac_status=$?
13414   grep -v '^ *+' conftest.er1 >conftest.err
13415   rm -f conftest.er1
13416   cat conftest.err >&5
13417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13418   (exit $ac_status); } && {
13419          test -z "$ac_c_werror_flag" ||
13420          test ! -s conftest.err
13421        } && test -s conftest$ac_exeext &&
13422        $as_test_x conftest$ac_exeext; then
13423   eval "$as_ac_var=yes"
13424 else
13425   echo "$as_me: failed program was:" >&5
13426 sed 's/^/| /' conftest.$ac_ext >&5
13427
13428         eval "$as_ac_var=no"
13429 fi
13430
13431 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13432       conftest$ac_exeext conftest.$ac_ext
13433 fi
13434 ac_res=`eval echo '${'$as_ac_var'}'`
13435                { echo "$as_me:$LINENO: result: $ac_res" >&5
13436 echo "${ECHO_T}$ac_res" >&6; }
13437 if test `eval echo '${'$as_ac_var'}'` = yes; then
13438   cat >>confdefs.h <<_ACEOF
13439 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13440 _ACEOF
13441
13442 else
13443   GETOPT_H=getopt.h
13444 fi
13445 done
13446
13447   fi
13448
13449       if test -z "$GETOPT_H"; then
13450     { echo "$as_me:$LINENO: checking whether optreset is declared" >&5
13451 echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6; }
13452 if test "${ac_cv_have_decl_optreset+set}" = set; then
13453   echo $ECHO_N "(cached) $ECHO_C" >&6
13454 else
13455   cat >conftest.$ac_ext <<_ACEOF
13456 /* confdefs.h.  */
13457 _ACEOF
13458 cat confdefs.h >>conftest.$ac_ext
13459 cat >>conftest.$ac_ext <<_ACEOF
13460 /* end confdefs.h.  */
13461 #include <getopt.h>
13462
13463 int
13464 main ()
13465 {
13466 #ifndef optreset
13467   (void) optreset;
13468 #endif
13469
13470   ;
13471   return 0;
13472 }
13473 _ACEOF
13474 rm -f conftest.$ac_objext
13475 if { (ac_try="$ac_compile"
13476 case "(($ac_try" in
13477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13478   *) ac_try_echo=$ac_try;;
13479 esac
13480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13481   (eval "$ac_compile") 2>conftest.er1
13482   ac_status=$?
13483   grep -v '^ *+' conftest.er1 >conftest.err
13484   rm -f conftest.er1
13485   cat conftest.err >&5
13486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13487   (exit $ac_status); } && {
13488          test -z "$ac_c_werror_flag" ||
13489          test ! -s conftest.err
13490        } && test -s conftest.$ac_objext; then
13491   ac_cv_have_decl_optreset=yes
13492 else
13493   echo "$as_me: failed program was:" >&5
13494 sed 's/^/| /' conftest.$ac_ext >&5
13495
13496         ac_cv_have_decl_optreset=no
13497 fi
13498
13499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13500 fi
13501 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
13502 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
13503 if test $ac_cv_have_decl_optreset = yes; then
13504   GETOPT_H=getopt.h
13505 fi
13506
13507   fi
13508
13509       if test -z "$GETOPT_H"; then
13510     { echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
13511 echo $ECHO_N "checking for working GNU getopt function... $ECHO_C" >&6; }
13512 if test "${gl_cv_func_gnu_getopt+set}" = set; then
13513   echo $ECHO_N "(cached) $ECHO_C" >&6
13514 else
13515   if test "$cross_compiling" = yes; then
13516                          { echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
13517 echo $ECHO_N "checking whether getopt_clip is declared... $ECHO_C" >&6; }
13518 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
13519   echo $ECHO_N "(cached) $ECHO_C" >&6
13520 else
13521   cat >conftest.$ac_ext <<_ACEOF
13522 /* confdefs.h.  */
13523 _ACEOF
13524 cat confdefs.h >>conftest.$ac_ext
13525 cat >>conftest.$ac_ext <<_ACEOF
13526 /* end confdefs.h.  */
13527 #include <getopt.h>
13528
13529 int
13530 main ()
13531 {
13532 #ifndef getopt_clip
13533   (void) getopt_clip;
13534 #endif
13535
13536   ;
13537   return 0;
13538 }
13539 _ACEOF
13540 rm -f conftest.$ac_objext
13541 if { (ac_try="$ac_compile"
13542 case "(($ac_try" in
13543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13544   *) ac_try_echo=$ac_try;;
13545 esac
13546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13547   (eval "$ac_compile") 2>conftest.er1
13548   ac_status=$?
13549   grep -v '^ *+' conftest.er1 >conftest.err
13550   rm -f conftest.er1
13551   cat conftest.err >&5
13552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13553   (exit $ac_status); } && {
13554          test -z "$ac_c_werror_flag" ||
13555          test ! -s conftest.err
13556        } && test -s conftest.$ac_objext; then
13557   ac_cv_have_decl_getopt_clip=yes
13558 else
13559   echo "$as_me: failed program was:" >&5
13560 sed 's/^/| /' conftest.$ac_ext >&5
13561
13562         ac_cv_have_decl_getopt_clip=no
13563 fi
13564
13565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13566 fi
13567 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
13568 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
13569 if test $ac_cv_have_decl_getopt_clip = yes; then
13570   gl_cv_func_gnu_getopt=no
13571 else
13572   gl_cv_func_gnu_getopt=yes
13573 fi
13574
13575 else
13576   cat >conftest.$ac_ext <<_ACEOF
13577 /* confdefs.h.  */
13578 _ACEOF
13579 cat confdefs.h >>conftest.$ac_ext
13580 cat >>conftest.$ac_ext <<_ACEOF
13581 /* end confdefs.h.  */
13582 #include <getopt.h>
13583 int
13584 main ()
13585 {
13586
13587              char *myargv[3];
13588              myargv[0] = "conftest";
13589              myargv[1] = "-+";
13590              myargv[2] = 0;
13591              return getopt (2, myargv, "+a") != '?';
13592
13593   ;
13594   return 0;
13595 }
13596 _ACEOF
13597 rm -f conftest$ac_exeext
13598 if { (ac_try="$ac_link"
13599 case "(($ac_try" in
13600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13601   *) ac_try_echo=$ac_try;;
13602 esac
13603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13604   (eval "$ac_link") 2>&5
13605   ac_status=$?
13606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13607   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13608   { (case "(($ac_try" in
13609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13610   *) ac_try_echo=$ac_try;;
13611 esac
13612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13613   (eval "$ac_try") 2>&5
13614   ac_status=$?
13615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13616   (exit $ac_status); }; }; then
13617   gl_cv_func_gnu_getopt=yes
13618 else
13619   echo "$as_me: program exited with status $ac_status" >&5
13620 echo "$as_me: failed program was:" >&5
13621 sed 's/^/| /' conftest.$ac_ext >&5
13622
13623 ( exit $ac_status )
13624 gl_cv_func_gnu_getopt=no
13625 fi
13626 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13627 fi
13628
13629
13630 fi
13631 { echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
13632 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
13633     if test "$gl_cv_func_gnu_getopt" = "no"; then
13634       GETOPT_H=getopt.h
13635     fi
13636   fi
13637
13638
13639
13640
13641
13642
13643
13644
13645
13646
13647
13648
13649
13650
13651
13652
13653
13654
13655      if test $gl_cv_have_include_next = yes; then
13656        gl_cv_next_sys_time_h='<'sys/time.h'>'
13657      else
13658        { echo "$as_me:$LINENO: checking absolute name of <sys/time.h>" >&5
13659 echo $ECHO_N "checking absolute name of <sys/time.h>... $ECHO_C" >&6; }
13660 if test "${gl_cv_next_sys_time_h+set}" = set; then
13661   echo $ECHO_N "(cached) $ECHO_C" >&6
13662 else
13663
13664           if test $ac_cv_header_sys_time_h = yes; then
13665             cat >conftest.$ac_ext <<_ACEOF
13666 /* confdefs.h.  */
13667 _ACEOF
13668 cat confdefs.h >>conftest.$ac_ext
13669 cat >>conftest.$ac_ext <<_ACEOF
13670 /* end confdefs.h.  */
13671 #include <sys/time.h>
13672
13673 _ACEOF
13674                                                                     case "$host_os" in
13675               aix*) gl_absname_cpp="$ac_cpp -C" ;;
13676               *)    gl_absname_cpp="$ac_cpp" ;;
13677             esac
13678                                     gl_cv_next_sys_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
13679                sed -n '\#/sys/time.h#{
13680                  s#.*"\(.*/sys/time.h\)".*#\1#
13681                  s#^/[^/]#//&#
13682                  p
13683                  q
13684                }'`'"'
13685           else
13686             gl_cv_next_sys_time_h='<'sys/time.h'>'
13687           fi
13688
13689 fi
13690 { echo "$as_me:$LINENO: result: $gl_cv_next_sys_time_h" >&5
13691 echo "${ECHO_T}$gl_cv_next_sys_time_h" >&6; }
13692      fi
13693      NEXT_SYS_TIME_H=$gl_cv_next_sys_time_h
13694
13695
13696
13697
13698   if test $ac_cv_header_sys_time_h = yes; then
13699     HAVE_SYS_TIME_H=1
13700   else
13701     HAVE_SYS_TIME_H=0
13702   fi
13703
13704
13705   { echo "$as_me:$LINENO: checking for struct timeval" >&5
13706 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
13707 if test "${gl_cv_sys_struct_timeval+set}" = set; then
13708   echo $ECHO_N "(cached) $ECHO_C" >&6
13709 else
13710   cat >conftest.$ac_ext <<_ACEOF
13711 /* confdefs.h.  */
13712 _ACEOF
13713 cat confdefs.h >>conftest.$ac_ext
13714 cat >>conftest.$ac_ext <<_ACEOF
13715 /* end confdefs.h.  */
13716 #if HAVE_SYS_TIME_H
13717              #include <sys/time.h>
13718             #endif
13719             #include <time.h>
13720
13721 int
13722 main ()
13723 {
13724 static struct timeval x; x.tv_sec = x.tv_usec;
13725   ;
13726   return 0;
13727 }
13728 _ACEOF
13729 rm -f conftest.$ac_objext
13730 if { (ac_try="$ac_compile"
13731 case "(($ac_try" in
13732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13733   *) ac_try_echo=$ac_try;;
13734 esac
13735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13736   (eval "$ac_compile") 2>conftest.er1
13737   ac_status=$?
13738   grep -v '^ *+' conftest.er1 >conftest.err
13739   rm -f conftest.er1
13740   cat conftest.err >&5
13741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13742   (exit $ac_status); } && {
13743          test -z "$ac_c_werror_flag" ||
13744          test ! -s conftest.err
13745        } && test -s conftest.$ac_objext; then
13746   gl_cv_sys_struct_timeval=yes
13747 else
13748   echo "$as_me: failed program was:" >&5
13749 sed 's/^/| /' conftest.$ac_ext >&5
13750
13751         gl_cv_sys_struct_timeval=no
13752 fi
13753
13754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13755 fi
13756 { echo "$as_me:$LINENO: result: $gl_cv_sys_struct_timeval" >&5
13757 echo "${ECHO_T}$gl_cv_sys_struct_timeval" >&6; }
13758   if test $gl_cv_sys_struct_timeval = yes; then
13759     HAVE_STRUCT_TIMEVAL=1
13760   else
13761     HAVE_STRUCT_TIMEVAL=0
13762   fi
13763
13764
13765     REPLACE_GETTIMEOFDAY=0
13766
13767   if test $HAVE_SYS_TIME_H = 0 || test $HAVE_STRUCT_TIMEVAL = 0; then
13768     SYS_TIME_H=sys/time.h
13769   else
13770     SYS_TIME_H=
13771   fi
13772
13773
13774
13775
13776
13777
13778   { echo "$as_me:$LINENO: checking for long long int" >&5
13779 echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
13780 if test "${ac_cv_type_long_long_int+set}" = set; then
13781   echo $ECHO_N "(cached) $ECHO_C" >&6
13782 else
13783   cat >conftest.$ac_ext <<_ACEOF
13784
13785   /* confdefs.h.  */
13786 _ACEOF
13787 cat confdefs.h >>conftest.$ac_ext
13788 cat >>conftest.$ac_ext <<_ACEOF
13789 /* end confdefs.h.  */
13790 /* For now, do not test the preprocessor; as of 2007 there are too many
13791          implementations with broken preprocessors.  Perhaps this can
13792          be revisited in 2012.  In the meantime, code should not expect
13793          #if to work with literals wider than 32 bits.  */
13794       /* Test literals.  */
13795       long long int ll = 9223372036854775807ll;
13796       long long int nll = -9223372036854775807LL;
13797       unsigned long long int ull = 18446744073709551615ULL;
13798       /* Test constant expressions.   */
13799       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
13800                      ? 1 : -1)];
13801       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
13802                      ? 1 : -1)];
13803       int i = 63;
13804 int
13805 main ()
13806 {
13807 /* Test availability of runtime routines for shift and division.  */
13808       long long int llmax = 9223372036854775807ll;
13809       unsigned long long int ullmax = 18446744073709551615ull;
13810       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
13811               | (llmax / ll) | (llmax % ll)
13812               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
13813               | (ullmax / ull) | (ullmax % ull));
13814   ;
13815   return 0;
13816 }
13817
13818 _ACEOF
13819 rm -f conftest.$ac_objext conftest$ac_exeext
13820 if { (ac_try="$ac_link"
13821 case "(($ac_try" in
13822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13823   *) ac_try_echo=$ac_try;;
13824 esac
13825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13826   (eval "$ac_link") 2>conftest.er1
13827   ac_status=$?
13828   grep -v '^ *+' conftest.er1 >conftest.err
13829   rm -f conftest.er1
13830   cat conftest.err >&5
13831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13832   (exit $ac_status); } && {
13833          test -z "$ac_c_werror_flag" ||
13834          test ! -s conftest.err
13835        } && test -s conftest$ac_exeext &&
13836        $as_test_x conftest$ac_exeext; then
13837                         if test "$cross_compiling" = yes; then
13838   ac_cv_type_long_long_int=yes
13839 else
13840   cat >conftest.$ac_ext <<_ACEOF
13841 /* confdefs.h.  */
13842 _ACEOF
13843 cat confdefs.h >>conftest.$ac_ext
13844 cat >>conftest.$ac_ext <<_ACEOF
13845 /* end confdefs.h.  */
13846 #include <limits.h>
13847                #ifndef LLONG_MAX
13848                # define HALF \
13849                         (1LL << (sizeof (long long int) * CHAR_BIT - 2))
13850                # define LLONG_MAX (HALF - 1 + HALF)
13851                #endif
13852 int
13853 main ()
13854 {
13855 long long int n = 1;
13856                int i;
13857                for (i = 0; ; i++)
13858                  {
13859                    long long int m = n << i;
13860                    if (m >> i != n)
13861                      return 1;
13862                    if (LLONG_MAX / 2 < m)
13863                      break;
13864                  }
13865                return 0;
13866   ;
13867   return 0;
13868 }
13869 _ACEOF
13870 rm -f conftest$ac_exeext
13871 if { (ac_try="$ac_link"
13872 case "(($ac_try" in
13873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13874   *) ac_try_echo=$ac_try;;
13875 esac
13876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13877   (eval "$ac_link") 2>&5
13878   ac_status=$?
13879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13880   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13881   { (case "(($ac_try" in
13882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13883   *) ac_try_echo=$ac_try;;
13884 esac
13885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13886   (eval "$ac_try") 2>&5
13887   ac_status=$?
13888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13889   (exit $ac_status); }; }; then
13890   ac_cv_type_long_long_int=yes
13891 else
13892   echo "$as_me: program exited with status $ac_status" >&5
13893 echo "$as_me: failed program was:" >&5
13894 sed 's/^/| /' conftest.$ac_ext >&5
13895
13896 ( exit $ac_status )
13897 ac_cv_type_long_long_int=no
13898 fi
13899 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13900 fi
13901
13902
13903 else
13904   echo "$as_me: failed program was:" >&5
13905 sed 's/^/| /' conftest.$ac_ext >&5
13906
13907         ac_cv_type_long_long_int=no
13908 fi
13909
13910 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13911       conftest$ac_exeext conftest.$ac_ext
13912 fi
13913 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
13914 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
13915   if test $ac_cv_type_long_long_int = yes; then
13916
13917 cat >>confdefs.h <<\_ACEOF
13918 #define HAVE_LONG_LONG_INT 1
13919 _ACEOF
13920
13921   fi
13922
13923
13924   { echo "$as_me:$LINENO: checking for unsigned long long int" >&5
13925 echo $ECHO_N "checking for unsigned long long int... $ECHO_C" >&6; }
13926 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then
13927   echo $ECHO_N "(cached) $ECHO_C" >&6
13928 else
13929   cat >conftest.$ac_ext <<_ACEOF
13930
13931   /* confdefs.h.  */
13932 _ACEOF
13933 cat confdefs.h >>conftest.$ac_ext
13934 cat >>conftest.$ac_ext <<_ACEOF
13935 /* end confdefs.h.  */
13936 /* For now, do not test the preprocessor; as of 2007 there are too many
13937          implementations with broken preprocessors.  Perhaps this can
13938          be revisited in 2012.  In the meantime, code should not expect
13939          #if to work with literals wider than 32 bits.  */
13940       /* Test literals.  */
13941       long long int ll = 9223372036854775807ll;
13942       long long int nll = -9223372036854775807LL;
13943       unsigned long long int ull = 18446744073709551615ULL;
13944       /* Test constant expressions.   */
13945       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
13946                      ? 1 : -1)];
13947       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
13948                      ? 1 : -1)];
13949       int i = 63;
13950 int
13951 main ()
13952 {
13953 /* Test availability of runtime routines for shift and division.  */
13954       long long int llmax = 9223372036854775807ll;
13955       unsigned long long int ullmax = 18446744073709551615ull;
13956       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
13957               | (llmax / ll) | (llmax % ll)
13958               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
13959               | (ullmax / ull) | (ullmax % ull));
13960   ;
13961   return 0;
13962 }
13963
13964 _ACEOF
13965 rm -f conftest.$ac_objext conftest$ac_exeext
13966 if { (ac_try="$ac_link"
13967 case "(($ac_try" in
13968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13969   *) ac_try_echo=$ac_try;;
13970 esac
13971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13972   (eval "$ac_link") 2>conftest.er1
13973   ac_status=$?
13974   grep -v '^ *+' conftest.er1 >conftest.err
13975   rm -f conftest.er1
13976   cat conftest.err >&5
13977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13978   (exit $ac_status); } && {
13979          test -z "$ac_c_werror_flag" ||
13980          test ! -s conftest.err
13981        } && test -s conftest$ac_exeext &&
13982        $as_test_x conftest$ac_exeext; then
13983   ac_cv_type_unsigned_long_long_int=yes
13984 else
13985   echo "$as_me: failed program was:" >&5
13986 sed 's/^/| /' conftest.$ac_ext >&5
13987
13988         ac_cv_type_unsigned_long_long_int=no
13989 fi
13990
13991 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13992       conftest$ac_exeext conftest.$ac_ext
13993 fi
13994 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long_int" >&5
13995 echo "${ECHO_T}$ac_cv_type_unsigned_long_long_int" >&6; }
13996   if test $ac_cv_type_unsigned_long_long_int = yes; then
13997
13998 cat >>confdefs.h <<\_ACEOF
13999 #define HAVE_UNSIGNED_LONG_LONG_INT 1
14000 _ACEOF
14001
14002   fi
14003
14004
14005
14006
14007
14008
14009     gl_cv_c_multiarch=no
14010   cat >conftest.$ac_ext <<_ACEOF
14011 /* confdefs.h.  */
14012 _ACEOF
14013 cat confdefs.h >>conftest.$ac_ext
14014 cat >>conftest.$ac_ext <<_ACEOF
14015 /* end confdefs.h.  */
14016 #ifndef __APPLE_CC__
14017          not a universal capable compiler
14018         #endif
14019         typedef int dummy;
14020
14021 _ACEOF
14022 rm -f conftest.$ac_objext
14023 if { (ac_try="$ac_compile"
14024 case "(($ac_try" in
14025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14026   *) ac_try_echo=$ac_try;;
14027 esac
14028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14029   (eval "$ac_compile") 2>conftest.er1
14030   ac_status=$?
14031   grep -v '^ *+' conftest.er1 >conftest.err
14032   rm -f conftest.er1
14033   cat conftest.err >&5
14034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14035   (exit $ac_status); } && {
14036          test -z "$ac_c_werror_flag" ||
14037          test ! -s conftest.err
14038        } && test -s conftest.$ac_objext; then
14039
14040                arch=
14041      prev=
14042      for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
14043        if test -n "$prev"; then
14044          case $word in
14045            i?86 | x86_64 | ppc | ppc64)
14046              if test -z "$arch" || test "$arch" = "$word"; then
14047                arch="$word"
14048              else
14049                gl_cv_c_multiarch=yes
14050              fi
14051              ;;
14052          esac
14053          prev=
14054        else
14055          if test "x$word" = "x-arch"; then
14056            prev=arch
14057          fi
14058        fi
14059      done
14060
14061 else
14062   echo "$as_me: failed program was:" >&5
14063 sed 's/^/| /' conftest.$ac_ext >&5
14064
14065
14066 fi
14067
14068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14069   if test $gl_cv_c_multiarch = yes; then
14070
14071 cat >>confdefs.h <<\_ACEOF
14072 #define AA_APPLE_UNIVERSAL_BUILD 1
14073 _ACEOF
14074
14075     APPLE_UNIVERSAL_BUILD=1
14076   else
14077     APPLE_UNIVERSAL_BUILD=0
14078   fi
14079
14080
14081
14082
14083
14084
14085   if test $ac_cv_type_long_long_int = yes; then
14086     HAVE_LONG_LONG_INT=1
14087   else
14088     HAVE_LONG_LONG_INT=0
14089   fi
14090
14091
14092   if test $ac_cv_type_unsigned_long_long_int = yes; then
14093     HAVE_UNSIGNED_LONG_LONG_INT=1
14094   else
14095     HAVE_UNSIGNED_LONG_LONG_INT=0
14096   fi
14097
14098
14099       if test $ac_cv_header_inttypes_h = yes; then
14100     HAVE_INTTYPES_H=1
14101   else
14102     HAVE_INTTYPES_H=0
14103   fi
14104
14105
14106       if test $ac_cv_header_sys_types_h = yes; then
14107     HAVE_SYS_TYPES_H=1
14108   else
14109     HAVE_SYS_TYPES_H=0
14110   fi
14111
14112
14113
14114
14115
14116
14117
14118
14119
14120
14121
14122
14123
14124      if test $gl_cv_have_include_next = yes; then
14125        gl_cv_next_stdint_h='<'stdint.h'>'
14126      else
14127        { echo "$as_me:$LINENO: checking absolute name of <stdint.h>" >&5
14128 echo $ECHO_N "checking absolute name of <stdint.h>... $ECHO_C" >&6; }
14129 if test "${gl_cv_next_stdint_h+set}" = set; then
14130   echo $ECHO_N "(cached) $ECHO_C" >&6
14131 else
14132
14133           if test $ac_cv_header_stdint_h = yes; then
14134             cat >conftest.$ac_ext <<_ACEOF
14135 /* confdefs.h.  */
14136 _ACEOF
14137 cat confdefs.h >>conftest.$ac_ext
14138 cat >>conftest.$ac_ext <<_ACEOF
14139 /* end confdefs.h.  */
14140 #include <stdint.h>
14141
14142 _ACEOF
14143                                                                     case "$host_os" in
14144               aix*) gl_absname_cpp="$ac_cpp -C" ;;
14145               *)    gl_absname_cpp="$ac_cpp" ;;
14146             esac
14147                                     gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14148                sed -n '\#/stdint.h#{
14149                  s#.*"\(.*/stdint.h\)".*#\1#
14150                  s#^/[^/]#//&#
14151                  p
14152                  q
14153                }'`'"'
14154           else
14155             gl_cv_next_stdint_h='<'stdint.h'>'
14156           fi
14157
14158 fi
14159 { echo "$as_me:$LINENO: result: $gl_cv_next_stdint_h" >&5
14160 echo "${ECHO_T}$gl_cv_next_stdint_h" >&6; }
14161      fi
14162      NEXT_STDINT_H=$gl_cv_next_stdint_h
14163
14164
14165
14166   if test $ac_cv_header_stdint_h = yes; then
14167     HAVE_STDINT_H=1
14168   else
14169     HAVE_STDINT_H=0
14170   fi
14171
14172
14173     if test $ac_cv_header_stdint_h = yes; then
14174     { echo "$as_me:$LINENO: checking whether stdint.h conforms to C99" >&5
14175 echo $ECHO_N "checking whether stdint.h conforms to C99... $ECHO_C" >&6; }
14176 if test "${gl_cv_header_working_stdint_h+set}" = set; then
14177   echo $ECHO_N "(cached) $ECHO_C" >&6
14178 else
14179   gl_cv_header_working_stdint_h=no
14180        cat >conftest.$ac_ext <<_ACEOF
14181
14182          /* confdefs.h.  */
14183 _ACEOF
14184 cat confdefs.h >>conftest.$ac_ext
14185 cat >>conftest.$ac_ext <<_ACEOF
14186 /* end confdefs.h.  */
14187
14188 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
14189 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
14190 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
14191 #include <stdint.h>
14192 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>.  */
14193 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
14194 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
14195 #endif
14196
14197
14198   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14199      included before <wchar.h>.  */
14200   #include <stddef.h>
14201   #include <signal.h>
14202   #if HAVE_WCHAR_H
14203   # include <stdio.h>
14204   # include <time.h>
14205   # include <wchar.h>
14206   #endif
14207
14208
14209 #ifdef INT8_MAX
14210 int8_t a1 = INT8_MAX;
14211 int8_t a1min = INT8_MIN;
14212 #endif
14213 #ifdef INT16_MAX
14214 int16_t a2 = INT16_MAX;
14215 int16_t a2min = INT16_MIN;
14216 #endif
14217 #ifdef INT32_MAX
14218 int32_t a3 = INT32_MAX;
14219 int32_t a3min = INT32_MIN;
14220 #endif
14221 #ifdef INT64_MAX
14222 int64_t a4 = INT64_MAX;
14223 int64_t a4min = INT64_MIN;
14224 #endif
14225 #ifdef UINT8_MAX
14226 uint8_t b1 = UINT8_MAX;
14227 #else
14228 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
14229 #endif
14230 #ifdef UINT16_MAX
14231 uint16_t b2 = UINT16_MAX;
14232 #endif
14233 #ifdef UINT32_MAX
14234 uint32_t b3 = UINT32_MAX;
14235 #endif
14236 #ifdef UINT64_MAX
14237 uint64_t b4 = UINT64_MAX;
14238 #endif
14239 int_least8_t c1 = INT8_C (0x7f);
14240 int_least8_t c1max = INT_LEAST8_MAX;
14241 int_least8_t c1min = INT_LEAST8_MIN;
14242 int_least16_t c2 = INT16_C (0x7fff);
14243 int_least16_t c2max = INT_LEAST16_MAX;
14244 int_least16_t c2min = INT_LEAST16_MIN;
14245 int_least32_t c3 = INT32_C (0x7fffffff);
14246 int_least32_t c3max = INT_LEAST32_MAX;
14247 int_least32_t c3min = INT_LEAST32_MIN;
14248 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
14249 int_least64_t c4max = INT_LEAST64_MAX;
14250 int_least64_t c4min = INT_LEAST64_MIN;
14251 uint_least8_t d1 = UINT8_C (0xff);
14252 uint_least8_t d1max = UINT_LEAST8_MAX;
14253 uint_least16_t d2 = UINT16_C (0xffff);
14254 uint_least16_t d2max = UINT_LEAST16_MAX;
14255 uint_least32_t d3 = UINT32_C (0xffffffff);
14256 uint_least32_t d3max = UINT_LEAST32_MAX;
14257 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
14258 uint_least64_t d4max = UINT_LEAST64_MAX;
14259 int_fast8_t e1 = INT_FAST8_MAX;
14260 int_fast8_t e1min = INT_FAST8_MIN;
14261 int_fast16_t e2 = INT_FAST16_MAX;
14262 int_fast16_t e2min = INT_FAST16_MIN;
14263 int_fast32_t e3 = INT_FAST32_MAX;
14264 int_fast32_t e3min = INT_FAST32_MIN;
14265 int_fast64_t e4 = INT_FAST64_MAX;
14266 int_fast64_t e4min = INT_FAST64_MIN;
14267 uint_fast8_t f1 = UINT_FAST8_MAX;
14268 uint_fast16_t f2 = UINT_FAST16_MAX;
14269 uint_fast32_t f3 = UINT_FAST32_MAX;
14270 uint_fast64_t f4 = UINT_FAST64_MAX;
14271 #ifdef INTPTR_MAX
14272 intptr_t g = INTPTR_MAX;
14273 intptr_t gmin = INTPTR_MIN;
14274 #endif
14275 #ifdef UINTPTR_MAX
14276 uintptr_t h = UINTPTR_MAX;
14277 #endif
14278 intmax_t i = INTMAX_MAX;
14279 uintmax_t j = UINTMAX_MAX;
14280
14281 #include <limits.h> /* for CHAR_BIT */
14282 #define TYPE_MINIMUM(t) \
14283   ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))
14284 #define TYPE_MAXIMUM(t) \
14285   ((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))))
14286 struct s {
14287   int check_PTRDIFF:
14288       PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
14289       && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
14290       ? 1 : -1;
14291   /* Detect bug in FreeBSD 6.0 / ia64.  */
14292   int check_SIG_ATOMIC:
14293       SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
14294       && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
14295       ? 1 : -1;
14296   int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
14297   int check_WCHAR:
14298       WCHAR_MIN == TYPE_MINIMUM (wchar_t)
14299       && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
14300       ? 1 : -1;
14301   /* Detect bug in mingw.  */
14302   int check_WINT:
14303       WINT_MIN == TYPE_MINIMUM (wint_t)
14304       && WINT_MAX == TYPE_MAXIMUM (wint_t)
14305       ? 1 : -1;
14306
14307   /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others.  */
14308   int check_UINT8_C:
14309         (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
14310   int check_UINT16_C:
14311         (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
14312
14313   /* Detect bugs in OpenBSD 3.9 stdint.h.  */
14314 #ifdef UINT8_MAX
14315   int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
14316 #endif
14317 #ifdef UINT16_MAX
14318   int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
14319 #endif
14320 #ifdef UINT32_MAX
14321   int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
14322 #endif
14323 #ifdef UINT64_MAX
14324   int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
14325 #endif
14326   int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
14327   int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
14328   int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
14329   int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
14330   int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
14331   int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
14332   int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
14333   int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
14334   int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
14335   int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
14336   int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
14337 };
14338
14339 int
14340 main ()
14341 {
14342
14343   ;
14344   return 0;
14345 }
14346 _ACEOF
14347 rm -f conftest.$ac_objext
14348 if { (ac_try="$ac_compile"
14349 case "(($ac_try" in
14350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14351   *) ac_try_echo=$ac_try;;
14352 esac
14353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14354   (eval "$ac_compile") 2>conftest.er1
14355   ac_status=$?
14356   grep -v '^ *+' conftest.er1 >conftest.err
14357   rm -f conftest.er1
14358   cat conftest.err >&5
14359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14360   (exit $ac_status); } && {
14361          test -z "$ac_c_werror_flag" ||
14362          test ! -s conftest.err
14363        } && test -s conftest.$ac_objext; then
14364   gl_cv_header_working_stdint_h=yes
14365 else
14366   echo "$as_me: failed program was:" >&5
14367 sed 's/^/| /' conftest.$ac_ext >&5
14368
14369
14370 fi
14371
14372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14373 fi
14374 { echo "$as_me:$LINENO: result: $gl_cv_header_working_stdint_h" >&5
14375 echo "${ECHO_T}$gl_cv_header_working_stdint_h" >&6; }
14376   fi
14377   if test "$gl_cv_header_working_stdint_h" = yes; then
14378     STDINT_H=
14379   else
14380
14381
14382 for ac_header in sys/inttypes.h sys/bitypes.h
14383 do
14384 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14385 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14386   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14387 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14388 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14389   echo $ECHO_N "(cached) $ECHO_C" >&6
14390 fi
14391 ac_res=`eval echo '${'$as_ac_Header'}'`
14392                { echo "$as_me:$LINENO: result: $ac_res" >&5
14393 echo "${ECHO_T}$ac_res" >&6; }
14394 else
14395   # Is the header compilable?
14396 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14397 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14398 cat >conftest.$ac_ext <<_ACEOF
14399 /* confdefs.h.  */
14400 _ACEOF
14401 cat confdefs.h >>conftest.$ac_ext
14402 cat >>conftest.$ac_ext <<_ACEOF
14403 /* end confdefs.h.  */
14404 $ac_includes_default
14405 #include <$ac_header>
14406 _ACEOF
14407 rm -f conftest.$ac_objext
14408 if { (ac_try="$ac_compile"
14409 case "(($ac_try" in
14410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14411   *) ac_try_echo=$ac_try;;
14412 esac
14413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14414   (eval "$ac_compile") 2>conftest.er1
14415   ac_status=$?
14416   grep -v '^ *+' conftest.er1 >conftest.err
14417   rm -f conftest.er1
14418   cat conftest.err >&5
14419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14420   (exit $ac_status); } && {
14421          test -z "$ac_c_werror_flag" ||
14422          test ! -s conftest.err
14423        } && test -s conftest.$ac_objext; then
14424   ac_header_compiler=yes
14425 else
14426   echo "$as_me: failed program was:" >&5
14427 sed 's/^/| /' conftest.$ac_ext >&5
14428
14429         ac_header_compiler=no
14430 fi
14431
14432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14433 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14434 echo "${ECHO_T}$ac_header_compiler" >&6; }
14435
14436 # Is the header present?
14437 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14438 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14439 cat >conftest.$ac_ext <<_ACEOF
14440 /* confdefs.h.  */
14441 _ACEOF
14442 cat confdefs.h >>conftest.$ac_ext
14443 cat >>conftest.$ac_ext <<_ACEOF
14444 /* end confdefs.h.  */
14445 #include <$ac_header>
14446 _ACEOF
14447 if { (ac_try="$ac_cpp conftest.$ac_ext"
14448 case "(($ac_try" in
14449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14450   *) ac_try_echo=$ac_try;;
14451 esac
14452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14453   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14454   ac_status=$?
14455   grep -v '^ *+' conftest.er1 >conftest.err
14456   rm -f conftest.er1
14457   cat conftest.err >&5
14458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14459   (exit $ac_status); } >/dev/null && {
14460          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14461          test ! -s conftest.err
14462        }; then
14463   ac_header_preproc=yes
14464 else
14465   echo "$as_me: failed program was:" >&5
14466 sed 's/^/| /' conftest.$ac_ext >&5
14467
14468   ac_header_preproc=no
14469 fi
14470
14471 rm -f conftest.err conftest.$ac_ext
14472 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14473 echo "${ECHO_T}$ac_header_preproc" >&6; }
14474
14475 # So?  What about this header?
14476 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14477   yes:no: )
14478     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14479 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14480     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14481 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14482     ac_header_preproc=yes
14483     ;;
14484   no:yes:* )
14485     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14486 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14487     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14488 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14489     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14490 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14491     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14492 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14493     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14494 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14495     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14496 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14497     ( cat <<\_ASBOX
14498 ## ------------------------------ ##
14499 ## Report this to bug-tar@gnu.org ##
14500 ## ------------------------------ ##
14501 _ASBOX
14502      ) | sed "s/^/$as_me: WARNING:     /" >&2
14503     ;;
14504 esac
14505 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14506 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14507 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14508   echo $ECHO_N "(cached) $ECHO_C" >&6
14509 else
14510   eval "$as_ac_Header=\$ac_header_preproc"
14511 fi
14512 ac_res=`eval echo '${'$as_ac_Header'}'`
14513                { echo "$as_me:$LINENO: result: $ac_res" >&5
14514 echo "${ECHO_T}$ac_res" >&6; }
14515
14516 fi
14517 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14518   cat >>confdefs.h <<_ACEOF
14519 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14520 _ACEOF
14521
14522 fi
14523
14524 done
14525
14526     if test $ac_cv_header_sys_inttypes_h = yes; then
14527       HAVE_SYS_INTTYPES_H=1
14528     else
14529       HAVE_SYS_INTTYPES_H=0
14530     fi
14531
14532     if test $ac_cv_header_sys_bitypes_h = yes; then
14533       HAVE_SYS_BITYPES_H=1
14534     else
14535       HAVE_SYS_BITYPES_H=0
14536     fi
14537
14538
14539
14540
14541
14542
14543
14544
14545
14546
14547
14548   if test $APPLE_UNIVERSAL_BUILD = 0; then
14549
14550
14551
14552
14553   for gltype in ptrdiff_t size_t ; do
14554     { echo "$as_me:$LINENO: checking for bit size of $gltype" >&5
14555 echo $ECHO_N "checking for bit size of $gltype... $ECHO_C" >&6; }
14556 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then
14557   echo $ECHO_N "(cached) $ECHO_C" >&6
14558 else
14559   if test "$cross_compiling" = yes; then
14560   # Depending upon the size, compute the lo and hi bounds.
14561 cat >conftest.$ac_ext <<_ACEOF
14562 /* confdefs.h.  */
14563 _ACEOF
14564 cat confdefs.h >>conftest.$ac_ext
14565 cat >>conftest.$ac_ext <<_ACEOF
14566 /* end confdefs.h.  */
14567
14568   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14569      included before <wchar.h>.  */
14570   #include <stddef.h>
14571   #include <signal.h>
14572   #if HAVE_WCHAR_H
14573   # include <stdio.h>
14574   # include <time.h>
14575   # include <wchar.h>
14576   #endif
14577
14578 #include <limits.h>
14579 int
14580 main ()
14581 {
14582 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= 0)];
14583 test_array [0] = 0
14584
14585   ;
14586   return 0;
14587 }
14588 _ACEOF
14589 rm -f conftest.$ac_objext
14590 if { (ac_try="$ac_compile"
14591 case "(($ac_try" in
14592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14593   *) ac_try_echo=$ac_try;;
14594 esac
14595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14596   (eval "$ac_compile") 2>conftest.er1
14597   ac_status=$?
14598   grep -v '^ *+' conftest.er1 >conftest.err
14599   rm -f conftest.er1
14600   cat conftest.err >&5
14601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14602   (exit $ac_status); } && {
14603          test -z "$ac_c_werror_flag" ||
14604          test ! -s conftest.err
14605        } && test -s conftest.$ac_objext; then
14606   ac_lo=0 ac_mid=0
14607   while :; do
14608     cat >conftest.$ac_ext <<_ACEOF
14609 /* confdefs.h.  */
14610 _ACEOF
14611 cat confdefs.h >>conftest.$ac_ext
14612 cat >>conftest.$ac_ext <<_ACEOF
14613 /* end confdefs.h.  */
14614
14615   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14616      included before <wchar.h>.  */
14617   #include <stddef.h>
14618   #include <signal.h>
14619   #if HAVE_WCHAR_H
14620   # include <stdio.h>
14621   # include <time.h>
14622   # include <wchar.h>
14623   #endif
14624
14625 #include <limits.h>
14626 int
14627 main ()
14628 {
14629 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
14630 test_array [0] = 0
14631
14632   ;
14633   return 0;
14634 }
14635 _ACEOF
14636 rm -f conftest.$ac_objext
14637 if { (ac_try="$ac_compile"
14638 case "(($ac_try" in
14639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14640   *) ac_try_echo=$ac_try;;
14641 esac
14642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14643   (eval "$ac_compile") 2>conftest.er1
14644   ac_status=$?
14645   grep -v '^ *+' conftest.er1 >conftest.err
14646   rm -f conftest.er1
14647   cat conftest.err >&5
14648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14649   (exit $ac_status); } && {
14650          test -z "$ac_c_werror_flag" ||
14651          test ! -s conftest.err
14652        } && test -s conftest.$ac_objext; then
14653   ac_hi=$ac_mid; break
14654 else
14655   echo "$as_me: failed program was:" >&5
14656 sed 's/^/| /' conftest.$ac_ext >&5
14657
14658         ac_lo=`expr $ac_mid + 1`
14659                         if test $ac_lo -le $ac_mid; then
14660                           ac_lo= ac_hi=
14661                           break
14662                         fi
14663                         ac_mid=`expr 2 '*' $ac_mid + 1`
14664 fi
14665
14666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14667   done
14668 else
14669   echo "$as_me: failed program was:" >&5
14670 sed 's/^/| /' conftest.$ac_ext >&5
14671
14672         cat >conftest.$ac_ext <<_ACEOF
14673 /* confdefs.h.  */
14674 _ACEOF
14675 cat confdefs.h >>conftest.$ac_ext
14676 cat >>conftest.$ac_ext <<_ACEOF
14677 /* end confdefs.h.  */
14678
14679   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14680      included before <wchar.h>.  */
14681   #include <stddef.h>
14682   #include <signal.h>
14683   #if HAVE_WCHAR_H
14684   # include <stdio.h>
14685   # include <time.h>
14686   # include <wchar.h>
14687   #endif
14688
14689 #include <limits.h>
14690 int
14691 main ()
14692 {
14693 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) < 0)];
14694 test_array [0] = 0
14695
14696   ;
14697   return 0;
14698 }
14699 _ACEOF
14700 rm -f conftest.$ac_objext
14701 if { (ac_try="$ac_compile"
14702 case "(($ac_try" in
14703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14704   *) ac_try_echo=$ac_try;;
14705 esac
14706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14707   (eval "$ac_compile") 2>conftest.er1
14708   ac_status=$?
14709   grep -v '^ *+' conftest.er1 >conftest.err
14710   rm -f conftest.er1
14711   cat conftest.err >&5
14712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14713   (exit $ac_status); } && {
14714          test -z "$ac_c_werror_flag" ||
14715          test ! -s conftest.err
14716        } && test -s conftest.$ac_objext; then
14717   ac_hi=-1 ac_mid=-1
14718   while :; do
14719     cat >conftest.$ac_ext <<_ACEOF
14720 /* confdefs.h.  */
14721 _ACEOF
14722 cat confdefs.h >>conftest.$ac_ext
14723 cat >>conftest.$ac_ext <<_ACEOF
14724 /* end confdefs.h.  */
14725
14726   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14727      included before <wchar.h>.  */
14728   #include <stddef.h>
14729   #include <signal.h>
14730   #if HAVE_WCHAR_H
14731   # include <stdio.h>
14732   # include <time.h>
14733   # include <wchar.h>
14734   #endif
14735
14736 #include <limits.h>
14737 int
14738 main ()
14739 {
14740 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= $ac_mid)];
14741 test_array [0] = 0
14742
14743   ;
14744   return 0;
14745 }
14746 _ACEOF
14747 rm -f conftest.$ac_objext
14748 if { (ac_try="$ac_compile"
14749 case "(($ac_try" in
14750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14751   *) ac_try_echo=$ac_try;;
14752 esac
14753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14754   (eval "$ac_compile") 2>conftest.er1
14755   ac_status=$?
14756   grep -v '^ *+' conftest.er1 >conftest.err
14757   rm -f conftest.er1
14758   cat conftest.err >&5
14759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14760   (exit $ac_status); } && {
14761          test -z "$ac_c_werror_flag" ||
14762          test ! -s conftest.err
14763        } && test -s conftest.$ac_objext; then
14764   ac_lo=$ac_mid; break
14765 else
14766   echo "$as_me: failed program was:" >&5
14767 sed 's/^/| /' conftest.$ac_ext >&5
14768
14769         ac_hi=`expr '(' $ac_mid ')' - 1`
14770                         if test $ac_mid -le $ac_hi; then
14771                           ac_lo= ac_hi=
14772                           break
14773                         fi
14774                         ac_mid=`expr 2 '*' $ac_mid`
14775 fi
14776
14777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14778   done
14779 else
14780   echo "$as_me: failed program was:" >&5
14781 sed 's/^/| /' conftest.$ac_ext >&5
14782
14783         ac_lo= ac_hi=
14784 fi
14785
14786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14787 fi
14788
14789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14790 # Binary search between lo and hi bounds.
14791 while test "x$ac_lo" != "x$ac_hi"; do
14792   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14793   cat >conftest.$ac_ext <<_ACEOF
14794 /* confdefs.h.  */
14795 _ACEOF
14796 cat confdefs.h >>conftest.$ac_ext
14797 cat >>conftest.$ac_ext <<_ACEOF
14798 /* end confdefs.h.  */
14799
14800   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14801      included before <wchar.h>.  */
14802   #include <stddef.h>
14803   #include <signal.h>
14804   #if HAVE_WCHAR_H
14805   # include <stdio.h>
14806   # include <time.h>
14807   # include <wchar.h>
14808   #endif
14809
14810 #include <limits.h>
14811 int
14812 main ()
14813 {
14814 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
14815 test_array [0] = 0
14816
14817   ;
14818   return 0;
14819 }
14820 _ACEOF
14821 rm -f conftest.$ac_objext
14822 if { (ac_try="$ac_compile"
14823 case "(($ac_try" in
14824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14825   *) ac_try_echo=$ac_try;;
14826 esac
14827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14828   (eval "$ac_compile") 2>conftest.er1
14829   ac_status=$?
14830   grep -v '^ *+' conftest.er1 >conftest.err
14831   rm -f conftest.er1
14832   cat conftest.err >&5
14833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14834   (exit $ac_status); } && {
14835          test -z "$ac_c_werror_flag" ||
14836          test ! -s conftest.err
14837        } && test -s conftest.$ac_objext; then
14838   ac_hi=$ac_mid
14839 else
14840   echo "$as_me: failed program was:" >&5
14841 sed 's/^/| /' conftest.$ac_ext >&5
14842
14843         ac_lo=`expr '(' $ac_mid ')' + 1`
14844 fi
14845
14846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14847 done
14848 case $ac_lo in
14849 ?*) result=$ac_lo;;
14850 '') result=unknown ;;
14851 esac
14852 else
14853   cat >conftest.$ac_ext <<_ACEOF
14854 /* confdefs.h.  */
14855 _ACEOF
14856 cat confdefs.h >>conftest.$ac_ext
14857 cat >>conftest.$ac_ext <<_ACEOF
14858 /* end confdefs.h.  */
14859
14860   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14861      included before <wchar.h>.  */
14862   #include <stddef.h>
14863   #include <signal.h>
14864   #if HAVE_WCHAR_H
14865   # include <stdio.h>
14866   # include <time.h>
14867   # include <wchar.h>
14868   #endif
14869
14870 #include <limits.h>
14871 static long int longval () { return sizeof ($gltype) * CHAR_BIT; }
14872 static unsigned long int ulongval () { return sizeof ($gltype) * CHAR_BIT; }
14873 #include <stdio.h>
14874 #include <stdlib.h>
14875 int
14876 main ()
14877 {
14878
14879   FILE *f = fopen ("conftest.val", "w");
14880   if (! f)
14881     return 1;
14882   if ((sizeof ($gltype) * CHAR_BIT) < 0)
14883     {
14884       long int i = longval ();
14885       if (i != (sizeof ($gltype) * CHAR_BIT))
14886         return 1;
14887       fprintf (f, "%ld\n", i);
14888     }
14889   else
14890     {
14891       unsigned long int i = ulongval ();
14892       if (i != (sizeof ($gltype) * CHAR_BIT))
14893         return 1;
14894       fprintf (f, "%lu\n", i);
14895     }
14896   return ferror (f) || fclose (f) != 0;
14897
14898   ;
14899   return 0;
14900 }
14901 _ACEOF
14902 rm -f conftest$ac_exeext
14903 if { (ac_try="$ac_link"
14904 case "(($ac_try" in
14905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14906   *) ac_try_echo=$ac_try;;
14907 esac
14908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14909   (eval "$ac_link") 2>&5
14910   ac_status=$?
14911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14912   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14913   { (case "(($ac_try" in
14914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14915   *) ac_try_echo=$ac_try;;
14916 esac
14917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14918   (eval "$ac_try") 2>&5
14919   ac_status=$?
14920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14921   (exit $ac_status); }; }; then
14922   result=`cat conftest.val`
14923 else
14924   echo "$as_me: program exited with status $ac_status" >&5
14925 echo "$as_me: failed program was:" >&5
14926 sed 's/^/| /' conftest.$ac_ext >&5
14927
14928 ( exit $ac_status )
14929 result=unknown
14930 fi
14931 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14932 fi
14933 rm -f conftest.val
14934        eval gl_cv_bitsizeof_${gltype}=\$result
14935
14936 fi
14937 ac_res=`eval echo '${'gl_cv_bitsizeof_${gltype}'}'`
14938                { echo "$as_me:$LINENO: result: $ac_res" >&5
14939 echo "${ECHO_T}$ac_res" >&6; }
14940     eval result=\$gl_cv_bitsizeof_${gltype}
14941     if test $result = unknown; then
14942                                                 result=0
14943     fi
14944     GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
14945     cat >>confdefs.h <<_ACEOF
14946 #define BITSIZEOF_${GLTYPE} $result
14947 _ACEOF
14948
14949     eval BITSIZEOF_${GLTYPE}=\$result
14950   done
14951
14952
14953   fi
14954
14955
14956
14957
14958
14959   for gltype in sig_atomic_t wchar_t wint_t ; do
14960     { echo "$as_me:$LINENO: checking for bit size of $gltype" >&5
14961 echo $ECHO_N "checking for bit size of $gltype... $ECHO_C" >&6; }
14962 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then
14963   echo $ECHO_N "(cached) $ECHO_C" >&6
14964 else
14965   if test "$cross_compiling" = yes; then
14966   # Depending upon the size, compute the lo and hi bounds.
14967 cat >conftest.$ac_ext <<_ACEOF
14968 /* confdefs.h.  */
14969 _ACEOF
14970 cat confdefs.h >>conftest.$ac_ext
14971 cat >>conftest.$ac_ext <<_ACEOF
14972 /* end confdefs.h.  */
14973
14974   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14975      included before <wchar.h>.  */
14976   #include <stddef.h>
14977   #include <signal.h>
14978   #if HAVE_WCHAR_H
14979   # include <stdio.h>
14980   # include <time.h>
14981   # include <wchar.h>
14982   #endif
14983
14984 #include <limits.h>
14985 int
14986 main ()
14987 {
14988 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= 0)];
14989 test_array [0] = 0
14990
14991   ;
14992   return 0;
14993 }
14994 _ACEOF
14995 rm -f conftest.$ac_objext
14996 if { (ac_try="$ac_compile"
14997 case "(($ac_try" in
14998   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14999   *) ac_try_echo=$ac_try;;
15000 esac
15001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15002   (eval "$ac_compile") 2>conftest.er1
15003   ac_status=$?
15004   grep -v '^ *+' conftest.er1 >conftest.err
15005   rm -f conftest.er1
15006   cat conftest.err >&5
15007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15008   (exit $ac_status); } && {
15009          test -z "$ac_c_werror_flag" ||
15010          test ! -s conftest.err
15011        } && test -s conftest.$ac_objext; then
15012   ac_lo=0 ac_mid=0
15013   while :; do
15014     cat >conftest.$ac_ext <<_ACEOF
15015 /* confdefs.h.  */
15016 _ACEOF
15017 cat confdefs.h >>conftest.$ac_ext
15018 cat >>conftest.$ac_ext <<_ACEOF
15019 /* end confdefs.h.  */
15020
15021   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15022      included before <wchar.h>.  */
15023   #include <stddef.h>
15024   #include <signal.h>
15025   #if HAVE_WCHAR_H
15026   # include <stdio.h>
15027   # include <time.h>
15028   # include <wchar.h>
15029   #endif
15030
15031 #include <limits.h>
15032 int
15033 main ()
15034 {
15035 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
15036 test_array [0] = 0
15037
15038   ;
15039   return 0;
15040 }
15041 _ACEOF
15042 rm -f conftest.$ac_objext
15043 if { (ac_try="$ac_compile"
15044 case "(($ac_try" in
15045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15046   *) ac_try_echo=$ac_try;;
15047 esac
15048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15049   (eval "$ac_compile") 2>conftest.er1
15050   ac_status=$?
15051   grep -v '^ *+' conftest.er1 >conftest.err
15052   rm -f conftest.er1
15053   cat conftest.err >&5
15054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15055   (exit $ac_status); } && {
15056          test -z "$ac_c_werror_flag" ||
15057          test ! -s conftest.err
15058        } && test -s conftest.$ac_objext; then
15059   ac_hi=$ac_mid; break
15060 else
15061   echo "$as_me: failed program was:" >&5
15062 sed 's/^/| /' conftest.$ac_ext >&5
15063
15064         ac_lo=`expr $ac_mid + 1`
15065                         if test $ac_lo -le $ac_mid; then
15066                           ac_lo= ac_hi=
15067                           break
15068                         fi
15069                         ac_mid=`expr 2 '*' $ac_mid + 1`
15070 fi
15071
15072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15073   done
15074 else
15075   echo "$as_me: failed program was:" >&5
15076 sed 's/^/| /' conftest.$ac_ext >&5
15077
15078         cat >conftest.$ac_ext <<_ACEOF
15079 /* confdefs.h.  */
15080 _ACEOF
15081 cat confdefs.h >>conftest.$ac_ext
15082 cat >>conftest.$ac_ext <<_ACEOF
15083 /* end confdefs.h.  */
15084
15085   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15086      included before <wchar.h>.  */
15087   #include <stddef.h>
15088   #include <signal.h>
15089   #if HAVE_WCHAR_H
15090   # include <stdio.h>
15091   # include <time.h>
15092   # include <wchar.h>
15093   #endif
15094
15095 #include <limits.h>
15096 int
15097 main ()
15098 {
15099 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) < 0)];
15100 test_array [0] = 0
15101
15102   ;
15103   return 0;
15104 }
15105 _ACEOF
15106 rm -f conftest.$ac_objext
15107 if { (ac_try="$ac_compile"
15108 case "(($ac_try" in
15109   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15110   *) ac_try_echo=$ac_try;;
15111 esac
15112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15113   (eval "$ac_compile") 2>conftest.er1
15114   ac_status=$?
15115   grep -v '^ *+' conftest.er1 >conftest.err
15116   rm -f conftest.er1
15117   cat conftest.err >&5
15118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15119   (exit $ac_status); } && {
15120          test -z "$ac_c_werror_flag" ||
15121          test ! -s conftest.err
15122        } && test -s conftest.$ac_objext; then
15123   ac_hi=-1 ac_mid=-1
15124   while :; do
15125     cat >conftest.$ac_ext <<_ACEOF
15126 /* confdefs.h.  */
15127 _ACEOF
15128 cat confdefs.h >>conftest.$ac_ext
15129 cat >>conftest.$ac_ext <<_ACEOF
15130 /* end confdefs.h.  */
15131
15132   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15133      included before <wchar.h>.  */
15134   #include <stddef.h>
15135   #include <signal.h>
15136   #if HAVE_WCHAR_H
15137   # include <stdio.h>
15138   # include <time.h>
15139   # include <wchar.h>
15140   #endif
15141
15142 #include <limits.h>
15143 int
15144 main ()
15145 {
15146 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= $ac_mid)];
15147 test_array [0] = 0
15148
15149   ;
15150   return 0;
15151 }
15152 _ACEOF
15153 rm -f conftest.$ac_objext
15154 if { (ac_try="$ac_compile"
15155 case "(($ac_try" in
15156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15157   *) ac_try_echo=$ac_try;;
15158 esac
15159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15160   (eval "$ac_compile") 2>conftest.er1
15161   ac_status=$?
15162   grep -v '^ *+' conftest.er1 >conftest.err
15163   rm -f conftest.er1
15164   cat conftest.err >&5
15165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15166   (exit $ac_status); } && {
15167          test -z "$ac_c_werror_flag" ||
15168          test ! -s conftest.err
15169        } && test -s conftest.$ac_objext; then
15170   ac_lo=$ac_mid; break
15171 else
15172   echo "$as_me: failed program was:" >&5
15173 sed 's/^/| /' conftest.$ac_ext >&5
15174
15175         ac_hi=`expr '(' $ac_mid ')' - 1`
15176                         if test $ac_mid -le $ac_hi; then
15177                           ac_lo= ac_hi=
15178                           break
15179                         fi
15180                         ac_mid=`expr 2 '*' $ac_mid`
15181 fi
15182
15183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15184   done
15185 else
15186   echo "$as_me: failed program was:" >&5
15187 sed 's/^/| /' conftest.$ac_ext >&5
15188
15189         ac_lo= ac_hi=
15190 fi
15191
15192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15193 fi
15194
15195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15196 # Binary search between lo and hi bounds.
15197 while test "x$ac_lo" != "x$ac_hi"; do
15198   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15199   cat >conftest.$ac_ext <<_ACEOF
15200 /* confdefs.h.  */
15201 _ACEOF
15202 cat confdefs.h >>conftest.$ac_ext
15203 cat >>conftest.$ac_ext <<_ACEOF
15204 /* end confdefs.h.  */
15205
15206   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15207      included before <wchar.h>.  */
15208   #include <stddef.h>
15209   #include <signal.h>
15210   #if HAVE_WCHAR_H
15211   # include <stdio.h>
15212   # include <time.h>
15213   # include <wchar.h>
15214   #endif
15215
15216 #include <limits.h>
15217 int
15218 main ()
15219 {
15220 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
15221 test_array [0] = 0
15222
15223   ;
15224   return 0;
15225 }
15226 _ACEOF
15227 rm -f conftest.$ac_objext
15228 if { (ac_try="$ac_compile"
15229 case "(($ac_try" in
15230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15231   *) ac_try_echo=$ac_try;;
15232 esac
15233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15234   (eval "$ac_compile") 2>conftest.er1
15235   ac_status=$?
15236   grep -v '^ *+' conftest.er1 >conftest.err
15237   rm -f conftest.er1
15238   cat conftest.err >&5
15239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15240   (exit $ac_status); } && {
15241          test -z "$ac_c_werror_flag" ||
15242          test ! -s conftest.err
15243        } && test -s conftest.$ac_objext; then
15244   ac_hi=$ac_mid
15245 else
15246   echo "$as_me: failed program was:" >&5
15247 sed 's/^/| /' conftest.$ac_ext >&5
15248
15249         ac_lo=`expr '(' $ac_mid ')' + 1`
15250 fi
15251
15252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15253 done
15254 case $ac_lo in
15255 ?*) result=$ac_lo;;
15256 '') result=unknown ;;
15257 esac
15258 else
15259   cat >conftest.$ac_ext <<_ACEOF
15260 /* confdefs.h.  */
15261 _ACEOF
15262 cat confdefs.h >>conftest.$ac_ext
15263 cat >>conftest.$ac_ext <<_ACEOF
15264 /* end confdefs.h.  */
15265
15266   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15267      included before <wchar.h>.  */
15268   #include <stddef.h>
15269   #include <signal.h>
15270   #if HAVE_WCHAR_H
15271   # include <stdio.h>
15272   # include <time.h>
15273   # include <wchar.h>
15274   #endif
15275
15276 #include <limits.h>
15277 static long int longval () { return sizeof ($gltype) * CHAR_BIT; }
15278 static unsigned long int ulongval () { return sizeof ($gltype) * CHAR_BIT; }
15279 #include <stdio.h>
15280 #include <stdlib.h>
15281 int
15282 main ()
15283 {
15284
15285   FILE *f = fopen ("conftest.val", "w");
15286   if (! f)
15287     return 1;
15288   if ((sizeof ($gltype) * CHAR_BIT) < 0)
15289     {
15290       long int i = longval ();
15291       if (i != (sizeof ($gltype) * CHAR_BIT))
15292         return 1;
15293       fprintf (f, "%ld\n", i);
15294     }
15295   else
15296     {
15297       unsigned long int i = ulongval ();
15298       if (i != (sizeof ($gltype) * CHAR_BIT))
15299         return 1;
15300       fprintf (f, "%lu\n", i);
15301     }
15302   return ferror (f) || fclose (f) != 0;
15303
15304   ;
15305   return 0;
15306 }
15307 _ACEOF
15308 rm -f conftest$ac_exeext
15309 if { (ac_try="$ac_link"
15310 case "(($ac_try" in
15311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15312   *) ac_try_echo=$ac_try;;
15313 esac
15314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15315   (eval "$ac_link") 2>&5
15316   ac_status=$?
15317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15318   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15319   { (case "(($ac_try" in
15320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15321   *) ac_try_echo=$ac_try;;
15322 esac
15323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15324   (eval "$ac_try") 2>&5
15325   ac_status=$?
15326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15327   (exit $ac_status); }; }; then
15328   result=`cat conftest.val`
15329 else
15330   echo "$as_me: program exited with status $ac_status" >&5
15331 echo "$as_me: failed program was:" >&5
15332 sed 's/^/| /' conftest.$ac_ext >&5
15333
15334 ( exit $ac_status )
15335 result=unknown
15336 fi
15337 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15338 fi
15339 rm -f conftest.val
15340        eval gl_cv_bitsizeof_${gltype}=\$result
15341
15342 fi
15343 ac_res=`eval echo '${'gl_cv_bitsizeof_${gltype}'}'`
15344                { echo "$as_me:$LINENO: result: $ac_res" >&5
15345 echo "${ECHO_T}$ac_res" >&6; }
15346     eval result=\$gl_cv_bitsizeof_${gltype}
15347     if test $result = unknown; then
15348                                                 result=0
15349     fi
15350     GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
15351     cat >>confdefs.h <<_ACEOF
15352 #define BITSIZEOF_${GLTYPE} $result
15353 _ACEOF
15354
15355     eval BITSIZEOF_${GLTYPE}=\$result
15356   done
15357
15358
15359
15360
15361
15362
15363
15364   for gltype in sig_atomic_t wchar_t wint_t ; do
15365     { echo "$as_me:$LINENO: checking whether $gltype is signed" >&5
15366 echo $ECHO_N "checking whether $gltype is signed... $ECHO_C" >&6; }
15367 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then
15368   echo $ECHO_N "(cached) $ECHO_C" >&6
15369 else
15370   cat >conftest.$ac_ext <<_ACEOF
15371 /* confdefs.h.  */
15372 _ACEOF
15373 cat confdefs.h >>conftest.$ac_ext
15374 cat >>conftest.$ac_ext <<_ACEOF
15375 /* end confdefs.h.  */
15376
15377   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15378      included before <wchar.h>.  */
15379   #include <stddef.h>
15380   #include <signal.h>
15381   #if HAVE_WCHAR_H
15382   # include <stdio.h>
15383   # include <time.h>
15384   # include <wchar.h>
15385   #endif
15386
15387             int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
15388 int
15389 main ()
15390 {
15391
15392   ;
15393   return 0;
15394 }
15395 _ACEOF
15396 rm -f conftest.$ac_objext
15397 if { (ac_try="$ac_compile"
15398 case "(($ac_try" in
15399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15400   *) ac_try_echo=$ac_try;;
15401 esac
15402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15403   (eval "$ac_compile") 2>conftest.er1
15404   ac_status=$?
15405   grep -v '^ *+' conftest.er1 >conftest.err
15406   rm -f conftest.er1
15407   cat conftest.err >&5
15408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15409   (exit $ac_status); } && {
15410          test -z "$ac_c_werror_flag" ||
15411          test ! -s conftest.err
15412        } && test -s conftest.$ac_objext; then
15413   result=yes
15414 else
15415   echo "$as_me: failed program was:" >&5
15416 sed 's/^/| /' conftest.$ac_ext >&5
15417
15418         result=no
15419 fi
15420
15421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15422        eval gl_cv_type_${gltype}_signed=\$result
15423
15424 fi
15425 ac_res=`eval echo '${'gl_cv_type_${gltype}_signed'}'`
15426                { echo "$as_me:$LINENO: result: $ac_res" >&5
15427 echo "${ECHO_T}$ac_res" >&6; }
15428     eval result=\$gl_cv_type_${gltype}_signed
15429     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
15430     if test "$result" = yes; then
15431       cat >>confdefs.h <<_ACEOF
15432 #define HAVE_SIGNED_${GLTYPE} 1
15433 _ACEOF
15434
15435       eval HAVE_SIGNED_${GLTYPE}=1
15436     else
15437       eval HAVE_SIGNED_${GLTYPE}=0
15438     fi
15439   done
15440
15441
15442   gl_cv_type_ptrdiff_t_signed=yes
15443   gl_cv_type_size_t_signed=no
15444   if test $APPLE_UNIVERSAL_BUILD = 0; then
15445
15446
15447
15448
15449   for gltype in ptrdiff_t size_t ; do
15450     { echo "$as_me:$LINENO: checking for $gltype integer literal suffix" >&5
15451 echo $ECHO_N "checking for $gltype integer literal suffix... $ECHO_C" >&6; }
15452 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then
15453   echo $ECHO_N "(cached) $ECHO_C" >&6
15454 else
15455   eval gl_cv_type_${gltype}_suffix=no
15456        eval result=\$gl_cv_type_${gltype}_signed
15457        if test "$result" = yes; then
15458          glsufu=
15459        else
15460          glsufu=u
15461        fi
15462        for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
15463          case $glsuf in
15464            '')  gltype1='int';;
15465            l)   gltype1='long int';;
15466            ll)  gltype1='long long int';;
15467            i64) gltype1='__int64';;
15468            u)   gltype1='unsigned int';;
15469            ul)  gltype1='unsigned long int';;
15470            ull) gltype1='unsigned long long int';;
15471            ui64)gltype1='unsigned __int64';;
15472          esac
15473          cat >conftest.$ac_ext <<_ACEOF
15474 /* confdefs.h.  */
15475 _ACEOF
15476 cat confdefs.h >>conftest.$ac_ext
15477 cat >>conftest.$ac_ext <<_ACEOF
15478 /* end confdefs.h.  */
15479
15480   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15481      included before <wchar.h>.  */
15482   #include <stddef.h>
15483   #include <signal.h>
15484   #if HAVE_WCHAR_H
15485   # include <stdio.h>
15486   # include <time.h>
15487   # include <wchar.h>
15488   #endif
15489
15490               extern $gltype foo;
15491               extern $gltype1 foo;
15492 int
15493 main ()
15494 {
15495
15496   ;
15497   return 0;
15498 }
15499 _ACEOF
15500 rm -f conftest.$ac_objext
15501 if { (ac_try="$ac_compile"
15502 case "(($ac_try" in
15503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15504   *) ac_try_echo=$ac_try;;
15505 esac
15506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15507   (eval "$ac_compile") 2>conftest.er1
15508   ac_status=$?
15509   grep -v '^ *+' conftest.er1 >conftest.err
15510   rm -f conftest.er1
15511   cat conftest.err >&5
15512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15513   (exit $ac_status); } && {
15514          test -z "$ac_c_werror_flag" ||
15515          test ! -s conftest.err
15516        } && test -s conftest.$ac_objext; then
15517   eval gl_cv_type_${gltype}_suffix=\$glsuf
15518 else
15519   echo "$as_me: failed program was:" >&5
15520 sed 's/^/| /' conftest.$ac_ext >&5
15521
15522
15523 fi
15524
15525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15526          eval result=\$gl_cv_type_${gltype}_suffix
15527          test "$result" != no && break
15528        done
15529 fi
15530 ac_res=`eval echo '${'gl_cv_type_${gltype}_suffix'}'`
15531                { echo "$as_me:$LINENO: result: $ac_res" >&5
15532 echo "${ECHO_T}$ac_res" >&6; }
15533     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
15534     eval result=\$gl_cv_type_${gltype}_suffix
15535     test "$result" = no && result=
15536     eval ${GLTYPE}_SUFFIX=\$result
15537     cat >>confdefs.h <<_ACEOF
15538 #define ${GLTYPE}_SUFFIX $result
15539 _ACEOF
15540
15541   done
15542
15543
15544   fi
15545
15546
15547
15548
15549
15550   for gltype in sig_atomic_t wchar_t wint_t ; do
15551     { echo "$as_me:$LINENO: checking for $gltype integer literal suffix" >&5
15552 echo $ECHO_N "checking for $gltype integer literal suffix... $ECHO_C" >&6; }
15553 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then
15554   echo $ECHO_N "(cached) $ECHO_C" >&6
15555 else
15556   eval gl_cv_type_${gltype}_suffix=no
15557        eval result=\$gl_cv_type_${gltype}_signed
15558        if test "$result" = yes; then
15559          glsufu=
15560        else
15561          glsufu=u
15562        fi
15563        for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
15564          case $glsuf in
15565            '')  gltype1='int';;
15566            l)   gltype1='long int';;
15567            ll)  gltype1='long long int';;
15568            i64) gltype1='__int64';;
15569            u)   gltype1='unsigned int';;
15570            ul)  gltype1='unsigned long int';;
15571            ull) gltype1='unsigned long long int';;
15572            ui64)gltype1='unsigned __int64';;
15573          esac
15574          cat >conftest.$ac_ext <<_ACEOF
15575 /* confdefs.h.  */
15576 _ACEOF
15577 cat confdefs.h >>conftest.$ac_ext
15578 cat >>conftest.$ac_ext <<_ACEOF
15579 /* end confdefs.h.  */
15580
15581   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15582      included before <wchar.h>.  */
15583   #include <stddef.h>
15584   #include <signal.h>
15585   #if HAVE_WCHAR_H
15586   # include <stdio.h>
15587   # include <time.h>
15588   # include <wchar.h>
15589   #endif
15590
15591               extern $gltype foo;
15592               extern $gltype1 foo;
15593 int
15594 main ()
15595 {
15596
15597   ;
15598   return 0;
15599 }
15600 _ACEOF
15601 rm -f conftest.$ac_objext
15602 if { (ac_try="$ac_compile"
15603 case "(($ac_try" in
15604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15605   *) ac_try_echo=$ac_try;;
15606 esac
15607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15608   (eval "$ac_compile") 2>conftest.er1
15609   ac_status=$?
15610   grep -v '^ *+' conftest.er1 >conftest.err
15611   rm -f conftest.er1
15612   cat conftest.err >&5
15613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15614   (exit $ac_status); } && {
15615          test -z "$ac_c_werror_flag" ||
15616          test ! -s conftest.err
15617        } && test -s conftest.$ac_objext; then
15618   eval gl_cv_type_${gltype}_suffix=\$glsuf
15619 else
15620   echo "$as_me: failed program was:" >&5
15621 sed 's/^/| /' conftest.$ac_ext >&5
15622
15623
15624 fi
15625
15626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15627          eval result=\$gl_cv_type_${gltype}_suffix
15628          test "$result" != no && break
15629        done
15630 fi
15631 ac_res=`eval echo '${'gl_cv_type_${gltype}_suffix'}'`
15632                { echo "$as_me:$LINENO: result: $ac_res" >&5
15633 echo "${ECHO_T}$ac_res" >&6; }
15634     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
15635     eval result=\$gl_cv_type_${gltype}_suffix
15636     test "$result" = no && result=
15637     eval ${GLTYPE}_SUFFIX=\$result
15638     cat >>confdefs.h <<_ACEOF
15639 #define ${GLTYPE}_SUFFIX $result
15640 _ACEOF
15641
15642   done
15643
15644
15645
15646     STDINT_H=stdint.h
15647   fi
15648
15649
15650
15651
15652 for ac_header in inttypes.h
15653 do
15654 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15655 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15656   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15657 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15658 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15659   echo $ECHO_N "(cached) $ECHO_C" >&6
15660 fi
15661 ac_res=`eval echo '${'$as_ac_Header'}'`
15662                { echo "$as_me:$LINENO: result: $ac_res" >&5
15663 echo "${ECHO_T}$ac_res" >&6; }
15664 else
15665   # Is the header compilable?
15666 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15667 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15668 cat >conftest.$ac_ext <<_ACEOF
15669 /* confdefs.h.  */
15670 _ACEOF
15671 cat confdefs.h >>conftest.$ac_ext
15672 cat >>conftest.$ac_ext <<_ACEOF
15673 /* end confdefs.h.  */
15674 $ac_includes_default
15675 #include <$ac_header>
15676 _ACEOF
15677 rm -f conftest.$ac_objext
15678 if { (ac_try="$ac_compile"
15679 case "(($ac_try" in
15680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15681   *) ac_try_echo=$ac_try;;
15682 esac
15683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15684   (eval "$ac_compile") 2>conftest.er1
15685   ac_status=$?
15686   grep -v '^ *+' conftest.er1 >conftest.err
15687   rm -f conftest.er1
15688   cat conftest.err >&5
15689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15690   (exit $ac_status); } && {
15691          test -z "$ac_c_werror_flag" ||
15692          test ! -s conftest.err
15693        } && test -s conftest.$ac_objext; then
15694   ac_header_compiler=yes
15695 else
15696   echo "$as_me: failed program was:" >&5
15697 sed 's/^/| /' conftest.$ac_ext >&5
15698
15699         ac_header_compiler=no
15700 fi
15701
15702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15703 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15704 echo "${ECHO_T}$ac_header_compiler" >&6; }
15705
15706 # Is the header present?
15707 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15708 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15709 cat >conftest.$ac_ext <<_ACEOF
15710 /* confdefs.h.  */
15711 _ACEOF
15712 cat confdefs.h >>conftest.$ac_ext
15713 cat >>conftest.$ac_ext <<_ACEOF
15714 /* end confdefs.h.  */
15715 #include <$ac_header>
15716 _ACEOF
15717 if { (ac_try="$ac_cpp conftest.$ac_ext"
15718 case "(($ac_try" in
15719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15720   *) ac_try_echo=$ac_try;;
15721 esac
15722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15723   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15724   ac_status=$?
15725   grep -v '^ *+' conftest.er1 >conftest.err
15726   rm -f conftest.er1
15727   cat conftest.err >&5
15728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15729   (exit $ac_status); } >/dev/null && {
15730          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15731          test ! -s conftest.err
15732        }; then
15733   ac_header_preproc=yes
15734 else
15735   echo "$as_me: failed program was:" >&5
15736 sed 's/^/| /' conftest.$ac_ext >&5
15737
15738   ac_header_preproc=no
15739 fi
15740
15741 rm -f conftest.err conftest.$ac_ext
15742 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15743 echo "${ECHO_T}$ac_header_preproc" >&6; }
15744
15745 # So?  What about this header?
15746 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15747   yes:no: )
15748     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15749 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15750     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15751 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15752     ac_header_preproc=yes
15753     ;;
15754   no:yes:* )
15755     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15756 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15757     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15758 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15759     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15760 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15761     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15762 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15763     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15764 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15765     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15766 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15767     ( cat <<\_ASBOX
15768 ## ------------------------------ ##
15769 ## Report this to bug-tar@gnu.org ##
15770 ## ------------------------------ ##
15771 _ASBOX
15772      ) | sed "s/^/$as_me: WARNING:     /" >&2
15773     ;;
15774 esac
15775 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15776 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15777 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15778   echo $ECHO_N "(cached) $ECHO_C" >&6
15779 else
15780   eval "$as_ac_Header=\$ac_header_preproc"
15781 fi
15782 ac_res=`eval echo '${'$as_ac_Header'}'`
15783                { echo "$as_me:$LINENO: result: $ac_res" >&5
15784 echo "${ECHO_T}$ac_res" >&6; }
15785
15786 fi
15787 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15788   cat >>confdefs.h <<_ACEOF
15789 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15790 _ACEOF
15791
15792 fi
15793
15794 done
15795
15796   if test $ac_cv_header_inttypes_h = yes; then
15797     { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
15798 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
15799 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
15800   echo $ECHO_N "(cached) $ECHO_C" >&6
15801 else
15802
15803         cat >conftest.$ac_ext <<_ACEOF
15804 /* confdefs.h.  */
15805 _ACEOF
15806 cat confdefs.h >>conftest.$ac_ext
15807 cat >>conftest.$ac_ext <<_ACEOF
15808 /* end confdefs.h.  */
15809 #include <inttypes.h>
15810 #ifdef PRId32
15811 char *p = PRId32;
15812 #endif
15813
15814 int
15815 main ()
15816 {
15817
15818   ;
15819   return 0;
15820 }
15821 _ACEOF
15822 rm -f conftest.$ac_objext
15823 if { (ac_try="$ac_compile"
15824 case "(($ac_try" in
15825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15826   *) ac_try_echo=$ac_try;;
15827 esac
15828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15829   (eval "$ac_compile") 2>conftest.er1
15830   ac_status=$?
15831   grep -v '^ *+' conftest.er1 >conftest.err
15832   rm -f conftest.er1
15833   cat conftest.err >&5
15834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15835   (exit $ac_status); } && {
15836          test -z "$ac_c_werror_flag" ||
15837          test ! -s conftest.err
15838        } && test -s conftest.$ac_objext; then
15839   gt_cv_inttypes_pri_broken=no
15840 else
15841   echo "$as_me: failed program was:" >&5
15842 sed 's/^/| /' conftest.$ac_ext >&5
15843
15844         gt_cv_inttypes_pri_broken=yes
15845 fi
15846
15847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15848
15849 fi
15850 { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
15851 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
15852   fi
15853   if test "$gt_cv_inttypes_pri_broken" = yes; then
15854
15855 cat >>confdefs.h <<_ACEOF
15856 #define PRI_MACROS_BROKEN 1
15857 _ACEOF
15858
15859     PRI_MACROS_BROKEN=1
15860   else
15861     PRI_MACROS_BROKEN=0
15862   fi
15863
15864
15865 { echo "$as_me:$LINENO: checking whether imaxabs is declared" >&5
15866 echo $ECHO_N "checking whether imaxabs is declared... $ECHO_C" >&6; }
15867 if test "${ac_cv_have_decl_imaxabs+set}" = set; then
15868   echo $ECHO_N "(cached) $ECHO_C" >&6
15869 else
15870   cat >conftest.$ac_ext <<_ACEOF
15871 /* confdefs.h.  */
15872 _ACEOF
15873 cat confdefs.h >>conftest.$ac_ext
15874 cat >>conftest.$ac_ext <<_ACEOF
15875 /* end confdefs.h.  */
15876 $ac_includes_default
15877 int
15878 main ()
15879 {
15880 #ifndef imaxabs
15881   (void) imaxabs;
15882 #endif
15883
15884   ;
15885   return 0;
15886 }
15887 _ACEOF
15888 rm -f conftest.$ac_objext
15889 if { (ac_try="$ac_compile"
15890 case "(($ac_try" in
15891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15892   *) ac_try_echo=$ac_try;;
15893 esac
15894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15895   (eval "$ac_compile") 2>conftest.er1
15896   ac_status=$?
15897   grep -v '^ *+' conftest.er1 >conftest.err
15898   rm -f conftest.er1
15899   cat conftest.err >&5
15900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15901   (exit $ac_status); } && {
15902          test -z "$ac_c_werror_flag" ||
15903          test ! -s conftest.err
15904        } && test -s conftest.$ac_objext; then
15905   ac_cv_have_decl_imaxabs=yes
15906 else
15907   echo "$as_me: failed program was:" >&5
15908 sed 's/^/| /' conftest.$ac_ext >&5
15909
15910         ac_cv_have_decl_imaxabs=no
15911 fi
15912
15913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15914 fi
15915 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_imaxabs" >&5
15916 echo "${ECHO_T}$ac_cv_have_decl_imaxabs" >&6; }
15917 if test $ac_cv_have_decl_imaxabs = yes; then
15918
15919 cat >>confdefs.h <<_ACEOF
15920 #define HAVE_DECL_IMAXABS 1
15921 _ACEOF
15922
15923
15924 else
15925   cat >>confdefs.h <<_ACEOF
15926 #define HAVE_DECL_IMAXABS 0
15927 _ACEOF
15928
15929
15930 fi
15931
15932
15933 { echo "$as_me:$LINENO: checking whether imaxdiv is declared" >&5
15934 echo $ECHO_N "checking whether imaxdiv is declared... $ECHO_C" >&6; }
15935 if test "${ac_cv_have_decl_imaxdiv+set}" = set; then
15936   echo $ECHO_N "(cached) $ECHO_C" >&6
15937 else
15938   cat >conftest.$ac_ext <<_ACEOF
15939 /* confdefs.h.  */
15940 _ACEOF
15941 cat confdefs.h >>conftest.$ac_ext
15942 cat >>conftest.$ac_ext <<_ACEOF
15943 /* end confdefs.h.  */
15944 $ac_includes_default
15945 int
15946 main ()
15947 {
15948 #ifndef imaxdiv
15949   (void) imaxdiv;
15950 #endif
15951
15952   ;
15953   return 0;
15954 }
15955 _ACEOF
15956 rm -f conftest.$ac_objext
15957 if { (ac_try="$ac_compile"
15958 case "(($ac_try" in
15959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15960   *) ac_try_echo=$ac_try;;
15961 esac
15962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15963   (eval "$ac_compile") 2>conftest.er1
15964   ac_status=$?
15965   grep -v '^ *+' conftest.er1 >conftest.err
15966   rm -f conftest.er1
15967   cat conftest.err >&5
15968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15969   (exit $ac_status); } && {
15970          test -z "$ac_c_werror_flag" ||
15971          test ! -s conftest.err
15972        } && test -s conftest.$ac_objext; then
15973   ac_cv_have_decl_imaxdiv=yes
15974 else
15975   echo "$as_me: failed program was:" >&5
15976 sed 's/^/| /' conftest.$ac_ext >&5
15977
15978         ac_cv_have_decl_imaxdiv=no
15979 fi
15980
15981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15982 fi
15983 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_imaxdiv" >&5
15984 echo "${ECHO_T}$ac_cv_have_decl_imaxdiv" >&6; }
15985 if test $ac_cv_have_decl_imaxdiv = yes; then
15986
15987 cat >>confdefs.h <<_ACEOF
15988 #define HAVE_DECL_IMAXDIV 1
15989 _ACEOF
15990
15991
15992 else
15993   cat >>confdefs.h <<_ACEOF
15994 #define HAVE_DECL_IMAXDIV 0
15995 _ACEOF
15996
15997
15998 fi
15999
16000
16001 { echo "$as_me:$LINENO: checking whether strtoimax is declared" >&5
16002 echo $ECHO_N "checking whether strtoimax is declared... $ECHO_C" >&6; }
16003 if test "${ac_cv_have_decl_strtoimax+set}" = set; then
16004   echo $ECHO_N "(cached) $ECHO_C" >&6
16005 else
16006   cat >conftest.$ac_ext <<_ACEOF
16007 /* confdefs.h.  */
16008 _ACEOF
16009 cat confdefs.h >>conftest.$ac_ext
16010 cat >>conftest.$ac_ext <<_ACEOF
16011 /* end confdefs.h.  */
16012 $ac_includes_default
16013 int
16014 main ()
16015 {
16016 #ifndef strtoimax
16017   (void) strtoimax;
16018 #endif
16019
16020   ;
16021   return 0;
16022 }
16023 _ACEOF
16024 rm -f conftest.$ac_objext
16025 if { (ac_try="$ac_compile"
16026 case "(($ac_try" in
16027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16028   *) ac_try_echo=$ac_try;;
16029 esac
16030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16031   (eval "$ac_compile") 2>conftest.er1
16032   ac_status=$?
16033   grep -v '^ *+' conftest.er1 >conftest.err
16034   rm -f conftest.er1
16035   cat conftest.err >&5
16036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16037   (exit $ac_status); } && {
16038          test -z "$ac_c_werror_flag" ||
16039          test ! -s conftest.err
16040        } && test -s conftest.$ac_objext; then
16041   ac_cv_have_decl_strtoimax=yes
16042 else
16043   echo "$as_me: failed program was:" >&5
16044 sed 's/^/| /' conftest.$ac_ext >&5
16045
16046         ac_cv_have_decl_strtoimax=no
16047 fi
16048
16049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16050 fi
16051 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoimax" >&5
16052 echo "${ECHO_T}$ac_cv_have_decl_strtoimax" >&6; }
16053 if test $ac_cv_have_decl_strtoimax = yes; then
16054
16055 cat >>confdefs.h <<_ACEOF
16056 #define HAVE_DECL_STRTOIMAX 1
16057 _ACEOF
16058
16059
16060 else
16061   cat >>confdefs.h <<_ACEOF
16062 #define HAVE_DECL_STRTOIMAX 0
16063 _ACEOF
16064
16065
16066 fi
16067
16068
16069 { echo "$as_me:$LINENO: checking whether strtoumax is declared" >&5
16070 echo $ECHO_N "checking whether strtoumax is declared... $ECHO_C" >&6; }
16071 if test "${ac_cv_have_decl_strtoumax+set}" = set; then
16072   echo $ECHO_N "(cached) $ECHO_C" >&6
16073 else
16074   cat >conftest.$ac_ext <<_ACEOF
16075 /* confdefs.h.  */
16076 _ACEOF
16077 cat confdefs.h >>conftest.$ac_ext
16078 cat >>conftest.$ac_ext <<_ACEOF
16079 /* end confdefs.h.  */
16080 $ac_includes_default
16081 int
16082 main ()
16083 {
16084 #ifndef strtoumax
16085   (void) strtoumax;
16086 #endif
16087
16088   ;
16089   return 0;
16090 }
16091 _ACEOF
16092 rm -f conftest.$ac_objext
16093 if { (ac_try="$ac_compile"
16094 case "(($ac_try" in
16095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16096   *) ac_try_echo=$ac_try;;
16097 esac
16098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16099   (eval "$ac_compile") 2>conftest.er1
16100   ac_status=$?
16101   grep -v '^ *+' conftest.er1 >conftest.err
16102   rm -f conftest.er1
16103   cat conftest.err >&5
16104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16105   (exit $ac_status); } && {
16106          test -z "$ac_c_werror_flag" ||
16107          test ! -s conftest.err
16108        } && test -s conftest.$ac_objext; then
16109   ac_cv_have_decl_strtoumax=yes
16110 else
16111   echo "$as_me: failed program was:" >&5
16112 sed 's/^/| /' conftest.$ac_ext >&5
16113
16114         ac_cv_have_decl_strtoumax=no
16115 fi
16116
16117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16118 fi
16119 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoumax" >&5
16120 echo "${ECHO_T}$ac_cv_have_decl_strtoumax" >&6; }
16121 if test $ac_cv_have_decl_strtoumax = yes; then
16122
16123 cat >>confdefs.h <<_ACEOF
16124 #define HAVE_DECL_STRTOUMAX 1
16125 _ACEOF
16126
16127
16128 else
16129   cat >>confdefs.h <<_ACEOF
16130 #define HAVE_DECL_STRTOUMAX 0
16131 _ACEOF
16132
16133
16134 fi
16135
16136
16137
16138   GNULIB_IMAXABS=0;
16139   GNULIB_IMAXDIV=0;
16140   GNULIB_STRTOIMAX=0;
16141   GNULIB_STRTOUMAX=0;
16142     HAVE_DECL_IMAXABS=1;
16143   HAVE_DECL_IMAXDIV=1;
16144   HAVE_DECL_STRTOIMAX=1;
16145   HAVE_DECL_STRTOUMAX=1;
16146
16147
16148
16149
16150     { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
16151 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
16152 if test "${ac_cv_gnu_library_2_1+set}" = set; then
16153   echo $ECHO_N "(cached) $ECHO_C" >&6
16154 else
16155   cat >conftest.$ac_ext <<_ACEOF
16156 /* confdefs.h.  */
16157 _ACEOF
16158 cat confdefs.h >>conftest.$ac_ext
16159 cat >>conftest.$ac_ext <<_ACEOF
16160 /* end confdefs.h.  */
16161
16162 #include <features.h>
16163 #ifdef __GNU_LIBRARY__
16164  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
16165   Lucky GNU user
16166  #endif
16167 #endif
16168
16169 _ACEOF
16170 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16171   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
16172   ac_cv_gnu_library_2_1=yes
16173 else
16174   ac_cv_gnu_library_2_1=no
16175 fi
16176 rm -f conftest*
16177
16178
16179
16180 fi
16181 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
16182 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
16183
16184     GLIBC21="$ac_cv_gnu_library_2_1"
16185
16186
16187
16188   GNULIB_LCHMOD=0;
16189   GNULIB_LSTAT=0;
16190     HAVE_LCHMOD=1;
16191   REPLACE_LSTAT=0;
16192   REPLACE_MKDIR=0;
16193
16194
16195
16196
16197   { echo "$as_me:$LINENO: checking whether malloc, realloc, calloc are POSIX compliant" >&5
16198 echo $ECHO_N "checking whether malloc, realloc, calloc are POSIX compliant... $ECHO_C" >&6; }
16199 if test "${gl_cv_func_malloc_posix+set}" = set; then
16200   echo $ECHO_N "(cached) $ECHO_C" >&6
16201 else
16202
16203                         cat >conftest.$ac_ext <<_ACEOF
16204 /* confdefs.h.  */
16205 _ACEOF
16206 cat confdefs.h >>conftest.$ac_ext
16207 cat >>conftest.$ac_ext <<_ACEOF
16208 /* end confdefs.h.  */
16209
16210 int
16211 main ()
16212 {
16213 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
16214          choke me
16215          #endif
16216
16217   ;
16218   return 0;
16219 }
16220 _ACEOF
16221 rm -f conftest.$ac_objext
16222 if { (ac_try="$ac_compile"
16223 case "(($ac_try" in
16224   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16225   *) ac_try_echo=$ac_try;;
16226 esac
16227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16228   (eval "$ac_compile") 2>conftest.er1
16229   ac_status=$?
16230   grep -v '^ *+' conftest.er1 >conftest.err
16231   rm -f conftest.er1
16232   cat conftest.err >&5
16233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16234   (exit $ac_status); } && {
16235          test -z "$ac_c_werror_flag" ||
16236          test ! -s conftest.err
16237        } && test -s conftest.$ac_objext; then
16238   gl_cv_func_malloc_posix=yes
16239 else
16240   echo "$as_me: failed program was:" >&5
16241 sed 's/^/| /' conftest.$ac_ext >&5
16242
16243         gl_cv_func_malloc_posix=no
16244 fi
16245
16246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16247
16248 fi
16249 { echo "$as_me:$LINENO: result: $gl_cv_func_malloc_posix" >&5
16250 echo "${ECHO_T}$gl_cv_func_malloc_posix" >&6; }
16251
16252
16253   GNULIB_MALLOC_POSIX=0;
16254   GNULIB_REALLOC_POSIX=0;
16255   GNULIB_CALLOC_POSIX=0;
16256   GNULIB_ATOLL=0;
16257   GNULIB_GETLOADAVG=0;
16258   GNULIB_GETSUBOPT=0;
16259   GNULIB_MKDTEMP=0;
16260   GNULIB_MKSTEMP=0;
16261   GNULIB_PUTENV=0;
16262   GNULIB_RANDOM_R=0;
16263   GNULIB_RPMATCH=0;
16264   GNULIB_SETENV=0;
16265   GNULIB_STRTOD=0;
16266   GNULIB_STRTOLL=0;
16267   GNULIB_STRTOULL=0;
16268   GNULIB_UNSETENV=0;
16269     HAVE_ATOLL=1;
16270   HAVE_CALLOC_POSIX=1;
16271   HAVE_GETSUBOPT=1;
16272   HAVE_MALLOC_POSIX=1;
16273   HAVE_MKDTEMP=1;
16274   HAVE_REALLOC_POSIX=1;
16275   HAVE_RANDOM_R=1;
16276   HAVE_RPMATCH=1;
16277   HAVE_SETENV=1;
16278   HAVE_STRTOD=1;
16279   HAVE_STRTOLL=1;
16280   HAVE_STRTOULL=1;
16281   HAVE_STRUCT_RANDOM_DATA=1;
16282   HAVE_SYS_LOADAVG_H=0;
16283   HAVE_UNSETENV=1;
16284   HAVE_DECL_GETLOADAVG=1;
16285   REPLACE_MKSTEMP=0;
16286   REPLACE_PUTENV=0;
16287   REPLACE_STRTOD=0;
16288   VOID_UNSETENV=0;
16289
16290
16291
16292 for ac_header in stdlib.h
16293 do
16294 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16295 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16296   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16297 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16298 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16299   echo $ECHO_N "(cached) $ECHO_C" >&6
16300 fi
16301 ac_res=`eval echo '${'$as_ac_Header'}'`
16302                { echo "$as_me:$LINENO: result: $ac_res" >&5
16303 echo "${ECHO_T}$ac_res" >&6; }
16304 else
16305   # Is the header compilable?
16306 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16307 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16308 cat >conftest.$ac_ext <<_ACEOF
16309 /* confdefs.h.  */
16310 _ACEOF
16311 cat confdefs.h >>conftest.$ac_ext
16312 cat >>conftest.$ac_ext <<_ACEOF
16313 /* end confdefs.h.  */
16314 $ac_includes_default
16315 #include <$ac_header>
16316 _ACEOF
16317 rm -f conftest.$ac_objext
16318 if { (ac_try="$ac_compile"
16319 case "(($ac_try" in
16320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16321   *) ac_try_echo=$ac_try;;
16322 esac
16323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16324   (eval "$ac_compile") 2>conftest.er1
16325   ac_status=$?
16326   grep -v '^ *+' conftest.er1 >conftest.err
16327   rm -f conftest.er1
16328   cat conftest.err >&5
16329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16330   (exit $ac_status); } && {
16331          test -z "$ac_c_werror_flag" ||
16332          test ! -s conftest.err
16333        } && test -s conftest.$ac_objext; then
16334   ac_header_compiler=yes
16335 else
16336   echo "$as_me: failed program was:" >&5
16337 sed 's/^/| /' conftest.$ac_ext >&5
16338
16339         ac_header_compiler=no
16340 fi
16341
16342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16343 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16344 echo "${ECHO_T}$ac_header_compiler" >&6; }
16345
16346 # Is the header present?
16347 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16348 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16349 cat >conftest.$ac_ext <<_ACEOF
16350 /* confdefs.h.  */
16351 _ACEOF
16352 cat confdefs.h >>conftest.$ac_ext
16353 cat >>conftest.$ac_ext <<_ACEOF
16354 /* end confdefs.h.  */
16355 #include <$ac_header>
16356 _ACEOF
16357 if { (ac_try="$ac_cpp conftest.$ac_ext"
16358 case "(($ac_try" in
16359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16360   *) ac_try_echo=$ac_try;;
16361 esac
16362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16363   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16364   ac_status=$?
16365   grep -v '^ *+' conftest.er1 >conftest.err
16366   rm -f conftest.er1
16367   cat conftest.err >&5
16368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16369   (exit $ac_status); } >/dev/null && {
16370          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16371          test ! -s conftest.err
16372        }; then
16373   ac_header_preproc=yes
16374 else
16375   echo "$as_me: failed program was:" >&5
16376 sed 's/^/| /' conftest.$ac_ext >&5
16377
16378   ac_header_preproc=no
16379 fi
16380
16381 rm -f conftest.err conftest.$ac_ext
16382 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16383 echo "${ECHO_T}$ac_header_preproc" >&6; }
16384
16385 # So?  What about this header?
16386 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16387   yes:no: )
16388     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16389 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16390     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16391 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16392     ac_header_preproc=yes
16393     ;;
16394   no:yes:* )
16395     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16396 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16397     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16398 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16399     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16400 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16401     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16402 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16403     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16404 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16405     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16406 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16407     ( cat <<\_ASBOX
16408 ## ------------------------------ ##
16409 ## Report this to bug-tar@gnu.org ##
16410 ## ------------------------------ ##
16411 _ASBOX
16412      ) | sed "s/^/$as_me: WARNING:     /" >&2
16413     ;;
16414 esac
16415 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16416 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16417 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16418   echo $ECHO_N "(cached) $ECHO_C" >&6
16419 else
16420   eval "$as_ac_Header=\$ac_header_preproc"
16421 fi
16422 ac_res=`eval echo '${'$as_ac_Header'}'`
16423                { echo "$as_me:$LINENO: result: $ac_res" >&5
16424 echo "${ECHO_T}$ac_res" >&6; }
16425
16426 fi
16427 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16428   cat >>confdefs.h <<_ACEOF
16429 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16430 _ACEOF
16431
16432 fi
16433
16434 done
16435
16436 { echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
16437 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; }
16438 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
16439   echo $ECHO_N "(cached) $ECHO_C" >&6
16440 else
16441   if test "$cross_compiling" = yes; then
16442   ac_cv_func_malloc_0_nonnull=no
16443 else
16444   cat >conftest.$ac_ext <<_ACEOF
16445 /* confdefs.h.  */
16446 _ACEOF
16447 cat confdefs.h >>conftest.$ac_ext
16448 cat >>conftest.$ac_ext <<_ACEOF
16449 /* end confdefs.h.  */
16450 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
16451 # include <stdlib.h>
16452 #else
16453 char *malloc ();
16454 #endif
16455
16456 int
16457 main ()
16458 {
16459 return ! malloc (0);
16460   ;
16461   return 0;
16462 }
16463 _ACEOF
16464 rm -f conftest$ac_exeext
16465 if { (ac_try="$ac_link"
16466 case "(($ac_try" in
16467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16468   *) ac_try_echo=$ac_try;;
16469 esac
16470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16471   (eval "$ac_link") 2>&5
16472   ac_status=$?
16473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16474   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16475   { (case "(($ac_try" in
16476   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16477   *) ac_try_echo=$ac_try;;
16478 esac
16479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16480   (eval "$ac_try") 2>&5
16481   ac_status=$?
16482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16483   (exit $ac_status); }; }; then
16484   ac_cv_func_malloc_0_nonnull=yes
16485 else
16486   echo "$as_me: program exited with status $ac_status" >&5
16487 echo "$as_me: failed program was:" >&5
16488 sed 's/^/| /' conftest.$ac_ext >&5
16489
16490 ( exit $ac_status )
16491 ac_cv_func_malloc_0_nonnull=no
16492 fi
16493 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16494 fi
16495
16496
16497 fi
16498 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
16499 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
16500 if test $ac_cv_func_malloc_0_nonnull = yes; then
16501   gl_cv_func_malloc_0_nonnull=1
16502 else
16503   gl_cv_func_malloc_0_nonnull=0
16504 fi
16505
16506
16507
16508 cat >>confdefs.h <<_ACEOF
16509 #define MALLOC_0_IS_NONNULL $gl_cv_func_malloc_0_nonnull
16510 _ACEOF
16511
16512
16513
16514
16515
16516
16517
16518
16519
16520   { echo "$as_me:$LINENO: checking for a traditional japanese locale" >&5
16521 echo $ECHO_N "checking for a traditional japanese locale... $ECHO_C" >&6; }
16522 if test "${gt_cv_locale_ja+set}" = set; then
16523   echo $ECHO_N "(cached) $ECHO_C" >&6
16524 else
16525
16526     cat >conftest.$ac_ext <<_ACEOF
16527 /* confdefs.h.  */
16528 _ACEOF
16529 cat confdefs.h >>conftest.$ac_ext
16530 cat >>conftest.$ac_ext <<_ACEOF
16531 /* end confdefs.h.  */
16532
16533 #include <locale.h>
16534 #include <time.h>
16535 #if HAVE_LANGINFO_CODESET
16536 # include <langinfo.h>
16537 #endif
16538 #include <stdlib.h>
16539 #include <string.h>
16540 struct tm t;
16541 char buf[16];
16542 int main ()
16543 {
16544   const char *p;
16545   /* Check whether the given locale name is recognized by the system.  */
16546   if (setlocale (LC_ALL, "") == NULL) return 1;
16547   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
16548      On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
16549      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
16550      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
16551      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
16552      some unit tests fail.  */
16553 #if HAVE_LANGINFO_CODESET
16554   {
16555     const char *cs = nl_langinfo (CODESET);
16556     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
16557       return 1;
16558   }
16559 #endif
16560 #ifdef __CYGWIN__
16561   /* On Cygwin, avoid locale names without encoding suffix, because the
16562      locale_charset() function relies on the encoding suffix.  Note that
16563      LC_ALL is set on the command line.  */
16564   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
16565 #endif
16566   /* Check whether MB_CUR_MAX is > 1.  This excludes the dysfunctional locales
16567      on Cygwin 1.5.x.  */
16568   if (MB_CUR_MAX == 1)
16569     return 1;
16570   /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
16571      This excludes the UTF-8 encoding.  */
16572   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
16573   if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
16574   for (p = buf; *p != '\0'; p++)
16575     if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
16576       return 1;
16577   return 0;
16578 }
16579
16580 _ACEOF
16581     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16582   (eval $ac_link) 2>&5
16583   ac_status=$?
16584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16585   (exit $ac_status); } && test -s conftest$ac_exeext; then
16586       # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
16587       # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
16588       # configure script would override the LC_ALL setting. Likewise for
16589       # LC_CTYPE, which is also set at the beginning of the configure script.
16590       # Test for the AIX locale name.
16591       if (LC_ALL=ja_JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
16592         gt_cv_locale_ja=ja_JP
16593       else
16594         # Test for the locale name with explicit encoding suffix.
16595         if (LC_ALL=ja_JP.EUC-JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
16596           gt_cv_locale_ja=ja_JP.EUC-JP
16597         else
16598           # Test for the HP-UX, OSF/1, NetBSD locale name.
16599           if (LC_ALL=ja_JP.eucJP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
16600             gt_cv_locale_ja=ja_JP.eucJP
16601           else
16602             # Test for the IRIX, FreeBSD locale name.
16603             if (LC_ALL=ja_JP.EUC LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
16604               gt_cv_locale_ja=ja_JP.EUC
16605             else
16606               # Test for the Solaris 7 locale name.
16607               if (LC_ALL=ja LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
16608                 gt_cv_locale_ja=ja
16609               else
16610                 # Special test for NetBSD 1.6.
16611                 if test -f /usr/share/locale/ja_JP.eucJP/LC_CTYPE; then
16612                   gt_cv_locale_ja=ja_JP.eucJP
16613                 else
16614                   # None found.
16615                   gt_cv_locale_ja=none
16616                 fi
16617               fi
16618             fi
16619           fi
16620         fi
16621       fi
16622     fi
16623     rm -fr conftest*
16624
16625 fi
16626 { echo "$as_me:$LINENO: result: $gt_cv_locale_ja" >&5
16627 echo "${ECHO_T}$gt_cv_locale_ja" >&6; }
16628   LOCALE_JA=$gt_cv_locale_ja
16629
16630
16631
16632
16633   { echo "$as_me:$LINENO: checking for a french Unicode locale" >&5
16634 echo $ECHO_N "checking for a french Unicode locale... $ECHO_C" >&6; }
16635 if test "${gt_cv_locale_fr_utf8+set}" = set; then
16636   echo $ECHO_N "(cached) $ECHO_C" >&6
16637 else
16638
16639     cat >conftest.$ac_ext <<_ACEOF
16640 /* confdefs.h.  */
16641 _ACEOF
16642 cat confdefs.h >>conftest.$ac_ext
16643 cat >>conftest.$ac_ext <<_ACEOF
16644 /* end confdefs.h.  */
16645
16646 #include <locale.h>
16647 #include <time.h>
16648 #if HAVE_LANGINFO_CODESET
16649 # include <langinfo.h>
16650 #endif
16651 #include <stdlib.h>
16652 #include <string.h>
16653 struct tm t;
16654 char buf[16];
16655 int main () {
16656   /* On BeOS and Haiku, locales are not implemented in libc.  Rather, libintl
16657      imitates locale dependent behaviour by looking at the environment
16658      variables, and all locales use the UTF-8 encoding.  */
16659 #if !(defined __BEOS__ || defined __HAIKU__)
16660   /* Check whether the given locale name is recognized by the system.  */
16661   if (setlocale (LC_ALL, "") == NULL) return 1;
16662   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
16663      On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
16664      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
16665      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
16666      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
16667      some unit tests fail.  */
16668 # if HAVE_LANGINFO_CODESET
16669   {
16670     const char *cs = nl_langinfo (CODESET);
16671     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
16672       return 1;
16673   }
16674 # endif
16675 # ifdef __CYGWIN__
16676   /* On Cygwin, avoid locale names without encoding suffix, because the
16677      locale_charset() function relies on the encoding suffix.  Note that
16678      LC_ALL is set on the command line.  */
16679   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
16680 # endif
16681   /* Check whether in the abbreviation of the second month, the second
16682      character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
16683      two bytes long, with UTF-8 encoding.  */
16684   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
16685   if (strftime (buf, sizeof (buf), "%b", &t) < 4
16686       || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
16687     return 1;
16688 #endif
16689   /* Check whether the decimal separator is a comma.
16690      On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
16691      are nl_langinfo(RADIXCHAR) are both ".".  */
16692   if (localeconv () ->decimal_point[0] != ',') return 1;
16693   return 0;
16694 }
16695
16696 _ACEOF
16697     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16698   (eval $ac_link) 2>&5
16699   ac_status=$?
16700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16701   (exit $ac_status); } && test -s conftest$ac_exeext; then
16702       # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
16703       # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
16704       # configure script would override the LC_ALL setting. Likewise for
16705       # LC_CTYPE, which is also set at the beginning of the configure script.
16706       # Test for the usual locale name.
16707       if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
16708         gt_cv_locale_fr_utf8=fr_FR
16709       else
16710         # Test for the locale name with explicit encoding suffix.
16711         if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
16712           gt_cv_locale_fr_utf8=fr_FR.UTF-8
16713         else
16714           # Test for the Solaris 7 locale name.
16715           if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
16716             gt_cv_locale_fr_utf8=fr.UTF-8
16717           else
16718             # None found.
16719             gt_cv_locale_fr_utf8=none
16720           fi
16721         fi
16722       fi
16723     fi
16724     rm -fr conftest*
16725
16726 fi
16727 { echo "$as_me:$LINENO: result: $gt_cv_locale_fr_utf8" >&5
16728 echo "${ECHO_T}$gt_cv_locale_fr_utf8" >&6; }
16729   LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
16730
16731
16732
16733
16734
16735   { echo "$as_me:$LINENO: checking for a transitional chinese locale" >&5
16736 echo $ECHO_N "checking for a transitional chinese locale... $ECHO_C" >&6; }
16737 if test "${gt_cv_locale_zh_CN+set}" = set; then
16738   echo $ECHO_N "(cached) $ECHO_C" >&6
16739 else
16740
16741     cat >conftest.$ac_ext <<_ACEOF
16742 /* confdefs.h.  */
16743 _ACEOF
16744 cat confdefs.h >>conftest.$ac_ext
16745 cat >>conftest.$ac_ext <<_ACEOF
16746 /* end confdefs.h.  */
16747
16748 #include <locale.h>
16749 #include <stdlib.h>
16750 #include <time.h>
16751 #if HAVE_LANGINFO_CODESET
16752 # include <langinfo.h>
16753 #endif
16754 #include <stdlib.h>
16755 #include <string.h>
16756 struct tm t;
16757 char buf[16];
16758 int main ()
16759 {
16760   const char *p;
16761   /* Check whether the given locale name is recognized by the system.  */
16762   if (setlocale (LC_ALL, "") == NULL) return 1;
16763   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
16764      On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
16765      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
16766      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
16767      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
16768      some unit tests fail.  */
16769 #if HAVE_LANGINFO_CODESET
16770   {
16771     const char *cs = nl_langinfo (CODESET);
16772     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
16773       return 1;
16774   }
16775 #endif
16776 #ifdef __CYGWIN__
16777   /* On Cygwin, avoid locale names without encoding suffix, because the
16778      locale_charset() function relies on the encoding suffix.  Note that
16779      LC_ALL is set on the command line.  */
16780   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
16781 #endif
16782   /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
16783      This excludes the UTF-8 encoding.  */
16784   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
16785   if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
16786   for (p = buf; *p != '\0'; p++)
16787     if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
16788       return 1;
16789   /* Check whether a typical GB18030 multibyte sequence is recognized as a
16790      single wide character.  This excludes the GB2312 and GBK encodings.  */
16791   if (mblen ("\203\062\332\066", 5) != 4)
16792     return 1;
16793   return 0;
16794 }
16795
16796 _ACEOF
16797     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16798   (eval $ac_link) 2>&5
16799   ac_status=$?
16800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16801   (exit $ac_status); } && test -s conftest$ac_exeext; then
16802       # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
16803       # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
16804       # configure script would override the LC_ALL setting. Likewise for
16805       # LC_CTYPE, which is also set at the beginning of the configure script.
16806       # Test for the locale name without encoding suffix.
16807       if (LC_ALL=zh_CN LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
16808         gt_cv_locale_zh_CN=zh_CN
16809       else
16810         # Test for the locale name with explicit encoding suffix.
16811         if (LC_ALL=zh_CN.GB18030 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
16812           gt_cv_locale_zh_CN=zh_CN.GB18030
16813         else
16814           # None found.
16815           gt_cv_locale_zh_CN=none
16816         fi
16817       fi
16818     else
16819       # If there was a link error, due to mblen(), the system is so old that
16820       # it certainly doesn't have a chinese locale.
16821       gt_cv_locale_zh_CN=none
16822     fi
16823     rm -fr conftest*
16824
16825 fi
16826 { echo "$as_me:$LINENO: result: $gt_cv_locale_zh_CN" >&5
16827 echo "${ECHO_T}$gt_cv_locale_zh_CN" >&6; }
16828   LOCALE_ZH_CN=$gt_cv_locale_zh_CN
16829
16830
16831
16832   { echo "$as_me:$LINENO: checking whether mbrtowc and mbstate_t are properly declared" >&5
16833 echo $ECHO_N "checking whether mbrtowc and mbstate_t are properly declared... $ECHO_C" >&6; }
16834 if test "${ac_cv_func_mbrtowc+set}" = set; then
16835   echo $ECHO_N "(cached) $ECHO_C" >&6
16836 else
16837   cat >conftest.$ac_ext <<_ACEOF
16838 /* confdefs.h.  */
16839 _ACEOF
16840 cat confdefs.h >>conftest.$ac_ext
16841 cat >>conftest.$ac_ext <<_ACEOF
16842 /* end confdefs.h.  */
16843 #include <wchar.h>
16844 int
16845 main ()
16846 {
16847 wchar_t wc;
16848               char const s[] = "";
16849               size_t n = 1;
16850               mbstate_t state;
16851               return ! (sizeof state && (mbrtowc) (&wc, s, n, &state));
16852   ;
16853   return 0;
16854 }
16855 _ACEOF
16856 rm -f conftest.$ac_objext conftest$ac_exeext
16857 if { (ac_try="$ac_link"
16858 case "(($ac_try" in
16859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16860   *) ac_try_echo=$ac_try;;
16861 esac
16862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16863   (eval "$ac_link") 2>conftest.er1
16864   ac_status=$?
16865   grep -v '^ *+' conftest.er1 >conftest.err
16866   rm -f conftest.er1
16867   cat conftest.err >&5
16868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16869   (exit $ac_status); } && {
16870          test -z "$ac_c_werror_flag" ||
16871          test ! -s conftest.err
16872        } && test -s conftest$ac_exeext &&
16873        $as_test_x conftest$ac_exeext; then
16874   ac_cv_func_mbrtowc=yes
16875 else
16876   echo "$as_me: failed program was:" >&5
16877 sed 's/^/| /' conftest.$ac_ext >&5
16878
16879         ac_cv_func_mbrtowc=no
16880 fi
16881
16882 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16883       conftest$ac_exeext conftest.$ac_ext
16884 fi
16885 { echo "$as_me:$LINENO: result: $ac_cv_func_mbrtowc" >&5
16886 echo "${ECHO_T}$ac_cv_func_mbrtowc" >&6; }
16887   if test $ac_cv_func_mbrtowc = yes; then
16888
16889 cat >>confdefs.h <<\_ACEOF
16890 #define HAVE_MBRTOWC 1
16891 _ACEOF
16892
16893   fi
16894
16895
16896   GNULIB_MEMMEM=0;
16897   GNULIB_MEMPCPY=0;
16898   GNULIB_MEMRCHR=0;
16899   GNULIB_RAWMEMCHR=0;
16900   GNULIB_STPCPY=0;
16901   GNULIB_STPNCPY=0;
16902   GNULIB_STRCHRNUL=0;
16903   GNULIB_STRDUP=0;
16904   GNULIB_STRNDUP=0;
16905   GNULIB_STRNLEN=0;
16906   GNULIB_STRPBRK=0;
16907   GNULIB_STRSEP=0;
16908   GNULIB_STRSTR=0;
16909   GNULIB_STRCASESTR=0;
16910   GNULIB_STRTOK_R=0;
16911   GNULIB_MBSLEN=0;
16912   GNULIB_MBSNLEN=0;
16913   GNULIB_MBSCHR=0;
16914   GNULIB_MBSRCHR=0;
16915   GNULIB_MBSSTR=0;
16916   GNULIB_MBSCASECMP=0;
16917   GNULIB_MBSNCASECMP=0;
16918   GNULIB_MBSPCASECMP=0;
16919   GNULIB_MBSCASESTR=0;
16920   GNULIB_MBSCSPN=0;
16921   GNULIB_MBSPBRK=0;
16922   GNULIB_MBSSPN=0;
16923   GNULIB_MBSSEP=0;
16924   GNULIB_MBSTOK_R=0;
16925   GNULIB_STRERROR=0;
16926   GNULIB_STRSIGNAL=0;
16927   GNULIB_STRVERSCMP=0;
16928     HAVE_DECL_MEMMEM=1;
16929   HAVE_MEMPCPY=1;
16930   HAVE_DECL_MEMRCHR=1;
16931   HAVE_RAWMEMCHR=1;
16932   HAVE_STPCPY=1;
16933   HAVE_STPNCPY=1;
16934   HAVE_STRCHRNUL=1;
16935   HAVE_DECL_STRDUP=1;
16936   HAVE_STRNDUP=1;
16937   HAVE_DECL_STRNDUP=1;
16938   HAVE_DECL_STRNLEN=1;
16939   HAVE_STRPBRK=1;
16940   HAVE_STRSEP=1;
16941   HAVE_STRCASESTR=1;
16942   HAVE_DECL_STRTOK_R=1;
16943   HAVE_DECL_STRERROR=1;
16944   HAVE_DECL_STRSIGNAL=1;
16945   HAVE_STRVERSCMP=1;
16946   REPLACE_MEMMEM=0;
16947   REPLACE_STRDUP=0;
16948   REPLACE_STRSTR=0;
16949   REPLACE_STRCASESTR=0;
16950   REPLACE_STRERROR=0;
16951   REPLACE_STRSIGNAL=0;
16952
16953 { echo "$as_me:$LINENO: checking whether memrchr is declared" >&5
16954 echo $ECHO_N "checking whether memrchr is declared... $ECHO_C" >&6; }
16955 if test "${ac_cv_have_decl_memrchr+set}" = set; then
16956   echo $ECHO_N "(cached) $ECHO_C" >&6
16957 else
16958   cat >conftest.$ac_ext <<_ACEOF
16959 /* confdefs.h.  */
16960 _ACEOF
16961 cat confdefs.h >>conftest.$ac_ext
16962 cat >>conftest.$ac_ext <<_ACEOF
16963 /* end confdefs.h.  */
16964 $ac_includes_default
16965 int
16966 main ()
16967 {
16968 #ifndef memrchr
16969   (void) memrchr;
16970 #endif
16971
16972   ;
16973   return 0;
16974 }
16975 _ACEOF
16976 rm -f conftest.$ac_objext
16977 if { (ac_try="$ac_compile"
16978 case "(($ac_try" in
16979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16980   *) ac_try_echo=$ac_try;;
16981 esac
16982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16983   (eval "$ac_compile") 2>conftest.er1
16984   ac_status=$?
16985   grep -v '^ *+' conftest.er1 >conftest.err
16986   rm -f conftest.er1
16987   cat conftest.err >&5
16988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16989   (exit $ac_status); } && {
16990          test -z "$ac_c_werror_flag" ||
16991          test ! -s conftest.err
16992        } && test -s conftest.$ac_objext; then
16993   ac_cv_have_decl_memrchr=yes
16994 else
16995   echo "$as_me: failed program was:" >&5
16996 sed 's/^/| /' conftest.$ac_ext >&5
16997
16998         ac_cv_have_decl_memrchr=no
16999 fi
17000
17001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17002 fi
17003 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_memrchr" >&5
17004 echo "${ECHO_T}$ac_cv_have_decl_memrchr" >&6; }
17005 if test $ac_cv_have_decl_memrchr = yes; then
17006
17007 cat >>confdefs.h <<_ACEOF
17008 #define HAVE_DECL_MEMRCHR 1
17009 _ACEOF
17010
17011
17012 else
17013   cat >>confdefs.h <<_ACEOF
17014 #define HAVE_DECL_MEMRCHR 0
17015 _ACEOF
17016
17017
17018 fi
17019
17020
17021
17022
17023
17024
17025
17026
17027
17028
17029
17030
17031 { echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
17032 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6; }
17033 if test "${ac_cv_have_decl_snprintf+set}" = set; then
17034   echo $ECHO_N "(cached) $ECHO_C" >&6
17035 else
17036   cat >conftest.$ac_ext <<_ACEOF
17037 /* confdefs.h.  */
17038 _ACEOF
17039 cat confdefs.h >>conftest.$ac_ext
17040 cat >>conftest.$ac_ext <<_ACEOF
17041 /* end confdefs.h.  */
17042 $ac_includes_default
17043 int
17044 main ()
17045 {
17046 #ifndef snprintf
17047   (void) snprintf;
17048 #endif
17049
17050   ;
17051   return 0;
17052 }
17053 _ACEOF
17054 rm -f conftest.$ac_objext
17055 if { (ac_try="$ac_compile"
17056 case "(($ac_try" in
17057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17058   *) ac_try_echo=$ac_try;;
17059 esac
17060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17061   (eval "$ac_compile") 2>conftest.er1
17062   ac_status=$?
17063   grep -v '^ *+' conftest.er1 >conftest.err
17064   rm -f conftest.er1
17065   cat conftest.err >&5
17066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17067   (exit $ac_status); } && {
17068          test -z "$ac_c_werror_flag" ||
17069          test ! -s conftest.err
17070        } && test -s conftest.$ac_objext; then
17071   ac_cv_have_decl_snprintf=yes
17072 else
17073   echo "$as_me: failed program was:" >&5
17074 sed 's/^/| /' conftest.$ac_ext >&5
17075
17076         ac_cv_have_decl_snprintf=no
17077 fi
17078
17079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17080 fi
17081 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
17082 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6; }
17083 if test $ac_cv_have_decl_snprintf = yes; then
17084
17085 cat >>confdefs.h <<_ACEOF
17086 #define HAVE_DECL_SNPRINTF 1
17087 _ACEOF
17088
17089
17090 else
17091   cat >>confdefs.h <<_ACEOF
17092 #define HAVE_DECL_SNPRINTF 0
17093 _ACEOF
17094
17095
17096 fi
17097
17098
17099
17100
17101
17102
17103
17104
17105
17106     HAVE_STRCASECMP=1;
17107   HAVE_DECL_STRNCASECMP=1;
17108
17109 { echo "$as_me:$LINENO: checking whether strdup is declared" >&5
17110 echo $ECHO_N "checking whether strdup is declared... $ECHO_C" >&6; }
17111 if test "${ac_cv_have_decl_strdup+set}" = set; then
17112   echo $ECHO_N "(cached) $ECHO_C" >&6
17113 else
17114   cat >conftest.$ac_ext <<_ACEOF
17115 /* confdefs.h.  */
17116 _ACEOF
17117 cat confdefs.h >>conftest.$ac_ext
17118 cat >>conftest.$ac_ext <<_ACEOF
17119 /* end confdefs.h.  */
17120 $ac_includes_default
17121 int
17122 main ()
17123 {
17124 #ifndef strdup
17125   (void) strdup;
17126 #endif
17127
17128   ;
17129   return 0;
17130 }
17131 _ACEOF
17132 rm -f conftest.$ac_objext
17133 if { (ac_try="$ac_compile"
17134 case "(($ac_try" in
17135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17136   *) ac_try_echo=$ac_try;;
17137 esac
17138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17139   (eval "$ac_compile") 2>conftest.er1
17140   ac_status=$?
17141   grep -v '^ *+' conftest.er1 >conftest.err
17142   rm -f conftest.er1
17143   cat conftest.err >&5
17144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17145   (exit $ac_status); } && {
17146          test -z "$ac_c_werror_flag" ||
17147          test ! -s conftest.err
17148        } && test -s conftest.$ac_objext; then
17149   ac_cv_have_decl_strdup=yes
17150 else
17151   echo "$as_me: failed program was:" >&5
17152 sed 's/^/| /' conftest.$ac_ext >&5
17153
17154         ac_cv_have_decl_strdup=no
17155 fi
17156
17157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17158 fi
17159 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strdup" >&5
17160 echo "${ECHO_T}$ac_cv_have_decl_strdup" >&6; }
17161 if test $ac_cv_have_decl_strdup = yes; then
17162
17163 cat >>confdefs.h <<_ACEOF
17164 #define HAVE_DECL_STRDUP 1
17165 _ACEOF
17166
17167
17168 else
17169   cat >>confdefs.h <<_ACEOF
17170 #define HAVE_DECL_STRDUP 0
17171 _ACEOF
17172
17173
17174 fi
17175
17176
17177
17178
17179
17180
17181
17182   if test -z "$ERRNO_H"; then
17183     { echo "$as_me:$LINENO: checking for working strerror function" >&5
17184 echo $ECHO_N "checking for working strerror function... $ECHO_C" >&6; }
17185 if test "${gl_cv_func_working_strerror+set}" = set; then
17186   echo $ECHO_N "(cached) $ECHO_C" >&6
17187 else
17188   if test "$cross_compiling" = yes; then
17189            cat >conftest.$ac_ext <<_ACEOF
17190 /* confdefs.h.  */
17191 _ACEOF
17192 cat confdefs.h >>conftest.$ac_ext
17193 cat >>conftest.$ac_ext <<_ACEOF
17194 /* end confdefs.h.  */
17195 #include <string.h>
17196
17197 int
17198 main ()
17199 {
17200 return !*strerror (-2);
17201   ;
17202   return 0;
17203 }
17204 _ACEOF
17205 rm -f conftest.$ac_objext
17206 if { (ac_try="$ac_compile"
17207 case "(($ac_try" in
17208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17209   *) ac_try_echo=$ac_try;;
17210 esac
17211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17212   (eval "$ac_compile") 2>conftest.er1
17213   ac_status=$?
17214   grep -v '^ *+' conftest.er1 >conftest.err
17215   rm -f conftest.er1
17216   cat conftest.err >&5
17217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17218   (exit $ac_status); } && {
17219          test -z "$ac_c_werror_flag" ||
17220          test ! -s conftest.err
17221        } && test -s conftest.$ac_objext; then
17222   gl_cv_func_working_strerror=yes
17223 else
17224   echo "$as_me: failed program was:" >&5
17225 sed 's/^/| /' conftest.$ac_ext >&5
17226
17227         gl_cv_func_working_strerror=no
17228 fi
17229
17230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17231
17232 else
17233   cat >conftest.$ac_ext <<_ACEOF
17234 /* confdefs.h.  */
17235 _ACEOF
17236 cat confdefs.h >>conftest.$ac_ext
17237 cat >>conftest.$ac_ext <<_ACEOF
17238 /* end confdefs.h.  */
17239 #include <string.h>
17240
17241 int
17242 main ()
17243 {
17244 return !*strerror (-2);
17245   ;
17246   return 0;
17247 }
17248 _ACEOF
17249 rm -f conftest$ac_exeext
17250 if { (ac_try="$ac_link"
17251 case "(($ac_try" in
17252   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17253   *) ac_try_echo=$ac_try;;
17254 esac
17255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17256   (eval "$ac_link") 2>&5
17257   ac_status=$?
17258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17259   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17260   { (case "(($ac_try" in
17261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17262   *) ac_try_echo=$ac_try;;
17263 esac
17264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17265   (eval "$ac_try") 2>&5
17266   ac_status=$?
17267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17268   (exit $ac_status); }; }; then
17269   gl_cv_func_working_strerror=yes
17270 else
17271   echo "$as_me: program exited with status $ac_status" >&5
17272 echo "$as_me: failed program was:" >&5
17273 sed 's/^/| /' conftest.$ac_ext >&5
17274
17275 ( exit $ac_status )
17276 gl_cv_func_working_strerror=no
17277 fi
17278 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17279 fi
17280
17281
17282
17283 fi
17284 { echo "$as_me:$LINENO: result: $gl_cv_func_working_strerror" >&5
17285 echo "${ECHO_T}$gl_cv_func_working_strerror" >&6; }
17286     if test $gl_cv_func_working_strerror = no; then
17287                   REPLACE_STRERROR=1
17288     fi
17289   else
17290             REPLACE_STRERROR=1
17291   fi
17292   if test $REPLACE_STRERROR = 1; then
17293
17294   { echo "$as_me:$LINENO: checking whether strerror is declared" >&5
17295 echo $ECHO_N "checking whether strerror is declared... $ECHO_C" >&6; }
17296 if test "${ac_cv_have_decl_strerror+set}" = set; then
17297   echo $ECHO_N "(cached) $ECHO_C" >&6
17298 else
17299   cat >conftest.$ac_ext <<_ACEOF
17300 /* confdefs.h.  */
17301 _ACEOF
17302 cat confdefs.h >>conftest.$ac_ext
17303 cat >>conftest.$ac_ext <<_ACEOF
17304 /* end confdefs.h.  */
17305 $ac_includes_default
17306 int
17307 main ()
17308 {
17309 #ifndef strerror
17310   (void) strerror;
17311 #endif
17312
17313   ;
17314   return 0;
17315 }
17316 _ACEOF
17317 rm -f conftest.$ac_objext
17318 if { (ac_try="$ac_compile"
17319 case "(($ac_try" in
17320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17321   *) ac_try_echo=$ac_try;;
17322 esac
17323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17324   (eval "$ac_compile") 2>conftest.er1
17325   ac_status=$?
17326   grep -v '^ *+' conftest.er1 >conftest.err
17327   rm -f conftest.er1
17328   cat conftest.err >&5
17329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17330   (exit $ac_status); } && {
17331          test -z "$ac_c_werror_flag" ||
17332          test ! -s conftest.err
17333        } && test -s conftest.$ac_objext; then
17334   ac_cv_have_decl_strerror=yes
17335 else
17336   echo "$as_me: failed program was:" >&5
17337 sed 's/^/| /' conftest.$ac_ext >&5
17338
17339         ac_cv_have_decl_strerror=no
17340 fi
17341
17342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17343 fi
17344 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror" >&5
17345 echo "${ECHO_T}$ac_cv_have_decl_strerror" >&6; }
17346 if test $ac_cv_have_decl_strerror = yes; then
17347
17348 cat >>confdefs.h <<_ACEOF
17349 #define HAVE_DECL_STRERROR 1
17350 _ACEOF
17351
17352
17353 else
17354   cat >>confdefs.h <<_ACEOF
17355 #define HAVE_DECL_STRERROR 0
17356 _ACEOF
17357
17358
17359 fi
17360
17361
17362
17363
17364
17365
17366
17367
17368   if test $ac_cv_header_sys_socket_h != yes; then
17369
17370 for ac_header in winsock2.h
17371 do
17372 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17373 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17374   { echo "$as_me:$LINENO: checking for $ac_header" >&5
17375 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17376 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17377   echo $ECHO_N "(cached) $ECHO_C" >&6
17378 fi
17379 ac_res=`eval echo '${'$as_ac_Header'}'`
17380                { echo "$as_me:$LINENO: result: $ac_res" >&5
17381 echo "${ECHO_T}$ac_res" >&6; }
17382 else
17383   # Is the header compilable?
17384 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17385 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17386 cat >conftest.$ac_ext <<_ACEOF
17387 /* confdefs.h.  */
17388 _ACEOF
17389 cat confdefs.h >>conftest.$ac_ext
17390 cat >>conftest.$ac_ext <<_ACEOF
17391 /* end confdefs.h.  */
17392 $ac_includes_default
17393 #include <$ac_header>
17394 _ACEOF
17395 rm -f conftest.$ac_objext
17396 if { (ac_try="$ac_compile"
17397 case "(($ac_try" in
17398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17399   *) ac_try_echo=$ac_try;;
17400 esac
17401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17402   (eval "$ac_compile") 2>conftest.er1
17403   ac_status=$?
17404   grep -v '^ *+' conftest.er1 >conftest.err
17405   rm -f conftest.er1
17406   cat conftest.err >&5
17407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17408   (exit $ac_status); } && {
17409          test -z "$ac_c_werror_flag" ||
17410          test ! -s conftest.err
17411        } && test -s conftest.$ac_objext; then
17412   ac_header_compiler=yes
17413 else
17414   echo "$as_me: failed program was:" >&5
17415 sed 's/^/| /' conftest.$ac_ext >&5
17416
17417         ac_header_compiler=no
17418 fi
17419
17420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17421 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17422 echo "${ECHO_T}$ac_header_compiler" >&6; }
17423
17424 # Is the header present?
17425 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17426 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17427 cat >conftest.$ac_ext <<_ACEOF
17428 /* confdefs.h.  */
17429 _ACEOF
17430 cat confdefs.h >>conftest.$ac_ext
17431 cat >>conftest.$ac_ext <<_ACEOF
17432 /* end confdefs.h.  */
17433 #include <$ac_header>
17434 _ACEOF
17435 if { (ac_try="$ac_cpp conftest.$ac_ext"
17436 case "(($ac_try" in
17437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17438   *) ac_try_echo=$ac_try;;
17439 esac
17440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17441   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17442   ac_status=$?
17443   grep -v '^ *+' conftest.er1 >conftest.err
17444   rm -f conftest.er1
17445   cat conftest.err >&5
17446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17447   (exit $ac_status); } >/dev/null && {
17448          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17449          test ! -s conftest.err
17450        }; then
17451   ac_header_preproc=yes
17452 else
17453   echo "$as_me: failed program was:" >&5
17454 sed 's/^/| /' conftest.$ac_ext >&5
17455
17456   ac_header_preproc=no
17457 fi
17458
17459 rm -f conftest.err conftest.$ac_ext
17460 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17461 echo "${ECHO_T}$ac_header_preproc" >&6; }
17462
17463 # So?  What about this header?
17464 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17465   yes:no: )
17466     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17467 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17468     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17469 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17470     ac_header_preproc=yes
17471     ;;
17472   no:yes:* )
17473     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17474 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17475     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17476 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17477     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17478 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17479     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17480 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17481     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17482 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17483     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17484 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17485     ( cat <<\_ASBOX
17486 ## ------------------------------ ##
17487 ## Report this to bug-tar@gnu.org ##
17488 ## ------------------------------ ##
17489 _ASBOX
17490      ) | sed "s/^/$as_me: WARNING:     /" >&2
17491     ;;
17492 esac
17493 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17494 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17495 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17496   echo $ECHO_N "(cached) $ECHO_C" >&6
17497 else
17498   eval "$as_ac_Header=\$ac_header_preproc"
17499 fi
17500 ac_res=`eval echo '${'$as_ac_Header'}'`
17501                { echo "$as_me:$LINENO: result: $ac_res" >&5
17502 echo "${ECHO_T}$ac_res" >&6; }
17503
17504 fi
17505 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17506   cat >>confdefs.h <<_ACEOF
17507 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17508 _ACEOF
17509
17510 fi
17511
17512 done
17513
17514   fi
17515
17516   fi
17517
17518
17519
17520
17521
17522
17523
17524
17525
17526
17527
17528
17529
17530
17531
17532      if test $gl_cv_have_include_next = yes; then
17533        gl_cv_next_string_h='<'string.h'>'
17534      else
17535        { echo "$as_me:$LINENO: checking absolute name of <string.h>" >&5
17536 echo $ECHO_N "checking absolute name of <string.h>... $ECHO_C" >&6; }
17537 if test "${gl_cv_next_string_h+set}" = set; then
17538   echo $ECHO_N "(cached) $ECHO_C" >&6
17539 else
17540
17541           if test $ac_cv_header_string_h = yes; then
17542             cat >conftest.$ac_ext <<_ACEOF
17543 /* confdefs.h.  */
17544 _ACEOF
17545 cat confdefs.h >>conftest.$ac_ext
17546 cat >>conftest.$ac_ext <<_ACEOF
17547 /* end confdefs.h.  */
17548 #include <string.h>
17549
17550 _ACEOF
17551                                                                     case "$host_os" in
17552               aix*) gl_absname_cpp="$ac_cpp -C" ;;
17553               *)    gl_absname_cpp="$ac_cpp" ;;
17554             esac
17555                                     gl_cv_next_string_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17556                sed -n '\#/string.h#{
17557                  s#.*"\(.*/string.h\)".*#\1#
17558                  s#^/[^/]#//&#
17559                  p
17560                  q
17561                }'`'"'
17562           else
17563             gl_cv_next_string_h='<'string.h'>'
17564           fi
17565
17566 fi
17567 { echo "$as_me:$LINENO: result: $gl_cv_next_string_h" >&5
17568 echo "${ECHO_T}$gl_cv_next_string_h" >&6; }
17569      fi
17570      NEXT_STRING_H=$gl_cv_next_string_h
17571
17572
17573
17574
17575
17576
17577
17578
17579
17580
17581
17582
17583
17584
17585
17586
17587
17588
17589
17590      if test $gl_cv_have_include_next = yes; then
17591        gl_cv_next_strings_h='<'strings.h'>'
17592      else
17593        { echo "$as_me:$LINENO: checking absolute name of <strings.h>" >&5
17594 echo $ECHO_N "checking absolute name of <strings.h>... $ECHO_C" >&6; }
17595 if test "${gl_cv_next_strings_h+set}" = set; then
17596   echo $ECHO_N "(cached) $ECHO_C" >&6
17597 else
17598
17599           if test $ac_cv_header_strings_h = yes; then
17600             cat >conftest.$ac_ext <<_ACEOF
17601 /* confdefs.h.  */
17602 _ACEOF
17603 cat confdefs.h >>conftest.$ac_ext
17604 cat >>conftest.$ac_ext <<_ACEOF
17605 /* end confdefs.h.  */
17606 #include <strings.h>
17607
17608 _ACEOF
17609                                                                     case "$host_os" in
17610               aix*) gl_absname_cpp="$ac_cpp -C" ;;
17611               *)    gl_absname_cpp="$ac_cpp" ;;
17612             esac
17613                                     gl_cv_next_strings_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17614                sed -n '\#/strings.h#{
17615                  s#.*"\(.*/strings.h\)".*#\1#
17616                  s#^/[^/]#//&#
17617                  p
17618                  q
17619                }'`'"'
17620           else
17621             gl_cv_next_strings_h='<'strings.h'>'
17622           fi
17623
17624 fi
17625 { echo "$as_me:$LINENO: result: $gl_cv_next_strings_h" >&5
17626 echo "${ECHO_T}$gl_cv_next_strings_h" >&6; }
17627      fi
17628      NEXT_STRINGS_H=$gl_cv_next_strings_h
17629
17630
17631
17632
17633 { echo "$as_me:$LINENO: checking whether strndup is declared" >&5
17634 echo $ECHO_N "checking whether strndup is declared... $ECHO_C" >&6; }
17635 if test "${ac_cv_have_decl_strndup+set}" = set; then
17636   echo $ECHO_N "(cached) $ECHO_C" >&6
17637 else
17638   cat >conftest.$ac_ext <<_ACEOF
17639 /* confdefs.h.  */
17640 _ACEOF
17641 cat confdefs.h >>conftest.$ac_ext
17642 cat >>conftest.$ac_ext <<_ACEOF
17643 /* end confdefs.h.  */
17644 $ac_includes_default
17645 int
17646 main ()
17647 {
17648 #ifndef strndup
17649   (void) strndup;
17650 #endif
17651
17652   ;
17653   return 0;
17654 }
17655 _ACEOF
17656 rm -f conftest.$ac_objext
17657 if { (ac_try="$ac_compile"
17658 case "(($ac_try" in
17659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17660   *) ac_try_echo=$ac_try;;
17661 esac
17662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17663   (eval "$ac_compile") 2>conftest.er1
17664   ac_status=$?
17665   grep -v '^ *+' conftest.er1 >conftest.err
17666   rm -f conftest.er1
17667   cat conftest.err >&5
17668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17669   (exit $ac_status); } && {
17670          test -z "$ac_c_werror_flag" ||
17671          test ! -s conftest.err
17672        } && test -s conftest.$ac_objext; then
17673   ac_cv_have_decl_strndup=yes
17674 else
17675   echo "$as_me: failed program was:" >&5
17676 sed 's/^/| /' conftest.$ac_ext >&5
17677
17678         ac_cv_have_decl_strndup=no
17679 fi
17680
17681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17682 fi
17683 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strndup" >&5
17684 echo "${ECHO_T}$ac_cv_have_decl_strndup" >&6; }
17685 if test $ac_cv_have_decl_strndup = yes; then
17686
17687 cat >>confdefs.h <<_ACEOF
17688 #define HAVE_DECL_STRNDUP 1
17689 _ACEOF
17690
17691
17692 else
17693   cat >>confdefs.h <<_ACEOF
17694 #define HAVE_DECL_STRNDUP 0
17695 _ACEOF
17696
17697
17698 fi
17699
17700
17701 { echo "$as_me:$LINENO: checking whether strnlen is declared" >&5
17702 echo $ECHO_N "checking whether strnlen is declared... $ECHO_C" >&6; }
17703 if test "${ac_cv_have_decl_strnlen+set}" = set; then
17704   echo $ECHO_N "(cached) $ECHO_C" >&6
17705 else
17706   cat >conftest.$ac_ext <<_ACEOF
17707 /* confdefs.h.  */
17708 _ACEOF
17709 cat confdefs.h >>conftest.$ac_ext
17710 cat >>conftest.$ac_ext <<_ACEOF
17711 /* end confdefs.h.  */
17712 $ac_includes_default
17713 int
17714 main ()
17715 {
17716 #ifndef strnlen
17717   (void) strnlen;
17718 #endif
17719
17720   ;
17721   return 0;
17722 }
17723 _ACEOF
17724 rm -f conftest.$ac_objext
17725 if { (ac_try="$ac_compile"
17726 case "(($ac_try" in
17727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17728   *) ac_try_echo=$ac_try;;
17729 esac
17730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17731   (eval "$ac_compile") 2>conftest.er1
17732   ac_status=$?
17733   grep -v '^ *+' conftest.er1 >conftest.err
17734   rm -f conftest.er1
17735   cat conftest.err >&5
17736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17737   (exit $ac_status); } && {
17738          test -z "$ac_c_werror_flag" ||
17739          test ! -s conftest.err
17740        } && test -s conftest.$ac_objext; then
17741   ac_cv_have_decl_strnlen=yes
17742 else
17743   echo "$as_me: failed program was:" >&5
17744 sed 's/^/| /' conftest.$ac_ext >&5
17745
17746         ac_cv_have_decl_strnlen=no
17747 fi
17748
17749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17750 fi
17751 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strnlen" >&5
17752 echo "${ECHO_T}$ac_cv_have_decl_strnlen" >&6; }
17753 if test $ac_cv_have_decl_strnlen = yes; then
17754
17755 cat >>confdefs.h <<_ACEOF
17756 #define HAVE_DECL_STRNLEN 1
17757 _ACEOF
17758
17759
17760 else
17761   cat >>confdefs.h <<_ACEOF
17762 #define HAVE_DECL_STRNLEN 0
17763 _ACEOF
17764
17765
17766 fi
17767
17768
17769
17770
17771
17772
17773
17774         REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
17775   REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
17776   REPLACE_STRPTIME=GNULIB_PORTCHECK;
17777   REPLACE_TIMEGM=GNULIB_PORTCHECK;
17778
17779
17780
17781
17782
17783
17784
17785
17786
17787
17788   { echo "$as_me:$LINENO: checking for struct timespec in <time.h>" >&5
17789 echo $ECHO_N "checking for struct timespec in <time.h>... $ECHO_C" >&6; }
17790 if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then
17791   echo $ECHO_N "(cached) $ECHO_C" >&6
17792 else
17793   cat >conftest.$ac_ext <<_ACEOF
17794 /* confdefs.h.  */
17795 _ACEOF
17796 cat confdefs.h >>conftest.$ac_ext
17797 cat >>conftest.$ac_ext <<_ACEOF
17798 /* end confdefs.h.  */
17799 #include <time.h>
17800
17801 int
17802 main ()
17803 {
17804 static struct timespec x; x.tv_sec = x.tv_nsec;
17805   ;
17806   return 0;
17807 }
17808 _ACEOF
17809 rm -f conftest.$ac_objext
17810 if { (ac_try="$ac_compile"
17811 case "(($ac_try" in
17812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17813   *) ac_try_echo=$ac_try;;
17814 esac
17815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17816   (eval "$ac_compile") 2>conftest.er1
17817   ac_status=$?
17818   grep -v '^ *+' conftest.er1 >conftest.err
17819   rm -f conftest.er1
17820   cat conftest.err >&5
17821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17822   (exit $ac_status); } && {
17823          test -z "$ac_c_werror_flag" ||
17824          test ! -s conftest.err
17825        } && test -s conftest.$ac_objext; then
17826   gl_cv_sys_struct_timespec_in_time_h=yes
17827 else
17828   echo "$as_me: failed program was:" >&5
17829 sed 's/^/| /' conftest.$ac_ext >&5
17830
17831         gl_cv_sys_struct_timespec_in_time_h=no
17832 fi
17833
17834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17835 fi
17836 { echo "$as_me:$LINENO: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
17837 echo "${ECHO_T}$gl_cv_sys_struct_timespec_in_time_h" >&6; }
17838
17839   TIME_H_DEFINES_STRUCT_TIMESPEC=0
17840   SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
17841   if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
17842     TIME_H_DEFINES_STRUCT_TIMESPEC=1
17843   else
17844     { echo "$as_me:$LINENO: checking for struct timespec in <sys/time.h>" >&5
17845 echo $ECHO_N "checking for struct timespec in <sys/time.h>... $ECHO_C" >&6; }
17846 if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then
17847   echo $ECHO_N "(cached) $ECHO_C" >&6
17848 else
17849   cat >conftest.$ac_ext <<_ACEOF
17850 /* confdefs.h.  */
17851 _ACEOF
17852 cat confdefs.h >>conftest.$ac_ext
17853 cat >>conftest.$ac_ext <<_ACEOF
17854 /* end confdefs.h.  */
17855 #include <sys/time.h>
17856
17857 int
17858 main ()
17859 {
17860 static struct timespec x; x.tv_sec = x.tv_nsec;
17861   ;
17862   return 0;
17863 }
17864 _ACEOF
17865 rm -f conftest.$ac_objext
17866 if { (ac_try="$ac_compile"
17867 case "(($ac_try" in
17868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17869   *) ac_try_echo=$ac_try;;
17870 esac
17871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17872   (eval "$ac_compile") 2>conftest.er1
17873   ac_status=$?
17874   grep -v '^ *+' conftest.er1 >conftest.err
17875   rm -f conftest.er1
17876   cat conftest.err >&5
17877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17878   (exit $ac_status); } && {
17879          test -z "$ac_c_werror_flag" ||
17880          test ! -s conftest.err
17881        } && test -s conftest.$ac_objext; then
17882   gl_cv_sys_struct_timespec_in_sys_time_h=yes
17883 else
17884   echo "$as_me: failed program was:" >&5
17885 sed 's/^/| /' conftest.$ac_ext >&5
17886
17887         gl_cv_sys_struct_timespec_in_sys_time_h=no
17888 fi
17889
17890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17891 fi
17892 { echo "$as_me:$LINENO: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
17893 echo "${ECHO_T}$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
17894     if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
17895       SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
17896     fi
17897   fi
17898
17899
17900
17901
17902
17903
17904
17905
17906
17907
17908
17909
17910
17911
17912
17913
17914
17915      if test $gl_cv_have_include_next = yes; then
17916        gl_cv_next_time_h='<'time.h'>'
17917      else
17918        { echo "$as_me:$LINENO: checking absolute name of <time.h>" >&5
17919 echo $ECHO_N "checking absolute name of <time.h>... $ECHO_C" >&6; }
17920 if test "${gl_cv_next_time_h+set}" = set; then
17921   echo $ECHO_N "(cached) $ECHO_C" >&6
17922 else
17923
17924           if test $ac_cv_header_time_h = yes; then
17925             cat >conftest.$ac_ext <<_ACEOF
17926 /* confdefs.h.  */
17927 _ACEOF
17928 cat confdefs.h >>conftest.$ac_ext
17929 cat >>conftest.$ac_ext <<_ACEOF
17930 /* end confdefs.h.  */
17931 #include <time.h>
17932
17933 _ACEOF
17934                                                                     case "$host_os" in
17935               aix*) gl_absname_cpp="$ac_cpp -C" ;;
17936               *)    gl_absname_cpp="$ac_cpp" ;;
17937             esac
17938                                     gl_cv_next_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17939                sed -n '\#/time.h#{
17940                  s#.*"\(.*/time.h\)".*#\1#
17941                  s#^/[^/]#//&#
17942                  p
17943                  q
17944                }'`'"'
17945           else
17946             gl_cv_next_time_h='<'time.h'>'
17947           fi
17948
17949 fi
17950 { echo "$as_me:$LINENO: result: $gl_cv_next_time_h" >&5
17951 echo "${ECHO_T}$gl_cv_next_time_h" >&6; }
17952      fi
17953      NEXT_TIME_H=$gl_cv_next_time_h
17954
17955
17956
17957
17958
17959
17960
17961
17962
17963
17964
17965
17966
17967
17968
17969
17970
17971 { echo "$as_me:$LINENO: checking whether utime accepts a null argument" >&5
17972 echo $ECHO_N "checking whether utime accepts a null argument... $ECHO_C" >&6; }
17973 if test "${ac_cv_func_utime_null+set}" = set; then
17974   echo $ECHO_N "(cached) $ECHO_C" >&6
17975 else
17976   rm -f conftest.data; >conftest.data
17977 # Sequent interprets utime(file, 0) to mean use start of epoch.  Wrong.
17978 if test "$cross_compiling" = yes; then
17979   ac_cv_func_utime_null=no
17980 else
17981   cat >conftest.$ac_ext <<_ACEOF
17982 /* confdefs.h.  */
17983 _ACEOF
17984 cat confdefs.h >>conftest.$ac_ext
17985 cat >>conftest.$ac_ext <<_ACEOF
17986 /* end confdefs.h.  */
17987 $ac_includes_default
17988                #ifdef HAVE_UTIME_H
17989                # include <utime.h>
17990                #endif
17991 int
17992 main ()
17993 {
17994 struct stat s, t;
17995   return ! (stat ("conftest.data", &s) == 0
17996             && utime ("conftest.data", 0) == 0
17997             && stat ("conftest.data", &t) == 0
17998             && t.st_mtime >= s.st_mtime
17999             && t.st_mtime - s.st_mtime < 120);
18000   ;
18001   return 0;
18002 }
18003 _ACEOF
18004 rm -f conftest$ac_exeext
18005 if { (ac_try="$ac_link"
18006 case "(($ac_try" in
18007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18008   *) ac_try_echo=$ac_try;;
18009 esac
18010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18011   (eval "$ac_link") 2>&5
18012   ac_status=$?
18013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18014   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18015   { (case "(($ac_try" in
18016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18017   *) ac_try_echo=$ac_try;;
18018 esac
18019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18020   (eval "$ac_try") 2>&5
18021   ac_status=$?
18022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18023   (exit $ac_status); }; }; then
18024   ac_cv_func_utime_null=yes
18025 else
18026   echo "$as_me: program exited with status $ac_status" >&5
18027 echo "$as_me: failed program was:" >&5
18028 sed 's/^/| /' conftest.$ac_ext >&5
18029
18030 ( exit $ac_status )
18031 ac_cv_func_utime_null=no
18032 fi
18033 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18034 fi
18035
18036
18037 fi
18038 { echo "$as_me:$LINENO: result: $ac_cv_func_utime_null" >&5
18039 echo "${ECHO_T}$ac_cv_func_utime_null" >&6; }
18040 if test $ac_cv_func_utime_null = yes; then
18041
18042 cat >>confdefs.h <<\_ACEOF
18043 #define HAVE_UTIME_NULL 1
18044 _ACEOF
18045
18046 fi
18047 rm -f conftest.data
18048
18049
18050
18051
18052
18053
18054
18055
18056
18057
18058   { echo "$as_me:$LINENO: checking for struct utimbuf" >&5
18059 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; }
18060 if test "${gl_cv_sys_struct_utimbuf+set}" = set; then
18061   echo $ECHO_N "(cached) $ECHO_C" >&6
18062 else
18063   cat >conftest.$ac_ext <<_ACEOF
18064 /* confdefs.h.  */
18065 _ACEOF
18066 cat confdefs.h >>conftest.$ac_ext
18067 cat >>conftest.$ac_ext <<_ACEOF
18068 /* end confdefs.h.  */
18069 #if HAVE_SYS_TIME_H
18070              #include <sys/time.h>
18071             #endif
18072             #include <time.h>
18073             #ifdef HAVE_UTIME_H
18074              #include <utime.h>
18075             #endif
18076
18077 int
18078 main ()
18079 {
18080 static struct utimbuf x; x.actime = x.modtime;
18081   ;
18082   return 0;
18083 }
18084 _ACEOF
18085 rm -f conftest.$ac_objext
18086 if { (ac_try="$ac_compile"
18087 case "(($ac_try" in
18088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18089   *) ac_try_echo=$ac_try;;
18090 esac
18091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18092   (eval "$ac_compile") 2>conftest.er1
18093   ac_status=$?
18094   grep -v '^ *+' conftest.er1 >conftest.err
18095   rm -f conftest.er1
18096   cat conftest.err >&5
18097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18098   (exit $ac_status); } && {
18099          test -z "$ac_c_werror_flag" ||
18100          test ! -s conftest.err
18101        } && test -s conftest.$ac_objext; then
18102   gl_cv_sys_struct_utimbuf=yes
18103 else
18104   echo "$as_me: failed program was:" >&5
18105 sed 's/^/| /' conftest.$ac_ext >&5
18106
18107         gl_cv_sys_struct_utimbuf=no
18108 fi
18109
18110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18111 fi
18112 { echo "$as_me:$LINENO: result: $gl_cv_sys_struct_utimbuf" >&5
18113 echo "${ECHO_T}$gl_cv_sys_struct_utimbuf" >&6; }
18114
18115   if test $gl_cv_sys_struct_utimbuf = yes; then
18116
18117 cat >>confdefs.h <<\_ACEOF
18118 #define HAVE_STRUCT_UTIMBUF 1
18119 _ACEOF
18120
18121   fi
18122
18123
18124   { echo "$as_me:$LINENO: checking determine whether the utimes function works" >&5
18125 echo $ECHO_N "checking determine whether the utimes function works... $ECHO_C" >&6; }
18126 if test "${gl_cv_func_working_utimes+set}" = set; then
18127   echo $ECHO_N "(cached) $ECHO_C" >&6
18128 else
18129
18130   if test "$cross_compiling" = yes; then
18131   gl_cv_func_working_utimes=no
18132 else
18133   cat >conftest.$ac_ext <<_ACEOF
18134 /* confdefs.h.  */
18135 _ACEOF
18136 cat confdefs.h >>conftest.$ac_ext
18137 cat >>conftest.$ac_ext <<_ACEOF
18138 /* end confdefs.h.  */
18139
18140 #include <sys/types.h>
18141 #include <sys/stat.h>
18142 #include <fcntl.h>
18143 #include <sys/time.h>
18144 #include <time.h>
18145 #include <unistd.h>
18146 #include <stdlib.h>
18147 #include <stdio.h>
18148 #include <utime.h>
18149
18150 int
18151 main ()
18152 {
18153   static struct timeval timeval[2] = {{9, 10}, {999999, 999999}};
18154   struct stat sbuf;
18155   char const *file = "conftest.utimes";
18156   FILE *f;
18157   time_t now;
18158   int fd;
18159
18160   int ok = ((f = fopen (file, "w"))
18161             && fclose (f) == 0
18162             && utimes (file, timeval) == 0
18163             && lstat (file, &sbuf) == 0
18164             && sbuf.st_atime == timeval[0].tv_sec
18165             && sbuf.st_mtime == timeval[1].tv_sec);
18166   unlink (file);
18167   if (!ok)
18168     exit (1);
18169
18170   ok =
18171     ((f = fopen (file, "w"))
18172      && fclose (f) == 0
18173      && time (&now) != (time_t)-1
18174      && utimes (file, NULL) == 0
18175      && lstat (file, &sbuf) == 0
18176      && now - sbuf.st_atime <= 2
18177      && now - sbuf.st_mtime <= 2);
18178   unlink (file);
18179   if (!ok)
18180     exit (1);
18181
18182   ok = (0 <= (fd = open (file, O_WRONLY|O_CREAT, 0444))
18183               && close (fd) == 0
18184               && utimes (file, NULL) == 0);
18185   unlink (file);
18186
18187   exit (!ok);
18188 }
18189
18190 _ACEOF
18191 rm -f conftest$ac_exeext
18192 if { (ac_try="$ac_link"
18193 case "(($ac_try" in
18194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18195   *) ac_try_echo=$ac_try;;
18196 esac
18197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18198   (eval "$ac_link") 2>&5
18199   ac_status=$?
18200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18201   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18202   { (case "(($ac_try" in
18203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18204   *) ac_try_echo=$ac_try;;
18205 esac
18206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18207   (eval "$ac_try") 2>&5
18208   ac_status=$?
18209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18210   (exit $ac_status); }; }; then
18211   gl_cv_func_working_utimes=yes
18212 else
18213   echo "$as_me: program exited with status $ac_status" >&5
18214 echo "$as_me: failed program was:" >&5
18215 sed 's/^/| /' conftest.$ac_ext >&5
18216
18217 ( exit $ac_status )
18218 gl_cv_func_working_utimes=no
18219 fi
18220 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18221 fi
18222
18223
18224 fi
18225 { echo "$as_me:$LINENO: result: $gl_cv_func_working_utimes" >&5
18226 echo "${ECHO_T}$gl_cv_func_working_utimes" >&6; }
18227
18228   if test $gl_cv_func_working_utimes = yes; then
18229
18230 cat >>confdefs.h <<\_ACEOF
18231 #define HAVE_WORKING_UTIMES 1
18232 _ACEOF
18233
18234   fi
18235
18236
18237
18238
18239
18240
18241
18242
18243
18244
18245
18246
18247   { echo "$as_me:$LINENO: checking for wchar_t" >&5
18248 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
18249 if test "${gt_cv_c_wchar_t+set}" = set; then
18250   echo $ECHO_N "(cached) $ECHO_C" >&6
18251 else
18252   cat >conftest.$ac_ext <<_ACEOF
18253 /* confdefs.h.  */
18254 _ACEOF
18255 cat confdefs.h >>conftest.$ac_ext
18256 cat >>conftest.$ac_ext <<_ACEOF
18257 /* end confdefs.h.  */
18258 #include <stddef.h>
18259        wchar_t foo = (wchar_t)'\0';
18260 int
18261 main ()
18262 {
18263
18264   ;
18265   return 0;
18266 }
18267 _ACEOF
18268 rm -f conftest.$ac_objext
18269 if { (ac_try="$ac_compile"
18270 case "(($ac_try" in
18271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18272   *) ac_try_echo=$ac_try;;
18273 esac
18274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18275   (eval "$ac_compile") 2>conftest.er1
18276   ac_status=$?
18277   grep -v '^ *+' conftest.er1 >conftest.err
18278   rm -f conftest.er1
18279   cat conftest.err >&5
18280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18281   (exit $ac_status); } && {
18282          test -z "$ac_c_werror_flag" ||
18283          test ! -s conftest.err
18284        } && test -s conftest.$ac_objext; then
18285   gt_cv_c_wchar_t=yes
18286 else
18287   echo "$as_me: failed program was:" >&5
18288 sed 's/^/| /' conftest.$ac_ext >&5
18289
18290         gt_cv_c_wchar_t=no
18291 fi
18292
18293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18294 fi
18295 { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
18296 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
18297   if test $gt_cv_c_wchar_t = yes; then
18298
18299 cat >>confdefs.h <<\_ACEOF
18300 #define HAVE_WCHAR_T 1
18301 _ACEOF
18302
18303   fi
18304
18305
18306   { echo "$as_me:$LINENO: checking for wint_t" >&5
18307 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
18308 if test "${gt_cv_c_wint_t+set}" = set; then
18309   echo $ECHO_N "(cached) $ECHO_C" >&6
18310 else
18311   cat >conftest.$ac_ext <<_ACEOF
18312 /* confdefs.h.  */
18313 _ACEOF
18314 cat confdefs.h >>conftest.$ac_ext
18315 cat >>conftest.$ac_ext <<_ACEOF
18316 /* end confdefs.h.  */
18317
18318 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
18319    <wchar.h>.
18320    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
18321    before <wchar.h>.  */
18322 #include <stddef.h>
18323 #include <stdio.h>
18324 #include <time.h>
18325 #include <wchar.h>
18326        wint_t foo = (wchar_t)'\0';
18327 int
18328 main ()
18329 {
18330
18331   ;
18332   return 0;
18333 }
18334 _ACEOF
18335 rm -f conftest.$ac_objext
18336 if { (ac_try="$ac_compile"
18337 case "(($ac_try" in
18338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18339   *) ac_try_echo=$ac_try;;
18340 esac
18341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18342   (eval "$ac_compile") 2>conftest.er1
18343   ac_status=$?
18344   grep -v '^ *+' conftest.er1 >conftest.err
18345   rm -f conftest.er1
18346   cat conftest.err >&5
18347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18348   (exit $ac_status); } && {
18349          test -z "$ac_c_werror_flag" ||
18350          test ! -s conftest.err
18351        } && test -s conftest.$ac_objext; then
18352   gt_cv_c_wint_t=yes
18353 else
18354   echo "$as_me: failed program was:" >&5
18355 sed 's/^/| /' conftest.$ac_ext >&5
18356
18357         gt_cv_c_wint_t=no
18358 fi
18359
18360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18361 fi
18362 { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
18363 echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
18364   if test $gt_cv_c_wint_t = yes; then
18365
18366 cat >>confdefs.h <<\_ACEOF
18367 #define HAVE_WINT_T 1
18368 _ACEOF
18369
18370   fi
18371
18372
18373   { echo "$as_me:$LINENO: checking for inttypes.h" >&5
18374 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
18375 if test "${gl_cv_header_inttypes_h+set}" = set; then
18376   echo $ECHO_N "(cached) $ECHO_C" >&6
18377 else
18378   cat >conftest.$ac_ext <<_ACEOF
18379 /* confdefs.h.  */
18380 _ACEOF
18381 cat confdefs.h >>conftest.$ac_ext
18382 cat >>conftest.$ac_ext <<_ACEOF
18383 /* end confdefs.h.  */
18384 #include <sys/types.h>
18385 #include <inttypes.h>
18386 int
18387 main ()
18388 {
18389 uintmax_t i = (uintmax_t) -1; return !i;
18390   ;
18391   return 0;
18392 }
18393 _ACEOF
18394 rm -f conftest.$ac_objext
18395 if { (ac_try="$ac_compile"
18396 case "(($ac_try" in
18397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18398   *) ac_try_echo=$ac_try;;
18399 esac
18400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18401   (eval "$ac_compile") 2>conftest.er1
18402   ac_status=$?
18403   grep -v '^ *+' conftest.er1 >conftest.err
18404   rm -f conftest.er1
18405   cat conftest.err >&5
18406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18407   (exit $ac_status); } && {
18408          test -z "$ac_c_werror_flag" ||
18409          test ! -s conftest.err
18410        } && test -s conftest.$ac_objext; then
18411   gl_cv_header_inttypes_h=yes
18412 else
18413   echo "$as_me: failed program was:" >&5
18414 sed 's/^/| /' conftest.$ac_ext >&5
18415
18416         gl_cv_header_inttypes_h=no
18417 fi
18418
18419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18420 fi
18421 { echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
18422 echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6; }
18423   if test $gl_cv_header_inttypes_h = yes; then
18424
18425 cat >>confdefs.h <<_ACEOF
18426 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
18427 _ACEOF
18428
18429   fi
18430
18431
18432   { echo "$as_me:$LINENO: checking for stdint.h" >&5
18433 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
18434 if test "${gl_cv_header_stdint_h+set}" = set; then
18435   echo $ECHO_N "(cached) $ECHO_C" >&6
18436 else
18437   cat >conftest.$ac_ext <<_ACEOF
18438 /* confdefs.h.  */
18439 _ACEOF
18440 cat confdefs.h >>conftest.$ac_ext
18441 cat >>conftest.$ac_ext <<_ACEOF
18442 /* end confdefs.h.  */
18443 #include <sys/types.h>
18444 #include <stdint.h>
18445 int
18446 main ()
18447 {
18448 uintmax_t i = (uintmax_t) -1; return !i;
18449   ;
18450   return 0;
18451 }
18452 _ACEOF
18453 rm -f conftest.$ac_objext
18454 if { (ac_try="$ac_compile"
18455 case "(($ac_try" in
18456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18457   *) ac_try_echo=$ac_try;;
18458 esac
18459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18460   (eval "$ac_compile") 2>conftest.er1
18461   ac_status=$?
18462   grep -v '^ *+' conftest.er1 >conftest.err
18463   rm -f conftest.er1
18464   cat conftest.err >&5
18465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18466   (exit $ac_status); } && {
18467          test -z "$ac_c_werror_flag" ||
18468          test ! -s conftest.err
18469        } && test -s conftest.$ac_objext; then
18470   gl_cv_header_stdint_h=yes
18471 else
18472   echo "$as_me: failed program was:" >&5
18473 sed 's/^/| /' conftest.$ac_ext >&5
18474
18475         gl_cv_header_stdint_h=no
18476 fi
18477
18478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18479 fi
18480 { echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
18481 echo "${ECHO_T}$gl_cv_header_stdint_h" >&6; }
18482   if test $gl_cv_header_stdint_h = yes; then
18483
18484 cat >>confdefs.h <<_ACEOF
18485 #define HAVE_STDINT_H_WITH_UINTMAX 1
18486 _ACEOF
18487
18488   fi
18489
18490
18491
18492
18493   { echo "$as_me:$LINENO: checking for intmax_t" >&5
18494 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
18495 if test "${gt_cv_c_intmax_t+set}" = set; then
18496   echo $ECHO_N "(cached) $ECHO_C" >&6
18497 else
18498   cat >conftest.$ac_ext <<_ACEOF
18499 /* confdefs.h.  */
18500 _ACEOF
18501 cat confdefs.h >>conftest.$ac_ext
18502 cat >>conftest.$ac_ext <<_ACEOF
18503 /* end confdefs.h.  */
18504
18505 #include <stddef.h>
18506 #include <stdlib.h>
18507 #if HAVE_STDINT_H_WITH_UINTMAX
18508 #include <stdint.h>
18509 #endif
18510 #if HAVE_INTTYPES_H_WITH_UINTMAX
18511 #include <inttypes.h>
18512 #endif
18513
18514 int
18515 main ()
18516 {
18517 intmax_t x = -1; return !x;
18518   ;
18519   return 0;
18520 }
18521 _ACEOF
18522 rm -f conftest.$ac_objext
18523 if { (ac_try="$ac_compile"
18524 case "(($ac_try" in
18525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18526   *) ac_try_echo=$ac_try;;
18527 esac
18528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18529   (eval "$ac_compile") 2>conftest.er1
18530   ac_status=$?
18531   grep -v '^ *+' conftest.er1 >conftest.err
18532   rm -f conftest.er1
18533   cat conftest.err >&5
18534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18535   (exit $ac_status); } && {
18536          test -z "$ac_c_werror_flag" ||
18537          test ! -s conftest.err
18538        } && test -s conftest.$ac_objext; then
18539   gt_cv_c_intmax_t=yes
18540 else
18541   echo "$as_me: failed program was:" >&5
18542 sed 's/^/| /' conftest.$ac_ext >&5
18543
18544         gt_cv_c_intmax_t=no
18545 fi
18546
18547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18548 fi
18549 { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
18550 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
18551   if test $gt_cv_c_intmax_t = yes; then
18552
18553 cat >>confdefs.h <<\_ACEOF
18554 #define HAVE_INTMAX_T 1
18555 _ACEOF
18556
18557   else
18558
18559     test $ac_cv_type_long_long_int = yes \
18560       && ac_type='long long' \
18561       || ac_type='long'
18562
18563 cat >>confdefs.h <<_ACEOF
18564 #define intmax_t $ac_type
18565 _ACEOF
18566
18567   fi
18568
18569 { echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
18570 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6; }
18571 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
18572   echo $ECHO_N "(cached) $ECHO_C" >&6
18573 else
18574   cat >conftest.$ac_ext <<_ACEOF
18575 /* confdefs.h.  */
18576 _ACEOF
18577 cat confdefs.h >>conftest.$ac_ext
18578 cat >>conftest.$ac_ext <<_ACEOF
18579 /* end confdefs.h.  */
18580 $ac_includes_default
18581 int
18582 main ()
18583 {
18584 #ifndef vsnprintf
18585   (void) vsnprintf;
18586 #endif
18587
18588   ;
18589   return 0;
18590 }
18591 _ACEOF
18592 rm -f conftest.$ac_objext
18593 if { (ac_try="$ac_compile"
18594 case "(($ac_try" in
18595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18596   *) ac_try_echo=$ac_try;;
18597 esac
18598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18599   (eval "$ac_compile") 2>conftest.er1
18600   ac_status=$?
18601   grep -v '^ *+' conftest.er1 >conftest.err
18602   rm -f conftest.er1
18603   cat conftest.err >&5
18604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18605   (exit $ac_status); } && {
18606          test -z "$ac_c_werror_flag" ||
18607          test ! -s conftest.err
18608        } && test -s conftest.$ac_objext; then
18609   ac_cv_have_decl_vsnprintf=yes
18610 else
18611   echo "$as_me: failed program was:" >&5
18612 sed 's/^/| /' conftest.$ac_ext >&5
18613
18614         ac_cv_have_decl_vsnprintf=no
18615 fi
18616
18617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18618 fi
18619 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
18620 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6; }
18621 if test $ac_cv_have_decl_vsnprintf = yes; then
18622
18623 cat >>confdefs.h <<_ACEOF
18624 #define HAVE_DECL_VSNPRINTF 1
18625 _ACEOF
18626
18627
18628 else
18629   cat >>confdefs.h <<_ACEOF
18630 #define HAVE_DECL_VSNPRINTF 0
18631 _ACEOF
18632
18633
18634 fi
18635
18636
18637
18638
18639
18640
18641
18642
18643
18644    if false; then
18645   GL_COND_LIBTOOL_TRUE=
18646   GL_COND_LIBTOOL_FALSE='#'
18647 else
18648   GL_COND_LIBTOOL_TRUE='#'
18649   GL_COND_LIBTOOL_FALSE=
18650 fi
18651
18652   gl_cond_libtool=false
18653   gl_libdeps=
18654   gl_ltlibdeps=
18655
18656
18657
18658
18659
18660
18661
18662
18663
18664   gl_source_base='.#bootmp/lib'
18665
18666
18667
18668
18669
18670   if test $ac_cv_func_alloca_works = no; then
18671     :
18672   fi
18673
18674   # Define an additional variable used in the Makefile substitution.
18675   if test $ac_cv_working_alloca_h = yes; then
18676     { echo "$as_me:$LINENO: checking for alloca as a compiler built-in" >&5
18677 echo $ECHO_N "checking for alloca as a compiler built-in... $ECHO_C" >&6; }
18678 if test "${gl_cv_rpl_alloca+set}" = set; then
18679   echo $ECHO_N "(cached) $ECHO_C" >&6
18680 else
18681
18682       cat >conftest.$ac_ext <<_ACEOF
18683 /* confdefs.h.  */
18684 _ACEOF
18685 cat confdefs.h >>conftest.$ac_ext
18686 cat >>conftest.$ac_ext <<_ACEOF
18687 /* end confdefs.h.  */
18688
18689 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
18690         Need own alloca
18691 #endif
18692
18693 _ACEOF
18694 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18695   $EGREP "Need own alloca" >/dev/null 2>&1; then
18696   gl_cv_rpl_alloca=yes
18697 else
18698   gl_cv_rpl_alloca=no
18699 fi
18700 rm -f conftest*
18701
18702
18703 fi
18704 { echo "$as_me:$LINENO: result: $gl_cv_rpl_alloca" >&5
18705 echo "${ECHO_T}$gl_cv_rpl_alloca" >&6; }
18706     if test $gl_cv_rpl_alloca = yes; then
18707
18708 cat >>confdefs.h <<\_ACEOF
18709 #define HAVE_ALLOCA 1
18710 _ACEOF
18711
18712       ALLOCA_H=alloca.h
18713     else
18714                   ALLOCA_H=
18715     fi
18716   else
18717     ALLOCA_H=alloca.h
18718   fi
18719
18720
18721
18722
18723
18724
18725
18726
18727
18728
18729
18730   gl_LIBOBJS="$gl_LIBOBJS argmatch.$ac_objext"
18731
18732
18733
18734
18735
18736
18737
18738
18739
18740
18741
18742
18743
18744
18745
18746   gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
18747
18748
18749
18750
18751
18752
18753
18754
18755
18756   gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
18757
18758
18759   GETOPT_H=getopt.h
18760
18761 cat >>confdefs.h <<\_ACEOF
18762 #define __GETOPT_PREFIX rpl_
18763 _ACEOF
18764
18765
18766
18767
18768
18769
18770
18771
18772
18773
18774
18775   { echo "$as_me:$LINENO: checking whether program_invocation_name is declared" >&5
18776 echo $ECHO_N "checking whether program_invocation_name is declared... $ECHO_C" >&6; }
18777 if test "${ac_cv_have_decl_program_invocation_name+set}" = set; then
18778   echo $ECHO_N "(cached) $ECHO_C" >&6
18779 else
18780   cat >conftest.$ac_ext <<_ACEOF
18781 /* confdefs.h.  */
18782 _ACEOF
18783 cat confdefs.h >>conftest.$ac_ext
18784 cat >>conftest.$ac_ext <<_ACEOF
18785 /* end confdefs.h.  */
18786 #include <errno.h>
18787
18788 int
18789 main ()
18790 {
18791 #ifndef program_invocation_name
18792   (void) program_invocation_name;
18793 #endif
18794
18795   ;
18796   return 0;
18797 }
18798 _ACEOF
18799 rm -f conftest.$ac_objext
18800 if { (ac_try="$ac_compile"
18801 case "(($ac_try" in
18802   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18803   *) ac_try_echo=$ac_try;;
18804 esac
18805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18806   (eval "$ac_compile") 2>conftest.er1
18807   ac_status=$?
18808   grep -v '^ *+' conftest.er1 >conftest.err
18809   rm -f conftest.er1
18810   cat conftest.err >&5
18811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18812   (exit $ac_status); } && {
18813          test -z "$ac_c_werror_flag" ||
18814          test ! -s conftest.err
18815        } && test -s conftest.$ac_objext; then
18816   ac_cv_have_decl_program_invocation_name=yes
18817 else
18818   echo "$as_me: failed program was:" >&5
18819 sed 's/^/| /' conftest.$ac_ext >&5
18820
18821         ac_cv_have_decl_program_invocation_name=no
18822 fi
18823
18824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18825 fi
18826 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_program_invocation_name" >&5
18827 echo "${ECHO_T}$ac_cv_have_decl_program_invocation_name" >&6; }
18828 if test $ac_cv_have_decl_program_invocation_name = yes; then
18829
18830 cat >>confdefs.h <<\_ACEOF
18831 #define HAVE_DECL_PROGRAM_INVOCATION_NAME 1
18832 _ACEOF
18833
18834 else
18835
18836 cat >>confdefs.h <<\_ACEOF
18837 #define GNULIB_PROGRAM_INVOCATION_NAME 1
18838 _ACEOF
18839
18840 fi
18841
18842   { echo "$as_me:$LINENO: checking whether program_invocation_short_name is declared" >&5
18843 echo $ECHO_N "checking whether program_invocation_short_name is declared... $ECHO_C" >&6; }
18844 if test "${ac_cv_have_decl_program_invocation_short_name+set}" = set; then
18845   echo $ECHO_N "(cached) $ECHO_C" >&6
18846 else
18847   cat >conftest.$ac_ext <<_ACEOF
18848 /* confdefs.h.  */
18849 _ACEOF
18850 cat confdefs.h >>conftest.$ac_ext
18851 cat >>conftest.$ac_ext <<_ACEOF
18852 /* end confdefs.h.  */
18853 #include <errno.h>
18854
18855 int
18856 main ()
18857 {
18858 #ifndef program_invocation_short_name
18859   (void) program_invocation_short_name;
18860 #endif
18861
18862   ;
18863   return 0;
18864 }
18865 _ACEOF
18866 rm -f conftest.$ac_objext
18867 if { (ac_try="$ac_compile"
18868 case "(($ac_try" in
18869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18870   *) ac_try_echo=$ac_try;;
18871 esac
18872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18873   (eval "$ac_compile") 2>conftest.er1
18874   ac_status=$?
18875   grep -v '^ *+' conftest.er1 >conftest.err
18876   rm -f conftest.er1
18877   cat conftest.err >&5
18878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18879   (exit $ac_status); } && {
18880          test -z "$ac_c_werror_flag" ||
18881          test ! -s conftest.err
18882        } && test -s conftest.$ac_objext; then
18883   ac_cv_have_decl_program_invocation_short_name=yes
18884 else
18885   echo "$as_me: failed program was:" >&5
18886 sed 's/^/| /' conftest.$ac_ext >&5
18887
18888         ac_cv_have_decl_program_invocation_short_name=no
18889 fi
18890
18891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18892 fi
18893 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_program_invocation_short_name" >&5
18894 echo "${ECHO_T}$ac_cv_have_decl_program_invocation_short_name" >&6; }
18895 if test $ac_cv_have_decl_program_invocation_short_name = yes; then
18896
18897 cat >>confdefs.h <<\_ACEOF
18898 #define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME 1
18899 _ACEOF
18900
18901 else
18902
18903 cat >>confdefs.h <<\_ACEOF
18904 #define GNULIB_PROGRAM_INVOCATION_SHORT_NAME 1
18905 _ACEOF
18906
18907 fi
18908
18909
18910   # Check if program_invocation_name and program_invocation_short_name
18911   # are defined elsewhere. It is improbable that only one of them will
18912   # be defined and other not, I prefer to stay on the safe side and to
18913   # test each one separately.
18914   { echo "$as_me:$LINENO: checking whether program_invocation_name is defined" >&5
18915 echo $ECHO_N "checking whether program_invocation_name is defined... $ECHO_C" >&6; }
18916   cat >conftest.$ac_ext <<_ACEOF
18917 /* confdefs.h.  */
18918 _ACEOF
18919 cat confdefs.h >>conftest.$ac_ext
18920 cat >>conftest.$ac_ext <<_ACEOF
18921 /* end confdefs.h.  */
18922 #include <argp.h>
18923 int
18924 main ()
18925 {
18926  program_invocation_name = "test";
18927   ;
18928   return 0;
18929 }
18930 _ACEOF
18931 rm -f conftest.$ac_objext conftest$ac_exeext
18932 if { (ac_try="$ac_link"
18933 case "(($ac_try" in
18934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18935   *) ac_try_echo=$ac_try;;
18936 esac
18937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18938   (eval "$ac_link") 2>conftest.er1
18939   ac_status=$?
18940   grep -v '^ *+' conftest.er1 >conftest.err
18941   rm -f conftest.er1
18942   cat conftest.err >&5
18943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18944   (exit $ac_status); } && {
18945          test -z "$ac_c_werror_flag" ||
18946          test ! -s conftest.err
18947        } && test -s conftest$ac_exeext &&
18948        $as_test_x conftest$ac_exeext; then
18949
18950 cat >>confdefs.h <<\_ACEOF
18951 #define HAVE_PROGRAM_INVOCATION_NAME 1
18952 _ACEOF
18953
18954                  { echo "$as_me:$LINENO: result: yes" >&5
18955 echo "${ECHO_T}yes" >&6; }
18956 else
18957   echo "$as_me: failed program was:" >&5
18958 sed 's/^/| /' conftest.$ac_ext >&5
18959
18960          { echo "$as_me:$LINENO: result: no" >&5
18961 echo "${ECHO_T}no" >&6; }
18962 fi
18963
18964 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18965       conftest$ac_exeext conftest.$ac_ext
18966
18967   { echo "$as_me:$LINENO: checking whether program_invocation_short_name is defined" >&5
18968 echo $ECHO_N "checking whether program_invocation_short_name is defined... $ECHO_C" >&6; }
18969   cat >conftest.$ac_ext <<_ACEOF
18970 /* confdefs.h.  */
18971 _ACEOF
18972 cat confdefs.h >>conftest.$ac_ext
18973 cat >>conftest.$ac_ext <<_ACEOF
18974 /* end confdefs.h.  */
18975 #include <argp.h>
18976 int
18977 main ()
18978 {
18979  program_invocation_short_name = "test";
18980   ;
18981   return 0;
18982 }
18983 _ACEOF
18984 rm -f conftest.$ac_objext conftest$ac_exeext
18985 if { (ac_try="$ac_link"
18986 case "(($ac_try" in
18987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18988   *) ac_try_echo=$ac_try;;
18989 esac
18990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18991   (eval "$ac_link") 2>conftest.er1
18992   ac_status=$?
18993   grep -v '^ *+' conftest.er1 >conftest.err
18994   rm -f conftest.er1
18995   cat conftest.err >&5
18996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18997   (exit $ac_status); } && {
18998          test -z "$ac_c_werror_flag" ||
18999          test ! -s conftest.err
19000        } && test -s conftest$ac_exeext &&
19001        $as_test_x conftest$ac_exeext; then
19002
19003 cat >>confdefs.h <<\_ACEOF
19004 #define HAVE_PROGRAM_INVOCATION_SHORT_NAME 1
19005 _ACEOF
19006
19007                  { echo "$as_me:$LINENO: result: yes" >&5
19008 echo "${ECHO_T}yes" >&6; }
19009 else
19010   echo "$as_me: failed program was:" >&5
19011 sed 's/^/| /' conftest.$ac_ext >&5
19012
19013          { echo "$as_me:$LINENO: result: no" >&5
19014 echo "${ECHO_T}no" >&6; }
19015 fi
19016
19017 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19018       conftest$ac_exeext conftest.$ac_ext
19019
19020
19021
19022
19023
19024
19025
19026
19027
19028
19029
19030
19031
19032
19033
19034
19035
19036
19037
19038
19039
19040
19041
19042
19043
19044
19045
19046
19047
19048
19049
19050
19051
19052
19053
19054
19055
19056
19057
19058
19059
19060
19061
19062
19063
19064
19065
19066
19067
19068
19069
19070
19071
19072
19073
19074
19075
19076
19077
19078
19079
19080
19081
19082
19083
19084
19085
19086
19087
19088
19089
19090
19091   XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=argp_error:2:c-format"
19092
19093
19094
19095   XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=argp_failure:4:c-format"
19096
19097
19098
19099
19100
19101
19102
19103
19104
19105
19106   gl_LIBOBJS="$gl_LIBOBJS backupfile.$ac_objext"
19107
19108
19109
19110
19111
19112
19113
19114
19115
19116
19117
19118
19119
19120
19121
19122
19123
19124
19125
19126
19127
19128   if test $ac_cv_func_btowc = no; then
19129     HAVE_BTOWC=0
19130   else
19131
19132
19133
19134          { echo "$as_me:$LINENO: checking whether btowc(EOF) is correct" >&5
19135 echo $ECHO_N "checking whether btowc(EOF) is correct... $ECHO_C" >&6; }
19136 if test "${gl_cv_func_btowc_eof+set}" = set; then
19137   echo $ECHO_N "(cached) $ECHO_C" >&6
19138 else
19139
19140                         case "$host_os" in
19141                  # Guess no on IRIX.
19142           irix*) gl_cv_func_btowc_eof="guessing no" ;;
19143                  # Guess yes otherwise.
19144           *)     gl_cv_func_btowc_eof="guessing yes" ;;
19145         esac
19146         if test $LOCALE_FR != none; then
19147           if test "$cross_compiling" = yes; then
19148   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19149 See \`config.log' for more details." >&5
19150 echo "$as_me: error: cannot run test program while cross compiling
19151 See \`config.log' for more details." >&2;}
19152    { (exit 1); exit 1; }; }
19153 else
19154   cat >conftest.$ac_ext <<_ACEOF
19155 /* confdefs.h.  */
19156 _ACEOF
19157 cat confdefs.h >>conftest.$ac_ext
19158 cat >>conftest.$ac_ext <<_ACEOF
19159 /* end confdefs.h.  */
19160
19161 #include <locale.h>
19162 #include <stdio.h>
19163 #include <string.h>
19164 #include <wchar.h>
19165 int main ()
19166 {
19167   if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
19168     {
19169       if (btowc (EOF) != WEOF)
19170         return 1;
19171     }
19172   return 0;
19173 }
19174 _ACEOF
19175 rm -f conftest$ac_exeext
19176 if { (ac_try="$ac_link"
19177 case "(($ac_try" in
19178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19179   *) ac_try_echo=$ac_try;;
19180 esac
19181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19182   (eval "$ac_link") 2>&5
19183   ac_status=$?
19184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19185   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19186   { (case "(($ac_try" in
19187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19188   *) ac_try_echo=$ac_try;;
19189 esac
19190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19191   (eval "$ac_try") 2>&5
19192   ac_status=$?
19193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19194   (exit $ac_status); }; }; then
19195   gl_cv_func_btowc_eof=yes
19196 else
19197   echo "$as_me: program exited with status $ac_status" >&5
19198 echo "$as_me: failed program was:" >&5
19199 sed 's/^/| /' conftest.$ac_ext >&5
19200
19201 ( exit $ac_status )
19202 gl_cv_func_btowc_eof=no
19203 fi
19204 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19205 fi
19206
19207
19208         fi
19209
19210 fi
19211 { echo "$as_me:$LINENO: result: $gl_cv_func_btowc_eof" >&5
19212 echo "${ECHO_T}$gl_cv_func_btowc_eof" >&6; }
19213     case "$gl_cv_func_btowc_eof" in
19214       *yes) ;;
19215       *) REPLACE_BTOWC=1 ;;
19216     esac
19217   fi
19218   if test $HAVE_BTOWC = 0 || test $REPLACE_BTOWC = 1; then
19219
19220
19221   WCHAR_H=wchar.h
19222
19223
19224
19225
19226
19227
19228
19229
19230
19231   gl_LIBOBJS="$gl_LIBOBJS btowc.$ac_objext"
19232
19233
19234   :
19235
19236   fi
19237
19238
19239
19240   GNULIB_BTOWC=1
19241
19242
19243
19244
19245
19246
19247
19248
19249
19250
19251
19252
19253   if test $ac_cv_func_canonicalize_file_name = no; then
19254
19255
19256
19257
19258
19259
19260
19261
19262   gl_LIBOBJS="$gl_LIBOBJS canonicalize-lgpl.$ac_objext"
19263
19264
19265 cat >>confdefs.h <<\_ACEOF
19266 #define realpath rpl_realpath
19267 _ACEOF
19268
19269
19270
19271
19272
19273
19274
19275
19276
19277
19278
19279
19280
19281
19282
19283
19284
19285
19286
19287   fi
19288
19289
19290
19291 cat >>confdefs.h <<\_ACEOF
19292 #define GNULIB_CANONICALIZE_LGPL 1
19293 _ACEOF
19294
19295
19296
19297   { echo "$as_me:$LINENO: checking whether this system has an arbitrary file name length limit" >&5
19298 echo $ECHO_N "checking whether this system has an arbitrary file name length limit... $ECHO_C" >&6; }
19299 if test "${gl_cv_have_arbitrary_file_name_length_limit+set}" = set; then
19300   echo $ECHO_N "(cached) $ECHO_C" >&6
19301 else
19302   cat >conftest.$ac_ext <<_ACEOF
19303 /* confdefs.h.  */
19304 _ACEOF
19305 cat confdefs.h >>conftest.$ac_ext
19306 cat >>conftest.$ac_ext <<_ACEOF
19307 /* end confdefs.h.  */
19308 #include <unistd.h>
19309 #include <limits.h>
19310 #if defined PATH_MAX || defined MAXPATHLEN
19311 have_arbitrary_file_name_length_limit
19312 #endif
19313 _ACEOF
19314 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19315   $EGREP "have_arbitrary_file_name_length_limit" >/dev/null 2>&1; then
19316   gl_cv_have_arbitrary_file_name_length_limit=yes
19317 else
19318   gl_cv_have_arbitrary_file_name_length_limit=no
19319 fi
19320 rm -f conftest*
19321
19322 fi
19323 { echo "$as_me:$LINENO: result: $gl_cv_have_arbitrary_file_name_length_limit" >&5
19324 echo "${ECHO_T}$gl_cv_have_arbitrary_file_name_length_limit" >&6; }
19325
19326   if test $gl_cv_have_arbitrary_file_name_length_limit = yes; then
19327
19328
19329
19330
19331
19332
19333
19334
19335   gl_LIBOBJS="$gl_LIBOBJS chdir-long.$ac_objext"
19336
19337
19338   :
19339
19340   fi
19341
19342
19343
19344
19345
19346
19347
19348   if test $ac_cv_func_chown_works = no; then
19349
19350 cat >>confdefs.h <<\_ACEOF
19351 #define CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE 1
19352 _ACEOF
19353
19354   fi
19355
19356   # If chown has either of the above problems, then we need the wrapper.
19357   if test $ac_cv_func_chown_works$gl_cv_func_chown_follows_symlink = yesyes; then
19358     : # no wrapper needed
19359   else
19360     REPLACE_CHOWN=1
19361
19362
19363
19364
19365
19366
19367
19368
19369   gl_LIBOBJS="$gl_LIBOBJS chown.$ac_objext"
19370
19371
19372   { echo "$as_me:$LINENO: checking for fchown" >&5
19373 echo $ECHO_N "checking for fchown... $ECHO_C" >&6; }
19374 if test "${ac_cv_func_fchown+set}" = set; then
19375   echo $ECHO_N "(cached) $ECHO_C" >&6
19376 else
19377   cat >conftest.$ac_ext <<_ACEOF
19378 /* confdefs.h.  */
19379 _ACEOF
19380 cat confdefs.h >>conftest.$ac_ext
19381 cat >>conftest.$ac_ext <<_ACEOF
19382 /* end confdefs.h.  */
19383 /* Define fchown to an innocuous variant, in case <limits.h> declares fchown.
19384    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19385 #define fchown innocuous_fchown
19386
19387 /* System header to define __stub macros and hopefully few prototypes,
19388     which can conflict with char fchown (); below.
19389     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19390     <limits.h> exists even on freestanding compilers.  */
19391
19392 #ifdef __STDC__
19393 # include <limits.h>
19394 #else
19395 # include <assert.h>
19396 #endif
19397
19398 #undef fchown
19399
19400 /* Override any GCC internal prototype to avoid an error.
19401    Use char because int might match the return type of a GCC
19402    builtin and then its argument prototype would still apply.  */
19403 #ifdef __cplusplus
19404 extern "C"
19405 #endif
19406 char fchown ();
19407 /* The GNU C library defines this for functions which it implements
19408     to always fail with ENOSYS.  Some functions are actually named
19409     something starting with __ and the normal name is an alias.  */
19410 #if defined __stub_fchown || defined __stub___fchown
19411 choke me
19412 #endif
19413
19414 int
19415 main ()
19416 {
19417 return fchown ();
19418   ;
19419   return 0;
19420 }
19421 _ACEOF
19422 rm -f conftest.$ac_objext conftest$ac_exeext
19423 if { (ac_try="$ac_link"
19424 case "(($ac_try" in
19425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19426   *) ac_try_echo=$ac_try;;
19427 esac
19428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19429   (eval "$ac_link") 2>conftest.er1
19430   ac_status=$?
19431   grep -v '^ *+' conftest.er1 >conftest.err
19432   rm -f conftest.er1
19433   cat conftest.err >&5
19434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19435   (exit $ac_status); } && {
19436          test -z "$ac_c_werror_flag" ||
19437          test ! -s conftest.err
19438        } && test -s conftest$ac_exeext &&
19439        $as_test_x conftest$ac_exeext; then
19440   ac_cv_func_fchown=yes
19441 else
19442   echo "$as_me: failed program was:" >&5
19443 sed 's/^/| /' conftest.$ac_ext >&5
19444
19445         ac_cv_func_fchown=no
19446 fi
19447
19448 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19449       conftest$ac_exeext conftest.$ac_ext
19450 fi
19451 { echo "$as_me:$LINENO: result: $ac_cv_func_fchown" >&5
19452 echo "${ECHO_T}$ac_cv_func_fchown" >&6; }
19453 if test $ac_cv_func_fchown = yes; then
19454   :
19455 else
19456
19457
19458
19459
19460
19461
19462
19463
19464   gl_LIBOBJS="$gl_LIBOBJS fchown-stub.$ac_objext"
19465
19466 fi
19467
19468
19469   fi
19470
19471
19472
19473   GNULIB_CHOWN=1
19474
19475
19476
19477
19478   # Solaris 2.5.1 needs -lposix4 to get the clock_gettime function.
19479   # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
19480
19481   # Save and restore LIBS so e.g., -lrt, isn't added to it.  Otherwise, *all*
19482   # programs in the package would end up linked with that potentially-shared
19483   # library, inducing unnecessary run-time overhead.
19484   gl_saved_libs=$LIBS
19485     { echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
19486 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
19487 if test "${ac_cv_search_clock_gettime+set}" = set; then
19488   echo $ECHO_N "(cached) $ECHO_C" >&6
19489 else
19490   ac_func_search_save_LIBS=$LIBS
19491 cat >conftest.$ac_ext <<_ACEOF
19492 /* confdefs.h.  */
19493 _ACEOF
19494 cat confdefs.h >>conftest.$ac_ext
19495 cat >>conftest.$ac_ext <<_ACEOF
19496 /* end confdefs.h.  */
19497
19498 /* Override any GCC internal prototype to avoid an error.
19499    Use char because int might match the return type of a GCC
19500    builtin and then its argument prototype would still apply.  */
19501 #ifdef __cplusplus
19502 extern "C"
19503 #endif
19504 char clock_gettime ();
19505 int
19506 main ()
19507 {
19508 return clock_gettime ();
19509   ;
19510   return 0;
19511 }
19512 _ACEOF
19513 for ac_lib in '' rt posix4; do
19514   if test -z "$ac_lib"; then
19515     ac_res="none required"
19516   else
19517     ac_res=-l$ac_lib
19518     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19519   fi
19520   rm -f conftest.$ac_objext conftest$ac_exeext
19521 if { (ac_try="$ac_link"
19522 case "(($ac_try" in
19523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19524   *) ac_try_echo=$ac_try;;
19525 esac
19526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19527   (eval "$ac_link") 2>conftest.er1
19528   ac_status=$?
19529   grep -v '^ *+' conftest.er1 >conftest.err
19530   rm -f conftest.er1
19531   cat conftest.err >&5
19532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19533   (exit $ac_status); } && {
19534          test -z "$ac_c_werror_flag" ||
19535          test ! -s conftest.err
19536        } && test -s conftest$ac_exeext &&
19537        $as_test_x conftest$ac_exeext; then
19538   ac_cv_search_clock_gettime=$ac_res
19539 else
19540   echo "$as_me: failed program was:" >&5
19541 sed 's/^/| /' conftest.$ac_ext >&5
19542
19543
19544 fi
19545
19546 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19547       conftest$ac_exeext
19548   if test "${ac_cv_search_clock_gettime+set}" = set; then
19549   break
19550 fi
19551 done
19552 if test "${ac_cv_search_clock_gettime+set}" = set; then
19553   :
19554 else
19555   ac_cv_search_clock_gettime=no
19556 fi
19557 rm conftest.$ac_ext
19558 LIBS=$ac_func_search_save_LIBS
19559 fi
19560 { echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
19561 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
19562 ac_res=$ac_cv_search_clock_gettime
19563 if test "$ac_res" != no; then
19564   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19565   test "$ac_cv_search_clock_gettime" = "none required" ||
19566                     LIB_CLOCK_GETTIME=$ac_cv_search_clock_gettime
19567 fi
19568
19569
19570
19571
19572 for ac_func in clock_gettime clock_settime
19573 do
19574 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19575 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19576 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19577 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19578   echo $ECHO_N "(cached) $ECHO_C" >&6
19579 else
19580   cat >conftest.$ac_ext <<_ACEOF
19581 /* confdefs.h.  */
19582 _ACEOF
19583 cat confdefs.h >>conftest.$ac_ext
19584 cat >>conftest.$ac_ext <<_ACEOF
19585 /* end confdefs.h.  */
19586 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19587    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19588 #define $ac_func innocuous_$ac_func
19589
19590 /* System header to define __stub macros and hopefully few prototypes,
19591     which can conflict with char $ac_func (); below.
19592     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19593     <limits.h> exists even on freestanding compilers.  */
19594
19595 #ifdef __STDC__
19596 # include <limits.h>
19597 #else
19598 # include <assert.h>
19599 #endif
19600
19601 #undef $ac_func
19602
19603 /* Override any GCC internal prototype to avoid an error.
19604    Use char because int might match the return type of a GCC
19605    builtin and then its argument prototype would still apply.  */
19606 #ifdef __cplusplus
19607 extern "C"
19608 #endif
19609 char $ac_func ();
19610 /* The GNU C library defines this for functions which it implements
19611     to always fail with ENOSYS.  Some functions are actually named
19612     something starting with __ and the normal name is an alias.  */
19613 #if defined __stub_$ac_func || defined __stub___$ac_func
19614 choke me
19615 #endif
19616
19617 int
19618 main ()
19619 {
19620 return $ac_func ();
19621   ;
19622   return 0;
19623 }
19624 _ACEOF
19625 rm -f conftest.$ac_objext conftest$ac_exeext
19626 if { (ac_try="$ac_link"
19627 case "(($ac_try" in
19628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19629   *) ac_try_echo=$ac_try;;
19630 esac
19631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19632   (eval "$ac_link") 2>conftest.er1
19633   ac_status=$?
19634   grep -v '^ *+' conftest.er1 >conftest.err
19635   rm -f conftest.er1
19636   cat conftest.err >&5
19637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19638   (exit $ac_status); } && {
19639          test -z "$ac_c_werror_flag" ||
19640          test ! -s conftest.err
19641        } && test -s conftest$ac_exeext &&
19642        $as_test_x conftest$ac_exeext; then
19643   eval "$as_ac_var=yes"
19644 else
19645   echo "$as_me: failed program was:" >&5
19646 sed 's/^/| /' conftest.$ac_ext >&5
19647
19648         eval "$as_ac_var=no"
19649 fi
19650
19651 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19652       conftest$ac_exeext conftest.$ac_ext
19653 fi
19654 ac_res=`eval echo '${'$as_ac_var'}'`
19655                { echo "$as_me:$LINENO: result: $ac_res" >&5
19656 echo "${ECHO_T}$ac_res" >&6; }
19657 if test `eval echo '${'$as_ac_var'}'` = yes; then
19658   cat >>confdefs.h <<_ACEOF
19659 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19660 _ACEOF
19661
19662 fi
19663 done
19664
19665   LIBS=$gl_saved_libs
19666
19667
19668
19669
19670
19671
19672   GNULIB_CLOSE=1
19673
19674
19675
19676
19677
19678
19679
19680
19681
19682
19683   gl_LIBOBJS="$gl_LIBOBJS close-stream.$ac_objext"
19684
19685
19686     :
19687
19688
19689
19690 cat >>confdefs.h <<\_ACEOF
19691 #define GNULIB_CLOSE_STREAM 1
19692 _ACEOF
19693
19694
19695
19696
19697
19698
19699
19700
19701
19702
19703
19704   gl_LIBOBJS="$gl_LIBOBJS closeout.$ac_objext"
19705
19706
19707     :
19708
19709   { echo "$as_me:$LINENO: checking for d_ino member in directory struct" >&5
19710 echo $ECHO_N "checking for d_ino member in directory struct... $ECHO_C" >&6; }
19711 if test "${gl_cv_struct_dirent_d_ino+set}" = set; then
19712   echo $ECHO_N "(cached) $ECHO_C" >&6
19713 else
19714   if test "$cross_compiling" = yes; then
19715   gl_cv_struct_dirent_d_ino=no
19716 else
19717   cat >conftest.$ac_ext <<_ACEOF
19718 /* confdefs.h.  */
19719 _ACEOF
19720 cat confdefs.h >>conftest.$ac_ext
19721 cat >>conftest.$ac_ext <<_ACEOF
19722 /* end confdefs.h.  */
19723 #include <sys/types.h>
19724              #include <sys/stat.h>
19725              #include <dirent.h>
19726
19727 int
19728 main ()
19729 {
19730 DIR *dp = opendir (".");
19731              struct dirent *e;
19732              struct stat st;
19733              if (! dp)
19734                return 1;
19735              e = readdir (dp);
19736              return ! (e
19737                        && stat (e->d_name, &st) == 0
19738                        && e->d_ino == st.st_ino);
19739   ;
19740   return 0;
19741 }
19742 _ACEOF
19743 rm -f conftest$ac_exeext
19744 if { (ac_try="$ac_link"
19745 case "(($ac_try" in
19746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19747   *) ac_try_echo=$ac_try;;
19748 esac
19749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19750   (eval "$ac_link") 2>&5
19751   ac_status=$?
19752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19753   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19754   { (case "(($ac_try" in
19755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19756   *) ac_try_echo=$ac_try;;
19757 esac
19758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19759   (eval "$ac_try") 2>&5
19760   ac_status=$?
19761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19762   (exit $ac_status); }; }; then
19763   gl_cv_struct_dirent_d_ino=yes
19764 else
19765   echo "$as_me: program exited with status $ac_status" >&5
19766 echo "$as_me: failed program was:" >&5
19767 sed 's/^/| /' conftest.$ac_ext >&5
19768
19769 ( exit $ac_status )
19770 gl_cv_struct_dirent_d_ino=no
19771 fi
19772 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19773 fi
19774
19775
19776 fi
19777 { echo "$as_me:$LINENO: result: $gl_cv_struct_dirent_d_ino" >&5
19778 echo "${ECHO_T}$gl_cv_struct_dirent_d_ino" >&6; }
19779    if test $gl_cv_struct_dirent_d_ino = yes; then
19780
19781 cat >>confdefs.h <<\_ACEOF
19782 #define D_INO_IN_DIRENT 1
19783 _ACEOF
19784
19785    fi
19786
19787
19788
19789
19790
19791
19792
19793
19794
19795
19796
19797
19798
19799
19800
19801
19802      if test $gl_cv_have_include_next = yes; then
19803        gl_cv_next_dirent_h='<'dirent.h'>'
19804      else
19805        { echo "$as_me:$LINENO: checking absolute name of <dirent.h>" >&5
19806 echo $ECHO_N "checking absolute name of <dirent.h>... $ECHO_C" >&6; }
19807 if test "${gl_cv_next_dirent_h+set}" = set; then
19808   echo $ECHO_N "(cached) $ECHO_C" >&6
19809 else
19810
19811           if test $ac_cv_header_dirent_h = yes; then
19812             cat >conftest.$ac_ext <<_ACEOF
19813 /* confdefs.h.  */
19814 _ACEOF
19815 cat confdefs.h >>conftest.$ac_ext
19816 cat >>conftest.$ac_ext <<_ACEOF
19817 /* end confdefs.h.  */
19818 #include <dirent.h>
19819
19820 _ACEOF
19821                                                                     case "$host_os" in
19822               aix*) gl_absname_cpp="$ac_cpp -C" ;;
19823               *)    gl_absname_cpp="$ac_cpp" ;;
19824             esac
19825                                     gl_cv_next_dirent_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19826                sed -n '\#/dirent.h#{
19827                  s#.*"\(.*/dirent.h\)".*#\1#
19828                  s#^/[^/]#//&#
19829                  p
19830                  q
19831                }'`'"'
19832           else
19833             gl_cv_next_dirent_h='<'dirent.h'>'
19834           fi
19835
19836 fi
19837 { echo "$as_me:$LINENO: result: $gl_cv_next_dirent_h" >&5
19838 echo "${ECHO_T}$gl_cv_next_dirent_h" >&6; }
19839      fi
19840      NEXT_DIRENT_H=$gl_cv_next_dirent_h
19841
19842
19843
19844
19845
19846
19847
19848
19849   DIRENT_H='dirent.h'
19850
19851
19852
19853
19854
19855
19856
19857
19858 for ac_func in dirfd
19859 do
19860 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19861 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19862 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19863 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19864   echo $ECHO_N "(cached) $ECHO_C" >&6
19865 else
19866   cat >conftest.$ac_ext <<_ACEOF
19867 /* confdefs.h.  */
19868 _ACEOF
19869 cat confdefs.h >>conftest.$ac_ext
19870 cat >>conftest.$ac_ext <<_ACEOF
19871 /* end confdefs.h.  */
19872 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19873    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19874 #define $ac_func innocuous_$ac_func
19875
19876 /* System header to define __stub macros and hopefully few prototypes,
19877     which can conflict with char $ac_func (); below.
19878     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19879     <limits.h> exists even on freestanding compilers.  */
19880
19881 #ifdef __STDC__
19882 # include <limits.h>
19883 #else
19884 # include <assert.h>
19885 #endif
19886
19887 #undef $ac_func
19888
19889 /* Override any GCC internal prototype to avoid an error.
19890    Use char because int might match the return type of a GCC
19891    builtin and then its argument prototype would still apply.  */
19892 #ifdef __cplusplus
19893 extern "C"
19894 #endif
19895 char $ac_func ();
19896 /* The GNU C library defines this for functions which it implements
19897     to always fail with ENOSYS.  Some functions are actually named
19898     something starting with __ and the normal name is an alias.  */
19899 #if defined __stub_$ac_func || defined __stub___$ac_func
19900 choke me
19901 #endif
19902
19903 int
19904 main ()
19905 {
19906 return $ac_func ();
19907   ;
19908   return 0;
19909 }
19910 _ACEOF
19911 rm -f conftest.$ac_objext conftest$ac_exeext
19912 if { (ac_try="$ac_link"
19913 case "(($ac_try" in
19914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19915   *) ac_try_echo=$ac_try;;
19916 esac
19917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19918   (eval "$ac_link") 2>conftest.er1
19919   ac_status=$?
19920   grep -v '^ *+' conftest.er1 >conftest.err
19921   rm -f conftest.er1
19922   cat conftest.err >&5
19923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19924   (exit $ac_status); } && {
19925          test -z "$ac_c_werror_flag" ||
19926          test ! -s conftest.err
19927        } && test -s conftest$ac_exeext &&
19928        $as_test_x conftest$ac_exeext; then
19929   eval "$as_ac_var=yes"
19930 else
19931   echo "$as_me: failed program was:" >&5
19932 sed 's/^/| /' conftest.$ac_ext >&5
19933
19934         eval "$as_ac_var=no"
19935 fi
19936
19937 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19938       conftest$ac_exeext conftest.$ac_ext
19939 fi
19940 ac_res=`eval echo '${'$as_ac_var'}'`
19941                { echo "$as_me:$LINENO: result: $ac_res" >&5
19942 echo "${ECHO_T}$ac_res" >&6; }
19943 if test `eval echo '${'$as_ac_var'}'` = yes; then
19944   cat >>confdefs.h <<_ACEOF
19945 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19946 _ACEOF
19947
19948 fi
19949 done
19950
19951   { echo "$as_me:$LINENO: checking whether dirfd is declared" >&5
19952 echo $ECHO_N "checking whether dirfd is declared... $ECHO_C" >&6; }
19953 if test "${ac_cv_have_decl_dirfd+set}" = set; then
19954   echo $ECHO_N "(cached) $ECHO_C" >&6
19955 else
19956   cat >conftest.$ac_ext <<_ACEOF
19957 /* confdefs.h.  */
19958 _ACEOF
19959 cat confdefs.h >>conftest.$ac_ext
19960 cat >>conftest.$ac_ext <<_ACEOF
19961 /* end confdefs.h.  */
19962 #include <sys/types.h>
19963      #include <dirent.h>
19964
19965 int
19966 main ()
19967 {
19968 #ifndef dirfd
19969   (void) dirfd;
19970 #endif
19971
19972   ;
19973   return 0;
19974 }
19975 _ACEOF
19976 rm -f conftest.$ac_objext
19977 if { (ac_try="$ac_compile"
19978 case "(($ac_try" in
19979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19980   *) ac_try_echo=$ac_try;;
19981 esac
19982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19983   (eval "$ac_compile") 2>conftest.er1
19984   ac_status=$?
19985   grep -v '^ *+' conftest.er1 >conftest.err
19986   rm -f conftest.er1
19987   cat conftest.err >&5
19988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19989   (exit $ac_status); } && {
19990          test -z "$ac_c_werror_flag" ||
19991          test ! -s conftest.err
19992        } && test -s conftest.$ac_objext; then
19993   ac_cv_have_decl_dirfd=yes
19994 else
19995   echo "$as_me: failed program was:" >&5
19996 sed 's/^/| /' conftest.$ac_ext >&5
19997
19998         ac_cv_have_decl_dirfd=no
19999 fi
20000
20001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20002 fi
20003 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_dirfd" >&5
20004 echo "${ECHO_T}$ac_cv_have_decl_dirfd" >&6; }
20005 if test $ac_cv_have_decl_dirfd = yes; then
20006
20007 cat >>confdefs.h <<_ACEOF
20008 #define HAVE_DECL_DIRFD 1
20009 _ACEOF
20010
20011
20012 else
20013   cat >>confdefs.h <<_ACEOF
20014 #define HAVE_DECL_DIRFD 0
20015 _ACEOF
20016
20017
20018 fi
20019
20020
20021   if test $ac_cv_have_decl_dirfd = no; then
20022     HAVE_DECL_DIRFD=0
20023   fi
20024
20025   { echo "$as_me:$LINENO: checking whether dirfd is a macro" >&5
20026 echo $ECHO_N "checking whether dirfd is a macro... $ECHO_C" >&6; }
20027 if test "${gl_cv_func_dirfd_macro+set}" = set; then
20028   echo $ECHO_N "(cached) $ECHO_C" >&6
20029 else
20030   cat >conftest.$ac_ext <<_ACEOF
20031 /* confdefs.h.  */
20032 _ACEOF
20033 cat confdefs.h >>conftest.$ac_ext
20034 cat >>conftest.$ac_ext <<_ACEOF
20035 /* end confdefs.h.  */
20036
20037 #include <sys/types.h>
20038 #include <dirent.h>
20039 #ifdef dirfd
20040  dirent_header_defines_dirfd
20041 #endif
20042 _ACEOF
20043 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20044   $EGREP "dirent_header_defines_dirfd" >/dev/null 2>&1; then
20045   gl_cv_func_dirfd_macro=yes
20046 else
20047   gl_cv_func_dirfd_macro=no
20048 fi
20049 rm -f conftest*
20050
20051 fi
20052 { echo "$as_me:$LINENO: result: $gl_cv_func_dirfd_macro" >&5
20053 echo "${ECHO_T}$gl_cv_func_dirfd_macro" >&6; }
20054
20055   # Use the replacement only if we have no function, macro,
20056   # or declaration with that name.
20057   if test $ac_cv_func_dirfd,$ac_cv_have_decl_dirfd,$gl_cv_func_dirfd_macro \
20058       = no,no,no; then
20059
20060
20061
20062
20063
20064
20065
20066
20067
20068 for ac_func in dirfd
20069 do
20070 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20071 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20072 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20073 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20074   echo $ECHO_N "(cached) $ECHO_C" >&6
20075 else
20076   cat >conftest.$ac_ext <<_ACEOF
20077 /* confdefs.h.  */
20078 _ACEOF
20079 cat confdefs.h >>conftest.$ac_ext
20080 cat >>conftest.$ac_ext <<_ACEOF
20081 /* end confdefs.h.  */
20082 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20083    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20084 #define $ac_func innocuous_$ac_func
20085
20086 /* System header to define __stub macros and hopefully few prototypes,
20087     which can conflict with char $ac_func (); below.
20088     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20089     <limits.h> exists even on freestanding compilers.  */
20090
20091 #ifdef __STDC__
20092 # include <limits.h>
20093 #else
20094 # include <assert.h>
20095 #endif
20096
20097 #undef $ac_func
20098
20099 /* Override any GCC internal prototype to avoid an error.
20100    Use char because int might match the return type of a GCC
20101    builtin and then its argument prototype would still apply.  */
20102 #ifdef __cplusplus
20103 extern "C"
20104 #endif
20105 char $ac_func ();
20106 /* The GNU C library defines this for functions which it implements
20107     to always fail with ENOSYS.  Some functions are actually named
20108     something starting with __ and the normal name is an alias.  */
20109 #if defined __stub_$ac_func || defined __stub___$ac_func
20110 choke me
20111 #endif
20112
20113 int
20114 main ()
20115 {
20116 return $ac_func ();
20117   ;
20118   return 0;
20119 }
20120 _ACEOF
20121 rm -f conftest.$ac_objext conftest$ac_exeext
20122 if { (ac_try="$ac_link"
20123 case "(($ac_try" in
20124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20125   *) ac_try_echo=$ac_try;;
20126 esac
20127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20128   (eval "$ac_link") 2>conftest.er1
20129   ac_status=$?
20130   grep -v '^ *+' conftest.er1 >conftest.err
20131   rm -f conftest.er1
20132   cat conftest.err >&5
20133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20134   (exit $ac_status); } && {
20135          test -z "$ac_c_werror_flag" ||
20136          test ! -s conftest.err
20137        } && test -s conftest$ac_exeext &&
20138        $as_test_x conftest$ac_exeext; then
20139   eval "$as_ac_var=yes"
20140 else
20141   echo "$as_me: failed program was:" >&5
20142 sed 's/^/| /' conftest.$ac_ext >&5
20143
20144         eval "$as_ac_var=no"
20145 fi
20146
20147 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20148       conftest$ac_exeext conftest.$ac_ext
20149 fi
20150 ac_res=`eval echo '${'$as_ac_var'}'`
20151                { echo "$as_me:$LINENO: result: $ac_res" >&5
20152 echo "${ECHO_T}$ac_res" >&6; }
20153 if test `eval echo '${'$as_ac_var'}'` = yes; then
20154   cat >>confdefs.h <<_ACEOF
20155 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20156 _ACEOF
20157
20158 else
20159
20160     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
20161
20162 fi
20163 done
20164
20165
20166     { echo "$as_me:$LINENO: checking how to get the file descriptor associated with an open DIR*" >&5
20167 echo $ECHO_N "checking how to get the file descriptor associated with an open DIR*... $ECHO_C" >&6; }
20168 if test "${gl_cv_sys_dir_fd_member_name+set}" = set; then
20169   echo $ECHO_N "(cached) $ECHO_C" >&6
20170 else
20171
20172         dirfd_save_CFLAGS=$CFLAGS
20173         for ac_expr in d_fd dd_fd; do
20174
20175           CFLAGS="$CFLAGS -DDIR_FD_MEMBER_NAME=$ac_expr"
20176           cat >conftest.$ac_ext <<_ACEOF
20177 /* confdefs.h.  */
20178 _ACEOF
20179 cat confdefs.h >>conftest.$ac_ext
20180 cat >>conftest.$ac_ext <<_ACEOF
20181 /* end confdefs.h.  */
20182 #include <sys/types.h>
20183              #include <dirent.h>
20184 int
20185 main ()
20186 {
20187 DIR *dir_p = opendir("."); (void) dir_p->DIR_FD_MEMBER_NAME;
20188   ;
20189   return 0;
20190 }
20191 _ACEOF
20192 rm -f conftest.$ac_objext
20193 if { (ac_try="$ac_compile"
20194 case "(($ac_try" in
20195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20196   *) ac_try_echo=$ac_try;;
20197 esac
20198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20199   (eval "$ac_compile") 2>conftest.er1
20200   ac_status=$?
20201   grep -v '^ *+' conftest.er1 >conftest.err
20202   rm -f conftest.er1
20203   cat conftest.err >&5
20204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20205   (exit $ac_status); } && {
20206          test -z "$ac_c_werror_flag" ||
20207          test ! -s conftest.err
20208        } && test -s conftest.$ac_objext; then
20209   dir_fd_found=yes
20210
20211 else
20212   echo "$as_me: failed program was:" >&5
20213 sed 's/^/| /' conftest.$ac_ext >&5
20214
20215
20216 fi
20217
20218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20219           CFLAGS=$dirfd_save_CFLAGS
20220           test "$dir_fd_found" = yes && break
20221         done
20222         test "$dir_fd_found" = yes || ac_expr=no_such_member
20223
20224         gl_cv_sys_dir_fd_member_name=$ac_expr
20225
20226
20227 fi
20228 { echo "$as_me:$LINENO: result: $gl_cv_sys_dir_fd_member_name" >&5
20229 echo "${ECHO_T}$gl_cv_sys_dir_fd_member_name" >&6; }
20230     if test $gl_cv_sys_dir_fd_member_name != no_such_member; then
20231
20232 cat >>confdefs.h <<_ACEOF
20233 #define DIR_FD_MEMBER_NAME $gl_cv_sys_dir_fd_member_name
20234 _ACEOF
20235
20236     fi
20237
20238
20239   fi
20240
20241
20242
20243   GNULIB_DIRFD=1
20244
20245
20246
20247
20248
20249
20250
20251
20252
20253
20254   gl_LIBOBJS="$gl_LIBOBJS basename.$ac_objext"
20255
20256
20257
20258
20259
20260
20261
20262
20263
20264   gl_LIBOBJS="$gl_LIBOBJS dirname.$ac_objext"
20265
20266
20267
20268
20269
20270
20271
20272
20273
20274   gl_LIBOBJS="$gl_LIBOBJS stripslash.$ac_objext"
20275
20276
20277
20278
20279
20280
20281
20282
20283   { echo "$as_me:$LINENO: checking whether // is distinct from /" >&5
20284 echo $ECHO_N "checking whether // is distinct from /... $ECHO_C" >&6; }
20285 if test "${gl_cv_double_slash_root+set}" = set; then
20286   echo $ECHO_N "(cached) $ECHO_C" >&6
20287 else
20288    if test x"$cross_compiling" = xyes ; then
20289         # When cross-compiling, there is no way to tell whether // is special
20290         # short of a list of hosts.  However, the only known hosts to date
20291         # that have a distinct // are Apollo DomainOS (too old to port to),
20292         # Cygwin, and z/OS.  If anyone knows of another system for which // has
20293         # special semantics and is distinct from /, please report it to
20294         # <bug-gnulib@gnu.org>.
20295         case $host in
20296           *-cygwin | i370-ibm-openedition)
20297             gl_cv_double_slash_root=yes ;;
20298           *)
20299             # Be optimistic and assume that / and // are the same when we
20300             # don't know.
20301             gl_cv_double_slash_root='unknown, assuming no' ;;
20302         esac
20303       else
20304         set x `ls -di / // 2>/dev/null`
20305         if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
20306           gl_cv_double_slash_root=no
20307         else
20308           gl_cv_double_slash_root=yes
20309         fi
20310       fi
20311 fi
20312 { echo "$as_me:$LINENO: result: $gl_cv_double_slash_root" >&5
20313 echo "${ECHO_T}$gl_cv_double_slash_root" >&6; }
20314   if test "$gl_cv_double_slash_root" = yes; then
20315
20316 cat >>confdefs.h <<\_ACEOF
20317 #define DOUBLE_SLASH_IS_DISTINCT_ROOT 1
20318 _ACEOF
20319
20320   fi
20321
20322
20323
20324
20325
20326
20327
20328
20329
20330   if test $ac_cv_func_dup2 = no; then
20331     HAVE_DUP2=0
20332
20333
20334
20335
20336
20337
20338
20339
20340   gl_LIBOBJS="$gl_LIBOBJS dup2.$ac_objext"
20341
20342   fi
20343
20344
20345
20346   GNULIB_DUP2=1
20347
20348
20349
20350
20351
20352
20353   { echo "$as_me:$LINENO: checking if environ is properly declared" >&5
20354 echo $ECHO_N "checking if environ is properly declared... $ECHO_C" >&6; }
20355   if test "${gt_cv_var_environ_declaration+set}" = set; then
20356   echo $ECHO_N "(cached) $ECHO_C" >&6
20357 else
20358
20359     cat >conftest.$ac_ext <<_ACEOF
20360 /* confdefs.h.  */
20361 _ACEOF
20362 cat confdefs.h >>conftest.$ac_ext
20363 cat >>conftest.$ac_ext <<_ACEOF
20364 /* end confdefs.h.  */
20365 #include <unistd.h>
20366       extern struct { int foo; } environ;
20367 int
20368 main ()
20369 {
20370 environ.foo = 1;
20371   ;
20372   return 0;
20373 }
20374 _ACEOF
20375 rm -f conftest.$ac_objext
20376 if { (ac_try="$ac_compile"
20377 case "(($ac_try" in
20378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20379   *) ac_try_echo=$ac_try;;
20380 esac
20381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20382   (eval "$ac_compile") 2>conftest.er1
20383   ac_status=$?
20384   grep -v '^ *+' conftest.er1 >conftest.err
20385   rm -f conftest.er1
20386   cat conftest.err >&5
20387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20388   (exit $ac_status); } && {
20389          test -z "$ac_c_werror_flag" ||
20390          test ! -s conftest.err
20391        } && test -s conftest.$ac_objext; then
20392   gt_cv_var_environ_declaration=no
20393 else
20394   echo "$as_me: failed program was:" >&5
20395 sed 's/^/| /' conftest.$ac_ext >&5
20396
20397         gt_cv_var_environ_declaration=yes
20398 fi
20399
20400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20401 fi
20402
20403   { echo "$as_me:$LINENO: result: $gt_cv_var_environ_declaration" >&5
20404 echo "${ECHO_T}$gt_cv_var_environ_declaration" >&6; }
20405   if test $gt_cv_var_environ_declaration = yes; then
20406
20407 cat >>confdefs.h <<\_ACEOF
20408 #define HAVE_ENVIRON_DECL 1
20409 _ACEOF
20410
20411   fi
20412
20413
20414   if test $gt_cv_var_environ_declaration != yes; then
20415     HAVE_DECL_ENVIRON=0
20416   fi
20417
20418
20419
20420   GNULIB_ENVIRON=1
20421
20422
20423
20424
20425
20426
20427
20428
20429
20430
20431
20432
20433
20434
20435
20436 { echo "$as_me:$LINENO: checking for error_at_line" >&5
20437 echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6; }
20438 if test "${ac_cv_lib_error_at_line+set}" = set; then
20439   echo $ECHO_N "(cached) $ECHO_C" >&6
20440 else
20441   cat >conftest.$ac_ext <<_ACEOF
20442 /* confdefs.h.  */
20443 _ACEOF
20444 cat confdefs.h >>conftest.$ac_ext
20445 cat >>conftest.$ac_ext <<_ACEOF
20446 /* end confdefs.h.  */
20447 #include <error.h>
20448 int
20449 main ()
20450 {
20451 error_at_line (0, 0, "", 0, "an error occurred");
20452   ;
20453   return 0;
20454 }
20455 _ACEOF
20456 rm -f conftest.$ac_objext conftest$ac_exeext
20457 if { (ac_try="$ac_link"
20458 case "(($ac_try" in
20459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20460   *) ac_try_echo=$ac_try;;
20461 esac
20462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20463   (eval "$ac_link") 2>conftest.er1
20464   ac_status=$?
20465   grep -v '^ *+' conftest.er1 >conftest.err
20466   rm -f conftest.er1
20467   cat conftest.err >&5
20468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20469   (exit $ac_status); } && {
20470          test -z "$ac_c_werror_flag" ||
20471          test ! -s conftest.err
20472        } && test -s conftest$ac_exeext &&
20473        $as_test_x conftest$ac_exeext; then
20474   ac_cv_lib_error_at_line=yes
20475 else
20476   echo "$as_me: failed program was:" >&5
20477 sed 's/^/| /' conftest.$ac_ext >&5
20478
20479         ac_cv_lib_error_at_line=no
20480 fi
20481
20482 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20483       conftest$ac_exeext conftest.$ac_ext
20484 fi
20485 { echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
20486 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6; }
20487 if test $ac_cv_lib_error_at_line = no; then
20488
20489
20490
20491
20492
20493
20494
20495
20496   gl_LIBOBJS="$gl_LIBOBJS error.$ac_objext"
20497
20498 fi
20499
20500
20501
20502   :
20503
20504
20505
20506
20507   XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error:3:c-format"
20508
20509
20510
20511   XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error_at_line:5:c-format"
20512
20513
20514
20515
20516
20517
20518
20519
20520
20521
20522   gl_LIBOBJS="$gl_LIBOBJS exclude.$ac_objext"
20523
20524
20525
20526
20527
20528
20529
20530
20531
20532
20533
20534   gl_LIBOBJS="$gl_LIBOBJS exitfail.$ac_objext"
20535
20536
20537     :
20538
20539
20540
20541
20542
20543
20544
20545
20546
20547
20548   if test $ac_cv_func_fchdir = no; then
20549     REPLACE_FCHDIR=1
20550
20551
20552
20553
20554
20555
20556
20557
20558   gl_LIBOBJS="$gl_LIBOBJS fchdir.$ac_objext"
20559
20560     :
20561
20562 cat >>confdefs.h <<\_ACEOF
20563 #define FCHDIR_REPLACEMENT 1
20564 _ACEOF
20565
20566
20567
20568   if test $REPLACE_OPEN != 1; then
20569
20570
20571
20572
20573
20574
20575
20576
20577   gl_LIBOBJS="$gl_LIBOBJS open.$ac_objext"
20578
20579
20580
20581   :
20582
20583   fi
20584   REPLACE_OPEN=1
20585
20586
20587
20588   if test $REPLACE_CLOSE != 1; then
20589
20590
20591
20592
20593
20594
20595
20596
20597   gl_LIBOBJS="$gl_LIBOBJS close.$ac_objext"
20598
20599   fi
20600   REPLACE_CLOSE=1
20601
20602
20603   if test $REPLACE_FCLOSE != 1; then
20604
20605
20606
20607
20608
20609
20610
20611
20612   gl_LIBOBJS="$gl_LIBOBJS fclose.$ac_objext"
20613
20614   fi
20615   REPLACE_FCLOSE=1
20616
20617   LIB_CLOSE="-lws2_32"
20618
20619
20620
20621
20622   DIRENT_H='dirent.h'
20623
20624   fi
20625
20626
20627
20628   GNULIB_FCHDIR=1
20629
20630
20631
20632
20633
20634   GNULIB_FCLOSE=1
20635
20636
20637
20638   { echo "$as_me:$LINENO: checking for working fcntl.h" >&5
20639 echo $ECHO_N "checking for working fcntl.h... $ECHO_C" >&6; }
20640 if test "${gl_cv_header_working_fcntl_h+set}" = set; then
20641   echo $ECHO_N "(cached) $ECHO_C" >&6
20642 else
20643   if test "$cross_compiling" = yes; then
20644   gl_cv_header_working_fcntl_h=cross-compiling
20645 else
20646   cat >conftest.$ac_ext <<_ACEOF
20647 /* confdefs.h.  */
20648 _ACEOF
20649 cat confdefs.h >>conftest.$ac_ext
20650 cat >>conftest.$ac_ext <<_ACEOF
20651 /* end confdefs.h.  */
20652 #include <sys/types.h>
20653            #include <sys/stat.h>
20654            #include <unistd.h>
20655            #include <fcntl.h>
20656            #ifndef O_NOATIME
20657             #define O_NOATIME 0
20658            #endif
20659            #ifndef O_NOFOLLOW
20660             #define O_NOFOLLOW 0
20661            #endif
20662            static int const constants[] =
20663             {
20664               O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
20665               O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
20666             };
20667
20668 int
20669 main ()
20670 {
20671
20672             int status = !constants;
20673             {
20674               static char const sym[] = "conftest.sym";
20675               if (symlink (".", sym) != 0
20676                   || close (open (sym, O_RDONLY | O_NOFOLLOW)) == 0)
20677                 status |= 32;
20678             }
20679             {
20680               static char const file[] = "confdefs.h";
20681               int fd = open (file, O_RDONLY | O_NOATIME);
20682               char c;
20683               struct stat st0, st1;
20684               if (fd < 0
20685                   || fstat (fd, &st0) != 0
20686                   || sleep (1) != 0
20687                   || read (fd, &c, 1) != 1
20688                   || close (fd) != 0
20689                   || stat (file, &st1) != 0
20690                   || st0.st_atime != st1.st_atime)
20691                 status |= 64;
20692             }
20693             return status;
20694   ;
20695   return 0;
20696 }
20697 _ACEOF
20698 rm -f conftest$ac_exeext
20699 if { (ac_try="$ac_link"
20700 case "(($ac_try" in
20701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20702   *) ac_try_echo=$ac_try;;
20703 esac
20704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20705   (eval "$ac_link") 2>&5
20706   ac_status=$?
20707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20708   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20709   { (case "(($ac_try" in
20710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20711   *) ac_try_echo=$ac_try;;
20712 esac
20713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20714   (eval "$ac_try") 2>&5
20715   ac_status=$?
20716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20717   (exit $ac_status); }; }; then
20718   gl_cv_header_working_fcntl_h=yes
20719 else
20720   echo "$as_me: program exited with status $ac_status" >&5
20721 echo "$as_me: failed program was:" >&5
20722 sed 's/^/| /' conftest.$ac_ext >&5
20723
20724 ( exit $ac_status )
20725 case $? in #(
20726         32) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
20727         64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
20728         96) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
20729          *) gl_cv_header_working_fcntl_h='no';;
20730         esac
20731 fi
20732 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20733 fi
20734
20735
20736 fi
20737 { echo "$as_me:$LINENO: result: $gl_cv_header_working_fcntl_h" >&5
20738 echo "${ECHO_T}$gl_cv_header_working_fcntl_h" >&6; }
20739
20740   case $gl_cv_header_working_fcntl_h in #(
20741   *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
20742   *) ac_val=1;;
20743   esac
20744
20745 cat >>confdefs.h <<_ACEOF
20746 #define HAVE_WORKING_O_NOATIME $ac_val
20747 _ACEOF
20748
20749
20750   case $gl_cv_header_working_fcntl_h in #(
20751   *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
20752   *) ac_val=1;;
20753   esac
20754
20755 cat >>confdefs.h <<_ACEOF
20756 #define HAVE_WORKING_O_NOFOLLOW $ac_val
20757 _ACEOF
20758
20759
20760
20761
20762
20763
20764
20765
20766
20767
20768
20769
20770
20771      if test $gl_cv_have_include_next = yes; then
20772        gl_cv_next_fcntl_h='<'fcntl.h'>'
20773      else
20774        { echo "$as_me:$LINENO: checking absolute name of <fcntl.h>" >&5
20775 echo $ECHO_N "checking absolute name of <fcntl.h>... $ECHO_C" >&6; }
20776 if test "${gl_cv_next_fcntl_h+set}" = set; then
20777   echo $ECHO_N "(cached) $ECHO_C" >&6
20778 else
20779
20780           if test $ac_cv_header_fcntl_h = yes; then
20781             cat >conftest.$ac_ext <<_ACEOF
20782 /* confdefs.h.  */
20783 _ACEOF
20784 cat confdefs.h >>conftest.$ac_ext
20785 cat >>conftest.$ac_ext <<_ACEOF
20786 /* end confdefs.h.  */
20787 #include <fcntl.h>
20788
20789 _ACEOF
20790                                                                     case "$host_os" in
20791               aix*) gl_absname_cpp="$ac_cpp -C" ;;
20792               *)    gl_absname_cpp="$ac_cpp" ;;
20793             esac
20794                                     gl_cv_next_fcntl_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20795                sed -n '\#/fcntl.h#{
20796                  s#.*"\(.*/fcntl.h\)".*#\1#
20797                  s#^/[^/]#//&#
20798                  p
20799                  q
20800                }'`'"'
20801           else
20802             gl_cv_next_fcntl_h='<'fcntl.h'>'
20803           fi
20804
20805 fi
20806 { echo "$as_me:$LINENO: result: $gl_cv_next_fcntl_h" >&5
20807 echo "${ECHO_T}$gl_cv_next_fcntl_h" >&6; }
20808      fi
20809      NEXT_FCNTL_H=$gl_cv_next_fcntl_h
20810
20811
20812
20813   FCNTL_H='fcntl.h'
20814
20815
20816
20817
20818
20819
20820
20821
20822
20823
20824
20825   gl_LIBOBJS="$gl_LIBOBJS open-safer.$ac_objext"
20826
20827
20828
20829
20830
20831
20832
20833
20834
20835   gl_LIBOBJS="$gl_LIBOBJS creat-safer.$ac_objext"
20836
20837
20838
20839
20840 cat >>confdefs.h <<\_ACEOF
20841 #define GNULIB_FCNTL_SAFER 1
20842 _ACEOF
20843
20844
20845
20846   { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
20847 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
20848 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
20849   echo $ECHO_N "(cached) $ECHO_C" >&6
20850 else
20851   cat >conftest.$ac_ext <<_ACEOF
20852 /* confdefs.h.  */
20853 _ACEOF
20854 cat confdefs.h >>conftest.$ac_ext
20855 cat >>conftest.$ac_ext <<_ACEOF
20856 /* end confdefs.h.  */
20857 $ac_includes_default
20858 int
20859 main ()
20860 {
20861 static struct stat ac_aggr;
20862 if (ac_aggr.st_blocks)
20863 return 0;
20864   ;
20865   return 0;
20866 }
20867 _ACEOF
20868 rm -f conftest.$ac_objext
20869 if { (ac_try="$ac_compile"
20870 case "(($ac_try" in
20871   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20872   *) ac_try_echo=$ac_try;;
20873 esac
20874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20875   (eval "$ac_compile") 2>conftest.er1
20876   ac_status=$?
20877   grep -v '^ *+' conftest.er1 >conftest.err
20878   rm -f conftest.er1
20879   cat conftest.err >&5
20880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20881   (exit $ac_status); } && {
20882          test -z "$ac_c_werror_flag" ||
20883          test ! -s conftest.err
20884        } && test -s conftest.$ac_objext; then
20885   ac_cv_member_struct_stat_st_blocks=yes
20886 else
20887   echo "$as_me: failed program was:" >&5
20888 sed 's/^/| /' conftest.$ac_ext >&5
20889
20890         cat >conftest.$ac_ext <<_ACEOF
20891 /* confdefs.h.  */
20892 _ACEOF
20893 cat confdefs.h >>conftest.$ac_ext
20894 cat >>conftest.$ac_ext <<_ACEOF
20895 /* end confdefs.h.  */
20896 $ac_includes_default
20897 int
20898 main ()
20899 {
20900 static struct stat ac_aggr;
20901 if (sizeof ac_aggr.st_blocks)
20902 return 0;
20903   ;
20904   return 0;
20905 }
20906 _ACEOF
20907 rm -f conftest.$ac_objext
20908 if { (ac_try="$ac_compile"
20909 case "(($ac_try" in
20910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20911   *) ac_try_echo=$ac_try;;
20912 esac
20913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20914   (eval "$ac_compile") 2>conftest.er1
20915   ac_status=$?
20916   grep -v '^ *+' conftest.er1 >conftest.err
20917   rm -f conftest.er1
20918   cat conftest.err >&5
20919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20920   (exit $ac_status); } && {
20921          test -z "$ac_c_werror_flag" ||
20922          test ! -s conftest.err
20923        } && test -s conftest.$ac_objext; then
20924   ac_cv_member_struct_stat_st_blocks=yes
20925 else
20926   echo "$as_me: failed program was:" >&5
20927 sed 's/^/| /' conftest.$ac_ext >&5
20928
20929         ac_cv_member_struct_stat_st_blocks=no
20930 fi
20931
20932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20933 fi
20934
20935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20936 fi
20937 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
20938 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
20939 if test $ac_cv_member_struct_stat_st_blocks = yes; then
20940
20941 cat >>confdefs.h <<_ACEOF
20942 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
20943 _ACEOF
20944
20945
20946 cat >>confdefs.h <<\_ACEOF
20947 #define HAVE_ST_BLOCKS 1
20948 _ACEOF
20949
20950 else
20951
20952
20953
20954
20955
20956
20957
20958
20959   gl_LIBOBJS="$gl_LIBOBJS fileblocks.$ac_objext"
20960
20961 fi
20962
20963
20964     if test $ac_cv_member_struct_stat_st_blocks = no; then
20965
20966
20967
20968
20969
20970
20971
20972   :
20973
20974   fi
20975
20976
20977
20978
20979   FLOAT_H=
20980   case "$host_os" in
20981     beos* | openbsd*)
20982       FLOAT_H=float.h
20983
20984
20985
20986
20987
20988
20989
20990
20991
20992
20993
20994      if test $gl_cv_have_include_next = yes; then
20995        gl_cv_next_float_h='<'float.h'>'
20996      else
20997        { echo "$as_me:$LINENO: checking absolute name of <float.h>" >&5
20998 echo $ECHO_N "checking absolute name of <float.h>... $ECHO_C" >&6; }
20999 if test "${gl_cv_next_float_h+set}" = set; then
21000   echo $ECHO_N "(cached) $ECHO_C" >&6
21001 else
21002
21003           if test $ac_cv_header_float_h = yes; then
21004             cat >conftest.$ac_ext <<_ACEOF
21005 /* confdefs.h.  */
21006 _ACEOF
21007 cat confdefs.h >>conftest.$ac_ext
21008 cat >>conftest.$ac_ext <<_ACEOF
21009 /* end confdefs.h.  */
21010 #include <float.h>
21011
21012 _ACEOF
21013                                                                     case "$host_os" in
21014               aix*) gl_absname_cpp="$ac_cpp -C" ;;
21015               *)    gl_absname_cpp="$ac_cpp" ;;
21016             esac
21017                                     gl_cv_next_float_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21018                sed -n '\#/float.h#{
21019                  s#.*"\(.*/float.h\)".*#\1#
21020                  s#^/[^/]#//&#
21021                  p
21022                  q
21023                }'`'"'
21024           else
21025             gl_cv_next_float_h='<'float.h'>'
21026           fi
21027
21028 fi
21029 { echo "$as_me:$LINENO: result: $gl_cv_next_float_h" >&5
21030 echo "${ECHO_T}$gl_cv_next_float_h" >&6; }
21031      fi
21032      NEXT_FLOAT_H=$gl_cv_next_float_h
21033
21034
21035
21036       ;;
21037   esac
21038
21039
21040   # No macro. You should also use one of fnmatch-posix or fnmatch-gnu.
21041
21042
21043
21044   FNMATCH_H=
21045   { echo "$as_me:$LINENO: checking for working GNU fnmatch" >&5
21046 echo $ECHO_N "checking for working GNU fnmatch... $ECHO_C" >&6; }
21047 if test "${ac_cv_func_fnmatch_gnu+set}" = set; then
21048   echo $ECHO_N "(cached) $ECHO_C" >&6
21049 else
21050               if test "$cross_compiling" = yes; then
21051   ac_cv_func_fnmatch_gnu=cross
21052 else
21053   cat >conftest.$ac_ext <<_ACEOF
21054 /* confdefs.h.  */
21055 _ACEOF
21056 cat confdefs.h >>conftest.$ac_ext
21057 cat >>conftest.$ac_ext <<_ACEOF
21058 /* end confdefs.h.  */
21059 #include <fnmatch.h>
21060            static int
21061            y (char const *pattern, char const *string, int flags)
21062            {
21063              return fnmatch (pattern, string, flags) == 0;
21064            }
21065            static int
21066            n (char const *pattern, char const *string, int flags)
21067            {
21068              return fnmatch (pattern, string, flags) == FNM_NOMATCH;
21069            }
21070
21071 int
21072 main ()
21073 {
21074 char const *Apat = 'A' < '\\\\' ? "[A-\\\\\\\\]" : "[\\\\\\\\-A]";
21075            char const *apat = 'a' < '\\\\' ? "[a-\\\\\\\\]" : "[\\\\\\\\-a]";
21076            static char const A_1[] = { 'A' - 1, 0 };
21077            static char const A01[] = { 'A' + 1, 0 };
21078            static char const a_1[] = { 'a' - 1, 0 };
21079            static char const a01[] = { 'a' + 1, 0 };
21080            static char const bs_1[] = { '\\\\' - 1, 0 };
21081            static char const bs01[] = { '\\\\' + 1, 0 };
21082            return
21083             !(n ("a*", "", 0)
21084               && y ("a*", "abc", 0)
21085               && n ("d*/*1", "d/s/1", FNM_PATHNAME)
21086               && y ("a\\\\bc", "abc", 0)
21087               && n ("a\\\\bc", "abc", FNM_NOESCAPE)
21088               && y ("*x", ".x", 0)
21089               && n ("*x", ".x", FNM_PERIOD)
21090               && y (Apat, "\\\\", 0) && y (Apat, "A", 0)
21091               && y (apat, "\\\\", 0) && y (apat, "a", 0)
21092               && n (Apat, A_1, 0) == ('A' < '\\\\')
21093               && n (apat, a_1, 0) == ('a' < '\\\\')
21094               && y (Apat, A01, 0) == ('A' < '\\\\')
21095               && y (apat, a01, 0) == ('a' < '\\\\')
21096               && y (Apat, bs_1, 0) == ('A' < '\\\\')
21097               && y (apat, bs_1, 0) == ('a' < '\\\\')
21098               && n (Apat, bs01, 0) == ('A' < '\\\\')
21099               && n (apat, bs01, 0) == ('a' < '\\\\')
21100               && y ("xxXX", "xXxX", FNM_CASEFOLD)
21101                     && y ("a++(x|yy)b", "a+xyyyyxb", FNM_EXTMATCH)
21102                     && n ("d*/*1", "d/s/1", FNM_FILE_NAME)
21103                     && y ("*", "x", FNM_FILE_NAME | FNM_LEADING_DIR)
21104                     && y ("x*", "x/y/z", FNM_FILE_NAME | FNM_LEADING_DIR)
21105                     && y ("*c*", "c/x", FNM_FILE_NAME | FNM_LEADING_DIR));
21106   ;
21107   return 0;
21108 }
21109 _ACEOF
21110 rm -f conftest$ac_exeext
21111 if { (ac_try="$ac_link"
21112 case "(($ac_try" in
21113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21114   *) ac_try_echo=$ac_try;;
21115 esac
21116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21117   (eval "$ac_link") 2>&5
21118   ac_status=$?
21119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21120   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21121   { (case "(($ac_try" in
21122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21123   *) ac_try_echo=$ac_try;;
21124 esac
21125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21126   (eval "$ac_try") 2>&5
21127   ac_status=$?
21128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21129   (exit $ac_status); }; }; then
21130   ac_cv_func_fnmatch_gnu=yes
21131 else
21132   echo "$as_me: program exited with status $ac_status" >&5
21133 echo "$as_me: failed program was:" >&5
21134 sed 's/^/| /' conftest.$ac_ext >&5
21135
21136 ( exit $ac_status )
21137 ac_cv_func_fnmatch_gnu=no
21138 fi
21139 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21140 fi
21141
21142
21143 fi
21144 { echo "$as_me:$LINENO: result: $ac_cv_func_fnmatch_gnu" >&5
21145 echo "${ECHO_T}$ac_cv_func_fnmatch_gnu" >&6; }
21146 if test $ac_cv_func_fnmatch_gnu = yes; then
21147   rm -f lib/fnmatch.h
21148 else
21149   { echo "$as_me:$LINENO: checking whether isblank is declared" >&5
21150 echo $ECHO_N "checking whether isblank is declared... $ECHO_C" >&6; }
21151 if test "${ac_cv_have_decl_isblank+set}" = set; then
21152   echo $ECHO_N "(cached) $ECHO_C" >&6
21153 else
21154   cat >conftest.$ac_ext <<_ACEOF
21155 /* confdefs.h.  */
21156 _ACEOF
21157 cat confdefs.h >>conftest.$ac_ext
21158 cat >>conftest.$ac_ext <<_ACEOF
21159 /* end confdefs.h.  */
21160 #include <ctype.h>
21161
21162 int
21163 main ()
21164 {
21165 #ifndef isblank
21166   (void) isblank;
21167 #endif
21168
21169   ;
21170   return 0;
21171 }
21172 _ACEOF
21173 rm -f conftest.$ac_objext
21174 if { (ac_try="$ac_compile"
21175 case "(($ac_try" in
21176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21177   *) ac_try_echo=$ac_try;;
21178 esac
21179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21180   (eval "$ac_compile") 2>conftest.er1
21181   ac_status=$?
21182   grep -v '^ *+' conftest.er1 >conftest.err
21183   rm -f conftest.er1
21184   cat conftest.err >&5
21185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21186   (exit $ac_status); } && {
21187          test -z "$ac_c_werror_flag" ||
21188          test ! -s conftest.err
21189        } && test -s conftest.$ac_objext; then
21190   ac_cv_have_decl_isblank=yes
21191 else
21192   echo "$as_me: failed program was:" >&5
21193 sed 's/^/| /' conftest.$ac_ext >&5
21194
21195         ac_cv_have_decl_isblank=no
21196 fi
21197
21198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21199 fi
21200 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isblank" >&5
21201 echo "${ECHO_T}$ac_cv_have_decl_isblank" >&6; }
21202 if test $ac_cv_have_decl_isblank = yes; then
21203
21204 cat >>confdefs.h <<_ACEOF
21205 #define HAVE_DECL_ISBLANK 1
21206 _ACEOF
21207
21208
21209 else
21210   cat >>confdefs.h <<_ACEOF
21211 #define HAVE_DECL_ISBLANK 0
21212 _ACEOF
21213
21214
21215 fi
21216
21217
21218
21219
21220
21221
21222
21223
21224
21225
21226
21227
21228
21229
21230
21231
21232
21233
21234
21235
21236
21237
21238
21239
21240
21241
21242
21243
21244
21245
21246
21247
21248
21249
21250
21251
21252   gl_LIBOBJS="$gl_LIBOBJS fnmatch.$ac_objext"
21253
21254 FNMATCH_H=fnmatch.h
21255
21256 fi
21257
21258
21259   if test $ac_cv_func_fnmatch_gnu != yes; then
21260
21261 cat >>confdefs.h <<\_ACEOF
21262 #define fnmatch gnu_fnmatch
21263 _ACEOF
21264
21265   fi
21266
21267
21268
21269
21270
21271
21272
21273
21274
21275
21276
21277
21278
21279
21280
21281   fp_headers='
21282 #     include <stdio.h>
21283 #     if HAVE_STDIO_EXT_H
21284 #      include <stdio_ext.h>
21285 #     endif
21286 '
21287   { echo "$as_me:$LINENO: checking whether __fpending is declared" >&5
21288 echo $ECHO_N "checking whether __fpending is declared... $ECHO_C" >&6; }
21289 if test "${ac_cv_have_decl___fpending+set}" = set; then
21290   echo $ECHO_N "(cached) $ECHO_C" >&6
21291 else
21292   cat >conftest.$ac_ext <<_ACEOF
21293 /* confdefs.h.  */
21294 _ACEOF
21295 cat confdefs.h >>conftest.$ac_ext
21296 cat >>conftest.$ac_ext <<_ACEOF
21297 /* end confdefs.h.  */
21298 $fp_headers
21299
21300 int
21301 main ()
21302 {
21303 #ifndef __fpending
21304   (void) __fpending;
21305 #endif
21306
21307   ;
21308   return 0;
21309 }
21310 _ACEOF
21311 rm -f conftest.$ac_objext
21312 if { (ac_try="$ac_compile"
21313 case "(($ac_try" in
21314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21315   *) ac_try_echo=$ac_try;;
21316 esac
21317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21318   (eval "$ac_compile") 2>conftest.er1
21319   ac_status=$?
21320   grep -v '^ *+' conftest.er1 >conftest.err
21321   rm -f conftest.er1
21322   cat conftest.err >&5
21323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21324   (exit $ac_status); } && {
21325          test -z "$ac_c_werror_flag" ||
21326          test ! -s conftest.err
21327        } && test -s conftest.$ac_objext; then
21328   ac_cv_have_decl___fpending=yes
21329 else
21330   echo "$as_me: failed program was:" >&5
21331 sed 's/^/| /' conftest.$ac_ext >&5
21332
21333         ac_cv_have_decl___fpending=no
21334 fi
21335
21336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21337 fi
21338 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___fpending" >&5
21339 echo "${ECHO_T}$ac_cv_have_decl___fpending" >&6; }
21340 if test $ac_cv_have_decl___fpending = yes; then
21341
21342 cat >>confdefs.h <<_ACEOF
21343 #define HAVE_DECL___FPENDING 1
21344 _ACEOF
21345
21346
21347 else
21348   cat >>confdefs.h <<_ACEOF
21349 #define HAVE_DECL___FPENDING 0
21350 _ACEOF
21351
21352
21353 fi
21354
21355
21356   if test $ac_cv_func___fpending = no; then
21357     { echo "$as_me:$LINENO: checking how to determine the number of pending output bytes on a stream" >&5
21358 echo $ECHO_N "checking how to determine the number of pending output bytes on a stream... $ECHO_C" >&6; }
21359 if test "${ac_cv_sys_pending_output_n_bytes+set}" = set; then
21360   echo $ECHO_N "(cached) $ECHO_C" >&6
21361 else
21362
21363         for ac_expr in                                                    \
21364                                                                           \
21365             '# glibc2'                                                    \
21366             'fp->_IO_write_ptr - fp->_IO_write_base'                      \
21367                                                                           \
21368             '# traditional Unix'                                          \
21369             'fp->_ptr - fp->_base'                                        \
21370                                                                           \
21371             '# BSD'                                                       \
21372             'fp->_p - fp->_bf._base'                                      \
21373                                                                           \
21374             '# SCO, Unixware'                                             \
21375             '(fp->__ptr ? fp->__ptr - fp->__base : 0)'                    \
21376                                                                           \
21377             '# QNX'                                                       \
21378             '(fp->_Mode & 0x2000 /*_MWRITE*/ ? fp->_Next - fp->_Buf : 0)' \
21379                                                                           \
21380             '# old glibc?'                                                \
21381             'fp->__bufp - fp->__buffer'                                   \
21382                                                                           \
21383             '# old glibc iostream?'                                       \
21384             'fp->_pptr - fp->_pbase'                                      \
21385                                                                           \
21386             '# emx+gcc'                                                   \
21387             'fp->_ptr - fp->_buffer'                                      \
21388                                                                           \
21389             '# VMS'                                                       \
21390             '(*fp)->_ptr - (*fp)->_base'                                  \
21391                                                                           \
21392             '# e.g., DGUX R4.11; the info is not available'               \
21393             1                                                             \
21394             ; do
21395
21396           # Skip each embedded comment.
21397           case "$ac_expr" in '#'*) continue;; esac
21398
21399           cat >conftest.$ac_ext <<_ACEOF
21400 /* confdefs.h.  */
21401 _ACEOF
21402 cat confdefs.h >>conftest.$ac_ext
21403 cat >>conftest.$ac_ext <<_ACEOF
21404 /* end confdefs.h.  */
21405 #include <stdio.h>
21406
21407 int
21408 main ()
21409 {
21410 FILE *fp = stdin; (void) ($ac_expr);
21411   ;
21412   return 0;
21413 }
21414 _ACEOF
21415 rm -f conftest.$ac_objext
21416 if { (ac_try="$ac_compile"
21417 case "(($ac_try" in
21418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21419   *) ac_try_echo=$ac_try;;
21420 esac
21421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21422   (eval "$ac_compile") 2>conftest.er1
21423   ac_status=$?
21424   grep -v '^ *+' conftest.er1 >conftest.err
21425   rm -f conftest.er1
21426   cat conftest.err >&5
21427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21428   (exit $ac_status); } && {
21429          test -z "$ac_c_werror_flag" ||
21430          test ! -s conftest.err
21431        } && test -s conftest.$ac_objext; then
21432   fp_done=yes
21433
21434 else
21435   echo "$as_me: failed program was:" >&5
21436 sed 's/^/| /' conftest.$ac_ext >&5
21437
21438
21439 fi
21440
21441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21442           test "$fp_done" = yes && break
21443         done
21444
21445         ac_cv_sys_pending_output_n_bytes=$ac_expr
21446
21447
21448 fi
21449 { echo "$as_me:$LINENO: result: $ac_cv_sys_pending_output_n_bytes" >&5
21450 echo "${ECHO_T}$ac_cv_sys_pending_output_n_bytes" >&6; }
21451
21452 cat >>confdefs.h <<_ACEOF
21453 #define PENDING_OUTPUT_N_BYTES $ac_cv_sys_pending_output_n_bytes
21454 _ACEOF
21455
21456
21457
21458
21459
21460
21461
21462
21463
21464   gl_LIBOBJS="$gl_LIBOBJS fpending.$ac_objext"
21465
21466   fi
21467
21468
21469
21470
21471
21472
21473
21474
21475   { echo "$as_me:$LINENO: checking for fseeko" >&5
21476 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6; }
21477 if test "${gl_cv_func_fseeko+set}" = set; then
21478   echo $ECHO_N "(cached) $ECHO_C" >&6
21479 else
21480
21481       cat >conftest.$ac_ext <<_ACEOF
21482 /* confdefs.h.  */
21483 _ACEOF
21484 cat confdefs.h >>conftest.$ac_ext
21485 cat >>conftest.$ac_ext <<_ACEOF
21486 /* end confdefs.h.  */
21487 #include <stdio.h>
21488 int
21489 main ()
21490 {
21491 fseeko (stdin, 0, 0);
21492   ;
21493   return 0;
21494 }
21495 _ACEOF
21496 rm -f conftest.$ac_objext conftest$ac_exeext
21497 if { (ac_try="$ac_link"
21498 case "(($ac_try" in
21499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21500   *) ac_try_echo=$ac_try;;
21501 esac
21502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21503   (eval "$ac_link") 2>conftest.er1
21504   ac_status=$?
21505   grep -v '^ *+' conftest.er1 >conftest.err
21506   rm -f conftest.er1
21507   cat conftest.err >&5
21508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21509   (exit $ac_status); } && {
21510          test -z "$ac_c_werror_flag" ||
21511          test ! -s conftest.err
21512        } && test -s conftest$ac_exeext &&
21513        $as_test_x conftest$ac_exeext; then
21514   gl_cv_func_fseeko=yes
21515 else
21516   echo "$as_me: failed program was:" >&5
21517 sed 's/^/| /' conftest.$ac_ext >&5
21518
21519         gl_cv_func_fseeko=no
21520 fi
21521
21522 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21523       conftest$ac_exeext conftest.$ac_ext
21524
21525 fi
21526 { echo "$as_me:$LINENO: result: $gl_cv_func_fseeko" >&5
21527 echo "${ECHO_T}$gl_cv_func_fseeko" >&6; }
21528   if test $gl_cv_func_fseeko = no; then
21529     HAVE_FSEEKO=0
21530
21531
21532
21533
21534
21535
21536
21537
21538
21539   gl_LIBOBJS="$gl_LIBOBJS fseeko.$ac_objext"
21540
21541
21542   REPLACE_FSEEKO=1
21543
21544   elif test $gl_cv_var_stdin_large_offset = no; then
21545
21546
21547
21548
21549
21550
21551
21552
21553
21554   gl_LIBOBJS="$gl_LIBOBJS fseeko.$ac_objext"
21555
21556
21557   REPLACE_FSEEKO=1
21558
21559   fi
21560
21561
21562
21563   GNULIB_FSEEKO=1
21564
21565
21566
21567
21568
21569
21570
21571
21572
21573
21574   if test $ac_cv_func_ftruncate = no; then
21575     HAVE_FTRUNCATE=0
21576
21577
21578
21579
21580
21581
21582
21583
21584   gl_LIBOBJS="$gl_LIBOBJS ftruncate.$ac_objext"
21585
21586
21587
21588 for ac_func in chsize
21589 do
21590 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21591 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21592 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21593 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21594   echo $ECHO_N "(cached) $ECHO_C" >&6
21595 else
21596   cat >conftest.$ac_ext <<_ACEOF
21597 /* confdefs.h.  */
21598 _ACEOF
21599 cat confdefs.h >>conftest.$ac_ext
21600 cat >>conftest.$ac_ext <<_ACEOF
21601 /* end confdefs.h.  */
21602 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21603    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21604 #define $ac_func innocuous_$ac_func
21605
21606 /* System header to define __stub macros and hopefully few prototypes,
21607     which can conflict with char $ac_func (); below.
21608     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21609     <limits.h> exists even on freestanding compilers.  */
21610
21611 #ifdef __STDC__
21612 # include <limits.h>
21613 #else
21614 # include <assert.h>
21615 #endif
21616
21617 #undef $ac_func
21618
21619 /* Override any GCC internal prototype to avoid an error.
21620    Use char because int might match the return type of a GCC
21621    builtin and then its argument prototype would still apply.  */
21622 #ifdef __cplusplus
21623 extern "C"
21624 #endif
21625 char $ac_func ();
21626 /* The GNU C library defines this for functions which it implements
21627     to always fail with ENOSYS.  Some functions are actually named
21628     something starting with __ and the normal name is an alias.  */
21629 #if defined __stub_$ac_func || defined __stub___$ac_func
21630 choke me
21631 #endif
21632
21633 int
21634 main ()
21635 {
21636 return $ac_func ();
21637   ;
21638   return 0;
21639 }
21640 _ACEOF
21641 rm -f conftest.$ac_objext conftest$ac_exeext
21642 if { (ac_try="$ac_link"
21643 case "(($ac_try" in
21644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21645   *) ac_try_echo=$ac_try;;
21646 esac
21647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21648   (eval "$ac_link") 2>conftest.er1
21649   ac_status=$?
21650   grep -v '^ *+' conftest.er1 >conftest.err
21651   rm -f conftest.er1
21652   cat conftest.err >&5
21653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21654   (exit $ac_status); } && {
21655          test -z "$ac_c_werror_flag" ||
21656          test ! -s conftest.err
21657        } && test -s conftest$ac_exeext &&
21658        $as_test_x conftest$ac_exeext; then
21659   eval "$as_ac_var=yes"
21660 else
21661   echo "$as_me: failed program was:" >&5
21662 sed 's/^/| /' conftest.$ac_ext >&5
21663
21664         eval "$as_ac_var=no"
21665 fi
21666
21667 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21668       conftest$ac_exeext conftest.$ac_ext
21669 fi
21670 ac_res=`eval echo '${'$as_ac_var'}'`
21671                { echo "$as_me:$LINENO: result: $ac_res" >&5
21672 echo "${ECHO_T}$ac_res" >&6; }
21673 if test `eval echo '${'$as_ac_var'}'` = yes; then
21674   cat >>confdefs.h <<_ACEOF
21675 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21676 _ACEOF
21677
21678 fi
21679 done
21680
21681
21682     case "$host_os" in
21683       mingw*)
21684         # Yes, we know mingw lacks ftruncate.
21685         ;;
21686       *)
21687         # If someone lacks ftruncate, make configure fail, and request
21688         # a bug report to inform us about it.
21689         if test x"$SKIP_FTRUNCATE_CHECK" != xyes; then
21690           { { echo "$as_me:$LINENO: error: Your system lacks the ftruncate function.
21691               Please report this, along with the output of \"uname -a\", to the
21692               bug-coreutils@gnu.org mailing list.  To continue past this point,
21693               rerun configure with SKIP_FTRUNCATE_CHECK=yes.
21694               E.g., ./configure SKIP_FTRUNCATE_CHECK=yes
21695 See \`config.log' for more details." >&5
21696 echo "$as_me: error: Your system lacks the ftruncate function.
21697               Please report this, along with the output of \"uname -a\", to the
21698               bug-coreutils@gnu.org mailing list.  To continue past this point,
21699               rerun configure with SKIP_FTRUNCATE_CHECK=yes.
21700               E.g., ./configure SKIP_FTRUNCATE_CHECK=yes
21701 See \`config.log' for more details." >&2;}
21702    { (exit 1); exit 1; }; }
21703         fi
21704     esac
21705   fi
21706
21707
21708
21709   GNULIB_FTRUNCATE=1
21710
21711
21712
21713
21714
21715   gl_abort_bug=no
21716   case $gl_cv_func_getcwd_null in
21717   yes)
21718
21719
21720
21721
21722
21723
21724   { echo "$as_me:$LINENO: checking whether getcwd handles long file names properly" >&5
21725 echo $ECHO_N "checking whether getcwd handles long file names properly... $ECHO_C" >&6; }
21726 if test "${gl_cv_func_getcwd_path_max+set}" = set; then
21727   echo $ECHO_N "(cached) $ECHO_C" >&6
21728 else
21729   # Arrange for deletion of the temporary directory this test creates.
21730      ac_clean_files="$ac_clean_files confdir3"
21731      if test "$cross_compiling" = yes; then
21732   gl_cv_func_getcwd_path_max=no
21733 else
21734   cat >conftest.$ac_ext <<_ACEOF
21735 /* confdefs.h.  */
21736 _ACEOF
21737 cat confdefs.h >>conftest.$ac_ext
21738 cat >>conftest.$ac_ext <<_ACEOF
21739 /* end confdefs.h.  */
21740
21741 #include <errno.h>
21742 #include <stdlib.h>
21743 #include <unistd.h>
21744 #include <string.h>
21745 #include <limits.h>
21746 #include <sys/stat.h>
21747 #include <sys/types.h>
21748 #include <fcntl.h>
21749
21750 #ifndef AT_FDCWD
21751 # define AT_FDCWD 0
21752 #endif
21753 #ifdef ENAMETOOLONG
21754 # define is_ENAMETOOLONG(x) ((x) == ENAMETOOLONG)
21755 #else
21756 # define is_ENAMETOOLONG(x) 0
21757 #endif
21758
21759 /* Don't get link errors because mkdir is redefined to rpl_mkdir.  */
21760 #undef mkdir
21761
21762 #ifndef S_IRWXU
21763 # define S_IRWXU 0700
21764 #endif
21765
21766 /* The length of this name must be 8.  */
21767 #define DIR_NAME "confdir3"
21768 #define DIR_NAME_LEN 8
21769 #define DIR_NAME_SIZE (DIR_NAME_LEN + 1)
21770
21771 /* The length of "../".  */
21772 #define DOTDOTSLASH_LEN 3
21773
21774 /* Leftover bytes in the buffer, to work around library or OS bugs.  */
21775 #define BUF_SLOP 20
21776
21777 int
21778 main ()
21779 {
21780 #ifndef PATH_MAX
21781   /* The Hurd doesn't define this, so getcwd can't exhibit the bug --
21782      at least not on a local file system.  And if we were to start worrying
21783      about remote file systems, we'd have to enable the wrapper function
21784      all of the time, just to be safe.  That's not worth the cost.  */
21785   exit (0);
21786 #elif ((INT_MAX / (DIR_NAME_SIZE / DOTDOTSLASH_LEN + 1) \
21787         - DIR_NAME_SIZE - BUF_SLOP) \
21788        <= PATH_MAX)
21789   /* FIXME: Assuming there's a system for which this is true,
21790      this should be done in a compile test.  */
21791   exit (0);
21792 #else
21793   char buf[PATH_MAX * (DIR_NAME_SIZE / DOTDOTSLASH_LEN + 1)
21794            + DIR_NAME_SIZE + BUF_SLOP];
21795   char *cwd = getcwd (buf, PATH_MAX);
21796   size_t initial_cwd_len;
21797   size_t cwd_len;
21798   int fail = 0;
21799   size_t n_chdirs = 0;
21800
21801   if (cwd == NULL)
21802     exit (1);
21803
21804   cwd_len = initial_cwd_len = strlen (cwd);
21805
21806   while (1)
21807     {
21808       size_t dotdot_max = PATH_MAX * (DIR_NAME_SIZE / DOTDOTSLASH_LEN);
21809       char *c = NULL;
21810
21811       cwd_len += DIR_NAME_SIZE;
21812       /* If mkdir or chdir fails, it could be that this system cannot create
21813          any file with an absolute name longer than PATH_MAX, such as cygwin.
21814          If so, leave fail as 0, because the current working directory can't
21815          be too long for getcwd if it can't even be created.  For other
21816          errors, be pessimistic and consider that as a failure, too.  */
21817       if (mkdir (DIR_NAME, S_IRWXU) < 0 || chdir (DIR_NAME) < 0)
21818         {
21819           if (! (errno == ERANGE || is_ENAMETOOLONG (errno)))
21820             fail = 2;
21821           break;
21822         }
21823
21824       if (PATH_MAX <= cwd_len && cwd_len < PATH_MAX + DIR_NAME_SIZE)
21825         {
21826           c = getcwd (buf, PATH_MAX);
21827           if (!c && errno == ENOENT)
21828             {
21829               fail = 1;
21830               break;
21831             }
21832           if (c || ! (errno == ERANGE || is_ENAMETOOLONG (errno)))
21833             {
21834               fail = 2;
21835               break;
21836             }
21837         }
21838
21839       if (dotdot_max <= cwd_len - initial_cwd_len)
21840         {
21841           if (dotdot_max + DIR_NAME_SIZE < cwd_len - initial_cwd_len)
21842             break;
21843           c = getcwd (buf, cwd_len + 1);
21844           if (!c)
21845             {
21846               if (! (errno == ERANGE || errno == ENOENT
21847                      || is_ENAMETOOLONG (errno)))
21848                 {
21849                   fail = 2;
21850                   break;
21851                 }
21852               if (AT_FDCWD || errno == ERANGE || errno == ENOENT)
21853                 {
21854                   fail = 1;
21855                   break;
21856                 }
21857             }
21858         }
21859
21860       if (c && strlen (c) != cwd_len)
21861         {
21862           fail = 2;
21863           break;
21864         }
21865       ++n_chdirs;
21866     }
21867
21868   /* Leaving behind such a deep directory is not polite.
21869      So clean up here, right away, even though the driving
21870      shell script would also clean up.  */
21871   {
21872     size_t i;
21873
21874     /* Try rmdir first, in case the chdir failed.  */
21875     rmdir (DIR_NAME);
21876     for (i = 0; i <= n_chdirs; i++)
21877       {
21878         if (chdir ("..") < 0)
21879           break;
21880         if (rmdir (DIR_NAME) != 0)
21881           break;
21882       }
21883   }
21884
21885   exit (fail);
21886 #endif
21887 }
21888
21889 _ACEOF
21890 rm -f conftest$ac_exeext
21891 if { (ac_try="$ac_link"
21892 case "(($ac_try" in
21893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21894   *) ac_try_echo=$ac_try;;
21895 esac
21896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21897   (eval "$ac_link") 2>&5
21898   ac_status=$?
21899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21900   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21901   { (case "(($ac_try" in
21902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21903   *) ac_try_echo=$ac_try;;
21904 esac
21905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21906   (eval "$ac_try") 2>&5
21907   ac_status=$?
21908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21909   (exit $ac_status); }; }; then
21910   gl_cv_func_getcwd_path_max=yes
21911 else
21912   echo "$as_me: program exited with status $ac_status" >&5
21913 echo "$as_me: failed program was:" >&5
21914 sed 's/^/| /' conftest.$ac_ext >&5
21915
21916 ( exit $ac_status )
21917 case $? in
21918      1) gl_cv_func_getcwd_path_max='no, but it is partly working';;
21919      *) gl_cv_func_getcwd_path_max=no;;
21920      esac
21921 fi
21922 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21923 fi
21924
21925
21926
21927 fi
21928 { echo "$as_me:$LINENO: result: $gl_cv_func_getcwd_path_max" >&5
21929 echo "${ECHO_T}$gl_cv_func_getcwd_path_max" >&6; }
21930   case $gl_cv_func_getcwd_path_max in
21931   no,*)
21932
21933 cat >>confdefs.h <<\_ACEOF
21934 #define HAVE_PARTLY_WORKING_GETCWD 1
21935 _ACEOF
21936 ;;
21937   esac
21938
21939
21940
21941
21942
21943
21944
21945 for ac_func in getpagesize
21946 do
21947 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21948 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21949 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21950 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21951   echo $ECHO_N "(cached) $ECHO_C" >&6
21952 else
21953   cat >conftest.$ac_ext <<_ACEOF
21954 /* confdefs.h.  */
21955 _ACEOF
21956 cat confdefs.h >>conftest.$ac_ext
21957 cat >>conftest.$ac_ext <<_ACEOF
21958 /* end confdefs.h.  */
21959 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21960    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21961 #define $ac_func innocuous_$ac_func
21962
21963 /* System header to define __stub macros and hopefully few prototypes,
21964     which can conflict with char $ac_func (); below.
21965     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21966     <limits.h> exists even on freestanding compilers.  */
21967
21968 #ifdef __STDC__
21969 # include <limits.h>
21970 #else
21971 # include <assert.h>
21972 #endif
21973
21974 #undef $ac_func
21975
21976 /* Override any GCC internal prototype to avoid an error.
21977    Use char because int might match the return type of a GCC
21978    builtin and then its argument prototype would still apply.  */
21979 #ifdef __cplusplus
21980 extern "C"
21981 #endif
21982 char $ac_func ();
21983 /* The GNU C library defines this for functions which it implements
21984     to always fail with ENOSYS.  Some functions are actually named
21985     something starting with __ and the normal name is an alias.  */
21986 #if defined __stub_$ac_func || defined __stub___$ac_func
21987 choke me
21988 #endif
21989
21990 int
21991 main ()
21992 {
21993 return $ac_func ();
21994   ;
21995   return 0;
21996 }
21997 _ACEOF
21998 rm -f conftest.$ac_objext conftest$ac_exeext
21999 if { (ac_try="$ac_link"
22000 case "(($ac_try" in
22001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22002   *) ac_try_echo=$ac_try;;
22003 esac
22004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22005   (eval "$ac_link") 2>conftest.er1
22006   ac_status=$?
22007   grep -v '^ *+' conftest.er1 >conftest.err
22008   rm -f conftest.er1
22009   cat conftest.err >&5
22010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22011   (exit $ac_status); } && {
22012          test -z "$ac_c_werror_flag" ||
22013          test ! -s conftest.err
22014        } && test -s conftest$ac_exeext &&
22015        $as_test_x conftest$ac_exeext; then
22016   eval "$as_ac_var=yes"
22017 else
22018   echo "$as_me: failed program was:" >&5
22019 sed 's/^/| /' conftest.$ac_ext >&5
22020
22021         eval "$as_ac_var=no"
22022 fi
22023
22024 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22025       conftest$ac_exeext conftest.$ac_ext
22026 fi
22027 ac_res=`eval echo '${'$as_ac_var'}'`
22028                { echo "$as_me:$LINENO: result: $ac_res" >&5
22029 echo "${ECHO_T}$ac_res" >&6; }
22030 if test `eval echo '${'$as_ac_var'}'` = yes; then
22031   cat >>confdefs.h <<_ACEOF
22032 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22033 _ACEOF
22034
22035 fi
22036 done
22037
22038   { echo "$as_me:$LINENO: checking whether getcwd aborts when 4k < cwd_length < 16k" >&5
22039 echo $ECHO_N "checking whether getcwd aborts when 4k < cwd_length < 16k... $ECHO_C" >&6; }
22040 if test "${gl_cv_func_getcwd_abort_bug+set}" = set; then
22041   echo $ECHO_N "(cached) $ECHO_C" >&6
22042 else
22043   # Remove any remnants of a previous test.
22044      rm -rf confdir-14B---
22045      # Arrange for deletion of the temporary directory this test creates.
22046      ac_clean_files="$ac_clean_files confdir-14B---"
22047      if test "$cross_compiling" = yes; then
22048   gl_cv_func_getcwd_abort_bug=yes
22049 else
22050   cat >conftest.$ac_ext <<_ACEOF
22051 /* confdefs.h.  */
22052 _ACEOF
22053 cat confdefs.h >>conftest.$ac_ext
22054 cat >>conftest.$ac_ext <<_ACEOF
22055 /* end confdefs.h.  */
22056
22057 #include <stdlib.h>
22058 #include <unistd.h>
22059 #include <limits.h>
22060 #include <string.h>
22061 #include <sys/stat.h>
22062
22063 /* Don't get link errors because mkdir is redefined to rpl_mkdir.  */
22064 #undef mkdir
22065
22066 #ifndef S_IRWXU
22067 # define S_IRWXU 0700
22068 #endif
22069
22070 /* FIXME: skip the run-test altogether on systems without getpagesize.  */
22071 #if ! HAVE_GETPAGESIZE
22072 # define getpagesize() 0
22073 #endif
22074
22075 /* This size is chosen to be larger than PATH_MAX (4k), yet smaller than
22076    the 16kB pagesize on ia64 linux.  Those conditions make the code below
22077    trigger a bug in glibc's getcwd implementation before 2.4.90-10.  */
22078 #define TARGET_LEN (5 * 1024)
22079
22080 int
22081 main ()
22082 {
22083   char const *dir_name = "confdir-14B---";
22084   char *cwd;
22085   size_t initial_cwd_len;
22086   int fail = 0;
22087   size_t desired_depth;
22088   size_t d;
22089
22090   /* The bug is triggered when PATH_MAX < getpagesize (), so skip
22091      this relative expensive and invasive test if that's not true.  */
22092   if (getpagesize () <= PATH_MAX)
22093     return 0;
22094
22095   cwd = getcwd (NULL, 0);
22096   if (cwd == NULL)
22097     return 0;
22098
22099   initial_cwd_len = strlen (cwd);
22100   free (cwd);
22101   desired_depth = ((TARGET_LEN - 1 - initial_cwd_len)
22102                    / (1 + strlen (dir_name)));
22103   for (d = 0; d < desired_depth; d++)
22104     {
22105       if (mkdir (dir_name, S_IRWXU) < 0 || chdir (dir_name) < 0)
22106         {
22107           fail = 3; /* Unable to construct deep hierarchy.  */
22108           break;
22109         }
22110     }
22111
22112   /* If libc has the bug in question, this invocation of getcwd
22113      results in a failed assertion.  */
22114   cwd = getcwd (NULL, 0);
22115   if (cwd == NULL)
22116     fail = 4; /* getcwd failed.  This is ok, and expected.  */
22117   free (cwd);
22118
22119   /* Call rmdir first, in case the above chdir failed.  */
22120   rmdir (dir_name);
22121   while (0 < d--)
22122     {
22123       if (chdir ("..") < 0)
22124         break;
22125       rmdir (dir_name);
22126     }
22127
22128   return 0;
22129 }
22130
22131 _ACEOF
22132 rm -f conftest$ac_exeext
22133 if { (ac_try="$ac_link"
22134 case "(($ac_try" in
22135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22136   *) ac_try_echo=$ac_try;;
22137 esac
22138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22139   (eval "$ac_link") 2>&5
22140   ac_status=$?
22141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22142   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22143   { (case "(($ac_try" in
22144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22145   *) ac_try_echo=$ac_try;;
22146 esac
22147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22148   (eval "$ac_try") 2>&5
22149   ac_status=$?
22150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22151   (exit $ac_status); }; }; then
22152   gl_cv_func_getcwd_abort_bug=no
22153 else
22154   echo "$as_me: program exited with status $ac_status" >&5
22155 echo "$as_me: failed program was:" >&5
22156 sed 's/^/| /' conftest.$ac_ext >&5
22157
22158 ( exit $ac_status )
22159 gl_cv_func_getcwd_abort_bug=yes
22160 fi
22161 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22162 fi
22163
22164
22165
22166 fi
22167 { echo "$as_me:$LINENO: result: $gl_cv_func_getcwd_abort_bug" >&5
22168 echo "${ECHO_T}$gl_cv_func_getcwd_abort_bug" >&6; }
22169   if test $gl_cv_func_getcwd_abort_bug = yes; then
22170   gl_abort_bug=yes
22171 fi
22172
22173 ;;
22174   esac
22175
22176   case $gl_cv_func_getcwd_null,$gl_cv_func_getcwd_path_max,$gl_abort_bug in
22177   yes,yes,no) ;;
22178   *)
22179     REPLACE_GETCWD=1
22180
22181
22182
22183
22184
22185
22186
22187
22188   gl_LIBOBJS="$gl_LIBOBJS getcwd.$ac_objext"
22189
22190
22191
22192
22193   :
22194 ;;
22195   esac
22196
22197
22198
22199   GNULIB_GETCWD=1
22200
22201
22202
22203
22204
22205
22206
22207   { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
22208 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
22209 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
22210   echo $ECHO_N "(cached) $ECHO_C" >&6
22211 else
22212   cat >conftest.$ac_ext <<_ACEOF
22213 /* confdefs.h.  */
22214 _ACEOF
22215 cat confdefs.h >>conftest.$ac_ext
22216 cat >>conftest.$ac_ext <<_ACEOF
22217 /* end confdefs.h.  */
22218 #include <sys/types.h>
22219 #include <$ac_cv_struct_tm>
22220
22221
22222 int
22223 main ()
22224 {
22225 static struct tm ac_aggr;
22226 if (ac_aggr.tm_zone)
22227 return 0;
22228   ;
22229   return 0;
22230 }
22231 _ACEOF
22232 rm -f conftest.$ac_objext
22233 if { (ac_try="$ac_compile"
22234 case "(($ac_try" in
22235   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22236   *) ac_try_echo=$ac_try;;
22237 esac
22238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22239   (eval "$ac_compile") 2>conftest.er1
22240   ac_status=$?
22241   grep -v '^ *+' conftest.er1 >conftest.err
22242   rm -f conftest.er1
22243   cat conftest.err >&5
22244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22245   (exit $ac_status); } && {
22246          test -z "$ac_c_werror_flag" ||
22247          test ! -s conftest.err
22248        } && test -s conftest.$ac_objext; then
22249   ac_cv_member_struct_tm_tm_zone=yes
22250 else
22251   echo "$as_me: failed program was:" >&5
22252 sed 's/^/| /' conftest.$ac_ext >&5
22253
22254         cat >conftest.$ac_ext <<_ACEOF
22255 /* confdefs.h.  */
22256 _ACEOF
22257 cat confdefs.h >>conftest.$ac_ext
22258 cat >>conftest.$ac_ext <<_ACEOF
22259 /* end confdefs.h.  */
22260 #include <sys/types.h>
22261 #include <$ac_cv_struct_tm>
22262
22263
22264 int
22265 main ()
22266 {
22267 static struct tm ac_aggr;
22268 if (sizeof ac_aggr.tm_zone)
22269 return 0;
22270   ;
22271   return 0;
22272 }
22273 _ACEOF
22274 rm -f conftest.$ac_objext
22275 if { (ac_try="$ac_compile"
22276 case "(($ac_try" in
22277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22278   *) ac_try_echo=$ac_try;;
22279 esac
22280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22281   (eval "$ac_compile") 2>conftest.er1
22282   ac_status=$?
22283   grep -v '^ *+' conftest.er1 >conftest.err
22284   rm -f conftest.er1
22285   cat conftest.err >&5
22286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22287   (exit $ac_status); } && {
22288          test -z "$ac_c_werror_flag" ||
22289          test ! -s conftest.err
22290        } && test -s conftest.$ac_objext; then
22291   ac_cv_member_struct_tm_tm_zone=yes
22292 else
22293   echo "$as_me: failed program was:" >&5
22294 sed 's/^/| /' conftest.$ac_ext >&5
22295
22296         ac_cv_member_struct_tm_tm_zone=no
22297 fi
22298
22299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22300 fi
22301
22302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22303 fi
22304 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
22305 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
22306 if test $ac_cv_member_struct_tm_tm_zone = yes; then
22307
22308 cat >>confdefs.h <<_ACEOF
22309 #define HAVE_STRUCT_TM_TM_ZONE 1
22310 _ACEOF
22311
22312
22313 fi
22314
22315 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
22316
22317 cat >>confdefs.h <<\_ACEOF
22318 #define HAVE_TM_ZONE 1
22319 _ACEOF
22320
22321 else
22322   { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
22323 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
22324 if test "${ac_cv_have_decl_tzname+set}" = set; then
22325   echo $ECHO_N "(cached) $ECHO_C" >&6
22326 else
22327   cat >conftest.$ac_ext <<_ACEOF
22328 /* confdefs.h.  */
22329 _ACEOF
22330 cat confdefs.h >>conftest.$ac_ext
22331 cat >>conftest.$ac_ext <<_ACEOF
22332 /* end confdefs.h.  */
22333 #include <time.h>
22334
22335 int
22336 main ()
22337 {
22338 #ifndef tzname
22339   (void) tzname;
22340 #endif
22341
22342   ;
22343   return 0;
22344 }
22345 _ACEOF
22346 rm -f conftest.$ac_objext
22347 if { (ac_try="$ac_compile"
22348 case "(($ac_try" in
22349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22350   *) ac_try_echo=$ac_try;;
22351 esac
22352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22353   (eval "$ac_compile") 2>conftest.er1
22354   ac_status=$?
22355   grep -v '^ *+' conftest.er1 >conftest.err
22356   rm -f conftest.er1
22357   cat conftest.err >&5
22358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22359   (exit $ac_status); } && {
22360          test -z "$ac_c_werror_flag" ||
22361          test ! -s conftest.err
22362        } && test -s conftest.$ac_objext; then
22363   ac_cv_have_decl_tzname=yes
22364 else
22365   echo "$as_me: failed program was:" >&5
22366 sed 's/^/| /' conftest.$ac_ext >&5
22367
22368         ac_cv_have_decl_tzname=no
22369 fi
22370
22371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22372 fi
22373 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
22374 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
22375 if test $ac_cv_have_decl_tzname = yes; then
22376
22377 cat >>confdefs.h <<_ACEOF
22378 #define HAVE_DECL_TZNAME 1
22379 _ACEOF
22380
22381
22382 else
22383   cat >>confdefs.h <<_ACEOF
22384 #define HAVE_DECL_TZNAME 0
22385 _ACEOF
22386
22387
22388 fi
22389
22390
22391   { echo "$as_me:$LINENO: checking for tzname" >&5
22392 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
22393 if test "${ac_cv_var_tzname+set}" = set; then
22394   echo $ECHO_N "(cached) $ECHO_C" >&6
22395 else
22396   cat >conftest.$ac_ext <<_ACEOF
22397 /* confdefs.h.  */
22398 _ACEOF
22399 cat confdefs.h >>conftest.$ac_ext
22400 cat >>conftest.$ac_ext <<_ACEOF
22401 /* end confdefs.h.  */
22402 #include <time.h>
22403 #if !HAVE_DECL_TZNAME
22404 extern char *tzname[];
22405 #endif
22406
22407 int
22408 main ()
22409 {
22410 return tzname[0][0];
22411   ;
22412   return 0;
22413 }
22414 _ACEOF
22415 rm -f conftest.$ac_objext conftest$ac_exeext
22416 if { (ac_try="$ac_link"
22417 case "(($ac_try" in
22418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22419   *) ac_try_echo=$ac_try;;
22420 esac
22421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22422   (eval "$ac_link") 2>conftest.er1
22423   ac_status=$?
22424   grep -v '^ *+' conftest.er1 >conftest.err
22425   rm -f conftest.er1
22426   cat conftest.err >&5
22427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22428   (exit $ac_status); } && {
22429          test -z "$ac_c_werror_flag" ||
22430          test ! -s conftest.err
22431        } && test -s conftest$ac_exeext &&
22432        $as_test_x conftest$ac_exeext; then
22433   ac_cv_var_tzname=yes
22434 else
22435   echo "$as_me: failed program was:" >&5
22436 sed 's/^/| /' conftest.$ac_ext >&5
22437
22438         ac_cv_var_tzname=no
22439 fi
22440
22441 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22442       conftest$ac_exeext conftest.$ac_ext
22443 fi
22444 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
22445 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
22446   if test $ac_cv_var_tzname = yes; then
22447
22448 cat >>confdefs.h <<\_ACEOF
22449 #define HAVE_TZNAME 1
22450 _ACEOF
22451
22452   fi
22453 fi
22454
22455
22456
22457
22458
22459
22460
22461
22462
22463
22464
22465
22466
22467
22468
22469
22470
22471
22472 for ac_func in getdelim
22473 do
22474 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22475 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22476 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22477 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22478   echo $ECHO_N "(cached) $ECHO_C" >&6
22479 else
22480   cat >conftest.$ac_ext <<_ACEOF
22481 /* confdefs.h.  */
22482 _ACEOF
22483 cat confdefs.h >>conftest.$ac_ext
22484 cat >>conftest.$ac_ext <<_ACEOF
22485 /* end confdefs.h.  */
22486 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22487    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22488 #define $ac_func innocuous_$ac_func
22489
22490 /* System header to define __stub macros and hopefully few prototypes,
22491     which can conflict with char $ac_func (); below.
22492     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22493     <limits.h> exists even on freestanding compilers.  */
22494
22495 #ifdef __STDC__
22496 # include <limits.h>
22497 #else
22498 # include <assert.h>
22499 #endif
22500
22501 #undef $ac_func
22502
22503 /* Override any GCC internal prototype to avoid an error.
22504    Use char because int might match the return type of a GCC
22505    builtin and then its argument prototype would still apply.  */
22506 #ifdef __cplusplus
22507 extern "C"
22508 #endif
22509 char $ac_func ();
22510 /* The GNU C library defines this for functions which it implements
22511     to always fail with ENOSYS.  Some functions are actually named
22512     something starting with __ and the normal name is an alias.  */
22513 #if defined __stub_$ac_func || defined __stub___$ac_func
22514 choke me
22515 #endif
22516
22517 int
22518 main ()
22519 {
22520 return $ac_func ();
22521   ;
22522   return 0;
22523 }
22524 _ACEOF
22525 rm -f conftest.$ac_objext conftest$ac_exeext
22526 if { (ac_try="$ac_link"
22527 case "(($ac_try" in
22528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22529   *) ac_try_echo=$ac_try;;
22530 esac
22531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22532   (eval "$ac_link") 2>conftest.er1
22533   ac_status=$?
22534   grep -v '^ *+' conftest.er1 >conftest.err
22535   rm -f conftest.er1
22536   cat conftest.err >&5
22537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22538   (exit $ac_status); } && {
22539          test -z "$ac_c_werror_flag" ||
22540          test ! -s conftest.err
22541        } && test -s conftest$ac_exeext &&
22542        $as_test_x conftest$ac_exeext; then
22543   eval "$as_ac_var=yes"
22544 else
22545   echo "$as_me: failed program was:" >&5
22546 sed 's/^/| /' conftest.$ac_ext >&5
22547
22548         eval "$as_ac_var=no"
22549 fi
22550
22551 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22552       conftest$ac_exeext conftest.$ac_ext
22553 fi
22554 ac_res=`eval echo '${'$as_ac_var'}'`
22555                { echo "$as_me:$LINENO: result: $ac_res" >&5
22556 echo "${ECHO_T}$ac_res" >&6; }
22557 if test `eval echo '${'$as_ac_var'}'` = yes; then
22558   cat >>confdefs.h <<_ACEOF
22559 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22560 _ACEOF
22561
22562 else
22563
22564     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
22565
22566 fi
22567 done
22568
22569
22570
22571
22572
22573
22574
22575   if test $ac_cv_func_getdelim = no; then
22576
22577
22578
22579 for ac_func in flockfile funlockfile
22580 do
22581 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22582 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22583 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22584 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22585   echo $ECHO_N "(cached) $ECHO_C" >&6
22586 else
22587   cat >conftest.$ac_ext <<_ACEOF
22588 /* confdefs.h.  */
22589 _ACEOF
22590 cat confdefs.h >>conftest.$ac_ext
22591 cat >>conftest.$ac_ext <<_ACEOF
22592 /* end confdefs.h.  */
22593 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22594    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22595 #define $ac_func innocuous_$ac_func
22596
22597 /* System header to define __stub macros and hopefully few prototypes,
22598     which can conflict with char $ac_func (); below.
22599     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22600     <limits.h> exists even on freestanding compilers.  */
22601
22602 #ifdef __STDC__
22603 # include <limits.h>
22604 #else
22605 # include <assert.h>
22606 #endif
22607
22608 #undef $ac_func
22609
22610 /* Override any GCC internal prototype to avoid an error.
22611    Use char because int might match the return type of a GCC
22612    builtin and then its argument prototype would still apply.  */
22613 #ifdef __cplusplus
22614 extern "C"
22615 #endif
22616 char $ac_func ();
22617 /* The GNU C library defines this for functions which it implements
22618     to always fail with ENOSYS.  Some functions are actually named
22619     something starting with __ and the normal name is an alias.  */
22620 #if defined __stub_$ac_func || defined __stub___$ac_func
22621 choke me
22622 #endif
22623
22624 int
22625 main ()
22626 {
22627 return $ac_func ();
22628   ;
22629   return 0;
22630 }
22631 _ACEOF
22632 rm -f conftest.$ac_objext conftest$ac_exeext
22633 if { (ac_try="$ac_link"
22634 case "(($ac_try" in
22635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22636   *) ac_try_echo=$ac_try;;
22637 esac
22638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22639   (eval "$ac_link") 2>conftest.er1
22640   ac_status=$?
22641   grep -v '^ *+' conftest.er1 >conftest.err
22642   rm -f conftest.er1
22643   cat conftest.err >&5
22644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22645   (exit $ac_status); } && {
22646          test -z "$ac_c_werror_flag" ||
22647          test ! -s conftest.err
22648        } && test -s conftest$ac_exeext &&
22649        $as_test_x conftest$ac_exeext; then
22650   eval "$as_ac_var=yes"
22651 else
22652   echo "$as_me: failed program was:" >&5
22653 sed 's/^/| /' conftest.$ac_ext >&5
22654
22655         eval "$as_ac_var=no"
22656 fi
22657
22658 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22659       conftest$ac_exeext conftest.$ac_ext
22660 fi
22661 ac_res=`eval echo '${'$as_ac_var'}'`
22662                { echo "$as_me:$LINENO: result: $ac_res" >&5
22663 echo "${ECHO_T}$ac_res" >&6; }
22664 if test `eval echo '${'$as_ac_var'}'` = yes; then
22665   cat >>confdefs.h <<_ACEOF
22666 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22667 _ACEOF
22668
22669 fi
22670 done
22671
22672   { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
22673 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
22674 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
22675   echo $ECHO_N "(cached) $ECHO_C" >&6
22676 else
22677   cat >conftest.$ac_ext <<_ACEOF
22678 /* confdefs.h.  */
22679 _ACEOF
22680 cat confdefs.h >>conftest.$ac_ext
22681 cat >>conftest.$ac_ext <<_ACEOF
22682 /* end confdefs.h.  */
22683 $ac_includes_default
22684 int
22685 main ()
22686 {
22687 #ifndef getc_unlocked
22688   (void) getc_unlocked;
22689 #endif
22690
22691   ;
22692   return 0;
22693 }
22694 _ACEOF
22695 rm -f conftest.$ac_objext
22696 if { (ac_try="$ac_compile"
22697 case "(($ac_try" in
22698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22699   *) ac_try_echo=$ac_try;;
22700 esac
22701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22702   (eval "$ac_compile") 2>conftest.er1
22703   ac_status=$?
22704   grep -v '^ *+' conftest.er1 >conftest.err
22705   rm -f conftest.er1
22706   cat conftest.err >&5
22707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22708   (exit $ac_status); } && {
22709          test -z "$ac_c_werror_flag" ||
22710          test ! -s conftest.err
22711        } && test -s conftest.$ac_objext; then
22712   ac_cv_have_decl_getc_unlocked=yes
22713 else
22714   echo "$as_me: failed program was:" >&5
22715 sed 's/^/| /' conftest.$ac_ext >&5
22716
22717         ac_cv_have_decl_getc_unlocked=no
22718 fi
22719
22720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22721 fi
22722 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
22723 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
22724 if test $ac_cv_have_decl_getc_unlocked = yes; then
22725
22726 cat >>confdefs.h <<_ACEOF
22727 #define HAVE_DECL_GETC_UNLOCKED 1
22728 _ACEOF
22729
22730
22731 else
22732   cat >>confdefs.h <<_ACEOF
22733 #define HAVE_DECL_GETC_UNLOCKED 0
22734 _ACEOF
22735
22736
22737 fi
22738
22739
22740
22741   fi
22742
22743   if test $ac_cv_have_decl_getdelim = no; then
22744     HAVE_DECL_GETDELIM=0
22745   fi
22746
22747
22748
22749   GNULIB_GETDELIM=1
22750
22751
22752
22753
22754
22755
22756
22757
22758
22759
22760
22761   gl_getline_needs_run_time_check=no
22762   { echo "$as_me:$LINENO: checking for getline" >&5
22763 echo $ECHO_N "checking for getline... $ECHO_C" >&6; }
22764 if test "${ac_cv_func_getline+set}" = set; then
22765   echo $ECHO_N "(cached) $ECHO_C" >&6
22766 else
22767   cat >conftest.$ac_ext <<_ACEOF
22768 /* confdefs.h.  */
22769 _ACEOF
22770 cat confdefs.h >>conftest.$ac_ext
22771 cat >>conftest.$ac_ext <<_ACEOF
22772 /* end confdefs.h.  */
22773 /* Define getline to an innocuous variant, in case <limits.h> declares getline.
22774    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22775 #define getline innocuous_getline
22776
22777 /* System header to define __stub macros and hopefully few prototypes,
22778     which can conflict with char getline (); below.
22779     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22780     <limits.h> exists even on freestanding compilers.  */
22781
22782 #ifdef __STDC__
22783 # include <limits.h>
22784 #else
22785 # include <assert.h>
22786 #endif
22787
22788 #undef getline
22789
22790 /* Override any GCC internal prototype to avoid an error.
22791    Use char because int might match the return type of a GCC
22792    builtin and then its argument prototype would still apply.  */
22793 #ifdef __cplusplus
22794 extern "C"
22795 #endif
22796 char getline ();
22797 /* The GNU C library defines this for functions which it implements
22798     to always fail with ENOSYS.  Some functions are actually named
22799     something starting with __ and the normal name is an alias.  */
22800 #if defined __stub_getline || defined __stub___getline
22801 choke me
22802 #endif
22803
22804 int
22805 main ()
22806 {
22807 return getline ();
22808   ;
22809   return 0;
22810 }
22811 _ACEOF
22812 rm -f conftest.$ac_objext conftest$ac_exeext
22813 if { (ac_try="$ac_link"
22814 case "(($ac_try" in
22815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22816   *) ac_try_echo=$ac_try;;
22817 esac
22818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22819   (eval "$ac_link") 2>conftest.er1
22820   ac_status=$?
22821   grep -v '^ *+' conftest.er1 >conftest.err
22822   rm -f conftest.er1
22823   cat conftest.err >&5
22824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22825   (exit $ac_status); } && {
22826          test -z "$ac_c_werror_flag" ||
22827          test ! -s conftest.err
22828        } && test -s conftest$ac_exeext &&
22829        $as_test_x conftest$ac_exeext; then
22830   ac_cv_func_getline=yes
22831 else
22832   echo "$as_me: failed program was:" >&5
22833 sed 's/^/| /' conftest.$ac_ext >&5
22834
22835         ac_cv_func_getline=no
22836 fi
22837
22838 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22839       conftest$ac_exeext conftest.$ac_ext
22840 fi
22841 { echo "$as_me:$LINENO: result: $ac_cv_func_getline" >&5
22842 echo "${ECHO_T}$ac_cv_func_getline" >&6; }
22843 if test $ac_cv_func_getline = yes; then
22844                 gl_getline_needs_run_time_check=yes
22845 else
22846   am_cv_func_working_getline=no
22847 fi
22848
22849   if test $gl_getline_needs_run_time_check = yes; then
22850     { echo "$as_me:$LINENO: checking for working getline function" >&5
22851 echo $ECHO_N "checking for working getline function... $ECHO_C" >&6; }
22852 if test "${am_cv_func_working_getline+set}" = set; then
22853   echo $ECHO_N "(cached) $ECHO_C" >&6
22854 else
22855   echo fooN |tr -d '\012'|tr N '\012' > conftest.data
22856     if test "$cross_compiling" = yes; then
22857         cat >conftest.$ac_ext <<_ACEOF
22858 /* confdefs.h.  */
22859 _ACEOF
22860 cat confdefs.h >>conftest.$ac_ext
22861 cat >>conftest.$ac_ext <<_ACEOF
22862 /* end confdefs.h.  */
22863
22864 #include <features.h>
22865 #ifdef __GNU_LIBRARY__
22866  #if (__GLIBC__ >= 2)
22867   Lucky GNU user
22868  #endif
22869 #endif
22870
22871 _ACEOF
22872 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22873   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
22874   am_cv_func_working_getline=yes
22875 else
22876   am_cv_func_working_getline=no
22877 fi
22878 rm -f conftest*
22879
22880
22881 else
22882   cat >conftest.$ac_ext <<_ACEOF
22883 /* confdefs.h.  */
22884 _ACEOF
22885 cat confdefs.h >>conftest.$ac_ext
22886 cat >>conftest.$ac_ext <<_ACEOF
22887 /* end confdefs.h.  */
22888
22889 #    include <stdio.h>
22890 #    include <stdlib.h>
22891 #    include <string.h>
22892     int main ()
22893     { /* Based on a test program from Karl Heuer.  */
22894       char *line = NULL;
22895       size_t siz = 0;
22896       int len;
22897       FILE *in = fopen ("./conftest.data", "r");
22898       if (!in)
22899         return 1;
22900       len = getline (&line, &siz, in);
22901       exit ((len == 4 && line && strcmp (line, "foo\n") == 0) ? 0 : 1);
22902     }
22903
22904 _ACEOF
22905 rm -f conftest$ac_exeext
22906 if { (ac_try="$ac_link"
22907 case "(($ac_try" in
22908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22909   *) ac_try_echo=$ac_try;;
22910 esac
22911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22912   (eval "$ac_link") 2>&5
22913   ac_status=$?
22914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22915   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22916   { (case "(($ac_try" in
22917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22918   *) ac_try_echo=$ac_try;;
22919 esac
22920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22921   (eval "$ac_try") 2>&5
22922   ac_status=$?
22923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22924   (exit $ac_status); }; }; then
22925   am_cv_func_working_getline=yes
22926 else
22927   echo "$as_me: program exited with status $ac_status" >&5
22928 echo "$as_me: failed program was:" >&5
22929 sed 's/^/| /' conftest.$ac_ext >&5
22930
22931 ( exit $ac_status )
22932 am_cv_func_working_getline=no
22933 fi
22934 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22935 fi
22936
22937
22938 fi
22939 { echo "$as_me:$LINENO: result: $am_cv_func_working_getline" >&5
22940 echo "${ECHO_T}$am_cv_func_working_getline" >&6; }
22941   fi
22942
22943   if test $ac_cv_have_decl_getline = no; then
22944     HAVE_DECL_GETLINE=0
22945   fi
22946
22947   if test $am_cv_func_working_getline = no; then
22948     REPLACE_GETLINE=1
22949
22950
22951
22952
22953
22954
22955
22956
22957   gl_LIBOBJS="$gl_LIBOBJS getline.$ac_objext"
22958
22959
22960
22961
22962
22963
22964
22965
22966
22967
22968
22969
22970
22971
22972
22973
22974
22975 for ac_func in getdelim
22976 do
22977 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22978 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22979 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22980 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22981   echo $ECHO_N "(cached) $ECHO_C" >&6
22982 else
22983   cat >conftest.$ac_ext <<_ACEOF
22984 /* confdefs.h.  */
22985 _ACEOF
22986 cat confdefs.h >>conftest.$ac_ext
22987 cat >>conftest.$ac_ext <<_ACEOF
22988 /* end confdefs.h.  */
22989 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22990    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22991 #define $ac_func innocuous_$ac_func
22992
22993 /* System header to define __stub macros and hopefully few prototypes,
22994     which can conflict with char $ac_func (); below.
22995     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22996     <limits.h> exists even on freestanding compilers.  */
22997
22998 #ifdef __STDC__
22999 # include <limits.h>
23000 #else
23001 # include <assert.h>
23002 #endif
23003
23004 #undef $ac_func
23005
23006 /* Override any GCC internal prototype to avoid an error.
23007    Use char because int might match the return type of a GCC
23008    builtin and then its argument prototype would still apply.  */
23009 #ifdef __cplusplus
23010 extern "C"
23011 #endif
23012 char $ac_func ();
23013 /* The GNU C library defines this for functions which it implements
23014     to always fail with ENOSYS.  Some functions are actually named
23015     something starting with __ and the normal name is an alias.  */
23016 #if defined __stub_$ac_func || defined __stub___$ac_func
23017 choke me
23018 #endif
23019
23020 int
23021 main ()
23022 {
23023 return $ac_func ();
23024   ;
23025   return 0;
23026 }
23027 _ACEOF
23028 rm -f conftest.$ac_objext conftest$ac_exeext
23029 if { (ac_try="$ac_link"
23030 case "(($ac_try" in
23031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23032   *) ac_try_echo=$ac_try;;
23033 esac
23034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23035   (eval "$ac_link") 2>conftest.er1
23036   ac_status=$?
23037   grep -v '^ *+' conftest.er1 >conftest.err
23038   rm -f conftest.er1
23039   cat conftest.err >&5
23040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23041   (exit $ac_status); } && {
23042          test -z "$ac_c_werror_flag" ||
23043          test ! -s conftest.err
23044        } && test -s conftest$ac_exeext &&
23045        $as_test_x conftest$ac_exeext; then
23046   eval "$as_ac_var=yes"
23047 else
23048   echo "$as_me: failed program was:" >&5
23049 sed 's/^/| /' conftest.$ac_ext >&5
23050
23051         eval "$as_ac_var=no"
23052 fi
23053
23054 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23055       conftest$ac_exeext conftest.$ac_ext
23056 fi
23057 ac_res=`eval echo '${'$as_ac_var'}'`
23058                { echo "$as_me:$LINENO: result: $ac_res" >&5
23059 echo "${ECHO_T}$ac_res" >&6; }
23060 if test `eval echo '${'$as_ac_var'}'` = yes; then
23061   cat >>confdefs.h <<_ACEOF
23062 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23063 _ACEOF
23064
23065 else
23066
23067     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
23068
23069 fi
23070 done
23071
23072
23073
23074
23075
23076
23077
23078   if test $ac_cv_func_getdelim = no; then
23079
23080
23081
23082 for ac_func in flockfile funlockfile
23083 do
23084 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23085 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23086 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23087 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23088   echo $ECHO_N "(cached) $ECHO_C" >&6
23089 else
23090   cat >conftest.$ac_ext <<_ACEOF
23091 /* confdefs.h.  */
23092 _ACEOF
23093 cat confdefs.h >>conftest.$ac_ext
23094 cat >>conftest.$ac_ext <<_ACEOF
23095 /* end confdefs.h.  */
23096 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23097    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23098 #define $ac_func innocuous_$ac_func
23099
23100 /* System header to define __stub macros and hopefully few prototypes,
23101     which can conflict with char $ac_func (); below.
23102     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23103     <limits.h> exists even on freestanding compilers.  */
23104
23105 #ifdef __STDC__
23106 # include <limits.h>
23107 #else
23108 # include <assert.h>
23109 #endif
23110
23111 #undef $ac_func
23112
23113 /* Override any GCC internal prototype to avoid an error.
23114    Use char because int might match the return type of a GCC
23115    builtin and then its argument prototype would still apply.  */
23116 #ifdef __cplusplus
23117 extern "C"
23118 #endif
23119 char $ac_func ();
23120 /* The GNU C library defines this for functions which it implements
23121     to always fail with ENOSYS.  Some functions are actually named
23122     something starting with __ and the normal name is an alias.  */
23123 #if defined __stub_$ac_func || defined __stub___$ac_func
23124 choke me
23125 #endif
23126
23127 int
23128 main ()
23129 {
23130 return $ac_func ();
23131   ;
23132   return 0;
23133 }
23134 _ACEOF
23135 rm -f conftest.$ac_objext conftest$ac_exeext
23136 if { (ac_try="$ac_link"
23137 case "(($ac_try" in
23138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23139   *) ac_try_echo=$ac_try;;
23140 esac
23141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23142   (eval "$ac_link") 2>conftest.er1
23143   ac_status=$?
23144   grep -v '^ *+' conftest.er1 >conftest.err
23145   rm -f conftest.er1
23146   cat conftest.err >&5
23147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23148   (exit $ac_status); } && {
23149          test -z "$ac_c_werror_flag" ||
23150          test ! -s conftest.err
23151        } && test -s conftest$ac_exeext &&
23152        $as_test_x conftest$ac_exeext; then
23153   eval "$as_ac_var=yes"
23154 else
23155   echo "$as_me: failed program was:" >&5
23156 sed 's/^/| /' conftest.$ac_ext >&5
23157
23158         eval "$as_ac_var=no"
23159 fi
23160
23161 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23162       conftest$ac_exeext conftest.$ac_ext
23163 fi
23164 ac_res=`eval echo '${'$as_ac_var'}'`
23165                { echo "$as_me:$LINENO: result: $ac_res" >&5
23166 echo "${ECHO_T}$ac_res" >&6; }
23167 if test `eval echo '${'$as_ac_var'}'` = yes; then
23168   cat >>confdefs.h <<_ACEOF
23169 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23170 _ACEOF
23171
23172 fi
23173 done
23174
23175   { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
23176 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
23177 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
23178   echo $ECHO_N "(cached) $ECHO_C" >&6
23179 else
23180   cat >conftest.$ac_ext <<_ACEOF
23181 /* confdefs.h.  */
23182 _ACEOF
23183 cat confdefs.h >>conftest.$ac_ext
23184 cat >>conftest.$ac_ext <<_ACEOF
23185 /* end confdefs.h.  */
23186 $ac_includes_default
23187 int
23188 main ()
23189 {
23190 #ifndef getc_unlocked
23191   (void) getc_unlocked;
23192 #endif
23193
23194   ;
23195   return 0;
23196 }
23197 _ACEOF
23198 rm -f conftest.$ac_objext
23199 if { (ac_try="$ac_compile"
23200 case "(($ac_try" in
23201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23202   *) ac_try_echo=$ac_try;;
23203 esac
23204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23205   (eval "$ac_compile") 2>conftest.er1
23206   ac_status=$?
23207   grep -v '^ *+' conftest.er1 >conftest.err
23208   rm -f conftest.er1
23209   cat conftest.err >&5
23210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23211   (exit $ac_status); } && {
23212          test -z "$ac_c_werror_flag" ||
23213          test ! -s conftest.err
23214        } && test -s conftest.$ac_objext; then
23215   ac_cv_have_decl_getc_unlocked=yes
23216 else
23217   echo "$as_me: failed program was:" >&5
23218 sed 's/^/| /' conftest.$ac_ext >&5
23219
23220         ac_cv_have_decl_getc_unlocked=no
23221 fi
23222
23223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23224 fi
23225 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
23226 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
23227 if test $ac_cv_have_decl_getc_unlocked = yes; then
23228
23229 cat >>confdefs.h <<_ACEOF
23230 #define HAVE_DECL_GETC_UNLOCKED 1
23231 _ACEOF
23232
23233
23234 else
23235   cat >>confdefs.h <<_ACEOF
23236 #define HAVE_DECL_GETC_UNLOCKED 0
23237 _ACEOF
23238
23239
23240 fi
23241
23242
23243
23244   fi
23245
23246   if test $ac_cv_have_decl_getdelim = no; then
23247     HAVE_DECL_GETDELIM=0
23248   fi
23249
23250
23251   fi
23252
23253
23254
23255   GNULIB_GETLINE=1
23256
23257
23258
23259   if test -n "$GETOPT_H"; then
23260
23261
23262
23263
23264
23265
23266
23267
23268
23269   gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
23270
23271
23272
23273
23274
23275
23276
23277
23278
23279   gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
23280
23281
23282   GETOPT_H=getopt.h
23283
23284 cat >>confdefs.h <<\_ACEOF
23285 #define __GETOPT_PREFIX rpl_
23286 _ACEOF
23287
23288
23289
23290
23291
23292
23293
23294
23295
23296
23297 fi
23298
23299
23300
23301
23302
23303
23304 for ac_func in getpagesize
23305 do
23306 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23307 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23308 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23309 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23310   echo $ECHO_N "(cached) $ECHO_C" >&6
23311 else
23312   cat >conftest.$ac_ext <<_ACEOF
23313 /* confdefs.h.  */
23314 _ACEOF
23315 cat confdefs.h >>conftest.$ac_ext
23316 cat >>conftest.$ac_ext <<_ACEOF
23317 /* end confdefs.h.  */
23318 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23319    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23320 #define $ac_func innocuous_$ac_func
23321
23322 /* System header to define __stub macros and hopefully few prototypes,
23323     which can conflict with char $ac_func (); below.
23324     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23325     <limits.h> exists even on freestanding compilers.  */
23326
23327 #ifdef __STDC__
23328 # include <limits.h>
23329 #else
23330 # include <assert.h>
23331 #endif
23332
23333 #undef $ac_func
23334
23335 /* Override any GCC internal prototype to avoid an error.
23336    Use char because int might match the return type of a GCC
23337    builtin and then its argument prototype would still apply.  */
23338 #ifdef __cplusplus
23339 extern "C"
23340 #endif
23341 char $ac_func ();
23342 /* The GNU C library defines this for functions which it implements
23343     to always fail with ENOSYS.  Some functions are actually named
23344     something starting with __ and the normal name is an alias.  */
23345 #if defined __stub_$ac_func || defined __stub___$ac_func
23346 choke me
23347 #endif
23348
23349 int
23350 main ()
23351 {
23352 return $ac_func ();
23353   ;
23354   return 0;
23355 }
23356 _ACEOF
23357 rm -f conftest.$ac_objext conftest$ac_exeext
23358 if { (ac_try="$ac_link"
23359 case "(($ac_try" in
23360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23361   *) ac_try_echo=$ac_try;;
23362 esac
23363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23364   (eval "$ac_link") 2>conftest.er1
23365   ac_status=$?
23366   grep -v '^ *+' conftest.er1 >conftest.err
23367   rm -f conftest.er1
23368   cat conftest.err >&5
23369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23370   (exit $ac_status); } && {
23371          test -z "$ac_c_werror_flag" ||
23372          test ! -s conftest.err
23373        } && test -s conftest$ac_exeext &&
23374        $as_test_x conftest$ac_exeext; then
23375   eval "$as_ac_var=yes"
23376 else
23377   echo "$as_me: failed program was:" >&5
23378 sed 's/^/| /' conftest.$ac_ext >&5
23379
23380         eval "$as_ac_var=no"
23381 fi
23382
23383 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23384       conftest$ac_exeext conftest.$ac_ext
23385 fi
23386 ac_res=`eval echo '${'$as_ac_var'}'`
23387                { echo "$as_me:$LINENO: result: $ac_res" >&5
23388 echo "${ECHO_T}$ac_res" >&6; }
23389 if test `eval echo '${'$as_ac_var'}'` = yes; then
23390   cat >>confdefs.h <<_ACEOF
23391 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23392 _ACEOF
23393
23394 fi
23395 done
23396
23397   if test $ac_cv_func_getpagesize = no; then
23398     HAVE_GETPAGESIZE=0
23399
23400 for ac_header in OS.h
23401 do
23402 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23403 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23404   { echo "$as_me:$LINENO: checking for $ac_header" >&5
23405 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23406 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23407   echo $ECHO_N "(cached) $ECHO_C" >&6
23408 fi
23409 ac_res=`eval echo '${'$as_ac_Header'}'`
23410                { echo "$as_me:$LINENO: result: $ac_res" >&5
23411 echo "${ECHO_T}$ac_res" >&6; }
23412 else
23413   # Is the header compilable?
23414 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23415 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23416 cat >conftest.$ac_ext <<_ACEOF
23417 /* confdefs.h.  */
23418 _ACEOF
23419 cat confdefs.h >>conftest.$ac_ext
23420 cat >>conftest.$ac_ext <<_ACEOF
23421 /* end confdefs.h.  */
23422 $ac_includes_default
23423 #include <$ac_header>
23424 _ACEOF
23425 rm -f conftest.$ac_objext
23426 if { (ac_try="$ac_compile"
23427 case "(($ac_try" in
23428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23429   *) ac_try_echo=$ac_try;;
23430 esac
23431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23432   (eval "$ac_compile") 2>conftest.er1
23433   ac_status=$?
23434   grep -v '^ *+' conftest.er1 >conftest.err
23435   rm -f conftest.er1
23436   cat conftest.err >&5
23437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23438   (exit $ac_status); } && {
23439          test -z "$ac_c_werror_flag" ||
23440          test ! -s conftest.err
23441        } && test -s conftest.$ac_objext; then
23442   ac_header_compiler=yes
23443 else
23444   echo "$as_me: failed program was:" >&5
23445 sed 's/^/| /' conftest.$ac_ext >&5
23446
23447         ac_header_compiler=no
23448 fi
23449
23450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23451 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23452 echo "${ECHO_T}$ac_header_compiler" >&6; }
23453
23454 # Is the header present?
23455 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23456 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23457 cat >conftest.$ac_ext <<_ACEOF
23458 /* confdefs.h.  */
23459 _ACEOF
23460 cat confdefs.h >>conftest.$ac_ext
23461 cat >>conftest.$ac_ext <<_ACEOF
23462 /* end confdefs.h.  */
23463 #include <$ac_header>
23464 _ACEOF
23465 if { (ac_try="$ac_cpp conftest.$ac_ext"
23466 case "(($ac_try" in
23467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23468   *) ac_try_echo=$ac_try;;
23469 esac
23470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23471   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23472   ac_status=$?
23473   grep -v '^ *+' conftest.er1 >conftest.err
23474   rm -f conftest.er1
23475   cat conftest.err >&5
23476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23477   (exit $ac_status); } >/dev/null && {
23478          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23479          test ! -s conftest.err
23480        }; then
23481   ac_header_preproc=yes
23482 else
23483   echo "$as_me: failed program was:" >&5
23484 sed 's/^/| /' conftest.$ac_ext >&5
23485
23486   ac_header_preproc=no
23487 fi
23488
23489 rm -f conftest.err conftest.$ac_ext
23490 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23491 echo "${ECHO_T}$ac_header_preproc" >&6; }
23492
23493 # So?  What about this header?
23494 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23495   yes:no: )
23496     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23497 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23498     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23499 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23500     ac_header_preproc=yes
23501     ;;
23502   no:yes:* )
23503     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23504 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23505     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23506 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23507     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23508 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23509     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23510 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23511     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23512 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23513     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23514 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23515     ( cat <<\_ASBOX
23516 ## ------------------------------ ##
23517 ## Report this to bug-tar@gnu.org ##
23518 ## ------------------------------ ##
23519 _ASBOX
23520      ) | sed "s/^/$as_me: WARNING:     /" >&2
23521     ;;
23522 esac
23523 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23524 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23525 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23526   echo $ECHO_N "(cached) $ECHO_C" >&6
23527 else
23528   eval "$as_ac_Header=\$ac_header_preproc"
23529 fi
23530 ac_res=`eval echo '${'$as_ac_Header'}'`
23531                { echo "$as_me:$LINENO: result: $ac_res" >&5
23532 echo "${ECHO_T}$ac_res" >&6; }
23533
23534 fi
23535 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23536   cat >>confdefs.h <<_ACEOF
23537 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23538 _ACEOF
23539
23540 fi
23541
23542 done
23543
23544     if test $ac_cv_header_OS_h = yes; then
23545       HAVE_OS_H=1
23546     fi
23547
23548 for ac_header in sys/param.h
23549 do
23550 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23551 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23552   { echo "$as_me:$LINENO: checking for $ac_header" >&5
23553 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23554 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23555   echo $ECHO_N "(cached) $ECHO_C" >&6
23556 fi
23557 ac_res=`eval echo '${'$as_ac_Header'}'`
23558                { echo "$as_me:$LINENO: result: $ac_res" >&5
23559 echo "${ECHO_T}$ac_res" >&6; }
23560 else
23561   # Is the header compilable?
23562 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23563 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23564 cat >conftest.$ac_ext <<_ACEOF
23565 /* confdefs.h.  */
23566 _ACEOF
23567 cat confdefs.h >>conftest.$ac_ext
23568 cat >>conftest.$ac_ext <<_ACEOF
23569 /* end confdefs.h.  */
23570 $ac_includes_default
23571 #include <$ac_header>
23572 _ACEOF
23573 rm -f conftest.$ac_objext
23574 if { (ac_try="$ac_compile"
23575 case "(($ac_try" in
23576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23577   *) ac_try_echo=$ac_try;;
23578 esac
23579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23580   (eval "$ac_compile") 2>conftest.er1
23581   ac_status=$?
23582   grep -v '^ *+' conftest.er1 >conftest.err
23583   rm -f conftest.er1
23584   cat conftest.err >&5
23585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23586   (exit $ac_status); } && {
23587          test -z "$ac_c_werror_flag" ||
23588          test ! -s conftest.err
23589        } && test -s conftest.$ac_objext; then
23590   ac_header_compiler=yes
23591 else
23592   echo "$as_me: failed program was:" >&5
23593 sed 's/^/| /' conftest.$ac_ext >&5
23594
23595         ac_header_compiler=no
23596 fi
23597
23598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23599 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23600 echo "${ECHO_T}$ac_header_compiler" >&6; }
23601
23602 # Is the header present?
23603 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23604 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23605 cat >conftest.$ac_ext <<_ACEOF
23606 /* confdefs.h.  */
23607 _ACEOF
23608 cat confdefs.h >>conftest.$ac_ext
23609 cat >>conftest.$ac_ext <<_ACEOF
23610 /* end confdefs.h.  */
23611 #include <$ac_header>
23612 _ACEOF
23613 if { (ac_try="$ac_cpp conftest.$ac_ext"
23614 case "(($ac_try" in
23615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23616   *) ac_try_echo=$ac_try;;
23617 esac
23618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23619   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23620   ac_status=$?
23621   grep -v '^ *+' conftest.er1 >conftest.err
23622   rm -f conftest.er1
23623   cat conftest.err >&5
23624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23625   (exit $ac_status); } >/dev/null && {
23626          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23627          test ! -s conftest.err
23628        }; then
23629   ac_header_preproc=yes
23630 else
23631   echo "$as_me: failed program was:" >&5
23632 sed 's/^/| /' conftest.$ac_ext >&5
23633
23634   ac_header_preproc=no
23635 fi
23636
23637 rm -f conftest.err conftest.$ac_ext
23638 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23639 echo "${ECHO_T}$ac_header_preproc" >&6; }
23640
23641 # So?  What about this header?
23642 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23643   yes:no: )
23644     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23645 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23646     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23647 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23648     ac_header_preproc=yes
23649     ;;
23650   no:yes:* )
23651     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23652 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23653     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23654 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23655     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23656 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23657     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23658 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23659     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23660 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23661     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23662 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23663     ( cat <<\_ASBOX
23664 ## ------------------------------ ##
23665 ## Report this to bug-tar@gnu.org ##
23666 ## ------------------------------ ##
23667 _ASBOX
23668      ) | sed "s/^/$as_me: WARNING:     /" >&2
23669     ;;
23670 esac
23671 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23672 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23673 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23674   echo $ECHO_N "(cached) $ECHO_C" >&6
23675 else
23676   eval "$as_ac_Header=\$ac_header_preproc"
23677 fi
23678 ac_res=`eval echo '${'$as_ac_Header'}'`
23679                { echo "$as_me:$LINENO: result: $ac_res" >&5
23680 echo "${ECHO_T}$ac_res" >&6; }
23681
23682 fi
23683 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23684   cat >>confdefs.h <<_ACEOF
23685 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23686 _ACEOF
23687
23688 fi
23689
23690 done
23691
23692     if test $ac_cv_header_sys_param_h = yes; then
23693       HAVE_SYS_PARAM_H=1
23694     fi
23695   fi
23696   case "$host_os" in
23697     mingw*)
23698       REPLACE_GETPAGESIZE=1
23699
23700
23701
23702
23703
23704
23705
23706
23707   gl_LIBOBJS="$gl_LIBOBJS getpagesize.$ac_objext"
23708
23709       ;;
23710   esac
23711
23712
23713
23714   GNULIB_GETPAGESIZE=1
23715
23716
23717
23718
23719
23720
23721
23722
23723
23724
23725
23726
23727
23728   gl_LIBOBJS="$gl_LIBOBJS gettime.$ac_objext"
23729
23730
23731
23732
23733
23734
23735
23736
23737
23738
23739
23740
23741
23742
23743
23744
23745
23746
23747
23748
23749
23750
23751
23752   { echo "$as_me:$LINENO: checking for gettimeofday with POSIX signature" >&5
23753 echo $ECHO_N "checking for gettimeofday with POSIX signature... $ECHO_C" >&6; }
23754 if test "${gl_cv_func_gettimeofday_posix_signature+set}" = set; then
23755   echo $ECHO_N "(cached) $ECHO_C" >&6
23756 else
23757   cat >conftest.$ac_ext <<_ACEOF
23758 /* confdefs.h.  */
23759 _ACEOF
23760 cat confdefs.h >>conftest.$ac_ext
23761 cat >>conftest.$ac_ext <<_ACEOF
23762 /* end confdefs.h.  */
23763 #include <sys/time.h>
23764             struct timeval c;
23765
23766 int
23767 main ()
23768 {
23769
23770             int (*f) (struct timeval *restrict, void *restrict) = gettimeofday;
23771             int x = f (&c, 0);
23772             return !(x | c.tv_sec | c.tv_usec);
23773
23774   ;
23775   return 0;
23776 }
23777 _ACEOF
23778 rm -f conftest.$ac_objext
23779 if { (ac_try="$ac_compile"
23780 case "(($ac_try" in
23781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23782   *) ac_try_echo=$ac_try;;
23783 esac
23784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23785   (eval "$ac_compile") 2>conftest.er1
23786   ac_status=$?
23787   grep -v '^ *+' conftest.er1 >conftest.err
23788   rm -f conftest.er1
23789   cat conftest.err >&5
23790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23791   (exit $ac_status); } && {
23792          test -z "$ac_c_werror_flag" ||
23793          test ! -s conftest.err
23794        } && test -s conftest.$ac_objext; then
23795   gl_cv_func_gettimeofday_posix_signature=yes
23796 else
23797   echo "$as_me: failed program was:" >&5
23798 sed 's/^/| /' conftest.$ac_ext >&5
23799
23800         gl_cv_func_gettimeofday_posix_signature=no
23801 fi
23802
23803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23804 fi
23805 { echo "$as_me:$LINENO: result: $gl_cv_func_gettimeofday_posix_signature" >&5
23806 echo "${ECHO_T}$gl_cv_func_gettimeofday_posix_signature" >&6; }
23807
23808
23809
23810
23811  { echo "$as_me:$LINENO: checking whether gettimeofday clobbers localtime buffer" >&5
23812 echo $ECHO_N "checking whether gettimeofday clobbers localtime buffer... $ECHO_C" >&6; }
23813 if test "${gl_cv_func_gettimeofday_clobber+set}" = set; then
23814   echo $ECHO_N "(cached) $ECHO_C" >&6
23815 else
23816   if test "$cross_compiling" = yes; then
23817        gl_cv_func_gettimeofday_clobber=yes
23818 else
23819   cat >conftest.$ac_ext <<_ACEOF
23820 /* confdefs.h.  */
23821 _ACEOF
23822 cat confdefs.h >>conftest.$ac_ext
23823 cat >>conftest.$ac_ext <<_ACEOF
23824 /* end confdefs.h.  */
23825 #include <string.h>
23826           #include <sys/time.h>
23827           #include <time.h>
23828           #include <stdlib.h>
23829
23830 int
23831 main ()
23832 {
23833
23834           time_t t = 0;
23835           struct tm *lt;
23836           struct tm saved_lt;
23837           struct timeval tv;
23838           lt = localtime (&t);
23839           saved_lt = *lt;
23840           gettimeofday (&tv, NULL);
23841           return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0;
23842
23843   ;
23844   return 0;
23845 }
23846 _ACEOF
23847 rm -f conftest$ac_exeext
23848 if { (ac_try="$ac_link"
23849 case "(($ac_try" in
23850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23851   *) ac_try_echo=$ac_try;;
23852 esac
23853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23854   (eval "$ac_link") 2>&5
23855   ac_status=$?
23856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23857   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23858   { (case "(($ac_try" in
23859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23860   *) ac_try_echo=$ac_try;;
23861 esac
23862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23863   (eval "$ac_try") 2>&5
23864   ac_status=$?
23865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23866   (exit $ac_status); }; }; then
23867   gl_cv_func_gettimeofday_clobber=no
23868 else
23869   echo "$as_me: program exited with status $ac_status" >&5
23870 echo "$as_me: failed program was:" >&5
23871 sed 's/^/| /' conftest.$ac_ext >&5
23872
23873 ( exit $ac_status )
23874 gl_cv_func_gettimeofday_clobber=yes
23875 fi
23876 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23877 fi
23878
23879
23880 fi
23881 { echo "$as_me:$LINENO: result: $gl_cv_func_gettimeofday_clobber" >&5
23882 echo "${ECHO_T}$gl_cv_func_gettimeofday_clobber" >&6; }
23883
23884  if test $gl_cv_func_gettimeofday_clobber = yes; then
23885    REPLACE_GETTIMEOFDAY=1
23886    SYS_TIME_H=sys/time.h
23887
23888
23889
23890
23891
23892
23893
23894
23895
23896   gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext"
23897
23898
23899
23900 for ac_header in sys/timeb.h
23901 do
23902 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23903 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23904   { echo "$as_me:$LINENO: checking for $ac_header" >&5
23905 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23906 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23907   echo $ECHO_N "(cached) $ECHO_C" >&6
23908 fi
23909 ac_res=`eval echo '${'$as_ac_Header'}'`
23910                { echo "$as_me:$LINENO: result: $ac_res" >&5
23911 echo "${ECHO_T}$ac_res" >&6; }
23912 else
23913   # Is the header compilable?
23914 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23915 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23916 cat >conftest.$ac_ext <<_ACEOF
23917 /* confdefs.h.  */
23918 _ACEOF
23919 cat confdefs.h >>conftest.$ac_ext
23920 cat >>conftest.$ac_ext <<_ACEOF
23921 /* end confdefs.h.  */
23922 $ac_includes_default
23923 #include <$ac_header>
23924 _ACEOF
23925 rm -f conftest.$ac_objext
23926 if { (ac_try="$ac_compile"
23927 case "(($ac_try" in
23928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23929   *) ac_try_echo=$ac_try;;
23930 esac
23931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23932   (eval "$ac_compile") 2>conftest.er1
23933   ac_status=$?
23934   grep -v '^ *+' conftest.er1 >conftest.err
23935   rm -f conftest.er1
23936   cat conftest.err >&5
23937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23938   (exit $ac_status); } && {
23939          test -z "$ac_c_werror_flag" ||
23940          test ! -s conftest.err
23941        } && test -s conftest.$ac_objext; then
23942   ac_header_compiler=yes
23943 else
23944   echo "$as_me: failed program was:" >&5
23945 sed 's/^/| /' conftest.$ac_ext >&5
23946
23947         ac_header_compiler=no
23948 fi
23949
23950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23951 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23952 echo "${ECHO_T}$ac_header_compiler" >&6; }
23953
23954 # Is the header present?
23955 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23956 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23957 cat >conftest.$ac_ext <<_ACEOF
23958 /* confdefs.h.  */
23959 _ACEOF
23960 cat confdefs.h >>conftest.$ac_ext
23961 cat >>conftest.$ac_ext <<_ACEOF
23962 /* end confdefs.h.  */
23963 #include <$ac_header>
23964 _ACEOF
23965 if { (ac_try="$ac_cpp conftest.$ac_ext"
23966 case "(($ac_try" in
23967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23968   *) ac_try_echo=$ac_try;;
23969 esac
23970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23971   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23972   ac_status=$?
23973   grep -v '^ *+' conftest.er1 >conftest.err
23974   rm -f conftest.er1
23975   cat conftest.err >&5
23976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23977   (exit $ac_status); } >/dev/null && {
23978          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23979          test ! -s conftest.err
23980        }; then
23981   ac_header_preproc=yes
23982 else
23983   echo "$as_me: failed program was:" >&5
23984 sed 's/^/| /' conftest.$ac_ext >&5
23985
23986   ac_header_preproc=no
23987 fi
23988
23989 rm -f conftest.err conftest.$ac_ext
23990 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23991 echo "${ECHO_T}$ac_header_preproc" >&6; }
23992
23993 # So?  What about this header?
23994 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23995   yes:no: )
23996     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23997 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23998     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23999 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24000     ac_header_preproc=yes
24001     ;;
24002   no:yes:* )
24003     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24004 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24005     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24006 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24007     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24008 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24009     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24010 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24011     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24012 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24013     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24014 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24015     ( cat <<\_ASBOX
24016 ## ------------------------------ ##
24017 ## Report this to bug-tar@gnu.org ##
24018 ## ------------------------------ ##
24019 _ASBOX
24020      ) | sed "s/^/$as_me: WARNING:     /" >&2
24021     ;;
24022 esac
24023 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24024 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24025 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24026   echo $ECHO_N "(cached) $ECHO_C" >&6
24027 else
24028   eval "$as_ac_Header=\$ac_header_preproc"
24029 fi
24030 ac_res=`eval echo '${'$as_ac_Header'}'`
24031                { echo "$as_me:$LINENO: result: $ac_res" >&5
24032 echo "${ECHO_T}$ac_res" >&6; }
24033
24034 fi
24035 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24036   cat >>confdefs.h <<_ACEOF
24037 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24038 _ACEOF
24039
24040 fi
24041
24042 done
24043
24044
24045 for ac_func in _ftime
24046 do
24047 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24048 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24049 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24050 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24051   echo $ECHO_N "(cached) $ECHO_C" >&6
24052 else
24053   cat >conftest.$ac_ext <<_ACEOF
24054 /* confdefs.h.  */
24055 _ACEOF
24056 cat confdefs.h >>conftest.$ac_ext
24057 cat >>conftest.$ac_ext <<_ACEOF
24058 /* end confdefs.h.  */
24059 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24060    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24061 #define $ac_func innocuous_$ac_func
24062
24063 /* System header to define __stub macros and hopefully few prototypes,
24064     which can conflict with char $ac_func (); below.
24065     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24066     <limits.h> exists even on freestanding compilers.  */
24067
24068 #ifdef __STDC__
24069 # include <limits.h>
24070 #else
24071 # include <assert.h>
24072 #endif
24073
24074 #undef $ac_func
24075
24076 /* Override any GCC internal prototype to avoid an error.
24077    Use char because int might match the return type of a GCC
24078    builtin and then its argument prototype would still apply.  */
24079 #ifdef __cplusplus
24080 extern "C"
24081 #endif
24082 char $ac_func ();
24083 /* The GNU C library defines this for functions which it implements
24084     to always fail with ENOSYS.  Some functions are actually named
24085     something starting with __ and the normal name is an alias.  */
24086 #if defined __stub_$ac_func || defined __stub___$ac_func
24087 choke me
24088 #endif
24089
24090 int
24091 main ()
24092 {
24093 return $ac_func ();
24094   ;
24095   return 0;
24096 }
24097 _ACEOF
24098 rm -f conftest.$ac_objext conftest$ac_exeext
24099 if { (ac_try="$ac_link"
24100 case "(($ac_try" in
24101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24102   *) ac_try_echo=$ac_try;;
24103 esac
24104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24105   (eval "$ac_link") 2>conftest.er1
24106   ac_status=$?
24107   grep -v '^ *+' conftest.er1 >conftest.err
24108   rm -f conftest.er1
24109   cat conftest.err >&5
24110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24111   (exit $ac_status); } && {
24112          test -z "$ac_c_werror_flag" ||
24113          test ! -s conftest.err
24114        } && test -s conftest$ac_exeext &&
24115        $as_test_x conftest$ac_exeext; then
24116   eval "$as_ac_var=yes"
24117 else
24118   echo "$as_me: failed program was:" >&5
24119 sed 's/^/| /' conftest.$ac_ext >&5
24120
24121         eval "$as_ac_var=no"
24122 fi
24123
24124 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24125       conftest$ac_exeext conftest.$ac_ext
24126 fi
24127 ac_res=`eval echo '${'$as_ac_var'}'`
24128                { echo "$as_me:$LINENO: result: $ac_res" >&5
24129 echo "${ECHO_T}$ac_res" >&6; }
24130 if test `eval echo '${'$as_ac_var'}'` = yes; then
24131   cat >>confdefs.h <<_ACEOF
24132 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24133 _ACEOF
24134
24135 fi
24136 done
24137
24138
24139
24140 cat >>confdefs.h <<\_ACEOF
24141 #define gmtime rpl_gmtime
24142 _ACEOF
24143
24144
24145 cat >>confdefs.h <<\_ACEOF
24146 #define localtime rpl_localtime
24147 _ACEOF
24148
24149
24150
24151 cat >>confdefs.h <<\_ACEOF
24152 #define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1
24153 _ACEOF
24154
24155  fi
24156
24157
24158   if test $gl_cv_func_gettimeofday_posix_signature != yes; then
24159     REPLACE_GETTIMEOFDAY=1
24160     SYS_TIME_H=sys/time.h
24161     if test $gl_cv_func_gettimeofday_clobber != yes; then
24162
24163
24164
24165
24166
24167
24168
24169
24170   gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext"
24171
24172
24173
24174 for ac_header in sys/timeb.h
24175 do
24176 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24177 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24178   { echo "$as_me:$LINENO: checking for $ac_header" >&5
24179 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24180 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24181   echo $ECHO_N "(cached) $ECHO_C" >&6
24182 fi
24183 ac_res=`eval echo '${'$as_ac_Header'}'`
24184                { echo "$as_me:$LINENO: result: $ac_res" >&5
24185 echo "${ECHO_T}$ac_res" >&6; }
24186 else
24187   # Is the header compilable?
24188 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24189 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24190 cat >conftest.$ac_ext <<_ACEOF
24191 /* confdefs.h.  */
24192 _ACEOF
24193 cat confdefs.h >>conftest.$ac_ext
24194 cat >>conftest.$ac_ext <<_ACEOF
24195 /* end confdefs.h.  */
24196 $ac_includes_default
24197 #include <$ac_header>
24198 _ACEOF
24199 rm -f conftest.$ac_objext
24200 if { (ac_try="$ac_compile"
24201 case "(($ac_try" in
24202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24203   *) ac_try_echo=$ac_try;;
24204 esac
24205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24206   (eval "$ac_compile") 2>conftest.er1
24207   ac_status=$?
24208   grep -v '^ *+' conftest.er1 >conftest.err
24209   rm -f conftest.er1
24210   cat conftest.err >&5
24211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24212   (exit $ac_status); } && {
24213          test -z "$ac_c_werror_flag" ||
24214          test ! -s conftest.err
24215        } && test -s conftest.$ac_objext; then
24216   ac_header_compiler=yes
24217 else
24218   echo "$as_me: failed program was:" >&5
24219 sed 's/^/| /' conftest.$ac_ext >&5
24220
24221         ac_header_compiler=no
24222 fi
24223
24224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24225 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24226 echo "${ECHO_T}$ac_header_compiler" >&6; }
24227
24228 # Is the header present?
24229 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24230 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24231 cat >conftest.$ac_ext <<_ACEOF
24232 /* confdefs.h.  */
24233 _ACEOF
24234 cat confdefs.h >>conftest.$ac_ext
24235 cat >>conftest.$ac_ext <<_ACEOF
24236 /* end confdefs.h.  */
24237 #include <$ac_header>
24238 _ACEOF
24239 if { (ac_try="$ac_cpp conftest.$ac_ext"
24240 case "(($ac_try" in
24241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24242   *) ac_try_echo=$ac_try;;
24243 esac
24244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24245   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24246   ac_status=$?
24247   grep -v '^ *+' conftest.er1 >conftest.err
24248   rm -f conftest.er1
24249   cat conftest.err >&5
24250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24251   (exit $ac_status); } >/dev/null && {
24252          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24253          test ! -s conftest.err
24254        }; then
24255   ac_header_preproc=yes
24256 else
24257   echo "$as_me: failed program was:" >&5
24258 sed 's/^/| /' conftest.$ac_ext >&5
24259
24260   ac_header_preproc=no
24261 fi
24262
24263 rm -f conftest.err conftest.$ac_ext
24264 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24265 echo "${ECHO_T}$ac_header_preproc" >&6; }
24266
24267 # So?  What about this header?
24268 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24269   yes:no: )
24270     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24271 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24272     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24273 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24274     ac_header_preproc=yes
24275     ;;
24276   no:yes:* )
24277     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24278 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24279     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24280 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24281     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24282 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24283     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24284 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24285     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24286 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24287     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24288 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24289     ( cat <<\_ASBOX
24290 ## ------------------------------ ##
24291 ## Report this to bug-tar@gnu.org ##
24292 ## ------------------------------ ##
24293 _ASBOX
24294      ) | sed "s/^/$as_me: WARNING:     /" >&2
24295     ;;
24296 esac
24297 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24298 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24299 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24300   echo $ECHO_N "(cached) $ECHO_C" >&6
24301 else
24302   eval "$as_ac_Header=\$ac_header_preproc"
24303 fi
24304 ac_res=`eval echo '${'$as_ac_Header'}'`
24305                { echo "$as_me:$LINENO: result: $ac_res" >&5
24306 echo "${ECHO_T}$ac_res" >&6; }
24307
24308 fi
24309 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24310   cat >>confdefs.h <<_ACEOF
24311 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24312 _ACEOF
24313
24314 fi
24315
24316 done
24317
24318
24319 for ac_func in _ftime
24320 do
24321 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24322 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24323 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24324 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24325   echo $ECHO_N "(cached) $ECHO_C" >&6
24326 else
24327   cat >conftest.$ac_ext <<_ACEOF
24328 /* confdefs.h.  */
24329 _ACEOF
24330 cat confdefs.h >>conftest.$ac_ext
24331 cat >>conftest.$ac_ext <<_ACEOF
24332 /* end confdefs.h.  */
24333 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24334    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24335 #define $ac_func innocuous_$ac_func
24336
24337 /* System header to define __stub macros and hopefully few prototypes,
24338     which can conflict with char $ac_func (); below.
24339     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24340     <limits.h> exists even on freestanding compilers.  */
24341
24342 #ifdef __STDC__
24343 # include <limits.h>
24344 #else
24345 # include <assert.h>
24346 #endif
24347
24348 #undef $ac_func
24349
24350 /* Override any GCC internal prototype to avoid an error.
24351    Use char because int might match the return type of a GCC
24352    builtin and then its argument prototype would still apply.  */
24353 #ifdef __cplusplus
24354 extern "C"
24355 #endif
24356 char $ac_func ();
24357 /* The GNU C library defines this for functions which it implements
24358     to always fail with ENOSYS.  Some functions are actually named
24359     something starting with __ and the normal name is an alias.  */
24360 #if defined __stub_$ac_func || defined __stub___$ac_func
24361 choke me
24362 #endif
24363
24364 int
24365 main ()
24366 {
24367 return $ac_func ();
24368   ;
24369   return 0;
24370 }
24371 _ACEOF
24372 rm -f conftest.$ac_objext conftest$ac_exeext
24373 if { (ac_try="$ac_link"
24374 case "(($ac_try" in
24375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24376   *) ac_try_echo=$ac_try;;
24377 esac
24378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24379   (eval "$ac_link") 2>conftest.er1
24380   ac_status=$?
24381   grep -v '^ *+' conftest.er1 >conftest.err
24382   rm -f conftest.er1
24383   cat conftest.err >&5
24384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24385   (exit $ac_status); } && {
24386          test -z "$ac_c_werror_flag" ||
24387          test ! -s conftest.err
24388        } && test -s conftest$ac_exeext &&
24389        $as_test_x conftest$ac_exeext; then
24390   eval "$as_ac_var=yes"
24391 else
24392   echo "$as_me: failed program was:" >&5
24393 sed 's/^/| /' conftest.$ac_ext >&5
24394
24395         eval "$as_ac_var=no"
24396 fi
24397
24398 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24399       conftest$ac_exeext conftest.$ac_ext
24400 fi
24401 ac_res=`eval echo '${'$as_ac_var'}'`
24402                { echo "$as_me:$LINENO: result: $ac_res" >&5
24403 echo "${ECHO_T}$ac_res" >&6; }
24404 if test `eval echo '${'$as_ac_var'}'` = yes; then
24405   cat >>confdefs.h <<_ACEOF
24406 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24407 _ACEOF
24408
24409 fi
24410 done
24411
24412
24413     fi
24414   fi
24415
24416
24417
24418
24419
24420
24421
24422
24423
24424
24425   gl_LIBOBJS="$gl_LIBOBJS hash.$ac_objext"
24426
24427
24428
24429
24430
24431
24432
24433
24434
24435
24436
24437
24438
24439   gl_LIBOBJS="$gl_LIBOBJS human.$ac_objext"
24440
24441
24442     :
24443
24444
24445
24446   { echo "$as_me:$LINENO: checking whether the compiler generally respects inline" >&5
24447 echo $ECHO_N "checking whether the compiler generally respects inline... $ECHO_C" >&6; }
24448 if test "${gl_cv_c_inline_effective+set}" = set; then
24449   echo $ECHO_N "(cached) $ECHO_C" >&6
24450 else
24451   if test $ac_cv_c_inline = no; then
24452        gl_cv_c_inline_effective=no
24453      else
24454                                           cat >conftest.$ac_ext <<_ACEOF
24455 /* confdefs.h.  */
24456 _ACEOF
24457 cat confdefs.h >>conftest.$ac_ext
24458 cat >>conftest.$ac_ext <<_ACEOF
24459 /* end confdefs.h.  */
24460
24461 int
24462 main ()
24463 {
24464 #ifdef __NO_INLINE__
24465                #error "inline is not effective"
24466              #endif
24467   ;
24468   return 0;
24469 }
24470 _ACEOF
24471 rm -f conftest.$ac_objext
24472 if { (ac_try="$ac_compile"
24473 case "(($ac_try" in
24474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24475   *) ac_try_echo=$ac_try;;
24476 esac
24477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24478   (eval "$ac_compile") 2>conftest.er1
24479   ac_status=$?
24480   grep -v '^ *+' conftest.er1 >conftest.err
24481   rm -f conftest.er1
24482   cat conftest.err >&5
24483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24484   (exit $ac_status); } && {
24485          test -z "$ac_c_werror_flag" ||
24486          test ! -s conftest.err
24487        } && test -s conftest.$ac_objext; then
24488   gl_cv_c_inline_effective=yes
24489 else
24490   echo "$as_me: failed program was:" >&5
24491 sed 's/^/| /' conftest.$ac_ext >&5
24492
24493         gl_cv_c_inline_effective=no
24494 fi
24495
24496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24497      fi
24498
24499 fi
24500 { echo "$as_me:$LINENO: result: $gl_cv_c_inline_effective" >&5
24501 echo "${ECHO_T}$gl_cv_c_inline_effective" >&6; }
24502   if test $gl_cv_c_inline_effective = yes; then
24503
24504 cat >>confdefs.h <<\_ACEOF
24505 #define HAVE_INLINE 1
24506 _ACEOF
24507
24508   fi
24509
24510
24511
24512
24513
24514
24515
24516
24517
24518
24519   gl_LIBOBJS="$gl_LIBOBJS imaxtostr.$ac_objext"
24520
24521
24522
24523
24524
24525
24526
24527
24528
24529   gl_LIBOBJS="$gl_LIBOBJS offtostr.$ac_objext"
24530
24531
24532
24533
24534
24535
24536
24537
24538
24539   gl_LIBOBJS="$gl_LIBOBJS umaxtostr.$ac_objext"
24540
24541
24542
24543
24544
24545
24546
24547
24548
24549   gl_LIBOBJS="$gl_LIBOBJS uinttostr.$ac_objext"
24550
24551
24552
24553
24554   :
24555
24556   :
24557   :
24558   :
24559   :
24560
24561
24562
24563
24564
24565
24566
24567
24568
24569
24570
24571
24572
24573
24574
24575
24576
24577
24578
24579
24580
24581               { echo "$as_me:$LINENO: checking whether inttypes.h conforms to C99" >&5
24582 echo $ECHO_N "checking whether inttypes.h conforms to C99... $ECHO_C" >&6; }
24583 if test "${gl_cv_header_working_inttypes_h+set}" = set; then
24584   echo $ECHO_N "(cached) $ECHO_C" >&6
24585 else
24586   gl_cv_header_working_inttypes_h=no
24587      if test "$gl_cv_header_working_stdint_h" = yes \
24588         && test $ac_cv_header_inttypes_h = yes \
24589         && test "$ac_cv_have_decl_imaxabs" = yes \
24590         && test "$ac_cv_have_decl_imaxdiv" = yes \
24591         && test "$ac_cv_have_decl_strtoimax" = yes \
24592         && test "$ac_cv_have_decl_strtoumax" = yes; then
24593        cat >conftest.$ac_ext <<_ACEOF
24594
24595          /* confdefs.h.  */
24596 _ACEOF
24597 cat confdefs.h >>conftest.$ac_ext
24598 cat >>conftest.$ac_ext <<_ACEOF
24599 /* end confdefs.h.  */
24600
24601 #include <stddef.h>
24602 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
24603 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
24604 #define __STDC_FORMAT_MACROS 1 /* to make it work also in C++ mode */
24605 #define _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H /* work if build isn't clean */
24606 #include <inttypes.h>
24607
24608 /* No need to duplicate the tests of stdint.m4; they are subsumed by
24609    $gl_cv_header_working_stdint_h = yes.  */
24610
24611 /* Tests for macros supposed to be defined in inttypes.h.  */
24612
24613 const char *k = /* implicit string concatenation */
24614 #ifdef INT8_MAX
24615   PRId8 PRIi8
24616 #endif
24617 #ifdef UINT8_MAX
24618   PRIo8 PRIu8 PRIx8 PRIX8
24619 #endif
24620 #ifdef INT16_MAX
24621   PRId16 PRIi16
24622 #endif
24623 #ifdef UINT16_MAX
24624   PRIo16 PRIu16 PRIx16 PRIX16
24625 #endif
24626 #ifdef INT32_MAX
24627   PRId32 PRIi32
24628 #endif
24629 #ifdef UINT32_MAX
24630   PRIo32 PRIu32 PRIx32 PRIX32
24631 #endif
24632 #ifdef INT64_MAX
24633   PRId64 PRIi64
24634 #endif
24635 #ifdef UINT64_MAX
24636   PRIo64 PRIu64 PRIx64 PRIX64
24637 #endif
24638   PRIdLEAST8 PRIiLEAST8 PRIoLEAST8 PRIuLEAST8 PRIxLEAST8 PRIXLEAST8
24639   PRIdLEAST16 PRIiLEAST16 PRIoLEAST16 PRIuLEAST16 PRIxLEAST16 PRIXLEAST16
24640   PRIdLEAST32 PRIiLEAST32 PRIoLEAST32 PRIuLEAST32 PRIxLEAST32 PRIXLEAST32
24641   PRIdLEAST64 PRIiLEAST64
24642   PRIoLEAST64 PRIuLEAST64 PRIxLEAST64 PRIXLEAST64
24643   PRIdFAST8 PRIiFAST8 PRIoFAST8 PRIuFAST8 PRIxFAST8 PRIXFAST8
24644   PRIdFAST16 PRIiFAST16 PRIoFAST16 PRIuFAST16 PRIxFAST16 PRIXFAST16
24645   PRIdFAST32 PRIiFAST32 PRIoFAST32 PRIuFAST32 PRIxFAST32 PRIXFAST32
24646   PRIdFAST64 PRIiFAST64
24647   PRIoFAST64 PRIuFAST64 PRIxFAST64 PRIXFAST64
24648   PRIdMAX PRIiMAX PRIoMAX PRIuMAX PRIxMAX PRIXMAX
24649 #ifdef INTPTR_MAX
24650   PRIdPTR PRIiPTR
24651 #endif
24652 #ifdef UINTPTR_MAX
24653   PRIoPTR PRIuPTR PRIxPTR PRIXPTR
24654 #endif
24655   ;
24656 const char *l = /* implicit string concatenation */
24657 #ifdef INT8_MAX
24658   SCNd8 SCNi8
24659 #endif
24660 #ifdef UINT8_MAX
24661   SCNo8 SCNu8 SCNx8
24662 #endif
24663 #ifdef INT16_MAX
24664   SCNd16 SCNi16
24665 #endif
24666 #ifdef UINT16_MAX
24667   SCNo16 SCNu16 SCNx16
24668 #endif
24669 #ifdef INT32_MAX
24670   SCNd32 SCNi32
24671 #endif
24672 #ifdef UINT32_MAX
24673   SCNo32 SCNu32 SCNx32
24674 #endif
24675 #ifdef INT64_MAX
24676   SCNd64 SCNi64
24677 #endif
24678 #ifdef UINT64_MAX
24679   SCNo64 SCNu64 SCNx64
24680 #endif
24681   SCNdLEAST8 SCNiLEAST8 SCNoLEAST8 SCNuLEAST8 SCNxLEAST8
24682   SCNdLEAST16 SCNiLEAST16 SCNoLEAST16 SCNuLEAST16 SCNxLEAST16
24683   SCNdLEAST32 SCNiLEAST32 SCNoLEAST32 SCNuLEAST32 SCNxLEAST32
24684   SCNdLEAST64 SCNiLEAST64
24685   SCNoLEAST64 SCNuLEAST64 SCNxLEAST64
24686   SCNdFAST8 SCNiFAST8 SCNoFAST8 SCNuFAST8 SCNxFAST8
24687   SCNdFAST16 SCNiFAST16 SCNoFAST16 SCNuFAST16 SCNxFAST16
24688   SCNdFAST32 SCNiFAST32 SCNoFAST32 SCNuFAST32 SCNxFAST32
24689   SCNdFAST64 SCNiFAST64
24690   SCNoFAST64 SCNuFAST64 SCNxFAST64
24691   SCNdMAX SCNiMAX SCNoMAX SCNuMAX SCNxMAX
24692 #ifdef INTPTR_MAX
24693   SCNdPTR SCNiPTR
24694 #endif
24695 #ifdef UINTPTR_MAX
24696   SCNoPTR SCNuPTR SCNxPTR
24697 #endif
24698   ;
24699
24700 int
24701 main ()
24702 {
24703
24704   ;
24705   return 0;
24706 }
24707 _ACEOF
24708 rm -f conftest.$ac_objext
24709 if { (ac_try="$ac_compile"
24710 case "(($ac_try" in
24711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24712   *) ac_try_echo=$ac_try;;
24713 esac
24714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24715   (eval "$ac_compile") 2>conftest.er1
24716   ac_status=$?
24717   grep -v '^ *+' conftest.er1 >conftest.err
24718   rm -f conftest.er1
24719   cat conftest.err >&5
24720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24721   (exit $ac_status); } && {
24722          test -z "$ac_c_werror_flag" ||
24723          test ! -s conftest.err
24724        } && test -s conftest.$ac_objext; then
24725   gl_cv_header_working_inttypes_h=yes
24726 else
24727   echo "$as_me: failed program was:" >&5
24728 sed 's/^/| /' conftest.$ac_ext >&5
24729
24730
24731 fi
24732
24733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24734      fi
24735 fi
24736 { echo "$as_me:$LINENO: result: $gl_cv_header_working_inttypes_h" >&5
24737 echo "${ECHO_T}$gl_cv_header_working_inttypes_h" >&6; }
24738
24739     if false && test $gl_cv_header_working_inttypes_h = yes; then
24740         INTTYPES_H=''
24741   else
24742
24743
24744
24745
24746
24747
24748
24749
24750
24751
24752
24753
24754
24755      if test $gl_cv_have_include_next = yes; then
24756        gl_cv_next_inttypes_h='<'inttypes.h'>'
24757      else
24758        { echo "$as_me:$LINENO: checking absolute name of <inttypes.h>" >&5
24759 echo $ECHO_N "checking absolute name of <inttypes.h>... $ECHO_C" >&6; }
24760 if test "${gl_cv_next_inttypes_h+set}" = set; then
24761   echo $ECHO_N "(cached) $ECHO_C" >&6
24762 else
24763
24764           if test $ac_cv_header_inttypes_h = yes; then
24765             cat >conftest.$ac_ext <<_ACEOF
24766 /* confdefs.h.  */
24767 _ACEOF
24768 cat confdefs.h >>conftest.$ac_ext
24769 cat >>conftest.$ac_ext <<_ACEOF
24770 /* end confdefs.h.  */
24771 #include <inttypes.h>
24772
24773 _ACEOF
24774                                                                     case "$host_os" in
24775               aix*) gl_absname_cpp="$ac_cpp -C" ;;
24776               *)    gl_absname_cpp="$ac_cpp" ;;
24777             esac
24778                                     gl_cv_next_inttypes_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24779                sed -n '\#/inttypes.h#{
24780                  s#.*"\(.*/inttypes.h\)".*#\1#
24781                  s#^/[^/]#//&#
24782                  p
24783                  q
24784                }'`'"'
24785           else
24786             gl_cv_next_inttypes_h='<'inttypes.h'>'
24787           fi
24788
24789 fi
24790 { echo "$as_me:$LINENO: result: $gl_cv_next_inttypes_h" >&5
24791 echo "${ECHO_T}$gl_cv_next_inttypes_h" >&6; }
24792      fi
24793      NEXT_INTTYPES_H=$gl_cv_next_inttypes_h
24794
24795
24796
24797
24798
24799
24800
24801 cat >>confdefs.h <<\_ACEOF
24802 #define GL_TRIGGER_STDC_LIMIT_MACROS 1
24803 _ACEOF
24804
24805
24806
24807
24808     PRIPTR_PREFIX=
24809     if test -n "$STDINT_H"; then
24810             PRIPTR_PREFIX='"l"'
24811     else
24812             for glpfx in '' l ll I64; do
24813         case $glpfx in
24814           '')  gltype1='int';;
24815           l)   gltype1='long int';;
24816           ll)  gltype1='long long int';;
24817           I64) gltype1='__int64';;
24818         esac
24819         cat >conftest.$ac_ext <<_ACEOF
24820 /* confdefs.h.  */
24821 _ACEOF
24822 cat confdefs.h >>conftest.$ac_ext
24823 cat >>conftest.$ac_ext <<_ACEOF
24824 /* end confdefs.h.  */
24825 #include <stdint.h>
24826              extern intptr_t foo;
24827              extern $gltype1 foo;
24828 int
24829 main ()
24830 {
24831
24832   ;
24833   return 0;
24834 }
24835 _ACEOF
24836 rm -f conftest.$ac_objext
24837 if { (ac_try="$ac_compile"
24838 case "(($ac_try" in
24839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24840   *) ac_try_echo=$ac_try;;
24841 esac
24842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24843   (eval "$ac_compile") 2>conftest.er1
24844   ac_status=$?
24845   grep -v '^ *+' conftest.er1 >conftest.err
24846   rm -f conftest.er1
24847   cat conftest.err >&5
24848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24849   (exit $ac_status); } && {
24850          test -z "$ac_c_werror_flag" ||
24851          test ! -s conftest.err
24852        } && test -s conftest.$ac_objext; then
24853   PRIPTR_PREFIX='"'$glpfx'"'
24854 else
24855   echo "$as_me: failed program was:" >&5
24856 sed 's/^/| /' conftest.$ac_ext >&5
24857
24858
24859 fi
24860
24861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24862         test -n "$PRIPTR_PREFIX" && break
24863       done
24864     fi
24865
24866
24867     if test "$ac_cv_have_decl_imaxabs" = yes; then
24868       HAVE_DECL_IMAXABS=1
24869     else
24870       HAVE_DECL_IMAXABS=0
24871     fi
24872
24873     if test "$ac_cv_have_decl_imaxdiv" = yes; then
24874       HAVE_DECL_IMAXDIV=1
24875     else
24876       HAVE_DECL_IMAXDIV=0
24877     fi
24878
24879     if test "$ac_cv_have_decl_strtoimax" = yes; then
24880       HAVE_DECL_STRTOIMAX=1
24881     else
24882       HAVE_DECL_STRTOIMAX=0
24883     fi
24884
24885     if test "$ac_cv_have_decl_strtoumax" = yes; then
24886       HAVE_DECL_STRTOUMAX=1
24887     else
24888       HAVE_DECL_STRTOUMAX=0
24889     fi
24890
24891
24892   { echo "$as_me:$LINENO: checking whether INT32_MAX < INTMAX_MAX" >&5
24893 echo $ECHO_N "checking whether INT32_MAX < INTMAX_MAX... $ECHO_C" >&6; }
24894 if test "${gl_cv_test_INT32_MAX_LT_INTMAX_MAX+set}" = set; then
24895   echo $ECHO_N "(cached) $ECHO_C" >&6
24896 else
24897   cat >conftest.$ac_ext <<_ACEOF
24898 /* confdefs.h.  */
24899 _ACEOF
24900 cat confdefs.h >>conftest.$ac_ext
24901 cat >>conftest.$ac_ext <<_ACEOF
24902 /* end confdefs.h.  */
24903 /* Work also in C++ mode.  */
24904             #define __STDC_LIMIT_MACROS 1
24905
24906             /* Work if build is not clean.  */
24907             #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
24908
24909             #include <limits.h>
24910             #if HAVE_STDINT_H
24911              #include <stdint.h>
24912             #endif
24913
24914             #if defined INT32_MAX && defined INTMAX_MAX
24915              #define CONDITION (INT32_MAX < INTMAX_MAX)
24916             #elif HAVE_LONG_LONG_INT
24917              #define CONDITION (sizeof (int) < sizeof (long long int))
24918             #else
24919              #define CONDITION 0
24920             #endif
24921             int test[CONDITION ? 1 : -1];
24922 int
24923 main ()
24924 {
24925
24926   ;
24927   return 0;
24928 }
24929 _ACEOF
24930 rm -f conftest.$ac_objext
24931 if { (ac_try="$ac_compile"
24932 case "(($ac_try" in
24933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24934   *) ac_try_echo=$ac_try;;
24935 esac
24936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24937   (eval "$ac_compile") 2>conftest.er1
24938   ac_status=$?
24939   grep -v '^ *+' conftest.er1 >conftest.err
24940   rm -f conftest.er1
24941   cat conftest.err >&5
24942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24943   (exit $ac_status); } && {
24944          test -z "$ac_c_werror_flag" ||
24945          test ! -s conftest.err
24946        } && test -s conftest.$ac_objext; then
24947   gl_cv_test_INT32_MAX_LT_INTMAX_MAX=yes
24948 else
24949   echo "$as_me: failed program was:" >&5
24950 sed 's/^/| /' conftest.$ac_ext >&5
24951
24952         gl_cv_test_INT32_MAX_LT_INTMAX_MAX=no
24953 fi
24954
24955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24956 fi
24957 { echo "$as_me:$LINENO: result: $gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&5
24958 echo "${ECHO_T}$gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&6; }
24959   if test $gl_cv_test_INT32_MAX_LT_INTMAX_MAX = yes; then
24960     INT32_MAX_LT_INTMAX_MAX=1;
24961   else
24962     INT32_MAX_LT_INTMAX_MAX=0;
24963   fi
24964
24965
24966     if test $APPLE_UNIVERSAL_BUILD = 0; then
24967
24968   { echo "$as_me:$LINENO: checking whether INT64_MAX == LONG_MAX" >&5
24969 echo $ECHO_N "checking whether INT64_MAX == LONG_MAX... $ECHO_C" >&6; }
24970 if test "${gl_cv_test_INT64_MAX_EQ_LONG_MAX+set}" = set; then
24971   echo $ECHO_N "(cached) $ECHO_C" >&6
24972 else
24973   cat >conftest.$ac_ext <<_ACEOF
24974 /* confdefs.h.  */
24975 _ACEOF
24976 cat confdefs.h >>conftest.$ac_ext
24977 cat >>conftest.$ac_ext <<_ACEOF
24978 /* end confdefs.h.  */
24979 /* Work also in C++ mode.  */
24980             #define __STDC_LIMIT_MACROS 1
24981
24982             /* Work if build is not clean.  */
24983             #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
24984
24985             #include <limits.h>
24986             #if HAVE_STDINT_H
24987              #include <stdint.h>
24988             #endif
24989
24990             #if defined INT64_MAX
24991              #define CONDITION (INT64_MAX == LONG_MAX)
24992             #elif HAVE_LONG_LONG_INT
24993              #define CONDITION (sizeof (long long int) == sizeof (long int))
24994             #else
24995              #define CONDITION 0
24996             #endif
24997             int test[CONDITION ? 1 : -1];
24998 int
24999 main ()
25000 {
25001
25002   ;
25003   return 0;
25004 }
25005 _ACEOF
25006 rm -f conftest.$ac_objext
25007 if { (ac_try="$ac_compile"
25008 case "(($ac_try" in
25009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25010   *) ac_try_echo=$ac_try;;
25011 esac
25012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25013   (eval "$ac_compile") 2>conftest.er1
25014   ac_status=$?
25015   grep -v '^ *+' conftest.er1 >conftest.err
25016   rm -f conftest.er1
25017   cat conftest.err >&5
25018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25019   (exit $ac_status); } && {
25020          test -z "$ac_c_werror_flag" ||
25021          test ! -s conftest.err
25022        } && test -s conftest.$ac_objext; then
25023   gl_cv_test_INT64_MAX_EQ_LONG_MAX=yes
25024 else
25025   echo "$as_me: failed program was:" >&5
25026 sed 's/^/| /' conftest.$ac_ext >&5
25027
25028         gl_cv_test_INT64_MAX_EQ_LONG_MAX=no
25029 fi
25030
25031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25032 fi
25033 { echo "$as_me:$LINENO: result: $gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&5
25034 echo "${ECHO_T}$gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&6; }
25035   if test $gl_cv_test_INT64_MAX_EQ_LONG_MAX = yes; then
25036     INT64_MAX_EQ_LONG_MAX=1;
25037   else
25038     INT64_MAX_EQ_LONG_MAX=0;
25039   fi
25040
25041
25042     else
25043       INT64_MAX_EQ_LONG_MAX=-1
25044     fi
25045
25046   { echo "$as_me:$LINENO: checking whether UINT32_MAX < UINTMAX_MAX" >&5
25047 echo $ECHO_N "checking whether UINT32_MAX < UINTMAX_MAX... $ECHO_C" >&6; }
25048 if test "${gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX+set}" = set; then
25049   echo $ECHO_N "(cached) $ECHO_C" >&6
25050 else
25051   cat >conftest.$ac_ext <<_ACEOF
25052 /* confdefs.h.  */
25053 _ACEOF
25054 cat confdefs.h >>conftest.$ac_ext
25055 cat >>conftest.$ac_ext <<_ACEOF
25056 /* end confdefs.h.  */
25057 /* Work also in C++ mode.  */
25058             #define __STDC_LIMIT_MACROS 1
25059
25060             /* Work if build is not clean.  */
25061             #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
25062
25063             #include <limits.h>
25064             #if HAVE_STDINT_H
25065              #include <stdint.h>
25066             #endif
25067
25068             #if defined UINT32_MAX && defined UINTMAX_MAX
25069              #define CONDITION (UINT32_MAX < UINTMAX_MAX)
25070             #elif HAVE_LONG_LONG_INT
25071              #define CONDITION (sizeof (unsigned int) < sizeof (unsigned long long int))
25072             #else
25073              #define CONDITION 0
25074             #endif
25075             int test[CONDITION ? 1 : -1];
25076 int
25077 main ()
25078 {
25079
25080   ;
25081   return 0;
25082 }
25083 _ACEOF
25084 rm -f conftest.$ac_objext
25085 if { (ac_try="$ac_compile"
25086 case "(($ac_try" in
25087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25088   *) ac_try_echo=$ac_try;;
25089 esac
25090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25091   (eval "$ac_compile") 2>conftest.er1
25092   ac_status=$?
25093   grep -v '^ *+' conftest.er1 >conftest.err
25094   rm -f conftest.er1
25095   cat conftest.err >&5
25096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25097   (exit $ac_status); } && {
25098          test -z "$ac_c_werror_flag" ||
25099          test ! -s conftest.err
25100        } && test -s conftest.$ac_objext; then
25101   gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=yes
25102 else
25103   echo "$as_me: failed program was:" >&5
25104 sed 's/^/| /' conftest.$ac_ext >&5
25105
25106         gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=no
25107 fi
25108
25109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25110 fi
25111 { echo "$as_me:$LINENO: result: $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&5
25112 echo "${ECHO_T}$gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&6; }
25113   if test $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX = yes; then
25114     UINT32_MAX_LT_UINTMAX_MAX=1;
25115   else
25116     UINT32_MAX_LT_UINTMAX_MAX=0;
25117   fi
25118
25119
25120     if test $APPLE_UNIVERSAL_BUILD = 0; then
25121
25122   { echo "$as_me:$LINENO: checking whether UINT64_MAX == ULONG_MAX" >&5
25123 echo $ECHO_N "checking whether UINT64_MAX == ULONG_MAX... $ECHO_C" >&6; }
25124 if test "${gl_cv_test_UINT64_MAX_EQ_ULONG_MAX+set}" = set; then
25125   echo $ECHO_N "(cached) $ECHO_C" >&6
25126 else
25127   cat >conftest.$ac_ext <<_ACEOF
25128 /* confdefs.h.  */
25129 _ACEOF
25130 cat confdefs.h >>conftest.$ac_ext
25131 cat >>conftest.$ac_ext <<_ACEOF
25132 /* end confdefs.h.  */
25133 /* Work also in C++ mode.  */
25134             #define __STDC_LIMIT_MACROS 1
25135
25136             /* Work if build is not clean.  */
25137             #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
25138
25139             #include <limits.h>
25140             #if HAVE_STDINT_H
25141              #include <stdint.h>
25142             #endif
25143
25144             #if defined UINT64_MAX
25145              #define CONDITION (UINT64_MAX == ULONG_MAX)
25146             #elif HAVE_LONG_LONG_INT
25147              #define CONDITION (sizeof (unsigned long long int) == sizeof (unsigned long int))
25148             #else
25149              #define CONDITION 0
25150             #endif
25151             int test[CONDITION ? 1 : -1];
25152 int
25153 main ()
25154 {
25155
25156   ;
25157   return 0;
25158 }
25159 _ACEOF
25160 rm -f conftest.$ac_objext
25161 if { (ac_try="$ac_compile"
25162 case "(($ac_try" in
25163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25164   *) ac_try_echo=$ac_try;;
25165 esac
25166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25167   (eval "$ac_compile") 2>conftest.er1
25168   ac_status=$?
25169   grep -v '^ *+' conftest.er1 >conftest.err
25170   rm -f conftest.er1
25171   cat conftest.err >&5
25172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25173   (exit $ac_status); } && {
25174          test -z "$ac_c_werror_flag" ||
25175          test ! -s conftest.err
25176        } && test -s conftest.$ac_objext; then
25177   gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=yes
25178 else
25179   echo "$as_me: failed program was:" >&5
25180 sed 's/^/| /' conftest.$ac_ext >&5
25181
25182         gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=no
25183 fi
25184
25185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25186 fi
25187 { echo "$as_me:$LINENO: result: $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&5
25188 echo "${ECHO_T}$gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&6; }
25189   if test $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX = yes; then
25190     UINT64_MAX_EQ_ULONG_MAX=1;
25191   else
25192     UINT64_MAX_EQ_ULONG_MAX=0;
25193   fi
25194
25195
25196     else
25197       UINT64_MAX_EQ_ULONG_MAX=-1
25198     fi
25199
25200     INTTYPES_H='inttypes.h'
25201   fi
25202
25203
25204
25205
25206
25207
25208
25209
25210
25211
25212
25213
25214
25215
25216 for ac_func in lchown
25217 do
25218 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25219 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25220 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25221 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25222   echo $ECHO_N "(cached) $ECHO_C" >&6
25223 else
25224   cat >conftest.$ac_ext <<_ACEOF
25225 /* confdefs.h.  */
25226 _ACEOF
25227 cat confdefs.h >>conftest.$ac_ext
25228 cat >>conftest.$ac_ext <<_ACEOF
25229 /* end confdefs.h.  */
25230 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25231    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25232 #define $ac_func innocuous_$ac_func
25233
25234 /* System header to define __stub macros and hopefully few prototypes,
25235     which can conflict with char $ac_func (); below.
25236     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25237     <limits.h> exists even on freestanding compilers.  */
25238
25239 #ifdef __STDC__
25240 # include <limits.h>
25241 #else
25242 # include <assert.h>
25243 #endif
25244
25245 #undef $ac_func
25246
25247 /* Override any GCC internal prototype to avoid an error.
25248    Use char because int might match the return type of a GCC
25249    builtin and then its argument prototype would still apply.  */
25250 #ifdef __cplusplus
25251 extern "C"
25252 #endif
25253 char $ac_func ();
25254 /* The GNU C library defines this for functions which it implements
25255     to always fail with ENOSYS.  Some functions are actually named
25256     something starting with __ and the normal name is an alias.  */
25257 #if defined __stub_$ac_func || defined __stub___$ac_func
25258 choke me
25259 #endif
25260
25261 int
25262 main ()
25263 {
25264 return $ac_func ();
25265   ;
25266   return 0;
25267 }
25268 _ACEOF
25269 rm -f conftest.$ac_objext conftest$ac_exeext
25270 if { (ac_try="$ac_link"
25271 case "(($ac_try" in
25272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25273   *) ac_try_echo=$ac_try;;
25274 esac
25275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25276   (eval "$ac_link") 2>conftest.er1
25277   ac_status=$?
25278   grep -v '^ *+' conftest.er1 >conftest.err
25279   rm -f conftest.er1
25280   cat conftest.err >&5
25281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25282   (exit $ac_status); } && {
25283          test -z "$ac_c_werror_flag" ||
25284          test ! -s conftest.err
25285        } && test -s conftest$ac_exeext &&
25286        $as_test_x conftest$ac_exeext; then
25287   eval "$as_ac_var=yes"
25288 else
25289   echo "$as_me: failed program was:" >&5
25290 sed 's/^/| /' conftest.$ac_ext >&5
25291
25292         eval "$as_ac_var=no"
25293 fi
25294
25295 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25296       conftest$ac_exeext conftest.$ac_ext
25297 fi
25298 ac_res=`eval echo '${'$as_ac_var'}'`
25299                { echo "$as_me:$LINENO: result: $ac_res" >&5
25300 echo "${ECHO_T}$ac_res" >&6; }
25301 if test `eval echo '${'$as_ac_var'}'` = yes; then
25302   cat >>confdefs.h <<_ACEOF
25303 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25304 _ACEOF
25305
25306 else
25307
25308     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
25309
25310 fi
25311 done
25312
25313
25314   if test $ac_cv_func_lchown = no; then
25315     REPLACE_LCHOWN=1
25316   fi
25317
25318
25319
25320   GNULIB_LCHOWN=1
25321
25322
25323
25324
25325
25326
25327
25328
25329
25330
25331
25332   LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(top_builddir)/$gl_source_base\""
25333
25334
25335
25336
25337   { echo "$as_me:$LINENO: checking whether lseek detects pipes" >&5
25338 echo $ECHO_N "checking whether lseek detects pipes... $ECHO_C" >&6; }
25339 if test "${gl_cv_func_lseek_pipe+set}" = set; then
25340   echo $ECHO_N "(cached) $ECHO_C" >&6
25341 else
25342   if test $cross_compiling = no; then
25343        cat >conftest.$ac_ext <<_ACEOF
25344
25345 #include <sys/types.h> /* for off_t */
25346 #include <stdio.h> /* for SEEK_CUR */
25347 #include <unistd.h>
25348 int main ()
25349 {
25350   /* Exit with success only if stdin is seekable.  */
25351   return lseek (0, (off_t)0, SEEK_CUR) < 0;
25352 }
25353 _ACEOF
25354 rm -f conftest.$ac_objext conftest$ac_exeext
25355 if { (ac_try="$ac_link"
25356 case "(($ac_try" in
25357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25358   *) ac_try_echo=$ac_try;;
25359 esac
25360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25361   (eval "$ac_link") 2>conftest.er1
25362   ac_status=$?
25363   grep -v '^ *+' conftest.er1 >conftest.err
25364   rm -f conftest.er1
25365   cat conftest.err >&5
25366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25367   (exit $ac_status); } && {
25368          test -z "$ac_c_werror_flag" ||
25369          test ! -s conftest.err
25370        } && test -s conftest$ac_exeext &&
25371        $as_test_x conftest$ac_exeext; then
25372   if test -s conftest$ac_exeext \
25373              && ./conftest$ac_exeext < conftest.$ac_ext \
25374              && { echo hi | ./conftest$ac_exeext; test $? = 1; }; then
25375             gl_cv_func_lseek_pipe=yes
25376           else
25377             gl_cv_func_lseek_pipe=no
25378           fi
25379 else
25380   echo "$as_me: failed program was:" >&5
25381 sed 's/^/| /' conftest.$ac_ext >&5
25382
25383         gl_cv_func_lseek_pipe=no
25384 fi
25385
25386 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25387       conftest$ac_exeext conftest.$ac_ext
25388      else
25389        cat >conftest.$ac_ext <<_ACEOF
25390
25391 #if ((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__) || defined __BEOS__
25392 /* mingw and BeOS mistakenly return 0 when trying to seek on pipes.  */
25393   Choke me.
25394 #endif
25395 _ACEOF
25396 rm -f conftest.$ac_objext
25397 if { (ac_try="$ac_compile"
25398 case "(($ac_try" in
25399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25400   *) ac_try_echo=$ac_try;;
25401 esac
25402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25403   (eval "$ac_compile") 2>conftest.er1
25404   ac_status=$?
25405   grep -v '^ *+' conftest.er1 >conftest.err
25406   rm -f conftest.er1
25407   cat conftest.err >&5
25408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25409   (exit $ac_status); } && {
25410          test -z "$ac_c_werror_flag" ||
25411          test ! -s conftest.err
25412        } && test -s conftest.$ac_objext; then
25413   gl_cv_func_lseek_pipe=yes
25414 else
25415   echo "$as_me: failed program was:" >&5
25416 sed 's/^/| /' conftest.$ac_ext >&5
25417
25418         gl_cv_func_lseek_pipe=no
25419 fi
25420
25421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25422      fi
25423 fi
25424 { echo "$as_me:$LINENO: result: $gl_cv_func_lseek_pipe" >&5
25425 echo "${ECHO_T}$gl_cv_func_lseek_pipe" >&6; }
25426   if test $gl_cv_func_lseek_pipe = no; then
25427
25428
25429
25430
25431
25432
25433
25434
25435
25436   gl_LIBOBJS="$gl_LIBOBJS lseek.$ac_objext"
25437
25438
25439   REPLACE_LSEEK=1
25440
25441 cat >>confdefs.h <<\_ACEOF
25442 #define LSEEK_PIPE_BROKEN 1
25443 _ACEOF
25444
25445
25446   fi
25447
25448
25449
25450   GNULIB_LSEEK=1
25451
25452
25453
25454
25455
25456
25457
25458
25459
25460   if test $ac_cv_func_lstat = yes; then
25461     { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
25462 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
25463 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
25464   echo $ECHO_N "(cached) $ECHO_C" >&6
25465 else
25466   rm -f conftest.sym conftest.file
25467 echo >conftest.file
25468 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
25469   if test "$cross_compiling" = yes; then
25470   ac_cv_func_lstat_dereferences_slashed_symlink=no
25471 else
25472   cat >conftest.$ac_ext <<_ACEOF
25473 /* confdefs.h.  */
25474 _ACEOF
25475 cat confdefs.h >>conftest.$ac_ext
25476 cat >>conftest.$ac_ext <<_ACEOF
25477 /* end confdefs.h.  */
25478 $ac_includes_default
25479 int
25480 main ()
25481 {
25482 struct stat sbuf;
25483      /* Linux will dereference the symlink and fail.
25484         That is better in the sense that it means we will not
25485         have to compile and use the lstat wrapper.  */
25486      return lstat ("conftest.sym/", &sbuf) == 0;
25487   ;
25488   return 0;
25489 }
25490 _ACEOF
25491 rm -f conftest$ac_exeext
25492 if { (ac_try="$ac_link"
25493 case "(($ac_try" in
25494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25495   *) ac_try_echo=$ac_try;;
25496 esac
25497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25498   (eval "$ac_link") 2>&5
25499   ac_status=$?
25500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25501   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25502   { (case "(($ac_try" in
25503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25504   *) ac_try_echo=$ac_try;;
25505 esac
25506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25507   (eval "$ac_try") 2>&5
25508   ac_status=$?
25509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25510   (exit $ac_status); }; }; then
25511   ac_cv_func_lstat_dereferences_slashed_symlink=yes
25512 else
25513   echo "$as_me: program exited with status $ac_status" >&5
25514 echo "$as_me: failed program was:" >&5
25515 sed 's/^/| /' conftest.$ac_ext >&5
25516
25517 ( exit $ac_status )
25518 ac_cv_func_lstat_dereferences_slashed_symlink=no
25519 fi
25520 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25521 fi
25522
25523
25524 else
25525   # If the `ln -s' command failed, then we probably don't even
25526   # have an lstat function.
25527   ac_cv_func_lstat_dereferences_slashed_symlink=no
25528 fi
25529 rm -f conftest.sym conftest.file
25530
25531 fi
25532 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
25533 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
25534
25535 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
25536
25537 cat >>confdefs.h <<_ACEOF
25538 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
25539 _ACEOF
25540
25541
25542 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
25543
25544
25545
25546
25547
25548
25549
25550
25551   gl_LIBOBJS="$gl_LIBOBJS lstat.$ac_objext"
25552
25553 fi
25554
25555         if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
25556       REPLACE_LSTAT=1
25557     fi
25558     # Prerequisites of lib/lstat.c.
25559
25560   fi
25561
25562
25563
25564   GNULIB_LSTAT=1
25565
25566
25567 for ac_header in stdlib.h
25568 do
25569 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25570 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25571   { echo "$as_me:$LINENO: checking for $ac_header" >&5
25572 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25573 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25574   echo $ECHO_N "(cached) $ECHO_C" >&6
25575 fi
25576 ac_res=`eval echo '${'$as_ac_Header'}'`
25577                { echo "$as_me:$LINENO: result: $ac_res" >&5
25578 echo "${ECHO_T}$ac_res" >&6; }
25579 else
25580   # Is the header compilable?
25581 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
25582 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
25583 cat >conftest.$ac_ext <<_ACEOF
25584 /* confdefs.h.  */
25585 _ACEOF
25586 cat confdefs.h >>conftest.$ac_ext
25587 cat >>conftest.$ac_ext <<_ACEOF
25588 /* end confdefs.h.  */
25589 $ac_includes_default
25590 #include <$ac_header>
25591 _ACEOF
25592 rm -f conftest.$ac_objext
25593 if { (ac_try="$ac_compile"
25594 case "(($ac_try" in
25595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25596   *) ac_try_echo=$ac_try;;
25597 esac
25598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25599   (eval "$ac_compile") 2>conftest.er1
25600   ac_status=$?
25601   grep -v '^ *+' conftest.er1 >conftest.err
25602   rm -f conftest.er1
25603   cat conftest.err >&5
25604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25605   (exit $ac_status); } && {
25606          test -z "$ac_c_werror_flag" ||
25607          test ! -s conftest.err
25608        } && test -s conftest.$ac_objext; then
25609   ac_header_compiler=yes
25610 else
25611   echo "$as_me: failed program was:" >&5
25612 sed 's/^/| /' conftest.$ac_ext >&5
25613
25614         ac_header_compiler=no
25615 fi
25616
25617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25618 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25619 echo "${ECHO_T}$ac_header_compiler" >&6; }
25620
25621 # Is the header present?
25622 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
25623 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
25624 cat >conftest.$ac_ext <<_ACEOF
25625 /* confdefs.h.  */
25626 _ACEOF
25627 cat confdefs.h >>conftest.$ac_ext
25628 cat >>conftest.$ac_ext <<_ACEOF
25629 /* end confdefs.h.  */
25630 #include <$ac_header>
25631 _ACEOF
25632 if { (ac_try="$ac_cpp conftest.$ac_ext"
25633 case "(($ac_try" in
25634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25635   *) ac_try_echo=$ac_try;;
25636 esac
25637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25638   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25639   ac_status=$?
25640   grep -v '^ *+' conftest.er1 >conftest.err
25641   rm -f conftest.er1
25642   cat conftest.err >&5
25643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25644   (exit $ac_status); } >/dev/null && {
25645          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25646          test ! -s conftest.err
25647        }; then
25648   ac_header_preproc=yes
25649 else
25650   echo "$as_me: failed program was:" >&5
25651 sed 's/^/| /' conftest.$ac_ext >&5
25652
25653   ac_header_preproc=no
25654 fi
25655
25656 rm -f conftest.err conftest.$ac_ext
25657 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25658 echo "${ECHO_T}$ac_header_preproc" >&6; }
25659
25660 # So?  What about this header?
25661 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25662   yes:no: )
25663     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25664 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25665     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25666 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25667     ac_header_preproc=yes
25668     ;;
25669   no:yes:* )
25670     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25671 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25672     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25673 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25674     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25675 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25676     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25677 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25678     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25679 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25680     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25681 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25682     ( cat <<\_ASBOX
25683 ## ------------------------------ ##
25684 ## Report this to bug-tar@gnu.org ##
25685 ## ------------------------------ ##
25686 _ASBOX
25687      ) | sed "s/^/$as_me: WARNING:     /" >&2
25688     ;;
25689 esac
25690 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25691 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25692 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25693   echo $ECHO_N "(cached) $ECHO_C" >&6
25694 else
25695   eval "$as_ac_Header=\$ac_header_preproc"
25696 fi
25697 ac_res=`eval echo '${'$as_ac_Header'}'`
25698                { echo "$as_me:$LINENO: result: $ac_res" >&5
25699 echo "${ECHO_T}$ac_res" >&6; }
25700
25701 fi
25702 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25703   cat >>confdefs.h <<_ACEOF
25704 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25705 _ACEOF
25706
25707 fi
25708
25709 done
25710
25711 { echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
25712 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; }
25713 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
25714   echo $ECHO_N "(cached) $ECHO_C" >&6
25715 else
25716   if test "$cross_compiling" = yes; then
25717   ac_cv_func_malloc_0_nonnull=no
25718 else
25719   cat >conftest.$ac_ext <<_ACEOF
25720 /* confdefs.h.  */
25721 _ACEOF
25722 cat confdefs.h >>conftest.$ac_ext
25723 cat >>conftest.$ac_ext <<_ACEOF
25724 /* end confdefs.h.  */
25725 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
25726 # include <stdlib.h>
25727 #else
25728 char *malloc ();
25729 #endif
25730
25731 int
25732 main ()
25733 {
25734 return ! malloc (0);
25735   ;
25736   return 0;
25737 }
25738 _ACEOF
25739 rm -f conftest$ac_exeext
25740 if { (ac_try="$ac_link"
25741 case "(($ac_try" in
25742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25743   *) ac_try_echo=$ac_try;;
25744 esac
25745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25746   (eval "$ac_link") 2>&5
25747   ac_status=$?
25748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25749   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25750   { (case "(($ac_try" in
25751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25752   *) ac_try_echo=$ac_try;;
25753 esac
25754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25755   (eval "$ac_try") 2>&5
25756   ac_status=$?
25757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25758   (exit $ac_status); }; }; then
25759   ac_cv_func_malloc_0_nonnull=yes
25760 else
25761   echo "$as_me: program exited with status $ac_status" >&5
25762 echo "$as_me: failed program was:" >&5
25763 sed 's/^/| /' conftest.$ac_ext >&5
25764
25765 ( exit $ac_status )
25766 ac_cv_func_malloc_0_nonnull=no
25767 fi
25768 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25769 fi
25770
25771
25772 fi
25773 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
25774 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
25775 if test $ac_cv_func_malloc_0_nonnull = yes; then
25776
25777 cat >>confdefs.h <<\_ACEOF
25778 #define HAVE_MALLOC 1
25779 _ACEOF
25780
25781 else
25782   cat >>confdefs.h <<\_ACEOF
25783 #define HAVE_MALLOC 0
25784 _ACEOF
25785
25786
25787
25788
25789
25790
25791
25792
25793
25794   gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
25795
25796
25797 cat >>confdefs.h <<\_ACEOF
25798 #define malloc rpl_malloc
25799 _ACEOF
25800
25801 fi
25802
25803
25804
25805
25806 cat >>confdefs.h <<\_ACEOF
25807 #define GNULIB_MALLOC_GNU 1
25808 _ACEOF
25809
25810
25811
25812   if test $gl_cv_func_malloc_posix = yes; then
25813     HAVE_MALLOC_POSIX=1
25814
25815 cat >>confdefs.h <<\_ACEOF
25816 #define HAVE_MALLOC_POSIX 1
25817 _ACEOF
25818
25819   else
25820
25821
25822
25823
25824
25825
25826
25827
25828   gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
25829
25830     HAVE_MALLOC_POSIX=0
25831   fi
25832
25833
25834
25835
25836   GNULIB_MALLOC_POSIX=1
25837
25838
25839
25840
25841
25842
25843
25844
25845
25846
25847
25848
25849
25850
25851
25852
25853
25854
25855
25856
25857
25858
25859
25860
25861
25862
25863
25864
25865   if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
25866
25867
25868
25869      { echo "$as_me:$LINENO: checking whether mbrtowc handles incomplete characters" >&5
25870 echo $ECHO_N "checking whether mbrtowc handles incomplete characters... $ECHO_C" >&6; }
25871 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then
25872   echo $ECHO_N "(cached) $ECHO_C" >&6
25873 else
25874
25875                   case "$host_os" in
25876               # Guess no on AIX and OSF/1.
25877         osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
25878               # Guess yes otherwise.
25879         *)    gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
25880       esac
25881       if test $LOCALE_JA != none; then
25882         if test "$cross_compiling" = yes; then
25883   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
25884 See \`config.log' for more details." >&5
25885 echo "$as_me: error: cannot run test program while cross compiling
25886 See \`config.log' for more details." >&2;}
25887    { (exit 1); exit 1; }; }
25888 else
25889   cat >conftest.$ac_ext <<_ACEOF
25890 /* confdefs.h.  */
25891 _ACEOF
25892 cat confdefs.h >>conftest.$ac_ext
25893 cat >>conftest.$ac_ext <<_ACEOF
25894 /* end confdefs.h.  */
25895
25896 #include <locale.h>
25897 #include <string.h>
25898 #include <wchar.h>
25899 int main ()
25900 {
25901   if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
25902     {
25903       const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
25904       mbstate_t state;
25905       wchar_t wc;
25906
25907       memset (&state, '\0', sizeof (mbstate_t));
25908       if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
25909         if (mbsinit (&state))
25910           return 1;
25911     }
25912   return 0;
25913 }
25914 _ACEOF
25915 rm -f conftest$ac_exeext
25916 if { (ac_try="$ac_link"
25917 case "(($ac_try" in
25918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25919   *) ac_try_echo=$ac_try;;
25920 esac
25921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25922   (eval "$ac_link") 2>&5
25923   ac_status=$?
25924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25925   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25926   { (case "(($ac_try" in
25927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25928   *) ac_try_echo=$ac_try;;
25929 esac
25930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25931   (eval "$ac_try") 2>&5
25932   ac_status=$?
25933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25934   (exit $ac_status); }; }; then
25935   gl_cv_func_mbrtowc_incomplete_state=yes
25936 else
25937   echo "$as_me: program exited with status $ac_status" >&5
25938 echo "$as_me: failed program was:" >&5
25939 sed 's/^/| /' conftest.$ac_ext >&5
25940
25941 ( exit $ac_status )
25942 gl_cv_func_mbrtowc_incomplete_state=no
25943 fi
25944 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25945 fi
25946
25947
25948       fi
25949
25950 fi
25951 { echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
25952 echo "${ECHO_T}$gl_cv_func_mbrtowc_incomplete_state" >&6; }
25953
25954     case "$gl_cv_func_mbrtowc_incomplete_state" in
25955       *yes) REPLACE_MBSTATE_T=0 ;;
25956       *)    REPLACE_MBSTATE_T=1 ;;
25957     esac
25958   else
25959     REPLACE_MBSTATE_T=1
25960   fi
25961   if test $REPLACE_MBSTATE_T = 1; then
25962
25963
25964   WCHAR_H=wchar.h
25965
25966   fi
25967
25968   if test $REPLACE_MBSTATE_T = 1; then
25969     REPLACE_MBRTOWC=1
25970   fi
25971
25972
25973
25974
25975
25976
25977   if test $ac_cv_func_mbrtowc = no; then
25978     HAVE_MBRTOWC=0
25979   fi
25980   if test $HAVE_MBRTOWC != 0 && test $REPLACE_MBRTOWC != 1; then
25981
25982
25983
25984      { echo "$as_me:$LINENO: checking whether mbrtowc handles a NULL string argument" >&5
25985 echo $ECHO_N "checking whether mbrtowc handles a NULL string argument... $ECHO_C" >&6; }
25986 if test "${gl_cv_func_mbrtowc_null_arg+set}" = set; then
25987   echo $ECHO_N "(cached) $ECHO_C" >&6
25988 else
25989
25990                   case "$host_os" in
25991               # Guess no on OSF/1.
25992         osf*) gl_cv_func_mbrtowc_null_arg="guessing no" ;;
25993               # Guess yes otherwise.
25994         *)    gl_cv_func_mbrtowc_null_arg="guessing yes" ;;
25995       esac
25996       if test $LOCALE_FR_UTF8 != none; then
25997         if test "$cross_compiling" = yes; then
25998   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
25999 See \`config.log' for more details." >&5
26000 echo "$as_me: error: cannot run test program while cross compiling
26001 See \`config.log' for more details." >&2;}
26002    { (exit 1); exit 1; }; }
26003 else
26004   cat >conftest.$ac_ext <<_ACEOF
26005 /* confdefs.h.  */
26006 _ACEOF
26007 cat confdefs.h >>conftest.$ac_ext
26008 cat >>conftest.$ac_ext <<_ACEOF
26009 /* end confdefs.h.  */
26010
26011 #include <locale.h>
26012 #include <string.h>
26013 #include <wchar.h>
26014 int main ()
26015 {
26016   if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
26017     {
26018       mbstate_t state;
26019       wchar_t wc;
26020       int ret;
26021
26022       memset (&state, '\0', sizeof (mbstate_t));
26023       wc = (wchar_t) 0xBADFACE;
26024       mbrtowc (&wc, NULL, 5, &state);
26025       /* Check that wc was not modified.  */
26026       if (wc != (wchar_t) 0xBADFACE)
26027         return 1;
26028     }
26029   return 0;
26030 }
26031 _ACEOF
26032 rm -f conftest$ac_exeext
26033 if { (ac_try="$ac_link"
26034 case "(($ac_try" in
26035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26036   *) ac_try_echo=$ac_try;;
26037 esac
26038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26039   (eval "$ac_link") 2>&5
26040   ac_status=$?
26041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26042   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26043   { (case "(($ac_try" in
26044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26045   *) ac_try_echo=$ac_try;;
26046 esac
26047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26048   (eval "$ac_try") 2>&5
26049   ac_status=$?
26050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26051   (exit $ac_status); }; }; then
26052   gl_cv_func_mbrtowc_null_arg=yes
26053 else
26054   echo "$as_me: program exited with status $ac_status" >&5
26055 echo "$as_me: failed program was:" >&5
26056 sed 's/^/| /' conftest.$ac_ext >&5
26057
26058 ( exit $ac_status )
26059 gl_cv_func_mbrtowc_null_arg=no
26060 fi
26061 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26062 fi
26063
26064
26065       fi
26066
26067 fi
26068 { echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_null_arg" >&5
26069 echo "${ECHO_T}$gl_cv_func_mbrtowc_null_arg" >&6; }
26070
26071
26072
26073
26074
26075      { echo "$as_me:$LINENO: checking whether mbrtowc has a correct return value" >&5
26076 echo $ECHO_N "checking whether mbrtowc has a correct return value... $ECHO_C" >&6; }
26077 if test "${gl_cv_func_mbrtowc_retval+set}" = set; then
26078   echo $ECHO_N "(cached) $ECHO_C" >&6
26079 else
26080
26081                   case "$host_os" in
26082                           # Guess no on HP-UX and Solaris.
26083         hpux* | solaris*) gl_cv_func_mbrtowc_retval="guessing no" ;;
26084                           # Guess yes otherwise.
26085         *)                gl_cv_func_mbrtowc_retval="guessing yes" ;;
26086       esac
26087       if test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none; then
26088         if test "$cross_compiling" = yes; then
26089   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
26090 See \`config.log' for more details." >&5
26091 echo "$as_me: error: cannot run test program while cross compiling
26092 See \`config.log' for more details." >&2;}
26093    { (exit 1); exit 1; }; }
26094 else
26095   cat >conftest.$ac_ext <<_ACEOF
26096 /* confdefs.h.  */
26097 _ACEOF
26098 cat confdefs.h >>conftest.$ac_ext
26099 cat >>conftest.$ac_ext <<_ACEOF
26100 /* end confdefs.h.  */
26101
26102 #include <locale.h>
26103 #include <string.h>
26104 #include <wchar.h>
26105 int main ()
26106 {
26107   /* This fails on Solaris.  */
26108   if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
26109     {
26110       char input[] = "B\303\274\303\237er"; /* "Büßer" */
26111       mbstate_t state;
26112       wchar_t wc;
26113
26114       memset (&state, '\0', sizeof (mbstate_t));
26115       if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
26116         {
26117           input[1] = '\0';
26118           if (mbrtowc (&wc, input + 2, 5, &state) != 1)
26119             return 1;
26120         }
26121     }
26122   /* This fails on HP-UX 11.11.  */
26123   if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
26124     {
26125       char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
26126       mbstate_t state;
26127       wchar_t wc;
26128
26129       memset (&state, '\0', sizeof (mbstate_t));
26130       if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
26131         {
26132           input[1] = '\0';
26133           if (mbrtowc (&wc, input + 2, 5, &state) != 2)
26134             return 1;
26135         }
26136     }
26137   return 0;
26138 }
26139 _ACEOF
26140 rm -f conftest$ac_exeext
26141 if { (ac_try="$ac_link"
26142 case "(($ac_try" in
26143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26144   *) ac_try_echo=$ac_try;;
26145 esac
26146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26147   (eval "$ac_link") 2>&5
26148   ac_status=$?
26149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26150   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26151   { (case "(($ac_try" in
26152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26153   *) ac_try_echo=$ac_try;;
26154 esac
26155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26156   (eval "$ac_try") 2>&5
26157   ac_status=$?
26158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26159   (exit $ac_status); }; }; then
26160   gl_cv_func_mbrtowc_retval=yes
26161 else
26162   echo "$as_me: program exited with status $ac_status" >&5
26163 echo "$as_me: failed program was:" >&5
26164 sed 's/^/| /' conftest.$ac_ext >&5
26165
26166 ( exit $ac_status )
26167 gl_cv_func_mbrtowc_retval=no
26168 fi
26169 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26170 fi
26171
26172
26173       fi
26174
26175 fi
26176 { echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_retval" >&5
26177 echo "${ECHO_T}$gl_cv_func_mbrtowc_retval" >&6; }
26178
26179
26180
26181
26182      { echo "$as_me:$LINENO: checking whether mbrtowc returns 0 when parsing a NUL character" >&5
26183 echo $ECHO_N "checking whether mbrtowc returns 0 when parsing a NUL character... $ECHO_C" >&6; }
26184 if test "${gl_cv_func_mbrtowc_nul_retval+set}" = set; then
26185   echo $ECHO_N "(cached) $ECHO_C" >&6
26186 else
26187
26188                   case "$host_os" in
26189                     # Guess no on Solaris 9.
26190         solaris2.9) gl_cv_func_mbrtowc_nul_retval="guessing no" ;;
26191                     # Guess yes otherwise.
26192         *)          gl_cv_func_mbrtowc_nul_retval="guessing yes" ;;
26193       esac
26194       if test $LOCALE_ZH_CN != none; then
26195         if test "$cross_compiling" = yes; then
26196   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
26197 See \`config.log' for more details." >&5
26198 echo "$as_me: error: cannot run test program while cross compiling
26199 See \`config.log' for more details." >&2;}
26200    { (exit 1); exit 1; }; }
26201 else
26202   cat >conftest.$ac_ext <<_ACEOF
26203 /* confdefs.h.  */
26204 _ACEOF
26205 cat confdefs.h >>conftest.$ac_ext
26206 cat >>conftest.$ac_ext <<_ACEOF
26207 /* end confdefs.h.  */
26208
26209 #include <locale.h>
26210 #include <string.h>
26211 #include <wchar.h>
26212 int main ()
26213 {
26214   /* This fails on Solaris 9.  */
26215   if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
26216     {
26217       mbstate_t state;
26218       wchar_t wc;
26219
26220       memset (&state, '\0', sizeof (mbstate_t));
26221       if (mbrtowc (&wc, "", 1, &state) != 0)
26222         return 1;
26223     }
26224   return 0;
26225 }
26226 _ACEOF
26227 rm -f conftest$ac_exeext
26228 if { (ac_try="$ac_link"
26229 case "(($ac_try" in
26230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26231   *) ac_try_echo=$ac_try;;
26232 esac
26233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26234   (eval "$ac_link") 2>&5
26235   ac_status=$?
26236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26237   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26238   { (case "(($ac_try" in
26239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26240   *) ac_try_echo=$ac_try;;
26241 esac
26242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26243   (eval "$ac_try") 2>&5
26244   ac_status=$?
26245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26246   (exit $ac_status); }; }; then
26247   gl_cv_func_mbrtowc_nul_retval=yes
26248 else
26249   echo "$as_me: program exited with status $ac_status" >&5
26250 echo "$as_me: failed program was:" >&5
26251 sed 's/^/| /' conftest.$ac_ext >&5
26252
26253 ( exit $ac_status )
26254 gl_cv_func_mbrtowc_nul_retval=no
26255 fi
26256 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26257 fi
26258
26259
26260       fi
26261
26262 fi
26263 { echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_nul_retval" >&5
26264 echo "${ECHO_T}$gl_cv_func_mbrtowc_nul_retval" >&6; }
26265
26266     case "$gl_cv_func_mbrtowc_null_arg" in
26267       *yes) ;;
26268       *)
26269 cat >>confdefs.h <<\_ACEOF
26270 #define MBRTOWC_NULL_ARG_BUG 1
26271 _ACEOF
26272
26273          REPLACE_MBRTOWC=1
26274          ;;
26275     esac
26276     case "$gl_cv_func_mbrtowc_retval" in
26277       *yes) ;;
26278       *)
26279 cat >>confdefs.h <<\_ACEOF
26280 #define MBRTOWC_RETVAL_BUG 1
26281 _ACEOF
26282
26283          REPLACE_MBRTOWC=1
26284          ;;
26285     esac
26286     case "$gl_cv_func_mbrtowc_nul_retval" in
26287       *yes) ;;
26288       *)
26289 cat >>confdefs.h <<\_ACEOF
26290 #define MBRTOWC_NUL_RETVAL_BUG 1
26291 _ACEOF
26292
26293          REPLACE_MBRTOWC=1
26294          ;;
26295     esac
26296   fi
26297   if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then
26298
26299
26300   WCHAR_H=wchar.h
26301
26302
26303
26304
26305
26306
26307
26308
26309
26310   gl_LIBOBJS="$gl_LIBOBJS mbrtowc.$ac_objext"
26311
26312
26313   :
26314
26315   fi
26316
26317
26318
26319   GNULIB_MBRTOWC=1
26320
26321
26322
26323
26324   :
26325
26326
26327
26328
26329   GNULIB_MBSCASECMP=1
26330
26331
26332
26333
26334
26335
26336
26337
26338
26339
26340
26341
26342
26343
26344
26345
26346
26347
26348
26349
26350
26351   if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
26352
26353
26354
26355      { echo "$as_me:$LINENO: checking whether mbrtowc handles incomplete characters" >&5
26356 echo $ECHO_N "checking whether mbrtowc handles incomplete characters... $ECHO_C" >&6; }
26357 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then
26358   echo $ECHO_N "(cached) $ECHO_C" >&6
26359 else
26360
26361                   case "$host_os" in
26362               # Guess no on AIX and OSF/1.
26363         osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
26364               # Guess yes otherwise.
26365         *)    gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
26366       esac
26367       if test $LOCALE_JA != none; then
26368         if test "$cross_compiling" = yes; then
26369   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
26370 See \`config.log' for more details." >&5
26371 echo "$as_me: error: cannot run test program while cross compiling
26372 See \`config.log' for more details." >&2;}
26373    { (exit 1); exit 1; }; }
26374 else
26375   cat >conftest.$ac_ext <<_ACEOF
26376 /* confdefs.h.  */
26377 _ACEOF
26378 cat confdefs.h >>conftest.$ac_ext
26379 cat >>conftest.$ac_ext <<_ACEOF
26380 /* end confdefs.h.  */
26381
26382 #include <locale.h>
26383 #include <string.h>
26384 #include <wchar.h>
26385 int main ()
26386 {
26387   if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
26388     {
26389       const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
26390       mbstate_t state;
26391       wchar_t wc;
26392
26393       memset (&state, '\0', sizeof (mbstate_t));
26394       if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
26395         if (mbsinit (&state))
26396           return 1;
26397     }
26398   return 0;
26399 }
26400 _ACEOF
26401 rm -f conftest$ac_exeext
26402 if { (ac_try="$ac_link"
26403 case "(($ac_try" in
26404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26405   *) ac_try_echo=$ac_try;;
26406 esac
26407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26408   (eval "$ac_link") 2>&5
26409   ac_status=$?
26410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26411   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26412   { (case "(($ac_try" in
26413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26414   *) ac_try_echo=$ac_try;;
26415 esac
26416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26417   (eval "$ac_try") 2>&5
26418   ac_status=$?
26419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26420   (exit $ac_status); }; }; then
26421   gl_cv_func_mbrtowc_incomplete_state=yes
26422 else
26423   echo "$as_me: program exited with status $ac_status" >&5
26424 echo "$as_me: failed program was:" >&5
26425 sed 's/^/| /' conftest.$ac_ext >&5
26426
26427 ( exit $ac_status )
26428 gl_cv_func_mbrtowc_incomplete_state=no
26429 fi
26430 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26431 fi
26432
26433
26434       fi
26435
26436 fi
26437 { echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
26438 echo "${ECHO_T}$gl_cv_func_mbrtowc_incomplete_state" >&6; }
26439
26440     case "$gl_cv_func_mbrtowc_incomplete_state" in
26441       *yes) REPLACE_MBSTATE_T=0 ;;
26442       *)    REPLACE_MBSTATE_T=1 ;;
26443     esac
26444   else
26445     REPLACE_MBSTATE_T=1
26446   fi
26447   if test $REPLACE_MBSTATE_T = 1; then
26448
26449
26450   WCHAR_H=wchar.h
26451
26452   fi
26453
26454   if test $REPLACE_MBSTATE_T = 1; then
26455     REPLACE_MBSINIT=1
26456   fi
26457
26458
26459
26460
26461
26462
26463   if test $ac_cv_func_mbsinit = no; then
26464     HAVE_MBSINIT=0
26465   fi
26466   if test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1; then
26467
26468
26469   WCHAR_H=wchar.h
26470
26471
26472
26473
26474
26475
26476
26477
26478
26479   gl_LIBOBJS="$gl_LIBOBJS mbsinit.$ac_objext"
26480
26481
26482   :
26483
26484   fi
26485
26486
26487
26488   GNULIB_MBSINIT=1
26489
26490
26491
26492
26493   :
26494
26495
26496
26497
26498
26499
26500
26501
26502
26503
26504
26505
26506
26507
26508
26509
26510 for ac_func in mempcpy
26511 do
26512 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26513 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26514 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26515 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26516   echo $ECHO_N "(cached) $ECHO_C" >&6
26517 else
26518   cat >conftest.$ac_ext <<_ACEOF
26519 /* confdefs.h.  */
26520 _ACEOF
26521 cat confdefs.h >>conftest.$ac_ext
26522 cat >>conftest.$ac_ext <<_ACEOF
26523 /* end confdefs.h.  */
26524 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26525    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26526 #define $ac_func innocuous_$ac_func
26527
26528 /* System header to define __stub macros and hopefully few prototypes,
26529     which can conflict with char $ac_func (); below.
26530     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26531     <limits.h> exists even on freestanding compilers.  */
26532
26533 #ifdef __STDC__
26534 # include <limits.h>
26535 #else
26536 # include <assert.h>
26537 #endif
26538
26539 #undef $ac_func
26540
26541 /* Override any GCC internal prototype to avoid an error.
26542    Use char because int might match the return type of a GCC
26543    builtin and then its argument prototype would still apply.  */
26544 #ifdef __cplusplus
26545 extern "C"
26546 #endif
26547 char $ac_func ();
26548 /* The GNU C library defines this for functions which it implements
26549     to always fail with ENOSYS.  Some functions are actually named
26550     something starting with __ and the normal name is an alias.  */
26551 #if defined __stub_$ac_func || defined __stub___$ac_func
26552 choke me
26553 #endif
26554
26555 int
26556 main ()
26557 {
26558 return $ac_func ();
26559   ;
26560   return 0;
26561 }
26562 _ACEOF
26563 rm -f conftest.$ac_objext conftest$ac_exeext
26564 if { (ac_try="$ac_link"
26565 case "(($ac_try" in
26566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26567   *) ac_try_echo=$ac_try;;
26568 esac
26569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26570   (eval "$ac_link") 2>conftest.er1
26571   ac_status=$?
26572   grep -v '^ *+' conftest.er1 >conftest.err
26573   rm -f conftest.er1
26574   cat conftest.err >&5
26575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26576   (exit $ac_status); } && {
26577          test -z "$ac_c_werror_flag" ||
26578          test ! -s conftest.err
26579        } && test -s conftest$ac_exeext &&
26580        $as_test_x conftest$ac_exeext; then
26581   eval "$as_ac_var=yes"
26582 else
26583   echo "$as_me: failed program was:" >&5
26584 sed 's/^/| /' conftest.$ac_ext >&5
26585
26586         eval "$as_ac_var=no"
26587 fi
26588
26589 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26590       conftest$ac_exeext conftest.$ac_ext
26591 fi
26592 ac_res=`eval echo '${'$as_ac_var'}'`
26593                { echo "$as_me:$LINENO: result: $ac_res" >&5
26594 echo "${ECHO_T}$ac_res" >&6; }
26595 if test `eval echo '${'$as_ac_var'}'` = yes; then
26596   cat >>confdefs.h <<_ACEOF
26597 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26598 _ACEOF
26599
26600 else
26601
26602     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
26603
26604 fi
26605 done
26606
26607
26608   if test $ac_cv_func_mempcpy = no; then
26609     HAVE_MEMPCPY=0
26610
26611   :
26612
26613   fi
26614
26615
26616
26617   GNULIB_MEMPCPY=1
26618
26619
26620
26621
26622
26623
26624
26625
26626
26627   if test $ac_cv_have_decl_memrchr = no; then
26628     HAVE_DECL_MEMRCHR=0
26629   fi
26630
26631
26632
26633
26634
26635
26636
26637
26638
26639
26640 for ac_func in memrchr
26641 do
26642 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26643 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26644 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26645 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26646   echo $ECHO_N "(cached) $ECHO_C" >&6
26647 else
26648   cat >conftest.$ac_ext <<_ACEOF
26649 /* confdefs.h.  */
26650 _ACEOF
26651 cat confdefs.h >>conftest.$ac_ext
26652 cat >>conftest.$ac_ext <<_ACEOF
26653 /* end confdefs.h.  */
26654 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26655    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26656 #define $ac_func innocuous_$ac_func
26657
26658 /* System header to define __stub macros and hopefully few prototypes,
26659     which can conflict with char $ac_func (); below.
26660     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26661     <limits.h> exists even on freestanding compilers.  */
26662
26663 #ifdef __STDC__
26664 # include <limits.h>
26665 #else
26666 # include <assert.h>
26667 #endif
26668
26669 #undef $ac_func
26670
26671 /* Override any GCC internal prototype to avoid an error.
26672    Use char because int might match the return type of a GCC
26673    builtin and then its argument prototype would still apply.  */
26674 #ifdef __cplusplus
26675 extern "C"
26676 #endif
26677 char $ac_func ();
26678 /* The GNU C library defines this for functions which it implements
26679     to always fail with ENOSYS.  Some functions are actually named
26680     something starting with __ and the normal name is an alias.  */
26681 #if defined __stub_$ac_func || defined __stub___$ac_func
26682 choke me
26683 #endif
26684
26685 int
26686 main ()
26687 {
26688 return $ac_func ();
26689   ;
26690   return 0;
26691 }
26692 _ACEOF
26693 rm -f conftest.$ac_objext conftest$ac_exeext
26694 if { (ac_try="$ac_link"
26695 case "(($ac_try" in
26696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26697   *) ac_try_echo=$ac_try;;
26698 esac
26699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26700   (eval "$ac_link") 2>conftest.er1
26701   ac_status=$?
26702   grep -v '^ *+' conftest.er1 >conftest.err
26703   rm -f conftest.er1
26704   cat conftest.err >&5
26705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26706   (exit $ac_status); } && {
26707          test -z "$ac_c_werror_flag" ||
26708          test ! -s conftest.err
26709        } && test -s conftest$ac_exeext &&
26710        $as_test_x conftest$ac_exeext; then
26711   eval "$as_ac_var=yes"
26712 else
26713   echo "$as_me: failed program was:" >&5
26714 sed 's/^/| /' conftest.$ac_ext >&5
26715
26716         eval "$as_ac_var=no"
26717 fi
26718
26719 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26720       conftest$ac_exeext conftest.$ac_ext
26721 fi
26722 ac_res=`eval echo '${'$as_ac_var'}'`
26723                { echo "$as_me:$LINENO: result: $ac_res" >&5
26724 echo "${ECHO_T}$ac_res" >&6; }
26725 if test `eval echo '${'$as_ac_var'}'` = yes; then
26726   cat >>confdefs.h <<_ACEOF
26727 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26728 _ACEOF
26729
26730 else
26731
26732     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
26733
26734 fi
26735 done
26736
26737
26738   if test $ac_cv_func_memrchr = no; then
26739     :
26740   fi
26741
26742
26743
26744   GNULIB_MEMRCHR=1
26745
26746
26747
26748
26749
26750
26751
26752
26753
26754
26755
26756
26757 for ac_func in mkdtemp
26758 do
26759 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26760 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26761 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26762 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26763   echo $ECHO_N "(cached) $ECHO_C" >&6
26764 else
26765   cat >conftest.$ac_ext <<_ACEOF
26766 /* confdefs.h.  */
26767 _ACEOF
26768 cat confdefs.h >>conftest.$ac_ext
26769 cat >>conftest.$ac_ext <<_ACEOF
26770 /* end confdefs.h.  */
26771 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26772    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26773 #define $ac_func innocuous_$ac_func
26774
26775 /* System header to define __stub macros and hopefully few prototypes,
26776     which can conflict with char $ac_func (); below.
26777     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26778     <limits.h> exists even on freestanding compilers.  */
26779
26780 #ifdef __STDC__
26781 # include <limits.h>
26782 #else
26783 # include <assert.h>
26784 #endif
26785
26786 #undef $ac_func
26787
26788 /* Override any GCC internal prototype to avoid an error.
26789    Use char because int might match the return type of a GCC
26790    builtin and then its argument prototype would still apply.  */
26791 #ifdef __cplusplus
26792 extern "C"
26793 #endif
26794 char $ac_func ();
26795 /* The GNU C library defines this for functions which it implements
26796     to always fail with ENOSYS.  Some functions are actually named
26797     something starting with __ and the normal name is an alias.  */
26798 #if defined __stub_$ac_func || defined __stub___$ac_func
26799 choke me
26800 #endif
26801
26802 int
26803 main ()
26804 {
26805 return $ac_func ();
26806   ;
26807   return 0;
26808 }
26809 _ACEOF
26810 rm -f conftest.$ac_objext conftest$ac_exeext
26811 if { (ac_try="$ac_link"
26812 case "(($ac_try" in
26813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26814   *) ac_try_echo=$ac_try;;
26815 esac
26816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26817   (eval "$ac_link") 2>conftest.er1
26818   ac_status=$?
26819   grep -v '^ *+' conftest.er1 >conftest.err
26820   rm -f conftest.er1
26821   cat conftest.err >&5
26822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26823   (exit $ac_status); } && {
26824          test -z "$ac_c_werror_flag" ||
26825          test ! -s conftest.err
26826        } && test -s conftest$ac_exeext &&
26827        $as_test_x conftest$ac_exeext; then
26828   eval "$as_ac_var=yes"
26829 else
26830   echo "$as_me: failed program was:" >&5
26831 sed 's/^/| /' conftest.$ac_ext >&5
26832
26833         eval "$as_ac_var=no"
26834 fi
26835
26836 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26837       conftest$ac_exeext conftest.$ac_ext
26838 fi
26839 ac_res=`eval echo '${'$as_ac_var'}'`
26840                { echo "$as_me:$LINENO: result: $ac_res" >&5
26841 echo "${ECHO_T}$ac_res" >&6; }
26842 if test `eval echo '${'$as_ac_var'}'` = yes; then
26843   cat >>confdefs.h <<_ACEOF
26844 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26845 _ACEOF
26846
26847 else
26848
26849     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
26850
26851 fi
26852 done
26853
26854
26855   if test $ac_cv_func_mkdtemp = no; then
26856     HAVE_MKDTEMP=0
26857     :
26858
26859   fi
26860
26861
26862
26863   GNULIB_MKDTEMP=1
26864
26865
26866
26867
26868
26869
26870
26871
26872
26873
26874
26875
26876
26877
26878
26879 if test $APPLE_UNIVERSAL_BUILD = 1; then
26880   # A universal build on Apple MacOS X platforms.
26881   # The test result would be 'yes' in 32-bit mode and 'no' in 64-bit mode.
26882   # But we need a configuration result that is valid in both modes.
26883   ac_cv_func_working_mktime=no
26884 fi
26885 { echo "$as_me:$LINENO: checking for working mktime" >&5
26886 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6; }
26887 if test "${ac_cv_func_working_mktime+set}" = set; then
26888   echo $ECHO_N "(cached) $ECHO_C" >&6
26889 else
26890   if test "$cross_compiling" = yes; then
26891   ac_cv_func_working_mktime=no
26892 else
26893   cat >conftest.$ac_ext <<_ACEOF
26894 /* confdefs.h.  */
26895 _ACEOF
26896 cat confdefs.h >>conftest.$ac_ext
26897 cat >>conftest.$ac_ext <<_ACEOF
26898 /* end confdefs.h.  */
26899 /* Test program from Paul Eggert and Tony Leneis.  */
26900 #include <limits.h>
26901 #include <stdlib.h>
26902 #include <time.h>
26903
26904 #ifdef HAVE_UNISTD_H
26905 # include <unistd.h>
26906 #endif
26907
26908 #ifndef HAVE_ALARM
26909 # define alarm(X) /* empty */
26910 #endif
26911
26912 /* Work around redefinition to rpl_putenv by other config tests.  */
26913 #undef putenv
26914
26915 static time_t time_t_max;
26916 static time_t time_t_min;
26917
26918 /* Values we'll use to set the TZ environment variable.  */
26919 static char *tz_strings[] = {
26920   (char *) 0, "TZ=GMT0", "TZ=JST-9",
26921   "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
26922 };
26923 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
26924
26925 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
26926    Based on a problem report from Andreas Jaeger.  */
26927 static int
26928 spring_forward_gap ()
26929 {
26930   /* glibc (up to about 1998-10-07) failed this test. */
26931   struct tm tm;
26932
26933   /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
26934      instead of "TZ=America/Vancouver" in order to detect the bug even
26935      on systems that don't support the Olson extension, or don't have the
26936      full zoneinfo tables installed.  */
26937   putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
26938
26939   tm.tm_year = 98;
26940   tm.tm_mon = 3;
26941   tm.tm_mday = 5;
26942   tm.tm_hour = 2;
26943   tm.tm_min = 0;
26944   tm.tm_sec = 0;
26945   tm.tm_isdst = -1;
26946   return mktime (&tm) != (time_t) -1;
26947 }
26948
26949 static int
26950 mktime_test1 (time_t now)
26951 {
26952   struct tm *lt;
26953   return ! (lt = localtime (&now)) || mktime (lt) == now;
26954 }
26955
26956 static int
26957 mktime_test (time_t now)
26958 {
26959   return (mktime_test1 (now)
26960           && mktime_test1 ((time_t) (time_t_max - now))
26961           && mktime_test1 ((time_t) (time_t_min + now)));
26962 }
26963
26964 static int
26965 irix_6_4_bug ()
26966 {
26967   /* Based on code from Ariel Faigon.  */
26968   struct tm tm;
26969   tm.tm_year = 96;
26970   tm.tm_mon = 3;
26971   tm.tm_mday = 0;
26972   tm.tm_hour = 0;
26973   tm.tm_min = 0;
26974   tm.tm_sec = 0;
26975   tm.tm_isdst = -1;
26976   mktime (&tm);
26977   return tm.tm_mon == 2 && tm.tm_mday == 31;
26978 }
26979
26980 static int
26981 bigtime_test (int j)
26982 {
26983   struct tm tm;
26984   time_t now;
26985   tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
26986   now = mktime (&tm);
26987   if (now != (time_t) -1)
26988     {
26989       struct tm *lt = localtime (&now);
26990       if (! (lt
26991              && lt->tm_year == tm.tm_year
26992              && lt->tm_mon == tm.tm_mon
26993              && lt->tm_mday == tm.tm_mday
26994              && lt->tm_hour == tm.tm_hour
26995              && lt->tm_min == tm.tm_min
26996              && lt->tm_sec == tm.tm_sec
26997              && lt->tm_yday == tm.tm_yday
26998              && lt->tm_wday == tm.tm_wday
26999              && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
27000                   == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
27001         return 0;
27002     }
27003   return 1;
27004 }
27005
27006 static int
27007 year_2050_test ()
27008 {
27009   /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
27010      ignoring leap seconds.  */
27011   unsigned long int answer = 2527315200UL;
27012
27013   struct tm tm;
27014   time_t t;
27015   tm.tm_year = 2050 - 1900;
27016   tm.tm_mon = 2 - 1;
27017   tm.tm_mday = 1;
27018   tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
27019   tm.tm_isdst = -1;
27020
27021   /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
27022      instead of "TZ=America/Vancouver" in order to detect the bug even
27023      on systems that don't support the Olson extension, or don't have the
27024      full zoneinfo tables installed.  */
27025   putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
27026
27027   t = mktime (&tm);
27028
27029   /* Check that the result is either a failure, or close enough
27030      to the correct answer that we can assume the discrepancy is
27031      due to leap seconds.  */
27032   return (t == (time_t) -1
27033           || (0 < t && answer - 120 <= t && t <= answer + 120));
27034 }
27035
27036 int
27037 main ()
27038 {
27039   time_t t, delta;
27040   int i, j;
27041
27042   /* This test makes some buggy mktime implementations loop.
27043      Give up after 60 seconds; a mktime slower than that
27044      isn't worth using anyway.  */
27045   alarm (60);
27046
27047   for (;;)
27048     {
27049       t = (time_t_max << 1) + 1;
27050       if (t <= time_t_max)
27051         break;
27052       time_t_max = t;
27053     }
27054   time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
27055
27056   delta = time_t_max / 997; /* a suitable prime number */
27057   for (i = 0; i < N_STRINGS; i++)
27058     {
27059       if (tz_strings[i])
27060         putenv (tz_strings[i]);
27061
27062       for (t = 0; t <= time_t_max - delta; t += delta)
27063         if (! mktime_test (t))
27064           return 1;
27065       if (! (mktime_test ((time_t) 1)
27066              && mktime_test ((time_t) (60 * 60))
27067              && mktime_test ((time_t) (60 * 60 * 24))))
27068         return 1;
27069
27070       for (j = 1; ; j <<= 1)
27071         if (! bigtime_test (j))
27072           return 1;
27073         else if (INT_MAX / 2 < j)
27074           break;
27075       if (! bigtime_test (INT_MAX))
27076         return 1;
27077     }
27078   return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
27079 }
27080 _ACEOF
27081 rm -f conftest$ac_exeext
27082 if { (ac_try="$ac_link"
27083 case "(($ac_try" in
27084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27085   *) ac_try_echo=$ac_try;;
27086 esac
27087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27088   (eval "$ac_link") 2>&5
27089   ac_status=$?
27090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27091   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27092   { (case "(($ac_try" in
27093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27094   *) ac_try_echo=$ac_try;;
27095 esac
27096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27097   (eval "$ac_try") 2>&5
27098   ac_status=$?
27099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27100   (exit $ac_status); }; }; then
27101   ac_cv_func_working_mktime=yes
27102 else
27103   echo "$as_me: program exited with status $ac_status" >&5
27104 echo "$as_me: failed program was:" >&5
27105 sed 's/^/| /' conftest.$ac_ext >&5
27106
27107 ( exit $ac_status )
27108 ac_cv_func_working_mktime=no
27109 fi
27110 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27111 fi
27112
27113
27114 fi
27115 { echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
27116 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
27117 if test $ac_cv_func_working_mktime = no; then
27118
27119
27120
27121
27122
27123
27124
27125
27126   gl_LIBOBJS="$gl_LIBOBJS mktime.$ac_objext"
27127
27128 fi
27129
27130     if test $ac_cv_func_working_mktime = no; then
27131
27132 cat >>confdefs.h <<\_ACEOF
27133 #define mktime rpl_mktime
27134 _ACEOF
27135
27136
27137
27138
27139   fi
27140
27141
27142
27143
27144
27145
27146
27147
27148
27149
27150   gl_LIBOBJS="$gl_LIBOBJS modechange.$ac_objext"
27151
27152
27153
27154
27155
27156
27157
27158
27159
27160
27161
27162
27163
27164
27165
27166 { echo "$as_me:$LINENO: checking for obstacks" >&5
27167 echo $ECHO_N "checking for obstacks... $ECHO_C" >&6; }
27168 if test "${ac_cv_func_obstack+set}" = set; then
27169   echo $ECHO_N "(cached) $ECHO_C" >&6
27170 else
27171   cat >conftest.$ac_ext <<_ACEOF
27172 /* confdefs.h.  */
27173 _ACEOF
27174 cat confdefs.h >>conftest.$ac_ext
27175 cat >>conftest.$ac_ext <<_ACEOF
27176 /* end confdefs.h.  */
27177 $ac_includes_default
27178                       #include "obstack.h"
27179 int
27180 main ()
27181 {
27182 struct obstack mem;
27183                        #define obstack_chunk_alloc malloc
27184                        #define obstack_chunk_free free
27185                        obstack_init (&mem);
27186                        obstack_free (&mem, 0);
27187   ;
27188   return 0;
27189 }
27190 _ACEOF
27191 rm -f conftest.$ac_objext conftest$ac_exeext
27192 if { (ac_try="$ac_link"
27193 case "(($ac_try" in
27194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27195   *) ac_try_echo=$ac_try;;
27196 esac
27197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27198   (eval "$ac_link") 2>conftest.er1
27199   ac_status=$?
27200   grep -v '^ *+' conftest.er1 >conftest.err
27201   rm -f conftest.er1
27202   cat conftest.err >&5
27203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27204   (exit $ac_status); } && {
27205          test -z "$ac_c_werror_flag" ||
27206          test ! -s conftest.err
27207        } && test -s conftest$ac_exeext &&
27208        $as_test_x conftest$ac_exeext; then
27209   ac_cv_func_obstack=yes
27210 else
27211   echo "$as_me: failed program was:" >&5
27212 sed 's/^/| /' conftest.$ac_ext >&5
27213
27214         ac_cv_func_obstack=no
27215 fi
27216
27217 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27218       conftest$ac_exeext conftest.$ac_ext
27219 fi
27220 { echo "$as_me:$LINENO: result: $ac_cv_func_obstack" >&5
27221 echo "${ECHO_T}$ac_cv_func_obstack" >&6; }
27222 if test $ac_cv_func_obstack = yes; then
27223
27224 cat >>confdefs.h <<\_ACEOF
27225 #define HAVE_OBSTACK 1
27226 _ACEOF
27227
27228 else
27229
27230
27231
27232
27233
27234
27235
27236
27237   gl_LIBOBJS="$gl_LIBOBJS obstack.$ac_objext"
27238
27239 fi
27240
27241
27242
27243   case "$host_os" in
27244     mingw* | pw*)
27245
27246
27247   if test $REPLACE_OPEN != 1; then
27248
27249
27250
27251
27252
27253
27254
27255
27256   gl_LIBOBJS="$gl_LIBOBJS open.$ac_objext"
27257
27258
27259
27260   :
27261
27262   fi
27263   REPLACE_OPEN=1
27264
27265       ;;
27266     *)
27267                   { echo "$as_me:$LINENO: checking whether open recognizes a trailing slash" >&5
27268 echo $ECHO_N "checking whether open recognizes a trailing slash... $ECHO_C" >&6; }
27269 if test "${gl_cv_func_open_slash+set}" = set; then
27270   echo $ECHO_N "(cached) $ECHO_C" >&6
27271 else
27272
27273           if test "$cross_compiling" = yes; then
27274
27275              case "$host_os" in
27276                solaris2.[0-9]*) gl_cv_func_open_slash="guessing no" ;;
27277                hpux*)           gl_cv_func_open_slash="guessing no" ;;
27278                *)               gl_cv_func_open_slash="guessing yes" ;;
27279              esac
27280
27281 else
27282   cat >conftest.$ac_ext <<_ACEOF
27283 /* confdefs.h.  */
27284 _ACEOF
27285 cat confdefs.h >>conftest.$ac_ext
27286 cat >>conftest.$ac_ext <<_ACEOF
27287 /* end confdefs.h.  */
27288
27289 #include <fcntl.h>
27290 #if HAVE_UNISTD_H
27291 # include <unistd.h>
27292 #endif
27293 int main ()
27294 {
27295   return open ("conftest.sl/", O_CREAT, 0600) >= 0;
27296 }
27297 _ACEOF
27298 rm -f conftest$ac_exeext
27299 if { (ac_try="$ac_link"
27300 case "(($ac_try" in
27301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27302   *) ac_try_echo=$ac_try;;
27303 esac
27304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27305   (eval "$ac_link") 2>&5
27306   ac_status=$?
27307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27308   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27309   { (case "(($ac_try" in
27310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27311   *) ac_try_echo=$ac_try;;
27312 esac
27313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27314   (eval "$ac_try") 2>&5
27315   ac_status=$?
27316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27317   (exit $ac_status); }; }; then
27318   gl_cv_func_open_slash=yes
27319 else
27320   echo "$as_me: program exited with status $ac_status" >&5
27321 echo "$as_me: failed program was:" >&5
27322 sed 's/^/| /' conftest.$ac_ext >&5
27323
27324 ( exit $ac_status )
27325 gl_cv_func_open_slash=no
27326 fi
27327 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27328 fi
27329
27330
27331           rm -f conftest.sl
27332
27333 fi
27334 { echo "$as_me:$LINENO: result: $gl_cv_func_open_slash" >&5
27335 echo "${ECHO_T}$gl_cv_func_open_slash" >&6; }
27336       case "$gl_cv_func_open_slash" in
27337         *no)
27338
27339 cat >>confdefs.h <<\_ACEOF
27340 #define OPEN_TRAILING_SLASH_BUG 1
27341 _ACEOF
27342
27343
27344
27345   if test $REPLACE_OPEN != 1; then
27346
27347
27348
27349
27350
27351
27352
27353
27354   gl_LIBOBJS="$gl_LIBOBJS open.$ac_objext"
27355
27356
27357
27358   :
27359
27360   fi
27361   REPLACE_OPEN=1
27362
27363           ;;
27364       esac
27365       ;;
27366   esac
27367
27368
27369
27370 cat >>confdefs.h <<\_ACEOF
27371 #define GNULIB_OPEN 1
27372 _ACEOF
27373
27374
27375
27376
27377   GNULIB_OPEN=1
27378
27379
27380
27381
27382
27383
27384
27385
27386
27387
27388   gl_LIBOBJS="$gl_LIBOBJS openat-proc.$ac_objext"
27389
27390
27391
27392
27393
27394
27395
27396
27397
27398
27399
27400
27401
27402
27403
27404
27405
27406
27407
27408
27409
27410
27411
27412
27413
27414
27415
27416
27417
27418
27419
27420
27421
27422
27423
27424
27425
27426
27427
27428 for ac_func in fchmodat mkdirat openat
27429 do
27430 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27431 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27432 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27433 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27434   echo $ECHO_N "(cached) $ECHO_C" >&6
27435 else
27436   cat >conftest.$ac_ext <<_ACEOF
27437 /* confdefs.h.  */
27438 _ACEOF
27439 cat confdefs.h >>conftest.$ac_ext
27440 cat >>conftest.$ac_ext <<_ACEOF
27441 /* end confdefs.h.  */
27442 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27443    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27444 #define $ac_func innocuous_$ac_func
27445
27446 /* System header to define __stub macros and hopefully few prototypes,
27447     which can conflict with char $ac_func (); below.
27448     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27449     <limits.h> exists even on freestanding compilers.  */
27450
27451 #ifdef __STDC__
27452 # include <limits.h>
27453 #else
27454 # include <assert.h>
27455 #endif
27456
27457 #undef $ac_func
27458
27459 /* Override any GCC internal prototype to avoid an error.
27460    Use char because int might match the return type of a GCC
27461    builtin and then its argument prototype would still apply.  */
27462 #ifdef __cplusplus
27463 extern "C"
27464 #endif
27465 char $ac_func ();
27466 /* The GNU C library defines this for functions which it implements
27467     to always fail with ENOSYS.  Some functions are actually named
27468     something starting with __ and the normal name is an alias.  */
27469 #if defined __stub_$ac_func || defined __stub___$ac_func
27470 choke me
27471 #endif
27472
27473 int
27474 main ()
27475 {
27476 return $ac_func ();
27477   ;
27478   return 0;
27479 }
27480 _ACEOF
27481 rm -f conftest.$ac_objext conftest$ac_exeext
27482 if { (ac_try="$ac_link"
27483 case "(($ac_try" in
27484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27485   *) ac_try_echo=$ac_try;;
27486 esac
27487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27488   (eval "$ac_link") 2>conftest.er1
27489   ac_status=$?
27490   grep -v '^ *+' conftest.er1 >conftest.err
27491   rm -f conftest.er1
27492   cat conftest.err >&5
27493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27494   (exit $ac_status); } && {
27495          test -z "$ac_c_werror_flag" ||
27496          test ! -s conftest.err
27497        } && test -s conftest$ac_exeext &&
27498        $as_test_x conftest$ac_exeext; then
27499   eval "$as_ac_var=yes"
27500 else
27501   echo "$as_me: failed program was:" >&5
27502 sed 's/^/| /' conftest.$ac_ext >&5
27503
27504         eval "$as_ac_var=no"
27505 fi
27506
27507 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27508       conftest$ac_exeext conftest.$ac_ext
27509 fi
27510 ac_res=`eval echo '${'$as_ac_var'}'`
27511                { echo "$as_me:$LINENO: result: $ac_res" >&5
27512 echo "${ECHO_T}$ac_res" >&6; }
27513 if test `eval echo '${'$as_ac_var'}'` = yes; then
27514   cat >>confdefs.h <<_ACEOF
27515 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27516 _ACEOF
27517
27518 else
27519
27520     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
27521
27522 fi
27523 done
27524
27525
27526
27527   case $ac_cv_func_openat+$ac_cv_func_lstat_dereferences_slashed_symlink in
27528   yes+yes) ;;
27529   yes+*)
27530
27531
27532
27533
27534
27535
27536
27537   gl_LIBOBJS="$gl_LIBOBJS fstatat.$ac_objext"
27538 ;;
27539   *)
27540
27541 cat >>confdefs.h <<\_ACEOF
27542 #define __OPENAT_PREFIX rpl_
27543 _ACEOF
27544
27545
27546   :
27547 ;;
27548   esac
27549
27550   # Assume we'll use the replacement function.
27551   # The only case in which we won't is when we have fchownat, and it works.
27552   use_replacement_fchownat=yes
27553
27554   { echo "$as_me:$LINENO: checking for fchownat" >&5
27555 echo $ECHO_N "checking for fchownat... $ECHO_C" >&6; }
27556 if test "${ac_cv_func_fchownat+set}" = set; then
27557   echo $ECHO_N "(cached) $ECHO_C" >&6
27558 else
27559   cat >conftest.$ac_ext <<_ACEOF
27560 /* confdefs.h.  */
27561 _ACEOF
27562 cat confdefs.h >>conftest.$ac_ext
27563 cat >>conftest.$ac_ext <<_ACEOF
27564 /* end confdefs.h.  */
27565 /* Define fchownat to an innocuous variant, in case <limits.h> declares fchownat.
27566    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27567 #define fchownat innocuous_fchownat
27568
27569 /* System header to define __stub macros and hopefully few prototypes,
27570     which can conflict with char fchownat (); below.
27571     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27572     <limits.h> exists even on freestanding compilers.  */
27573
27574 #ifdef __STDC__
27575 # include <limits.h>
27576 #else
27577 # include <assert.h>
27578 #endif
27579
27580 #undef fchownat
27581
27582 /* Override any GCC internal prototype to avoid an error.
27583    Use char because int might match the return type of a GCC
27584    builtin and then its argument prototype would still apply.  */
27585 #ifdef __cplusplus
27586 extern "C"
27587 #endif
27588 char fchownat ();
27589 /* The GNU C library defines this for functions which it implements
27590     to always fail with ENOSYS.  Some functions are actually named
27591     something starting with __ and the normal name is an alias.  */
27592 #if defined __stub_fchownat || defined __stub___fchownat
27593 choke me
27594 #endif
27595
27596 int
27597 main ()
27598 {
27599 return fchownat ();
27600   ;
27601   return 0;
27602 }
27603 _ACEOF
27604 rm -f conftest.$ac_objext conftest$ac_exeext
27605 if { (ac_try="$ac_link"
27606 case "(($ac_try" in
27607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27608   *) ac_try_echo=$ac_try;;
27609 esac
27610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27611   (eval "$ac_link") 2>conftest.er1
27612   ac_status=$?
27613   grep -v '^ *+' conftest.er1 >conftest.err
27614   rm -f conftest.er1
27615   cat conftest.err >&5
27616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27617   (exit $ac_status); } && {
27618          test -z "$ac_c_werror_flag" ||
27619          test ! -s conftest.err
27620        } && test -s conftest$ac_exeext &&
27621        $as_test_x conftest$ac_exeext; then
27622   ac_cv_func_fchownat=yes
27623 else
27624   echo "$as_me: failed program was:" >&5
27625 sed 's/^/| /' conftest.$ac_ext >&5
27626
27627         ac_cv_func_fchownat=no
27628 fi
27629
27630 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27631       conftest$ac_exeext conftest.$ac_ext
27632 fi
27633 { echo "$as_me:$LINENO: result: $ac_cv_func_fchownat" >&5
27634 echo "${ECHO_T}$ac_cv_func_fchownat" >&6; }
27635 if test $ac_cv_func_fchownat = yes; then
27636   have_fchownat=yes
27637 else
27638   have_fchownat=no
27639 fi
27640
27641   if test $have_fchownat = yes; then
27642
27643   { echo "$as_me:$LINENO: checking whether fchownat works with AT_SYMLINK_NOFOLLOW" >&5
27644 echo $ECHO_N "checking whether fchownat works with AT_SYMLINK_NOFOLLOW... $ECHO_C" >&6; }
27645 if test "${gl_cv_func_fchownat_nofollow_works+set}" = set; then
27646   echo $ECHO_N "(cached) $ECHO_C" >&6
27647 else
27648
27649      gl_dangle=conftest.dangle
27650      # Remove any remnants of a previous test.
27651      rm -f $gl_dangle
27652      # Arrange for deletion of the temporary file this test creates.
27653      ac_clean_files="$ac_clean_files $gl_dangle"
27654      ln -s conftest.no-such $gl_dangle
27655      if test "$cross_compiling" = yes; then
27656   gl_cv_func_fchownat_nofollow_works=no
27657 else
27658   cat >conftest.$ac_ext <<_ACEOF
27659 /* confdefs.h.  */
27660 _ACEOF
27661 cat confdefs.h >>conftest.$ac_ext
27662 cat >>conftest.$ac_ext <<_ACEOF
27663 /* end confdefs.h.  */
27664
27665 #include <fcntl.h>
27666 #include <unistd.h>
27667 #include <stdlib.h>
27668 #include <errno.h>
27669 #include <sys/types.h>
27670 int
27671 main ()
27672 {
27673   return (fchownat (AT_FDCWD, "$gl_dangle", -1, getgid (),
27674                     AT_SYMLINK_NOFOLLOW) != 0
27675           && errno == ENOENT);
27676 }
27677
27678 _ACEOF
27679 rm -f conftest$ac_exeext
27680 if { (ac_try="$ac_link"
27681 case "(($ac_try" in
27682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27683   *) ac_try_echo=$ac_try;;
27684 esac
27685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27686   (eval "$ac_link") 2>&5
27687   ac_status=$?
27688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27689   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27690   { (case "(($ac_try" in
27691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27692   *) ac_try_echo=$ac_try;;
27693 esac
27694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27695   (eval "$ac_try") 2>&5
27696   ac_status=$?
27697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27698   (exit $ac_status); }; }; then
27699   gl_cv_func_fchownat_nofollow_works=yes
27700 else
27701   echo "$as_me: program exited with status $ac_status" >&5
27702 echo "$as_me: failed program was:" >&5
27703 sed 's/^/| /' conftest.$ac_ext >&5
27704
27705 ( exit $ac_status )
27706 gl_cv_func_fchownat_nofollow_works=no
27707 fi
27708 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27709 fi
27710
27711
27712
27713 fi
27714 { echo "$as_me:$LINENO: result: $gl_cv_func_fchownat_nofollow_works" >&5
27715 echo "${ECHO_T}$gl_cv_func_fchownat_nofollow_works" >&6; }
27716   if test $gl_cv_func_fchownat_nofollow_works = no; then
27717   :
27718 else
27719   use_replacement_fchownat=no
27720 fi
27721
27722
27723   fi
27724
27725   if test $use_replacement_fchownat = yes; then
27726
27727
27728
27729
27730
27731
27732
27733
27734   gl_LIBOBJS="$gl_LIBOBJS fchownat.$ac_objext"
27735
27736
27737 cat >>confdefs.h <<\_ACEOF
27738 #define fchownat rpl_fchownat
27739 _ACEOF
27740
27741   fi
27742
27743
27744
27745
27746
27747
27748
27749
27750
27751
27752
27753
27754
27755
27756
27757
27758
27759
27760
27761   gl_LIBOBJS="$gl_LIBOBJS quote.$ac_objext"
27762
27763
27764
27765
27766
27767
27768
27769
27770
27771
27772
27773
27774   gl_LIBOBJS="$gl_LIBOBJS quotearg.$ac_objext"
27775
27776
27777
27778
27779
27780
27781
27782
27783
27784
27785    { echo "$as_me:$LINENO: checking for mbstate_t" >&5
27786 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
27787 if test "${ac_cv_type_mbstate_t+set}" = set; then
27788   echo $ECHO_N "(cached) $ECHO_C" >&6
27789 else
27790   cat >conftest.$ac_ext <<_ACEOF
27791 /* confdefs.h.  */
27792 _ACEOF
27793 cat confdefs.h >>conftest.$ac_ext
27794 cat >>conftest.$ac_ext <<_ACEOF
27795 /* end confdefs.h.  */
27796 $ac_includes_default
27797 #           include <wchar.h>
27798 int
27799 main ()
27800 {
27801 mbstate_t x; return sizeof x;
27802   ;
27803   return 0;
27804 }
27805 _ACEOF
27806 rm -f conftest.$ac_objext
27807 if { (ac_try="$ac_compile"
27808 case "(($ac_try" in
27809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27810   *) ac_try_echo=$ac_try;;
27811 esac
27812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27813   (eval "$ac_compile") 2>conftest.er1
27814   ac_status=$?
27815   grep -v '^ *+' conftest.er1 >conftest.err
27816   rm -f conftest.er1
27817   cat conftest.err >&5
27818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27819   (exit $ac_status); } && {
27820          test -z "$ac_c_werror_flag" ||
27821          test ! -s conftest.err
27822        } && test -s conftest.$ac_objext; then
27823   ac_cv_type_mbstate_t=yes
27824 else
27825   echo "$as_me: failed program was:" >&5
27826 sed 's/^/| /' conftest.$ac_ext >&5
27827
27828         ac_cv_type_mbstate_t=no
27829 fi
27830
27831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27832 fi
27833 { echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
27834 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
27835    if test $ac_cv_type_mbstate_t = yes; then
27836
27837 cat >>confdefs.h <<\_ACEOF
27838 #define HAVE_MBSTATE_T 1
27839 _ACEOF
27840
27841    else
27842
27843 cat >>confdefs.h <<\_ACEOF
27844 #define mbstate_t int
27845 _ACEOF
27846
27847    fi
27848
27849
27850   { echo "$as_me:$LINENO: checking whether mbrtowc and mbstate_t are properly declared" >&5
27851 echo $ECHO_N "checking whether mbrtowc and mbstate_t are properly declared... $ECHO_C" >&6; }
27852 if test "${ac_cv_func_mbrtowc+set}" = set; then
27853   echo $ECHO_N "(cached) $ECHO_C" >&6
27854 else
27855   cat >conftest.$ac_ext <<_ACEOF
27856 /* confdefs.h.  */
27857 _ACEOF
27858 cat confdefs.h >>conftest.$ac_ext
27859 cat >>conftest.$ac_ext <<_ACEOF
27860 /* end confdefs.h.  */
27861 #include <wchar.h>
27862 int
27863 main ()
27864 {
27865 wchar_t wc;
27866               char const s[] = "";
27867               size_t n = 1;
27868               mbstate_t state;
27869               return ! (sizeof state && (mbrtowc) (&wc, s, n, &state));
27870   ;
27871   return 0;
27872 }
27873 _ACEOF
27874 rm -f conftest.$ac_objext conftest$ac_exeext
27875 if { (ac_try="$ac_link"
27876 case "(($ac_try" in
27877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27878   *) ac_try_echo=$ac_try;;
27879 esac
27880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27881   (eval "$ac_link") 2>conftest.er1
27882   ac_status=$?
27883   grep -v '^ *+' conftest.er1 >conftest.err
27884   rm -f conftest.er1
27885   cat conftest.err >&5
27886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27887   (exit $ac_status); } && {
27888          test -z "$ac_c_werror_flag" ||
27889          test ! -s conftest.err
27890        } && test -s conftest$ac_exeext &&
27891        $as_test_x conftest$ac_exeext; then
27892   ac_cv_func_mbrtowc=yes
27893 else
27894   echo "$as_me: failed program was:" >&5
27895 sed 's/^/| /' conftest.$ac_ext >&5
27896
27897         ac_cv_func_mbrtowc=no
27898 fi
27899
27900 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27901       conftest$ac_exeext conftest.$ac_ext
27902 fi
27903 { echo "$as_me:$LINENO: result: $ac_cv_func_mbrtowc" >&5
27904 echo "${ECHO_T}$ac_cv_func_mbrtowc" >&6; }
27905   if test $ac_cv_func_mbrtowc = yes; then
27906
27907 cat >>confdefs.h <<\_ACEOF
27908 #define HAVE_MBRTOWC 1
27909 _ACEOF
27910
27911   fi
27912
27913
27914
27915
27916
27917
27918
27919
27920
27921
27922
27923
27924
27925
27926
27927 for ac_func in rawmemchr
27928 do
27929 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27930 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27931 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27932 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27933   echo $ECHO_N "(cached) $ECHO_C" >&6
27934 else
27935   cat >conftest.$ac_ext <<_ACEOF
27936 /* confdefs.h.  */
27937 _ACEOF
27938 cat confdefs.h >>conftest.$ac_ext
27939 cat >>conftest.$ac_ext <<_ACEOF
27940 /* end confdefs.h.  */
27941 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27942    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27943 #define $ac_func innocuous_$ac_func
27944
27945 /* System header to define __stub macros and hopefully few prototypes,
27946     which can conflict with char $ac_func (); below.
27947     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27948     <limits.h> exists even on freestanding compilers.  */
27949
27950 #ifdef __STDC__
27951 # include <limits.h>
27952 #else
27953 # include <assert.h>
27954 #endif
27955
27956 #undef $ac_func
27957
27958 /* Override any GCC internal prototype to avoid an error.
27959    Use char because int might match the return type of a GCC
27960    builtin and then its argument prototype would still apply.  */
27961 #ifdef __cplusplus
27962 extern "C"
27963 #endif
27964 char $ac_func ();
27965 /* The GNU C library defines this for functions which it implements
27966     to always fail with ENOSYS.  Some functions are actually named
27967     something starting with __ and the normal name is an alias.  */
27968 #if defined __stub_$ac_func || defined __stub___$ac_func
27969 choke me
27970 #endif
27971
27972 int
27973 main ()
27974 {
27975 return $ac_func ();
27976   ;
27977   return 0;
27978 }
27979 _ACEOF
27980 rm -f conftest.$ac_objext conftest$ac_exeext
27981 if { (ac_try="$ac_link"
27982 case "(($ac_try" in
27983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27984   *) ac_try_echo=$ac_try;;
27985 esac
27986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27987   (eval "$ac_link") 2>conftest.er1
27988   ac_status=$?
27989   grep -v '^ *+' conftest.er1 >conftest.err
27990   rm -f conftest.er1
27991   cat conftest.err >&5
27992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27993   (exit $ac_status); } && {
27994          test -z "$ac_c_werror_flag" ||
27995          test ! -s conftest.err
27996        } && test -s conftest$ac_exeext &&
27997        $as_test_x conftest$ac_exeext; then
27998   eval "$as_ac_var=yes"
27999 else
28000   echo "$as_me: failed program was:" >&5
28001 sed 's/^/| /' conftest.$ac_ext >&5
28002
28003         eval "$as_ac_var=no"
28004 fi
28005
28006 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28007       conftest$ac_exeext conftest.$ac_ext
28008 fi
28009 ac_res=`eval echo '${'$as_ac_var'}'`
28010                { echo "$as_me:$LINENO: result: $ac_res" >&5
28011 echo "${ECHO_T}$ac_res" >&6; }
28012 if test `eval echo '${'$as_ac_var'}'` = yes; then
28013   cat >>confdefs.h <<_ACEOF
28014 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28015 _ACEOF
28016
28017 else
28018
28019     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
28020
28021 fi
28022 done
28023
28024
28025   if test $ac_cv_func_rawmemchr = no; then
28026     HAVE_RAWMEMCHR=0
28027     :
28028   fi
28029
28030
28031
28032   GNULIB_RAWMEMCHR=1
28033
28034
28035
28036
28037
28038
28039
28040
28041
28042   if test $ac_cv_func_readlink = no; then
28043     HAVE_READLINK=0
28044
28045
28046
28047
28048
28049
28050
28051
28052   gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext"
28053
28054
28055   :
28056
28057   fi
28058
28059
28060
28061   GNULIB_READLINK=1
28062
28063
28064
28065   if test $gl_cv_func_malloc_posix = yes; then
28066     HAVE_REALLOC_POSIX=1
28067
28068 cat >>confdefs.h <<\_ACEOF
28069 #define HAVE_REALLOC_POSIX 1
28070 _ACEOF
28071
28072   else
28073
28074
28075
28076
28077
28078
28079
28080
28081   gl_LIBOBJS="$gl_LIBOBJS realloc.$ac_objext"
28082
28083     HAVE_REALLOC_POSIX=0
28084   fi
28085
28086
28087
28088
28089   GNULIB_REALLOC_POSIX=1
28090
28091
28092
28093
28094
28095
28096
28097
28098
28099
28100 # Check whether --with-included-regex was given.
28101 if test "${with_included_regex+set}" = set; then
28102   withval=$with_included_regex;
28103 fi
28104
28105
28106   case $with_included_regex in #(
28107   yes|no) ac_use_included_regex=$with_included_regex
28108         ;;
28109   '')
28110     # If the system regex support is good enough that it passes the
28111     # following run test, then default to *not* using the included regex.c.
28112     # If cross compiling, assume the test would fail and use the included
28113     # regex.c.
28114     { echo "$as_me:$LINENO: checking for working re_compile_pattern" >&5
28115 echo $ECHO_N "checking for working re_compile_pattern... $ECHO_C" >&6; }
28116 if test "${gl_cv_func_re_compile_pattern_working+set}" = set; then
28117   echo $ECHO_N "(cached) $ECHO_C" >&6
28118 else
28119   if test "$cross_compiling" = yes; then
28120          gl_cv_func_re_compile_pattern_working=no
28121 else
28122   cat >conftest.$ac_ext <<_ACEOF
28123 /* confdefs.h.  */
28124 _ACEOF
28125 cat confdefs.h >>conftest.$ac_ext
28126 cat >>conftest.$ac_ext <<_ACEOF
28127 /* end confdefs.h.  */
28128 $ac_includes_default
28129            #if HAVE_LOCALE_H
28130             #include <locale.h>
28131            #endif
28132            #include <limits.h>
28133            #include <regex.h>
28134
28135 int
28136 main ()
28137 {
28138 static struct re_pattern_buffer regex;
28139             unsigned char folded_chars[UCHAR_MAX + 1];
28140             int i;
28141             const char *s;
28142             struct re_registers regs;
28143
28144             #if HAVE_LOCALE_H
28145               /* http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html
28146                  This test needs valgrind to catch the bug on Debian
28147                  GNU/Linux 3.1 x86, but it might catch the bug better
28148                  on other platforms and it shouldn't hurt to try the
28149                  test here.  */
28150               if (setlocale (LC_ALL, "en_US.UTF-8"))
28151                 {
28152                   static char const pat[] = "insert into";
28153                   static char const data[] =
28154                     "\xFF\0\x12\xA2\xAA\xC4\xB1,K\x12\xC4\xB1*\xACK";
28155                   re_set_syntax (RE_SYNTAX_GREP | RE_HAT_LISTS_NOT_NEWLINE
28156                                  | RE_ICASE);
28157                   memset (&regex, 0, sizeof regex);
28158                   s = re_compile_pattern (pat, sizeof pat - 1, &regex);
28159                   if (s)
28160                     return 1;
28161                   if (re_search (&regex, data, sizeof data - 1,
28162                                  0, sizeof data - 1, &regs)
28163                       != -1)
28164                     return 1;
28165                   if (! setlocale (LC_ALL, "C"))
28166                     return 1;
28167                 }
28168             #endif
28169
28170             /* This test is from glibc bug 3957, reported by Andrew Mackey.  */
28171             re_set_syntax (RE_SYNTAX_EGREP | RE_HAT_LISTS_NOT_NEWLINE);
28172             memset (&regex, 0, sizeof regex);
28173             s = re_compile_pattern ("a[^x]b", 6, &regex);
28174             if (s)
28175               return 1;
28176
28177             /* This should fail, but succeeds for glibc-2.5.  */
28178             if (re_search (&regex, "a\nb", 3, 0, 3, &regs) != -1)
28179               return 1;
28180
28181             /* This regular expression is from Spencer ere test number 75
28182                in grep-2.3.  */
28183             re_set_syntax (RE_SYNTAX_POSIX_EGREP);
28184             memset (&regex, 0, sizeof regex);
28185             for (i = 0; i <= UCHAR_MAX; i++)
28186               folded_chars[i] = i;
28187             regex.translate = folded_chars;
28188             s = re_compile_pattern ("a[[:]:]]b\n", 11, &regex);
28189             /* This should fail with _Invalid character class name_ error.  */
28190             if (!s)
28191               return 1;
28192
28193             /* This should succeed, but does not for glibc-2.1.3.  */
28194             memset (&regex, 0, sizeof regex);
28195             s = re_compile_pattern ("{1", 2, &regex);
28196
28197             if (s)
28198               return 1;
28199
28200             /* The following example is derived from a problem report
28201                against gawk from Jorge Stolfi <stolfi@ic.unicamp.br>.  */
28202             memset (&regex, 0, sizeof regex);
28203             s = re_compile_pattern ("[an\371]*n", 7, &regex);
28204             if (s)
28205               return 1;
28206
28207             /* This should match, but does not for glibc-2.2.1.  */
28208             if (re_match (&regex, "an", 2, 0, &regs) != 2)
28209               return 1;
28210
28211             memset (&regex, 0, sizeof regex);
28212             s = re_compile_pattern ("x", 1, &regex);
28213             if (s)
28214               return 1;
28215
28216             /* glibc-2.2.93 does not work with a negative RANGE argument.  */
28217             if (re_search (&regex, "wxy", 3, 2, -2, &regs) != 1)
28218               return 1;
28219
28220             /* The version of regex.c in older versions of gnulib
28221                ignored RE_ICASE.  Detect that problem too.  */
28222             re_set_syntax (RE_SYNTAX_EMACS | RE_ICASE);
28223             memset (&regex, 0, sizeof regex);
28224             s = re_compile_pattern ("x", 1, &regex);
28225             if (s)
28226               return 1;
28227
28228             if (re_search (&regex, "WXY", 3, 0, 3, &regs) < 0)
28229               return 1;
28230
28231             /* Catch a bug reported by Vin Shelton in
28232                http://lists.gnu.org/archive/html/bug-coreutils/2007-06/msg00089.html
28233                */
28234             re_set_syntax (RE_SYNTAX_POSIX_BASIC
28235                            & ~RE_CONTEXT_INVALID_DUP
28236                            & ~RE_NO_EMPTY_RANGES);
28237             memset (&regex, 0, sizeof regex);
28238             s = re_compile_pattern ("[[:alnum:]_-]\\\\+$", 16, &regex);
28239             if (s)
28240               return 1;
28241
28242             /* REG_STARTEND was added to glibc on 2004-01-15.
28243                Reject older versions.  */
28244             if (! REG_STARTEND)
28245               return 1;
28246
28247             /* Reject hosts whose regoff_t values are too narrow.
28248                These include glibc 2.3.5 on hosts with 64-bit ptrdiff_t
28249                and 32-bit int.  */
28250             if (sizeof (regoff_t) < sizeof (ptrdiff_t)
28251                 || sizeof (regoff_t) < sizeof (ssize_t))
28252               return 1;
28253
28254             return 0;
28255   ;
28256   return 0;
28257 }
28258 _ACEOF
28259 rm -f conftest$ac_exeext
28260 if { (ac_try="$ac_link"
28261 case "(($ac_try" in
28262   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28263   *) ac_try_echo=$ac_try;;
28264 esac
28265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28266   (eval "$ac_link") 2>&5
28267   ac_status=$?
28268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28269   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28270   { (case "(($ac_try" in
28271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28272   *) ac_try_echo=$ac_try;;
28273 esac
28274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28275   (eval "$ac_try") 2>&5
28276   ac_status=$?
28277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28278   (exit $ac_status); }; }; then
28279   gl_cv_func_re_compile_pattern_working=yes
28280 else
28281   echo "$as_me: program exited with status $ac_status" >&5
28282 echo "$as_me: failed program was:" >&5
28283 sed 's/^/| /' conftest.$ac_ext >&5
28284
28285 ( exit $ac_status )
28286 gl_cv_func_re_compile_pattern_working=no
28287 fi
28288 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28289 fi
28290
28291
28292 fi
28293 { echo "$as_me:$LINENO: result: $gl_cv_func_re_compile_pattern_working" >&5
28294 echo "${ECHO_T}$gl_cv_func_re_compile_pattern_working" >&6; }
28295     case $gl_cv_func_re_compile_pattern_working in #(
28296     yes) ac_use_included_regex=no;; #(
28297     no) ac_use_included_regex=yes;;
28298     esac
28299     ;;
28300   *) { { echo "$as_me:$LINENO: error: Invalid value for --with-included-regex: $with_included_regex" >&5
28301 echo "$as_me: error: Invalid value for --with-included-regex: $with_included_regex" >&2;}
28302    { (exit 1); exit 1; }; }
28303     ;;
28304   esac
28305
28306   if test $ac_use_included_regex = yes; then
28307
28308 cat >>confdefs.h <<\_ACEOF
28309 #define _REGEX_LARGE_OFFSETS 1
28310 _ACEOF
28311
28312
28313 cat >>confdefs.h <<\_ACEOF
28314 #define re_syntax_options rpl_re_syntax_options
28315 _ACEOF
28316
28317
28318 cat >>confdefs.h <<\_ACEOF
28319 #define re_set_syntax rpl_re_set_syntax
28320 _ACEOF
28321
28322
28323 cat >>confdefs.h <<\_ACEOF
28324 #define re_compile_pattern rpl_re_compile_pattern
28325 _ACEOF
28326
28327
28328 cat >>confdefs.h <<\_ACEOF
28329 #define re_compile_fastmap rpl_re_compile_fastmap
28330 _ACEOF
28331
28332
28333 cat >>confdefs.h <<\_ACEOF
28334 #define re_search rpl_re_search
28335 _ACEOF
28336
28337
28338 cat >>confdefs.h <<\_ACEOF
28339 #define re_search_2 rpl_re_search_2
28340 _ACEOF
28341
28342
28343 cat >>confdefs.h <<\_ACEOF
28344 #define re_match rpl_re_match
28345 _ACEOF
28346
28347
28348 cat >>confdefs.h <<\_ACEOF
28349 #define re_match_2 rpl_re_match_2
28350 _ACEOF
28351
28352
28353 cat >>confdefs.h <<\_ACEOF
28354 #define re_set_registers rpl_re_set_registers
28355 _ACEOF
28356
28357
28358 cat >>confdefs.h <<\_ACEOF
28359 #define re_comp rpl_re_comp
28360 _ACEOF
28361
28362
28363 cat >>confdefs.h <<\_ACEOF
28364 #define re_exec rpl_re_exec
28365 _ACEOF
28366
28367
28368 cat >>confdefs.h <<\_ACEOF
28369 #define regcomp rpl_regcomp
28370 _ACEOF
28371
28372
28373 cat >>confdefs.h <<\_ACEOF
28374 #define regexec rpl_regexec
28375 _ACEOF
28376
28377
28378 cat >>confdefs.h <<\_ACEOF
28379 #define regerror rpl_regerror
28380 _ACEOF
28381
28382
28383 cat >>confdefs.h <<\_ACEOF
28384 #define regfree rpl_regfree
28385 _ACEOF
28386
28387
28388
28389
28390
28391
28392
28393
28394
28395   gl_LIBOBJS="$gl_LIBOBJS regex.$ac_objext"
28396
28397
28398
28399
28400
28401
28402 for ac_header in libintl.h
28403 do
28404 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28405 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28406   { echo "$as_me:$LINENO: checking for $ac_header" >&5
28407 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28408 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28409   echo $ECHO_N "(cached) $ECHO_C" >&6
28410 fi
28411 ac_res=`eval echo '${'$as_ac_Header'}'`
28412                { echo "$as_me:$LINENO: result: $ac_res" >&5
28413 echo "${ECHO_T}$ac_res" >&6; }
28414 else
28415   # Is the header compilable?
28416 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28417 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28418 cat >conftest.$ac_ext <<_ACEOF
28419 /* confdefs.h.  */
28420 _ACEOF
28421 cat confdefs.h >>conftest.$ac_ext
28422 cat >>conftest.$ac_ext <<_ACEOF
28423 /* end confdefs.h.  */
28424 $ac_includes_default
28425 #include <$ac_header>
28426 _ACEOF
28427 rm -f conftest.$ac_objext
28428 if { (ac_try="$ac_compile"
28429 case "(($ac_try" in
28430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28431   *) ac_try_echo=$ac_try;;
28432 esac
28433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28434   (eval "$ac_compile") 2>conftest.er1
28435   ac_status=$?
28436   grep -v '^ *+' conftest.er1 >conftest.err
28437   rm -f conftest.er1
28438   cat conftest.err >&5
28439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28440   (exit $ac_status); } && {
28441          test -z "$ac_c_werror_flag" ||
28442          test ! -s conftest.err
28443        } && test -s conftest.$ac_objext; then
28444   ac_header_compiler=yes
28445 else
28446   echo "$as_me: failed program was:" >&5
28447 sed 's/^/| /' conftest.$ac_ext >&5
28448
28449         ac_header_compiler=no
28450 fi
28451
28452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28453 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28454 echo "${ECHO_T}$ac_header_compiler" >&6; }
28455
28456 # Is the header present?
28457 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28458 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28459 cat >conftest.$ac_ext <<_ACEOF
28460 /* confdefs.h.  */
28461 _ACEOF
28462 cat confdefs.h >>conftest.$ac_ext
28463 cat >>conftest.$ac_ext <<_ACEOF
28464 /* end confdefs.h.  */
28465 #include <$ac_header>
28466 _ACEOF
28467 if { (ac_try="$ac_cpp conftest.$ac_ext"
28468 case "(($ac_try" in
28469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28470   *) ac_try_echo=$ac_try;;
28471 esac
28472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28473   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28474   ac_status=$?
28475   grep -v '^ *+' conftest.er1 >conftest.err
28476   rm -f conftest.er1
28477   cat conftest.err >&5
28478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28479   (exit $ac_status); } >/dev/null && {
28480          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28481          test ! -s conftest.err
28482        }; then
28483   ac_header_preproc=yes
28484 else
28485   echo "$as_me: failed program was:" >&5
28486 sed 's/^/| /' conftest.$ac_ext >&5
28487
28488   ac_header_preproc=no
28489 fi
28490
28491 rm -f conftest.err conftest.$ac_ext
28492 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28493 echo "${ECHO_T}$ac_header_preproc" >&6; }
28494
28495 # So?  What about this header?
28496 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28497   yes:no: )
28498     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28499 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28500     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28501 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28502     ac_header_preproc=yes
28503     ;;
28504   no:yes:* )
28505     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28506 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28507     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28508 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28509     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28510 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28511     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28512 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28513     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28514 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28515     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28516 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28517     ( cat <<\_ASBOX
28518 ## ------------------------------ ##
28519 ## Report this to bug-tar@gnu.org ##
28520 ## ------------------------------ ##
28521 _ASBOX
28522      ) | sed "s/^/$as_me: WARNING:     /" >&2
28523     ;;
28524 esac
28525 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28526 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28527 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28528   echo $ECHO_N "(cached) $ECHO_C" >&6
28529 else
28530   eval "$as_ac_Header=\$ac_header_preproc"
28531 fi
28532 ac_res=`eval echo '${'$as_ac_Header'}'`
28533                { echo "$as_me:$LINENO: result: $ac_res" >&5
28534 echo "${ECHO_T}$ac_res" >&6; }
28535
28536 fi
28537 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28538   cat >>confdefs.h <<_ACEOF
28539 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28540 _ACEOF
28541
28542 fi
28543
28544 done
28545
28546
28547
28548
28549
28550
28551
28552
28553
28554
28555
28556   { echo "$as_me:$LINENO: checking whether isblank is declared" >&5
28557 echo $ECHO_N "checking whether isblank is declared... $ECHO_C" >&6; }
28558 if test "${ac_cv_have_decl_isblank+set}" = set; then
28559   echo $ECHO_N "(cached) $ECHO_C" >&6
28560 else
28561   cat >conftest.$ac_ext <<_ACEOF
28562 /* confdefs.h.  */
28563 _ACEOF
28564 cat confdefs.h >>conftest.$ac_ext
28565 cat >>conftest.$ac_ext <<_ACEOF
28566 /* end confdefs.h.  */
28567 #include <ctype.h>
28568
28569 int
28570 main ()
28571 {
28572 #ifndef isblank
28573   (void) isblank;
28574 #endif
28575
28576   ;
28577   return 0;
28578 }
28579 _ACEOF
28580 rm -f conftest.$ac_objext
28581 if { (ac_try="$ac_compile"
28582 case "(($ac_try" in
28583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28584   *) ac_try_echo=$ac_try;;
28585 esac
28586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28587   (eval "$ac_compile") 2>conftest.er1
28588   ac_status=$?
28589   grep -v '^ *+' conftest.er1 >conftest.err
28590   rm -f conftest.er1
28591   cat conftest.err >&5
28592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28593   (exit $ac_status); } && {
28594          test -z "$ac_c_werror_flag" ||
28595          test ! -s conftest.err
28596        } && test -s conftest.$ac_objext; then
28597   ac_cv_have_decl_isblank=yes
28598 else
28599   echo "$as_me: failed program was:" >&5
28600 sed 's/^/| /' conftest.$ac_ext >&5
28601
28602         ac_cv_have_decl_isblank=no
28603 fi
28604
28605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28606 fi
28607 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isblank" >&5
28608 echo "${ECHO_T}$ac_cv_have_decl_isblank" >&6; }
28609 if test $ac_cv_have_decl_isblank = yes; then
28610
28611 cat >>confdefs.h <<_ACEOF
28612 #define HAVE_DECL_ISBLANK 1
28613 _ACEOF
28614
28615
28616 else
28617   cat >>confdefs.h <<_ACEOF
28618 #define HAVE_DECL_ISBLANK 0
28619 _ACEOF
28620
28621
28622 fi
28623
28624
28625
28626   fi
28627
28628
28629
28630
28631
28632
28633
28634
28635
28636
28637
28638
28639
28640
28641 for ac_func in rpmatch
28642 do
28643 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28644 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28645 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28646 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28647   echo $ECHO_N "(cached) $ECHO_C" >&6
28648 else
28649   cat >conftest.$ac_ext <<_ACEOF
28650 /* confdefs.h.  */
28651 _ACEOF
28652 cat confdefs.h >>conftest.$ac_ext
28653 cat >>conftest.$ac_ext <<_ACEOF
28654 /* end confdefs.h.  */
28655 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28656    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28657 #define $ac_func innocuous_$ac_func
28658
28659 /* System header to define __stub macros and hopefully few prototypes,
28660     which can conflict with char $ac_func (); below.
28661     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28662     <limits.h> exists even on freestanding compilers.  */
28663
28664 #ifdef __STDC__
28665 # include <limits.h>
28666 #else
28667 # include <assert.h>
28668 #endif
28669
28670 #undef $ac_func
28671
28672 /* Override any GCC internal prototype to avoid an error.
28673    Use char because int might match the return type of a GCC
28674    builtin and then its argument prototype would still apply.  */
28675 #ifdef __cplusplus
28676 extern "C"
28677 #endif
28678 char $ac_func ();
28679 /* The GNU C library defines this for functions which it implements
28680     to always fail with ENOSYS.  Some functions are actually named
28681     something starting with __ and the normal name is an alias.  */
28682 #if defined __stub_$ac_func || defined __stub___$ac_func
28683 choke me
28684 #endif
28685
28686 int
28687 main ()
28688 {
28689 return $ac_func ();
28690   ;
28691   return 0;
28692 }
28693 _ACEOF
28694 rm -f conftest.$ac_objext conftest$ac_exeext
28695 if { (ac_try="$ac_link"
28696 case "(($ac_try" in
28697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28698   *) ac_try_echo=$ac_try;;
28699 esac
28700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28701   (eval "$ac_link") 2>conftest.er1
28702   ac_status=$?
28703   grep -v '^ *+' conftest.er1 >conftest.err
28704   rm -f conftest.er1
28705   cat conftest.err >&5
28706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28707   (exit $ac_status); } && {
28708          test -z "$ac_c_werror_flag" ||
28709          test ! -s conftest.err
28710        } && test -s conftest$ac_exeext &&
28711        $as_test_x conftest$ac_exeext; then
28712   eval "$as_ac_var=yes"
28713 else
28714   echo "$as_me: failed program was:" >&5
28715 sed 's/^/| /' conftest.$ac_ext >&5
28716
28717         eval "$as_ac_var=no"
28718 fi
28719
28720 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28721       conftest$ac_exeext conftest.$ac_ext
28722 fi
28723 ac_res=`eval echo '${'$as_ac_var'}'`
28724                { echo "$as_me:$LINENO: result: $ac_res" >&5
28725 echo "${ECHO_T}$ac_res" >&6; }
28726 if test `eval echo '${'$as_ac_var'}'` = yes; then
28727   cat >>confdefs.h <<_ACEOF
28728 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28729 _ACEOF
28730
28731 else
28732
28733     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
28734
28735 fi
28736 done
28737
28738
28739   if test $ac_cv_func_rpmatch = no; then
28740     HAVE_RPMATCH=0
28741
28742   { echo "$as_me:$LINENO: checking for nl_langinfo and YESEXPR" >&5
28743 echo $ECHO_N "checking for nl_langinfo and YESEXPR... $ECHO_C" >&6; }
28744 if test "${gl_cv_langinfo_yesexpr+set}" = set; then
28745   echo $ECHO_N "(cached) $ECHO_C" >&6
28746 else
28747   cat >conftest.$ac_ext <<_ACEOF
28748 /* confdefs.h.  */
28749 _ACEOF
28750 cat confdefs.h >>conftest.$ac_ext
28751 cat >>conftest.$ac_ext <<_ACEOF
28752 /* end confdefs.h.  */
28753 #include <langinfo.h>
28754 int
28755 main ()
28756 {
28757 char* cs = nl_langinfo(YESEXPR); return !cs;
28758   ;
28759   return 0;
28760 }
28761 _ACEOF
28762 rm -f conftest.$ac_objext conftest$ac_exeext
28763 if { (ac_try="$ac_link"
28764 case "(($ac_try" in
28765   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28766   *) ac_try_echo=$ac_try;;
28767 esac
28768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28769   (eval "$ac_link") 2>conftest.er1
28770   ac_status=$?
28771   grep -v '^ *+' conftest.er1 >conftest.err
28772   rm -f conftest.er1
28773   cat conftest.err >&5
28774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28775   (exit $ac_status); } && {
28776          test -z "$ac_c_werror_flag" ||
28777          test ! -s conftest.err
28778        } && test -s conftest$ac_exeext &&
28779        $as_test_x conftest$ac_exeext; then
28780   gl_cv_langinfo_yesexpr=yes
28781 else
28782   echo "$as_me: failed program was:" >&5
28783 sed 's/^/| /' conftest.$ac_ext >&5
28784
28785         gl_cv_langinfo_yesexpr=no
28786 fi
28787
28788 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28789       conftest$ac_exeext conftest.$ac_ext
28790
28791 fi
28792 { echo "$as_me:$LINENO: result: $gl_cv_langinfo_yesexpr" >&5
28793 echo "${ECHO_T}$gl_cv_langinfo_yesexpr" >&6; }
28794   if test $gl_cv_langinfo_yesexpr = yes; then
28795
28796 cat >>confdefs.h <<\_ACEOF
28797 #define HAVE_LANGINFO_YESEXPR 1
28798 _ACEOF
28799
28800   fi
28801
28802   fi
28803
28804
28805
28806   GNULIB_RPMATCH=1
28807
28808
28809
28810
28811
28812
28813
28814
28815
28816
28817   gl_LIBOBJS="$gl_LIBOBJS safe-read.$ac_objext"
28818
28819
28820
28821
28822
28823
28824
28825
28826
28827
28828
28829
28830
28831
28832
28833   gl_LIBOBJS="$gl_LIBOBJS safe-write.$ac_objext"
28834
28835
28836
28837
28838
28839
28840
28841
28842
28843
28844
28845
28846
28847
28848
28849
28850
28851   gl_LIBOBJS="$gl_LIBOBJS save-cwd.$ac_objext"
28852
28853
28854
28855
28856
28857
28858
28859
28860
28861
28862
28863
28864
28865
28866
28867
28868
28869   gl_LIBOBJS="$gl_LIBOBJS savedir.$ac_objext"
28870
28871
28872
28873
28874
28875
28876
28877
28878
28879
28880   if test $ac_cv_func_setenv = no; then
28881     HAVE_SETENV=0
28882
28883
28884
28885
28886
28887
28888
28889
28890   gl_LIBOBJS="$gl_LIBOBJS setenv.$ac_objext"
28891
28892
28893
28894
28895
28896
28897
28898
28899
28900
28901
28902 for ac_header in search.h
28903 do
28904 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28905 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28906   { echo "$as_me:$LINENO: checking for $ac_header" >&5
28907 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28908 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28909   echo $ECHO_N "(cached) $ECHO_C" >&6
28910 fi
28911 ac_res=`eval echo '${'$as_ac_Header'}'`
28912                { echo "$as_me:$LINENO: result: $ac_res" >&5
28913 echo "${ECHO_T}$ac_res" >&6; }
28914 else
28915   # Is the header compilable?
28916 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28917 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28918 cat >conftest.$ac_ext <<_ACEOF
28919 /* confdefs.h.  */
28920 _ACEOF
28921 cat confdefs.h >>conftest.$ac_ext
28922 cat >>conftest.$ac_ext <<_ACEOF
28923 /* end confdefs.h.  */
28924 $ac_includes_default
28925 #include <$ac_header>
28926 _ACEOF
28927 rm -f conftest.$ac_objext
28928 if { (ac_try="$ac_compile"
28929 case "(($ac_try" in
28930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28931   *) ac_try_echo=$ac_try;;
28932 esac
28933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28934   (eval "$ac_compile") 2>conftest.er1
28935   ac_status=$?
28936   grep -v '^ *+' conftest.er1 >conftest.err
28937   rm -f conftest.er1
28938   cat conftest.err >&5
28939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28940   (exit $ac_status); } && {
28941          test -z "$ac_c_werror_flag" ||
28942          test ! -s conftest.err
28943        } && test -s conftest.$ac_objext; then
28944   ac_header_compiler=yes
28945 else
28946   echo "$as_me: failed program was:" >&5
28947 sed 's/^/| /' conftest.$ac_ext >&5
28948
28949         ac_header_compiler=no
28950 fi
28951
28952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28953 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28954 echo "${ECHO_T}$ac_header_compiler" >&6; }
28955
28956 # Is the header present?
28957 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28958 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28959 cat >conftest.$ac_ext <<_ACEOF
28960 /* confdefs.h.  */
28961 _ACEOF
28962 cat confdefs.h >>conftest.$ac_ext
28963 cat >>conftest.$ac_ext <<_ACEOF
28964 /* end confdefs.h.  */
28965 #include <$ac_header>
28966 _ACEOF
28967 if { (ac_try="$ac_cpp conftest.$ac_ext"
28968 case "(($ac_try" in
28969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28970   *) ac_try_echo=$ac_try;;
28971 esac
28972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28973   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28974   ac_status=$?
28975   grep -v '^ *+' conftest.er1 >conftest.err
28976   rm -f conftest.er1
28977   cat conftest.err >&5
28978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28979   (exit $ac_status); } >/dev/null && {
28980          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28981          test ! -s conftest.err
28982        }; then
28983   ac_header_preproc=yes
28984 else
28985   echo "$as_me: failed program was:" >&5
28986 sed 's/^/| /' conftest.$ac_ext >&5
28987
28988   ac_header_preproc=no
28989 fi
28990
28991 rm -f conftest.err conftest.$ac_ext
28992 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28993 echo "${ECHO_T}$ac_header_preproc" >&6; }
28994
28995 # So?  What about this header?
28996 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28997   yes:no: )
28998     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28999 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29000     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29001 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29002     ac_header_preproc=yes
29003     ;;
29004   no:yes:* )
29005     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29006 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29007     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29008 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29009     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29010 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29011     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29012 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29013     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29014 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29015     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29016 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29017     ( cat <<\_ASBOX
29018 ## ------------------------------ ##
29019 ## Report this to bug-tar@gnu.org ##
29020 ## ------------------------------ ##
29021 _ASBOX
29022      ) | sed "s/^/$as_me: WARNING:     /" >&2
29023     ;;
29024 esac
29025 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29026 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29027 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29028   echo $ECHO_N "(cached) $ECHO_C" >&6
29029 else
29030   eval "$as_ac_Header=\$ac_header_preproc"
29031 fi
29032 ac_res=`eval echo '${'$as_ac_Header'}'`
29033                { echo "$as_me:$LINENO: result: $ac_res" >&5
29034 echo "${ECHO_T}$ac_res" >&6; }
29035
29036 fi
29037 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29038   cat >>confdefs.h <<_ACEOF
29039 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29040 _ACEOF
29041
29042 fi
29043
29044 done
29045
29046
29047 for ac_func in tsearch
29048 do
29049 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29050 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29051 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29052 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29053   echo $ECHO_N "(cached) $ECHO_C" >&6
29054 else
29055   cat >conftest.$ac_ext <<_ACEOF
29056 /* confdefs.h.  */
29057 _ACEOF
29058 cat confdefs.h >>conftest.$ac_ext
29059 cat >>conftest.$ac_ext <<_ACEOF
29060 /* end confdefs.h.  */
29061 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29062    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29063 #define $ac_func innocuous_$ac_func
29064
29065 /* System header to define __stub macros and hopefully few prototypes,
29066     which can conflict with char $ac_func (); below.
29067     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29068     <limits.h> exists even on freestanding compilers.  */
29069
29070 #ifdef __STDC__
29071 # include <limits.h>
29072 #else
29073 # include <assert.h>
29074 #endif
29075
29076 #undef $ac_func
29077
29078 /* Override any GCC internal prototype to avoid an error.
29079    Use char because int might match the return type of a GCC
29080    builtin and then its argument prototype would still apply.  */
29081 #ifdef __cplusplus
29082 extern "C"
29083 #endif
29084 char $ac_func ();
29085 /* The GNU C library defines this for functions which it implements
29086     to always fail with ENOSYS.  Some functions are actually named
29087     something starting with __ and the normal name is an alias.  */
29088 #if defined __stub_$ac_func || defined __stub___$ac_func
29089 choke me
29090 #endif
29091
29092 int
29093 main ()
29094 {
29095 return $ac_func ();
29096   ;
29097   return 0;
29098 }
29099 _ACEOF
29100 rm -f conftest.$ac_objext conftest$ac_exeext
29101 if { (ac_try="$ac_link"
29102 case "(($ac_try" in
29103   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29104   *) ac_try_echo=$ac_try;;
29105 esac
29106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29107   (eval "$ac_link") 2>conftest.er1
29108   ac_status=$?
29109   grep -v '^ *+' conftest.er1 >conftest.err
29110   rm -f conftest.er1
29111   cat conftest.err >&5
29112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29113   (exit $ac_status); } && {
29114          test -z "$ac_c_werror_flag" ||
29115          test ! -s conftest.err
29116        } && test -s conftest$ac_exeext &&
29117        $as_test_x conftest$ac_exeext; then
29118   eval "$as_ac_var=yes"
29119 else
29120   echo "$as_me: failed program was:" >&5
29121 sed 's/^/| /' conftest.$ac_ext >&5
29122
29123         eval "$as_ac_var=no"
29124 fi
29125
29126 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29127       conftest$ac_exeext conftest.$ac_ext
29128 fi
29129 ac_res=`eval echo '${'$as_ac_var'}'`
29130                { echo "$as_me:$LINENO: result: $ac_res" >&5
29131 echo "${ECHO_T}$ac_res" >&6; }
29132 if test `eval echo '${'$as_ac_var'}'` = yes; then
29133   cat >>confdefs.h <<_ACEOF
29134 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29135 _ACEOF
29136
29137 fi
29138 done
29139
29140
29141   fi
29142
29143
29144
29145   GNULIB_SETENV=1
29146
29147
29148
29149 for ac_header in stdint.h
29150 do
29151 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29152 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29153   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29154 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29155 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29156   echo $ECHO_N "(cached) $ECHO_C" >&6
29157 fi
29158 ac_res=`eval echo '${'$as_ac_Header'}'`
29159                { echo "$as_me:$LINENO: result: $ac_res" >&5
29160 echo "${ECHO_T}$ac_res" >&6; }
29161 else
29162   # Is the header compilable?
29163 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29164 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29165 cat >conftest.$ac_ext <<_ACEOF
29166 /* confdefs.h.  */
29167 _ACEOF
29168 cat confdefs.h >>conftest.$ac_ext
29169 cat >>conftest.$ac_ext <<_ACEOF
29170 /* end confdefs.h.  */
29171 $ac_includes_default
29172 #include <$ac_header>
29173 _ACEOF
29174 rm -f conftest.$ac_objext
29175 if { (ac_try="$ac_compile"
29176 case "(($ac_try" in
29177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29178   *) ac_try_echo=$ac_try;;
29179 esac
29180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29181   (eval "$ac_compile") 2>conftest.er1
29182   ac_status=$?
29183   grep -v '^ *+' conftest.er1 >conftest.err
29184   rm -f conftest.er1
29185   cat conftest.err >&5
29186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29187   (exit $ac_status); } && {
29188          test -z "$ac_c_werror_flag" ||
29189          test ! -s conftest.err
29190        } && test -s conftest.$ac_objext; then
29191   ac_header_compiler=yes
29192 else
29193   echo "$as_me: failed program was:" >&5
29194 sed 's/^/| /' conftest.$ac_ext >&5
29195
29196         ac_header_compiler=no
29197 fi
29198
29199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29200 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29201 echo "${ECHO_T}$ac_header_compiler" >&6; }
29202
29203 # Is the header present?
29204 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29205 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29206 cat >conftest.$ac_ext <<_ACEOF
29207 /* confdefs.h.  */
29208 _ACEOF
29209 cat confdefs.h >>conftest.$ac_ext
29210 cat >>conftest.$ac_ext <<_ACEOF
29211 /* end confdefs.h.  */
29212 #include <$ac_header>
29213 _ACEOF
29214 if { (ac_try="$ac_cpp conftest.$ac_ext"
29215 case "(($ac_try" in
29216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29217   *) ac_try_echo=$ac_try;;
29218 esac
29219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29220   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29221   ac_status=$?
29222   grep -v '^ *+' conftest.er1 >conftest.err
29223   rm -f conftest.er1
29224   cat conftest.err >&5
29225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29226   (exit $ac_status); } >/dev/null && {
29227          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29228          test ! -s conftest.err
29229        }; then
29230   ac_header_preproc=yes
29231 else
29232   echo "$as_me: failed program was:" >&5
29233 sed 's/^/| /' conftest.$ac_ext >&5
29234
29235   ac_header_preproc=no
29236 fi
29237
29238 rm -f conftest.err conftest.$ac_ext
29239 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29240 echo "${ECHO_T}$ac_header_preproc" >&6; }
29241
29242 # So?  What about this header?
29243 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29244   yes:no: )
29245     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29246 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29247     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29248 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29249     ac_header_preproc=yes
29250     ;;
29251   no:yes:* )
29252     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29253 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29254     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29255 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29256     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29257 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29258     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29259 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29260     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29261 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29262     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29263 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29264     ( cat <<\_ASBOX
29265 ## ------------------------------ ##
29266 ## Report this to bug-tar@gnu.org ##
29267 ## ------------------------------ ##
29268 _ASBOX
29269      ) | sed "s/^/$as_me: WARNING:     /" >&2
29270     ;;
29271 esac
29272 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29273 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29274 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29275   echo $ECHO_N "(cached) $ECHO_C" >&6
29276 else
29277   eval "$as_ac_Header=\$ac_header_preproc"
29278 fi
29279 ac_res=`eval echo '${'$as_ac_Header'}'`
29280                { echo "$as_me:$LINENO: result: $ac_res" >&5
29281 echo "${ECHO_T}$ac_res" >&6; }
29282
29283 fi
29284 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29285   cat >>confdefs.h <<_ACEOF
29286 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29287 _ACEOF
29288
29289 fi
29290
29291 done
29292
29293     { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
29294 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
29295   if test "${gl_cv_size_max+set}" = set; then
29296   echo $ECHO_N "(cached) $ECHO_C" >&6
29297 else
29298
29299     gl_cv_size_max=
29300     cat >conftest.$ac_ext <<_ACEOF
29301 /* confdefs.h.  */
29302 _ACEOF
29303 cat confdefs.h >>conftest.$ac_ext
29304 cat >>conftest.$ac_ext <<_ACEOF
29305 /* end confdefs.h.  */
29306
29307 #include <limits.h>
29308 #if HAVE_STDINT_H
29309 #include <stdint.h>
29310 #endif
29311 #ifdef SIZE_MAX
29312 Found it
29313 #endif
29314
29315 _ACEOF
29316 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29317   $EGREP "Found it" >/dev/null 2>&1; then
29318   gl_cv_size_max=yes
29319 fi
29320 rm -f conftest*
29321
29322     if test -z "$gl_cv_size_max"; then
29323                         if test "$cross_compiling" = yes; then
29324   # Depending upon the size, compute the lo and hi bounds.
29325 cat >conftest.$ac_ext <<_ACEOF
29326 /* confdefs.h.  */
29327 _ACEOF
29328 cat confdefs.h >>conftest.$ac_ext
29329 cat >>conftest.$ac_ext <<_ACEOF
29330 /* end confdefs.h.  */
29331 #include <stddef.h>
29332 #include <limits.h>
29333 int
29334 main ()
29335 {
29336 static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= 0)];
29337 test_array [0] = 0
29338
29339   ;
29340   return 0;
29341 }
29342 _ACEOF
29343 rm -f conftest.$ac_objext
29344 if { (ac_try="$ac_compile"
29345 case "(($ac_try" in
29346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29347   *) ac_try_echo=$ac_try;;
29348 esac
29349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29350   (eval "$ac_compile") 2>conftest.er1
29351   ac_status=$?
29352   grep -v '^ *+' conftest.er1 >conftest.err
29353   rm -f conftest.er1
29354   cat conftest.err >&5
29355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29356   (exit $ac_status); } && {
29357          test -z "$ac_c_werror_flag" ||
29358          test ! -s conftest.err
29359        } && test -s conftest.$ac_objext; then
29360   ac_lo=0 ac_mid=0
29361   while :; do
29362     cat >conftest.$ac_ext <<_ACEOF
29363 /* confdefs.h.  */
29364 _ACEOF
29365 cat confdefs.h >>conftest.$ac_ext
29366 cat >>conftest.$ac_ext <<_ACEOF
29367 /* end confdefs.h.  */
29368 #include <stddef.h>
29369 #include <limits.h>
29370 int
29371 main ()
29372 {
29373 static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)];
29374 test_array [0] = 0
29375
29376   ;
29377   return 0;
29378 }
29379 _ACEOF
29380 rm -f conftest.$ac_objext
29381 if { (ac_try="$ac_compile"
29382 case "(($ac_try" in
29383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29384   *) ac_try_echo=$ac_try;;
29385 esac
29386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29387   (eval "$ac_compile") 2>conftest.er1
29388   ac_status=$?
29389   grep -v '^ *+' conftest.er1 >conftest.err
29390   rm -f conftest.er1
29391   cat conftest.err >&5
29392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29393   (exit $ac_status); } && {
29394          test -z "$ac_c_werror_flag" ||
29395          test ! -s conftest.err
29396        } && test -s conftest.$ac_objext; then
29397   ac_hi=$ac_mid; break
29398 else
29399   echo "$as_me: failed program was:" >&5
29400 sed 's/^/| /' conftest.$ac_ext >&5
29401
29402         ac_lo=`expr $ac_mid + 1`
29403                         if test $ac_lo -le $ac_mid; then
29404                           ac_lo= ac_hi=
29405                           break
29406                         fi
29407                         ac_mid=`expr 2 '*' $ac_mid + 1`
29408 fi
29409
29410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29411   done
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 <stddef.h>
29423 #include <limits.h>
29424 int
29425 main ()
29426 {
29427 static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) < 0)];
29428 test_array [0] = 0
29429
29430   ;
29431   return 0;
29432 }
29433 _ACEOF
29434 rm -f conftest.$ac_objext
29435 if { (ac_try="$ac_compile"
29436 case "(($ac_try" in
29437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29438   *) ac_try_echo=$ac_try;;
29439 esac
29440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29441   (eval "$ac_compile") 2>conftest.er1
29442   ac_status=$?
29443   grep -v '^ *+' conftest.er1 >conftest.err
29444   rm -f conftest.er1
29445   cat conftest.err >&5
29446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29447   (exit $ac_status); } && {
29448          test -z "$ac_c_werror_flag" ||
29449          test ! -s conftest.err
29450        } && test -s conftest.$ac_objext; then
29451   ac_hi=-1 ac_mid=-1
29452   while :; do
29453     cat >conftest.$ac_ext <<_ACEOF
29454 /* confdefs.h.  */
29455 _ACEOF
29456 cat confdefs.h >>conftest.$ac_ext
29457 cat >>conftest.$ac_ext <<_ACEOF
29458 /* end confdefs.h.  */
29459 #include <stddef.h>
29460 #include <limits.h>
29461 int
29462 main ()
29463 {
29464 static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= $ac_mid)];
29465 test_array [0] = 0
29466
29467   ;
29468   return 0;
29469 }
29470 _ACEOF
29471 rm -f conftest.$ac_objext
29472 if { (ac_try="$ac_compile"
29473 case "(($ac_try" in
29474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29475   *) ac_try_echo=$ac_try;;
29476 esac
29477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29478   (eval "$ac_compile") 2>conftest.er1
29479   ac_status=$?
29480   grep -v '^ *+' conftest.er1 >conftest.err
29481   rm -f conftest.er1
29482   cat conftest.err >&5
29483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29484   (exit $ac_status); } && {
29485          test -z "$ac_c_werror_flag" ||
29486          test ! -s conftest.err
29487        } && test -s conftest.$ac_objext; then
29488   ac_lo=$ac_mid; break
29489 else
29490   echo "$as_me: failed program was:" >&5
29491 sed 's/^/| /' conftest.$ac_ext >&5
29492
29493         ac_hi=`expr '(' $ac_mid ')' - 1`
29494                         if test $ac_mid -le $ac_hi; then
29495                           ac_lo= ac_hi=
29496                           break
29497                         fi
29498                         ac_mid=`expr 2 '*' $ac_mid`
29499 fi
29500
29501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29502   done
29503 else
29504   echo "$as_me: failed program was:" >&5
29505 sed 's/^/| /' conftest.$ac_ext >&5
29506
29507         ac_lo= ac_hi=
29508 fi
29509
29510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29511 fi
29512
29513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29514 # Binary search between lo and hi bounds.
29515 while test "x$ac_lo" != "x$ac_hi"; do
29516   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
29517   cat >conftest.$ac_ext <<_ACEOF
29518 /* confdefs.h.  */
29519 _ACEOF
29520 cat confdefs.h >>conftest.$ac_ext
29521 cat >>conftest.$ac_ext <<_ACEOF
29522 /* end confdefs.h.  */
29523 #include <stddef.h>
29524 #include <limits.h>
29525 int
29526 main ()
29527 {
29528 static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)];
29529 test_array [0] = 0
29530
29531   ;
29532   return 0;
29533 }
29534 _ACEOF
29535 rm -f conftest.$ac_objext
29536 if { (ac_try="$ac_compile"
29537 case "(($ac_try" in
29538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29539   *) ac_try_echo=$ac_try;;
29540 esac
29541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29542   (eval "$ac_compile") 2>conftest.er1
29543   ac_status=$?
29544   grep -v '^ *+' conftest.er1 >conftest.err
29545   rm -f conftest.er1
29546   cat conftest.err >&5
29547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29548   (exit $ac_status); } && {
29549          test -z "$ac_c_werror_flag" ||
29550          test ! -s conftest.err
29551        } && test -s conftest.$ac_objext; then
29552   ac_hi=$ac_mid
29553 else
29554   echo "$as_me: failed program was:" >&5
29555 sed 's/^/| /' conftest.$ac_ext >&5
29556
29557         ac_lo=`expr '(' $ac_mid ')' + 1`
29558 fi
29559
29560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29561 done
29562 case $ac_lo in
29563 ?*) size_t_bits_minus_1=$ac_lo;;
29564 '') size_t_bits_minus_1= ;;
29565 esac
29566 else
29567   cat >conftest.$ac_ext <<_ACEOF
29568 /* confdefs.h.  */
29569 _ACEOF
29570 cat confdefs.h >>conftest.$ac_ext
29571 cat >>conftest.$ac_ext <<_ACEOF
29572 /* end confdefs.h.  */
29573 #include <stddef.h>
29574 #include <limits.h>
29575 static long int longval () { return sizeof (size_t) * CHAR_BIT - 1; }
29576 static unsigned long int ulongval () { return sizeof (size_t) * CHAR_BIT - 1; }
29577 #include <stdio.h>
29578 #include <stdlib.h>
29579 int
29580 main ()
29581 {
29582
29583   FILE *f = fopen ("conftest.val", "w");
29584   if (! f)
29585     return 1;
29586   if ((sizeof (size_t) * CHAR_BIT - 1) < 0)
29587     {
29588       long int i = longval ();
29589       if (i != (sizeof (size_t) * CHAR_BIT - 1))
29590         return 1;
29591       fprintf (f, "%ld\n", i);
29592     }
29593   else
29594     {
29595       unsigned long int i = ulongval ();
29596       if (i != (sizeof (size_t) * CHAR_BIT - 1))
29597         return 1;
29598       fprintf (f, "%lu\n", i);
29599     }
29600   return ferror (f) || fclose (f) != 0;
29601
29602   ;
29603   return 0;
29604 }
29605 _ACEOF
29606 rm -f conftest$ac_exeext
29607 if { (ac_try="$ac_link"
29608 case "(($ac_try" in
29609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29610   *) ac_try_echo=$ac_try;;
29611 esac
29612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29613   (eval "$ac_link") 2>&5
29614   ac_status=$?
29615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29616   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29617   { (case "(($ac_try" in
29618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29619   *) ac_try_echo=$ac_try;;
29620 esac
29621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29622   (eval "$ac_try") 2>&5
29623   ac_status=$?
29624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29625   (exit $ac_status); }; }; then
29626   size_t_bits_minus_1=`cat conftest.val`
29627 else
29628   echo "$as_me: program exited with status $ac_status" >&5
29629 echo "$as_me: failed program was:" >&5
29630 sed 's/^/| /' conftest.$ac_ext >&5
29631
29632 ( exit $ac_status )
29633 size_t_bits_minus_1=
29634 fi
29635 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29636 fi
29637 rm -f conftest.val
29638       if test "$cross_compiling" = yes; then
29639   # Depending upon the size, compute the lo and hi bounds.
29640 cat >conftest.$ac_ext <<_ACEOF
29641 /* confdefs.h.  */
29642 _ACEOF
29643 cat confdefs.h >>conftest.$ac_ext
29644 cat >>conftest.$ac_ext <<_ACEOF
29645 /* end confdefs.h.  */
29646 #include <stddef.h>
29647 int
29648 main ()
29649 {
29650 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
29651 test_array [0] = 0
29652
29653   ;
29654   return 0;
29655 }
29656 _ACEOF
29657 rm -f conftest.$ac_objext
29658 if { (ac_try="$ac_compile"
29659 case "(($ac_try" in
29660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29661   *) ac_try_echo=$ac_try;;
29662 esac
29663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29664   (eval "$ac_compile") 2>conftest.er1
29665   ac_status=$?
29666   grep -v '^ *+' conftest.er1 >conftest.err
29667   rm -f conftest.er1
29668   cat conftest.err >&5
29669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29670   (exit $ac_status); } && {
29671          test -z "$ac_c_werror_flag" ||
29672          test ! -s conftest.err
29673        } && test -s conftest.$ac_objext; then
29674   ac_lo=0 ac_mid=0
29675   while :; do
29676     cat >conftest.$ac_ext <<_ACEOF
29677 /* confdefs.h.  */
29678 _ACEOF
29679 cat confdefs.h >>conftest.$ac_ext
29680 cat >>conftest.$ac_ext <<_ACEOF
29681 /* end confdefs.h.  */
29682 #include <stddef.h>
29683 int
29684 main ()
29685 {
29686 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
29687 test_array [0] = 0
29688
29689   ;
29690   return 0;
29691 }
29692 _ACEOF
29693 rm -f conftest.$ac_objext
29694 if { (ac_try="$ac_compile"
29695 case "(($ac_try" in
29696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29697   *) ac_try_echo=$ac_try;;
29698 esac
29699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29700   (eval "$ac_compile") 2>conftest.er1
29701   ac_status=$?
29702   grep -v '^ *+' conftest.er1 >conftest.err
29703   rm -f conftest.er1
29704   cat conftest.err >&5
29705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29706   (exit $ac_status); } && {
29707          test -z "$ac_c_werror_flag" ||
29708          test ! -s conftest.err
29709        } && test -s conftest.$ac_objext; then
29710   ac_hi=$ac_mid; break
29711 else
29712   echo "$as_me: failed program was:" >&5
29713 sed 's/^/| /' conftest.$ac_ext >&5
29714
29715         ac_lo=`expr $ac_mid + 1`
29716                         if test $ac_lo -le $ac_mid; then
29717                           ac_lo= ac_hi=
29718                           break
29719                         fi
29720                         ac_mid=`expr 2 '*' $ac_mid + 1`
29721 fi
29722
29723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29724   done
29725 else
29726   echo "$as_me: failed program was:" >&5
29727 sed 's/^/| /' conftest.$ac_ext >&5
29728
29729         cat >conftest.$ac_ext <<_ACEOF
29730 /* confdefs.h.  */
29731 _ACEOF
29732 cat confdefs.h >>conftest.$ac_ext
29733 cat >>conftest.$ac_ext <<_ACEOF
29734 /* end confdefs.h.  */
29735 #include <stddef.h>
29736 int
29737 main ()
29738 {
29739 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
29740 test_array [0] = 0
29741
29742   ;
29743   return 0;
29744 }
29745 _ACEOF
29746 rm -f conftest.$ac_objext
29747 if { (ac_try="$ac_compile"
29748 case "(($ac_try" in
29749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29750   *) ac_try_echo=$ac_try;;
29751 esac
29752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29753   (eval "$ac_compile") 2>conftest.er1
29754   ac_status=$?
29755   grep -v '^ *+' conftest.er1 >conftest.err
29756   rm -f conftest.er1
29757   cat conftest.err >&5
29758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29759   (exit $ac_status); } && {
29760          test -z "$ac_c_werror_flag" ||
29761          test ! -s conftest.err
29762        } && test -s conftest.$ac_objext; then
29763   ac_hi=-1 ac_mid=-1
29764   while :; do
29765     cat >conftest.$ac_ext <<_ACEOF
29766 /* confdefs.h.  */
29767 _ACEOF
29768 cat confdefs.h >>conftest.$ac_ext
29769 cat >>conftest.$ac_ext <<_ACEOF
29770 /* end confdefs.h.  */
29771 #include <stddef.h>
29772 int
29773 main ()
29774 {
29775 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
29776 test_array [0] = 0
29777
29778   ;
29779   return 0;
29780 }
29781 _ACEOF
29782 rm -f conftest.$ac_objext
29783 if { (ac_try="$ac_compile"
29784 case "(($ac_try" in
29785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29786   *) ac_try_echo=$ac_try;;
29787 esac
29788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29789   (eval "$ac_compile") 2>conftest.er1
29790   ac_status=$?
29791   grep -v '^ *+' conftest.er1 >conftest.err
29792   rm -f conftest.er1
29793   cat conftest.err >&5
29794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29795   (exit $ac_status); } && {
29796          test -z "$ac_c_werror_flag" ||
29797          test ! -s conftest.err
29798        } && test -s conftest.$ac_objext; then
29799   ac_lo=$ac_mid; break
29800 else
29801   echo "$as_me: failed program was:" >&5
29802 sed 's/^/| /' conftest.$ac_ext >&5
29803
29804         ac_hi=`expr '(' $ac_mid ')' - 1`
29805                         if test $ac_mid -le $ac_hi; then
29806                           ac_lo= ac_hi=
29807                           break
29808                         fi
29809                         ac_mid=`expr 2 '*' $ac_mid`
29810 fi
29811
29812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29813   done
29814 else
29815   echo "$as_me: failed program was:" >&5
29816 sed 's/^/| /' conftest.$ac_ext >&5
29817
29818         ac_lo= ac_hi=
29819 fi
29820
29821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29822 fi
29823
29824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29825 # Binary search between lo and hi bounds.
29826 while test "x$ac_lo" != "x$ac_hi"; do
29827   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
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 <stddef.h>
29835 int
29836 main ()
29837 {
29838 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
29839 test_array [0] = 0
29840
29841   ;
29842   return 0;
29843 }
29844 _ACEOF
29845 rm -f conftest.$ac_objext
29846 if { (ac_try="$ac_compile"
29847 case "(($ac_try" in
29848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29849   *) ac_try_echo=$ac_try;;
29850 esac
29851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29852   (eval "$ac_compile") 2>conftest.er1
29853   ac_status=$?
29854   grep -v '^ *+' conftest.er1 >conftest.err
29855   rm -f conftest.er1
29856   cat conftest.err >&5
29857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29858   (exit $ac_status); } && {
29859          test -z "$ac_c_werror_flag" ||
29860          test ! -s conftest.err
29861        } && test -s conftest.$ac_objext; then
29862   ac_hi=$ac_mid
29863 else
29864   echo "$as_me: failed program was:" >&5
29865 sed 's/^/| /' conftest.$ac_ext >&5
29866
29867         ac_lo=`expr '(' $ac_mid ')' + 1`
29868 fi
29869
29870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29871 done
29872 case $ac_lo in
29873 ?*) fits_in_uint=$ac_lo;;
29874 '') fits_in_uint= ;;
29875 esac
29876 else
29877   cat >conftest.$ac_ext <<_ACEOF
29878 /* confdefs.h.  */
29879 _ACEOF
29880 cat confdefs.h >>conftest.$ac_ext
29881 cat >>conftest.$ac_ext <<_ACEOF
29882 /* end confdefs.h.  */
29883 #include <stddef.h>
29884 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
29885 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
29886 #include <stdio.h>
29887 #include <stdlib.h>
29888 int
29889 main ()
29890 {
29891
29892   FILE *f = fopen ("conftest.val", "w");
29893   if (! f)
29894     return 1;
29895   if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
29896     {
29897       long int i = longval ();
29898       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
29899         return 1;
29900       fprintf (f, "%ld\n", i);
29901     }
29902   else
29903     {
29904       unsigned long int i = ulongval ();
29905       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
29906         return 1;
29907       fprintf (f, "%lu\n", i);
29908     }
29909   return ferror (f) || fclose (f) != 0;
29910
29911   ;
29912   return 0;
29913 }
29914 _ACEOF
29915 rm -f conftest$ac_exeext
29916 if { (ac_try="$ac_link"
29917 case "(($ac_try" in
29918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29919   *) ac_try_echo=$ac_try;;
29920 esac
29921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29922   (eval "$ac_link") 2>&5
29923   ac_status=$?
29924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29925   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29926   { (case "(($ac_try" in
29927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29928   *) ac_try_echo=$ac_try;;
29929 esac
29930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29931   (eval "$ac_try") 2>&5
29932   ac_status=$?
29933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29934   (exit $ac_status); }; }; then
29935   fits_in_uint=`cat conftest.val`
29936 else
29937   echo "$as_me: program exited with status $ac_status" >&5
29938 echo "$as_me: failed program was:" >&5
29939 sed 's/^/| /' conftest.$ac_ext >&5
29940
29941 ( exit $ac_status )
29942 fits_in_uint=
29943 fi
29944 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29945 fi
29946 rm -f conftest.val
29947       if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
29948         if test $fits_in_uint = 1; then
29949                               cat >conftest.$ac_ext <<_ACEOF
29950 /* confdefs.h.  */
29951 _ACEOF
29952 cat confdefs.h >>conftest.$ac_ext
29953 cat >>conftest.$ac_ext <<_ACEOF
29954 /* end confdefs.h.  */
29955 #include <stddef.h>
29956             extern size_t foo;
29957             extern unsigned long foo;
29958
29959 int
29960 main ()
29961 {
29962
29963   ;
29964   return 0;
29965 }
29966 _ACEOF
29967 rm -f conftest.$ac_objext
29968 if { (ac_try="$ac_compile"
29969 case "(($ac_try" in
29970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29971   *) ac_try_echo=$ac_try;;
29972 esac
29973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29974   (eval "$ac_compile") 2>conftest.er1
29975   ac_status=$?
29976   grep -v '^ *+' conftest.er1 >conftest.err
29977   rm -f conftest.er1
29978   cat conftest.err >&5
29979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29980   (exit $ac_status); } && {
29981          test -z "$ac_c_werror_flag" ||
29982          test ! -s conftest.err
29983        } && test -s conftest.$ac_objext; then
29984   fits_in_uint=0
29985 else
29986   echo "$as_me: failed program was:" >&5
29987 sed 's/^/| /' conftest.$ac_ext >&5
29988
29989
29990 fi
29991
29992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29993         fi
29994                                 if test $fits_in_uint = 1; then
29995           gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
29996         else
29997           gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
29998         fi
29999       else
30000                 gl_cv_size_max='((size_t)~(size_t)0)'
30001       fi
30002     fi
30003
30004 fi
30005
30006   { echo "$as_me:$LINENO: result: $gl_cv_size_max" >&5
30007 echo "${ECHO_T}$gl_cv_size_max" >&6; }
30008   if test "$gl_cv_size_max" != yes; then
30009
30010 cat >>confdefs.h <<_ACEOF
30011 #define SIZE_MAX $gl_cv_size_max
30012 _ACEOF
30013
30014   fi
30015
30016
30017
30018             { echo "$as_me:$LINENO: checking whether sleep is declared" >&5
30019 echo $ECHO_N "checking whether sleep is declared... $ECHO_C" >&6; }
30020 if test "${ac_cv_have_decl_sleep+set}" = set; then
30021   echo $ECHO_N "(cached) $ECHO_C" >&6
30022 else
30023   cat >conftest.$ac_ext <<_ACEOF
30024 /* confdefs.h.  */
30025 _ACEOF
30026 cat confdefs.h >>conftest.$ac_ext
30027 cat >>conftest.$ac_ext <<_ACEOF
30028 /* end confdefs.h.  */
30029 #include <unistd.h>
30030
30031 int
30032 main ()
30033 {
30034 #ifndef sleep
30035   (void) sleep;
30036 #endif
30037
30038   ;
30039   return 0;
30040 }
30041 _ACEOF
30042 rm -f conftest.$ac_objext
30043 if { (ac_try="$ac_compile"
30044 case "(($ac_try" in
30045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30046   *) ac_try_echo=$ac_try;;
30047 esac
30048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30049   (eval "$ac_compile") 2>conftest.er1
30050   ac_status=$?
30051   grep -v '^ *+' conftest.er1 >conftest.err
30052   rm -f conftest.er1
30053   cat conftest.err >&5
30054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30055   (exit $ac_status); } && {
30056          test -z "$ac_c_werror_flag" ||
30057          test ! -s conftest.err
30058        } && test -s conftest.$ac_objext; then
30059   ac_cv_have_decl_sleep=yes
30060 else
30061   echo "$as_me: failed program was:" >&5
30062 sed 's/^/| /' conftest.$ac_ext >&5
30063
30064         ac_cv_have_decl_sleep=no
30065 fi
30066
30067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30068 fi
30069 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sleep" >&5
30070 echo "${ECHO_T}$ac_cv_have_decl_sleep" >&6; }
30071 if test $ac_cv_have_decl_sleep = yes; then
30072
30073 cat >>confdefs.h <<_ACEOF
30074 #define HAVE_DECL_SLEEP 1
30075 _ACEOF
30076
30077
30078 else
30079   cat >>confdefs.h <<_ACEOF
30080 #define HAVE_DECL_SLEEP 0
30081 _ACEOF
30082
30083
30084 fi
30085
30086
30087   if test $ac_cv_have_decl_sleep != yes; then
30088     HAVE_SLEEP=0
30089
30090
30091
30092
30093
30094
30095
30096
30097   gl_LIBOBJS="$gl_LIBOBJS sleep.$ac_objext"
30098
30099     :
30100   fi
30101
30102
30103
30104   GNULIB_SLEEP=1
30105
30106
30107
30108   gl_cv_func_snprintf_usable=no
30109
30110 for ac_func in snprintf
30111 do
30112 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30113 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30114 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30115 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30116   echo $ECHO_N "(cached) $ECHO_C" >&6
30117 else
30118   cat >conftest.$ac_ext <<_ACEOF
30119 /* confdefs.h.  */
30120 _ACEOF
30121 cat confdefs.h >>conftest.$ac_ext
30122 cat >>conftest.$ac_ext <<_ACEOF
30123 /* end confdefs.h.  */
30124 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30125    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30126 #define $ac_func innocuous_$ac_func
30127
30128 /* System header to define __stub macros and hopefully few prototypes,
30129     which can conflict with char $ac_func (); below.
30130     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30131     <limits.h> exists even on freestanding compilers.  */
30132
30133 #ifdef __STDC__
30134 # include <limits.h>
30135 #else
30136 # include <assert.h>
30137 #endif
30138
30139 #undef $ac_func
30140
30141 /* Override any GCC internal prototype to avoid an error.
30142    Use char because int might match the return type of a GCC
30143    builtin and then its argument prototype would still apply.  */
30144 #ifdef __cplusplus
30145 extern "C"
30146 #endif
30147 char $ac_func ();
30148 /* The GNU C library defines this for functions which it implements
30149     to always fail with ENOSYS.  Some functions are actually named
30150     something starting with __ and the normal name is an alias.  */
30151 #if defined __stub_$ac_func || defined __stub___$ac_func
30152 choke me
30153 #endif
30154
30155 int
30156 main ()
30157 {
30158 return $ac_func ();
30159   ;
30160   return 0;
30161 }
30162 _ACEOF
30163 rm -f conftest.$ac_objext conftest$ac_exeext
30164 if { (ac_try="$ac_link"
30165 case "(($ac_try" in
30166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30167   *) ac_try_echo=$ac_try;;
30168 esac
30169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30170   (eval "$ac_link") 2>conftest.er1
30171   ac_status=$?
30172   grep -v '^ *+' conftest.er1 >conftest.err
30173   rm -f conftest.er1
30174   cat conftest.err >&5
30175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30176   (exit $ac_status); } && {
30177          test -z "$ac_c_werror_flag" ||
30178          test ! -s conftest.err
30179        } && test -s conftest$ac_exeext &&
30180        $as_test_x conftest$ac_exeext; then
30181   eval "$as_ac_var=yes"
30182 else
30183   echo "$as_me: failed program was:" >&5
30184 sed 's/^/| /' conftest.$ac_ext >&5
30185
30186         eval "$as_ac_var=no"
30187 fi
30188
30189 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30190       conftest$ac_exeext conftest.$ac_ext
30191 fi
30192 ac_res=`eval echo '${'$as_ac_var'}'`
30193                { echo "$as_me:$LINENO: result: $ac_res" >&5
30194 echo "${ECHO_T}$ac_res" >&6; }
30195 if test `eval echo '${'$as_ac_var'}'` = yes; then
30196   cat >>confdefs.h <<_ACEOF
30197 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30198 _ACEOF
30199
30200 fi
30201 done
30202
30203   if test $ac_cv_func_snprintf = yes; then
30204
30205
30206   { echo "$as_me:$LINENO: checking whether snprintf respects a size of 1" >&5
30207 echo $ECHO_N "checking whether snprintf respects a size of 1... $ECHO_C" >&6; }
30208 if test "${gl_cv_func_snprintf_size1+set}" = set; then
30209   echo $ECHO_N "(cached) $ECHO_C" >&6
30210 else
30211
30212       if test "$cross_compiling" = yes; then
30213   gl_cv_func_snprintf_size1="guessing yes"
30214 else
30215   cat >conftest.$ac_ext <<_ACEOF
30216 /* confdefs.h.  */
30217 _ACEOF
30218 cat confdefs.h >>conftest.$ac_ext
30219 cat >>conftest.$ac_ext <<_ACEOF
30220 /* end confdefs.h.  */
30221
30222 #include <stdio.h>
30223 int main()
30224 {
30225   static char buf[8] = { 'D', 'E', 'A', 'D', 'B', 'E', 'E', 'F' };
30226   snprintf (buf, 1, "%d", 12345);
30227   return buf[1] != 'E';
30228 }
30229 _ACEOF
30230 rm -f conftest$ac_exeext
30231 if { (ac_try="$ac_link"
30232 case "(($ac_try" in
30233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30234   *) ac_try_echo=$ac_try;;
30235 esac
30236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30237   (eval "$ac_link") 2>&5
30238   ac_status=$?
30239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30240   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30241   { (case "(($ac_try" in
30242   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30243   *) ac_try_echo=$ac_try;;
30244 esac
30245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30246   (eval "$ac_try") 2>&5
30247   ac_status=$?
30248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30249   (exit $ac_status); }; }; then
30250   gl_cv_func_snprintf_size1=yes
30251 else
30252   echo "$as_me: program exited with status $ac_status" >&5
30253 echo "$as_me: failed program was:" >&5
30254 sed 's/^/| /' conftest.$ac_ext >&5
30255
30256 ( exit $ac_status )
30257 gl_cv_func_snprintf_size1=no
30258 fi
30259 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30260 fi
30261
30262
30263
30264 fi
30265 { echo "$as_me:$LINENO: result: $gl_cv_func_snprintf_size1" >&5
30266 echo "${ECHO_T}$gl_cv_func_snprintf_size1" >&6; }
30267
30268     case "$gl_cv_func_snprintf_size1" in
30269       *yes)
30270         gl_cv_func_snprintf_usable=yes
30271         ;;
30272     esac
30273   fi
30274   if test $gl_cv_func_snprintf_usable = no; then
30275
30276
30277
30278
30279
30280
30281
30282
30283
30284
30285   gl_LIBOBJS="$gl_LIBOBJS snprintf.$ac_objext"
30286
30287   if test $ac_cv_func_snprintf = yes; then
30288     REPLACE_SNPRINTF=1
30289   fi
30290   :
30291
30292   fi
30293
30294
30295
30296
30297   if test $ac_cv_have_decl_snprintf = no; then
30298     HAVE_DECL_SNPRINTF=0
30299   fi
30300
30301
30302
30303   GNULIB_SNPRINTF=1
30304
30305
30306   { echo "$as_me:$LINENO: checking for ssize_t" >&5
30307 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
30308 if test "${gt_cv_ssize_t+set}" = set; then
30309   echo $ECHO_N "(cached) $ECHO_C" >&6
30310 else
30311   cat >conftest.$ac_ext <<_ACEOF
30312 /* confdefs.h.  */
30313 _ACEOF
30314 cat confdefs.h >>conftest.$ac_ext
30315 cat >>conftest.$ac_ext <<_ACEOF
30316 /* end confdefs.h.  */
30317 #include <sys/types.h>
30318 int
30319 main ()
30320 {
30321 int x = sizeof (ssize_t *) + sizeof (ssize_t);
30322         return !x;
30323   ;
30324   return 0;
30325 }
30326 _ACEOF
30327 rm -f conftest.$ac_objext
30328 if { (ac_try="$ac_compile"
30329 case "(($ac_try" in
30330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30331   *) ac_try_echo=$ac_try;;
30332 esac
30333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30334   (eval "$ac_compile") 2>conftest.er1
30335   ac_status=$?
30336   grep -v '^ *+' conftest.er1 >conftest.err
30337   rm -f conftest.er1
30338   cat conftest.err >&5
30339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30340   (exit $ac_status); } && {
30341          test -z "$ac_c_werror_flag" ||
30342          test ! -s conftest.err
30343        } && test -s conftest.$ac_objext; then
30344   gt_cv_ssize_t=yes
30345 else
30346   echo "$as_me: failed program was:" >&5
30347 sed 's/^/| /' conftest.$ac_ext >&5
30348
30349         gt_cv_ssize_t=no
30350 fi
30351
30352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30353 fi
30354 { echo "$as_me:$LINENO: result: $gt_cv_ssize_t" >&5
30355 echo "${ECHO_T}$gt_cv_ssize_t" >&6; }
30356   if test $gt_cv_ssize_t = no; then
30357
30358 cat >>confdefs.h <<\_ACEOF
30359 #define ssize_t int
30360 _ACEOF
30361
30362   fi
30363
30364
30365
30366
30367
30368
30369
30370
30371
30372
30373
30374   { echo "$as_me:$LINENO: checking for struct stat.st_atim.tv_nsec" >&5
30375 echo $ECHO_N "checking for struct stat.st_atim.tv_nsec... $ECHO_C" >&6; }
30376 if test "${ac_cv_member_struct_stat_st_atim_tv_nsec+set}" = set; then
30377   echo $ECHO_N "(cached) $ECHO_C" >&6
30378 else
30379   cat >conftest.$ac_ext <<_ACEOF
30380 /* confdefs.h.  */
30381 _ACEOF
30382 cat confdefs.h >>conftest.$ac_ext
30383 cat >>conftest.$ac_ext <<_ACEOF
30384 /* end confdefs.h.  */
30385 #include <sys/types.h>
30386      #include <sys/stat.h>
30387
30388 int
30389 main ()
30390 {
30391 static struct stat ac_aggr;
30392 if (ac_aggr.st_atim.tv_nsec)
30393 return 0;
30394   ;
30395   return 0;
30396 }
30397 _ACEOF
30398 rm -f conftest.$ac_objext
30399 if { (ac_try="$ac_compile"
30400 case "(($ac_try" in
30401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30402   *) ac_try_echo=$ac_try;;
30403 esac
30404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30405   (eval "$ac_compile") 2>conftest.er1
30406   ac_status=$?
30407   grep -v '^ *+' conftest.er1 >conftest.err
30408   rm -f conftest.er1
30409   cat conftest.err >&5
30410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30411   (exit $ac_status); } && {
30412          test -z "$ac_c_werror_flag" ||
30413          test ! -s conftest.err
30414        } && test -s conftest.$ac_objext; then
30415   ac_cv_member_struct_stat_st_atim_tv_nsec=yes
30416 else
30417   echo "$as_me: failed program was:" >&5
30418 sed 's/^/| /' conftest.$ac_ext >&5
30419
30420         cat >conftest.$ac_ext <<_ACEOF
30421 /* confdefs.h.  */
30422 _ACEOF
30423 cat confdefs.h >>conftest.$ac_ext
30424 cat >>conftest.$ac_ext <<_ACEOF
30425 /* end confdefs.h.  */
30426 #include <sys/types.h>
30427      #include <sys/stat.h>
30428
30429 int
30430 main ()
30431 {
30432 static struct stat ac_aggr;
30433 if (sizeof ac_aggr.st_atim.tv_nsec)
30434 return 0;
30435   ;
30436   return 0;
30437 }
30438 _ACEOF
30439 rm -f conftest.$ac_objext
30440 if { (ac_try="$ac_compile"
30441 case "(($ac_try" in
30442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30443   *) ac_try_echo=$ac_try;;
30444 esac
30445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30446   (eval "$ac_compile") 2>conftest.er1
30447   ac_status=$?
30448   grep -v '^ *+' conftest.er1 >conftest.err
30449   rm -f conftest.er1
30450   cat conftest.err >&5
30451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30452   (exit $ac_status); } && {
30453          test -z "$ac_c_werror_flag" ||
30454          test ! -s conftest.err
30455        } && test -s conftest.$ac_objext; then
30456   ac_cv_member_struct_stat_st_atim_tv_nsec=yes
30457 else
30458   echo "$as_me: failed program was:" >&5
30459 sed 's/^/| /' conftest.$ac_ext >&5
30460
30461         ac_cv_member_struct_stat_st_atim_tv_nsec=no
30462 fi
30463
30464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30465 fi
30466
30467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30468 fi
30469 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_atim_tv_nsec" >&5
30470 echo "${ECHO_T}$ac_cv_member_struct_stat_st_atim_tv_nsec" >&6; }
30471 if test $ac_cv_member_struct_stat_st_atim_tv_nsec = yes; then
30472
30473 cat >>confdefs.h <<_ACEOF
30474 #define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1
30475 _ACEOF
30476
30477 { echo "$as_me:$LINENO: checking whether struct stat.st_atim is of type struct timespec" >&5
30478 echo $ECHO_N "checking whether struct stat.st_atim is of type struct timespec... $ECHO_C" >&6; }
30479 if test "${ac_cv_typeof_struct_stat_st_atim_is_struct_timespec+set}" = set; then
30480   echo $ECHO_N "(cached) $ECHO_C" >&6
30481 else
30482   cat >conftest.$ac_ext <<_ACEOF
30483 /* confdefs.h.  */
30484 _ACEOF
30485 cat confdefs.h >>conftest.$ac_ext
30486 cat >>conftest.$ac_ext <<_ACEOF
30487 /* end confdefs.h.  */
30488
30489             #include <sys/types.h>
30490             #include <sys/stat.h>
30491             #if HAVE_SYS_TIME_H
30492             # include <sys/time.h>
30493             #endif
30494             #include <time.h>
30495             struct timespec ts;
30496             struct stat st;
30497
30498 int
30499 main ()
30500 {
30501
30502             st.st_atim = ts;
30503
30504   ;
30505   return 0;
30506 }
30507 _ACEOF
30508 rm -f conftest.$ac_objext
30509 if { (ac_try="$ac_compile"
30510 case "(($ac_try" in
30511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30512   *) ac_try_echo=$ac_try;;
30513 esac
30514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30515   (eval "$ac_compile") 2>conftest.er1
30516   ac_status=$?
30517   grep -v '^ *+' conftest.er1 >conftest.err
30518   rm -f conftest.er1
30519   cat conftest.err >&5
30520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30521   (exit $ac_status); } && {
30522          test -z "$ac_c_werror_flag" ||
30523          test ! -s conftest.err
30524        } && test -s conftest.$ac_objext; then
30525   ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=yes
30526 else
30527   echo "$as_me: failed program was:" >&5
30528 sed 's/^/| /' conftest.$ac_ext >&5
30529
30530         ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=no
30531 fi
30532
30533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30534 fi
30535 { echo "$as_me:$LINENO: result: $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&5
30536 echo "${ECHO_T}$ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&6; }
30537      if test $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec = yes; then
30538
30539 cat >>confdefs.h <<\_ACEOF
30540 #define TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC 1
30541 _ACEOF
30542
30543      fi
30544 else
30545   { echo "$as_me:$LINENO: checking for struct stat.st_atimespec.tv_nsec" >&5
30546 echo $ECHO_N "checking for struct stat.st_atimespec.tv_nsec... $ECHO_C" >&6; }
30547 if test "${ac_cv_member_struct_stat_st_atimespec_tv_nsec+set}" = set; then
30548   echo $ECHO_N "(cached) $ECHO_C" >&6
30549 else
30550   cat >conftest.$ac_ext <<_ACEOF
30551 /* confdefs.h.  */
30552 _ACEOF
30553 cat confdefs.h >>conftest.$ac_ext
30554 cat >>conftest.$ac_ext <<_ACEOF
30555 /* end confdefs.h.  */
30556 #include <sys/types.h>
30557         #include <sys/stat.h>
30558
30559 int
30560 main ()
30561 {
30562 static struct stat ac_aggr;
30563 if (ac_aggr.st_atimespec.tv_nsec)
30564 return 0;
30565   ;
30566   return 0;
30567 }
30568 _ACEOF
30569 rm -f conftest.$ac_objext
30570 if { (ac_try="$ac_compile"
30571 case "(($ac_try" in
30572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30573   *) ac_try_echo=$ac_try;;
30574 esac
30575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30576   (eval "$ac_compile") 2>conftest.er1
30577   ac_status=$?
30578   grep -v '^ *+' conftest.er1 >conftest.err
30579   rm -f conftest.er1
30580   cat conftest.err >&5
30581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30582   (exit $ac_status); } && {
30583          test -z "$ac_c_werror_flag" ||
30584          test ! -s conftest.err
30585        } && test -s conftest.$ac_objext; then
30586   ac_cv_member_struct_stat_st_atimespec_tv_nsec=yes
30587 else
30588   echo "$as_me: failed program was:" >&5
30589 sed 's/^/| /' conftest.$ac_ext >&5
30590
30591         cat >conftest.$ac_ext <<_ACEOF
30592 /* confdefs.h.  */
30593 _ACEOF
30594 cat confdefs.h >>conftest.$ac_ext
30595 cat >>conftest.$ac_ext <<_ACEOF
30596 /* end confdefs.h.  */
30597 #include <sys/types.h>
30598         #include <sys/stat.h>
30599
30600 int
30601 main ()
30602 {
30603 static struct stat ac_aggr;
30604 if (sizeof ac_aggr.st_atimespec.tv_nsec)
30605 return 0;
30606   ;
30607   return 0;
30608 }
30609 _ACEOF
30610 rm -f conftest.$ac_objext
30611 if { (ac_try="$ac_compile"
30612 case "(($ac_try" in
30613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30614   *) ac_try_echo=$ac_try;;
30615 esac
30616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30617   (eval "$ac_compile") 2>conftest.er1
30618   ac_status=$?
30619   grep -v '^ *+' conftest.er1 >conftest.err
30620   rm -f conftest.er1
30621   cat conftest.err >&5
30622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30623   (exit $ac_status); } && {
30624          test -z "$ac_c_werror_flag" ||
30625          test ! -s conftest.err
30626        } && test -s conftest.$ac_objext; then
30627   ac_cv_member_struct_stat_st_atimespec_tv_nsec=yes
30628 else
30629   echo "$as_me: failed program was:" >&5
30630 sed 's/^/| /' conftest.$ac_ext >&5
30631
30632         ac_cv_member_struct_stat_st_atimespec_tv_nsec=no
30633 fi
30634
30635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30636 fi
30637
30638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30639 fi
30640 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_atimespec_tv_nsec" >&5
30641 echo "${ECHO_T}$ac_cv_member_struct_stat_st_atimespec_tv_nsec" >&6; }
30642 if test $ac_cv_member_struct_stat_st_atimespec_tv_nsec = yes; then
30643
30644 cat >>confdefs.h <<_ACEOF
30645 #define HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC 1
30646 _ACEOF
30647
30648
30649 else
30650   { echo "$as_me:$LINENO: checking for struct stat.st_atimensec" >&5
30651 echo $ECHO_N "checking for struct stat.st_atimensec... $ECHO_C" >&6; }
30652 if test "${ac_cv_member_struct_stat_st_atimensec+set}" = set; then
30653   echo $ECHO_N "(cached) $ECHO_C" >&6
30654 else
30655   cat >conftest.$ac_ext <<_ACEOF
30656 /* confdefs.h.  */
30657 _ACEOF
30658 cat confdefs.h >>conftest.$ac_ext
30659 cat >>conftest.$ac_ext <<_ACEOF
30660 /* end confdefs.h.  */
30661 #include <sys/types.h>
30662            #include <sys/stat.h>
30663
30664 int
30665 main ()
30666 {
30667 static struct stat ac_aggr;
30668 if (ac_aggr.st_atimensec)
30669 return 0;
30670   ;
30671   return 0;
30672 }
30673 _ACEOF
30674 rm -f conftest.$ac_objext
30675 if { (ac_try="$ac_compile"
30676 case "(($ac_try" in
30677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30678   *) ac_try_echo=$ac_try;;
30679 esac
30680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30681   (eval "$ac_compile") 2>conftest.er1
30682   ac_status=$?
30683   grep -v '^ *+' conftest.er1 >conftest.err
30684   rm -f conftest.er1
30685   cat conftest.err >&5
30686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30687   (exit $ac_status); } && {
30688          test -z "$ac_c_werror_flag" ||
30689          test ! -s conftest.err
30690        } && test -s conftest.$ac_objext; then
30691   ac_cv_member_struct_stat_st_atimensec=yes
30692 else
30693   echo "$as_me: failed program was:" >&5
30694 sed 's/^/| /' conftest.$ac_ext >&5
30695
30696         cat >conftest.$ac_ext <<_ACEOF
30697 /* confdefs.h.  */
30698 _ACEOF
30699 cat confdefs.h >>conftest.$ac_ext
30700 cat >>conftest.$ac_ext <<_ACEOF
30701 /* end confdefs.h.  */
30702 #include <sys/types.h>
30703            #include <sys/stat.h>
30704
30705 int
30706 main ()
30707 {
30708 static struct stat ac_aggr;
30709 if (sizeof ac_aggr.st_atimensec)
30710 return 0;
30711   ;
30712   return 0;
30713 }
30714 _ACEOF
30715 rm -f conftest.$ac_objext
30716 if { (ac_try="$ac_compile"
30717 case "(($ac_try" in
30718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30719   *) ac_try_echo=$ac_try;;
30720 esac
30721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30722   (eval "$ac_compile") 2>conftest.er1
30723   ac_status=$?
30724   grep -v '^ *+' conftest.er1 >conftest.err
30725   rm -f conftest.er1
30726   cat conftest.err >&5
30727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30728   (exit $ac_status); } && {
30729          test -z "$ac_c_werror_flag" ||
30730          test ! -s conftest.err
30731        } && test -s conftest.$ac_objext; then
30732   ac_cv_member_struct_stat_st_atimensec=yes
30733 else
30734   echo "$as_me: failed program was:" >&5
30735 sed 's/^/| /' conftest.$ac_ext >&5
30736
30737         ac_cv_member_struct_stat_st_atimensec=no
30738 fi
30739
30740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30741 fi
30742
30743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30744 fi
30745 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_atimensec" >&5
30746 echo "${ECHO_T}$ac_cv_member_struct_stat_st_atimensec" >&6; }
30747 if test $ac_cv_member_struct_stat_st_atimensec = yes; then
30748
30749 cat >>confdefs.h <<_ACEOF
30750 #define HAVE_STRUCT_STAT_ST_ATIMENSEC 1
30751 _ACEOF
30752
30753
30754 else
30755   { echo "$as_me:$LINENO: checking for struct stat.st_atim.st__tim.tv_nsec" >&5
30756 echo $ECHO_N "checking for struct stat.st_atim.st__tim.tv_nsec... $ECHO_C" >&6; }
30757 if test "${ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec+set}" = set; then
30758   echo $ECHO_N "(cached) $ECHO_C" >&6
30759 else
30760   cat >conftest.$ac_ext <<_ACEOF
30761 /* confdefs.h.  */
30762 _ACEOF
30763 cat confdefs.h >>conftest.$ac_ext
30764 cat >>conftest.$ac_ext <<_ACEOF
30765 /* end confdefs.h.  */
30766 #include <sys/types.h>
30767               #include <sys/stat.h>
30768
30769 int
30770 main ()
30771 {
30772 static struct stat ac_aggr;
30773 if (ac_aggr.st_atim.st__tim.tv_nsec)
30774 return 0;
30775   ;
30776   return 0;
30777 }
30778 _ACEOF
30779 rm -f conftest.$ac_objext
30780 if { (ac_try="$ac_compile"
30781 case "(($ac_try" in
30782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30783   *) ac_try_echo=$ac_try;;
30784 esac
30785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30786   (eval "$ac_compile") 2>conftest.er1
30787   ac_status=$?
30788   grep -v '^ *+' conftest.er1 >conftest.err
30789   rm -f conftest.er1
30790   cat conftest.err >&5
30791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30792   (exit $ac_status); } && {
30793          test -z "$ac_c_werror_flag" ||
30794          test ! -s conftest.err
30795        } && test -s conftest.$ac_objext; then
30796   ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec=yes
30797 else
30798   echo "$as_me: failed program was:" >&5
30799 sed 's/^/| /' conftest.$ac_ext >&5
30800
30801         cat >conftest.$ac_ext <<_ACEOF
30802 /* confdefs.h.  */
30803 _ACEOF
30804 cat confdefs.h >>conftest.$ac_ext
30805 cat >>conftest.$ac_ext <<_ACEOF
30806 /* end confdefs.h.  */
30807 #include <sys/types.h>
30808               #include <sys/stat.h>
30809
30810 int
30811 main ()
30812 {
30813 static struct stat ac_aggr;
30814 if (sizeof ac_aggr.st_atim.st__tim.tv_nsec)
30815 return 0;
30816   ;
30817   return 0;
30818 }
30819 _ACEOF
30820 rm -f conftest.$ac_objext
30821 if { (ac_try="$ac_compile"
30822 case "(($ac_try" in
30823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30824   *) ac_try_echo=$ac_try;;
30825 esac
30826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30827   (eval "$ac_compile") 2>conftest.er1
30828   ac_status=$?
30829   grep -v '^ *+' conftest.er1 >conftest.err
30830   rm -f conftest.er1
30831   cat conftest.err >&5
30832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30833   (exit $ac_status); } && {
30834          test -z "$ac_c_werror_flag" ||
30835          test ! -s conftest.err
30836        } && test -s conftest.$ac_objext; then
30837   ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec=yes
30838 else
30839   echo "$as_me: failed program was:" >&5
30840 sed 's/^/| /' conftest.$ac_ext >&5
30841
30842         ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec=no
30843 fi
30844
30845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30846 fi
30847
30848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30849 fi
30850 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" >&5
30851 echo "${ECHO_T}$ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" >&6; }
30852 if test $ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec = yes; then
30853
30854 cat >>confdefs.h <<_ACEOF
30855 #define HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC 1
30856 _ACEOF
30857
30858
30859 fi
30860
30861 fi
30862
30863 fi
30864
30865 fi
30866
30867
30868
30869
30870
30871
30872
30873
30874
30875
30876
30877   { echo "$as_me:$LINENO: checking for struct stat.st_birthtimespec.tv_nsec" >&5
30878 echo $ECHO_N "checking for struct stat.st_birthtimespec.tv_nsec... $ECHO_C" >&6; }
30879 if test "${ac_cv_member_struct_stat_st_birthtimespec_tv_nsec+set}" = set; then
30880   echo $ECHO_N "(cached) $ECHO_C" >&6
30881 else
30882   cat >conftest.$ac_ext <<_ACEOF
30883 /* confdefs.h.  */
30884 _ACEOF
30885 cat confdefs.h >>conftest.$ac_ext
30886 cat >>conftest.$ac_ext <<_ACEOF
30887 /* end confdefs.h.  */
30888 #include <sys/types.h>
30889      #include <sys/stat.h>
30890
30891 int
30892 main ()
30893 {
30894 static struct stat ac_aggr;
30895 if (ac_aggr.st_birthtimespec.tv_nsec)
30896 return 0;
30897   ;
30898   return 0;
30899 }
30900 _ACEOF
30901 rm -f conftest.$ac_objext
30902 if { (ac_try="$ac_compile"
30903 case "(($ac_try" in
30904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30905   *) ac_try_echo=$ac_try;;
30906 esac
30907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30908   (eval "$ac_compile") 2>conftest.er1
30909   ac_status=$?
30910   grep -v '^ *+' conftest.er1 >conftest.err
30911   rm -f conftest.er1
30912   cat conftest.err >&5
30913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30914   (exit $ac_status); } && {
30915          test -z "$ac_c_werror_flag" ||
30916          test ! -s conftest.err
30917        } && test -s conftest.$ac_objext; then
30918   ac_cv_member_struct_stat_st_birthtimespec_tv_nsec=yes
30919 else
30920   echo "$as_me: failed program was:" >&5
30921 sed 's/^/| /' conftest.$ac_ext >&5
30922
30923         cat >conftest.$ac_ext <<_ACEOF
30924 /* confdefs.h.  */
30925 _ACEOF
30926 cat confdefs.h >>conftest.$ac_ext
30927 cat >>conftest.$ac_ext <<_ACEOF
30928 /* end confdefs.h.  */
30929 #include <sys/types.h>
30930      #include <sys/stat.h>
30931
30932 int
30933 main ()
30934 {
30935 static struct stat ac_aggr;
30936 if (sizeof ac_aggr.st_birthtimespec.tv_nsec)
30937 return 0;
30938   ;
30939   return 0;
30940 }
30941 _ACEOF
30942 rm -f conftest.$ac_objext
30943 if { (ac_try="$ac_compile"
30944 case "(($ac_try" in
30945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30946   *) ac_try_echo=$ac_try;;
30947 esac
30948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30949   (eval "$ac_compile") 2>conftest.er1
30950   ac_status=$?
30951   grep -v '^ *+' conftest.er1 >conftest.err
30952   rm -f conftest.er1
30953   cat conftest.err >&5
30954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30955   (exit $ac_status); } && {
30956          test -z "$ac_c_werror_flag" ||
30957          test ! -s conftest.err
30958        } && test -s conftest.$ac_objext; then
30959   ac_cv_member_struct_stat_st_birthtimespec_tv_nsec=yes
30960 else
30961   echo "$as_me: failed program was:" >&5
30962 sed 's/^/| /' conftest.$ac_ext >&5
30963
30964         ac_cv_member_struct_stat_st_birthtimespec_tv_nsec=no
30965 fi
30966
30967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30968 fi
30969
30970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30971 fi
30972 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" >&5
30973 echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" >&6; }
30974 if test $ac_cv_member_struct_stat_st_birthtimespec_tv_nsec = yes; then
30975
30976 cat >>confdefs.h <<_ACEOF
30977 #define HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC 1
30978 _ACEOF
30979
30980
30981 else
30982   { echo "$as_me:$LINENO: checking for struct stat.st_birthtimensec" >&5
30983 echo $ECHO_N "checking for struct stat.st_birthtimensec... $ECHO_C" >&6; }
30984 if test "${ac_cv_member_struct_stat_st_birthtimensec+set}" = set; then
30985   echo $ECHO_N "(cached) $ECHO_C" >&6
30986 else
30987   cat >conftest.$ac_ext <<_ACEOF
30988 /* confdefs.h.  */
30989 _ACEOF
30990 cat confdefs.h >>conftest.$ac_ext
30991 cat >>conftest.$ac_ext <<_ACEOF
30992 /* end confdefs.h.  */
30993 #include <sys/types.h>
30994         #include <sys/stat.h>
30995
30996 int
30997 main ()
30998 {
30999 static struct stat ac_aggr;
31000 if (ac_aggr.st_birthtimensec)
31001 return 0;
31002   ;
31003   return 0;
31004 }
31005 _ACEOF
31006 rm -f conftest.$ac_objext
31007 if { (ac_try="$ac_compile"
31008 case "(($ac_try" in
31009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31010   *) ac_try_echo=$ac_try;;
31011 esac
31012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31013   (eval "$ac_compile") 2>conftest.er1
31014   ac_status=$?
31015   grep -v '^ *+' conftest.er1 >conftest.err
31016   rm -f conftest.er1
31017   cat conftest.err >&5
31018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31019   (exit $ac_status); } && {
31020          test -z "$ac_c_werror_flag" ||
31021          test ! -s conftest.err
31022        } && test -s conftest.$ac_objext; then
31023   ac_cv_member_struct_stat_st_birthtimensec=yes
31024 else
31025   echo "$as_me: failed program was:" >&5
31026 sed 's/^/| /' conftest.$ac_ext >&5
31027
31028         cat >conftest.$ac_ext <<_ACEOF
31029 /* confdefs.h.  */
31030 _ACEOF
31031 cat confdefs.h >>conftest.$ac_ext
31032 cat >>conftest.$ac_ext <<_ACEOF
31033 /* end confdefs.h.  */
31034 #include <sys/types.h>
31035         #include <sys/stat.h>
31036
31037 int
31038 main ()
31039 {
31040 static struct stat ac_aggr;
31041 if (sizeof ac_aggr.st_birthtimensec)
31042 return 0;
31043   ;
31044   return 0;
31045 }
31046 _ACEOF
31047 rm -f conftest.$ac_objext
31048 if { (ac_try="$ac_compile"
31049 case "(($ac_try" in
31050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31051   *) ac_try_echo=$ac_try;;
31052 esac
31053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31054   (eval "$ac_compile") 2>conftest.er1
31055   ac_status=$?
31056   grep -v '^ *+' conftest.er1 >conftest.err
31057   rm -f conftest.er1
31058   cat conftest.err >&5
31059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31060   (exit $ac_status); } && {
31061          test -z "$ac_c_werror_flag" ||
31062          test ! -s conftest.err
31063        } && test -s conftest.$ac_objext; then
31064   ac_cv_member_struct_stat_st_birthtimensec=yes
31065 else
31066   echo "$as_me: failed program was:" >&5
31067 sed 's/^/| /' conftest.$ac_ext >&5
31068
31069         ac_cv_member_struct_stat_st_birthtimensec=no
31070 fi
31071
31072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31073 fi
31074
31075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31076 fi
31077 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtimensec" >&5
31078 echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtimensec" >&6; }
31079 if test $ac_cv_member_struct_stat_st_birthtimensec = yes; then
31080
31081 cat >>confdefs.h <<_ACEOF
31082 #define HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC 1
31083 _ACEOF
31084
31085
31086 else
31087   { echo "$as_me:$LINENO: checking for struct stat.st_birthtim.tv_nsec" >&5
31088 echo $ECHO_N "checking for struct stat.st_birthtim.tv_nsec... $ECHO_C" >&6; }
31089 if test "${ac_cv_member_struct_stat_st_birthtim_tv_nsec+set}" = set; then
31090   echo $ECHO_N "(cached) $ECHO_C" >&6
31091 else
31092   cat >conftest.$ac_ext <<_ACEOF
31093 /* confdefs.h.  */
31094 _ACEOF
31095 cat confdefs.h >>conftest.$ac_ext
31096 cat >>conftest.$ac_ext <<_ACEOF
31097 /* end confdefs.h.  */
31098 #include <sys/types.h>
31099           #include <sys/stat.h>
31100
31101 int
31102 main ()
31103 {
31104 static struct stat ac_aggr;
31105 if (ac_aggr.st_birthtim.tv_nsec)
31106 return 0;
31107   ;
31108   return 0;
31109 }
31110 _ACEOF
31111 rm -f conftest.$ac_objext
31112 if { (ac_try="$ac_compile"
31113 case "(($ac_try" in
31114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31115   *) ac_try_echo=$ac_try;;
31116 esac
31117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31118   (eval "$ac_compile") 2>conftest.er1
31119   ac_status=$?
31120   grep -v '^ *+' conftest.er1 >conftest.err
31121   rm -f conftest.er1
31122   cat conftest.err >&5
31123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31124   (exit $ac_status); } && {
31125          test -z "$ac_c_werror_flag" ||
31126          test ! -s conftest.err
31127        } && test -s conftest.$ac_objext; then
31128   ac_cv_member_struct_stat_st_birthtim_tv_nsec=yes
31129 else
31130   echo "$as_me: failed program was:" >&5
31131 sed 's/^/| /' conftest.$ac_ext >&5
31132
31133         cat >conftest.$ac_ext <<_ACEOF
31134 /* confdefs.h.  */
31135 _ACEOF
31136 cat confdefs.h >>conftest.$ac_ext
31137 cat >>conftest.$ac_ext <<_ACEOF
31138 /* end confdefs.h.  */
31139 #include <sys/types.h>
31140           #include <sys/stat.h>
31141
31142 int
31143 main ()
31144 {
31145 static struct stat ac_aggr;
31146 if (sizeof ac_aggr.st_birthtim.tv_nsec)
31147 return 0;
31148   ;
31149   return 0;
31150 }
31151 _ACEOF
31152 rm -f conftest.$ac_objext
31153 if { (ac_try="$ac_compile"
31154 case "(($ac_try" in
31155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31156   *) ac_try_echo=$ac_try;;
31157 esac
31158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31159   (eval "$ac_compile") 2>conftest.er1
31160   ac_status=$?
31161   grep -v '^ *+' conftest.er1 >conftest.err
31162   rm -f conftest.er1
31163   cat conftest.err >&5
31164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31165   (exit $ac_status); } && {
31166          test -z "$ac_c_werror_flag" ||
31167          test ! -s conftest.err
31168        } && test -s conftest.$ac_objext; then
31169   ac_cv_member_struct_stat_st_birthtim_tv_nsec=yes
31170 else
31171   echo "$as_me: failed program was:" >&5
31172 sed 's/^/| /' conftest.$ac_ext >&5
31173
31174         ac_cv_member_struct_stat_st_birthtim_tv_nsec=no
31175 fi
31176
31177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31178 fi
31179
31180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31181 fi
31182 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtim_tv_nsec" >&5
31183 echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtim_tv_nsec" >&6; }
31184 if test $ac_cv_member_struct_stat_st_birthtim_tv_nsec = yes; then
31185
31186 cat >>confdefs.h <<_ACEOF
31187 #define HAVE_STRUCT_STAT_ST_BIRTHTIM_TV_NSEC 1
31188 _ACEOF
31189
31190
31191 fi
31192
31193 fi
31194
31195 fi
31196
31197
31198
31199   STDARG_H='';
31200   NEXT_STDARG_H='<stdarg.h>';
31201   { echo "$as_me:$LINENO: checking for va_copy" >&5
31202 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
31203   if test "${gl_cv_func_va_copy+set}" = set; then
31204   echo $ECHO_N "(cached) $ECHO_C" >&6
31205 else
31206
31207     cat >conftest.$ac_ext <<_ACEOF
31208 /* confdefs.h.  */
31209 _ACEOF
31210 cat confdefs.h >>conftest.$ac_ext
31211 cat >>conftest.$ac_ext <<_ACEOF
31212 /* end confdefs.h.  */
31213 #include <stdarg.h>
31214 int
31215 main ()
31216 {
31217
31218 #ifndef va_copy
31219 void (*func) (va_list, va_list) = va_copy;
31220 #endif
31221
31222   ;
31223   return 0;
31224 }
31225 _ACEOF
31226 rm -f conftest.$ac_objext
31227 if { (ac_try="$ac_compile"
31228 case "(($ac_try" in
31229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31230   *) ac_try_echo=$ac_try;;
31231 esac
31232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31233   (eval "$ac_compile") 2>conftest.er1
31234   ac_status=$?
31235   grep -v '^ *+' conftest.er1 >conftest.err
31236   rm -f conftest.er1
31237   cat conftest.err >&5
31238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31239   (exit $ac_status); } && {
31240          test -z "$ac_c_werror_flag" ||
31241          test ! -s conftest.err
31242        } && test -s conftest.$ac_objext; then
31243   gl_cv_func_va_copy=yes
31244 else
31245   echo "$as_me: failed program was:" >&5
31246 sed 's/^/| /' conftest.$ac_ext >&5
31247
31248         gl_cv_func_va_copy=no
31249 fi
31250
31251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31252 fi
31253
31254   { echo "$as_me:$LINENO: result: $gl_cv_func_va_copy" >&5
31255 echo "${ECHO_T}$gl_cv_func_va_copy" >&6; }
31256   if test $gl_cv_func_va_copy = no; then
31257                                     cat >conftest.$ac_ext <<_ACEOF
31258 /* confdefs.h.  */
31259 _ACEOF
31260 cat confdefs.h >>conftest.$ac_ext
31261 cat >>conftest.$ac_ext <<_ACEOF
31262 /* end confdefs.h.  */
31263 #if defined _AIX && !defined __GNUC__
31264         AIX vaccine
31265        #endif
31266
31267 _ACEOF
31268 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31269   $EGREP "vaccine" >/dev/null 2>&1; then
31270   gl_aixcc=yes
31271 else
31272   gl_aixcc=no
31273 fi
31274 rm -f conftest*
31275
31276     if test $gl_aixcc = yes; then
31277             STDARG_H=stdarg.h
31278
31279
31280
31281
31282
31283
31284
31285
31286
31287
31288
31289      if test $gl_cv_have_include_next = yes; then
31290        gl_cv_next_stdarg_h='<'stdarg.h'>'
31291      else
31292        { echo "$as_me:$LINENO: checking absolute name of <stdarg.h>" >&5
31293 echo $ECHO_N "checking absolute name of <stdarg.h>... $ECHO_C" >&6; }
31294 if test "${gl_cv_next_stdarg_h+set}" = set; then
31295   echo $ECHO_N "(cached) $ECHO_C" >&6
31296 else
31297
31298           if test $ac_cv_header_stdarg_h = yes; then
31299             cat >conftest.$ac_ext <<_ACEOF
31300 /* confdefs.h.  */
31301 _ACEOF
31302 cat confdefs.h >>conftest.$ac_ext
31303 cat >>conftest.$ac_ext <<_ACEOF
31304 /* end confdefs.h.  */
31305 #include <stdarg.h>
31306
31307 _ACEOF
31308                                                                     case "$host_os" in
31309               aix*) gl_absname_cpp="$ac_cpp -C" ;;
31310               *)    gl_absname_cpp="$ac_cpp" ;;
31311             esac
31312                                     gl_cv_next_stdarg_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
31313                sed -n '\#/stdarg.h#{
31314                  s#.*"\(.*/stdarg.h\)".*#\1#
31315                  s#^/[^/]#//&#
31316                  p
31317                  q
31318                }'`'"'
31319           else
31320             gl_cv_next_stdarg_h='<'stdarg.h'>'
31321           fi
31322
31323 fi
31324 { echo "$as_me:$LINENO: result: $gl_cv_next_stdarg_h" >&5
31325 echo "${ECHO_T}$gl_cv_next_stdarg_h" >&6; }
31326      fi
31327      NEXT_STDARG_H=$gl_cv_next_stdarg_h
31328
31329
31330
31331             if test "$gl_cv_next_stdarg_h" = '""'; then
31332         gl_cv_next_stdarg_h='"///usr/include/stdarg.h"'
31333         NEXT_STDARG_H="$gl_cv_next_stdarg_h"
31334       fi
31335     else
31336                   if test "${gl_cv_func___va_copy+set}" = set; then
31337   echo $ECHO_N "(cached) $ECHO_C" >&6
31338 else
31339
31340         cat >conftest.$ac_ext <<_ACEOF
31341 /* confdefs.h.  */
31342 _ACEOF
31343 cat confdefs.h >>conftest.$ac_ext
31344 cat >>conftest.$ac_ext <<_ACEOF
31345 /* end confdefs.h.  */
31346 #include <stdarg.h>
31347 int
31348 main ()
31349 {
31350
31351 #ifndef __va_copy
31352 error, bail out
31353 #endif
31354
31355   ;
31356   return 0;
31357 }
31358 _ACEOF
31359 rm -f conftest.$ac_objext
31360 if { (ac_try="$ac_compile"
31361 case "(($ac_try" in
31362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31363   *) ac_try_echo=$ac_try;;
31364 esac
31365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31366   (eval "$ac_compile") 2>conftest.er1
31367   ac_status=$?
31368   grep -v '^ *+' conftest.er1 >conftest.err
31369   rm -f conftest.er1
31370   cat conftest.err >&5
31371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31372   (exit $ac_status); } && {
31373          test -z "$ac_c_werror_flag" ||
31374          test ! -s conftest.err
31375        } && test -s conftest.$ac_objext; then
31376   gl_cv_func___va_copy=yes
31377 else
31378   echo "$as_me: failed program was:" >&5
31379 sed 's/^/| /' conftest.$ac_ext >&5
31380
31381         gl_cv_func___va_copy=no
31382 fi
31383
31384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31385 fi
31386
31387       if test $gl_cv_func___va_copy = yes; then
31388
31389 cat >>confdefs.h <<\_ACEOF
31390 #define va_copy __va_copy
31391 _ACEOF
31392
31393       else
31394
31395
31396
31397 cat >>confdefs.h <<\_ACEOF
31398 #define va_copy gl_va_copy
31399 _ACEOF
31400
31401       fi
31402     fi
31403   fi
31404
31405
31406
31407
31408   # Define two additional variables used in the Makefile substitution.
31409
31410   if test "$ac_cv_header_stdbool_h" = yes; then
31411     STDBOOL_H=''
31412   else
31413     STDBOOL_H='stdbool.h'
31414   fi
31415
31416
31417   if test "$ac_cv_type__Bool" = yes; then
31418     HAVE__BOOL=1
31419   else
31420     HAVE__BOOL=0
31421   fi
31422
31423
31424
31425
31426
31427   if test $ac_cv_type_long_long_int = yes; then
31428     HAVE_LONG_LONG_INT=1
31429   else
31430     HAVE_LONG_LONG_INT=0
31431   fi
31432
31433
31434   if test $ac_cv_type_unsigned_long_long_int = yes; then
31435     HAVE_UNSIGNED_LONG_LONG_INT=1
31436   else
31437     HAVE_UNSIGNED_LONG_LONG_INT=0
31438   fi
31439
31440
31441       if test $ac_cv_header_inttypes_h = yes; then
31442     HAVE_INTTYPES_H=1
31443   else
31444     HAVE_INTTYPES_H=0
31445   fi
31446
31447
31448       if test $ac_cv_header_sys_types_h = yes; then
31449     HAVE_SYS_TYPES_H=1
31450   else
31451     HAVE_SYS_TYPES_H=0
31452   fi
31453
31454
31455
31456
31457
31458
31459
31460
31461
31462
31463
31464
31465
31466      if test $gl_cv_have_include_next = yes; then
31467        gl_cv_next_stdint_h='<'stdint.h'>'
31468      else
31469        { echo "$as_me:$LINENO: checking absolute name of <stdint.h>" >&5
31470 echo $ECHO_N "checking absolute name of <stdint.h>... $ECHO_C" >&6; }
31471 if test "${gl_cv_next_stdint_h+set}" = set; then
31472   echo $ECHO_N "(cached) $ECHO_C" >&6
31473 else
31474
31475           if test $ac_cv_header_stdint_h = yes; then
31476             cat >conftest.$ac_ext <<_ACEOF
31477 /* confdefs.h.  */
31478 _ACEOF
31479 cat confdefs.h >>conftest.$ac_ext
31480 cat >>conftest.$ac_ext <<_ACEOF
31481 /* end confdefs.h.  */
31482 #include <stdint.h>
31483
31484 _ACEOF
31485                                                                     case "$host_os" in
31486               aix*) gl_absname_cpp="$ac_cpp -C" ;;
31487               *)    gl_absname_cpp="$ac_cpp" ;;
31488             esac
31489                                     gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
31490                sed -n '\#/stdint.h#{
31491                  s#.*"\(.*/stdint.h\)".*#\1#
31492                  s#^/[^/]#//&#
31493                  p
31494                  q
31495                }'`'"'
31496           else
31497             gl_cv_next_stdint_h='<'stdint.h'>'
31498           fi
31499
31500 fi
31501 { echo "$as_me:$LINENO: result: $gl_cv_next_stdint_h" >&5
31502 echo "${ECHO_T}$gl_cv_next_stdint_h" >&6; }
31503      fi
31504      NEXT_STDINT_H=$gl_cv_next_stdint_h
31505
31506
31507
31508   if test $ac_cv_header_stdint_h = yes; then
31509     HAVE_STDINT_H=1
31510   else
31511     HAVE_STDINT_H=0
31512   fi
31513
31514
31515     if test $ac_cv_header_stdint_h = yes; then
31516     { echo "$as_me:$LINENO: checking whether stdint.h conforms to C99" >&5
31517 echo $ECHO_N "checking whether stdint.h conforms to C99... $ECHO_C" >&6; }
31518 if test "${gl_cv_header_working_stdint_h+set}" = set; then
31519   echo $ECHO_N "(cached) $ECHO_C" >&6
31520 else
31521   gl_cv_header_working_stdint_h=no
31522        cat >conftest.$ac_ext <<_ACEOF
31523
31524          /* confdefs.h.  */
31525 _ACEOF
31526 cat confdefs.h >>conftest.$ac_ext
31527 cat >>conftest.$ac_ext <<_ACEOF
31528 /* end confdefs.h.  */
31529
31530 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
31531 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
31532 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
31533 #include <stdint.h>
31534 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>.  */
31535 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
31536 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
31537 #endif
31538
31539
31540   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
31541      included before <wchar.h>.  */
31542   #include <stddef.h>
31543   #include <signal.h>
31544   #if HAVE_WCHAR_H
31545   # include <stdio.h>
31546   # include <time.h>
31547   # include <wchar.h>
31548   #endif
31549
31550
31551 #ifdef INT8_MAX
31552 int8_t a1 = INT8_MAX;
31553 int8_t a1min = INT8_MIN;
31554 #endif
31555 #ifdef INT16_MAX
31556 int16_t a2 = INT16_MAX;
31557 int16_t a2min = INT16_MIN;
31558 #endif
31559 #ifdef INT32_MAX
31560 int32_t a3 = INT32_MAX;
31561 int32_t a3min = INT32_MIN;
31562 #endif
31563 #ifdef INT64_MAX
31564 int64_t a4 = INT64_MAX;
31565 int64_t a4min = INT64_MIN;
31566 #endif
31567 #ifdef UINT8_MAX
31568 uint8_t b1 = UINT8_MAX;
31569 #else
31570 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
31571 #endif
31572 #ifdef UINT16_MAX
31573 uint16_t b2 = UINT16_MAX;
31574 #endif
31575 #ifdef UINT32_MAX
31576 uint32_t b3 = UINT32_MAX;
31577 #endif
31578 #ifdef UINT64_MAX
31579 uint64_t b4 = UINT64_MAX;
31580 #endif
31581 int_least8_t c1 = INT8_C (0x7f);
31582 int_least8_t c1max = INT_LEAST8_MAX;
31583 int_least8_t c1min = INT_LEAST8_MIN;
31584 int_least16_t c2 = INT16_C (0x7fff);
31585 int_least16_t c2max = INT_LEAST16_MAX;
31586 int_least16_t c2min = INT_LEAST16_MIN;
31587 int_least32_t c3 = INT32_C (0x7fffffff);
31588 int_least32_t c3max = INT_LEAST32_MAX;
31589 int_least32_t c3min = INT_LEAST32_MIN;
31590 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
31591 int_least64_t c4max = INT_LEAST64_MAX;
31592 int_least64_t c4min = INT_LEAST64_MIN;
31593 uint_least8_t d1 = UINT8_C (0xff);
31594 uint_least8_t d1max = UINT_LEAST8_MAX;
31595 uint_least16_t d2 = UINT16_C (0xffff);
31596 uint_least16_t d2max = UINT_LEAST16_MAX;
31597 uint_least32_t d3 = UINT32_C (0xffffffff);
31598 uint_least32_t d3max = UINT_LEAST32_MAX;
31599 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
31600 uint_least64_t d4max = UINT_LEAST64_MAX;
31601 int_fast8_t e1 = INT_FAST8_MAX;
31602 int_fast8_t e1min = INT_FAST8_MIN;
31603 int_fast16_t e2 = INT_FAST16_MAX;
31604 int_fast16_t e2min = INT_FAST16_MIN;
31605 int_fast32_t e3 = INT_FAST32_MAX;
31606 int_fast32_t e3min = INT_FAST32_MIN;
31607 int_fast64_t e4 = INT_FAST64_MAX;
31608 int_fast64_t e4min = INT_FAST64_MIN;
31609 uint_fast8_t f1 = UINT_FAST8_MAX;
31610 uint_fast16_t f2 = UINT_FAST16_MAX;
31611 uint_fast32_t f3 = UINT_FAST32_MAX;
31612 uint_fast64_t f4 = UINT_FAST64_MAX;
31613 #ifdef INTPTR_MAX
31614 intptr_t g = INTPTR_MAX;
31615 intptr_t gmin = INTPTR_MIN;
31616 #endif
31617 #ifdef UINTPTR_MAX
31618 uintptr_t h = UINTPTR_MAX;
31619 #endif
31620 intmax_t i = INTMAX_MAX;
31621 uintmax_t j = UINTMAX_MAX;
31622
31623 #include <limits.h> /* for CHAR_BIT */
31624 #define TYPE_MINIMUM(t) \
31625   ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))
31626 #define TYPE_MAXIMUM(t) \
31627   ((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))))
31628 struct s {
31629   int check_PTRDIFF:
31630       PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
31631       && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
31632       ? 1 : -1;
31633   /* Detect bug in FreeBSD 6.0 / ia64.  */
31634   int check_SIG_ATOMIC:
31635       SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
31636       && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
31637       ? 1 : -1;
31638   int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
31639   int check_WCHAR:
31640       WCHAR_MIN == TYPE_MINIMUM (wchar_t)
31641       && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
31642       ? 1 : -1;
31643   /* Detect bug in mingw.  */
31644   int check_WINT:
31645       WINT_MIN == TYPE_MINIMUM (wint_t)
31646       && WINT_MAX == TYPE_MAXIMUM (wint_t)
31647       ? 1 : -1;
31648
31649   /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others.  */
31650   int check_UINT8_C:
31651         (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
31652   int check_UINT16_C:
31653         (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
31654
31655   /* Detect bugs in OpenBSD 3.9 stdint.h.  */
31656 #ifdef UINT8_MAX
31657   int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
31658 #endif
31659 #ifdef UINT16_MAX
31660   int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
31661 #endif
31662 #ifdef UINT32_MAX
31663   int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
31664 #endif
31665 #ifdef UINT64_MAX
31666   int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
31667 #endif
31668   int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
31669   int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
31670   int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
31671   int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
31672   int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
31673   int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
31674   int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
31675   int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
31676   int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
31677   int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
31678   int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
31679 };
31680
31681 int
31682 main ()
31683 {
31684
31685   ;
31686   return 0;
31687 }
31688 _ACEOF
31689 rm -f conftest.$ac_objext
31690 if { (ac_try="$ac_compile"
31691 case "(($ac_try" in
31692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31693   *) ac_try_echo=$ac_try;;
31694 esac
31695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31696   (eval "$ac_compile") 2>conftest.er1
31697   ac_status=$?
31698   grep -v '^ *+' conftest.er1 >conftest.err
31699   rm -f conftest.er1
31700   cat conftest.err >&5
31701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31702   (exit $ac_status); } && {
31703          test -z "$ac_c_werror_flag" ||
31704          test ! -s conftest.err
31705        } && test -s conftest.$ac_objext; then
31706   gl_cv_header_working_stdint_h=yes
31707 else
31708   echo "$as_me: failed program was:" >&5
31709 sed 's/^/| /' conftest.$ac_ext >&5
31710
31711
31712 fi
31713
31714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31715 fi
31716 { echo "$as_me:$LINENO: result: $gl_cv_header_working_stdint_h" >&5
31717 echo "${ECHO_T}$gl_cv_header_working_stdint_h" >&6; }
31718   fi
31719   if test "$gl_cv_header_working_stdint_h" = yes; then
31720     STDINT_H=
31721   else
31722
31723
31724 for ac_header in sys/inttypes.h sys/bitypes.h
31725 do
31726 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31727 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31728   { echo "$as_me:$LINENO: checking for $ac_header" >&5
31729 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31730 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31731   echo $ECHO_N "(cached) $ECHO_C" >&6
31732 fi
31733 ac_res=`eval echo '${'$as_ac_Header'}'`
31734                { echo "$as_me:$LINENO: result: $ac_res" >&5
31735 echo "${ECHO_T}$ac_res" >&6; }
31736 else
31737   # Is the header compilable?
31738 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
31739 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
31740 cat >conftest.$ac_ext <<_ACEOF
31741 /* confdefs.h.  */
31742 _ACEOF
31743 cat confdefs.h >>conftest.$ac_ext
31744 cat >>conftest.$ac_ext <<_ACEOF
31745 /* end confdefs.h.  */
31746 $ac_includes_default
31747 #include <$ac_header>
31748 _ACEOF
31749 rm -f conftest.$ac_objext
31750 if { (ac_try="$ac_compile"
31751 case "(($ac_try" in
31752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31753   *) ac_try_echo=$ac_try;;
31754 esac
31755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31756   (eval "$ac_compile") 2>conftest.er1
31757   ac_status=$?
31758   grep -v '^ *+' conftest.er1 >conftest.err
31759   rm -f conftest.er1
31760   cat conftest.err >&5
31761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31762   (exit $ac_status); } && {
31763          test -z "$ac_c_werror_flag" ||
31764          test ! -s conftest.err
31765        } && test -s conftest.$ac_objext; then
31766   ac_header_compiler=yes
31767 else
31768   echo "$as_me: failed program was:" >&5
31769 sed 's/^/| /' conftest.$ac_ext >&5
31770
31771         ac_header_compiler=no
31772 fi
31773
31774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31775 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31776 echo "${ECHO_T}$ac_header_compiler" >&6; }
31777
31778 # Is the header present?
31779 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
31780 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
31781 cat >conftest.$ac_ext <<_ACEOF
31782 /* confdefs.h.  */
31783 _ACEOF
31784 cat confdefs.h >>conftest.$ac_ext
31785 cat >>conftest.$ac_ext <<_ACEOF
31786 /* end confdefs.h.  */
31787 #include <$ac_header>
31788 _ACEOF
31789 if { (ac_try="$ac_cpp conftest.$ac_ext"
31790 case "(($ac_try" in
31791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31792   *) ac_try_echo=$ac_try;;
31793 esac
31794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31795   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31796   ac_status=$?
31797   grep -v '^ *+' conftest.er1 >conftest.err
31798   rm -f conftest.er1
31799   cat conftest.err >&5
31800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31801   (exit $ac_status); } >/dev/null && {
31802          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31803          test ! -s conftest.err
31804        }; then
31805   ac_header_preproc=yes
31806 else
31807   echo "$as_me: failed program was:" >&5
31808 sed 's/^/| /' conftest.$ac_ext >&5
31809
31810   ac_header_preproc=no
31811 fi
31812
31813 rm -f conftest.err conftest.$ac_ext
31814 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31815 echo "${ECHO_T}$ac_header_preproc" >&6; }
31816
31817 # So?  What about this header?
31818 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31819   yes:no: )
31820     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31821 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31822     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31823 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31824     ac_header_preproc=yes
31825     ;;
31826   no:yes:* )
31827     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31828 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31829     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
31830 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
31831     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31832 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31833     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
31834 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
31835     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31836 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31837     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31838 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31839     ( cat <<\_ASBOX
31840 ## ------------------------------ ##
31841 ## Report this to bug-tar@gnu.org ##
31842 ## ------------------------------ ##
31843 _ASBOX
31844      ) | sed "s/^/$as_me: WARNING:     /" >&2
31845     ;;
31846 esac
31847 { echo "$as_me:$LINENO: checking for $ac_header" >&5
31848 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31849 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31850   echo $ECHO_N "(cached) $ECHO_C" >&6
31851 else
31852   eval "$as_ac_Header=\$ac_header_preproc"
31853 fi
31854 ac_res=`eval echo '${'$as_ac_Header'}'`
31855                { echo "$as_me:$LINENO: result: $ac_res" >&5
31856 echo "${ECHO_T}$ac_res" >&6; }
31857
31858 fi
31859 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31860   cat >>confdefs.h <<_ACEOF
31861 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31862 _ACEOF
31863
31864 fi
31865
31866 done
31867
31868     if test $ac_cv_header_sys_inttypes_h = yes; then
31869       HAVE_SYS_INTTYPES_H=1
31870     else
31871       HAVE_SYS_INTTYPES_H=0
31872     fi
31873
31874     if test $ac_cv_header_sys_bitypes_h = yes; then
31875       HAVE_SYS_BITYPES_H=1
31876     else
31877       HAVE_SYS_BITYPES_H=0
31878     fi
31879
31880
31881
31882
31883
31884
31885
31886
31887
31888
31889
31890   if test $APPLE_UNIVERSAL_BUILD = 0; then
31891
31892
31893
31894
31895   for gltype in ptrdiff_t size_t ; do
31896     { echo "$as_me:$LINENO: checking for bit size of $gltype" >&5
31897 echo $ECHO_N "checking for bit size of $gltype... $ECHO_C" >&6; }
31898 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then
31899   echo $ECHO_N "(cached) $ECHO_C" >&6
31900 else
31901   if test "$cross_compiling" = yes; then
31902   # Depending upon the size, compute the lo and hi bounds.
31903 cat >conftest.$ac_ext <<_ACEOF
31904 /* confdefs.h.  */
31905 _ACEOF
31906 cat confdefs.h >>conftest.$ac_ext
31907 cat >>conftest.$ac_ext <<_ACEOF
31908 /* end confdefs.h.  */
31909
31910   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
31911      included before <wchar.h>.  */
31912   #include <stddef.h>
31913   #include <signal.h>
31914   #if HAVE_WCHAR_H
31915   # include <stdio.h>
31916   # include <time.h>
31917   # include <wchar.h>
31918   #endif
31919
31920 #include <limits.h>
31921 int
31922 main ()
31923 {
31924 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= 0)];
31925 test_array [0] = 0
31926
31927   ;
31928   return 0;
31929 }
31930 _ACEOF
31931 rm -f conftest.$ac_objext
31932 if { (ac_try="$ac_compile"
31933 case "(($ac_try" in
31934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31935   *) ac_try_echo=$ac_try;;
31936 esac
31937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31938   (eval "$ac_compile") 2>conftest.er1
31939   ac_status=$?
31940   grep -v '^ *+' conftest.er1 >conftest.err
31941   rm -f conftest.er1
31942   cat conftest.err >&5
31943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31944   (exit $ac_status); } && {
31945          test -z "$ac_c_werror_flag" ||
31946          test ! -s conftest.err
31947        } && test -s conftest.$ac_objext; then
31948   ac_lo=0 ac_mid=0
31949   while :; do
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   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
31958      included before <wchar.h>.  */
31959   #include <stddef.h>
31960   #include <signal.h>
31961   #if HAVE_WCHAR_H
31962   # include <stdio.h>
31963   # include <time.h>
31964   # include <wchar.h>
31965   #endif
31966
31967 #include <limits.h>
31968 int
31969 main ()
31970 {
31971 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
31972 test_array [0] = 0
31973
31974   ;
31975   return 0;
31976 }
31977 _ACEOF
31978 rm -f conftest.$ac_objext
31979 if { (ac_try="$ac_compile"
31980 case "(($ac_try" in
31981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31982   *) ac_try_echo=$ac_try;;
31983 esac
31984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31985   (eval "$ac_compile") 2>conftest.er1
31986   ac_status=$?
31987   grep -v '^ *+' conftest.er1 >conftest.err
31988   rm -f conftest.er1
31989   cat conftest.err >&5
31990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31991   (exit $ac_status); } && {
31992          test -z "$ac_c_werror_flag" ||
31993          test ! -s conftest.err
31994        } && test -s conftest.$ac_objext; then
31995   ac_hi=$ac_mid; break
31996 else
31997   echo "$as_me: failed program was:" >&5
31998 sed 's/^/| /' conftest.$ac_ext >&5
31999
32000         ac_lo=`expr $ac_mid + 1`
32001                         if test $ac_lo -le $ac_mid; then
32002                           ac_lo= ac_hi=
32003                           break
32004                         fi
32005                         ac_mid=`expr 2 '*' $ac_mid + 1`
32006 fi
32007
32008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32009   done
32010 else
32011   echo "$as_me: failed program was:" >&5
32012 sed 's/^/| /' conftest.$ac_ext >&5
32013
32014         cat >conftest.$ac_ext <<_ACEOF
32015 /* confdefs.h.  */
32016 _ACEOF
32017 cat confdefs.h >>conftest.$ac_ext
32018 cat >>conftest.$ac_ext <<_ACEOF
32019 /* end confdefs.h.  */
32020
32021   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
32022      included before <wchar.h>.  */
32023   #include <stddef.h>
32024   #include <signal.h>
32025   #if HAVE_WCHAR_H
32026   # include <stdio.h>
32027   # include <time.h>
32028   # include <wchar.h>
32029   #endif
32030
32031 #include <limits.h>
32032 int
32033 main ()
32034 {
32035 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) < 0)];
32036 test_array [0] = 0
32037
32038   ;
32039   return 0;
32040 }
32041 _ACEOF
32042 rm -f conftest.$ac_objext
32043 if { (ac_try="$ac_compile"
32044 case "(($ac_try" in
32045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32046   *) ac_try_echo=$ac_try;;
32047 esac
32048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32049   (eval "$ac_compile") 2>conftest.er1
32050   ac_status=$?
32051   grep -v '^ *+' conftest.er1 >conftest.err
32052   rm -f conftest.er1
32053   cat conftest.err >&5
32054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32055   (exit $ac_status); } && {
32056          test -z "$ac_c_werror_flag" ||
32057          test ! -s conftest.err
32058        } && test -s conftest.$ac_objext; then
32059   ac_hi=-1 ac_mid=-1
32060   while :; do
32061     cat >conftest.$ac_ext <<_ACEOF
32062 /* confdefs.h.  */
32063 _ACEOF
32064 cat confdefs.h >>conftest.$ac_ext
32065 cat >>conftest.$ac_ext <<_ACEOF
32066 /* end confdefs.h.  */
32067
32068   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
32069      included before <wchar.h>.  */
32070   #include <stddef.h>
32071   #include <signal.h>
32072   #if HAVE_WCHAR_H
32073   # include <stdio.h>
32074   # include <time.h>
32075   # include <wchar.h>
32076   #endif
32077
32078 #include <limits.h>
32079 int
32080 main ()
32081 {
32082 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= $ac_mid)];
32083 test_array [0] = 0
32084
32085   ;
32086   return 0;
32087 }
32088 _ACEOF
32089 rm -f conftest.$ac_objext
32090 if { (ac_try="$ac_compile"
32091 case "(($ac_try" in
32092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32093   *) ac_try_echo=$ac_try;;
32094 esac
32095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32096   (eval "$ac_compile") 2>conftest.er1
32097   ac_status=$?
32098   grep -v '^ *+' conftest.er1 >conftest.err
32099   rm -f conftest.er1
32100   cat conftest.err >&5
32101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32102   (exit $ac_status); } && {
32103          test -z "$ac_c_werror_flag" ||
32104          test ! -s conftest.err
32105        } && test -s conftest.$ac_objext; then
32106   ac_lo=$ac_mid; break
32107 else
32108   echo "$as_me: failed program was:" >&5
32109 sed 's/^/| /' conftest.$ac_ext >&5
32110
32111         ac_hi=`expr '(' $ac_mid ')' - 1`
32112                         if test $ac_mid -le $ac_hi; then
32113                           ac_lo= ac_hi=
32114                           break
32115                         fi
32116                         ac_mid=`expr 2 '*' $ac_mid`
32117 fi
32118
32119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32120   done
32121 else
32122   echo "$as_me: failed program was:" >&5
32123 sed 's/^/| /' conftest.$ac_ext >&5
32124
32125         ac_lo= ac_hi=
32126 fi
32127
32128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32129 fi
32130
32131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32132 # Binary search between lo and hi bounds.
32133 while test "x$ac_lo" != "x$ac_hi"; do
32134   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
32135   cat >conftest.$ac_ext <<_ACEOF
32136 /* confdefs.h.  */
32137 _ACEOF
32138 cat confdefs.h >>conftest.$ac_ext
32139 cat >>conftest.$ac_ext <<_ACEOF
32140 /* end confdefs.h.  */
32141
32142   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
32143      included before <wchar.h>.  */
32144   #include <stddef.h>
32145   #include <signal.h>
32146   #if HAVE_WCHAR_H
32147   # include <stdio.h>
32148   # include <time.h>
32149   # include <wchar.h>
32150   #endif
32151
32152 #include <limits.h>
32153 int
32154 main ()
32155 {
32156 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
32157 test_array [0] = 0
32158
32159   ;
32160   return 0;
32161 }
32162 _ACEOF
32163 rm -f conftest.$ac_objext
32164 if { (ac_try="$ac_compile"
32165 case "(($ac_try" in
32166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32167   *) ac_try_echo=$ac_try;;
32168 esac
32169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32170   (eval "$ac_compile") 2>conftest.er1
32171   ac_status=$?
32172   grep -v '^ *+' conftest.er1 >conftest.err
32173   rm -f conftest.er1
32174   cat conftest.err >&5
32175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32176   (exit $ac_status); } && {
32177          test -z "$ac_c_werror_flag" ||
32178          test ! -s conftest.err
32179        } && test -s conftest.$ac_objext; then
32180   ac_hi=$ac_mid
32181 else
32182   echo "$as_me: failed program was:" >&5
32183 sed 's/^/| /' conftest.$ac_ext >&5
32184
32185         ac_lo=`expr '(' $ac_mid ')' + 1`
32186 fi
32187
32188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32189 done
32190 case $ac_lo in
32191 ?*) result=$ac_lo;;
32192 '') result=unknown ;;
32193 esac
32194 else
32195   cat >conftest.$ac_ext <<_ACEOF
32196 /* confdefs.h.  */
32197 _ACEOF
32198 cat confdefs.h >>conftest.$ac_ext
32199 cat >>conftest.$ac_ext <<_ACEOF
32200 /* end confdefs.h.  */
32201
32202   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
32203      included before <wchar.h>.  */
32204   #include <stddef.h>
32205   #include <signal.h>
32206   #if HAVE_WCHAR_H
32207   # include <stdio.h>
32208   # include <time.h>
32209   # include <wchar.h>
32210   #endif
32211
32212 #include <limits.h>
32213 static long int longval () { return sizeof ($gltype) * CHAR_BIT; }
32214 static unsigned long int ulongval () { return sizeof ($gltype) * CHAR_BIT; }
32215 #include <stdio.h>
32216 #include <stdlib.h>
32217 int
32218 main ()
32219 {
32220
32221   FILE *f = fopen ("conftest.val", "w");
32222   if (! f)
32223     return 1;
32224   if ((sizeof ($gltype) * CHAR_BIT) < 0)
32225     {
32226       long int i = longval ();
32227       if (i != (sizeof ($gltype) * CHAR_BIT))
32228         return 1;
32229       fprintf (f, "%ld\n", i);
32230     }
32231   else
32232     {
32233       unsigned long int i = ulongval ();
32234       if (i != (sizeof ($gltype) * CHAR_BIT))
32235         return 1;
32236       fprintf (f, "%lu\n", i);
32237     }
32238   return ferror (f) || fclose (f) != 0;
32239
32240   ;
32241   return 0;
32242 }
32243 _ACEOF
32244 rm -f conftest$ac_exeext
32245 if { (ac_try="$ac_link"
32246 case "(($ac_try" in
32247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32248   *) ac_try_echo=$ac_try;;
32249 esac
32250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32251   (eval "$ac_link") 2>&5
32252   ac_status=$?
32253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32254   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32255   { (case "(($ac_try" in
32256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32257   *) ac_try_echo=$ac_try;;
32258 esac
32259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32260   (eval "$ac_try") 2>&5
32261   ac_status=$?
32262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32263   (exit $ac_status); }; }; then
32264   result=`cat conftest.val`
32265 else
32266   echo "$as_me: program exited with status $ac_status" >&5
32267 echo "$as_me: failed program was:" >&5
32268 sed 's/^/| /' conftest.$ac_ext >&5
32269
32270 ( exit $ac_status )
32271 result=unknown
32272 fi
32273 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32274 fi
32275 rm -f conftest.val
32276        eval gl_cv_bitsizeof_${gltype}=\$result
32277
32278 fi
32279 ac_res=`eval echo '${'gl_cv_bitsizeof_${gltype}'}'`
32280                { echo "$as_me:$LINENO: result: $ac_res" >&5
32281 echo "${ECHO_T}$ac_res" >&6; }
32282     eval result=\$gl_cv_bitsizeof_${gltype}
32283     if test $result = unknown; then
32284                                                 result=0
32285     fi
32286     GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
32287     cat >>confdefs.h <<_ACEOF
32288 #define BITSIZEOF_${GLTYPE} $result
32289 _ACEOF
32290
32291     eval BITSIZEOF_${GLTYPE}=\$result
32292   done
32293
32294
32295   fi
32296
32297
32298
32299
32300
32301   for gltype in sig_atomic_t wchar_t wint_t ; do
32302     { echo "$as_me:$LINENO: checking for bit size of $gltype" >&5
32303 echo $ECHO_N "checking for bit size of $gltype... $ECHO_C" >&6; }
32304 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then
32305   echo $ECHO_N "(cached) $ECHO_C" >&6
32306 else
32307   if test "$cross_compiling" = yes; then
32308   # Depending upon the size, compute the lo and hi bounds.
32309 cat >conftest.$ac_ext <<_ACEOF
32310 /* confdefs.h.  */
32311 _ACEOF
32312 cat confdefs.h >>conftest.$ac_ext
32313 cat >>conftest.$ac_ext <<_ACEOF
32314 /* end confdefs.h.  */
32315
32316   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
32317      included before <wchar.h>.  */
32318   #include <stddef.h>
32319   #include <signal.h>
32320   #if HAVE_WCHAR_H
32321   # include <stdio.h>
32322   # include <time.h>
32323   # include <wchar.h>
32324   #endif
32325
32326 #include <limits.h>
32327 int
32328 main ()
32329 {
32330 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= 0)];
32331 test_array [0] = 0
32332
32333   ;
32334   return 0;
32335 }
32336 _ACEOF
32337 rm -f conftest.$ac_objext
32338 if { (ac_try="$ac_compile"
32339 case "(($ac_try" in
32340   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32341   *) ac_try_echo=$ac_try;;
32342 esac
32343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32344   (eval "$ac_compile") 2>conftest.er1
32345   ac_status=$?
32346   grep -v '^ *+' conftest.er1 >conftest.err
32347   rm -f conftest.er1
32348   cat conftest.err >&5
32349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32350   (exit $ac_status); } && {
32351          test -z "$ac_c_werror_flag" ||
32352          test ! -s conftest.err
32353        } && test -s conftest.$ac_objext; then
32354   ac_lo=0 ac_mid=0
32355   while :; do
32356     cat >conftest.$ac_ext <<_ACEOF
32357 /* confdefs.h.  */
32358 _ACEOF
32359 cat confdefs.h >>conftest.$ac_ext
32360 cat >>conftest.$ac_ext <<_ACEOF
32361 /* end confdefs.h.  */
32362
32363   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
32364      included before <wchar.h>.  */
32365   #include <stddef.h>
32366   #include <signal.h>
32367   #if HAVE_WCHAR_H
32368   # include <stdio.h>
32369   # include <time.h>
32370   # include <wchar.h>
32371   #endif
32372
32373 #include <limits.h>
32374 int
32375 main ()
32376 {
32377 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
32378 test_array [0] = 0
32379
32380   ;
32381   return 0;
32382 }
32383 _ACEOF
32384 rm -f conftest.$ac_objext
32385 if { (ac_try="$ac_compile"
32386 case "(($ac_try" in
32387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32388   *) ac_try_echo=$ac_try;;
32389 esac
32390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32391   (eval "$ac_compile") 2>conftest.er1
32392   ac_status=$?
32393   grep -v '^ *+' conftest.er1 >conftest.err
32394   rm -f conftest.er1
32395   cat conftest.err >&5
32396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32397   (exit $ac_status); } && {
32398          test -z "$ac_c_werror_flag" ||
32399          test ! -s conftest.err
32400        } && test -s conftest.$ac_objext; then
32401   ac_hi=$ac_mid; break
32402 else
32403   echo "$as_me: failed program was:" >&5
32404 sed 's/^/| /' conftest.$ac_ext >&5
32405
32406         ac_lo=`expr $ac_mid + 1`
32407                         if test $ac_lo -le $ac_mid; then
32408                           ac_lo= ac_hi=
32409                           break
32410                         fi
32411                         ac_mid=`expr 2 '*' $ac_mid + 1`
32412 fi
32413
32414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32415   done
32416 else
32417   echo "$as_me: failed program was:" >&5
32418 sed 's/^/| /' conftest.$ac_ext >&5
32419
32420         cat >conftest.$ac_ext <<_ACEOF
32421 /* confdefs.h.  */
32422 _ACEOF
32423 cat confdefs.h >>conftest.$ac_ext
32424 cat >>conftest.$ac_ext <<_ACEOF
32425 /* end confdefs.h.  */
32426
32427   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
32428      included before <wchar.h>.  */
32429   #include <stddef.h>
32430   #include <signal.h>
32431   #if HAVE_WCHAR_H
32432   # include <stdio.h>
32433   # include <time.h>
32434   # include <wchar.h>
32435   #endif
32436
32437 #include <limits.h>
32438 int
32439 main ()
32440 {
32441 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) < 0)];
32442 test_array [0] = 0
32443
32444   ;
32445   return 0;
32446 }
32447 _ACEOF
32448 rm -f conftest.$ac_objext
32449 if { (ac_try="$ac_compile"
32450 case "(($ac_try" in
32451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32452   *) ac_try_echo=$ac_try;;
32453 esac
32454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32455   (eval "$ac_compile") 2>conftest.er1
32456   ac_status=$?
32457   grep -v '^ *+' conftest.er1 >conftest.err
32458   rm -f conftest.er1
32459   cat conftest.err >&5
32460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32461   (exit $ac_status); } && {
32462          test -z "$ac_c_werror_flag" ||
32463          test ! -s conftest.err
32464        } && test -s conftest.$ac_objext; then
32465   ac_hi=-1 ac_mid=-1
32466   while :; do
32467     cat >conftest.$ac_ext <<_ACEOF
32468 /* confdefs.h.  */
32469 _ACEOF
32470 cat confdefs.h >>conftest.$ac_ext
32471 cat >>conftest.$ac_ext <<_ACEOF
32472 /* end confdefs.h.  */
32473
32474   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
32475      included before <wchar.h>.  */
32476   #include <stddef.h>
32477   #include <signal.h>
32478   #if HAVE_WCHAR_H
32479   # include <stdio.h>
32480   # include <time.h>
32481   # include <wchar.h>
32482   #endif
32483
32484 #include <limits.h>
32485 int
32486 main ()
32487 {
32488 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= $ac_mid)];
32489 test_array [0] = 0
32490
32491   ;
32492   return 0;
32493 }
32494 _ACEOF
32495 rm -f conftest.$ac_objext
32496 if { (ac_try="$ac_compile"
32497 case "(($ac_try" in
32498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32499   *) ac_try_echo=$ac_try;;
32500 esac
32501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32502   (eval "$ac_compile") 2>conftest.er1
32503   ac_status=$?
32504   grep -v '^ *+' conftest.er1 >conftest.err
32505   rm -f conftest.er1
32506   cat conftest.err >&5
32507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32508   (exit $ac_status); } && {
32509          test -z "$ac_c_werror_flag" ||
32510          test ! -s conftest.err
32511        } && test -s conftest.$ac_objext; then
32512   ac_lo=$ac_mid; break
32513 else
32514   echo "$as_me: failed program was:" >&5
32515 sed 's/^/| /' conftest.$ac_ext >&5
32516
32517         ac_hi=`expr '(' $ac_mid ')' - 1`
32518                         if test $ac_mid -le $ac_hi; then
32519                           ac_lo= ac_hi=
32520                           break
32521                         fi
32522                         ac_mid=`expr 2 '*' $ac_mid`
32523 fi
32524
32525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32526   done
32527 else
32528   echo "$as_me: failed program was:" >&5
32529 sed 's/^/| /' conftest.$ac_ext >&5
32530
32531         ac_lo= ac_hi=
32532 fi
32533
32534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32535 fi
32536
32537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32538 # Binary search between lo and hi bounds.
32539 while test "x$ac_lo" != "x$ac_hi"; do
32540   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
32541   cat >conftest.$ac_ext <<_ACEOF
32542 /* confdefs.h.  */
32543 _ACEOF
32544 cat confdefs.h >>conftest.$ac_ext
32545 cat >>conftest.$ac_ext <<_ACEOF
32546 /* end confdefs.h.  */
32547
32548   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
32549      included before <wchar.h>.  */
32550   #include <stddef.h>
32551   #include <signal.h>
32552   #if HAVE_WCHAR_H
32553   # include <stdio.h>
32554   # include <time.h>
32555   # include <wchar.h>
32556   #endif
32557
32558 #include <limits.h>
32559 int
32560 main ()
32561 {
32562 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
32563 test_array [0] = 0
32564
32565   ;
32566   return 0;
32567 }
32568 _ACEOF
32569 rm -f conftest.$ac_objext
32570 if { (ac_try="$ac_compile"
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_compile") 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_objext; then
32586   ac_hi=$ac_mid
32587 else
32588   echo "$as_me: failed program was:" >&5
32589 sed 's/^/| /' conftest.$ac_ext >&5
32590
32591         ac_lo=`expr '(' $ac_mid ')' + 1`
32592 fi
32593
32594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32595 done
32596 case $ac_lo in
32597 ?*) result=$ac_lo;;
32598 '') result=unknown ;;
32599 esac
32600 else
32601   cat >conftest.$ac_ext <<_ACEOF
32602 /* confdefs.h.  */
32603 _ACEOF
32604 cat confdefs.h >>conftest.$ac_ext
32605 cat >>conftest.$ac_ext <<_ACEOF
32606 /* end confdefs.h.  */
32607
32608   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
32609      included before <wchar.h>.  */
32610   #include <stddef.h>
32611   #include <signal.h>
32612   #if HAVE_WCHAR_H
32613   # include <stdio.h>
32614   # include <time.h>
32615   # include <wchar.h>
32616   #endif
32617
32618 #include <limits.h>
32619 static long int longval () { return sizeof ($gltype) * CHAR_BIT; }
32620 static unsigned long int ulongval () { return sizeof ($gltype) * CHAR_BIT; }
32621 #include <stdio.h>
32622 #include <stdlib.h>
32623 int
32624 main ()
32625 {
32626
32627   FILE *f = fopen ("conftest.val", "w");
32628   if (! f)
32629     return 1;
32630   if ((sizeof ($gltype) * CHAR_BIT) < 0)
32631     {
32632       long int i = longval ();
32633       if (i != (sizeof ($gltype) * CHAR_BIT))
32634         return 1;
32635       fprintf (f, "%ld\n", i);
32636     }
32637   else
32638     {
32639       unsigned long int i = ulongval ();
32640       if (i != (sizeof ($gltype) * CHAR_BIT))
32641         return 1;
32642       fprintf (f, "%lu\n", i);
32643     }
32644   return ferror (f) || fclose (f) != 0;
32645
32646   ;
32647   return 0;
32648 }
32649 _ACEOF
32650 rm -f conftest$ac_exeext
32651 if { (ac_try="$ac_link"
32652 case "(($ac_try" in
32653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32654   *) ac_try_echo=$ac_try;;
32655 esac
32656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32657   (eval "$ac_link") 2>&5
32658   ac_status=$?
32659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32660   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32661   { (case "(($ac_try" in
32662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32663   *) ac_try_echo=$ac_try;;
32664 esac
32665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32666   (eval "$ac_try") 2>&5
32667   ac_status=$?
32668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32669   (exit $ac_status); }; }; then
32670   result=`cat conftest.val`
32671 else
32672   echo "$as_me: program exited with status $ac_status" >&5
32673 echo "$as_me: failed program was:" >&5
32674 sed 's/^/| /' conftest.$ac_ext >&5
32675
32676 ( exit $ac_status )
32677 result=unknown
32678 fi
32679 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32680 fi
32681 rm -f conftest.val
32682        eval gl_cv_bitsizeof_${gltype}=\$result
32683
32684 fi
32685 ac_res=`eval echo '${'gl_cv_bitsizeof_${gltype}'}'`
32686                { echo "$as_me:$LINENO: result: $ac_res" >&5
32687 echo "${ECHO_T}$ac_res" >&6; }
32688     eval result=\$gl_cv_bitsizeof_${gltype}
32689     if test $result = unknown; then
32690                                                 result=0
32691     fi
32692     GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
32693     cat >>confdefs.h <<_ACEOF
32694 #define BITSIZEOF_${GLTYPE} $result
32695 _ACEOF
32696
32697     eval BITSIZEOF_${GLTYPE}=\$result
32698   done
32699
32700
32701
32702
32703
32704
32705
32706   for gltype in sig_atomic_t wchar_t wint_t ; do
32707     { echo "$as_me:$LINENO: checking whether $gltype is signed" >&5
32708 echo $ECHO_N "checking whether $gltype is signed... $ECHO_C" >&6; }
32709 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then
32710   echo $ECHO_N "(cached) $ECHO_C" >&6
32711 else
32712   cat >conftest.$ac_ext <<_ACEOF
32713 /* confdefs.h.  */
32714 _ACEOF
32715 cat confdefs.h >>conftest.$ac_ext
32716 cat >>conftest.$ac_ext <<_ACEOF
32717 /* end confdefs.h.  */
32718
32719   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
32720      included before <wchar.h>.  */
32721   #include <stddef.h>
32722   #include <signal.h>
32723   #if HAVE_WCHAR_H
32724   # include <stdio.h>
32725   # include <time.h>
32726   # include <wchar.h>
32727   #endif
32728
32729             int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
32730 int
32731 main ()
32732 {
32733
32734   ;
32735   return 0;
32736 }
32737 _ACEOF
32738 rm -f conftest.$ac_objext
32739 if { (ac_try="$ac_compile"
32740 case "(($ac_try" in
32741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32742   *) ac_try_echo=$ac_try;;
32743 esac
32744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32745   (eval "$ac_compile") 2>conftest.er1
32746   ac_status=$?
32747   grep -v '^ *+' conftest.er1 >conftest.err
32748   rm -f conftest.er1
32749   cat conftest.err >&5
32750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32751   (exit $ac_status); } && {
32752          test -z "$ac_c_werror_flag" ||
32753          test ! -s conftest.err
32754        } && test -s conftest.$ac_objext; then
32755   result=yes
32756 else
32757   echo "$as_me: failed program was:" >&5
32758 sed 's/^/| /' conftest.$ac_ext >&5
32759
32760         result=no
32761 fi
32762
32763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32764        eval gl_cv_type_${gltype}_signed=\$result
32765
32766 fi
32767 ac_res=`eval echo '${'gl_cv_type_${gltype}_signed'}'`
32768                { echo "$as_me:$LINENO: result: $ac_res" >&5
32769 echo "${ECHO_T}$ac_res" >&6; }
32770     eval result=\$gl_cv_type_${gltype}_signed
32771     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
32772     if test "$result" = yes; then
32773       cat >>confdefs.h <<_ACEOF
32774 #define HAVE_SIGNED_${GLTYPE} 1
32775 _ACEOF
32776
32777       eval HAVE_SIGNED_${GLTYPE}=1
32778     else
32779       eval HAVE_SIGNED_${GLTYPE}=0
32780     fi
32781   done
32782
32783
32784   gl_cv_type_ptrdiff_t_signed=yes
32785   gl_cv_type_size_t_signed=no
32786   if test $APPLE_UNIVERSAL_BUILD = 0; then
32787
32788
32789
32790
32791   for gltype in ptrdiff_t size_t ; do
32792     { echo "$as_me:$LINENO: checking for $gltype integer literal suffix" >&5
32793 echo $ECHO_N "checking for $gltype integer literal suffix... $ECHO_C" >&6; }
32794 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then
32795   echo $ECHO_N "(cached) $ECHO_C" >&6
32796 else
32797   eval gl_cv_type_${gltype}_suffix=no
32798        eval result=\$gl_cv_type_${gltype}_signed
32799        if test "$result" = yes; then
32800          glsufu=
32801        else
32802          glsufu=u
32803        fi
32804        for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
32805          case $glsuf in
32806            '')  gltype1='int';;
32807            l)   gltype1='long int';;
32808            ll)  gltype1='long long int';;
32809            i64) gltype1='__int64';;
32810            u)   gltype1='unsigned int';;
32811            ul)  gltype1='unsigned long int';;
32812            ull) gltype1='unsigned long long int';;
32813            ui64)gltype1='unsigned __int64';;
32814          esac
32815          cat >conftest.$ac_ext <<_ACEOF
32816 /* confdefs.h.  */
32817 _ACEOF
32818 cat confdefs.h >>conftest.$ac_ext
32819 cat >>conftest.$ac_ext <<_ACEOF
32820 /* end confdefs.h.  */
32821
32822   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
32823      included before <wchar.h>.  */
32824   #include <stddef.h>
32825   #include <signal.h>
32826   #if HAVE_WCHAR_H
32827   # include <stdio.h>
32828   # include <time.h>
32829   # include <wchar.h>
32830   #endif
32831
32832               extern $gltype foo;
32833               extern $gltype1 foo;
32834 int
32835 main ()
32836 {
32837
32838   ;
32839   return 0;
32840 }
32841 _ACEOF
32842 rm -f conftest.$ac_objext
32843 if { (ac_try="$ac_compile"
32844 case "(($ac_try" in
32845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32846   *) ac_try_echo=$ac_try;;
32847 esac
32848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32849   (eval "$ac_compile") 2>conftest.er1
32850   ac_status=$?
32851   grep -v '^ *+' conftest.er1 >conftest.err
32852   rm -f conftest.er1
32853   cat conftest.err >&5
32854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32855   (exit $ac_status); } && {
32856          test -z "$ac_c_werror_flag" ||
32857          test ! -s conftest.err
32858        } && test -s conftest.$ac_objext; then
32859   eval gl_cv_type_${gltype}_suffix=\$glsuf
32860 else
32861   echo "$as_me: failed program was:" >&5
32862 sed 's/^/| /' conftest.$ac_ext >&5
32863
32864
32865 fi
32866
32867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32868          eval result=\$gl_cv_type_${gltype}_suffix
32869          test "$result" != no && break
32870        done
32871 fi
32872 ac_res=`eval echo '${'gl_cv_type_${gltype}_suffix'}'`
32873                { echo "$as_me:$LINENO: result: $ac_res" >&5
32874 echo "${ECHO_T}$ac_res" >&6; }
32875     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
32876     eval result=\$gl_cv_type_${gltype}_suffix
32877     test "$result" = no && result=
32878     eval ${GLTYPE}_SUFFIX=\$result
32879     cat >>confdefs.h <<_ACEOF
32880 #define ${GLTYPE}_SUFFIX $result
32881 _ACEOF
32882
32883   done
32884
32885
32886   fi
32887
32888
32889
32890
32891
32892   for gltype in sig_atomic_t wchar_t wint_t ; do
32893     { echo "$as_me:$LINENO: checking for $gltype integer literal suffix" >&5
32894 echo $ECHO_N "checking for $gltype integer literal suffix... $ECHO_C" >&6; }
32895 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then
32896   echo $ECHO_N "(cached) $ECHO_C" >&6
32897 else
32898   eval gl_cv_type_${gltype}_suffix=no
32899        eval result=\$gl_cv_type_${gltype}_signed
32900        if test "$result" = yes; then
32901          glsufu=
32902        else
32903          glsufu=u
32904        fi
32905        for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
32906          case $glsuf in
32907            '')  gltype1='int';;
32908            l)   gltype1='long int';;
32909            ll)  gltype1='long long int';;
32910            i64) gltype1='__int64';;
32911            u)   gltype1='unsigned int';;
32912            ul)  gltype1='unsigned long int';;
32913            ull) gltype1='unsigned long long int';;
32914            ui64)gltype1='unsigned __int64';;
32915          esac
32916          cat >conftest.$ac_ext <<_ACEOF
32917 /* confdefs.h.  */
32918 _ACEOF
32919 cat confdefs.h >>conftest.$ac_ext
32920 cat >>conftest.$ac_ext <<_ACEOF
32921 /* end confdefs.h.  */
32922
32923   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
32924      included before <wchar.h>.  */
32925   #include <stddef.h>
32926   #include <signal.h>
32927   #if HAVE_WCHAR_H
32928   # include <stdio.h>
32929   # include <time.h>
32930   # include <wchar.h>
32931   #endif
32932
32933               extern $gltype foo;
32934               extern $gltype1 foo;
32935 int
32936 main ()
32937 {
32938
32939   ;
32940   return 0;
32941 }
32942 _ACEOF
32943 rm -f conftest.$ac_objext
32944 if { (ac_try="$ac_compile"
32945 case "(($ac_try" in
32946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32947   *) ac_try_echo=$ac_try;;
32948 esac
32949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32950   (eval "$ac_compile") 2>conftest.er1
32951   ac_status=$?
32952   grep -v '^ *+' conftest.er1 >conftest.err
32953   rm -f conftest.er1
32954   cat conftest.err >&5
32955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32956   (exit $ac_status); } && {
32957          test -z "$ac_c_werror_flag" ||
32958          test ! -s conftest.err
32959        } && test -s conftest.$ac_objext; then
32960   eval gl_cv_type_${gltype}_suffix=\$glsuf
32961 else
32962   echo "$as_me: failed program was:" >&5
32963 sed 's/^/| /' conftest.$ac_ext >&5
32964
32965
32966 fi
32967
32968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32969          eval result=\$gl_cv_type_${gltype}_suffix
32970          test "$result" != no && break
32971        done
32972 fi
32973 ac_res=`eval echo '${'gl_cv_type_${gltype}_suffix'}'`
32974                { echo "$as_me:$LINENO: result: $ac_res" >&5
32975 echo "${ECHO_T}$ac_res" >&6; }
32976     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
32977     eval result=\$gl_cv_type_${gltype}_suffix
32978     test "$result" = no && result=
32979     eval ${GLTYPE}_SUFFIX=\$result
32980     cat >>confdefs.h <<_ACEOF
32981 #define ${GLTYPE}_SUFFIX $result
32982 _ACEOF
32983
32984   done
32985
32986
32987
32988     STDINT_H=stdint.h
32989   fi
32990
32991
32992
32993
32994
32995
32996
32997
32998
32999
33000
33001
33002
33003
33004
33005      if test $gl_cv_have_include_next = yes; then
33006        gl_cv_next_stdio_h='<'stdio.h'>'
33007      else
33008        { echo "$as_me:$LINENO: checking absolute name of <stdio.h>" >&5
33009 echo $ECHO_N "checking absolute name of <stdio.h>... $ECHO_C" >&6; }
33010 if test "${gl_cv_next_stdio_h+set}" = set; then
33011   echo $ECHO_N "(cached) $ECHO_C" >&6
33012 else
33013
33014           if test $ac_cv_header_stdio_h = yes; then
33015             cat >conftest.$ac_ext <<_ACEOF
33016 /* confdefs.h.  */
33017 _ACEOF
33018 cat confdefs.h >>conftest.$ac_ext
33019 cat >>conftest.$ac_ext <<_ACEOF
33020 /* end confdefs.h.  */
33021 #include <stdio.h>
33022
33023 _ACEOF
33024                                                                     case "$host_os" in
33025               aix*) gl_absname_cpp="$ac_cpp -C" ;;
33026               *)    gl_absname_cpp="$ac_cpp" ;;
33027             esac
33028                                     gl_cv_next_stdio_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
33029                sed -n '\#/stdio.h#{
33030                  s#.*"\(.*/stdio.h\)".*#\1#
33031                  s#^/[^/]#//&#
33032                  p
33033                  q
33034                }'`'"'
33035           else
33036             gl_cv_next_stdio_h='<'stdio.h'>'
33037           fi
33038
33039 fi
33040 { echo "$as_me:$LINENO: result: $gl_cv_next_stdio_h" >&5
33041 echo "${ECHO_T}$gl_cv_next_stdio_h" >&6; }
33042      fi
33043      NEXT_STDIO_H=$gl_cv_next_stdio_h
33044
33045
33046
33047       GNULIB_FPRINTF=1
33048   GNULIB_PRINTF=1
33049   GNULIB_VFPRINTF=1
33050   GNULIB_VPRINTF=1
33051   GNULIB_FPUTC=1
33052   GNULIB_PUTC=1
33053   GNULIB_PUTCHAR=1
33054   GNULIB_FPUTS=1
33055   GNULIB_PUTS=1
33056   GNULIB_FWRITE=1
33057
33058
33059
33060
33061
33062
33063
33064
33065
33066
33067
33068
33069
33070
33071
33072      if test $gl_cv_have_include_next = yes; then
33073        gl_cv_next_stdlib_h='<'stdlib.h'>'
33074      else
33075        { echo "$as_me:$LINENO: checking absolute name of <stdlib.h>" >&5
33076 echo $ECHO_N "checking absolute name of <stdlib.h>... $ECHO_C" >&6; }
33077 if test "${gl_cv_next_stdlib_h+set}" = set; then
33078   echo $ECHO_N "(cached) $ECHO_C" >&6
33079 else
33080
33081           if test $ac_cv_header_stdlib_h = yes; then
33082             cat >conftest.$ac_ext <<_ACEOF
33083 /* confdefs.h.  */
33084 _ACEOF
33085 cat confdefs.h >>conftest.$ac_ext
33086 cat >>conftest.$ac_ext <<_ACEOF
33087 /* end confdefs.h.  */
33088 #include <stdlib.h>
33089
33090 _ACEOF
33091                                                                     case "$host_os" in
33092               aix*) gl_absname_cpp="$ac_cpp -C" ;;
33093               *)    gl_absname_cpp="$ac_cpp" ;;
33094             esac
33095                                     gl_cv_next_stdlib_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
33096                sed -n '\#/stdlib.h#{
33097                  s#.*"\(.*/stdlib.h\)".*#\1#
33098                  s#^/[^/]#//&#
33099                  p
33100                  q
33101                }'`'"'
33102           else
33103             gl_cv_next_stdlib_h='<'stdlib.h'>'
33104           fi
33105
33106 fi
33107 { echo "$as_me:$LINENO: result: $gl_cv_next_stdlib_h" >&5
33108 echo "${ECHO_T}$gl_cv_next_stdlib_h" >&6; }
33109      fi
33110      NEXT_STDLIB_H=$gl_cv_next_stdlib_h
33111
33112
33113
33114
33115 for ac_header in random.h
33116 do
33117 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33118 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33119   { echo "$as_me:$LINENO: checking for $ac_header" >&5
33120 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33121 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33122   echo $ECHO_N "(cached) $ECHO_C" >&6
33123 fi
33124 ac_res=`eval echo '${'$as_ac_Header'}'`
33125                { echo "$as_me:$LINENO: result: $ac_res" >&5
33126 echo "${ECHO_T}$ac_res" >&6; }
33127 else
33128   # Is the header compilable?
33129 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
33130 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
33131 cat >conftest.$ac_ext <<_ACEOF
33132 /* confdefs.h.  */
33133 _ACEOF
33134 cat confdefs.h >>conftest.$ac_ext
33135 cat >>conftest.$ac_ext <<_ACEOF
33136 /* end confdefs.h.  */
33137 $ac_includes_default
33138 #include <$ac_header>
33139 _ACEOF
33140 rm -f conftest.$ac_objext
33141 if { (ac_try="$ac_compile"
33142 case "(($ac_try" in
33143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33144   *) ac_try_echo=$ac_try;;
33145 esac
33146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33147   (eval "$ac_compile") 2>conftest.er1
33148   ac_status=$?
33149   grep -v '^ *+' conftest.er1 >conftest.err
33150   rm -f conftest.er1
33151   cat conftest.err >&5
33152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33153   (exit $ac_status); } && {
33154          test -z "$ac_c_werror_flag" ||
33155          test ! -s conftest.err
33156        } && test -s conftest.$ac_objext; then
33157   ac_header_compiler=yes
33158 else
33159   echo "$as_me: failed program was:" >&5
33160 sed 's/^/| /' conftest.$ac_ext >&5
33161
33162         ac_header_compiler=no
33163 fi
33164
33165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33166 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33167 echo "${ECHO_T}$ac_header_compiler" >&6; }
33168
33169 # Is the header present?
33170 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
33171 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
33172 cat >conftest.$ac_ext <<_ACEOF
33173 /* confdefs.h.  */
33174 _ACEOF
33175 cat confdefs.h >>conftest.$ac_ext
33176 cat >>conftest.$ac_ext <<_ACEOF
33177 /* end confdefs.h.  */
33178 #include <$ac_header>
33179 _ACEOF
33180 if { (ac_try="$ac_cpp conftest.$ac_ext"
33181 case "(($ac_try" in
33182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33183   *) ac_try_echo=$ac_try;;
33184 esac
33185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33186   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33187   ac_status=$?
33188   grep -v '^ *+' conftest.er1 >conftest.err
33189   rm -f conftest.er1
33190   cat conftest.err >&5
33191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33192   (exit $ac_status); } >/dev/null && {
33193          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33194          test ! -s conftest.err
33195        }; then
33196   ac_header_preproc=yes
33197 else
33198   echo "$as_me: failed program was:" >&5
33199 sed 's/^/| /' conftest.$ac_ext >&5
33200
33201   ac_header_preproc=no
33202 fi
33203
33204 rm -f conftest.err conftest.$ac_ext
33205 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33206 echo "${ECHO_T}$ac_header_preproc" >&6; }
33207
33208 # So?  What about this header?
33209 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33210   yes:no: )
33211     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33212 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33213     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33214 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33215     ac_header_preproc=yes
33216     ;;
33217   no:yes:* )
33218     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33219 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33220     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
33221 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
33222     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33223 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33224     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
33225 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
33226     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33227 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33228     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33229 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33230     ( cat <<\_ASBOX
33231 ## ------------------------------ ##
33232 ## Report this to bug-tar@gnu.org ##
33233 ## ------------------------------ ##
33234 _ASBOX
33235      ) | sed "s/^/$as_me: WARNING:     /" >&2
33236     ;;
33237 esac
33238 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33239 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33240 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33241   echo $ECHO_N "(cached) $ECHO_C" >&6
33242 else
33243   eval "$as_ac_Header=\$ac_header_preproc"
33244 fi
33245 ac_res=`eval echo '${'$as_ac_Header'}'`
33246                { echo "$as_me:$LINENO: result: $ac_res" >&5
33247 echo "${ECHO_T}$ac_res" >&6; }
33248
33249 fi
33250 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33251   cat >>confdefs.h <<_ACEOF
33252 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33253 _ACEOF
33254
33255 fi
33256
33257 done
33258
33259   if test $ac_cv_header_random_h = yes; then
33260     HAVE_RANDOM_H=1
33261   else
33262     HAVE_RANDOM_H=0
33263   fi
33264
33265   { echo "$as_me:$LINENO: checking for struct random_data" >&5
33266 echo $ECHO_N "checking for struct random_data... $ECHO_C" >&6; }
33267 if test "${ac_cv_type_struct_random_data+set}" = set; then
33268   echo $ECHO_N "(cached) $ECHO_C" >&6
33269 else
33270   cat >conftest.$ac_ext <<_ACEOF
33271 /* confdefs.h.  */
33272 _ACEOF
33273 cat confdefs.h >>conftest.$ac_ext
33274 cat >>conftest.$ac_ext <<_ACEOF
33275 /* end confdefs.h.  */
33276 #include <stdlib.h>
33277       #if HAVE_RANDOM_H
33278       # include <random.h>
33279       #endif
33280
33281
33282 typedef struct random_data ac__type_new_;
33283 int
33284 main ()
33285 {
33286 if ((ac__type_new_ *) 0)
33287   return 0;
33288 if (sizeof (ac__type_new_))
33289   return 0;
33290   ;
33291   return 0;
33292 }
33293 _ACEOF
33294 rm -f conftest.$ac_objext
33295 if { (ac_try="$ac_compile"
33296 case "(($ac_try" in
33297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33298   *) ac_try_echo=$ac_try;;
33299 esac
33300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33301   (eval "$ac_compile") 2>conftest.er1
33302   ac_status=$?
33303   grep -v '^ *+' conftest.er1 >conftest.err
33304   rm -f conftest.er1
33305   cat conftest.err >&5
33306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33307   (exit $ac_status); } && {
33308          test -z "$ac_c_werror_flag" ||
33309          test ! -s conftest.err
33310        } && test -s conftest.$ac_objext; then
33311   ac_cv_type_struct_random_data=yes
33312 else
33313   echo "$as_me: failed program was:" >&5
33314 sed 's/^/| /' conftest.$ac_ext >&5
33315
33316         ac_cv_type_struct_random_data=no
33317 fi
33318
33319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33320 fi
33321 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_random_data" >&5
33322 echo "${ECHO_T}$ac_cv_type_struct_random_data" >&6; }
33323 if test $ac_cv_type_struct_random_data = yes; then
33324
33325 cat >>confdefs.h <<_ACEOF
33326 #define HAVE_STRUCT_RANDOM_DATA 1
33327 _ACEOF
33328
33329
33330 else
33331   HAVE_STRUCT_RANDOM_DATA=0
33332 fi
33333
33334
33335
33336
33337
33338
33339
33340
33341
33342
33343
33344
33345
33346
33347
33348
33349
33350 for ac_func in stpcpy
33351 do
33352 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33353 { echo "$as_me:$LINENO: checking for $ac_func" >&5
33354 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33355 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33356   echo $ECHO_N "(cached) $ECHO_C" >&6
33357 else
33358   cat >conftest.$ac_ext <<_ACEOF
33359 /* confdefs.h.  */
33360 _ACEOF
33361 cat confdefs.h >>conftest.$ac_ext
33362 cat >>conftest.$ac_ext <<_ACEOF
33363 /* end confdefs.h.  */
33364 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33365    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33366 #define $ac_func innocuous_$ac_func
33367
33368 /* System header to define __stub macros and hopefully few prototypes,
33369     which can conflict with char $ac_func (); below.
33370     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33371     <limits.h> exists even on freestanding compilers.  */
33372
33373 #ifdef __STDC__
33374 # include <limits.h>
33375 #else
33376 # include <assert.h>
33377 #endif
33378
33379 #undef $ac_func
33380
33381 /* Override any GCC internal prototype to avoid an error.
33382    Use char because int might match the return type of a GCC
33383    builtin and then its argument prototype would still apply.  */
33384 #ifdef __cplusplus
33385 extern "C"
33386 #endif
33387 char $ac_func ();
33388 /* The GNU C library defines this for functions which it implements
33389     to always fail with ENOSYS.  Some functions are actually named
33390     something starting with __ and the normal name is an alias.  */
33391 #if defined __stub_$ac_func || defined __stub___$ac_func
33392 choke me
33393 #endif
33394
33395 int
33396 main ()
33397 {
33398 return $ac_func ();
33399   ;
33400   return 0;
33401 }
33402 _ACEOF
33403 rm -f conftest.$ac_objext conftest$ac_exeext
33404 if { (ac_try="$ac_link"
33405 case "(($ac_try" in
33406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33407   *) ac_try_echo=$ac_try;;
33408 esac
33409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33410   (eval "$ac_link") 2>conftest.er1
33411   ac_status=$?
33412   grep -v '^ *+' conftest.er1 >conftest.err
33413   rm -f conftest.er1
33414   cat conftest.err >&5
33415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33416   (exit $ac_status); } && {
33417          test -z "$ac_c_werror_flag" ||
33418          test ! -s conftest.err
33419        } && test -s conftest$ac_exeext &&
33420        $as_test_x conftest$ac_exeext; then
33421   eval "$as_ac_var=yes"
33422 else
33423   echo "$as_me: failed program was:" >&5
33424 sed 's/^/| /' conftest.$ac_ext >&5
33425
33426         eval "$as_ac_var=no"
33427 fi
33428
33429 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33430       conftest$ac_exeext conftest.$ac_ext
33431 fi
33432 ac_res=`eval echo '${'$as_ac_var'}'`
33433                { echo "$as_me:$LINENO: result: $ac_res" >&5
33434 echo "${ECHO_T}$ac_res" >&6; }
33435 if test `eval echo '${'$as_ac_var'}'` = yes; then
33436   cat >>confdefs.h <<_ACEOF
33437 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33438 _ACEOF
33439
33440 else
33441
33442     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
33443
33444 fi
33445 done
33446
33447
33448   if test $ac_cv_func_stpcpy = no; then
33449     HAVE_STPCPY=0
33450
33451   :
33452
33453   fi
33454
33455
33456
33457   GNULIB_STPCPY=1
33458
33459
33460
33461
33462
33463
33464
33465
33466
33467
33468
33469
33470
33471 for ac_func in strcasecmp
33472 do
33473 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33474 { echo "$as_me:$LINENO: checking for $ac_func" >&5
33475 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33476 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33477   echo $ECHO_N "(cached) $ECHO_C" >&6
33478 else
33479   cat >conftest.$ac_ext <<_ACEOF
33480 /* confdefs.h.  */
33481 _ACEOF
33482 cat confdefs.h >>conftest.$ac_ext
33483 cat >>conftest.$ac_ext <<_ACEOF
33484 /* end confdefs.h.  */
33485 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33486    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33487 #define $ac_func innocuous_$ac_func
33488
33489 /* System header to define __stub macros and hopefully few prototypes,
33490     which can conflict with char $ac_func (); below.
33491     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33492     <limits.h> exists even on freestanding compilers.  */
33493
33494 #ifdef __STDC__
33495 # include <limits.h>
33496 #else
33497 # include <assert.h>
33498 #endif
33499
33500 #undef $ac_func
33501
33502 /* Override any GCC internal prototype to avoid an error.
33503    Use char because int might match the return type of a GCC
33504    builtin and then its argument prototype would still apply.  */
33505 #ifdef __cplusplus
33506 extern "C"
33507 #endif
33508 char $ac_func ();
33509 /* The GNU C library defines this for functions which it implements
33510     to always fail with ENOSYS.  Some functions are actually named
33511     something starting with __ and the normal name is an alias.  */
33512 #if defined __stub_$ac_func || defined __stub___$ac_func
33513 choke me
33514 #endif
33515
33516 int
33517 main ()
33518 {
33519 return $ac_func ();
33520   ;
33521   return 0;
33522 }
33523 _ACEOF
33524 rm -f conftest.$ac_objext conftest$ac_exeext
33525 if { (ac_try="$ac_link"
33526 case "(($ac_try" in
33527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33528   *) ac_try_echo=$ac_try;;
33529 esac
33530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33531   (eval "$ac_link") 2>conftest.er1
33532   ac_status=$?
33533   grep -v '^ *+' conftest.er1 >conftest.err
33534   rm -f conftest.er1
33535   cat conftest.err >&5
33536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33537   (exit $ac_status); } && {
33538          test -z "$ac_c_werror_flag" ||
33539          test ! -s conftest.err
33540        } && test -s conftest$ac_exeext &&
33541        $as_test_x conftest$ac_exeext; then
33542   eval "$as_ac_var=yes"
33543 else
33544   echo "$as_me: failed program was:" >&5
33545 sed 's/^/| /' conftest.$ac_ext >&5
33546
33547         eval "$as_ac_var=no"
33548 fi
33549
33550 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33551       conftest$ac_exeext conftest.$ac_ext
33552 fi
33553 ac_res=`eval echo '${'$as_ac_var'}'`
33554                { echo "$as_me:$LINENO: result: $ac_res" >&5
33555 echo "${ECHO_T}$ac_res" >&6; }
33556 if test `eval echo '${'$as_ac_var'}'` = yes; then
33557   cat >>confdefs.h <<_ACEOF
33558 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33559 _ACEOF
33560
33561 else
33562
33563     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
33564
33565 fi
33566 done
33567
33568
33569   if test $ac_cv_func_strcasecmp = no; then
33570     HAVE_STRCASECMP=0
33571
33572   :
33573
33574   fi
33575
33576
33577
33578
33579
33580
33581
33582
33583
33584
33585
33586
33587 for ac_func in strncasecmp
33588 do
33589 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33590 { echo "$as_me:$LINENO: checking for $ac_func" >&5
33591 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33592 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33593   echo $ECHO_N "(cached) $ECHO_C" >&6
33594 else
33595   cat >conftest.$ac_ext <<_ACEOF
33596 /* confdefs.h.  */
33597 _ACEOF
33598 cat confdefs.h >>conftest.$ac_ext
33599 cat >>conftest.$ac_ext <<_ACEOF
33600 /* end confdefs.h.  */
33601 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33602    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33603 #define $ac_func innocuous_$ac_func
33604
33605 /* System header to define __stub macros and hopefully few prototypes,
33606     which can conflict with char $ac_func (); below.
33607     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33608     <limits.h> exists even on freestanding compilers.  */
33609
33610 #ifdef __STDC__
33611 # include <limits.h>
33612 #else
33613 # include <assert.h>
33614 #endif
33615
33616 #undef $ac_func
33617
33618 /* Override any GCC internal prototype to avoid an error.
33619    Use char because int might match the return type of a GCC
33620    builtin and then its argument prototype would still apply.  */
33621 #ifdef __cplusplus
33622 extern "C"
33623 #endif
33624 char $ac_func ();
33625 /* The GNU C library defines this for functions which it implements
33626     to always fail with ENOSYS.  Some functions are actually named
33627     something starting with __ and the normal name is an alias.  */
33628 #if defined __stub_$ac_func || defined __stub___$ac_func
33629 choke me
33630 #endif
33631
33632 int
33633 main ()
33634 {
33635 return $ac_func ();
33636   ;
33637   return 0;
33638 }
33639 _ACEOF
33640 rm -f conftest.$ac_objext conftest$ac_exeext
33641 if { (ac_try="$ac_link"
33642 case "(($ac_try" in
33643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33644   *) ac_try_echo=$ac_try;;
33645 esac
33646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33647   (eval "$ac_link") 2>conftest.er1
33648   ac_status=$?
33649   grep -v '^ *+' conftest.er1 >conftest.err
33650   rm -f conftest.er1
33651   cat conftest.err >&5
33652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33653   (exit $ac_status); } && {
33654          test -z "$ac_c_werror_flag" ||
33655          test ! -s conftest.err
33656        } && test -s conftest$ac_exeext &&
33657        $as_test_x conftest$ac_exeext; then
33658   eval "$as_ac_var=yes"
33659 else
33660   echo "$as_me: failed program was:" >&5
33661 sed 's/^/| /' conftest.$ac_ext >&5
33662
33663         eval "$as_ac_var=no"
33664 fi
33665
33666 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33667       conftest$ac_exeext conftest.$ac_ext
33668 fi
33669 ac_res=`eval echo '${'$as_ac_var'}'`
33670                { echo "$as_me:$LINENO: result: $ac_res" >&5
33671 echo "${ECHO_T}$ac_res" >&6; }
33672 if test `eval echo '${'$as_ac_var'}'` = yes; then
33673   cat >>confdefs.h <<_ACEOF
33674 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33675 _ACEOF
33676
33677 else
33678
33679     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
33680
33681 fi
33682 done
33683
33684
33685   if test $ac_cv_func_strncasecmp = no; then
33686
33687   :
33688
33689   fi
33690   { echo "$as_me:$LINENO: checking whether strncasecmp is declared" >&5
33691 echo $ECHO_N "checking whether strncasecmp is declared... $ECHO_C" >&6; }
33692 if test "${ac_cv_have_decl_strncasecmp+set}" = set; then
33693   echo $ECHO_N "(cached) $ECHO_C" >&6
33694 else
33695   cat >conftest.$ac_ext <<_ACEOF
33696 /* confdefs.h.  */
33697 _ACEOF
33698 cat confdefs.h >>conftest.$ac_ext
33699 cat >>conftest.$ac_ext <<_ACEOF
33700 /* end confdefs.h.  */
33701 $ac_includes_default
33702 int
33703 main ()
33704 {
33705 #ifndef strncasecmp
33706   (void) strncasecmp;
33707 #endif
33708
33709   ;
33710   return 0;
33711 }
33712 _ACEOF
33713 rm -f conftest.$ac_objext
33714 if { (ac_try="$ac_compile"
33715 case "(($ac_try" in
33716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33717   *) ac_try_echo=$ac_try;;
33718 esac
33719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33720   (eval "$ac_compile") 2>conftest.er1
33721   ac_status=$?
33722   grep -v '^ *+' conftest.er1 >conftest.err
33723   rm -f conftest.er1
33724   cat conftest.err >&5
33725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33726   (exit $ac_status); } && {
33727          test -z "$ac_c_werror_flag" ||
33728          test ! -s conftest.err
33729        } && test -s conftest.$ac_objext; then
33730   ac_cv_have_decl_strncasecmp=yes
33731 else
33732   echo "$as_me: failed program was:" >&5
33733 sed 's/^/| /' conftest.$ac_ext >&5
33734
33735         ac_cv_have_decl_strncasecmp=no
33736 fi
33737
33738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33739 fi
33740 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strncasecmp" >&5
33741 echo "${ECHO_T}$ac_cv_have_decl_strncasecmp" >&6; }
33742 if test $ac_cv_have_decl_strncasecmp = yes; then
33743
33744 cat >>confdefs.h <<_ACEOF
33745 #define HAVE_DECL_STRNCASECMP 1
33746 _ACEOF
33747
33748
33749 else
33750   cat >>confdefs.h <<_ACEOF
33751 #define HAVE_DECL_STRNCASECMP 0
33752 _ACEOF
33753
33754
33755 fi
33756
33757
33758   if test $ac_cv_have_decl_strncasecmp = no; then
33759     HAVE_DECL_STRNCASECMP=0
33760   fi
33761
33762
33763
33764
33765
33766
33767
33768
33769
33770
33771
33772
33773
33774
33775
33776 for ac_func in strchrnul
33777 do
33778 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33779 { echo "$as_me:$LINENO: checking for $ac_func" >&5
33780 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33781 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33782   echo $ECHO_N "(cached) $ECHO_C" >&6
33783 else
33784   cat >conftest.$ac_ext <<_ACEOF
33785 /* confdefs.h.  */
33786 _ACEOF
33787 cat confdefs.h >>conftest.$ac_ext
33788 cat >>conftest.$ac_ext <<_ACEOF
33789 /* end confdefs.h.  */
33790 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33791    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33792 #define $ac_func innocuous_$ac_func
33793
33794 /* System header to define __stub macros and hopefully few prototypes,
33795     which can conflict with char $ac_func (); below.
33796     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33797     <limits.h> exists even on freestanding compilers.  */
33798
33799 #ifdef __STDC__
33800 # include <limits.h>
33801 #else
33802 # include <assert.h>
33803 #endif
33804
33805 #undef $ac_func
33806
33807 /* Override any GCC internal prototype to avoid an error.
33808    Use char because int might match the return type of a GCC
33809    builtin and then its argument prototype would still apply.  */
33810 #ifdef __cplusplus
33811 extern "C"
33812 #endif
33813 char $ac_func ();
33814 /* The GNU C library defines this for functions which it implements
33815     to always fail with ENOSYS.  Some functions are actually named
33816     something starting with __ and the normal name is an alias.  */
33817 #if defined __stub_$ac_func || defined __stub___$ac_func
33818 choke me
33819 #endif
33820
33821 int
33822 main ()
33823 {
33824 return $ac_func ();
33825   ;
33826   return 0;
33827 }
33828 _ACEOF
33829 rm -f conftest.$ac_objext conftest$ac_exeext
33830 if { (ac_try="$ac_link"
33831 case "(($ac_try" in
33832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33833   *) ac_try_echo=$ac_try;;
33834 esac
33835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33836   (eval "$ac_link") 2>conftest.er1
33837   ac_status=$?
33838   grep -v '^ *+' conftest.er1 >conftest.err
33839   rm -f conftest.er1
33840   cat conftest.err >&5
33841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33842   (exit $ac_status); } && {
33843          test -z "$ac_c_werror_flag" ||
33844          test ! -s conftest.err
33845        } && test -s conftest$ac_exeext &&
33846        $as_test_x conftest$ac_exeext; then
33847   eval "$as_ac_var=yes"
33848 else
33849   echo "$as_me: failed program was:" >&5
33850 sed 's/^/| /' conftest.$ac_ext >&5
33851
33852         eval "$as_ac_var=no"
33853 fi
33854
33855 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33856       conftest$ac_exeext conftest.$ac_ext
33857 fi
33858 ac_res=`eval echo '${'$as_ac_var'}'`
33859                { echo "$as_me:$LINENO: result: $ac_res" >&5
33860 echo "${ECHO_T}$ac_res" >&6; }
33861 if test `eval echo '${'$as_ac_var'}'` = yes; then
33862   cat >>confdefs.h <<_ACEOF
33863 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33864 _ACEOF
33865
33866 else
33867
33868     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
33869
33870 fi
33871 done
33872
33873
33874   if test $ac_cv_func_strchrnul = no; then
33875     HAVE_STRCHRNUL=0
33876     :
33877   fi
33878
33879
33880
33881   GNULIB_STRCHRNUL=1
33882
33883
33884
33885
33886   if test $gl_cv_func_malloc_posix != yes; then
33887     REPLACE_STRDUP=1
33888
33889
33890
33891
33892
33893
33894
33895
33896   gl_LIBOBJS="$gl_LIBOBJS strdup.$ac_objext"
33897
33898   else
33899
33900
33901
33902
33903
33904
33905
33906
33907
33908 for ac_func in strdup
33909 do
33910 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33911 { echo "$as_me:$LINENO: checking for $ac_func" >&5
33912 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33913 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33914   echo $ECHO_N "(cached) $ECHO_C" >&6
33915 else
33916   cat >conftest.$ac_ext <<_ACEOF
33917 /* confdefs.h.  */
33918 _ACEOF
33919 cat confdefs.h >>conftest.$ac_ext
33920 cat >>conftest.$ac_ext <<_ACEOF
33921 /* end confdefs.h.  */
33922 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33923    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33924 #define $ac_func innocuous_$ac_func
33925
33926 /* System header to define __stub macros and hopefully few prototypes,
33927     which can conflict with char $ac_func (); below.
33928     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33929     <limits.h> exists even on freestanding compilers.  */
33930
33931 #ifdef __STDC__
33932 # include <limits.h>
33933 #else
33934 # include <assert.h>
33935 #endif
33936
33937 #undef $ac_func
33938
33939 /* Override any GCC internal prototype to avoid an error.
33940    Use char because int might match the return type of a GCC
33941    builtin and then its argument prototype would still apply.  */
33942 #ifdef __cplusplus
33943 extern "C"
33944 #endif
33945 char $ac_func ();
33946 /* The GNU C library defines this for functions which it implements
33947     to always fail with ENOSYS.  Some functions are actually named
33948     something starting with __ and the normal name is an alias.  */
33949 #if defined __stub_$ac_func || defined __stub___$ac_func
33950 choke me
33951 #endif
33952
33953 int
33954 main ()
33955 {
33956 return $ac_func ();
33957   ;
33958   return 0;
33959 }
33960 _ACEOF
33961 rm -f conftest.$ac_objext conftest$ac_exeext
33962 if { (ac_try="$ac_link"
33963 case "(($ac_try" in
33964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33965   *) ac_try_echo=$ac_try;;
33966 esac
33967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33968   (eval "$ac_link") 2>conftest.er1
33969   ac_status=$?
33970   grep -v '^ *+' conftest.er1 >conftest.err
33971   rm -f conftest.er1
33972   cat conftest.err >&5
33973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33974   (exit $ac_status); } && {
33975          test -z "$ac_c_werror_flag" ||
33976          test ! -s conftest.err
33977        } && test -s conftest$ac_exeext &&
33978        $as_test_x conftest$ac_exeext; then
33979   eval "$as_ac_var=yes"
33980 else
33981   echo "$as_me: failed program was:" >&5
33982 sed 's/^/| /' conftest.$ac_ext >&5
33983
33984         eval "$as_ac_var=no"
33985 fi
33986
33987 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33988       conftest$ac_exeext conftest.$ac_ext
33989 fi
33990 ac_res=`eval echo '${'$as_ac_var'}'`
33991                { echo "$as_me:$LINENO: result: $ac_res" >&5
33992 echo "${ECHO_T}$ac_res" >&6; }
33993 if test `eval echo '${'$as_ac_var'}'` = yes; then
33994   cat >>confdefs.h <<_ACEOF
33995 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33996 _ACEOF
33997
33998 else
33999
34000     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
34001
34002 fi
34003 done
34004
34005
34006   fi
34007
34008
34009
34010
34011   if test $ac_cv_have_decl_strdup = no; then
34012     HAVE_DECL_STRDUP=0
34013   fi
34014   :
34015
34016
34017
34018   GNULIB_STRDUP=1
34019
34020
34021
34022   if test $REPLACE_STRERROR = 1; then
34023
34024
34025
34026
34027
34028
34029
34030
34031   gl_LIBOBJS="$gl_LIBOBJS strerror.$ac_objext"
34032
34033
34034 cat >>confdefs.h <<_ACEOF
34035 #define REPLACE_STRERROR $REPLACE_STRERROR
34036 _ACEOF
34037
34038   fi
34039
34040
34041
34042   GNULIB_STRERROR=1
34043
34044
34045
34046
34047
34048
34049
34050
34051
34052
34053
34054
34055
34056
34057
34058   if test $ac_cv_have_decl_strndup = no; then
34059     HAVE_DECL_STRNDUP=0
34060   fi
34061
34062   # AIX 4.3.3, AIX 5.1 have a function that fails to add the terminating '\0'.
34063   { echo "$as_me:$LINENO: checking for working strndup" >&5
34064 echo $ECHO_N "checking for working strndup... $ECHO_C" >&6; }
34065 if test "${gl_cv_func_strndup+set}" = set; then
34066   echo $ECHO_N "(cached) $ECHO_C" >&6
34067 else
34068   if test "$cross_compiling" = yes; then
34069   { echo "$as_me:$LINENO: checking for strndup" >&5
34070 echo $ECHO_N "checking for strndup... $ECHO_C" >&6; }
34071 if test "${ac_cv_func_strndup+set}" = set; then
34072   echo $ECHO_N "(cached) $ECHO_C" >&6
34073 else
34074   cat >conftest.$ac_ext <<_ACEOF
34075 /* confdefs.h.  */
34076 _ACEOF
34077 cat confdefs.h >>conftest.$ac_ext
34078 cat >>conftest.$ac_ext <<_ACEOF
34079 /* end confdefs.h.  */
34080 /* Define strndup to an innocuous variant, in case <limits.h> declares strndup.
34081    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34082 #define strndup innocuous_strndup
34083
34084 /* System header to define __stub macros and hopefully few prototypes,
34085     which can conflict with char strndup (); below.
34086     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34087     <limits.h> exists even on freestanding compilers.  */
34088
34089 #ifdef __STDC__
34090 # include <limits.h>
34091 #else
34092 # include <assert.h>
34093 #endif
34094
34095 #undef strndup
34096
34097 /* Override any GCC internal prototype to avoid an error.
34098    Use char because int might match the return type of a GCC
34099    builtin and then its argument prototype would still apply.  */
34100 #ifdef __cplusplus
34101 extern "C"
34102 #endif
34103 char strndup ();
34104 /* The GNU C library defines this for functions which it implements
34105     to always fail with ENOSYS.  Some functions are actually named
34106     something starting with __ and the normal name is an alias.  */
34107 #if defined __stub_strndup || defined __stub___strndup
34108 choke me
34109 #endif
34110
34111 int
34112 main ()
34113 {
34114 return strndup ();
34115   ;
34116   return 0;
34117 }
34118 _ACEOF
34119 rm -f conftest.$ac_objext conftest$ac_exeext
34120 if { (ac_try="$ac_link"
34121 case "(($ac_try" in
34122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34123   *) ac_try_echo=$ac_try;;
34124 esac
34125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34126   (eval "$ac_link") 2>conftest.er1
34127   ac_status=$?
34128   grep -v '^ *+' conftest.er1 >conftest.err
34129   rm -f conftest.er1
34130   cat conftest.err >&5
34131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34132   (exit $ac_status); } && {
34133          test -z "$ac_c_werror_flag" ||
34134          test ! -s conftest.err
34135        } && test -s conftest$ac_exeext &&
34136        $as_test_x conftest$ac_exeext; then
34137   ac_cv_func_strndup=yes
34138 else
34139   echo "$as_me: failed program was:" >&5
34140 sed 's/^/| /' conftest.$ac_ext >&5
34141
34142         ac_cv_func_strndup=no
34143 fi
34144
34145 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34146       conftest$ac_exeext conftest.$ac_ext
34147 fi
34148 { echo "$as_me:$LINENO: result: $ac_cv_func_strndup" >&5
34149 echo "${ECHO_T}$ac_cv_func_strndup" >&6; }
34150 if test $ac_cv_func_strndup = yes; then
34151   cat >conftest.$ac_ext <<_ACEOF
34152 /* confdefs.h.  */
34153 _ACEOF
34154 cat confdefs.h >>conftest.$ac_ext
34155 cat >>conftest.$ac_ext <<_ACEOF
34156 /* end confdefs.h.  */
34157
34158 #ifdef _AIX
34159                too risky
34160 #endif
34161
34162 _ACEOF
34163 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34164   $EGREP "too risky" >/dev/null 2>&1; then
34165   gl_cv_func_strndup=no
34166 else
34167   gl_cv_func_strndup=yes
34168 fi
34169 rm -f conftest*
34170
34171 else
34172   gl_cv_func_strndup=no
34173 fi
34174
34175 else
34176   cat >conftest.$ac_ext <<_ACEOF
34177
34178        /* confdefs.h.  */
34179 _ACEOF
34180 cat confdefs.h >>conftest.$ac_ext
34181 cat >>conftest.$ac_ext <<_ACEOF
34182 /* end confdefs.h.  */
34183 #include <string.h>
34184                          #include <stdlib.h>
34185 int
34186 main ()
34187 {
34188
34189 #ifndef HAVE_DECL_STRNDUP
34190   extern char *strndup (const char *, size_t);
34191 #endif
34192   char *s;
34193   s = strndup ("some longer string", 15);
34194   free (s);
34195   s = strndup ("shorter string", 13);
34196   return s[13] != '\0';
34197   ;
34198   return 0;
34199 }
34200 _ACEOF
34201 rm -f conftest$ac_exeext
34202 if { (ac_try="$ac_link"
34203 case "(($ac_try" in
34204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34205   *) ac_try_echo=$ac_try;;
34206 esac
34207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34208   (eval "$ac_link") 2>&5
34209   ac_status=$?
34210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34211   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34212   { (case "(($ac_try" in
34213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34214   *) ac_try_echo=$ac_try;;
34215 esac
34216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34217   (eval "$ac_try") 2>&5
34218   ac_status=$?
34219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34220   (exit $ac_status); }; }; then
34221   gl_cv_func_strndup=yes
34222 else
34223   echo "$as_me: program exited with status $ac_status" >&5
34224 echo "$as_me: failed program was:" >&5
34225 sed 's/^/| /' conftest.$ac_ext >&5
34226
34227 ( exit $ac_status )
34228 gl_cv_func_strndup=no
34229 fi
34230 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34231 fi
34232
34233
34234 fi
34235 { echo "$as_me:$LINENO: result: $gl_cv_func_strndup" >&5
34236 echo "${ECHO_T}$gl_cv_func_strndup" >&6; }
34237   if test $gl_cv_func_strndup = yes; then
34238
34239 cat >>confdefs.h <<\_ACEOF
34240 #define HAVE_STRNDUP 1
34241 _ACEOF
34242
34243   else
34244     HAVE_STRNDUP=0
34245
34246
34247
34248
34249
34250
34251
34252
34253   gl_LIBOBJS="$gl_LIBOBJS strndup.$ac_objext"
34254
34255     :
34256   fi
34257
34258
34259
34260   GNULIB_STRNDUP=1
34261
34262
34263
34264
34265
34266
34267
34268
34269
34270   if test $ac_cv_have_decl_strnlen = no; then
34271     HAVE_DECL_STRNLEN=0
34272   fi
34273
34274   { echo "$as_me:$LINENO: checking for working strnlen" >&5
34275 echo $ECHO_N "checking for working strnlen... $ECHO_C" >&6; }
34276 if test "${ac_cv_func_strnlen_working+set}" = set; then
34277   echo $ECHO_N "(cached) $ECHO_C" >&6
34278 else
34279   if test "$cross_compiling" = yes; then
34280   ac_cv_func_strnlen_working=no
34281 else
34282   cat >conftest.$ac_ext <<_ACEOF
34283 /* confdefs.h.  */
34284 _ACEOF
34285 cat confdefs.h >>conftest.$ac_ext
34286 cat >>conftest.$ac_ext <<_ACEOF
34287 /* end confdefs.h.  */
34288 $ac_includes_default
34289 int
34290 main ()
34291 {
34292
34293 #define S "foobar"
34294 #define S_LEN (sizeof S - 1)
34295
34296   /* At least one implementation is buggy: that of AIX 4.3 would
34297      give strnlen (S, 1) == 3.  */
34298
34299   int i;
34300   for (i = 0; i < S_LEN + 1; ++i)
34301     {
34302       int expected = i <= S_LEN ? i : S_LEN;
34303       if (strnlen (S, i) != expected)
34304         return 1;
34305     }
34306   return 0;
34307
34308   ;
34309   return 0;
34310 }
34311 _ACEOF
34312 rm -f conftest$ac_exeext
34313 if { (ac_try="$ac_link"
34314 case "(($ac_try" in
34315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34316   *) ac_try_echo=$ac_try;;
34317 esac
34318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34319   (eval "$ac_link") 2>&5
34320   ac_status=$?
34321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34322   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34323   { (case "(($ac_try" in
34324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34325   *) ac_try_echo=$ac_try;;
34326 esac
34327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34328   (eval "$ac_try") 2>&5
34329   ac_status=$?
34330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34331   (exit $ac_status); }; }; then
34332   ac_cv_func_strnlen_working=yes
34333 else
34334   echo "$as_me: program exited with status $ac_status" >&5
34335 echo "$as_me: failed program was:" >&5
34336 sed 's/^/| /' conftest.$ac_ext >&5
34337
34338 ( exit $ac_status )
34339 ac_cv_func_strnlen_working=no
34340 fi
34341 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34342 fi
34343
34344
34345 fi
34346 { echo "$as_me:$LINENO: result: $ac_cv_func_strnlen_working" >&5
34347 echo "${ECHO_T}$ac_cv_func_strnlen_working" >&6; }
34348 test $ac_cv_func_strnlen_working = no &&
34349
34350
34351
34352
34353
34354
34355
34356   gl_LIBOBJS="$gl_LIBOBJS strnlen.$ac_objext"
34357
34358
34359   if test $ac_cv_func_strnlen_working = no; then
34360     # This is necessary because automake-1.6.1 doesn't understand
34361     # that the above use of AC_FUNC_STRNLEN means we may have to use
34362     # lib/strnlen.c.
34363     #AC_LIBOBJ([strnlen])
34364
34365 cat >>confdefs.h <<\_ACEOF
34366 #define strnlen rpl_strnlen
34367 _ACEOF
34368
34369     :
34370   fi
34371
34372
34373
34374   GNULIB_STRNLEN=1
34375
34376
34377
34378
34379
34380   { echo "$as_me:$LINENO: checking whether <inttypes.h> defines strtoimax as a macro" >&5
34381 echo $ECHO_N "checking whether <inttypes.h> defines strtoimax as a macro... $ECHO_C" >&6; }
34382 if test "${gl_cv_func_strtoimax_macro+set}" = set; then
34383   echo $ECHO_N "(cached) $ECHO_C" >&6
34384 else
34385   cat >conftest.$ac_ext <<_ACEOF
34386 /* confdefs.h.  */
34387 _ACEOF
34388 cat confdefs.h >>conftest.$ac_ext
34389 cat >>conftest.$ac_ext <<_ACEOF
34390 /* end confdefs.h.  */
34391 #include <inttypes.h>
34392 #ifdef strtoimax
34393  inttypes_h_defines_strtoimax
34394 #endif
34395 _ACEOF
34396 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34397   $EGREP "inttypes_h_defines_strtoimax" >/dev/null 2>&1; then
34398   gl_cv_func_strtoimax_macro=yes
34399 else
34400   gl_cv_func_strtoimax_macro=no
34401 fi
34402 rm -f conftest*
34403
34404 fi
34405 { echo "$as_me:$LINENO: result: $gl_cv_func_strtoimax_macro" >&5
34406 echo "${ECHO_T}$gl_cv_func_strtoimax_macro" >&6; }
34407
34408   if test "$gl_cv_func_strtoimax_macro" != yes; then
34409
34410
34411
34412
34413
34414
34415
34416
34417
34418 for ac_func in strtoimax
34419 do
34420 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34421 { echo "$as_me:$LINENO: checking for $ac_func" >&5
34422 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34423 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34424   echo $ECHO_N "(cached) $ECHO_C" >&6
34425 else
34426   cat >conftest.$ac_ext <<_ACEOF
34427 /* confdefs.h.  */
34428 _ACEOF
34429 cat confdefs.h >>conftest.$ac_ext
34430 cat >>conftest.$ac_ext <<_ACEOF
34431 /* end confdefs.h.  */
34432 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34433    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34434 #define $ac_func innocuous_$ac_func
34435
34436 /* System header to define __stub macros and hopefully few prototypes,
34437     which can conflict with char $ac_func (); below.
34438     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34439     <limits.h> exists even on freestanding compilers.  */
34440
34441 #ifdef __STDC__
34442 # include <limits.h>
34443 #else
34444 # include <assert.h>
34445 #endif
34446
34447 #undef $ac_func
34448
34449 /* Override any GCC internal prototype to avoid an error.
34450    Use char because int might match the return type of a GCC
34451    builtin and then its argument prototype would still apply.  */
34452 #ifdef __cplusplus
34453 extern "C"
34454 #endif
34455 char $ac_func ();
34456 /* The GNU C library defines this for functions which it implements
34457     to always fail with ENOSYS.  Some functions are actually named
34458     something starting with __ and the normal name is an alias.  */
34459 #if defined __stub_$ac_func || defined __stub___$ac_func
34460 choke me
34461 #endif
34462
34463 int
34464 main ()
34465 {
34466 return $ac_func ();
34467   ;
34468   return 0;
34469 }
34470 _ACEOF
34471 rm -f conftest.$ac_objext conftest$ac_exeext
34472 if { (ac_try="$ac_link"
34473 case "(($ac_try" in
34474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34475   *) ac_try_echo=$ac_try;;
34476 esac
34477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34478   (eval "$ac_link") 2>conftest.er1
34479   ac_status=$?
34480   grep -v '^ *+' conftest.er1 >conftest.err
34481   rm -f conftest.er1
34482   cat conftest.err >&5
34483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34484   (exit $ac_status); } && {
34485          test -z "$ac_c_werror_flag" ||
34486          test ! -s conftest.err
34487        } && test -s conftest$ac_exeext &&
34488        $as_test_x conftest$ac_exeext; then
34489   eval "$as_ac_var=yes"
34490 else
34491   echo "$as_me: failed program was:" >&5
34492 sed 's/^/| /' conftest.$ac_ext >&5
34493
34494         eval "$as_ac_var=no"
34495 fi
34496
34497 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34498       conftest$ac_exeext conftest.$ac_ext
34499 fi
34500 ac_res=`eval echo '${'$as_ac_var'}'`
34501                { echo "$as_me:$LINENO: result: $ac_res" >&5
34502 echo "${ECHO_T}$ac_res" >&6; }
34503 if test `eval echo '${'$as_ac_var'}'` = yes; then
34504   cat >>confdefs.h <<_ACEOF
34505 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34506 _ACEOF
34507
34508 else
34509
34510     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
34511
34512 fi
34513 done
34514
34515
34516     if test $ac_cv_func_strtoimax = no; then
34517
34518   { echo "$as_me:$LINENO: checking whether strtoll is declared" >&5
34519 echo $ECHO_N "checking whether strtoll is declared... $ECHO_C" >&6; }
34520 if test "${ac_cv_have_decl_strtoll+set}" = set; then
34521   echo $ECHO_N "(cached) $ECHO_C" >&6
34522 else
34523   cat >conftest.$ac_ext <<_ACEOF
34524 /* confdefs.h.  */
34525 _ACEOF
34526 cat confdefs.h >>conftest.$ac_ext
34527 cat >>conftest.$ac_ext <<_ACEOF
34528 /* end confdefs.h.  */
34529 $ac_includes_default
34530 int
34531 main ()
34532 {
34533 #ifndef strtoll
34534   (void) strtoll;
34535 #endif
34536
34537   ;
34538   return 0;
34539 }
34540 _ACEOF
34541 rm -f conftest.$ac_objext
34542 if { (ac_try="$ac_compile"
34543 case "(($ac_try" in
34544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34545   *) ac_try_echo=$ac_try;;
34546 esac
34547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34548   (eval "$ac_compile") 2>conftest.er1
34549   ac_status=$?
34550   grep -v '^ *+' conftest.er1 >conftest.err
34551   rm -f conftest.er1
34552   cat conftest.err >&5
34553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34554   (exit $ac_status); } && {
34555          test -z "$ac_c_werror_flag" ||
34556          test ! -s conftest.err
34557        } && test -s conftest.$ac_objext; then
34558   ac_cv_have_decl_strtoll=yes
34559 else
34560   echo "$as_me: failed program was:" >&5
34561 sed 's/^/| /' conftest.$ac_ext >&5
34562
34563         ac_cv_have_decl_strtoll=no
34564 fi
34565
34566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34567 fi
34568 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoll" >&5
34569 echo "${ECHO_T}$ac_cv_have_decl_strtoll" >&6; }
34570 if test $ac_cv_have_decl_strtoll = yes; then
34571
34572 cat >>confdefs.h <<_ACEOF
34573 #define HAVE_DECL_STRTOLL 1
34574 _ACEOF
34575
34576
34577 else
34578   cat >>confdefs.h <<_ACEOF
34579 #define HAVE_DECL_STRTOLL 0
34580 _ACEOF
34581
34582
34583 fi
34584
34585
34586
34587
34588     fi
34589   fi
34590
34591
34592
34593   GNULIB_STRTOIMAX=1
34594
34595
34596
34597
34598
34599
34600
34601
34602
34603
34604
34605 for ac_func in strtol
34606 do
34607 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34608 { echo "$as_me:$LINENO: checking for $ac_func" >&5
34609 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34610 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34611   echo $ECHO_N "(cached) $ECHO_C" >&6
34612 else
34613   cat >conftest.$ac_ext <<_ACEOF
34614 /* confdefs.h.  */
34615 _ACEOF
34616 cat confdefs.h >>conftest.$ac_ext
34617 cat >>conftest.$ac_ext <<_ACEOF
34618 /* end confdefs.h.  */
34619 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34620    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34621 #define $ac_func innocuous_$ac_func
34622
34623 /* System header to define __stub macros and hopefully few prototypes,
34624     which can conflict with char $ac_func (); below.
34625     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34626     <limits.h> exists even on freestanding compilers.  */
34627
34628 #ifdef __STDC__
34629 # include <limits.h>
34630 #else
34631 # include <assert.h>
34632 #endif
34633
34634 #undef $ac_func
34635
34636 /* Override any GCC internal prototype to avoid an error.
34637    Use char because int might match the return type of a GCC
34638    builtin and then its argument prototype would still apply.  */
34639 #ifdef __cplusplus
34640 extern "C"
34641 #endif
34642 char $ac_func ();
34643 /* The GNU C library defines this for functions which it implements
34644     to always fail with ENOSYS.  Some functions are actually named
34645     something starting with __ and the normal name is an alias.  */
34646 #if defined __stub_$ac_func || defined __stub___$ac_func
34647 choke me
34648 #endif
34649
34650 int
34651 main ()
34652 {
34653 return $ac_func ();
34654   ;
34655   return 0;
34656 }
34657 _ACEOF
34658 rm -f conftest.$ac_objext conftest$ac_exeext
34659 if { (ac_try="$ac_link"
34660 case "(($ac_try" in
34661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34662   *) ac_try_echo=$ac_try;;
34663 esac
34664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34665   (eval "$ac_link") 2>conftest.er1
34666   ac_status=$?
34667   grep -v '^ *+' conftest.er1 >conftest.err
34668   rm -f conftest.er1
34669   cat conftest.err >&5
34670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34671   (exit $ac_status); } && {
34672          test -z "$ac_c_werror_flag" ||
34673          test ! -s conftest.err
34674        } && test -s conftest$ac_exeext &&
34675        $as_test_x conftest$ac_exeext; then
34676   eval "$as_ac_var=yes"
34677 else
34678   echo "$as_me: failed program was:" >&5
34679 sed 's/^/| /' conftest.$ac_ext >&5
34680
34681         eval "$as_ac_var=no"
34682 fi
34683
34684 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34685       conftest$ac_exeext conftest.$ac_ext
34686 fi
34687 ac_res=`eval echo '${'$as_ac_var'}'`
34688                { echo "$as_me:$LINENO: result: $ac_res" >&5
34689 echo "${ECHO_T}$ac_res" >&6; }
34690 if test `eval echo '${'$as_ac_var'}'` = yes; then
34691   cat >>confdefs.h <<_ACEOF
34692 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34693 _ACEOF
34694
34695 else
34696
34697     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
34698
34699 fi
34700 done
34701
34702
34703
34704
34705
34706
34707   if test "$ac_cv_type_long_long_int" = yes; then
34708
34709
34710
34711
34712
34713
34714
34715
34716
34717 for ac_func in strtoll
34718 do
34719 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34720 { echo "$as_me:$LINENO: checking for $ac_func" >&5
34721 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34722 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34723   echo $ECHO_N "(cached) $ECHO_C" >&6
34724 else
34725   cat >conftest.$ac_ext <<_ACEOF
34726 /* confdefs.h.  */
34727 _ACEOF
34728 cat confdefs.h >>conftest.$ac_ext
34729 cat >>conftest.$ac_ext <<_ACEOF
34730 /* end confdefs.h.  */
34731 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34732    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34733 #define $ac_func innocuous_$ac_func
34734
34735 /* System header to define __stub macros and hopefully few prototypes,
34736     which can conflict with char $ac_func (); below.
34737     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34738     <limits.h> exists even on freestanding compilers.  */
34739
34740 #ifdef __STDC__
34741 # include <limits.h>
34742 #else
34743 # include <assert.h>
34744 #endif
34745
34746 #undef $ac_func
34747
34748 /* Override any GCC internal prototype to avoid an error.
34749    Use char because int might match the return type of a GCC
34750    builtin and then its argument prototype would still apply.  */
34751 #ifdef __cplusplus
34752 extern "C"
34753 #endif
34754 char $ac_func ();
34755 /* The GNU C library defines this for functions which it implements
34756     to always fail with ENOSYS.  Some functions are actually named
34757     something starting with __ and the normal name is an alias.  */
34758 #if defined __stub_$ac_func || defined __stub___$ac_func
34759 choke me
34760 #endif
34761
34762 int
34763 main ()
34764 {
34765 return $ac_func ();
34766   ;
34767   return 0;
34768 }
34769 _ACEOF
34770 rm -f conftest.$ac_objext conftest$ac_exeext
34771 if { (ac_try="$ac_link"
34772 case "(($ac_try" in
34773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34774   *) ac_try_echo=$ac_try;;
34775 esac
34776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34777   (eval "$ac_link") 2>conftest.er1
34778   ac_status=$?
34779   grep -v '^ *+' conftest.er1 >conftest.err
34780   rm -f conftest.er1
34781   cat conftest.err >&5
34782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34783   (exit $ac_status); } && {
34784          test -z "$ac_c_werror_flag" ||
34785          test ! -s conftest.err
34786        } && test -s conftest$ac_exeext &&
34787        $as_test_x conftest$ac_exeext; then
34788   eval "$as_ac_var=yes"
34789 else
34790   echo "$as_me: failed program was:" >&5
34791 sed 's/^/| /' conftest.$ac_ext >&5
34792
34793         eval "$as_ac_var=no"
34794 fi
34795
34796 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34797       conftest$ac_exeext conftest.$ac_ext
34798 fi
34799 ac_res=`eval echo '${'$as_ac_var'}'`
34800                { echo "$as_me:$LINENO: result: $ac_res" >&5
34801 echo "${ECHO_T}$ac_res" >&6; }
34802 if test `eval echo '${'$as_ac_var'}'` = yes; then
34803   cat >>confdefs.h <<_ACEOF
34804 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34805 _ACEOF
34806
34807 else
34808
34809     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
34810
34811 fi
34812 done
34813
34814
34815     if test $ac_cv_func_strtoll = no; then
34816       HAVE_STRTOLL=0
34817
34818   :
34819
34820     fi
34821   fi
34822
34823
34824
34825   GNULIB_STRTOLL=1
34826
34827
34828
34829
34830
34831
34832
34833
34834
34835
34836
34837 for ac_func in strtoul
34838 do
34839 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34840 { echo "$as_me:$LINENO: checking for $ac_func" >&5
34841 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34842 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34843   echo $ECHO_N "(cached) $ECHO_C" >&6
34844 else
34845   cat >conftest.$ac_ext <<_ACEOF
34846 /* confdefs.h.  */
34847 _ACEOF
34848 cat confdefs.h >>conftest.$ac_ext
34849 cat >>conftest.$ac_ext <<_ACEOF
34850 /* end confdefs.h.  */
34851 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34852    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34853 #define $ac_func innocuous_$ac_func
34854
34855 /* System header to define __stub macros and hopefully few prototypes,
34856     which can conflict with char $ac_func (); below.
34857     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34858     <limits.h> exists even on freestanding compilers.  */
34859
34860 #ifdef __STDC__
34861 # include <limits.h>
34862 #else
34863 # include <assert.h>
34864 #endif
34865
34866 #undef $ac_func
34867
34868 /* Override any GCC internal prototype to avoid an error.
34869    Use char because int might match the return type of a GCC
34870    builtin and then its argument prototype would still apply.  */
34871 #ifdef __cplusplus
34872 extern "C"
34873 #endif
34874 char $ac_func ();
34875 /* The GNU C library defines this for functions which it implements
34876     to always fail with ENOSYS.  Some functions are actually named
34877     something starting with __ and the normal name is an alias.  */
34878 #if defined __stub_$ac_func || defined __stub___$ac_func
34879 choke me
34880 #endif
34881
34882 int
34883 main ()
34884 {
34885 return $ac_func ();
34886   ;
34887   return 0;
34888 }
34889 _ACEOF
34890 rm -f conftest.$ac_objext conftest$ac_exeext
34891 if { (ac_try="$ac_link"
34892 case "(($ac_try" in
34893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34894   *) ac_try_echo=$ac_try;;
34895 esac
34896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34897   (eval "$ac_link") 2>conftest.er1
34898   ac_status=$?
34899   grep -v '^ *+' conftest.er1 >conftest.err
34900   rm -f conftest.er1
34901   cat conftest.err >&5
34902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34903   (exit $ac_status); } && {
34904          test -z "$ac_c_werror_flag" ||
34905          test ! -s conftest.err
34906        } && test -s conftest$ac_exeext &&
34907        $as_test_x conftest$ac_exeext; then
34908   eval "$as_ac_var=yes"
34909 else
34910   echo "$as_me: failed program was:" >&5
34911 sed 's/^/| /' conftest.$ac_ext >&5
34912
34913         eval "$as_ac_var=no"
34914 fi
34915
34916 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34917       conftest$ac_exeext conftest.$ac_ext
34918 fi
34919 ac_res=`eval echo '${'$as_ac_var'}'`
34920                { echo "$as_me:$LINENO: result: $ac_res" >&5
34921 echo "${ECHO_T}$ac_res" >&6; }
34922 if test `eval echo '${'$as_ac_var'}'` = yes; then
34923   cat >>confdefs.h <<_ACEOF
34924 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34925 _ACEOF
34926
34927 else
34928
34929     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
34930
34931 fi
34932 done
34933
34934
34935
34936
34937
34938
34939   if test "$ac_cv_type_unsigned_long_long_int" = yes; then
34940
34941
34942
34943
34944
34945
34946
34947
34948
34949 for ac_func in strtoull
34950 do
34951 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34952 { echo "$as_me:$LINENO: checking for $ac_func" >&5
34953 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34954 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34955   echo $ECHO_N "(cached) $ECHO_C" >&6
34956 else
34957   cat >conftest.$ac_ext <<_ACEOF
34958 /* confdefs.h.  */
34959 _ACEOF
34960 cat confdefs.h >>conftest.$ac_ext
34961 cat >>conftest.$ac_ext <<_ACEOF
34962 /* end confdefs.h.  */
34963 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34964    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34965 #define $ac_func innocuous_$ac_func
34966
34967 /* System header to define __stub macros and hopefully few prototypes,
34968     which can conflict with char $ac_func (); below.
34969     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34970     <limits.h> exists even on freestanding compilers.  */
34971
34972 #ifdef __STDC__
34973 # include <limits.h>
34974 #else
34975 # include <assert.h>
34976 #endif
34977
34978 #undef $ac_func
34979
34980 /* Override any GCC internal prototype to avoid an error.
34981    Use char because int might match the return type of a GCC
34982    builtin and then its argument prototype would still apply.  */
34983 #ifdef __cplusplus
34984 extern "C"
34985 #endif
34986 char $ac_func ();
34987 /* The GNU C library defines this for functions which it implements
34988     to always fail with ENOSYS.  Some functions are actually named
34989     something starting with __ and the normal name is an alias.  */
34990 #if defined __stub_$ac_func || defined __stub___$ac_func
34991 choke me
34992 #endif
34993
34994 int
34995 main ()
34996 {
34997 return $ac_func ();
34998   ;
34999   return 0;
35000 }
35001 _ACEOF
35002 rm -f conftest.$ac_objext conftest$ac_exeext
35003 if { (ac_try="$ac_link"
35004 case "(($ac_try" in
35005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35006   *) ac_try_echo=$ac_try;;
35007 esac
35008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35009   (eval "$ac_link") 2>conftest.er1
35010   ac_status=$?
35011   grep -v '^ *+' conftest.er1 >conftest.err
35012   rm -f conftest.er1
35013   cat conftest.err >&5
35014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35015   (exit $ac_status); } && {
35016          test -z "$ac_c_werror_flag" ||
35017          test ! -s conftest.err
35018        } && test -s conftest$ac_exeext &&
35019        $as_test_x conftest$ac_exeext; then
35020   eval "$as_ac_var=yes"
35021 else
35022   echo "$as_me: failed program was:" >&5
35023 sed 's/^/| /' conftest.$ac_ext >&5
35024
35025         eval "$as_ac_var=no"
35026 fi
35027
35028 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35029       conftest$ac_exeext conftest.$ac_ext
35030 fi
35031 ac_res=`eval echo '${'$as_ac_var'}'`
35032                { echo "$as_me:$LINENO: result: $ac_res" >&5
35033 echo "${ECHO_T}$ac_res" >&6; }
35034 if test `eval echo '${'$as_ac_var'}'` = yes; then
35035   cat >>confdefs.h <<_ACEOF
35036 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35037 _ACEOF
35038
35039 else
35040
35041     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
35042
35043 fi
35044 done
35045
35046
35047     if test $ac_cv_func_strtoull = no; then
35048       HAVE_STRTOULL=0
35049
35050   :
35051
35052     fi
35053   fi
35054
35055
35056
35057   GNULIB_STRTOULL=1
35058
35059
35060
35061
35062
35063   { echo "$as_me:$LINENO: checking whether <inttypes.h> defines strtoumax as a macro" >&5
35064 echo $ECHO_N "checking whether <inttypes.h> defines strtoumax as a macro... $ECHO_C" >&6; }
35065 if test "${gl_cv_func_strtoumax_macro+set}" = set; then
35066   echo $ECHO_N "(cached) $ECHO_C" >&6
35067 else
35068   cat >conftest.$ac_ext <<_ACEOF
35069 /* confdefs.h.  */
35070 _ACEOF
35071 cat confdefs.h >>conftest.$ac_ext
35072 cat >>conftest.$ac_ext <<_ACEOF
35073 /* end confdefs.h.  */
35074 #include <inttypes.h>
35075 #ifdef strtoumax
35076  inttypes_h_defines_strtoumax
35077 #endif
35078 _ACEOF
35079 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35080   $EGREP "inttypes_h_defines_strtoumax" >/dev/null 2>&1; then
35081   gl_cv_func_strtoumax_macro=yes
35082 else
35083   gl_cv_func_strtoumax_macro=no
35084 fi
35085 rm -f conftest*
35086
35087 fi
35088 { echo "$as_me:$LINENO: result: $gl_cv_func_strtoumax_macro" >&5
35089 echo "${ECHO_T}$gl_cv_func_strtoumax_macro" >&6; }
35090
35091   if test "$gl_cv_func_strtoumax_macro" != yes; then
35092
35093
35094
35095
35096
35097
35098
35099
35100
35101 for ac_func in strtoumax
35102 do
35103 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35104 { echo "$as_me:$LINENO: checking for $ac_func" >&5
35105 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
35106 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
35107   echo $ECHO_N "(cached) $ECHO_C" >&6
35108 else
35109   cat >conftest.$ac_ext <<_ACEOF
35110 /* confdefs.h.  */
35111 _ACEOF
35112 cat confdefs.h >>conftest.$ac_ext
35113 cat >>conftest.$ac_ext <<_ACEOF
35114 /* end confdefs.h.  */
35115 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35116    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35117 #define $ac_func innocuous_$ac_func
35118
35119 /* System header to define __stub macros and hopefully few prototypes,
35120     which can conflict with char $ac_func (); below.
35121     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35122     <limits.h> exists even on freestanding compilers.  */
35123
35124 #ifdef __STDC__
35125 # include <limits.h>
35126 #else
35127 # include <assert.h>
35128 #endif
35129
35130 #undef $ac_func
35131
35132 /* Override any GCC internal prototype to avoid an error.
35133    Use char because int might match the return type of a GCC
35134    builtin and then its argument prototype would still apply.  */
35135 #ifdef __cplusplus
35136 extern "C"
35137 #endif
35138 char $ac_func ();
35139 /* The GNU C library defines this for functions which it implements
35140     to always fail with ENOSYS.  Some functions are actually named
35141     something starting with __ and the normal name is an alias.  */
35142 #if defined __stub_$ac_func || defined __stub___$ac_func
35143 choke me
35144 #endif
35145
35146 int
35147 main ()
35148 {
35149 return $ac_func ();
35150   ;
35151   return 0;
35152 }
35153 _ACEOF
35154 rm -f conftest.$ac_objext conftest$ac_exeext
35155 if { (ac_try="$ac_link"
35156 case "(($ac_try" in
35157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35158   *) ac_try_echo=$ac_try;;
35159 esac
35160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35161   (eval "$ac_link") 2>conftest.er1
35162   ac_status=$?
35163   grep -v '^ *+' conftest.er1 >conftest.err
35164   rm -f conftest.er1
35165   cat conftest.err >&5
35166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35167   (exit $ac_status); } && {
35168          test -z "$ac_c_werror_flag" ||
35169          test ! -s conftest.err
35170        } && test -s conftest$ac_exeext &&
35171        $as_test_x conftest$ac_exeext; then
35172   eval "$as_ac_var=yes"
35173 else
35174   echo "$as_me: failed program was:" >&5
35175 sed 's/^/| /' conftest.$ac_ext >&5
35176
35177         eval "$as_ac_var=no"
35178 fi
35179
35180 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35181       conftest$ac_exeext conftest.$ac_ext
35182 fi
35183 ac_res=`eval echo '${'$as_ac_var'}'`
35184                { echo "$as_me:$LINENO: result: $ac_res" >&5
35185 echo "${ECHO_T}$ac_res" >&6; }
35186 if test `eval echo '${'$as_ac_var'}'` = yes; then
35187   cat >>confdefs.h <<_ACEOF
35188 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35189 _ACEOF
35190
35191 else
35192
35193     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
35194
35195 fi
35196 done
35197
35198
35199     if test $ac_cv_func_strtoumax = no; then
35200
35201   { echo "$as_me:$LINENO: checking whether strtoull is declared" >&5
35202 echo $ECHO_N "checking whether strtoull is declared... $ECHO_C" >&6; }
35203 if test "${ac_cv_have_decl_strtoull+set}" = set; then
35204   echo $ECHO_N "(cached) $ECHO_C" >&6
35205 else
35206   cat >conftest.$ac_ext <<_ACEOF
35207 /* confdefs.h.  */
35208 _ACEOF
35209 cat confdefs.h >>conftest.$ac_ext
35210 cat >>conftest.$ac_ext <<_ACEOF
35211 /* end confdefs.h.  */
35212 $ac_includes_default
35213 int
35214 main ()
35215 {
35216 #ifndef strtoull
35217   (void) strtoull;
35218 #endif
35219
35220   ;
35221   return 0;
35222 }
35223 _ACEOF
35224 rm -f conftest.$ac_objext
35225 if { (ac_try="$ac_compile"
35226 case "(($ac_try" in
35227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35228   *) ac_try_echo=$ac_try;;
35229 esac
35230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35231   (eval "$ac_compile") 2>conftest.er1
35232   ac_status=$?
35233   grep -v '^ *+' conftest.er1 >conftest.err
35234   rm -f conftest.er1
35235   cat conftest.err >&5
35236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35237   (exit $ac_status); } && {
35238          test -z "$ac_c_werror_flag" ||
35239          test ! -s conftest.err
35240        } && test -s conftest.$ac_objext; then
35241   ac_cv_have_decl_strtoull=yes
35242 else
35243   echo "$as_me: failed program was:" >&5
35244 sed 's/^/| /' conftest.$ac_ext >&5
35245
35246         ac_cv_have_decl_strtoull=no
35247 fi
35248
35249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35250 fi
35251 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoull" >&5
35252 echo "${ECHO_T}$ac_cv_have_decl_strtoull" >&6; }
35253 if test $ac_cv_have_decl_strtoull = yes; then
35254
35255 cat >>confdefs.h <<_ACEOF
35256 #define HAVE_DECL_STRTOULL 1
35257 _ACEOF
35258
35259
35260 else
35261   cat >>confdefs.h <<_ACEOF
35262 #define HAVE_DECL_STRTOULL 0
35263 _ACEOF
35264
35265
35266 fi
35267
35268
35269
35270
35271     fi
35272   fi
35273
35274
35275
35276   GNULIB_STRTOUMAX=1
35277
35278
35279
35280
35281
35282
35283
35284
35285
35286
35287   if test $ac_cv_func_lstat = yes; then
35288     HAVE_LSTAT=1
35289   else
35290     HAVE_LSTAT=0
35291   fi
35292
35293
35294
35295
35296
35297
35298
35299
35300
35301
35302
35303
35304
35305
35306
35307
35308
35309      if test $gl_cv_have_include_next = yes; then
35310        gl_cv_next_sys_stat_h='<'sys/stat.h'>'
35311      else
35312        { echo "$as_me:$LINENO: checking absolute name of <sys/stat.h>" >&5
35313 echo $ECHO_N "checking absolute name of <sys/stat.h>... $ECHO_C" >&6; }
35314 if test "${gl_cv_next_sys_stat_h+set}" = set; then
35315   echo $ECHO_N "(cached) $ECHO_C" >&6
35316 else
35317
35318           if test $ac_cv_header_sys_stat_h = yes; then
35319             cat >conftest.$ac_ext <<_ACEOF
35320 /* confdefs.h.  */
35321 _ACEOF
35322 cat confdefs.h >>conftest.$ac_ext
35323 cat >>conftest.$ac_ext <<_ACEOF
35324 /* end confdefs.h.  */
35325 #include <sys/stat.h>
35326
35327 _ACEOF
35328                                                                     case "$host_os" in
35329               aix*) gl_absname_cpp="$ac_cpp -C" ;;
35330               *)    gl_absname_cpp="$ac_cpp" ;;
35331             esac
35332                                     gl_cv_next_sys_stat_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
35333                sed -n '\#/sys/stat.h#{
35334                  s#.*"\(.*/sys/stat.h\)".*#\1#
35335                  s#^/[^/]#//&#
35336                  p
35337                  q
35338                }'`'"'
35339           else
35340             gl_cv_next_sys_stat_h='<'sys/stat.h'>'
35341           fi
35342
35343 fi
35344 { echo "$as_me:$LINENO: result: $gl_cv_next_sys_stat_h" >&5
35345 echo "${ECHO_T}$gl_cv_next_sys_stat_h" >&6; }
35346      fi
35347      NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
35348
35349
35350
35351   SYS_STAT_H='sys/stat.h'
35352
35353
35354       { echo "$as_me:$LINENO: checking for nlink_t" >&5
35355 echo $ECHO_N "checking for nlink_t... $ECHO_C" >&6; }
35356 if test "${ac_cv_type_nlink_t+set}" = set; then
35357   echo $ECHO_N "(cached) $ECHO_C" >&6
35358 else
35359   cat >conftest.$ac_ext <<_ACEOF
35360 /* confdefs.h.  */
35361 _ACEOF
35362 cat confdefs.h >>conftest.$ac_ext
35363 cat >>conftest.$ac_ext <<_ACEOF
35364 /* end confdefs.h.  */
35365 #include <sys/types.h>
35366      #include <sys/stat.h>
35367
35368 typedef nlink_t ac__type_new_;
35369 int
35370 main ()
35371 {
35372 if ((ac__type_new_ *) 0)
35373   return 0;
35374 if (sizeof (ac__type_new_))
35375   return 0;
35376   ;
35377   return 0;
35378 }
35379 _ACEOF
35380 rm -f conftest.$ac_objext
35381 if { (ac_try="$ac_compile"
35382 case "(($ac_try" in
35383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35384   *) ac_try_echo=$ac_try;;
35385 esac
35386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35387   (eval "$ac_compile") 2>conftest.er1
35388   ac_status=$?
35389   grep -v '^ *+' conftest.er1 >conftest.err
35390   rm -f conftest.er1
35391   cat conftest.err >&5
35392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35393   (exit $ac_status); } && {
35394          test -z "$ac_c_werror_flag" ||
35395          test ! -s conftest.err
35396        } && test -s conftest.$ac_objext; then
35397   ac_cv_type_nlink_t=yes
35398 else
35399   echo "$as_me: failed program was:" >&5
35400 sed 's/^/| /' conftest.$ac_ext >&5
35401
35402         ac_cv_type_nlink_t=no
35403 fi
35404
35405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35406 fi
35407 { echo "$as_me:$LINENO: result: $ac_cv_type_nlink_t" >&5
35408 echo "${ECHO_T}$ac_cv_type_nlink_t" >&6; }
35409 if test $ac_cv_type_nlink_t = yes; then
35410   :
35411 else
35412
35413 cat >>confdefs.h <<\_ACEOF
35414 #define nlink_t int
35415 _ACEOF
35416
35417 fi
35418
35419
35420
35421   { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
35422 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
35423 if test -z "$MKDIR_P"; then
35424   if test "${ac_cv_path_mkdir+set}" = set; then
35425   echo $ECHO_N "(cached) $ECHO_C" >&6
35426 else
35427   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35428 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
35429 do
35430   IFS=$as_save_IFS
35431   test -z "$as_dir" && as_dir=.
35432   for ac_prog in mkdir gmkdir; do
35433          for ac_exec_ext in '' $ac_executable_extensions; do
35434            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
35435            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
35436              'mkdir (GNU coreutils) '* | \
35437              'mkdir (coreutils) '* | \
35438              'mkdir (fileutils) '4.1*)
35439                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
35440                break 3;;
35441            esac
35442          done
35443        done
35444 done
35445 IFS=$as_save_IFS
35446
35447 fi
35448
35449   if test "${ac_cv_path_mkdir+set}" = set; then
35450     MKDIR_P="$ac_cv_path_mkdir -p"
35451   else
35452     # As a last resort, use the slow shell script.  Don't cache a
35453     # value for MKDIR_P within a source directory, because that will
35454     # break other packages using the cache if that directory is
35455     # removed, or if the value is a relative name.
35456     test -d ./--version && rmdir ./--version
35457     MKDIR_P="$ac_install_sh -d"
35458   fi
35459 fi
35460 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
35461 echo "${ECHO_T}$MKDIR_P" >&6; }
35462
35463
35464
35465
35466   { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
35467 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
35468 if test -z "$MKDIR_P"; then
35469   if test "${ac_cv_path_mkdir+set}" = set; then
35470   echo $ECHO_N "(cached) $ECHO_C" >&6
35471 else
35472   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35473 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
35474 do
35475   IFS=$as_save_IFS
35476   test -z "$as_dir" && as_dir=.
35477   for ac_prog in mkdir gmkdir; do
35478          for ac_exec_ext in '' $ac_executable_extensions; do
35479            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
35480            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
35481              'mkdir (GNU coreutils) '* | \
35482              'mkdir (coreutils) '* | \
35483              'mkdir (fileutils) '4.1*)
35484                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
35485                break 3;;
35486            esac
35487          done
35488        done
35489 done
35490 IFS=$as_save_IFS
35491
35492 fi
35493
35494   if test "${ac_cv_path_mkdir+set}" = set; then
35495     MKDIR_P="$ac_cv_path_mkdir -p"
35496   else
35497     # As a last resort, use the slow shell script.  Don't cache a
35498     # value for MKDIR_P within a source directory, because that will
35499     # break other packages using the cache if that directory is
35500     # removed, or if the value is a relative name.
35501     test -d ./--version && rmdir ./--version
35502     MKDIR_P="$ac_install_sh -d"
35503   fi
35504 fi
35505 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
35506 echo "${ECHO_T}$MKDIR_P" >&6; }
35507
35508
35509
35510
35511
35512
35513
35514
35515   if test $ac_cv_header_sysexits_h = yes; then
35516     HAVE_SYSEXITS_H=1
35517
35518
35519
35520
35521
35522
35523
35524
35525
35526
35527
35528      if test $gl_cv_have_include_next = yes; then
35529        gl_cv_next_sysexits_h='<'sysexits.h'>'
35530      else
35531        { echo "$as_me:$LINENO: checking absolute name of <sysexits.h>" >&5
35532 echo $ECHO_N "checking absolute name of <sysexits.h>... $ECHO_C" >&6; }
35533 if test "${gl_cv_next_sysexits_h+set}" = set; then
35534   echo $ECHO_N "(cached) $ECHO_C" >&6
35535 else
35536
35537           if test $ac_cv_header_sysexits_h = yes; then
35538             cat >conftest.$ac_ext <<_ACEOF
35539 /* confdefs.h.  */
35540 _ACEOF
35541 cat confdefs.h >>conftest.$ac_ext
35542 cat >>conftest.$ac_ext <<_ACEOF
35543 /* end confdefs.h.  */
35544 #include <sysexits.h>
35545
35546 _ACEOF
35547                                                                     case "$host_os" in
35548               aix*) gl_absname_cpp="$ac_cpp -C" ;;
35549               *)    gl_absname_cpp="$ac_cpp" ;;
35550             esac
35551                                     gl_cv_next_sysexits_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
35552                sed -n '\#/sysexits.h#{
35553                  s#.*"\(.*/sysexits.h\)".*#\1#
35554                  s#^/[^/]#//&#
35555                  p
35556                  q
35557                }'`'"'
35558           else
35559             gl_cv_next_sysexits_h='<'sysexits.h'>'
35560           fi
35561
35562 fi
35563 { echo "$as_me:$LINENO: result: $gl_cv_next_sysexits_h" >&5
35564 echo "${ECHO_T}$gl_cv_next_sysexits_h" >&6; }
35565      fi
35566      NEXT_SYSEXITS_H=$gl_cv_next_sysexits_h
35567
35568
35569
35570     cat >conftest.$ac_ext <<_ACEOF
35571 /* confdefs.h.  */
35572 _ACEOF
35573 cat confdefs.h >>conftest.$ac_ext
35574 cat >>conftest.$ac_ext <<_ACEOF
35575 /* end confdefs.h.  */
35576 #include <sysexits.h>
35577 int
35578 main ()
35579 {
35580 switch (0)
35581        {
35582        case EX_OK:
35583        case EX_USAGE:
35584        case EX_DATAERR:
35585        case EX_NOINPUT:
35586        case EX_NOUSER:
35587        case EX_NOHOST:
35588        case EX_UNAVAILABLE:
35589        case EX_SOFTWARE:
35590        case EX_OSERR:
35591        case EX_OSFILE:
35592        case EX_CANTCREAT:
35593        case EX_IOERR:
35594        case EX_TEMPFAIL:
35595        case EX_PROTOCOL:
35596        case EX_NOPERM:
35597        case EX_CONFIG:
35598          break;
35599        }
35600
35601   ;
35602   return 0;
35603 }
35604 _ACEOF
35605 rm -f conftest.$ac_objext
35606 if { (ac_try="$ac_compile"
35607 case "(($ac_try" in
35608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35609   *) ac_try_echo=$ac_try;;
35610 esac
35611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35612   (eval "$ac_compile") 2>conftest.er1
35613   ac_status=$?
35614   grep -v '^ *+' conftest.er1 >conftest.err
35615   rm -f conftest.er1
35616   cat conftest.err >&5
35617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35618   (exit $ac_status); } && {
35619          test -z "$ac_c_werror_flag" ||
35620          test ! -s conftest.err
35621        } && test -s conftest.$ac_objext; then
35622   SYSEXITS_H=
35623 else
35624   echo "$as_me: failed program was:" >&5
35625 sed 's/^/| /' conftest.$ac_ext >&5
35626
35627         SYSEXITS_H=sysexits.h
35628 fi
35629
35630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35631   else
35632     HAVE_SYSEXITS_H=0
35633     SYSEXITS_H=sysexits.h
35634   fi
35635
35636
35637
35638
35639
35640
35641
35642
35643
35644
35645
35646
35647
35648
35649   gl_LIBOBJS="$gl_LIBOBJS tempname.$ac_objext"
35650
35651
35652   :
35653
35654
35655
35656
35657
35658
35659
35660
35661
35662
35663
35664   { echo "$as_me:$LINENO: checking whether localtime_r is compatible with its POSIX signature" >&5
35665 echo $ECHO_N "checking whether localtime_r is compatible with its POSIX signature... $ECHO_C" >&6; }
35666 if test "${gl_cv_time_r_posix+set}" = set; then
35667   echo $ECHO_N "(cached) $ECHO_C" >&6
35668 else
35669   cat >conftest.$ac_ext <<_ACEOF
35670 /* confdefs.h.  */
35671 _ACEOF
35672 cat confdefs.h >>conftest.$ac_ext
35673 cat >>conftest.$ac_ext <<_ACEOF
35674 /* end confdefs.h.  */
35675 #include <time.h>
35676 int
35677 main ()
35678 {
35679 /* We don't need to append 'restrict's to the argument types,
35680            even though the POSIX signature has the 'restrict's,
35681            since C99 says they can't affect type compatibility.  */
35682         struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
35683         if (ptr) return 0;
35684         /* Check the return type is a pointer.  On HP-UX 10 it is 'int'.  */
35685         *localtime_r (0, 0);
35686   ;
35687   return 0;
35688 }
35689 _ACEOF
35690 rm -f conftest.$ac_objext
35691 if { (ac_try="$ac_compile"
35692 case "(($ac_try" in
35693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35694   *) ac_try_echo=$ac_try;;
35695 esac
35696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35697   (eval "$ac_compile") 2>conftest.er1
35698   ac_status=$?
35699   grep -v '^ *+' conftest.er1 >conftest.err
35700   rm -f conftest.er1
35701   cat conftest.err >&5
35702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35703   (exit $ac_status); } && {
35704          test -z "$ac_c_werror_flag" ||
35705          test ! -s conftest.err
35706        } && test -s conftest.$ac_objext; then
35707   gl_cv_time_r_posix=yes
35708 else
35709   echo "$as_me: failed program was:" >&5
35710 sed 's/^/| /' conftest.$ac_ext >&5
35711
35712         gl_cv_time_r_posix=no
35713 fi
35714
35715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35716 fi
35717 { echo "$as_me:$LINENO: result: $gl_cv_time_r_posix" >&5
35718 echo "${ECHO_T}$gl_cv_time_r_posix" >&6; }
35719   if test $gl_cv_time_r_posix = yes; then
35720     REPLACE_LOCALTIME_R=0
35721   else
35722     REPLACE_LOCALTIME_R=1
35723
35724
35725
35726
35727
35728
35729
35730
35731   gl_LIBOBJS="$gl_LIBOBJS time_r.$ac_objext"
35732
35733
35734   :
35735
35736   fi
35737
35738
35739
35740
35741
35742
35743
35744
35745
35746
35747
35748
35749
35750
35751
35752
35753
35754
35755      if test $gl_cv_have_include_next = yes; then
35756        gl_cv_next_unistd_h='<'unistd.h'>'
35757      else
35758        { echo "$as_me:$LINENO: checking absolute name of <unistd.h>" >&5
35759 echo $ECHO_N "checking absolute name of <unistd.h>... $ECHO_C" >&6; }
35760 if test "${gl_cv_next_unistd_h+set}" = set; then
35761   echo $ECHO_N "(cached) $ECHO_C" >&6
35762 else
35763
35764           if test $ac_cv_header_unistd_h = yes; then
35765             cat >conftest.$ac_ext <<_ACEOF
35766 /* confdefs.h.  */
35767 _ACEOF
35768 cat confdefs.h >>conftest.$ac_ext
35769 cat >>conftest.$ac_ext <<_ACEOF
35770 /* end confdefs.h.  */
35771 #include <unistd.h>
35772
35773 _ACEOF
35774                                                                     case "$host_os" in
35775               aix*) gl_absname_cpp="$ac_cpp -C" ;;
35776               *)    gl_absname_cpp="$ac_cpp" ;;
35777             esac
35778                                     gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
35779                sed -n '\#/unistd.h#{
35780                  s#.*"\(.*/unistd.h\)".*#\1#
35781                  s#^/[^/]#//&#
35782                  p
35783                  q
35784                }'`'"'
35785           else
35786             gl_cv_next_unistd_h='<'unistd.h'>'
35787           fi
35788
35789 fi
35790 { echo "$as_me:$LINENO: result: $gl_cv_next_unistd_h" >&5
35791 echo "${ECHO_T}$gl_cv_next_unistd_h" >&6; }
35792      fi
35793      NEXT_UNISTD_H=$gl_cv_next_unistd_h
35794
35795
35796
35797
35798
35799
35800
35801
35802
35803
35804   if test $ac_cv_header_unistd_h = yes; then
35805     HAVE_UNISTD_H=1
35806   else
35807     HAVE_UNISTD_H=0
35808   fi
35809
35810
35811
35812
35813
35814
35815
35816
35817
35818
35819
35820
35821
35822
35823
35824
35825
35826   gl_LIBOBJS="$gl_LIBOBJS dup-safer.$ac_objext"
35827
35828
35829
35830
35831
35832
35833
35834
35835
35836   gl_LIBOBJS="$gl_LIBOBJS fd-safer.$ac_objext"
35837
35838
35839
35840
35841
35842
35843
35844
35845
35846   gl_LIBOBJS="$gl_LIBOBJS pipe-safer.$ac_objext"
35847
35848
35849
35850
35851
35852
35853
35854
35855
35856
35857
35858
35859
35860
35861
35862
35863
35864
35865
35866   gl_LIBOBJS="$gl_LIBOBJS unlinkdir.$ac_objext"
35867
35868
35869   # The Hurd, the Linux kernel, the FreeBSD kernel version 2.2 and later,
35870   # and Cygwin never let anyone (even root) unlink directories.
35871   # If anyone knows of another system for which unlink can never
35872   # remove a directory, please report it to <bug-coreutils@gnu.org>.
35873   # Unfortunately this is difficult to test for, since it requires root access
35874   # and might create garbage in the file system,
35875   # so the code below simply relies on the kernel name and version number.
35876   case $host in
35877   *-*-gnu[0-9]* | \
35878   *-*-linux-* | *-*-linux | \
35879   *-*-freebsd2.2* | *-*-freebsd[3-9]* | *-*-freebsd[1-9][0-9]* | \
35880   *-cygwin)
35881
35882 cat >>confdefs.h <<\_ACEOF
35883 #define UNLINK_CANNOT_UNLINK_DIR 1
35884 _ACEOF
35885 ;;
35886   esac
35887
35888
35889
35890 cat >>confdefs.h <<\_ACEOF
35891 #define USE_UNLOCKED_IO 1
35892 _ACEOF
35893
35894
35895
35896
35897
35898
35899
35900
35901
35902
35903
35904
35905
35906
35907
35908
35909
35910
35911
35912
35913
35914
35915
35916
35917
35918
35919
35920
35921
35922
35923
35924
35925
35926
35927
35928
35929
35930
35931
35932
35933
35934
35935
35936
35937
35938
35939
35940
35941
35942
35943
35944
35945
35946
35947
35948
35949
35950
35951
35952
35953 for ac_func in unsetenv
35954 do
35955 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35956 { echo "$as_me:$LINENO: checking for $ac_func" >&5
35957 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
35958 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
35959   echo $ECHO_N "(cached) $ECHO_C" >&6
35960 else
35961   cat >conftest.$ac_ext <<_ACEOF
35962 /* confdefs.h.  */
35963 _ACEOF
35964 cat confdefs.h >>conftest.$ac_ext
35965 cat >>conftest.$ac_ext <<_ACEOF
35966 /* end confdefs.h.  */
35967 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35968    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35969 #define $ac_func innocuous_$ac_func
35970
35971 /* System header to define __stub macros and hopefully few prototypes,
35972     which can conflict with char $ac_func (); below.
35973     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35974     <limits.h> exists even on freestanding compilers.  */
35975
35976 #ifdef __STDC__
35977 # include <limits.h>
35978 #else
35979 # include <assert.h>
35980 #endif
35981
35982 #undef $ac_func
35983
35984 /* Override any GCC internal prototype to avoid an error.
35985    Use char because int might match the return type of a GCC
35986    builtin and then its argument prototype would still apply.  */
35987 #ifdef __cplusplus
35988 extern "C"
35989 #endif
35990 char $ac_func ();
35991 /* The GNU C library defines this for functions which it implements
35992     to always fail with ENOSYS.  Some functions are actually named
35993     something starting with __ and the normal name is an alias.  */
35994 #if defined __stub_$ac_func || defined __stub___$ac_func
35995 choke me
35996 #endif
35997
35998 int
35999 main ()
36000 {
36001 return $ac_func ();
36002   ;
36003   return 0;
36004 }
36005 _ACEOF
36006 rm -f conftest.$ac_objext conftest$ac_exeext
36007 if { (ac_try="$ac_link"
36008 case "(($ac_try" in
36009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36010   *) ac_try_echo=$ac_try;;
36011 esac
36012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36013   (eval "$ac_link") 2>conftest.er1
36014   ac_status=$?
36015   grep -v '^ *+' conftest.er1 >conftest.err
36016   rm -f conftest.er1
36017   cat conftest.err >&5
36018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36019   (exit $ac_status); } && {
36020          test -z "$ac_c_werror_flag" ||
36021          test ! -s conftest.err
36022        } && test -s conftest$ac_exeext &&
36023        $as_test_x conftest$ac_exeext; then
36024   eval "$as_ac_var=yes"
36025 else
36026   echo "$as_me: failed program was:" >&5
36027 sed 's/^/| /' conftest.$ac_ext >&5
36028
36029         eval "$as_ac_var=no"
36030 fi
36031
36032 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36033       conftest$ac_exeext conftest.$ac_ext
36034 fi
36035 ac_res=`eval echo '${'$as_ac_var'}'`
36036                { echo "$as_me:$LINENO: result: $ac_res" >&5
36037 echo "${ECHO_T}$ac_res" >&6; }
36038 if test `eval echo '${'$as_ac_var'}'` = yes; then
36039   cat >>confdefs.h <<_ACEOF
36040 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36041 _ACEOF
36042
36043 fi
36044 done
36045
36046   if test $ac_cv_func_unsetenv = no; then
36047     HAVE_UNSETENV=0
36048
36049
36050
36051
36052
36053
36054
36055
36056   gl_LIBOBJS="$gl_LIBOBJS unsetenv.$ac_objext"
36057
36058
36059
36060
36061
36062
36063
36064
36065
36066
36067   else
36068     { echo "$as_me:$LINENO: checking for unsetenv() return type" >&5
36069 echo $ECHO_N "checking for unsetenv() return type... $ECHO_C" >&6; }
36070 if test "${gt_cv_func_unsetenv_ret+set}" = set; then
36071   echo $ECHO_N "(cached) $ECHO_C" >&6
36072 else
36073   cat >conftest.$ac_ext <<_ACEOF
36074 /* confdefs.h.  */
36075 _ACEOF
36076 cat confdefs.h >>conftest.$ac_ext
36077 cat >>conftest.$ac_ext <<_ACEOF
36078 /* end confdefs.h.  */
36079 #include <stdlib.h>
36080 extern
36081 #ifdef __cplusplus
36082 "C"
36083 #endif
36084 #if defined(__STDC__) || defined(__cplusplus)
36085 int unsetenv (const char *name);
36086 #else
36087 int unsetenv();
36088 #endif
36089
36090 int
36091 main ()
36092 {
36093
36094   ;
36095   return 0;
36096 }
36097 _ACEOF
36098 rm -f conftest.$ac_objext
36099 if { (ac_try="$ac_compile"
36100 case "(($ac_try" in
36101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36102   *) ac_try_echo=$ac_try;;
36103 esac
36104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36105   (eval "$ac_compile") 2>conftest.er1
36106   ac_status=$?
36107   grep -v '^ *+' conftest.er1 >conftest.err
36108   rm -f conftest.er1
36109   cat conftest.err >&5
36110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36111   (exit $ac_status); } && {
36112          test -z "$ac_c_werror_flag" ||
36113          test ! -s conftest.err
36114        } && test -s conftest.$ac_objext; then
36115   gt_cv_func_unsetenv_ret='int'
36116 else
36117   echo "$as_me: failed program was:" >&5
36118 sed 's/^/| /' conftest.$ac_ext >&5
36119
36120         gt_cv_func_unsetenv_ret='void'
36121 fi
36122
36123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36124 fi
36125 { echo "$as_me:$LINENO: result: $gt_cv_func_unsetenv_ret" >&5
36126 echo "${ECHO_T}$gt_cv_func_unsetenv_ret" >&6; }
36127     if test $gt_cv_func_unsetenv_ret = 'void'; then
36128       VOID_UNSETENV=1
36129     fi
36130   fi
36131
36132
36133
36134   GNULIB_UNSETENV=1
36135
36136
36137
36138   if test $ac_cv_func_utime_null = no; then
36139
36140
36141
36142
36143
36144
36145
36146
36147   gl_LIBOBJS="$gl_LIBOBJS utime.$ac_objext"
36148
36149
36150 cat >>confdefs.h <<\_ACEOF
36151 #define utime rpl_utime
36152 _ACEOF
36153
36154
36155
36156
36157
36158
36159
36160
36161
36162   { echo "$as_me:$LINENO: checking whether utimes accepts a null argument" >&5
36163 echo $ECHO_N "checking whether utimes accepts a null argument... $ECHO_C" >&6; }
36164 if test "${ac_cv_func_utimes_null+set}" = set; then
36165   echo $ECHO_N "(cached) $ECHO_C" >&6
36166 else
36167   rm -f conftest.data; > conftest.data
36168 if test "$cross_compiling" = yes; then
36169   ac_cv_func_utimes_null=no
36170 else
36171   cat >conftest.$ac_ext <<_ACEOF
36172 /* confdefs.h.  */
36173 _ACEOF
36174 cat confdefs.h >>conftest.$ac_ext
36175 cat >>conftest.$ac_ext <<_ACEOF
36176 /* end confdefs.h.  */
36177
36178 /* In case stat has been defined to rpl_stat, undef it here.  */
36179 #undef stat
36180 #include <sys/types.h>
36181 #include <sys/stat.h>
36182 #include <sys/time.h>
36183 int
36184 main () {
36185 struct stat s, t;
36186 return ! (stat ("conftest.data", &s) == 0
36187           && utimes ("conftest.data", 0) == 0
36188           && stat ("conftest.data", &t) == 0
36189           && t.st_mtime >= s.st_mtime
36190           && t.st_mtime - s.st_mtime < 120));
36191 }
36192 _ACEOF
36193 rm -f conftest$ac_exeext
36194 if { (ac_try="$ac_link"
36195 case "(($ac_try" in
36196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36197   *) ac_try_echo=$ac_try;;
36198 esac
36199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36200   (eval "$ac_link") 2>&5
36201   ac_status=$?
36202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36203   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36204   { (case "(($ac_try" in
36205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36206   *) ac_try_echo=$ac_try;;
36207 esac
36208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36209   (eval "$ac_try") 2>&5
36210   ac_status=$?
36211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36212   (exit $ac_status); }; }; then
36213   ac_cv_func_utimes_null=yes
36214 else
36215   echo "$as_me: program exited with status $ac_status" >&5
36216 echo "$as_me: failed program was:" >&5
36217 sed 's/^/| /' conftest.$ac_ext >&5
36218
36219 ( exit $ac_status )
36220 ac_cv_func_utimes_null=no
36221 fi
36222 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36223 fi
36224
36225
36226 rm -f core core.* *.core
36227 fi
36228 { echo "$as_me:$LINENO: result: $ac_cv_func_utimes_null" >&5
36229 echo "${ECHO_T}$ac_cv_func_utimes_null" >&6; }
36230
36231     if test $ac_cv_func_utimes_null = yes; then
36232
36233 cat >>confdefs.h <<\_ACEOF
36234 #define HAVE_UTIMES_NULL 1
36235 _ACEOF
36236
36237     fi
36238
36239
36240
36241   fi
36242
36243
36244
36245
36246
36247
36248
36249
36250
36251
36252   gl_LIBOBJS="$gl_LIBOBJS utimens.$ac_objext"
36253
36254
36255
36256
36257
36258
36259
36260
36261
36262
36263
36264
36265
36266
36267
36268
36269
36270
36271
36272
36273
36274
36275
36276
36277
36278   if test $ac_cv_func_vasnprintf = no; then
36279
36280
36281
36282
36283
36284
36285
36286
36287
36288
36289
36290
36291
36292
36293
36294   gl_LIBOBJS="$gl_LIBOBJS vasnprintf.$ac_objext"
36295
36296
36297
36298
36299
36300
36301
36302
36303
36304   gl_LIBOBJS="$gl_LIBOBJS printf-args.$ac_objext"
36305
36306
36307
36308
36309
36310
36311
36312
36313
36314   gl_LIBOBJS="$gl_LIBOBJS printf-parse.$ac_objext"
36315
36316
36317
36318
36319
36320
36321
36322
36323
36324   gl_LIBOBJS="$gl_LIBOBJS asnprintf.$ac_objext"
36325
36326   if test $ac_cv_func_vasnprintf = yes; then
36327
36328 cat >>confdefs.h <<\_ACEOF
36329 #define REPLACE_VASNPRINTF 1
36330 _ACEOF
36331
36332   fi
36333
36334
36335
36336
36337
36338
36339
36340
36341
36342
36343   { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
36344 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
36345 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
36346   echo $ECHO_N "(cached) $ECHO_C" >&6
36347 else
36348   cat >conftest.$ac_ext <<_ACEOF
36349 /* confdefs.h.  */
36350 _ACEOF
36351 cat confdefs.h >>conftest.$ac_ext
36352 cat >>conftest.$ac_ext <<_ACEOF
36353 /* end confdefs.h.  */
36354 $ac_includes_default
36355 typedef ptrdiff_t ac__type_new_;
36356 int
36357 main ()
36358 {
36359 if ((ac__type_new_ *) 0)
36360   return 0;
36361 if (sizeof (ac__type_new_))
36362   return 0;
36363   ;
36364   return 0;
36365 }
36366 _ACEOF
36367 rm -f conftest.$ac_objext
36368 if { (ac_try="$ac_compile"
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_compile") 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_objext; then
36384   ac_cv_type_ptrdiff_t=yes
36385 else
36386   echo "$as_me: failed program was:" >&5
36387 sed 's/^/| /' conftest.$ac_ext >&5
36388
36389         ac_cv_type_ptrdiff_t=no
36390 fi
36391
36392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36393 fi
36394 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
36395 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
36396 if test $ac_cv_type_ptrdiff_t = yes; then
36397   :
36398 else
36399
36400 cat >>confdefs.h <<\_ACEOF
36401 #define ptrdiff_t long
36402 _ACEOF
36403
36404
36405 fi
36406
36407
36408
36409
36410
36411
36412
36413
36414
36415
36416 for ac_func in snprintf wcslen
36417 do
36418 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36419 { echo "$as_me:$LINENO: checking for $ac_func" >&5
36420 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36421 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36422   echo $ECHO_N "(cached) $ECHO_C" >&6
36423 else
36424   cat >conftest.$ac_ext <<_ACEOF
36425 /* confdefs.h.  */
36426 _ACEOF
36427 cat confdefs.h >>conftest.$ac_ext
36428 cat >>conftest.$ac_ext <<_ACEOF
36429 /* end confdefs.h.  */
36430 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36431    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36432 #define $ac_func innocuous_$ac_func
36433
36434 /* System header to define __stub macros and hopefully few prototypes,
36435     which can conflict with char $ac_func (); below.
36436     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36437     <limits.h> exists even on freestanding compilers.  */
36438
36439 #ifdef __STDC__
36440 # include <limits.h>
36441 #else
36442 # include <assert.h>
36443 #endif
36444
36445 #undef $ac_func
36446
36447 /* Override any GCC internal prototype to avoid an error.
36448    Use char because int might match the return type of a GCC
36449    builtin and then its argument prototype would still apply.  */
36450 #ifdef __cplusplus
36451 extern "C"
36452 #endif
36453 char $ac_func ();
36454 /* The GNU C library defines this for functions which it implements
36455     to always fail with ENOSYS.  Some functions are actually named
36456     something starting with __ and the normal name is an alias.  */
36457 #if defined __stub_$ac_func || defined __stub___$ac_func
36458 choke me
36459 #endif
36460
36461 int
36462 main ()
36463 {
36464 return $ac_func ();
36465   ;
36466   return 0;
36467 }
36468 _ACEOF
36469 rm -f conftest.$ac_objext conftest$ac_exeext
36470 if { (ac_try="$ac_link"
36471 case "(($ac_try" in
36472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36473   *) ac_try_echo=$ac_try;;
36474 esac
36475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36476   (eval "$ac_link") 2>conftest.er1
36477   ac_status=$?
36478   grep -v '^ *+' conftest.er1 >conftest.err
36479   rm -f conftest.er1
36480   cat conftest.err >&5
36481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36482   (exit $ac_status); } && {
36483          test -z "$ac_c_werror_flag" ||
36484          test ! -s conftest.err
36485        } && test -s conftest$ac_exeext &&
36486        $as_test_x conftest$ac_exeext; then
36487   eval "$as_ac_var=yes"
36488 else
36489   echo "$as_me: failed program was:" >&5
36490 sed 's/^/| /' conftest.$ac_ext >&5
36491
36492         eval "$as_ac_var=no"
36493 fi
36494
36495 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36496       conftest$ac_exeext conftest.$ac_ext
36497 fi
36498 ac_res=`eval echo '${'$as_ac_var'}'`
36499                { echo "$as_me:$LINENO: result: $ac_res" >&5
36500 echo "${ECHO_T}$ac_res" >&6; }
36501 if test `eval echo '${'$as_ac_var'}'` = yes; then
36502   cat >>confdefs.h <<_ACEOF
36503 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36504 _ACEOF
36505
36506 fi
36507 done
36508
36509       { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
36510 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
36511 if test "${ac_cv_have_decl__snprintf+set}" = set; then
36512   echo $ECHO_N "(cached) $ECHO_C" >&6
36513 else
36514   cat >conftest.$ac_ext <<_ACEOF
36515 /* confdefs.h.  */
36516 _ACEOF
36517 cat confdefs.h >>conftest.$ac_ext
36518 cat >>conftest.$ac_ext <<_ACEOF
36519 /* end confdefs.h.  */
36520 #include <stdio.h>
36521
36522 int
36523 main ()
36524 {
36525 #ifndef _snprintf
36526   (void) _snprintf;
36527 #endif
36528
36529   ;
36530   return 0;
36531 }
36532 _ACEOF
36533 rm -f conftest.$ac_objext
36534 if { (ac_try="$ac_compile"
36535 case "(($ac_try" in
36536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36537   *) ac_try_echo=$ac_try;;
36538 esac
36539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36540   (eval "$ac_compile") 2>conftest.er1
36541   ac_status=$?
36542   grep -v '^ *+' conftest.er1 >conftest.err
36543   rm -f conftest.er1
36544   cat conftest.err >&5
36545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36546   (exit $ac_status); } && {
36547          test -z "$ac_c_werror_flag" ||
36548          test ! -s conftest.err
36549        } && test -s conftest.$ac_objext; then
36550   ac_cv_have_decl__snprintf=yes
36551 else
36552   echo "$as_me: failed program was:" >&5
36553 sed 's/^/| /' conftest.$ac_ext >&5
36554
36555         ac_cv_have_decl__snprintf=no
36556 fi
36557
36558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36559 fi
36560 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
36561 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
36562 if test $ac_cv_have_decl__snprintf = yes; then
36563
36564 cat >>confdefs.h <<_ACEOF
36565 #define HAVE_DECL__SNPRINTF 1
36566 _ACEOF
36567
36568
36569 else
36570   cat >>confdefs.h <<_ACEOF
36571 #define HAVE_DECL__SNPRINTF 0
36572 _ACEOF
36573
36574
36575 fi
36576
36577
36578
36579
36580
36581
36582   fi
36583
36584
36585
36586   gl_cv_func_vsnprintf_usable=no
36587
36588 for ac_func in vsnprintf
36589 do
36590 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36591 { echo "$as_me:$LINENO: checking for $ac_func" >&5
36592 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36593 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36594   echo $ECHO_N "(cached) $ECHO_C" >&6
36595 else
36596   cat >conftest.$ac_ext <<_ACEOF
36597 /* confdefs.h.  */
36598 _ACEOF
36599 cat confdefs.h >>conftest.$ac_ext
36600 cat >>conftest.$ac_ext <<_ACEOF
36601 /* end confdefs.h.  */
36602 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36603    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36604 #define $ac_func innocuous_$ac_func
36605
36606 /* System header to define __stub macros and hopefully few prototypes,
36607     which can conflict with char $ac_func (); below.
36608     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36609     <limits.h> exists even on freestanding compilers.  */
36610
36611 #ifdef __STDC__
36612 # include <limits.h>
36613 #else
36614 # include <assert.h>
36615 #endif
36616
36617 #undef $ac_func
36618
36619 /* Override any GCC internal prototype to avoid an error.
36620    Use char because int might match the return type of a GCC
36621    builtin and then its argument prototype would still apply.  */
36622 #ifdef __cplusplus
36623 extern "C"
36624 #endif
36625 char $ac_func ();
36626 /* The GNU C library defines this for functions which it implements
36627     to always fail with ENOSYS.  Some functions are actually named
36628     something starting with __ and the normal name is an alias.  */
36629 #if defined __stub_$ac_func || defined __stub___$ac_func
36630 choke me
36631 #endif
36632
36633 int
36634 main ()
36635 {
36636 return $ac_func ();
36637   ;
36638   return 0;
36639 }
36640 _ACEOF
36641 rm -f conftest.$ac_objext conftest$ac_exeext
36642 if { (ac_try="$ac_link"
36643 case "(($ac_try" in
36644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36645   *) ac_try_echo=$ac_try;;
36646 esac
36647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36648   (eval "$ac_link") 2>conftest.er1
36649   ac_status=$?
36650   grep -v '^ *+' conftest.er1 >conftest.err
36651   rm -f conftest.er1
36652   cat conftest.err >&5
36653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36654   (exit $ac_status); } && {
36655          test -z "$ac_c_werror_flag" ||
36656          test ! -s conftest.err
36657        } && test -s conftest$ac_exeext &&
36658        $as_test_x conftest$ac_exeext; then
36659   eval "$as_ac_var=yes"
36660 else
36661   echo "$as_me: failed program was:" >&5
36662 sed 's/^/| /' conftest.$ac_ext >&5
36663
36664         eval "$as_ac_var=no"
36665 fi
36666
36667 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36668       conftest$ac_exeext conftest.$ac_ext
36669 fi
36670 ac_res=`eval echo '${'$as_ac_var'}'`
36671                { echo "$as_me:$LINENO: result: $ac_res" >&5
36672 echo "${ECHO_T}$ac_res" >&6; }
36673 if test `eval echo '${'$as_ac_var'}'` = yes; then
36674   cat >>confdefs.h <<_ACEOF
36675 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36676 _ACEOF
36677
36678 fi
36679 done
36680
36681   if test $ac_cv_func_vsnprintf = yes; then
36682
36683
36684   { echo "$as_me:$LINENO: checking whether snprintf respects a size of 1" >&5
36685 echo $ECHO_N "checking whether snprintf respects a size of 1... $ECHO_C" >&6; }
36686 if test "${gl_cv_func_snprintf_size1+set}" = set; then
36687   echo $ECHO_N "(cached) $ECHO_C" >&6
36688 else
36689
36690       if test "$cross_compiling" = yes; then
36691   gl_cv_func_snprintf_size1="guessing yes"
36692 else
36693   cat >conftest.$ac_ext <<_ACEOF
36694 /* confdefs.h.  */
36695 _ACEOF
36696 cat confdefs.h >>conftest.$ac_ext
36697 cat >>conftest.$ac_ext <<_ACEOF
36698 /* end confdefs.h.  */
36699
36700 #include <stdio.h>
36701 int main()
36702 {
36703   static char buf[8] = { 'D', 'E', 'A', 'D', 'B', 'E', 'E', 'F' };
36704   snprintf (buf, 1, "%d", 12345);
36705   return buf[1] != 'E';
36706 }
36707 _ACEOF
36708 rm -f conftest$ac_exeext
36709 if { (ac_try="$ac_link"
36710 case "(($ac_try" in
36711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36712   *) ac_try_echo=$ac_try;;
36713 esac
36714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36715   (eval "$ac_link") 2>&5
36716   ac_status=$?
36717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36718   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36719   { (case "(($ac_try" in
36720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36721   *) ac_try_echo=$ac_try;;
36722 esac
36723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36724   (eval "$ac_try") 2>&5
36725   ac_status=$?
36726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36727   (exit $ac_status); }; }; then
36728   gl_cv_func_snprintf_size1=yes
36729 else
36730   echo "$as_me: program exited with status $ac_status" >&5
36731 echo "$as_me: failed program was:" >&5
36732 sed 's/^/| /' conftest.$ac_ext >&5
36733
36734 ( exit $ac_status )
36735 gl_cv_func_snprintf_size1=no
36736 fi
36737 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36738 fi
36739
36740
36741
36742 fi
36743 { echo "$as_me:$LINENO: result: $gl_cv_func_snprintf_size1" >&5
36744 echo "${ECHO_T}$gl_cv_func_snprintf_size1" >&6; }
36745
36746     case "$gl_cv_func_snprintf_size1" in
36747       *yes)
36748         gl_cv_func_vsnprintf_usable=yes
36749         ;;
36750     esac
36751   fi
36752   if test $gl_cv_func_vsnprintf_usable = no; then
36753
36754
36755
36756
36757
36758
36759
36760
36761
36762
36763   gl_LIBOBJS="$gl_LIBOBJS vsnprintf.$ac_objext"
36764
36765   if test $ac_cv_func_vsnprintf = yes; then
36766     REPLACE_VSNPRINTF=1
36767   fi
36768   :
36769
36770   fi
36771
36772
36773
36774
36775   if test $ac_cv_have_decl_vsnprintf = no; then
36776     HAVE_DECL_VSNPRINTF=0
36777   fi
36778
36779
36780
36781   GNULIB_VSNPRINTF=1
36782
36783
36784
36785   { echo "$as_me:$LINENO: checking whether <wchar.h> is standalone" >&5
36786 echo $ECHO_N "checking whether <wchar.h> is standalone... $ECHO_C" >&6; }
36787 if test "${gl_cv_header_wchar_h_standalone+set}" = set; then
36788   echo $ECHO_N "(cached) $ECHO_C" >&6
36789 else
36790   cat >conftest.$ac_ext <<_ACEOF
36791 #include <wchar.h>
36792 wchar_t w;
36793 _ACEOF
36794 rm -f conftest.$ac_objext
36795 if { (ac_try="$ac_compile"
36796 case "(($ac_try" in
36797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36798   *) ac_try_echo=$ac_try;;
36799 esac
36800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36801   (eval "$ac_compile") 2>conftest.er1
36802   ac_status=$?
36803   grep -v '^ *+' conftest.er1 >conftest.err
36804   rm -f conftest.er1
36805   cat conftest.err >&5
36806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36807   (exit $ac_status); } && {
36808          test -z "$ac_c_werror_flag" ||
36809          test ! -s conftest.err
36810        } && test -s conftest.$ac_objext; then
36811   gl_cv_header_wchar_h_standalone=yes
36812 else
36813   echo "$as_me: failed program was:" >&5
36814 sed 's/^/| /' conftest.$ac_ext >&5
36815
36816         gl_cv_header_wchar_h_standalone=no
36817 fi
36818
36819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36820 fi
36821 { echo "$as_me:$LINENO: result: $gl_cv_header_wchar_h_standalone" >&5
36822 echo "${ECHO_T}$gl_cv_header_wchar_h_standalone" >&6; }
36823
36824
36825   if test $gt_cv_c_wint_t = yes; then
36826     HAVE_WINT_T=1
36827   else
36828     HAVE_WINT_T=0
36829   fi
36830
36831
36832   if test $gl_cv_header_wchar_h_standalone != yes || test $gt_cv_c_wint_t != yes; then
36833     WCHAR_H=wchar.h
36834   fi
36835
36836
36837
36838
36839
36840
36841
36842   if test $ac_cv_header_wchar_h = yes; then
36843     HAVE_WCHAR_H=1
36844   else
36845     HAVE_WCHAR_H=0
36846   fi
36847
36848
36849
36850
36851
36852
36853
36854
36855
36856
36857
36858
36859      if test $gl_cv_have_include_next = yes; then
36860        gl_cv_next_wchar_h='<'wchar.h'>'
36861      else
36862        { echo "$as_me:$LINENO: checking absolute name of <wchar.h>" >&5
36863 echo $ECHO_N "checking absolute name of <wchar.h>... $ECHO_C" >&6; }
36864 if test "${gl_cv_next_wchar_h+set}" = set; then
36865   echo $ECHO_N "(cached) $ECHO_C" >&6
36866 else
36867
36868           if test $ac_cv_header_wchar_h = yes; then
36869             cat >conftest.$ac_ext <<_ACEOF
36870 /* confdefs.h.  */
36871 _ACEOF
36872 cat confdefs.h >>conftest.$ac_ext
36873 cat >>conftest.$ac_ext <<_ACEOF
36874 /* end confdefs.h.  */
36875 #include <wchar.h>
36876
36877 _ACEOF
36878                                                                     case "$host_os" in
36879               aix*) gl_absname_cpp="$ac_cpp -C" ;;
36880               *)    gl_absname_cpp="$ac_cpp" ;;
36881             esac
36882                                     gl_cv_next_wchar_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
36883                sed -n '\#/wchar.h#{
36884                  s#.*"\(.*/wchar.h\)".*#\1#
36885                  s#^/[^/]#//&#
36886                  p
36887                  q
36888                }'`'"'
36889           else
36890             gl_cv_next_wchar_h='<'wchar.h'>'
36891           fi
36892
36893 fi
36894 { echo "$as_me:$LINENO: result: $gl_cv_next_wchar_h" >&5
36895 echo "${ECHO_T}$gl_cv_next_wchar_h" >&6; }
36896      fi
36897      NEXT_WCHAR_H=$gl_cv_next_wchar_h
36898
36899
36900
36901
36902
36903
36904
36905
36906
36907
36908
36909
36910
36911
36912   if test $ac_cv_func_wcrtomb = no; then
36913     HAVE_WCRTOMB=0
36914   else
36915
36916
36917
36918
36919
36920
36921          { echo "$as_me:$LINENO: checking whether wcrtomb return value is correct" >&5
36922 echo $ECHO_N "checking whether wcrtomb return value is correct... $ECHO_C" >&6; }
36923 if test "${gl_cv_func_wcrtomb_retval+set}" = set; then
36924   echo $ECHO_N "(cached) $ECHO_C" >&6
36925 else
36926
36927                         case "$host_os" in
36928                            # Guess no on OSF/1 and Solaris.
36929           osf* | solaris*) gl_cv_func_wcrtomb_retval="guessing no" ;;
36930                            # Guess yes otherwise.
36931           *)               gl_cv_func_wcrtomb_retval="guessing yes" ;;
36932         esac
36933         if test $LOCALE_FR != none || test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none || test $LOCALE_ZH_CN != none; then
36934           if test "$cross_compiling" = yes; then
36935   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
36936 See \`config.log' for more details." >&5
36937 echo "$as_me: error: cannot run test program while cross compiling
36938 See \`config.log' for more details." >&2;}
36939    { (exit 1); exit 1; }; }
36940 else
36941   cat >conftest.$ac_ext <<_ACEOF
36942 /* confdefs.h.  */
36943 _ACEOF
36944 cat confdefs.h >>conftest.$ac_ext
36945 cat >>conftest.$ac_ext <<_ACEOF
36946 /* end confdefs.h.  */
36947
36948 #include <locale.h>
36949 #include <stdio.h>
36950 #include <string.h>
36951 #include <wchar.h>
36952 int main ()
36953 {
36954   if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
36955     {
36956       if (wcrtomb (NULL, 0, NULL) != 1)
36957         return 1;
36958     }
36959   if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
36960     {
36961       if (wcrtomb (NULL, 0, NULL) != 1)
36962         return 1;
36963     }
36964   if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
36965     {
36966       if (wcrtomb (NULL, 0, NULL) != 1)
36967         return 1;
36968     }
36969   if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
36970     {
36971       if (wcrtomb (NULL, 0, NULL) != 1)
36972         return 1;
36973     }
36974   return 0;
36975 }
36976 _ACEOF
36977 rm -f conftest$ac_exeext
36978 if { (ac_try="$ac_link"
36979 case "(($ac_try" in
36980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36981   *) ac_try_echo=$ac_try;;
36982 esac
36983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36984   (eval "$ac_link") 2>&5
36985   ac_status=$?
36986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36987   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36988   { (case "(($ac_try" in
36989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36990   *) ac_try_echo=$ac_try;;
36991 esac
36992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36993   (eval "$ac_try") 2>&5
36994   ac_status=$?
36995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36996   (exit $ac_status); }; }; then
36997   gl_cv_func_wcrtomb_retval=yes
36998 else
36999   echo "$as_me: program exited with status $ac_status" >&5
37000 echo "$as_me: failed program was:" >&5
37001 sed 's/^/| /' conftest.$ac_ext >&5
37002
37003 ( exit $ac_status )
37004 gl_cv_func_wcrtomb_retval=no
37005 fi
37006 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
37007 fi
37008
37009
37010         fi
37011
37012 fi
37013 { echo "$as_me:$LINENO: result: $gl_cv_func_wcrtomb_retval" >&5
37014 echo "${ECHO_T}$gl_cv_func_wcrtomb_retval" >&6; }
37015     case "$gl_cv_func_wcrtomb_retval" in
37016       *yes) ;;
37017       *) REPLACE_WCRTOMB=1 ;;
37018     esac
37019   fi
37020   if test $HAVE_WCRTOMB = 0 || test $REPLACE_WCRTOMB = 1; then
37021
37022
37023   WCHAR_H=wchar.h
37024
37025
37026
37027
37028
37029
37030
37031
37032
37033   gl_LIBOBJS="$gl_LIBOBJS wcrtomb.$ac_objext"
37034
37035
37036   :
37037
37038   fi
37039
37040
37041
37042   GNULIB_WCRTOMB=1
37043
37044
37045
37046
37047
37048
37049
37050
37051
37052   if test $ac_cv_func_iswcntrl = yes; then
37053     HAVE_ISWCNTRL=1
37054   else
37055     HAVE_ISWCNTRL=0
37056   fi
37057
37058
37059
37060
37061
37062
37063
37064
37065
37066
37067   if test $gt_cv_c_wint_t = yes; then
37068     HAVE_WINT_T=1
37069   else
37070     HAVE_WINT_T=0
37071   fi
37072
37073
37074   WCTYPE_H=wctype.h
37075   if test $ac_cv_header_wctype_h = yes; then
37076     if test $ac_cv_func_iswcntrl = yes; then
37077                   { echo "$as_me:$LINENO: checking whether iswcntrl works" >&5
37078 echo $ECHO_N "checking whether iswcntrl works... $ECHO_C" >&6; }
37079 if test "${gl_cv_func_iswcntrl_works+set}" = set; then
37080   echo $ECHO_N "(cached) $ECHO_C" >&6
37081 else
37082
37083           if test "$cross_compiling" = yes; then
37084   cat >conftest.$ac_ext <<_ACEOF
37085 /* confdefs.h.  */
37086 _ACEOF
37087 cat confdefs.h >>conftest.$ac_ext
37088 cat >>conftest.$ac_ext <<_ACEOF
37089 /* end confdefs.h.  */
37090 #include <stdlib.h>
37091                           #if __GNU_LIBRARY__ == 1
37092                           Linux libc5 i18n is broken.
37093                           #endif
37094 int
37095 main ()
37096 {
37097
37098   ;
37099   return 0;
37100 }
37101 _ACEOF
37102 rm -f conftest.$ac_objext
37103 if { (ac_try="$ac_compile"
37104 case "(($ac_try" in
37105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37106   *) ac_try_echo=$ac_try;;
37107 esac
37108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37109   (eval "$ac_compile") 2>conftest.er1
37110   ac_status=$?
37111   grep -v '^ *+' conftest.er1 >conftest.err
37112   rm -f conftest.er1
37113   cat conftest.err >&5
37114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37115   (exit $ac_status); } && {
37116          test -z "$ac_c_werror_flag" ||
37117          test ! -s conftest.err
37118        } && test -s conftest.$ac_objext; then
37119   gl_cv_func_iswcntrl_works=yes
37120 else
37121   echo "$as_me: failed program was:" >&5
37122 sed 's/^/| /' conftest.$ac_ext >&5
37123
37124         gl_cv_func_iswcntrl_works=no
37125 fi
37126
37127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37128
37129 else
37130   cat >conftest.$ac_ext <<_ACEOF
37131 /* confdefs.h.  */
37132 _ACEOF
37133 cat confdefs.h >>conftest.$ac_ext
37134 cat >>conftest.$ac_ext <<_ACEOF
37135 /* end confdefs.h.  */
37136 #include <stddef.h>
37137                       #include <stdio.h>
37138                       #include <time.h>
37139                       #include <wchar.h>
37140                       #include <wctype.h>
37141                       int main () { return iswprint ('x') == 0; }
37142 _ACEOF
37143 rm -f conftest$ac_exeext
37144 if { (ac_try="$ac_link"
37145 case "(($ac_try" in
37146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37147   *) ac_try_echo=$ac_try;;
37148 esac
37149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37150   (eval "$ac_link") 2>&5
37151   ac_status=$?
37152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37153   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
37154   { (case "(($ac_try" in
37155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37156   *) ac_try_echo=$ac_try;;
37157 esac
37158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37159   (eval "$ac_try") 2>&5
37160   ac_status=$?
37161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37162   (exit $ac_status); }; }; then
37163   gl_cv_func_iswcntrl_works=yes
37164 else
37165   echo "$as_me: program exited with status $ac_status" >&5
37166 echo "$as_me: failed program was:" >&5
37167 sed 's/^/| /' conftest.$ac_ext >&5
37168
37169 ( exit $ac_status )
37170 gl_cv_func_iswcntrl_works=no
37171 fi
37172 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
37173 fi
37174
37175
37176
37177 fi
37178 { echo "$as_me:$LINENO: result: $gl_cv_func_iswcntrl_works" >&5
37179 echo "${ECHO_T}$gl_cv_func_iswcntrl_works" >&6; }
37180       if test $gl_cv_func_iswcntrl_works = yes; then
37181         WCTYPE_H=
37182       fi
37183     fi
37184
37185
37186
37187
37188
37189
37190
37191
37192
37193
37194
37195      if test $gl_cv_have_include_next = yes; then
37196        gl_cv_next_wctype_h='<'wctype.h'>'
37197      else
37198        { echo "$as_me:$LINENO: checking absolute name of <wctype.h>" >&5
37199 echo $ECHO_N "checking absolute name of <wctype.h>... $ECHO_C" >&6; }
37200 if test "${gl_cv_next_wctype_h+set}" = set; then
37201   echo $ECHO_N "(cached) $ECHO_C" >&6
37202 else
37203
37204           if test $ac_cv_header_wctype_h = yes; then
37205             cat >conftest.$ac_ext <<_ACEOF
37206 /* confdefs.h.  */
37207 _ACEOF
37208 cat confdefs.h >>conftest.$ac_ext
37209 cat >>conftest.$ac_ext <<_ACEOF
37210 /* end confdefs.h.  */
37211 #include <wctype.h>
37212
37213 _ACEOF
37214                                                                     case "$host_os" in
37215               aix*) gl_absname_cpp="$ac_cpp -C" ;;
37216               *)    gl_absname_cpp="$ac_cpp" ;;
37217             esac
37218                                     gl_cv_next_wctype_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
37219                sed -n '\#/wctype.h#{
37220                  s#.*"\(.*/wctype.h\)".*#\1#
37221                  s#^/[^/]#//&#
37222                  p
37223                  q
37224                }'`'"'
37225           else
37226             gl_cv_next_wctype_h='<'wctype.h'>'
37227           fi
37228
37229 fi
37230 { echo "$as_me:$LINENO: result: $gl_cv_next_wctype_h" >&5
37231 echo "${ECHO_T}$gl_cv_next_wctype_h" >&6; }
37232      fi
37233      NEXT_WCTYPE_H=$gl_cv_next_wctype_h
37234
37235
37236
37237     HAVE_WCTYPE_H=1
37238   else
37239     HAVE_WCTYPE_H=0
37240   fi
37241
37242
37243
37244   if test "$gl_cv_func_iswcntrl_works" = no; then
37245     REPLACE_ISWCNTRL=1
37246   else
37247     REPLACE_ISWCNTRL=0
37248   fi
37249
37250
37251
37252
37253
37254
37255
37256
37257
37258
37259
37260
37261
37262
37263
37264
37265
37266
37267
37268
37269
37270
37271
37272   { echo "$as_me:$LINENO: checking whether wcwidth is declared" >&5
37273 echo $ECHO_N "checking whether wcwidth is declared... $ECHO_C" >&6; }
37274 if test "${ac_cv_have_decl_wcwidth+set}" = set; then
37275   echo $ECHO_N "(cached) $ECHO_C" >&6
37276 else
37277   cat >conftest.$ac_ext <<_ACEOF
37278 /* confdefs.h.  */
37279 _ACEOF
37280 cat confdefs.h >>conftest.$ac_ext
37281 cat >>conftest.$ac_ext <<_ACEOF
37282 /* end confdefs.h.  */
37283
37284 /* AIX 3.2.5 declares wcwidth in <string.h>. */
37285 #include <string.h>
37286 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
37287    <wchar.h>.
37288    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
37289    before <wchar.h>.  */
37290 #include <stddef.h>
37291 #include <stdio.h>
37292 #include <time.h>
37293 #include <wchar.h>
37294
37295
37296 int
37297 main ()
37298 {
37299 #ifndef wcwidth
37300   (void) wcwidth;
37301 #endif
37302
37303   ;
37304   return 0;
37305 }
37306 _ACEOF
37307 rm -f conftest.$ac_objext
37308 if { (ac_try="$ac_compile"
37309 case "(($ac_try" in
37310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37311   *) ac_try_echo=$ac_try;;
37312 esac
37313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37314   (eval "$ac_compile") 2>conftest.er1
37315   ac_status=$?
37316   grep -v '^ *+' conftest.er1 >conftest.err
37317   rm -f conftest.er1
37318   cat conftest.err >&5
37319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37320   (exit $ac_status); } && {
37321          test -z "$ac_c_werror_flag" ||
37322          test ! -s conftest.err
37323        } && test -s conftest.$ac_objext; then
37324   ac_cv_have_decl_wcwidth=yes
37325 else
37326   echo "$as_me: failed program was:" >&5
37327 sed 's/^/| /' conftest.$ac_ext >&5
37328
37329         ac_cv_have_decl_wcwidth=no
37330 fi
37331
37332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37333 fi
37334 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_wcwidth" >&5
37335 echo "${ECHO_T}$ac_cv_have_decl_wcwidth" >&6; }
37336 if test $ac_cv_have_decl_wcwidth = yes; then
37337
37338 cat >>confdefs.h <<_ACEOF
37339 #define HAVE_DECL_WCWIDTH 1
37340 _ACEOF
37341
37342
37343 else
37344   cat >>confdefs.h <<_ACEOF
37345 #define HAVE_DECL_WCWIDTH 0
37346 _ACEOF
37347
37348
37349 fi
37350
37351
37352   if test $ac_cv_have_decl_wcwidth != yes; then
37353     HAVE_DECL_WCWIDTH=0
37354   fi
37355
37356   if test $ac_cv_func_wcwidth = no; then
37357     REPLACE_WCWIDTH=1
37358   else
37359                 { echo "$as_me:$LINENO: checking whether wcwidth works reasonably in UTF-8 locales" >&5
37360 echo $ECHO_N "checking whether wcwidth works reasonably in UTF-8 locales... $ECHO_C" >&6; }
37361 if test "${gl_cv_func_wcwidth_works+set}" = set; then
37362   echo $ECHO_N "(cached) $ECHO_C" >&6
37363 else
37364
37365         if test "$cross_compiling" = yes; then
37366   gl_cv_func_wcwidth_works="guessing no"
37367 else
37368   cat >conftest.$ac_ext <<_ACEOF
37369 /* confdefs.h.  */
37370 _ACEOF
37371 cat confdefs.h >>conftest.$ac_ext
37372 cat >>conftest.$ac_ext <<_ACEOF
37373 /* end confdefs.h.  */
37374
37375 #include <locale.h>
37376 /* AIX 3.2.5 declares wcwidth in <string.h>. */
37377 #include <string.h>
37378 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
37379    <wchar.h>.
37380    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
37381    before <wchar.h>.  */
37382 #include <stddef.h>
37383 #include <stdio.h>
37384 #include <time.h>
37385 #include <wchar.h>
37386 #if !HAVE_DECL_WCWIDTH
37387 extern
37388 # ifdef __cplusplus
37389 "C"
37390 # endif
37391 int wcwidth (int);
37392 #endif
37393 int main ()
37394 {
37395   if (setlocale (LC_ALL, "fr_FR.UTF-8") != NULL)
37396     if (wcwidth (0x0301) > 0 || wcwidth (0x200B) > 0)
37397       return 1;
37398   return 0;
37399 }
37400 _ACEOF
37401 rm -f conftest$ac_exeext
37402 if { (ac_try="$ac_link"
37403 case "(($ac_try" in
37404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37405   *) ac_try_echo=$ac_try;;
37406 esac
37407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37408   (eval "$ac_link") 2>&5
37409   ac_status=$?
37410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37411   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
37412   { (case "(($ac_try" in
37413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37414   *) ac_try_echo=$ac_try;;
37415 esac
37416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37417   (eval "$ac_try") 2>&5
37418   ac_status=$?
37419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37420   (exit $ac_status); }; }; then
37421   gl_cv_func_wcwidth_works=yes
37422 else
37423   echo "$as_me: program exited with status $ac_status" >&5
37424 echo "$as_me: failed program was:" >&5
37425 sed 's/^/| /' conftest.$ac_ext >&5
37426
37427 ( exit $ac_status )
37428 gl_cv_func_wcwidth_works=no
37429 fi
37430 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
37431 fi
37432
37433
37434
37435 fi
37436 { echo "$as_me:$LINENO: result: $gl_cv_func_wcwidth_works" >&5
37437 echo "${ECHO_T}$gl_cv_func_wcwidth_works" >&6; }
37438     case "$gl_cv_func_wcwidth_works" in
37439       *yes) ;;
37440       *no) REPLACE_WCWIDTH=1 ;;
37441     esac
37442   fi
37443   if test $REPLACE_WCWIDTH = 1; then
37444
37445
37446
37447
37448
37449
37450
37451
37452   gl_LIBOBJS="$gl_LIBOBJS wcwidth.$ac_objext"
37453
37454   fi
37455
37456   if test $REPLACE_WCWIDTH = 1 || test $HAVE_DECL_WCWIDTH = 0; then
37457
37458
37459   WCHAR_H=wchar.h
37460
37461   fi
37462
37463
37464
37465   GNULIB_WCWIDTH=1
37466
37467
37468
37469
37470
37471
37472
37473   GNULIB_WRITE=1
37474
37475
37476
37477
37478
37479
37480
37481
37482
37483
37484   gl_LIBOBJS="$gl_LIBOBJS xmalloc.$ac_objext"
37485
37486
37487
37488
37489   :
37490
37491
37492   :
37493
37494
37495
37496
37497
37498
37499
37500
37501
37502
37503
37504   gl_LIBOBJS="$gl_LIBOBJS xgetcwd.$ac_objext"
37505
37506
37507
37508
37509
37510
37511
37512
37513 for ac_header in stdint.h
37514 do
37515 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37516 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
37517   { echo "$as_me:$LINENO: checking for $ac_header" >&5
37518 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
37519 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
37520   echo $ECHO_N "(cached) $ECHO_C" >&6
37521 fi
37522 ac_res=`eval echo '${'$as_ac_Header'}'`
37523                { echo "$as_me:$LINENO: result: $ac_res" >&5
37524 echo "${ECHO_T}$ac_res" >&6; }
37525 else
37526   # Is the header compilable?
37527 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
37528 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
37529 cat >conftest.$ac_ext <<_ACEOF
37530 /* confdefs.h.  */
37531 _ACEOF
37532 cat confdefs.h >>conftest.$ac_ext
37533 cat >>conftest.$ac_ext <<_ACEOF
37534 /* end confdefs.h.  */
37535 $ac_includes_default
37536 #include <$ac_header>
37537 _ACEOF
37538 rm -f conftest.$ac_objext
37539 if { (ac_try="$ac_compile"
37540 case "(($ac_try" in
37541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37542   *) ac_try_echo=$ac_try;;
37543 esac
37544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37545   (eval "$ac_compile") 2>conftest.er1
37546   ac_status=$?
37547   grep -v '^ *+' conftest.er1 >conftest.err
37548   rm -f conftest.er1
37549   cat conftest.err >&5
37550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37551   (exit $ac_status); } && {
37552          test -z "$ac_c_werror_flag" ||
37553          test ! -s conftest.err
37554        } && test -s conftest.$ac_objext; then
37555   ac_header_compiler=yes
37556 else
37557   echo "$as_me: failed program was:" >&5
37558 sed 's/^/| /' conftest.$ac_ext >&5
37559
37560         ac_header_compiler=no
37561 fi
37562
37563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37564 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37565 echo "${ECHO_T}$ac_header_compiler" >&6; }
37566
37567 # Is the header present?
37568 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
37569 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
37570 cat >conftest.$ac_ext <<_ACEOF
37571 /* confdefs.h.  */
37572 _ACEOF
37573 cat confdefs.h >>conftest.$ac_ext
37574 cat >>conftest.$ac_ext <<_ACEOF
37575 /* end confdefs.h.  */
37576 #include <$ac_header>
37577 _ACEOF
37578 if { (ac_try="$ac_cpp conftest.$ac_ext"
37579 case "(($ac_try" in
37580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37581   *) ac_try_echo=$ac_try;;
37582 esac
37583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37584   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
37585   ac_status=$?
37586   grep -v '^ *+' conftest.er1 >conftest.err
37587   rm -f conftest.er1
37588   cat conftest.err >&5
37589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37590   (exit $ac_status); } >/dev/null && {
37591          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
37592          test ! -s conftest.err
37593        }; then
37594   ac_header_preproc=yes
37595 else
37596   echo "$as_me: failed program was:" >&5
37597 sed 's/^/| /' conftest.$ac_ext >&5
37598
37599   ac_header_preproc=no
37600 fi
37601
37602 rm -f conftest.err conftest.$ac_ext
37603 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37604 echo "${ECHO_T}$ac_header_preproc" >&6; }
37605
37606 # So?  What about this header?
37607 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37608   yes:no: )
37609     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37610 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
37611     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37612 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37613     ac_header_preproc=yes
37614     ;;
37615   no:yes:* )
37616     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37617 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
37618     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
37619 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
37620     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37621 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37622     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
37623 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
37624     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37625 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37626     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37627 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
37628     ( cat <<\_ASBOX
37629 ## ------------------------------ ##
37630 ## Report this to bug-tar@gnu.org ##
37631 ## ------------------------------ ##
37632 _ASBOX
37633      ) | sed "s/^/$as_me: WARNING:     /" >&2
37634     ;;
37635 esac
37636 { echo "$as_me:$LINENO: checking for $ac_header" >&5
37637 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
37638 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
37639   echo $ECHO_N "(cached) $ECHO_C" >&6
37640 else
37641   eval "$as_ac_Header=\$ac_header_preproc"
37642 fi
37643 ac_res=`eval echo '${'$as_ac_Header'}'`
37644                { echo "$as_me:$LINENO: result: $ac_res" >&5
37645 echo "${ECHO_T}$ac_res" >&6; }
37646
37647 fi
37648 if test `eval echo '${'$as_ac_Header'}'` = yes; then
37649   cat >>confdefs.h <<_ACEOF
37650 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37651 _ACEOF
37652
37653 fi
37654
37655 done
37656
37657
37658
37659
37660   :
37661
37662
37663
37664
37665
37666
37667
37668
37669
37670
37671
37672   gl_LIBOBJS="$gl_LIBOBJS xstrtol.$ac_objext"
37673
37674
37675
37676
37677
37678
37679
37680
37681
37682   gl_LIBOBJS="$gl_LIBOBJS xstrtoul.$ac_objext"
37683
37684
37685
37686
37687
37688
37689
37690
37691
37692   gl_LIBOBJS="$gl_LIBOBJS xstrtol-error.$ac_objext"
37693
37694
37695
37696
37697
37698
37699
37700
37701
37702
37703
37704   gltests_libdeps=
37705   gltests_ltlibdeps=
37706
37707
37708
37709
37710
37711
37712
37713
37714
37715   gl_source_base='.#bootmp/tests'
37716
37717
37718
37719
37720
37721
37722
37723   LIBTAR_LIBDEPS="$gl_libdeps"
37724
37725   LIBTAR_LTLIBDEPS="$gl_ltlibdeps"
37726
37727
37728 # paxutils modules
37729
37730
37731
37732
37733
37734
37735
37736
37737 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
37738 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
37739 if test "${ac_cv_header_time+set}" = set; then
37740   echo $ECHO_N "(cached) $ECHO_C" >&6
37741 else
37742   cat >conftest.$ac_ext <<_ACEOF
37743 /* confdefs.h.  */
37744 _ACEOF
37745 cat confdefs.h >>conftest.$ac_ext
37746 cat >>conftest.$ac_ext <<_ACEOF
37747 /* end confdefs.h.  */
37748 #include <sys/types.h>
37749 #include <sys/time.h>
37750 #include <time.h>
37751
37752 int
37753 main ()
37754 {
37755 if ((struct tm *) 0)
37756 return 0;
37757   ;
37758   return 0;
37759 }
37760 _ACEOF
37761 rm -f conftest.$ac_objext
37762 if { (ac_try="$ac_compile"
37763 case "(($ac_try" in
37764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37765   *) ac_try_echo=$ac_try;;
37766 esac
37767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37768   (eval "$ac_compile") 2>conftest.er1
37769   ac_status=$?
37770   grep -v '^ *+' conftest.er1 >conftest.err
37771   rm -f conftest.er1
37772   cat conftest.err >&5
37773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37774   (exit $ac_status); } && {
37775          test -z "$ac_c_werror_flag" ||
37776          test ! -s conftest.err
37777        } && test -s conftest.$ac_objext; then
37778   ac_cv_header_time=yes
37779 else
37780   echo "$as_me: failed program was:" >&5
37781 sed 's/^/| /' conftest.$ac_ext >&5
37782
37783         ac_cv_header_time=no
37784 fi
37785
37786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37787 fi
37788 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
37789 echo "${ECHO_T}$ac_cv_header_time" >&6; }
37790 if test $ac_cv_header_time = yes; then
37791
37792 cat >>confdefs.h <<\_ACEOF
37793 #define TIME_WITH_SYS_TIME 1
37794 _ACEOF
37795
37796 fi
37797
37798 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
37799 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
37800 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
37801   echo $ECHO_N "(cached) $ECHO_C" >&6
37802 else
37803   cat >conftest.$ac_ext <<_ACEOF
37804 /* confdefs.h.  */
37805 _ACEOF
37806 cat confdefs.h >>conftest.$ac_ext
37807 cat >>conftest.$ac_ext <<_ACEOF
37808 /* end confdefs.h.  */
37809 $ac_includes_default
37810 int
37811 main ()
37812 {
37813 static struct stat ac_aggr;
37814 if (ac_aggr.st_blksize)
37815 return 0;
37816   ;
37817   return 0;
37818 }
37819 _ACEOF
37820 rm -f conftest.$ac_objext
37821 if { (ac_try="$ac_compile"
37822 case "(($ac_try" in
37823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37824   *) ac_try_echo=$ac_try;;
37825 esac
37826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37827   (eval "$ac_compile") 2>conftest.er1
37828   ac_status=$?
37829   grep -v '^ *+' conftest.er1 >conftest.err
37830   rm -f conftest.er1
37831   cat conftest.err >&5
37832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37833   (exit $ac_status); } && {
37834          test -z "$ac_c_werror_flag" ||
37835          test ! -s conftest.err
37836        } && test -s conftest.$ac_objext; then
37837   ac_cv_member_struct_stat_st_blksize=yes
37838 else
37839   echo "$as_me: failed program was:" >&5
37840 sed 's/^/| /' conftest.$ac_ext >&5
37841
37842         cat >conftest.$ac_ext <<_ACEOF
37843 /* confdefs.h.  */
37844 _ACEOF
37845 cat confdefs.h >>conftest.$ac_ext
37846 cat >>conftest.$ac_ext <<_ACEOF
37847 /* end confdefs.h.  */
37848 $ac_includes_default
37849 int
37850 main ()
37851 {
37852 static struct stat ac_aggr;
37853 if (sizeof ac_aggr.st_blksize)
37854 return 0;
37855   ;
37856   return 0;
37857 }
37858 _ACEOF
37859 rm -f conftest.$ac_objext
37860 if { (ac_try="$ac_compile"
37861 case "(($ac_try" in
37862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37863   *) ac_try_echo=$ac_try;;
37864 esac
37865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37866   (eval "$ac_compile") 2>conftest.er1
37867   ac_status=$?
37868   grep -v '^ *+' conftest.er1 >conftest.err
37869   rm -f conftest.er1
37870   cat conftest.err >&5
37871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37872   (exit $ac_status); } && {
37873          test -z "$ac_c_werror_flag" ||
37874          test ! -s conftest.err
37875        } && test -s conftest.$ac_objext; then
37876   ac_cv_member_struct_stat_st_blksize=yes
37877 else
37878   echo "$as_me: failed program was:" >&5
37879 sed 's/^/| /' conftest.$ac_ext >&5
37880
37881         ac_cv_member_struct_stat_st_blksize=no
37882 fi
37883
37884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37885 fi
37886
37887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37888 fi
37889 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
37890 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
37891 if test $ac_cv_member_struct_stat_st_blksize = yes; then
37892
37893 cat >>confdefs.h <<_ACEOF
37894 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
37895 _ACEOF
37896
37897
37898 cat >>confdefs.h <<\_ACEOF
37899 #define HAVE_ST_BLKSIZE 1
37900 _ACEOF
37901
37902 fi
37903
37904
37905
37906
37907
37908
37909
37910
37911   # Set LIB_SETSOCKOPT to -lnsl -lsocket if necessary.
37912   pu_save_LIBS=$LIBS
37913   LIB_SETSOCKOPT=
37914   { echo "$as_me:$LINENO: checking for library containing setsockopt" >&5
37915 echo $ECHO_N "checking for library containing setsockopt... $ECHO_C" >&6; }
37916 if test "${ac_cv_search_setsockopt+set}" = set; then
37917   echo $ECHO_N "(cached) $ECHO_C" >&6
37918 else
37919   ac_func_search_save_LIBS=$LIBS
37920 cat >conftest.$ac_ext <<_ACEOF
37921 /* confdefs.h.  */
37922 _ACEOF
37923 cat confdefs.h >>conftest.$ac_ext
37924 cat >>conftest.$ac_ext <<_ACEOF
37925 /* end confdefs.h.  */
37926
37927 /* Override any GCC internal prototype to avoid an error.
37928    Use char because int might match the return type of a GCC
37929    builtin and then its argument prototype would still apply.  */
37930 #ifdef __cplusplus
37931 extern "C"
37932 #endif
37933 char setsockopt ();
37934 int
37935 main ()
37936 {
37937 return setsockopt ();
37938   ;
37939   return 0;
37940 }
37941 _ACEOF
37942 for ac_lib in '' socket; do
37943   if test -z "$ac_lib"; then
37944     ac_res="none required"
37945   else
37946     ac_res=-l$ac_lib
37947     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
37948   fi
37949   rm -f conftest.$ac_objext conftest$ac_exeext
37950 if { (ac_try="$ac_link"
37951 case "(($ac_try" in
37952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37953   *) ac_try_echo=$ac_try;;
37954 esac
37955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37956   (eval "$ac_link") 2>conftest.er1
37957   ac_status=$?
37958   grep -v '^ *+' conftest.er1 >conftest.err
37959   rm -f conftest.er1
37960   cat conftest.err >&5
37961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37962   (exit $ac_status); } && {
37963          test -z "$ac_c_werror_flag" ||
37964          test ! -s conftest.err
37965        } && test -s conftest$ac_exeext &&
37966        $as_test_x conftest$ac_exeext; then
37967   ac_cv_search_setsockopt=$ac_res
37968 else
37969   echo "$as_me: failed program was:" >&5
37970 sed 's/^/| /' conftest.$ac_ext >&5
37971
37972
37973 fi
37974
37975 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37976       conftest$ac_exeext
37977   if test "${ac_cv_search_setsockopt+set}" = set; then
37978   break
37979 fi
37980 done
37981 if test "${ac_cv_search_setsockopt+set}" = set; then
37982   :
37983 else
37984   ac_cv_search_setsockopt=no
37985 fi
37986 rm conftest.$ac_ext
37987 LIBS=$ac_func_search_save_LIBS
37988 fi
37989 { echo "$as_me:$LINENO: result: $ac_cv_search_setsockopt" >&5
37990 echo "${ECHO_T}$ac_cv_search_setsockopt" >&6; }
37991 ac_res=$ac_cv_search_setsockopt
37992 if test "$ac_res" != no; then
37993   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
37994
37995 else
37996   { echo "$as_me:$LINENO: checking for library containing setsockopt" >&5
37997 echo $ECHO_N "checking for library containing setsockopt... $ECHO_C" >&6; }
37998 if test "${ac_cv_search_setsockopt+set}" = set; then
37999   echo $ECHO_N "(cached) $ECHO_C" >&6
38000 else
38001   ac_func_search_save_LIBS=$LIBS
38002 cat >conftest.$ac_ext <<_ACEOF
38003 /* confdefs.h.  */
38004 _ACEOF
38005 cat confdefs.h >>conftest.$ac_ext
38006 cat >>conftest.$ac_ext <<_ACEOF
38007 /* end confdefs.h.  */
38008
38009 /* Override any GCC internal prototype to avoid an error.
38010    Use char because int might match the return type of a GCC
38011    builtin and then its argument prototype would still apply.  */
38012 #ifdef __cplusplus
38013 extern "C"
38014 #endif
38015 char setsockopt ();
38016 int
38017 main ()
38018 {
38019 return setsockopt ();
38020   ;
38021   return 0;
38022 }
38023 _ACEOF
38024 for ac_lib in '' socket; do
38025   if test -z "$ac_lib"; then
38026     ac_res="none required"
38027   else
38028     ac_res=-l$ac_lib
38029     LIBS="-l$ac_lib -lnsl $ac_func_search_save_LIBS"
38030   fi
38031   rm -f conftest.$ac_objext conftest$ac_exeext
38032 if { (ac_try="$ac_link"
38033 case "(($ac_try" in
38034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38035   *) ac_try_echo=$ac_try;;
38036 esac
38037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38038   (eval "$ac_link") 2>conftest.er1
38039   ac_status=$?
38040   grep -v '^ *+' conftest.er1 >conftest.err
38041   rm -f conftest.er1
38042   cat conftest.err >&5
38043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38044   (exit $ac_status); } && {
38045          test -z "$ac_c_werror_flag" ||
38046          test ! -s conftest.err
38047        } && test -s conftest$ac_exeext &&
38048        $as_test_x conftest$ac_exeext; then
38049   ac_cv_search_setsockopt=$ac_res
38050 else
38051   echo "$as_me: failed program was:" >&5
38052 sed 's/^/| /' conftest.$ac_ext >&5
38053
38054
38055 fi
38056
38057 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38058       conftest$ac_exeext
38059   if test "${ac_cv_search_setsockopt+set}" = set; then
38060   break
38061 fi
38062 done
38063 if test "${ac_cv_search_setsockopt+set}" = set; then
38064   :
38065 else
38066   ac_cv_search_setsockopt=no
38067 fi
38068 rm conftest.$ac_ext
38069 LIBS=$ac_func_search_save_LIBS
38070 fi
38071 { echo "$as_me:$LINENO: result: $ac_cv_search_setsockopt" >&5
38072 echo "${ECHO_T}$ac_cv_search_setsockopt" >&6; }
38073 ac_res=$ac_cv_search_setsockopt
38074 if test "$ac_res" != no; then
38075   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
38076
38077 fi
38078
38079 fi
38080
38081   { echo "$as_me:$LINENO: checking for library containing setsockopt" >&5
38082 echo $ECHO_N "checking for library containing setsockopt... $ECHO_C" >&6; }
38083 if test "${ac_cv_search_setsockopt+set}" = set; then
38084   echo $ECHO_N "(cached) $ECHO_C" >&6
38085 else
38086   ac_func_search_save_LIBS=$LIBS
38087 cat >conftest.$ac_ext <<_ACEOF
38088 /* confdefs.h.  */
38089 _ACEOF
38090 cat confdefs.h >>conftest.$ac_ext
38091 cat >>conftest.$ac_ext <<_ACEOF
38092 /* end confdefs.h.  */
38093
38094 /* Override any GCC internal prototype to avoid an error.
38095    Use char because int might match the return type of a GCC
38096    builtin and then its argument prototype would still apply.  */
38097 #ifdef __cplusplus
38098 extern "C"
38099 #endif
38100 char setsockopt ();
38101 int
38102 main ()
38103 {
38104 return setsockopt ();
38105   ;
38106   return 0;
38107 }
38108 _ACEOF
38109 for ac_lib in '' nsl; do
38110   if test -z "$ac_lib"; then
38111     ac_res="none required"
38112   else
38113     ac_res=-l$ac_lib
38114     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
38115   fi
38116   rm -f conftest.$ac_objext conftest$ac_exeext
38117 if { (ac_try="$ac_link"
38118 case "(($ac_try" in
38119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38120   *) ac_try_echo=$ac_try;;
38121 esac
38122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38123   (eval "$ac_link") 2>conftest.er1
38124   ac_status=$?
38125   grep -v '^ *+' conftest.er1 >conftest.err
38126   rm -f conftest.er1
38127   cat conftest.err >&5
38128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38129   (exit $ac_status); } && {
38130          test -z "$ac_c_werror_flag" ||
38131          test ! -s conftest.err
38132        } && test -s conftest$ac_exeext &&
38133        $as_test_x conftest$ac_exeext; then
38134   ac_cv_search_setsockopt=$ac_res
38135 else
38136   echo "$as_me: failed program was:" >&5
38137 sed 's/^/| /' conftest.$ac_ext >&5
38138
38139
38140 fi
38141
38142 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38143       conftest$ac_exeext
38144   if test "${ac_cv_search_setsockopt+set}" = set; then
38145   break
38146 fi
38147 done
38148 if test "${ac_cv_search_setsockopt+set}" = set; then
38149   :
38150 else
38151   ac_cv_search_setsockopt=no
38152 fi
38153 rm conftest.$ac_ext
38154 LIBS=$ac_func_search_save_LIBS
38155 fi
38156 { echo "$as_me:$LINENO: result: $ac_cv_search_setsockopt" >&5
38157 echo "${ECHO_T}$ac_cv_search_setsockopt" >&6; }
38158 ac_res=$ac_cv_search_setsockopt
38159 if test "$ac_res" != no; then
38160   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
38161
38162 fi
38163
38164
38165   case "$ac_cv_search_setsockopt" in
38166     -l*) LIB_SETSOCKOPT=$ac_cv_search_setsockopt
38167   esac
38168
38169   LIBS=$pu_save_LIBS
38170
38171   enable_rmt() {
38172     if test $ac_cv_header_sys_mtio_h = yes; then
38173       { echo "$as_me:$LINENO: checking for remote tape header files" >&5
38174 echo $ECHO_N "checking for remote tape header files... $ECHO_C" >&6; }
38175 if test "${pu_cv_header_rmt+set}" = set; then
38176   echo $ECHO_N "(cached) $ECHO_C" >&6
38177 else
38178   cat >conftest.$ac_ext <<_ACEOF
38179 /* confdefs.h.  */
38180 _ACEOF
38181 cat confdefs.h >>conftest.$ac_ext
38182 cat >>conftest.$ac_ext <<_ACEOF
38183 /* end confdefs.h.  */
38184
38185 #if HAVE_SGTTY_H
38186 # include <sgtty.h>
38187 #endif
38188 #include <sys/socket.h>
38189 _ACEOF
38190 if { (ac_try="$ac_cpp conftest.$ac_ext"
38191 case "(($ac_try" in
38192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38193   *) ac_try_echo=$ac_try;;
38194 esac
38195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38196   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
38197   ac_status=$?
38198   grep -v '^ *+' conftest.er1 >conftest.err
38199   rm -f conftest.er1
38200   cat conftest.err >&5
38201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38202   (exit $ac_status); } >/dev/null && {
38203          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
38204          test ! -s conftest.err
38205        }; then
38206   pu_cv_header_rmt=yes
38207 else
38208   echo "$as_me: failed program was:" >&5
38209 sed 's/^/| /' conftest.$ac_ext >&5
38210
38211   pu_cv_header_rmt=no
38212 fi
38213
38214 rm -f conftest.err conftest.$ac_ext
38215 fi
38216 { echo "$as_me:$LINENO: result: $pu_cv_header_rmt" >&5
38217 echo "${ECHO_T}$pu_cv_header_rmt" >&6; }
38218       test $pu_cv_header_rmt = yes && PU_RMT_PROG='rmt$(EXEEXT)'
38219
38220     fi
38221   }
38222
38223
38224 for ac_header in sys/mtio.h
38225 do
38226 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38227 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
38228   { echo "$as_me:$LINENO: checking for $ac_header" >&5
38229 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
38230 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
38231   echo $ECHO_N "(cached) $ECHO_C" >&6
38232 fi
38233 ac_res=`eval echo '${'$as_ac_Header'}'`
38234                { echo "$as_me:$LINENO: result: $ac_res" >&5
38235 echo "${ECHO_T}$ac_res" >&6; }
38236 else
38237   # Is the header compilable?
38238 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
38239 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
38240 cat >conftest.$ac_ext <<_ACEOF
38241 /* confdefs.h.  */
38242 _ACEOF
38243 cat confdefs.h >>conftest.$ac_ext
38244 cat >>conftest.$ac_ext <<_ACEOF
38245 /* end confdefs.h.  */
38246 $ac_includes_default
38247 #include <$ac_header>
38248 _ACEOF
38249 rm -f conftest.$ac_objext
38250 if { (ac_try="$ac_compile"
38251 case "(($ac_try" in
38252   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38253   *) ac_try_echo=$ac_try;;
38254 esac
38255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38256   (eval "$ac_compile") 2>conftest.er1
38257   ac_status=$?
38258   grep -v '^ *+' conftest.er1 >conftest.err
38259   rm -f conftest.er1
38260   cat conftest.err >&5
38261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38262   (exit $ac_status); } && {
38263          test -z "$ac_c_werror_flag" ||
38264          test ! -s conftest.err
38265        } && test -s conftest.$ac_objext; then
38266   ac_header_compiler=yes
38267 else
38268   echo "$as_me: failed program was:" >&5
38269 sed 's/^/| /' conftest.$ac_ext >&5
38270
38271         ac_header_compiler=no
38272 fi
38273
38274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38275 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38276 echo "${ECHO_T}$ac_header_compiler" >&6; }
38277
38278 # Is the header present?
38279 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
38280 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
38281 cat >conftest.$ac_ext <<_ACEOF
38282 /* confdefs.h.  */
38283 _ACEOF
38284 cat confdefs.h >>conftest.$ac_ext
38285 cat >>conftest.$ac_ext <<_ACEOF
38286 /* end confdefs.h.  */
38287 #include <$ac_header>
38288 _ACEOF
38289 if { (ac_try="$ac_cpp conftest.$ac_ext"
38290 case "(($ac_try" in
38291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38292   *) ac_try_echo=$ac_try;;
38293 esac
38294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38295   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
38296   ac_status=$?
38297   grep -v '^ *+' conftest.er1 >conftest.err
38298   rm -f conftest.er1
38299   cat conftest.err >&5
38300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38301   (exit $ac_status); } >/dev/null && {
38302          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
38303          test ! -s conftest.err
38304        }; then
38305   ac_header_preproc=yes
38306 else
38307   echo "$as_me: failed program was:" >&5
38308 sed 's/^/| /' conftest.$ac_ext >&5
38309
38310   ac_header_preproc=no
38311 fi
38312
38313 rm -f conftest.err conftest.$ac_ext
38314 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38315 echo "${ECHO_T}$ac_header_preproc" >&6; }
38316
38317 # So?  What about this header?
38318 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38319   yes:no: )
38320     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38321 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
38322     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38323 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38324     ac_header_preproc=yes
38325     ;;
38326   no:yes:* )
38327     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38328 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
38329     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
38330 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
38331     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38332 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38333     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
38334 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
38335     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38336 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
38337     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38338 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
38339     ( cat <<\_ASBOX
38340 ## ------------------------------ ##
38341 ## Report this to bug-tar@gnu.org ##
38342 ## ------------------------------ ##
38343 _ASBOX
38344      ) | sed "s/^/$as_me: WARNING:     /" >&2
38345     ;;
38346 esac
38347 { echo "$as_me:$LINENO: checking for $ac_header" >&5
38348 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
38349 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
38350   echo $ECHO_N "(cached) $ECHO_C" >&6
38351 else
38352   eval "$as_ac_Header=\$ac_header_preproc"
38353 fi
38354 ac_res=`eval echo '${'$as_ac_Header'}'`
38355                { echo "$as_me:$LINENO: result: $ac_res" >&5
38356 echo "${ECHO_T}$ac_res" >&6; }
38357
38358 fi
38359 if test `eval echo '${'$as_ac_Header'}'` = yes; then
38360   cat >>confdefs.h <<_ACEOF
38361 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38362 _ACEOF
38363
38364 fi
38365
38366 done
38367
38368   { echo "$as_me:$LINENO: checking which ioctl field to test for reversed bytes" >&5
38369 echo $ECHO_N "checking which ioctl field to test for reversed bytes... $ECHO_C" >&6; }
38370 if test "${pu_cv_header_mtio_check_field+set}" = set; then
38371   echo $ECHO_N "(cached) $ECHO_C" >&6
38372 else
38373   cat >conftest.$ac_ext <<_ACEOF
38374 /* confdefs.h.  */
38375 _ACEOF
38376 cat confdefs.h >>conftest.$ac_ext
38377 cat >>conftest.$ac_ext <<_ACEOF
38378 /* end confdefs.h.  */
38379 #include <sys/mtio.h>
38380
38381 _ACEOF
38382 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38383   $EGREP "mt_model" >/dev/null 2>&1; then
38384   pu_cv_header_mtio_check_field=mt_model
38385 else
38386   pu_cv_header_mtio_check_field=mt_type
38387 fi
38388 rm -f conftest*
38389
38390 fi
38391 { echo "$as_me:$LINENO: result: $pu_cv_header_mtio_check_field" >&5
38392 echo "${ECHO_T}$pu_cv_header_mtio_check_field" >&6; }
38393
38394 cat >>confdefs.h <<_ACEOF
38395 #define MTIO_CHECK_FIELD $pu_cv_header_mtio_check_field
38396 _ACEOF
38397
38398
38399
38400
38401   if test "x$DEFAULT_RMT_DIR" != x; then
38402         DEFAULT_RMT_COMMAND=$DEFAULT_RMT_DIR/rmt
38403   else
38404         DEFAULT_RMT_DIR='$(libexecdir)'
38405   fi
38406
38407   { echo "$as_me:$LINENO: checking whether to build rmt" >&5
38408 echo $ECHO_N "checking whether to build rmt... $ECHO_C" >&6; }
38409
38410 # Check whether --with-rmt was given.
38411 if test "${with_rmt+set}" = set; then
38412   withval=$with_rmt; case $withval in
38413                yes|no) { { echo "$as_me:$LINENO: error: Invalid argument to --with-rmt" >&5
38414 echo "$as_me: error: Invalid argument to --with-rmt" >&2;}
38415    { (exit 1); exit 1; }; };;
38416                /*)     DEFAULT_RMT_COMMAND=$withval
38417                        { echo "$as_me:$LINENO: result: no, use $withval instead" >&5
38418 echo "${ECHO_T}no, use $withval instead" >&6; };;
38419                *)      { { echo "$as_me:$LINENO: error: Argument to --with-rmt must be an absolute file name" >&5
38420 echo "$as_me: error: Argument to --with-rmt must be an absolute file name" >&2;}
38421    { (exit 1); exit 1; }; };;
38422                esac
38423 else
38424   { echo "$as_me:$LINENO: result: yes" >&5
38425 echo "${ECHO_T}yes" >&6; }
38426                 enable_rmt
38427                 if test "$PU_RMT_PROG" = ""; then
38428                   { echo "$as_me:$LINENO: WARNING: not building rmt, required header files are missing" >&5
38429 echo "$as_me: WARNING: not building rmt, required header files are missing" >&2;}
38430                 fi
38431 fi
38432
38433
38434
38435   if test "x$DEFAULT_RMT_COMMAND" != x; then
38436
38437 cat >>confdefs.h <<_ACEOF
38438 #define DEFAULT_RMT_COMMAND "$DEFAULT_RMT_COMMAND"
38439 _ACEOF
38440
38441   fi
38442
38443
38444
38445
38446
38447
38448
38449
38450
38451
38452
38453
38454
38455
38456
38457
38458
38459
38460
38461
38462
38463
38464
38465
38466
38467
38468
38469
38470
38471
38472
38473
38474
38475
38476
38477
38478
38479
38480
38481
38482
38483
38484
38485
38486
38487
38488
38489
38490
38491
38492
38493
38494 for ac_header in sys/buf.h
38495 do
38496 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38497 { echo "$as_me:$LINENO: checking for $ac_header" >&5
38498 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
38499 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
38500   echo $ECHO_N "(cached) $ECHO_C" >&6
38501 else
38502   cat >conftest.$ac_ext <<_ACEOF
38503 /* confdefs.h.  */
38504 _ACEOF
38505 cat confdefs.h >>conftest.$ac_ext
38506 cat >>conftest.$ac_ext <<_ACEOF
38507 /* end confdefs.h.  */
38508 #if HAVE_SYS_PARAM_H
38509 #include <sys/param.h>
38510 #endif
38511
38512 #include <$ac_header>
38513 _ACEOF
38514 rm -f conftest.$ac_objext
38515 if { (ac_try="$ac_compile"
38516 case "(($ac_try" in
38517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38518   *) ac_try_echo=$ac_try;;
38519 esac
38520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38521   (eval "$ac_compile") 2>conftest.er1
38522   ac_status=$?
38523   grep -v '^ *+' conftest.er1 >conftest.err
38524   rm -f conftest.er1
38525   cat conftest.err >&5
38526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38527   (exit $ac_status); } && {
38528          test -z "$ac_c_werror_flag" ||
38529          test ! -s conftest.err
38530        } && test -s conftest.$ac_objext; then
38531   eval "$as_ac_Header=yes"
38532 else
38533   echo "$as_me: failed program was:" >&5
38534 sed 's/^/| /' conftest.$ac_ext >&5
38535
38536         eval "$as_ac_Header=no"
38537 fi
38538
38539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38540 fi
38541 ac_res=`eval echo '${'$as_ac_Header'}'`
38542                { echo "$as_me:$LINENO: result: $ac_res" >&5
38543 echo "${ECHO_T}$ac_res" >&6; }
38544 if test `eval echo '${'$as_ac_Header'}'` = yes; then
38545   cat >>confdefs.h <<_ACEOF
38546 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38547 _ACEOF
38548
38549 fi
38550
38551 done
38552
38553
38554
38555
38556   { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
38557 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
38558 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
38559   echo $ECHO_N "(cached) $ECHO_C" >&6
38560 else
38561   cat >conftest.$ac_ext <<_ACEOF
38562 /* confdefs.h.  */
38563 _ACEOF
38564 cat confdefs.h >>conftest.$ac_ext
38565 cat >>conftest.$ac_ext <<_ACEOF
38566 /* end confdefs.h.  */
38567 $ac_includes_default
38568 int
38569 main ()
38570 {
38571 static struct stat ac_aggr;
38572 if (ac_aggr.st_blksize)
38573 return 0;
38574   ;
38575   return 0;
38576 }
38577 _ACEOF
38578 rm -f conftest.$ac_objext
38579 if { (ac_try="$ac_compile"
38580 case "(($ac_try" in
38581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38582   *) ac_try_echo=$ac_try;;
38583 esac
38584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38585   (eval "$ac_compile") 2>conftest.er1
38586   ac_status=$?
38587   grep -v '^ *+' conftest.er1 >conftest.err
38588   rm -f conftest.er1
38589   cat conftest.err >&5
38590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38591   (exit $ac_status); } && {
38592          test -z "$ac_c_werror_flag" ||
38593          test ! -s conftest.err
38594        } && test -s conftest.$ac_objext; then
38595   ac_cv_member_struct_stat_st_blksize=yes
38596 else
38597   echo "$as_me: failed program was:" >&5
38598 sed 's/^/| /' conftest.$ac_ext >&5
38599
38600         cat >conftest.$ac_ext <<_ACEOF
38601 /* confdefs.h.  */
38602 _ACEOF
38603 cat confdefs.h >>conftest.$ac_ext
38604 cat >>conftest.$ac_ext <<_ACEOF
38605 /* end confdefs.h.  */
38606 $ac_includes_default
38607 int
38608 main ()
38609 {
38610 static struct stat ac_aggr;
38611 if (sizeof ac_aggr.st_blksize)
38612 return 0;
38613   ;
38614   return 0;
38615 }
38616 _ACEOF
38617 rm -f conftest.$ac_objext
38618 if { (ac_try="$ac_compile"
38619 case "(($ac_try" in
38620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38621   *) ac_try_echo=$ac_try;;
38622 esac
38623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38624   (eval "$ac_compile") 2>conftest.er1
38625   ac_status=$?
38626   grep -v '^ *+' conftest.er1 >conftest.err
38627   rm -f conftest.er1
38628   cat conftest.err >&5
38629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38630   (exit $ac_status); } && {
38631          test -z "$ac_c_werror_flag" ||
38632          test ! -s conftest.err
38633        } && test -s conftest.$ac_objext; then
38634   ac_cv_member_struct_stat_st_blksize=yes
38635 else
38636   echo "$as_me: failed program was:" >&5
38637 sed 's/^/| /' conftest.$ac_ext >&5
38638
38639         ac_cv_member_struct_stat_st_blksize=no
38640 fi
38641
38642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38643 fi
38644
38645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38646 fi
38647 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
38648 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
38649 if test $ac_cv_member_struct_stat_st_blksize = yes; then
38650
38651 cat >>confdefs.h <<_ACEOF
38652 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
38653 _ACEOF
38654
38655
38656 fi
38657
38658
38659
38660
38661
38662
38663
38664
38665
38666
38667
38668
38669
38670
38671
38672
38673
38674
38675
38676
38677
38678
38679
38680
38681
38682
38683 for ac_func in fsync getdtablesize lstat mkfifo readlink symlink setlocale utimes
38684 do
38685 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38686 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38687 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38688 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38689   echo $ECHO_N "(cached) $ECHO_C" >&6
38690 else
38691   cat >conftest.$ac_ext <<_ACEOF
38692 /* confdefs.h.  */
38693 _ACEOF
38694 cat confdefs.h >>conftest.$ac_ext
38695 cat >>conftest.$ac_ext <<_ACEOF
38696 /* end confdefs.h.  */
38697 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38698    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38699 #define $ac_func innocuous_$ac_func
38700
38701 /* System header to define __stub macros and hopefully few prototypes,
38702     which can conflict with char $ac_func (); below.
38703     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38704     <limits.h> exists even on freestanding compilers.  */
38705
38706 #ifdef __STDC__
38707 # include <limits.h>
38708 #else
38709 # include <assert.h>
38710 #endif
38711
38712 #undef $ac_func
38713
38714 /* Override any GCC internal prototype to avoid an error.
38715    Use char because int might match the return type of a GCC
38716    builtin and then its argument prototype would still apply.  */
38717 #ifdef __cplusplus
38718 extern "C"
38719 #endif
38720 char $ac_func ();
38721 /* The GNU C library defines this for functions which it implements
38722     to always fail with ENOSYS.  Some functions are actually named
38723     something starting with __ and the normal name is an alias.  */
38724 #if defined __stub_$ac_func || defined __stub___$ac_func
38725 choke me
38726 #endif
38727
38728 int
38729 main ()
38730 {
38731 return $ac_func ();
38732   ;
38733   return 0;
38734 }
38735 _ACEOF
38736 rm -f conftest.$ac_objext conftest$ac_exeext
38737 if { (ac_try="$ac_link"
38738 case "(($ac_try" in
38739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38740   *) ac_try_echo=$ac_try;;
38741 esac
38742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38743   (eval "$ac_link") 2>conftest.er1
38744   ac_status=$?
38745   grep -v '^ *+' conftest.er1 >conftest.err
38746   rm -f conftest.er1
38747   cat conftest.err >&5
38748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38749   (exit $ac_status); } && {
38750          test -z "$ac_c_werror_flag" ||
38751          test ! -s conftest.err
38752        } && test -s conftest$ac_exeext &&
38753        $as_test_x conftest$ac_exeext; then
38754   eval "$as_ac_var=yes"
38755 else
38756   echo "$as_me: failed program was:" >&5
38757 sed 's/^/| /' conftest.$ac_ext >&5
38758
38759         eval "$as_ac_var=no"
38760 fi
38761
38762 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38763       conftest$ac_exeext conftest.$ac_ext
38764 fi
38765 ac_res=`eval echo '${'$as_ac_var'}'`
38766                { echo "$as_me:$LINENO: result: $ac_res" >&5
38767 echo "${ECHO_T}$ac_res" >&6; }
38768 if test `eval echo '${'$as_ac_var'}'` = yes; then
38769   cat >>confdefs.h <<_ACEOF
38770 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38771 _ACEOF
38772
38773 fi
38774 done
38775
38776 { echo "$as_me:$LINENO: checking whether getgrgid is declared" >&5
38777 echo $ECHO_N "checking whether getgrgid is declared... $ECHO_C" >&6; }
38778 if test "${ac_cv_have_decl_getgrgid+set}" = set; then
38779   echo $ECHO_N "(cached) $ECHO_C" >&6
38780 else
38781   cat >conftest.$ac_ext <<_ACEOF
38782 /* confdefs.h.  */
38783 _ACEOF
38784 cat confdefs.h >>conftest.$ac_ext
38785 cat >>conftest.$ac_ext <<_ACEOF
38786 /* end confdefs.h.  */
38787 #include <grp.h>
38788
38789 int
38790 main ()
38791 {
38792 #ifndef getgrgid
38793   (void) getgrgid;
38794 #endif
38795
38796   ;
38797   return 0;
38798 }
38799 _ACEOF
38800 rm -f conftest.$ac_objext
38801 if { (ac_try="$ac_compile"
38802 case "(($ac_try" in
38803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38804   *) ac_try_echo=$ac_try;;
38805 esac
38806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38807   (eval "$ac_compile") 2>conftest.er1
38808   ac_status=$?
38809   grep -v '^ *+' conftest.er1 >conftest.err
38810   rm -f conftest.er1
38811   cat conftest.err >&5
38812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38813   (exit $ac_status); } && {
38814          test -z "$ac_c_werror_flag" ||
38815          test ! -s conftest.err
38816        } && test -s conftest.$ac_objext; then
38817   ac_cv_have_decl_getgrgid=yes
38818 else
38819   echo "$as_me: failed program was:" >&5
38820 sed 's/^/| /' conftest.$ac_ext >&5
38821
38822         ac_cv_have_decl_getgrgid=no
38823 fi
38824
38825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38826 fi
38827 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getgrgid" >&5
38828 echo "${ECHO_T}$ac_cv_have_decl_getgrgid" >&6; }
38829 if test $ac_cv_have_decl_getgrgid = yes; then
38830
38831 cat >>confdefs.h <<_ACEOF
38832 #define HAVE_DECL_GETGRGID 1
38833 _ACEOF
38834
38835
38836 else
38837   cat >>confdefs.h <<_ACEOF
38838 #define HAVE_DECL_GETGRGID 0
38839 _ACEOF
38840
38841
38842 fi
38843
38844
38845 { echo "$as_me:$LINENO: checking whether getpwuid is declared" >&5
38846 echo $ECHO_N "checking whether getpwuid is declared... $ECHO_C" >&6; }
38847 if test "${ac_cv_have_decl_getpwuid+set}" = set; then
38848   echo $ECHO_N "(cached) $ECHO_C" >&6
38849 else
38850   cat >conftest.$ac_ext <<_ACEOF
38851 /* confdefs.h.  */
38852 _ACEOF
38853 cat confdefs.h >>conftest.$ac_ext
38854 cat >>conftest.$ac_ext <<_ACEOF
38855 /* end confdefs.h.  */
38856 #include <pwd.h>
38857
38858 int
38859 main ()
38860 {
38861 #ifndef getpwuid
38862   (void) getpwuid;
38863 #endif
38864
38865   ;
38866   return 0;
38867 }
38868 _ACEOF
38869 rm -f conftest.$ac_objext
38870 if { (ac_try="$ac_compile"
38871 case "(($ac_try" in
38872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38873   *) ac_try_echo=$ac_try;;
38874 esac
38875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38876   (eval "$ac_compile") 2>conftest.er1
38877   ac_status=$?
38878   grep -v '^ *+' conftest.er1 >conftest.err
38879   rm -f conftest.er1
38880   cat conftest.err >&5
38881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38882   (exit $ac_status); } && {
38883          test -z "$ac_c_werror_flag" ||
38884          test ! -s conftest.err
38885        } && test -s conftest.$ac_objext; then
38886   ac_cv_have_decl_getpwuid=yes
38887 else
38888   echo "$as_me: failed program was:" >&5
38889 sed 's/^/| /' conftest.$ac_ext >&5
38890
38891         ac_cv_have_decl_getpwuid=no
38892 fi
38893
38894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38895 fi
38896 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getpwuid" >&5
38897 echo "${ECHO_T}$ac_cv_have_decl_getpwuid" >&6; }
38898 if test $ac_cv_have_decl_getpwuid = yes; then
38899
38900 cat >>confdefs.h <<_ACEOF
38901 #define HAVE_DECL_GETPWUID 1
38902 _ACEOF
38903
38904
38905 else
38906   cat >>confdefs.h <<_ACEOF
38907 #define HAVE_DECL_GETPWUID 0
38908 _ACEOF
38909
38910
38911 fi
38912
38913
38914 { echo "$as_me:$LINENO: checking whether time is declared" >&5
38915 echo $ECHO_N "checking whether time is declared... $ECHO_C" >&6; }
38916 if test "${ac_cv_have_decl_time+set}" = set; then
38917   echo $ECHO_N "(cached) $ECHO_C" >&6
38918 else
38919   cat >conftest.$ac_ext <<_ACEOF
38920 /* confdefs.h.  */
38921 _ACEOF
38922 cat confdefs.h >>conftest.$ac_ext
38923 cat >>conftest.$ac_ext <<_ACEOF
38924 /* end confdefs.h.  */
38925 #include <time.h>
38926
38927 int
38928 main ()
38929 {
38930 #ifndef time
38931   (void) time;
38932 #endif
38933
38934   ;
38935   return 0;
38936 }
38937 _ACEOF
38938 rm -f conftest.$ac_objext
38939 if { (ac_try="$ac_compile"
38940 case "(($ac_try" in
38941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38942   *) ac_try_echo=$ac_try;;
38943 esac
38944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38945   (eval "$ac_compile") 2>conftest.er1
38946   ac_status=$?
38947   grep -v '^ *+' conftest.er1 >conftest.err
38948   rm -f conftest.er1
38949   cat conftest.err >&5
38950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38951   (exit $ac_status); } && {
38952          test -z "$ac_c_werror_flag" ||
38953          test ! -s conftest.err
38954        } && test -s conftest.$ac_objext; then
38955   ac_cv_have_decl_time=yes
38956 else
38957   echo "$as_me: failed program was:" >&5
38958 sed 's/^/| /' conftest.$ac_ext >&5
38959
38960         ac_cv_have_decl_time=no
38961 fi
38962
38963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38964 fi
38965 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_time" >&5
38966 echo "${ECHO_T}$ac_cv_have_decl_time" >&6; }
38967 if test $ac_cv_have_decl_time = yes; then
38968
38969 cat >>confdefs.h <<_ACEOF
38970 #define HAVE_DECL_TIME 1
38971 _ACEOF
38972
38973
38974 else
38975   cat >>confdefs.h <<_ACEOF
38976 #define HAVE_DECL_TIME 0
38977 _ACEOF
38978
38979
38980 fi
38981
38982
38983
38984
38985 for ac_func in waitpid
38986 do
38987 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38988 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38989 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38990 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38991   echo $ECHO_N "(cached) $ECHO_C" >&6
38992 else
38993   cat >conftest.$ac_ext <<_ACEOF
38994 /* confdefs.h.  */
38995 _ACEOF
38996 cat confdefs.h >>conftest.$ac_ext
38997 cat >>conftest.$ac_ext <<_ACEOF
38998 /* end confdefs.h.  */
38999 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39000    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39001 #define $ac_func innocuous_$ac_func
39002
39003 /* System header to define __stub macros and hopefully few prototypes,
39004     which can conflict with char $ac_func (); below.
39005     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39006     <limits.h> exists even on freestanding compilers.  */
39007
39008 #ifdef __STDC__
39009 # include <limits.h>
39010 #else
39011 # include <assert.h>
39012 #endif
39013
39014 #undef $ac_func
39015
39016 /* Override any GCC internal prototype to avoid an error.
39017    Use char because int might match the return type of a GCC
39018    builtin and then its argument prototype would still apply.  */
39019 #ifdef __cplusplus
39020 extern "C"
39021 #endif
39022 char $ac_func ();
39023 /* The GNU C library defines this for functions which it implements
39024     to always fail with ENOSYS.  Some functions are actually named
39025     something starting with __ and the normal name is an alias.  */
39026 #if defined __stub_$ac_func || defined __stub___$ac_func
39027 choke me
39028 #endif
39029
39030 int
39031 main ()
39032 {
39033 return $ac_func ();
39034   ;
39035   return 0;
39036 }
39037 _ACEOF
39038 rm -f conftest.$ac_objext conftest$ac_exeext
39039 if { (ac_try="$ac_link"
39040 case "(($ac_try" in
39041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39042   *) ac_try_echo=$ac_try;;
39043 esac
39044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39045   (eval "$ac_link") 2>conftest.er1
39046   ac_status=$?
39047   grep -v '^ *+' conftest.er1 >conftest.err
39048   rm -f conftest.er1
39049   cat conftest.err >&5
39050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39051   (exit $ac_status); } && {
39052          test -z "$ac_c_werror_flag" ||
39053          test ! -s conftest.err
39054        } && test -s conftest$ac_exeext &&
39055        $as_test_x conftest$ac_exeext; then
39056   eval "$as_ac_var=yes"
39057 else
39058   echo "$as_me: failed program was:" >&5
39059 sed 's/^/| /' conftest.$ac_ext >&5
39060
39061         eval "$as_ac_var=no"
39062 fi
39063
39064 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39065       conftest$ac_exeext conftest.$ac_ext
39066 fi
39067 ac_res=`eval echo '${'$as_ac_var'}'`
39068                { echo "$as_me:$LINENO: result: $ac_res" >&5
39069 echo "${ECHO_T}$ac_res" >&6; }
39070 if test `eval echo '${'$as_ac_var'}'` = yes; then
39071   cat >>confdefs.h <<_ACEOF
39072 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39073 _ACEOF
39074
39075 else
39076   case " $LIBOBJS " in
39077   *" $ac_func.$ac_objext "* ) ;;
39078   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
39079  ;;
39080 esac
39081
39082 fi
39083 done
39084
39085
39086
39087 { echo "$as_me:$LINENO: checking for remote shell" >&5
39088 echo $ECHO_N "checking for remote shell... $ECHO_C" >&6; }
39089 if test "${tar_cv_path_RSH+set}" = set; then
39090   echo $ECHO_N "(cached) $ECHO_C" >&6
39091 else
39092   if test -n "$RSH"; then
39093     tar_cv_path_RSH=$RSH
39094   else
39095     tar_cv_path_RSH=no
39096     for ac_file in /usr/ucb/rsh /usr/bin/remsh /usr/bin/rsh /usr/bsd/rsh \
39097         /usr/bin/nsh /usr/bin/rcmd
39098     do
39099       # Prefer a non-symlink rsh to a symlink one, so that binaries built
39100       # on AIX 4.1.4, where /usr/ucb/rsh is a symlink to /usr/bin/rsh
39101       # will run on AIX 4.3.0, which has only /usr/bin/rsh.
39102       if test -f $ac_file; then
39103         if (test -h $ac_file) 2>/dev/null; then
39104           test $tar_cv_path_RSH = no && tar_cv_path_RSH=$ac_file
39105         else
39106           tar_cv_path_RSH=$ac_file
39107           break
39108         fi
39109       fi
39110     done
39111   fi
39112 fi
39113 { echo "$as_me:$LINENO: result: $tar_cv_path_RSH" >&5
39114 echo "${ECHO_T}$tar_cv_path_RSH" >&6; }
39115 if test $tar_cv_path_RSH = no; then
39116
39117 for ac_header in netdb.h
39118 do
39119 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
39120 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
39121   { echo "$as_me:$LINENO: checking for $ac_header" >&5
39122 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
39123 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
39124   echo $ECHO_N "(cached) $ECHO_C" >&6
39125 fi
39126 ac_res=`eval echo '${'$as_ac_Header'}'`
39127                { echo "$as_me:$LINENO: result: $ac_res" >&5
39128 echo "${ECHO_T}$ac_res" >&6; }
39129 else
39130   # Is the header compilable?
39131 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
39132 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
39133 cat >conftest.$ac_ext <<_ACEOF
39134 /* confdefs.h.  */
39135 _ACEOF
39136 cat confdefs.h >>conftest.$ac_ext
39137 cat >>conftest.$ac_ext <<_ACEOF
39138 /* end confdefs.h.  */
39139 $ac_includes_default
39140 #include <$ac_header>
39141 _ACEOF
39142 rm -f conftest.$ac_objext
39143 if { (ac_try="$ac_compile"
39144 case "(($ac_try" in
39145   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39146   *) ac_try_echo=$ac_try;;
39147 esac
39148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39149   (eval "$ac_compile") 2>conftest.er1
39150   ac_status=$?
39151   grep -v '^ *+' conftest.er1 >conftest.err
39152   rm -f conftest.er1
39153   cat conftest.err >&5
39154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39155   (exit $ac_status); } && {
39156          test -z "$ac_c_werror_flag" ||
39157          test ! -s conftest.err
39158        } && test -s conftest.$ac_objext; then
39159   ac_header_compiler=yes
39160 else
39161   echo "$as_me: failed program was:" >&5
39162 sed 's/^/| /' conftest.$ac_ext >&5
39163
39164         ac_header_compiler=no
39165 fi
39166
39167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39168 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39169 echo "${ECHO_T}$ac_header_compiler" >&6; }
39170
39171 # Is the header present?
39172 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
39173 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
39174 cat >conftest.$ac_ext <<_ACEOF
39175 /* confdefs.h.  */
39176 _ACEOF
39177 cat confdefs.h >>conftest.$ac_ext
39178 cat >>conftest.$ac_ext <<_ACEOF
39179 /* end confdefs.h.  */
39180 #include <$ac_header>
39181 _ACEOF
39182 if { (ac_try="$ac_cpp conftest.$ac_ext"
39183 case "(($ac_try" in
39184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39185   *) ac_try_echo=$ac_try;;
39186 esac
39187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39188   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
39189   ac_status=$?
39190   grep -v '^ *+' conftest.er1 >conftest.err
39191   rm -f conftest.er1
39192   cat conftest.err >&5
39193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39194   (exit $ac_status); } >/dev/null && {
39195          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
39196          test ! -s conftest.err
39197        }; then
39198   ac_header_preproc=yes
39199 else
39200   echo "$as_me: failed program was:" >&5
39201 sed 's/^/| /' conftest.$ac_ext >&5
39202
39203   ac_header_preproc=no
39204 fi
39205
39206 rm -f conftest.err conftest.$ac_ext
39207 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
39208 echo "${ECHO_T}$ac_header_preproc" >&6; }
39209
39210 # So?  What about this header?
39211 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
39212   yes:no: )
39213     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
39214 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
39215     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
39216 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
39217     ac_header_preproc=yes
39218     ;;
39219   no:yes:* )
39220     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
39221 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
39222     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
39223 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
39224     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
39225 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
39226     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
39227 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
39228     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
39229 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
39230     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
39231 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
39232     ( cat <<\_ASBOX
39233 ## ------------------------------ ##
39234 ## Report this to bug-tar@gnu.org ##
39235 ## ------------------------------ ##
39236 _ASBOX
39237      ) | sed "s/^/$as_me: WARNING:     /" >&2
39238     ;;
39239 esac
39240 { echo "$as_me:$LINENO: checking for $ac_header" >&5
39241 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
39242 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
39243   echo $ECHO_N "(cached) $ECHO_C" >&6
39244 else
39245   eval "$as_ac_Header=\$ac_header_preproc"
39246 fi
39247 ac_res=`eval echo '${'$as_ac_Header'}'`
39248                { echo "$as_me:$LINENO: result: $ac_res" >&5
39249 echo "${ECHO_T}$ac_res" >&6; }
39250
39251 fi
39252 if test `eval echo '${'$as_ac_Header'}'` = yes; then
39253   cat >>confdefs.h <<_ACEOF
39254 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
39255 _ACEOF
39256
39257 fi
39258
39259 done
39260
39261 else
39262
39263 cat >>confdefs.h <<_ACEOF
39264 #define REMOTE_SHELL "$tar_cv_path_RSH"
39265 _ACEOF
39266
39267 fi
39268
39269 { echo "$as_me:$LINENO: checking for default archive format" >&5
39270 echo $ECHO_N "checking for default archive format... $ECHO_C" >&6; }
39271
39272
39273
39274 if test -z "$DEFAULT_ARCHIVE_FORMAT"; then
39275   DEFAULT_ARCHIVE_FORMAT="GNU"
39276 fi
39277 case $DEFAULT_ARCHIVE_FORMAT in
39278   V7|OLDGNU|USTAR|POSIX|GNU) ;;
39279   *) { { echo "$as_me:$LINENO: error: Invalid format name" >&5
39280 echo "$as_me: error: Invalid format name" >&2;}
39281    { (exit 1); exit 1; }; };;
39282 esac
39283
39284 cat >>confdefs.h <<_ACEOF
39285 #define DEFAULT_ARCHIVE_FORMAT ${DEFAULT_ARCHIVE_FORMAT}_FORMAT
39286 _ACEOF
39287
39288 { echo "$as_me:$LINENO: result: $DEFAULT_ARCHIVE_FORMAT" >&5
39289 echo "${ECHO_T}$DEFAULT_ARCHIVE_FORMAT" >&6; }
39290
39291 { echo "$as_me:$LINENO: checking for default archive" >&5
39292 echo $ECHO_N "checking for default archive... $ECHO_C" >&6; }
39293
39294
39295 if test -z "$DEFAULT_ARCHIVE"; then
39296   DEFAULT_ARCHIVE=-
39297 else
39298   if test -z "`ls $DEFAULT_ARCHIVE 2>/dev/null`"; then
39299     { echo "$as_me:$LINENO: WARNING: DEFAULT_ARCHIVE \`$DEFAULT_ARCHIVE' not found on this system" >&5
39300 echo "$as_me: WARNING: DEFAULT_ARCHIVE \`$DEFAULT_ARCHIVE' not found on this system" >&2;}
39301   fi
39302   # FIXME: Look for DEFTAPE in <sys/mtio.h>.
39303   # FIXME: Let DEVICE_PREFIX be configured from the environment.
39304   # FIXME: Rearrange, here.
39305   case $DEFAULT_ARCHIVE in
39306     *[0-7][lmh])
39307
39308 cat >>confdefs.h <<\_ACEOF
39309 #define DENSITY_LETTER 1
39310 _ACEOF
39311
39312       device_prefix=`echo $DEFAULT_ARCHIVE | sed 's/0-7lmh$//'`
39313       ;;
39314     *[0-7])
39315       device_prefix=`echo $DEFAULT_ARCHIVE | sed 's/0-7$//'`
39316       ;;
39317     *)
39318       device_prefix=
39319       ;;
39320   esac
39321   case "$device_prefix" in
39322     ?*)
39323
39324 cat >>confdefs.h <<_ACEOF
39325 #define DEVICE_PREFIX "$device_prefix"
39326 _ACEOF
39327
39328       ;;
39329   esac
39330 fi
39331
39332 cat >>confdefs.h <<_ACEOF
39333 #define DEFAULT_ARCHIVE "$DEFAULT_ARCHIVE"
39334 _ACEOF
39335
39336 { echo "$as_me:$LINENO: result: $DEFAULT_ARCHIVE" >&5
39337 echo "${ECHO_T}$DEFAULT_ARCHIVE" >&6; }
39338
39339
39340 { echo "$as_me:$LINENO: checking for default blocking" >&5
39341 echo $ECHO_N "checking for default blocking... $ECHO_C" >&6; }
39342 DEFAULT_BLOCKING=${DEFAULT_BLOCKING-20}
39343
39344 cat >>confdefs.h <<_ACEOF
39345 #define DEFAULT_BLOCKING $DEFAULT_BLOCKING
39346 _ACEOF
39347
39348 { echo "$as_me:$LINENO: result: $DEFAULT_BLOCKING" >&5
39349 echo "${ECHO_T}$DEFAULT_BLOCKING" >&6; }
39350
39351 { echo "$as_me:$LINENO: checking for default quoting style" >&5
39352 echo $ECHO_N "checking for default quoting style... $ECHO_C" >&6; }
39353
39354
39355 DEFAULT_QUOTING_STYLE="escape"
39356
39357
39358 case $DEFAULT_QUOTING_STYLE in
39359           literal|shell|shell-always|c|escape|locale|clocale) ;;
39360 *)  { { echo "$as_me:$LINENO: error: Invalid quoting style" >&5
39361 echo "$as_me: error: Invalid quoting style" >&2;}
39362    { (exit 1); exit 1; }; };;
39363 esac
39364 { echo "$as_me:$LINENO: result: $DEFAULT_QUOTING_STYLE" >&5
39365 echo "${ECHO_T}$DEFAULT_QUOTING_STYLE" >&6; }
39366 DEFAULT_QUOTING_STYLE=`echo ${DEFAULT_QUOTING_STYLE}|sed 's/-/_/g'`_quoting_style
39367
39368 cat >>confdefs.h <<_ACEOF
39369 #define DEFAULT_QUOTING_STYLE $DEFAULT_QUOTING_STYLE
39370 _ACEOF
39371
39372
39373 # Iconv
39374
39375       if test "X$prefix" = "XNONE"; then
39376     acl_final_prefix="$ac_default_prefix"
39377   else
39378     acl_final_prefix="$prefix"
39379   fi
39380   if test "X$exec_prefix" = "XNONE"; then
39381     acl_final_exec_prefix='${prefix}'
39382   else
39383     acl_final_exec_prefix="$exec_prefix"
39384   fi
39385   acl_save_prefix="$prefix"
39386   prefix="$acl_final_prefix"
39387   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
39388   prefix="$acl_save_prefix"
39389
39390
39391 # Check whether --with-gnu-ld was given.
39392 if test "${with_gnu_ld+set}" = set; then
39393   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
39394 else
39395   with_gnu_ld=no
39396 fi
39397
39398 # Prepare PATH_SEPARATOR.
39399 # The user is always right.
39400 if test "${PATH_SEPARATOR+set}" != set; then
39401   echo "#! /bin/sh" >conf$$.sh
39402   echo  "exit 0"   >>conf$$.sh
39403   chmod +x conf$$.sh
39404   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
39405     PATH_SEPARATOR=';'
39406   else
39407     PATH_SEPARATOR=:
39408   fi
39409   rm -f conf$$.sh
39410 fi
39411 ac_prog=ld
39412 if test "$GCC" = yes; then
39413   # Check if gcc -print-prog-name=ld gives a path.
39414   { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
39415 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
39416   case $host in
39417   *-*-mingw*)
39418     # gcc leaves a trailing carriage return which upsets mingw
39419     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
39420   *)
39421     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
39422   esac
39423   case $ac_prog in
39424     # Accept absolute paths.
39425     [\\/]* | [A-Za-z]:[\\/]*)
39426       re_direlt='/[^/][^/]*/\.\./'
39427       # Canonicalize the path of ld
39428       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
39429       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
39430         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
39431       done
39432       test -z "$LD" && LD="$ac_prog"
39433       ;;
39434   "")
39435     # If it fails, then pretend we aren't using GCC.
39436     ac_prog=ld
39437     ;;
39438   *)
39439     # If it is relative, then search for the first ld in PATH.
39440     with_gnu_ld=unknown
39441     ;;
39442   esac
39443 elif test "$with_gnu_ld" = yes; then
39444   { echo "$as_me:$LINENO: checking for GNU ld" >&5
39445 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
39446 else
39447   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
39448 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
39449 fi
39450 if test "${acl_cv_path_LD+set}" = set; then
39451   echo $ECHO_N "(cached) $ECHO_C" >&6
39452 else
39453   if test -z "$LD"; then
39454   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
39455   for ac_dir in $PATH; do
39456     test -z "$ac_dir" && ac_dir=.
39457     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
39458       acl_cv_path_LD="$ac_dir/$ac_prog"
39459       # Check to see if the program is GNU ld.  I'd rather use --version,
39460       # but apparently some GNU ld's only accept -v.
39461       # Break only if it was the GNU/non-GNU ld that we prefer.
39462       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
39463       *GNU* | *'with BFD'*)
39464         test "$with_gnu_ld" != no && break ;;
39465       *)
39466         test "$with_gnu_ld" != yes && break ;;
39467       esac
39468     fi
39469   done
39470   IFS="$ac_save_ifs"
39471 else
39472   acl_cv_path_LD="$LD" # Let the user override the test with a path.
39473 fi
39474 fi
39475
39476 LD="$acl_cv_path_LD"
39477 if test -n "$LD"; then
39478   { echo "$as_me:$LINENO: result: $LD" >&5
39479 echo "${ECHO_T}$LD" >&6; }
39480 else
39481   { echo "$as_me:$LINENO: result: no" >&5
39482 echo "${ECHO_T}no" >&6; }
39483 fi
39484 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
39485 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
39486    { (exit 1); exit 1; }; }
39487 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
39488 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
39489 if test "${acl_cv_prog_gnu_ld+set}" = set; then
39490   echo $ECHO_N "(cached) $ECHO_C" >&6
39491 else
39492   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
39493 case `$LD -v 2>&1 </dev/null` in
39494 *GNU* | *'with BFD'*)
39495   acl_cv_prog_gnu_ld=yes ;;
39496 *)
39497   acl_cv_prog_gnu_ld=no ;;
39498 esac
39499 fi
39500 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
39501 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
39502 with_gnu_ld=$acl_cv_prog_gnu_ld
39503
39504
39505
39506
39507                                                 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
39508 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
39509 if test "${acl_cv_rpath+set}" = set; then
39510   echo $ECHO_N "(cached) $ECHO_C" >&6
39511 else
39512
39513     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
39514     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
39515     . ./conftest.sh
39516     rm -f ./conftest.sh
39517     acl_cv_rpath=done
39518
39519 fi
39520 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
39521 echo "${ECHO_T}$acl_cv_rpath" >&6; }
39522   wl="$acl_cv_wl"
39523   acl_libext="$acl_cv_libext"
39524   acl_shlibext="$acl_cv_shlibext"
39525   acl_libname_spec="$acl_cv_libname_spec"
39526   acl_library_names_spec="$acl_cv_library_names_spec"
39527   acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
39528   acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
39529   acl_hardcode_direct="$acl_cv_hardcode_direct"
39530   acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
39531     # Check whether --enable-rpath was given.
39532 if test "${enable_rpath+set}" = set; then
39533   enableval=$enable_rpath; :
39534 else
39535   enable_rpath=yes
39536 fi
39537
39538
39539
39540
39541   acl_libdirstem=lib
39542   acl_libdirstem2=
39543   case "$host_os" in
39544     solaris*)
39545                                     { echo "$as_me:$LINENO: checking for 64-bit host" >&5
39546 echo $ECHO_N "checking for 64-bit host... $ECHO_C" >&6; }
39547 if test "${gl_cv_solaris_64bit+set}" = set; then
39548   echo $ECHO_N "(cached) $ECHO_C" >&6
39549 else
39550   cat >conftest.$ac_ext <<_ACEOF
39551 /* confdefs.h.  */
39552 _ACEOF
39553 cat confdefs.h >>conftest.$ac_ext
39554 cat >>conftest.$ac_ext <<_ACEOF
39555 /* end confdefs.h.  */
39556
39557 #ifdef _LP64
39558 sixtyfour bits
39559 #endif
39560
39561 _ACEOF
39562 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39563   $EGREP "sixtyfour bits" >/dev/null 2>&1; then
39564   gl_cv_solaris_64bit=yes
39565 else
39566   gl_cv_solaris_64bit=no
39567 fi
39568 rm -f conftest*
39569
39570
39571 fi
39572 { echo "$as_me:$LINENO: result: $gl_cv_solaris_64bit" >&5
39573 echo "${ECHO_T}$gl_cv_solaris_64bit" >&6; }
39574       if test $gl_cv_solaris_64bit = yes; then
39575         acl_libdirstem=lib/64
39576         case "$host_cpu" in
39577           sparc*)        acl_libdirstem2=lib/sparcv9 ;;
39578           i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
39579         esac
39580       fi
39581       ;;
39582     *)
39583       searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
39584       if test -n "$searchpath"; then
39585         acl_save_IFS="${IFS=    }"; IFS=":"
39586         for searchdir in $searchpath; do
39587           if test -d "$searchdir"; then
39588             case "$searchdir" in
39589               */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
39590               *) searchdir=`cd "$searchdir" && pwd`
39591                  case "$searchdir" in
39592                    */lib64 ) acl_libdirstem=lib64 ;;
39593                  esac ;;
39594             esac
39595           fi
39596         done
39597         IFS="$acl_save_IFS"
39598       fi
39599       ;;
39600   esac
39601   test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
39602
39603
39604
39605
39606
39607
39608
39609
39610
39611
39612
39613
39614     use_additional=yes
39615
39616   acl_save_prefix="$prefix"
39617   prefix="$acl_final_prefix"
39618   acl_save_exec_prefix="$exec_prefix"
39619   exec_prefix="$acl_final_exec_prefix"
39620
39621     eval additional_includedir=\"$includedir\"
39622     eval additional_libdir=\"$libdir\"
39623
39624   exec_prefix="$acl_save_exec_prefix"
39625   prefix="$acl_save_prefix"
39626
39627
39628 # Check whether --with-libiconv-prefix was given.
39629 if test "${with_libiconv_prefix+set}" = set; then
39630   withval=$with_libiconv_prefix;
39631     if test "X$withval" = "Xno"; then
39632       use_additional=no
39633     else
39634       if test "X$withval" = "X"; then
39635
39636   acl_save_prefix="$prefix"
39637   prefix="$acl_final_prefix"
39638   acl_save_exec_prefix="$exec_prefix"
39639   exec_prefix="$acl_final_exec_prefix"
39640
39641           eval additional_includedir=\"$includedir\"
39642           eval additional_libdir=\"$libdir\"
39643
39644   exec_prefix="$acl_save_exec_prefix"
39645   prefix="$acl_save_prefix"
39646
39647       else
39648         additional_includedir="$withval/include"
39649         additional_libdir="$withval/$acl_libdirstem"
39650         if test "$acl_libdirstem2" != "$acl_libdirstem" \
39651            && ! test -d "$withval/$acl_libdirstem"; then
39652           additional_libdir="$withval/$acl_libdirstem2"
39653         fi
39654       fi
39655     fi
39656
39657 fi
39658
39659       LIBICONV=
39660   LTLIBICONV=
39661   INCICONV=
39662   LIBICONV_PREFIX=
39663   rpathdirs=
39664   ltrpathdirs=
39665   names_already_handled=
39666   names_next_round='iconv '
39667   while test -n "$names_next_round"; do
39668     names_this_round="$names_next_round"
39669     names_next_round=
39670     for name in $names_this_round; do
39671       already_handled=
39672       for n in $names_already_handled; do
39673         if test "$n" = "$name"; then
39674           already_handled=yes
39675           break
39676         fi
39677       done
39678       if test -z "$already_handled"; then
39679         names_already_handled="$names_already_handled $name"
39680                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
39681         eval value=\"\$HAVE_LIB$uppername\"
39682         if test -n "$value"; then
39683           if test "$value" = yes; then
39684             eval value=\"\$LIB$uppername\"
39685             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
39686             eval value=\"\$LTLIB$uppername\"
39687             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
39688           else
39689                                     :
39690           fi
39691         else
39692                               found_dir=
39693           found_la=
39694           found_so=
39695           found_a=
39696           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
39697           if test -n "$acl_shlibext"; then
39698             shrext=".$acl_shlibext"             # typically: shrext=.so
39699           else
39700             shrext=
39701           fi
39702           if test $use_additional = yes; then
39703             dir="$additional_libdir"
39704                                     if test -n "$acl_shlibext"; then
39705               if test -f "$dir/$libname$shrext"; then
39706                 found_dir="$dir"
39707                 found_so="$dir/$libname$shrext"
39708               else
39709                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
39710                   ver=`(cd "$dir" && \
39711                         for f in "$libname$shrext".*; do echo "$f"; done \
39712                         | sed -e "s,^$libname$shrext\\\\.,," \
39713                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
39714                         | sed 1q ) 2>/dev/null`
39715                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
39716                     found_dir="$dir"
39717                     found_so="$dir/$libname$shrext.$ver"
39718                   fi
39719                 else
39720                   eval library_names=\"$acl_library_names_spec\"
39721                   for f in $library_names; do
39722                     if test -f "$dir/$f"; then
39723                       found_dir="$dir"
39724                       found_so="$dir/$f"
39725                       break
39726                     fi
39727                   done
39728                 fi
39729               fi
39730             fi
39731                         if test "X$found_dir" = "X"; then
39732               if test -f "$dir/$libname.$acl_libext"; then
39733                 found_dir="$dir"
39734                 found_a="$dir/$libname.$acl_libext"
39735               fi
39736             fi
39737             if test "X$found_dir" != "X"; then
39738               if test -f "$dir/$libname.la"; then
39739                 found_la="$dir/$libname.la"
39740               fi
39741             fi
39742           fi
39743           if test "X$found_dir" = "X"; then
39744             for x in $LDFLAGS $LTLIBICONV; do
39745
39746   acl_save_prefix="$prefix"
39747   prefix="$acl_final_prefix"
39748   acl_save_exec_prefix="$exec_prefix"
39749   exec_prefix="$acl_final_exec_prefix"
39750   eval x=\"$x\"
39751   exec_prefix="$acl_save_exec_prefix"
39752   prefix="$acl_save_prefix"
39753
39754               case "$x" in
39755                 -L*)
39756                   dir=`echo "X$x" | sed -e 's/^X-L//'`
39757                                     if test -n "$acl_shlibext"; then
39758                     if test -f "$dir/$libname$shrext"; then
39759                       found_dir="$dir"
39760                       found_so="$dir/$libname$shrext"
39761                     else
39762                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
39763                         ver=`(cd "$dir" && \
39764                               for f in "$libname$shrext".*; do echo "$f"; done \
39765                               | sed -e "s,^$libname$shrext\\\\.,," \
39766                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
39767                               | sed 1q ) 2>/dev/null`
39768                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
39769                           found_dir="$dir"
39770                           found_so="$dir/$libname$shrext.$ver"
39771                         fi
39772                       else
39773                         eval library_names=\"$acl_library_names_spec\"
39774                         for f in $library_names; do
39775                           if test -f "$dir/$f"; then
39776                             found_dir="$dir"
39777                             found_so="$dir/$f"
39778                             break
39779                           fi
39780                         done
39781                       fi
39782                     fi
39783                   fi
39784                                     if test "X$found_dir" = "X"; then
39785                     if test -f "$dir/$libname.$acl_libext"; then
39786                       found_dir="$dir"
39787                       found_a="$dir/$libname.$acl_libext"
39788                     fi
39789                   fi
39790                   if test "X$found_dir" != "X"; then
39791                     if test -f "$dir/$libname.la"; then
39792                       found_la="$dir/$libname.la"
39793                     fi
39794                   fi
39795                   ;;
39796               esac
39797               if test "X$found_dir" != "X"; then
39798                 break
39799               fi
39800             done
39801           fi
39802           if test "X$found_dir" != "X"; then
39803                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
39804             if test "X$found_so" != "X"; then
39805                                                         if test "$enable_rpath" = no \
39806                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
39807                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
39808                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
39809               else
39810                                                                                 haveit=
39811                 for x in $ltrpathdirs; do
39812                   if test "X$x" = "X$found_dir"; then
39813                     haveit=yes
39814                     break
39815                   fi
39816                 done
39817                 if test -z "$haveit"; then
39818                   ltrpathdirs="$ltrpathdirs $found_dir"
39819                 fi
39820                                 if test "$acl_hardcode_direct" = yes; then
39821                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
39822                 else
39823                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
39824                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
39825                                                             haveit=
39826                     for x in $rpathdirs; do
39827                       if test "X$x" = "X$found_dir"; then
39828                         haveit=yes
39829                         break
39830                       fi
39831                     done
39832                     if test -z "$haveit"; then
39833                       rpathdirs="$rpathdirs $found_dir"
39834                     fi
39835                   else
39836                                                                                 haveit=
39837                     for x in $LDFLAGS $LIBICONV; do
39838
39839   acl_save_prefix="$prefix"
39840   prefix="$acl_final_prefix"
39841   acl_save_exec_prefix="$exec_prefix"
39842   exec_prefix="$acl_final_exec_prefix"
39843   eval x=\"$x\"
39844   exec_prefix="$acl_save_exec_prefix"
39845   prefix="$acl_save_prefix"
39846
39847                       if test "X$x" = "X-L$found_dir"; then
39848                         haveit=yes
39849                         break
39850                       fi
39851                     done
39852                     if test -z "$haveit"; then
39853                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
39854                     fi
39855                     if test "$acl_hardcode_minus_L" != no; then
39856                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
39857                     else
39858                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
39859                     fi
39860                   fi
39861                 fi
39862               fi
39863             else
39864               if test "X$found_a" != "X"; then
39865                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
39866               else
39867                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
39868               fi
39869             fi
39870                         additional_includedir=
39871             case "$found_dir" in
39872               */$acl_libdirstem | */$acl_libdirstem/)
39873                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
39874                 if test "$name" = 'iconv'; then
39875                   LIBICONV_PREFIX="$basedir"
39876                 fi
39877                 additional_includedir="$basedir/include"
39878                 ;;
39879               */$acl_libdirstem2 | */$acl_libdirstem2/)
39880                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
39881                 if test "$name" = 'iconv'; then
39882                   LIBICONV_PREFIX="$basedir"
39883                 fi
39884                 additional_includedir="$basedir/include"
39885                 ;;
39886             esac
39887             if test "X$additional_includedir" != "X"; then
39888                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
39889                 haveit=
39890                 if test "X$additional_includedir" = "X/usr/local/include"; then
39891                   if test -n "$GCC"; then
39892                     case $host_os in
39893                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
39894                     esac
39895                   fi
39896                 fi
39897                 if test -z "$haveit"; then
39898                   for x in $CPPFLAGS $INCICONV; do
39899
39900   acl_save_prefix="$prefix"
39901   prefix="$acl_final_prefix"
39902   acl_save_exec_prefix="$exec_prefix"
39903   exec_prefix="$acl_final_exec_prefix"
39904   eval x=\"$x\"
39905   exec_prefix="$acl_save_exec_prefix"
39906   prefix="$acl_save_prefix"
39907
39908                     if test "X$x" = "X-I$additional_includedir"; then
39909                       haveit=yes
39910                       break
39911                     fi
39912                   done
39913                   if test -z "$haveit"; then
39914                     if test -d "$additional_includedir"; then
39915                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
39916                     fi
39917                   fi
39918                 fi
39919               fi
39920             fi
39921                         if test -n "$found_la"; then
39922                                                         save_libdir="$libdir"
39923               case "$found_la" in
39924                 */* | *\\*) . "$found_la" ;;
39925                 *) . "./$found_la" ;;
39926               esac
39927               libdir="$save_libdir"
39928                             for dep in $dependency_libs; do
39929                 case "$dep" in
39930                   -L*)
39931                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
39932                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
39933                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
39934                       haveit=
39935                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
39936                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
39937                         if test -n "$GCC"; then
39938                           case $host_os in
39939                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
39940                           esac
39941                         fi
39942                       fi
39943                       if test -z "$haveit"; then
39944                         haveit=
39945                         for x in $LDFLAGS $LIBICONV; do
39946
39947   acl_save_prefix="$prefix"
39948   prefix="$acl_final_prefix"
39949   acl_save_exec_prefix="$exec_prefix"
39950   exec_prefix="$acl_final_exec_prefix"
39951   eval x=\"$x\"
39952   exec_prefix="$acl_save_exec_prefix"
39953   prefix="$acl_save_prefix"
39954
39955                           if test "X$x" = "X-L$additional_libdir"; then
39956                             haveit=yes
39957                             break
39958                           fi
39959                         done
39960                         if test -z "$haveit"; then
39961                           if test -d "$additional_libdir"; then
39962                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
39963                           fi
39964                         fi
39965                         haveit=
39966                         for x in $LDFLAGS $LTLIBICONV; do
39967
39968   acl_save_prefix="$prefix"
39969   prefix="$acl_final_prefix"
39970   acl_save_exec_prefix="$exec_prefix"
39971   exec_prefix="$acl_final_exec_prefix"
39972   eval x=\"$x\"
39973   exec_prefix="$acl_save_exec_prefix"
39974   prefix="$acl_save_prefix"
39975
39976                           if test "X$x" = "X-L$additional_libdir"; then
39977                             haveit=yes
39978                             break
39979                           fi
39980                         done
39981                         if test -z "$haveit"; then
39982                           if test -d "$additional_libdir"; then
39983                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
39984                           fi
39985                         fi
39986                       fi
39987                     fi
39988                     ;;
39989                   -R*)
39990                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
39991                     if test "$enable_rpath" != no; then
39992                                                                   haveit=
39993                       for x in $rpathdirs; do
39994                         if test "X$x" = "X$dir"; then
39995                           haveit=yes
39996                           break
39997                         fi
39998                       done
39999                       if test -z "$haveit"; then
40000                         rpathdirs="$rpathdirs $dir"
40001                       fi
40002                                                                   haveit=
40003                       for x in $ltrpathdirs; do
40004                         if test "X$x" = "X$dir"; then
40005                           haveit=yes
40006                           break
40007                         fi
40008                       done
40009                       if test -z "$haveit"; then
40010                         ltrpathdirs="$ltrpathdirs $dir"
40011                       fi
40012                     fi
40013                     ;;
40014                   -l*)
40015                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
40016                     ;;
40017                   *.la)
40018                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
40019                     ;;
40020                   *)
40021                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
40022                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
40023                     ;;
40024                 esac
40025               done
40026             fi
40027           else
40028                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
40029             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
40030           fi
40031         fi
40032       fi
40033     done
40034   done
40035   if test "X$rpathdirs" != "X"; then
40036     if test -n "$acl_hardcode_libdir_separator"; then
40037                         alldirs=
40038       for found_dir in $rpathdirs; do
40039         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
40040       done
40041             acl_save_libdir="$libdir"
40042       libdir="$alldirs"
40043       eval flag=\"$acl_hardcode_libdir_flag_spec\"
40044       libdir="$acl_save_libdir"
40045       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
40046     else
40047             for found_dir in $rpathdirs; do
40048         acl_save_libdir="$libdir"
40049         libdir="$found_dir"
40050         eval flag=\"$acl_hardcode_libdir_flag_spec\"
40051         libdir="$acl_save_libdir"
40052         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
40053       done
40054     fi
40055   fi
40056   if test "X$ltrpathdirs" != "X"; then
40057             for found_dir in $ltrpathdirs; do
40058       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
40059     done
40060   fi
40061
40062
40063
40064
40065
40066
40067
40068
40069
40070
40071
40072
40073           am_save_CPPFLAGS="$CPPFLAGS"
40074
40075   for element in $INCICONV; do
40076     haveit=
40077     for x in $CPPFLAGS; do
40078
40079   acl_save_prefix="$prefix"
40080   prefix="$acl_final_prefix"
40081   acl_save_exec_prefix="$exec_prefix"
40082   exec_prefix="$acl_final_exec_prefix"
40083   eval x=\"$x\"
40084   exec_prefix="$acl_save_exec_prefix"
40085   prefix="$acl_save_prefix"
40086
40087       if test "X$x" = "X$element"; then
40088         haveit=yes
40089         break
40090       fi
40091     done
40092     if test -z "$haveit"; then
40093       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
40094     fi
40095   done
40096
40097
40098   { echo "$as_me:$LINENO: checking for iconv" >&5
40099 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
40100 if test "${am_cv_func_iconv+set}" = set; then
40101   echo $ECHO_N "(cached) $ECHO_C" >&6
40102 else
40103
40104     am_cv_func_iconv="no, consider installing GNU libiconv"
40105     am_cv_lib_iconv=no
40106     cat >conftest.$ac_ext <<_ACEOF
40107 /* confdefs.h.  */
40108 _ACEOF
40109 cat confdefs.h >>conftest.$ac_ext
40110 cat >>conftest.$ac_ext <<_ACEOF
40111 /* end confdefs.h.  */
40112 #include <stdlib.h>
40113 #include <iconv.h>
40114 int
40115 main ()
40116 {
40117 iconv_t cd = iconv_open("","");
40118        iconv(cd,NULL,NULL,NULL,NULL);
40119        iconv_close(cd);
40120   ;
40121   return 0;
40122 }
40123 _ACEOF
40124 rm -f conftest.$ac_objext conftest$ac_exeext
40125 if { (ac_try="$ac_link"
40126 case "(($ac_try" in
40127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40128   *) ac_try_echo=$ac_try;;
40129 esac
40130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40131   (eval "$ac_link") 2>conftest.er1
40132   ac_status=$?
40133   grep -v '^ *+' conftest.er1 >conftest.err
40134   rm -f conftest.er1
40135   cat conftest.err >&5
40136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40137   (exit $ac_status); } && {
40138          test -z "$ac_c_werror_flag" ||
40139          test ! -s conftest.err
40140        } && test -s conftest$ac_exeext &&
40141        $as_test_x conftest$ac_exeext; then
40142   am_cv_func_iconv=yes
40143 else
40144   echo "$as_me: failed program was:" >&5
40145 sed 's/^/| /' conftest.$ac_ext >&5
40146
40147
40148 fi
40149
40150 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40151       conftest$ac_exeext conftest.$ac_ext
40152     if test "$am_cv_func_iconv" != yes; then
40153       am_save_LIBS="$LIBS"
40154       LIBS="$LIBS $LIBICONV"
40155       cat >conftest.$ac_ext <<_ACEOF
40156 /* confdefs.h.  */
40157 _ACEOF
40158 cat confdefs.h >>conftest.$ac_ext
40159 cat >>conftest.$ac_ext <<_ACEOF
40160 /* end confdefs.h.  */
40161 #include <stdlib.h>
40162 #include <iconv.h>
40163 int
40164 main ()
40165 {
40166 iconv_t cd = iconv_open("","");
40167          iconv(cd,NULL,NULL,NULL,NULL);
40168          iconv_close(cd);
40169   ;
40170   return 0;
40171 }
40172 _ACEOF
40173 rm -f conftest.$ac_objext conftest$ac_exeext
40174 if { (ac_try="$ac_link"
40175 case "(($ac_try" in
40176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40177   *) ac_try_echo=$ac_try;;
40178 esac
40179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40180   (eval "$ac_link") 2>conftest.er1
40181   ac_status=$?
40182   grep -v '^ *+' conftest.er1 >conftest.err
40183   rm -f conftest.er1
40184   cat conftest.err >&5
40185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40186   (exit $ac_status); } && {
40187          test -z "$ac_c_werror_flag" ||
40188          test ! -s conftest.err
40189        } && test -s conftest$ac_exeext &&
40190        $as_test_x conftest$ac_exeext; then
40191   am_cv_lib_iconv=yes
40192         am_cv_func_iconv=yes
40193 else
40194   echo "$as_me: failed program was:" >&5
40195 sed 's/^/| /' conftest.$ac_ext >&5
40196
40197
40198 fi
40199
40200 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40201       conftest$ac_exeext conftest.$ac_ext
40202       LIBS="$am_save_LIBS"
40203     fi
40204
40205 fi
40206 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
40207 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
40208   if test "$am_cv_func_iconv" = yes; then
40209     { echo "$as_me:$LINENO: checking for working iconv" >&5
40210 echo $ECHO_N "checking for working iconv... $ECHO_C" >&6; }
40211 if test "${am_cv_func_iconv_works+set}" = set; then
40212   echo $ECHO_N "(cached) $ECHO_C" >&6
40213 else
40214
40215             am_save_LIBS="$LIBS"
40216       if test $am_cv_lib_iconv = yes; then
40217         LIBS="$LIBS $LIBICONV"
40218       fi
40219       if test "$cross_compiling" = yes; then
40220   case "$host_os" in
40221            aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
40222            *)            am_cv_func_iconv_works="guessing yes" ;;
40223          esac
40224 else
40225   cat >conftest.$ac_ext <<_ACEOF
40226 /* confdefs.h.  */
40227 _ACEOF
40228 cat confdefs.h >>conftest.$ac_ext
40229 cat >>conftest.$ac_ext <<_ACEOF
40230 /* end confdefs.h.  */
40231
40232 #include <iconv.h>
40233 #include <string.h>
40234 int main ()
40235 {
40236   /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
40237      returns.  */
40238   {
40239     iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
40240     if (cd_utf8_to_88591 != (iconv_t)(-1))
40241       {
40242         static const char input[] = "\342\202\254"; /* EURO SIGN */
40243         char buf[10];
40244         const char *inptr = input;
40245         size_t inbytesleft = strlen (input);
40246         char *outptr = buf;
40247         size_t outbytesleft = sizeof (buf);
40248         size_t res = iconv (cd_utf8_to_88591,
40249                             (char **) &inptr, &inbytesleft,
40250                             &outptr, &outbytesleft);
40251         if (res == 0)
40252           return 1;
40253       }
40254   }
40255 #if 0 /* This bug could be worked around by the caller.  */
40256   /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
40257   {
40258     iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
40259     if (cd_88591_to_utf8 != (iconv_t)(-1))
40260       {
40261         static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
40262         char buf[50];
40263         const char *inptr = input;
40264         size_t inbytesleft = strlen (input);
40265         char *outptr = buf;
40266         size_t outbytesleft = sizeof (buf);
40267         size_t res = iconv (cd_88591_to_utf8,
40268                             (char **) &inptr, &inbytesleft,
40269                             &outptr, &outbytesleft);
40270         if ((int)res > 0)
40271           return 1;
40272       }
40273   }
40274 #endif
40275   /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
40276      provided.  */
40277   if (/* Try standardized names.  */
40278       iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
40279       /* Try IRIX, OSF/1 names.  */
40280       && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
40281       /* Try AIX names.  */
40282       && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
40283       /* Try HP-UX names.  */
40284       && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
40285     return 1;
40286   return 0;
40287 }
40288 _ACEOF
40289 rm -f conftest$ac_exeext
40290 if { (ac_try="$ac_link"
40291 case "(($ac_try" in
40292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40293   *) ac_try_echo=$ac_try;;
40294 esac
40295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40296   (eval "$ac_link") 2>&5
40297   ac_status=$?
40298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40299   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40300   { (case "(($ac_try" in
40301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40302   *) ac_try_echo=$ac_try;;
40303 esac
40304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40305   (eval "$ac_try") 2>&5
40306   ac_status=$?
40307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40308   (exit $ac_status); }; }; then
40309   am_cv_func_iconv_works=yes
40310 else
40311   echo "$as_me: program exited with status $ac_status" >&5
40312 echo "$as_me: failed program was:" >&5
40313 sed 's/^/| /' conftest.$ac_ext >&5
40314
40315 ( exit $ac_status )
40316 am_cv_func_iconv_works=no
40317 fi
40318 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40319 fi
40320
40321
40322       LIBS="$am_save_LIBS"
40323
40324 fi
40325 { echo "$as_me:$LINENO: result: $am_cv_func_iconv_works" >&5
40326 echo "${ECHO_T}$am_cv_func_iconv_works" >&6; }
40327     case "$am_cv_func_iconv_works" in
40328       *no) am_func_iconv=no am_cv_lib_iconv=no ;;
40329       *)   am_func_iconv=yes ;;
40330     esac
40331   else
40332     am_func_iconv=no am_cv_lib_iconv=no
40333   fi
40334   if test "$am_func_iconv" = yes; then
40335
40336 cat >>confdefs.h <<\_ACEOF
40337 #define HAVE_ICONV 1
40338 _ACEOF
40339
40340   fi
40341   if test "$am_cv_lib_iconv" = yes; then
40342     { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
40343 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
40344     { echo "$as_me:$LINENO: result: $LIBICONV" >&5
40345 echo "${ECHO_T}$LIBICONV" >&6; }
40346   else
40347             CPPFLAGS="$am_save_CPPFLAGS"
40348     LIBICONV=
40349     LTLIBICONV=
40350   fi
40351
40352
40353
40354   if test "$am_cv_func_iconv" = yes; then
40355     { echo "$as_me:$LINENO: checking for iconv declaration" >&5
40356 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
40357     if test "${am_cv_proto_iconv+set}" = set; then
40358   echo $ECHO_N "(cached) $ECHO_C" >&6
40359 else
40360
40361       cat >conftest.$ac_ext <<_ACEOF
40362 /* confdefs.h.  */
40363 _ACEOF
40364 cat confdefs.h >>conftest.$ac_ext
40365 cat >>conftest.$ac_ext <<_ACEOF
40366 /* end confdefs.h.  */
40367
40368 #include <stdlib.h>
40369 #include <iconv.h>
40370 extern
40371 #ifdef __cplusplus
40372 "C"
40373 #endif
40374 #if defined(__STDC__) || defined(__cplusplus)
40375 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
40376 #else
40377 size_t iconv();
40378 #endif
40379
40380 int
40381 main ()
40382 {
40383
40384   ;
40385   return 0;
40386 }
40387 _ACEOF
40388 rm -f conftest.$ac_objext
40389 if { (ac_try="$ac_compile"
40390 case "(($ac_try" in
40391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40392   *) ac_try_echo=$ac_try;;
40393 esac
40394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40395   (eval "$ac_compile") 2>conftest.er1
40396   ac_status=$?
40397   grep -v '^ *+' conftest.er1 >conftest.err
40398   rm -f conftest.er1
40399   cat conftest.err >&5
40400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40401   (exit $ac_status); } && {
40402          test -z "$ac_c_werror_flag" ||
40403          test ! -s conftest.err
40404        } && test -s conftest.$ac_objext; then
40405   am_cv_proto_iconv_arg1=""
40406 else
40407   echo "$as_me: failed program was:" >&5
40408 sed 's/^/| /' conftest.$ac_ext >&5
40409
40410         am_cv_proto_iconv_arg1="const"
40411 fi
40412
40413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40414       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);"
40415 fi
40416
40417     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
40418     { echo "$as_me:$LINENO: result: ${ac_t:-
40419          }$am_cv_proto_iconv" >&5
40420 echo "${ECHO_T}${ac_t:-
40421          }$am_cv_proto_iconv" >&6; }
40422
40423 cat >>confdefs.h <<_ACEOF
40424 #define ICONV_CONST $am_cv_proto_iconv_arg1
40425 _ACEOF
40426
40427   fi
40428
40429
40430 for ac_header in iconv.h
40431 do
40432 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
40433 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40434   { echo "$as_me:$LINENO: checking for $ac_header" >&5
40435 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
40436 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40437   echo $ECHO_N "(cached) $ECHO_C" >&6
40438 fi
40439 ac_res=`eval echo '${'$as_ac_Header'}'`
40440                { echo "$as_me:$LINENO: result: $ac_res" >&5
40441 echo "${ECHO_T}$ac_res" >&6; }
40442 else
40443   # Is the header compilable?
40444 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
40445 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
40446 cat >conftest.$ac_ext <<_ACEOF
40447 /* confdefs.h.  */
40448 _ACEOF
40449 cat confdefs.h >>conftest.$ac_ext
40450 cat >>conftest.$ac_ext <<_ACEOF
40451 /* end confdefs.h.  */
40452 $ac_includes_default
40453 #include <$ac_header>
40454 _ACEOF
40455 rm -f conftest.$ac_objext
40456 if { (ac_try="$ac_compile"
40457 case "(($ac_try" in
40458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40459   *) ac_try_echo=$ac_try;;
40460 esac
40461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40462   (eval "$ac_compile") 2>conftest.er1
40463   ac_status=$?
40464   grep -v '^ *+' conftest.er1 >conftest.err
40465   rm -f conftest.er1
40466   cat conftest.err >&5
40467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40468   (exit $ac_status); } && {
40469          test -z "$ac_c_werror_flag" ||
40470          test ! -s conftest.err
40471        } && test -s conftest.$ac_objext; then
40472   ac_header_compiler=yes
40473 else
40474   echo "$as_me: failed program was:" >&5
40475 sed 's/^/| /' conftest.$ac_ext >&5
40476
40477         ac_header_compiler=no
40478 fi
40479
40480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40481 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40482 echo "${ECHO_T}$ac_header_compiler" >&6; }
40483
40484 # Is the header present?
40485 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
40486 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
40487 cat >conftest.$ac_ext <<_ACEOF
40488 /* confdefs.h.  */
40489 _ACEOF
40490 cat confdefs.h >>conftest.$ac_ext
40491 cat >>conftest.$ac_ext <<_ACEOF
40492 /* end confdefs.h.  */
40493 #include <$ac_header>
40494 _ACEOF
40495 if { (ac_try="$ac_cpp conftest.$ac_ext"
40496 case "(($ac_try" in
40497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40498   *) ac_try_echo=$ac_try;;
40499 esac
40500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40501   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40502   ac_status=$?
40503   grep -v '^ *+' conftest.er1 >conftest.err
40504   rm -f conftest.er1
40505   cat conftest.err >&5
40506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40507   (exit $ac_status); } >/dev/null && {
40508          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
40509          test ! -s conftest.err
40510        }; then
40511   ac_header_preproc=yes
40512 else
40513   echo "$as_me: failed program was:" >&5
40514 sed 's/^/| /' conftest.$ac_ext >&5
40515
40516   ac_header_preproc=no
40517 fi
40518
40519 rm -f conftest.err conftest.$ac_ext
40520 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40521 echo "${ECHO_T}$ac_header_preproc" >&6; }
40522
40523 # So?  What about this header?
40524 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40525   yes:no: )
40526     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
40527 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
40528     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
40529 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
40530     ac_header_preproc=yes
40531     ;;
40532   no:yes:* )
40533     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
40534 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
40535     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
40536 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
40537     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
40538 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
40539     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
40540 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
40541     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
40542 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
40543     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
40544 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
40545     ( cat <<\_ASBOX
40546 ## ------------------------------ ##
40547 ## Report this to bug-tar@gnu.org ##
40548 ## ------------------------------ ##
40549 _ASBOX
40550      ) | sed "s/^/$as_me: WARNING:     /" >&2
40551     ;;
40552 esac
40553 { echo "$as_me:$LINENO: checking for $ac_header" >&5
40554 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
40555 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40556   echo $ECHO_N "(cached) $ECHO_C" >&6
40557 else
40558   eval "$as_ac_Header=\$ac_header_preproc"
40559 fi
40560 ac_res=`eval echo '${'$as_ac_Header'}'`
40561                { echo "$as_me:$LINENO: result: $ac_res" >&5
40562 echo "${ECHO_T}$ac_res" >&6; }
40563
40564 fi
40565 if test `eval echo '${'$as_ac_Header'}'` = yes; then
40566   cat >>confdefs.h <<_ACEOF
40567 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
40568 _ACEOF
40569
40570 fi
40571
40572 done
40573
40574 { echo "$as_me:$LINENO: checking for iconv_t" >&5
40575 echo $ECHO_N "checking for iconv_t... $ECHO_C" >&6; }
40576 if test "${ac_cv_type_iconv_t+set}" = set; then
40577   echo $ECHO_N "(cached) $ECHO_C" >&6
40578 else
40579   cat >conftest.$ac_ext <<_ACEOF
40580 /* confdefs.h.  */
40581 _ACEOF
40582 cat confdefs.h >>conftest.$ac_ext
40583 cat >>conftest.$ac_ext <<_ACEOF
40584 /* end confdefs.h.  */
40585
40586 #ifdef HAVE_ICONV_H
40587 # include <iconv.h>
40588 #endif
40589
40590
40591 typedef iconv_t ac__type_new_;
40592 int
40593 main ()
40594 {
40595 if ((ac__type_new_ *) 0)
40596   return 0;
40597 if (sizeof (ac__type_new_))
40598   return 0;
40599   ;
40600   return 0;
40601 }
40602 _ACEOF
40603 rm -f conftest.$ac_objext
40604 if { (ac_try="$ac_compile"
40605 case "(($ac_try" in
40606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40607   *) ac_try_echo=$ac_try;;
40608 esac
40609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40610   (eval "$ac_compile") 2>conftest.er1
40611   ac_status=$?
40612   grep -v '^ *+' conftest.er1 >conftest.err
40613   rm -f conftest.er1
40614   cat conftest.err >&5
40615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40616   (exit $ac_status); } && {
40617          test -z "$ac_c_werror_flag" ||
40618          test ! -s conftest.err
40619        } && test -s conftest.$ac_objext; then
40620   ac_cv_type_iconv_t=yes
40621 else
40622   echo "$as_me: failed program was:" >&5
40623 sed 's/^/| /' conftest.$ac_ext >&5
40624
40625         ac_cv_type_iconv_t=no
40626 fi
40627
40628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40629 fi
40630 { echo "$as_me:$LINENO: result: $ac_cv_type_iconv_t" >&5
40631 echo "${ECHO_T}$ac_cv_type_iconv_t" >&6; }
40632 if test $ac_cv_type_iconv_t = yes; then
40633   :
40634 else
40635
40636 cat >>confdefs.h <<\_ACEOF
40637 #define iconv_t int
40638 _ACEOF
40639
40640 fi
40641
40642
40643 # Gettext.
40644
40645   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
40646 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
40647     # Check whether --enable-nls was given.
40648 if test "${enable_nls+set}" = set; then
40649   enableval=$enable_nls; USE_NLS=$enableval
40650 else
40651   USE_NLS=yes
40652 fi
40653
40654   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
40655 echo "${ECHO_T}$USE_NLS" >&6; }
40656
40657
40658
40659
40660       GETTEXT_MACRO_VERSION=0.17
40661
40662
40663
40664
40665 # Prepare PATH_SEPARATOR.
40666 # The user is always right.
40667 if test "${PATH_SEPARATOR+set}" != set; then
40668   echo "#! /bin/sh" >conf$$.sh
40669   echo  "exit 0"   >>conf$$.sh
40670   chmod +x conf$$.sh
40671   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
40672     PATH_SEPARATOR=';'
40673   else
40674     PATH_SEPARATOR=:
40675   fi
40676   rm -f conf$$.sh
40677 fi
40678
40679 # Find out how to test for executable files. Don't use a zero-byte file,
40680 # as systems may use methods other than mode bits to determine executability.
40681 cat >conf$$.file <<_ASEOF
40682 #! /bin/sh
40683 exit 0
40684 _ASEOF
40685 chmod +x conf$$.file
40686 if test -x conf$$.file >/dev/null 2>&1; then
40687   ac_executable_p="test -x"
40688 else
40689   ac_executable_p="test -f"
40690 fi
40691 rm -f conf$$.file
40692
40693 # Extract the first word of "msgfmt", so it can be a program name with args.
40694 set dummy msgfmt; ac_word=$2
40695 { echo "$as_me:$LINENO: checking for $ac_word" >&5
40696 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
40697 if test "${ac_cv_path_MSGFMT+set}" = set; then
40698   echo $ECHO_N "(cached) $ECHO_C" >&6
40699 else
40700   case "$MSGFMT" in
40701   [\\/]* | ?:[\\/]*)
40702     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
40703     ;;
40704   *)
40705     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
40706     for ac_dir in $PATH; do
40707       IFS="$ac_save_IFS"
40708       test -z "$ac_dir" && ac_dir=.
40709       for ac_exec_ext in '' $ac_executable_extensions; do
40710         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
40711           echo "$as_me: trying $ac_dir/$ac_word..." >&5
40712           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
40713      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
40714             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
40715             break 2
40716           fi
40717         fi
40718       done
40719     done
40720     IFS="$ac_save_IFS"
40721   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
40722     ;;
40723 esac
40724 fi
40725 MSGFMT="$ac_cv_path_MSGFMT"
40726 if test "$MSGFMT" != ":"; then
40727   { echo "$as_me:$LINENO: result: $MSGFMT" >&5
40728 echo "${ECHO_T}$MSGFMT" >&6; }
40729 else
40730   { echo "$as_me:$LINENO: result: no" >&5
40731 echo "${ECHO_T}no" >&6; }
40732 fi
40733
40734   # Extract the first word of "gmsgfmt", so it can be a program name with args.
40735 set dummy gmsgfmt; ac_word=$2
40736 { echo "$as_me:$LINENO: checking for $ac_word" >&5
40737 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
40738 if test "${ac_cv_path_GMSGFMT+set}" = set; then
40739   echo $ECHO_N "(cached) $ECHO_C" >&6
40740 else
40741   case $GMSGFMT in
40742   [\\/]* | ?:[\\/]*)
40743   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
40744   ;;
40745   *)
40746   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40747 for as_dir in $PATH
40748 do
40749   IFS=$as_save_IFS
40750   test -z "$as_dir" && as_dir=.
40751   for ac_exec_ext in '' $ac_executable_extensions; do
40752   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
40753     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
40754     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40755     break 2
40756   fi
40757 done
40758 done
40759 IFS=$as_save_IFS
40760
40761   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
40762   ;;
40763 esac
40764 fi
40765 GMSGFMT=$ac_cv_path_GMSGFMT
40766 if test -n "$GMSGFMT"; then
40767   { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
40768 echo "${ECHO_T}$GMSGFMT" >&6; }
40769 else
40770   { echo "$as_me:$LINENO: result: no" >&5
40771 echo "${ECHO_T}no" >&6; }
40772 fi
40773
40774
40775
40776     case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
40777     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
40778     *) MSGFMT_015=$MSGFMT ;;
40779   esac
40780
40781   case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
40782     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
40783     *) GMSGFMT_015=$GMSGFMT ;;
40784   esac
40785
40786
40787
40788 # Prepare PATH_SEPARATOR.
40789 # The user is always right.
40790 if test "${PATH_SEPARATOR+set}" != set; then
40791   echo "#! /bin/sh" >conf$$.sh
40792   echo  "exit 0"   >>conf$$.sh
40793   chmod +x conf$$.sh
40794   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
40795     PATH_SEPARATOR=';'
40796   else
40797     PATH_SEPARATOR=:
40798   fi
40799   rm -f conf$$.sh
40800 fi
40801
40802 # Find out how to test for executable files. Don't use a zero-byte file,
40803 # as systems may use methods other than mode bits to determine executability.
40804 cat >conf$$.file <<_ASEOF
40805 #! /bin/sh
40806 exit 0
40807 _ASEOF
40808 chmod +x conf$$.file
40809 if test -x conf$$.file >/dev/null 2>&1; then
40810   ac_executable_p="test -x"
40811 else
40812   ac_executable_p="test -f"
40813 fi
40814 rm -f conf$$.file
40815
40816 # Extract the first word of "xgettext", so it can be a program name with args.
40817 set dummy xgettext; ac_word=$2
40818 { echo "$as_me:$LINENO: checking for $ac_word" >&5
40819 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
40820 if test "${ac_cv_path_XGETTEXT+set}" = set; then
40821   echo $ECHO_N "(cached) $ECHO_C" >&6
40822 else
40823   case "$XGETTEXT" in
40824   [\\/]* | ?:[\\/]*)
40825     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
40826     ;;
40827   *)
40828     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
40829     for ac_dir in $PATH; do
40830       IFS="$ac_save_IFS"
40831       test -z "$ac_dir" && ac_dir=.
40832       for ac_exec_ext in '' $ac_executable_extensions; do
40833         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
40834           echo "$as_me: trying $ac_dir/$ac_word..." >&5
40835           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
40836      (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
40837             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
40838             break 2
40839           fi
40840         fi
40841       done
40842     done
40843     IFS="$ac_save_IFS"
40844   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
40845     ;;
40846 esac
40847 fi
40848 XGETTEXT="$ac_cv_path_XGETTEXT"
40849 if test "$XGETTEXT" != ":"; then
40850   { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
40851 echo "${ECHO_T}$XGETTEXT" >&6; }
40852 else
40853   { echo "$as_me:$LINENO: result: no" >&5
40854 echo "${ECHO_T}no" >&6; }
40855 fi
40856
40857     rm -f messages.po
40858
40859     case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
40860     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
40861     *) XGETTEXT_015=$XGETTEXT ;;
40862   esac
40863
40864
40865
40866 # Prepare PATH_SEPARATOR.
40867 # The user is always right.
40868 if test "${PATH_SEPARATOR+set}" != set; then
40869   echo "#! /bin/sh" >conf$$.sh
40870   echo  "exit 0"   >>conf$$.sh
40871   chmod +x conf$$.sh
40872   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
40873     PATH_SEPARATOR=';'
40874   else
40875     PATH_SEPARATOR=:
40876   fi
40877   rm -f conf$$.sh
40878 fi
40879
40880 # Find out how to test for executable files. Don't use a zero-byte file,
40881 # as systems may use methods other than mode bits to determine executability.
40882 cat >conf$$.file <<_ASEOF
40883 #! /bin/sh
40884 exit 0
40885 _ASEOF
40886 chmod +x conf$$.file
40887 if test -x conf$$.file >/dev/null 2>&1; then
40888   ac_executable_p="test -x"
40889 else
40890   ac_executable_p="test -f"
40891 fi
40892 rm -f conf$$.file
40893
40894 # Extract the first word of "msgmerge", so it can be a program name with args.
40895 set dummy msgmerge; ac_word=$2
40896 { echo "$as_me:$LINENO: checking for $ac_word" >&5
40897 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
40898 if test "${ac_cv_path_MSGMERGE+set}" = set; then
40899   echo $ECHO_N "(cached) $ECHO_C" >&6
40900 else
40901   case "$MSGMERGE" in
40902   [\\/]* | ?:[\\/]*)
40903     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
40904     ;;
40905   *)
40906     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
40907     for ac_dir in $PATH; do
40908       IFS="$ac_save_IFS"
40909       test -z "$ac_dir" && ac_dir=.
40910       for ac_exec_ext in '' $ac_executable_extensions; do
40911         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
40912           echo "$as_me: trying $ac_dir/$ac_word..." >&5
40913           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
40914             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
40915             break 2
40916           fi
40917         fi
40918       done
40919     done
40920     IFS="$ac_save_IFS"
40921   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
40922     ;;
40923 esac
40924 fi
40925 MSGMERGE="$ac_cv_path_MSGMERGE"
40926 if test "$MSGMERGE" != ":"; then
40927   { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
40928 echo "${ECHO_T}$MSGMERGE" >&6; }
40929 else
40930   { echo "$as_me:$LINENO: result: no" >&5
40931 echo "${ECHO_T}no" >&6; }
40932 fi
40933
40934
40935         test -n "$localedir" || localedir='${datadir}/locale'
40936
40937
40938     test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
40939
40940
40941   ac_config_commands="$ac_config_commands po-directories"
40942
40943
40944
40945
40946
40947
40948
40949
40950
40951
40952
40953
40954
40955
40956
40957
40958
40959
40960
40961
40962
40963
40964
40965
40966
40967     { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
40968 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
40969 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
40970   echo $ECHO_N "(cached) $ECHO_C" >&6
40971 else
40972   gt_save_LIBS="$LIBS"
40973      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
40974      cat >conftest.$ac_ext <<_ACEOF
40975 /* confdefs.h.  */
40976 _ACEOF
40977 cat confdefs.h >>conftest.$ac_ext
40978 cat >>conftest.$ac_ext <<_ACEOF
40979 /* end confdefs.h.  */
40980 #include <CoreFoundation/CFPreferences.h>
40981 int
40982 main ()
40983 {
40984 CFPreferencesCopyAppValue(NULL, NULL)
40985   ;
40986   return 0;
40987 }
40988 _ACEOF
40989 rm -f conftest.$ac_objext conftest$ac_exeext
40990 if { (ac_try="$ac_link"
40991 case "(($ac_try" in
40992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40993   *) ac_try_echo=$ac_try;;
40994 esac
40995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40996   (eval "$ac_link") 2>conftest.er1
40997   ac_status=$?
40998   grep -v '^ *+' conftest.er1 >conftest.err
40999   rm -f conftest.er1
41000   cat conftest.err >&5
41001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41002   (exit $ac_status); } && {
41003          test -z "$ac_c_werror_flag" ||
41004          test ! -s conftest.err
41005        } && test -s conftest$ac_exeext &&
41006        $as_test_x conftest$ac_exeext; then
41007   gt_cv_func_CFPreferencesCopyAppValue=yes
41008 else
41009   echo "$as_me: failed program was:" >&5
41010 sed 's/^/| /' conftest.$ac_ext >&5
41011
41012         gt_cv_func_CFPreferencesCopyAppValue=no
41013 fi
41014
41015 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41016       conftest$ac_exeext conftest.$ac_ext
41017      LIBS="$gt_save_LIBS"
41018 fi
41019 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
41020 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
41021   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
41022
41023 cat >>confdefs.h <<\_ACEOF
41024 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
41025 _ACEOF
41026
41027   fi
41028     { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
41029 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
41030 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
41031   echo $ECHO_N "(cached) $ECHO_C" >&6
41032 else
41033   gt_save_LIBS="$LIBS"
41034      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
41035      cat >conftest.$ac_ext <<_ACEOF
41036 /* confdefs.h.  */
41037 _ACEOF
41038 cat confdefs.h >>conftest.$ac_ext
41039 cat >>conftest.$ac_ext <<_ACEOF
41040 /* end confdefs.h.  */
41041 #include <CoreFoundation/CFLocale.h>
41042 int
41043 main ()
41044 {
41045 CFLocaleCopyCurrent();
41046   ;
41047   return 0;
41048 }
41049 _ACEOF
41050 rm -f conftest.$ac_objext conftest$ac_exeext
41051 if { (ac_try="$ac_link"
41052 case "(($ac_try" in
41053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41054   *) ac_try_echo=$ac_try;;
41055 esac
41056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41057   (eval "$ac_link") 2>conftest.er1
41058   ac_status=$?
41059   grep -v '^ *+' conftest.er1 >conftest.err
41060   rm -f conftest.er1
41061   cat conftest.err >&5
41062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41063   (exit $ac_status); } && {
41064          test -z "$ac_c_werror_flag" ||
41065          test ! -s conftest.err
41066        } && test -s conftest$ac_exeext &&
41067        $as_test_x conftest$ac_exeext; then
41068   gt_cv_func_CFLocaleCopyCurrent=yes
41069 else
41070   echo "$as_me: failed program was:" >&5
41071 sed 's/^/| /' conftest.$ac_ext >&5
41072
41073         gt_cv_func_CFLocaleCopyCurrent=no
41074 fi
41075
41076 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41077       conftest$ac_exeext conftest.$ac_ext
41078      LIBS="$gt_save_LIBS"
41079 fi
41080 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
41081 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
41082   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
41083
41084 cat >>confdefs.h <<\_ACEOF
41085 #define HAVE_CFLOCALECOPYCURRENT 1
41086 _ACEOF
41087
41088   fi
41089   INTL_MACOSX_LIBS=
41090   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
41091     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
41092   fi
41093
41094
41095
41096
41097
41098
41099   LIBINTL=
41100   LTLIBINTL=
41101   POSUB=
41102
41103     case " $gt_needs " in
41104     *" need-formatstring-macros "*) gt_api_version=3 ;;
41105     *" need-ngettext "*) gt_api_version=2 ;;
41106     *) gt_api_version=1 ;;
41107   esac
41108   gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
41109   gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
41110
41111     if test "$USE_NLS" = "yes"; then
41112     gt_use_preinstalled_gnugettext=no
41113
41114
41115         if test $gt_api_version -ge 3; then
41116           gt_revision_test_code='
41117 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
41118 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
41119 #endif
41120 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
41121 '
41122         else
41123           gt_revision_test_code=
41124         fi
41125         if test $gt_api_version -ge 2; then
41126           gt_expression_test_code=' + * ngettext ("", "", 0)'
41127         else
41128           gt_expression_test_code=
41129         fi
41130
41131         { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
41132 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
41133 if { as_var=$gt_func_gnugettext_libc; eval "test \"\${$as_var+set}\" = set"; }; then
41134   echo $ECHO_N "(cached) $ECHO_C" >&6
41135 else
41136   cat >conftest.$ac_ext <<_ACEOF
41137 /* confdefs.h.  */
41138 _ACEOF
41139 cat confdefs.h >>conftest.$ac_ext
41140 cat >>conftest.$ac_ext <<_ACEOF
41141 /* end confdefs.h.  */
41142 #include <libintl.h>
41143 $gt_revision_test_code
41144 extern int _nl_msg_cat_cntr;
41145 extern int *_nl_domain_bindings;
41146 int
41147 main ()
41148 {
41149 bindtextdomain ("", "");
41150 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
41151   ;
41152   return 0;
41153 }
41154 _ACEOF
41155 rm -f conftest.$ac_objext conftest$ac_exeext
41156 if { (ac_try="$ac_link"
41157 case "(($ac_try" in
41158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41159   *) ac_try_echo=$ac_try;;
41160 esac
41161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41162   (eval "$ac_link") 2>conftest.er1
41163   ac_status=$?
41164   grep -v '^ *+' conftest.er1 >conftest.err
41165   rm -f conftest.er1
41166   cat conftest.err >&5
41167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41168   (exit $ac_status); } && {
41169          test -z "$ac_c_werror_flag" ||
41170          test ! -s conftest.err
41171        } && test -s conftest$ac_exeext &&
41172        $as_test_x conftest$ac_exeext; then
41173   eval "$gt_func_gnugettext_libc=yes"
41174 else
41175   echo "$as_me: failed program was:" >&5
41176 sed 's/^/| /' conftest.$ac_ext >&5
41177
41178         eval "$gt_func_gnugettext_libc=no"
41179 fi
41180
41181 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41182       conftest$ac_exeext conftest.$ac_ext
41183 fi
41184 ac_res=`eval echo '${'$gt_func_gnugettext_libc'}'`
41185                { echo "$as_me:$LINENO: result: $ac_res" >&5
41186 echo "${ECHO_T}$ac_res" >&6; }
41187
41188         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
41189
41190
41191
41192
41193
41194           am_save_CPPFLAGS="$CPPFLAGS"
41195
41196   for element in $INCICONV; do
41197     haveit=
41198     for x in $CPPFLAGS; do
41199
41200   acl_save_prefix="$prefix"
41201   prefix="$acl_final_prefix"
41202   acl_save_exec_prefix="$exec_prefix"
41203   exec_prefix="$acl_final_exec_prefix"
41204   eval x=\"$x\"
41205   exec_prefix="$acl_save_exec_prefix"
41206   prefix="$acl_save_prefix"
41207
41208       if test "X$x" = "X$element"; then
41209         haveit=yes
41210         break
41211       fi
41212     done
41213     if test -z "$haveit"; then
41214       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
41215     fi
41216   done
41217
41218
41219   { echo "$as_me:$LINENO: checking for iconv" >&5
41220 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
41221 if test "${am_cv_func_iconv+set}" = set; then
41222   echo $ECHO_N "(cached) $ECHO_C" >&6
41223 else
41224
41225     am_cv_func_iconv="no, consider installing GNU libiconv"
41226     am_cv_lib_iconv=no
41227     cat >conftest.$ac_ext <<_ACEOF
41228 /* confdefs.h.  */
41229 _ACEOF
41230 cat confdefs.h >>conftest.$ac_ext
41231 cat >>conftest.$ac_ext <<_ACEOF
41232 /* end confdefs.h.  */
41233 #include <stdlib.h>
41234 #include <iconv.h>
41235 int
41236 main ()
41237 {
41238 iconv_t cd = iconv_open("","");
41239        iconv(cd,NULL,NULL,NULL,NULL);
41240        iconv_close(cd);
41241   ;
41242   return 0;
41243 }
41244 _ACEOF
41245 rm -f conftest.$ac_objext conftest$ac_exeext
41246 if { (ac_try="$ac_link"
41247 case "(($ac_try" in
41248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41249   *) ac_try_echo=$ac_try;;
41250 esac
41251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41252   (eval "$ac_link") 2>conftest.er1
41253   ac_status=$?
41254   grep -v '^ *+' conftest.er1 >conftest.err
41255   rm -f conftest.er1
41256   cat conftest.err >&5
41257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41258   (exit $ac_status); } && {
41259          test -z "$ac_c_werror_flag" ||
41260          test ! -s conftest.err
41261        } && test -s conftest$ac_exeext &&
41262        $as_test_x conftest$ac_exeext; then
41263   am_cv_func_iconv=yes
41264 else
41265   echo "$as_me: failed program was:" >&5
41266 sed 's/^/| /' conftest.$ac_ext >&5
41267
41268
41269 fi
41270
41271 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41272       conftest$ac_exeext conftest.$ac_ext
41273     if test "$am_cv_func_iconv" != yes; then
41274       am_save_LIBS="$LIBS"
41275       LIBS="$LIBS $LIBICONV"
41276       cat >conftest.$ac_ext <<_ACEOF
41277 /* confdefs.h.  */
41278 _ACEOF
41279 cat confdefs.h >>conftest.$ac_ext
41280 cat >>conftest.$ac_ext <<_ACEOF
41281 /* end confdefs.h.  */
41282 #include <stdlib.h>
41283 #include <iconv.h>
41284 int
41285 main ()
41286 {
41287 iconv_t cd = iconv_open("","");
41288          iconv(cd,NULL,NULL,NULL,NULL);
41289          iconv_close(cd);
41290   ;
41291   return 0;
41292 }
41293 _ACEOF
41294 rm -f conftest.$ac_objext conftest$ac_exeext
41295 if { (ac_try="$ac_link"
41296 case "(($ac_try" in
41297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41298   *) ac_try_echo=$ac_try;;
41299 esac
41300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41301   (eval "$ac_link") 2>conftest.er1
41302   ac_status=$?
41303   grep -v '^ *+' conftest.er1 >conftest.err
41304   rm -f conftest.er1
41305   cat conftest.err >&5
41306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41307   (exit $ac_status); } && {
41308          test -z "$ac_c_werror_flag" ||
41309          test ! -s conftest.err
41310        } && test -s conftest$ac_exeext &&
41311        $as_test_x conftest$ac_exeext; then
41312   am_cv_lib_iconv=yes
41313         am_cv_func_iconv=yes
41314 else
41315   echo "$as_me: failed program was:" >&5
41316 sed 's/^/| /' conftest.$ac_ext >&5
41317
41318
41319 fi
41320
41321 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41322       conftest$ac_exeext conftest.$ac_ext
41323       LIBS="$am_save_LIBS"
41324     fi
41325
41326 fi
41327 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
41328 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
41329   if test "$am_cv_func_iconv" = yes; then
41330     { echo "$as_me:$LINENO: checking for working iconv" >&5
41331 echo $ECHO_N "checking for working iconv... $ECHO_C" >&6; }
41332 if test "${am_cv_func_iconv_works+set}" = set; then
41333   echo $ECHO_N "(cached) $ECHO_C" >&6
41334 else
41335
41336             am_save_LIBS="$LIBS"
41337       if test $am_cv_lib_iconv = yes; then
41338         LIBS="$LIBS $LIBICONV"
41339       fi
41340       if test "$cross_compiling" = yes; then
41341   case "$host_os" in
41342            aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
41343            *)            am_cv_func_iconv_works="guessing yes" ;;
41344          esac
41345 else
41346   cat >conftest.$ac_ext <<_ACEOF
41347 /* confdefs.h.  */
41348 _ACEOF
41349 cat confdefs.h >>conftest.$ac_ext
41350 cat >>conftest.$ac_ext <<_ACEOF
41351 /* end confdefs.h.  */
41352
41353 #include <iconv.h>
41354 #include <string.h>
41355 int main ()
41356 {
41357   /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
41358      returns.  */
41359   {
41360     iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
41361     if (cd_utf8_to_88591 != (iconv_t)(-1))
41362       {
41363         static const char input[] = "\342\202\254"; /* EURO SIGN */
41364         char buf[10];
41365         const char *inptr = input;
41366         size_t inbytesleft = strlen (input);
41367         char *outptr = buf;
41368         size_t outbytesleft = sizeof (buf);
41369         size_t res = iconv (cd_utf8_to_88591,
41370                             (char **) &inptr, &inbytesleft,
41371                             &outptr, &outbytesleft);
41372         if (res == 0)
41373           return 1;
41374       }
41375   }
41376 #if 0 /* This bug could be worked around by the caller.  */
41377   /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
41378   {
41379     iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
41380     if (cd_88591_to_utf8 != (iconv_t)(-1))
41381       {
41382         static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
41383         char buf[50];
41384         const char *inptr = input;
41385         size_t inbytesleft = strlen (input);
41386         char *outptr = buf;
41387         size_t outbytesleft = sizeof (buf);
41388         size_t res = iconv (cd_88591_to_utf8,
41389                             (char **) &inptr, &inbytesleft,
41390                             &outptr, &outbytesleft);
41391         if ((int)res > 0)
41392           return 1;
41393       }
41394   }
41395 #endif
41396   /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
41397      provided.  */
41398   if (/* Try standardized names.  */
41399       iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
41400       /* Try IRIX, OSF/1 names.  */
41401       && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
41402       /* Try AIX names.  */
41403       && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
41404       /* Try HP-UX names.  */
41405       && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
41406     return 1;
41407   return 0;
41408 }
41409 _ACEOF
41410 rm -f conftest$ac_exeext
41411 if { (ac_try="$ac_link"
41412 case "(($ac_try" in
41413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41414   *) ac_try_echo=$ac_try;;
41415 esac
41416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41417   (eval "$ac_link") 2>&5
41418   ac_status=$?
41419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41420   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
41421   { (case "(($ac_try" in
41422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41423   *) ac_try_echo=$ac_try;;
41424 esac
41425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41426   (eval "$ac_try") 2>&5
41427   ac_status=$?
41428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41429   (exit $ac_status); }; }; then
41430   am_cv_func_iconv_works=yes
41431 else
41432   echo "$as_me: program exited with status $ac_status" >&5
41433 echo "$as_me: failed program was:" >&5
41434 sed 's/^/| /' conftest.$ac_ext >&5
41435
41436 ( exit $ac_status )
41437 am_cv_func_iconv_works=no
41438 fi
41439 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
41440 fi
41441
41442
41443       LIBS="$am_save_LIBS"
41444
41445 fi
41446 { echo "$as_me:$LINENO: result: $am_cv_func_iconv_works" >&5
41447 echo "${ECHO_T}$am_cv_func_iconv_works" >&6; }
41448     case "$am_cv_func_iconv_works" in
41449       *no) am_func_iconv=no am_cv_lib_iconv=no ;;
41450       *)   am_func_iconv=yes ;;
41451     esac
41452   else
41453     am_func_iconv=no am_cv_lib_iconv=no
41454   fi
41455   if test "$am_func_iconv" = yes; then
41456
41457 cat >>confdefs.h <<\_ACEOF
41458 #define HAVE_ICONV 1
41459 _ACEOF
41460
41461   fi
41462   if test "$am_cv_lib_iconv" = yes; then
41463     { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
41464 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
41465     { echo "$as_me:$LINENO: result: $LIBICONV" >&5
41466 echo "${ECHO_T}$LIBICONV" >&6; }
41467   else
41468             CPPFLAGS="$am_save_CPPFLAGS"
41469     LIBICONV=
41470     LTLIBICONV=
41471   fi
41472
41473
41474
41475
41476
41477
41478
41479
41480
41481
41482
41483     use_additional=yes
41484
41485   acl_save_prefix="$prefix"
41486   prefix="$acl_final_prefix"
41487   acl_save_exec_prefix="$exec_prefix"
41488   exec_prefix="$acl_final_exec_prefix"
41489
41490     eval additional_includedir=\"$includedir\"
41491     eval additional_libdir=\"$libdir\"
41492
41493   exec_prefix="$acl_save_exec_prefix"
41494   prefix="$acl_save_prefix"
41495
41496
41497 # Check whether --with-libintl-prefix was given.
41498 if test "${with_libintl_prefix+set}" = set; then
41499   withval=$with_libintl_prefix;
41500     if test "X$withval" = "Xno"; then
41501       use_additional=no
41502     else
41503       if test "X$withval" = "X"; then
41504
41505   acl_save_prefix="$prefix"
41506   prefix="$acl_final_prefix"
41507   acl_save_exec_prefix="$exec_prefix"
41508   exec_prefix="$acl_final_exec_prefix"
41509
41510           eval additional_includedir=\"$includedir\"
41511           eval additional_libdir=\"$libdir\"
41512
41513   exec_prefix="$acl_save_exec_prefix"
41514   prefix="$acl_save_prefix"
41515
41516       else
41517         additional_includedir="$withval/include"
41518         additional_libdir="$withval/$acl_libdirstem"
41519         if test "$acl_libdirstem2" != "$acl_libdirstem" \
41520            && ! test -d "$withval/$acl_libdirstem"; then
41521           additional_libdir="$withval/$acl_libdirstem2"
41522         fi
41523       fi
41524     fi
41525
41526 fi
41527
41528       LIBINTL=
41529   LTLIBINTL=
41530   INCINTL=
41531   LIBINTL_PREFIX=
41532   rpathdirs=
41533   ltrpathdirs=
41534   names_already_handled=
41535   names_next_round='intl '
41536   while test -n "$names_next_round"; do
41537     names_this_round="$names_next_round"
41538     names_next_round=
41539     for name in $names_this_round; do
41540       already_handled=
41541       for n in $names_already_handled; do
41542         if test "$n" = "$name"; then
41543           already_handled=yes
41544           break
41545         fi
41546       done
41547       if test -z "$already_handled"; then
41548         names_already_handled="$names_already_handled $name"
41549                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
41550         eval value=\"\$HAVE_LIB$uppername\"
41551         if test -n "$value"; then
41552           if test "$value" = yes; then
41553             eval value=\"\$LIB$uppername\"
41554             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
41555             eval value=\"\$LTLIB$uppername\"
41556             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
41557           else
41558                                     :
41559           fi
41560         else
41561                               found_dir=
41562           found_la=
41563           found_so=
41564           found_a=
41565           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
41566           if test -n "$acl_shlibext"; then
41567             shrext=".$acl_shlibext"             # typically: shrext=.so
41568           else
41569             shrext=
41570           fi
41571           if test $use_additional = yes; then
41572             dir="$additional_libdir"
41573                                     if test -n "$acl_shlibext"; then
41574               if test -f "$dir/$libname$shrext"; then
41575                 found_dir="$dir"
41576                 found_so="$dir/$libname$shrext"
41577               else
41578                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
41579                   ver=`(cd "$dir" && \
41580                         for f in "$libname$shrext".*; do echo "$f"; done \
41581                         | sed -e "s,^$libname$shrext\\\\.,," \
41582                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
41583                         | sed 1q ) 2>/dev/null`
41584                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
41585                     found_dir="$dir"
41586                     found_so="$dir/$libname$shrext.$ver"
41587                   fi
41588                 else
41589                   eval library_names=\"$acl_library_names_spec\"
41590                   for f in $library_names; do
41591                     if test -f "$dir/$f"; then
41592                       found_dir="$dir"
41593                       found_so="$dir/$f"
41594                       break
41595                     fi
41596                   done
41597                 fi
41598               fi
41599             fi
41600                         if test "X$found_dir" = "X"; then
41601               if test -f "$dir/$libname.$acl_libext"; then
41602                 found_dir="$dir"
41603                 found_a="$dir/$libname.$acl_libext"
41604               fi
41605             fi
41606             if test "X$found_dir" != "X"; then
41607               if test -f "$dir/$libname.la"; then
41608                 found_la="$dir/$libname.la"
41609               fi
41610             fi
41611           fi
41612           if test "X$found_dir" = "X"; then
41613             for x in $LDFLAGS $LTLIBINTL; do
41614
41615   acl_save_prefix="$prefix"
41616   prefix="$acl_final_prefix"
41617   acl_save_exec_prefix="$exec_prefix"
41618   exec_prefix="$acl_final_exec_prefix"
41619   eval x=\"$x\"
41620   exec_prefix="$acl_save_exec_prefix"
41621   prefix="$acl_save_prefix"
41622
41623               case "$x" in
41624                 -L*)
41625                   dir=`echo "X$x" | sed -e 's/^X-L//'`
41626                                     if test -n "$acl_shlibext"; then
41627                     if test -f "$dir/$libname$shrext"; then
41628                       found_dir="$dir"
41629                       found_so="$dir/$libname$shrext"
41630                     else
41631                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
41632                         ver=`(cd "$dir" && \
41633                               for f in "$libname$shrext".*; do echo "$f"; done \
41634                               | sed -e "s,^$libname$shrext\\\\.,," \
41635                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
41636                               | sed 1q ) 2>/dev/null`
41637                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
41638                           found_dir="$dir"
41639                           found_so="$dir/$libname$shrext.$ver"
41640                         fi
41641                       else
41642                         eval library_names=\"$acl_library_names_spec\"
41643                         for f in $library_names; do
41644                           if test -f "$dir/$f"; then
41645                             found_dir="$dir"
41646                             found_so="$dir/$f"
41647                             break
41648                           fi
41649                         done
41650                       fi
41651                     fi
41652                   fi
41653                                     if test "X$found_dir" = "X"; then
41654                     if test -f "$dir/$libname.$acl_libext"; then
41655                       found_dir="$dir"
41656                       found_a="$dir/$libname.$acl_libext"
41657                     fi
41658                   fi
41659                   if test "X$found_dir" != "X"; then
41660                     if test -f "$dir/$libname.la"; then
41661                       found_la="$dir/$libname.la"
41662                     fi
41663                   fi
41664                   ;;
41665               esac
41666               if test "X$found_dir" != "X"; then
41667                 break
41668               fi
41669             done
41670           fi
41671           if test "X$found_dir" != "X"; then
41672                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
41673             if test "X$found_so" != "X"; then
41674                                                         if test "$enable_rpath" = no \
41675                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
41676                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
41677                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
41678               else
41679                                                                                 haveit=
41680                 for x in $ltrpathdirs; do
41681                   if test "X$x" = "X$found_dir"; then
41682                     haveit=yes
41683                     break
41684                   fi
41685                 done
41686                 if test -z "$haveit"; then
41687                   ltrpathdirs="$ltrpathdirs $found_dir"
41688                 fi
41689                                 if test "$acl_hardcode_direct" = yes; then
41690                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
41691                 else
41692                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
41693                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
41694                                                             haveit=
41695                     for x in $rpathdirs; do
41696                       if test "X$x" = "X$found_dir"; then
41697                         haveit=yes
41698                         break
41699                       fi
41700                     done
41701                     if test -z "$haveit"; then
41702                       rpathdirs="$rpathdirs $found_dir"
41703                     fi
41704                   else
41705                                                                                 haveit=
41706                     for x in $LDFLAGS $LIBINTL; do
41707
41708   acl_save_prefix="$prefix"
41709   prefix="$acl_final_prefix"
41710   acl_save_exec_prefix="$exec_prefix"
41711   exec_prefix="$acl_final_exec_prefix"
41712   eval x=\"$x\"
41713   exec_prefix="$acl_save_exec_prefix"
41714   prefix="$acl_save_prefix"
41715
41716                       if test "X$x" = "X-L$found_dir"; then
41717                         haveit=yes
41718                         break
41719                       fi
41720                     done
41721                     if test -z "$haveit"; then
41722                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
41723                     fi
41724                     if test "$acl_hardcode_minus_L" != no; then
41725                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
41726                     else
41727                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
41728                     fi
41729                   fi
41730                 fi
41731               fi
41732             else
41733               if test "X$found_a" != "X"; then
41734                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
41735               else
41736                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
41737               fi
41738             fi
41739                         additional_includedir=
41740             case "$found_dir" in
41741               */$acl_libdirstem | */$acl_libdirstem/)
41742                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
41743                 if test "$name" = 'intl'; then
41744                   LIBINTL_PREFIX="$basedir"
41745                 fi
41746                 additional_includedir="$basedir/include"
41747                 ;;
41748               */$acl_libdirstem2 | */$acl_libdirstem2/)
41749                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
41750                 if test "$name" = 'intl'; then
41751                   LIBINTL_PREFIX="$basedir"
41752                 fi
41753                 additional_includedir="$basedir/include"
41754                 ;;
41755             esac
41756             if test "X$additional_includedir" != "X"; then
41757                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
41758                 haveit=
41759                 if test "X$additional_includedir" = "X/usr/local/include"; then
41760                   if test -n "$GCC"; then
41761                     case $host_os in
41762                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
41763                     esac
41764                   fi
41765                 fi
41766                 if test -z "$haveit"; then
41767                   for x in $CPPFLAGS $INCINTL; do
41768
41769   acl_save_prefix="$prefix"
41770   prefix="$acl_final_prefix"
41771   acl_save_exec_prefix="$exec_prefix"
41772   exec_prefix="$acl_final_exec_prefix"
41773   eval x=\"$x\"
41774   exec_prefix="$acl_save_exec_prefix"
41775   prefix="$acl_save_prefix"
41776
41777                     if test "X$x" = "X-I$additional_includedir"; then
41778                       haveit=yes
41779                       break
41780                     fi
41781                   done
41782                   if test -z "$haveit"; then
41783                     if test -d "$additional_includedir"; then
41784                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
41785                     fi
41786                   fi
41787                 fi
41788               fi
41789             fi
41790                         if test -n "$found_la"; then
41791                                                         save_libdir="$libdir"
41792               case "$found_la" in
41793                 */* | *\\*) . "$found_la" ;;
41794                 *) . "./$found_la" ;;
41795               esac
41796               libdir="$save_libdir"
41797                             for dep in $dependency_libs; do
41798                 case "$dep" in
41799                   -L*)
41800                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
41801                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
41802                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
41803                       haveit=
41804                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
41805                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
41806                         if test -n "$GCC"; then
41807                           case $host_os in
41808                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
41809                           esac
41810                         fi
41811                       fi
41812                       if test -z "$haveit"; then
41813                         haveit=
41814                         for x in $LDFLAGS $LIBINTL; do
41815
41816   acl_save_prefix="$prefix"
41817   prefix="$acl_final_prefix"
41818   acl_save_exec_prefix="$exec_prefix"
41819   exec_prefix="$acl_final_exec_prefix"
41820   eval x=\"$x\"
41821   exec_prefix="$acl_save_exec_prefix"
41822   prefix="$acl_save_prefix"
41823
41824                           if test "X$x" = "X-L$additional_libdir"; then
41825                             haveit=yes
41826                             break
41827                           fi
41828                         done
41829                         if test -z "$haveit"; then
41830                           if test -d "$additional_libdir"; then
41831                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
41832                           fi
41833                         fi
41834                         haveit=
41835                         for x in $LDFLAGS $LTLIBINTL; do
41836
41837   acl_save_prefix="$prefix"
41838   prefix="$acl_final_prefix"
41839   acl_save_exec_prefix="$exec_prefix"
41840   exec_prefix="$acl_final_exec_prefix"
41841   eval x=\"$x\"
41842   exec_prefix="$acl_save_exec_prefix"
41843   prefix="$acl_save_prefix"
41844
41845                           if test "X$x" = "X-L$additional_libdir"; then
41846                             haveit=yes
41847                             break
41848                           fi
41849                         done
41850                         if test -z "$haveit"; then
41851                           if test -d "$additional_libdir"; then
41852                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
41853                           fi
41854                         fi
41855                       fi
41856                     fi
41857                     ;;
41858                   -R*)
41859                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
41860                     if test "$enable_rpath" != no; then
41861                                                                   haveit=
41862                       for x in $rpathdirs; do
41863                         if test "X$x" = "X$dir"; then
41864                           haveit=yes
41865                           break
41866                         fi
41867                       done
41868                       if test -z "$haveit"; then
41869                         rpathdirs="$rpathdirs $dir"
41870                       fi
41871                                                                   haveit=
41872                       for x in $ltrpathdirs; do
41873                         if test "X$x" = "X$dir"; then
41874                           haveit=yes
41875                           break
41876                         fi
41877                       done
41878                       if test -z "$haveit"; then
41879                         ltrpathdirs="$ltrpathdirs $dir"
41880                       fi
41881                     fi
41882                     ;;
41883                   -l*)
41884                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
41885                     ;;
41886                   *.la)
41887                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
41888                     ;;
41889                   *)
41890                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
41891                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
41892                     ;;
41893                 esac
41894               done
41895             fi
41896           else
41897                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
41898             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
41899           fi
41900         fi
41901       fi
41902     done
41903   done
41904   if test "X$rpathdirs" != "X"; then
41905     if test -n "$acl_hardcode_libdir_separator"; then
41906                         alldirs=
41907       for found_dir in $rpathdirs; do
41908         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
41909       done
41910             acl_save_libdir="$libdir"
41911       libdir="$alldirs"
41912       eval flag=\"$acl_hardcode_libdir_flag_spec\"
41913       libdir="$acl_save_libdir"
41914       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
41915     else
41916             for found_dir in $rpathdirs; do
41917         acl_save_libdir="$libdir"
41918         libdir="$found_dir"
41919         eval flag=\"$acl_hardcode_libdir_flag_spec\"
41920         libdir="$acl_save_libdir"
41921         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
41922       done
41923     fi
41924   fi
41925   if test "X$ltrpathdirs" != "X"; then
41926             for found_dir in $ltrpathdirs; do
41927       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
41928     done
41929   fi
41930
41931
41932
41933
41934
41935
41936           { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
41937 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
41938 if { as_var=$gt_func_gnugettext_libintl; eval "test \"\${$as_var+set}\" = set"; }; then
41939   echo $ECHO_N "(cached) $ECHO_C" >&6
41940 else
41941   gt_save_CPPFLAGS="$CPPFLAGS"
41942             CPPFLAGS="$CPPFLAGS $INCINTL"
41943             gt_save_LIBS="$LIBS"
41944             LIBS="$LIBS $LIBINTL"
41945                         cat >conftest.$ac_ext <<_ACEOF
41946 /* confdefs.h.  */
41947 _ACEOF
41948 cat confdefs.h >>conftest.$ac_ext
41949 cat >>conftest.$ac_ext <<_ACEOF
41950 /* end confdefs.h.  */
41951 #include <libintl.h>
41952 $gt_revision_test_code
41953 extern int _nl_msg_cat_cntr;
41954 extern
41955 #ifdef __cplusplus
41956 "C"
41957 #endif
41958 const char *_nl_expand_alias (const char *);
41959 int
41960 main ()
41961 {
41962 bindtextdomain ("", "");
41963 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
41964   ;
41965   return 0;
41966 }
41967 _ACEOF
41968 rm -f conftest.$ac_objext conftest$ac_exeext
41969 if { (ac_try="$ac_link"
41970 case "(($ac_try" in
41971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41972   *) ac_try_echo=$ac_try;;
41973 esac
41974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41975   (eval "$ac_link") 2>conftest.er1
41976   ac_status=$?
41977   grep -v '^ *+' conftest.er1 >conftest.err
41978   rm -f conftest.er1
41979   cat conftest.err >&5
41980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41981   (exit $ac_status); } && {
41982          test -z "$ac_c_werror_flag" ||
41983          test ! -s conftest.err
41984        } && test -s conftest$ac_exeext &&
41985        $as_test_x conftest$ac_exeext; then
41986   eval "$gt_func_gnugettext_libintl=yes"
41987 else
41988   echo "$as_me: failed program was:" >&5
41989 sed 's/^/| /' conftest.$ac_ext >&5
41990
41991         eval "$gt_func_gnugettext_libintl=no"
41992 fi
41993
41994 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41995       conftest$ac_exeext conftest.$ac_ext
41996                         if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
41997               LIBS="$LIBS $LIBICONV"
41998               cat >conftest.$ac_ext <<_ACEOF
41999 /* confdefs.h.  */
42000 _ACEOF
42001 cat confdefs.h >>conftest.$ac_ext
42002 cat >>conftest.$ac_ext <<_ACEOF
42003 /* end confdefs.h.  */
42004 #include <libintl.h>
42005 $gt_revision_test_code
42006 extern int _nl_msg_cat_cntr;
42007 extern
42008 #ifdef __cplusplus
42009 "C"
42010 #endif
42011 const char *_nl_expand_alias (const char *);
42012 int
42013 main ()
42014 {
42015 bindtextdomain ("", "");
42016 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
42017   ;
42018   return 0;
42019 }
42020 _ACEOF
42021 rm -f conftest.$ac_objext conftest$ac_exeext
42022 if { (ac_try="$ac_link"
42023 case "(($ac_try" in
42024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42025   *) ac_try_echo=$ac_try;;
42026 esac
42027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42028   (eval "$ac_link") 2>conftest.er1
42029   ac_status=$?
42030   grep -v '^ *+' conftest.er1 >conftest.err
42031   rm -f conftest.er1
42032   cat conftest.err >&5
42033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42034   (exit $ac_status); } && {
42035          test -z "$ac_c_werror_flag" ||
42036          test ! -s conftest.err
42037        } && test -s conftest$ac_exeext &&
42038        $as_test_x conftest$ac_exeext; then
42039   LIBINTL="$LIBINTL $LIBICONV"
42040                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
42041                 eval "$gt_func_gnugettext_libintl=yes"
42042
42043 else
42044   echo "$as_me: failed program was:" >&5
42045 sed 's/^/| /' conftest.$ac_ext >&5
42046
42047
42048 fi
42049
42050 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42051       conftest$ac_exeext conftest.$ac_ext
42052             fi
42053             CPPFLAGS="$gt_save_CPPFLAGS"
42054             LIBS="$gt_save_LIBS"
42055 fi
42056 ac_res=`eval echo '${'$gt_func_gnugettext_libintl'}'`
42057                { echo "$as_me:$LINENO: result: $ac_res" >&5
42058 echo "${ECHO_T}$ac_res" >&6; }
42059         fi
42060
42061                                         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
42062            || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
42063                 && test "$PACKAGE" != gettext-runtime \
42064                 && test "$PACKAGE" != gettext-tools; }; then
42065           gt_use_preinstalled_gnugettext=yes
42066         else
42067                     LIBINTL=
42068           LTLIBINTL=
42069           INCINTL=
42070         fi
42071
42072
42073
42074     if test -n "$INTL_MACOSX_LIBS"; then
42075       if test "$gt_use_preinstalled_gnugettext" = "yes" \
42076          || test "$nls_cv_use_gnu_gettext" = "yes"; then
42077                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
42078         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
42079       fi
42080     fi
42081
42082     if test "$gt_use_preinstalled_gnugettext" = "yes" \
42083        || test "$nls_cv_use_gnu_gettext" = "yes"; then
42084
42085 cat >>confdefs.h <<\_ACEOF
42086 #define ENABLE_NLS 1
42087 _ACEOF
42088
42089     else
42090       USE_NLS=no
42091     fi
42092   fi
42093
42094   { echo "$as_me:$LINENO: checking whether to use NLS" >&5
42095 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
42096   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
42097 echo "${ECHO_T}$USE_NLS" >&6; }
42098   if test "$USE_NLS" = "yes"; then
42099     { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
42100 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
42101     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
42102       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
42103         gt_source="external libintl"
42104       else
42105         gt_source="libc"
42106       fi
42107     else
42108       gt_source="included intl directory"
42109     fi
42110     { echo "$as_me:$LINENO: result: $gt_source" >&5
42111 echo "${ECHO_T}$gt_source" >&6; }
42112   fi
42113
42114   if test "$USE_NLS" = "yes"; then
42115
42116     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
42117       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
42118         { echo "$as_me:$LINENO: checking how to link with libintl" >&5
42119 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
42120         { echo "$as_me:$LINENO: result: $LIBINTL" >&5
42121 echo "${ECHO_T}$LIBINTL" >&6; }
42122
42123   for element in $INCINTL; do
42124     haveit=
42125     for x in $CPPFLAGS; do
42126
42127   acl_save_prefix="$prefix"
42128   prefix="$acl_final_prefix"
42129   acl_save_exec_prefix="$exec_prefix"
42130   exec_prefix="$acl_final_exec_prefix"
42131   eval x=\"$x\"
42132   exec_prefix="$acl_save_exec_prefix"
42133   prefix="$acl_save_prefix"
42134
42135       if test "X$x" = "X$element"; then
42136         haveit=yes
42137         break
42138       fi
42139     done
42140     if test -z "$haveit"; then
42141       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
42142     fi
42143   done
42144
42145       fi
42146
42147
42148 cat >>confdefs.h <<\_ACEOF
42149 #define HAVE_GETTEXT 1
42150 _ACEOF
42151
42152
42153 cat >>confdefs.h <<\_ACEOF
42154 #define HAVE_DCGETTEXT 1
42155 _ACEOF
42156
42157     fi
42158
42159         POSUB=po
42160   fi
42161
42162
42163
42164     INTLLIBS="$LIBINTL"
42165
42166
42167
42168
42169
42170
42171
42172
42173 # Initialize the test suite.
42174 ac_config_commands="$ac_config_commands tests/atconfig"
42175
42176
42177 ac_config_files="$ac_config_files tests/Makefile tests/atlocal"
42178  # FIXME: tests/preset?
42179
42180 AUTOM4TE=${AUTOM4TE-"${am_missing_run}autom4te"}
42181
42182
42183
42184
42185 # Check whether --enable-backup-scripts was given.
42186 if test "${enable_backup_scripts+set}" = set; then
42187   enableval=$enable_backup_scripts; case $enableval in
42188                yes) BACKUP_LIBEXEC_SCRIPTS='$(BACKUP_LIBEXEC_SCRIPTS_LIST)'
42189                     BACKUP_SBIN_SCRIPTS='$(BACKUP_SBIN_SCRIPTS_LIST)'
42190                     ;;
42191                esac
42192 fi
42193
42194
42195
42196 if date +%Y-%m-%d 2>/dev/null >&2; then
42197         BACKUP_SED_COND='/^\#ELSE_DATE_FORMAT_OK/,/^\#ENDIF_DATE_FORMAT_OK/d;/^\#IF_DATE_FORMAT_OK/d'
42198 else
42199         BACKUP_SED_COND='/^\#IF_DATE_FORMAT_OK/,/^\#ELSE_DATE_FORMAT_OK/d;/^\#ENDIF_DATE_FORMAT_OK/d'
42200 fi
42201
42202 ac_config_files="$ac_config_files Makefile doc/Makefile lib/Makefile po/Makefile.in scripts/Makefile rmt/Makefile src/Makefile"
42203
42204 cat >confcache <<\_ACEOF
42205 # This file is a shell script that caches the results of configure
42206 # tests run on this system so they can be shared between configure
42207 # scripts and configure runs, see configure's option --config-cache.
42208 # It is not useful on other systems.  If it contains results you don't
42209 # want to keep, you may remove or edit it.
42210 #
42211 # config.status only pays attention to the cache file if you give it
42212 # the --recheck option to rerun configure.
42213 #
42214 # `ac_cv_env_foo' variables (set or unset) will be overridden when
42215 # loading this file, other *unset* `ac_cv_foo' will be assigned the
42216 # following values.
42217
42218 _ACEOF
42219
42220 # The following way of writing the cache mishandles newlines in values,
42221 # but we know of no workaround that is simple, portable, and efficient.
42222 # So, we kill variables containing newlines.
42223 # Ultrix sh set writes to stderr and can't be redirected directly,
42224 # and sets the high bit in the cache file unless we assign to the vars.
42225 (
42226   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
42227     eval ac_val=\$$ac_var
42228     case $ac_val in #(
42229     *${as_nl}*)
42230       case $ac_var in #(
42231       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
42232 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
42233       esac
42234       case $ac_var in #(
42235       _ | IFS | as_nl) ;; #(
42236       *) $as_unset $ac_var ;;
42237       esac ;;
42238     esac
42239   done
42240
42241   (set) 2>&1 |
42242     case $as_nl`(ac_space=' '; set) 2>&1` in #(
42243     *${as_nl}ac_space=\ *)
42244       # `set' does not quote correctly, so add quotes (double-quote
42245       # substitution turns \\\\ into \\, and sed turns \\ into \).
42246       sed -n \
42247         "s/'/'\\\\''/g;
42248           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
42249       ;; #(
42250     *)
42251       # `set' quotes correctly as required by POSIX, so do not add quotes.
42252       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
42253       ;;
42254     esac |
42255     sort
42256 ) |
42257   sed '
42258      /^ac_cv_env_/b end
42259      t clear
42260      :clear
42261      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
42262      t end
42263      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
42264      :end' >>confcache
42265 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
42266   if test -w "$cache_file"; then
42267     test "x$cache_file" != "x/dev/null" &&
42268       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
42269 echo "$as_me: updating cache $cache_file" >&6;}
42270     cat confcache >$cache_file
42271   else
42272     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
42273 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
42274   fi
42275 fi
42276 rm -f confcache
42277
42278 test "x$prefix" = xNONE && prefix=$ac_default_prefix
42279 # Let make expand exec_prefix.
42280 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
42281
42282 DEFS=-DHAVE_CONFIG_H
42283
42284 ac_libobjs=
42285 ac_ltlibobjs=
42286 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
42287   # 1. Remove the extension, and $U if already installed.
42288   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
42289   ac_i=`echo "$ac_i" | sed "$ac_script"`
42290   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
42291   #    will be set to the directory where LIBOBJS objects are built.
42292   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
42293   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
42294 done
42295 LIBOBJS=$ac_libobjs
42296
42297 LTLIBOBJS=$ac_ltlibobjs
42298
42299
42300 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
42301   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
42302 Usually this means the macro was only invoked conditionally." >&5
42303 echo "$as_me: error: conditional \"AMDEP\" was never defined.
42304 Usually this means the macro was only invoked conditionally." >&2;}
42305    { (exit 1); exit 1; }; }
42306 fi
42307 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
42308   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
42309 Usually this means the macro was only invoked conditionally." >&5
42310 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
42311 Usually this means the macro was only invoked conditionally." >&2;}
42312    { (exit 1); exit 1; }; }
42313 fi
42314 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
42315   { { echo "$as_me:$LINENO: error: conditional \"GL_COND_LIBTOOL\" was never defined.
42316 Usually this means the macro was only invoked conditionally." >&5
42317 echo "$as_me: error: conditional \"GL_COND_LIBTOOL\" was never defined.
42318 Usually this means the macro was only invoked conditionally." >&2;}
42319    { (exit 1); exit 1; }; }
42320 fi
42321
42322     gl_libobjs=
42323     gl_ltlibobjs=
42324     if test -n "$gl_LIBOBJS"; then
42325       # Remove the extension.
42326       sed_drop_objext='s/\.o$//;s/\.obj$//'
42327       for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
42328         gl_libobjs="$gl_libobjs $i.$ac_objext"
42329         gl_ltlibobjs="$gl_ltlibobjs $i.lo"
42330       done
42331     fi
42332     gl_LIBOBJS=$gl_libobjs
42333
42334     gl_LTLIBOBJS=$gl_ltlibobjs
42335
42336
42337
42338     gltests_libobjs=
42339     gltests_ltlibobjs=
42340     if test -n "$gltests_LIBOBJS"; then
42341       # Remove the extension.
42342       sed_drop_objext='s/\.o$//;s/\.obj$//'
42343       for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
42344         gltests_libobjs="$gltests_libobjs $i.$ac_objext"
42345         gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
42346       done
42347     fi
42348     gltests_LIBOBJS=$gltests_libobjs
42349
42350     gltests_LTLIBOBJS=$gltests_ltlibobjs
42351
42352
42353
42354 : ${CONFIG_STATUS=./config.status}
42355 ac_clean_files_save=$ac_clean_files
42356 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
42357 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
42358 echo "$as_me: creating $CONFIG_STATUS" >&6;}
42359 cat >$CONFIG_STATUS <<_ACEOF
42360 #! $SHELL
42361 # Generated by $as_me.
42362 # Run this file to recreate the current configuration.
42363 # Compiler output produced by configure, useful for debugging
42364 # configure, is in config.log if it exists.
42365
42366 debug=false
42367 ac_cs_recheck=false
42368 ac_cs_silent=false
42369 SHELL=\${CONFIG_SHELL-$SHELL}
42370 _ACEOF
42371
42372 cat >>$CONFIG_STATUS <<\_ACEOF
42373 ## --------------------- ##
42374 ## M4sh Initialization.  ##
42375 ## --------------------- ##
42376
42377 # Be more Bourne compatible
42378 DUALCASE=1; export DUALCASE # for MKS sh
42379 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
42380   emulate sh
42381   NULLCMD=:
42382   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
42383   # is contrary to our usage.  Disable this feature.
42384   alias -g '${1+"$@"}'='"$@"'
42385   setopt NO_GLOB_SUBST
42386 else
42387   case `(set -o) 2>/dev/null` in
42388   *posix*) set -o posix ;;
42389 esac
42390
42391 fi
42392
42393
42394
42395
42396 # PATH needs CR
42397 # Avoid depending upon Character Ranges.
42398 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
42399 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
42400 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
42401 as_cr_digits='0123456789'
42402 as_cr_alnum=$as_cr_Letters$as_cr_digits
42403
42404 # The user is always right.
42405 if test "${PATH_SEPARATOR+set}" != set; then
42406   echo "#! /bin/sh" >conf$$.sh
42407   echo  "exit 0"   >>conf$$.sh
42408   chmod +x conf$$.sh
42409   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
42410     PATH_SEPARATOR=';'
42411   else
42412     PATH_SEPARATOR=:
42413   fi
42414   rm -f conf$$.sh
42415 fi
42416
42417 # Support unset when possible.
42418 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
42419   as_unset=unset
42420 else
42421   as_unset=false
42422 fi
42423
42424
42425 # IFS
42426 # We need space, tab and new line, in precisely that order.  Quoting is
42427 # there to prevent editors from complaining about space-tab.
42428 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
42429 # splitting by setting IFS to empty value.)
42430 as_nl='
42431 '
42432 IFS=" ""        $as_nl"
42433
42434 # Find who we are.  Look in the path if we contain no directory separator.
42435 case $0 in
42436   *[\\/]* ) as_myself=$0 ;;
42437   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42438 for as_dir in $PATH
42439 do
42440   IFS=$as_save_IFS
42441   test -z "$as_dir" && as_dir=.
42442   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
42443 done
42444 IFS=$as_save_IFS
42445
42446      ;;
42447 esac
42448 # We did not find ourselves, most probably we were run as `sh COMMAND'
42449 # in which case we are not to be found in the path.
42450 if test "x$as_myself" = x; then
42451   as_myself=$0
42452 fi
42453 if test ! -f "$as_myself"; then
42454   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
42455   { (exit 1); exit 1; }
42456 fi
42457
42458 # Work around bugs in pre-3.0 UWIN ksh.
42459 for as_var in ENV MAIL MAILPATH
42460 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
42461 done
42462 PS1='$ '
42463 PS2='> '
42464 PS4='+ '
42465
42466 # NLS nuisances.
42467 for as_var in \
42468   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
42469   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42470   LC_TELEPHONE LC_TIME
42471 do
42472   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
42473     eval $as_var=C; export $as_var
42474   else
42475     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
42476   fi
42477 done
42478
42479 # Required to use basename.
42480 if expr a : '\(a\)' >/dev/null 2>&1 &&
42481    test "X`expr 00001 : '.*\(...\)'`" = X001; then
42482   as_expr=expr
42483 else
42484   as_expr=false
42485 fi
42486
42487 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
42488   as_basename=basename
42489 else
42490   as_basename=false
42491 fi
42492
42493
42494 # Name of the executable.
42495 as_me=`$as_basename -- "$0" ||
42496 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
42497          X"$0" : 'X\(//\)$' \| \
42498          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
42499 echo X/"$0" |
42500     sed '/^.*\/\([^/][^/]*\)\/*$/{
42501             s//\1/
42502             q
42503           }
42504           /^X\/\(\/\/\)$/{
42505             s//\1/
42506             q
42507           }
42508           /^X\/\(\/\).*/{
42509             s//\1/
42510             q
42511           }
42512           s/.*/./; q'`
42513
42514 # CDPATH.
42515 $as_unset CDPATH
42516
42517
42518
42519   as_lineno_1=$LINENO
42520   as_lineno_2=$LINENO
42521   test "x$as_lineno_1" != "x$as_lineno_2" &&
42522   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
42523
42524   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
42525   # uniformly replaced by the line number.  The first 'sed' inserts a
42526   # line-number line after each line using $LINENO; the second 'sed'
42527   # does the real work.  The second script uses 'N' to pair each
42528   # line-number line with the line containing $LINENO, and appends
42529   # trailing '-' during substitution so that $LINENO is not a special
42530   # case at line end.
42531   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
42532   # scripts with optimization help from Paolo Bonzini.  Blame Lee
42533   # E. McMahon (1931-1989) for sed's syntax.  :-)
42534   sed -n '
42535     p
42536     /[$]LINENO/=
42537   ' <$as_myself |
42538     sed '
42539       s/[$]LINENO.*/&-/
42540       t lineno
42541       b
42542       :lineno
42543       N
42544       :loop
42545       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
42546       t loop
42547       s/-\n.*//
42548     ' >$as_me.lineno &&
42549   chmod +x "$as_me.lineno" ||
42550     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
42551    { (exit 1); exit 1; }; }
42552
42553   # Don't try to exec as it changes $[0], causing all sort of problems
42554   # (the dirname of $[0] is not the place where we might find the
42555   # original and so on.  Autoconf is especially sensitive to this).
42556   . "./$as_me.lineno"
42557   # Exit status is that of the last command.
42558   exit
42559 }
42560
42561
42562 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
42563   as_dirname=dirname
42564 else
42565   as_dirname=false
42566 fi
42567
42568 ECHO_C= ECHO_N= ECHO_T=
42569 case `echo -n x` in
42570 -n*)
42571   case `echo 'x\c'` in
42572   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
42573   *)   ECHO_C='\c';;
42574   esac;;
42575 *)
42576   ECHO_N='-n';;
42577 esac
42578
42579 if expr a : '\(a\)' >/dev/null 2>&1 &&
42580    test "X`expr 00001 : '.*\(...\)'`" = X001; then
42581   as_expr=expr
42582 else
42583   as_expr=false
42584 fi
42585
42586 rm -f conf$$ conf$$.exe conf$$.file
42587 if test -d conf$$.dir; then
42588   rm -f conf$$.dir/conf$$.file
42589 else
42590   rm -f conf$$.dir
42591   mkdir conf$$.dir
42592 fi
42593 echo >conf$$.file
42594 if ln -s conf$$.file conf$$ 2>/dev/null; then
42595   as_ln_s='ln -s'
42596   # ... but there are two gotchas:
42597   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
42598   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
42599   # In both cases, we have to default to `cp -p'.
42600   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
42601     as_ln_s='cp -p'
42602 elif ln conf$$.file conf$$ 2>/dev/null; then
42603   as_ln_s=ln
42604 else
42605   as_ln_s='cp -p'
42606 fi
42607 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
42608 rmdir conf$$.dir 2>/dev/null
42609
42610 if mkdir -p . 2>/dev/null; then
42611   as_mkdir_p=:
42612 else
42613   test -d ./-p && rmdir ./-p
42614   as_mkdir_p=false
42615 fi
42616
42617 if test -x / >/dev/null 2>&1; then
42618   as_test_x='test -x'
42619 else
42620   if ls -dL / >/dev/null 2>&1; then
42621     as_ls_L_option=L
42622   else
42623     as_ls_L_option=
42624   fi
42625   as_test_x='
42626     eval sh -c '\''
42627       if test -d "$1"; then
42628         test -d "$1/.";
42629       else
42630         case $1 in
42631         -*)set "./$1";;
42632         esac;
42633         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
42634         ???[sx]*):;;*)false;;esac;fi
42635     '\'' sh
42636   '
42637 fi
42638 as_executable_p=$as_test_x
42639
42640 # Sed expression to map a string onto a valid CPP name.
42641 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
42642
42643 # Sed expression to map a string onto a valid variable name.
42644 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
42645
42646
42647 exec 6>&1
42648
42649 # Save the log message, to keep $[0] and so on meaningful, and to
42650 # report actual input values of CONFIG_FILES etc. instead of their
42651 # values after options handling.
42652 ac_log="
42653 This file was extended by GNU tar $as_me 1.22, which was
42654 generated by GNU Autoconf 2.61.  Invocation command line was
42655
42656   CONFIG_FILES    = $CONFIG_FILES
42657   CONFIG_HEADERS  = $CONFIG_HEADERS
42658   CONFIG_LINKS    = $CONFIG_LINKS
42659   CONFIG_COMMANDS = $CONFIG_COMMANDS
42660   $ $0 $@
42661
42662 on `(hostname || uname -n) 2>/dev/null | sed 1q`
42663 "
42664
42665 _ACEOF
42666
42667 cat >>$CONFIG_STATUS <<_ACEOF
42668 # Files that config.status was made for.
42669 config_files="$ac_config_files"
42670 config_headers="$ac_config_headers"
42671 config_commands="$ac_config_commands"
42672
42673 _ACEOF
42674
42675 cat >>$CONFIG_STATUS <<\_ACEOF
42676 ac_cs_usage="\
42677 \`$as_me' instantiates files from templates according to the
42678 current configuration.
42679
42680 Usage: $0 [OPTIONS] [FILE]...
42681
42682   -h, --help       print this help, then exit
42683   -V, --version    print version number and configuration settings, then exit
42684   -q, --quiet      do not print progress messages
42685   -d, --debug      don't remove temporary files
42686       --recheck    update $as_me by reconfiguring in the same conditions
42687   --file=FILE[:TEMPLATE]
42688                    instantiate the configuration file FILE
42689   --header=FILE[:TEMPLATE]
42690                    instantiate the configuration header FILE
42691
42692 Configuration files:
42693 $config_files
42694
42695 Configuration headers:
42696 $config_headers
42697
42698 Configuration commands:
42699 $config_commands
42700
42701 Report bugs to <bug-autoconf@gnu.org>."
42702
42703 _ACEOF
42704 cat >>$CONFIG_STATUS <<_ACEOF
42705 ac_cs_version="\\
42706 GNU tar config.status 1.22
42707 configured by $0, generated by GNU Autoconf 2.61,
42708   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
42709
42710 Copyright (C) 2006 Free Software Foundation, Inc.
42711 This config.status script is free software; the Free Software Foundation
42712 gives unlimited permission to copy, distribute and modify it."
42713
42714 ac_pwd='$ac_pwd'
42715 srcdir='$srcdir'
42716 INSTALL='$INSTALL'
42717 MKDIR_P='$MKDIR_P'
42718 _ACEOF
42719
42720 cat >>$CONFIG_STATUS <<\_ACEOF
42721 # If no file are specified by the user, then we need to provide default
42722 # value.  By we need to know if files were specified by the user.
42723 ac_need_defaults=:
42724 while test $# != 0
42725 do
42726   case $1 in
42727   --*=*)
42728     ac_option=`expr "X$1" : 'X\([^=]*\)='`
42729     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
42730     ac_shift=:
42731     ;;
42732   *)
42733     ac_option=$1
42734     ac_optarg=$2
42735     ac_shift=shift
42736     ;;
42737   esac
42738
42739   case $ac_option in
42740   # Handling of the options.
42741   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
42742     ac_cs_recheck=: ;;
42743   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
42744     echo "$ac_cs_version"; exit ;;
42745   --debug | --debu | --deb | --de | --d | -d )
42746     debug=: ;;
42747   --file | --fil | --fi | --f )
42748     $ac_shift
42749     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
42750     ac_need_defaults=false;;
42751   --header | --heade | --head | --hea )
42752     $ac_shift
42753     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
42754     ac_need_defaults=false;;
42755   --he | --h)
42756     # Conflict between --help and --header
42757     { echo "$as_me: error: ambiguous option: $1
42758 Try \`$0 --help' for more information." >&2
42759    { (exit 1); exit 1; }; };;
42760   --help | --hel | -h )
42761     echo "$ac_cs_usage"; exit ;;
42762   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
42763   | -silent | --silent | --silen | --sile | --sil | --si | --s)
42764     ac_cs_silent=: ;;
42765
42766   # This is an error.
42767   -*) { echo "$as_me: error: unrecognized option: $1
42768 Try \`$0 --help' for more information." >&2
42769    { (exit 1); exit 1; }; } ;;
42770
42771   *) ac_config_targets="$ac_config_targets $1"
42772      ac_need_defaults=false ;;
42773
42774   esac
42775   shift
42776 done
42777
42778 ac_configure_extra_args=
42779
42780 if $ac_cs_silent; then
42781   exec 6>/dev/null
42782   ac_configure_extra_args="$ac_configure_extra_args --silent"
42783 fi
42784
42785 _ACEOF
42786 cat >>$CONFIG_STATUS <<_ACEOF
42787 if \$ac_cs_recheck; then
42788   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
42789   CONFIG_SHELL=$SHELL
42790   export CONFIG_SHELL
42791   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
42792 fi
42793
42794 _ACEOF
42795 cat >>$CONFIG_STATUS <<\_ACEOF
42796 exec 5>>config.log
42797 {
42798   echo
42799   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
42800 ## Running $as_me. ##
42801 _ASBOX
42802   echo "$ac_log"
42803 } >&5
42804
42805 _ACEOF
42806 cat >>$CONFIG_STATUS <<_ACEOF
42807 #
42808 # INIT-COMMANDS
42809 #
42810 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
42811 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
42812     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
42813     # from automake < 1.5.
42814     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
42815     # Capture the value of LINGUAS because we need it to compute CATALOGS.
42816     LINGUAS="${LINGUAS-%UNSET%}"
42817
42818
42819 _ACEOF
42820
42821 cat >>$CONFIG_STATUS <<\_ACEOF
42822
42823 # Handling of arguments.
42824 for ac_config_target in $ac_config_targets
42825 do
42826   case $ac_config_target in
42827     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.hin" ;;
42828     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
42829     "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
42830     "tests/atconfig") CONFIG_COMMANDS="$CONFIG_COMMANDS tests/atconfig" ;;
42831     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
42832     "tests/atlocal") CONFIG_FILES="$CONFIG_FILES tests/atlocal" ;;
42833     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
42834     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
42835     "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
42836     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
42837     "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
42838     "rmt/Makefile") CONFIG_FILES="$CONFIG_FILES rmt/Makefile" ;;
42839     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
42840
42841   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
42842 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
42843    { (exit 1); exit 1; }; };;
42844   esac
42845 done
42846
42847
42848 # If the user did not use the arguments to specify the items to instantiate,
42849 # then the envvar interface is used.  Set only those that are not.
42850 # We use the long form for the default assignment because of an extremely
42851 # bizarre bug on SunOS 4.1.3.
42852 if $ac_need_defaults; then
42853   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
42854   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
42855   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
42856 fi
42857
42858 # Have a temporary directory for convenience.  Make it in the build tree
42859 # simply because there is no reason against having it here, and in addition,
42860 # creating and moving files from /tmp can sometimes cause problems.
42861 # Hook for its removal unless debugging.
42862 # Note that there is a small window in which the directory will not be cleaned:
42863 # after its creation but before its name has been assigned to `$tmp'.
42864 $debug ||
42865 {
42866   tmp=
42867   trap 'exit_status=$?
42868   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
42869 ' 0
42870   trap '{ (exit 1); exit 1; }' 1 2 13 15
42871 }
42872 # Create a (secure) tmp directory for tmp files.
42873
42874 {
42875   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
42876   test -n "$tmp" && test -d "$tmp"
42877 }  ||
42878 {
42879   tmp=./conf$$-$RANDOM
42880   (umask 077 && mkdir "$tmp")
42881 } ||
42882 {
42883    echo "$me: cannot create a temporary directory in ." >&2
42884    { (exit 1); exit 1; }
42885 }
42886
42887 #
42888 # Set up the sed scripts for CONFIG_FILES section.
42889 #
42890
42891 # No need to generate the scripts if there are no CONFIG_FILES.
42892 # This happens for instance when ./config.status config.h
42893 if test -n "$CONFIG_FILES"; then
42894
42895 _ACEOF
42896
42897
42898
42899 ac_delim='%!_!# '
42900 for ac_last_try in false false false false false :; do
42901   cat >conf$$subs.sed <<_ACEOF
42902 SHELL!$SHELL$ac_delim
42903 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
42904 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
42905 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
42906 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
42907 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
42908 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
42909 exec_prefix!$exec_prefix$ac_delim
42910 prefix!$prefix$ac_delim
42911 program_transform_name!$program_transform_name$ac_delim
42912 bindir!$bindir$ac_delim
42913 sbindir!$sbindir$ac_delim
42914 libexecdir!$libexecdir$ac_delim
42915 datarootdir!$datarootdir$ac_delim
42916 datadir!$datadir$ac_delim
42917 sysconfdir!$sysconfdir$ac_delim
42918 sharedstatedir!$sharedstatedir$ac_delim
42919 localstatedir!$localstatedir$ac_delim
42920 includedir!$includedir$ac_delim
42921 oldincludedir!$oldincludedir$ac_delim
42922 docdir!$docdir$ac_delim
42923 infodir!$infodir$ac_delim
42924 htmldir!$htmldir$ac_delim
42925 dvidir!$dvidir$ac_delim
42926 pdfdir!$pdfdir$ac_delim
42927 psdir!$psdir$ac_delim
42928 libdir!$libdir$ac_delim
42929 localedir!$localedir$ac_delim
42930 mandir!$mandir$ac_delim
42931 DEFS!$DEFS$ac_delim
42932 ECHO_C!$ECHO_C$ac_delim
42933 ECHO_N!$ECHO_N$ac_delim
42934 ECHO_T!$ECHO_T$ac_delim
42935 LIBS!$LIBS$ac_delim
42936 build_alias!$build_alias$ac_delim
42937 host_alias!$host_alias$ac_delim
42938 target_alias!$target_alias$ac_delim
42939 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
42940 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
42941 INSTALL_DATA!$INSTALL_DATA$ac_delim
42942 am__isrc!$am__isrc$ac_delim
42943 CYGPATH_W!$CYGPATH_W$ac_delim
42944 PACKAGE!$PACKAGE$ac_delim
42945 VERSION!$VERSION$ac_delim
42946 ACLOCAL!$ACLOCAL$ac_delim
42947 AUTOCONF!$AUTOCONF$ac_delim
42948 AUTOMAKE!$AUTOMAKE$ac_delim
42949 AUTOHEADER!$AUTOHEADER$ac_delim
42950 MAKEINFO!$MAKEINFO$ac_delim
42951 install_sh!$install_sh$ac_delim
42952 STRIP!$STRIP$ac_delim
42953 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
42954 mkdir_p!$mkdir_p$ac_delim
42955 AWK!$AWK$ac_delim
42956 SET_MAKE!$SET_MAKE$ac_delim
42957 am__leading_dot!$am__leading_dot$ac_delim
42958 AMTAR!$AMTAR$ac_delim
42959 am__tar!$am__tar$ac_delim
42960 am__untar!$am__untar$ac_delim
42961 CC!$CC$ac_delim
42962 CFLAGS!$CFLAGS$ac_delim
42963 LDFLAGS!$LDFLAGS$ac_delim
42964 CPPFLAGS!$CPPFLAGS$ac_delim
42965 ac_ct_CC!$ac_ct_CC$ac_delim
42966 EXEEXT!$EXEEXT$ac_delim
42967 OBJEXT!$OBJEXT$ac_delim
42968 DEPDIR!$DEPDIR$ac_delim
42969 am__include!$am__include$ac_delim
42970 am__quote!$am__quote$ac_delim
42971 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
42972 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
42973 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
42974 CCDEPMODE!$CCDEPMODE$ac_delim
42975 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
42976 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
42977 RANLIB!$RANLIB$ac_delim
42978 YACC!$YACC$ac_delim
42979 YFLAGS!$YFLAGS$ac_delim
42980 build!$build$ac_delim
42981 build_cpu!$build_cpu$ac_delim
42982 build_vendor!$build_vendor$ac_delim
42983 build_os!$build_os$ac_delim
42984 host!$host$ac_delim
42985 host_cpu!$host_cpu$ac_delim
42986 host_vendor!$host_vendor$ac_delim
42987 host_os!$host_os$ac_delim
42988 CPP!$CPP$ac_delim
42989 GREP!$GREP$ac_delim
42990 EGREP!$EGREP$ac_delim
42991 STDBOOL_H!$STDBOOL_H$ac_delim
42992 HAVE__BOOL!$HAVE__BOOL$ac_delim
42993 GL_COND_LIBTOOL_TRUE!$GL_COND_LIBTOOL_TRUE$ac_delim
42994 GL_COND_LIBTOOL_FALSE!$GL_COND_LIBTOOL_FALSE$ac_delim
42995 ALLOCA!$ALLOCA$ac_delim
42996 ALLOCA_H!$ALLOCA_H$ac_delim
42997 GETOPT_H!$GETOPT_H$ac_delim
42998 GNULIB_BTOWC!$GNULIB_BTOWC$ac_delim
42999 _ACEOF
43000
43001   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
43002     break
43003   elif $ac_last_try; then
43004     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
43005 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
43006    { (exit 1); exit 1; }; }
43007   else
43008     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
43009   fi
43010 done
43011
43012 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
43013 if test -n "$ac_eof"; then
43014   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
43015   ac_eof=`expr $ac_eof + 1`
43016 fi
43017
43018 cat >>$CONFIG_STATUS <<_ACEOF
43019 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
43020 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
43021 _ACEOF
43022 sed '
43023 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
43024 s/^/s,@/; s/!/@,|#_!!_#|/
43025 :n
43026 t n
43027 s/'"$ac_delim"'$/,g/; t
43028 s/$/\\/; p
43029 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
43030 ' >>$CONFIG_STATUS <conf$$subs.sed
43031 rm -f conf$$subs.sed
43032 cat >>$CONFIG_STATUS <<_ACEOF
43033 CEOF$ac_eof
43034 _ACEOF
43035
43036
43037 ac_delim='%!_!# '
43038 for ac_last_try in false false false false false :; do
43039   cat >conf$$subs.sed <<_ACEOF
43040 GNULIB_WCTOB!$GNULIB_WCTOB$ac_delim
43041 GNULIB_MBSINIT!$GNULIB_MBSINIT$ac_delim
43042 GNULIB_MBRTOWC!$GNULIB_MBRTOWC$ac_delim
43043 GNULIB_MBRLEN!$GNULIB_MBRLEN$ac_delim
43044 GNULIB_MBSRTOWCS!$GNULIB_MBSRTOWCS$ac_delim
43045 GNULIB_MBSNRTOWCS!$GNULIB_MBSNRTOWCS$ac_delim
43046 GNULIB_WCRTOMB!$GNULIB_WCRTOMB$ac_delim
43047 GNULIB_WCSRTOMBS!$GNULIB_WCSRTOMBS$ac_delim
43048 GNULIB_WCSNRTOMBS!$GNULIB_WCSNRTOMBS$ac_delim
43049 GNULIB_WCWIDTH!$GNULIB_WCWIDTH$ac_delim
43050 HAVE_BTOWC!$HAVE_BTOWC$ac_delim
43051 HAVE_MBSINIT!$HAVE_MBSINIT$ac_delim
43052 HAVE_MBRTOWC!$HAVE_MBRTOWC$ac_delim
43053 HAVE_MBRLEN!$HAVE_MBRLEN$ac_delim
43054 HAVE_MBSRTOWCS!$HAVE_MBSRTOWCS$ac_delim
43055 HAVE_MBSNRTOWCS!$HAVE_MBSNRTOWCS$ac_delim
43056 HAVE_WCRTOMB!$HAVE_WCRTOMB$ac_delim
43057 HAVE_WCSRTOMBS!$HAVE_WCSRTOMBS$ac_delim
43058 HAVE_WCSNRTOMBS!$HAVE_WCSNRTOMBS$ac_delim
43059 HAVE_DECL_WCTOB!$HAVE_DECL_WCTOB$ac_delim
43060 HAVE_DECL_WCWIDTH!$HAVE_DECL_WCWIDTH$ac_delim
43061 REPLACE_MBSTATE_T!$REPLACE_MBSTATE_T$ac_delim
43062 REPLACE_BTOWC!$REPLACE_BTOWC$ac_delim
43063 REPLACE_WCTOB!$REPLACE_WCTOB$ac_delim
43064 REPLACE_MBSINIT!$REPLACE_MBSINIT$ac_delim
43065 REPLACE_MBRTOWC!$REPLACE_MBRTOWC$ac_delim
43066 REPLACE_MBRLEN!$REPLACE_MBRLEN$ac_delim
43067 REPLACE_MBSRTOWCS!$REPLACE_MBSRTOWCS$ac_delim
43068 REPLACE_MBSNRTOWCS!$REPLACE_MBSNRTOWCS$ac_delim
43069 REPLACE_WCRTOMB!$REPLACE_WCRTOMB$ac_delim
43070 REPLACE_WCSRTOMBS!$REPLACE_WCSRTOMBS$ac_delim
43071 REPLACE_WCWIDTH!$REPLACE_WCWIDTH$ac_delim
43072 WCHAR_H!$WCHAR_H$ac_delim
43073 LOCALE_FR!$LOCALE_FR$ac_delim
43074 GNULIB_CHOWN!$GNULIB_CHOWN$ac_delim
43075 GNULIB_CLOSE!$GNULIB_CLOSE$ac_delim
43076 GNULIB_DUP2!$GNULIB_DUP2$ac_delim
43077 GNULIB_ENVIRON!$GNULIB_ENVIRON$ac_delim
43078 GNULIB_EUIDACCESS!$GNULIB_EUIDACCESS$ac_delim
43079 GNULIB_FCHDIR!$GNULIB_FCHDIR$ac_delim
43080 GNULIB_FSYNC!$GNULIB_FSYNC$ac_delim
43081 GNULIB_FTRUNCATE!$GNULIB_FTRUNCATE$ac_delim
43082 GNULIB_GETCWD!$GNULIB_GETCWD$ac_delim
43083 GNULIB_GETDOMAINNAME!$GNULIB_GETDOMAINNAME$ac_delim
43084 GNULIB_GETDTABLESIZE!$GNULIB_GETDTABLESIZE$ac_delim
43085 GNULIB_GETHOSTNAME!$GNULIB_GETHOSTNAME$ac_delim
43086 GNULIB_GETLOGIN_R!$GNULIB_GETLOGIN_R$ac_delim
43087 GNULIB_GETPAGESIZE!$GNULIB_GETPAGESIZE$ac_delim
43088 GNULIB_GETUSERSHELL!$GNULIB_GETUSERSHELL$ac_delim
43089 GNULIB_LCHOWN!$GNULIB_LCHOWN$ac_delim
43090 GNULIB_LINK!$GNULIB_LINK$ac_delim
43091 GNULIB_LSEEK!$GNULIB_LSEEK$ac_delim
43092 GNULIB_READLINK!$GNULIB_READLINK$ac_delim
43093 GNULIB_SLEEP!$GNULIB_SLEEP$ac_delim
43094 GNULIB_UNISTD_H_SIGPIPE!$GNULIB_UNISTD_H_SIGPIPE$ac_delim
43095 GNULIB_WRITE!$GNULIB_WRITE$ac_delim
43096 HAVE_DUP2!$HAVE_DUP2$ac_delim
43097 HAVE_EUIDACCESS!$HAVE_EUIDACCESS$ac_delim
43098 HAVE_FSYNC!$HAVE_FSYNC$ac_delim
43099 HAVE_FTRUNCATE!$HAVE_FTRUNCATE$ac_delim
43100 HAVE_GETDOMAINNAME!$HAVE_GETDOMAINNAME$ac_delim
43101 HAVE_GETDTABLESIZE!$HAVE_GETDTABLESIZE$ac_delim
43102 HAVE_GETHOSTNAME!$HAVE_GETHOSTNAME$ac_delim
43103 HAVE_GETPAGESIZE!$HAVE_GETPAGESIZE$ac_delim
43104 HAVE_GETUSERSHELL!$HAVE_GETUSERSHELL$ac_delim
43105 HAVE_LINK!$HAVE_LINK$ac_delim
43106 HAVE_READLINK!$HAVE_READLINK$ac_delim
43107 HAVE_SLEEP!$HAVE_SLEEP$ac_delim
43108 HAVE_DECL_ENVIRON!$HAVE_DECL_ENVIRON$ac_delim
43109 HAVE_DECL_GETLOGIN_R!$HAVE_DECL_GETLOGIN_R$ac_delim
43110 HAVE_OS_H!$HAVE_OS_H$ac_delim
43111 HAVE_SYS_PARAM_H!$HAVE_SYS_PARAM_H$ac_delim
43112 REPLACE_CHOWN!$REPLACE_CHOWN$ac_delim
43113 REPLACE_CLOSE!$REPLACE_CLOSE$ac_delim
43114 REPLACE_FCHDIR!$REPLACE_FCHDIR$ac_delim
43115 REPLACE_GETCWD!$REPLACE_GETCWD$ac_delim
43116 REPLACE_GETPAGESIZE!$REPLACE_GETPAGESIZE$ac_delim
43117 REPLACE_LCHOWN!$REPLACE_LCHOWN$ac_delim
43118 REPLACE_LSEEK!$REPLACE_LSEEK$ac_delim
43119 REPLACE_WRITE!$REPLACE_WRITE$ac_delim
43120 UNISTD_H_HAVE_WINSOCK2_H!$UNISTD_H_HAVE_WINSOCK2_H$ac_delim
43121 LIB_CLOCK_GETTIME!$LIB_CLOCK_GETTIME$ac_delim
43122 GNULIB_DIRFD!$GNULIB_DIRFD$ac_delim
43123 GNULIB_SCANDIR!$GNULIB_SCANDIR$ac_delim
43124 GNULIB_ALPHASORT!$GNULIB_ALPHASORT$ac_delim
43125 HAVE_DECL_DIRFD!$HAVE_DECL_DIRFD$ac_delim
43126 HAVE_SCANDIR!$HAVE_SCANDIR$ac_delim
43127 HAVE_ALPHASORT!$HAVE_ALPHASORT$ac_delim
43128 DIRENT_H!$DIRENT_H$ac_delim
43129 INCLUDE_NEXT!$INCLUDE_NEXT$ac_delim
43130 INCLUDE_NEXT_AS_FIRST_DIRECTIVE!$INCLUDE_NEXT_AS_FIRST_DIRECTIVE$ac_delim
43131 PRAGMA_SYSTEM_HEADER!$PRAGMA_SYSTEM_HEADER$ac_delim
43132 NEXT_DIRENT_H!$NEXT_DIRENT_H$ac_delim
43133 NEXT_ERRNO_H!$NEXT_ERRNO_H$ac_delim
43134 ERRNO_H!$ERRNO_H$ac_delim
43135 EMULTIHOP_HIDDEN!$EMULTIHOP_HIDDEN$ac_delim
43136 EMULTIHOP_VALUE!$EMULTIHOP_VALUE$ac_delim
43137 _ACEOF
43138
43139   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
43140     break
43141   elif $ac_last_try; then
43142     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
43143 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
43144    { (exit 1); exit 1; }; }
43145   else
43146     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
43147   fi
43148 done
43149
43150 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
43151 if test -n "$ac_eof"; then
43152   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
43153   ac_eof=`expr $ac_eof + 1`
43154 fi
43155
43156 cat >>$CONFIG_STATUS <<_ACEOF
43157 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
43158 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
43159 _ACEOF
43160 sed '
43161 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
43162 s/^/s,@/; s/!/@,|#_!!_#|/
43163 :n
43164 t n
43165 s/'"$ac_delim"'$/,g/; t
43166 s/$/\\/; p
43167 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
43168 ' >>$CONFIG_STATUS <conf$$subs.sed
43169 rm -f conf$$subs.sed
43170 cat >>$CONFIG_STATUS <<_ACEOF
43171 CEOF$ac_eof
43172 _ACEOF
43173
43174
43175 ac_delim='%!_!# '
43176 for ac_last_try in false false false false false :; do
43177   cat >conf$$subs.sed <<_ACEOF
43178 ENOLINK_HIDDEN!$ENOLINK_HIDDEN$ac_delim
43179 ENOLINK_VALUE!$ENOLINK_VALUE$ac_delim
43180 EOVERFLOW_HIDDEN!$EOVERFLOW_HIDDEN$ac_delim
43181 EOVERFLOW_VALUE!$EOVERFLOW_VALUE$ac_delim
43182 GNULIB_OPEN!$GNULIB_OPEN$ac_delim
43183 REPLACE_OPEN!$REPLACE_OPEN$ac_delim
43184 GNULIB_FPRINTF!$GNULIB_FPRINTF$ac_delim
43185 GNULIB_FPRINTF_POSIX!$GNULIB_FPRINTF_POSIX$ac_delim
43186 GNULIB_PRINTF!$GNULIB_PRINTF$ac_delim
43187 GNULIB_PRINTF_POSIX!$GNULIB_PRINTF_POSIX$ac_delim
43188 GNULIB_SNPRINTF!$GNULIB_SNPRINTF$ac_delim
43189 GNULIB_SPRINTF_POSIX!$GNULIB_SPRINTF_POSIX$ac_delim
43190 GNULIB_VFPRINTF!$GNULIB_VFPRINTF$ac_delim
43191 GNULIB_VFPRINTF_POSIX!$GNULIB_VFPRINTF_POSIX$ac_delim
43192 GNULIB_VPRINTF!$GNULIB_VPRINTF$ac_delim
43193 GNULIB_VPRINTF_POSIX!$GNULIB_VPRINTF_POSIX$ac_delim
43194 GNULIB_VSNPRINTF!$GNULIB_VSNPRINTF$ac_delim
43195 GNULIB_VSPRINTF_POSIX!$GNULIB_VSPRINTF_POSIX$ac_delim
43196 GNULIB_DPRINTF!$GNULIB_DPRINTF$ac_delim
43197 GNULIB_VDPRINTF!$GNULIB_VDPRINTF$ac_delim
43198 GNULIB_VASPRINTF!$GNULIB_VASPRINTF$ac_delim
43199 GNULIB_OBSTACK_PRINTF!$GNULIB_OBSTACK_PRINTF$ac_delim
43200 GNULIB_OBSTACK_PRINTF_POSIX!$GNULIB_OBSTACK_PRINTF_POSIX$ac_delim
43201 GNULIB_FOPEN!$GNULIB_FOPEN$ac_delim
43202 GNULIB_FREOPEN!$GNULIB_FREOPEN$ac_delim
43203 GNULIB_FSEEK!$GNULIB_FSEEK$ac_delim
43204 GNULIB_FSEEKO!$GNULIB_FSEEKO$ac_delim
43205 GNULIB_FTELL!$GNULIB_FTELL$ac_delim
43206 GNULIB_FTELLO!$GNULIB_FTELLO$ac_delim
43207 GNULIB_FFLUSH!$GNULIB_FFLUSH$ac_delim
43208 GNULIB_FCLOSE!$GNULIB_FCLOSE$ac_delim
43209 GNULIB_FPUTC!$GNULIB_FPUTC$ac_delim
43210 GNULIB_PUTC!$GNULIB_PUTC$ac_delim
43211 GNULIB_PUTCHAR!$GNULIB_PUTCHAR$ac_delim
43212 GNULIB_FPUTS!$GNULIB_FPUTS$ac_delim
43213 GNULIB_PUTS!$GNULIB_PUTS$ac_delim
43214 GNULIB_FWRITE!$GNULIB_FWRITE$ac_delim
43215 GNULIB_GETDELIM!$GNULIB_GETDELIM$ac_delim
43216 GNULIB_GETLINE!$GNULIB_GETLINE$ac_delim
43217 GNULIB_PERROR!$GNULIB_PERROR$ac_delim
43218 GNULIB_STDIO_H_SIGPIPE!$GNULIB_STDIO_H_SIGPIPE$ac_delim
43219 REPLACE_STDIO_WRITE_FUNCS!$REPLACE_STDIO_WRITE_FUNCS$ac_delim
43220 REPLACE_FPRINTF!$REPLACE_FPRINTF$ac_delim
43221 REPLACE_VFPRINTF!$REPLACE_VFPRINTF$ac_delim
43222 REPLACE_PRINTF!$REPLACE_PRINTF$ac_delim
43223 REPLACE_VPRINTF!$REPLACE_VPRINTF$ac_delim
43224 REPLACE_SNPRINTF!$REPLACE_SNPRINTF$ac_delim
43225 HAVE_DECL_SNPRINTF!$HAVE_DECL_SNPRINTF$ac_delim
43226 REPLACE_VSNPRINTF!$REPLACE_VSNPRINTF$ac_delim
43227 HAVE_DECL_VSNPRINTF!$HAVE_DECL_VSNPRINTF$ac_delim
43228 REPLACE_SPRINTF!$REPLACE_SPRINTF$ac_delim
43229 REPLACE_VSPRINTF!$REPLACE_VSPRINTF$ac_delim
43230 HAVE_DPRINTF!$HAVE_DPRINTF$ac_delim
43231 REPLACE_DPRINTF!$REPLACE_DPRINTF$ac_delim
43232 HAVE_VDPRINTF!$HAVE_VDPRINTF$ac_delim
43233 REPLACE_VDPRINTF!$REPLACE_VDPRINTF$ac_delim
43234 HAVE_VASPRINTF!$HAVE_VASPRINTF$ac_delim
43235 REPLACE_VASPRINTF!$REPLACE_VASPRINTF$ac_delim
43236 HAVE_DECL_OBSTACK_PRINTF!$HAVE_DECL_OBSTACK_PRINTF$ac_delim
43237 REPLACE_OBSTACK_PRINTF!$REPLACE_OBSTACK_PRINTF$ac_delim
43238 REPLACE_FOPEN!$REPLACE_FOPEN$ac_delim
43239 REPLACE_FREOPEN!$REPLACE_FREOPEN$ac_delim
43240 HAVE_FSEEKO!$HAVE_FSEEKO$ac_delim
43241 REPLACE_FSEEKO!$REPLACE_FSEEKO$ac_delim
43242 REPLACE_FSEEK!$REPLACE_FSEEK$ac_delim
43243 HAVE_FTELLO!$HAVE_FTELLO$ac_delim
43244 REPLACE_FTELLO!$REPLACE_FTELLO$ac_delim
43245 REPLACE_FTELL!$REPLACE_FTELL$ac_delim
43246 REPLACE_FFLUSH!$REPLACE_FFLUSH$ac_delim
43247 REPLACE_FCLOSE!$REPLACE_FCLOSE$ac_delim
43248 HAVE_DECL_GETDELIM!$HAVE_DECL_GETDELIM$ac_delim
43249 HAVE_DECL_GETLINE!$HAVE_DECL_GETLINE$ac_delim
43250 REPLACE_GETLINE!$REPLACE_GETLINE$ac_delim
43251 REPLACE_PERROR!$REPLACE_PERROR$ac_delim
43252 LIB_CLOSE!$LIB_CLOSE$ac_delim
43253 NEXT_FCNTL_H!$NEXT_FCNTL_H$ac_delim
43254 FCNTL_H!$FCNTL_H$ac_delim
43255 NEXT_FLOAT_H!$NEXT_FLOAT_H$ac_delim
43256 FLOAT_H!$FLOAT_H$ac_delim
43257 FNMATCH_H!$FNMATCH_H$ac_delim
43258 LIBINTL!$LIBINTL$ac_delim
43259 LTLIBINTL!$LTLIBINTL$ac_delim
43260 NEXT_SYS_TIME_H!$NEXT_SYS_TIME_H$ac_delim
43261 HAVE_SYS_TIME_H!$HAVE_SYS_TIME_H$ac_delim
43262 HAVE_STRUCT_TIMEVAL!$HAVE_STRUCT_TIMEVAL$ac_delim
43263 REPLACE_GETTIMEOFDAY!$REPLACE_GETTIMEOFDAY$ac_delim
43264 SYS_TIME_H!$SYS_TIME_H$ac_delim
43265 HAVE_LONG_LONG_INT!$HAVE_LONG_LONG_INT$ac_delim
43266 HAVE_UNSIGNED_LONG_LONG_INT!$HAVE_UNSIGNED_LONG_LONG_INT$ac_delim
43267 HAVE_INTTYPES_H!$HAVE_INTTYPES_H$ac_delim
43268 HAVE_SYS_TYPES_H!$HAVE_SYS_TYPES_H$ac_delim
43269 NEXT_STDINT_H!$NEXT_STDINT_H$ac_delim
43270 HAVE_STDINT_H!$HAVE_STDINT_H$ac_delim
43271 HAVE_SYS_INTTYPES_H!$HAVE_SYS_INTTYPES_H$ac_delim
43272 HAVE_SYS_BITYPES_H!$HAVE_SYS_BITYPES_H$ac_delim
43273 APPLE_UNIVERSAL_BUILD!$APPLE_UNIVERSAL_BUILD$ac_delim
43274 BITSIZEOF_PTRDIFF_T!$BITSIZEOF_PTRDIFF_T$ac_delim
43275 _ACEOF
43276
43277   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
43278     break
43279   elif $ac_last_try; then
43280     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
43281 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
43282    { (exit 1); exit 1; }; }
43283   else
43284     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
43285   fi
43286 done
43287
43288 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
43289 if test -n "$ac_eof"; then
43290   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
43291   ac_eof=`expr $ac_eof + 1`
43292 fi
43293
43294 cat >>$CONFIG_STATUS <<_ACEOF
43295 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
43296 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
43297 _ACEOF
43298 sed '
43299 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
43300 s/^/s,@/; s/!/@,|#_!!_#|/
43301 :n
43302 t n
43303 s/'"$ac_delim"'$/,g/; t
43304 s/$/\\/; p
43305 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
43306 ' >>$CONFIG_STATUS <conf$$subs.sed
43307 rm -f conf$$subs.sed
43308 cat >>$CONFIG_STATUS <<_ACEOF
43309 CEOF$ac_eof
43310 _ACEOF
43311
43312
43313 ac_delim='%!_!# '
43314 for ac_last_try in false false false false false :; do
43315   cat >conf$$subs.sed <<_ACEOF
43316 BITSIZEOF_SIZE_T!$BITSIZEOF_SIZE_T$ac_delim
43317 BITSIZEOF_SIG_ATOMIC_T!$BITSIZEOF_SIG_ATOMIC_T$ac_delim
43318 BITSIZEOF_WCHAR_T!$BITSIZEOF_WCHAR_T$ac_delim
43319 BITSIZEOF_WINT_T!$BITSIZEOF_WINT_T$ac_delim
43320 HAVE_SIGNED_SIG_ATOMIC_T!$HAVE_SIGNED_SIG_ATOMIC_T$ac_delim
43321 HAVE_SIGNED_WCHAR_T!$HAVE_SIGNED_WCHAR_T$ac_delim
43322 HAVE_SIGNED_WINT_T!$HAVE_SIGNED_WINT_T$ac_delim
43323 PTRDIFF_T_SUFFIX!$PTRDIFF_T_SUFFIX$ac_delim
43324 SIZE_T_SUFFIX!$SIZE_T_SUFFIX$ac_delim
43325 SIG_ATOMIC_T_SUFFIX!$SIG_ATOMIC_T_SUFFIX$ac_delim
43326 WCHAR_T_SUFFIX!$WCHAR_T_SUFFIX$ac_delim
43327 WINT_T_SUFFIX!$WINT_T_SUFFIX$ac_delim
43328 STDINT_H!$STDINT_H$ac_delim
43329 PRI_MACROS_BROKEN!$PRI_MACROS_BROKEN$ac_delim
43330 GNULIB_IMAXABS!$GNULIB_IMAXABS$ac_delim
43331 GNULIB_IMAXDIV!$GNULIB_IMAXDIV$ac_delim
43332 GNULIB_STRTOIMAX!$GNULIB_STRTOIMAX$ac_delim
43333 GNULIB_STRTOUMAX!$GNULIB_STRTOUMAX$ac_delim
43334 HAVE_DECL_IMAXABS!$HAVE_DECL_IMAXABS$ac_delim
43335 HAVE_DECL_IMAXDIV!$HAVE_DECL_IMAXDIV$ac_delim
43336 HAVE_DECL_STRTOIMAX!$HAVE_DECL_STRTOIMAX$ac_delim
43337 HAVE_DECL_STRTOUMAX!$HAVE_DECL_STRTOUMAX$ac_delim
43338 NEXT_INTTYPES_H!$NEXT_INTTYPES_H$ac_delim
43339 PRIPTR_PREFIX!$PRIPTR_PREFIX$ac_delim
43340 INT32_MAX_LT_INTMAX_MAX!$INT32_MAX_LT_INTMAX_MAX$ac_delim
43341 INT64_MAX_EQ_LONG_MAX!$INT64_MAX_EQ_LONG_MAX$ac_delim
43342 UINT32_MAX_LT_UINTMAX_MAX!$UINT32_MAX_LT_UINTMAX_MAX$ac_delim
43343 UINT64_MAX_EQ_ULONG_MAX!$UINT64_MAX_EQ_ULONG_MAX$ac_delim
43344 INTTYPES_H!$INTTYPES_H$ac_delim
43345 GLIBC21!$GLIBC21$ac_delim
43346 LOCALCHARSET_TESTS_ENVIRONMENT!$LOCALCHARSET_TESTS_ENVIRONMENT$ac_delim
43347 GNULIB_LCHMOD!$GNULIB_LCHMOD$ac_delim
43348 GNULIB_LSTAT!$GNULIB_LSTAT$ac_delim
43349 HAVE_LCHMOD!$HAVE_LCHMOD$ac_delim
43350 REPLACE_LSTAT!$REPLACE_LSTAT$ac_delim
43351 REPLACE_MKDIR!$REPLACE_MKDIR$ac_delim
43352 HAVE_MALLOC_POSIX!$HAVE_MALLOC_POSIX$ac_delim
43353 GNULIB_MALLOC_POSIX!$GNULIB_MALLOC_POSIX$ac_delim
43354 GNULIB_REALLOC_POSIX!$GNULIB_REALLOC_POSIX$ac_delim
43355 GNULIB_CALLOC_POSIX!$GNULIB_CALLOC_POSIX$ac_delim
43356 GNULIB_ATOLL!$GNULIB_ATOLL$ac_delim
43357 GNULIB_GETLOADAVG!$GNULIB_GETLOADAVG$ac_delim
43358 GNULIB_GETSUBOPT!$GNULIB_GETSUBOPT$ac_delim
43359 GNULIB_MKDTEMP!$GNULIB_MKDTEMP$ac_delim
43360 GNULIB_MKSTEMP!$GNULIB_MKSTEMP$ac_delim
43361 GNULIB_PUTENV!$GNULIB_PUTENV$ac_delim
43362 GNULIB_RANDOM_R!$GNULIB_RANDOM_R$ac_delim
43363 GNULIB_RPMATCH!$GNULIB_RPMATCH$ac_delim
43364 GNULIB_SETENV!$GNULIB_SETENV$ac_delim
43365 GNULIB_STRTOD!$GNULIB_STRTOD$ac_delim
43366 GNULIB_STRTOLL!$GNULIB_STRTOLL$ac_delim
43367 GNULIB_STRTOULL!$GNULIB_STRTOULL$ac_delim
43368 GNULIB_UNSETENV!$GNULIB_UNSETENV$ac_delim
43369 HAVE_ATOLL!$HAVE_ATOLL$ac_delim
43370 HAVE_CALLOC_POSIX!$HAVE_CALLOC_POSIX$ac_delim
43371 HAVE_GETSUBOPT!$HAVE_GETSUBOPT$ac_delim
43372 HAVE_MKDTEMP!$HAVE_MKDTEMP$ac_delim
43373 HAVE_REALLOC_POSIX!$HAVE_REALLOC_POSIX$ac_delim
43374 HAVE_RANDOM_R!$HAVE_RANDOM_R$ac_delim
43375 HAVE_RPMATCH!$HAVE_RPMATCH$ac_delim
43376 HAVE_SETENV!$HAVE_SETENV$ac_delim
43377 HAVE_STRTOD!$HAVE_STRTOD$ac_delim
43378 HAVE_STRTOLL!$HAVE_STRTOLL$ac_delim
43379 HAVE_STRTOULL!$HAVE_STRTOULL$ac_delim
43380 HAVE_STRUCT_RANDOM_DATA!$HAVE_STRUCT_RANDOM_DATA$ac_delim
43381 HAVE_SYS_LOADAVG_H!$HAVE_SYS_LOADAVG_H$ac_delim
43382 HAVE_UNSETENV!$HAVE_UNSETENV$ac_delim
43383 HAVE_DECL_GETLOADAVG!$HAVE_DECL_GETLOADAVG$ac_delim
43384 REPLACE_MKSTEMP!$REPLACE_MKSTEMP$ac_delim
43385 REPLACE_PUTENV!$REPLACE_PUTENV$ac_delim
43386 REPLACE_STRTOD!$REPLACE_STRTOD$ac_delim
43387 VOID_UNSETENV!$VOID_UNSETENV$ac_delim
43388 LOCALE_JA!$LOCALE_JA$ac_delim
43389 LOCALE_FR_UTF8!$LOCALE_FR_UTF8$ac_delim
43390 LOCALE_ZH_CN!$LOCALE_ZH_CN$ac_delim
43391 GNULIB_MEMMEM!$GNULIB_MEMMEM$ac_delim
43392 GNULIB_MEMPCPY!$GNULIB_MEMPCPY$ac_delim
43393 GNULIB_MEMRCHR!$GNULIB_MEMRCHR$ac_delim
43394 GNULIB_RAWMEMCHR!$GNULIB_RAWMEMCHR$ac_delim
43395 GNULIB_STPCPY!$GNULIB_STPCPY$ac_delim
43396 GNULIB_STPNCPY!$GNULIB_STPNCPY$ac_delim
43397 GNULIB_STRCHRNUL!$GNULIB_STRCHRNUL$ac_delim
43398 GNULIB_STRDUP!$GNULIB_STRDUP$ac_delim
43399 GNULIB_STRNDUP!$GNULIB_STRNDUP$ac_delim
43400 GNULIB_STRNLEN!$GNULIB_STRNLEN$ac_delim
43401 GNULIB_STRPBRK!$GNULIB_STRPBRK$ac_delim
43402 GNULIB_STRSEP!$GNULIB_STRSEP$ac_delim
43403 GNULIB_STRSTR!$GNULIB_STRSTR$ac_delim
43404 GNULIB_STRCASESTR!$GNULIB_STRCASESTR$ac_delim
43405 GNULIB_STRTOK_R!$GNULIB_STRTOK_R$ac_delim
43406 GNULIB_MBSLEN!$GNULIB_MBSLEN$ac_delim
43407 GNULIB_MBSNLEN!$GNULIB_MBSNLEN$ac_delim
43408 GNULIB_MBSCHR!$GNULIB_MBSCHR$ac_delim
43409 GNULIB_MBSRCHR!$GNULIB_MBSRCHR$ac_delim
43410 GNULIB_MBSSTR!$GNULIB_MBSSTR$ac_delim
43411 GNULIB_MBSCASECMP!$GNULIB_MBSCASECMP$ac_delim
43412 GNULIB_MBSNCASECMP!$GNULIB_MBSNCASECMP$ac_delim
43413 _ACEOF
43414
43415   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
43416     break
43417   elif $ac_last_try; then
43418     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
43419 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
43420    { (exit 1); exit 1; }; }
43421   else
43422     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
43423   fi
43424 done
43425
43426 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
43427 if test -n "$ac_eof"; then
43428   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
43429   ac_eof=`expr $ac_eof + 1`
43430 fi
43431
43432 cat >>$CONFIG_STATUS <<_ACEOF
43433 cat >"\$tmp/subs-4.sed" <<\CEOF$ac_eof
43434 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
43435 _ACEOF
43436 sed '
43437 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
43438 s/^/s,@/; s/!/@,|#_!!_#|/
43439 :n
43440 t n
43441 s/'"$ac_delim"'$/,g/; t
43442 s/$/\\/; p
43443 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
43444 ' >>$CONFIG_STATUS <conf$$subs.sed
43445 rm -f conf$$subs.sed
43446 cat >>$CONFIG_STATUS <<_ACEOF
43447 CEOF$ac_eof
43448 _ACEOF
43449
43450
43451 ac_delim='%!_!# '
43452 for ac_last_try in false false false false false :; do
43453   cat >conf$$subs.sed <<_ACEOF
43454 GNULIB_MBSPCASECMP!$GNULIB_MBSPCASECMP$ac_delim
43455 GNULIB_MBSCASESTR!$GNULIB_MBSCASESTR$ac_delim
43456 GNULIB_MBSCSPN!$GNULIB_MBSCSPN$ac_delim
43457 GNULIB_MBSPBRK!$GNULIB_MBSPBRK$ac_delim
43458 GNULIB_MBSSPN!$GNULIB_MBSSPN$ac_delim
43459 GNULIB_MBSSEP!$GNULIB_MBSSEP$ac_delim
43460 GNULIB_MBSTOK_R!$GNULIB_MBSTOK_R$ac_delim
43461 GNULIB_STRERROR!$GNULIB_STRERROR$ac_delim
43462 GNULIB_STRSIGNAL!$GNULIB_STRSIGNAL$ac_delim
43463 GNULIB_STRVERSCMP!$GNULIB_STRVERSCMP$ac_delim
43464 HAVE_DECL_MEMMEM!$HAVE_DECL_MEMMEM$ac_delim
43465 HAVE_MEMPCPY!$HAVE_MEMPCPY$ac_delim
43466 HAVE_DECL_MEMRCHR!$HAVE_DECL_MEMRCHR$ac_delim
43467 HAVE_RAWMEMCHR!$HAVE_RAWMEMCHR$ac_delim
43468 HAVE_STPCPY!$HAVE_STPCPY$ac_delim
43469 HAVE_STPNCPY!$HAVE_STPNCPY$ac_delim
43470 HAVE_STRCHRNUL!$HAVE_STRCHRNUL$ac_delim
43471 HAVE_DECL_STRDUP!$HAVE_DECL_STRDUP$ac_delim
43472 HAVE_STRNDUP!$HAVE_STRNDUP$ac_delim
43473 HAVE_DECL_STRNDUP!$HAVE_DECL_STRNDUP$ac_delim
43474 HAVE_DECL_STRNLEN!$HAVE_DECL_STRNLEN$ac_delim
43475 HAVE_STRPBRK!$HAVE_STRPBRK$ac_delim
43476 HAVE_STRSEP!$HAVE_STRSEP$ac_delim
43477 HAVE_STRCASESTR!$HAVE_STRCASESTR$ac_delim
43478 HAVE_DECL_STRTOK_R!$HAVE_DECL_STRTOK_R$ac_delim
43479 HAVE_DECL_STRERROR!$HAVE_DECL_STRERROR$ac_delim
43480 HAVE_DECL_STRSIGNAL!$HAVE_DECL_STRSIGNAL$ac_delim
43481 HAVE_STRVERSCMP!$HAVE_STRVERSCMP$ac_delim
43482 REPLACE_MEMMEM!$REPLACE_MEMMEM$ac_delim
43483 REPLACE_STRDUP!$REPLACE_STRDUP$ac_delim
43484 REPLACE_STRSTR!$REPLACE_STRSTR$ac_delim
43485 REPLACE_STRCASESTR!$REPLACE_STRCASESTR$ac_delim
43486 REPLACE_STRERROR!$REPLACE_STRERROR$ac_delim
43487 REPLACE_STRSIGNAL!$REPLACE_STRSIGNAL$ac_delim
43488 STDARG_H!$STDARG_H$ac_delim
43489 NEXT_STDARG_H!$NEXT_STDARG_H$ac_delim
43490 NEXT_STDIO_H!$NEXT_STDIO_H$ac_delim
43491 NEXT_STDLIB_H!$NEXT_STDLIB_H$ac_delim
43492 HAVE_RANDOM_H!$HAVE_RANDOM_H$ac_delim
43493 HAVE_STRCASECMP!$HAVE_STRCASECMP$ac_delim
43494 HAVE_DECL_STRNCASECMP!$HAVE_DECL_STRNCASECMP$ac_delim
43495 NEXT_STRING_H!$NEXT_STRING_H$ac_delim
43496 NEXT_STRINGS_H!$NEXT_STRINGS_H$ac_delim
43497 HAVE_LSTAT!$HAVE_LSTAT$ac_delim
43498 NEXT_SYS_STAT_H!$NEXT_SYS_STAT_H$ac_delim
43499 SYS_STAT_H!$SYS_STAT_H$ac_delim
43500 NEXT_SYSEXITS_H!$NEXT_SYSEXITS_H$ac_delim
43501 HAVE_SYSEXITS_H!$HAVE_SYSEXITS_H$ac_delim
43502 SYSEXITS_H!$SYSEXITS_H$ac_delim
43503 REPLACE_LOCALTIME_R!$REPLACE_LOCALTIME_R$ac_delim
43504 REPLACE_NANOSLEEP!$REPLACE_NANOSLEEP$ac_delim
43505 REPLACE_STRPTIME!$REPLACE_STRPTIME$ac_delim
43506 REPLACE_TIMEGM!$REPLACE_TIMEGM$ac_delim
43507 NEXT_TIME_H!$NEXT_TIME_H$ac_delim
43508 TIME_H_DEFINES_STRUCT_TIMESPEC!$TIME_H_DEFINES_STRUCT_TIMESPEC$ac_delim
43509 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC!$SYS_TIME_H_DEFINES_STRUCT_TIMESPEC$ac_delim
43510 NEXT_UNISTD_H!$NEXT_UNISTD_H$ac_delim
43511 HAVE_UNISTD_H!$HAVE_UNISTD_H$ac_delim
43512 HAVE_WINT_T!$HAVE_WINT_T$ac_delim
43513 HAVE_WCHAR_H!$HAVE_WCHAR_H$ac_delim
43514 NEXT_WCHAR_H!$NEXT_WCHAR_H$ac_delim
43515 HAVE_ISWCNTRL!$HAVE_ISWCNTRL$ac_delim
43516 NEXT_WCTYPE_H!$NEXT_WCTYPE_H$ac_delim
43517 HAVE_WCTYPE_H!$HAVE_WCTYPE_H$ac_delim
43518 WCTYPE_H!$WCTYPE_H$ac_delim
43519 REPLACE_ISWCNTRL!$REPLACE_ISWCNTRL$ac_delim
43520 LIBTAR_LIBDEPS!$LIBTAR_LIBDEPS$ac_delim
43521 LIBTAR_LTLIBDEPS!$LIBTAR_LTLIBDEPS$ac_delim
43522 LIB_SETSOCKOPT!$LIB_SETSOCKOPT$ac_delim
43523 PU_RMT_PROG!$PU_RMT_PROG$ac_delim
43524 DEFAULT_RMT_DIR!$DEFAULT_RMT_DIR$ac_delim
43525 DEFAULT_RMT_COMMAND!$DEFAULT_RMT_COMMAND$ac_delim
43526 LIBOBJS!$LIBOBJS$ac_delim
43527 DEFAULT_ARCHIVE_FORMAT!$DEFAULT_ARCHIVE_FORMAT$ac_delim
43528 DEFAULT_ARCHIVE!$DEFAULT_ARCHIVE$ac_delim
43529 DEFAULT_BLOCKING!$DEFAULT_BLOCKING$ac_delim
43530 DEFAULT_QUOTING_STYLE!$DEFAULT_QUOTING_STYLE$ac_delim
43531 LIBICONV!$LIBICONV$ac_delim
43532 LTLIBICONV!$LTLIBICONV$ac_delim
43533 USE_NLS!$USE_NLS$ac_delim
43534 GETTEXT_MACRO_VERSION!$GETTEXT_MACRO_VERSION$ac_delim
43535 MSGFMT!$MSGFMT$ac_delim
43536 GMSGFMT!$GMSGFMT$ac_delim
43537 MSGFMT_015!$MSGFMT_015$ac_delim
43538 GMSGFMT_015!$GMSGFMT_015$ac_delim
43539 XGETTEXT!$XGETTEXT$ac_delim
43540 XGETTEXT_015!$XGETTEXT_015$ac_delim
43541 MSGMERGE!$MSGMERGE$ac_delim
43542 XGETTEXT_EXTRA_OPTIONS!$XGETTEXT_EXTRA_OPTIONS$ac_delim
43543 INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
43544 INTLLIBS!$INTLLIBS$ac_delim
43545 POSUB!$POSUB$ac_delim
43546 AUTOM4TE!$AUTOM4TE$ac_delim
43547 BACKUP_LIBEXEC_SCRIPTS!$BACKUP_LIBEXEC_SCRIPTS$ac_delim
43548 BACKUP_SBIN_SCRIPTS!$BACKUP_SBIN_SCRIPTS$ac_delim
43549 BACKUP_SED_COND!$BACKUP_SED_COND$ac_delim
43550 LTLIBOBJS!$LTLIBOBJS$ac_delim
43551 _ACEOF
43552
43553   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
43554     break
43555   elif $ac_last_try; then
43556     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
43557 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
43558    { (exit 1); exit 1; }; }
43559   else
43560     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
43561   fi
43562 done
43563
43564 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
43565 if test -n "$ac_eof"; then
43566   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
43567   ac_eof=`expr $ac_eof + 1`
43568 fi
43569
43570 cat >>$CONFIG_STATUS <<_ACEOF
43571 cat >"\$tmp/subs-5.sed" <<\CEOF$ac_eof
43572 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
43573 _ACEOF
43574 sed '
43575 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
43576 s/^/s,@/; s/!/@,|#_!!_#|/
43577 :n
43578 t n
43579 s/'"$ac_delim"'$/,g/; t
43580 s/$/\\/; p
43581 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
43582 ' >>$CONFIG_STATUS <conf$$subs.sed
43583 rm -f conf$$subs.sed
43584 cat >>$CONFIG_STATUS <<_ACEOF
43585 CEOF$ac_eof
43586 _ACEOF
43587
43588
43589 ac_delim='%!_!# '
43590 for ac_last_try in false false false false false :; do
43591   cat >conf$$subs.sed <<_ACEOF
43592 gl_LIBOBJS!$gl_LIBOBJS$ac_delim
43593 gl_LTLIBOBJS!$gl_LTLIBOBJS$ac_delim
43594 gltests_LIBOBJS!$gltests_LIBOBJS$ac_delim
43595 gltests_LTLIBOBJS!$gltests_LTLIBOBJS$ac_delim
43596 _ACEOF
43597
43598   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 4; then
43599     break
43600   elif $ac_last_try; then
43601     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
43602 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
43603    { (exit 1); exit 1; }; }
43604   else
43605     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
43606   fi
43607 done
43608
43609 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
43610 if test -n "$ac_eof"; then
43611   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
43612   ac_eof=`expr $ac_eof + 1`
43613 fi
43614
43615 cat >>$CONFIG_STATUS <<_ACEOF
43616 cat >"\$tmp/subs-6.sed" <<\CEOF$ac_eof
43617 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
43618 _ACEOF
43619 sed '
43620 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
43621 s/^/s,@/; s/!/@,|#_!!_#|/
43622 :n
43623 t n
43624 s/'"$ac_delim"'$/,g/; t
43625 s/$/\\/; p
43626 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
43627 ' >>$CONFIG_STATUS <conf$$subs.sed
43628 rm -f conf$$subs.sed
43629 cat >>$CONFIG_STATUS <<_ACEOF
43630 :end
43631 s/|#_!!_#|//g
43632 CEOF$ac_eof
43633 _ACEOF
43634
43635
43636 # VPATH may cause trouble with some makes, so we remove $(srcdir),
43637 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
43638 # trailing colons and then remove the whole line if VPATH becomes empty
43639 # (actually we leave an empty line to preserve line numbers).
43640 if test "x$srcdir" = x.; then
43641   ac_vpsub='/^[  ]*VPATH[        ]*=/{
43642 s/:*\$(srcdir):*/:/
43643 s/:*\${srcdir}:*/:/
43644 s/:*@srcdir@:*/:/
43645 s/^\([^=]*=[     ]*\):*/\1/
43646 s/:*$//
43647 s/^[^=]*=[       ]*$//
43648 }'
43649 fi
43650
43651 cat >>$CONFIG_STATUS <<\_ACEOF
43652 fi # test -n "$CONFIG_FILES"
43653
43654
43655 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
43656 do
43657   case $ac_tag in
43658   :[FHLC]) ac_mode=$ac_tag; continue;;
43659   esac
43660   case $ac_mode$ac_tag in
43661   :[FHL]*:*);;
43662   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
43663 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
43664    { (exit 1); exit 1; }; };;
43665   :[FH]-) ac_tag=-:-;;
43666   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
43667   esac
43668   ac_save_IFS=$IFS
43669   IFS=:
43670   set x $ac_tag
43671   IFS=$ac_save_IFS
43672   shift
43673   ac_file=$1
43674   shift
43675
43676   case $ac_mode in
43677   :L) ac_source=$1;;
43678   :[FH])
43679     ac_file_inputs=
43680     for ac_f
43681     do
43682       case $ac_f in
43683       -) ac_f="$tmp/stdin";;
43684       *) # Look for the file first in the build tree, then in the source tree
43685          # (if the path is not absolute).  The absolute path cannot be DOS-style,
43686          # because $ac_f cannot contain `:'.
43687          test -f "$ac_f" ||
43688            case $ac_f in
43689            [\\/$]*) false;;
43690            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
43691            esac ||
43692            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
43693 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
43694    { (exit 1); exit 1; }; };;
43695       esac
43696       ac_file_inputs="$ac_file_inputs $ac_f"
43697     done
43698
43699     # Let's still pretend it is `configure' which instantiates (i.e., don't
43700     # use $as_me), people would be surprised to read:
43701     #    /* config.h.  Generated by config.status.  */
43702     configure_input="Generated from "`IFS=:
43703           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
43704     if test x"$ac_file" != x-; then
43705       configure_input="$ac_file.  $configure_input"
43706       { echo "$as_me:$LINENO: creating $ac_file" >&5
43707 echo "$as_me: creating $ac_file" >&6;}
43708     fi
43709
43710     case $ac_tag in
43711     *:-:* | *:-) cat >"$tmp/stdin";;
43712     esac
43713     ;;
43714   esac
43715
43716   ac_dir=`$as_dirname -- "$ac_file" ||
43717 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
43718          X"$ac_file" : 'X\(//\)[^/]' \| \
43719          X"$ac_file" : 'X\(//\)$' \| \
43720          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
43721 echo X"$ac_file" |
43722     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
43723             s//\1/
43724             q
43725           }
43726           /^X\(\/\/\)[^/].*/{
43727             s//\1/
43728             q
43729           }
43730           /^X\(\/\/\)$/{
43731             s//\1/
43732             q
43733           }
43734           /^X\(\/\).*/{
43735             s//\1/
43736             q
43737           }
43738           s/.*/./; q'`
43739   { as_dir="$ac_dir"
43740   case $as_dir in #(
43741   -*) as_dir=./$as_dir;;
43742   esac
43743   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
43744     as_dirs=
43745     while :; do
43746       case $as_dir in #(
43747       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
43748       *) as_qdir=$as_dir;;
43749       esac
43750       as_dirs="'$as_qdir' $as_dirs"
43751       as_dir=`$as_dirname -- "$as_dir" ||
43752 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
43753          X"$as_dir" : 'X\(//\)[^/]' \| \
43754          X"$as_dir" : 'X\(//\)$' \| \
43755          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
43756 echo X"$as_dir" |
43757     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
43758             s//\1/
43759             q
43760           }
43761           /^X\(\/\/\)[^/].*/{
43762             s//\1/
43763             q
43764           }
43765           /^X\(\/\/\)$/{
43766             s//\1/
43767             q
43768           }
43769           /^X\(\/\).*/{
43770             s//\1/
43771             q
43772           }
43773           s/.*/./; q'`
43774       test -d "$as_dir" && break
43775     done
43776     test -z "$as_dirs" || eval "mkdir $as_dirs"
43777   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
43778 echo "$as_me: error: cannot create directory $as_dir" >&2;}
43779    { (exit 1); exit 1; }; }; }
43780   ac_builddir=.
43781
43782 case "$ac_dir" in
43783 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
43784 *)
43785   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
43786   # A ".." for each directory in $ac_dir_suffix.
43787   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
43788   case $ac_top_builddir_sub in
43789   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
43790   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
43791   esac ;;
43792 esac
43793 ac_abs_top_builddir=$ac_pwd
43794 ac_abs_builddir=$ac_pwd$ac_dir_suffix
43795 # for backward compatibility:
43796 ac_top_builddir=$ac_top_build_prefix
43797
43798 case $srcdir in
43799   .)  # We are building in place.
43800     ac_srcdir=.
43801     ac_top_srcdir=$ac_top_builddir_sub
43802     ac_abs_top_srcdir=$ac_pwd ;;
43803   [\\/]* | ?:[\\/]* )  # Absolute name.
43804     ac_srcdir=$srcdir$ac_dir_suffix;
43805     ac_top_srcdir=$srcdir
43806     ac_abs_top_srcdir=$srcdir ;;
43807   *) # Relative name.
43808     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
43809     ac_top_srcdir=$ac_top_build_prefix$srcdir
43810     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
43811 esac
43812 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
43813
43814
43815   case $ac_mode in
43816   :F)
43817   #
43818   # CONFIG_FILE
43819   #
43820
43821   case $INSTALL in
43822   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
43823   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
43824   esac
43825   ac_MKDIR_P=$MKDIR_P
43826   case $MKDIR_P in
43827   [\\/$]* | ?:[\\/]* ) ;;
43828   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
43829   esac
43830 _ACEOF
43831
43832 cat >>$CONFIG_STATUS <<\_ACEOF
43833 # If the template does not know about datarootdir, expand it.
43834 # FIXME: This hack should be removed a few years after 2.60.
43835 ac_datarootdir_hack=; ac_datarootdir_seen=
43836
43837 case `sed -n '/datarootdir/ {
43838   p
43839   q
43840 }
43841 /@datadir@/p
43842 /@docdir@/p
43843 /@infodir@/p
43844 /@localedir@/p
43845 /@mandir@/p
43846 ' $ac_file_inputs` in
43847 *datarootdir*) ac_datarootdir_seen=yes;;
43848 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
43849   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
43850 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
43851 _ACEOF
43852 cat >>$CONFIG_STATUS <<_ACEOF
43853   ac_datarootdir_hack='
43854   s&@datadir@&$datadir&g
43855   s&@docdir@&$docdir&g
43856   s&@infodir@&$infodir&g
43857   s&@localedir@&$localedir&g
43858   s&@mandir@&$mandir&g
43859     s&\\\${datarootdir}&$datarootdir&g' ;;
43860 esac
43861 _ACEOF
43862
43863 # Neutralize VPATH when `$srcdir' = `.'.
43864 # Shell code in configure.ac might set extrasub.
43865 # FIXME: do we really want to maintain this feature?
43866 cat >>$CONFIG_STATUS <<_ACEOF
43867   sed "$ac_vpsub
43868 $extrasub
43869 _ACEOF
43870 cat >>$CONFIG_STATUS <<\_ACEOF
43871 :t
43872 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
43873 s&@configure_input@&$configure_input&;t t
43874 s&@top_builddir@&$ac_top_builddir_sub&;t t
43875 s&@srcdir@&$ac_srcdir&;t t
43876 s&@abs_srcdir@&$ac_abs_srcdir&;t t
43877 s&@top_srcdir@&$ac_top_srcdir&;t t
43878 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
43879 s&@builddir@&$ac_builddir&;t t
43880 s&@abs_builddir@&$ac_abs_builddir&;t t
43881 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
43882 s&@INSTALL@&$ac_INSTALL&;t t
43883 s&@MKDIR_P@&$ac_MKDIR_P&;t t
43884 $ac_datarootdir_hack
43885 " $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" | sed -f "$tmp/subs-6.sed" >$tmp/out
43886
43887 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
43888   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
43889   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
43890   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
43891 which seems to be undefined.  Please make sure it is defined." >&5
43892 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
43893 which seems to be undefined.  Please make sure it is defined." >&2;}
43894
43895   rm -f "$tmp/stdin"
43896   case $ac_file in
43897   -) cat "$tmp/out"; rm -f "$tmp/out";;
43898   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
43899   esac
43900  ;;
43901   :H)
43902   #
43903   # CONFIG_HEADER
43904   #
43905 _ACEOF
43906
43907 # Transform confdefs.h into a sed script `conftest.defines', that
43908 # substitutes the proper values into config.h.in to produce config.h.
43909 rm -f conftest.defines conftest.tail
43910 # First, append a space to every undef/define line, to ease matching.
43911 echo 's/$/ /' >conftest.defines
43912 # Then, protect against being on the right side of a sed subst, or in
43913 # an unquoted here document, in config.status.  If some macros were
43914 # called several times there might be several #defines for the same
43915 # symbol, which is useless.  But do not sort them, since the last
43916 # AC_DEFINE must be honored.
43917 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
43918 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
43919 # NAME is the cpp macro being defined, VALUE is the value it is being given.
43920 # PARAMS is the parameter list in the macro definition--in most cases, it's
43921 # just an empty string.
43922 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
43923 ac_dB='\\)[      (].*,\\1define\\2'
43924 ac_dC=' '
43925 ac_dD=' ,'
43926
43927 uniq confdefs.h |
43928   sed -n '
43929         t rset
43930         :rset
43931         s/^[     ]*#[    ]*define[       ][      ]*//
43932         t ok
43933         d
43934         :ok
43935         s/[\\&,]/\\&/g
43936         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
43937         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
43938   ' >>conftest.defines
43939
43940 # Remove the space that was appended to ease matching.
43941 # Then replace #undef with comments.  This is necessary, for
43942 # example, in the case of _POSIX_SOURCE, which is predefined and required
43943 # on some systems where configure will not decide to define it.
43944 # (The regexp can be short, since the line contains either #define or #undef.)
43945 echo 's/ $//
43946 s,^[     #]*u.*,/* & */,' >>conftest.defines
43947
43948 # Break up conftest.defines:
43949 ac_max_sed_lines=50
43950
43951 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
43952 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
43953 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
43954 # et cetera.
43955 ac_in='$ac_file_inputs'
43956 ac_out='"$tmp/out1"'
43957 ac_nxt='"$tmp/out2"'
43958
43959 while :
43960 do
43961   # Write a here document:
43962     cat >>$CONFIG_STATUS <<_ACEOF
43963     # First, check the format of the line:
43964     cat >"\$tmp/defines.sed" <<\\CEOF
43965 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
43966 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
43967 b
43968 :def
43969 _ACEOF
43970   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
43971   echo 'CEOF
43972     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
43973   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
43974   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
43975   grep . conftest.tail >/dev/null || break
43976   rm -f conftest.defines
43977   mv conftest.tail conftest.defines
43978 done
43979 rm -f conftest.defines conftest.tail
43980
43981 echo "ac_result=$ac_in" >>$CONFIG_STATUS
43982 cat >>$CONFIG_STATUS <<\_ACEOF
43983   if test x"$ac_file" != x-; then
43984     echo "/* $configure_input  */" >"$tmp/config.h"
43985     cat "$ac_result" >>"$tmp/config.h"
43986     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
43987       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
43988 echo "$as_me: $ac_file is unchanged" >&6;}
43989     else
43990       rm -f $ac_file
43991       mv "$tmp/config.h" $ac_file
43992     fi
43993   else
43994     echo "/* $configure_input  */"
43995     cat "$ac_result"
43996   fi
43997   rm -f "$tmp/out12"
43998 # Compute $ac_file's index in $config_headers.
43999 _am_arg=$ac_file
44000 _am_stamp_count=1
44001 for _am_header in $config_headers :; do
44002   case $_am_header in
44003     $_am_arg | $_am_arg:* )
44004       break ;;
44005     * )
44006       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
44007   esac
44008 done
44009 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
44010 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
44011          X"$_am_arg" : 'X\(//\)[^/]' \| \
44012          X"$_am_arg" : 'X\(//\)$' \| \
44013          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
44014 echo X"$_am_arg" |
44015     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
44016             s//\1/
44017             q
44018           }
44019           /^X\(\/\/\)[^/].*/{
44020             s//\1/
44021             q
44022           }
44023           /^X\(\/\/\)$/{
44024             s//\1/
44025             q
44026           }
44027           /^X\(\/\).*/{
44028             s//\1/
44029             q
44030           }
44031           s/.*/./; q'`/stamp-h$_am_stamp_count
44032  ;;
44033
44034   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
44035 echo "$as_me: executing $ac_file commands" >&6;}
44036  ;;
44037   esac
44038
44039
44040   case $ac_file$ac_mode in
44041     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
44042   # Strip MF so we end up with the name of the file.
44043   mf=`echo "$mf" | sed -e 's/:.*$//'`
44044   # Check whether this is an Automake generated Makefile or not.
44045   # We used to match only the files named `Makefile.in', but
44046   # some people rename them; so instead we look at the file content.
44047   # Grep'ing the first line is not enough: some people post-process
44048   # each Makefile.in and add a new line on top of each file to say so.
44049   # Grep'ing the whole file is not good either: AIX grep has a line
44050   # limit of 2048, but all sed's we know have understand at least 4000.
44051   if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
44052     dirpart=`$as_dirname -- "$mf" ||
44053 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
44054          X"$mf" : 'X\(//\)[^/]' \| \
44055          X"$mf" : 'X\(//\)$' \| \
44056          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
44057 echo X"$mf" |
44058     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
44059             s//\1/
44060             q
44061           }
44062           /^X\(\/\/\)[^/].*/{
44063             s//\1/
44064             q
44065           }
44066           /^X\(\/\/\)$/{
44067             s//\1/
44068             q
44069           }
44070           /^X\(\/\).*/{
44071             s//\1/
44072             q
44073           }
44074           s/.*/./; q'`
44075   else
44076     continue
44077   fi
44078   # Extract the definition of DEPDIR, am__include, and am__quote
44079   # from the Makefile without running `make'.
44080   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
44081   test -z "$DEPDIR" && continue
44082   am__include=`sed -n 's/^am__include = //p' < "$mf"`
44083   test -z "am__include" && continue
44084   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
44085   # When using ansi2knr, U may be empty or an underscore; expand it
44086   U=`sed -n 's/^U = //p' < "$mf"`
44087   # Find all dependency output files, they are included files with
44088   # $(DEPDIR) in their names.  We invoke sed twice because it is the
44089   # simplest approach to changing $(DEPDIR) to its actual value in the
44090   # expansion.
44091   for file in `sed -n "
44092     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
44093        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
44094     # Make sure the directory exists.
44095     test -f "$dirpart/$file" && continue
44096     fdir=`$as_dirname -- "$file" ||
44097 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
44098          X"$file" : 'X\(//\)[^/]' \| \
44099          X"$file" : 'X\(//\)$' \| \
44100          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
44101 echo X"$file" |
44102     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
44103             s//\1/
44104             q
44105           }
44106           /^X\(\/\/\)[^/].*/{
44107             s//\1/
44108             q
44109           }
44110           /^X\(\/\/\)$/{
44111             s//\1/
44112             q
44113           }
44114           /^X\(\/\).*/{
44115             s//\1/
44116             q
44117           }
44118           s/.*/./; q'`
44119     { as_dir=$dirpart/$fdir
44120   case $as_dir in #(
44121   -*) as_dir=./$as_dir;;
44122   esac
44123   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
44124     as_dirs=
44125     while :; do
44126       case $as_dir in #(
44127       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
44128       *) as_qdir=$as_dir;;
44129       esac
44130       as_dirs="'$as_qdir' $as_dirs"
44131       as_dir=`$as_dirname -- "$as_dir" ||
44132 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
44133          X"$as_dir" : 'X\(//\)[^/]' \| \
44134          X"$as_dir" : 'X\(//\)$' \| \
44135          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
44136 echo X"$as_dir" |
44137     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
44138             s//\1/
44139             q
44140           }
44141           /^X\(\/\/\)[^/].*/{
44142             s//\1/
44143             q
44144           }
44145           /^X\(\/\/\)$/{
44146             s//\1/
44147             q
44148           }
44149           /^X\(\/\).*/{
44150             s//\1/
44151             q
44152           }
44153           s/.*/./; q'`
44154       test -d "$as_dir" && break
44155     done
44156     test -z "$as_dirs" || eval "mkdir $as_dirs"
44157   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
44158 echo "$as_me: error: cannot create directory $as_dir" >&2;}
44159    { (exit 1); exit 1; }; }; }
44160     # echo "creating $dirpart/$file"
44161     echo '# dummy' > "$dirpart/$file"
44162   done
44163 done
44164  ;;
44165     "po-directories":C)
44166     for ac_file in $CONFIG_FILES; do
44167       # Support "outfile[:infile[:infile...]]"
44168       case "$ac_file" in
44169         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
44170       esac
44171       # PO directories have a Makefile.in generated from Makefile.in.in.
44172       case "$ac_file" in */Makefile.in)
44173         # Adjust a relative srcdir.
44174         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
44175         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
44176         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
44177         # In autoconf-2.13 it is called $ac_given_srcdir.
44178         # In autoconf-2.50 it is called $srcdir.
44179         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
44180         case "$ac_given_srcdir" in
44181           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
44182           /*) top_srcdir="$ac_given_srcdir" ;;
44183           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
44184         esac
44185         # Treat a directory as a PO directory if and only if it has a
44186         # POTFILES.in file. This allows packages to have multiple PO
44187         # directories under different names or in different locations.
44188         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
44189           rm -f "$ac_dir/POTFILES"
44190           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
44191           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
44192           POMAKEFILEDEPS="POTFILES.in"
44193           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
44194           # on $ac_dir but don't depend on user-specified configuration
44195           # parameters.
44196           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
44197             # The LINGUAS file contains the set of available languages.
44198             if test -n "$OBSOLETE_ALL_LINGUAS"; then
44199               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
44200             fi
44201             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
44202             # Hide the ALL_LINGUAS assigment from automake < 1.5.
44203             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
44204             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
44205           else
44206             # The set of available languages was given in configure.in.
44207             # Hide the ALL_LINGUAS assigment from automake < 1.5.
44208             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
44209           fi
44210           # Compute POFILES
44211           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
44212           # Compute UPDATEPOFILES
44213           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
44214           # Compute DUMMYPOFILES
44215           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
44216           # Compute GMOFILES
44217           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
44218           case "$ac_given_srcdir" in
44219             .) srcdirpre= ;;
44220             *) srcdirpre='$(srcdir)/' ;;
44221           esac
44222           POFILES=
44223           UPDATEPOFILES=
44224           DUMMYPOFILES=
44225           GMOFILES=
44226           for lang in $ALL_LINGUAS; do
44227             POFILES="$POFILES $srcdirpre$lang.po"
44228             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
44229             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
44230             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
44231           done
44232           # CATALOGS depends on both $ac_dir and the user's LINGUAS
44233           # environment variable.
44234           INST_LINGUAS=
44235           if test -n "$ALL_LINGUAS"; then
44236             for presentlang in $ALL_LINGUAS; do
44237               useit=no
44238               if test "%UNSET%" != "$LINGUAS"; then
44239                 desiredlanguages="$LINGUAS"
44240               else
44241                 desiredlanguages="$ALL_LINGUAS"
44242               fi
44243               for desiredlang in $desiredlanguages; do
44244                 # Use the presentlang catalog if desiredlang is
44245                 #   a. equal to presentlang, or
44246                 #   b. a variant of presentlang (because in this case,
44247                 #      presentlang can be used as a fallback for messages
44248                 #      which are not translated in the desiredlang catalog).
44249                 case "$desiredlang" in
44250                   "$presentlang"*) useit=yes;;
44251                 esac
44252               done
44253               if test $useit = yes; then
44254                 INST_LINGUAS="$INST_LINGUAS $presentlang"
44255               fi
44256             done
44257           fi
44258           CATALOGS=
44259           if test -n "$INST_LINGUAS"; then
44260             for lang in $INST_LINGUAS; do
44261               CATALOGS="$CATALOGS $lang.gmo"
44262             done
44263           fi
44264           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
44265           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"
44266           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
44267             if test -f "$f"; then
44268               case "$f" in
44269                 *.orig | *.bak | *~) ;;
44270                 *) cat "$f" >> "$ac_dir/Makefile" ;;
44271               esac
44272             fi
44273           done
44274         fi
44275         ;;
44276       esac
44277     done ;;
44278     "tests/atconfig":C) cat >tests/atconfig <<ATEOF
44279 # Configurable variable values for building test suites.
44280 # Generated by $0.
44281 # Copyright (C) 2000, 2001, 2003, 2004 Free Software Foundation, Inc.
44282
44283 # The test suite will define top_srcdir=$at_top_srcdir/../.. etc.
44284 at_testdir='tests'
44285 abs_builddir='$ac_abs_builddir'
44286 at_srcdir='$ac_srcdir'
44287 abs_srcdir='$ac_abs_srcdir'
44288 at_top_srcdir='$ac_top_srcdir'
44289 abs_top_srcdir='$ac_abs_top_srcdir'
44290 at_top_build_prefix='$ac_top_build_prefix'
44291 abs_top_builddir='$ac_abs_top_builddir'
44292
44293 # Backward compatibility with Autotest <= 2.59b:
44294 at_top_builddir=\$at_top_build_prefix
44295
44296 AUTOTEST_PATH='tests'
44297
44298 SHELL=\${CONFIG_SHELL-'$SHELL'}
44299 ATEOF
44300  ;;
44301
44302   esac
44303 done # for ac_tag
44304
44305
44306 { (exit 0); exit 0; }
44307 _ACEOF
44308 chmod +x $CONFIG_STATUS
44309 ac_clean_files=$ac_clean_files_save
44310
44311
44312 # configure is writing to config.log, and then calls config.status.
44313 # config.status does its own redirection, appending to config.log.
44314 # Unfortunately, on DOS this fails, as config.log is still kept open
44315 # by configure, so config.status won't be able to write to it; its
44316 # output is simply discarded.  So we exec the FD to /dev/null,
44317 # effectively closing config.log, so it can be properly (re)opened and
44318 # appended to by config.status.  When coming back to configure, we
44319 # need to make the FD available again.
44320 if test "$no_create" != yes; then
44321   ac_cs_success=:
44322   ac_config_status_args=
44323   test "$silent" = yes &&
44324     ac_config_status_args="$ac_config_status_args --quiet"
44325   exec 5>/dev/null
44326   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
44327   exec 5>>config.log
44328   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
44329   # would make configure fail if this is the last instruction.
44330   $ac_cs_success || { (exit 1); exit 1; }
44331 fi
44332